rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
sequence | attention_mask
sequence | labels
sequence |
---|---|---|---|---|---|---|
if (count > 0 && mode == NONE) | if (count > 0 && mode == NONE) { | private boolean verifySelectionCount(int count) { if (count > 0 && mode == NONE) return false; if (count == 0 && mode == ONE_OR_MORE) return false; if (count > 1 && mode == NONE_OR_ONE) return false; if (count < 2 && mode == MULTIPLE) return false; if (mode > 0 && count != mode) return false; return true; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/SelectionEnabler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SelectionEnabler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
3929,
6233,
1380,
12,
474,
1056,
13,
288,
202,
202,
430,
261,
1883,
405,
374,
597,
1965,
422,
11829,
13,
1082,
202,
2463,
629,
31,
202,
202,
430,
261,
1883,
422,
374,
597,
1965,
422,
15623,
67,
916,
67,
31078,
13,
1082,
202,
2463,
629,
31,
202,
202,
430,
261,
1883,
405,
404,
597,
1965,
422,
11829,
67,
916,
67,
5998,
13,
1082,
202,
2463,
629,
31,
202,
202,
430,
261,
1883,
411,
576,
597,
1965,
422,
31385,
900,
13,
1082,
202,
2463,
629,
31,
202,
202,
430,
261,
3188,
405,
374,
597,
1056,
480,
1965,
13,
1082,
202,
2463,
629,
31,
202,
202,
2463,
638,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
202,
430,
261,
1883,
405,
374,
597,
1965,
422,
11829,
13,
1082,
202,
2463,
629,
31,
202,
202,
430,
261,
1883,
422,
374,
597,
1965,
422,
15623,
67,
916,
67,
31078,
13,
1082,
202,
2463,
629,
31,
202,
202,
430,
261,
1883,
405,
404,
597,
1965,
422,
11829,
67,
916,
67,
5998,
13,
1082,
202,
2463,
629,
31,
202,
202,
430,
261,
1883,
411,
576,
597,
1965,
422,
31385,
900,
13,
1082,
202,
2463,
629,
31,
202,
202,
430,
261,
3188,
405,
374,
597,
1056,
480,
1965,
13,
1082,
202,
2463,
629,
31,
202,
202,
2463,
638,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
String weblogHandle) throws RollerException { this(req, res, mapping, weblogHandle, null); | WebsiteData weblog) throws RollerException { this(req, res, mapping, weblog, null); | public UploadFilePageModel( HttpServletRequest req, HttpServletResponse res, ActionMapping mapping, String weblogHandle) throws RollerException { this(req, res, mapping, weblogHandle, null); } | 46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/5757ffadc0fd692cda4745f9b0e012bae138a02d/UploadFileFormAction.java/clean/src/org/apache/roller/ui/authoring/struts/actions/UploadFileFormAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
9414,
812,
1964,
1488,
12,
7734,
9984,
1111,
16,
1171,
12446,
400,
16,
1171,
4382,
3233,
2874,
16,
7734,
514,
3311,
1330,
3259,
13,
1216,
11714,
749,
503,
288,
5411,
333,
12,
3658,
16,
400,
16,
2874,
16,
3311,
1330,
3259,
16,
446,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
9414,
812,
1964,
1488,
12,
7734,
9984,
1111,
16,
1171,
12446,
400,
16,
1171,
4382,
3233,
2874,
16,
7734,
514,
3311,
1330,
3259,
13,
1216,
11714,
749,
503,
288,
5411,
333,
12,
3658,
16,
400,
16,
2874,
16,
3311,
1330,
3259,
16,
446,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (int i = 0; i < elements.size(); i++) { Element element = (Element)elements.elementAt(i); | for (int i = 0; i < myElements.size(); i++) { Element element = (Element)myElements.elementAt(i); | private Vector getRelatedElements(Vector elements, String relationship) { for (int i = 0; i < elements.size(); i++) { Element element = (Element)elements.elementAt(i); // remove any subgraphs (in particular the whole graph) if (element instanceof Subgraph) { elements.remove(i--); continue; } // remove edges, as we only want the ones that match relationship if (element instanceof Edge) { elements.remove(i--); continue; } } for (int i = 0; i < elements.size(); i++) { Element element = (Element)elements.elementAt(i); if (!(element instanceof Node)) continue; Node node = (Node)element; Vector otherNodeNames = getAttributeValuesWithSuffix(node, relationship); Enumeration edges = node.edgeElements(); while (edges.hasMoreElements()) { Edge edge = (Edge)edges.nextElement(); if (edge.getHead().equals(node)) { if (otherNodeNames.contains(getOrganizationName(edge.getTail()))) { if (!elements.contains(edge)) elements.add(edge); Node tail = edge.getTail(); if (!elements.contains(tail)) elements.add(tail); } } else if (edge.getTail().equals(node)) { if (otherNodeNames.contains(getOrganizationName(edge.getHead()))) { if (!elements.contains(edge)) elements.add(edge); Node head = edge.getHead(); if (!elements.contains(head)) elements.add(head); } } } } return elements; } | 9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/30f0f1d87f1191e77636f5903ce8a243d0882922/ULSocietyFrame.java/clean/csmart/src/org/cougaar/tools/csmart/ui/monitor/society/ULSocietyFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
5589,
21531,
3471,
12,
5018,
2186,
16,
514,
5232,
13,
288,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2186,
18,
1467,
5621,
277,
27245,
288,
1377,
3010,
930,
273,
261,
1046,
13,
6274,
18,
2956,
861,
12,
77,
1769,
1377,
368,
1206,
1281,
21469,
87,
261,
267,
6826,
326,
7339,
2667,
13,
1377,
309,
261,
2956,
1276,
2592,
4660,
13,
288,
202,
6274,
18,
4479,
12,
77,
413,
1769,
202,
17143,
31,
1377,
289,
1377,
368,
1206,
5231,
16,
487,
732,
1338,
2545,
326,
5945,
716,
845,
5232,
1377,
309,
261,
2956,
1276,
11342,
13,
288,
202,
6274,
18,
4479,
12,
77,
413,
1769,
202,
17143,
31,
1377,
289,
565,
289,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2186,
18,
1467,
5621,
277,
27245,
288,
1377,
3010,
930,
273,
261,
1046,
13,
6274,
18,
2956,
861,
12,
77,
1769,
1377,
309,
16051,
12,
2956,
1276,
2029,
3719,
202,
17143,
31,
1377,
2029,
756,
273,
261,
907,
13,
2956,
31,
1377,
5589,
1308,
907,
1557,
273,
225,
202,
588,
31770,
1190,
5791,
12,
2159,
16,
5232,
1769,
1377,
13864,
5231,
273,
756,
18,
7126,
3471,
5621,
1377,
1323,
261,
8746,
18,
5332,
7417,
3471,
10756,
288,
202,
6098,
3591,
273,
261,
6098,
13,
8746,
18,
4285,
1046,
5621,
202,
430,
261,
7126,
18,
588,
1414,
7675,
14963,
12,
2159,
3719,
288,
202,
225,
309,
261,
3011,
907,
1557,
18,
12298,
12,
588,
8113,
461,
12,
7126,
18,
588,
12363,
1435,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
5589,
21531,
3471,
12,
5018,
2186,
16,
514,
5232,
13,
288,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2186,
18,
1467,
5621,
277,
27245,
288,
1377,
3010,
930,
273,
261,
1046,
13,
6274,
18,
2956,
861,
12,
77,
1769,
1377,
368,
1206,
1281,
21469,
87,
261,
267,
6826,
326,
7339,
2667,
13,
1377,
309,
261,
2956,
1276,
2592,
4660,
13,
288,
202,
6274,
18,
4479,
12,
77,
413,
1769,
202,
17143,
31,
1377,
289,
1377,
368,
1206,
5231,
16,
487,
732,
1338,
2545,
326,
5945,
716,
845,
5232,
1377,
309,
261,
2956,
1276,
11342,
13,
288,
202,
6274,
18,
4479,
12,
77,
413,
1769,
202,
17143,
31,
1377,
289,
565,
289,
565,
364,
261,
2
] |
Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)), e); | Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)), e); | public List readPropertyDefinitions(CmsDbContext dbc, int projectId, int mappingtype) throws CmsDataAccessException { ArrayList propertyDefinitions = new ArrayList(); ResultSet res = null; PreparedStatement stmt = null; Connection conn = null; try { conn = m_sqlManager.getConnection(dbc); stmt = m_sqlManager.getPreparedStatement(conn, projectId, "C_PROPERTYDEF_READALL"); res = stmt.executeQuery(); while (res.next()) { propertyDefinitions.add(new CmsPropertyDefinition( new CmsUUID(res.getString(m_sqlManager.readQuery("C_PROPERTYDEF_ID"))), res.getString(m_sqlManager.readQuery("C_PROPERTYDEF_NAME")))); } } catch (SQLException e) { throw new CmsDbSqlException(Messages.get().container( Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)), e); } finally { m_sqlManager.closeAll(dbc, conn, stmt, res); } return propertyDefinitions; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/546c122e43ad901e06bfec1c2164259c3ce08c8b/CmsVfsDriver.java/buggy/src/org/opencms/db/generic/CmsVfsDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
1396,
7130,
12,
4747,
4331,
1042,
9881,
16,
509,
9882,
16,
509,
2874,
723,
13,
1216,
2149,
751,
9773,
288,
3639,
2407,
1272,
7130,
273,
394,
2407,
5621,
3639,
10842,
400,
273,
446,
31,
3639,
16913,
3480,
273,
446,
31,
3639,
4050,
1487,
273,
446,
31,
3639,
775,
288,
5411,
1487,
273,
312,
67,
4669,
1318,
18,
588,
1952,
12,
9137,
1769,
5411,
3480,
273,
312,
67,
4669,
1318,
18,
588,
29325,
12,
4646,
16,
9882,
16,
315,
39,
67,
9900,
12904,
67,
6949,
4685,
8863,
5411,
400,
273,
3480,
18,
8837,
1138,
5621,
5411,
1323,
261,
455,
18,
4285,
10756,
288,
7734,
1272,
7130,
18,
1289,
12,
2704,
18505,
1852,
12,
10792,
394,
15792,
12,
455,
18,
588,
780,
12,
81,
67,
4669,
1318,
18,
896,
1138,
2932,
39,
67,
9900,
12904,
67,
734,
6,
3719,
3631,
10792,
400,
18,
588,
780,
12,
81,
67,
4669,
1318,
18,
896,
1138,
2932,
39,
67,
9900,
12904,
67,
1985,
6,
3719,
10019,
5411,
289,
3639,
289,
1044,
261,
23116,
425,
13,
288,
5411,
604,
394,
25983,
5101,
503,
12,
5058,
18,
588,
7675,
3782,
12,
7734,
4838,
18,
9712,
67,
13990,
2871,
67,
3997,
67,
21,
16,
25983,
5101,
503,
18,
588,
668,
1138,
12,
10589,
13,
3631,
425,
1769,
3639,
289,
3095,
288,
5411,
312,
67,
4669,
1318,
18,
4412,
1595,
12,
9137,
16,
1487,
16,
3480,
16,
400,
1769,
3639,
289,
3639,
327,
1272,
7130,
31,
565,
289,
2,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
1396,
7130,
12,
4747,
4331,
1042,
9881,
16,
509,
9882,
16,
509,
2874,
723,
13,
1216,
2149,
751,
9773,
288,
3639,
2407,
1272,
7130,
273,
394,
2407,
5621,
3639,
10842,
400,
273,
446,
31,
3639,
16913,
3480,
273,
446,
31,
3639,
4050,
1487,
273,
446,
31,
3639,
775,
288,
5411,
1487,
273,
312,
67,
4669,
1318,
18,
588,
1952,
12,
9137,
1769,
5411,
3480,
273,
312,
67,
4669,
1318,
18,
588,
29325,
12,
4646,
16,
9882,
16,
315,
39,
67,
9900,
12904,
67,
6949,
4685,
8863,
5411,
400,
273,
3480,
18,
8837,
1138,
5621,
5411,
1323,
261,
455,
18,
4285,
10756,
288,
7734,
1272,
7130,
18,
1289,
12,
2704,
18505,
1852,
12,
10792,
394,
15792,
2
] |
if (_content.length() == 0) _content = null; | if (_content.length() == 0) _content = null; | private void prepareBuffers() throws IOException { // if we are not flushing an existing chunk if (!_bufferChunked) { // Refill buffer if possible if (_content != null && _content.length() > 0 && _buffer != null && _buffer.space() > 0) { int len = _buffer.put(_content); _content.skip(len); if (_content.length() == 0) _content = null; } // Chunk buffer if need be if (_contentLength == CHUNKED_CONTENT) { int size = _buffer == null ? 0 : _buffer.length(); if (size > 0) { // Prepare a chunk! _bufferChunked = true; // Did we leave space at the start of the buffer. if (_buffer.getIndex() == CHUNK_SPACE) { // Oh yes, goodie! let's use it then! _buffer.poke(_buffer.getIndex() - 2, CRLF, 0, 2); _buffer.setGetIndex(_buffer.getIndex() - 2); BufferUtil.prependHexInt(_buffer, size); if (_needCRLF) { _buffer.poke(_buffer.getIndex() - 2, CRLF, 0, 2); _buffer.setGetIndex(_buffer.getIndex() - 2); _needCRLF = false; } } else { // No space so lets use the header buffer. if (_needCRLF) { if (_header.length() > 0) throw new IllegalStateException("EOC"); _header.put(CRLF); _needCRLF = false; } BufferUtil.putHexInt(_header, size); _header.put(CRLF); } // Add end chunk trailer. if (_buffer.space() >= 2) _buffer.put(CRLF); else _needCRLF = true; } // If we need EOC and everything written if (_needEOC && (_content == null || _content.length() == 0)) { if (_needCRLF) { if (_buffer == null && _header.space() >= 2) { _header.put(CRLF); _needCRLF = false; } else if (_buffer.space() >= 2) { _buffer.put(CRLF); _needCRLF = false; } } if (!_needCRLF && _needEOC) { if (_buffer == null && _header.space() >= LAST_CHUNK.length) { _header.put(LAST_CHUNK); _needEOC = false; } else if (_buffer.space() >= LAST_CHUNK.length) { _buffer.put(LAST_CHUNK); _needEOC = false; } } } } } if (_content != null && _content.length() == 0) _content = null; } | 13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/d709f6aae5fb3606cd97acdb150c696f9e6901dc/HttpGenerator.java/clean/modules/jetty/src/main/java/org/mortbay/jetty/HttpGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2911,
13699,
1435,
1216,
1860,
565,
288,
3639,
368,
309,
732,
854,
486,
30121,
392,
2062,
2441,
3639,
309,
16051,
67,
4106,
5579,
329,
13,
3639,
288,
5411,
368,
3941,
737,
1613,
309,
3323,
5411,
309,
261,
67,
1745,
480,
446,
597,
389,
1745,
18,
2469,
1435,
405,
374,
597,
389,
4106,
480,
446,
597,
389,
4106,
18,
2981,
1435,
405,
374,
13,
5411,
288,
7734,
509,
562,
273,
389,
4106,
18,
458,
24899,
1745,
1769,
7734,
389,
1745,
18,
7457,
12,
1897,
1769,
7734,
309,
261,
67,
1745,
18,
2469,
1435,
422,
374,
13,
389,
1745,
273,
446,
31,
5411,
289,
5411,
368,
13021,
1613,
309,
1608,
506,
5411,
309,
261,
67,
1745,
1782,
422,
28096,
2056,
67,
9689,
13,
5411,
288,
7734,
509,
963,
273,
389,
4106,
422,
446,
692,
374,
294,
389,
4106,
18,
2469,
5621,
7734,
309,
261,
1467,
405,
374,
13,
7734,
288,
10792,
368,
7730,
279,
2441,
5,
10792,
389,
4106,
5579,
329,
273,
638,
31,
10792,
368,
21148,
732,
8851,
3476,
622,
326,
787,
434,
326,
1613,
18,
10792,
309,
261,
67,
4106,
18,
588,
1016,
1435,
422,
28096,
67,
6616,
13,
10792,
288,
13491,
368,
531,
76,
12465,
16,
7494,
1385,
5,
2231,
1807,
999,
518,
1508,
5,
13491,
389,
4106,
18,
84,
3056,
24899,
4106,
18,
588,
1016,
1435,
300,
576,
16,
21791,
16,
374,
16,
576,
1769,
13491,
389,
4106,
18,
542,
967,
1016,
24899,
4106,
18,
588,
1016,
1435,
300,
576,
1769,
13491,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2911,
13699,
1435,
1216,
1860,
565,
288,
3639,
368,
309,
732,
854,
486,
30121,
392,
2062,
2441,
3639,
309,
16051,
67,
4106,
5579,
329,
13,
3639,
288,
5411,
368,
3941,
737,
1613,
309,
3323,
5411,
309,
261,
67,
1745,
480,
446,
597,
389,
1745,
18,
2469,
1435,
405,
374,
597,
389,
4106,
480,
446,
597,
389,
4106,
18,
2981,
1435,
405,
374,
13,
5411,
288,
7734,
509,
562,
273,
389,
4106,
18,
458,
24899,
1745,
1769,
7734,
389,
1745,
18,
7457,
12,
1897,
1769,
7734,
309,
261,
67,
1745,
18,
2469,
1435,
422,
374,
13,
389,
1745,
273,
446,
31,
5411,
289,
5411,
368,
13021,
1613,
309,
1608,
506,
5411,
309,
261,
67,
1745,
1782,
422,
2
] |
Object obj = bindings.get( c ); | Object obj = bindings != null ? bindings.get( c ) : null; | public IBinding getBinding(IASTName name, boolean forceResolve) throws DOMException { char [] c = name.toCharArray(); //can't look up bindings that don't have a name if( c.length == 0 || bindings == null ) return null; Object obj = bindings.get( c ); if( obj != null ){ if( obj instanceof ObjectSet ) { ObjectSet os = (ObjectSet) obj; if( forceResolve ) return CPPSemantics.resolveAmbiguities( name, os.keyArray() ); IBinding [] bs = null; for( int i = 0; i < os.size(); i++ ){ Object o = os.keyAt( i ); if( o instanceof IASTName ){ IASTName n = (IASTName) o; if( n instanceof ICPPASTQualifiedName ){ IASTName [] ns = ((ICPPASTQualifiedName)n).getNames(); n = ns[ ns.length - 1 ]; } bs = (IBinding[]) ArrayUtil.append( IBinding.class, bs, n.getBinding() ); } else bs = (IBinding[]) ArrayUtil.append( IBinding.class, bs, o ); } return CPPSemantics.resolveAmbiguities( name, bs ); } else if( obj instanceof IASTName ){ IBinding binding = null; if( forceResolve && obj != name && obj != name.getParent()) binding = ((IASTName)obj).resolveBinding(); else { IASTName n = (IASTName) obj; if( n instanceof ICPPASTQualifiedName ){ IASTName [] ns = ((ICPPASTQualifiedName)n).getNames(); n = ns[ ns.length - 1 ]; } binding = n.getBinding(); } if( binding instanceof ICPPUsingDeclaration ){ return CPPSemantics.resolveAmbiguities( name, ((ICPPUsingDeclaration)binding).getDelegates() ); } return binding; } return (IBinding) obj; } return null; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/bc520fcaffb0a059c0a6c36e354090af027cbbe0/CPPScope.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPScope.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
5250,
29471,
12,
45,
9053,
461,
508,
16,
1250,
2944,
8460,
13,
1216,
4703,
503,
288,
202,
565,
1149,
5378,
276,
273,
508,
18,
869,
15936,
5621,
202,
565,
368,
4169,
1404,
2324,
731,
7394,
716,
2727,
1404,
1240,
279,
508,
202,
565,
309,
12,
276,
18,
2469,
422,
374,
747,
7394,
422,
446,
262,
202,
3639,
327,
446,
31,
202,
377,
202,
565,
1033,
1081,
273,
7394,
18,
588,
12,
276,
11272,
202,
565,
309,
12,
1081,
480,
446,
262,
95,
202,
3639,
309,
12,
1081,
1276,
1033,
694,
262,
288,
202,
540,
202,
921,
694,
1140,
273,
261,
921,
694,
13,
1081,
31,
202,
540,
202,
430,
12,
2944,
8460,
262,
202,
540,
202,
202,
2463,
5181,
5857,
351,
11119,
18,
10828,
30706,
8810,
1961,
12,
508,
16,
225,
1140,
18,
856,
1076,
1435,
11272,
202,
540,
202,
45,
5250,
5378,
7081,
273,
446,
31,
540,
202,
202,
1884,
12,
509,
277,
273,
374,
31,
277,
411,
1140,
18,
1467,
5621,
277,
9904,
262,
95,
540,
1082,
202,
921,
320,
273,
1140,
18,
856,
861,
12,
277,
11272,
540,
1082,
202,
430,
12,
320,
1276,
467,
9053,
461,
262,
95,
540,
9506,
202,
45,
9053,
461,
290,
273,
261,
45,
9053,
461,
13,
320,
31,
540,
9506,
202,
430,
12,
290,
1276,
467,
4258,
4066,
882,
12345,
262,
95,
540,
6862,
202,
45,
9053,
461,
5378,
3153,
273,
14015,
2871,
52,
4066,
882,
12345,
13,
82,
2934,
588,
1557,
5621,
540,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
5250,
29471,
12,
45,
9053,
461,
508,
16,
1250,
2944,
8460,
13,
1216,
4703,
503,
288,
202,
565,
1149,
5378,
276,
273,
508,
18,
869,
15936,
5621,
202,
565,
368,
4169,
1404,
2324,
731,
7394,
716,
2727,
1404,
1240,
279,
508,
202,
565,
309,
12,
276,
18,
2469,
422,
374,
747,
7394,
422,
446,
262,
202,
3639,
327,
446,
31,
202,
377,
202,
565,
1033,
1081,
273,
7394,
18,
588,
12,
276,
11272,
202,
565,
309,
12,
1081,
480,
446,
262,
95,
202,
3639,
309,
12,
1081,
1276,
1033,
694,
262,
288,
202,
540,
202,
921,
694,
1140,
273,
261,
921,
694,
13,
1081,
31,
202,
540,
202,
430,
12,
2944,
8460,
262,
202,
540,
2
] |
void setByte(String parameterName, byte x) throws SQLException; | void setByte(String name, byte value) throws SQLException; | void setByte(String parameterName, byte x) throws SQLException; | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/49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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
444,
3216,
12,
780,
15524,
16,
1160,
619,
13,
1216,
6483,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
setPositionsInRange(gapEnd, newGapEnd - gapEnd, newGapEnd); | setPositionsInRange(gapEnd, newGapEnd, false); | protected void shiftGapEndUp(int newGapEnd) { if (newGapEnd == gapEnd) return; assert newGapEnd > gapEnd : "The new gap end must be greater than the " + "old gap end."; setPositionsInRange(gapEnd, newGapEnd - gapEnd, newGapEnd); gapEnd = newGapEnd; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4654,
14001,
1638,
1211,
12,
474,
394,
14001,
1638,
13,
225,
288,
565,
309,
261,
2704,
14001,
1638,
422,
9300,
1638,
13,
1377,
327,
31,
565,
1815,
394,
14001,
1638,
405,
9300,
1638,
294,
315,
1986,
394,
9300,
679,
1297,
506,
6802,
2353,
326,
315,
27573,
397,
315,
1673,
9300,
679,
1199,
31,
565,
444,
11024,
25277,
12,
14048,
1638,
16,
394,
14001,
1638,
16,
629,
1769,
565,
9300,
1638,
273,
394,
14001,
1638,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
1815,
394,
14001,
1638,
405,
9300,
1638,
294,
315,
1986,
394,
9300,
679,
1297,
506,
6802,
2353,
326,
315,
27573,
397,
315,
1673,
9300,
679,
1199,
31,
565,
444,
11024,
25277,
12,
14048,
1638,
16,
394,
14001,
1638,
16,
629,
1769,
565,
9300,
1638,
273,
394,
14001,
1638,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
db.set_encrypt(args.passwd, args.flags); | db.setEncrypted(args.passwd, args.flags); | public void set_encrypt(DbDispatcher server, __db_encrypt_msg args, __db_encrypt_reply reply) { try { db.set_encrypt(args.passwd, args.flags); reply.status = 0; } catch(DbException e) { e.printStackTrace(DbServer.err); reply.status = e.get_errno(); } } | 9203 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9203/1765c2598bb92e59ff55807fab4076d1b5d838f2/RpcDb.java/buggy/db/rpc_server/java/RpcDb.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
225,
918,
444,
67,
15890,
12,
4331,
6681,
1438,
16,
202,
202,
972,
1966,
67,
15890,
67,
3576,
833,
16,
1001,
1966,
67,
15890,
67,
10629,
4332,
13,
202,
95,
202,
202,
698,
288,
1082,
202,
1966,
18,
542,
67,
15890,
12,
1968,
18,
24002,
16,
833,
18,
7133,
1769,
1082,
202,
10629,
18,
2327,
273,
374,
31,
202,
202,
97,
1044,
12,
4331,
503,
425,
13,
288,
1082,
202,
73,
18,
1188,
6332,
12,
4331,
2081,
18,
370,
1769,
1082,
202,
10629,
18,
2327,
273,
425,
18,
588,
67,
19088,
5621,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
225,
918,
444,
67,
15890,
12,
4331,
6681,
1438,
16,
202,
202,
972,
1966,
67,
15890,
67,
3576,
833,
16,
1001,
1966,
67,
15890,
67,
10629,
4332,
13,
202,
95,
202,
202,
698,
288,
1082,
202,
1966,
18,
542,
67,
15890,
12,
1968,
18,
24002,
16,
833,
18,
7133,
1769,
1082,
202,
10629,
18,
2327,
273,
374,
31,
202,
202,
97,
1044,
12,
4331,
503,
425,
13,
288,
1082,
202,
73,
18,
1188,
6332,
12,
4331,
2081,
18,
370,
1769,
1082,
202,
10629,
18,
2327,
273,
425,
18,
588,
67,
19088,
5621,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"limit(sort(filter($1.auxiliaryEmails$elements$entries, value == $2), key), 1)"); | "sort(filter($1.auxiliaryEmails$elements$entries, value == $2), key)"); | public int lastIndexOf(Object element) { // XXX: there is no syntax for specifying sort order in OQL Query query = getPMI().newQuery ("oql", "limit(sort(filter($1.auxiliaryEmails$elements$entries, value == $2), key), 1)"); Collection coll = (Collection) query.execute(elements, element); Iterator it = coll.iterator(); MapEntry entry = null; while (it.hasNext()) { entry = (MapEntry) it.next(); } if (entry == null) { return -1; } else { return ((Integer) entry.getKey()).intValue(); } } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/aa178408a6a948eb5a1430a340786f90b2633f34/CRPList.java/buggy/archive/eng/src/com/redhat/persistence/jdo/CRPList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9550,
12,
921,
930,
13,
288,
3639,
368,
11329,
30,
1915,
353,
1158,
6279,
364,
13664,
1524,
1353,
316,
531,
2024,
3639,
2770,
843,
273,
1689,
7492,
7675,
2704,
1138,
5411,
7566,
83,
1217,
3113,
2398,
315,
3804,
12,
2188,
4372,
21,
18,
18196,
20606,
26614,
8,
6274,
8,
8219,
16,
460,
422,
271,
22,
3631,
498,
2225,
1769,
3639,
2200,
4508,
273,
261,
2532,
13,
843,
18,
8837,
12,
6274,
16,
930,
1769,
3639,
4498,
518,
273,
4508,
18,
9838,
5621,
3639,
1635,
1622,
1241,
273,
446,
31,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
5411,
1241,
273,
261,
863,
1622,
13,
518,
18,
4285,
5621,
3639,
289,
3639,
309,
261,
4099,
422,
446,
13,
288,
5411,
327,
300,
21,
31,
3639,
289,
469,
288,
5411,
327,
14015,
4522,
13,
1241,
18,
588,
653,
1435,
2934,
474,
620,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9550,
12,
921,
930,
13,
288,
3639,
368,
11329,
30,
1915,
353,
1158,
6279,
364,
13664,
1524,
1353,
316,
531,
2024,
3639,
2770,
843,
273,
1689,
7492,
7675,
2704,
1138,
5411,
7566,
83,
1217,
3113,
2398,
315,
3804,
12,
2188,
4372,
21,
18,
18196,
20606,
26614,
8,
6274,
8,
8219,
16,
460,
422,
271,
22,
3631,
498,
2225,
1769,
3639,
2200,
4508,
273,
261,
2532,
13,
843,
18,
8837,
12,
6274,
16,
930,
1769,
3639,
4498,
518,
273,
4508,
18,
9838,
5621,
3639,
1635,
1622,
1241,
273,
446,
31,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
5411,
1241,
273,
261,
863,
1622,
13,
518,
18,
4285,
5621,
3639,
289,
3639,
309,
261,
4099,
422,
2
] |
lookbackTotal = optInTimePeriod + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_MFI.ordinal()]); | public TA_RetCode MFI(int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], int inVolume[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[]) { double posSumMF, negSumMF, prevValue; double tempValue1, tempValue2; int lookbackTotal, outIdx, i, today; int mflow_Idx = 0; MoneyFlow[] mflow; int maxIdx_mflow = (50 - 1); if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if ((int) optInTimePeriod == (Integer.MIN_VALUE )) optInTimePeriod = 14; else if (((int) optInTimePeriod < 2) || ((int) optInTimePeriod > 100000)) return TA_RetCode.TA_BAD_PARAM; { if (optInTimePeriod <= 0) return TA_RetCode.TA_ALLOC_ERR; mflow = new MoneyFlow[optInTimePeriod]; maxIdx_mflow = (optInTimePeriod - 1); } ; outBegIdx.value = 0; outNbElement.value = 0; lookbackTotal = optInTimePeriod + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_MFI.ordinal()]); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { ; return TA_RetCode.TA_SUCCESS; } outIdx = 0; today = startIdx - lookbackTotal; prevValue = (inHigh[today] + inLow[today] + inClose[today]) / 3.0; posSumMF = 0.0; negSumMF = 0.0; today++; for (i = optInTimePeriod; i > 0; i--) { tempValue1 = (inHigh[today] + inLow[today] + inClose[today]) / 3.0; tempValue2 = tempValue1 - prevValue; prevValue = tempValue1; tempValue1 *= inVolume[today++]; if (tempValue2 < 0) { (mflow[mflow_Idx]).negative = tempValue1; negSumMF += tempValue1; (mflow[mflow_Idx]).positive = 0.0; } else { (mflow[mflow_Idx]).positive = tempValue1; posSumMF += tempValue1; (mflow[mflow_Idx]).negative = 0.0; } { mflow_Idx++; if (mflow_Idx > maxIdx_mflow) mflow_Idx = 0; } ; } if (today > startIdx) { tempValue1 = posSumMF + negSumMF; if (tempValue1 < 1.0) outReal[outIdx++] = 0.0; else outReal[outIdx++] = 100.0 * (posSumMF / tempValue1); } else { while (today < startIdx) { posSumMF -= (mflow[mflow_Idx]).positive; negSumMF -= (mflow[mflow_Idx]).negative; tempValue1 = (inHigh[today] + inLow[today] + inClose[today]) / 3.0; tempValue2 = tempValue1 - prevValue; prevValue = tempValue1; tempValue1 *= inVolume[today++]; if (tempValue2 < 0) { (mflow[mflow_Idx]).negative = tempValue1; negSumMF += tempValue1; (mflow[mflow_Idx]).positive = 0.0; } else { (mflow[mflow_Idx]).positive = tempValue1; posSumMF += tempValue1; (mflow[mflow_Idx]).negative = 0.0; } { mflow_Idx++; if (mflow_Idx > maxIdx_mflow) mflow_Idx = 0; } ; } } while (today <= endIdx) { posSumMF -= (mflow[mflow_Idx]).positive; negSumMF -= (mflow[mflow_Idx]).negative; tempValue1 = (inHigh[today] + inLow[today] + inClose[today]) / 3.0; tempValue2 = tempValue1 - prevValue; prevValue = tempValue1; tempValue1 *= inVolume[today++]; if (tempValue2 < 0) { (mflow[mflow_Idx]).negative = tempValue1; negSumMF += tempValue1; (mflow[mflow_Idx]).positive = 0.0; } else { (mflow[mflow_Idx]).positive = tempValue1; posSumMF += tempValue1; (mflow[mflow_Idx]).negative = 0.0; } tempValue1 = posSumMF + negSumMF; if (tempValue1 < 1.0) outReal[outIdx++] = 0.0; else outReal[outIdx++] = 100.0 * (posSumMF / tempValue1); { mflow_Idx++; if (mflow_Idx > maxIdx_mflow) mflow_Idx = 0; } ; } ; outBegIdx.value = startIdx; outNbElement.value = outIdx; return TA_RetCode.TA_SUCCESS; } | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/5df8081f2a7211016256c0f481213a987e02947a/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
490,
1653,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
8573,
63,
6487,
1082,
202,
9056,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
6487,
509,
316,
4545,
63,
6487,
1082,
202,
474,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1082,
202,
9056,
29205,
63,
5717,
288,
202,
202,
9056,
949,
3495,
13542,
16,
4251,
3495,
13542,
16,
2807,
620,
31,
202,
202,
9056,
1906,
620,
21,
16,
1906,
620,
22,
31,
202,
202,
474,
2324,
823,
5269,
16,
596,
4223,
16,
277,
16,
10074,
31,
202,
202,
474,
312,
2426,
67,
4223,
273,
374,
31,
202,
202,
23091,
5249,
8526,
312,
2426,
31,
202,
202,
474,
943,
4223,
67,
81,
2426,
273,
261,
3361,
300,
404,
1769,
202,
202,
430,
261,
1937,
4223,
411,
374,
13,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
202,
202,
430,
14015,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
202,
202,
430,
14015,
474,
13,
2153,
382,
26540,
422,
261,
4522,
18,
6236,
67,
4051,
8623,
1082,
202,
3838,
382,
26540,
273,
5045,
31,
202,
202,
12107,
309,
261,
12443,
474,
13,
2153,
382,
26540,
411,
576,
13,
9506,
202,
20081,
14015,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
490,
1653,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
8573,
63,
6487,
1082,
202,
9056,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
6487,
509,
316,
4545,
63,
6487,
1082,
202,
474,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1082,
202,
9056,
29205,
63,
5717,
288,
202,
202,
9056,
949,
3495,
13542,
16,
4251,
3495,
13542,
16,
2807,
620,
31,
202,
202,
9056,
1906,
620,
21,
16,
1906,
620,
22,
31,
202,
202,
474,
2324,
823,
5269,
16,
596,
4223,
16,
277,
16,
10074,
31,
202,
202,
474,
312,
2426,
67,
4223,
273,
374,
31,
202,
202,
23091,
5249,
2
] |
|
if (actual == Double.TYPE || actual == Double.class) { return requested == Double.TYPE || requested == Double.class; | if (actual == double.class || actual == Double.class) { return requested == double.class || requested == Double.class; | public static boolean isAssignableFrom(Class actual, Class requested) { if (actual == Character.TYPE || actual == Character.class) { return requested == Character.TYPE || requested == Character.class; } if (actual == Double.TYPE || actual == Double.class) { return requested == Double.TYPE || requested == Double.class; } if (actual == Float.TYPE || actual == Float.class) { return requested == Float.TYPE || requested == Float.class; } if (actual == Integer.TYPE || actual == Integer.class) { return requested == Integer.TYPE || requested == Integer.class; } if (actual == Long.TYPE || actual == Long.class) { return requested == Long.TYPE || requested == Long.class; } if (actual == Short.TYPE || actual == Short.class) { return requested == Short.TYPE || requested == Short.class; } if (actual == Byte.TYPE || actual == Byte.class) { return requested == Byte.TYPE || requested == Byte.class; } if (actual == Boolean.TYPE || actual == Boolean.class) { return requested == Boolean.TYPE || requested == Boolean.class; } return actual.isAssignableFrom(requested); } | 14040 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14040/377293c874203a82fce4637444b564e1a2a83426/ConstructorComponentAdapter.java/buggy/java/picocontainer/src/java/org/picocontainer/defaults/ConstructorComponentAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
8917,
12,
797,
3214,
16,
1659,
3764,
13,
288,
3639,
309,
261,
18672,
422,
6577,
18,
2399,
747,
3214,
422,
6577,
18,
1106,
13,
288,
5411,
327,
3764,
422,
6577,
18,
2399,
747,
3764,
422,
6577,
18,
1106,
31,
3639,
289,
3639,
309,
261,
18672,
422,
3698,
18,
2399,
747,
3214,
422,
3698,
18,
1106,
13,
288,
5411,
327,
3764,
422,
3698,
18,
2399,
747,
3764,
422,
3698,
18,
1106,
31,
3639,
289,
3639,
309,
261,
18672,
422,
5450,
18,
2399,
747,
3214,
422,
5450,
18,
1106,
13,
288,
5411,
327,
3764,
422,
5450,
18,
2399,
747,
3764,
422,
5450,
18,
1106,
31,
3639,
289,
3639,
309,
261,
18672,
422,
2144,
18,
2399,
747,
3214,
422,
2144,
18,
1106,
13,
288,
5411,
327,
3764,
422,
2144,
18,
2399,
747,
3764,
422,
2144,
18,
1106,
31,
3639,
289,
3639,
309,
261,
18672,
422,
3407,
18,
2399,
747,
3214,
422,
3407,
18,
1106,
13,
288,
5411,
327,
3764,
422,
3407,
18,
2399,
747,
3764,
422,
3407,
18,
1106,
31,
3639,
289,
3639,
309,
261,
18672,
422,
7925,
18,
2399,
747,
3214,
422,
7925,
18,
1106,
13,
288,
5411,
327,
3764,
422,
7925,
18,
2399,
747,
3764,
422,
7925,
18,
1106,
31,
3639,
289,
3639,
309,
261,
18672,
422,
3506,
18,
2399,
747,
3214,
422,
3506,
18,
1106,
13,
288,
5411,
327,
3764,
422,
3506,
18,
2399,
747,
3764,
422,
3506,
18,
1106,
31,
3639,
289,
3639,
309,
261,
18672,
422,
3411,
18,
2399,
747,
3214,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
8917,
12,
797,
3214,
16,
1659,
3764,
13,
288,
3639,
309,
261,
18672,
422,
6577,
18,
2399,
747,
3214,
422,
6577,
18,
1106,
13,
288,
5411,
327,
3764,
422,
6577,
18,
2399,
747,
3764,
422,
6577,
18,
1106,
31,
3639,
289,
3639,
309,
261,
18672,
422,
3698,
18,
2399,
747,
3214,
422,
3698,
18,
1106,
13,
288,
5411,
327,
3764,
422,
3698,
18,
2399,
747,
3764,
422,
3698,
18,
1106,
31,
3639,
289,
3639,
309,
261,
18672,
422,
5450,
18,
2399,
747,
3214,
422,
5450,
18,
1106,
13,
288,
5411,
327,
3764,
422,
5450,
18,
2399,
747,
3764,
422,
5450,
18,
1106,
31,
3639,
289,
3639,
309,
261,
18672,
422,
2144,
18,
2399,
747,
3214,
2
] |
public org.quickfix.field.OptAttribute getOptAttribute() throws FieldNotFound { org.quickfix.field.OptAttribute value = new org.quickfix.field.OptAttribute(); | public quickfix.field.OptAttribute getOptAttribute() throws FieldNotFound { quickfix.field.OptAttribute value = new quickfix.field.OptAttribute(); | public org.quickfix.field.OptAttribute getOptAttribute() throws FieldNotFound { org.quickfix.field.OptAttribute value = new org.quickfix.field.OptAttribute(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusRequest.java/clean/src/java/src/quickfix/fix42/QuoteStatusRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
6179,
1499,
28959,
1499,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
6179,
1499,
28959,
1499,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
6179,
1499,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
6179,
1499,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void doSetterTest( String jsValue, String setter, String getter, String field, Object eResult ) { String setMethod = setter +"(" + jsValue +");"; String getMethod = getter + "();"; String setterResult = "No exception thrown"; Double getterResult = null; Double fieldResult = null; Object expectedResult = null; if ( eResult.getClass().equals(Class.forName("java.lang.String")) ) { try { global.eval( setMethod ); | public void doSetterTest(String jsValue, String setter, String getter, String field, Object eResult ) { String setMethod = setter +"(" + jsValue +");"; String getMethod = getter + "();"; String setterResult = "No exception thrown"; Double getterResult = null; Double fieldResult = null; Object expectedResult = null; boolean eq = false; try { eq = eResult.getClass().equals(Class.forName("java.lang.String")); } catch (ClassNotFoundException e) { addTestCase (setMethod + " driver error.", "very", "bad", file.exception); } if (eq) { try { global.eval( setMethod ); | public void doSetterTest( String jsValue, String setter, String getter, String field, Object eResult ) { String setMethod = setter +"(" + jsValue +");"; String getMethod = getter + "();"; String setterResult = "No exception thrown"; Double getterResult = null; Double fieldResult = null; Object expectedResult = null; if ( eResult.getClass().equals(Class.forName("java.lang.String")) ) { try { global.eval( setMethod ); } catch ( Exception e ) { setterResult = EXCEPTION; file.exception = e.toString(); e.printStackTrace(); } finally { addTestCase( setMethod +" should throw a JSException", EXCEPTION, setterResult, file.exception ); } } else { try { // From JavaScript, call the setter global.eval( setMethod ); // From JavaScript, call the getter getterResult = (Double) global.eval( getMethod ); // From JavaSript, access the field fieldResult = (Double) global.eval( field ); } catch ( Exception e ) { e.printStackTrace(); file.exception = e.toString(); } finally { addTestCase( "[value: " + getterResult +"; expected: " + expectedResult +"] "+ setMethod + getMethod + "( " + expectedResult +").equals(" + getterResult +")", "true", expectedResult.equals(getterResult) +"", file.exception ); addTestCase( "[value: " + fieldResult +"; expected: " + expectedResult +"] "+ setMethod + field +"; (" + expectedResult +").equals(" + fieldResult +")", "true", expectedResult.equals(fieldResult) +"", file.exception ); } } } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/bac4bd315b102f6f472241f3ebe7f211c028fc5c/DataTypes_017.java/buggy/js/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_017.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
202,
2896,
8465,
4709,
12,
514,
3828,
620,
16,
514,
7794,
16,
514,
202,
11990,
16,
6862,
9506,
202,
780,
652,
16,
1033,
425,
1253,
262,
202,
95,
202,
202,
780,
19539,
273,
7794,
397,
6,
2932,
397,
3828,
620,
397,
8863,
14432,
202,
202,
780,
6272,
273,
7060,
397,
202,
6,
26994,
31,
202,
202,
780,
7794,
1253,
273,
315,
2279,
1520,
6718,
14432,
202,
202,
5265,
7060,
1253,
273,
446,
31,
202,
202,
5265,
652,
1253,
273,
446,
31,
9506,
202,
921,
2665,
1253,
273,
446,
31,
9506,
202,
430,
261,
425,
1253,
18,
588,
797,
7675,
14963,
12,
797,
18,
1884,
461,
2932,
6290,
18,
4936,
18,
780,
6,
3719,
262,
288,
1082,
565,
775,
288,
1082,
3639,
2552,
18,
8622,
12,
19539,
11272,
5411,
289,
1044,
261,
1185,
425,
262,
288,
7734,
7794,
1253,
273,
23136,
31,
7734,
585,
18,
4064,
273,
425,
18,
10492,
5621,
7734,
425,
18,
1188,
6332,
5621,
5411,
289,
3095,
288,
7734,
527,
4709,
2449,
12,
10792,
19539,
397,
6,
1410,
604,
279,
6756,
503,
3113,
10792,
23136,
16,
10792,
7794,
1253,
16,
10792,
585,
18,
4064,
11272,
5411,
289,
202,
202,
97,
469,
288,
377,
6862,
565,
775,
202,
95,
9506,
565,
368,
6338,
202,
16634,
16,
202,
1991,
326,
7794,
9506,
565,
2552,
18,
8622,
12,
19539,
11272,
9506,
565,
368,
6338,
202,
16634,
16,
202,
1991,
326,
7060,
9506,
565,
7060,
1253,
273,
261,
5265,
13,
202,
6347,
18,
8622,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
202,
2896,
8465,
4709,
12,
514,
3828,
620,
16,
514,
7794,
16,
514,
202,
11990,
16,
6862,
9506,
202,
780,
652,
16,
1033,
425,
1253,
262,
202,
95,
202,
202,
780,
19539,
273,
7794,
397,
6,
2932,
397,
3828,
620,
397,
8863,
14432,
202,
202,
780,
6272,
273,
7060,
397,
202,
6,
26994,
31,
202,
202,
780,
7794,
1253,
273,
315,
2279,
1520,
6718,
14432,
202,
202,
5265,
7060,
1253,
273,
446,
31,
202,
202,
5265,
652,
1253,
273,
446,
31,
9506,
202,
921,
2665,
1253,
273,
446,
31,
9506,
202,
430,
261,
425,
1253,
18,
588,
797,
7675,
14963,
12,
797,
18,
1884,
461,
2932,
6290,
18,
4936,
18,
780,
6,
3719,
262,
288,
2
] |
"-listener", | "-logger", | public void testGetCommandLineArgs_Debug() throws CruiseControlException { String[] resultDebug = { javaCmd, "-classpath", antLauncherPath, "org.apache.tools.ant.launch.Launcher", "-lib", classpath, "-listener", "org.apache.tools.ant.XmlLogger", "-DXmlLogger.file=log.xml", "-Dlabel=200.1.23", "-debug", "-buildfile", "buildfile", "target" }; builder.setUseDebug(true); assertTrue( Arrays.equals( resultDebug, builder.getCommandLineArgs(properties, false, false, false))); } | 52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/b97d4bead40bfa271d31068241ab93679686b867/AntBuilderTest.java/clean/main/test/net/sourceforge/cruisecontrol/builders/AntBuilderTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
21391,
2615,
67,
2829,
1435,
1216,
385,
8653,
784,
3367,
503,
288,
3639,
514,
8526,
563,
2829,
273,
5411,
288,
7734,
2252,
5931,
16,
7734,
3701,
26302,
3113,
7734,
17841,
28820,
743,
16,
7734,
315,
3341,
18,
19211,
18,
6642,
18,
970,
18,
20738,
18,
28820,
3113,
7734,
3701,
2941,
3113,
7734,
10006,
16,
7734,
3701,
4901,
3113,
7734,
315,
3341,
18,
19211,
18,
6642,
18,
970,
18,
4432,
3328,
3113,
7734,
3701,
40,
4432,
3328,
18,
768,
33,
1330,
18,
2902,
3113,
7734,
3701,
40,
1925,
33,
6976,
18,
21,
18,
4366,
3113,
7734,
3701,
4148,
3113,
7734,
3701,
3510,
768,
3113,
7734,
315,
3510,
768,
3113,
7734,
315,
3299,
6,
289,
31,
3639,
2089,
18,
542,
3727,
2829,
12,
3767,
1769,
3639,
1815,
5510,
12,
5411,
5647,
18,
14963,
12,
7734,
563,
2829,
16,
7734,
2089,
18,
588,
21391,
2615,
12,
4738,
16,
629,
16,
629,
16,
629,
3719,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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514,
8526,
563,
2829,
273,
5411,
288,
7734,
2252,
5931,
16,
7734,
3701,
26302,
3113,
7734,
17841,
28820,
743,
16,
7734,
315,
3341,
18,
19211,
18,
6642,
18,
970,
18,
20738,
18,
28820,
3113,
7734,
3701,
2941,
3113,
7734,
10006,
16,
7734,
3701,
4901,
3113,
7734,
315,
3341,
18,
19211,
18,
6642,
18,
970,
18,
4432,
3328,
3113,
7734,
3701,
40,
4432,
3328,
18,
768,
33,
1330,
18,
2902,
3113,
7734,
3701,
40,
1925,
33,
6976,
18,
21,
18,
4366,
3113,
7734,
3701,
4148,
3113,
7734,
3701,
3510,
768,
3113,
7734,
315,
3510,
768,
3113,
7734,
315,
3299,
6,
289,
31,
2
] |
System.err.print("js> "); System.err.flush(); | err.print("js> "); err.flush(); | public static void processSource(Context cx, String filename) { SourceTextManager stm = cx.getSourceTextManager(); if (filename == null || filename.equals("-")) { BufferedReader in = new BufferedReader (new InputStreamReader(System.in)); if(null != stm) in = new DebugReader(in, stm, "<stdin>"); int lineno = 1; boolean hitEOF = false; while (!hitEOF && !global.quitting) { int startline = lineno; if (filename == null) System.err.print("js> "); System.err.flush(); try { String source = ""; // Collect lines of source to compile. while(true) { String newline; newline = in.readLine(); if (newline == null) { hitEOF = true; break; } source = source + newline + "\n"; lineno++; if (cx.stringIsCompilableUnit(source)) break; } Object result = cx.evaluateString(global, source, "<stdin>", startline, null); if (result != cx.getUndefinedValue()) { System.err.println(cx.toString(result)); } NativeArray h = global.history; h.put((int)h.jsGet_length(), h, source); } catch (WrappedException we) { // Some form of exception was caught by JavaScript and // propagated up. System.err.println(we.getWrappedException().toString()); we.printStackTrace(); } catch (EvaluatorException ee) { // Some form of JavaScript error. // Already printed message, so just fall through. } catch (JavaScriptException jse) { // Need to propagate ThreadDeath exceptions. Object value = jse.getValue(); if (value instanceof ThreadDeath) throw (ThreadDeath) value; Context.reportError(ToolErrorReporter.getMessage( "msg.uncaughtJSException", jse.getMessage())); } catch (IOException ioe) { System.err.println(ioe.toString()); } if (global.quitting) { // The user executed the quit() function. break; } } System.err.println(); } else { Reader in = null; try { in = new PushbackReader(new FileReader(filename)); int c = in.read(); // Support the executable script #! syntax: If // the first line begins with a '#', treat the whole // line as a comment. if (c == '#') { while ((c = in.read()) != -1) { if (c == '\n' || c == '\r') break; } ((PushbackReader) in).unread(c); } else { // No '#' line, just reopen the file and forget it // ever happened. OPT closing and reopening // undoubtedly carries some cost. Is this faster // or slower than leaving the PushbackReader // around? in.close(); in = new FileReader(filename); } if(null != stm) in = new DebugReader(in, stm, filename); } catch (FileNotFoundException ex) { Context.reportError(ToolErrorReporter.getMessage( "msg.couldnt.open", filename)); return; } catch (IOException ioe) { System.err.println(ioe.toString()); } try { // Here we evalute the entire contents of the file as // a script. Text is printed only if the print() function // is called. cx.evaluateReader(global, in, filename, 1, null); } catch (WrappedException we) { System.err.println(we.getWrappedException().toString()); we.printStackTrace(); } catch (EvaluatorException ee) { // Already printed message, so just fall through. } catch (JavaScriptException jse) { // Need to propagate ThreadDeath exceptions. Object value = jse.getValue(); if (value instanceof ThreadDeath) throw (ThreadDeath) value; Context.reportError(ToolErrorReporter.getMessage( "msg.uncaughtJSException", jse.getMessage())); } catch (IOException ioe) { System.err.println(ioe.toString()); } finally { try { in.close(); } catch (IOException ioe) { System.err.println(ioe.toString()); } } } System.gc(); } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/de8bedf312b2fad23c19d3781ea5e0b40c31a314/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/shell/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1207,
1830,
12,
1042,
9494,
16,
514,
1544,
13,
288,
3639,
4998,
1528,
1318,
28358,
273,
9494,
18,
588,
1830,
1528,
1318,
5621,
3639,
309,
261,
3459,
422,
446,
747,
1544,
18,
14963,
2932,
10951,
3719,
288,
5411,
10633,
316,
273,
394,
10633,
7734,
261,
2704,
15322,
12,
3163,
18,
267,
10019,
5411,
309,
12,
2011,
480,
28358,
13,
7734,
316,
273,
394,
4015,
2514,
12,
267,
16,
28358,
16,
3532,
21772,
2984,
1769,
15604,
509,
7586,
273,
404,
31,
5411,
1250,
6800,
12706,
273,
629,
31,
5411,
1323,
16051,
15989,
12706,
597,
401,
6347,
18,
27176,
1787,
13,
288,
7734,
509,
787,
1369,
273,
7586,
31,
7734,
309,
261,
3459,
422,
446,
13,
10792,
2332,
18,
370,
18,
1188,
2932,
2924,
34,
315,
1769,
7734,
2332,
18,
370,
18,
11330,
5621,
7734,
775,
288,
10792,
514,
1084,
273,
1408,
31,
4766,
3639,
368,
9302,
2362,
434,
1084,
358,
4074,
18,
10792,
1323,
12,
3767,
13,
288,
13491,
514,
9472,
31,
13491,
9472,
273,
316,
18,
896,
1670,
5621,
13491,
309,
261,
22861,
422,
446,
13,
288,
18701,
6800,
12706,
273,
638,
31,
18701,
898,
31,
13491,
289,
13491,
1084,
273,
1084,
397,
9472,
397,
1548,
82,
14432,
13491,
7586,
9904,
31,
13491,
309,
261,
71,
92,
18,
1080,
2520,
2945,
330,
429,
2802,
12,
3168,
3719,
18701,
898,
31,
10792,
289,
10792,
1033,
563,
273,
9494,
18,
21024,
780,
12,
6347,
16,
1084,
16,
4766,
8227,
3532,
21772,
2984,
16,
787,
1369,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1207,
1830,
12,
1042,
9494,
16,
514,
1544,
13,
288,
3639,
4998,
1528,
1318,
28358,
273,
9494,
18,
588,
1830,
1528,
1318,
5621,
3639,
309,
261,
3459,
422,
446,
747,
1544,
18,
14963,
2932,
10951,
3719,
288,
5411,
10633,
316,
273,
394,
10633,
7734,
261,
2704,
15322,
12,
3163,
18,
267,
10019,
5411,
309,
12,
2011,
480,
28358,
13,
7734,
316,
273,
394,
4015,
2514,
12,
267,
16,
28358,
16,
3532,
21772,
2984,
1769,
15604,
509,
7586,
273,
404,
31,
5411,
1250,
6800,
12706,
273,
629,
31,
5411,
1323,
16051,
15989,
12706,
597,
401,
6347,
18,
27176,
1787,
13,
288,
7734,
509,
787,
1369,
273,
7586,
31,
7734,
309,
261,
3459,
422,
446,
13,
10792,
2
] |
project.getOriginalModel().setVersion( projectVersion ); resolvedVersions.put( projectId, projectVersion ); | public void incrementVersion( MavenProject project ) throws MojoExecutionException { String projectId = ArtifactUtils.versionlessKey( project.getGroupId(), project.getArtifactId() ); String projectVersion = (String) resolvedVersions.get( projectId ); if ( projectVersion == null ) { throw new IllegalArgumentException( "Project \'" + projectId + "\' has not been resolved. Cannot increment an unresolved version." ); } // TODO: we will need to incorporate versioning strategies here because it is unlikely // that everyone will be able to agree on a standard. This is extremely limited right // now and really only works for the way maven is versioned. // releaseVersion = 1.0-beta-4 // snapshotVersion = 1.0-beta-5-SNAPSHOT String nextVersionString = projectVersion.substring( projectVersion.lastIndexOf( "-" ) + 1 ); try { nextVersionString = Integer.toString( Integer.parseInt( nextVersionString ) + 1 ); projectVersion = projectVersion.substring( 0, projectVersion.lastIndexOf( "-" ) + 1 ) + nextVersionString + SNAPSHOT_CLASSIFIER; } catch ( NumberFormatException e ) { projectVersion = ""; } if ( interactive ) { try { log.info( "What is the new development version for \'" + projectId + "\'? [" + projectVersion + "]" ); String inputVersion = inputHandler.readLine(); if ( !StringUtils.isEmpty( inputVersion ) ) { projectVersion = inputVersion; } project.getOriginalModel().setVersion( projectVersion ); resolvedVersions.put( projectId, projectVersion ); } catch ( IOException e ) { throw new MojoExecutionException( "Can't read next development version from user input.", e ); } } else if ( "".equals( projectVersion ) ) { throw new MojoExecutionException( "Cannot determine incremented development version for: " + projectId ); } } | 51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/b73908aa3bc83f4038c4df7fed660648a024f3bf/ProjectVersionResolver.java/buggy/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/helpers/ProjectVersionResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5504,
1444,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
514,
9882,
273,
14022,
1989,
18,
1589,
2656,
653,
12,
1984,
18,
588,
8722,
9334,
1984,
18,
588,
7581,
548,
1435,
11272,
3639,
514,
1984,
1444,
273,
261,
780,
13,
4640,
5940,
18,
588,
12,
9882,
11272,
3639,
309,
261,
1984,
1444,
422,
446,
262,
3639,
288,
5411,
604,
394,
2754,
12,
7734,
315,
4109,
521,
4970,
397,
9882,
397,
1548,
11,
711,
486,
2118,
4640,
18,
14143,
5504,
392,
20573,
1177,
1199,
11272,
3639,
289,
3639,
368,
2660,
30,
732,
903,
1608,
358,
316,
3850,
3831,
340,
1177,
310,
20417,
2674,
2724,
518,
353,
29372,
3639,
368,
716,
3614,
476,
903,
506,
7752,
358,
1737,
992,
603,
279,
4529,
18,
1220,
353,
23755,
2357,
13594,
2145,
3639,
368,
2037,
471,
8654,
1338,
6330,
364,
326,
4031,
20499,
353,
17083,
18,
3639,
368,
3992,
1444,
273,
404,
18,
20,
17,
5758,
17,
24,
3639,
368,
4439,
1444,
273,
404,
18,
20,
17,
5758,
17,
25,
17,
13653,
31667,
3639,
514,
1024,
1444,
780,
273,
1984,
1444,
18,
28023,
12,
1984,
1444,
18,
2722,
31985,
12,
7514,
262,
397,
404,
11272,
3639,
775,
3639,
288,
5411,
1024,
1444,
780,
273,
2144,
18,
10492,
12,
2144,
18,
2670,
1702,
12,
1024,
1444,
780,
262,
397,
404,
11272,
5411,
1984,
1444,
273,
1984,
1444,
18,
28023,
12,
374,
16,
1984,
1444,
18,
2722,
31985,
12,
7514,
262,
397,
404,
262,
397,
1024,
1444,
780,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5504,
1444,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
514,
9882,
273,
14022,
1989,
18,
1589,
2656,
653,
12,
1984,
18,
588,
8722,
9334,
1984,
18,
588,
7581,
548,
1435,
11272,
3639,
514,
1984,
1444,
273,
261,
780,
13,
4640,
5940,
18,
588,
12,
9882,
11272,
3639,
309,
261,
1984,
1444,
422,
446,
262,
3639,
288,
5411,
604,
394,
2754,
12,
7734,
315,
4109,
521,
4970,
397,
9882,
397,
1548,
11,
711,
486,
2118,
4640,
18,
14143,
5504,
392,
20573,
1177,
1199,
11272,
3639,
289,
3639,
368,
2660,
30,
732,
903,
1608,
358,
316,
3850,
3831,
340,
1177,
310,
20417,
2674,
2724,
518,
353,
29372,
3639,
368,
716,
3614,
476,
903,
506,
2
] |
|
{ if (filechooser.isAcceptAllFileFilterUsed()) filechooser.addChoosableFileFilter(getAcceptAllFileFilter(filechooser)); else filechooser.removeChoosableFileFilter(getAcceptAllFileFilter(filechooser)); } | { if (filechooser.isAcceptAllFileFilterUsed()) filechooser.addChoosableFileFilter(getAcceptAllFileFilter(filechooser)); else filechooser.removeChoosableFileFilter(getAcceptAllFileFilter(filechooser)); } | public void propertyChange(PropertyChangeEvent e) { // FIXME: Multiple file selection waiting on JList multiple selection // bug. if (e.getPropertyName().equals( JFileChooser.SELECTED_FILE_CHANGED_PROPERTY)) { if (filechooser.getSelectedFile() == null) setFileName(null); else setFileName(filechooser.getSelectedFile().toString()); int index = -1; File file = filechooser.getSelectedFile(); for (index = 0; index < model.getSize(); index++) if (((File) model.getElementAt(index)).equals(file)) break; if (index == -1) return; filelist.setSelectedIndex(index); filelist.ensureIndexIsVisible(index); filelist.revalidate(); filelist.repaint(); } else if (e.getPropertyName().equals( JFileChooser.DIRECTORY_CHANGED_PROPERTY)) { filelist.clearSelection(); filelist.revalidate(); filelist.repaint(); setDirectorySelected(false); setDirectory(filechooser.getCurrentDirectory()); boxEntries(); } else if (e.getPropertyName().equals( JFileChooser.CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY) || e.getPropertyName().equals( JFileChooser.FILE_FILTER_CHANGED_PROPERTY)) filterEntries(); else if (e.getPropertyName().equals( JFileChooser.DIALOG_TYPE_CHANGED_PROPERTY) || e.getPropertyName().equals( JFileChooser.DIALOG_TITLE_CHANGED_PROPERTY)) { Window owner = SwingUtilities.windowForComponent(filechooser); if (owner instanceof JDialog) ((JDialog) owner).setTitle(getDialogTitle(filechooser)); accept.setText(getApproveButtonText(filechooser)); accept.setToolTipText(getApproveButtonToolTipText(filechooser)); accept.setMnemonic(getApproveButtonMnemonic(filechooser)); } else if (e.getPropertyName().equals( JFileChooser.APPROVE_BUTTON_TEXT_CHANGED_PROPERTY)) accept.setText(getApproveButtonText(filechooser)); else if (e.getPropertyName().equals( JFileChooser.APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY)) accept.setToolTipText(getApproveButtonToolTipText(filechooser)); else if (e.getPropertyName().equals( JFileChooser.APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY)) accept.setMnemonic(getApproveButtonMnemonic(filechooser)); else if (e.getPropertyName().equals( JFileChooser.CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY)) { if (filechooser.getControlButtonsAreShown()) { GridBagConstraints c = new GridBagConstraints(); c.gridy = 1; bottomPanel.add(filters, c); c.fill = GridBagConstraints.BOTH; c.gridy = 2; c.anchor = GridBagConstraints.EAST; bottomPanel.add(closePanel, c); bottomPanel.revalidate(); bottomPanel.repaint(); bottomPanel.doLayout(); } else bottomPanel.remove(closePanel); } else if (e.getPropertyName().equals( JFileChooser.ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY)) { if (filechooser.isAcceptAllFileFilterUsed()) filechooser.addChoosableFileFilter(getAcceptAllFileFilter(filechooser)); else filechooser.removeChoosableFileFilter(getAcceptAllFileFilter(filechooser)); } else if (e.getPropertyName().equals( JFileChooser.ACCESSORY_CHANGED_PROPERTY)) { JComponent old = (JComponent) e.getOldValue(); if (old != null) getAccessoryPanel().remove(old); JComponent newval = (JComponent) e.getNewValue(); if (newval != null) getAccessoryPanel().add(newval); } if (e.getPropertyName().equals(JFileChooser.DIRECTORY_CHANGED_PROPERTY) || e.getPropertyName().equals( JFileChooser.FILE_FILTER_CHANGED_PROPERTY) || e.getPropertyName().equals( JFileChooser.FILE_HIDING_CHANGED_PROPERTY)) rescanCurrentDirectory(filechooser); filechooser.revalidate(); filechooser.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1272,
3043,
12,
1396,
20930,
425,
13,
202,
95,
3639,
368,
9852,
30,
13531,
585,
4421,
7336,
603,
804,
682,
3229,
4421,
3639,
368,
7934,
18,
3639,
309,
261,
73,
18,
588,
13073,
7675,
14963,
12,
4766,
4202,
804,
812,
17324,
18,
4803,
2056,
67,
3776,
67,
24435,
67,
9900,
3719,
202,
565,
288,
202,
1377,
309,
261,
768,
2599,
13164,
18,
588,
7416,
812,
1435,
422,
446,
13,
202,
202,
542,
4771,
12,
2011,
1769,
202,
1377,
469,
202,
202,
542,
4771,
12,
768,
2599,
13164,
18,
588,
7416,
812,
7675,
10492,
10663,
202,
1377,
509,
770,
273,
300,
21,
31,
202,
1377,
1387,
585,
273,
585,
2599,
13164,
18,
588,
7416,
812,
5621,
202,
1377,
364,
261,
1615,
273,
374,
31,
770,
411,
938,
18,
588,
1225,
5621,
770,
27245,
202,
202,
430,
261,
12443,
812,
13,
938,
18,
21336,
861,
12,
1615,
13,
2934,
14963,
12,
768,
3719,
1082,
225,
898,
31,
202,
1377,
309,
261,
1615,
422,
300,
21,
13,
202,
202,
2463,
31,
202,
1377,
26204,
18,
542,
7416,
1016,
12,
1615,
1769,
202,
1377,
26204,
18,
15735,
1016,
2520,
6207,
12,
1615,
1769,
202,
1377,
26204,
18,
266,
5662,
5621,
202,
1377,
26204,
18,
14462,
1598,
5621,
202,
565,
289,
3639,
469,
309,
261,
73,
18,
588,
13073,
7675,
14963,
12,
4766,
5411,
804,
812,
17324,
18,
17229,
67,
24435,
67,
9900,
3719,
202,
565,
288,
202,
1377,
26204,
18,
8507,
6233,
5621,
202,
1377,
26204,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1272,
3043,
12,
1396,
20930,
425,
13,
202,
95,
3639,
368,
9852,
30,
13531,
585,
4421,
7336,
603,
804,
682,
3229,
4421,
3639,
368,
7934,
18,
3639,
309,
261,
73,
18,
588,
13073,
7675,
14963,
12,
4766,
4202,
804,
812,
17324,
18,
4803,
2056,
67,
3776,
67,
24435,
67,
9900,
3719,
202,
565,
288,
202,
1377,
309,
261,
768,
2599,
13164,
18,
588,
7416,
812,
1435,
422,
446,
13,
202,
202,
542,
4771,
12,
2011,
1769,
202,
1377,
469,
202,
202,
542,
4771,
12,
768,
2599,
13164,
18,
588,
7416,
812,
7675,
10492,
10663,
202,
1377,
509,
770,
273,
300,
21,
31,
202,
1377,
1387,
585,
273,
585,
2599,
13164,
18,
588,
7416,
812,
5621,
2
] |
public void set(org.quickfix.field.QuoteReqID value) | public void set(quickfix.field.QuoteReqID value) | public void set(org.quickfix.field.QuoteReqID value) { setField(value); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Quote.java/buggy/src/java/src/quickfix/fix41/Quote.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
10257,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
10257,
6113,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return this.sid; | return sid; | public short getSid() { return this.sid; } | 509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3025,
1322,
350,
1435,
565,
288,
3639,
327,
7348,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
new GregorianCalendar(2001, 4, 18, 8, 0, 0).getTime(); | new GregorianCalendar(2001, 4, 18, 8, 0, 0).getTime(); | public void testFormatCVSDateGMTPlusTen() { TimeZone.setDefault(TimeZone.getTimeZone("GMT+10:00")); Date mayEighteenSixPM2001 = new GregorianCalendar(2001, 4, 18, 18, 0, 0).getTime(); assertEquals( "2001-05-18 08:00:00 GMT", CVS.formatCVSDate(mayEighteenSixPM2001)); Date may18EightAM2001 = new GregorianCalendar(2001, 4, 18, 8, 0, 0).getTime(); assertEquals( "2001-05-17 22:00:00 GMT", CVS.formatCVSDate(may18EightAM2001)); } | 52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/cc8d12515d217c4869991501dda487dca6f6add8/CVSTest.java/buggy/main/test/net/sourceforge/cruisecontrol/sourcecontrols/CVSTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1630,
39,
14640,
1626,
25315,
13207,
25601,
1435,
288,
3639,
16491,
18,
542,
1868,
12,
16760,
18,
588,
16760,
2932,
25315,
15,
2163,
30,
713,
7923,
1769,
3639,
2167,
2026,
41,
750,
73,
275,
55,
697,
12728,
6976,
21,
273,
5411,
394,
28033,
12,
6976,
21,
16,
1059,
16,
6549,
16,
6549,
16,
374,
16,
374,
2934,
588,
950,
5621,
3639,
1815,
8867,
12,
5411,
315,
6976,
21,
17,
6260,
17,
2643,
16314,
30,
713,
30,
713,
21706,
3113,
5411,
385,
14640,
18,
2139,
39,
14640,
1626,
12,
24877,
41,
750,
73,
275,
55,
697,
12728,
6976,
21,
10019,
3639,
2167,
2026,
2643,
41,
750,
2192,
6976,
21,
273,
5411,
394,
28033,
12,
6976,
21,
16,
1059,
16,
6549,
16,
1725,
16,
374,
16,
374,
2934,
588,
950,
5621,
3639,
1815,
8867,
12,
5411,
315,
6976,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1630,
39,
14640,
1626,
25315,
13207,
25601,
1435,
288,
3639,
16491,
18,
542,
1868,
12,
16760,
18,
588,
16760,
2932,
25315,
15,
2163,
30,
713,
7923,
1769,
3639,
2167,
2026,
41,
750,
73,
275,
55,
697,
12728,
6976,
21,
273,
5411,
394,
28033,
12,
6976,
21,
16,
1059,
16,
6549,
16,
6549,
16,
374,
16,
374,
2934,
588,
950,
5621,
3639,
1815,
8867,
12,
5411,
315,
6976,
21,
17,
6260,
17,
2643,
16314,
30,
713,
30,
713,
21706,
3113,
5411,
385,
14640,
18,
2139,
39,
14640,
1626,
12,
24877,
41,
750,
73,
275,
55,
697,
12728,
6976,
21,
10019,
3639,
2167,
2026,
2643,
41,
750,
2192,
6976,
21,
273,
5411,
394,
28033,
12,
6976,
21,
2
] |
if (parent == root) | if (q == root) | public final void insertNode(QSortedTreeNode o) { Node node = (Node) o; Node current = (Node) root.child[0]; Node parent = (Node) root; int lastDir = 0; while (current != null) { if (current.value > node.value) lastDir = 0; else lastDir = 1; parent = current; current = (Node) current.child[lastDir]; } // Insert node parent.child[lastDir] = node; node.parent = parent; // Node color is red, so property 3 is preserved. // We must check if property 2 is violated, in which // case our tree has to be rebalanced and/or repainted. // Case 1: root node if (parent == root) { // We enforce root node to be black, this eases // other cases below. logger.debug("Case 1"); node.isRed = false; return; } for (current = node; current != root; ) { parent = (Node) current.parent; // If parent is black, property 2 is preserved, // everything is fine. // Case 2: parent is black if (parent == root || !parent.isRed) { logger.debug("Case 2"); break; } // Parent is red, so it cannot be the root tree, // and grandparent is black. Node grandparent = (Node) parent.parent; assert grandparent != root; if (grandparent.child[0] == parent) lastDir = 0; else lastDir = 1; int sibDir = 1 - lastDir; Node uncle = (Node) grandparent.child[sibDir]; if (isRedNode(uncle)) { // Case 3: uncle is red /* Paint nodes and continue from grandparent gB gR / \ ------> / \ pR uR pB uB \ \ cR cR */ logger.debug("Case 3"); parent.isRed = false; uncle.isRed = false; grandparent.isRed = true; current = grandparent; } else { assert !isRedNode(uncle); if (parent.child[lastDir] != current) { /* Rotate to put red nodes on the same side gB gB / \ ------> / \ pR uB cR uB \ / cR pR */ logger.debug("Case 4"); current = parent; if (lastDir == 0) grandparent.child[0] = parent.rotateL(); else grandparent.child[1] = parent.rotateR(); parent = (Node) current.parent; } /* Rotate on opposite way and recolor. Either uncle is null, or we come from case 3 and current node has 2 black children. gB pB / \ ------> / \ pR uB cR gR / \ / \ / \ cR zB xB yB zB uB / \ xB yB */ assert (uncle == null && parent.child[sibDir] == null && current.child[0] == null && current.child[1] == null) || (uncle != null && parent.child[sibDir] != null && current.child[0] != null && current.child[1] != null); logger.debug("Case 5"); Node greatgrandparent = (Node) grandparent.parent; grandparent.isRed = true; parent.isRed = false; if (greatgrandparent.child[0] == grandparent) lastDir = 0; else lastDir = 1; // lastDir has been modified, so use sibDir here if (sibDir == 1) greatgrandparent.child[lastDir] = grandparent.rotateR(); else greatgrandparent.child[lastDir] = grandparent.rotateL(); break; } } ((Node) root.child[0]).isRed = false; assert isValid(); } | 45433 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45433/aabb0b5f67b561171594de4a3b264eb276b1df17/PRedBlackSortedTree.java/buggy/amibe/src/org/jcae/mesh/amibe/util/PRedBlackSortedTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2243,
907,
12,
53,
11739,
12513,
320,
13,
202,
95,
202,
202,
907,
756,
273,
261,
907,
13,
320,
31,
202,
202,
907,
783,
273,
261,
907,
13,
1365,
18,
3624,
63,
20,
15533,
202,
202,
907,
982,
273,
261,
907,
13,
1365,
31,
202,
202,
474,
1142,
1621,
273,
374,
31,
202,
202,
17523,
261,
2972,
480,
446,
13,
202,
202,
95,
1082,
202,
430,
261,
2972,
18,
1132,
405,
756,
18,
1132,
13,
9506,
202,
2722,
1621,
273,
374,
31,
1082,
202,
12107,
9506,
202,
2722,
1621,
273,
404,
31,
1082,
202,
2938,
273,
783,
31,
1082,
202,
2972,
273,
261,
907,
13,
783,
18,
3624,
63,
2722,
1621,
15533,
202,
202,
97,
202,
202,
759,
8040,
756,
202,
202,
2938,
18,
3624,
63,
2722,
1621,
65,
273,
756,
31,
202,
202,
2159,
18,
2938,
273,
982,
31,
202,
202,
759,
2029,
2036,
353,
1755,
16,
1427,
1272,
890,
353,
21096,
18,
202,
202,
759,
1660,
1297,
866,
309,
1272,
576,
353,
26889,
16,
316,
1492,
202,
202,
759,
648,
3134,
2151,
711,
358,
506,
283,
12296,
72,
471,
19,
280,
24962,
329,
18,
202,
202,
759,
12605,
404,
30,
1365,
756,
202,
202,
430,
261,
2938,
422,
1365,
13,
202,
202,
95,
1082,
202,
759,
1660,
12980,
1365,
756,
358,
506,
7721,
16,
333,
425,
3304,
1082,
202,
759,
1308,
6088,
5712,
18,
1082,
202,
4901,
18,
4148,
2932,
2449,
404,
8863,
1082,
202,
2159,
18,
291,
3715,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2243,
907,
12,
53,
11739,
12513,
320,
13,
202,
95,
202,
202,
907,
756,
273,
261,
907,
13,
320,
31,
202,
202,
907,
783,
273,
261,
907,
13,
1365,
18,
3624,
63,
20,
15533,
202,
202,
907,
982,
273,
261,
907,
13,
1365,
31,
202,
202,
474,
1142,
1621,
273,
374,
31,
202,
202,
17523,
261,
2972,
480,
446,
13,
202,
202,
95,
1082,
202,
430,
261,
2972,
18,
1132,
405,
756,
18,
1132,
13,
9506,
202,
2722,
1621,
273,
374,
31,
1082,
202,
12107,
9506,
202,
2722,
1621,
273,
404,
31,
1082,
202,
2938,
273,
783,
31,
1082,
202,
2972,
273,
261,
907,
13,
783,
18,
3624,
63,
2722,
1621,
15533,
202,
202,
2
] |
{ if (orientation == SwingConstants.HORIZONTAL) ((BasicArrowButton) incrButton).setDirection(SwingConstants.EAST); else ((BasicArrowButton) incrButton).setDirection(SwingConstants.SOUTH); } | ((BasicArrowButton) incrButton).setDirection(orientation); | protected JButton createIncreaseButton(int orientation) { if (incrButton == null) incrButton = new BasicArrowButton((orientation == SwingConstants.HORIZONTAL) ? SwingConstants.EAST : SwingConstants.SOUTH); else { if (orientation == SwingConstants.HORIZONTAL) ((BasicArrowButton) incrButton).setDirection(SwingConstants.EAST); else ((BasicArrowButton) incrButton).setDirection(SwingConstants.SOUTH); } return incrButton; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/6e60a457237548cb2220b3d83b95ea32b1605264/BasicScrollBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
28804,
752,
382,
11908,
3616,
12,
474,
9820,
13,
225,
288,
565,
309,
261,
267,
3353,
3616,
422,
446,
13,
1377,
17633,
3616,
273,
394,
7651,
18691,
3616,
12443,
19235,
422,
26145,
2918,
18,
44,
20344,
13,
4766,
3639,
692,
26145,
2918,
18,
41,
9053,
4766,
3639,
294,
26145,
2918,
18,
3584,
5844,
1769,
565,
469,
1377,
288,
565,
309,
261,
19235,
422,
26145,
2918,
18,
44,
20344,
13,
202,
225,
14015,
8252,
18691,
3616,
13,
17633,
3616,
2934,
542,
8212,
12,
6050,
310,
2918,
18,
41,
9053,
1769,
565,
469,
202,
225,
14015,
8252,
18691,
3616,
13,
17633,
3616,
2934,
542,
8212,
12,
6050,
310,
2918,
18,
3584,
5844,
1769,
1377,
289,
565,
327,
17633,
3616,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
28804,
752,
382,
11908,
3616,
12,
474,
9820,
13,
225,
288,
565,
309,
261,
267,
3353,
3616,
422,
446,
13,
1377,
17633,
3616,
273,
394,
7651,
18691,
3616,
12443,
19235,
422,
26145,
2918,
18,
44,
20344,
13,
4766,
3639,
692,
26145,
2918,
18,
41,
9053,
4766,
3639,
294,
26145,
2918,
18,
3584,
5844,
1769,
565,
469,
1377,
288,
565,
309,
261,
19235,
422,
26145,
2918,
18,
44,
20344,
13,
202,
225,
14015,
8252,
18691,
3616,
13,
17633,
3616,
2934,
542,
8212,
12,
6050,
310,
2918,
18,
41,
9053,
1769,
565,
469,
202,
225,
14015,
8252,
18691,
3616,
13,
17633,
3616,
2934,
542,
8212,
12,
6050,
310,
2918,
18,
3584,
5844,
1769,
1377,
289,
565,
327,
17633,
3616,
2
] |
if (tasksPredicate == null) tasksPredicate = createTasksPredicate(); Collection tasks = blackboard.query(tasksPredicate); completionCounter.init(); if (tasks.size() > 0) { Collectors.apply(completionCounter, tasks); taskCompletion = completionCounter.totalConfidence / tasks.size(); } else { taskCompletion = 1.0; } | CompletionCalculator cc = getCalculator(); Collection objs = blackboard.query(cc.getPredicate()); taskCompletion = cc.calculate(objs); | private void updateTaskCompletion() { if (tasksPredicate == null) tasksPredicate = createTasksPredicate(); Collection tasks = blackboard.query(tasksPredicate); completionCounter.init(); if (tasks.size() > 0) { Collectors.apply(completionCounter, tasks); taskCompletion = completionCounter.totalConfidence / tasks.size(); } else { taskCompletion = 1.0; } updateTaskCompletionPending = false; } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/2bb65a13a686ccd537eec522d9b30d940c9aed35/CompletionTargetPlugin.java/buggy/core/src/org/cougaar/core/plugin/completion/CompletionTargetPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1089,
2174,
11238,
1435,
288,
565,
309,
261,
9416,
8634,
422,
446,
13,
4592,
8634,
273,
752,
6685,
8634,
5621,
565,
2200,
4592,
273,
7721,
3752,
18,
2271,
12,
9416,
8634,
1769,
565,
8364,
4789,
18,
2738,
5621,
565,
309,
261,
9416,
18,
1467,
1435,
405,
374,
13,
288,
1377,
13994,
18,
9010,
12,
11469,
4789,
16,
4592,
1769,
1377,
1562,
11238,
273,
8364,
4789,
18,
4963,
3976,
10328,
342,
4592,
18,
1467,
5621,
565,
289,
469,
288,
1377,
1562,
11238,
273,
404,
18,
20,
31,
565,
289,
565,
1089,
2174,
11238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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1089,
2174,
11238,
1435,
288,
565,
309,
261,
9416,
8634,
422,
446,
13,
4592,
8634,
273,
752,
6685,
8634,
5621,
565,
2200,
4592,
273,
7721,
3752,
18,
2271,
12,
9416,
8634,
1769,
565,
8364,
4789,
18,
2738,
5621,
565,
309,
261,
9416,
18,
1467,
1435,
405,
374,
13,
288,
1377,
13994,
18,
9010,
12,
11469,
4789,
16,
4592,
1769,
1377,
1562,
11238,
273,
8364,
4789,
18,
4963,
3976,
10328,
342,
4592,
18,
1467,
5621,
565,
289,
469,
288,
1377,
1562,
11238,
273,
404,
18,
20,
31,
565,
289,
565,
1089,
2174,
11238,
8579,
273,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
nextSphereNodes.addElement(new TreeNode("&", node, toNode, atomContainer.getBond(node, toNode).getOrder(), treeNode.score * 1000000)); | nextSphereNodes.addElement(new TreeNode("&", node, toNode, atomContainer.getBond(node, toNode).getOrder(), treeNode.score * 1000000)); | private void nextSphere(Vector sphereNodes) { sphere++; if (debug)System.out.println("nextSphere() -> sphere: " + sphere); if (debug)System.out.println("nextSphere() -> maxSphere: " + maxSphere); if (sphere > maxSphere) return; String s = getSphereCode(sphereNodes); if (debug)System.out.println("nextSphere() -> getSphereCode(): " + s); HOSECode.append(s); if (debug)System.out.println("nextSphere() -> printing the HOSECode StringBuffer: " + HOSECode.toString()); Atom node = null; Atom toNode = null; Atom[] conAtoms = null; TreeNode treeNode = null; nextSphereNodes = new Vector(); for (int i = 0; i < sphereNodes.size(); i++) { treeNode = (TreeNode)sphereNodes.elementAt(i); if (!("&;#:,".indexOf(treeNode.symbol)>=0)) { node = treeNode.number; conAtoms = atomContainer.getConnectedAtoms(node); if (conAtoms.length == 1) { nextSphereNodes.addElement(new TreeNode(",", node, null, 0, treeNode.score * 1000000)); } else { for (int j = 0; j < conAtoms.length; j++) { try { if (debug) System.out.println("HOSECodeGenerator->nextSphere()->node.number:" + atomContainer.getAtomNumber(node)); toNode = conAtoms[j]; if (debug) System.out.println("HOSECodeGenerator->nextSphere()->toNode.number:" + atomContainer.getAtomNumber(toNode)); if (!toNode.flags[VISITED]) { nextSphereNodes.addElement(new TreeNode(toNode.getSymbol(), node, toNode, atomContainer.getBond(node, toNode).getOrder(), treeNode.score * 1000000)); toNode.flags[VISITED] = true; } else if (!toNode.equals(treeNode.source)) { nextSphereNodes.addElement(new TreeNode("&", node, toNode, atomContainer.getBond(node, toNode).getOrder(), treeNode.score * 1000000)); } } catch (Exception exc) { exc.printStackTrace(); } } } } } nextSphere(nextSphereNodes); } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/3b5db3ea1ef07876d963dc0d0aefdadbbb06eafe/HOSECodeGenerator.java/clean/org/openscience/cdk/tools/HOSECodeGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1024,
22747,
12,
5018,
20041,
3205,
13,
202,
95,
202,
202,
87,
9346,
9904,
31,
202,
202,
430,
261,
4148,
13,
3163,
18,
659,
18,
8222,
2932,
4285,
22747,
1435,
317,
20041,
30,
315,
397,
20041,
1769,
202,
202,
430,
261,
4148,
13,
3163,
18,
659,
18,
8222,
2932,
4285,
22747,
1435,
317,
943,
22747,
30,
315,
397,
943,
22747,
1769,
202,
202,
430,
261,
87,
9346,
405,
943,
22747,
13,
327,
31,
21114,
202,
780,
272,
273,
1322,
9346,
1085,
12,
87,
9346,
3205,
1769,
202,
202,
430,
261,
4148,
13,
3163,
18,
659,
18,
8222,
2932,
4285,
22747,
1435,
317,
1322,
9346,
1085,
13332,
315,
397,
272,
1769,
202,
202,
7995,
1090,
1085,
18,
6923,
12,
87,
1769,
202,
202,
430,
261,
4148,
13,
3163,
18,
659,
18,
8222,
2932,
4285,
22747,
1435,
317,
19171,
326,
11705,
1090,
1085,
6674,
30,
315,
397,
11705,
1090,
1085,
18,
10492,
10663,
9506,
202,
3641,
756,
273,
446,
31,
202,
202,
3641,
358,
907,
273,
446,
31,
202,
202,
3641,
8526,
356,
14280,
273,
446,
31,
202,
202,
12513,
29733,
273,
446,
31,
9506,
202,
4285,
22747,
3205,
273,
394,
5589,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
20041,
3205,
18,
1467,
5621,
277,
27245,
202,
202,
95,
1082,
202,
3413,
907,
273,
261,
12513,
13,
87,
9346,
3205,
18,
2956,
861,
12,
77,
1769,
1082,
202,
430,
16051,
2932,
10,
31,
7,
30,
16,
9654,
31806,
12,
3413,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1024,
22747,
12,
5018,
20041,
3205,
13,
202,
95,
202,
202,
87,
9346,
9904,
31,
202,
202,
430,
261,
4148,
13,
3163,
18,
659,
18,
8222,
2932,
4285,
22747,
1435,
317,
20041,
30,
315,
397,
20041,
1769,
202,
202,
430,
261,
4148,
13,
3163,
18,
659,
18,
8222,
2932,
4285,
22747,
1435,
317,
943,
22747,
30,
315,
397,
943,
22747,
1769,
202,
202,
430,
261,
87,
9346,
405,
943,
22747,
13,
327,
31,
21114,
202,
780,
272,
273,
1322,
9346,
1085,
12,
87,
9346,
3205,
1769,
202,
202,
430,
261,
4148,
13,
3163,
18,
659,
18,
8222,
2932,
4285,
22747,
1435,
317,
1322,
9346,
1085,
13332,
315,
397,
272,
1769,
202,
202,
7995,
1090,
1085,
2
] |
throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); | throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier, global); | public ClientGetMessage(SimpleFieldSet fs) throws MessageInvalidException { short defaultPriority; clientToken = fs.get("ClientToken"); global = Fields.stringToBool(fs.get("Global"), false); ignoreDS = Fields.stringToBool(fs.get("IgnoreDS"), false); dsOnly = Fields.stringToBool(fs.get("DSOnly"), false); identifier = fs.get("Identifier"); if(identifier == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No Identifier", null); try { uri = new FreenetURI(fs.get("URI")); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.URI_PARSE_ERROR, e.getMessage(), identifier); } String verbosityString = fs.get("Verbosity"); if(verbosityString == null) verbosity = 0; else { try { verbosity = Integer.parseInt(verbosityString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Verbosity field: "+e.getMessage(), identifier); } } String returnTypeString = fs.get("ReturnType"); returnType = parseReturnType(returnTypeString); if(returnType == RETURN_TYPE_DIRECT) { diskFile = null; tempFile = null; // default just below FProxy defaultPriority = RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS; } else if(returnType == RETURN_TYPE_NONE) { diskFile = null; tempFile = null; defaultPriority = RequestStarter.PREFETCH_PRIORITY_CLASS; } else if(returnType == RETURN_TYPE_DISK) { defaultPriority = RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS; String filename = fs.get("Filename"); if(filename == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Missing Filename", identifier); diskFile = new File(filename); String tempFilename = fs.get("TempFilename"); if(tempFilename == null) tempFilename = filename + ".freenet-tmp"; tempFile = new File(tempFilename); if(!diskFile.getAbsoluteFile().getParentFile().equals(tempFile.getAbsoluteFile().getParentFile())) throw new MessageInvalidException(ProtocolErrorMessage.FILENAME_AND_TEMP_FILENAME_MUST_BE_IN_SAME_DIR, null, identifier); if(diskFile.exists()) throw new MessageInvalidException(ProtocolErrorMessage.DISK_TARGET_EXISTS, null, identifier); try { if(!(tempFile.createNewFile() || (tempFile.exists() && tempFile.canRead() && tempFile.canWrite()))) throw new MessageInvalidException(ProtocolErrorMessage.COULD_NOT_CREATE_FILE, "Could not create temp file "+tempFile, identifier); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.COULD_NOT_CREATE_FILE, e.getMessage(), identifier); } } else throw new MessageInvalidException(ProtocolErrorMessage.MESSAGE_PARSE_ERROR, "Unknown return-type", identifier); String maxSizeString = fs.get("MaxSize"); if(maxSizeString == null) // default to unlimited maxSize = Long.MAX_VALUE; else { try { maxSize = Long.parseLong(maxSizeString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } String maxTempSizeString = fs.get("MaxTempSize"); if(maxTempSizeString == null) // default to unlimited maxTempSize = Long.MAX_VALUE; else { try { maxTempSize = Long.parseLong(maxTempSizeString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } String maxRetriesString = fs.get("MaxRetries"); if(maxRetriesString == null) // default to 0 maxRetries = 0; else { try { maxRetries = Integer.parseInt(maxRetriesString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "max retries="+maxRetries); String priorityString = fs.get("PriorityClass"); if(priorityString == null) { // defaults to the one just below FProxy priorityClass = defaultPriority; } else { try { priorityClass = Short.parseShort(priorityString, 10); if((priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS) || (priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS)) throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing PriorityClass field: "+e.getMessage(), identifier); } } String persistenceString = fs.get("Persistence"); if((persistenceString == null) || persistenceString.equalsIgnoreCase("connection")) { // Default: persists until connection loss. persistenceType = ClientRequest.PERSIST_CONNECTION; } else if(persistenceString.equalsIgnoreCase("reboot")) { // Reports to client by name; persists over connection loss. // Not saved to disk, so dies on reboot. persistenceType = ClientRequest.PERSIST_REBOOT; } else if(persistenceString.equalsIgnoreCase("forever")) { // Same as reboot but saved to disk, persists forever. persistenceType = ClientRequest.PERSIST_FOREVER; } else { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Persistence field: "+persistenceString, identifier); } if(global && (persistenceType == ClientRequest.PERSIST_CONNECTION)) { throw new MessageInvalidException(ProtocolErrorMessage.NOT_SUPPORTED, "Global requests must be persistent", identifier); } } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/ClientGetMessage.java/buggy/src/freenet/node/fcp/ClientGetMessage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
967,
1079,
12,
5784,
974,
694,
2662,
13,
1216,
2350,
1941,
503,
288,
202,
202,
6620,
805,
8183,
31,
202,
202,
2625,
1345,
273,
2662,
18,
588,
2932,
1227,
1345,
8863,
202,
202,
6347,
273,
7190,
18,
1080,
774,
7464,
12,
2556,
18,
588,
2932,
5160,
6,
3631,
629,
1769,
202,
202,
6185,
3948,
273,
7190,
18,
1080,
774,
7464,
12,
2556,
18,
588,
2932,
3777,
3948,
6,
3631,
629,
1769,
202,
202,
2377,
3386,
273,
7190,
18,
1080,
774,
7464,
12,
2556,
18,
588,
2932,
3948,
3386,
6,
3631,
629,
1769,
202,
202,
5644,
273,
2662,
18,
588,
2932,
3004,
8863,
202,
202,
430,
12,
5644,
422,
446,
13,
1082,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
19466,
67,
6776,
16,
315,
2279,
10333,
3113,
446,
1769,
202,
202,
698,
288,
1082,
202,
1650,
273,
394,
478,
2842,
278,
3098,
12,
2556,
18,
588,
2932,
3098,
7923,
1769,
202,
202,
97,
1044,
261,
18695,
20160,
425,
13,
288,
1082,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
3098,
67,
21045,
67,
3589,
16,
425,
18,
24906,
9334,
2756,
1769,
202,
202,
97,
202,
202,
780,
11561,
780,
273,
2662,
18,
588,
2932,
30594,
8863,
202,
202,
430,
12,
16629,
8807,
780,
422,
446,
13,
1082,
202,
16629,
8807,
273,
374,
31,
202,
202,
12107,
288,
1082,
202,
698,
288,
9506,
202,
16629,
8807,
273,
2144,
18,
2670,
1702,
12,
16629,
8807,
780,
16,
1728,
1769,
1082,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
967,
1079,
12,
5784,
974,
694,
2662,
13,
1216,
2350,
1941,
503,
288,
202,
202,
6620,
805,
8183,
31,
202,
202,
2625,
1345,
273,
2662,
18,
588,
2932,
1227,
1345,
8863,
202,
202,
6347,
273,
7190,
18,
1080,
774,
7464,
12,
2556,
18,
588,
2932,
5160,
6,
3631,
629,
1769,
202,
202,
6185,
3948,
273,
7190,
18,
1080,
774,
7464,
12,
2556,
18,
588,
2932,
3777,
3948,
6,
3631,
629,
1769,
202,
202,
2377,
3386,
273,
7190,
18,
1080,
774,
7464,
12,
2556,
18,
588,
2932,
3948,
3386,
6,
3631,
629,
1769,
202,
202,
5644,
273,
2662,
18,
588,
2932,
3004,
8863,
202,
202,
430,
12,
5644,
422,
446,
13,
1082,
202,
12849,
394,
2350,
2
] |
Control fastViewBarControl = getFastViewBar() == null ? null : getFastViewBar().getControl(); boolean fastViewBarWasEnabled = fastViewBarControl == null ? false : fastViewBarControl.getEnabled(); | Control fastViewBarControl = getFastViewBar() == null ? null : getFastViewBar().getControl(); boolean fastViewBarWasEnabled = fastViewBarControl == null ? false : fastViewBarControl.getEnabled(); | public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException { IWorkbenchContextSupport contextSupport = getWorkbench() .getContextSupport(); final boolean keyFilterEnabled = contextSupport.isKeyFilterEnabled(); Control fastViewBarControl = getFastViewBar() == null ? null : getFastViewBar().getControl(); boolean fastViewBarWasEnabled = fastViewBarControl == null ? false : fastViewBarControl.getEnabled(); Control perspectiveBarControl = getPerspectiveBar() == null ? null : getPerspectiveBar().getControl(); boolean perspectiveBarWasEnabled = perspectiveBarControl == null ? false : perspectiveBarControl.getEnabled(); try { if (fastViewBarControl != null && !fastViewBarControl.isDisposed()) fastViewBarControl.setEnabled(false); if (perspectiveBarControl != null && !perspectiveBarControl.isDisposed()) perspectiveBarControl.setEnabled(false); if (keyFilterEnabled) contextSupport.setKeyFilterEnabled(false); super.run(fork, cancelable, runnable); } finally { if (fastViewBarControl != null && !fastViewBarControl.isDisposed()) fastViewBarControl.setEnabled(fastViewBarWasEnabled); if (perspectiveBarControl != null && !perspectiveBarControl.isDisposed()) perspectiveBarControl.setEnabled(perspectiveBarWasEnabled); if (keyFilterEnabled) contextSupport.setKeyFilterEnabled(true); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/97610ef9afbe6c924e048d8d60c2f4721860850b/WorkbenchWindow.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
12,
6494,
12515,
16,
1250,
3755,
429,
16,
5411,
467,
20013,
1190,
5491,
14685,
13,
1216,
15342,
16,
5411,
7558,
288,
3639,
467,
2421,
22144,
1042,
6289,
819,
6289,
273,
29026,
22144,
1435,
7734,
263,
29120,
6289,
5621,
3639,
727,
1250,
498,
1586,
1526,
273,
819,
6289,
18,
291,
653,
1586,
1526,
5621,
3639,
8888,
4797,
1767,
5190,
3367,
273,
2812,
689,
1767,
5190,
1435,
422,
446,
692,
446,
7734,
294,
2812,
689,
1767,
5190,
7675,
588,
3367,
5621,
3639,
1250,
4797,
1767,
5190,
14992,
1526,
273,
4797,
1767,
5190,
3367,
422,
446,
692,
629,
7734,
294,
4797,
1767,
5190,
3367,
18,
588,
1526,
5621,
3639,
8888,
26651,
5190,
3367,
273,
1689,
414,
16772,
5190,
1435,
422,
446,
692,
446,
7734,
294,
1689,
414,
16772,
5190,
7675,
588,
3367,
5621,
3639,
1250,
26651,
5190,
14992,
1526,
273,
26651,
5190,
3367,
422,
446,
692,
629,
7734,
294,
26651,
5190,
3367,
18,
588,
1526,
5621,
3639,
775,
288,
5411,
309,
261,
8076,
1767,
5190,
3367,
480,
446,
597,
401,
8076,
1767,
5190,
3367,
18,
291,
1669,
7423,
10756,
7734,
4797,
1767,
5190,
3367,
18,
542,
1526,
12,
5743,
1769,
5411,
309,
261,
10422,
16772,
5190,
3367,
480,
446,
10792,
597,
401,
10422,
16772,
5190,
3367,
18,
291,
1669,
7423,
10756,
7734,
26651,
5190,
3367,
18,
542,
1526,
12,
5743,
1769,
5411,
309,
261,
856,
1586,
1526,
13,
7734,
819,
6289,
18,
542,
653,
1586,
1526,
12,
5743,
1769,
5411,
2240,
18,
2681,
12,
23335,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
12,
6494,
12515,
16,
1250,
3755,
429,
16,
5411,
467,
20013,
1190,
5491,
14685,
13,
1216,
15342,
16,
5411,
7558,
288,
3639,
467,
2421,
22144,
1042,
6289,
819,
6289,
273,
29026,
22144,
1435,
7734,
263,
29120,
6289,
5621,
3639,
727,
1250,
498,
1586,
1526,
273,
819,
6289,
18,
291,
653,
1586,
1526,
5621,
3639,
8888,
4797,
1767,
5190,
3367,
273,
2812,
689,
1767,
5190,
1435,
422,
446,
692,
446,
7734,
294,
2812,
689,
1767,
5190,
7675,
588,
3367,
5621,
3639,
1250,
4797,
1767,
5190,
14992,
1526,
273,
4797,
1767,
5190,
3367,
422,
446,
692,
629,
7734,
294,
4797,
1767,
5190,
3367,
18,
588,
1526,
5621,
3639,
8888,
26651,
5190,
3367,
273,
1689,
414,
16772,
5190,
2
] |
private final boolean checkSlot(int page, int slot) throws VM_PragmaInline { | private final boolean checkSlot(int page, int slot) { | private final boolean checkSlot(int page, int slot) throws VM_PragmaInline { boolean newpage = checkPage(page); VM_Address slotAddr = getSlotAddress(page, slot); VM_Address slotValue = VM_Magic.getMemoryAddress(slotAddr); if (VM_Interface.VerifyAssertions) { if (newpage) { if (!slotValue.isZero()) VM_Interface._assert(slotValue.isZero(), "checkSlot: got a new pagemap but didn't need a new bitmap!"); } } if (slotValue.isZero()) { VM_Address bm = allocBitmap(); debug(2, "allocating new bitmap for page ", page); debug(2, ", slot ", slot); debug(2, " (address ", slotAddr); debugln(2, ") at ", bm); VM_Magic.setMemoryAddress(slotAddr, bm); return true; } return false; } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/b24f82dd412d1ade8972422d61416fbcc44bd29c/ObjectMap.java/clean/rvm/src/vm/memoryManagers/JMTk/gcspy/util/ObjectMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
1250,
866,
8764,
12,
474,
1363,
16,
509,
4694,
13,
288,
565,
1250,
394,
2433,
273,
866,
1964,
12,
2433,
1769,
3639,
8251,
67,
1887,
4694,
3178,
273,
17718,
352,
1887,
12,
2433,
16,
4694,
1769,
565,
8251,
67,
1887,
4694,
620,
273,
8251,
67,
19289,
18,
588,
6031,
1887,
12,
14194,
3178,
1769,
565,
309,
261,
7397,
67,
1358,
18,
8097,
8213,
1115,
13,
288,
1377,
309,
261,
2704,
2433,
13,
288,
3639,
309,
16051,
14194,
620,
18,
291,
7170,
10756,
3639,
8251,
67,
1358,
6315,
11231,
12,
14194,
620,
18,
291,
7170,
9334,
315,
1893,
8764,
30,
2363,
279,
394,
4262,
25248,
1496,
10242,
1404,
1608,
279,
394,
9389,
4442,
1769,
1377,
289,
565,
289,
565,
309,
261,
14194,
620,
18,
291,
7170,
10756,
288,
1377,
8251,
67,
1887,
18829,
273,
4767,
12224,
5621,
1377,
1198,
12,
22,
16,
315,
9853,
1776,
394,
9389,
364,
1363,
3104,
1363,
1769,
1377,
1198,
12,
22,
16,
3104,
4694,
3104,
4694,
1769,
1377,
1198,
12,
22,
16,
315,
261,
2867,
3104,
4694,
3178,
1769,
1377,
1198,
2370,
12,
22,
16,
9369,
622,
225,
3104,
18829,
1769,
1377,
8251,
67,
19289,
18,
542,
6031,
1887,
12,
14194,
3178,
16,
18829,
1769,
1377,
327,
638,
31,
565,
289,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
1250,
866,
8764,
12,
474,
1363,
16,
509,
4694,
13,
288,
565,
1250,
394,
2433,
273,
866,
1964,
12,
2433,
1769,
3639,
8251,
67,
1887,
4694,
3178,
273,
17718,
352,
1887,
12,
2433,
16,
4694,
1769,
565,
8251,
67,
1887,
4694,
620,
273,
8251,
67,
19289,
18,
588,
6031,
1887,
12,
14194,
3178,
1769,
565,
309,
261,
7397,
67,
1358,
18,
8097,
8213,
1115,
13,
288,
1377,
309,
261,
2704,
2433,
13,
288,
3639,
309,
16051,
14194,
620,
18,
291,
7170,
10756,
3639,
8251,
67,
1358,
6315,
11231,
12,
14194,
620,
18,
291,
7170,
9334,
315,
1893,
8764,
30,
2363,
279,
394,
4262,
25248,
1496,
10242,
1404,
1608,
279,
394,
9389,
4442,
1769,
1377,
289,
565,
2
] |
return new OPT_MemoryOperand(base, index, (byte)0, disp.toInt(), size, loc, guard); | return new OPT_MemoryOperand(base, index, (byte)0, disp, size, loc, guard); | public static OPT_MemoryOperand BID(OPT_RegisterOperand base, OPT_RegisterOperand index, Offset disp, byte size, OPT_LocationOperand loc, OPT_Operand guard) { return new OPT_MemoryOperand(base, index, (byte)0, disp.toInt(), size, loc, guard); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/511bde1d92a455acafb864be1f3383b0a2d5c0e0/OPT_MemoryOperand.java/buggy/rvm/src/vm/compilers/optimizing/ir/instruction/operand/OPT_MemoryOperand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
16456,
67,
6031,
10265,
605,
734,
12,
15620,
67,
3996,
10265,
1026,
16,
4766,
4202,
16456,
67,
3996,
10265,
770,
16,
4766,
1377,
9874,
16232,
16,
4766,
4202,
1160,
963,
16,
4766,
1377,
16456,
67,
2735,
10265,
1515,
16,
4766,
1377,
16456,
67,
10265,
11026,
13,
288,
565,
327,
394,
16456,
67,
6031,
10265,
12,
1969,
16,
770,
16,
261,
7229,
13,
20,
16,
16232,
16,
963,
16,
1515,
16,
11026,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
4766,
1377,
9874,
16232,
16,
4766,
4202,
1160,
963,
16,
4766,
1377,
16456,
67,
2735,
10265,
1515,
16,
4766,
1377,
16456,
67,
10265,
11026,
13,
288,
565,
327,
394,
16456,
67,
6031,
10265,
12,
1969,
16,
770,
16,
261,
7229,
13,
20,
16,
16232,
16,
963,
16,
1515,
16,
11026,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
void writeBigDecimal(BigDecimal x) throws SQLException; | void writeBigDecimal(BigDecimal value) throws SQLException; | void writeBigDecimal(BigDecimal x) throws SQLException; | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8e6a933c7311b8af73a149d26777089b7dc8bd68/SQLOutput.java/clean/core/src/classpath/java/java/sql/SQLOutput.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1045,
29436,
12,
29436,
619,
13,
1216,
6483,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1045,
29436,
12,
29436,
619,
13,
1216,
6483,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AvailableModuleProjectsProvider provider = new AvailableModuleProjectsProvider((EnterpriseApplicationCreationDataModelOld) model); | AvailableModuleProjectsProvider provider = new AvailableModuleProjectsProvider((EnterpriseApplicationCreationDataModel) model); | private void createModuleProjectOptions(Composite modulesGroup) { moduleProjectsViewer = CheckboxTableViewer.newCheckList(modulesGroup, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); GridData gData = new GridData(GridData.FILL_BOTH); gData.widthHint = 200; gData.heightHint = 80; moduleProjectsViewer.getControl().setLayoutData(gData); AvailableModuleProjectsProvider provider = new AvailableModuleProjectsProvider((EnterpriseApplicationCreationDataModelOld) model); moduleProjectsViewer.setContentProvider(provider); moduleProjectsViewer.setLabelProvider(new WorkbenchLabelProvider()); setCheckedItemsFromModel(); moduleProjectsViewer.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { if (!ignoreCheckedState) { getModulesModel().setProperty(AddArchiveProjectsToEARDataModel.MODULE_LIST, getCheckedElementsAsList()); } } }); TableLayout tableLayout = new TableLayout(); moduleProjectsViewer.getTable().setLayout(tableLayout); moduleProjectsViewer.getTable().setHeaderVisible(false); moduleProjectsViewer.getTable().setLinesVisible(false); moduleProjectsViewer.setSorter(null); } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/7d0c5c6641ee8ee148829ae63068100ceb5221cd/ApplicationModuleProjectsPage.java/clean/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/wizard/ApplicationModuleProjectsPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3120,
4109,
1320,
12,
9400,
4381,
1114,
13,
288,
202,
202,
2978,
15298,
18415,
273,
29213,
1388,
18415,
18,
2704,
1564,
682,
12,
6400,
1114,
16,
348,
8588,
18,
38,
7954,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
8588,
18,
58,
67,
2312,
14555,
1769,
202,
202,
6313,
751,
314,
751,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
75,
751,
18,
2819,
7002,
273,
4044,
31,
202,
202,
75,
751,
18,
4210,
7002,
273,
8958,
31,
202,
202,
2978,
15298,
18415,
18,
588,
3367,
7675,
542,
3744,
751,
12,
75,
751,
1769,
202,
202,
5268,
3120,
15298,
2249,
2893,
273,
394,
15633,
3120,
15298,
2249,
12443,
30699,
3208,
9906,
26349,
7617,
13,
938,
1769,
202,
202,
2978,
15298,
18415,
18,
542,
1350,
2249,
12,
6778,
1769,
202,
202,
2978,
15298,
18415,
18,
542,
2224,
2249,
12,
2704,
4147,
22144,
2224,
2249,
10663,
202,
202,
542,
11454,
3126,
1265,
1488,
5621,
202,
202,
2978,
15298,
18415,
18,
1289,
1564,
1119,
2223,
12,
2704,
467,
1564,
1119,
2223,
1435,
288,
1082,
202,
482,
918,
13632,
5033,
12,
1564,
1119,
27553,
871,
13,
288,
9506,
202,
430,
16051,
6185,
11454,
1119,
13,
288,
6862,
202,
588,
7782,
1488,
7675,
542,
1396,
12,
986,
7465,
4109,
11634,
9250,
26349,
18,
12194,
67,
7085,
16,
336,
11454,
3471,
1463,
682,
10663,
9506,
202,
97,
1082,
202,
97,
202,
202,
22938,
202,
202,
1388,
3744,
1014,
3744,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3120,
4109,
1320,
12,
9400,
4381,
1114,
13,
288,
202,
202,
2978,
15298,
18415,
273,
29213,
1388,
18415,
18,
2704,
1564,
682,
12,
6400,
1114,
16,
348,
8588,
18,
38,
7954,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
8588,
18,
58,
67,
2312,
14555,
1769,
202,
202,
6313,
751,
314,
751,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
75,
751,
18,
2819,
7002,
273,
4044,
31,
202,
202,
75,
751,
18,
4210,
7002,
273,
8958,
31,
202,
202,
2978,
15298,
18415,
18,
588,
3367,
7675,
542,
3744,
751,
12,
75,
751,
1769,
202,
202,
5268,
3120,
15298,
2249,
2893,
273,
394,
15633,
3120,
2
] |
if (indexerID == null) { | if (indexerID == null && enableUpdates) { | private ICDTIndexer initializeIndexer(IProject project) throws CoreException { ICDTIndexer indexer = null; indexer = (ICDTIndexer) indexerMap.get(project); if (indexer == null){ String indexerID = null; try { //Indexer has not been created yet for this session //Check to see if the indexer has been set in a session property indexerID = (String) project.getSessionProperty(indexerIDKey); } catch (CoreException e) {} if (indexerID == null){ try{ //Need to load the indexer from descriptor indexerID = loadIndexerIDFromCDescriptor(project); } catch (CoreException e){} } //Make sure that we have an indexer ID if (indexerID == null) { //No persisted info on file? Must be old project - run temp. upgrade indexerID = doProjectUpgrade(project); doSourceIndexerUpgrade(project); } //If we're asking for the null indexer,return null if (indexerID == null || indexerID.equals(nullIndexerID)) return null; //Create the indexer and store it indexer = getIndexer(indexerID); indexerMap.put(project,indexer); } return indexer; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f309a3e91559fedb0eb4dc3218018cced904b15d/IndexManager.java/buggy/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/IndexManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
26899,
9081,
20877,
4046,
20877,
12,
45,
4109,
1984,
13,
1216,
30015,
288,
202,
202,
2871,
9081,
20877,
12635,
273,
446,
31,
202,
202,
24541,
273,
261,
2871,
9081,
20877,
13,
12635,
863,
18,
588,
12,
4406,
1769,
9506,
202,
430,
261,
24541,
422,
446,
15329,
1082,
202,
780,
12635,
734,
273,
446,
31,
1082,
202,
698,
288,
9506,
202,
759,
20877,
711,
486,
2118,
2522,
4671,
364,
333,
1339,
9506,
202,
759,
1564,
358,
2621,
309,
326,
12635,
711,
2118,
444,
316,
279,
1339,
1272,
4697,
202,
24541,
734,
273,
261,
780,
13,
1984,
18,
588,
2157,
1396,
12,
24541,
734,
653,
1769,
1082,
202,
97,
1044,
261,
25341,
425,
13,
2618,
25083,
202,
430,
261,
24541,
734,
422,
446,
15329,
9506,
202,
698,
95,
9506,
202,
759,
14112,
358,
1262,
326,
12635,
628,
4950,
9506,
202,
24541,
734,
273,
1262,
20877,
734,
1265,
39,
3187,
12,
4406,
1769,
9506,
202,
97,
1044,
261,
25341,
425,
13,
2916,
1082,
202,
97,
25083,
202,
759,
6464,
3071,
716,
732,
1240,
392,
12635,
1599,
1082,
202,
430,
261,
24541,
734,
422,
446,
13,
288,
9506,
202,
759,
2279,
14249,
1123,
603,
585,
35,
6753,
506,
1592,
1984,
300,
1086,
1906,
18,
8400,
9506,
202,
24541,
734,
273,
741,
4109,
10784,
12,
4406,
1769,
9506,
202,
2896,
1830,
20877,
10784,
12,
4406,
1769,
1082,
202,
97,
25083,
202,
759,
2047,
732,
4565,
29288,
364,
326,
446,
12635,
16,
2463,
446,
1082,
202,
430,
261,
24541,
734,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
26899,
9081,
20877,
4046,
20877,
12,
45,
4109,
1984,
13,
1216,
30015,
288,
202,
202,
2871,
9081,
20877,
12635,
273,
446,
31,
202,
202,
24541,
273,
261,
2871,
9081,
20877,
13,
12635,
863,
18,
588,
12,
4406,
1769,
9506,
202,
430,
261,
24541,
422,
446,
15329,
1082,
202,
780,
12635,
734,
273,
446,
31,
1082,
202,
698,
288,
9506,
202,
759,
20877,
711,
486,
2118,
2522,
4671,
364,
333,
1339,
9506,
202,
759,
1564,
358,
2621,
309,
326,
12635,
711,
2118,
444,
316,
279,
1339,
1272,
4697,
202,
24541,
734,
273,
261,
780,
13,
1984,
18,
588,
2157,
1396,
12,
24541,
734,
653,
1769,
1082,
202,
97,
1044,
261,
25341,
425,
13,
2618,
25083,
202,
430,
2
] |
jjAddStates(66, 67); | jjAddStates(60, 61); | private final int jjMoveNfa_8(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 15; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x2400L & l) != 0L) { if (kind > 22) kind = 22; } else if (curChar == 36) { if (kind > 13) kind = 13; jjCheckNAddTwoStates(12, 13); } else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 16) kind = 16; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 4: if ((0x2400L & l) != 0L && kind > 22) kind = 22; break; case 5: if (curChar == 10 && kind > 22) kind = 22; break; case 6: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 9: if (curChar == 36 && kind > 13) kind = 13; break; case 11: if (curChar == 36) jjCheckNAddTwoStates(12, 13); break; case 13: if (curChar == 33 && kind > 14) kind = 14; break; case 14: if (curChar != 36) break; if (kind > 13) kind = 13; jjCheckNAddTwoStates(12, 13); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if (curChar == 92) jjCheckNAddStates(62, 65); break; case 1: if (kind > 16) kind = 16; break; case 8: if (curChar == 92) jjCheckNAddTwoStates(8, 9); break; case 10: if (curChar == 92) jjCheckNAddTwoStates(10, 11); break; case 12: if (curChar == 92) jjAddStates(66, 67); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 16) kind = 16; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 15 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/89173502837b4d67a69cd30d0b93cf47ed84c8cc/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
28,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
4711,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
741,
540,
288,
5411,
1620,
12,
78,
78,
2019,
694,
63,
413,
77,
5717,
5411,
288,
9079,
648,
890,
30,
5375,
309,
14015,
20,
92,
3247,
713,
48,
473,
328,
13,
480,
374,
48,
13,
5375,
288,
5397,
309,
261,
9224,
405,
11201,
13,
13491,
3846,
273,
11201,
31,
5375,
289,
5375,
469,
309,
261,
1397,
2156,
422,
6580,
13,
5375,
288,
5397,
309,
261,
9224,
405,
5958,
13,
13491,
3846,
273,
5958,
31,
5397,
10684,
1564,
50,
986,
11710,
7629,
12,
2138,
16,
5958,
1769,
5375,
289,
5375,
469,
309,
261,
1397,
2156,
422,
13191,
13,
5397,
10684,
2019,
694,
63,
78,
78,
2704,
1119,
11750,
9904,
65,
273,
576,
31,
5375,
309,
261,
1397,
2156,
422,
5958,
13,
5397,
10684,
2019,
694,
63,
78,
78,
2704,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
28,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
4711,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
2
] |
bcelWorld = new BcelWorld(buildConfig.getClasspath(), handler, null); | List cp = buildConfig.getBootclasspath(); cp.addAll(buildConfig.getClasspath()); bcelWorld = new BcelWorld(cp, handler, null); | private void initBcelWorld(IMessageHandler handler) throws IOException { bcelWorld = new BcelWorld(buildConfig.getClasspath(), handler, null); bcelWorld.setXnoInline(buildConfig.isXnoInline()); bcelWorld.setXlazyTjp(buildConfig.isXlazyTjp()); bcelWeaver = new BcelWeaver(bcelWorld); state.binarySourceFiles = new HashMap(); for (Iterator i = buildConfig.getAspectpath().iterator(); i.hasNext();) { File f = (File) i.next(); bcelWeaver.addLibraryJarFile(f); } // String lintMode = buildConfig.getLintMode(); if (buildConfig.getLintMode().equals(AjBuildConfig.AJLINT_DEFAULT)) { bcelWorld.getLint().loadDefaultProperties(); } else { bcelWorld.getLint().setAll(buildConfig.getLintMode()); } if (buildConfig.getLintSpecFile() != null) { bcelWorld.getLint().setFromProperties(buildConfig.getLintSpecFile()); } //??? incremental issues for (Iterator i = buildConfig.getInJars().iterator(); i.hasNext(); ) { File inJar = (File)i.next(); List unwovenClasses = bcelWeaver.addJarFile(inJar, buildConfig.getOutputDir(),false); state.binarySourceFiles.put(inJar.getPath(), unwovenClasses); } for (Iterator i = buildConfig.getInpath().iterator(); i.hasNext(); ) { File inPathElement = (File)i.next(); if (!inPathElement.isDirectory()) { // its a jar file on the inpath // the weaver method can actually handle dirs, but we don't call it, see next block List unwovenClasses = bcelWeaver.addJarFile(inPathElement,buildConfig.getOutputDir(),true); state.binarySourceFiles.put(inPathElement.getPath(),unwovenClasses); } else { // add each class file in an in-dir individually, this gives us the best error reporting // (they are like 'source' files then), and enables a cleaner incremental treatment of // class file changes in indirs. File[] binSrcs = FileUtil.listFiles(inPathElement, binarySourceFilter); for (int j = 0; j < binSrcs.length; j++) { UnwovenClassFile ucf = bcelWeaver.addClassFile(binSrcs[j], inPathElement, buildConfig.getOutputDir()); List ucfl = new ArrayList(); ucfl.add(ucf); state.binarySourceFiles.put(binSrcs[j].getPath(),ucfl); } } } bcelWeaver.setReweavableMode(buildConfig.isXreweavable(),buildConfig.getXreweavableCompressClasses()); //check for org.aspectj.runtime.JoinPoint bcelWorld.resolve("org.aspectj.lang.JoinPoint"); } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/d1551bda9b14c6c2035e0c8df6f09bf4634041de/AjBuildManager.java/clean/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
38,
2183,
18071,
12,
45,
1079,
1503,
1838,
13,
1216,
1860,
288,
202,
202,
70,
2183,
18071,
273,
394,
605,
2183,
18071,
12,
3510,
809,
18,
588,
17461,
9334,
1838,
16,
446,
1769,
202,
202,
70,
2183,
18071,
18,
542,
60,
2135,
10870,
12,
3510,
809,
18,
291,
60,
2135,
10870,
10663,
202,
202,
70,
2183,
18071,
18,
542,
60,
15998,
56,
21797,
12,
3510,
809,
18,
291,
60,
15998,
56,
21797,
10663,
202,
202,
70,
2183,
3218,
21851,
273,
394,
605,
2183,
3218,
21851,
12,
70,
2183,
18071,
1769,
202,
202,
2019,
18,
8578,
1830,
2697,
273,
394,
4317,
5621,
9506,
202,
1884,
261,
3198,
277,
273,
1361,
809,
18,
588,
17468,
803,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
812,
284,
273,
261,
812,
13,
277,
18,
4285,
5621,
1082,
202,
70,
2183,
3218,
21851,
18,
1289,
9313,
10813,
812,
12,
74,
1769,
202,
202,
97,
202,
202,
759,
202,
202,
780,
19477,
2309,
273,
1361,
809,
18,
588,
30350,
2309,
5621,
9506,
202,
430,
261,
3510,
809,
18,
588,
30350,
2309,
7675,
14963,
12,
37,
78,
3116,
809,
18,
37,
46,
48,
3217,
67,
5280,
3719,
288,
1082,
202,
70,
2183,
18071,
18,
588,
30350,
7675,
945,
1868,
2297,
5621,
202,
202,
97,
469,
288,
1082,
202,
70,
2183,
18071,
18,
588,
30350,
7675,
542,
1595,
12,
3510,
809,
18,
588,
30350,
2309,
10663,
202,
202,
97,
9506,
202,
430,
261,
3510,
809,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
38,
2183,
18071,
12,
45,
1079,
1503,
1838,
13,
1216,
1860,
288,
202,
202,
70,
2183,
18071,
273,
394,
605,
2183,
18071,
12,
3510,
809,
18,
588,
17461,
9334,
1838,
16,
446,
1769,
202,
202,
70,
2183,
18071,
18,
542,
60,
2135,
10870,
12,
3510,
809,
18,
291,
60,
2135,
10870,
10663,
202,
202,
70,
2183,
18071,
18,
542,
60,
15998,
56,
21797,
12,
3510,
809,
18,
291,
60,
15998,
56,
21797,
10663,
202,
202,
70,
2183,
3218,
21851,
273,
394,
605,
2183,
3218,
21851,
12,
70,
2183,
18071,
1769,
202,
202,
2019,
18,
8578,
1830,
2697,
273,
394,
4317,
5621,
9506,
202,
1884,
261,
3198,
277,
273,
1361,
809,
18,
588,
17468,
803,
2
] |
throw new TypeError(getRuntime(), "not a java object:" + value); | throw getRuntime().newTypeError("not a java object:" + value); | public IRubyObject aset(IRubyObject index, IRubyObject value) { if (! (index instanceof RubyInteger)) { throw new TypeError(getRuntime(), index, getRuntime().getClasses().getIntegerClass()); } int intIndex = (int) ((RubyInteger) index).getLongValue(); if (! (value instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object:" + value); } Object javaObject = ((JavaObject) value).getValue(); try { Array.set(getValue(), intIndex, javaObject); } catch (IndexOutOfBoundsException e) { throw new ArgumentError(getRuntime(), "index out of bounds for java array (" + intIndex + " for length " + getLength() + ")"); } catch (ArrayStoreException e) { throw new ArgumentError(getRuntime(), "wrong element type " + javaObject.getClass() + "(array is " + getValue().getClass() + ")"); } return value; } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaArray.java/buggy/src/org/jruby/javasupport/JavaArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
487,
278,
12,
7937,
10340,
921,
770,
16,
15908,
10340,
921,
460,
13,
288,
540,
309,
16051,
261,
1615,
1276,
19817,
4522,
3719,
288,
5411,
604,
394,
3580,
12,
588,
5576,
9334,
770,
16,
18814,
7675,
588,
4818,
7675,
588,
4522,
797,
10663,
3639,
289,
3639,
509,
509,
1016,
273,
261,
474,
13,
14015,
54,
10340,
4522,
13,
770,
2934,
588,
3708,
620,
5621,
3639,
309,
16051,
261,
1132,
1276,
5110,
921,
3719,
288,
5411,
604,
18814,
7675,
2704,
19030,
2932,
902,
279,
2252,
733,
2773,
397,
460,
1769,
3639,
289,
3639,
1033,
2252,
921,
273,
14015,
5852,
921,
13,
460,
2934,
24805,
5621,
3639,
775,
288,
5411,
1510,
18,
542,
12,
24805,
9334,
509,
1016,
16,
2252,
921,
1769,
3639,
289,
1044,
261,
30548,
425,
13,
288,
5411,
604,
394,
9236,
12,
588,
5576,
9334,
4766,
565,
315,
1615,
596,
434,
4972,
364,
2252,
526,
7566,
397,
509,
1016,
397,
4766,
565,
315,
364,
769,
315,
397,
9888,
1435,
397,
7310,
1769,
3639,
289,
1044,
261,
1076,
21151,
425,
13,
288,
5411,
604,
394,
9236,
12,
588,
5576,
9334,
4766,
565,
315,
21530,
930,
618,
315,
397,
2252,
921,
18,
588,
797,
1435,
397,
7751,
1126,
353,
315,
397,
4766,
565,
2366,
7675,
588,
797,
1435,
397,
7310,
1769,
3639,
289,
3639,
327,
460,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
487,
278,
12,
7937,
10340,
921,
770,
16,
15908,
10340,
921,
460,
13,
288,
540,
309,
16051,
261,
1615,
1276,
19817,
4522,
3719,
288,
5411,
604,
394,
3580,
12,
588,
5576,
9334,
770,
16,
18814,
7675,
588,
4818,
7675,
588,
4522,
797,
10663,
3639,
289,
3639,
509,
509,
1016,
273,
261,
474,
13,
14015,
54,
10340,
4522,
13,
770,
2934,
588,
3708,
620,
5621,
3639,
309,
16051,
261,
1132,
1276,
5110,
921,
3719,
288,
5411,
604,
18814,
7675,
2704,
19030,
2932,
902,
279,
2252,
733,
2773,
397,
460,
1769,
3639,
289,
3639,
1033,
2252,
921,
273,
14015,
5852,
921,
13,
460,
2934,
24805,
5621,
3639,
775,
288,
5411,
1510,
18,
542,
12,
24805,
9334,
2
] |
if (restartTimer != null) { restartTimer.cancel(); restartTimer = null; } | stopRestartTimer(); | private void stopRestartChecker() { if (restartTimer != null) { restartTimer.cancel(); // note: If timer is running now then blackboard.restartAgent // may compain about the messenger being disabled. This can be // ignored. restartTimer = null; } } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/8729b3a6f3d460efa8689b553a1c50c319f619b6/SimpleAgent.java/buggy/core/src/org/cougaar/core/agent/SimpleAgent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2132,
15057,
8847,
1435,
288,
565,
309,
261,
19164,
6777,
480,
446,
13,
288,
1377,
7870,
6777,
18,
10996,
5621,
1377,
368,
4721,
30,
971,
5441,
353,
3549,
2037,
1508,
7721,
3752,
18,
19164,
3630,
1377,
368,
2026,
1161,
530,
2973,
326,
31086,
3832,
5673,
18,
225,
1220,
848,
506,
1377,
368,
5455,
18,
1377,
7870,
6777,
273,
446,
31,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
368,
4721,
30,
971,
5441,
353,
3549,
2037,
1508,
7721,
3752,
18,
19164,
3630,
1377,
368,
2026,
1161,
530,
2973,
326,
31086,
3832,
5673,
18,
225,
1220,
848,
506,
1377,
368,
5455,
18,
1377,
7870,
6777,
273,
446,
31,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public final /*@non_null*/String toString() { return "[ReadOnlyModifierPragma" + " loc = " + this.loc + "]"; } | public final/* @non_null */String toString() { return "[ReadOnlyModifierPragma" + " loc = " + this.loc + "]"; } | public final /*@non_null*/String toString() { return "[ReadOnlyModifierPragma" + " loc = " + this.loc + "]"; } | 46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/88c3a23ce6920080a820fcffe73c2469f7571ad9/ReadOnlyModifierPragma.java/buggy/src/escjava/trunk/ESCTools/Rcc/java/rcc/ast/ReadOnlyModifierPragma.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1748,
36,
5836,
67,
2011,
5549,
780,
1762,
1435,
288,
377,
327,
5158,
12066,
9829,
2050,
9454,
6,
3639,
397,
315,
1515,
273,
315,
397,
333,
18,
1829,
3639,
397,
9870,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1748,
36,
5836,
67,
2011,
5549,
780,
1762,
1435,
288,
377,
327,
5158,
12066,
9829,
2050,
9454,
6,
3639,
397,
315,
1515,
273,
315,
397,
333,
18,
1829,
3639,
397,
9870,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (checkedElements == null) return false; | if (checkedElements == null) { return false; } | protected boolean areAllElementsChecked(Object treeElement) { List checkedElements = (List) checkedStateStore.get(treeElement); if (checkedElements == null) // ie.- tree item not even gray-checked return false; return getListItemsSize(treeElement) == checkedElements.size(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/CheckboxTreeAndListGroup.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/CheckboxTreeAndListGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
854,
1595,
3471,
11454,
12,
921,
2151,
1046,
13,
288,
3639,
987,
5950,
3471,
273,
261,
682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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
854,
1595,
3471,
11454,
12,
921,
2151,
1046,
13,
288,
3639,
987,
5950,
3471,
273,
261,
682,
13,
5950,
1119,
2257,
18,
588,
12,
3413,
1046,
1769,
3639,
309,
261,
4532,
3471,
422,
446,
13,
368,
9228,
18,
17,
2151,
761,
486,
5456,
16937,
17,
4532,
5411,
327,
629,
31,
3639,
327,
10033,
3126,
1225,
12,
3413,
1046,
13,
422,
5950,
3471,
18,
1467,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new TransformException(se); | if(null != m_entityResolver) { try { return m_entityResolver.resolveEntity(null, urlString); } catch(SAXException se2) { throw new TransformException(se2); } } else throw new TransformException(se); | public InputSource resolveURI (String base, String urlString) throws TransformException, IOException { String uri; try { uri = SystemIDResolver.getAbsoluteURI(base, urlString); } catch(SAXException se) { throw new TransformException(se); } InputSource source = new InputSource(); source.setSystemId(uri); return source; } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/b0e81bac004d67fef3d7202e613243673c53b885/SourceTreeManager.java/buggy/src/org/apache/xpath/SourceTreeManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
23699,
2245,
3098,
261,
780,
1026,
16,
514,
29374,
13,
565,
1216,
11514,
503,
16,
1860,
225,
288,
565,
514,
2003,
31,
565,
775,
565,
288,
1377,
2003,
273,
2332,
734,
4301,
18,
588,
10368,
3098,
12,
1969,
16,
29374,
1769,
565,
289,
565,
1044,
12,
55,
2501,
503,
695,
13,
565,
288,
3639,
309,
12,
2011,
480,
312,
67,
1096,
4301,
13,
288,
775,
288,
327,
312,
67,
1096,
4301,
18,
10828,
1943,
12,
2011,
16,
29374,
1769,
289,
1044,
12,
55,
2501,
503,
695,
22,
13,
288,
604,
394,
11514,
503,
12,
307,
22,
1769,
289,
289,
469,
604,
394,
11514,
503,
12,
307,
1769,
565,
289,
565,
23699,
1084,
273,
394,
23699,
5621,
3639,
1084,
18,
542,
3163,
548,
12,
1650,
1769,
565,
327,
1084,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
23699,
2245,
3098,
261,
780,
1026,
16,
514,
29374,
13,
565,
1216,
11514,
503,
16,
1860,
225,
288,
565,
514,
2003,
31,
565,
775,
565,
288,
1377,
2003,
273,
2332,
734,
4301,
18,
588,
10368,
3098,
12,
1969,
16,
29374,
1769,
565,
289,
565,
1044,
12,
55,
2501,
503,
695,
13,
565,
288,
3639,
309,
12,
2011,
480,
312,
67,
1096,
4301,
13,
288,
775,
288,
327,
312,
67,
1096,
4301,
18,
10828,
1943,
12,
2011,
16,
29374,
1769,
289,
1044,
12,
55,
2501,
503,
695,
22,
13,
288,
604,
394,
11514,
503,
12,
307,
22,
1769,
289,
289,
469,
604,
394,
11514,
503,
12,
307,
1769,
565,
289,
565,
23699,
1084,
273,
394,
23699,
5621,
3639,
2
] |
this.config = (WebFacetInstallConfig) config; | this.config = (IDataModel) config; | public void setConfig( final Object config ) { this.config = (WebFacetInstallConfig) config; } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/ca2bd88e0478d6caa4494f54c82bed41c7106bf3/WebFacetInstallPage.java/clean/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/project/facet/WebFacetInstallPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15517,
12,
727,
1033,
642,
262,
377,
288,
3639,
333,
18,
1425,
273,
261,
734,
396,
1488,
13,
642,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
13,
642,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void report() { declaredFields.removeAll(readFields); for(Iterator<FieldAnnotation> i = declaredFields.iterator(); i.hasNext(); ) { FieldAnnotation f = i.next(); String fieldName = f.getFieldName(); String className = f.getClassName();/* int lastDollar = className.lastIndexOf('$'); boolean isAnonymousInnerClass = (lastDollar > 0) && (lastDollar < className.length() - 1) && Character.isDigit(className.charAt(className.length() - 1));*/ boolean allUpperCase = fieldName.equals(fieldName.toUpperCase()); if (superReadFields.contains(f.getFieldName())) continue; if (!fieldName.startsWith("this$")) { if (allUpperCase || constantFields.contains(f) ) bugReporter.reportBug(new BugInstance("SS_SHOULD_BE_STATIC", NORMAL_PRIORITY) .addClass(className) .addField(f)); else if (!writtenFields.contains(f) && !superWrittenFields.contains(f.getFieldName())) bugReporter.reportBug(new BugInstance("UUF_UNUSED_FIELD", NORMAL_PRIORITY) .addClass(className) .addField(f)); else bugReporter.reportBug(new BugInstance("URF_UNREAD_FIELD", NORMAL_PRIORITY) .addClass(className) .addField(f)); } else if ( !innerClassCannotBeStatic.contains(className) // && !isAnonymousInnerClass ) bugReporter.reportBug(new BugInstance("SIC_INNER_SHOULD_BE_STATIC", NORMAL_PRIORITY) .addClass(className)); } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/f17ebca5b3d773283b951d7745652c34987a3f21/UnreadFields.java/clean/findbugs/src/java/edu/umd/cs/findbugs/UnreadFields.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
6006,
1435,
95,
202,
16571,
2314,
18,
4479,
1595,
12,
896,
2314,
1769,
202,
1884,
12,
3198,
32,
974,
3257,
34,
77,
33,
16571,
2314,
18,
9838,
5621,
77,
18,
5332,
2134,
5621,
15329,
202,
202,
974,
3257,
74,
33,
77,
18,
4285,
5621,
202,
202,
780,
16163,
33,
74,
18,
588,
7287,
5621,
202,
202,
780,
12434,
33,
74,
18,
588,
3834,
5621,
20308,
202,
202,
474,
2722,
40,
25442,
33,
12434,
18,
2722,
31985,
2668,
8,
8284,
202,
202,
6494,
291,
18792,
2857,
797,
33,
1082,
202,
12,
2722,
40,
25442,
34,
20,
13,
1082,
202,
10,
10,
12,
2722,
40,
25442,
32,
12434,
18,
2469,
1435,
17,
21,
13,
1082,
202,
10,
10,
7069,
18,
291,
10907,
12,
12434,
18,
3001,
861,
12,
12434,
18,
2469,
1435,
17,
21,
10019,
5549,
202,
202,
6494,
454,
8915,
33,
9506,
202,
16163,
18,
14963,
12,
16163,
18,
869,
8915,
10663,
202,
202,
430,
12,
9565,
1994,
2314,
18,
12298,
12,
74,
18,
588,
7287,
1435,
3719,
17143,
31,
202,
202,
430,
12,
5,
16163,
18,
17514,
1190,
2932,
2211,
12911,
3719,
95,
202,
202,
430,
12,
454,
8915,
20081,
14384,
2314,
18,
12298,
12,
74,
3719,
202,
202,
925,
13289,
18,
6006,
19865,
12,
2704,
19865,
1442,
2932,
1260,
67,
2664,
31090,
67,
5948,
67,
22741,
3113,
15480,
67,
19804,
13,
1082,
202,
18,
1289,
797,
12,
12434,
13,
1082,
202,
18,
1289,
974,
12,
74,
10019,
202,
202,
12107,
430,
12,
5,
9748,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
6006,
1435,
95,
202,
16571,
2314,
18,
4479,
1595,
12,
896,
2314,
1769,
202,
1884,
12,
3198,
32,
974,
3257,
34,
77,
33,
16571,
2314,
18,
9838,
5621,
77,
18,
5332,
2134,
5621,
15329,
202,
202,
974,
3257,
74,
33,
77,
18,
4285,
5621,
202,
202,
780,
16163,
33,
74,
18,
588,
7287,
5621,
202,
202,
780,
12434,
33,
74,
18,
588,
3834,
5621,
20308,
202,
202,
474,
2722,
40,
25442,
33,
12434,
18,
2722,
31985,
2668,
8,
8284,
202,
202,
6494,
291,
18792,
2857,
797,
33,
1082,
202,
12,
2722,
40,
25442,
34,
20,
13,
1082,
202,
10,
10,
12,
2722,
40,
25442,
32,
12434,
18,
2469,
1435,
17,
21,
13,
1082,
202,
10,
10,
7069,
2
] |
||
fileLength = 0; setFile(newFileName, false, bufferedIO, bufferSize); } else { if (bufferedIO) { setImmediateFlush(false); | if (rollover.getAsynchronous() != null) { lastRolloverAsyncAction = rollover.getAsynchronous(); new Thread(lastRolloverAsyncAction).start(); | public void rollover() { if (rollingPolicy != null) { Exception exception = null; synchronized (this) { try { // // if we have some in-process compression, etc // from the previous rollover, wait till they are finished. // if (rollingThread != null) { rollingThread.join(); rollingThread = null; } StringBuffer activeFileName = new StringBuffer(super.getFile()); List synchronousActions = new ArrayList(); List asynchronousActions = new ArrayList(); try { boolean doRollover = rollingPolicy.rollover( activeFileName, synchronousActions, asynchronousActions); if (doRollover) { String oldFileName = getFile(); String newFileName = activeFileName.toString(); // // if the file names are the same then we // have to close, do actions, then reopen if (newFileName.equals(oldFileName)) { closeWriter(); try { if (!performActions(synchronousActions, asynchronousActions)) { throw new IOException( "Unable to complete action after active file close."); } } catch (IOException ex) { setFile(oldFileName, true, bufferedIO, bufferSize); throw ex; } fileLength = 0; setFile(newFileName, false, bufferedIO, bufferSize); } else { // // if not the same, we can try opening new file before // closing old file if (bufferedIO) { setImmediateFlush(false); } Writer newWriter = createWriter(new FileOutputStream(newFileName, false)); closeWriter(); try { performActions(synchronousActions, asynchronousActions); fileLength = 0; if (bufferedIO) { this.writer = new BufferedWriter(newWriter, bufferSize); } else { this.writer = newWriter; } } catch (IOException ex) { setFile(oldFileName, true, bufferedIO, bufferSize); throw ex; } writeHeader(); } } } catch (IOException ex) { exception = ex; } } catch (InterruptedException ex) { exception = ex; } } if (exception != null) { getLogger().warn( "Exception during rollover, rollover deferred.", exception); } } } | 45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/23dc02b6061fd8e688fd668a11d6257d936e1fbe/RollingFileAppender.java/clean/src/java/org/apache/log4j/rolling/RollingFileAppender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
10643,
21896,
1435,
288,
565,
309,
261,
15742,
2582,
480,
446,
13,
288,
1377,
1185,
1520,
273,
446,
31,
1377,
3852,
261,
2211,
13,
288,
3639,
775,
288,
1850,
368,
1850,
368,
225,
309,
732,
1240,
2690,
316,
17,
2567,
9154,
16,
5527,
1850,
368,
377,
628,
326,
2416,
10643,
21896,
16,
2529,
21364,
2898,
854,
6708,
18,
1850,
368,
1850,
309,
261,
15742,
3830,
480,
446,
13,
288,
5411,
21793,
3830,
18,
5701,
5621,
5411,
21793,
3830,
273,
446,
31,
1850,
289,
1850,
6674,
2695,
4771,
273,
394,
6674,
12,
9565,
18,
29925,
10663,
1850,
987,
12209,
6100,
273,
394,
2407,
5621,
1850,
987,
9007,
6100,
273,
394,
2407,
5621,
1850,
775,
288,
5411,
1250,
741,
4984,
21896,
273,
2868,
21793,
2582,
18,
922,
21896,
12,
7734,
2695,
4771,
16,
12209,
6100,
16,
9007,
6100,
1769,
5411,
309,
261,
2896,
4984,
21896,
13,
288,
2868,
514,
1592,
4771,
273,
6034,
5621,
2868,
514,
394,
4771,
273,
2695,
4771,
18,
10492,
5621,
2868,
368,
2868,
368,
225,
309,
326,
585,
1257,
854,
326,
1967,
1508,
732,
2868,
368,
377,
1240,
358,
1746,
16,
741,
4209,
16,
1508,
31563,
2868,
309,
261,
2704,
4771,
18,
14963,
12,
1673,
4771,
3719,
288,
7734,
1746,
2289,
5621,
7734,
775,
288,
5375,
309,
16051,
16092,
6100,
12,
87,
7121,
6100,
16,
9007,
6100,
3719,
288,
10792,
604,
394,
1860,
12,
8227,
315,
3370,
358,
3912,
1301,
1839,
2695,
585,
1746,
1199,
1769,
5375,
289,
7734,
289,
1044,
261,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
10643,
21896,
1435,
288,
565,
309,
261,
15742,
2582,
480,
446,
13,
288,
1377,
1185,
1520,
273,
446,
31,
1377,
3852,
261,
2211,
13,
288,
3639,
775,
288,
1850,
368,
1850,
368,
225,
309,
732,
1240,
2690,
316,
17,
2567,
9154,
16,
5527,
1850,
368,
377,
628,
326,
2416,
10643,
21896,
16,
2529,
21364,
2898,
854,
6708,
18,
1850,
368,
1850,
309,
261,
15742,
3830,
480,
446,
13,
288,
5411,
21793,
3830,
18,
5701,
5621,
5411,
21793,
3830,
273,
446,
31,
1850,
289,
1850,
6674,
2695,
4771,
273,
394,
6674,
12,
9565,
18,
29925,
10663,
1850,
987,
12209,
6100,
273,
394,
2407,
5621,
1850,
987,
9007,
6100,
273,
394,
2407,
5621,
1850,
775,
288,
5411,
1250,
2
] |
loadProcessDefinitions(); return _processes; } | loadProcessDefinitions(); return _processes; } | public HashMap<QName, OProcess> getProcesses() { loadProcessDefinitions(); return _processes; } | 47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/7622ffd0b40d0eb70799f28fc221a2dfc101f427/DeploymentUnitImpl.java/clean/bpel-runtime/src/main/java/org/apache/ode/bpel/deploy/DeploymentUnitImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4317,
32,
13688,
16,
531,
2227,
34,
336,
10599,
1435,
288,
565,
1262,
2227,
7130,
5621,
565,
327,
389,
18675,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public boolean setUser( User user, String name, String password, Vector groups) | public boolean setUser(User user, String name, String password, Vector groups) | public boolean setUser( User user, String name, String password, Vector groups) throws EXistException, PermissionDeniedException { RpcConnection con = null; try { con = pool.get(); return con.setUser(user, name, password, groups); } finally { pool.release(con); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/79512eae28b7219239f4a67965b185d1c560ab43/RpcServer.java/clean/src/org/exist/xmlrpc/RpcServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
14365,
12,
202,
202,
1299,
729,
16,
202,
202,
780,
508,
16,
202,
202,
780,
2201,
16,
202,
202,
5018,
3252,
13,
202,
202,
15069,
5675,
376,
503,
16,
8509,
15877,
288,
202,
202,
11647,
1952,
356,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
591,
273,
2845,
18,
588,
5621,
1082,
202,
2463,
356,
18,
542,
1299,
12,
1355,
16,
508,
16,
2201,
16,
3252,
1769,
202,
202,
97,
3095,
288,
1082,
202,
6011,
18,
9340,
12,
591,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
14365,
12,
202,
202,
1299,
729,
16,
202,
202,
780,
508,
16,
202,
202,
780,
2201,
16,
202,
202,
5018,
3252,
13,
202,
202,
15069,
5675,
376,
503,
16,
8509,
15877,
288,
202,
202,
11647,
1952,
356,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
591,
273,
2845,
18,
588,
5621,
1082,
202,
2463,
356,
18,
542,
1299,
12,
1355,
16,
508,
16,
2201,
16,
3252,
1769,
202,
202,
97,
3095,
288,
1082,
202,
6011,
18,
9340,
12,
591,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new Date(this.myTimeStamp.getTime()); | return new Date(this.timeStamp.getTime()); | public final Date getTimeStamp() { logger.entering(this.getClass().getName(), "getTimeStamp"); if (this.myTimeStamp != null) { logger.exiting(this.getClass().getName(), "getTimeStamp", new Date( this.myTimeStamp.getTime())); return new Date(this.myTimeStamp.getTime()); } logger.exiting(this.getClass().getName(), "getTimeStamp", null); return null; } | 10374 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10374/a797ff233adbfce4f79411b6852a2c5b2e6f430b/EventPacket.java/buggy/trunk/all/ECG_Support/src/org/electrocodeogram/event/EventPacket.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
2167,
6135,
8860,
1435,
288,
3639,
1194,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
588,
21536,
8863,
3639,
309,
261,
2211,
18,
4811,
21536,
480,
446,
13,
288,
5411,
1194,
18,
8593,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
588,
21536,
3113,
394,
2167,
12,
7734,
333,
18,
4811,
21536,
18,
588,
950,
1435,
10019,
5411,
327,
394,
2167,
12,
2211,
18,
957,
8860,
18,
588,
950,
10663,
3639,
289,
3639,
1194,
18,
8593,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
588,
21536,
3113,
446,
1769,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
2167,
6135,
8860,
1435,
288,
3639,
1194,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
588,
21536,
8863,
3639,
309,
261,
2211,
18,
4811,
21536,
480,
446,
13,
288,
5411,
1194,
18,
8593,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
588,
21536,
3113,
394,
2167,
12,
7734,
333,
18,
4811,
21536,
18,
588,
950,
1435,
10019,
5411,
327,
394,
2167,
12,
2211,
18,
957,
8860,
18,
588,
950,
10663,
3639,
289,
3639,
1194,
18,
8593,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
588,
21536,
3113,
446,
1769,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private File resolveMappingMetadata( String groupId, List pluginRepositories, ArtifactRepository localRepository ) throws RepositoryMetadataManagementException { PluginMappingMetadata metadata = new PluginMappingMetadata( groupId ); RepositoryMetadataManagementException repositoryException = null; for ( Iterator repoIterator = pluginRepositories.iterator(); repoIterator.hasNext(); ) { ArtifactRepository repository = (ArtifactRepository) repoIterator.next(); try { repositoryMetadataManager.resolve( metadata, repository, localRepository ); // reset this to keep it from getting in the way when we succeed but not on first repo... repositoryException = null; break; } catch ( RepositoryMetadataManagementException e ) { repositoryException = e; } } if ( repositoryException != null ) { throw repositoryException; } return metadata.getFile(); } | 11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/6f81043b7bb808d0e2bbf036a7c9edc1ec44f2cd/DefaultPluginMappingBuilder.java/clean/maven-plugin-mapping/src/main/java/org/apache/maven/plugin/mapping/DefaultPluginMappingBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1387,
2245,
3233,
2277,
12,
514,
6612,
16,
987,
1909,
18429,
16,
14022,
3305,
1191,
3305,
262,
3639,
1216,
6281,
2277,
10998,
503,
565,
288,
3639,
6258,
3233,
2277,
1982,
273,
394,
6258,
3233,
2277,
12,
6612,
11272,
3639,
6281,
2277,
10998,
503,
3352,
503,
273,
446,
31,
3639,
364,
261,
4498,
3538,
3198,
273,
1909,
18429,
18,
9838,
5621,
3538,
3198,
18,
5332,
2134,
5621,
262,
3639,
288,
5411,
14022,
3305,
3352,
273,
261,
7581,
3305,
13,
3538,
3198,
18,
4285,
5621,
5411,
775,
5411,
288,
7734,
3352,
2277,
1318,
18,
10828,
12,
1982,
16,
3352,
16,
1191,
3305,
11272,
27573,
368,
2715,
333,
358,
3455,
518,
628,
8742,
316,
326,
4031,
1347,
732,
12897,
1496,
486,
603,
1122,
3538,
2777,
7734,
3352,
503,
273,
446,
31,
7734,
898,
31,
5411,
289,
5411,
1044,
261,
6281,
2277,
10998,
503,
425,
262,
5411,
288,
7734,
3352,
503,
273,
425,
31,
5411,
289,
3639,
289,
3639,
309,
261,
3352,
503,
480,
446,
262,
3639,
288,
5411,
604,
3352,
503,
31,
3639,
289,
3639,
327,
1982,
18,
29925,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10998,
503,
565,
288,
3639,
6258,
3233,
2277,
1982,
273,
394,
6258,
3233,
2277,
12,
6612,
11272,
3639,
6281,
2277,
10998,
503,
3352,
503,
273,
446,
31,
3639,
364,
261,
4498,
3538,
3198,
273,
1909,
18429,
18,
9838,
5621,
3538,
3198,
18,
5332,
2134,
5621,
262,
3639,
288,
5411,
14022,
3305,
3352,
273,
261,
7581,
3305,
13,
3538,
3198,
18,
4285,
5621,
5411,
775,
5411,
288,
7734,
3352,
2277,
1318,
18,
10828,
12,
1982,
16,
3352,
16,
1191,
3305,
11272,
27573,
368,
2715,
333,
358,
3455,
518,
628,
8742,
316,
326,
4031,
1347,
732,
12897,
1496,
2
] |
||
protected INode createINode(int preferredBlockBroup, int fileFormat, int accessRights, int uid, int gid) throws FileSystemException, IOException { if(preferredBlockBroup >= superblock.getBlocksCount()) throw new FileSystemException("Block group "+preferredBlockBroup+" does not exist"); int groupNr = preferredBlockBroup; INodeReservation res = findFreeINode( groupNr ); if(!res.isSuccessful()) { for(groupNr=0; groupNr<superblock.getBlockGroupNr(); groupNr++) { res = findFreeINode( groupNr ); if(res.isSuccessful()){ break; } } } if(!res.isSuccessful()) throw new FileSystemException("No free inodes found!"); INodeTable iNodeTable = iNodeTables[preferredBlockBroup]; int iNodeNr = res.getINodeNr((int)superblock.getINodesPerGroup()); INode iNode = new INode(this, new INodeDescriptor(iNodeTable, iNodeNr, groupNr, res.getIndex())); iNode.create( fileFormat, accessRights, uid, gid); iNode.update(); | protected INode createINode(int preferredBlockBroup, int fileFormat, int accessRights, int uid, int gid) throws FileSystemException, IOException { if (preferredBlockBroup >= superblock.getBlocksCount()) throw new FileSystemException("Block group " + preferredBlockBroup + " does not exist"); | protected INode createINode(int preferredBlockBroup, int fileFormat, int accessRights, int uid, int gid) throws FileSystemException, IOException { if(preferredBlockBroup >= superblock.getBlocksCount()) throw new FileSystemException("Block group "+preferredBlockBroup+" does not exist"); int groupNr = preferredBlockBroup; //first check the preferred block group, if it has any free inodes INodeReservation res = findFreeINode( groupNr ); //if no free inode has been found in the preferred block group, then try the others if(!res.isSuccessful()) { for(groupNr=0; groupNr<superblock.getBlockGroupNr(); groupNr++) { res = findFreeINode( groupNr ); if(res.isSuccessful()){ break; } } } if(!res.isSuccessful()) throw new FileSystemException("No free inodes found!"); //a free inode has been found: create the inode and write it into the inode table INodeTable iNodeTable = iNodeTables[preferredBlockBroup]; //byte[] iNodeData = new byte[INode.INODE_LENGTH]; int iNodeNr = res.getINodeNr((int)superblock.getINodesPerGroup()); INode iNode = new INode(this, new INodeDescriptor(iNodeTable, iNodeNr, groupNr, res.getIndex())); iNode.create( fileFormat, accessRights, uid, gid); //trigger a write to disk iNode.update(); log.debug("** NEW INODE ALLOCATED: inode number: "+iNode.getINodeNr()); //put the inode into the cache synchronized(inodeCache) { Integer key = new Integer(iNodeNr); if(inodeCache.containsKey(key)) throw new FileSystemException("Newly allocated inode is already in the inode cache!?"); else inodeCache.put(key, iNode); } return iNode; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
21176,
752,
23184,
12,
474,
9119,
1768,
38,
656,
16,
3196,
202,
474,
585,
1630,
16,
509,
2006,
18464,
16,
202,
202,
474,
4555,
16,
509,
11399,
13,
225,
202,
15069,
10931,
503,
16,
1860,
288,
202,
202,
430,
12,
23616,
1768,
38,
656,
1545,
2240,
2629,
18,
588,
6450,
1380,
10756,
1082,
202,
12849,
394,
10931,
503,
2932,
1768,
1041,
13773,
23616,
1768,
38,
656,
9078,
1552,
486,
1005,
8863,
6862,
202,
474,
1041,
18726,
273,
9119,
1768,
38,
656,
31,
202,
202,
759,
3645,
866,
326,
9119,
1203,
1041,
16,
309,
518,
711,
1281,
4843,
316,
1145,
202,
202,
23184,
18074,
400,
273,
1104,
9194,
23184,
12,
1041,
18726,
11272,
9506,
202,
759,
430,
1158,
4843,
17870,
711,
2118,
1392,
316,
326,
9119,
1203,
1041,
16,
1508,
775,
326,
10654,
202,
202,
430,
12,
5,
455,
18,
291,
14277,
10756,
288,
1082,
202,
1884,
12,
1655,
18726,
33,
20,
31,
1041,
18726,
32,
9565,
2629,
18,
588,
1768,
1114,
18726,
5621,
1041,
18726,
27245,
288,
9506,
202,
455,
273,
1104,
9194,
23184,
12,
1041,
18726,
11272,
9506,
202,
430,
12,
455,
18,
291,
14277,
10756,
95,
6862,
202,
8820,
31,
9506,
202,
97,
6862,
202,
97,
202,
202,
97,
9506,
202,
430,
12,
5,
455,
18,
291,
14277,
10756,
1082,
202,
12849,
394,
10931,
503,
2932,
2279,
4843,
316,
1145,
1392,
4442,
1769,
6862,
202,
759,
69,
4843,
17870,
711,
2118,
1392,
30,
752,
326,
17870,
471,
1045,
518,
1368,
326,
17870,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
21176,
752,
23184,
12,
474,
9119,
1768,
38,
656,
16,
3196,
202,
474,
585,
1630,
16,
509,
2006,
18464,
16,
202,
202,
474,
4555,
16,
509,
11399,
13,
225,
202,
15069,
10931,
503,
16,
1860,
288,
202,
202,
430,
12,
23616,
1768,
38,
656,
1545,
2240,
2629,
18,
588,
6450,
1380,
10756,
1082,
202,
12849,
394,
10931,
503,
2932,
1768,
1041,
13773,
23616,
1768,
38,
656,
9078,
1552,
486,
1005,
8863,
6862,
202,
474,
1041,
18726,
273,
9119,
1768,
38,
656,
31,
202,
202,
759,
3645,
866,
326,
9119,
1203,
1041,
16,
309,
518,
711,
1281,
4843,
316,
1145,
202,
202,
23184,
18074,
400,
273,
1104,
9194,
23184,
12,
1041,
18726,
11272,
9506,
202,
759,
430,
2
] |
{ return changeSupport == null ? new PropertyChangeListener[0] : changeSupport.getPropertyChangeListeners(property); } | { return changeSupport == null ? new PropertyChangeListener[0] : changeSupport.getPropertyChangeListeners(property); } | public PropertyChangeListener[] getPropertyChangeListeners(String property) { return changeSupport == null ? new PropertyChangeListener[0] : changeSupport.getPropertyChangeListeners(property); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
4276,
15744,
8526,
3911,
3043,
5583,
12,
780,
1272,
13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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
4276,
15744,
8526,
3911,
3043,
5583,
12,
780,
1272,
13,
3639,
288,
1850,
327,
2549,
6289,
422,
446,
692,
394,
4276,
15744,
63,
20,
65,
1171,
294,
2549,
6289,
18,
588,
1396,
3043,
5583,
12,
4468,
1769,
3639,
289,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
IClasspathEntry entry; | IClasspathEntry entry= null; | public static void addJUnitToBuildPath(Shell shell, IJavaProject project) throws JavaModelException { IProject junitProject= ResourcesPlugin.getWorkspace().getRoot().getProject("org.junit"); //$NON-NLS-1$ IClasspathEntry entry; if (junitProject.exists()) { entry= JavaCore.newProjectEntry(junitProject.getFullPath()); } else { IPath junitHome= new Path(JUnitPlugin.JUNIT_HOME); IPath sourceHome= new Path("ECLIPSE_HOME"); //$NON-NLS-1$ entry= JavaCore.newVariableEntry( junitHome.append("junit.jar"), //$NON-NLS-1$ //TODO: find a better solution than declaring a classpath variable sourceHome.append("plugins/org.eclipse.jdt.source_3.1.0/src/org.junit_3.8.1/junitsrc.zip"), //$NON-NLS-1$ null ); } addToClasspath(shell, project, entry); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/d7d24a8b406d364808a951aaa85f5f8677ef5767/JUnitAddLibraryProposal.java/buggy/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitAddLibraryProposal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
527,
46,
2802,
774,
3116,
743,
12,
13220,
5972,
16,
467,
5852,
4109,
1984,
13,
1216,
5110,
1488,
503,
288,
202,
202,
45,
4109,
525,
4873,
4109,
33,
8128,
3773,
18,
588,
8241,
7675,
588,
2375,
7675,
588,
4109,
2932,
3341,
18,
78,
4873,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
45,
17461,
1622,
1241,
31,
202,
202,
430,
261,
78,
4873,
4109,
18,
1808,
10756,
288,
1082,
202,
4099,
33,
5110,
4670,
18,
2704,
4109,
1622,
12,
78,
4873,
4109,
18,
588,
24173,
10663,
202,
202,
97,
469,
288,
1082,
202,
45,
743,
525,
4873,
8684,
33,
394,
2666,
12,
46,
2802,
3773,
18,
46,
15736,
67,
14209,
1769,
1082,
202,
45,
743,
1084,
8684,
33,
394,
2666,
2932,
7228,
2053,
52,
1090,
67,
14209,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
4099,
33,
5110,
4670,
18,
2704,
3092,
1622,
12,
9506,
202,
78,
4873,
8684,
18,
6923,
2932,
78,
4873,
18,
11930,
6,
3631,
282,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
759,
6241,
30,
1104,
279,
7844,
6959,
2353,
20845,
279,
10006,
2190,
9506,
202,
3168,
8684,
18,
6923,
2932,
8057,
19,
3341,
18,
20416,
18,
78,
7510,
18,
3168,
67,
23,
18,
21,
18,
20,
19,
4816,
19,
3341,
18,
78,
4873,
67,
23,
18,
28,
18,
21,
19,
78,
7705,
1310,
18,
4450,
6,
3631,
225,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2011,
1082,
202,
1769,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
527,
46,
2802,
774,
3116,
743,
12,
13220,
5972,
16,
467,
5852,
4109,
1984,
13,
1216,
5110,
1488,
503,
288,
202,
202,
45,
4109,
525,
4873,
4109,
33,
8128,
3773,
18,
588,
8241,
7675,
588,
2375,
7675,
588,
4109,
2932,
3341,
18,
78,
4873,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
45,
17461,
1622,
1241,
31,
202,
202,
430,
261,
78,
4873,
4109,
18,
1808,
10756,
288,
1082,
202,
4099,
33,
5110,
4670,
18,
2704,
4109,
1622,
12,
78,
4873,
4109,
18,
588,
24173,
10663,
202,
202,
97,
469,
288,
1082,
202,
45,
743,
525,
4873,
8684,
33,
394,
2666,
12,
46,
2802,
3773,
18,
46,
15736,
67,
14209,
1769,
1082,
2
] |
FileInputStream stream= new FileInputStream(f); | stream= new FileInputStream(f); | private byte[] getClassData(File f) { try { FileInputStream stream= new FileInputStream(f); ByteArrayOutputStream out= new ByteArrayOutputStream(1000); byte[] b= new byte[1000]; int n; while ((n= stream.read(b)) != -1) out.write(b, 0, n); stream.close(); out.close(); return out.toByteArray(); } catch (IOException e) { } return null; } | 50133 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50133/108dc8c751471e4737233a4fe8eff810a23977d9/TestCaseClassLoader.java/buggy/junit/runner/TestCaseClassLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1160,
8526,
2900,
751,
12,
812,
284,
13,
288,
202,
202,
698,
288,
1082,
202,
812,
4348,
1407,
33,
394,
11907,
12,
74,
1769,
1082,
202,
8826,
4632,
596,
33,
394,
11559,
12,
18088,
1769,
1082,
202,
7229,
8526,
324,
33,
394,
1160,
63,
18088,
15533,
1082,
202,
474,
290,
31,
1082,
202,
17523,
14015,
82,
33,
1407,
18,
896,
12,
70,
3719,
480,
300,
21,
13,
4697,
202,
659,
18,
2626,
12,
70,
16,
374,
16,
290,
1769,
1082,
202,
3256,
18,
4412,
5621,
1082,
202,
659,
18,
4412,
5621,
1082,
202,
2463,
596,
18,
869,
8826,
5621,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1160,
8526,
2900,
751,
12,
812,
284,
13,
288,
202,
202,
698,
288,
1082,
202,
812,
4348,
1407,
33,
394,
11907,
12,
74,
1769,
1082,
202,
8826,
4632,
596,
33,
394,
11559,
12,
18088,
1769,
1082,
202,
7229,
8526,
324,
33,
394,
1160,
63,
18088,
15533,
1082,
202,
474,
290,
31,
1082,
202,
17523,
14015,
82,
33,
1407,
18,
896,
12,
70,
3719,
480,
300,
21,
13,
4697,
202,
659,
18,
2626,
12,
70,
16,
374,
16,
290,
1769,
1082,
202,
3256,
18,
4412,
5621,
1082,
202,
659,
18,
4412,
5621,
1082,
202,
2463,
596,
18,
869,
8826,
5621,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
202,
202,
97,
202,
202,
2463,
446,
31,
2
] |
boolean res = myFilter.accept(d); | boolean res = myFilter.accept(new MuleMessage(d, null)); | public void testFilter4() throws Exception { Dummy d = new Dummy(); d.setId(10); d.setContent("hello"); myFilter.setExpression("id=10 and content='hello'"); boolean res = myFilter.accept(d); assertTrue(res); } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/a8a8412136453310849f67a551a2a1514a149629/JXPathFilterTestCase.java/clean/src/test/java/org/mule/test/filters/xml/JXPathFilterTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1586,
24,
1435,
1216,
1185,
565,
288,
3639,
28622,
302,
273,
394,
28622,
5621,
3639,
302,
18,
542,
548,
12,
2163,
1769,
3639,
302,
18,
542,
1350,
2932,
23711,
8863,
3639,
3399,
1586,
18,
542,
2300,
2932,
350,
33,
2163,
471,
913,
2218,
23711,
4970,
1769,
3639,
1250,
400,
273,
3399,
1586,
18,
9436,
12,
2704,
490,
725,
1079,
12,
72,
16,
446,
10019,
3639,
1815,
5510,
12,
455,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1586,
24,
1435,
1216,
1185,
565,
288,
3639,
28622,
302,
273,
394,
28622,
5621,
3639,
302,
18,
542,
548,
12,
2163,
1769,
3639,
302,
18,
542,
1350,
2932,
23711,
8863,
3639,
3399,
1586,
18,
542,
2300,
2932,
350,
33,
2163,
471,
913,
2218,
23711,
4970,
1769,
3639,
1250,
400,
273,
3399,
1586,
18,
9436,
12,
2704,
490,
725,
1079,
12,
72,
16,
446,
10019,
3639,
1815,
5510,
12,
455,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
keywords.contains("vader") ) | keywords.contains("darth") && keywords.contains("Vocal") ) | public void testAudio() { clearDirectory(); // test construction LimeXMLReplyCollection collection = new LimeXMLReplyCollection(files, schemaURI, mfm, audio); Assert.assertTrue("LimeXMLCollection count wrong! Count is " + collection.getCount(), (collection.getCount() == 2)); // test assocation LimeXMLDocument doc = null; doc = collection.getDocForHash(mfm.readFromMap(mason)); Assert.assertTrue("Mason should not have a doc!", doc == null); doc = collection.getDocForHash(mfm.readFromMap(vader)); Assert.assertTrue("Vader should have a doc!", doc != null); doc = collection.getDocForHash(mfm.readFromMap(swing)); Assert.assertTrue("Swing should have a doc!", doc != null); // test keyword generation List keywords = collection.getKeyWords(); Assert.assertTrue("Keywords should have 4, instead " + keywords.size(), (keywords.size() == 4)); Assert.assertTrue("Correct keywords not in map!", (keywords.contains("ferris") && keywords.contains("swing") && keywords.contains("darth") && keywords.contains("vader") ) ); } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/7ec98a2d5501727c7883b9d4324182be88c3ec90/CollectionTester.java/clean/components/gnutella-core/src/test/java/com/limegroup/gnutella/xml/CollectionTester.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
12719,
1435,
288,
3639,
2424,
2853,
5621,
3639,
368,
1842,
16171,
3639,
511,
494,
4201,
7817,
2532,
1849,
273,
540,
394,
511,
494,
4201,
7817,
2532,
12,
2354,
16,
1963,
3098,
16,
14749,
81,
16,
7447,
1769,
3639,
5452,
18,
11231,
5510,
2932,
48,
494,
4201,
2532,
1056,
7194,
5,
225,
6974,
353,
315,
397,
21821,
1849,
18,
588,
1380,
9334,
12900,
261,
5548,
18,
588,
1380,
1435,
422,
576,
10019,
3639,
368,
1842,
1551,
4431,
3639,
511,
494,
4201,
2519,
997,
273,
446,
31,
3639,
997,
273,
1849,
18,
588,
1759,
1290,
2310,
12,
16126,
81,
18,
896,
27731,
12,
81,
2753,
10019,
3639,
5452,
18,
11231,
5510,
2932,
49,
2753,
1410,
486,
1240,
279,
997,
5,
3113,
12900,
997,
422,
446,
1769,
3639,
997,
273,
1849,
18,
588,
1759,
1290,
2310,
12,
16126,
81,
18,
896,
27731,
12,
90,
1143,
10019,
3639,
5452,
18,
11231,
5510,
2932,
58,
1143,
1410,
1240,
279,
997,
5,
3113,
12900,
997,
480,
446,
1769,
3639,
997,
273,
1849,
18,
588,
1759,
1290,
2310,
12,
16126,
81,
18,
896,
27731,
12,
5328,
310,
10019,
3639,
5452,
18,
11231,
5510,
2932,
6050,
310,
1410,
1240,
279,
997,
5,
3113,
12900,
997,
480,
446,
1769,
3639,
368,
1842,
4932,
9377,
3639,
987,
7093,
273,
1849,
18,
588,
653,
7363,
5621,
3639,
5452,
18,
11231,
5510,
2932,
14149,
1410,
1240,
1059,
16,
3560,
315,
397,
7093,
18,
1467,
9334,
12900,
261,
11771,
18,
1467,
1435,
422,
1059,
10019,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
12719,
1435,
288,
3639,
2424,
2853,
5621,
3639,
368,
1842,
16171,
3639,
511,
494,
4201,
7817,
2532,
1849,
273,
540,
394,
511,
494,
4201,
7817,
2532,
12,
2354,
16,
1963,
3098,
16,
14749,
81,
16,
7447,
1769,
3639,
5452,
18,
11231,
5510,
2932,
48,
494,
4201,
2532,
1056,
7194,
5,
225,
6974,
353,
315,
397,
21821,
1849,
18,
588,
1380,
9334,
12900,
261,
5548,
18,
588,
1380,
1435,
422,
576,
10019,
3639,
368,
1842,
1551,
4431,
3639,
511,
494,
4201,
2519,
997,
273,
446,
31,
3639,
997,
273,
1849,
18,
588,
1759,
1290,
2310,
12,
16126,
81,
18,
896,
27731,
12,
81,
2753,
10019,
3639,
5452,
18,
11231,
5510,
2932,
49,
2753,
1410,
486,
1240,
2
] |
Terminal.blue(System.err); | Terminal.boldface(System.err); | private void printDescription(String cmdStr, Command c) { String desc = c.getLongDescription(cmdStr); if (desc == null) { if (c.getShortDescription() != null) { desc = "\t[short description]: " + c.getShortDescription(); } } String synopsis = c.getSynopsis(cmdStr); if (synopsis != null) { Terminal.blue(System.err); System.err.println("SYNOPSIS"); Terminal.reset(System.err); System.err.println("\t" + synopsis); System.err.println(); } if (desc != null) { Terminal.blue(System.err); System.err.println("DESCRIPTION"); Terminal.reset(System.err); System.err.println(desc); if (c.requiresValidSession(cmdStr)) { System.err.println("\tRequires valid session."); } } if (desc == null && synopsis == null) { System.err.println("no detailed help for '" + cmdStr + "'"); } } | 49725 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49725/2caff3b838fde3796eebe9590aa15c5e2e5c3e5c/HelpCommand.java/clean/src/henplus/commands/HelpCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1172,
3291,
12,
780,
1797,
1585,
16,
3498,
276,
13,
288,
202,
780,
3044,
273,
276,
18,
588,
3708,
3291,
12,
4172,
1585,
1769,
202,
430,
261,
5569,
422,
446,
13,
288,
202,
565,
309,
261,
71,
18,
588,
4897,
3291,
1435,
480,
446,
13,
288,
202,
202,
5569,
273,
1548,
88,
63,
6620,
2477,
14542,
315,
397,
276,
18,
588,
4897,
3291,
5621,
202,
565,
289,
202,
97,
202,
780,
6194,
29522,
273,
276,
18,
588,
10503,
29522,
12,
4172,
1585,
1769,
202,
202,
430,
261,
11982,
29522,
480,
446,
13,
288,
202,
565,
18778,
18,
14081,
12,
3163,
18,
370,
1769,
202,
565,
2332,
18,
370,
18,
8222,
2932,
7474,
3417,
52,
15664,
8863,
202,
565,
18778,
18,
6208,
12,
3163,
18,
370,
1769,
202,
565,
2332,
18,
370,
18,
8222,
31458,
88,
6,
397,
6194,
29522,
1769,
202,
565,
2332,
18,
370,
18,
8222,
5621,
202,
97,
202,
430,
261,
5569,
480,
446,
13,
288,
202,
565,
18778,
18,
14081,
12,
3163,
18,
370,
1769,
202,
565,
2332,
18,
370,
18,
8222,
2932,
15911,
8863,
202,
565,
18778,
18,
6208,
12,
3163,
18,
370,
1769,
202,
565,
2332,
18,
370,
18,
8222,
12,
5569,
1769,
202,
565,
309,
261,
71,
18,
18942,
1556,
2157,
12,
4172,
1585,
3719,
288,
202,
202,
3163,
18,
370,
18,
8222,
31458,
88,
21671,
923,
1339,
1199,
1769,
202,
565,
289,
202,
97,
202,
430,
261,
5569,
422,
446,
597,
6194,
29522,
422,
446,
13,
288,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1172,
3291,
12,
780,
1797,
1585,
16,
3498,
276,
13,
288,
202,
780,
3044,
273,
276,
18,
588,
3708,
3291,
12,
4172,
1585,
1769,
202,
430,
261,
5569,
422,
446,
13,
288,
202,
565,
309,
261,
71,
18,
588,
4897,
3291,
1435,
480,
446,
13,
288,
202,
202,
5569,
273,
1548,
88,
63,
6620,
2477,
14542,
315,
397,
276,
18,
588,
4897,
3291,
5621,
202,
565,
289,
202,
97,
202,
780,
6194,
29522,
273,
276,
18,
588,
10503,
29522,
12,
4172,
1585,
1769,
202,
202,
430,
261,
11982,
29522,
480,
446,
13,
288,
202,
565,
18778,
18,
14081,
12,
3163,
18,
370,
1769,
202,
565,
2332,
18,
370,
18,
8222,
2932,
7474,
3417,
52,
15664,
8863,
2
] |
} else { this.dispose(); | public void actionPerformed(ActionEvent e) { JButton button = (JButton) e.getSource(); String buttonName = button.getName(); if (buttonName.equals("ok")) { userCredentials.setPassword( passwdField.getPassword()); userCredentials.setPasswordPersistent( rememberPassCheckBox.isSelected()); } else { this.dispose(); } } | 43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/9749f1b846a4b3ba4889320b68d81d332342f4ad/AuthenticationWindow.java/buggy/src/net/java/sip/communicator/impl/gui/main/login/AuthenticationWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
28804,
3568,
273,
261,
46,
3616,
13,
425,
18,
588,
1830,
5621,
3639,
514,
3568,
461,
273,
3568,
18,
17994,
5621,
3639,
309,
261,
5391,
461,
18,
14963,
2932,
601,
6,
3719,
288,
5411,
729,
6163,
18,
542,
3913,
12,
10792,
19093,
974,
18,
588,
3913,
10663,
5411,
729,
6163,
18,
542,
3913,
11906,
12,
10792,
11586,
6433,
19174,
18,
291,
7416,
10663,
3639,
289,
469,
288,
5411,
333,
18,
2251,
4150,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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639,
28804,
3568,
273,
261,
46,
3616,
13,
425,
18,
588,
1830,
5621,
3639,
514,
3568,
461,
273,
3568,
18,
17994,
5621,
3639,
309,
261,
5391,
461,
18,
14963,
2932,
601,
6,
3719,
288,
5411,
729,
6163,
18,
542,
3913,
12,
10792,
19093,
974,
18,
588,
3913,
10663,
5411,
729,
6163,
18,
542,
3913,
11906,
12,
10792,
11586,
6433,
19174,
18,
291,
7416,
10663,
3639,
289,
469,
288,
5411,
333,
18,
2251,
4150,
5621,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
fs.put("N2NType", Integer.toString(type)); | fs.put("type", Integer.toString(type)); | public void receivedNodeToNodeMessage(Message m) { PeerNode source = (PeerNode)m.getSource(); int type = ((Integer) m.getObject(DMT.NODE_TO_NODE_MESSAGE_TYPE)).intValue(); if(type == Node.N2N_MESSAGE_TYPE_FPROXY_USERALERT) { ShortBuffer messageData = (ShortBuffer) m.getObject(DMT.NODE_TO_NODE_MESSAGE_DATA); Logger.normal(this, "Received N2NM from '"+source.getPeer()); SimpleFieldSet fs = null; try { fs = new SimpleFieldSet(messageData.toString()); } catch (IOException e) { Logger.error(this, "IOException while parsing node to node message data", e); return; } if(fs.get("N2NType") == null) { fs.removeValue("N2NType"); } fs.put("N2NType", Integer.toString(type)); int fileNumber = source.writeNewExtraPeerDataFile( fs, EXTRA_PEER_DATA_TYPE_N2NTM); if( fileNumber == -1 ) { Logger.error( this, "Failed to write N2NTM to extra peer data file for peer "+source.getPeer()); } // Keep track of the fileNumber so we can potentially delete the extra peer data file later, the file is authoritative try { handleNodeToNodeTextMessageSimpleFieldSet(fs, source, fileNumber); } catch (FSParseException e) { // Shouldn't happen throw new Error(e); } } else { Logger.error(this, "Received unknown node to node message type '"+type+"' from "+source.getPeer()); } } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/c7c45a3acb0353b0f2b42261fafcca645ebaed62/Node.java/buggy/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5079,
907,
31403,
1079,
12,
1079,
312,
13,
288,
202,
225,
10669,
907,
1084,
273,
261,
6813,
907,
13,
81,
18,
588,
1830,
5621,
202,
225,
509,
618,
273,
14015,
4522,
13,
312,
18,
588,
921,
12,
40,
6152,
18,
8744,
67,
4296,
67,
8744,
67,
8723,
67,
2399,
13,
2934,
474,
620,
5621,
202,
225,
309,
12,
723,
422,
2029,
18,
50,
22,
50,
67,
8723,
67,
2399,
67,
42,
16085,
67,
4714,
1013,
11539,
13,
288,
202,
202,
4897,
1892,
883,
751,
273,
261,
4897,
1892,
13,
312,
18,
588,
921,
12,
40,
6152,
18,
8744,
67,
4296,
67,
8744,
67,
8723,
67,
4883,
1769,
202,
202,
3328,
18,
6130,
12,
2211,
16,
315,
8872,
423,
22,
50,
49,
628,
2119,
15,
3168,
18,
588,
6813,
10663,
202,
202,
5784,
974,
694,
2662,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
2556,
273,
394,
4477,
974,
694,
12,
2150,
751,
18,
10492,
10663,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
14106,
1323,
5811,
756,
358,
756,
883,
501,
3113,
425,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
12,
2556,
18,
588,
2932,
50,
22,
50,
559,
7923,
422,
446,
13,
288,
1082,
202,
2556,
18,
4479,
620,
2932,
50,
22,
50,
559,
8863,
202,
202,
97,
202,
202,
2556,
18,
458,
2932,
50,
22,
50,
559,
3113,
2144,
18,
10492,
12,
723,
10019,
202,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5079,
907,
31403,
1079,
12,
1079,
312,
13,
288,
202,
225,
10669,
907,
1084,
273,
261,
6813,
907,
13,
81,
18,
588,
1830,
5621,
202,
225,
509,
618,
273,
14015,
4522,
13,
312,
18,
588,
921,
12,
40,
6152,
18,
8744,
67,
4296,
67,
8744,
67,
8723,
67,
2399,
13,
2934,
474,
620,
5621,
202,
225,
309,
12,
723,
422,
2029,
18,
50,
22,
50,
67,
8723,
67,
2399,
67,
42,
16085,
67,
4714,
1013,
11539,
13,
288,
202,
202,
4897,
1892,
883,
751,
273,
261,
4897,
1892,
13,
312,
18,
588,
921,
12,
40,
6152,
18,
8744,
67,
4296,
67,
8744,
67,
8723,
67,
4883,
1769,
202,
202,
3328,
18,
6130,
12,
2211,
16,
2
] |
return SELECTED_STATE.equals(getSelectedState()); | public final boolean isSelected() { return SELECTED_STATE.equals(getSelectedState()); } | 6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/CheckButton3StatesComponent.java/buggy/org.rcfaces.core/src/org/rcfaces/core/component/CheckButton3StatesComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1250,
20956,
1435,
288,
6647,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1250,
20956,
1435,
288,
6647,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
protected void linkToEditor(IStructuredSelection selection) { Object obj = selection.getFirstElement(); if (obj instanceof IFile && selection.size() == 1) { IFile file = (IFile) obj; IWorkbenchPage page = getSite().getPage(); IEditorPart editor = ResourceUtil.findEditor(page, file); if (editor != null) { page.bringToTop(editor); return; } | protected void linkToEditor() { ISelection sel = viewer.getSelection(); if (sel instanceof StructuredSelection) { StructuredSelection selection = (StructuredSelection)sel; Object obj = selection.getFirstElement(); if (obj instanceof IFile && selection.size() == 1) { IFile file = (IFile) obj; IWorkbenchPage page = getSite().getPage(); IEditorPart editor = ResourceUtil.findEditor(page, file); if (editor != null) { page.bringToTop(editor); return; } } | protected void linkToEditor(IStructuredSelection selection) { Object obj = selection.getFirstElement(); if (obj instanceof IFile && selection.size() == 1) { IFile file = (IFile) obj; IWorkbenchPage page = getSite().getPage(); IEditorPart editor = ResourceUtil.findEditor(page, file); if (editor != null) { page.bringToTop(editor); return; } } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/b45b3e8450d3c533a9bdd6b5f3a99a00c1063fc6/ResourceNavigator.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1692,
774,
6946,
12,
45,
30733,
6233,
4421,
13,
288,
3639,
1033,
1081,
273,
4421,
18,
588,
3759,
1046,
5621,
3639,
309,
261,
2603,
1276,
467,
812,
597,
4421,
18,
1467,
1435,
422,
404,
13,
288,
5411,
467,
812,
585,
273,
261,
45,
812,
13,
1081,
31,
5411,
467,
2421,
22144,
1964,
1363,
273,
11021,
7675,
588,
1964,
5621,
5411,
467,
6946,
1988,
4858,
273,
2591,
1304,
18,
4720,
6946,
12,
2433,
16,
585,
1769,
5411,
309,
261,
9177,
480,
446,
13,
288,
7734,
1363,
18,
2848,
310,
774,
3401,
12,
9177,
1769,
7734,
327,
31,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1692,
774,
6946,
12,
45,
30733,
6233,
4421,
13,
288,
3639,
1033,
1081,
273,
4421,
18,
588,
3759,
1046,
5621,
3639,
309,
261,
2603,
1276,
467,
812,
597,
4421,
18,
1467,
1435,
422,
404,
13,
288,
5411,
467,
812,
585,
273,
261,
45,
812,
13,
1081,
31,
5411,
467,
2421,
22144,
1964,
1363,
273,
11021,
7675,
588,
1964,
5621,
5411,
467,
6946,
1988,
4858,
273,
2591,
1304,
18,
4720,
6946,
12,
2433,
16,
585,
1769,
5411,
309,
261,
9177,
480,
446,
13,
288,
7734,
1363,
18,
2848,
310,
774,
3401,
12,
9177,
1769,
7734,
327,
31,
5411,
289,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} | } | private void setNextEnabled(boolean enabled) { butNext.setEnabled(enabled); client.getMenuBar().setDeployNextEnabled(enabled); } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/eaf4e0dbb0100e4bc279f36d58f100c6589a80ae/DeploymentDisplay.java/buggy/megamek/src/megamek/client/ui/AWT/DeploymentDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
27674,
1526,
12,
6494,
3696,
13,
288,
202,
202,
12885,
2134,
18,
542,
1526,
12,
5745,
1769,
3639,
1004,
18,
588,
4599,
5190,
7675,
542,
10015,
2134,
1526,
12,
5745,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
27674,
1526,
12,
6494,
3696,
13,
288,
202,
202,
12885,
2134,
18,
542,
1526,
12,
5745,
1769,
3639,
1004,
18,
588,
4599,
5190,
7675,
542,
10015,
2134,
1526,
12,
5745,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
SwingUtilities.invokeLater(new Runnable() { public void run() { myScrollingModel.disableAnimation(); myScrollingModel.scrollHorizontally(0); myScrollingModel.enableAnimation(); } }); | if (!ApplicationManager.getApplication().isUnitTestMode()) { SwingUtilities.invokeLater(new Runnable() { public void run() { myScrollingModel.disableAnimation(); myScrollingModel.scrollHorizontally(0); myScrollingModel.enableAnimation(); } }); } | public EditorImpl(Document document, boolean viewer, Project project) { myProject = project; myDocument = (DocumentImpl)document; myScheme = new MyColorSchemeDelegate(); myIsViewer = viewer; mySettings = new SettingsImpl(this); mySelectionModel = new SelectionModelImpl(this); myMarkupModel = new EditorMarkupModelImpl(this); myFoldingModel = new FoldingModelImpl(this); myCaretModel = new CaretModelImpl(this); mySizeContainer.reset(); myCommandProcessor = CommandProcessor.getInstance(); myEditorDocumentAdapter = new EditorDocumentAdapter(); myMarkupModelListener = new MarkupModelListener() { public void rangeHighlighterChanged(MarkupModelEvent event) { RangeHighlighterImpl rangeHighlighter = (RangeHighlighterImpl)event.getHighlighter(); if (rangeHighlighter.isValid()) { int start = rangeHighlighter.getAffectedAreaStartOffset(); int end = rangeHighlighter.getAffectedAreaEndOffset(); int startLine = myDocument.getLineNumber(start); int endLine = myDocument.getLineNumber(end); repaintLines(Math.max(0, startLine - 1), Math.min(endLine + 1, getDocument().getLineCount())); } else { repaint(0, getDocument().getTextLength()); } ((EditorMarkupModelImpl)getMarkupModel()).repaint(); ((EditorMarkupModelImpl)getMarkupModel()).markDirtied(); GutterIconRenderer renderer = rangeHighlighter.getGutterIconRenderer(); if (renderer != null) { updateGutterSize(); } updateCaretCursor(); } }; ((MarkupModelImpl)myDocument.getMarkupModel(myProject)).addMarkupModelListener(myMarkupModelListener); ((MarkupModelImpl)getMarkupModel()).addMarkupModelListener(myMarkupModelListener); myDocument.addDocumentListener(myFoldingModel); myDocument.addDocumentListener(myCaretModel); myDocument.addDocumentListener(mySelectionModel); myDocument.addDocumentListener(myEditorDocumentAdapter); myCaretCursor = new CaretCursor(); myFoldingModel.flushCaretShift(); myScrollbarOrientation = EditorEx.VERTICAL_SCROLLBAR_RIGHT; EditorHighlighter highlighter = new EmptyEditorHighlighter(myScheme.getAttributes(HighlighterColors.TEXT)); setHighlighter(highlighter); initComponent(); myScrollingModel = new ScrollingModelImpl(this); myGutterComponent.updateSize(); Dimension preferredSize = getPreferredSize(); myEditorComponent.setSize(preferredSize); if (Patches.APPLE_BUG_ID_3716835) { myScrollingModel.addVisibleAreaListener(new VisibleAreaListener() { public void visibleAreaChanged(VisibleAreaEvent e) { if (myAppleRepaintAlarm == null) { myAppleRepaintAlarm = new Alarm(Alarm.ThreadToUse.SWING_THREAD); } myAppleRepaintAlarm.cancelAllRequests(); myAppleRepaintAlarm.addRequest(new Runnable() { public void run() { repaint(0, myDocument.getTextLength()); } }, 50, ModalityState.stateForComponent(myEditorComponent)); } }); } updateCaretCursor(); // This hacks context layout problem where editor appears scrolled to the right just after it is created. SwingUtilities.invokeLater(new Runnable() { public void run() { myScrollingModel.disableAnimation(); myScrollingModel.scrollHorizontally(0); myScrollingModel.enableAnimation(); } }); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/879d50b43f5316148a0c2c592fcbba16d717a251/EditorImpl.java/buggy/source/com/intellij/openapi/editor/impl/EditorImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
18451,
2828,
12,
2519,
1668,
16,
1250,
14157,
16,
5420,
1984,
13,
288,
565,
3399,
4109,
273,
1984,
31,
565,
3399,
2519,
273,
261,
2519,
2828,
13,
5457,
31,
565,
3399,
9321,
273,
394,
8005,
2957,
9321,
9586,
5621,
565,
3399,
2520,
18415,
273,
14157,
31,
565,
3399,
2628,
273,
394,
8709,
2828,
12,
2211,
1769,
565,
3399,
6233,
1488,
273,
394,
12977,
29974,
12,
2211,
1769,
565,
3399,
13111,
1488,
273,
394,
18451,
13111,
29974,
12,
2211,
1769,
565,
3399,
15592,
310,
1488,
273,
394,
478,
1673,
310,
29974,
12,
2211,
1769,
565,
3399,
39,
20731,
1488,
273,
394,
385,
20731,
29974,
12,
2211,
1769,
565,
3399,
1225,
2170,
18,
6208,
5621,
565,
3399,
2189,
5164,
273,
3498,
5164,
18,
588,
1442,
5621,
565,
3399,
6946,
2519,
4216,
273,
394,
18451,
2519,
4216,
5621,
565,
3399,
13111,
1488,
2223,
273,
394,
26420,
1488,
2223,
1435,
288,
1377,
1071,
918,
1048,
8573,
23624,
5033,
12,
13111,
1488,
1133,
871,
13,
288,
3639,
8086,
8573,
23624,
2828,
1048,
8573,
23624,
273,
261,
2655,
8573,
23624,
2828,
13,
2575,
18,
588,
8573,
23624,
5621,
3639,
309,
261,
3676,
8573,
23624,
18,
26810,
10756,
288,
1850,
509,
787,
273,
1048,
8573,
23624,
18,
588,
23775,
5484,
1685,
2335,
5621,
1850,
509,
679,
273,
1048,
8573,
23624,
18,
588,
23775,
5484,
1638,
2335,
5621,
1850,
509,
24636,
273,
3399,
2519,
18,
588,
31063,
12,
1937,
1769,
1850,
509,
31763,
273,
3399,
2519,
18,
588,
31063,
12,
409,
1769,
1850,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
18451,
2828,
12,
2519,
1668,
16,
1250,
14157,
16,
5420,
1984,
13,
288,
565,
3399,
4109,
273,
1984,
31,
565,
3399,
2519,
273,
261,
2519,
2828,
13,
5457,
31,
565,
3399,
9321,
273,
394,
8005,
2957,
9321,
9586,
5621,
565,
3399,
2520,
18415,
273,
14157,
31,
565,
3399,
2628,
273,
394,
8709,
2828,
12,
2211,
1769,
565,
3399,
6233,
1488,
273,
394,
12977,
29974,
12,
2211,
1769,
565,
3399,
13111,
1488,
273,
394,
18451,
13111,
29974,
12,
2211,
1769,
565,
3399,
15592,
310,
1488,
273,
394,
478,
1673,
310,
29974,
12,
2211,
1769,
565,
3399,
39,
20731,
1488,
273,
394,
385,
20731,
29974,
12,
2211,
1769,
565,
3399,
1225,
2170,
18,
6208,
5621,
565,
3399,
2189,
5164,
2
] |
/* Set per-column characteristics. */ state.setColumns( pointSelector_.getColumns() ); state.setLogFlags( pointSelector_.getLogFlags() ); state.setFlipFlags( pointSelector_.getFlipFlags() ); | /* Set per-axis characteristics. */ StarTableColumn[] axcols = pointSelectors_.getMainSelector().getColumns(); ColumnInfo[] axinfos = new ColumnInfo[ ndim_ ]; for ( int i = 0; i < ndim_; i++ ) { axinfos[ i ] = axcols[ i ].getColumnInfo(); } state.setAxes( axinfos ); state.setLogFlags( pointSelectors_.getMainSelector().getLogFlags() ); state.setFlipFlags( pointSelectors_.getMainSelector().getFlipFlags() ); | public PlotState getPlotState() { /* Create a plot state as delegated to the current instance. */ PlotState state = createPlotState(); /* Can't plot, won't plot. */ if ( ! pointSelector_.isValid() ) { state.setValid( false ); return state; } /* Set per-column characteristics. */ state.setColumns( pointSelector_.getColumns() ); state.setLogFlags( pointSelector_.getLogFlags() ); state.setFlipFlags( pointSelector_.getFlipFlags() ); /* Set selected subsets and associated characteristics. */ int[] selection = getOrderedSubsetSelection(); int nrsets = selection.length; RowSubset[] usedSubsets = new RowSubset[ nrsets ]; MarkStyle[] styles = new MarkStyle[ nrsets ]; OptionsListModel subsets = pointSelector_.getTable().getSubsets(); for ( int isel = 0; isel < nrsets; isel++ ) { int isub = selection[ isel ]; usedSubsets[ isel ] = (RowSubset) subsets.get( isub ); styles[ isel ] = getMarkStyle( isub ); assert state.getSubsets() == null || state.getSubsets()[ isel ] == usedSubsets[ isel ] : isub + ": " + state.getSubsets()[ isel ] + " != " + usedSubsets[ isel ]; assert state.getStyles() == null || state.getStyles()[ isel ].equals( styles[ isel ] ) : isub + ": " + state.getStyles()[ isel ] + " != " + styles[ isel ]; } state.setSubsets( usedSubsets, styles ); /* Set grid status. */ state.setGrid( gridButton_.isSelected() ); /* Return the configured state for use. */ return state; } | 48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/a1670870bf7e3d4455b1d686d993132d7d4788cd/GraphicsWindow.java/clean/topcat/src/main/uk/ac/starlink/topcat/plot/GraphicsWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15211,
1119,
9774,
352,
1119,
1435,
288,
3639,
1748,
1788,
279,
3207,
919,
487,
30055,
358,
326,
783,
791,
18,
1195,
3639,
15211,
1119,
919,
273,
752,
11532,
1119,
5621,
3639,
1748,
4480,
1404,
3207,
16,
8462,
1404,
3207,
18,
1195,
3639,
309,
261,
401,
1634,
4320,
27799,
26810,
1435,
262,
288,
5411,
919,
18,
542,
1556,
12,
629,
11272,
5411,
327,
919,
31,
3639,
289,
3639,
1748,
1000,
1534,
17,
2827,
29385,
18,
1195,
3639,
919,
18,
542,
3380,
12,
1634,
4320,
27799,
588,
3380,
1435,
11272,
3639,
919,
18,
542,
1343,
5094,
12,
1634,
4320,
27799,
588,
1343,
5094,
1435,
11272,
3639,
919,
18,
542,
28535,
5094,
12,
1634,
4320,
27799,
588,
28535,
5094,
1435,
11272,
3639,
1748,
1000,
3170,
30760,
471,
3627,
29385,
18,
1195,
3639,
509,
8526,
4421,
273,
11973,
329,
20315,
6233,
5621,
3639,
509,
9884,
4424,
273,
4421,
18,
2469,
31,
3639,
6556,
20315,
8526,
1399,
1676,
4424,
273,
394,
6556,
20315,
63,
9884,
4424,
308,
31,
3639,
6622,
2885,
8526,
5687,
273,
394,
6622,
2885,
63,
9884,
4424,
308,
31,
3639,
5087,
682,
1488,
30760,
273,
1634,
4320,
27799,
588,
1388,
7675,
588,
1676,
4424,
5621,
3639,
364,
261,
509,
353,
292,
273,
374,
31,
353,
292,
411,
9884,
4424,
31,
353,
292,
9904,
262,
288,
5411,
509,
353,
373,
273,
4421,
63,
353,
292,
308,
31,
5411,
1399,
1676,
4424,
63,
353,
292,
308,
273,
261,
1999,
20315,
13,
30760,
18,
588,
12,
353,
373,
11272,
5411,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15211,
1119,
9774,
352,
1119,
1435,
288,
3639,
1748,
1788,
279,
3207,
919,
487,
30055,
358,
326,
783,
791,
18,
1195,
3639,
15211,
1119,
919,
273,
752,
11532,
1119,
5621,
3639,
1748,
4480,
1404,
3207,
16,
8462,
1404,
3207,
18,
1195,
3639,
309,
261,
401,
1634,
4320,
27799,
26810,
1435,
262,
288,
5411,
919,
18,
542,
1556,
12,
629,
11272,
5411,
327,
919,
31,
3639,
289,
3639,
1748,
1000,
1534,
17,
2827,
29385,
18,
1195,
3639,
919,
18,
542,
3380,
12,
1634,
4320,
27799,
588,
3380,
1435,
11272,
3639,
919,
18,
542,
1343,
5094,
12,
1634,
4320,
27799,
588,
1343,
5094,
1435,
11272,
3639,
919,
18,
542,
28535,
5094,
12,
1634,
4320,
27799,
588,
28535,
5094,
1435,
2
] |
main.context.enable(); JComboBox ctx = main.context.context; Vector toolTips = main.context.toolTips; main.context.disableUpdate(); | debugGui.context.enable(); JComboBox ctx = debugGui.context.context; Vector toolTips = debugGui.context.toolTips; debugGui.context.disableUpdate(); | public void run() { String lastFrameUrl = lastFrame.getUrl(); int line = lastFrame.getLineNumber(); main.statusBar.setText("Thread: " + threadTitle); if (lastFrameUrl != null && !lastFrameUrl.equals("<stdin>")) { FileWindow w = main.getFileWindow(lastFrameUrl); if (w != null) { new SetFilePosition(main, w, line).run(); } else { SourceInfo si = lastFrame.sourceInfo(); CreateFileWindow.action(main, si, line).run(); } } else { if (main.console.isVisible()) { main.console.show(); } } if (alertMessage != null) { MessageDialogWrapper.showMessageDialog(main, alertMessage, "Exception in Script", JOptionPane.ERROR_MESSAGE); } JMenu menu = main.getJMenuBar().getMenu(0); //menu.getItem(0).setEnabled(false); // File->Load menu = main.getJMenuBar().getMenu(2); menu.getItem(0).setEnabled(false); // Debug->Break int count = menu.getItemCount(); for (int i = 1; i < count; ++i) { menu.getItem(i).setEnabled(true); } boolean b = false; for (int ci = 0, cc = main.toolBar.getComponentCount(); ci < cc; ci++) { main.toolBar.getComponent(ci).setEnabled(b); b = true; } main.toolBar.setEnabled(true); // raise the debugger window main.toFront(); ContextData contextData = lastFrame.contextData(); main.context.enable(); JComboBox ctx = main.context.context; Vector toolTips = main.context.toolTips; main.context.disableUpdate(); int frameCount = contextData.frameCount(); ctx.removeAllItems(); // workaround for JDK 1.4 bug that caches selected value even after // removeAllItems() is called ctx.setSelectedItem(null); toolTips.removeAllElements(); for (int i = 0; i < frameCount; i++) { StackFrame frame = contextData.getFrame(i); String url = frame.getUrl(); int lineNumber = frame.getLineNumber(); String shortName = url; if (url.length() > 20) { shortName = "..." + url.substring(url.length() - 17); } String location = "\"" + shortName + "\", line " + lineNumber; ctx.insertItemAt(location, i); location = "\"" + url + "\", line " + lineNumber; toolTips.addElement(location); } main.context.enableUpdate(); ctx.setSelectedIndex(0); ctx.setMinimumSize(new Dimension(50, ctx.getMinimumSize().height)); } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/7ceadc8e69bfcf427fd421373c750f8de120f15c/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
565,
288,
3639,
514,
1142,
3219,
1489,
273,
1142,
3219,
18,
588,
1489,
5621,
3639,
509,
980,
273,
1142,
3219,
18,
588,
31063,
5621,
3639,
2774,
18,
2327,
5190,
18,
542,
1528,
2932,
3830,
30,
315,
397,
2650,
4247,
1769,
3639,
309,
261,
2722,
3219,
1489,
480,
446,
597,
401,
2722,
3219,
1489,
18,
14963,
2932,
32,
21772,
2984,
3719,
288,
5411,
1387,
3829,
341,
273,
2774,
18,
29925,
3829,
12,
2722,
3219,
1489,
1769,
5411,
309,
261,
91,
480,
446,
13,
288,
7734,
394,
1000,
812,
2555,
12,
5254,
16,
341,
16,
980,
2934,
2681,
5621,
5411,
289,
469,
288,
7734,
4998,
966,
7533,
273,
1142,
3219,
18,
3168,
966,
5621,
7734,
1788,
812,
3829,
18,
1128,
12,
5254,
16,
7533,
16,
980,
2934,
2681,
5621,
5411,
289,
3639,
289,
469,
288,
5411,
309,
261,
5254,
18,
8698,
18,
291,
6207,
10756,
288,
7734,
2774,
18,
8698,
18,
4500,
5621,
5411,
289,
3639,
289,
3639,
309,
261,
11798,
1079,
480,
446,
13,
288,
5411,
2350,
6353,
3611,
18,
4500,
1079,
6353,
12,
5254,
16,
4766,
10402,
6881,
1079,
16,
4766,
10402,
315,
503,
316,
7739,
3113,
4766,
10402,
804,
1895,
8485,
18,
3589,
67,
8723,
1769,
3639,
289,
3639,
804,
4599,
3824,
273,
2774,
18,
588,
46,
4599,
5190,
7675,
588,
4599,
12,
20,
1769,
3639,
368,
5414,
18,
588,
1180,
12,
20,
2934,
542,
1526,
12,
5743,
1769,
368,
1387,
2122,
2563,
3639,
3824,
273,
2774,
18,
588,
46,
4599,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
565,
288,
3639,
514,
1142,
3219,
1489,
273,
1142,
3219,
18,
588,
1489,
5621,
3639,
509,
980,
273,
1142,
3219,
18,
588,
31063,
5621,
3639,
2774,
18,
2327,
5190,
18,
542,
1528,
2932,
3830,
30,
315,
397,
2650,
4247,
1769,
3639,
309,
261,
2722,
3219,
1489,
480,
446,
597,
401,
2722,
3219,
1489,
18,
14963,
2932,
32,
21772,
2984,
3719,
288,
5411,
1387,
3829,
341,
273,
2774,
18,
29925,
3829,
12,
2722,
3219,
1489,
1769,
5411,
309,
261,
91,
480,
446,
13,
288,
7734,
394,
1000,
812,
2555,
12,
5254,
16,
341,
16,
980,
2934,
2681,
5621,
5411,
289,
469,
288,
7734,
4998,
966,
7533,
273,
1142,
3219,
18,
3168,
966,
5621,
7734,
1788,
2
] |
AbstractPluginUIContainer puic = (AbstractPluginUIContainer)evt.getSource(); String id = puic.getId(); Plugin plugin = puic.getPlugin(); Jin.getInstance().getUIProvider().removePluginContainer(plugin, id, puic); containersToConsoles.remove(puic); | AbstractPluginUIContainer puic = (AbstractPluginUIContainer) evt.getSource(); String id = puic.getId(); Plugin plugin = puic.getPlugin(); | public void pluginUIHidden(PluginUIEvent evt) { AbstractPluginUIContainer puic = (AbstractPluginUIContainer)evt.getSource(); String id = puic.getId(); Plugin plugin = puic.getPlugin(); Jin.getInstance().getUIProvider().removePluginContainer(plugin, id, puic); containersToConsoles.remove(puic); } | 50794 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50794/7ad97f640609065fb4cffaab0b5437105af2ce96/ConsoleManager.java/clean/src/free/jin/console/ConsoleManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1909,
5370,
9345,
12,
3773,
5370,
1133,
6324,
13,
288,
3639,
4115,
3773,
5370,
2170,
16284,
335,
273,
261,
7469,
3773,
5370,
2170,
13,
73,
11734,
18,
588,
1830,
5621,
3639,
514,
612,
273,
16284,
335,
18,
26321,
5621,
3639,
6258,
1909,
273,
16284,
335,
18,
588,
3773,
5621,
8227,
804,
267,
18,
588,
1442,
7675,
588,
5370,
2249,
7675,
4479,
3773,
2170,
12,
4094,
16,
612,
16,
16284,
335,
1769,
7734,
8475,
774,
9054,
9112,
18,
4479,
12,
11938,
335,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1909,
5370,
9345,
12,
3773,
5370,
1133,
6324,
13,
288,
3639,
4115,
3773,
5370,
2170,
16284,
335,
273,
261,
7469,
3773,
5370,
2170,
13,
73,
11734,
18,
588,
1830,
5621,
3639,
514,
612,
273,
16284,
335,
18,
26321,
5621,
3639,
6258,
1909,
273,
16284,
335,
18,
588,
3773,
5621,
8227,
804,
267,
18,
588,
1442,
7675,
588,
5370,
2249,
7675,
4479,
3773,
2170,
12,
4094,
16,
612,
16,
16284,
335,
1769,
7734,
8475,
774,
9054,
9112,
18,
4479,
12,
11938,
335,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.columnNames = new Vector(); | columnNames = new Vector(); | public FileListModel() { super(); this.columnNames = new Vector(); this.columnNames.add(I18n.getMessage("thaw.common.file")); this.columnNames.add(I18n.getMessage("thaw.common.size")); //columnNames.add(I18n.getMessage("thaw.plugin.index.category")); this.columnNames.add(I18n.getMessage("thaw.common.key")); this.columnNames.add(I18n.getMessage("thaw.common.status")); } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/FileTable.java/buggy/src/thaw/plugins/index/FileTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1387,
682,
1488,
1435,
288,
1082,
202,
9565,
5621,
1082,
202,
2211,
18,
2827,
1557,
273,
394,
5589,
5621,
1082,
202,
2211,
18,
2827,
1557,
18,
1289,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
6054,
18,
768,
7923,
1769,
1082,
202,
2211,
18,
2827,
1557,
18,
1289,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
6054,
18,
1467,
7923,
1769,
1082,
202,
759,
2827,
1557,
18,
1289,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
4094,
18,
1615,
18,
4743,
7923,
1769,
1082,
202,
2211,
18,
2827,
1557,
18,
1289,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
6054,
18,
856,
7923,
1769,
1082,
202,
2211,
18,
2827,
1557,
18,
1289,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
6054,
18,
2327,
7923,
1769,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1387,
682,
1488,
1435,
288,
1082,
202,
9565,
5621,
1082,
202,
2211,
18,
2827,
1557,
273,
394,
5589,
5621,
1082,
202,
2211,
18,
2827,
1557,
18,
1289,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
6054,
18,
768,
7923,
1769,
1082,
202,
2211,
18,
2827,
1557,
18,
1289,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
6054,
18,
1467,
7923,
1769,
1082,
202,
759,
2827,
1557,
18,
1289,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
4094,
18,
1615,
18,
4743,
7923,
1769,
1082,
202,
2211,
18,
2827,
1557,
18,
1289,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
6054,
18,
856,
7923,
1769,
1082,
202,
2211,
18,
2
] |
return "bonuses/ramblin/activate"; | return "bonuses/frontier_town/ramblin/activate"; | protected String getEffectName () { return "bonuses/ramblin/activate"; } | 8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/41df18bc78321c394826f57198745934db25fcd6/RamblinEffect.java/buggy/src/java/com/threerings/bang/game/data/effect/RamblinEffect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
4774,
3736,
461,
1832,
565,
288,
3639,
327,
315,
18688,
6117,
19,
10211,
2453,
67,
13401,
19,
1940,
3083,
267,
19,
10014,
14432,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
4774,
3736,
461,
1832,
565,
288,
3639,
327,
315,
18688,
6117,
19,
10211,
2453,
67,
13401,
19,
1940,
3083,
267,
19,
10014,
14432,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
m_listeners[ i ].targetFinished(); | m_listeners[ i ].targetFinished( this ); | public void targetFinished() { for( int i = 0; i < m_listeners.length; i++ ) { m_listeners[ i ].targetFinished(); } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/6cc790dcf815a7076636afc6f3618d85d549a1d0/ProjectListenerSupport.java/buggy/proposal/myrmidon/src/java/org/apache/myrmidon/components/workspace/ProjectListenerSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1018,
10577,
1435,
565,
288,
3639,
364,
12,
509,
277,
273,
374,
31,
277,
411,
312,
67,
16072,
18,
2469,
31,
277,
9904,
262,
3639,
288,
5411,
312,
67,
16072,
63,
277,
308,
18,
3299,
10577,
12,
333,
11272,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1018,
10577,
1435,
565,
288,
3639,
364,
12,
509,
277,
273,
374,
31,
277,
411,
312,
67,
16072,
18,
2469,
31,
277,
9904,
262,
3639,
288,
5411,
312,
67,
16072,
63,
277,
308,
18,
3299,
10577,
12,
333,
11272,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
updateProgress(picture, STATE_SHOWING); | updateProgress(picture, STATE_SHOWING, true); | public boolean blockPictureReady(Image image, Picture picture) { Log.log(Log.LEVEL_TRACE, MODULE, "blockPictureReady: " + picture + " - pictureShowWant: " + loader.pictureShowWant); if (picture == userPicture) { userPicture = null; } if (picture != loader.pictureShowWant) { Log.log(Log.LEVEL_TRACE, MODULE, "We wanted " + loader.pictureShowWant + ": ignoring"); updateProgress(loader.pictureShowWant, STATE_NEXTREADY); return true; } if (picture != null) { if (picture.getCaption() != null) { caption = ImageLoaderUtil.stripTags(HTMLEscaper.unescape(picture.getCaption())).trim(); } else { caption = null; } extra = picture.getExtraFieldsString().trim(); if (picture.isOnline()) { url = picture.safeGetUrlFull().toString(); // update view count on Gallery picture.getParentAlbum().getGallery().incrementViewCount(picture, GalleryRemote._().getCore().getMainStatusUpdate()); } else { url = picture.getSource().toString(); } updateProgress(picture, STATE_SHOWING); } pictureShownTime = System.currentTimeMillis(); return false; } | 9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/9cd3a9936cec8bf69237006c0e4e1ca78f583d85/SlideshowFrame.java/clean/com/gallery/GalleryRemote/SlideshowFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1203,
24061,
8367,
12,
2040,
1316,
16,
28770,
15406,
13,
288,
202,
202,
1343,
18,
1330,
12,
1343,
18,
10398,
67,
23827,
16,
14057,
16,
315,
2629,
24061,
8367,
30,
315,
397,
15406,
397,
315,
300,
15406,
5706,
59,
970,
30,
315,
397,
4088,
18,
21126,
5706,
59,
970,
1769,
202,
202,
430,
261,
21126,
422,
729,
24061,
13,
288,
1082,
202,
1355,
24061,
273,
446,
31,
202,
202,
97,
202,
202,
430,
261,
21126,
480,
4088,
18,
21126,
5706,
59,
970,
13,
288,
1082,
202,
1343,
18,
1330,
12,
1343,
18,
10398,
67,
23827,
16,
14057,
16,
315,
3218,
15504,
315,
397,
4088,
18,
21126,
5706,
59,
970,
397,
6398,
14398,
8863,
1082,
202,
2725,
5491,
12,
6714,
18,
21126,
5706,
59,
970,
16,
7442,
67,
25539,
20305,
1769,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
430,
261,
21126,
480,
446,
13,
288,
1082,
202,
430,
261,
21126,
18,
588,
21158,
1435,
480,
446,
13,
288,
9506,
202,
15386,
273,
3421,
2886,
1304,
18,
6406,
3453,
12,
5062,
9687,
1017,
7294,
18,
318,
6939,
12,
21126,
18,
588,
21158,
10756,
2934,
5290,
5621,
1082,
202,
97,
469,
288,
9506,
202,
15386,
273,
446,
31,
1082,
202,
97,
1082,
202,
7763,
273,
15406,
18,
588,
7800,
2314,
780,
7675,
5290,
5621,
1082,
202,
430,
261,
21126,
18,
291,
16860,
10756,
288,
9506,
202,
718,
273,
15406,
18,
4626,
967,
1489,
5080,
7675,
10492,
5621,
9506,
202,
759,
1089,
1476,
1056,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1203,
24061,
8367,
12,
2040,
1316,
16,
28770,
15406,
13,
288,
202,
202,
1343,
18,
1330,
12,
1343,
18,
10398,
67,
23827,
16,
14057,
16,
315,
2629,
24061,
8367,
30,
315,
397,
15406,
397,
315,
300,
15406,
5706,
59,
970,
30,
315,
397,
4088,
18,
21126,
5706,
59,
970,
1769,
202,
202,
430,
261,
21126,
422,
729,
24061,
13,
288,
1082,
202,
1355,
24061,
273,
446,
31,
202,
202,
97,
202,
202,
430,
261,
21126,
480,
4088,
18,
21126,
5706,
59,
970,
13,
288,
1082,
202,
1343,
18,
1330,
12,
1343,
18,
10398,
67,
23827,
16,
14057,
16,
315,
3218,
15504,
315,
397,
4088,
18,
21126,
5706,
59,
970,
397,
6398,
14398,
8863,
1082,
202,
2
] |
&& this.getState().getValue() == EARLY_STATE) { | && this.getState().getValue() == EARLY_STATE) { | public void sendAck(Request request) throws SipException { SIPRequest ackRequest = (SIPRequest) request; if (LogWriter.needsLogging) sipStack.logWriter.logMessage("sendAck" + this); // Loosen up check for re-invites (Andreas B) // if (this.isServer()) // throw new SipException // ("Cannot sendAck from Server side of Dialog"); if (!ackRequest.getMethod().equals(Request.ACK) && !ackRequest.getMethod().equals(Request.PRACK)) throw new SipException("Bad request method -- should be ACK"); if (ackRequest.getMethod().equals(Request.ACK) && (this.getState() == null || this.getState().getValue() == EARLY_STATE)) { throw new SipException("Bad dialog state " + this.getState()); } else if ( ackRequest.getMethod().equals(Request.PRACK) && this.getState() == null) { throw new SipException( "Bad dialog state sending PRACK" + this.getState()); } // Set the dialog state to CONFIRMED when the Prack is sent // out. if (ackRequest.getMethod().equals(Request.PRACK) && this.getState().getValue() == EARLY_STATE) { this.setState(CONFIRMED_STATE); } if (!this .getCallId() .getCallId() .equals(((SIPRequest) request).getCallId().getCallId())) { throw new SipException("Bad call ID in request"); } try { if (LogWriter.needsLogging) { sipStack.logWriter.logMessage( "setting from tag For outgoing ACK= " + this.getLocalTag()); sipStack.logWriter.logMessage( "setting To tag for outgoing ACK = " + this.getRemoteTag()); } if (this.getLocalTag() != null) ackRequest.getFrom().setTag(this.getLocalTag()); if (this.getRemoteTag() != null) ackRequest.getTo().setTag(this.getRemoteTag()); } catch (ParseException ex) { throw new SipException(ex.getMessage()); } // Create the route request and set it appropriately. // Note that we only need to worry about being on the client // side of the request. if (ackRequest.getHeader(RouteHeader.NAME) == null) { RouteList rl = this.getRouteList(); if (rl.size() > 0) { Route route = (Route) rl.getFirst(); SipURI sipUri = (SipUri) route.getAddress().getURI(); if (sipUri.hasLrParam()) { ackRequest.setRequestURI(this.getRemoteTarget().getURI()); ackRequest.addHeader(rl); } else { // First route is not a lr // Add the contact route to the end. rl.removeFirst(); ackRequest.setRequestURI(sipUri); // Bug report from Brad Templeton if (rl.size() > 0) ackRequest.addHeader(rl); if (contactRoute != null) ackRequest.addHeader(contactRoute); } } else { if (this.getRemoteTarget() != null) ackRequest.setRequestURI(this.getRemoteTarget().getURI()); } } HopImpl hop = this.getNextHop(); try { MessageChannel messageChannel = sipStack.createRawMessageChannel(hop); if (messageChannel == null) { // Bug fix from Antonis Karydas // At this point the procedures of 8.1.2 // and 12.2.1.1 of RFC3261 have been tried // but the resulting next hop cannot be resolved // (recall that the exception thrown // is caught and ignored in SIPStack.createMessageChannel() // so we end up here with a null messageChannel // instead of the exception handler below). // All else failing, try the outbound proxy in accordance // with 8.1.2, in particular: // This ensures that outbound proxies that do not add // Record-Route header field values will drop out of // the path of subsequent requests. It allows endpoints // that cannot resolve the first Route // URI to delegate that task to an outbound proxy. // // if one considers the 'first Route URI' of a // request constructed according to 12.2.1.1 // to be the request URI when the route set is empty. Hop outboundProxy = sipStack.getRouter().getOutboundProxy(); if (outboundProxy == null) throw new SipException("No route found!"); messageChannel = sipStack.createRawMessageChannel(outboundProxy); } // Wrap a client transaction around the raw message channel. SIPClientTransaction clientTransaction = (SIPClientTransaction) sipStack.createMessageChannel( messageChannel); clientTransaction.setOriginalRequest(ackRequest); clientTransaction.sendMessage((SIPMessage) ackRequest); this.lastAck = ackRequest; // Do not retransmit the ACK so terminate the transaction // immediately. clientTransaction.setState(SIPTransaction.TERMINATED_STATE); } catch (Exception ex) { if (LogWriter.needsLogging) sipStack.logWriter.logException(ex); throw new SipException("Cold not create message channel"); } } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/d231d2c6c5ca907b5c90d5737c6ae873878b219f/SIPDialog.java/buggy/src/gov/nist/javax/sip/stack/SIPDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1366,
11931,
12,
691,
590,
13,
1216,
13475,
503,
288,
3639,
348,
2579,
691,
8479,
691,
273,
261,
17739,
691,
13,
590,
31,
3639,
309,
261,
1343,
2289,
18,
20600,
7735,
13,
5411,
10341,
2624,
18,
1330,
2289,
18,
1330,
1079,
2932,
4661,
11931,
6,
397,
333,
1769,
3639,
368,
3176,
8918,
731,
866,
364,
283,
17,
5768,
2997,
261,
1876,
266,
345,
605,
13,
3639,
368,
309,
261,
2211,
18,
291,
2081,
10756,
3639,
368,
282,
604,
394,
13475,
503,
3639,
368,
7566,
4515,
1366,
11931,
628,
3224,
4889,
434,
17242,
8863,
7734,
309,
16051,
484,
691,
18,
588,
1305,
7675,
14963,
12,
691,
18,
3649,
13,
3639,
597,
401,
484,
691,
18,
588,
1305,
7675,
14963,
12,
691,
18,
8025,
3649,
3719,
5411,
604,
394,
13475,
503,
2932,
6434,
590,
707,
1493,
1410,
506,
26069,
8863,
3639,
309,
261,
484,
691,
18,
588,
1305,
7675,
14963,
12,
691,
18,
3649,
13,
3639,
597,
261,
2211,
18,
588,
1119,
1435,
422,
446,
3639,
747,
333,
18,
588,
1119,
7675,
24805,
1435,
422,
512,
985,
7076,
67,
7998,
3719,
288,
5411,
604,
394,
13475,
503,
2932,
6434,
6176,
919,
315,
397,
333,
18,
588,
1119,
10663,
3639,
289,
469,
309,
261,
3639,
8479,
691,
18,
588,
1305,
7675,
14963,
12,
691,
18,
8025,
3649,
13,
3639,
597,
333,
18,
588,
1119,
1435,
422,
446,
13,
288,
5411,
604,
394,
13475,
503,
12,
5411,
315,
6434,
6176,
919,
5431,
11770,
3649,
6,
397,
333,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1366,
11931,
12,
691,
590,
13,
1216,
13475,
503,
288,
3639,
348,
2579,
691,
8479,
691,
273,
261,
17739,
691,
13,
590,
31,
3639,
309,
261,
1343,
2289,
18,
20600,
7735,
13,
5411,
10341,
2624,
18,
1330,
2289,
18,
1330,
1079,
2932,
4661,
11931,
6,
397,
333,
1769,
3639,
368,
3176,
8918,
731,
866,
364,
283,
17,
5768,
2997,
261,
1876,
266,
345,
605,
13,
3639,
368,
309,
261,
2211,
18,
291,
2081,
10756,
3639,
368,
282,
604,
394,
13475,
503,
3639,
368,
7566,
4515,
1366,
11931,
628,
3224,
4889,
434,
17242,
8863,
7734,
309,
16051,
484,
691,
18,
588,
1305,
7675,
14963,
12,
691,
18,
3649,
13,
3639,
597,
401,
484,
691,
18,
588,
1305,
2
] |
public boolean interferes(MultUpdateNode mun, Rule r, boolean satisfy) { // A rule that adds something to a set can't be falsified by // an update that is only performed if the set is empty if (!initialinterferes(mun,r,satisfy)) return false; for(int i=0;i<mun.numUpdates();i++) { UpdateNode un=mun.getUpdate(i); for (int j=0;j<un.numUpdates();j++) { Updates update=un.getUpdate(j); //Abstract updates don't have concrete interference1 if (update.isAbstract()) continue; DNFRule drule=satisfy?r.getDNFNegGuardExpr():r.getDNFGuardExpr(); Descriptor updated_des=update.getDescriptor(); assert updated_des!=null; /* Test to see if the update only effects new objects and we're only testing for falsifying model definition rules. */ if ((!satisfy)&&updateonlytonewobject(mun,un,update)) continue; // See if the update interferes with the inclusion // condition for the rule if (r.getInclusion().usesDescriptor(updated_des)) { boolean ok=false; /* If the update is for this rule, and the effect is the intended effect, and the update only effects one binding, then the abstract repair node already models the action of this update. */ if ((un.getRule()==r)&& (((mun.op==MultUpdateNode.ADD)&&satisfy) ||((mun.op==MultUpdateNode.REMOVE)&&!satisfy) ||(mun.op==MultUpdateNode.MODIFY))) { Inclusion inclusion=r.getInclusion(); if (inclusion instanceof RelationInclusion) { RelationInclusion ri=(RelationInclusion)inclusion; if ((!testdisjoint(update,r,ri.getLeftExpr()))&& (!testdisjoint(update,r,ri.getRightExpr()))) ok=true; } else if (inclusion instanceof SetInclusion) { SetInclusion si=(SetInclusion)inclusion; if (!testdisjoint(update,r,si.getExpr())) ok=true; } else throw new Error(); } if ((un.getRule()==r)&& ((mun.op==MultUpdateNode.ADD)&&!satisfy)&& modifiesremoves(mun,un,r)) { Inclusion inclusion=r.getInclusion(); if (inclusion instanceof RelationInclusion) { RelationInclusion ri=(RelationInclusion)inclusion; if ((!testdisjoint(update,r,ri.getLeftExpr()))&& (!testdisjoint(update,r,ri.getRightExpr()))) ok=true; /* Update is specific to given binding of the rule, and adds are only performed if the removal is desired or the tuple doesn't exist.*/ } } if (!ok) { if (satisfy) { /** Check to see if the update definitely falsifies r, thus * can't accidentally satisfy it r. */ if (interferesinclusion(un, update, r)) return true; } else return true; /* Interferes with inclusion condition */ } } for(int k=0;k<drule.size();k++) { RuleConjunction rconj=drule.get(k); for(int l=0;l<rconj.size();l++) { DNFExpr dexpr=rconj.get(l); /* See if update interferes w/ dexpr */ if ((un.getRule()==r)&& (((mun.op==MultUpdateNode.ADD)&&satisfy) ||((mun.op==MultUpdateNode.REMOVE)&&!satisfy) ||(mun.op==MultUpdateNode.MODIFY))) { if (!testdisjoint(update,r,dexpr.getExpr())) continue; /* Update is specific to given binding of the rule, and effect is the intended one, so we're okay */ } if ((un.getRule()==r)&& ((mun.op==MultUpdateNode.ADD)&&!satisfy)&& modifiesremoves(mun,un,r)) { if (!testdisjoint(update,r,dexpr.getExpr())) continue; /* Update is specific to given binding of the rule, and adds are only performed if the removal is desired or the tuple doesn't exist.*/ } if (interferes(update,dexpr)) return true; } } } } return false; } | 2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/2d8aec92bb8b7700f94a240a86d5420dc881b485/ConcreteInterferes.java/buggy/RepairCompiler/MCC/IR/ConcreteInterferes.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1554,
586,
281,
12,
5049,
1891,
907,
312,
318,
16,
6781,
436,
16,
1250,
18866,
13,
288,
202,
202,
759,
432,
1720,
716,
4831,
5943,
358,
279,
444,
848,
1404,
506,
284,
1031,
939,
635,
202,
759,
392,
1089,
716,
353,
1338,
9591,
309,
326,
444,
353,
1008,
202,
430,
16051,
6769,
2761,
586,
281,
12,
81,
318,
16,
86,
16,
12973,
7396,
93,
3719,
3196,
565,
327,
629,
31,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
81,
318,
18,
2107,
5121,
5621,
77,
27245,
288,
202,
565,
2315,
907,
640,
33,
81,
318,
18,
588,
1891,
12,
77,
1769,
202,
565,
364,
261,
474,
525,
33,
20,
31,
78,
32,
318,
18,
2107,
5121,
5621,
78,
27245,
288,
202,
202,
5121,
1089,
33,
318,
18,
588,
1891,
12,
78,
1769,
202,
202,
759,
7469,
4533,
2727,
1404,
1240,
12220,
1554,
1134,
21,
202,
202,
430,
261,
2725,
18,
291,
7469,
10756,
1875,
565,
1324,
31,
202,
202,
8609,
42,
2175,
5081,
725,
33,
12973,
7396,
93,
35,
86,
18,
588,
8609,
42,
14337,
16709,
4742,
13332,
86,
18,
588,
8609,
42,
16709,
4742,
5621,
202,
202,
3187,
3526,
67,
5489,
33,
2725,
18,
588,
3187,
5621,
202,
202,
11231,
3526,
67,
5489,
5,
33,
2011,
31,
202,
202,
20308,
7766,
358,
2621,
309,
326,
1089,
1338,
16605,
394,
1082,
282,
2184,
471,
732,
4565,
1338,
7769,
364,
284,
1031,
1164,
310,
1082,
282,
938,
2379,
2931,
18,
1195,
9506,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1554,
586,
281,
12,
5049,
1891,
907,
312,
318,
16,
6781,
436,
16,
1250,
18866,
13,
288,
202,
202,
759,
432,
1720,
716,
4831,
5943,
358,
279,
444,
848,
1404,
506,
284,
1031,
939,
635,
202,
759,
392,
1089,
716,
353,
1338,
9591,
309,
326,
444,
353,
1008,
202,
430,
16051,
6769,
2761,
586,
281,
12,
81,
318,
16,
86,
16,
12973,
7396,
93,
3719,
3196,
565,
327,
629,
31,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
81,
318,
18,
2107,
5121,
5621,
77,
27245,
288,
202,
565,
2315,
907,
640,
33,
81,
318,
18,
588,
1891,
12,
77,
1769,
202,
565,
364,
261,
474,
525,
33,
20,
31,
78,
32,
318,
18,
2
] |
||
} | } tuple.release(); leftTuple.release(); | public void retractTuple(final ReteTuple leftTuple, final PropagationContext context, final InternalWorkingMemory workingMemory) { final BetaMemory memory = (BetaMemory) workingMemory.getNodeMemory( this ); if ( memory.getTupleMemory().remove( leftTuple ) == null ) { return; } Iterator it = memory.getObjectMemory().iterator( leftTuple ); for ( FactEntry entry = ( FactEntry ) it.next(); entry != null; entry = ( FactEntry ) it.next() ) { sink.propagateRetractTuple( leftTuple, entry.getFactHandle(), context, workingMemory ); } } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/eeaf08316040a788a70722478335197f7c442786/JoinNode.java/buggy/drools-core/src/main/java/org/drools/reteoo/JoinNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
283,
1575,
9038,
12,
6385,
534,
12865,
9038,
2002,
9038,
16,
11794,
727,
1186,
9095,
367,
1042,
819,
16,
11794,
727,
3186,
14836,
6031,
5960,
6031,
13,
288,
3639,
727,
16393,
6031,
3778,
273,
261,
38,
1066,
6031,
13,
5960,
6031,
18,
588,
907,
6031,
12,
333,
11272,
7734,
309,
261,
3778,
18,
588,
9038,
6031,
7675,
4479,
12,
2002,
9038,
262,
422,
225,
446,
262,
225,
288,
5411,
327,
31,
3639,
289,
3193,
18,
9340,
5621,
2002,
9038,
18,
9340,
5621,
7734,
4498,
518,
273,
3778,
18,
588,
921,
6031,
7675,
9838,
12,
2002,
9038,
11272,
3639,
364,
261,
29057,
1622,
1241,
273,
261,
29057,
1622,
262,
518,
18,
4285,
5621,
1241,
480,
446,
31,
1241,
273,
261,
29057,
1622,
262,
518,
18,
4285,
1435,
262,
288,
5411,
9049,
18,
5986,
346,
340,
7055,
14266,
9038,
12,
2002,
9038,
16,
1241,
18,
588,
9766,
3259,
9334,
819,
16,
5960,
6031,
11272,
3639,
289,
3193,
18,
9340,
5621,
2002,
9038,
18,
9340,
5621,
5411,
289,
3193,
18,
9340,
5621,
2002,
9038,
18,
9340,
5621,
540,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
283,
1575,
9038,
12,
6385,
534,
12865,
9038,
2002,
9038,
16,
11794,
727,
1186,
9095,
367,
1042,
819,
16,
11794,
727,
3186,
14836,
6031,
5960,
6031,
13,
288,
3639,
727,
16393,
6031,
3778,
273,
261,
38,
1066,
6031,
13,
5960,
6031,
18,
588,
907,
6031,
12,
333,
11272,
7734,
309,
261,
3778,
18,
588,
9038,
6031,
7675,
4479,
12,
2002,
9038,
262,
422,
225,
446,
262,
225,
288,
5411,
327,
31,
3639,
289,
3193,
18,
9340,
5621,
2002,
9038,
18,
9340,
5621,
7734,
4498,
518,
273,
3778,
18,
588,
921,
6031,
7675,
9838,
12,
2002,
9038,
11272,
3639,
364,
261,
29057,
1622,
1241,
273,
261,
29057,
1622,
262,
518,
18,
4285,
5621,
1241,
480,
446,
31,
2
] |
System.out.println(" -jobconf <n>=<v> Optional."); | System.out.println(" -jobconf <n>=<v> Optional. Add or override a JobConf property"); | public void exitUsage(boolean detailed) { // 1 2 3 4 5 6 7 //1234567890123456789012345678901234567890123456789012345678901234567890123456789 System.out.println("Usage: $HADOOP_HOME/bin/hadoop jar build/hadoop-streaming.jar [options]"); System.out.println("Options:"); System.out.println(" -input <path> DFS input file(s) for the Map step"); System.out.println(" -output <path> DFS output directory for the Reduce step"); System.out.println(" -mapper <cmd> The streaming command to run"); System.out.println(" -combiner <cmd> The streaming command to run"); System.out.println(" -reducer <cmd> The streaming command to run"); System.out.println(" -file <file> File/dir to be shipped in the Job jar file"); System.out.println(" -cluster <name> Default uses hadoop-default.xml and hadoop-site.xml"); System.out.println(" -config <file> Optional. One or more paths to xml config files"); System.out.println(" -dfs <h:p> Optional. Override DFS configuration"); System.out.println(" -jt <h:p> Optional. Override JobTracker configuration"); System.out.println(" -inputreader <spec> Optional."); System.out.println(" -jobconf <n>=<v> Optional."); System.out.println(" -cmdenv <n>=<v> Optional. Pass env.var to streaming commands"); System.out.println(" -verbose"); System.out.println(); if(!detailed) { System.out.println("For more details about these options:"); System.out.println("Use $HADOOP_HOME/bin/hadoop jar build/hadoop-streaming.jar -info"); fail(""); } System.out.println("In -input: globbing on <path> is supported and can have multiple -input"); System.out.println("Default Map input format: a line is a record in UTF-8"); System.out.println(" the key part ends at first TAB, the rest of the line is the value"); System.out.println("Custom Map input format: -inputreader package.MyRecordReader,n=v,n=v "); System.out.println(" comma-separated name-values can be specified to configure the InputFormat"); System.out.println(" Ex: -inputreader 'StreamXmlRecordReader,begin=<doc>,end=</doc>'"); System.out.println("Map output format, reduce input/output format:"); System.out.println(" Format defined by what mapper command outputs. Line-oriented"); System.out.println(); System.out.println("Use -cluster <name> to switch between \"local\" Hadoop and one or more remote "); System.out.println(" Hadoop clusters. "); System.out.println(" The default is to use the normal hadoop-default.xml and hadoop-site.xml"); System.out.println(" Else configuration will use $HADOOP_HOME/conf/hadoop-<name>.xml"); System.out.println(); System.out.println("To skip the shuffle/sort/reduce step:" ); System.out.println(" Use -reducer " + REDUCE_NONE); System.out.println(" This preserves the map input order and speeds up processing"); System.out.println(); System.out.println("To set the number of reduce tasks (num. of output files):"); System.out.println(" -jobconf mapred.reduce.tasks=10"); System.out.println("To name the job (appears in the JobTrack Web UI):"); System.out.println(" -jobconf mapred.job.name='My Job' "); System.out.println("To specify that line-oriented input is in gzip format:"); System.out.println("(at this time ALL input files must be gzipped and this is not recognized based on file extension)"); System.out.println(" -jobconf stream.recordreader.compression=gzip "); System.out.println("To change the local temp directory:"); System.out.println(" -jobconf dfs.data.dir=/tmp"); System.out.println("Additional local temp directories with -cluster local:"); System.out.println(" -jobconf mapred.local.dir=/tmp/local"); System.out.println(" -jobconf mapred.system.dir=/tmp/system"); System.out.println(" -jobconf mapred.temp.dir=/tmp/temp"); System.out.println("For more details about jobconf parameters see:"); System.out.println(" http://wiki.apache.org/lucene-hadoop/JobConfFile"); System.out.println("To set an environement variable in a streaming command:"); System.out.println(" -cmdenv EXAMPLE_DIR=/home/example/dictionaries/"); System.out.println(); System.out.println("Shortcut to run from any directory:"); System.out.println(" setenv HSTREAMING \"$HADOOP_HOME/bin/hadoop jar $HADOOP_HOME/build/hadoop-streaming.jar\""); System.out.println(); System.out.println("Example: $HSTREAMING -mapper \"/usr/local/bin/perl5 filter.pl\""); System.out.println(" -file /local/filter.pl -input \"/logs/0604*/*\" [...]"); System.out.println(" Ships a script, invokes the non-shipped perl interpreter"); System.out.println(" Shipped files go to the working directory so filter.pl is found by perl"); System.out.println(" Input files are all the daily logs for days in month 2006-04"); fail(""); } | 51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/e10b40e8014547113799b2653164e8c990d41209/StreamJob.java/clean/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2427,
5357,
12,
6494,
6864,
13,
225,
288,
8227,
368,
540,
404,
540,
576,
540,
890,
540,
1059,
540,
1381,
540,
1666,
540,
2371,
8227,
368,
28462,
20277,
26684,
26684,
26684,
26684,
26684,
26684,
26684,
565,
2332,
18,
659,
18,
8222,
2932,
5357,
30,
271,
44,
1880,
51,
3665,
67,
14209,
19,
4757,
19,
76,
12460,
7334,
1361,
19,
76,
12460,
17,
3256,
310,
18,
11930,
306,
2116,
4279,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
1320,
2773,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
2630,
565,
411,
803,
34,
377,
23872,
810,
585,
12,
87,
13,
364,
326,
1635,
2235,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
2844,
282,
411,
803,
34,
377,
23872,
876,
1867,
364,
326,
24614,
2235,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
13919,
282,
411,
4172,
34,
1377,
1021,
12833,
1296,
358,
1086,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
832,
4757,
264,
411,
4172,
34,
1377,
1021,
12833,
1296,
358,
1086,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
1118,
89,
2750,
225,
411,
4172,
34,
1377,
1021,
12833,
1296,
358,
1086,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
768,
377,
411,
768,
34,
377,
1387,
19,
1214,
358,
506,
24316,
1845,
316,
326,
3956,
7334,
585,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
7967,
225,
411,
529,
34,
377,
2989,
4692,
22840,
17,
1886,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2427,
5357,
12,
6494,
6864,
13,
225,
288,
8227,
368,
540,
404,
540,
576,
540,
890,
540,
1059,
540,
1381,
540,
1666,
540,
2371,
8227,
368,
28462,
20277,
26684,
26684,
26684,
26684,
26684,
26684,
26684,
565,
2332,
18,
659,
18,
8222,
2932,
5357,
30,
271,
44,
1880,
51,
3665,
67,
14209,
19,
4757,
19,
76,
12460,
7334,
1361,
19,
76,
12460,
17,
3256,
310,
18,
11930,
306,
2116,
4279,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
1320,
2773,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
2630,
565,
411,
803,
34,
377,
23872,
810,
585,
12,
87,
13,
364,
326,
1635,
2235,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
2844,
2
] |
runTest( "42", new int[]{ INTEGER, EOF } ); | runTest( "42", new int[]{ TokenTypes.INTEGER, TokenTypes.EOF } ); | public void testNumberInteger() { runTest( "42", new int[]{ INTEGER, EOF } ); } | 47970 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47970/b2f4e150ff5bae2f46e3741f6b5c806f3f9446fa/XPathLexerTokenTest.java/buggy/src/java/test/org/jaxen/saxpath/base/XPathLexerTokenTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1854,
4522,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1854,
4522,
1435,
565,
288,
3639,
1086,
4709,
12,
315,
9452,
3113,
394,
509,
63,
7073,
3155,
2016,
18,
14217,
16,
3155,
2016,
18,
12706,
289,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Properties properties = getNodeMinusD(nodeComponent); java.util.List args = getNodeArguments(nodeComponent); | Properties properties = getNodeMinusD(nodeComponent); java.util.List args = getNodeArguments(nodeComponent); | private void prepareToCreateNodes() { // first need to set configuration file name property in ALL nodes // as these are all used by each experiment configuration writer// for (int i = 0; i < nodesToRun.length; i++) {// NodeComponent nodeComponent = nodesToRun[i];// nodeComponent.addProperty("ConfigurationFileName",// nodeComponent.getShortName() + currentTrial);// } for (int i = 0; i < nodesToRun.length; i++) { NodeComponent nodeComponent = nodesToRun[i]; String hostName = hostsToRunOn[i]; final String nodeName = nodeComponent.getShortName(); // create an unique node name to circumvent server problems String uniqueNodeName = nodeName; // get arguments from NodeComponent and pass them to ApplicationServer // note that these properties augment any properties that // are passed to the server in a properties file on startup Properties properties = getNodeMinusD(nodeComponent); java.util.List args = getNodeArguments(nodeComponent); // TODO: experiment.getTrialID can return null // if not connected to database // and properties.setProperty generates a null pointer exception // when passed a null value properties.setProperty(Experiment.EXPERIMENT_ID, experiment.getTrialID()); //Don't override if it's already set if (properties.getProperty("org.cougaar.core.persistence.clear") == null) { properties.setProperty("org.cougaar.core.persistence.clear", "true"); } // create a status button NodeStatusButton statusButton = createStatusButton(nodeName, hostName); ConsoleStyledDocument doc = new ConsoleStyledDocument(); ConsoleTextPane textPane = new ConsoleTextPane(doc, statusButton); JScrollPane scrollPane = new JScrollPane(textPane); // create a node event listener to get events from the node OutputListener listener; String logFileName = getLogFileName(nodeName); try { listener = new ConsoleNodeListener(this, nodeComponent, logFileName, statusButton, doc); } catch (Exception e) { if(log.isErrorEnabled()) { log.error("Unable to create output for: " + nodeName, e); } continue; } if (notifyCondition != null) textPane.setNotifyCondition(notifyCondition); ((ConsoleStyledDocument)textPane.getStyledDocument()).setBufferSize(viewSize); if (notifyOnStandardError) statusButton.setNotifyOnStandardError(true); if (displayFilter != null) ((ConsoleNodeListener)listener).setFilter(displayFilter); nodeListeners.put(nodeName, listener); nodePanes.put(nodeName, textPane); OutputPolicy outputPolicy = new OutputPolicy(10); Iterator fileIter = experiment.getConfigFiles(nodesToRun); int remotePort = getAppServerPort(properties); RemoteHost remoteAppServer; try { remoteAppServer = remoteHostRegistry.lookupRemoteHost( hostName, remotePort, true); } catch (Exception e) { if(log.isErrorEnabled()) { log.error( "CSMARTConsole: unable to contact app-server on " + hostName + " : " + remotePort, e); } JOptionPane.showMessageDialog(this, "Unable to contact app-server on " + hostName + " : " + remotePort + "; check that server is running"); continue; } RemoteFileSystem remoteFS; try { remoteFS = remoteAppServer.getRemoteFileSystem(); } catch (Exception e) { if(log.isErrorEnabled()) { log.error( "CSMARTConsole: unable to access app-server file system on " + hostName + " : " + remotePort, e); } JOptionPane.showMessageDialog(this, "Unable to access app-server file system on " + hostName + " : " + remotePort + "; check that server is running"); continue; } while(fileIter.hasNext()) { String filename = (String)fileIter.next(); OutputStream out = null; try { out = remoteFS.write(filename); experiment.writeContents(filename, out); } catch(Exception e) { if(log.isErrorEnabled()) { log.error( "Caught an Exception writing leaf on " + hostName + " : " + remotePort, e); } } finally { try { out.close(); } catch(Exception e) { if(log.isErrorEnabled()) { log.error("Caught exception closing stream", e); } } } } NodeCreationInfo nci = new NodeCreationInfo(remoteAppServer, uniqueNodeName, properties, args, listener, outputPolicy, nodeName, hostName, nodeComponent, scrollPane, statusButton, logFileName); nodeCreationInfoList.add(nci); } } | 9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/9f0b3a7b77d55c3e24c987b70fbbc32387cddcd9/CSMARTConsole.java/clean/csmart/src/org/cougaar/tools/csmart/ui/console/CSMARTConsole.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2911,
774,
1684,
3205,
1435,
288,
565,
368,
1122,
1608,
358,
444,
1664,
585,
508,
1272,
316,
8061,
2199,
565,
368,
487,
4259,
854,
777,
1399,
635,
1517,
8724,
1664,
2633,
759,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2199,
774,
1997,
18,
2469,
31,
277,
27245,
288,
759,
3639,
2029,
1841,
756,
1841,
273,
2199,
774,
1997,
63,
77,
15533,
759,
3639,
756,
1841,
18,
1289,
1396,
2932,
1750,
4771,
3113,
759,
21394,
756,
1841,
18,
588,
29983,
1435,
397,
783,
6251,
287,
1769,
759,
1377,
289,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2199,
774,
1997,
18,
2469,
31,
277,
27245,
288,
1377,
2029,
1841,
756,
1841,
273,
2199,
774,
1997,
63,
77,
15533,
1377,
514,
19266,
273,
7206,
774,
1997,
1398,
63,
77,
15533,
1377,
727,
514,
7553,
273,
756,
1841,
18,
588,
29983,
5621,
1377,
368,
752,
392,
3089,
756,
508,
358,
29951,
616,
1438,
9688,
1377,
514,
3089,
18948,
273,
7553,
31,
1377,
368,
336,
1775,
628,
2029,
1841,
471,
1342,
2182,
358,
4257,
2081,
1377,
368,
4721,
716,
4259,
1790,
18260,
1281,
1790,
716,
1377,
368,
854,
2275,
358,
326,
1438,
316,
279,
1790,
585,
603,
11850,
1377,
6183,
1790,
273,
5973,
18434,
40,
12,
2159,
1841,
1769,
1377,
2252,
18,
1367,
18,
682,
833,
273,
5973,
4628,
12,
2159,
1841,
1769,
1377,
368,
2660,
30,
8724,
18,
588,
6251,
287,
734,
848,
327,
446,
1377,
368,
309,
486,
5840,
358,
2063,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2911,
774,
1684,
3205,
1435,
288,
565,
368,
1122,
1608,
358,
444,
1664,
585,
508,
1272,
316,
8061,
2199,
565,
368,
487,
4259,
854,
777,
1399,
635,
1517,
8724,
1664,
2633,
759,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2199,
774,
1997,
18,
2469,
31,
277,
27245,
288,
759,
3639,
2029,
1841,
756,
1841,
273,
2199,
774,
1997,
63,
77,
15533,
759,
3639,
756,
1841,
18,
1289,
1396,
2932,
1750,
4771,
3113,
759,
21394,
756,
1841,
18,
588,
29983,
1435,
397,
783,
6251,
287,
1769,
759,
1377,
289,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2199,
774,
1997,
18,
2469,
31,
277,
27245,
288,
1377,
2029,
1841,
756,
1841,
273,
2
] |
Class[] constructorArgTypes = new Class[1]; constructorArgTypes[0] = Element.class; | Class[] argTypes = {Element.class}; | public static synchronized Object load(Element config, String packageName) throws ConfigurationException { try { Class[] constructorArgTypes = new Class[1]; constructorArgTypes[0] = Element.class; String tagName = config.getTagName(); // make sure first letter is upper case String firstLetter = tagName.substring(0,1); firstLetter = firstLetter.toUpperCase(); tagName = firstLetter+tagName.substring(1); // first check for things that are not SodElements if (tagName.equals("Unit")) { return loadUnit(config); } else if (tagName.equals("UnitRange")) { return loadUnitRange(config); } else if (tagName.equals("TimeRange")) { return loadTimeRange(config); } else if (tagName.equals("GlobalArea")) { return loadGlobalArea(config); } else if (tagName.equals("BoxArea")) { return loadBoxArea(config); } else if (tagName.equals("PointArea")) { return loadBoxArea(config); } else if (tagName.equals("FlinnEngdahlArea")) { return loadFEArea(config); } // not a known non-sodElement type, so load via reflection Class subsetterSubclass = Class.forName(packageName+"."+ tagName); //logger.debug("IN sod UTIL "+packageName+"."+tagName); Constructor constructor = subsetterSubclass.getConstructor(constructorArgTypes); Object[] constructorArgs = new Object[1]; constructorArgs[0] = config; Object obj = constructor.newInstance(constructorArgs); if(tagName.equals("NetworkFinder")) return obj; return (SodElement)obj; } catch (InvocationTargetException e) { // occurs if the constructor throws an exception // don't repackage ConfigurationExceptioN e.printStackTrace(); Throwable subException = e.getTargetException(); if (subException instanceof ConfigurationException) { throw (ConfigurationException)subException; } else if (subException instanceof Exception) { throw new ConfigurationException("Problem creating "+ config.getTagName(), (Exception)subException); } else { // not an Exception, so must be an Error throw (java.lang.Error)subException; } // end of else } catch (Exception e) { e.printStackTrace(); throw new ConfigurationException("Problem understanding "+ config.getTagName(), e); } // end of try-catch } | 45996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45996/3b73d77dc3a85fa5a6f71de6c814d2c73d0c5779/SodUtil.java/buggy/src/edu/sc/seis/sod/SodUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3852,
1033,
1262,
12,
1046,
642,
16,
514,
9929,
13,
3639,
1216,
22196,
288,
7734,
775,
288,
5411,
1659,
8526,
3885,
4117,
2016,
273,
394,
1659,
63,
21,
15533,
5411,
3885,
4117,
2016,
63,
20,
65,
273,
3010,
18,
1106,
31,
5411,
514,
7196,
273,
642,
18,
588,
8520,
5621,
13491,
368,
1221,
3071,
1122,
9471,
353,
3854,
648,
5411,
514,
1122,
13938,
273,
7196,
18,
28023,
12,
20,
16,
21,
1769,
5411,
1122,
13938,
273,
1122,
13938,
18,
869,
8915,
5621,
5411,
7196,
273,
1122,
13938,
15,
2692,
461,
18,
28023,
12,
21,
1769,
13491,
368,
1122,
866,
364,
9198,
716,
854,
486,
348,
369,
3471,
5411,
309,
261,
2692,
461,
18,
14963,
2932,
2802,
6,
3719,
288,
7734,
327,
1262,
2802,
12,
1425,
1769,
5411,
289,
469,
309,
261,
2692,
461,
18,
14963,
2932,
2802,
2655,
6,
3719,
288,
7734,
327,
1262,
2802,
2655,
12,
1425,
1769,
5411,
289,
469,
309,
261,
2692,
461,
18,
14963,
2932,
950,
2655,
6,
3719,
288,
7734,
327,
1262,
950,
2655,
12,
1425,
1769,
5411,
289,
469,
309,
261,
2692,
461,
18,
14963,
2932,
5160,
5484,
6,
3719,
288,
7734,
327,
1262,
5160,
5484,
12,
1425,
1769,
5411,
289,
469,
309,
261,
2692,
461,
18,
14963,
2932,
3514,
5484,
6,
3719,
288,
7734,
327,
1262,
3514,
5484,
12,
1425,
1769,
5411,
289,
469,
309,
261,
2692,
461,
18,
14963,
2932,
2148,
5484,
6,
3719,
288,
7734,
327,
1262,
3514,
5484,
12,
1425,
1769,
5411,
289,
469,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3852,
1033,
1262,
12,
1046,
642,
16,
514,
9929,
13,
3639,
1216,
22196,
288,
7734,
775,
288,
5411,
1659,
8526,
3885,
4117,
2016,
273,
394,
1659,
63,
21,
15533,
5411,
3885,
4117,
2016,
63,
20,
65,
273,
3010,
18,
1106,
31,
5411,
514,
7196,
273,
642,
18,
588,
8520,
5621,
13491,
368,
1221,
3071,
1122,
9471,
353,
3854,
648,
5411,
514,
1122,
13938,
273,
7196,
18,
28023,
12,
20,
16,
21,
1769,
5411,
1122,
13938,
273,
1122,
13938,
18,
869,
8915,
5621,
5411,
7196,
273,
1122,
13938,
15,
2692,
461,
18,
28023,
12,
21,
1769,
13491,
368,
1122,
866,
364,
9198,
716,
854,
486,
348,
369,
3471,
5411,
309,
261,
2692,
461,
18,
14963,
2932,
2802,
2
] |
return new ReferenceConstraint(definition, null, null); | return new ReferenceConstraint(definition, nsResolver); | public static ValueConstraint create(int type, String definition) throws InvalidConstraintException { if (definition == null) { throw new IllegalArgumentException("illegal definition (null)"); } switch (type) { case PropertyType.STRING: return new StringConstraint(definition); case PropertyType.BOOLEAN: return new BooleanConstraint(definition); case PropertyType.BINARY: return new NumericConstraint(definition); case PropertyType.DATE: return new DateConstraint(definition); case PropertyType.LONG: case PropertyType.DOUBLE: return new NumericConstraint(definition); case PropertyType.NAME: // @todo implement NAME value constraint //return new NameConstraint(definition, nsResolver); return new StringConstraint(".*"); case PropertyType.PATH: // @todo implement PATH value constraint //return new PathConstraint(definition, nsResolver); return new StringConstraint(".*"); case PropertyType.REFERENCE: // @todo implement REFERENCE value constraint //return new ReferenceConstraint(definition, ntReg, nsResolver); return new ReferenceConstraint(definition, null, null); default: throw new IllegalArgumentException("unknown/unsupported target type for constraint: " + PropertyType.nameFromValue(type)); } } | 49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/925dae27e7d5fb257714298855520585f72c1991/ValueConstraint.java/buggy/src/java/org/apache/jackrabbit/core/nodetype/ValueConstraint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1445,
5806,
752,
12,
474,
618,
16,
514,
2379,
13,
1216,
1962,
5806,
503,
288,
3639,
309,
261,
6907,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
31751,
2379,
261,
2011,
2225,
1769,
3639,
289,
3639,
1620,
261,
723,
13,
288,
5411,
648,
22983,
18,
5804,
30,
7734,
327,
394,
514,
5806,
12,
6907,
1769,
5411,
648,
22983,
18,
17900,
30,
7734,
327,
394,
3411,
5806,
12,
6907,
1769,
5411,
648,
22983,
18,
16813,
30,
7734,
327,
394,
16980,
5806,
12,
6907,
1769,
5411,
648,
22983,
18,
4594,
30,
7734,
327,
394,
2167,
5806,
12,
6907,
1769,
5411,
648,
22983,
18,
14639,
30,
5411,
648,
22983,
18,
17088,
30,
7734,
327,
394,
16980,
5806,
12,
6907,
1769,
5411,
648,
22983,
18,
1985,
30,
7734,
368,
632,
9012,
2348,
6048,
460,
4954,
7734,
368,
2463,
394,
1770,
5806,
12,
6907,
16,
3153,
4301,
1769,
7734,
327,
394,
514,
5806,
2932,
4509,
8863,
5411,
648,
22983,
18,
4211,
30,
7734,
368,
632,
9012,
2348,
7767,
460,
4954,
7734,
368,
2463,
394,
2666,
5806,
12,
6907,
16,
3153,
4301,
1769,
7734,
327,
394,
514,
5806,
2932,
4509,
8863,
5411,
648,
22983,
18,
14617,
30,
7734,
368,
632,
9012,
2348,
22898,
460,
4954,
7734,
368,
2463,
394,
6268,
5806,
12,
6907,
16,
9513,
1617,
16,
3153,
4301,
1769,
2868,
327,
394,
6268,
5806,
12,
6907,
16,
3153,
4301,
1769,
5411,
805,
30,
7734,
604,
394,
2754,
2932,
8172,
19,
24666,
1018,
618,
364,
4954,
30,
315,
397,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1445,
5806,
752,
12,
474,
618,
16,
514,
2379,
13,
1216,
1962,
5806,
503,
288,
3639,
309,
261,
6907,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
31751,
2379,
261,
2011,
2225,
1769,
3639,
289,
3639,
1620,
261,
723,
13,
288,
5411,
648,
22983,
18,
5804,
30,
7734,
327,
394,
514,
5806,
12,
6907,
1769,
5411,
648,
22983,
18,
17900,
30,
7734,
327,
394,
3411,
5806,
12,
6907,
1769,
5411,
648,
22983,
18,
16813,
30,
7734,
327,
394,
16980,
5806,
12,
6907,
1769,
5411,
648,
22983,
18,
4594,
30,
7734,
327,
394,
2167,
5806,
12,
6907,
1769,
5411,
648,
22983,
18,
14639,
30,
5411,
648,
22983,
18,
17088,
30,
7734,
327,
394,
16980,
5806,
12,
2
] |
public void setSector(int newsectorx, int newsectory) { // System.out.println("New Sector: " + newsectorx + "x" + newsectory); if (this.knowssector && (this.sectorx == newsectorx) && (this.sectory == newsectory)) { this.knowssector = false; } else { if (!this.knowssector) { this.knowssector = true; } this.sectorx = newsectorx; this.sectory = newsectory; } } | 3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/380c58c774e84ca00892c78f02c1f0b8b0cbf1fa/MapEditor.java/buggy/src/net/starmen/pkhack/eb/MapEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
225,
918,
225,
13928,
1229,
12,
474,
225,
394,
5709,
280,
92,
16,
225,
509,
225,
394,
5709,
630,
13,
7734,
288,
13491,
368,
225,
2332,
18,
659,
18,
8222,
2932,
1908,
225,
348,
1229,
30,
225,
315,
225,
397,
225,
394,
5709,
280,
92,
225,
397,
225,
315,
92,
6,
225,
397,
225,
394,
5709,
630,
1769,
13491,
309,
225,
261,
2211,
18,
79,
3338,
87,
5709,
280,
225,
597,
225,
261,
2211,
18,
5709,
280,
92,
225,
422,
225,
394,
5709,
280,
92,
13,
27573,
597,
225,
261,
2211,
18,
5709,
630,
225,
422,
225,
394,
5709,
630,
3719,
13491,
288,
27573,
333,
18,
79,
3338,
87,
5709,
280,
225,
273,
225,
629,
31,
13491,
289,
13491,
469,
13491,
288,
27573,
309,
225,
16051,
2211,
18,
79,
3338,
87,
5709,
280,
13,
27573,
288,
4766,
3639,
333,
18,
79,
3338,
87,
5709,
280,
225,
273,
225,
638,
31,
27573,
289,
27573,
333,
18,
5709,
280,
92,
225,
273,
225,
394,
5709,
280,
92,
31,
27573,
333,
18,
5709,
630,
225,
273,
225,
394,
5709,
630,
31,
13491,
289,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
225,
918,
225,
13928,
1229,
12,
474,
225,
394,
5709,
280,
92,
16,
225,
509,
225,
394,
5709,
630,
13,
7734,
288,
13491,
368,
225,
2332,
18,
659,
18,
8222,
2932,
1908,
225,
348,
1229,
30,
225,
315,
225,
397,
225,
394,
5709,
280,
92,
225,
397,
225,
315,
92,
6,
225,
397,
225,
394,
5709,
630,
1769,
13491,
309,
225,
261,
2211,
18,
79,
3338,
87,
5709,
280,
225,
597,
225,
261,
2211,
18,
5709,
280,
92,
225,
422,
225,
394,
5709,
280,
92,
13,
27573,
597,
225,
261,
2211,
18,
5709,
630,
225,
422,
225,
394,
5709,
630,
3719,
13491,
288,
27573,
333,
18,
79,
3338,
87,
5709,
280,
225,
273,
225,
629,
31,
13491,
2
] |
||
return super.wrap(cx, scope, obj, staticType); | return super.wrap( cx, scope, obj, staticType ); | protected void initailizeScriptContext(Context cx, Scriptable scope) { scriptContext.getContext().setWrapFactory(new WrapFactory() { protected IJavascriptWrapper coreWrapper = new CoreJavaScriptWrapper(); /** * wrapper an java object to javascript object. */ public Object wrap(Context cx, Scriptable scope, Object obj, Class staticType) { Object object = coreWrapper.wrap(cx, scope, obj, staticType); if (object != obj) { return object; } return super.wrap(cx, scope, obj, staticType); } }); new CoreJavaScriptInitializer().initialize(cx, scope); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/b900dee3dd264c71eb7ed27f88571d5b40a336c0/ExecutionContext.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1208,
671,
554,
3651,
1042,
12,
1042,
9494,
16,
22780,
2146,
13,
288,
202,
202,
4263,
1042,
18,
29120,
7675,
542,
2964,
1733,
12,
2704,
4266,
1733,
1435,
288,
1082,
202,
1117,
467,
27129,
3611,
2922,
3611,
273,
394,
4586,
16634,
3611,
5621,
1082,
202,
26873,
9506,
380,
4053,
392,
2252,
733,
358,
11341,
733,
18,
9506,
1195,
1082,
202,
482,
1033,
2193,
12,
1042,
9494,
16,
22780,
2146,
16,
1033,
1081,
16,
6862,
202,
797,
760,
559,
13,
288,
9506,
202,
921,
733,
273,
2922,
3611,
18,
4113,
12,
71,
92,
16,
2146,
16,
1081,
16,
760,
559,
1769,
9506,
202,
430,
261,
1612,
480,
1081,
13,
288,
6862,
202,
2463,
733,
31,
9506,
202,
97,
9506,
202,
2463,
2240,
18,
4113,
12,
71,
92,
16,
2146,
16,
1081,
16,
760,
559,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
2704,
4586,
16634,
14729,
7675,
11160,
12,
71,
92,
16,
2146,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1208,
671,
554,
3651,
1042,
12,
1042,
9494,
16,
22780,
2146,
13,
288,
202,
202,
4263,
1042,
18,
29120,
7675,
542,
2964,
1733,
12,
2704,
4266,
1733,
1435,
288,
1082,
202,
1117,
467,
27129,
3611,
2922,
3611,
273,
394,
4586,
16634,
3611,
5621,
1082,
202,
26873,
9506,
380,
4053,
392,
2252,
733,
358,
11341,
733,
18,
9506,
1195,
1082,
202,
482,
1033,
2193,
12,
1042,
9494,
16,
22780,
2146,
16,
1033,
1081,
16,
6862,
202,
797,
760,
559,
13,
288,
9506,
202,
921,
733,
273,
2922,
3611,
18,
4113,
12,
71,
92,
16,
2146,
16,
1081,
16,
760,
559,
1769,
9506,
202,
430,
261,
1612,
480,
1081,
13,
288,
6862,
202,
2463,
733,
31,
9506,
2
] |
if (jj_3R_69()) jj_scanpos = xsp; | if (jj_3R_71()) jj_scanpos = xsp; | final private boolean jj_3R_43() { Token xsp; xsp = jj_scanpos; if (jj_3R_69()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_70()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
8942,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
11212,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
7301,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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684,
67,
23,
54,
67,
8942,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
11212,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
7301,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
myBioHolder.thePowerInFlowRateActuators, myAirRS)); | myBioHolder.thePowerInFlowRateActuators, myOGS)); | public void runSim() { // ticks the sim one step at a time, observes the state, updates policy // and predictive model in // response to the current state and modifies actuators in response int i; float tmp2, oldvalue, newvalue; GenericActuator currentActuator; try { fw = new FileWriter(OutFile); } catch (IOException e) { } pw = new PrintWriter(fw, true); setThresholds(); myBioHolder = BioHolderInitializer.getBioHolder(); myBioDriver = myBioHolder.theBioDriver; myBiomassRS = (BiomassRS) (myBioHolder.theBiomassRSModules.get(0)); myBiomassRS.setAutoHarvestAndReplantEnabled(true); myFoodProcessor = (FoodProcessor) myBioHolder.theFoodProcessors.get(0); myCrew = (CrewGroup) myBioHolder.theCrewGroups.get(0); myWaterRS = (WaterRS) myBioHolder.theWaterRSModules.get(0); myAirRS = (AirRS) myBioHolder.theAirRSModules.get(0); myDirtyWaterStore = (DirtyWaterStore) myBioHolder.theDirtyWaterStores .get(0); myPotableWaterStore = (PotableWaterStore) myBioHolder.thePotableWaterStores .get(0); myGreyWaterStore = (GreyWaterStore) myBioHolder.theGreyWaterStores .get(0); myO2Store = (O2Store) myBioHolder.theO2Stores.get(0); myCO2Store = (CO2Store) myBioHolder.theCO2Stores.get(0); myH2Store = (H2Store) myBioHolder.theH2Stores.get(0); myCrewEnvironment = (SimEnvironment) myBioHolder.theSimEnvironments .get(0); myPlantEnvironment = (SimEnvironment) myBioHolder.theSimEnvironments .get(1); myBiomassStore = (BiomassStore) myBioHolder.theBiomassStores.get(0); myFoodStore = (FoodStore) myBioHolder.theFoodStores.get(0); myPowerStore = (PowerStore) myBioHolder.thePowerStores.get(0); //supply power currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.thePowerInFlowRateActuators, myWaterRS)); currentActuator.setValue(500); currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.thePowerInFlowRateActuators, myAirRS)); currentActuator.setValue(300); //turn vccr off currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.theAirInFlowRateActuators, myAirRS)); currentActuator.setValue(0); currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.theCO2OutFlowRateActuators, myAirRS)); currentActuator.setValue(0); //set values for other inputs and outputs currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.theH2InFlowRateActuators, myAirRS)); currentActuator.setValue(40); currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.thePotableWaterOutFlowRateActuators, myAirRS)); currentActuator.setValue(20); currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.thePotableWaterOutFlowRateActuators, myWaterRS)); currentActuator.setValue(10); currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.theH2OutFlowRateActuators, myAirRS)); currentActuator.setValue(10); currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.theO2OutFlowRateActuators, myAirRS)); currentActuator.setValue(10); currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.theBiomassInFlowRateActuators, myFoodProcessor)); currentActuator.setValue(0); currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.theGreyWaterInFlowRateActuators, myBiomassRS)); currentActuator.setValue(2); // initialize everything to off currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.theCO2InFlowRateActuators, myAirRS)); currentActuator.setValue(0); currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.thePotableWaterInFlowRateActuators, myAirRS)); currentActuator.setValue(0); currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.theDirtyWaterInFlowRateActuators, myWaterRS)); currentActuator.setValue(0); currentActuator = (GenericActuator) (myBioHolder.getActuatorAttachedTo( myBioHolder.theGreyWaterInFlowRateActuators, myWaterRS)); currentActuator.setValue(0); myBioDriver.startSimulation(); myLogger.info("starting run..."); crewO2integral = 0f; crewCO2integral = 0f; crewH2Ointegral = 0f; plantO2integral = 0f; plantCO2integral = 0f; plantH2Ointegral = 0f; Runs++; for (i = 0; i < ATMOSPHERIC_PERIOD; i++) myBioDriver.advanceOneTick(); ContinuousState = new StateMap(); ContinuousState.updateState(); ClassifiedState = classifyState(ContinuousState); currentAction = handController(ClassifiedState); setActuators(currentAction); //int max_ticks = (int)Math.pow(Runs, 2); while ((!myCrew.anyDead()) /* && myBioDriver.getTicks() < max_ticks */) { if (((myBioDriver.getTicks()) % (CORE_PERIOD_MULT * ATMOSPHERIC_PERIOD)) == 0) { myLogger.info(myBioDriver.getTicks() + ""); ContinuousState.printMe(); currentAction.printMe(); ContinuousState.updateState(); ClassifiedState = classifyState(ContinuousState); currentAction = handController(ClassifiedState); setActuators(currentAction); doFoodProcessor(); if (((myBioDriver.getTicks()) % (PLANT_PERIOD_MULT * CORE_PERIOD_MULT * ATMOSPHERIC_PERIOD)) == 0) { doPlants(); } } //advancing the sim n ticks for (i = 0; i < ATMOSPHERIC_PERIOD; i++) myBioDriver.advanceOneTick(); doAccumulatorsInjectors(); } myLogger.info("crew dead at " + myBioDriver.getTicks() + " ticks"); myBioDriver.endSimulation(); } | 5015 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5015/6e054f73c53db4621bf7ba5744df00aa084ec0b8/HandController.java/buggy/BIOSIM/src/com/traclabs/biosim/client/control/HandController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
7993,
1435,
288,
3639,
368,
13003,
326,
3142,
1245,
2235,
622,
279,
813,
16,
8681,
281,
326,
919,
16,
4533,
3329,
3639,
368,
471,
7810,
688,
938,
316,
3639,
368,
766,
358,
326,
783,
919,
471,
23934,
1328,
89,
3062,
316,
766,
3639,
509,
277,
31,
3639,
1431,
1853,
22,
16,
1592,
1132,
16,
394,
1132,
31,
3639,
7928,
2459,
28764,
783,
2459,
28764,
31,
3639,
775,
288,
5411,
7600,
273,
394,
24639,
12,
1182,
812,
1769,
3639,
289,
1044,
261,
14106,
425,
13,
288,
3639,
289,
3639,
8772,
273,
394,
14071,
12,
11966,
16,
638,
1769,
3639,
444,
7614,
87,
5621,
3639,
3399,
38,
1594,
6064,
273,
21209,
6064,
14729,
18,
588,
38,
1594,
6064,
5621,
3639,
3399,
38,
1594,
4668,
273,
3399,
38,
1594,
6064,
18,
5787,
38,
1594,
4668,
31,
3639,
3399,
38,
14642,
428,
13225,
273,
261,
38,
14642,
428,
13225,
13,
261,
4811,
38,
1594,
6064,
18,
5787,
38,
14642,
428,
13225,
7782,
18,
588,
12,
20,
10019,
3639,
3399,
38,
14642,
428,
13225,
18,
542,
4965,
44,
297,
26923,
1876,
20043,
970,
1526,
12,
3767,
1769,
3639,
3399,
42,
4773,
5164,
273,
261,
42,
4773,
5164,
13,
3399,
38,
1594,
6064,
18,
5787,
42,
4773,
18155,
18,
588,
12,
20,
1769,
3639,
3399,
1996,
91,
273,
261,
1996,
91,
1114,
13,
3399,
38,
1594,
6064,
18,
5787,
1996,
91,
3621,
18,
588,
12,
20,
1769,
3639,
3399,
24064,
13225,
273,
261,
24064,
13225,
13,
3399,
38,
1594,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
7993,
1435,
288,
3639,
368,
13003,
326,
3142,
1245,
2235,
622,
279,
813,
16,
8681,
281,
326,
919,
16,
4533,
3329,
3639,
368,
471,
7810,
688,
938,
316,
3639,
368,
766,
358,
326,
783,
919,
471,
23934,
1328,
89,
3062,
316,
766,
3639,
509,
277,
31,
3639,
1431,
1853,
22,
16,
1592,
1132,
16,
394,
1132,
31,
3639,
7928,
2459,
28764,
783,
2459,
28764,
31,
3639,
775,
288,
5411,
7600,
273,
394,
24639,
12,
1182,
812,
1769,
3639,
289,
1044,
261,
14106,
425,
13,
288,
3639,
289,
3639,
8772,
273,
394,
14071,
12,
11966,
16,
638,
1769,
3639,
444,
7614,
87,
5621,
3639,
3399,
38,
1594,
6064,
273,
21209,
6064,
14729,
18,
588,
38,
1594,
2
] |
temp.remove(source); | if ( saved_label != null ) { sheet.remove(saved_label); } if ( saved_editor != null ) { sheet.remove(saved_editor); } sheet.remove(source); | private void addDeleteButton(PropertySheet sheet, ConfigContext ctx, ConfigElement elm, PropertyDefinition propDef, int row) { ClassLoader loader = getClass().getClassLoader(); Icon remove_icon = new ImageIcon(loader.getResource(IMG_ROOT + "/Delete16.gif")); JButton remove_button = new JButton(); remove_button.setIcon(remove_icon); remove_button.setMargin(new Insets(0,0,0,0)); remove_button.setBorderPainted(false); remove_button.setFocusPainted(false); remove_button.setContentAreaFilled(false); // Verify that the property is variable. if(propDef.isVariable()) { remove_button.setEnabled(true); final String temp_string = propDef.getToken(); final ConfigContext temp_ctx = ctx; final ConfigElement temp_elm = elm; remove_button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { Component source = (Component) evt.getSource(); PropertyComponent temp = (PropertyComponent) source.getParent(); TableLayout tl = (TableLayout)temp.getLayout(); // Get the row that this panel is in. TableLayoutConstraints tlc = tl.getConstraints(source); int row = tlc.row1; // Calculate the property index on the fly bsaed on our row. int value_index = row - PropertySheet.VAR_LIST_VALUE_START_ROW; temp_elm.removeProperty(temp_string, value_index, temp_ctx); temp.remove(source); tl.deleteRow(row); temp.revalidate(); temp.repaint(); } }); } else { remove_button.setEnabled(false); } TableLayoutConstraints c4 = new TableLayoutConstraints(PropertySheet.DELETE_ICON_COLUMN, row, PropertySheet.DELETE_ICON_COLUMN, row, TableLayout.LEFT, TableLayout.TOP); sheet.add(remove_button, c4); } | 49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/090dfca5422f89f0e546b1baee31cefa924edb16/PropertySheetFactory.java/buggy/modules/jackal/editors/org/vrjuggler/jccl/editors/PropertySheetFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
527,
2613,
3616,
12,
1396,
8229,
6202,
16,
1903,
1042,
1103,
16,
27573,
1903,
1046,
12531,
16,
4276,
1852,
2270,
3262,
16,
27573,
509,
1027,
13,
282,
288,
1377,
9403,
4088,
273,
2900,
7675,
588,
7805,
5621,
1377,
16011,
1206,
67,
3950,
273,
540,
394,
3421,
5554,
12,
6714,
18,
588,
1420,
12,
3445,
43,
67,
9185,
397,
2206,
2613,
2313,
18,
13905,
7923,
1769,
1377,
28804,
1206,
67,
5391,
273,
394,
28804,
5621,
1377,
1206,
67,
5391,
18,
542,
5554,
12,
4479,
67,
3950,
1769,
1377,
1206,
67,
5391,
18,
542,
9524,
12,
2704,
22300,
12,
20,
16,
20,
16,
20,
16,
20,
10019,
1377,
1206,
67,
5391,
18,
542,
8107,
12699,
329,
12,
5743,
1769,
1377,
1206,
67,
5391,
18,
542,
9233,
12699,
329,
12,
5743,
1769,
1377,
1206,
67,
5391,
18,
542,
1350,
5484,
29754,
12,
5743,
1769,
1377,
368,
8553,
716,
326,
1272,
353,
2190,
18,
1377,
309,
12,
5986,
3262,
18,
291,
3092,
10756,
1377,
288,
540,
1206,
67,
5391,
18,
542,
1526,
12,
3767,
1769,
540,
727,
514,
1906,
67,
1080,
273,
2270,
3262,
18,
588,
1345,
5621,
540,
727,
1903,
1042,
1906,
67,
5900,
273,
1103,
31,
540,
727,
1903,
1046,
1906,
67,
19597,
273,
12531,
31,
540,
1206,
67,
5391,
18,
1289,
1803,
2223,
12,
2704,
25962,
1435,
540,
288,
5411,
1071,
918,
26100,
12,
1803,
1133,
6324,
13,
5411,
288,
9079,
5435,
1084,
273,
261,
1841,
13,
6324,
18,
588,
1830,
5621,
9079,
4276,
1841,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
527,
2613,
3616,
12,
1396,
8229,
6202,
16,
1903,
1042,
1103,
16,
27573,
1903,
1046,
12531,
16,
4276,
1852,
2270,
3262,
16,
27573,
509,
1027,
13,
282,
288,
1377,
9403,
4088,
273,
2900,
7675,
588,
7805,
5621,
1377,
16011,
1206,
67,
3950,
273,
540,
394,
3421,
5554,
12,
6714,
18,
588,
1420,
12,
3445,
43,
67,
9185,
397,
2206,
2613,
2313,
18,
13905,
7923,
1769,
1377,
28804,
1206,
67,
5391,
273,
394,
28804,
5621,
1377,
1206,
67,
5391,
18,
542,
5554,
12,
4479,
67,
3950,
1769,
1377,
1206,
67,
5391,
18,
542,
9524,
12,
2704,
22300,
12,
20,
16,
20,
16,
20,
16,
20,
10019,
1377,
1206,
67,
5391,
18,
542,
8107,
12699,
329,
12,
5743,
2
] |
abstraction.onPlaneSelected(z, t); } | abstraction.onPlaneSelected(z, t); } | public void onTChange(int z, int t) { resetTSlider(t); abstraction.onPlaneSelected(z, t); } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/a81a5a58f8e54d006d057455465766c8d3d72998/ViewerCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
603,
56,
3043,
12,
474,
998,
16,
509,
268,
13,
202,
95,
3639,
2715,
56,
21824,
12,
88,
1769,
202,
202,
378,
701,
1128,
18,
265,
19505,
7416,
12,
94,
16,
268,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (theRequest instanceof DirectEditRequestWrapper) { char c = ((DirectEditRequestWrapper) theRequest).getInitialCharacter(); performDirectEdit(c); | if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) { Character initialChar = (Character) theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR); performDirectEdit(initialChar.charValue()); | public void run() { if (isActive() && isEditable()) { if (theRequest instanceof DirectEditRequestWrapper) { char c = ((DirectEditRequestWrapper) theRequest).getInitialCharacter(); performDirectEdit(c); } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) { DirectEditRequest editRequest = (DirectEditRequest) theRequest; performDirectEdit(editRequest.getLocation()); } else { performDirectEdit(); } } } | 7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/f7f6fa367001c5800a5b6799c314d6da5740be07/EPackage3EditPart.java/clean/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/edit/parts/EPackage3EditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
6862,
202,
430,
261,
291,
3896,
1435,
597,
353,
15470,
10756,
288,
25083,
202,
430,
261,
5787,
691,
1276,
9908,
4666,
691,
3611,
13,
288,
6862,
1082,
202,
3001,
276,
273,
14015,
5368,
4666,
691,
3611,
13,
326,
691,
2934,
588,
4435,
7069,
5621,
6862,
1082,
202,
16092,
5368,
4666,
12,
71,
1769,
25083,
202,
97,
469,
309,
14015,
5787,
691,
1276,
9908,
4666,
691,
13,
597,
261,
588,
4666,
1528,
7675,
14963,
12,
588,
2224,
1528,
1435,
20349,
288,
6862,
1082,
202,
5368,
4666,
691,
3874,
691,
273,
261,
5368,
4666,
691,
13,
326,
691,
31,
6862,
1082,
202,
16092,
5368,
4666,
12,
4619,
691,
18,
588,
2735,
10663,
25083,
202,
97,
469,
288,
6862,
1082,
202,
16092,
5368,
4666,
5621,
25083,
202,
97,
6862,
202,
97,
9506,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
6862,
202,
430,
261,
291,
3896,
1435,
597,
353,
15470,
10756,
288,
25083,
202,
430,
261,
5787,
691,
1276,
9908,
4666,
691,
3611,
13,
288,
6862,
1082,
202,
3001,
276,
273,
14015,
5368,
4666,
691,
3611,
13,
326,
691,
2934,
588,
4435,
7069,
5621,
6862,
1082,
202,
16092,
5368,
4666,
12,
71,
1769,
25083,
202,
97,
469,
309,
14015,
5787,
691,
1276,
9908,
4666,
691,
13,
597,
261,
588,
4666,
1528,
7675,
14963,
12,
588,
2224,
1528,
1435,
20349,
288,
6862,
1082,
202,
5368,
4666,
691,
3874,
691,
273,
261,
5368,
4666,
691,
13,
326,
691,
31,
6862,
1082,
202,
16092,
5368,
4666,
12,
4619,
691,
18,
588,
2735,
10663,
25083,
202,
2
] |
public void createClient( Section section, FormToolkit toolkit) { GridData gd; | public void createClient(Section section, FormToolkit toolkit) { | public void createClient( Section section, FormToolkit toolkit) { GridData gd; Composite container = toolkit.createComposite(section); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.marginHeight = 2; layout.marginWidth = 2; container.setLayout(layout); // text fText = toolkit.createText(container, "", SWT.MULTI | SWT.WRAP | SWT.V_SCROLL); //$NON-NLS-1$ fText.setEditable(false); fText.setLayoutData(new GridData(GridData.FILL_BOTH)); fText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { if (fBlockNotification) return; markDirty(); fApplyButton.setEnabled(true); fResetButton.setEnabled(true); } }); fText.addFocusListener(new FocusAdapter() { public void focusGained(FocusEvent e) { getPage().getPDEEditor().getContributor().updateSelectableActions(new StructuredSelection()); } }); Composite buttonContainer = toolkit.createComposite(container); layout = new GridLayout(); layout.marginHeight = 0; buttonContainer.setLayout(layout); gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_FILL); buttonContainer.setLayoutData(gd); // add buttons fApplyButton = toolkit.createButton(buttonContainer, PDEUIMessages.Actions_apply_flabel, SWT.PUSH); gd = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING); fApplyButton.setLayoutData(gd); fApplyButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { handleApply(); } }); fResetButton = toolkit.createButton(buttonContainer, PDEUIMessages.Actions_reset_flabel, SWT.PUSH); gd = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING); fResetButton.setLayoutData(gd); fResetButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { handleReset(); } }); if (SWT.getPlatform().equals("motif") == false) //$NON-NLS-1$ toolkit.paintBordersFor(container); section.setClient(container); initialize(); } | 14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/031b3441a2f907a4917545deb2eb54ca1572c047/BodyTextSection.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/BodyTextSection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
30872,
12,
202,
202,
5285,
2442,
16,
202,
202,
1204,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
6313,
751,
15551,
31,
202,
202,
9400,
1478,
273,
5226,
8691,
18,
2640,
9400,
12,
3464,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
6741,
18,
10107,
2686,
273,
576,
31,
202,
202,
6741,
18,
10107,
2384,
273,
576,
31,
202,
202,
3782,
18,
542,
3744,
12,
6741,
1769,
202,
202,
759,
977,
202,
202,
74,
1528,
273,
5226,
8691,
18,
2640,
1528,
12,
3782,
16,
23453,
348,
8588,
18,
26588,
571,
348,
8588,
18,
27664,
571,
348,
8588,
18,
58,
67,
2312,
14555,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
74,
1528,
18,
542,
15470,
12,
5743,
1769,
202,
202,
74,
1528,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
202,
202,
74,
1528,
18,
1289,
11047,
2223,
12,
2704,
9518,
2223,
1435,
288,
1082,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
288,
9506,
202,
430,
261,
74,
1768,
4386,
13,
327,
31,
9506,
202,
3355,
10785,
5621,
9506,
202,
74,
7001,
3616,
18,
542,
1526,
12,
3767,
1769,
9506,
202,
74,
7013,
3616,
18,
542,
1526,
12,
3767,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
74,
1528,
18,
1289,
9233,
2223,
12,
2704,
478,
4560,
4216,
1435,
288,
1082,
202,
482,
918,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
30872,
12,
202,
202,
5285,
2442,
16,
202,
202,
1204,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
6313,
751,
15551,
31,
202,
202,
9400,
1478,
273,
5226,
8691,
18,
2640,
9400,
12,
3464,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
6741,
18,
10107,
2686,
273,
576,
31,
202,
202,
6741,
18,
10107,
2384,
273,
576,
31,
202,
202,
3782,
18,
542,
3744,
12,
6741,
1769,
202,
202,
759,
977,
202,
202,
74,
1528,
273,
5226,
8691,
18,
2640,
1528,
12,
3782,
16,
23453,
348,
8588,
18,
26588,
571,
348,
8588,
18,
27664,
571,
348,
8588,
18,
58,
67,
2312,
2
] |
throw new ApprovalException("Error no username exists for the given approver certificate"); | throw new ApprovalException("Error no username exists for the given approver or requestor certificate"); | public void reject(Admin admin, int approvalId, Approval approval) throws ApprovalRequestExpiredException, AuthorizationDeniedException, ApprovalException{ log.debug(">reject"); ApprovalDataLocal adl; try { adl = isAuthorizedBeforeApproveOrReject(admin,approvalId,approval); } catch (ApprovalException e1) { getLogSession().log(admin,admin.getCaId(),LogEntry.MODULE_RA,new Date(),null,null,LogEntry.EVENT_ERROR_APPROVALREJECTED,"Approval request with id : " +approvalId +" doesn't exists."); throw e1; } // Check that the approvers username doesn't exists among the existing usernames. X509Certificate approvingCert = admin.getAdminInformation().getX509Certificate(); String username = getCertificateStoreSession().findUsernameByCertSerno(admin,approvingCert.getSerialNumber(),CertTools.getIssuerDN(approvingCert)); if(username != null){ ApprovalDataVO data = adl.getApprovalDataVO(); Iterator iter = data.getApprovals().iterator(); while(iter.hasNext()){ Approval next = (Approval) iter.next(); if(next.getUsername().equals(username)){ getLogSession().log(admin,adl.getCaid(),LogEntry.MODULE_RA,new Date(),null,null,LogEntry.EVENT_ERROR_APPROVALREJECTED,"Error administrator have already approved or rejected current request, approveId "); throw new ApprovalException("Error administrator have already approved or rejected current request, approveId : " + approvalId); } } approval.setApprovalCertificateAndUsername(approvingCert,username); }else{ getLogSession().log(admin,adl.getCaid(),LogEntry.MODULE_RA,new Date(),null,null,LogEntry.EVENT_ERROR_APPROVALREJECTED,"Approval request with id : " +approvalId +", Error no username exists for the given approver certificate."); throw new ApprovalException("Error no username exists for the given approver certificate"); } try { adl.reject(approval); getLogSession().log(admin,adl.getCaid(),LogEntry.MODULE_RA,new Date(),null,null,LogEntry.EVENT_INFO_APPROVALREJECTED,"Approval request with id : " +approvalId +" have been rejected."); } catch (ApprovalRequestExpiredException e) { getLogSession().log(admin,adl.getCaid(),LogEntry.MODULE_RA,new Date(),null,null,LogEntry.EVENT_ERROR_APPROVALREJECTED,"Approval request with id : " +approvalId +" have expired."); throw e; } log.debug("<reject"); } | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/231f92944a3ba3ea78566f7b0a34f1f2ad7fd59e/LocalApprovalSessionBean.java/clean/src/java/org/ejbca/core/ejb/approval/LocalApprovalSessionBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4925,
12,
4446,
3981,
16,
509,
23556,
548,
16,
1716,
685,
1125,
23556,
13,
1216,
1716,
685,
1125,
691,
10556,
503,
16,
28524,
1171,
10234,
15877,
16,
225,
1716,
685,
1125,
503,
95,
377,
202,
1330,
18,
4148,
2932,
34,
24163,
8863,
377,
202,
23461,
751,
2042,
1261,
80,
31,
202,
202,
698,
288,
1082,
202,
361,
80,
273,
353,
15341,
4649,
12053,
537,
1162,
21705,
12,
3666,
16,
12908,
1125,
548,
16,
12908,
1125,
1769,
202,
202,
97,
1044,
261,
23461,
503,
425,
21,
13,
288,
1082,
202,
588,
1343,
2157,
7675,
1330,
12,
3666,
16,
3666,
18,
588,
23508,
548,
9334,
25548,
18,
12194,
67,
2849,
16,
2704,
2167,
9334,
2011,
16,
2011,
16,
25548,
18,
10454,
67,
3589,
67,
2203,
3373,
2669,
862,
5304,
2056,
10837,
23461,
590,
598,
612,
294,
315,
397,
12908,
1125,
548,
397,
6,
3302,
1404,
1704,
1199,
1769,
1082,
202,
12849,
425,
21,
31,
202,
202,
97,
4697,
202,
759,
2073,
716,
326,
6617,
2496,
2718,
3302,
1404,
1704,
17200,
326,
2062,
27675,
18,
377,
202,
60,
5995,
4719,
6617,
6282,
5461,
273,
3981,
18,
588,
4446,
5369,
7675,
588,
60,
5995,
4719,
5621,
202,
202,
780,
2718,
273,
27653,
2257,
2157,
7675,
4720,
8575,
858,
5461,
827,
2135,
12,
3666,
16,
12908,
6282,
5461,
18,
588,
6342,
1854,
9334,
5461,
10348,
18,
588,
16667,
8609,
12,
12908,
6282,
5461,
10019,
202,
202,
430,
12,
5053,
480,
446,
15329,
1082,
202,
23461,
751,
16169,
501,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4925,
12,
4446,
3981,
16,
509,
23556,
548,
16,
1716,
685,
1125,
23556,
13,
1216,
1716,
685,
1125,
691,
10556,
503,
16,
28524,
1171,
10234,
15877,
16,
225,
1716,
685,
1125,
503,
95,
377,
202,
1330,
18,
4148,
2932,
34,
24163,
8863,
377,
202,
23461,
751,
2042,
1261,
80,
31,
202,
202,
698,
288,
1082,
202,
361,
80,
273,
353,
15341,
4649,
12053,
537,
1162,
21705,
12,
3666,
16,
12908,
1125,
548,
16,
12908,
1125,
1769,
202,
202,
97,
1044,
261,
23461,
503,
425,
21,
13,
288,
1082,
202,
588,
1343,
2157,
7675,
1330,
12,
3666,
16,
3666,
18,
588,
23508,
548,
9334,
25548,
18,
12194,
67,
2849,
16,
2704,
2167,
9334,
2011,
16,
2011,
16,
2
] |
{ setToolTipText(WorkbenchMessages.getString("PerspectiveBarNewContributionItem.toolTip")); | { setToolTipText(IDEWorkbenchMessages.getString("IDEWorkbenchAdvisor.openPerspective")); | public Control createEmptyWindowContents(final IWorkbenchWindowConfigurer configurer, Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout(2, false)); Display display = composite.getDisplay(); Color bgCol = display.getSystemColor(SWT.COLOR_DARK_GRAY); composite.setBackground(bgCol); Label label = new Label(composite, SWT.WRAP); label.setForeground(display.getSystemColor(SWT.COLOR_WHITE)); label.setBackground(bgCol); label.setFont(JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT)); String msg = "No perspectives are open. To open a perspective, press this button:"; //$NON-NLS-1$ label.setText(msg); ToolBarManager toolBarManager = new ToolBarManager(); // TODO: should obtain the open perspective action from ActionFactory IAction openPerspectiveAction = new Action() { { setToolTipText(WorkbenchMessages.getString("PerspectiveBarNewContributionItem.toolTip")); //$NON-NLS-1$ setImageDescriptor(WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_ETOOL_NEW_PAGE)); } public void run() { SelectPerspectiveDialog dlg = new SelectPerspectiveDialog(configurer.getWindow().getShell(), configurer.getWindow().getWorkbench().getPerspectiveRegistry()); dlg.open(); if (dlg.getReturnCode() == Window.CANCEL) return; IPerspectiveDescriptor desc = dlg.getSelection(); if (desc != null) { try { configurer.getWindow().openPage(desc.getId(), getDefaultPageInput()); } catch (WorkbenchException e) { IDEWorkbenchPlugin.log("Error opening page", e); //$NON-NLS-1$ } } } }; toolBarManager.add(openPerspectiveAction); ToolBar toolBar = toolBarManager.createControl(composite); toolBar.setBackground(bgCol); return composite; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ee8841d135c199bc613d8fd9864e56edafe3fd09/IDEWorkbenchAdvisor.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8888,
752,
1921,
3829,
6323,
12,
6385,
467,
2421,
22144,
3829,
809,
11278,
642,
11278,
16,
14728,
982,
13,
288,
202,
202,
9400,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
27676,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
22,
16,
629,
10019,
202,
202,
4236,
2562,
273,
9635,
18,
588,
4236,
5621,
202,
202,
2957,
7611,
914,
273,
2562,
18,
588,
3163,
2957,
12,
55,
8588,
18,
10989,
67,
40,
9584,
67,
43,
6722,
1769,
202,
202,
27676,
18,
542,
8199,
12,
12370,
914,
1769,
3639,
5287,
1433,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
27664,
1769,
3639,
1433,
18,
542,
23206,
12,
5417,
18,
588,
3163,
2957,
12,
55,
8588,
18,
10989,
67,
16861,
10019,
3639,
1433,
18,
542,
8199,
12,
12370,
914,
1769,
3639,
1433,
18,
542,
5711,
12,
46,
11824,
3805,
18,
588,
5711,
4243,
7675,
588,
38,
1673,
12,
46,
11824,
3805,
18,
5280,
67,
25221,
10019,
3639,
514,
1234,
273,
315,
2279,
13508,
1181,
3606,
854,
1696,
18,
2974,
1696,
279,
26651,
16,
11779,
333,
3568,
2773,
31,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1433,
18,
542,
1528,
12,
3576,
1769,
3639,
13288,
5190,
1318,
5226,
5190,
1318,
273,
394,
13288,
5190,
1318,
5621,
3639,
368,
2660,
30,
1410,
7161,
326,
1696,
26651,
1301,
628,
4382,
1733,
3639,
467,
1803,
1696,
14781,
16772,
1803,
273,
394,
4382,
1435,
288,
540,
202,
95,
444,
29250,
1528,
12,
10385,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8888,
752,
1921,
3829,
6323,
12,
6385,
467,
2421,
22144,
3829,
809,
11278,
642,
11278,
16,
14728,
982,
13,
288,
202,
202,
9400,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
27676,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
22,
16,
629,
10019,
202,
202,
4236,
2562,
273,
9635,
18,
588,
4236,
5621,
202,
202,
2957,
7611,
914,
273,
2562,
18,
588,
3163,
2957,
12,
55,
8588,
18,
10989,
67,
40,
9584,
67,
43,
6722,
1769,
202,
202,
27676,
18,
542,
8199,
12,
12370,
914,
1769,
3639,
5287,
1433,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
27664,
1769,
3639,
1433,
18,
542,
23206,
12,
5417,
18,
588,
2
] |
Log.logException(Log.ERROR, MODULE, e); | Log.logException(Log.LEVEL_ERROR, MODULE, e); | private void macOSXRegistration() { if (IS_MAC_OS_X) { try { Class theMacOSXAdapter; theMacOSXAdapter = Class.forName("com.gallery.GalleryRemote.util.MacOSXAdapter"); Class[] defArgs = {JFrame.class, String.class, String.class, String.class }; Method registerMethod = theMacOSXAdapter.getDeclaredMethod("registerMacOSXApplication", defArgs); if (registerMethod != null) { Object[] args = { this, "showAboutBox", "shutdown", "showPreferencesDialog" }; registerMethod.invoke(theMacOSXAdapter, args); } } catch (NoClassDefFoundError e) { Log.logException(Log.ERROR, MODULE, e); } catch (ClassNotFoundException e) { Log.logException(Log.ERROR, MODULE, e); } catch (Exception e) { Log.logException(Log.ERROR, MODULE, e); } } } | 9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/d180d723a9e594086228e902568d740d7e8649d8/MainFrame.java/buggy/com/gallery/GalleryRemote/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5318,
4618,
60,
7843,
1435,
288,
202,
202,
430,
261,
5127,
67,
10875,
67,
4618,
67,
60,
13,
288,
1082,
202,
698,
288,
9506,
202,
797,
326,
9990,
4618,
60,
4216,
31,
9506,
202,
5787,
9990,
4618,
60,
4216,
273,
1659,
18,
1884,
461,
2932,
832,
18,
21454,
18,
18511,
5169,
18,
1367,
18,
9990,
4618,
60,
4216,
8863,
9506,
202,
797,
8526,
1652,
2615,
273,
288,
46,
3219,
18,
1106,
16,
514,
18,
1106,
16,
514,
18,
1106,
16,
514,
18,
1106,
289,
31,
9506,
202,
1305,
1744,
1305,
273,
326,
9990,
4618,
60,
4216,
18,
588,
18888,
1305,
2932,
4861,
9990,
4618,
60,
3208,
3113,
1652,
2615,
1769,
9506,
202,
430,
261,
4861,
1305,
480,
446,
13,
288,
6862,
202,
921,
8526,
833,
273,
288,
333,
16,
315,
4500,
24813,
3514,
3113,
315,
15132,
3113,
315,
4500,
12377,
6353,
6,
289,
31,
6862,
202,
4861,
1305,
18,
14407,
12,
5787,
9990,
4618,
60,
4216,
16,
833,
1769,
9506,
202,
97,
1082,
202,
97,
1044,
261,
2279,
797,
3262,
2043,
668,
425,
13,
288,
9506,
202,
1343,
18,
1330,
503,
12,
1343,
18,
3589,
16,
14057,
16,
425,
1769,
1082,
202,
97,
1044,
261,
797,
3990,
425,
13,
288,
9506,
202,
1343,
18,
1330,
503,
12,
1343,
18,
3589,
16,
14057,
16,
425,
1769,
1082,
202,
97,
1044,
261,
503,
425,
13,
288,
9506,
202,
1343,
18,
1330,
503,
12,
1343,
18,
3589,
16,
14057,
16,
425,
1769,
1082,
202,
97,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5318,
4618,
60,
7843,
1435,
288,
202,
202,
430,
261,
5127,
67,
10875,
67,
4618,
67,
60,
13,
288,
1082,
202,
698,
288,
9506,
202,
797,
326,
9990,
4618,
60,
4216,
31,
9506,
202,
5787,
9990,
4618,
60,
4216,
273,
1659,
18,
1884,
461,
2932,
832,
18,
21454,
18,
18511,
5169,
18,
1367,
18,
9990,
4618,
60,
4216,
8863,
9506,
202,
797,
8526,
1652,
2615,
273,
288,
46,
3219,
18,
1106,
16,
514,
18,
1106,
16,
514,
18,
1106,
16,
514,
18,
1106,
289,
31,
9506,
202,
1305,
1744,
1305,
273,
326,
9990,
4618,
60,
4216,
18,
588,
18888,
1305,
2932,
4861,
9990,
4618,
60,
3208,
3113,
1652,
2615,
1769,
9506,
202,
430,
261,
4861,
2
] |
public void changeBreakpointProperties( final ICBreakpoint breakpoint, final IMarkerDelta delta ) throws DebugException { doChangeBreakpointProperties( breakpoint, delta ); | private void changeBreakpointProperties( ICBreakpoint breakpoint, IMarkerDelta delta ) { ICDIBreakpoint cdiBreakpoint = null; synchronized( getBreakpointMap() ) { if ( !getBreakpointMap().isInProgress( breakpoint ) ) cdiBreakpoint = getBreakpointMap().getCDIBreakpoint( breakpoint ); } if ( cdiBreakpoint == null ) return; ICDITarget cdiTarget = getCDITarget(); try { boolean enabled = breakpoint.isEnabled(); boolean oldEnabled = ( delta != null ) ? delta.getAttribute( IBreakpoint.ENABLED, true ) : enabled; int ignoreCount = breakpoint.getIgnoreCount(); int oldIgnoreCount = ( delta != null ) ? delta.getAttribute( ICBreakpoint.IGNORE_COUNT, 0 ) : ignoreCount; String condition = breakpoint.getCondition(); String oldCondition = ( delta != null ) ? delta.getAttribute( ICBreakpoint.CONDITION, "" ) : condition; String[] newThreadIs = getThreadNames( breakpoint ); Boolean enabled0 = null; ICDICondition condition0 = null; if ( enabled != oldEnabled && enabled != cdiBreakpoint.isEnabled() ) { enabled0 = ( enabled ) ? Boolean.TRUE : Boolean.FALSE; } if ( ignoreCount != oldIgnoreCount || condition.compareTo( oldCondition ) != 0 || areThreadFiltersChanged( newThreadIs, cdiBreakpoint ) ) { ICDICondition cdiCondition = cdiTarget.createCondition( ignoreCount, condition, newThreadIs ); if ( !cdiCondition.equals( cdiBreakpoint.getCondition() ) ) { condition0 = cdiCondition; } } if ( enabled0 != null || condition0 != null ) { changeBreakpointPropertiesOnTarget( cdiBreakpoint, enabled0, condition0 ); } } catch( CoreException e ) { } catch( CDIException e ) { } | public void changeBreakpointProperties( final ICBreakpoint breakpoint, final IMarkerDelta delta ) throws DebugException { doChangeBreakpointProperties( breakpoint, delta ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/690d999a7cc54b2776623c281fdf2a5edc9bf01b/CBreakpointManager.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2549,
20552,
2297,
12,
727,
26899,
20552,
18820,
16,
727,
467,
7078,
9242,
3622,
262,
1216,
4015,
503,
288,
202,
202,
2896,
3043,
20552,
2297,
12,
18820,
16,
3622,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2549,
20552,
2297,
12,
727,
26899,
20552,
18820,
16,
727,
467,
7078,
9242,
3622,
262,
1216,
4015,
503,
288,
202,
202,
2896,
3043,
20552,
2297,
12,
18820,
16,
3622,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for(int i = 0; i < paths.length; i++){ String copiedPath = (String)paths[i]; if(!path.startsWith(copiedPath)){ | for (int i = 0; i < paths.length; i++) { String copiedPath = (String) paths[i]; if (!path.startsWith(copiedPath)) { | private SVNLogEntryPath getFileCopyOrigin(String path) throws SVNException{ Object[] paths = myCopiedPaths.keySet().toArray(); SVNLogEntryPath realPath = null; for(int i = 0; i < paths.length; i++){ String copiedPath = (String)paths[i]; if(!path.startsWith(copiedPath)){ continue; } String relativePath = path.substring(copiedPath.endsWith("/") ? copiedPath.length() : copiedPath.length() + 1); SVNLogEntryPath changedPath = (SVNLogEntryPath)myCopiedPaths.get(copiedPath); String realFilePath = SVNPathUtil.concatToAbs(changedPath.getCopyPath(), relativePath); SVNRepository repos = SVNRepositoryFactory.create(myRepos.getLocation()); if(repos.checkPath(realFilePath, changedPath.getCopyRevision()) == SVNNodeKind.FILE){ realPath = new SVNLogEntryPath(path, ' ', realFilePath, changedPath.getCopyRevision()); break; } } return realPath; } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/170f6d8efb9eec359a79c0b73c53a5f9a955d947/SVNReplicationEditor.java/buggy/javasvn-test/src/org/tmatesoft/svn/core/internal/io/fs/test/SVNReplicationEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
29537,
50,
25548,
743,
6034,
2951,
7571,
12,
780,
589,
13,
1216,
29537,
50,
503,
95,
3639,
1033,
8526,
2953,
273,
3399,
28127,
4466,
18,
856,
694,
7675,
31447,
5621,
3639,
29537,
50,
25548,
743,
22728,
273,
446,
31,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
2953,
18,
2469,
31,
277,
27245,
95,
5411,
514,
9268,
743,
273,
261,
780,
13,
4481,
63,
77,
15533,
5411,
309,
12,
5,
803,
18,
17514,
1190,
12,
22295,
2092,
743,
3719,
95,
7734,
1324,
31,
5411,
289,
5411,
514,
12820,
273,
589,
18,
28023,
12,
22295,
2092,
743,
18,
5839,
1190,
2932,
4898,
13,
692,
9268,
743,
18,
2469,
1435,
294,
9268,
743,
18,
2469,
1435,
397,
404,
1769,
5411,
29537,
50,
25548,
743,
3550,
743,
273,
261,
23927,
50,
25548,
743,
13,
4811,
28127,
4466,
18,
588,
12,
22295,
2092,
743,
1769,
5411,
514,
2863,
5598,
273,
29537,
50,
743,
1304,
18,
16426,
774,
9382,
12,
6703,
743,
18,
588,
2951,
743,
9334,
12820,
1769,
5411,
29537,
50,
3305,
13686,
273,
29537,
50,
3305,
1733,
18,
2640,
12,
4811,
28453,
18,
588,
2735,
10663,
5411,
309,
12,
15564,
18,
1893,
743,
12,
7688,
5598,
16,
3550,
743,
18,
588,
2951,
7939,
10756,
422,
29537,
50,
907,
5677,
18,
3776,
15329,
7734,
22728,
273,
394,
29537,
50,
25548,
743,
12,
803,
16,
296,
2265,
2863,
5598,
16,
3550,
743,
18,
588,
2951,
7939,
10663,
7734,
898,
31,
5411,
289,
3639,
289,
3639,
327,
22728,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
29537,
50,
25548,
743,
6034,
2951,
7571,
12,
780,
589,
13,
1216,
29537,
50,
503,
95,
3639,
1033,
8526,
2953,
273,
3399,
28127,
4466,
18,
856,
694,
7675,
31447,
5621,
3639,
29537,
50,
25548,
743,
22728,
273,
446,
31,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
2953,
18,
2469,
31,
277,
27245,
95,
5411,
514,
9268,
743,
273,
261,
780,
13,
4481,
63,
77,
15533,
5411,
309,
12,
5,
803,
18,
17514,
1190,
12,
22295,
2092,
743,
3719,
95,
7734,
1324,
31,
5411,
289,
5411,
514,
12820,
273,
589,
18,
28023,
12,
22295,
2092,
743,
18,
5839,
1190,
2932,
4898,
13,
692,
9268,
743,
18,
2469,
1435,
294,
9268,
743,
18,
2469,
1435,
397,
2
] |
public void handleResource(IResource res, IResourceDelta delta) | public boolean handleResource(IResource res, IResourceDelta delta) | public void handleResource(IResource res, IResourceDelta delta) throws CoreException { ++count; IPath fullPath = res.getFullPath(); boolean ignore = false; // ignore resources already in build folder if (this.getIncrementalNature().getBuildPath().isPrefixOf(fullPath)) { ignore = true; } // ignore resources copied to the Java output folder if (!ignore && _checkJavaOutputPath && outputPath.isPrefixOf(fullPath)) { ignore = true; } boolean handled = false; if (!ignore) { if (this.getProject().matchesResourcesPattern(res)) { IPath dest = this.getIncrementalNature().asResourcePath( res.getFullPath(), res); if (_checkResource(res, delta, dest)) { handled = _handleResource(res, delta, dest); } else { handled = true; } } else if (res.toString().indexOf("/Resources/") != -1) { // _getLogger().debug("ignoring probable resource! "+res); } if (this.getProject().matchesWOAppResourcesPattern(res)) { IPath dest = this.getIncrementalNature().asWebResourcePath( res.getFullPath(), res); if (_checkResource(res, delta, dest)) { handled = _handleResource(res, delta, dest); } else { handled = true; } } } if (!handled) { _getLogger().debug("//not a (ws)resource: " + res); unmarkResource(res, ProjectBuildPlugin.MARKER_BUILD_DUPLICATE); } } | 47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/ec126f8ee9be8ed0bf5eba80dedeb46412047e4b/BuildVisitor.java/buggy/projects/wolips/plugins/org.objectstyle.wolips.projectbuild/java/org/objectstyle/wolips/projectbuild/builder/incremental/BuildVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
1420,
12,
45,
1420,
400,
16,
467,
1420,
9242,
3622,
13,
1082,
202,
15069,
30015,
288,
202,
202,
9904,
1883,
31,
202,
202,
45,
743,
11225,
273,
400,
18,
588,
24173,
5621,
202,
202,
6494,
2305,
273,
629,
31,
202,
202,
759,
2305,
2703,
1818,
316,
1361,
3009,
202,
202,
430,
261,
2211,
18,
588,
10798,
287,
50,
1231,
7675,
588,
3116,
743,
7675,
291,
2244,
951,
12,
2854,
743,
3719,
288,
1082,
202,
6185,
273,
638,
31,
202,
202,
97,
202,
202,
759,
2305,
2703,
9268,
358,
326,
5110,
876,
3009,
202,
202,
430,
16051,
6185,
597,
389,
1893,
5852,
1447,
743,
597,
19566,
18,
291,
2244,
951,
12,
2854,
743,
3719,
288,
1082,
202,
6185,
273,
638,
31,
202,
202,
97,
202,
202,
6494,
7681,
273,
629,
31,
202,
202,
430,
16051,
6185,
13,
288,
1082,
202,
430,
261,
2211,
18,
588,
4109,
7675,
8436,
3805,
3234,
12,
455,
3719,
288,
9506,
202,
45,
743,
1570,
273,
333,
18,
588,
10798,
287,
50,
1231,
7675,
345,
29906,
12,
25083,
202,
455,
18,
588,
24173,
9334,
400,
1769,
9506,
202,
430,
261,
67,
1893,
1420,
12,
455,
16,
3622,
16,
1570,
3719,
288,
6862,
202,
14387,
273,
389,
4110,
1420,
12,
455,
16,
3622,
16,
1570,
1769,
9506,
202,
97,
469,
288,
6862,
202,
14387,
273,
638,
31,
9506,
202,
97,
1082,
202,
97,
469,
309,
261,
455,
18,
10492,
7675,
31806,
2932,
19,
3805,
4898,
13,
480,
300,
21,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
1420,
12,
45,
1420,
400,
16,
467,
1420,
9242,
3622,
13,
1082,
202,
15069,
30015,
288,
202,
202,
9904,
1883,
31,
202,
202,
45,
743,
11225,
273,
400,
18,
588,
24173,
5621,
202,
202,
6494,
2305,
273,
629,
31,
202,
202,
759,
2305,
2703,
1818,
316,
1361,
3009,
202,
202,
430,
261,
2211,
18,
588,
10798,
287,
50,
1231,
7675,
588,
3116,
743,
7675,
291,
2244,
951,
12,
2854,
743,
3719,
288,
1082,
202,
6185,
273,
638,
31,
202,
202,
97,
202,
202,
759,
2305,
2703,
9268,
358,
326,
5110,
876,
3009,
202,
202,
430,
16051,
6185,
597,
389,
1893,
5852,
1447,
743,
597,
19566,
18,
291,
2244,
951,
12,
2854,
743,
3719,
288,
2
] |
crit.addEqualTo("paymentGuide.idInternal", guide.getIdInternal()); | crit.addEqualTo("guide.idInternal", guide.getIdInternal()); | public List readByGuide(IGuide guide) throws ExcepcaoPersistencia { Criteria crit = new Criteria(); crit.addEqualTo("paymentGuide.idInternal", guide.getIdInternal()); return queryList(ReimbursementGuide.class, crit); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/ded57f1bbf63ea5fb7a155e2cbfbbc5d4dd27a0c/ReimbursementGuideOJB.java/clean/src/ServidorPersistente/OJB/guide/ReimbursementGuideOJB.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
858,
17424,
12,
3047,
89,
831,
7343,
13,
1216,
1312,
311,
2436,
6033,
12771,
28115,
565,
288,
3639,
8356,
7921,
273,
394,
8356,
5621,
3639,
7921,
18,
1289,
5812,
774,
2932,
12118,
18,
350,
3061,
3113,
7343,
18,
26321,
3061,
10663,
3639,
327,
843,
682,
12,
426,
381,
70,
295,
307,
475,
17424,
18,
1106,
16,
7921,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
858,
17424,
12,
3047,
89,
831,
7343,
13,
1216,
1312,
311,
2436,
6033,
12771,
28115,
565,
288,
3639,
8356,
7921,
273,
394,
8356,
5621,
3639,
7921,
18,
1289,
5812,
774,
2932,
12118,
18,
350,
3061,
3113,
7343,
18,
26321,
3061,
10663,
3639,
327,
843,
682,
12,
426,
381,
70,
295,
307,
475,
17424,
18,
1106,
16,
7921,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (byte[]) hash.clone(); | return (hash != null) ? (byte[]) hash.clone() : null; | public byte[] getHash() { if ( hash == null && imageFile != null ) { calcHash(); } return (byte[]) hash.clone(); } | 50360 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50360/cb2f0bd71479ba42dd02fe37aff6b74fb6ddd347/ImageInstance.java/clean/src/main/java/org/photovault/imginfo/ImageInstance.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
16075,
1435,
288,
3639,
309,
261,
1651,
422,
446,
597,
31146,
480,
446,
262,
288,
5411,
7029,
2310,
5621,
3639,
289,
3639,
327,
225,
261,
2816,
480,
446,
13,
692,
261,
7229,
63,
5717,
1651,
18,
14056,
1435,
294,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
16075,
1435,
288,
3639,
309,
261,
1651,
422,
446,
597,
31146,
480,
446,
262,
288,
5411,
7029,
2310,
5621,
3639,
289,
3639,
327,
225,
261,
2816,
480,
446,
13,
692,
261,
7229,
63,
5717,
1651,
18,
14056,
1435,
294,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private IStatus search(IBugzillaSearchResultCollector collector, int startMatches, int maxMatches) throws LoginException { IProgressMonitor monitor = collector.getProgressMonitor(); IStatus status = null; boolean possibleBadLogin = false; int numCollected = 0; BufferedReader in = null; try { monitor.beginTask(QUERYING_SERVER, IProgressMonitor.UNKNOWN); collector.aboutToStart(startMatches); URLConnection cntx = BugzillaPlugin.getDefault().getUrlConnection(new URL(urlString)); if(cntx == null || !(cntx instanceof HttpURLConnection)) return null; HttpURLConnection connect = (HttpURLConnection) cntx; connect.connect(); int responseCode = connect.getResponseCode(); if(responseCode != HttpURLConnection.HTTP_OK) { String msg; if(responseCode == -1 || responseCode == HttpURLConnection.HTTP_FORBIDDEN) msg = BugzillaPlugin.getDefault().getServerName() + " does not seem to be a valid Bugzilla server. Check Bugzilla preferences."; else msg = "HTTP Error " + responseCode + " (" + connect.getResponseMessage() + ") while querying Bugzilla Server. Check Bugzilla preferences."; throw new BugzillaException(msg); } if (monitor.isCanceled()) { throw new OperationCanceledException("Search cancelled"); } in = new BufferedReader(new InputStreamReader(connect.getInputStream())); if (monitor.isCanceled()) { throw new OperationCanceledException("Search cancelled"); } Match match = new Match(); String line; while ((line = in.readLine()) != null) { if(numCollected != -1 && numCollected >= maxMatches){ maxReached = true; break; } if (monitor.isCanceled()) { throw new OperationCanceledException("Search cancelled"); } RegularExpression loginRe = new RegularExpression("<title>.*login.*</title>.*"); RegularExpression invalidRe = new RegularExpression(".*<title>.*invalid.*password.*</title>.*"); RegularExpression passwordRe = new RegularExpression(".*<title>.*password.*invalid.*</title>.*"); RegularExpression emailRe = new RegularExpression(".*<title>.*check e-mail.*</title>.*"); RegularExpression errorRe = new RegularExpression(".*<title>.*error.*</title>.*"); String lowerLine = line.toLowerCase(); if(loginRe.matches(lowerLine) || invalidRe.matches(lowerLine) || passwordRe.matches(lowerLine) || emailRe.matches(lowerLine) || errorRe.matches(lowerLine)) possibleBadLogin = true; if (reOld.matches(line, match)) { int id = Integer.parseInt(match.getCapturedText(1)); String severity = match.getCapturedText(2); String priority = match.getCapturedText(3); String platform = match.getCapturedText(4); String owner = match.getCapturedText(5); String state = match.getCapturedText(6); String result = match.getCapturedText(7); String description = match.getCapturedText(8); String query = BugzillaPlugin.getMostRecentQuery(); if (query == null) query = ""; String server = BugzillaPlugin.getDefault().getServerName(); BugzillaSearchHit hit = new BugzillaSearchHit(id, description, severity, priority, platform, state, result, owner, query, server); collector.accept(hit); numCollected++; } else if (re.matches(line, match)) { int id = Integer.parseInt(match.getCapturedText(1)); String severity = null; String priority = null; String platform = null; String owner = null; String state = null; String result = null; for (int i = 0; i < 6; i++) { if (monitor.isCanceled()) { throw new OperationCanceledException("Search cancelled"); } do { if (monitor.isCanceled()) { throw new OperationCanceledException("Search cancelled"); } line = in.readLine().trim(); if (line == null) break; line = line.trim(); } while (!reValue.matches(line, match)); switch (i) { case 0: severity = match.getCapturedText(1); break; case 1: priority = match.getCapturedText(1); break; case 2: platform = match.getCapturedText(1); break; case 3: owner = match.getCapturedText(1); break; case 4: state = match.getCapturedText(1); break; case 5: result = match.getCapturedText(1); break; } } line = in.readLine(); line = in.readLine(); String description = line.substring(8); String query = BugzillaPlugin.getMostRecentQuery(); if (query == null) query = ""; String server = BugzillaPlugin.getDefault().getServerName(); BugzillaSearchHit hit = new BugzillaSearchHit(id, description, severity, priority, platform, state, result, owner, query, server); collector.accept(hit); numCollected++; } if (monitor.isCanceled()) { throw new OperationCanceledException("Search cancelled"); } } }catch (CoreException e) { status = new MultiStatus( IBugzillaConstants.PLUGIN_ID, IStatus.ERROR, "Core Exception occurred while querying Bugzilla Server " + BugzillaPlugin.getDefault().getServerName() + ".\n" + "\nClick Details for more information.", e); ((MultiStatus)status).add(e.getStatus()); BugzillaPlugin.log(status); } catch (OperationCanceledException e) { status = new Status(IStatus.CANCEL, IBugzillaConstants.PLUGIN_ID, IStatus.CANCEL, "", null); }catch (Exception e) { status = new MultiStatus( IBugzillaConstants.PLUGIN_ID, IStatus.ERROR, e.getClass().toString() + " occurred while querying Bugzilla Server " + BugzillaPlugin.getDefault().getServerName() + ".\n" + "\nClick Details or see log for more information.", e); IStatus s = new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.ERROR, e.getClass().toString() + ": ", e); ((MultiStatus)status).add(s); s = new Status (IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.ERROR, e.getMessage(), e); ((MultiStatus)status).add(s); BugzillaPlugin.log(status); } finally { monitor.done(); collector.done(); try{ if(in != null) in.close(); }catch(IOException e) { BugzillaPlugin.log(new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID,IStatus.ERROR,"Problem closing the stream", e)); } } if(numCollected == 0 && possibleBadLogin) throw new LoginException("Bugzilla login information incorrect"); if(status == null) return new Status(IStatus.OK, NewSearchUI.PLUGIN_ID, IStatus.OK, "", null); else return status; | public IStatus search(IBugzillaSearchResultCollector collector) throws LoginException { return this.search(collector, 0, -1); | private IStatus search(IBugzillaSearchResultCollector collector, int startMatches, int maxMatches) throws LoginException { IProgressMonitor monitor = collector.getProgressMonitor(); IStatus status = null; boolean possibleBadLogin = false; int numCollected = 0; BufferedReader in = null; try { monitor.beginTask(QUERYING_SERVER, IProgressMonitor.UNKNOWN); collector.aboutToStart(startMatches); URLConnection cntx = BugzillaPlugin.getDefault().getUrlConnection(new URL(urlString)); if(cntx == null || !(cntx instanceof HttpURLConnection)) return null; HttpURLConnection connect = (HttpURLConnection) cntx; connect.connect(); int responseCode = connect.getResponseCode(); if(responseCode != HttpURLConnection.HTTP_OK) { String msg; if(responseCode == -1 || responseCode == HttpURLConnection.HTTP_FORBIDDEN) msg = BugzillaPlugin.getDefault().getServerName() + " does not seem to be a valid Bugzilla server. Check Bugzilla preferences."; else msg = "HTTP Error " + responseCode + " (" + connect.getResponseMessage() + ") while querying Bugzilla Server. Check Bugzilla preferences."; throw new BugzillaException(msg); } if (monitor.isCanceled()) { throw new OperationCanceledException("Search cancelled"); } in = new BufferedReader(new InputStreamReader(connect.getInputStream())); if (monitor.isCanceled()) { throw new OperationCanceledException("Search cancelled"); } Match match = new Match(); String line; while ((line = in.readLine()) != null) { if(numCollected != -1 && numCollected >= maxMatches){ maxReached = true; break; } if (monitor.isCanceled()) { throw new OperationCanceledException("Search cancelled"); } // create regular expressions that can be mathced to check if we have // bad login information RegularExpression loginRe = new RegularExpression("<title>.*login.*</title>.*"); RegularExpression invalidRe = new RegularExpression(".*<title>.*invalid.*password.*</title>.*"); RegularExpression passwordRe = new RegularExpression(".*<title>.*password.*invalid.*</title>.*"); RegularExpression emailRe = new RegularExpression(".*<title>.*check e-mail.*</title>.*"); RegularExpression errorRe = new RegularExpression(".*<title>.*error.*</title>.*"); String lowerLine = line.toLowerCase(); // check if we have anything that suggests bad login info if(loginRe.matches(lowerLine) || invalidRe.matches(lowerLine) || passwordRe.matches(lowerLine) || emailRe.matches(lowerLine) || errorRe.matches(lowerLine)) possibleBadLogin = true; if (reOld.matches(line, match)) { int id = Integer.parseInt(match.getCapturedText(1)); String severity = match.getCapturedText(2); String priority = match.getCapturedText(3); String platform = match.getCapturedText(4); String owner = match.getCapturedText(5); String state = match.getCapturedText(6); String result = match.getCapturedText(7); String description = match.getCapturedText(8); String query = BugzillaPlugin.getMostRecentQuery(); if (query == null) query = ""; String server = BugzillaPlugin.getDefault().getServerName(); BugzillaSearchHit hit = new BugzillaSearchHit(id, description, severity, priority, platform, state, result, owner, query, server); collector.accept(hit); numCollected++; } else if (re.matches(line, match)) { int id = Integer.parseInt(match.getCapturedText(1)); String severity = null; String priority = null; String platform = null; String owner = null; String state = null; String result = null; for (int i = 0; i < 6; i++) { if (monitor.isCanceled()) { throw new OperationCanceledException("Search cancelled"); } do { if (monitor.isCanceled()) { throw new OperationCanceledException("Search cancelled"); } line = in.readLine().trim(); if (line == null) break; line = line.trim(); } while (!reValue.matches(line, match)); switch (i) { case 0: severity = match.getCapturedText(1); break; case 1: priority = match.getCapturedText(1); break; case 2: platform = match.getCapturedText(1); break; case 3: owner = match.getCapturedText(1); break; case 4: state = match.getCapturedText(1); break; case 5: result = match.getCapturedText(1); break; } } // two more line = in.readLine(); line = in.readLine(); String description = line.substring(8); String query = BugzillaPlugin.getMostRecentQuery(); if (query == null) query = ""; String server = BugzillaPlugin.getDefault().getServerName(); BugzillaSearchHit hit = new BugzillaSearchHit(id, description, severity, priority, platform, state, result, owner, query, server); collector.accept(hit); numCollected++; } if (monitor.isCanceled()) { throw new OperationCanceledException("Search cancelled"); } } }catch (CoreException e) { status = new MultiStatus( IBugzillaConstants.PLUGIN_ID, IStatus.ERROR, "Core Exception occurred while querying Bugzilla Server " + BugzillaPlugin.getDefault().getServerName() + ".\n" + "\nClick Details for more information.", e); ((MultiStatus)status).add(e.getStatus()); // write error to log BugzillaPlugin.log(status); } catch (OperationCanceledException e) { status = new Status(IStatus.CANCEL, IBugzillaConstants.PLUGIN_ID, IStatus.CANCEL, "", null); }catch (Exception e) { status = new MultiStatus( IBugzillaConstants.PLUGIN_ID, IStatus.ERROR, e.getClass().toString() + " occurred while querying Bugzilla Server " + BugzillaPlugin.getDefault().getServerName() + ".\n" + "\nClick Details or see log for more information.", e); IStatus s = new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.ERROR, e.getClass().toString() + ": ", e); ((MultiStatus)status).add(s); s = new Status (IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.ERROR, e.getMessage(), e); ((MultiStatus)status).add(s); // write error to log BugzillaPlugin.log(status); } finally { monitor.done(); collector.done(); try{ if(in != null) in.close(); }catch(IOException e) { BugzillaPlugin.log(new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID,IStatus.ERROR,"Problem closing the stream", e)); } } // if we haven't collected any serach results and we suspect a bad login, we assume it was a bad login if(numCollected == 0 && possibleBadLogin) throw new LoginException("Bugzilla login information incorrect"); if(status == null) return new Status(IStatus.OK, NewSearchUI.PLUGIN_ID, IStatus.OK, "", null); else return status; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/1e63af9979b33a828fbdbe1db70b90f45e5dc171/BugzillaSearchEngine.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/search/BugzillaSearchEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1482,
1623,
12,
13450,
637,
15990,
24916,
7134,
8543,
16,
509,
787,
6869,
16,
509,
943,
6869,
13,
1216,
11744,
503,
288,
202,
202,
45,
5491,
7187,
6438,
273,
8543,
18,
588,
5491,
7187,
5621,
202,
202,
45,
1482,
1267,
273,
446,
31,
4697,
202,
6494,
3323,
6434,
5358,
273,
629,
31,
202,
202,
474,
818,
10808,
329,
273,
374,
31,
9506,
202,
17947,
2514,
316,
273,
446,
31,
9506,
202,
698,
288,
1082,
202,
10259,
18,
10086,
2174,
12,
10753,
1360,
67,
4370,
16,
467,
5491,
7187,
18,
14737,
1769,
1082,
202,
21356,
18,
21071,
28939,
12,
1937,
6869,
1769,
1082,
202,
14790,
7599,
92,
273,
16907,
15990,
3773,
18,
588,
1868,
7675,
588,
1489,
1952,
12,
2704,
1976,
12,
718,
780,
10019,
1082,
202,
430,
12,
13085,
92,
422,
446,
747,
401,
12,
13085,
92,
1276,
19084,
3719,
9506,
202,
2463,
446,
31,
1082,
202,
2940,
14790,
3077,
273,
261,
2940,
14790,
13,
7599,
92,
31,
25083,
202,
3612,
18,
3612,
5621,
1082,
202,
474,
20407,
273,
3077,
18,
588,
1064,
1085,
5621,
6862,
6862,
9506,
202,
430,
12,
2740,
1085,
480,
19084,
18,
3693,
67,
3141,
13,
1082,
202,
95,
9506,
202,
780,
1234,
31,
9506,
202,
430,
12,
2740,
1085,
422,
300,
21,
747,
20407,
422,
19084,
18,
3693,
67,
7473,
30198,
13,
6862,
202,
3576,
273,
16907,
15990,
3773,
18,
588,
1868,
7675,
588,
28434,
1435,
397,
315,
1552,
486,
19264,
358,
506,
279,
923,
16907,
15990,
1438,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1482,
1623,
12,
13450,
637,
15990,
24916,
7134,
8543,
16,
509,
787,
6869,
16,
509,
943,
6869,
13,
1216,
11744,
503,
288,
202,
202,
45,
5491,
7187,
6438,
273,
8543,
18,
588,
5491,
7187,
5621,
202,
202,
45,
1482,
1267,
273,
446,
31,
4697,
202,
6494,
3323,
6434,
5358,
273,
629,
31,
202,
202,
474,
818,
10808,
329,
273,
374,
31,
9506,
202,
17947,
2514,
316,
273,
446,
31,
9506,
202,
698,
288,
1082,
202,
10259,
18,
10086,
2174,
12,
10753,
1360,
67,
4370,
16,
467,
5491,
7187,
18,
14737,
1769,
1082,
202,
21356,
18,
21071,
28939,
12,
1937,
6869,
1769,
1082,
202,
14790,
7599,
92,
273,
16907,
15990,
3773,
18,
588,
1868,
7675,
588,
2
] |
return new PilotingRollData(entityId, PilotingRollData.AUTOMATIC_FALL, "Reactor shut down"); | return new PilotingRollData(entityId, PilotingRollData.AUTOMATIC_FAIL, 3, "Reactor shut down"); | public static PilotingRollData getBasePilotingRoll(Game game, int entityId) { final Entity entity = game.getEntity(entityId); PilotingRollData roll; // gyro operational? if (entity.getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_GYRO, Mech.LOC_CT) > 1) { return new PilotingRollData(entityId, PilotingRollData.AUTOMATIC_FALL, "Gyro destroyed"); } // both legs present? if (entity.isLocationDestroyed(Mech.LOC_RLEG) && entity.isLocationDestroyed(Mech.LOC_LLEG)) { return new PilotingRollData(entityId, PilotingRollData.AUTOMATIC_FALL, "Both legs destroyed"); } // entity shut down? if (entity.isShutDown()) { return new PilotingRollData(entityId, PilotingRollData.AUTOMATIC_FALL, "Reactor shut down"); } // pilot awake? if (!entity.getCrew().isActive()) { return new PilotingRollData(entityId, PilotingRollData.AUTOMATIC_FALL, "Pilot unconcious"); } // okay, let's figure out the stuff then roll = new PilotingRollData(entityId, entity.getCrew().getPiloting(), entity.getCrew().getPiloting() + " (Base piloting skill)"); // right leg destroyed? if (entity.isLocationDestroyed(Mech.LOC_RLEG)) { roll.addModifier(5, "Right Leg destroyed"); } else { // check for damaged hip actuators if (entity.getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_HIP, Mech.LOC_RLEG) > 0) { roll.addModifier(2, "Right Hip Actuator destroyed"); } else { // upper leg actuators? if (entity.getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_UPPER_LEG, Mech.LOC_RLEG) > 0) { roll.addModifier(1, "Right Upper Leg Actuator destroyed"); } // lower leg actuators? if (entity.getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_LOWER_LEG, Mech.LOC_RLEG) > 0) { roll.addModifier(1, "Right Lower Leg Actuator destroyed"); } // foot actuators? if (entity.getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_FOOT, Mech.LOC_RLEG) > 0) { roll.addModifier(1, "Right Foot Actuator destroyed"); } } } // left leg destroyed? if (entity.isLocationDestroyed(Mech.LOC_LLEG)) { roll.addModifier(5, "Left Leg destroyed"); } else { // check for damaged hip actuators if (entity.getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_HIP, Mech.LOC_LLEG) > 0) { roll.addModifier(2, "Left Hip Actuator destroyed"); } else { // upper leg actuators? if (entity.getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_UPPER_LEG, Mech.LOC_LLEG) > 0) { roll.addModifier(1, "Left Upper Leg Actuator destroyed"); } // lower leg actuators? if (entity.getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_LOWER_LEG, Mech.LOC_LLEG) > 0) { roll.addModifier(1, "Left Lower Leg Actuator destroyed"); } // foot actuators? if (entity.getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_FOOT, Mech.LOC_LLEG) > 0) { roll.addModifier(1, "Left Foot Actuator destroyed"); } } } // gyro hit? if (entity.getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_GYRO, Mech.LOC_CT) > 0) { roll.addModifier(3, "Gyro damaged"); } return roll; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/f340b41dabf91648804a0e5f5fa08a9d9eaadc4f/Compute.java/clean/megamek/src/megamek/common/Compute.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
453,
330,
17128,
24194,
751,
8297,
52,
330,
17128,
24194,
12,
12496,
7920,
16,
509,
15052,
13,
288,
3639,
727,
3887,
1522,
273,
7920,
18,
588,
1943,
12,
1096,
548,
1769,
7734,
453,
330,
17128,
24194,
751,
5824,
31,
7734,
368,
25295,
303,
1674,
287,
35,
3639,
309,
261,
1096,
18,
588,
28414,
39,
583,
335,
1031,
12,
30286,
8764,
18,
2399,
67,
14318,
16,
7499,
343,
18,
14318,
67,
20564,
1457,
16,
7499,
343,
18,
29450,
67,
1268,
13,
405,
404,
13,
288,
5411,
327,
394,
453,
330,
17128,
24194,
751,
12,
1096,
548,
16,
453,
330,
17128,
24194,
751,
18,
37,
1693,
1872,
11781,
67,
42,
4685,
16,
315,
43,
93,
303,
17689,
8863,
3639,
289,
3639,
368,
3937,
884,
564,
3430,
35,
3639,
309,
261,
1096,
18,
291,
2735,
28414,
12,
4667,
343,
18,
29450,
67,
54,
19384,
13,
597,
1522,
18,
291,
2735,
28414,
12,
4667,
343,
18,
29450,
67,
48,
19384,
3719,
288,
5411,
327,
394,
453,
330,
17128,
24194,
751,
12,
1096,
548,
16,
453,
330,
17128,
24194,
751,
18,
37,
1693,
1872,
11781,
67,
42,
4685,
16,
315,
20240,
884,
564,
17689,
8863,
3639,
289,
3639,
368,
1522,
9171,
2588,
35,
3639,
309,
261,
1096,
18,
291,
1555,
322,
4164,
10756,
288,
5411,
327,
394,
453,
330,
17128,
24194,
751,
12,
1096,
548,
16,
453,
330,
17128,
24194,
751,
18,
37,
1693,
1872,
11781,
67,
12319,
16,
890,
16,
315,
426,
3362,
9171,
2588,
8863,
3639,
289,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
453,
330,
17128,
24194,
751,
8297,
52,
330,
17128,
24194,
12,
12496,
7920,
16,
509,
15052,
13,
288,
3639,
727,
3887,
1522,
273,
7920,
18,
588,
1943,
12,
1096,
548,
1769,
7734,
453,
330,
17128,
24194,
751,
5824,
31,
7734,
368,
25295,
303,
1674,
287,
35,
3639,
309,
261,
1096,
18,
588,
28414,
39,
583,
335,
1031,
12,
30286,
8764,
18,
2399,
67,
14318,
16,
7499,
343,
18,
14318,
67,
20564,
1457,
16,
7499,
343,
18,
29450,
67,
1268,
13,
405,
404,
13,
288,
5411,
327,
394,
453,
330,
17128,
24194,
751,
12,
1096,
548,
16,
453,
330,
17128,
24194,
751,
18,
37,
1693,
1872,
11781,
67,
42,
4685,
16,
315,
43,
93,
303,
17689,
8863,
2
] |
.getLayoutData( ) ).widthHint = 200; | .getLayoutData( ) ).widthHint = 170; | protected void adjustGridLayout( ) { super.adjustGridLayout( ); ( (GridData) name.getComboBoxControl( getFieldEditorParent( ) ) .getLayoutData( ) ).widthHint = 200; ( (GridData) style.getComboBoxControl( getFieldEditorParent( ) ) .getLayoutData( ) ).widthHint = 200; ( (GridData) weight.getComboBoxControl( getFieldEditorParent( ) ) .getLayoutData( ) ).widthHint = 200; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/a42d8fcc35ba06ef689c1612ca202a8ab1ca49a2/FontPreferencePage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FontPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
5765,
6313,
3744,
12,
262,
202,
95,
202,
202,
9565,
18,
13362,
6313,
3744,
12,
11272,
202,
202,
12,
261,
6313,
751,
13,
508,
18,
588,
22199,
3367,
12,
5031,
6946,
3054,
12,
262,
262,
9506,
202,
18,
588,
3744,
751,
12,
262,
262,
18,
2819,
7002,
273,
4044,
31,
202,
202,
12,
261,
6313,
751,
13,
2154,
18,
588,
22199,
3367,
12,
5031,
6946,
3054,
12,
262,
262,
9506,
202,
18,
588,
3744,
751,
12,
262,
262,
18,
2819,
7002,
273,
4044,
31,
202,
202,
12,
261,
6313,
751,
13,
3119,
18,
588,
22199,
3367,
12,
5031,
6946,
3054,
12,
262,
262,
9506,
202,
18,
588,
3744,
751,
12,
262,
262,
18,
2819,
7002,
273,
4044,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
5765,
6313,
3744,
12,
262,
202,
95,
202,
202,
9565,
18,
13362,
6313,
3744,
12,
11272,
202,
202,
12,
261,
6313,
751,
13,
508,
18,
588,
22199,
3367,
12,
5031,
6946,
3054,
12,
262,
262,
9506,
202,
18,
588,
3744,
751,
12,
262,
262,
18,
2819,
7002,
273,
4044,
31,
202,
202,
12,
261,
6313,
751,
13,
2154,
18,
588,
22199,
3367,
12,
5031,
6946,
3054,
12,
262,
262,
9506,
202,
18,
588,
3744,
751,
12,
262,
262,
18,
2819,
7002,
273,
4044,
31,
202,
202,
12,
261,
6313,
751,
13,
3119,
18,
588,
22199,
3367,
12,
5031,
6946,
3054,
12,
262,
262,
9506,
202,
18,
588,
3744,
751,
12,
262,
262,
18,
2819,
7002,
2
] |
if (selection == null) { selection = StructuredSelection.EMPTY; } | if (selection == null) { selection = StructuredSelection.EMPTY; } | public boolean isEnabledForSelection(ISelection selection) { // Optimize it. if (mode == UNKNOWN) { return false; } // Handle undefined selections. if (selection == null) { selection = StructuredSelection.EMPTY; } // According to the dictionary, a selection is "one that // is selected", or "a collection of selected things". // In reflection of this, we deal with one or a collection. // special case: structured selections if (selection instanceof IStructuredSelection) { return isEnabledFor((IStructuredSelection) selection); } // special case: text selections // Code should read // if (selection instanceof ITextSelection) { // int count = ((ITextSelection) selection).getLength(); // return isEnabledFor(selection, count); // } // use Java reflection to avoid dependence of org.eclipse.jface.text // which is in an optional part of the generic workbench Class tselClass = getTextSelectionClass(); if (tselClass != null && tselClass.isInstance(selection)) { try { Method m = tselClass.getDeclaredMethod( "getLength", new Class[0]); //$NON-NLS-1$ Object r = m.invoke(selection, new Object[0]); if (r instanceof Integer) { return isEnabledFor(selection, ((Integer) r).intValue()); } // should not happen - but enable if it does return true; } catch (NoSuchMethodException e) { // should not happen - fall through if it does } catch (IllegalAccessException e) { // should not happen - fall through if it does } catch (InvocationTargetException e) { // should not happen - fall through if it does } } // all other cases return isEnabledFor(selection); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/5cfb5f88a049bbc9efcf0fade7d5687d0ec50ed3/SelectionEnabler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SelectionEnabler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
12047,
1290,
6233,
12,
45,
6233,
4421,
13,
288,
3639,
368,
12056,
10153,
518,
18,
3639,
309,
261,
3188,
422,
13598,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
368,
5004,
3109,
21738,
18,
202,
3639,
309,
261,
10705,
422,
446,
13,
288,
5411,
4421,
273,
7362,
2862,
6233,
18,
13625,
31,
3639,
289,
3639,
368,
12848,
4643,
358,
326,
3880,
16,
279,
4421,
353,
315,
476,
716,
3639,
368,
353,
3170,
3113,
578,
315,
69,
1849,
434,
3170,
9198,
9654,
1850,
368,
657,
5463,
434,
333,
16,
732,
10490,
598,
1245,
578,
279,
1849,
18,
3639,
368,
4582,
648,
30,
19788,
21738,
3639,
309,
261,
10705,
1276,
467,
30733,
6233,
13,
288,
5411,
327,
12047,
1290,
12443,
45,
30733,
6233,
13,
4421,
1769,
3639,
289,
3639,
368,
4582,
648,
30,
977,
21738,
3639,
368,
3356,
1410,
855,
3639,
368,
309,
261,
10705,
1276,
467,
1528,
6233,
13,
288,
3639,
368,
565,
509,
1056,
273,
14015,
1285,
408,
6233,
13,
4421,
2934,
588,
1782,
5621,
3639,
368,
565,
327,
12047,
1290,
12,
10705,
16,
1056,
1769,
3639,
368,
289,
3639,
368,
999,
5110,
5463,
358,
4543,
2447,
802,
434,
2358,
18,
20416,
18,
78,
865,
18,
955,
3639,
368,
1492,
353,
316,
392,
3129,
1087,
434,
326,
5210,
1440,
22144,
3639,
1659,
268,
1786,
797,
273,
6701,
6233,
797,
5621,
3639,
309,
261,
88,
1786,
797,
480,
446,
597,
268,
1786,
797,
18,
291,
1442,
12,
10705,
3719,
288,
5411,
775,
288,
7734,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
12047,
1290,
6233,
12,
45,
6233,
4421,
13,
288,
3639,
368,
12056,
10153,
518,
18,
3639,
309,
261,
3188,
422,
13598,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
368,
5004,
3109,
21738,
18,
202,
3639,
309,
261,
10705,
422,
446,
13,
288,
5411,
4421,
273,
7362,
2862,
6233,
18,
13625,
31,
3639,
289,
3639,
368,
12848,
4643,
358,
326,
3880,
16,
279,
4421,
353,
315,
476,
716,
3639,
368,
353,
3170,
3113,
578,
315,
69,
1849,
434,
3170,
9198,
9654,
1850,
368,
657,
5463,
434,
333,
16,
732,
10490,
598,
1245,
578,
279,
1849,
18,
3639,
368,
4582,
648,
30,
19788,
21738,
3639,
309,
261,
10705,
1276,
467,
30733,
6233,
13,
288,
5411,
327,
2
] |
((WorkbenchPage) pages[k]).closePerspective(desc, true); | pages[k].closePerspective(desc, true, true); | private void stopPerspective(IExtension ext) { IPerspectiveRegistry pReg = WorkbenchPlugin.getDefault() .getPerspectiveRegistry(); IConfigurationElement[] elements = ext.getConfigurationElements(); for (int i = 0; i < elements.length; i++) { if (!elements[i].getName().equals( IWorkbenchConstants.TAG_PERSPECTIVE)) continue; String id = elements[i].getAttribute(IWorkbenchConstants.TAG_ID); if (id == null) continue; IPerspectiveDescriptor desc = pReg.findPerspectiveWithId(id); if (desc == null) continue; ((PerspectiveRegistry) pReg).deletePerspective(desc); IWorkbenchWindow[] windows = workbench.getWorkbenchWindows(); for (int j = 0; j < windows.length; j++) { WorkbenchWindow window = (WorkbenchWindow) windows[j]; IWorkbenchPage[] pages = window.getPages(); for (int k = 0; k < pages.length; k++) { Perspective persp = ((WorkbenchPage) pages[k]) .findPerspective(desc); if (persp == null) return; ((WorkbenchPage) pages[k]).closePerspective(desc, true); } } } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/0b575d3fd8a606ede9fefedd40c7d4e72d4f2a84/ExtensionEventHandler.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ExtensionEventHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2132,
14781,
16772,
12,
45,
3625,
1110,
13,
288,
3639,
2971,
414,
16772,
4243,
293,
1617,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
7734,
263,
588,
14781,
16772,
4243,
5621,
3639,
467,
1750,
1046,
8526,
2186,
273,
1110,
18,
588,
1750,
3471,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2186,
18,
2469,
31,
277,
27245,
288,
5411,
309,
16051,
6274,
63,
77,
8009,
17994,
7675,
14963,
12,
10792,
467,
2421,
22144,
2918,
18,
7927,
67,
3194,
23810,
1268,
5354,
3719,
7734,
1324,
31,
5411,
514,
612,
273,
2186,
63,
77,
8009,
588,
1499,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
734,
1769,
5411,
309,
261,
350,
422,
446,
13,
7734,
1324,
31,
5411,
2971,
414,
16772,
3187,
3044,
273,
293,
1617,
18,
4720,
14781,
16772,
1190,
548,
12,
350,
1769,
5411,
309,
261,
5569,
422,
446,
13,
7734,
1324,
31,
5411,
14015,
14781,
16772,
4243,
13,
293,
1617,
2934,
3733,
14781,
16772,
12,
5569,
1769,
5411,
467,
2421,
22144,
3829,
8526,
9965,
273,
1440,
22144,
18,
588,
2421,
22144,
10399,
5621,
5411,
364,
261,
474,
525,
273,
374,
31,
525,
411,
9965,
18,
2469,
31,
525,
27245,
288,
7734,
4147,
22144,
3829,
2742,
273,
261,
2421,
22144,
3829,
13,
9965,
63,
78,
15533,
7734,
467,
2421,
22144,
1964,
8526,
4689,
273,
2742,
18,
588,
5716,
5621,
7734,
364,
261,
474,
417,
273,
374,
31,
417,
411,
4689,
18,
2469,
31,
417,
27245,
288,
10792,
453,
414,
16772,
13508,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2132,
14781,
16772,
12,
45,
3625,
1110,
13,
288,
3639,
2971,
414,
16772,
4243,
293,
1617,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
7734,
263,
588,
14781,
16772,
4243,
5621,
3639,
467,
1750,
1046,
8526,
2186,
273,
1110,
18,
588,
1750,
3471,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2186,
18,
2469,
31,
277,
27245,
288,
5411,
309,
16051,
6274,
63,
77,
8009,
17994,
7675,
14963,
12,
10792,
467,
2421,
22144,
2918,
18,
7927,
67,
3194,
23810,
1268,
5354,
3719,
7734,
1324,
31,
5411,
514,
612,
273,
2186,
63,
77,
8009,
588,
1499,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
734,
1769,
5411,
309,
261,
350,
422,
446,
13,
7734,
2
] |
IASTField bmember = (IASTField) i.next(); IASTField amember = (IASTField) i.next(); | assertTrue( i.next() instanceof IASTField ); assertTrue( i.next() instanceof IASTField ); assertFalse( i.hasNext() ); | public void testCompletionWithTemplateInstanceAsParent() throws Exception { StringWriter writer = new StringWriter(); writer.write( "template < class T > class A { public : int a_member; }; "); writer.write( "template < class T > class B : public A< T > { public : int b_member; }; "); writer.write( "void f() { "); writer.write( " B< int > b; "); writer.write( " b.SP "); String code = writer.toString(); IASTCompletionNode node = parse( code, code.indexOf( "SP" ) ); ILookupResult result = node.getCompletionScope().lookup( "", new IASTNode.LookupKind[]{ IASTNode.LookupKind.ALL }, node.getCompletionContext() ); assertEquals( result.getResultsSize(), 2 ); Iterator i = result.getNodes(); IASTField bmember = (IASTField) i.next(); IASTField amember = (IASTField) i.next(); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1ac6f78fc30a911df26182609731ef0e6503fd2a/CompletionParseTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompletionParseTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11238,
1190,
30302,
1463,
3054,
1435,
1216,
1185,
202,
95,
202,
202,
780,
2289,
2633,
273,
394,
17436,
5621,
202,
202,
6299,
18,
2626,
12,
315,
3202,
411,
667,
399,
405,
667,
432,
288,
1071,
294,
509,
279,
67,
5990,
31,
289,
31,
315,
1769,
202,
202,
6299,
18,
2626,
12,
315,
3202,
411,
667,
399,
405,
667,
605,
294,
1071,
432,
32,
399,
405,
288,
1071,
294,
509,
324,
67,
5990,
31,
289,
31,
315,
1769,
202,
202,
6299,
18,
2626,
12,
315,
6459,
284,
1435,
288,
315,
1769,
202,
202,
6299,
18,
2626,
12,
315,
282,
605,
32,
509,
405,
324,
31,
315,
1769,
202,
202,
6299,
18,
2626,
12,
315,
282,
324,
18,
3118,
315,
1769,
9506,
202,
780,
981,
273,
2633,
18,
10492,
5621,
202,
202,
45,
9053,
11238,
907,
756,
273,
1109,
12,
981,
16,
981,
18,
31806,
12,
315,
3118,
6,
262,
11272,
9506,
202,
2627,
4909,
1253,
563,
273,
756,
18,
588,
11238,
3876,
7675,
8664,
12,
23453,
4405,
4766,
1171,
394,
467,
9053,
907,
18,
6609,
5677,
63,
7073,
467,
9053,
907,
18,
6609,
5677,
18,
4685,
19879,
17322,
6862,
6862,
756,
18,
588,
11238,
1042,
1435,
11272,
202,
202,
11231,
8867,
12,
563,
18,
588,
3447,
1225,
9334,
576,
11272,
9506,
202,
3198,
277,
273,
563,
18,
588,
3205,
5621,
9506,
202,
45,
9053,
974,
324,
5990,
273,
261,
45,
9053,
974,
13,
277,
18,
4285,
5621,
202,
202,
45,
9053,
974,
2125,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11238,
1190,
30302,
1463,
3054,
1435,
1216,
1185,
202,
95,
202,
202,
780,
2289,
2633,
273,
394,
17436,
5621,
202,
202,
6299,
18,
2626,
12,
315,
3202,
411,
667,
399,
405,
667,
432,
288,
1071,
294,
509,
279,
67,
5990,
31,
289,
31,
315,
1769,
202,
202,
6299,
18,
2626,
12,
315,
3202,
411,
667,
399,
405,
667,
605,
294,
1071,
432,
32,
399,
405,
288,
1071,
294,
509,
324,
67,
5990,
31,
289,
31,
315,
1769,
202,
202,
6299,
18,
2626,
12,
315,
6459,
284,
1435,
288,
315,
1769,
202,
202,
6299,
18,
2626,
12,
315,
282,
605,
32,
509,
405,
324,
31,
315,
1769,
202,
202,
6299,
18,
2626,
12,
315,
282,
2
] |
AbstractExpression expr = (AbstractExpression)iter.next(); if (expr.isEnabledFor(obj)) | AbstractExpression expr = (AbstractExpression) iter.next(); if (expr.isEnabledFor(object)) | public boolean isEnabledFor(Object obj) { Iterator iter = list.iterator(); while (iter.hasNext()) { AbstractExpression expr = (AbstractExpression)iter.next(); if (expr.isEnabledFor(obj)) return true; } return false; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/5a7207e86843def9001d641c82b7f76fd7c9d57f/ActionExpression.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActionExpression.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
12047,
1290,
12,
921,
1081,
13,
288,
1082,
202,
3198,
1400,
273,
666,
18,
9838,
5621,
1082,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
9506,
202,
7469,
2300,
3065,
273,
261,
7469,
2300,
13,
2165,
18,
4285,
5621,
9506,
202,
430,
261,
8638,
18,
291,
1526,
1290,
12,
2603,
3719,
6862,
202,
2463,
638,
31,
1082,
202,
97,
1082,
202,
2463,
629,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
2300,
3065,
273,
261,
7469,
2300,
13,
2165,
18,
4285,
5621,
9506,
202,
430,
261,
8638,
18,
291,
1526,
1290,
12,
2603,
3719,
6862,
202,
2463,
638,
31,
1082,
202,
97,
1082,
202,
2463,
629,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
printALine("2Normal:" + s + "\n"); | printALine("2Normal:" + s); | public void printTwoNormal(int i, String s, String s1) throws JposException { printALine("2Normal:" + s + "\n"); } | 45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/39eebfffd52c928663817a257e5dc654d517f368/NullPosPrinter.java/buggy/applications/pos/src/org/ofbiz/pos/jpos/service/NullPosPrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1172,
11710,
5506,
12,
474,
277,
16,
514,
272,
16,
514,
272,
21,
13,
1216,
804,
917,
503,
288,
3639,
1172,
1013,
558,
2932,
22,
5506,
2773,
397,
272,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1172,
11710,
5506,
12,
474,
277,
16,
514,
272,
16,
514,
272,
21,
13,
1216,
804,
917,
503,
288,
3639,
1172,
1013,
558,
2932,
22,
5506,
2773,
397,
272,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return ((Float) Support.convert(this, data.getValue(), java.sql.Types.FLOAT, null)).floatValue(); | return ((Double) Support.convert(this, data.getValue(), java.sql.Types.FLOAT, null)).floatValue(); | public float getFloat(int columnIndex) throws SQLException { ColData data = getColumn(columnIndex); return ((Float) Support.convert(this, data.getValue(), java.sql.Types.FLOAT, null)).floatValue(); } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/9ae12557f46f75ad625959c50a737311830f5314/JtdsResultSet.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/JtdsResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1431,
28276,
12,
474,
14882,
13,
1216,
6483,
288,
3639,
1558,
751,
501,
273,
6716,
12,
2827,
1016,
1769,
3639,
327,
14015,
5265,
13,
13619,
18,
6283,
12,
2211,
16,
501,
18,
24805,
9334,
2252,
18,
4669,
18,
2016,
18,
15640,
16,
446,
13,
2934,
5659,
620,
5621,
565,
289,
2,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1431,
28276,
12,
474,
14882,
13,
1216,
6483,
288,
3639,
1558,
751,
501,
273,
6716,
12,
2827,
1016,
1769,
3639,
327,
14015,
5265,
13,
13619,
18,
6283,
12,
2211,
16,
501,
18,
24805,
9334,
2252,
18,
4669,
18,
2016,
18,
15640,
16,
446,
13,
2934,
5659,
620,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case XMLStreamReader.ATTRIBUTE: throw new AssertionError("NAKED ATTRIBUTE UNIMPLEMENTED"); | case XMLStreamReader.ATTRIBUTE: throw new AssertionError("NAKED ATTRIBUTE UNIMPLEMENTED"); | static void advanceToFirstItemOfInterest(XMLStreamReader rdr) throws XMLStreamException { for (int state = rdr.getEventType(); rdr.hasNext(); state = rdr.next()) { switch (state) { case XMLStreamReader.START_ELEMENT: return; case XMLStreamReader.END_ELEMENT: throw new XmlRuntimeException("unexpected end of XML"); case XMLStreamReader.PROCESSING_INSTRUCTION: break; case XMLStreamReader.CHARACTERS: if (rdr.isWhiteSpace()) break; throw new AssertionError("NAKED CHARDATA UNIMPLEMENTED"); case XMLStreamReader.COMMENT: case XMLStreamReader.SPACE: case XMLStreamReader.START_DOCUMENT: break; case XMLStreamReader.END_DOCUMENT: throw new XmlRuntimeException("unexpected end of XML"); case XMLStreamReader.ENTITY_REFERENCE: break; case XMLStreamReader.ATTRIBUTE: throw new AssertionError("NAKED ATTRIBUTE UNIMPLEMENTED"); case XMLStreamReader.DTD: case XMLStreamReader.CDATA: case XMLStreamReader.NAMESPACE: case XMLStreamReader.NOTATION_DECLARATION: case XMLStreamReader.ENTITY_DECLARATION: break; default: throw new XmlRuntimeException("unexpected xml state:" + state + "in" + rdr); } } throw new XmlRuntimeException("unexpected end of xml stream"); } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/0ba682709a30583d8f10dc9441130ea815207504/MarshalStreamUtils.java/buggy/v2/src/marshal/org/apache/xmlbeans/impl/marshal/MarshalStreamUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
8312,
774,
3759,
1180,
951,
29281,
12,
4201,
31495,
436,
3069,
13,
3639,
1216,
21526,
565,
288,
3639,
364,
261,
474,
919,
273,
436,
3069,
18,
588,
16346,
5621,
436,
3069,
18,
5332,
2134,
5621,
919,
273,
436,
3069,
18,
4285,
10756,
288,
5411,
1620,
261,
2019,
13,
288,
7734,
648,
15595,
2514,
18,
7570,
67,
10976,
30,
10792,
327,
31,
7734,
648,
15595,
2514,
18,
4415,
67,
10976,
30,
10792,
604,
394,
5714,
11949,
2932,
21248,
679,
434,
3167,
8863,
7734,
648,
15595,
2514,
18,
16560,
1360,
67,
706,
3902,
27035,
30,
10792,
898,
31,
7734,
648,
15595,
2514,
18,
7305,
6526,
11367,
30,
10792,
309,
261,
86,
3069,
18,
291,
23108,
10756,
898,
31,
10792,
604,
394,
12068,
2932,
11277,
47,
2056,
12090,
4883,
5019,
9883,
28485,
6404,
8863,
7734,
648,
15595,
2514,
18,
12200,
30,
7734,
648,
15595,
2514,
18,
6616,
30,
7734,
648,
15595,
2514,
18,
7570,
67,
18450,
30,
10792,
898,
31,
7734,
648,
15595,
2514,
18,
4415,
67,
18450,
30,
10792,
604,
394,
5714,
11949,
2932,
21248,
679,
434,
3167,
8863,
7734,
648,
15595,
2514,
18,
11101,
67,
14617,
30,
10792,
898,
31,
7734,
648,
15595,
2514,
18,
11616,
30,
10792,
604,
394,
12068,
2932,
11277,
47,
2056,
15941,
5019,
9883,
28485,
6404,
8863,
7734,
648,
15595,
2514,
18,
25728,
30,
7734,
648,
15595,
2514,
18,
18375,
30,
7734,
648,
15595,
2514,
18,
11368,
30,
7734,
648,
15595,
2514,
18,
4400,
2689,
67,
23956,
985,
2689,
30,
7734,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
8312,
774,
3759,
1180,
951,
29281,
12,
4201,
31495,
436,
3069,
13,
3639,
1216,
21526,
565,
288,
3639,
364,
261,
474,
919,
273,
436,
3069,
18,
588,
16346,
5621,
436,
3069,
18,
5332,
2134,
5621,
919,
273,
436,
3069,
18,
4285,
10756,
288,
5411,
1620,
261,
2019,
13,
288,
7734,
648,
15595,
2514,
18,
7570,
67,
10976,
30,
10792,
327,
31,
7734,
648,
15595,
2514,
18,
4415,
67,
10976,
30,
10792,
604,
394,
5714,
11949,
2932,
21248,
679,
434,
3167,
8863,
7734,
648,
15595,
2514,
18,
16560,
1360,
67,
706,
3902,
27035,
30,
10792,
898,
31,
7734,
648,
15595,
2514,
18,
7305,
6526,
11367,
30,
10792,
309,
261,
86,
3069,
18,
291,
23108,
10756,
898,
31,
2
] |
Subsets and Splits