rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
return super.getPermissions(cs); }
|
PermissionCollection permissions = super.getPermissions(cs); Enumeration enum = permissions.elements(); while (enum.hasMoreElements()) { Main.debug(this + " Permission: " + enum.nextElement()); }
|
protected PermissionCollection getPermissions(CodeSource cs) { Main.debug(dbgID + " getPermissions(" + cs + ")"); return super.getPermissions(cs); }
|
45545 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45545/397ccd4b913f7bee55cbf0bc78c6405a5b64556e/KJASAppletClassLoader.java/clean/khtml/java/org/kde/kjas/server/KJASAppletClassLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
8509,
2532,
25021,
12,
1085,
1830,
2873,
13,
288,
3639,
12740,
18,
4148,
12,
1966,
75,
734,
397,
315,
25021,
2932,
397,
2873,
397,
7310,
1769,
3639,
327,
2240,
18,
588,
6521,
12,
2143,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8509,
2532,
25021,
12,
1085,
1830,
2873,
13,
288,
3639,
12740,
18,
4148,
12,
1966,
75,
734,
397,
315,
25021,
2932,
397,
2873,
397,
7310,
1769,
3639,
327,
2240,
18,
588,
6521,
12,
2143,
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
] |
if (additionalEntries == 0) {
|
if (toAdd == 0) {
|
private void computeDisplay() { final int level = constr.level; final int[] displayCode = constr.displayCode; ScalaClassType[] parents = getParents(); display = new ScalaClassType[level + 1][]; ScalaClassType[][] superClassDisplay = constr.inheritsFromJavaClass ? EMPTY_DISPLAY : parents[0].getDisplay(); for (int l = 0, dci = 0; l <= level; ++l) { int additionalEntries = displayCode[dci++]; ScalaClassType[] initialRow; if (l < superClassDisplay.length) initialRow = superClassDisplay[l]; else if (l == level) initialRow = new ScalaClassType[] { this }; else initialRow = EMPTY_DISPLAY_ROW; if (additionalEntries == 0) { display[l] = initialRow; } else { int superLen = initialRow.length; ScalaClassType[] newRow = new ScalaClassType[superLen + additionalEntries]; System.arraycopy(initialRow, 0, newRow, 0, superLen); for (int i = 0; i < additionalEntries; ++i) { int p = displayCode[dci++]; int o = displayCode[dci++]; newRow[superLen + i] = parents[p].getDisplay()[l][o]; } display[l] = newRow; } } }
|
48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/3620f945d10ebb12213163dbfeef9eb547ae201b/ScalaClassType.java/clean/sources/scala/runtime/types/ScalaClassType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3671,
4236,
1435,
288,
3639,
727,
509,
1801,
273,
14472,
18,
2815,
31,
3639,
727,
509,
8526,
2562,
1085,
273,
14472,
18,
5417,
1085,
31,
3639,
348,
771,
69,
18328,
8526,
6298,
273,
5089,
87,
5621,
3639,
2562,
273,
394,
348,
771,
69,
18328,
63,
2815,
397,
404,
6362,
15533,
3639,
348,
771,
69,
18328,
63,
6362,
65,
18846,
4236,
273,
14472,
18,
267,
20038,
1265,
5852,
797,
5411,
692,
8984,
67,
17463,
5411,
294,
6298,
63,
20,
8009,
588,
4236,
5621,
3639,
364,
261,
474,
328,
273,
374,
16,
6744,
77,
273,
374,
31,
328,
1648,
1801,
31,
965,
80,
13,
288,
5411,
509,
3312,
5400,
273,
2562,
1085,
63,
7201,
77,
9904,
15533,
5411,
348,
771,
69,
18328,
8526,
2172,
1999,
31,
5411,
309,
261,
80,
411,
18846,
4236,
18,
2469,
13,
7734,
2172,
1999,
273,
18846,
4236,
63,
80,
15533,
5411,
469,
309,
261,
80,
422,
1801,
13,
7734,
2172,
1999,
273,
394,
348,
771,
69,
18328,
8526,
288,
333,
289,
31,
5411,
469,
7734,
2172,
1999,
273,
8984,
67,
17463,
67,
11226,
31,
5411,
309,
261,
869,
986,
422,
374,
13,
288,
7734,
2562,
63,
80,
65,
273,
2172,
1999,
31,
5411,
289,
469,
288,
7734,
509,
2240,
2891,
273,
2172,
1999,
18,
2469,
31,
7734,
348,
771,
69,
18328,
8526,
27805,
273,
10792,
394,
348,
771,
69,
18328,
63,
9565,
2891,
397,
3312,
5400,
15533,
7734,
2332,
18,
1126,
3530,
12,
6769,
1999,
16,
374,
16,
27805,
16,
374,
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,
3671,
4236,
1435,
288,
3639,
727,
509,
1801,
273,
14472,
18,
2815,
31,
3639,
727,
509,
8526,
2562,
1085,
273,
14472,
18,
5417,
1085,
31,
3639,
348,
771,
69,
18328,
8526,
6298,
273,
5089,
87,
5621,
3639,
2562,
273,
394,
348,
771,
69,
18328,
63,
2815,
397,
404,
6362,
15533,
3639,
348,
771,
69,
18328,
63,
6362,
65,
18846,
4236,
273,
14472,
18,
267,
20038,
1265,
5852,
797,
5411,
692,
8984,
67,
17463,
5411,
294,
6298,
63,
20,
8009,
588,
4236,
5621,
3639,
364,
261,
474,
328,
273,
374,
16,
6744,
77,
273,
374,
31,
328,
1648,
1801,
31,
965,
80,
13,
288,
5411,
509,
3312,
5400,
273,
2562,
1085,
63,
7201,
77,
9904,
15533,
5411,
2
] |
if (planes.getChar(end -1) != '-')
|
if (planes.getChar(end - 1) != '-')
|
private void rightAdjustField(char fill) { int end = endOfField(false); // get the ending position of the first // non blank character in field // get the number of characters to the right int count = screenFields.getCurrentField().endPos() - end; // subtract 1 from count for signed numeric - note for later if (screenFields.getCurrentField().isSignedNumeric()) { if (planes.getChar(end -1) != '-') count--; } int pos = screenFields.getCurrentField().startPos(); while (count-- >= 0) { shiftRight(pos); planes.setChar(pos,fill); setDirty(pos); } }
|
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/caf3d80f5859ebce4d72dbe0ddd1d32b417462c4/Screen5250.java/clean/src/org/tn5250j/framework/tn5250/Screen5250.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2145,
10952,
974,
12,
3001,
3636,
13,
288,
202,
202,
474,
679,
273,
20706,
974,
12,
5743,
1769,
368,
336,
326,
11463,
1754,
434,
326,
1122,
202,
202,
759,
1661,
7052,
3351,
316,
652,
202,
202,
759,
336,
326,
1300,
434,
3949,
358,
326,
2145,
202,
202,
474,
1056,
273,
5518,
2314,
18,
588,
3935,
974,
7675,
409,
1616,
1435,
300,
679,
31,
202,
202,
759,
10418,
404,
628,
1056,
364,
6726,
6389,
300,
4721,
364,
5137,
202,
202,
430,
261,
9252,
2314,
18,
588,
3935,
974,
7675,
291,
12294,
9902,
10756,
288,
1082,
202,
430,
261,
7088,
281,
18,
588,
2156,
12,
409,
300,
21,
13,
480,
4014,
13,
9506,
202,
1883,
413,
31,
202,
202,
97,
202,
202,
474,
949,
273,
5518,
2314,
18,
588,
3935,
974,
7675,
1937,
1616,
5621,
202,
202,
17523,
261,
1883,
413,
1545,
374,
13,
288,
1082,
202,
4012,
4726,
12,
917,
1769,
540,
31634,
18,
542,
2156,
12,
917,
16,
5935,
1769,
1082,
202,
542,
10785,
12,
917,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2145,
10952,
974,
12,
3001,
3636,
13,
288,
202,
202,
474,
679,
273,
20706,
974,
12,
5743,
1769,
368,
336,
326,
11463,
1754,
434,
326,
1122,
202,
202,
759,
1661,
7052,
3351,
316,
652,
202,
202,
759,
336,
326,
1300,
434,
3949,
358,
326,
2145,
202,
202,
474,
1056,
273,
5518,
2314,
18,
588,
3935,
974,
7675,
409,
1616,
1435,
300,
679,
31,
202,
202,
759,
10418,
404,
628,
1056,
364,
6726,
6389,
300,
4721,
364,
5137,
202,
202,
430,
261,
9252,
2314,
18,
588,
3935,
974,
7675,
291,
12294,
9902,
10756,
288,
1082,
202,
430,
261,
7088,
281,
18,
588,
2156,
12,
409,
300,
21,
13,
480,
4014,
13,
9506,
202,
1883,
413,
31,
2
] |
boolean stopProcessing = false; if (descriptor.getResponseRouter() != null) { stopProcessing = descriptor.getResponseRouter().isStopProcessing(); } else { stopProcessing = event.isStopFurtherProcessing(); }
|
boolean stopProcessing = !descriptor.getOutboundRouter().hasEndpoints();
|
public Object onCall(UMOEvent event) throws UMOException { Object result = null; try { // Check for method override Object methodOverride = event.removeProperty(MuleProperties.MULE_METHOD_PROPERTY); Method method = null; if (methodOverride instanceof Method) { method = (Method) methodOverride; } else if (methodOverride != null) { method = ClassHelper.getMethod(methodOverride.toString(), component.getClass()); } // Invoke method result = entryPoint.invoke(component, RequestContext.getEventContext(), method); UMOMessage resultMessage = null; if (result == null && entryPoint.isVoid()) { resultMessage = new MuleMessage(event.getTransformedMessage(), event.getProperties()); } else if (result != null) { if (result instanceof UMOMessage) { resultMessage = (UMOMessage) result; } else { resultMessage = new MuleMessage(result, event.getProperties()); } } boolean stopProcessing = false; if (descriptor.getResponseRouter() != null) { stopProcessing = descriptor.getResponseRouter().isStopProcessing(); } else { stopProcessing = event.isStopFurtherProcessing(); } // Need to find a cleaner solution for handling response messages // Right now routing is split between here a nd the proxy if (descriptor.getResponseRouter() != null) { if (event.isSynchronous() && !stopProcessing) { // we need to do the outbound first but we dispatch // aynshonously as // we are waiting for a response on another resource stopProcessing = true; descriptor.getOutboundRouter().route(resultMessage, event.getSession(), false); } logger.debug("Waiting for response router message"); result = descriptor.getResponseRouter().getResponse(resultMessage); if (stopProcessing) { logger.debug("Setting stop oubound processing according to response router"); RequestContext.getEvent().setStopFurtherProcessing(true); } return result; } else { return resultMessage; } } catch (Exception e) { throw new MessagingException(new Message(Messages.FAILED_TO_INVOKE_X, "UMO Component: " + descriptor.getName()), event.getMessage(), e); } }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/7b2165aa81ea2fae21c28a03d938216064694de7/DefaultLifecycleAdapter.java/buggy/src/java/org/mule/impl/DefaultLifecycleAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
603,
1477,
12,
2799,
51,
1133,
871,
13,
1216,
587,
5980,
503,
565,
288,
3639,
1033,
563,
273,
446,
31,
3639,
775,
288,
5411,
368,
2073,
364,
707,
3849,
5411,
1033,
707,
6618,
273,
871,
18,
4479,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
5327,
67,
9900,
1769,
5411,
2985,
707,
273,
446,
31,
5411,
309,
261,
2039,
6618,
1276,
2985,
13,
288,
7734,
707,
273,
261,
1305,
13,
707,
6618,
31,
5411,
289,
469,
309,
261,
2039,
6618,
480,
446,
13,
288,
7734,
707,
273,
1659,
2276,
18,
588,
1305,
12,
2039,
6618,
18,
10492,
9334,
1794,
18,
588,
797,
10663,
5411,
289,
5411,
368,
14373,
707,
5411,
563,
273,
28671,
18,
14407,
12,
4652,
16,
20479,
18,
588,
1133,
1042,
9334,
707,
1769,
5411,
587,
5980,
1079,
563,
1079,
273,
446,
31,
5411,
309,
261,
2088,
422,
446,
597,
28671,
18,
291,
19038,
10756,
288,
7734,
563,
1079,
273,
394,
490,
725,
1079,
12,
2575,
18,
588,
4059,
329,
1079,
9334,
871,
18,
588,
2297,
10663,
5411,
289,
469,
309,
261,
2088,
480,
446,
13,
288,
7734,
309,
261,
2088,
1276,
587,
5980,
1079,
13,
288,
10792,
563,
1079,
273,
261,
2799,
51,
1079,
13,
563,
31,
7734,
289,
469,
288,
10792,
563,
1079,
273,
394,
490,
725,
1079,
12,
2088,
16,
871,
18,
588,
2297,
10663,
7734,
289,
5411,
289,
5411,
1250,
2132,
7798,
273,
629,
31,
5411,
309,
261,
12628,
18,
588,
1064,
8259,
1435,
480,
446,
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,
377,
1071,
1033,
603,
1477,
12,
2799,
51,
1133,
871,
13,
1216,
587,
5980,
503,
565,
288,
3639,
1033,
563,
273,
446,
31,
3639,
775,
288,
5411,
368,
2073,
364,
707,
3849,
5411,
1033,
707,
6618,
273,
871,
18,
4479,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
5327,
67,
9900,
1769,
5411,
2985,
707,
273,
446,
31,
5411,
309,
261,
2039,
6618,
1276,
2985,
13,
288,
7734,
707,
273,
261,
1305,
13,
707,
6618,
31,
5411,
289,
469,
309,
261,
2039,
6618,
480,
446,
13,
288,
7734,
707,
273,
1659,
2276,
18,
588,
1305,
12,
2039,
6618,
18,
10492,
9334,
1794,
18,
588,
797,
10663,
5411,
289,
5411,
368,
14373,
707,
5411,
563,
273,
28671,
18,
14407,
2
] |
throw new SqlException(agent_.logWriter_, e, "Encoding is unsupported for conversion to TIME");
|
throw new SqlException(agent_.logWriter_, new MessageId(SQLState.UNSUPPORTED_ENCODING), "TIMESTAMP", "java.sql.Time", e);
|
private final java.sql.Time getTimeFromTIMESTAMP(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.timestampBytesToTime(dataBuffer_, columnDataPosition_[column - 1], recyclableTime_, charsetName_[column -1]); } catch (UnsupportedEncodingException e) { throw new SqlException(agent_.logWriter_, e, "Encoding is unsupported for conversion to TIME"); } }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/3d650b1cb0e7096b3c8b3a076a5ded716f7e1c4a/Cursor.java/clean/java/client/org/apache/derby/client/am/Cursor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
2252,
18,
4669,
18,
950,
6135,
1265,
17201,
12,
474,
1057,
13,
1216,
8855,
503,
288,
3639,
775,
288,
5411,
327,
2358,
18,
19211,
18,
765,
1637,
18,
2625,
18,
301,
18,
5096,
18,
5508,
2160,
774,
950,
12,
892,
1892,
67,
16,
10792,
1057,
751,
2555,
67,
63,
2827,
300,
404,
6487,
10792,
25745,
830,
429,
950,
67,
16,
10792,
4856,
461,
67,
63,
2827,
300,
21,
19226,
3639,
289,
1044,
261,
8544,
13836,
425,
13,
288,
2398,
604,
394,
8855,
503,
12,
5629,
27799,
1330,
2289,
67,
16,
425,
16,
8227,
315,
4705,
353,
13248,
364,
4105,
358,
8721,
8863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
2252,
18,
4669,
18,
950,
6135,
1265,
17201,
12,
474,
1057,
13,
1216,
8855,
503,
288,
3639,
775,
288,
5411,
327,
2358,
18,
19211,
18,
765,
1637,
18,
2625,
18,
301,
18,
5096,
18,
5508,
2160,
774,
950,
12,
892,
1892,
67,
16,
10792,
1057,
751,
2555,
67,
63,
2827,
300,
404,
6487,
10792,
25745,
830,
429,
950,
67,
16,
10792,
4856,
461,
67,
63,
2827,
300,
21,
19226,
3639,
289,
1044,
261,
8544,
13836,
425,
13,
288,
2398,
604,
394,
8855,
503,
12,
5629,
27799,
1330,
2289,
67,
16,
425,
16,
8227,
315,
4705,
353,
13248,
364,
4105,
358,
8721,
8863,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
{ return false; }
|
{ return false; }
|
public boolean supportsOuterJoins() throws SQLException { return false; }
|
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/clean/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
15040,
21108,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
629,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6146,
15040,
21108,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
629,
31,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
super(parameters);
|
public MarkupInheritanceExtension_4(final PageParameters parameters) { super(parameters); add(new Label("label3", "extension label")); }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/0fdf3c0295a9652408915ea02c10f339dc24347f/MarkupInheritanceExtension_4.java/buggy/wicket/src/test/wicket/markup/MarkupInheritanceExtension_4.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
26420,
28255,
3625,
67,
24,
12,
6385,
3460,
2402,
1472,
13,
225,
202,
95,
202,
565,
2240,
12,
3977,
1769,
202,
377,
202,
565,
527,
12,
2704,
5287,
2932,
1925,
23,
3113,
315,
6447,
1433,
7923,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26420,
28255,
3625,
67,
24,
12,
6385,
3460,
2402,
1472,
13,
225,
202,
95,
202,
565,
2240,
12,
3977,
1769,
202,
377,
202,
565,
527,
12,
2704,
5287,
2932,
1925,
23,
3113,
315,
6447,
1433,
7923,
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
] |
|
if (parentElement instanceof Document) { xsdComp = xsdSchema; xsdModelAdapterFactory.adapt(xsdComp, xsdModelAdapterFactory);
|
if (parentElement instanceof IDOMModel) { IDOMDocument domDoc = ((IDOMModel) parentElement).getDocument(); if (domDoc != null) { XSDModelAdapter modelAdapter = (XSDModelAdapter) domDoc.getExistingAdapter(XSDModelAdapter.class); /* * ISSUE: Didn't want to go through initializing * schema if it does not already exist, so just * attempted to get existing adapter. If doesn't * exist, just don't bother working. */ if (modelAdapter != null) xsdComp = modelAdapter.getSchema(); if (xsdComp != null) { xsdModelAdapterFactory.adapt(xsdComp, xsdModelAdapterFactory);
|
public Object[] getChildren(Object parentElement) { XSDConcreteComponent xsdComp = null; List list = null; if (parentElement instanceof Document) { xsdComp = xsdSchema; xsdModelAdapterFactory.adapt(xsdComp, xsdModelAdapterFactory); list = new ArrayList(); list.add(xsdComp); return list.toArray(); } else if (parentElement instanceof XSDConcreteComponent) { xsdComp = (XSDConcreteComponent)parentElement; list = new ArrayList(); } else if (parentElement instanceof ITreeItemContentProvider) { return ((ITreeItemContentProvider)parentElement).getChildren(parentElement).toArray(); } else if (parentElement instanceof ITreeContentProvider) { return ((ITreeContentProvider)parentElement).getChildren(parentElement); } if (xsdComp != null) { XSDAbstractAdapter a = (XSDAbstractAdapter)xsdModelAdapterFactory.adapt(xsdComp, xsdModelAdapterFactory); if (xsdComp instanceof XSDElementDeclaration || xsdComp instanceof XSDModelGroup || xsdComp instanceof XSDWildcard) { xsdModelAdapterFactory.adapt(((XSDParticleContent)xsdComp).getContainer(), xsdModelAdapterFactory); } if (a != null) { Object [] obj = a.getChildren(xsdComp); if (obj != null) { list = Arrays.asList(obj); } } } list = list != null ? list : Collections.EMPTY_LIST; return list.toArray(); }
|
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/64de6da717851c7df521a5645f367316a8c3bb3a/XSDContentProvider.java/clean/bundles/org.eclipse.wst.xsd.ui/src/org/eclipse/wst/xsd/ui/internal/provider/XSDContentProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
8526,
10268,
12,
921,
30363,
13,
225,
288,
565,
26462,
25845,
1841,
14802,
2945,
273,
446,
31,
565,
987,
666,
273,
446,
31,
565,
309,
261,
2938,
1046,
1276,
4319,
13,
565,
288,
1377,
14802,
2945,
273,
14802,
3078,
31,
3196,
1850,
14802,
1488,
4216,
1733,
18,
19195,
12,
19144,
2945,
16,
14802,
1488,
4216,
1733,
1769,
1377,
666,
273,
394,
2407,
5621,
1377,
666,
18,
1289,
12,
19144,
2945,
1769,
1377,
327,
666,
18,
31447,
5621,
565,
289,
565,
469,
309,
261,
2938,
1046,
1276,
26462,
25845,
1841,
13,
565,
288,
1377,
14802,
2945,
273,
261,
31244,
25845,
1841,
13,
2938,
1046,
31,
1377,
666,
273,
394,
2407,
5621,
565,
289,
565,
469,
309,
261,
2938,
1046,
1276,
467,
2471,
1180,
1350,
2249,
13,
565,
288,
1377,
327,
14015,
1285,
992,
1180,
1350,
2249,
13,
2938,
1046,
2934,
588,
4212,
12,
2938,
1046,
2934,
31447,
5621,
565,
289,
565,
469,
309,
261,
2938,
1046,
1276,
467,
2471,
1350,
2249,
13,
565,
288,
1377,
327,
14015,
1285,
992,
1350,
2249,
13,
2938,
1046,
2934,
588,
4212,
12,
2938,
1046,
1769,
565,
289,
3639,
309,
261,
19144,
2945,
480,
446,
13,
565,
288,
1377,
26462,
7469,
4216,
279,
273,
261,
31244,
7469,
4216,
13,
19144,
1488,
4216,
1733,
18,
19195,
12,
19144,
2945,
16,
14802,
1488,
4216,
1733,
1769,
5411,
309,
261,
19144,
2945,
1276,
26462,
1046,
6094,
747,
14802,
2945,
1276,
26462,
1488,
1114,
747,
14802,
2945,
1276,
26462,
12121,
13,
1377,
288,
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,
282,
1071,
1033,
8526,
10268,
12,
921,
30363,
13,
225,
288,
565,
26462,
25845,
1841,
14802,
2945,
273,
446,
31,
565,
987,
666,
273,
446,
31,
565,
309,
261,
2938,
1046,
1276,
4319,
13,
565,
288,
1377,
14802,
2945,
273,
14802,
3078,
31,
3196,
1850,
14802,
1488,
4216,
1733,
18,
19195,
12,
19144,
2945,
16,
14802,
1488,
4216,
1733,
1769,
1377,
666,
273,
394,
2407,
5621,
1377,
666,
18,
1289,
12,
19144,
2945,
1769,
1377,
327,
666,
18,
31447,
5621,
565,
289,
565,
469,
309,
261,
2938,
1046,
1276,
26462,
25845,
1841,
13,
565,
288,
1377,
14802,
2945,
273,
261,
31244,
25845,
1841,
13,
2938,
1046,
31,
1377,
666,
273,
394,
2407,
5621,
565,
289,
565,
469,
309,
261,
2
] |
copyCursor) { if (copyCursor.atEnd()){ return; } else if (offset == 0) { return; } else if (offset == copyCursor.current().getSize()){ copyCursor.remove(); } else if (copyCursor.current().isGap()){ copyCursor.current().shrink(offset); } else if (copyCursor.current().isMultipleCharBrace()){ if (offset != 1) throw new IllegalArgumentException("Offset incorrect"); else{ String type = copyCursor.current().getType(); String second = type.substring(1,2); copyCursor.current().setType(second); } } else { throw new IllegalArgumentException("Cannot clip left."); } }
|
copyCursor) { if (copyCursor.atEnd()) { return; } else if (offset == 0) { return; } else if (offset == copyCursor.current().getSize()) { copyCursor.remove(); } else if (copyCursor.current().isGap()) { copyCursor.current().shrink(offset); } else if (copyCursor.current().isMultipleCharBrace()) { if (offset != 1) { throw new IllegalArgumentException("Offset incorrect"); } else { String type = copyCursor.current().getType(); String second = type.substring(1,2); copyCursor.current().setType(second); } } else { throw new IllegalArgumentException("Cannot clip left."); } }
|
private void _clipRight(int offset, ModelList<ReducedToken>.Iterator copyCursor) { if (copyCursor.atEnd()){ return; } else if (offset == 0) { return; } else if (offset == copyCursor.current().getSize()){ copyCursor.remove(); } else if (copyCursor.current().isGap()){ copyCursor.current().shrink(offset); } else if (copyCursor.current().isMultipleCharBrace()){ if (offset != 1) throw new IllegalArgumentException("Offset incorrect"); else{ String type = copyCursor.current().getType(); String second = type.substring(1,2); copyCursor.current().setType(second); } } else { throw new IllegalArgumentException("Cannot clip left."); } }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/0d5978f95b9d81515ff8908c4d2b74c1df5a1255/ReducedModelComment.java/clean/drjava/src/edu/rice/cs/drjava/ReducedModelComment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
389,
14161,
4726,
12,
474,
1384,
16,
3164,
682,
32,
16911,
3263,
1345,
18652,
3198,
6862,
6862,
6862,
202,
3530,
6688,
13,
202,
202,
95,
1082,
202,
430,
261,
3530,
6688,
18,
270,
1638,
10756,
95,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
12107,
309,
261,
3348,
422,
374,
13,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
12107,
309,
261,
3348,
422,
1610,
6688,
18,
2972,
7675,
588,
1225,
10756,
95,
9506,
202,
3530,
6688,
18,
4479,
5621,
1082,
202,
97,
1082,
202,
12107,
309,
261,
3530,
6688,
18,
2972,
7675,
291,
14001,
10756,
95,
9506,
202,
3530,
6688,
18,
2972,
7675,
674,
12334,
12,
3348,
1769,
1082,
202,
97,
1082,
202,
12107,
309,
261,
3530,
6688,
18,
2972,
7675,
291,
8438,
2156,
21965,
10756,
95,
9506,
202,
430,
261,
3348,
480,
404,
13,
6862,
202,
12849,
394,
2754,
2932,
2335,
11332,
8863,
9506,
202,
12107,
95,
6862,
202,
780,
618,
273,
1610,
6688,
18,
2972,
7675,
588,
559,
5621,
6862,
202,
780,
2205,
273,
618,
18,
28023,
12,
21,
16,
22,
1769,
6862,
202,
3530,
6688,
18,
2972,
7675,
542,
559,
12,
8538,
1769,
9506,
202,
97,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
12849,
394,
2754,
2932,
4515,
6807,
2002,
1199,
1769,
1082,
202,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
389,
14161,
4726,
12,
474,
1384,
16,
3164,
682,
32,
16911,
3263,
1345,
18652,
3198,
6862,
6862,
6862,
202,
3530,
6688,
13,
202,
202,
95,
1082,
202,
430,
261,
3530,
6688,
18,
270,
1638,
10756,
95,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
12107,
309,
261,
3348,
422,
374,
13,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
12107,
309,
261,
3348,
422,
1610,
6688,
18,
2972,
7675,
588,
1225,
10756,
95,
9506,
202,
3530,
6688,
18,
4479,
5621,
1082,
202,
97,
1082,
202,
12107,
309,
261,
3530,
6688,
18,
2972,
7675,
291,
14001,
10756,
95,
9506,
202,
3530,
6688,
18,
2972,
7675,
674,
12334,
12,
3348,
1769,
1082,
202,
97,
2
] |
transformer.applyTemplateToNode(this, null, sourceNode);
|
ElemTemplate matchTemplate = transformer.getMatchedTemplate(); transformer.applyTemplateToNode(this, matchTemplate, sourceNode);
|
public void execute( TransformerImpl transformer) throws TransformerException { if (transformer.currentTemplateRuleIsNull()) { transformer.getMsgMgr().error(this, XSLTErrorResources.ER_NO_APPLY_IMPORT_IN_FOR_EACH); //"xsl:apply-imports not allowed in a xsl:for-each"); } if (TransformerImpl.S_DEBUG) transformer.getTraceManager().fireTraceEvent(this); int sourceNode = transformer.getXPathContext().getCurrentNode(); if (DTM.NULL != sourceNode) { // This will have to change to current template, (which will have // to be the top of a current template stack). transformer.applyTemplateToNode(this, null, sourceNode); } else // if(null == sourceNode) { transformer.getMsgMgr().error(this, XSLTErrorResources.ER_NULL_SOURCENODE_APPLYIMPORTS); //"sourceNode is null in xsl:apply-imports!"); } if (TransformerImpl.S_DEBUG) transformer.getTraceManager().fireTraceEndEvent(this); }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/d0b15fbfeed1e7ca475523cfb19f12c921b2e921/ElemApplyImport.java/clean/src/org/apache/xalan/templates/ElemApplyImport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
12,
1850,
11519,
2828,
8360,
13,
5411,
1216,
21684,
225,
288,
565,
309,
261,
21523,
18,
2972,
2283,
2175,
2520,
2041,
10756,
565,
288,
1377,
8360,
18,
588,
3332,
9455,
7675,
1636,
12,
2211,
16,
3639,
20751,
668,
3805,
18,
654,
67,
3417,
67,
2203,
23893,
67,
20445,
67,
706,
67,
7473,
67,
41,
18133,
1769,
225,
368,
6,
30903,
30,
9010,
17,
21350,
486,
2935,
316,
279,
20791,
30,
1884,
17,
13798,
8863,
565,
289,
565,
309,
261,
8319,
2828,
18,
55,
67,
9394,
13,
1377,
8360,
18,
588,
3448,
1318,
7675,
12179,
3448,
1133,
12,
2211,
1769,
565,
509,
26799,
273,
8360,
18,
588,
14124,
1042,
7675,
588,
3935,
907,
5621,
565,
309,
261,
9081,
49,
18,
8560,
480,
26799,
13,
565,
288,
1377,
368,
1220,
903,
1240,
358,
2549,
358,
783,
1542,
16,
261,
12784,
903,
1240,
4202,
368,
358,
506,
326,
1760,
434,
279,
783,
1542,
2110,
2934,
565,
10223,
2283,
845,
2283,
273,
8360,
18,
588,
15400,
2283,
5621,
8360,
18,
9010,
2283,
31403,
12,
2211,
16,
845,
2283,
16,
26799,
1769,
565,
289,
565,
469,
225,
368,
309,
12,
2011,
422,
26799,
13,
565,
288,
1377,
8360,
18,
588,
3332,
9455,
7675,
1636,
12,
2211,
16,
3639,
20751,
668,
3805,
18,
654,
67,
8560,
67,
3584,
1099,
39,
1157,
2712,
67,
2203,
23893,
20445,
55,
1769,
225,
368,
6,
3168,
907,
353,
446,
316,
20791,
30,
9010,
17,
21350,
4442,
1769,
565,
289,
565,
309,
261,
8319,
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,
1836,
12,
1850,
11519,
2828,
8360,
13,
5411,
1216,
21684,
225,
288,
565,
309,
261,
21523,
18,
2972,
2283,
2175,
2520,
2041,
10756,
565,
288,
1377,
8360,
18,
588,
3332,
9455,
7675,
1636,
12,
2211,
16,
3639,
20751,
668,
3805,
18,
654,
67,
3417,
67,
2203,
23893,
67,
20445,
67,
706,
67,
7473,
67,
41,
18133,
1769,
225,
368,
6,
30903,
30,
9010,
17,
21350,
486,
2935,
316,
279,
20791,
30,
1884,
17,
13798,
8863,
565,
289,
565,
309,
261,
8319,
2828,
18,
55,
67,
9394,
13,
1377,
8360,
18,
588,
3448,
1318,
7675,
12179,
3448,
1133,
12,
2211,
1769,
565,
509,
26799,
273,
8360,
18,
588,
14124,
1042,
7675,
588,
3935,
907,
5621,
565,
309,
2
] |
fDocument.set("");
|
fDocument.set("");
|
public void doSubmit() { String content = fDocument.get(); ToolController controller = fProcess.getController(); if (controller != null && controller.submit(content, SubmitType.CONSOLE)) { fDocument.set(""); fCurrentHistoryEntry = null; fSourceViewer.getUndoManager().reset(); } }
|
47575 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47575/d3bba4266f35b585495a603d2b7a2630e87ff6c4/InputGroup.java/buggy/de.walware.statet.nico.ui/src/de/walware/statet/nico/ui/console/InputGroup.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
11620,
1435,
288,
9506,
202,
780,
913,
273,
284,
2519,
18,
588,
5621,
202,
202,
6364,
2933,
2596,
273,
284,
2227,
18,
588,
2933,
5621,
202,
202,
430,
261,
5723,
480,
446,
597,
2596,
18,
9297,
12,
1745,
16,
17320,
559,
18,
2248,
3584,
900,
3719,
288,
1082,
202,
74,
2519,
18,
542,
2932,
8863,
1082,
202,
74,
3935,
5623,
1622,
273,
446,
31,
1082,
202,
74,
1830,
18415,
18,
588,
31224,
1318,
7675,
6208,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
741,
11620,
1435,
288,
9506,
202,
780,
913,
273,
284,
2519,
18,
588,
5621,
202,
202,
6364,
2933,
2596,
273,
284,
2227,
18,
588,
2933,
5621,
202,
202,
430,
261,
5723,
480,
446,
597,
2596,
18,
9297,
12,
1745,
16,
17320,
559,
18,
2248,
3584,
900,
3719,
288,
1082,
202,
74,
2519,
18,
542,
2932,
8863,
1082,
202,
74,
3935,
5623,
1622,
273,
446,
31,
1082,
202,
74,
1830,
18415,
18,
588,
31224,
1318,
7675,
6208,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fs.put("physical.udp", Peer.getHostName(ip)+":"+portNumber);
|
fs.put("physical.udp", ip.toString()+":"+portNumber);
|
public SimpleFieldSet exportPublicFieldSet() { SimpleFieldSet fs = new SimpleFieldSet(true); InetAddress ip = getPrimaryIPAddress(); fs.put("base64", "true"); if(ip != null) fs.put("physical.udp", Peer.getHostName(ip)+":"+portNumber); fs.put("identity", Base64.encode(myIdentity)); fs.put("location", Double.toString(lm.getLocation().getValue())); fs.put("version", Version.getVersionString()); fs.put("testnet", Boolean.toString(testnetEnabled)); fs.put("lastGoodVersion", Version.getLastGoodVersionString()); if(testnetEnabled) fs.put("testnetPort", Integer.toString(testnetHandler.testnetPort)); fs.put("myName", myName); fs.put("dsaGroup", myCryptoGroup.asFieldSet()); fs.put("dsaPubKey", myPubKey.asFieldSet()); fs.put("ark.number", Long.toString(this.myARKNumber)); fs.put("ark.pubURI", this.myARK.getURI().toString(false)); Logger.minor(this, "My reference: "+fs); return fs; }
|
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/474d190c633c367c5c3ff7fbe0f75a1ea669294b/Node.java/buggy/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4477,
974,
694,
3359,
4782,
974,
694,
1435,
288,
3639,
4477,
974,
694,
2662,
273,
394,
4477,
974,
694,
12,
3767,
1769,
3639,
14218,
2359,
273,
11398,
22507,
5621,
3639,
2662,
18,
458,
2932,
1969,
1105,
3113,
315,
3767,
8863,
3639,
309,
12,
625,
480,
446,
13,
540,
202,
2556,
18,
458,
2932,
20441,
18,
26029,
3113,
2359,
18,
10492,
1435,
9078,
2773,
15,
655,
1854,
1769,
3639,
2662,
18,
458,
2932,
10781,
3113,
3360,
1105,
18,
3015,
12,
4811,
4334,
10019,
3639,
2662,
18,
458,
2932,
3562,
3113,
3698,
18,
10492,
12,
25972,
18,
588,
2735,
7675,
24805,
1435,
10019,
3639,
2662,
18,
458,
2932,
1589,
3113,
4049,
18,
588,
1444,
780,
10663,
3639,
2662,
18,
458,
2932,
3813,
2758,
3113,
3411,
18,
10492,
12,
3813,
2758,
1526,
10019,
3639,
2662,
18,
458,
2932,
2722,
18195,
1444,
3113,
4049,
18,
588,
3024,
18195,
1444,
780,
10663,
3639,
309,
12,
3813,
2758,
1526,
13,
540,
202,
2556,
18,
458,
2932,
3813,
2758,
2617,
3113,
2144,
18,
10492,
12,
3813,
2758,
1503,
18,
3813,
2758,
2617,
10019,
3639,
2662,
18,
458,
2932,
4811,
461,
3113,
3399,
461,
1769,
3639,
2662,
18,
458,
2932,
19603,
1114,
3113,
3399,
18048,
1114,
18,
345,
974,
694,
10663,
3639,
2662,
18,
458,
2932,
19603,
17924,
3113,
3399,
17924,
18,
345,
974,
694,
10663,
377,
202,
2556,
18,
458,
2932,
1313,
18,
2696,
3113,
3407,
18,
10492,
12,
2211,
18,
4811,
9584,
1854,
10019,
377,
202,
2556,
18,
458,
2932,
1313,
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,
4477,
974,
694,
3359,
4782,
974,
694,
1435,
288,
3639,
4477,
974,
694,
2662,
273,
394,
4477,
974,
694,
12,
3767,
1769,
3639,
14218,
2359,
273,
11398,
22507,
5621,
3639,
2662,
18,
458,
2932,
1969,
1105,
3113,
315,
3767,
8863,
3639,
309,
12,
625,
480,
446,
13,
540,
202,
2556,
18,
458,
2932,
20441,
18,
26029,
3113,
2359,
18,
10492,
1435,
9078,
2773,
15,
655,
1854,
1769,
3639,
2662,
18,
458,
2932,
10781,
3113,
3360,
1105,
18,
3015,
12,
4811,
4334,
10019,
3639,
2662,
18,
458,
2932,
3562,
3113,
3698,
18,
10492,
12,
25972,
18,
588,
2735,
7675,
24805,
1435,
10019,
3639,
2662,
18,
458,
2932,
1589,
3113,
4049,
18,
588,
1444,
780,
10663,
3639,
2662,
18,
2
] |
int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN;
|
int parenCount = getIndex(program, pc); pc += INDEX_LEN; int parenIndex = getIndex(program, pc); pc += 2 * INDEX_LEN;
|
executeREBytecode(REGlobalData gData, char[] chars, int end) { int pc = 0; byte program[] = gData.regexp.program; int op = program[pc++]; int currentContinuation_op; int currentContinuation_pc; boolean result = false; currentContinuation_pc = 0; currentContinuation_op = REOP_END;if (debug) {System.out.println("Input = \"" + new String(chars) + "\", start at " + gData.cp);} for (;;) {if (debug) {System.out.println("Testing at " + gData.cp + ", op = " + op);} switch (op) { case REOP_EMPTY: result = true; break; case REOP_BOL: if (gData.cp != 0) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp - 1])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_EOL: if (gData.cp != end) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_WBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ !((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_WNONBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ ((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_DOT: result = (gData.cp != end && !isLineTerm(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_DIGIT: result = (gData.cp != end && isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONDIGIT: result = (gData.cp != end && !isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_SPACE: result = (gData.cp != end && isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONSPACE: result = (gData.cp != end && !isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_ALNUM: result = (gData.cp != end && isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONALNUM: result = (gData.cp != end && !isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_FLAT: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNMatcher(gData, offset, length, chars, end); } break; case REOP_FLATi: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNIMatcher(gData, offset, length, chars, end); } break; case REOP_FLAT1: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_FLAT1i: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_UCFLAT1: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_UCFLAT1i: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_ALT: { int nextpc; byte nextop; pushProgState(gData, 0, 0, null, currentContinuation_pc, currentContinuation_op); nextpc = pc + GET_OFFSET(program, pc); nextop = program[nextpc++]; pushBackTrackState(gData, nextop, nextpc); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_JUMP: { int offset; REProgState state = popProgState(gData); currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; offset = GET_OFFSET(program, pc); pc += offset; op = program[pc++]; } continue; case REOP_LPAREN: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; gData.set_parens(parenIndex, gData.cp, 0); op = program[pc++]; } continue; case REOP_RPAREN: { int cap_index; int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; cap_index = gData.parens_index(parenIndex); gData.set_parens(parenIndex, cap_index, gData.cp - cap_index); if (parenIndex > gData.lastParen) gData.lastParen = parenIndex; op = program[pc++]; } continue; case REOP_BACKREF: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; result = backrefMatcher(gData, parenIndex, chars, end); } break; case REOP_CLASS: { int index = GET_ARG(program, pc); pc += ARG_LEN; if (gData.cp != end) { if (classMatcher(gData, gData.regexp.classList[index], chars[gData.cp])) { gData.cp++; result = true; break; } } result = false; } break; case REOP_ASSERT: case REOP_ASSERT_NOT: { byte testOp; pushProgState(gData, 0, 0, gData.backTrackLast, currentContinuation_pc, currentContinuation_op); if (op == REOP_ASSERT) { testOp = REOP_ASSERTTEST; } else { testOp = REOP_ASSERTNOTTEST; } pushBackTrackState(gData, testOp, pc + GET_OFFSET(program, pc)); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_ASSERTTEST: case REOP_ASSERTNOTTEST: { REProgState state = popProgState(gData); gData.cp = state.index; gData.backTrackLast = state.savedBackTrackLast; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; if (result) { if (op == REOP_ASSERTTEST) { result = true; } else { result = false; } } else { if (op == REOP_ASSERTTEST) { // Do nothing } else { result = true; } } } break; case REOP_STAR: case REOP_PLUS: case REOP_OPT: case REOP_QUANT: case REOP_MINIMALSTAR: case REOP_MINIMALPLUS: case REOP_MINIMALOPT: case REOP_MINIMALQUANT: { int min, max; boolean greedy = false; switch (op) { case REOP_STAR: greedy = true; // fallthrough case REOP_MINIMALSTAR: min = 0; max = -1; break; case REOP_PLUS: greedy = true; // fallthrough case REOP_MINIMALPLUS: min = 1; max = -1; break; case REOP_OPT: greedy = true; // fallthrough case REOP_MINIMALOPT: min = 0; max = 1; break; case REOP_QUANT: greedy = true; // fallthrough case REOP_MINIMALQUANT: min = GET_ARG(program, pc); pc += ARG_LEN; max = GET_ARG(program, pc); pc += ARG_LEN; break; default: throw Kit.codeBug(); } pushProgState(gData, min, max, null, currentContinuation_pc, currentContinuation_op); if (greedy) { currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); /* Step over <parencount>, <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { if (min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; /* <parencount> <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); popProgState(gData); pc += 2 * ARG_LEN; // <parencount> & <parenindex> pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } } } continue; case REOP_ENDCHILD: pc = currentContinuation_pc; op = currentContinuation_op; continue; case REOP_REPEAT: { REProgState state = popProgState(gData); if (!result) { // // There's been a failure, see if we have enough // children. // if (state.min == 0) result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; /* <parencount> & <parenindex> */ pc = pc + GET_OFFSET(program, pc); break; } else { if (state.min == 0 && gData.cp == state.index) { // matched an empty string, that'll get us nowhere result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } int new_min = state.min, new_max = state.max; if (new_min != 0) new_min--; if (new_max != -1) new_max--; if (new_max == 0) { result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } pushProgState(gData, new_min, new_max, null, state.continuation_pc, state.continuation_op); currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; op = program[pc++]; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } } } continue; case REOP_MINIMALREPEAT: { REProgState state = popProgState(gData); if (!result) { // // Non-greedy failure - try to consume another child. // if (state.max == -1 || state.max > 0) { pushProgState(gData, state.min, state.max, null, state.continuation_pc, state.continuation_op); currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } op = program[pc++]; continue; } else { // Don't need to adjust pc since we're going to pop. currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } } else { if (state.min == 0 && gData.cp == state.index) { // Matched an empty string, that'll get us nowhere. result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } int new_min = state.min, new_max = state.max; if (new_min != 0) new_min--; if (new_max != -1) new_max--; pushProgState(gData, new_min, new_max, null, state.continuation_pc, state.continuation_op); if (new_min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } op = program[pc++]; } else { currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); popProgState(gData); pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } continue; } } case REOP_END: return true; default: throw Kit.codeBug(); } /* * If the match failed and there's a backtrack option, take it. * Otherwise this is a complete and utter failure. */ if (!result) { REBackTrackData backTrackData = gData.backTrackLast; if (backTrackData != null) { gData.backTrackLast = backTrackData.previous; gData.lastParen = backTrackData.lastParen; // XXX: If backTrackData will no longer be used, then // there is no need to clone backTrackData.parens if (backTrackData.parens != null) { gData.parens = (long[])backTrackData.parens.clone(); } gData.cp = backTrackData.cp; for (int k = 0; k < backTrackData.precedingStateTop; k++) gData.stateStack[k] = backTrackData.precedingState[k]; gData.stateStackTop = backTrackData.precedingStateTop + 1; gData.stateStack[gData.stateStackTop - 1] = backTrackData.currentState; currentContinuation_op = gData.stateStack[gData.stateStackTop - 1].continuation_op; currentContinuation_pc = gData.stateStack[gData.stateStackTop - 1].continuation_pc; pc = backTrackData.continuation_pc; op = backTrackData.continuation_op; continue; } else return false; } /* * Continue with the expression. If this the end of the child, use * the current continuation. */ op = program[pc++]; if (op == REOP_ENDCHILD) { pc = currentContinuation_pc; op = currentContinuation_op; } } }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/21f0e29bbdfc8503803ff1fb05a60d0d11f579d5/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1836,
862,
858,
16651,
12,
862,
5160,
751,
314,
751,
16,
1149,
8526,
5230,
16,
509,
679,
13,
565,
288,
3639,
509,
6125,
273,
374,
31,
3639,
1160,
5402,
8526,
273,
314,
751,
18,
17745,
18,
12890,
31,
3639,
509,
1061,
273,
5402,
63,
2436,
9904,
15533,
3639,
509,
783,
660,
23946,
67,
556,
31,
3639,
509,
783,
660,
23946,
67,
2436,
31,
3639,
1250,
563,
273,
629,
31,
3639,
783,
660,
23946,
67,
2436,
273,
374,
31,
3639,
783,
660,
23946,
67,
556,
273,
2438,
3665,
67,
4415,
31,
430,
261,
4148,
13,
288,
3163,
18,
659,
18,
8222,
2932,
1210,
273,
11843,
397,
394,
514,
12,
7549,
13,
397,
1548,
3113,
787,
622,
315,
397,
314,
751,
18,
4057,
1769,
97,
3639,
364,
261,
25708,
13,
288,
430,
261,
4148,
13,
288,
3163,
18,
659,
18,
8222,
2932,
22218,
622,
315,
397,
314,
751,
18,
4057,
397,
3104,
1061,
273,
315,
397,
1061,
1769,
97,
5411,
1620,
261,
556,
13,
288,
5411,
648,
2438,
3665,
67,
13625,
30,
7734,
563,
273,
638,
31,
7734,
898,
31,
5411,
648,
2438,
3665,
67,
38,
1741,
30,
7734,
309,
261,
75,
751,
18,
4057,
480,
374,
13,
288,
10792,
309,
261,
75,
751,
18,
5421,
12554,
747,
18701,
14015,
75,
751,
18,
17745,
18,
7133,
473,
6756,
5937,
67,
12845,
30690,
13,
480,
374,
3719,
288,
13491,
309,
16051,
291,
1670,
4065,
12,
7549,
63,
75,
751,
18,
4057,
300,
404,
22643,
288,
18701,
563,
273,
629,
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,
1836,
862,
858,
16651,
12,
862,
5160,
751,
314,
751,
16,
1149,
8526,
5230,
16,
509,
679,
13,
565,
288,
3639,
509,
6125,
273,
374,
31,
3639,
1160,
5402,
8526,
273,
314,
751,
18,
17745,
18,
12890,
31,
3639,
509,
1061,
273,
5402,
63,
2436,
9904,
15533,
3639,
509,
783,
660,
23946,
67,
556,
31,
3639,
509,
783,
660,
23946,
67,
2436,
31,
3639,
1250,
563,
273,
629,
31,
3639,
783,
660,
23946,
67,
2436,
273,
374,
31,
3639,
783,
660,
23946,
67,
556,
273,
2438,
3665,
67,
4415,
31,
430,
261,
4148,
13,
288,
3163,
18,
659,
18,
8222,
2932,
1210,
273,
11843,
397,
394,
514,
12,
7549,
13,
397,
1548,
3113,
787,
622,
315,
397,
314,
2
] |
if (task.isActive()) { MessageDialog.openInformation( Display.getDefault().getActiveShell(), "Task Message", "Task can not be active when changing taskscape"); } else { FileDialog dialog = new FileDialog(Display.getDefault() .getActiveShell(), SWT.OPEN); String[] ext = { "*.xml" }; dialog.setFilterExtensions(ext); String mylarDir = MylarPlugin.getDefault().getMylarDataDirectory() + "/"; mylarDir = mylarDir.replaceAll("\\\\", "/"); dialog.setFilterPath(mylarDir); String res = dialog.open(); if (res != null) { res = res.replaceAll("\\\\", "/"); res = RelativePathUtil.findRelativePath(mylarDir, res); pathText.setText("<MylarDir>/" + res + ".xml"); markDirty(true); } }
|
removeLinkFromTable();
|
public void widgetSelected(SelectionEvent e) { if (task.isActive()) { MessageDialog.openInformation( Display.getDefault().getActiveShell(), "Task Message", "Task can not be active when changing taskscape"); } else { FileDialog dialog = new FileDialog(Display.getDefault() .getActiveShell(), SWT.OPEN); String[] ext = { "*.xml" }; dialog.setFilterExtensions(ext); String mylarDir = MylarPlugin.getDefault().getMylarDataDirectory() + "/"; mylarDir = mylarDir.replaceAll("\\\\", "/"); // mylarDir = formatPath(mylarDir); dialog.setFilterPath(mylarDir); String res = dialog.open(); if (res != null) { res = res.replaceAll("\\\\", "/"); res = RelativePathUtil.findRelativePath(mylarDir, res); pathText.setText("<MylarDir>/" + res + ".xml");// task.setPath(res); markDirty(true); } } }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bdc304281913e1b40ffe70ed42938a658372d154/TaskSummaryEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskSummaryEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
6862,
9506,
202,
430,
261,
4146,
18,
291,
3896,
10756,
288,
6862,
202,
1079,
6353,
18,
3190,
5369,
12,
6862,
1082,
202,
4236,
18,
588,
1868,
7675,
588,
3896,
13220,
9334,
6862,
5411,
315,
2174,
2350,
3113,
6862,
5411,
315,
2174,
848,
486,
506,
2695,
1347,
12770,
1562,
12476,
8863,
9506,
202,
97,
469,
288,
6862,
202,
812,
6353,
6176,
273,
394,
1387,
6353,
12,
4236,
18,
588,
1868,
1435,
6862,
1082,
202,
18,
588,
3896,
13220,
9334,
348,
8588,
18,
11437,
1769,
6862,
202,
780,
8526,
1110,
273,
288,
315,
11146,
2902,
6,
289,
31,
6862,
202,
12730,
18,
542,
1586,
7513,
12,
408,
1769,
6862,
202,
780,
3399,
7901,
1621,
273,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
12062,
7901,
751,
2853,
1435,
6862,
1082,
202,
15,
4016,
31,
6862,
202,
4811,
7901,
1621,
273,
3399,
7901,
1621,
18,
2079,
1595,
2932,
13011,
3113,
4016,
1769,
6862,
202,
759,
3399,
7901,
1621,
273,
740,
743,
12,
4811,
7901,
1621,
1769,
6862,
202,
12730,
18,
542,
1586,
743,
12,
4811,
7901,
1621,
1769,
6862,
202,
780,
400,
273,
6176,
18,
3190,
5621,
6862,
202,
430,
261,
455,
480,
446,
13,
288,
25083,
202,
455,
273,
400,
18,
2079,
1595,
2932,
13011,
3113,
4016,
1769,
25083,
202,
455,
273,
19873,
743,
1304,
18,
4720,
16519,
12,
4811,
7901,
1621,
16,
400,
1769,
25083,
202,
803,
1528,
18,
542,
1528,
2932,
32,
12062,
7901,
1621,
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,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
6862,
9506,
202,
430,
261,
4146,
18,
291,
3896,
10756,
288,
6862,
202,
1079,
6353,
18,
3190,
5369,
12,
6862,
1082,
202,
4236,
18,
588,
1868,
7675,
588,
3896,
13220,
9334,
6862,
5411,
315,
2174,
2350,
3113,
6862,
5411,
315,
2174,
848,
486,
506,
2695,
1347,
12770,
1562,
12476,
8863,
9506,
202,
97,
469,
288,
6862,
202,
812,
6353,
6176,
273,
394,
1387,
6353,
12,
4236,
18,
588,
1868,
1435,
6862,
1082,
202,
18,
588,
3896,
13220,
9334,
348,
8588,
18,
11437,
1769,
6862,
202,
780,
8526,
1110,
273,
288,
315,
11146,
2902,
6,
289,
31,
6862,
202,
12730,
18,
542,
1586,
7513,
12,
408,
1769,
6862,
2
] |
return id;
|
return internalTemplateGroup.getId();
|
public int getId() { return id; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/d18f19a08ed65cf09a35ee11134c140ab1d561e0/TemplateGroup.java/clean/server/src/com/imcode/imcms/TemplateGroup.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
2634,
1435,
288,
3639,
327,
2713,
2283,
1114,
18,
26321,
5621,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2634,
1435,
288,
3639,
327,
2713,
2283,
1114,
18,
26321,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
code.emitGoto(switch_label);
|
code.fixupChain(cases_label, switch_label);
|
public SwitchState(CodeAttr code) { switch_label = new Label(code); code.popType(); // pop switch value // Save stack types (except top int) into typeState typeState = code.saveStackTypeState(false); code.emitGoto(switch_label); numCases = 0; }
|
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/50aae2053d3e7c936750da14a5887b2c333a54ab/SwitchState.java/buggy/gnu/bytecode/SwitchState.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13967,
1119,
12,
1085,
3843,
981,
13,
225,
288,
565,
1620,
67,
1925,
273,
394,
5287,
12,
710,
1769,
565,
981,
18,
5120,
559,
5621,
225,
368,
1843,
1620,
460,
565,
368,
7074,
2110,
1953,
261,
14137,
1760,
509,
13,
1368,
618,
1119,
565,
618,
1119,
273,
981,
18,
5688,
2624,
559,
1119,
12,
5743,
1769,
565,
981,
18,
904,
416,
3893,
12,
22186,
67,
1925,
16,
1620,
67,
1925,
1769,
565,
818,
30744,
273,
374,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13967,
1119,
12,
1085,
3843,
981,
13,
225,
288,
565,
1620,
67,
1925,
273,
394,
5287,
12,
710,
1769,
565,
981,
18,
5120,
559,
5621,
225,
368,
1843,
1620,
460,
565,
368,
7074,
2110,
1953,
261,
14137,
1760,
509,
13,
1368,
618,
1119,
565,
618,
1119,
273,
981,
18,
5688,
2624,
559,
1119,
12,
5743,
1769,
565,
981,
18,
904,
416,
3893,
12,
22186,
67,
1925,
16,
1620,
67,
1925,
1769,
565,
818,
30744,
273,
374,
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
] |
int jsHandler = classFile.markHandler(acquireLabel()); short exceptionObject = getNewWordLocal(); astore(exceptionObject); aload(savedVariableObject); astore(variableObjectLocal); aload(exceptionObject); releaseWordLocal(exceptionObject); addScriptRuntimeInvoke("unwrapJavaScriptException", "(Lorg/mozilla/javascript/JavaScriptException;)", "Ljava/lang/Object;");
|
private void visitTryCatchFinally(Node node, Node child) { /* Save the variable object, in case there are with statements * enclosed by the try block and we catch some exception. * We'll restore it for the catch block so that catch block * statements get the right scope. */ // OPT we only need to do this if there are enclosed WITH // statements; could statically check and omit this if there aren't any. // XXX OPT Maybe instead do syntactic transforms to associate // each 'with' with a try/finally block that does the exitwith. // For that matter: Why do we have leavewith? // XXX does Java have any kind of MOV(reg, reg)? short savedVariableObject = getNewWordLocal(); aload(variableObjectLocal); astore(savedVariableObject); /* * Generate the code for the tree; most of the work is done in IRFactory * and NodeTransformer; Codegen just adds the java handlers for the * javascript catch and finally clauses. */ // need to set the stack top to 1 to account for the incoming exception int startLabel = markLabel(acquireLabel(), (short)1); visitStatement(node); while (child != null) { generateCodeFromNode(child, node, -1, -1); child = child.getNextSibling(); } Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); // control flow skips the handlers int realEnd = acquireLabel(); addByteCode(ByteCode.GOTO, realEnd); // javascript handler; unwrap exception and GOTO to javascript // catch area. if (catchTarget != null) { int jsHandler = classFile.markHandler(acquireLabel()); // MS JVM gets cranky if the exception object is left on the stack short exceptionObject = getNewWordLocal(); astore(exceptionObject); // reset the variable object local aload(savedVariableObject); astore(variableObjectLocal); aload(exceptionObject); releaseWordLocal(exceptionObject); // unwrap the exception... addScriptRuntimeInvoke("unwrapJavaScriptException", "(Lorg/mozilla/javascript/JavaScriptException;)", "Ljava/lang/Object;"); // get the label to goto int catchLabel = ((Integer)catchTarget.getProp(Node.LABEL_PROP)).intValue(); addByteCode(ByteCode.GOTO, catchLabel); // mark the handler classFile.addExceptionHandler (startLabel, catchLabel, jsHandler, "org/mozilla/javascript/JavaScriptException"); /* we also need to catch EcmaErrors and feed the associated error object to the handler */ jsHandler = classFile.markHandler(acquireLabel()); exceptionObject = getNewWordLocal(); astore(exceptionObject); aload(savedVariableObject); astore(variableObjectLocal); aload(exceptionObject); addVirtualInvoke("org/mozilla/javascript/EcmaError", "getErrorObject", "()", "Lorg/mozilla/javascript/Scriptable;"); releaseWordLocal(exceptionObject); addByteCode(ByteCode.GOTO, catchLabel); classFile.addExceptionHandler (startLabel, catchLabel, jsHandler, "org/mozilla/javascript/EcmaError"); } // finally handler; catch all exceptions, store to a local; JSR to // the finally, then re-throw. if (finallyTarget != null) { int finallyHandler = classFile.markHandler(acquireLabel()); // reset the variable object local aload(savedVariableObject); astore(variableObjectLocal); short exnLocal = itsLocalAllocationBase++; astore(exnLocal); // get the label to JSR to int finallyLabel = ((Integer)finallyTarget.getProp(Node.LABEL_PROP)).intValue(); addByteCode(ByteCode.JSR, finallyLabel); // rethrow aload(exnLocal); addByteCode(ByteCode.ATHROW); // mark the handler classFile.addExceptionHandler(startLabel, finallyLabel, finallyHandler, null); // catch any } releaseWordLocal(savedVariableObject); markLabel(realEnd); }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/f502d9a02ec54dd59fe0b11f6ad113b27aa04350/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
7833,
14842,
29987,
12,
907,
756,
16,
2029,
1151,
13,
288,
3639,
1748,
7074,
326,
2190,
733,
16,
316,
648,
1915,
854,
598,
6317,
540,
380,
25636,
635,
326,
775,
1203,
471,
732,
1044,
2690,
1520,
18,
540,
380,
1660,
5614,
5217,
518,
364,
326,
1044,
1203,
1427,
716,
1044,
1203,
540,
380,
6317,
336,
326,
2145,
2146,
18,
540,
1195,
3639,
368,
16456,
732,
1338,
1608,
358,
741,
333,
309,
1915,
854,
25636,
13601,
3639,
368,
6317,
31,
3377,
760,
1230,
866,
471,
14088,
333,
309,
1915,
11526,
1404,
1281,
18,
3639,
368,
11329,
16456,
14024,
3560,
741,
1393,
21844,
13680,
358,
13251,
3639,
368,
1517,
296,
1918,
11,
598,
279,
775,
19,
23417,
1203,
716,
1552,
326,
2427,
1918,
18,
3639,
368,
2457,
716,
15177,
30,
225,
3497,
93,
741,
732,
1240,
884,
842,
359,
483,
35,
3639,
368,
11329,
1552,
5110,
1240,
1281,
3846,
434,
16070,
58,
12,
1574,
16,
960,
9945,
3639,
3025,
5198,
3092,
921,
273,
12654,
3944,
2042,
5621,
3639,
279,
945,
12,
6105,
921,
2042,
1769,
3639,
279,
2233,
12,
14077,
3092,
921,
1769,
3639,
1748,
540,
380,
6654,
326,
981,
364,
326,
2151,
31,
4486,
434,
326,
1440,
353,
2731,
316,
15908,
1733,
540,
380,
471,
2029,
8319,
31,
225,
3356,
4507,
2537,
4831,
326,
2252,
4919,
364,
326,
540,
380,
11341,
1044,
471,
3095,
14093,
18,
225,
1195,
3639,
368,
1608,
358,
444,
326,
2110,
1760,
358,
404,
358,
2236,
364,
326,
6935,
1520,
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,
3757,
7833,
14842,
29987,
12,
907,
756,
16,
2029,
1151,
13,
288,
3639,
1748,
7074,
326,
2190,
733,
16,
316,
648,
1915,
854,
598,
6317,
540,
380,
25636,
635,
326,
775,
1203,
471,
732,
1044,
2690,
1520,
18,
540,
380,
1660,
5614,
5217,
518,
364,
326,
1044,
1203,
1427,
716,
1044,
1203,
540,
380,
6317,
336,
326,
2145,
2146,
18,
540,
1195,
3639,
368,
16456,
732,
1338,
1608,
358,
741,
333,
309,
1915,
854,
25636,
13601,
3639,
368,
6317,
31,
3377,
760,
1230,
866,
471,
14088,
333,
309,
1915,
11526,
1404,
1281,
18,
3639,
368,
11329,
16456,
14024,
3560,
741,
1393,
21844,
13680,
358,
13251,
3639,
368,
1517,
296,
1918,
11,
598,
279,
775,
19,
23417,
2
] |
|
TunnelSelectionCriteria crit = new TunnelSelectionCriteria(); crit.setMaximumTunnelsRequired(1); crit.setMinimumTunnelsRequired(1); List tunnelIds = TunnelManagerFacade.getInstance().selectOutboundTunnelIds(crit); if (tunnelIds.size() <= 0) { return null; }
|
TunnelSelectionCriteria crit = new TunnelSelectionCriteria(); crit.setMaximumTunnelsRequired(1); crit.setMinimumTunnelsRequired(1); List tunnelIds = TunnelManagerFacade.getInstance().selectOutboundTunnelIds(crit); if (tunnelIds.size() <= 0) { return null; }
|
private TunnelId getOutboundTunnelId() { TunnelSelectionCriteria crit = new TunnelSelectionCriteria(); crit.setMaximumTunnelsRequired(1); crit.setMinimumTunnelsRequired(1); List tunnelIds = TunnelManagerFacade.getInstance().selectOutboundTunnelIds(crit); if (tunnelIds.size() <= 0) { return null; } return (TunnelId)tunnelIds.get(0); }
|
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/86759d2f9c63d203488c7e8b34e64be162a16ce9/SearchJob.java/clean/router/java/src/net/i2p/router/networkdb/kademlia/SearchJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
399,
8564,
548,
336,
17873,
20329,
548,
1435,
288,
202,
20329,
6233,
7231,
7921,
273,
394,
399,
8564,
6233,
7231,
5621,
202,
27826,
18,
542,
13528,
20329,
87,
3705,
12,
21,
1769,
202,
27826,
18,
542,
13042,
20329,
87,
3705,
12,
21,
1769,
202,
682,
14825,
2673,
273,
399,
8564,
1318,
12467,
18,
588,
1442,
7675,
4025,
17873,
20329,
2673,
12,
27826,
1769,
202,
430,
261,
19878,
2673,
18,
1467,
1435,
1648,
374,
13,
288,
202,
565,
327,
446,
31,
202,
97,
202,
202,
2463,
261,
20329,
548,
13,
19878,
2673,
18,
588,
12,
20,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
399,
8564,
548,
336,
17873,
20329,
548,
1435,
288,
202,
20329,
6233,
7231,
7921,
273,
394,
399,
8564,
6233,
7231,
5621,
202,
27826,
18,
542,
13528,
20329,
87,
3705,
12,
21,
1769,
202,
27826,
18,
542,
13042,
20329,
87,
3705,
12,
21,
1769,
202,
682,
14825,
2673,
273,
399,
8564,
1318,
12467,
18,
588,
1442,
7675,
4025,
17873,
20329,
2673,
12,
27826,
1769,
202,
430,
261,
19878,
2673,
18,
1467,
1435,
1648,
374,
13,
288,
202,
565,
327,
446,
31,
202,
97,
202,
202,
2463,
261,
20329,
548,
13,
19878,
2673,
18,
588,
12,
20,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String defaultValue = (String)defaultSettings.get("log4j.configuration"); log4jConfiguration = defaultValue;
|
String defaultValue = (String) defaultSettings.get("log4j.configuration"); log4jConfiguration = defaultValue;
|
private File getGpLogFile() { String log4jConfiguration = System.getProperty("log4j.configuration"); if (log4jConfiguration == null) { String defaultValue = (String)defaultSettings.get("log4j.configuration"); log4jConfiguration = defaultValue; } Properties props = new Properties(); try { props.load(new FileInputStream(log4jConfiguration)); } catch (IOException exc) { exc.printStackTrace(); System.exit(1); } return new File(props.getProperty("log4j.appender.R.File")); }
|
57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/d1f7468a4e01ba3fcdce5848cd7ff8367c3cce5c/ServerSettingsBean.java/clean/src/org/genepattern/server/webapp/jsf/ServerSettingsBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1387,
7162,
84,
19103,
1435,
288,
3639,
514,
613,
24,
78,
1750,
273,
2332,
18,
588,
1396,
2932,
1330,
24,
78,
18,
7025,
8863,
3639,
309,
261,
1330,
24,
78,
1750,
422,
446,
13,
288,
540,
202,
780,
4593,
273,
261,
780,
13,
1886,
2628,
18,
588,
2932,
1330,
24,
78,
18,
7025,
8863,
5411,
613,
24,
78,
1750,
273,
4593,
31,
10792,
289,
3639,
6183,
3458,
273,
394,
6183,
5621,
3639,
775,
288,
5411,
3458,
18,
945,
12,
2704,
11907,
12,
1330,
24,
78,
1750,
10019,
3639,
289,
3639,
1044,
261,
14106,
3533,
13,
288,
5411,
3533,
18,
1188,
6332,
5621,
5411,
2332,
18,
8593,
12,
21,
1769,
3639,
289,
3639,
327,
394,
1387,
12,
9693,
18,
588,
1396,
2932,
1330,
24,
78,
18,
6923,
264,
18,
54,
18,
812,
7923,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1387,
7162,
84,
19103,
1435,
288,
3639,
514,
613,
24,
78,
1750,
273,
2332,
18,
588,
1396,
2932,
1330,
24,
78,
18,
7025,
8863,
3639,
309,
261,
1330,
24,
78,
1750,
422,
446,
13,
288,
540,
202,
780,
4593,
273,
261,
780,
13,
1886,
2628,
18,
588,
2932,
1330,
24,
78,
18,
7025,
8863,
5411,
613,
24,
78,
1750,
273,
4593,
31,
10792,
289,
3639,
6183,
3458,
273,
394,
6183,
5621,
3639,
775,
288,
5411,
3458,
18,
945,
12,
2704,
11907,
12,
1330,
24,
78,
1750,
10019,
3639,
289,
3639,
1044,
261,
14106,
3533,
13,
288,
5411,
3533,
18,
1188,
6332,
5621,
5411,
2332,
18,
8593,
12,
21,
1769,
3639,
289,
3639,
327,
394,
1387,
12,
9693,
2
] |
int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ua = union.width * union.height; if (ua > (r1a+r2a)*2) return null; /* The 2 factor should maybe be reconsidered. Perhaps 3/2 would be better? */
|
private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ua = union.width * union.height; if (ua > (r1a+r2a)*2) return null; /* The 2 factor should maybe be reconsidered. Perhaps 3/2 would be better? */ newEvent.setUpdateRect(union); return newEvent; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e4324f195b821a95e3fba2a565af3e14eb6e7f65/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
30001,
1133,
1825,
24827,
12699,
3783,
12,
12699,
1133,
12234,
1133,
16,
29159,
30001,
1133,
394,
1133,
13,
225,
288,
565,
13264,
436,
21,
273,
12234,
1133,
18,
588,
1891,
6120,
5621,
565,
13264,
436,
22,
273,
394,
1133,
18,
588,
1891,
6120,
5621,
565,
13264,
7812,
273,
436,
21,
18,
18910,
12,
86,
22,
1769,
565,
509,
436,
21,
69,
273,
436,
21,
18,
2819,
380,
436,
21,
18,
4210,
31,
565,
509,
436,
22,
69,
273,
436,
22,
18,
2819,
380,
436,
22,
18,
4210,
31,
565,
509,
10165,
225,
273,
7812,
18,
2819,
380,
7812,
18,
4210,
31,
565,
309,
261,
11886,
405,
261,
86,
21,
69,
15,
86,
22,
69,
17653,
22,
13,
1377,
327,
446,
31,
565,
1748,
1021,
576,
5578,
1410,
6944,
506,
283,
8559,
3585,
329,
18,
5722,
19312,
890,
19,
22,
4202,
4102,
506,
7844,
35,
1195,
565,
394,
1133,
18,
542,
1891,
6120,
12,
18910,
1769,
565,
327,
394,
1133,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
30001,
1133,
1825,
24827,
12699,
3783,
12,
12699,
1133,
12234,
1133,
16,
29159,
30001,
1133,
394,
1133,
13,
225,
288,
565,
13264,
436,
21,
273,
12234,
1133,
18,
588,
1891,
6120,
5621,
565,
13264,
436,
22,
273,
394,
1133,
18,
588,
1891,
6120,
5621,
565,
13264,
7812,
273,
436,
21,
18,
18910,
12,
86,
22,
1769,
565,
509,
436,
21,
69,
273,
436,
21,
18,
2819,
380,
436,
21,
18,
4210,
31,
565,
509,
436,
22,
69,
273,
436,
22,
18,
2819,
380,
436,
22,
18,
4210,
31,
565,
509,
10165,
225,
273,
7812,
18,
2819,
380,
7812,
18,
4210,
31,
565,
309,
261,
11886,
405,
261,
86,
21,
69,
15,
86,
22,
69,
17653,
22,
13,
2
] |
|
private void placeComponents() { GridLayout glContent = new GridLayout(); glContent.numColumns = 2; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5;
|
private void placeComponents( ) { GridLayout glContent = new GridLayout( ); glContent.numColumns = 2; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5;
|
private void placeComponents() { GridLayout glContent = new GridLayout(); glContent.numColumns = 2; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5; cmpContent = new Composite(shell, SWT.NONE); cmpContent.setLayout(glContent); GridLayout glGeneral = new GridLayout(); glContent.numColumns = 2; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5; cmpGeneral = new Composite(cmpContent, SWT.NONE); GridData gdCMPGeneral = new GridData(GridData.FILL_BOTH); cmpGeneral.setLayoutData(gdCMPGeneral); cmpGeneral.setLayout(glGeneral); Label lblStartColor = new Label(cmpGeneral, SWT.NONE); GridData gdLBLStartColor = new GridData(); lblStartColor.setLayoutData(gdLBLStartColor); lblStartColor.setText(Messages.getString("GradientEditorDialog.Lbl.StartColor")); //$NON-NLS-1$ fccStartColor = new FillChooserComposite(cmpGeneral, SWT.NONE, gCurrent.getStartColor(), false, false); GridData gdFCCStartColor = new GridData(GridData.FILL_HORIZONTAL); fccStartColor.setLayoutData(gdFCCStartColor); fccStartColor.addListener(this); Label lblEndColor = new Label(cmpGeneral, SWT.NONE); GridData gdLBLEndColor = new GridData(); lblEndColor.setLayoutData(gdLBLEndColor); lblEndColor.setText(Messages.getString("GradientEditorDialog.Lbl.EndColor")); //$NON-NLS-1$ fccEndColor = new FillChooserComposite(cmpGeneral, SWT.NONE, gCurrent.getEndColor(), false, false); GridData gdFCCEndColor = new GridData(GridData.FILL_HORIZONTAL); fccEndColor.setLayoutData(gdFCCEndColor); fccEndColor.addListener(this); Label lblDummy = new Label(cmpGeneral, SWT.NONE); GridData gdLBLDummy = new GridData(GridData.FILL_BOTH); lblDummy.setLayoutData(gdLBLDummy); createRotationPanel(); /* * cbCyclic = new Button(cmpContent, SWT.CHECK); GridData gdCBCyclic = new GridData(GridData.FILL_HORIZONTAL); * gdCBCyclic.horizontalSpan = 4; cbCyclic.setLayoutData(gdCBCyclic); cbCyclic.setText("Is Cyclic"); * cbCyclic.setSelection(gCurrent.isCyclic()); */ Group grpPreview = new Group(cmpContent, SWT.NONE); GridData gdGRPPreview = new GridData(GridData.FILL_BOTH); gdGRPPreview.horizontalSpan = 2; grpPreview.setLayoutData(gdGRPPreview); grpPreview.setLayout(new FillLayout()); grpPreview.setText(Messages.getString("GradientEditorDialog.Lbl.Preview")); //$NON-NLS-1$ cnvPreview = new FillCanvas(grpPreview, SWT.NO_FOCUS); cnvPreview.setFill(gCurrent); GridLayout glButtons = new GridLayout(); glButtons.numColumns = 2; glButtons.horizontalSpacing = 5; glButtons.verticalSpacing = 5; glButtons.marginHeight = 2; glButtons.marginWidth = 7; cmpButtons = new Composite(cmpContent, SWT.NONE); GridData gdCMPButtons = new GridData(GridData.FILL_HORIZONTAL); gdCMPButtons.horizontalSpan = 4; cmpButtons.setLayoutData(gdCMPButtons); cmpButtons.setLayout(glButtons); btnAccept = new Button(cmpButtons, SWT.PUSH); GridData gdBTNAccept = new GridData(GridData.FILL_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END); gdBTNAccept.grabExcessHorizontalSpace = true; btnAccept.setLayoutData(gdBTNAccept); btnAccept.setText(Messages.getString("Shared.Lbl.OK")); //$NON-NLS-1$ btnAccept.addSelectionListener(this); btnCancel = new Button(cmpButtons, SWT.PUSH); GridData gdBTNCancel = new GridData(GridData.HORIZONTAL_ALIGN_END); gdBTNCancel.grabExcessHorizontalSpace = false; btnCancel.setLayoutData(gdBTNCancel); btnCancel.setText(Messages.getString("Shared.Lbl.Cancel")); //$NON-NLS-1$ btnCancel.addSelectionListener(this); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c60a4815037b62e9358af2625eb6236e7c979d0f/GradientEditorDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/GradientEditorDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3166,
7171,
1435,
565,
288,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
2107,
3380,
273,
576,
31,
3639,
5118,
1350,
18,
18396,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
17824,
18006,
273,
1381,
31,
3639,
9411,
1350,
273,
394,
14728,
12,
10304,
16,
348,
8588,
18,
9826,
1769,
3639,
9411,
1350,
18,
542,
3744,
12,
7043,
1350,
1769,
3639,
7145,
3744,
5118,
12580,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
2107,
3380,
273,
576,
31,
3639,
5118,
1350,
18,
18396,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
17824,
18006,
273,
1381,
31,
3639,
9411,
12580,
273,
394,
14728,
12,
9625,
1350,
16,
348,
8588,
18,
9826,
1769,
3639,
7145,
751,
15551,
39,
4566,
12580,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
3639,
9411,
12580,
18,
542,
3744,
751,
12,
19016,
39,
4566,
12580,
1769,
3639,
9411,
12580,
18,
542,
3744,
12,
7043,
12580,
1769,
3639,
5287,
14284,
1685,
2957,
273,
394,
5287,
12,
9625,
12580,
16,
348,
8588,
18,
9826,
1769,
3639,
7145,
751,
15551,
12995,
48,
1685,
2957,
273,
394,
7145,
751,
5621,
3639,
14284,
1685,
2957,
18,
542,
3744,
751,
12,
19016,
12995,
48,
1685,
2957,
1769,
3639,
14284,
1685,
2957,
18,
542,
1528,
12,
5058,
18,
588,
780,
2932,
15651,
6946,
6353,
18,
48,
3083,
18,
1685,
2957,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
284,
952,
1685,
2957,
273,
394,
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,
3166,
7171,
1435,
565,
288,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
2107,
3380,
273,
576,
31,
3639,
5118,
1350,
18,
18396,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
17824,
18006,
273,
1381,
31,
3639,
9411,
1350,
273,
394,
14728,
12,
10304,
16,
348,
8588,
18,
9826,
1769,
3639,
9411,
1350,
18,
542,
3744,
12,
7043,
1350,
1769,
3639,
7145,
3744,
5118,
12580,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
2107,
3380,
273,
576,
31,
3639,
5118,
1350,
18,
18396,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
17824,
18006,
273,
1381,
31,
3639,
9411,
12580,
273,
394,
14728,
12,
9625,
1350,
16,
348,
8588,
18,
2
] |
categoryPanelHolder.add(BorderLayout.CENTER, currentCategoryPanel);
|
categoryPanelHolder.add(currentCategoryPanel, BorderLayout.CENTER);
|
private void setCurrentPanel(CategoryPanel panel){ categoryPanelHolder.removeAll(); currentCategoryPanel = panel; if (currentCategoryPanel != null){ categoryPanelHolder.add(BorderLayout.CENTER, currentCategoryPanel); invalidate(); validate(); repaint(); // sigh } }
|
1161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1161/fb5237b97d1cd55b8a529b015a4a58a9624a9fd5/ConsolePreferencesPanel.java/clean/src/free/jin/console/ConsolePreferencesPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
12589,
5537,
12,
4457,
5537,
6594,
15329,
565,
3150,
5537,
6064,
18,
4479,
1595,
5621,
565,
783,
4457,
5537,
273,
6594,
31,
565,
309,
261,
2972,
4457,
5537,
480,
446,
15329,
1377,
3150,
5537,
6064,
18,
1289,
12,
2972,
4457,
5537,
16,
30814,
18,
19835,
1769,
1377,
11587,
5621,
1377,
1954,
5621,
1377,
24962,
5621,
368,
272,
2031,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12589,
5537,
12,
4457,
5537,
6594,
15329,
565,
3150,
5537,
6064,
18,
4479,
1595,
5621,
565,
783,
4457,
5537,
273,
6594,
31,
565,
309,
261,
2972,
4457,
5537,
480,
446,
15329,
1377,
3150,
5537,
6064,
18,
1289,
12,
2972,
4457,
5537,
16,
30814,
18,
19835,
1769,
1377,
11587,
5621,
1377,
1954,
5621,
1377,
24962,
5621,
368,
272,
2031,
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,
-100,
-100
] |
try { setId((String) evalAttr("id", getIdExpr(), String.class)); } catch (NullAttributeException ex) { }
|
String string = null;
|
private void evaluateExpressions() throws JspException { try { setId((String) evalAttr("id", getIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setBundle((String) evalAttr("bundle", getBundleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setLocale((String) evalAttr("locale", getLocaleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setHeader((String) evalAttr("header", getHeaderExpr(), String.class)); } catch (NullAttributeException ex) { } try { setFooter((String) evalAttr("footer", getFooterExpr(), String.class)); } catch (NullAttributeException ex) { } try { setMessage((String) evalAttr("message", getMessageExpr(), String.class)); } catch (NullAttributeException ex) { } }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/022bd23c954cf673e53731849d562b3c295473f1/ELMessagesTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELMessagesTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
10446,
12443,
780,
13,
5302,
3843,
2932,
350,
3113,
2634,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
3405,
12443,
780,
13,
5302,
3843,
2932,
9991,
3113,
10946,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
19848,
12443,
780,
13,
5302,
3843,
2932,
6339,
3113,
9595,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
529,
3113,
1723,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
7486,
12443,
780,
13,
5302,
3843,
2932,
4468,
3113,
3911,
4742,
9334,
4766,
1850,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
10859,
12443,
780,
13,
5302,
3843,
2932,
3374,
3113,
7911,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
13787,
12443,
780,
13,
5302,
3843,
2932,
14723,
3113,
2812,
7253,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
15227,
12443,
780,
13,
5302,
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,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
10446,
12443,
780,
13,
5302,
3843,
2932,
350,
3113,
2634,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
3405,
12443,
780,
13,
5302,
3843,
2932,
9991,
3113,
10946,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
19848,
12443,
780,
13,
5302,
3843,
2932,
6339,
3113,
9595,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
529,
3113,
2
] |
throw new PDOMNotImplementedError();
|
return false;
|
public boolean isAuto() throws DOMException { throw new PDOMNotImplementedError(); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/4c2b2120e49bda069e08a1cb69fb67723aedcb28/PDOMCPPFunction.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
27079,
1435,
1216,
4703,
503,
288,
202,
202,
12849,
394,
453,
8168,
1248,
8644,
668,
5621,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27079,
1435,
1216,
4703,
503,
288,
202,
202,
12849,
394,
453,
8168,
1248,
8644,
668,
5621,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
super(id, null, new LocaleChoiceRenderer());
|
super(id, LOCALES, new LocaleChoiceRenderer());
|
public LocaleDropDownChoice(String id) { super(id, null, new LocaleChoiceRenderer()); // set the model that gets the current locale, and that is used for // updating the current locale to property 'locale' of FormInput setModel(new PropertyModel(FormInput.this, "locale")); setChoices(LOCALES); }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/d387e6c691b85ace7b839c75105d70446effff74/FormInput.java/buggy/wicket-examples/src/java/wicket/examples/forminput/FormInput.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
6458,
7544,
4164,
10538,
12,
780,
612,
13,
202,
202,
95,
1082,
202,
9565,
12,
350,
16,
446,
16,
394,
6458,
10538,
6747,
10663,
1082,
202,
759,
444,
326,
938,
716,
5571,
326,
783,
2573,
16,
471,
716,
353,
1399,
364,
1082,
202,
759,
9702,
326,
783,
2573,
358,
1272,
296,
6339,
11,
434,
2748,
1210,
1082,
202,
542,
1488,
12,
2704,
4276,
1488,
12,
1204,
1210,
18,
2211,
16,
315,
6339,
7923,
1769,
1082,
202,
542,
17442,
12,
1502,
3587,
11386,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6458,
7544,
4164,
10538,
12,
780,
612,
13,
202,
202,
95,
1082,
202,
9565,
12,
350,
16,
446,
16,
394,
6458,
10538,
6747,
10663,
1082,
202,
759,
444,
326,
938,
716,
5571,
326,
783,
2573,
16,
471,
716,
353,
1399,
364,
1082,
202,
759,
9702,
326,
783,
2573,
358,
1272,
296,
6339,
11,
434,
2748,
1210,
1082,
202,
542,
1488,
12,
2704,
4276,
1488,
12,
1204,
1210,
18,
2211,
16,
315,
6339,
7923,
1769,
1082,
202,
542,
17442,
12,
1502,
3587,
11386,
1769,
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
] |
char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN;
|
char matchCh = (char)getIndex(program, pc); pc += INDEX_LEN;
|
executeREBytecode(REGlobalData gData, char[] chars, int end) { int pc = 0; byte program[] = gData.regexp.program; int op = program[pc++]; int currentContinuation_op; int currentContinuation_pc; boolean result = false; currentContinuation_pc = 0; currentContinuation_op = REOP_END;if (debug) {System.out.println("Input = \"" + new String(chars) + "\", start at " + gData.cp);} for (;;) {if (debug) {System.out.println("Testing at " + gData.cp + ", op = " + op);} switch (op) { case REOP_EMPTY: result = true; break; case REOP_BOL: if (gData.cp != 0) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp - 1])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_EOL: if (gData.cp != end) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_WBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ !((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_WNONBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ ((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_DOT: result = (gData.cp != end && !isLineTerm(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_DIGIT: result = (gData.cp != end && isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONDIGIT: result = (gData.cp != end && !isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_SPACE: result = (gData.cp != end && isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONSPACE: result = (gData.cp != end && !isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_ALNUM: result = (gData.cp != end && isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONALNUM: result = (gData.cp != end && !isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_FLAT: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNMatcher(gData, offset, length, chars, end); } break; case REOP_FLATi: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNIMatcher(gData, offset, length, chars, end); } break; case REOP_FLAT1: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_FLAT1i: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_UCFLAT1: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_UCFLAT1i: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_ALT: { int nextpc; byte nextop; pushProgState(gData, 0, 0, null, currentContinuation_pc, currentContinuation_op); nextpc = pc + GET_OFFSET(program, pc); nextop = program[nextpc++]; pushBackTrackState(gData, nextop, nextpc); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_JUMP: { int offset; REProgState state = popProgState(gData); currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; offset = GET_OFFSET(program, pc); pc += offset; op = program[pc++]; } continue; case REOP_LPAREN: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; gData.set_parens(parenIndex, gData.cp, 0); op = program[pc++]; } continue; case REOP_RPAREN: { int cap_index; int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; cap_index = gData.parens_index(parenIndex); gData.set_parens(parenIndex, cap_index, gData.cp - cap_index); if (parenIndex > gData.lastParen) gData.lastParen = parenIndex; op = program[pc++]; } continue; case REOP_BACKREF: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; result = backrefMatcher(gData, parenIndex, chars, end); } break; case REOP_CLASS: { int index = GET_ARG(program, pc); pc += ARG_LEN; if (gData.cp != end) { if (classMatcher(gData, gData.regexp.classList[index], chars[gData.cp])) { gData.cp++; result = true; break; } } result = false; } break; case REOP_ASSERT: case REOP_ASSERT_NOT: { byte testOp; pushProgState(gData, 0, 0, gData.backTrackLast, currentContinuation_pc, currentContinuation_op); if (op == REOP_ASSERT) { testOp = REOP_ASSERTTEST; } else { testOp = REOP_ASSERTNOTTEST; } pushBackTrackState(gData, testOp, pc + GET_OFFSET(program, pc)); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_ASSERTTEST: case REOP_ASSERTNOTTEST: { REProgState state = popProgState(gData); gData.cp = state.index; gData.backTrackLast = state.savedBackTrackLast; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; if (result) { if (op == REOP_ASSERTTEST) { result = true; } else { result = false; } } else { if (op == REOP_ASSERTTEST) { // Do nothing } else { result = true; } } } break; case REOP_STAR: case REOP_PLUS: case REOP_OPT: case REOP_QUANT: case REOP_MINIMALSTAR: case REOP_MINIMALPLUS: case REOP_MINIMALOPT: case REOP_MINIMALQUANT: { int min, max; boolean greedy = false; switch (op) { case REOP_STAR: greedy = true; // fallthrough case REOP_MINIMALSTAR: min = 0; max = -1; break; case REOP_PLUS: greedy = true; // fallthrough case REOP_MINIMALPLUS: min = 1; max = -1; break; case REOP_OPT: greedy = true; // fallthrough case REOP_MINIMALOPT: min = 0; max = 1; break; case REOP_QUANT: greedy = true; // fallthrough case REOP_MINIMALQUANT: min = GET_ARG(program, pc); pc += ARG_LEN; max = GET_ARG(program, pc); pc += ARG_LEN; break; default: throw Kit.codeBug(); } pushProgState(gData, min, max, null, currentContinuation_pc, currentContinuation_op); if (greedy) { currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); /* Step over <parencount>, <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { if (min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; /* <parencount> <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); popProgState(gData); pc += 2 * ARG_LEN; // <parencount> & <parenindex> pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } } } continue; case REOP_ENDCHILD: pc = currentContinuation_pc; op = currentContinuation_op; continue; case REOP_REPEAT: { REProgState state = popProgState(gData); if (!result) { // // There's been a failure, see if we have enough // children. // if (state.min == 0) result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; /* <parencount> & <parenindex> */ pc = pc + GET_OFFSET(program, pc); break; } else { if (state.min == 0 && gData.cp == state.index) { // matched an empty string, that'll get us nowhere result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } int new_min = state.min, new_max = state.max; if (new_min != 0) new_min--; if (new_max != -1) new_max--; if (new_max == 0) { result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } pushProgState(gData, new_min, new_max, null, state.continuation_pc, state.continuation_op); currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; op = program[pc++]; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } } } continue; case REOP_MINIMALREPEAT: { REProgState state = popProgState(gData); if (!result) { // // Non-greedy failure - try to consume another child. // if (state.max == -1 || state.max > 0) { pushProgState(gData, state.min, state.max, null, state.continuation_pc, state.continuation_op); currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } op = program[pc++]; continue; } else { // Don't need to adjust pc since we're going to pop. currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } } else { if (state.min == 0 && gData.cp == state.index) { // Matched an empty string, that'll get us nowhere. result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } int new_min = state.min, new_max = state.max; if (new_min != 0) new_min--; if (new_max != -1) new_max--; pushProgState(gData, new_min, new_max, null, state.continuation_pc, state.continuation_op); if (new_min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } op = program[pc++]; } else { currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); popProgState(gData); pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } continue; } } case REOP_END: return true; default: throw Kit.codeBug(); } /* * If the match failed and there's a backtrack option, take it. * Otherwise this is a complete and utter failure. */ if (!result) { REBackTrackData backTrackData = gData.backTrackLast; if (backTrackData != null) { gData.backTrackLast = backTrackData.previous; gData.lastParen = backTrackData.lastParen; // XXX: If backTrackData will no longer be used, then // there is no need to clone backTrackData.parens if (backTrackData.parens != null) { gData.parens = (long[])backTrackData.parens.clone(); } gData.cp = backTrackData.cp; for (int k = 0; k < backTrackData.precedingStateTop; k++) gData.stateStack[k] = backTrackData.precedingState[k]; gData.stateStackTop = backTrackData.precedingStateTop + 1; gData.stateStack[gData.stateStackTop - 1] = backTrackData.currentState; currentContinuation_op = gData.stateStack[gData.stateStackTop - 1].continuation_op; currentContinuation_pc = gData.stateStack[gData.stateStackTop - 1].continuation_pc; pc = backTrackData.continuation_pc; op = backTrackData.continuation_op; continue; } else return false; } /* * Continue with the expression. If this the end of the child, use * the current continuation. */ op = program[pc++]; if (op == REOP_ENDCHILD) { pc = currentContinuation_pc; op = currentContinuation_op; } } }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/21f0e29bbdfc8503803ff1fb05a60d0d11f579d5/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1836,
862,
858,
16651,
12,
862,
5160,
751,
314,
751,
16,
1149,
8526,
5230,
16,
509,
679,
13,
565,
288,
3639,
509,
6125,
273,
374,
31,
3639,
1160,
5402,
8526,
273,
314,
751,
18,
17745,
18,
12890,
31,
3639,
509,
1061,
273,
5402,
63,
2436,
9904,
15533,
3639,
509,
783,
660,
23946,
67,
556,
31,
3639,
509,
783,
660,
23946,
67,
2436,
31,
3639,
1250,
563,
273,
629,
31,
3639,
783,
660,
23946,
67,
2436,
273,
374,
31,
3639,
783,
660,
23946,
67,
556,
273,
2438,
3665,
67,
4415,
31,
430,
261,
4148,
13,
288,
3163,
18,
659,
18,
8222,
2932,
1210,
273,
11843,
397,
394,
514,
12,
7549,
13,
397,
1548,
3113,
787,
622,
315,
397,
314,
751,
18,
4057,
1769,
97,
3639,
364,
261,
25708,
13,
288,
430,
261,
4148,
13,
288,
3163,
18,
659,
18,
8222,
2932,
22218,
622,
315,
397,
314,
751,
18,
4057,
397,
3104,
1061,
273,
315,
397,
1061,
1769,
97,
5411,
1620,
261,
556,
13,
288,
5411,
648,
2438,
3665,
67,
13625,
30,
7734,
563,
273,
638,
31,
7734,
898,
31,
5411,
648,
2438,
3665,
67,
38,
1741,
30,
7734,
309,
261,
75,
751,
18,
4057,
480,
374,
13,
288,
10792,
309,
261,
75,
751,
18,
5421,
12554,
747,
18701,
14015,
75,
751,
18,
17745,
18,
7133,
473,
6756,
5937,
67,
12845,
30690,
13,
480,
374,
3719,
288,
13491,
309,
16051,
291,
1670,
4065,
12,
7549,
63,
75,
751,
18,
4057,
300,
404,
22643,
288,
18701,
563,
273,
629,
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,
1836,
862,
858,
16651,
12,
862,
5160,
751,
314,
751,
16,
1149,
8526,
5230,
16,
509,
679,
13,
565,
288,
3639,
509,
6125,
273,
374,
31,
3639,
1160,
5402,
8526,
273,
314,
751,
18,
17745,
18,
12890,
31,
3639,
509,
1061,
273,
5402,
63,
2436,
9904,
15533,
3639,
509,
783,
660,
23946,
67,
556,
31,
3639,
509,
783,
660,
23946,
67,
2436,
31,
3639,
1250,
563,
273,
629,
31,
3639,
783,
660,
23946,
67,
2436,
273,
374,
31,
3639,
783,
660,
23946,
67,
556,
273,
2438,
3665,
67,
4415,
31,
430,
261,
4148,
13,
288,
3163,
18,
659,
18,
8222,
2932,
1210,
273,
11843,
397,
394,
514,
12,
7549,
13,
397,
1548,
3113,
787,
622,
315,
397,
314,
2
] |
StringBuffer sb = new StringBuffer(); int length = Integer.parseInt(lengthStr); int places = Integer.parseInt(placesStr); for (int i = 0; i < length; i++) { sb.append("#"); if ((length - i) == places) { sb.append('.'); } } return sb.toString();
|
StringBuffer sb = new StringBuffer(); int length = Integer.parseInt(lengthStr); int places = Integer.parseInt(placesStr); for (int i = 0; i < length; i++) { sb.append("#"); if ((length - i) == places) { sb.append('.'); } } return sb.toString();
|
private String decimalFormat(String lengthStr, String placesStr) { StringBuffer sb = new StringBuffer(); int length = Integer.parseInt(lengthStr); int places = Integer.parseInt(placesStr); for (int i = 0; i < length; i++) { sb.append("#"); if ((length - i) == places) { sb.append('.'); } } return sb.toString(); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/a591b9db7c08ea14759dd4714d93db547aaa7a77/MondrianFoodMartLoader.java/clean/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
6970,
1630,
12,
780,
769,
1585,
16,
514,
12576,
1585,
13,
288,
377,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
377,
202,
377,
202,
474,
769,
273,
2144,
18,
2670,
1702,
12,
2469,
1585,
1769,
377,
202,
474,
12576,
273,
2144,
18,
2670,
1702,
12,
11350,
1585,
1769,
377,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
769,
31,
277,
27245,
288,
377,
202,
202,
18366,
18,
6923,
2932,
7,
8863,
377,
202,
202,
430,
14015,
2469,
300,
277,
13,
422,
12576,
13,
288,
377,
1082,
202,
18366,
18,
6923,
2668,
1093,
1769,
377,
202,
202,
97,
377,
202,
97,
377,
202,
2463,
2393,
18,
10492,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
6970,
1630,
12,
780,
769,
1585,
16,
514,
12576,
1585,
13,
288,
377,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
377,
202,
377,
202,
474,
769,
273,
2144,
18,
2670,
1702,
12,
2469,
1585,
1769,
377,
202,
474,
12576,
273,
2144,
18,
2670,
1702,
12,
11350,
1585,
1769,
377,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
769,
31,
277,
27245,
288,
377,
202,
202,
18366,
18,
6923,
2932,
7,
8863,
377,
202,
202,
430,
14015,
2469,
300,
277,
13,
422,
12576,
13,
288,
377,
1082,
202,
18366,
18,
6923,
2668,
1093,
1769,
377,
202,
202,
97,
377,
202,
97,
377,
202,
2463,
2393,
18,
10492,
5621,
565,
289,
2,
-100,
-100,
-100,
-100
] |
if (secondaryElementsToSearch != null) { for (PsiElement element : secondaryElementsToSearch) { convertToUsageTarget(targets, element); } }
|
private PsiElement2UsageTargetAdapter[] convertToUsageTargets(final PsiElement[] primaryElementsToSearch, final PsiElement[] secondaryElementsToSearch) { final ArrayList<PsiElement2UsageTargetAdapter> targets = new ArrayList<PsiElement2UsageTargetAdapter>(); if (primaryElementsToSearch != null) { for (PsiElement element : primaryElementsToSearch) { convertToUsageTarget(targets, element); } } if (secondaryElementsToSearch != null) { for (PsiElement element : secondaryElementsToSearch) { convertToUsageTarget(targets, element); } } return targets.toArray(new PsiElement2UsageTargetAdapter[targets.size()]); }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/89d5c2936316b89d142eb5c483ee507148ad6c73/FindUsagesManager.java/buggy/source/com/intellij/find/findUsages/FindUsagesManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
453,
7722,
1046,
22,
5357,
2326,
4216,
8526,
8137,
5357,
9432,
12,
6385,
453,
7722,
1046,
8526,
3354,
3471,
774,
2979,
16,
727,
453,
7722,
1046,
8526,
9946,
3471,
774,
2979,
13,
288,
565,
727,
2407,
32,
52,
7722,
1046,
22,
5357,
2326,
4216,
34,
5774,
273,
394,
2407,
32,
52,
7722,
1046,
22,
5357,
2326,
4216,
34,
5621,
565,
309,
261,
8258,
3471,
774,
2979,
480,
446,
13,
288,
1377,
364,
261,
52,
7722,
1046,
930,
294,
3354,
3471,
774,
2979,
13,
288,
3639,
8137,
5357,
2326,
12,
11358,
16,
930,
1769,
1377,
289,
565,
289,
565,
309,
261,
19674,
3471,
774,
2979,
480,
446,
13,
288,
1377,
364,
261,
52,
7722,
1046,
930,
294,
9946,
3471,
774,
2979,
13,
288,
3639,
8137,
5357,
2326,
12,
11358,
16,
930,
1769,
1377,
289,
565,
289,
565,
327,
5774,
18,
31447,
12,
2704,
453,
7722,
1046,
22,
5357,
2326,
4216,
63,
11358,
18,
1467,
1435,
19226,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
453,
7722,
1046,
22,
5357,
2326,
4216,
8526,
8137,
5357,
9432,
12,
6385,
453,
7722,
1046,
8526,
3354,
3471,
774,
2979,
16,
727,
453,
7722,
1046,
8526,
9946,
3471,
774,
2979,
13,
288,
565,
727,
2407,
32,
52,
7722,
1046,
22,
5357,
2326,
4216,
34,
5774,
273,
394,
2407,
32,
52,
7722,
1046,
22,
5357,
2326,
4216,
34,
5621,
565,
309,
261,
8258,
3471,
774,
2979,
480,
446,
13,
288,
1377,
364,
261,
52,
7722,
1046,
930,
294,
3354,
3471,
774,
2979,
13,
288,
3639,
8137,
5357,
2326,
12,
11358,
16,
930,
1769,
1377,
289,
565,
289,
565,
309,
261,
19674,
3471,
774,
2979,
480,
446,
13,
288,
1377,
364,
261,
52,
7722,
1046,
930,
294,
9946,
2
] |
|
protected String getStrColorValue( Object value )
|
protected String getStrColorValue( int value )
|
protected String getStrColorValue( Object value ) { int intValue = getColorValue( value ); if( intValue == -1 ) { return null; } if( value instanceof String ) { return ( String ) value; } return StringUtil.toRgbText( intValue ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/72ef136b489c89c0ad7e3c18e455bac267b6d962/EngineIRVisitor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
24017,
2957,
620,
12,
1033,
460,
262,
202,
95,
202,
202,
474,
9307,
273,
15672,
620,
12,
460,
11272,
202,
202,
430,
12,
9307,
422,
300,
21,
262,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
9506,
202,
430,
12,
460,
1276,
514,
262,
202,
202,
95,
1082,
202,
2463,
261,
514,
262,
460,
31,
202,
202,
97,
9506,
202,
2463,
14205,
18,
869,
22333,
1528,
12,
9307,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
514,
24017,
2957,
620,
12,
1033,
460,
262,
202,
95,
202,
202,
474,
9307,
273,
15672,
620,
12,
460,
11272,
202,
202,
430,
12,
9307,
422,
300,
21,
262,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
9506,
202,
430,
12,
460,
1276,
514,
262,
202,
202,
95,
1082,
202,
2463,
261,
514,
262,
460,
31,
202,
202,
97,
9506,
202,
2463,
14205,
18,
869,
22333,
1528,
12,
9307,
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
] |
if (binding == null || !binding.isValidBinding()) {
|
if (binding == null) { return null; } else if (!binding.isValidBinding()) { switch(binding.problemId()) { case ProblemReasons.NotVisible : case ProblemReasons.NonStaticReferenceInStaticContext : if (binding instanceof ProblemReferenceBinding) { ProblemReferenceBinding problemReferenceBinding = (ProblemReferenceBinding) binding; Binding binding2 = problemReferenceBinding.original; if (binding2 != null && binding2 instanceof org.eclipse.jdt.internal.compiler.lookup.TypeBinding) { return this.getTypeBinding((org.eclipse.jdt.internal.compiler.lookup.TypeBinding) binding2); } } }
|
IBinding resolveName(Name name) { AstNode node = (AstNode) this.newAstToOldAst.get(name); int index = name.index; if (node instanceof QualifiedNameReference) { QualifiedNameReference qualifiedNameReference = (QualifiedNameReference) node; int qualifiedNameLength = qualifiedNameReference.tokens.length; int indexInQualifiedName = qualifiedNameLength - index; // one-based int indexOfFirstFieldBinding = qualifiedNameReference.indexOfFirstFieldBinding; // one-based int otherBindingLength = qualifiedNameLength - indexOfFirstFieldBinding; if (indexInQualifiedName < indexOfFirstFieldBinding) { // a extra lookup is required BlockScope internalScope = (BlockScope) this.astNodesToBlockScope.get(name); Binding binding = null; if (internalScope == null) { binding = this.scope.getTypeOrPackage(CharOperation.subarray(qualifiedNameReference.tokens, 0, indexInQualifiedName)); } else { binding = internalScope.getTypeOrPackage(CharOperation.subarray(qualifiedNameReference.tokens, 0, indexInQualifiedName)); } if (binding != null && binding.isValidBinding()) { if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.PackageBinding) { return this.getPackageBinding((org.eclipse.jdt.internal.compiler.lookup.PackageBinding)binding); } else { // it is a type return this.getTypeBinding((org.eclipse.jdt.internal.compiler.lookup.TypeBinding)binding); } } return null; } else if (indexInQualifiedName == indexOfFirstFieldBinding) { if (qualifiedNameReference.isTypeReference()) { return this.getTypeBinding((ReferenceBinding)qualifiedNameReference.binding); } else { Binding binding = qualifiedNameReference.binding; if (binding != null && binding.isValidBinding()) { return this.getVariableBinding((org.eclipse.jdt.internal.compiler.lookup.VariableBinding) binding); } else { return null; } } } else { /* This is the case for a name which is part of a qualified name that * cannot be resolved. See PR 13063. */ if (qualifiedNameReference.otherBindings == null || (otherBindingLength - index - 1) < 0) { return null; } else { return this.getVariableBinding(qualifiedNameReference.otherBindings[otherBindingLength - index - 1]); } } } else if (node instanceof QualifiedTypeReference) { QualifiedTypeReference qualifiedTypeReference = (QualifiedTypeReference) node; if (qualifiedTypeReference.binding == null || !qualifiedTypeReference.binding.isValidBinding()) { return null; } if (index == 0) { return this.getTypeBinding(qualifiedTypeReference.binding.leafComponentType()); } else { int qualifiedTypeLength = qualifiedTypeReference.tokens.length; int indexInQualifiedName = qualifiedTypeLength - index; // one-based if (indexInQualifiedName >= 0) { BlockScope internalScope = (BlockScope) this.astNodesToBlockScope.get(name); Binding binding = null; if (internalScope == null) { binding = this.scope.getTypeOrPackage(CharOperation.subarray(qualifiedTypeReference.tokens, 0, indexInQualifiedName)); } else { binding = internalScope.getTypeOrPackage(CharOperation.subarray(qualifiedTypeReference.tokens, 0, indexInQualifiedName)); } if (binding != null && binding.isValidBinding()) { if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.PackageBinding) { return this.getPackageBinding((org.eclipse.jdt.internal.compiler.lookup.PackageBinding)binding); } else { // it is a type return this.getTypeBinding((org.eclipse.jdt.internal.compiler.lookup.TypeBinding)binding); } } } } } else if (node instanceof ImportReference) { ImportReference importReference = (ImportReference) node; int importReferenceLength = importReference.tokens.length; int indexInImportReference = importReferenceLength - index; // one-based if (indexInImportReference >= 0) { Binding binding = this.scope.getTypeOrPackage(CharOperation.subarray(importReference.tokens, 0, indexInImportReference)); if (binding != null && binding.isValidBinding()) { if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.PackageBinding) { return this.getPackageBinding((org.eclipse.jdt.internal.compiler.lookup.PackageBinding)binding); } else { // it is a type return this.getTypeBinding((org.eclipse.jdt.internal.compiler.lookup.TypeBinding)binding); } } } } else if (node instanceof CompilationUnitDeclaration) { CompilationUnitDeclaration compilationUnitDeclaration = (CompilationUnitDeclaration) node; org.eclipse.jdt.internal.compiler.ast.TypeDeclaration[] types = compilationUnitDeclaration.types; if (types == null || types.length == 0) { return null; } org.eclipse.jdt.internal.compiler.ast.TypeDeclaration type = (org.eclipse.jdt.internal.compiler.ast.TypeDeclaration) types[0]; if (type != null) { ITypeBinding typeBinding = this.getTypeBinding(type.binding); if (typeBinding == null) { return null; } return typeBinding.getPackage(); } } else if (node instanceof AbstractMethodDeclaration) { AbstractMethodDeclaration methodDeclaration = (AbstractMethodDeclaration) node; if (methodDeclaration != null) { IMethodBinding methodBinding = this.getMethodBinding(methodDeclaration.binding); if (methodBinding == null) { return null; } return methodBinding; } } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.TypeDeclaration) { org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDeclaration = (org.eclipse.jdt.internal.compiler.ast.TypeDeclaration) node; ITypeBinding typeBinding = this.getTypeBinding(typeDeclaration.binding); if (typeBinding == null) { return null; } return typeBinding; } if (node instanceof SingleNameReference) { SingleNameReference singleNameReference = (SingleNameReference) node; if (singleNameReference.isTypeReference()) { return this.getTypeBinding((ReferenceBinding)singleNameReference.binding); } else { // this is a variable or a field Binding binding = singleNameReference.binding; if (binding != null && binding.isValidBinding()) { return this.getVariableBinding((org.eclipse.jdt.internal.compiler.lookup.VariableBinding) binding); } else { return null; } } } else if (node instanceof QualifiedSuperReference) { QualifiedSuperReference qualifiedSuperReference = (QualifiedSuperReference) node; return this.getTypeBinding(qualifiedSuperReference.qualification.binding); } else if (node instanceof LocalDeclaration) { return this.getVariableBinding(((LocalDeclaration)node).binding); } else if (node instanceof FieldReference) { return getVariableBinding(((FieldReference) node).binding); } else if (node instanceof SingleTypeReference) { SingleTypeReference singleTypeReference = (SingleTypeReference) node; org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding = singleTypeReference.binding; if (binding == null || !binding.isValidBinding()) { return null; } return this.getTypeBinding(binding.leafComponentType()); } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) { org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration = (org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) node; return this.getVariableBinding(fieldDeclaration.binding); } else if (node instanceof MessageSend) { MessageSend messageSend = (MessageSend) node; return getMethodBinding(messageSend.binding); } return null; }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/f68c3205ee145ec7c1c029e73701ee13aaf91bec/DefaultBindingResolver.java/buggy/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
45,
5250,
2245,
461,
12,
461,
508,
13,
288,
202,
202,
21385,
907,
756,
273,
261,
21385,
907,
13,
333,
18,
2704,
21385,
774,
7617,
21385,
18,
588,
12,
529,
1769,
202,
202,
474,
770,
273,
508,
18,
1615,
31,
202,
202,
430,
261,
2159,
1276,
28696,
2404,
13,
288,
1082,
202,
12345,
2404,
24133,
2404,
273,
261,
12345,
2404,
13,
756,
31,
1082,
202,
474,
24133,
1782,
273,
24133,
2404,
18,
7860,
18,
2469,
31,
1082,
202,
474,
770,
382,
12345,
273,
24133,
1782,
300,
770,
31,
368,
1245,
17,
12261,
1082,
202,
474,
3133,
3759,
974,
5250,
273,
24133,
2404,
18,
31806,
3759,
974,
5250,
31,
368,
1245,
17,
12261,
1082,
202,
474,
1308,
5250,
1782,
273,
24133,
1782,
300,
3133,
3759,
974,
5250,
31,
1082,
202,
430,
261,
1615,
382,
12345,
411,
3133,
3759,
974,
5250,
13,
288,
9506,
202,
759,
279,
2870,
3689,
353,
1931,
9506,
202,
1768,
3876,
2713,
3876,
273,
261,
1768,
3876,
13,
333,
18,
689,
3205,
774,
1768,
3876,
18,
588,
12,
529,
1769,
9506,
202,
5250,
5085,
273,
446,
31,
9506,
202,
430,
261,
7236,
3876,
422,
446,
13,
288,
6862,
202,
7374,
273,
333,
18,
4887,
18,
588,
559,
1162,
2261,
12,
2156,
2988,
18,
1717,
1126,
12,
19724,
461,
2404,
18,
7860,
16,
374,
16,
770,
382,
12345,
10019,
9506,
202,
97,
469,
288,
6862,
202,
7374,
273,
2713,
3876,
18,
588,
559,
1162,
2261,
12,
2156,
2988,
18,
1717,
1126,
12,
19724,
461,
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,
45,
5250,
2245,
461,
12,
461,
508,
13,
288,
202,
202,
21385,
907,
756,
273,
261,
21385,
907,
13,
333,
18,
2704,
21385,
774,
7617,
21385,
18,
588,
12,
529,
1769,
202,
202,
474,
770,
273,
508,
18,
1615,
31,
202,
202,
430,
261,
2159,
1276,
28696,
2404,
13,
288,
1082,
202,
12345,
2404,
24133,
2404,
273,
261,
12345,
2404,
13,
756,
31,
1082,
202,
474,
24133,
1782,
273,
24133,
2404,
18,
7860,
18,
2469,
31,
1082,
202,
474,
770,
382,
12345,
273,
24133,
1782,
300,
770,
31,
368,
1245,
17,
12261,
1082,
202,
474,
3133,
3759,
974,
5250,
273,
24133,
2404,
18,
31806,
3759,
974,
5250,
31,
368,
1245,
17,
12261,
1082,
202,
474,
1308,
5250,
2
] |
rhs = stack[stackTop];
|
Object rhs = stack[stackTop];
|
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/052726b68e684efc593535d50a73767571084837/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2146,
16,
15261,
16,
833,
16,
2295,
1162,
3651,
16,
326,
751,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
261,
4293,
1162,
3651,
18,
3175,
1557,
422,
446,
13,
18701,
692,
374,
294,
2295,
1162,
3651,
18,
3175,
1557,
18,
2469,
31,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
943,
7833,
6148,
273,
326,
751,
18,
1282,
2747,
7833,
6148,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
3639,
727,
509,
15234,
67,
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,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2
] |
}
|
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ParameterNode(name, select.clone(stylesheet), type); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ParameterNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ParameterNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5035,
907,
3236,
12,
24656,
13820,
13,
225,
288,
565,
5035,
907,
325,
273,
394,
5498,
907,
12,
529,
16,
11794,
2027,
18,
14056,
12,
19403,
3631,
29159,
618,
1769,
565,
309,
261,
5906,
480,
446,
13,
1377,
288,
3639,
325,
18,
5906,
273,
2325,
18,
14056,
12,
19403,
1769,
540,
309,
261,
4285,
480,
446,
13,
1377,
288,
3639,
325,
18,
4285,
273,
1024,
18,
14056,
12,
19403,
1769,
540,
327,
325,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5035,
907,
3236,
12,
24656,
13820,
13,
225,
288,
565,
5035,
907,
325,
273,
394,
5498,
907,
12,
529,
16,
11794,
2027,
18,
14056,
12,
19403,
3631,
29159,
618,
1769,
565,
309,
261,
5906,
480,
446,
13,
1377,
288,
3639,
325,
18,
5906,
273,
2325,
18,
14056,
12,
19403,
1769,
540,
309,
261,
4285,
480,
446,
13,
1377,
288,
3639,
325,
18,
4285,
273,
1024,
18,
14056,
12,
19403,
1769,
540,
327,
325,
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
] |
|
public AjaxEditableLabel setLabel(final IModel labelModel)
|
public final AjaxEditableLabel setLabel(final IModel labelModel)
|
public AjaxEditableLabel setLabel(final IModel labelModel) { editor.setLabel(labelModel); return this; }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/0c7dcfeec9b7d11c48b985191f8ec20fea95c5ba/AjaxEditableLabel.java/buggy/wicket-extensions/src/java/wicket/extensions/ajax/markup/html/AjaxEditableLabel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
18772,
15470,
2224,
16558,
12,
6385,
467,
1488,
1433,
1488,
13,
202,
95,
202,
202,
9177,
18,
542,
2224,
12,
1925,
1488,
1769,
202,
202,
2463,
333,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18772,
15470,
2224,
16558,
12,
6385,
467,
1488,
1433,
1488,
13,
202,
95,
202,
202,
9177,
18,
542,
2224,
12,
1925,
1488,
1769,
202,
202,
2463,
333,
31,
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,
-100,
-100,
-100
] |
assertNotNull(oMol.getMonomer("MOL1"));
|
assertNotNull(oMol.getMonomer("MOL1", "A"));
|
public void testPDBFileCoffein() { String filename = "data/coffeine.pdb"; InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename); try { ChemObjectReader oReader = new PDBReader(new InputStreamReader(ins)); assertNotNull(oReader); ChemFile oChemFile = (ChemFile)oReader.read(new ChemFile()); assertNotNull(oChemFile); assertEquals(oChemFile.getChemSequenceCount(), 1); oChemFile.setProperty(new String("test.chemfile"), new String("test.chemfile")); assertEquals(new String("test.chemfile"), oChemFile.getProperty("test.chemfile")); ChemSequence oSeq = oChemFile.getChemSequence(0); assertNotNull(oSeq); assertEquals(oSeq.getChemModelCount(), 1); oSeq.setProperty(new String("test.chemsequence"), new String("test.chemsequence")); assertEquals(new String("test.chemsequence"), oSeq.getProperty("test.chemsequence")); ChemModel oModel = oSeq.getChemModel(0); assertNotNull(oModel); assertEquals(oModel.getSetOfMolecules().getMoleculeCount(), 1); oModel.setProperty(new String("test.chemmodel"), new String("test.chemmodel")); assertEquals(new String("test.chemmodel"), oModel.getProperty("test.chemmodel")); BioPolymer oMol = (BioPolymer)oModel.getSetOfMolecules().getMolecule(0); assertNotNull(oMol); assertEquals(oMol.getAtomCount(), 14); assertNotNull(oMol.getMonomer("MOL1")); oMol.setProperty(new String("test.molecule"), new String("test.molecule")); assertEquals(new String("test.molecule"), oMol.getProperty("test.molecule")); Atom oAtom = oMol.getFirstAtom(); assertNotNull(oAtom); assertEquals(new String("C"), oAtom.getSymbol()); assertEquals(new Integer(1), oAtom.getProperty("pdb.serial")); assertEquals(new String("C1"), oAtom.getProperty("pdb.name")); assertEquals(new String(""), oAtom.getProperty("pdb.altLoc")); assertEquals(new String("MOL"), oAtom.getProperty("pdb.resName")); assertEquals(new String(""), oAtom.getProperty("pdb.chainID")); assertEquals(new String("1"), oAtom.getProperty("pdb.resSeq")); assertEquals(new String(""), oAtom.getProperty("pdb.iCode")); assertEquals(1.0, ((Double)oAtom.getProperty("pdb.occupancy")).doubleValue(), 0); assertEquals(0.0, ((Double)oAtom.getProperty("pdb.tempFactor")).doubleValue(), 0); assertEquals(new String(""), oAtom.getProperty("pdb.segID")); assertEquals(new String(""), oAtom.getProperty("pdb.element")); assertEquals(new String(""), oAtom.getProperty("pdb.charge")); oAtom = oMol.getAtoms()[3]; assertNotNull(oAtom); assertEquals(new String("O"), oAtom.getSymbol()); assertEquals(new Integer(4), oAtom.getProperty("pdb.serial")); assertEquals(new String("O4"), oAtom.getProperty("pdb.name")); assertEquals(new String(""), oAtom.getProperty("pdb.altLoc")); assertEquals(new String("MOL"), oAtom.getProperty("pdb.resName")); assertEquals(new String(""), oAtom.getProperty("pdb.chainID")); assertEquals(new String("1"), oAtom.getProperty("pdb.resSeq")); assertEquals(new String(""), oAtom.getProperty("pdb.iCode")); assertEquals(1.0, ((Double)oAtom.getProperty("pdb.occupancy")).doubleValue(), 0); assertEquals(0.0, ((Double)oAtom.getProperty("pdb.tempFactor")).doubleValue(), 0); assertEquals(new String(""), oAtom.getProperty("pdb.segID")); assertEquals(new String(""), oAtom.getProperty("pdb.element")); assertEquals(new String(""), oAtom.getProperty("pdb.charge")); oAtom = oMol.getLastAtom(); assertNotNull(oAtom); assertEquals(new String("N"), oAtom.getSymbol()); assertEquals(new Integer(14), oAtom.getProperty("pdb.serial")); assertEquals(new String("N14"), oAtom.getProperty("pdb.name")); assertEquals(new String(""), oAtom.getProperty("pdb.altLoc")); assertEquals(new String("MOL"), oAtom.getProperty("pdb.resName")); assertEquals(new String(""), oAtom.getProperty("pdb.chainID")); assertEquals(new String("1"), oAtom.getProperty("pdb.resSeq")); assertEquals(new String(""), oAtom.getProperty("pdb.iCode")); assertEquals(1.0, ((Double)oAtom.getProperty("pdb.occupancy")).doubleValue(), 0); assertEquals(0.0, ((Double)oAtom.getProperty("pdb.tempFactor")).doubleValue(), 0); assertEquals(new String(""), oAtom.getProperty("pdb.segID")); assertEquals(new String(""), oAtom.getProperty("pdb.element")); assertEquals(new String(""), oAtom.getProperty("pdb.charge")); } catch (Exception e) { fail(e.toString()); } }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/6fc05aca86d417eb218e45a23e409449083b6636/PDBReaderTest.java/buggy/src/org/openscience/cdk/test/io/PDBReaderTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
52,
2290,
812,
39,
792,
3030,
267,
1435,
288,
3639,
514,
1544,
273,
315,
892,
19,
71,
792,
3030,
558,
18,
17414,
14432,
3639,
5037,
2763,
273,
333,
18,
588,
797,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
3459,
1769,
202,
202,
698,
288,
5411,
26542,
921,
2514,
320,
2514,
273,
394,
21601,
2514,
12,
2704,
15322,
12,
2679,
10019,
5411,
25395,
12,
83,
2514,
1769,
5411,
26542,
812,
320,
20200,
812,
273,
261,
20200,
812,
13,
83,
2514,
18,
896,
12,
2704,
26542,
812,
10663,
5411,
25395,
12,
83,
20200,
812,
1769,
5411,
1815,
8867,
12,
83,
20200,
812,
18,
588,
20200,
4021,
1380,
9334,
404,
1769,
5411,
320,
20200,
812,
18,
542,
1396,
12,
2704,
514,
2932,
3813,
18,
1036,
768,
6,
3631,
394,
514,
2932,
3813,
18,
1036,
768,
7923,
1769,
2398,
1815,
8867,
12,
2704,
514,
2932,
3813,
18,
1036,
768,
6,
3631,
320,
20200,
812,
18,
588,
1396,
2932,
3813,
18,
1036,
768,
7923,
1769,
5411,
26542,
4021,
320,
6926,
273,
320,
20200,
812,
18,
588,
20200,
4021,
12,
20,
1769,
5411,
25395,
12,
83,
6926,
1769,
9506,
5411,
1815,
8867,
12,
83,
6926,
18,
588,
20200,
1488,
1380,
9334,
404,
1769,
5411,
320,
6926,
18,
542,
1396,
12,
2704,
514,
2932,
3813,
18,
1036,
6178,
6,
3631,
394,
514,
2932,
3813,
18,
1036,
6178,
7923,
1769,
2398,
1815,
8867,
12,
2704,
514,
2932,
3813,
18,
1036,
6178,
6,
3631,
320,
6926,
18,
588,
1396,
2932,
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,
52,
2290,
812,
39,
792,
3030,
267,
1435,
288,
3639,
514,
1544,
273,
315,
892,
19,
71,
792,
3030,
558,
18,
17414,
14432,
3639,
5037,
2763,
273,
333,
18,
588,
797,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
3459,
1769,
202,
202,
698,
288,
5411,
26542,
921,
2514,
320,
2514,
273,
394,
21601,
2514,
12,
2704,
15322,
12,
2679,
10019,
5411,
25395,
12,
83,
2514,
1769,
5411,
26542,
812,
320,
20200,
812,
273,
261,
20200,
812,
13,
83,
2514,
18,
896,
12,
2704,
26542,
812,
10663,
5411,
25395,
12,
83,
20200,
812,
1769,
5411,
1815,
8867,
12,
83,
20200,
812,
18,
588,
20200,
4021,
1380,
9334,
404,
1769,
5411,
320,
20200,
812,
18,
2
] |
return new RubyBignum(getRuntime(), value.shiftRight((int) shift));
|
return callCoerced(">>", other);
|
public RubyBignum op_rshift(RubyNumeric other) { long shift = other.getLongValue(); if (shift > Integer.MAX_VALUE || shift < Integer.MIN_VALUE) { throw new RangeError(getRuntime(), "bignum too big to convert into `int'"); } return new RubyBignum(getRuntime(), value.shiftRight((int) shift)); }
|
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyBignum.java/clean/src/org/jruby/RubyBignum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
38,
724,
379,
1061,
67,
86,
4012,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
1525,
4654,
273,
1308,
18,
588,
3708,
620,
5621,
3639,
309,
261,
4012,
405,
2144,
18,
6694,
67,
4051,
747,
4654,
411,
2144,
18,
6236,
67,
4051,
13,
288,
1082,
202,
12849,
394,
8086,
668,
12,
588,
5576,
9334,
315,
70,
724,
379,
4885,
5446,
358,
1765,
1368,
1375,
474,
4970,
1769,
202,
202,
97,
540,
327,
745,
4249,
2765,
72,
2932,
34,
2984,
16,
1308,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
38,
724,
379,
1061,
67,
86,
4012,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
1525,
4654,
273,
1308,
18,
588,
3708,
620,
5621,
3639,
309,
261,
4012,
405,
2144,
18,
6694,
67,
4051,
747,
4654,
411,
2144,
18,
6236,
67,
4051,
13,
288,
1082,
202,
12849,
394,
8086,
668,
12,
588,
5576,
9334,
315,
70,
724,
379,
4885,
5446,
358,
1765,
1368,
1375,
474,
4970,
1769,
202,
202,
97,
540,
327,
745,
4249,
2765,
72,
2932,
34,
2984,
16,
1308,
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
] |
REProgState()
|
REProgState(REProgState previous, int min, int max, int index, REBackTrackData backTrack, int continuation_pc, int continuation_op)
|
REProgState() { }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/21f0e29bbdfc8503803ff1fb05a60d0d11f579d5/NativeRegExp.java/clean/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2438,
626,
75,
1119,
12,
862,
626,
75,
1119,
2416,
16,
509,
1131,
16,
509,
943,
16,
509,
770,
16,
2438,
2711,
4402,
751,
1473,
4402,
16,
509,
17378,
67,
2436,
16,
509,
17378,
67,
556,
13,
565,
288,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2438,
626,
75,
1119,
12,
862,
626,
75,
1119,
2416,
16,
509,
1131,
16,
509,
943,
16,
509,
770,
16,
2438,
2711,
4402,
751,
1473,
4402,
16,
509,
17378,
67,
2436,
16,
509,
17378,
67,
556,
13,
565,
288,
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
] |
{ return (int) eventManager.getGlobalChannelWindowStart(w); }
|
{ return (int) eventManager.getGlobalChannelWindowStart(w); }
|
int getGlobalChannelWindowStart(int w) { return (int) eventManager.getGlobalChannelWindowStart(w); }
|
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
20591,
2909,
3829,
1685,
12,
474,
341,
13,
202,
95,
202,
202,
2463,
261,
474,
13,
23040,
18,
588,
5160,
2909,
3829,
1685,
12,
91,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
474,
20591,
2909,
3829,
1685,
12,
474,
341,
13,
202,
95,
202,
202,
2463,
261,
474,
13,
23040,
18,
588,
5160,
2909,
3829,
1685,
12,
91,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (bioEntity instanceof Exon && parent != null) { featureName = "CDS"; } else { Class bioEntityClass = bioEntity.getClass(); Set classes = DynamicUtil.decomposeClass(bioEntityClass); StringBuffer nameBuffer = new StringBuffer(); Iterator iter = classes.iterator(); while (iter.hasNext()) { Class thisClass = (Class) iter.next(); if (nameBuffer.length() > 0) { nameBuffer.append("_");
|
if (bioEntity instanceof Transcript && !(bioEntity instanceof TRNA)) { featureName = "mRNA"; } else { if (bioEntity instanceof Exon) { featureName = "CDS"; } else { if (bioEntity instanceof FivePrimeUTR) { featureName = "5'-UTR";
|
private void writeFeature(PrintWriter gffWriter, Chromosome chr, BioEntity bioEntity, Location location, Integer index, BioEntity parent) throws IOException { if (index == null) { index = new Integer(0); } StringBuffer lineBuffer = new StringBuffer(); lineBuffer.append(chromosomeFileNamePrefix(chr)).append("\t"); lineBuffer.append(FLYMINE_STRING).append("\t"); String featureName = null; if (bioEntity instanceof Transcript && !(bioEntity instanceof TRNA) && parent != null) { featureName = "mRNA"; } else { if (bioEntity instanceof Exon && parent != null) { featureName = "CDS"; } else { Class bioEntityClass = bioEntity.getClass(); Set classes = DynamicUtil.decomposeClass(bioEntityClass); StringBuffer nameBuffer = new StringBuffer(); Iterator iter = classes.iterator(); while (iter.hasNext()) { Class thisClass = (Class) iter.next(); if (nameBuffer.length() > 0) { nameBuffer.append("_"); } else { nameBuffer.append(TypeUtil.unqualifiedName(thisClass.getName())); } } featureName = nameBuffer.toString(); } } if ((bioEntity instanceof Transcript && !(bioEntity instanceof TRNA) || bioEntity instanceof Exon) && parent != null) { lineBuffer.append(featureName).append("\t"); } else { String lcName = featureName.toLowerCase(); lineBuffer.append(lcName).append("\t"); } if (location == null && bioEntity == chr) { // special case for Chromosome location lineBuffer.append(1).append("\t").append(chr.getLength()).append("\t"); } else { lineBuffer.append(location.getStart()).append("\t"); lineBuffer.append(location.getEnd()).append("\t"); } lineBuffer.append(0).append("\t"); int strand; if (location == null) { lineBuffer.append("."); } else { if (location.getStrand().intValue() == 1) { lineBuffer.append("+"); } else { if (location.getStrand().intValue() == -1) { lineBuffer.append("-"); } else { lineBuffer.append("."); } } } lineBuffer.append("\t"); if (location == null) { lineBuffer.append("."); } else { if (location.getPhase() == null) { lineBuffer.append("."); } else { lineBuffer.append(location.getPhase()); } } lineBuffer.append("\t"); Map attributes = new LinkedHashMap(); List identifiers = new ArrayList(); if (location == null && bioEntity == chr) { identifiers.add(chromosomeFileNamePrefix(chr)); } else { if (bioEntity.getIdentifier() == null) { identifiers.add(featureName + "_" + index); } else { if (bioEntity instanceof Exon && parent != null) { identifiers.add(parent.getIdentifier()); } else { identifiers.add(bioEntity.getIdentifier()); } } } if ((bioEntity instanceof Transcript && !(bioEntity instanceof TRNA) || bioEntity instanceof Exon) && parent != null) { attributes.put("mRNA", identifiers); } else { attributes.put(featureName, identifiers); } ArrayList flyMineIDs = new ArrayList(); flyMineIDs.add("FlyMineInternalID_" + bioEntity.getId()); attributes.put("Alias", flyMineIDs); attributes.put("FlyMineInternalID", (List) flyMineIDs.clone()); if (bioEntity instanceof Transcript && !(bioEntity instanceof TRNA) && parent != null) { ArrayList geneNameList = new ArrayList(); geneNameList.add(parent.getIdentifier()); attributes.put("Gene", geneNameList); } if (bioEntity instanceof ChromosomeBand) { ArrayList indexList = new ArrayList(); indexList.add(index.toString()); attributes.put("Index", indexList); } lineBuffer.append(SimpleGFFRecord.stringifyAttributes(attributes)); gffWriter.println(lineBuffer.toString()); }
|
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/dac46001fb0558d8df05ed51ebf8388bdb1d99af/WriteGFFTask.java/clean/flymine/model/genomic/src/java/org/flymine/gbrowse/WriteGFFTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
4595,
12,
5108,
2289,
26534,
2289,
16,
1680,
520,
16958,
4513,
16,
17311,
21209,
1943,
25091,
1943,
16,
7050,
2117,
16,
2144,
770,
16,
17311,
21209,
1943,
982,
13,
3639,
1216,
1860,
288,
3639,
309,
261,
1615,
422,
446,
13,
288,
5411,
770,
273,
394,
2144,
12,
20,
1769,
3639,
289,
3639,
6674,
980,
1892,
273,
394,
6674,
5621,
3639,
980,
1892,
18,
6923,
12,
16298,
16958,
4771,
2244,
12,
15182,
13,
2934,
6923,
31458,
88,
8863,
3639,
980,
1892,
18,
6923,
12,
42,
7076,
49,
3740,
67,
5804,
2934,
6923,
31458,
88,
8863,
3639,
514,
2572,
461,
273,
446,
31,
3639,
309,
261,
21010,
1943,
1276,
2604,
9118,
597,
401,
12,
21010,
1943,
1276,
4235,
11277,
13,
597,
982,
480,
446,
13,
288,
5411,
2572,
461,
273,
315,
81,
29712,
14432,
3639,
289,
469,
288,
5411,
309,
261,
21010,
1943,
1276,
1312,
265,
597,
982,
480,
446,
13,
288,
7734,
2572,
461,
273,
315,
39,
3948,
14432,
5411,
289,
469,
288,
7734,
1659,
25091,
1943,
797,
273,
25091,
1943,
18,
588,
797,
5621,
7734,
1000,
3318,
273,
12208,
1304,
18,
323,
23658,
797,
12,
21010,
1943,
797,
1769,
7734,
6674,
508,
1892,
273,
394,
6674,
5621,
7734,
4498,
1400,
273,
3318,
18,
9838,
5621,
7734,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
10792,
1659,
333,
797,
273,
261,
797,
13,
1400,
18,
4285,
5621,
10792,
309,
261,
529,
1892,
18,
2469,
1435,
405,
374,
13,
288,
13491,
508,
1892,
18,
6923,
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,
1045,
4595,
12,
5108,
2289,
26534,
2289,
16,
1680,
520,
16958,
4513,
16,
17311,
21209,
1943,
25091,
1943,
16,
7050,
2117,
16,
2144,
770,
16,
17311,
21209,
1943,
982,
13,
3639,
1216,
1860,
288,
3639,
309,
261,
1615,
422,
446,
13,
288,
5411,
770,
273,
394,
2144,
12,
20,
1769,
3639,
289,
3639,
6674,
980,
1892,
273,
394,
6674,
5621,
3639,
980,
1892,
18,
6923,
12,
16298,
16958,
4771,
2244,
12,
15182,
13,
2934,
6923,
31458,
88,
8863,
3639,
980,
1892,
18,
6923,
12,
42,
7076,
49,
3740,
67,
5804,
2934,
6923,
31458,
88,
8863,
3639,
514,
2572,
461,
273,
446,
31,
3639,
309,
261,
21010,
1943,
1276,
2604,
9118,
597,
401,
12,
21010,
1943,
1276,
2
] |
java.net.URL imgURL = ClassLoader.getSystemResource("/org/genepattern/gpge/resources/icons/" + name); if(imgURL != null) { return new ImageIcon(imgURL); } else { System.err.println("Unable to find " + name); return null; } }
|
java.net.URL imgURL = IconManager.class .getResource("/org/genepattern/gpge/resources/icons/" + name); if (imgURL != null) { return new ImageIcon(imgURL); } else { System.err.println("Unable to find " + name); return null; } }
|
public static Icon loadIcon(String name) { java.net.URL imgURL = ClassLoader.getSystemResource("/org/genepattern/gpge/resources/icons/" + name); if(imgURL != null) { return new ImageIcon(imgURL); } else { System.err.println("Unable to find " + name); return null; } }
|
57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/dc8687cbd931e0d31c24bba6f3cf6664f839fb62/IconManager.java/clean/clients/JavaGE/src/org/genepattern/gpge/ui/maindisplay/IconManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
16011,
1262,
5554,
12,
780,
508,
13,
288,
1377,
2252,
18,
2758,
18,
1785,
3774,
1785,
273,
9403,
18,
588,
3163,
1420,
2932,
19,
3341,
19,
4507,
881,
1344,
19,
6403,
908,
19,
4683,
19,
14516,
4898,
397,
508,
1769,
1377,
309,
12,
6081,
1785,
480,
446,
13,
288,
540,
327,
394,
3421,
5554,
12,
6081,
1785,
1769,
1377,
289,
469,
288,
540,
2332,
18,
370,
18,
8222,
2932,
3370,
358,
1104,
315,
397,
508,
1769,
540,
327,
446,
31,
1377,
289,
282,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
16011,
1262,
5554,
12,
780,
508,
13,
288,
1377,
2252,
18,
2758,
18,
1785,
3774,
1785,
273,
9403,
18,
588,
3163,
1420,
2932,
19,
3341,
19,
4507,
881,
1344,
19,
6403,
908,
19,
4683,
19,
14516,
4898,
397,
508,
1769,
1377,
309,
12,
6081,
1785,
480,
446,
13,
288,
540,
327,
394,
3421,
5554,
12,
6081,
1785,
1769,
1377,
289,
469,
288,
540,
2332,
18,
370,
18,
8222,
2932,
3370,
358,
1104,
315,
397,
508,
1769,
540,
327,
446,
31,
1377,
289,
282,
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
] |
elemId, TYPE, conn);
|
elemId, TYPE);
|
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ThreadCategory.setPrefix(LOG4J_CATEGORY); log = ThreadCategory.getInstance(this.getClass()); String elems = request.getParameter("elems"); String action = request.getParameter("action"); log.debug("Received action="+action+" elems="+elems); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(response .getOutputStream())); String strToSend = ""; try { HttpSession session = request.getSession(false); String refreshTime = (String)session.getAttribute("refreshTime"); int refreshtime = 300; if (refreshTime != null) { refreshtime = Integer.parseInt(refreshTime)*60; } Manager m = new Manager(); VMap map = null; List velems = new ArrayList();// List links = new ArrayList(); if (session != null) { map = (VMap) session.getAttribute("sessionMap"); if (map != null) { strToSend = action + "OK"; Integer[] nodeids = null; String TYPE = VElement.NODE_TYPE; boolean actionfound = false; if (action.equals(ADDNODES_ACTION)) { actionfound = true; String[] snodeids = elems.split(","); nodeids = new Integer[snodeids.length]; for (int i = 0; i<snodeids.length;i++) { nodeids[i] = new Integer(snodeids[i]); } } if (action.equals(ADDRANGE_ACTION)) { actionfound = true; nodeids = (Integer[]) NetworkElementFactory.getNodeIdsWithIpLike(elems).toArray(new Integer[0]); } if (action.equals(ADDNODES_NEIG_ACTION)) { actionfound = true; nodeids = (Integer[]) NetworkElementFactory.getLinkedNodeIdOnNode(Integer.parseInt(elems)).toArray(new Integer[0]); } if (action.equals(ADDNODES_WITH_NEIG_ACTION)) { actionfound = true; Set linkednodeids = NetworkElementFactory.getLinkedNodeIdOnNode(Integer.parseInt(elems)); linkednodeids.add(new Integer(elems)); nodeids = (Integer[]) linkednodeids.toArray(new Integer[0]); } if (action.equals(ADDMAPS_ACTION)) { actionfound = true; TYPE = VElement.MAP_TYPE; String[] snodeids = elems.split(","); nodeids = new Integer[snodeids.length]; for (int i = 0; i<snodeids.length;i++) { nodeids[i] = new Integer(snodeids[i]); } } // response for addElement if (actionfound) { log.debug("Before Checking map contains elems"); Connection conn = null; if(nodeids.length>0){ conn = Vault.getDbConnection(); } log.debug("Obtained connection"); for (int i = 0; i < nodeids.length; i++) { int elemId = nodeids[i].intValue(); if (map.containsElement(elemId, TYPE)) { log.debug("Action: " + action + " . Map Contains Element: " + elemId+TYPE); continue; } if (TYPE.equals(VElement.MAP_TYPE) && m.foundLoopOnMaps(map,elemId)) { strToSend += "&loopfound" + elemId; log.debug("Action: " + action + " . Map " + map.getName()+ "Loop Found On Element: " + elemId+TYPE); continue; } VElement curVElem = m.newElement(map.getId(), elemId, TYPE, conn); velems.add(curVElem); } // end for if(nodeids.length>0){ Vault.releaseDbConnection(conn); } log.debug("After Checking map contains elems"); log.debug("Before RefreshElements"); velems = m.refreshElements((VElement[]) velems.toArray(new VElement[0]),false); log.debug("After RefreshElements"); log.debug("Before getting/adding links"); conn = Vault.getDbConnection(); if (velems != null) { Iterator ite = velems.iterator(); while (ite.hasNext()) { // take the VElement object VElement ve = (VElement) ite.next(); // Get the link between ma objects and new Element List vElemLinks = m.getLinksOnElem(map .getAllElements(), ve, conn); // add MapElement to Map map.addElement(ve); // Add correpondant Links to Map map.addLinks((VLink[]) vElemLinks .toArray(new VLink[0])); // Add String to return to client strToSend += "&" + ve.getId() + ve.getType() + "+" + ve.getIcon() + "+" + ve.getLabel(); strToSend += "+" + ve.getRtc() + "+" + ve.getStatus() + "+" + ve.getSeverity(); // add String to return containing Links if (vElemLinks != null) { Iterator sub_ite = vElemLinks.iterator(); while (sub_ite.hasNext()) { VLink vl = (VLink) sub_ite.next(); strToSend += "&" + vl.getFirst().getId() + vl.getFirst().getType() + "+" + vl.getSecond().getId() + vl.getSecond().getType(); } } } // end cicle on element found } Vault.releaseDbConnection(conn); log.debug("After getting/adding links"); //end if velement to add } // and first if action found if (!actionfound) { if (action.equals(DELETENODES_ACTION)) { actionfound = true; TYPE = VElement.NODE_TYPE; String[] snodeids = elems.split(","); nodeids = new Integer[snodeids.length]; for (int i = 0; i<snodeids.length;i++) { nodeids[i] = new Integer(snodeids[i]); } } if (action.equals(DELETEMAPS_ACTION)) { actionfound = true; TYPE = VElement.MAP_TYPE; String[] snodeids = elems.split(","); nodeids = new Integer[snodeids.length]; for (int i = 0; i<snodeids.length;i++) { nodeids[i] = new Integer(snodeids[i]); } } if (actionfound) { for (int i = 0; i < nodeids.length; i++) { int elemId = nodeids[i].intValue(); if (map.containsElement(elemId, TYPE)){ map.removeLinksOnElementList(elemId,TYPE); velems.add(map.removeElement(elemId,TYPE)); strToSend += "&" + elemId + TYPE; } } } } if (action.equals(REFRESH_ACTION)) { actionfound = true; // First refresh Element objects velems = m.refreshElements(map.getAllElements(),true); //checks for only changed velements if (velems != null) { Iterator ite = velems.iterator(); while (ite.hasNext()) { VElement ve = (VElement) ite.next(); strToSend += "&" + ve.getId() + ve.getType() + "+" + ve.getIcon() + "+" + ve.getLabel(); strToSend += "+" + ve.getRtc() + "+" + ve.getStatus() + "+" + ve.getSeverity(); } } // Second Refresh Link Object on Map // Now is done using a very simple way // but really it's slow // the alternativ is anyway to analize all // links, 1 against other. // So with this solution more traffic // less stress on server // more work on client // We are waiting to attempt to mapd map.removeAllLinks(); // get all links on map List links = m.getLinks(map.getAllElements()); // add links to map map.addLinks((VLink[]) links.toArray(new VLink[0])); // write to client if (links != null) { Iterator ite = links.iterator(); while (ite.hasNext()) { VLink vl = (VLink) ite.next(); strToSend += "&" + vl.getFirst().getId() + vl.getFirst().getType() + "+" + vl.getSecond().getId() + vl.getSecond().getType(); } } } if (action.equals(CLEAR_ACTION)) { actionfound = true; map.removeAllLinks(); map.removeAllElements(); } if (actionfound) { session.setAttribute("sessionMap",map); } else { throw new Exception("action " + action + " not exists"); } } else { throw new Exception("Attribute session sessionMap is null"); } } else { throw new Exception("HttpSession not initialized"); } } catch (Exception e) { strToSend = action + "Failed"; log.error("Exception catch " + e); } finally { bw.write(strToSend); bw.close(); log.info("Sending response to the client '" + strToSend + "'"); } }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/d5b0121ba147eea97a444ae288f11e94118d5a54/LoadCurrentNodesServlet.java/buggy/opennms-webapp/src/main/java/org/opennms/web/map/LoadCurrentNodesServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1082,
202,
15069,
16517,
16,
1860,
288,
202,
202,
3830,
4457,
18,
542,
2244,
12,
4842,
24,
46,
67,
24847,
1769,
202,
202,
1330,
273,
4884,
4457,
18,
588,
1442,
12,
2211,
18,
588,
797,
10663,
202,
202,
780,
14733,
273,
590,
18,
588,
1662,
2932,
292,
7424,
8863,
202,
202,
780,
1301,
273,
590,
18,
588,
1662,
2932,
1128,
8863,
202,
202,
1330,
18,
4148,
2932,
8872,
1301,
1546,
15,
1128,
9078,
14733,
1546,
15,
292,
7424,
1769,
202,
202,
17947,
2289,
12986,
273,
394,
22490,
12,
2704,
24248,
12,
2740,
9506,
202,
18,
588,
4632,
1435,
10019,
202,
202,
780,
609,
28878,
273,
1408,
31,
202,
202,
698,
288,
1082,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
12,
5743,
1769,
1082,
202,
780,
4460,
950,
273,
261,
780,
13,
3184,
18,
588,
1499,
2932,
9144,
950,
8863,
1082,
202,
474,
1278,
455,
647,
494,
273,
11631,
31,
1875,
202,
430,
261,
9144,
950,
480,
446,
13,
288,
9506,
202,
1734,
455,
647,
494,
273,
2144,
18,
2670,
1702,
12,
9144,
950,
17653,
4848,
31,
1082,
202,
97,
1082,
202,
1318,
312,
273,
394,
8558,
5621,
1082,
202,
58,
863,
852,
273,
446,
31,
1082,
202,
682,
20631,
7424,
273,
394,
2407,
5621,
759,
1082,
202,
682,
4716,
273,
394,
2407,
5621,
1082,
202,
430,
261,
3184,
480,
446,
13,
288,
9506,
202,
1458,
273,
261,
58,
863,
13,
1339,
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,
741,
3349,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1082,
202,
15069,
16517,
16,
1860,
288,
202,
202,
3830,
4457,
18,
542,
2244,
12,
4842,
24,
46,
67,
24847,
1769,
202,
202,
1330,
273,
4884,
4457,
18,
588,
1442,
12,
2211,
18,
588,
797,
10663,
202,
202,
780,
14733,
273,
590,
18,
588,
1662,
2932,
292,
7424,
8863,
202,
202,
780,
1301,
273,
590,
18,
588,
1662,
2932,
1128,
8863,
202,
202,
1330,
18,
4148,
2932,
8872,
1301,
1546,
15,
1128,
9078,
14733,
1546,
15,
292,
7424,
1769,
202,
202,
17947,
2289,
12986,
273,
394,
22490,
12,
2704,
24248,
12,
2740,
9506,
202,
18,
588,
4632,
1435,
10019,
202,
202,
780,
609,
28878,
273,
2
] |
BasicTreeUI.this.tree.repaint();
|
tree.repaint();
|
public void treeExpanded(TreeExpansionEvent event) { BasicTreeUI.this.tree.repaint(); }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/d03b7ded9dacd5a74a8420d7dade451079b17d89/BasicTreeUI.java/clean/libraries/javalib/javax/swing/plaf/basic/BasicTreeUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2151,
17957,
12,
2471,
2966,
12162,
1133,
871,
13,
565,
288,
1377,
2151,
18,
14462,
1598,
5621,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2151,
17957,
12,
2471,
2966,
12162,
1133,
871,
13,
565,
288,
1377,
2151,
18,
14462,
1598,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String getBorderTopColor();
|
String getBorderTopColor( );
|
String getBorderTopColor();
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/418b538dedc46927b62e9d884dd3fc2419ed5e34/IScriptStyle.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/script/instance/IScriptStyle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
780,
2882,
1019,
3401,
2957,
5621,
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,
0
] |
[
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,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
780,
2882,
1019,
3401,
2957,
5621,
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,
-100
] |
System.out.println("Writing configuration files");
|
System.out.println("Parsing the process description: "+desc);
|
public ServerNodeController createNode( ProcessDescription desc, ClientNodeEventListener cnel, NodeEventFilter nef, ConfigurationWriter cw) throws Exception { // null-check if (desc == null) { throw new NullPointerException("Description is null"); } else if (cnel == null) { throw new NullPointerException("NodeEvent listener is null"); } else if (nef == null) { throw new NullPointerException("NodeEvent filter is null"); } final String procName = desc.getName(); // register the process name final ProcessEntry pe; synchronized (procs) { ProcessEntry origPE = (ProcessEntry) procs.get(procName); if (origPE != null) { throw new RuntimeException( "Process name \""+procName+"\" is already in"+ " use by another (running) process"); } pe = new ProcessEntry(desc); pe.state = ProcessEntry.LOADING; procs.put(procName, pe); } ServerNodeController snc; synchronized (pe) { try { // write config files if (cw != null) { if (verbose) { System.out.println("Writing configuration files"); } cw.writeConfigFiles(new File(tempPath)); } if (verbose) { System.out.println("Parsing the process description: "+desc); } // assemble the command-line and environment-variables String[][] tmp = parseProcessDescription(desc); String[] cmdLine = tmp[0]; String[] envVars = tmp[1]; // debugging... if (verbose) { System.out.println("\nCreate Node Controller:"); System.out.println("Process: "+desc); System.out.println("Command line["+cmdLine.length+"]:"); for (int i = 0; i < cmdLine.length; i++) { System.err.println(" "+cmdLine[i]); } System.err.println("Environment["+envVars.length+"]:"); for (int i = 0; i < envVars.length; i++) { System.err.println(" "+envVars[i]); } System.out.println(); } // create a callback for destroy-watching ServerNodeDestroyedCallback sndc = new ServerNodeDestroyedCallback() { public void nodeDestroyed(int exitVal) { ServerHostControllerImpl.this.nodeDestroyed(pe, exitVal); } }; // spawn the process snc = new ServerNodeControllerImpl( desc, cmdLine, envVars, sndc, cnel, nef); } catch (Exception e) { if (verbose) { System.out.println("Unable to create Node:"); e.printStackTrace(); } killNode(procName); throw e; } // update the proc-entry to "running" pe.snc = snc; pe.state = ProcessEntry.RUNNING; } return snc; }
|
8707 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8707/f0248ba40cebacdaa8a06726906c56230a1b56e7/ServerHostControllerImpl.java/clean/src/org/cougaar/tools/server/rmi/ServerHostControllerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3224,
907,
2933,
24584,
12,
1377,
4389,
3291,
3044,
16,
1377,
2445,
907,
7375,
276,
3084,
16,
1377,
2029,
1133,
1586,
1073,
74,
16,
1377,
4659,
2289,
14098,
13,
565,
1216,
1185,
225,
288,
565,
368,
446,
17,
1893,
565,
309,
261,
5569,
422,
446,
13,
288,
1377,
604,
394,
10108,
2932,
3291,
353,
446,
8863,
565,
289,
469,
309,
261,
71,
3084,
422,
446,
13,
288,
1377,
604,
394,
10108,
2932,
907,
1133,
2991,
353,
446,
8863,
565,
289,
469,
309,
261,
4644,
74,
422,
446,
13,
288,
1377,
604,
394,
10108,
2932,
907,
1133,
1034,
353,
446,
8863,
565,
289,
565,
727,
514,
5418,
461,
273,
3044,
18,
17994,
5621,
565,
368,
1744,
326,
1207,
508,
565,
727,
4389,
1622,
2804,
31,
565,
3852,
261,
27537,
13,
288,
1377,
4389,
1622,
1647,
1423,
273,
261,
2227,
1622,
13,
27009,
18,
588,
12,
9381,
461,
1769,
1377,
309,
261,
4949,
1423,
480,
446,
13,
288,
3639,
604,
394,
3235,
12,
5411,
315,
2227,
508,
11843,
15,
9381,
461,
9078,
2412,
353,
1818,
316,
6,
15,
5411,
315,
999,
635,
4042,
261,
8704,
13,
1207,
8863,
1377,
289,
1377,
2804,
273,
394,
4389,
1622,
12,
5569,
1769,
1377,
2804,
18,
2019,
273,
4389,
1622,
18,
7783,
1360,
31,
1377,
27009,
18,
458,
12,
9381,
461,
16,
2804,
1769,
565,
289,
565,
3224,
907,
2933,
4556,
71,
31,
565,
3852,
261,
347,
13,
288,
1377,
775,
288,
3639,
368,
1045,
642,
1390,
3639,
309,
261,
71,
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,
3224,
907,
2933,
24584,
12,
1377,
4389,
3291,
3044,
16,
1377,
2445,
907,
7375,
276,
3084,
16,
1377,
2029,
1133,
1586,
1073,
74,
16,
1377,
4659,
2289,
14098,
13,
565,
1216,
1185,
225,
288,
565,
368,
446,
17,
1893,
565,
309,
261,
5569,
422,
446,
13,
288,
1377,
604,
394,
10108,
2932,
3291,
353,
446,
8863,
565,
289,
469,
309,
261,
71,
3084,
422,
446,
13,
288,
1377,
604,
394,
10108,
2932,
907,
1133,
2991,
353,
446,
8863,
565,
289,
469,
309,
261,
4644,
74,
422,
446,
13,
288,
1377,
604,
394,
10108,
2932,
907,
1133,
1034,
353,
446,
8863,
565,
289,
565,
727,
514,
5418,
461,
273,
3044,
18,
17994,
5621,
565,
368,
1744,
326,
1207,
2
] |
return true;
|
return Boolean.TRUE;
|
public static boolean validateDouble(Object bean, ValidatorAction va, Field field, ActionMessages errors, HttpServletRequest request) { Double result = null; String value = null; if (isString(bean)) { value = (String) bean; } else { value = ValidatorUtils.getValueAsString(bean, field.getProperty()); } if (GenericValidator.isBlankOrNull(value)) { return true; } result = GenericTypeValidator.formatDouble(value); if (result == null) { errors.add(field.getKey(), Resources.getActionMessage(request, va, field)); } return result == null ? false : true; }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/5643e25dd644f2849fe9db78f1a75247d7bb68ea/FieldChecks.java/clean/src/share/org/apache/struts/validator/FieldChecks.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
1954,
5265,
12,
921,
3931,
16,
4766,
3639,
9150,
1803,
14162,
16,
2286,
652,
16,
4766,
3639,
4382,
5058,
1334,
16,
4766,
3639,
9984,
590,
13,
288,
3639,
3698,
563,
273,
446,
31,
3639,
514,
460,
273,
446,
31,
3639,
309,
261,
291,
780,
12,
14496,
3719,
288,
5411,
460,
273,
261,
780,
13,
3931,
31,
3639,
289,
469,
288,
5411,
460,
273,
9150,
1989,
18,
24805,
8092,
12,
14496,
16,
652,
18,
588,
1396,
10663,
3639,
289,
3639,
309,
261,
7014,
5126,
18,
291,
7796,
18936,
12,
1132,
3719,
288,
5411,
327,
3411,
18,
18724,
31,
3639,
289,
3639,
563,
273,
7928,
559,
5126,
18,
2139,
5265,
12,
1132,
1769,
3639,
309,
261,
2088,
422,
446,
13,
288,
5411,
1334,
18,
1289,
12,
1518,
18,
588,
653,
9334,
8128,
18,
588,
1803,
1079,
12,
2293,
16,
14162,
16,
652,
10019,
3639,
289,
3639,
327,
563,
422,
446,
692,
629,
294,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
1954,
5265,
12,
921,
3931,
16,
4766,
3639,
9150,
1803,
14162,
16,
2286,
652,
16,
4766,
3639,
4382,
5058,
1334,
16,
4766,
3639,
9984,
590,
13,
288,
3639,
3698,
563,
273,
446,
31,
3639,
514,
460,
273,
446,
31,
3639,
309,
261,
291,
780,
12,
14496,
3719,
288,
5411,
460,
273,
261,
780,
13,
3931,
31,
3639,
289,
469,
288,
5411,
460,
273,
9150,
1989,
18,
24805,
8092,
12,
14496,
16,
652,
18,
588,
1396,
10663,
3639,
289,
3639,
309,
261,
7014,
5126,
18,
291,
7796,
18936,
12,
1132,
3719,
288,
5411,
327,
3411,
18,
18724,
31,
3639,
289,
3639,
563,
273,
7928,
559,
5126,
18,
2139,
5265,
12,
1132,
1769,
3639,
309,
261,
2088,
2
] |
" WHERE folder_id = ? AND type NOT IN " + FOLDER_TYPES); stmt.setInt(1, folderId);
|
" WHERE " + (DebugConfig.enableMailboxGroup ? "mailbox_id = ? AND " : "") + "folder_id = ? AND type NOT IN " + FOLDER_TYPES); int pos = 1; if (DebugConfig.enableMailboxGroup) stmt.setInt(pos++, mbox.getId()); stmt.setInt(pos++, folderId);
|
public static PendingDelete getLeafNodes(Folder folder) throws ServiceException { Mailbox mbox = folder.getMailbox(); PendingDelete info = new PendingDelete(); int folderId = folder.getId(); Connection conn = mbox.getOperationConnection(); PreparedStatement stmt = null; ResultSet rs = null; try { stmt = conn.prepareStatement("SELECT " + LEAF_NODE_FIELDS + " FROM " + getMailItemTableName(folder) + " WHERE folder_id = ? AND type NOT IN " + FOLDER_TYPES); stmt.setInt(1, folderId); rs = stmt.executeQuery(); info.rootId = folderId; info.size = 0; accumulateLeafNodes(info, mbox, rs); // make sure that the folder is in the list of deleted item ids info.itemIds.add(folderId); return info; } catch (SQLException e) { throw ServiceException.FAILURE("fetching list of items within item " + folder.getId(), e); } finally { DbPool.closeResults(rs); DbPool.closeStatement(stmt); } }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/f1be72d52deaf8675b97f101b1ec8231e1b9a5d7/DbMailItem.java/buggy/ZimbraServer/src/java/com/zimbra/cs/db/DbMailItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
16034,
2613,
336,
9858,
3205,
12,
3899,
3009,
13,
1216,
16489,
288,
377,
202,
30239,
312,
2147,
273,
3009,
18,
588,
30239,
5621,
3639,
16034,
2613,
1123,
273,
394,
16034,
2613,
5621,
3639,
509,
31996,
273,
3009,
18,
26321,
5621,
3639,
4050,
1487,
273,
312,
2147,
18,
588,
2988,
1952,
5621,
3639,
16913,
3480,
273,
446,
31,
3639,
10842,
3597,
273,
446,
31,
3639,
775,
288,
5411,
3480,
273,
1487,
18,
9366,
3406,
2932,
4803,
315,
397,
5380,
6799,
67,
8744,
67,
12683,
397,
10792,
315,
4571,
315,
397,
31991,
1180,
7147,
12,
5609,
13,
397,
10792,
315,
4852,
3009,
67,
350,
273,
692,
4116,
618,
4269,
2120,
315,
397,
478,
11753,
67,
10564,
1769,
5411,
3480,
18,
542,
1702,
12,
21,
16,
31996,
1769,
5411,
3597,
273,
3480,
18,
8837,
1138,
5621,
5411,
1123,
18,
3085,
548,
273,
31996,
31,
5411,
1123,
18,
1467,
282,
273,
374,
31,
5411,
21757,
9858,
3205,
12,
1376,
16,
312,
2147,
16,
3597,
1769,
5411,
368,
1221,
3071,
716,
326,
3009,
353,
316,
326,
666,
434,
4282,
761,
3258,
5411,
1123,
18,
1726,
2673,
18,
1289,
12,
5609,
548,
1769,
5411,
327,
1123,
31,
3639,
289,
1044,
261,
23116,
425,
13,
288,
540,
202,
12849,
16489,
18,
17623,
2932,
5754,
310,
666,
434,
1516,
3470,
761,
315,
397,
3009,
18,
26321,
9334,
425,
1769,
3639,
289,
3095,
288,
540,
202,
4331,
2864,
18,
4412,
3447,
12,
5453,
1769,
5411,
8408,
2864,
18,
4412,
3406,
12,
10589,
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,
377,
1071,
760,
16034,
2613,
336,
9858,
3205,
12,
3899,
3009,
13,
1216,
16489,
288,
377,
202,
30239,
312,
2147,
273,
3009,
18,
588,
30239,
5621,
3639,
16034,
2613,
1123,
273,
394,
16034,
2613,
5621,
3639,
509,
31996,
273,
3009,
18,
26321,
5621,
3639,
4050,
1487,
273,
312,
2147,
18,
588,
2988,
1952,
5621,
3639,
16913,
3480,
273,
446,
31,
3639,
10842,
3597,
273,
446,
31,
3639,
775,
288,
5411,
3480,
273,
1487,
18,
9366,
3406,
2932,
4803,
315,
397,
5380,
6799,
67,
8744,
67,
12683,
397,
10792,
315,
4571,
315,
397,
31991,
1180,
7147,
12,
5609,
13,
397,
10792,
315,
4852,
3009,
67,
350,
273,
692,
4116,
618,
4269,
2120,
315,
397,
478,
11753,
67,
10564,
1769,
5411,
2
] |
serverNames.add( serverNameConfs[i].getValue().toLowerCase( Locale.US ) );
|
serverNames.add( serverNameConfs[i].getValue().toLowerCase(Locale.US));
|
public void initialize() throws Exception { getLogger().info( "JAMES init..." ); // TODO: This should retrieve a more specific named thread pool from // Context that is set up in server.xml try { mailstore = ( MailStore ) compMgr.lookup( MailStore.ROLE ); } catch ( Exception e ) { if ( getLogger().isWarnEnabled() ) { getLogger().warn( "Can't get Store: " + e ); } } if ( getLogger().isDebugEnabled() ) { getLogger().debug( "Using MailStore: " + mailstore.toString() ); } try { usersStore = ( UsersStore ) compMgr.lookup( UsersStore.ROLE ); } catch ( Exception e ) { if ( getLogger().isWarnEnabled() ) { getLogger().warn( "Can't get Store: " + e ); } } if ( getLogger().isDebugEnabled() ) { getLogger().debug( "Using UsersStore: " + usersStore.toString() ); } String hostName = null; try { hostName = InetAddress.getLocalHost().getHostName(); } catch ( UnknownHostException ue ) { hostName = "localhost"; } context = new DefaultContext(); context.put( "HostName", hostName ); getLogger().info( "Local host is: " + hostName ); // Get the domains and hosts served by this instance serverNames = new HashSet(); Configuration serverConf = conf.getChild( "servernames" ); if ( serverConf.getAttributeAsBoolean( "autodetect" ) && ( !hostName.equals( "localhost" ) ) ) { serverNames.add( hostName.toLowerCase( Locale.US ) ); } final Configuration[] serverNameConfs = conf.getChild( "servernames" ).getChildren( "servername" ); for ( int i = 0; i < serverNameConfs.length; i++ ) { serverNames.add( serverNameConfs[i].getValue().toLowerCase( Locale.US ) ); if ( serverConf.getAttributeAsBoolean( "autodetectIP", true ) ) { try { /* This adds the IP address(es) for each host to support * support <user@address-literal> - RFC 2821, sec 4.1.3. * It might be proper to use the actual IP addresses * available on this server, but we can't do that * without NetworkInterface from JDK 1.4. Because of * Virtual Hosting considerations, we may need to modify * this to keep hostname and IP associated, rather than * just both in the set. */ InetAddress[] addrs = InetAddress.getAllByName( serverNameConfs[i].getValue() ); for ( int j = 0; j < addrs.length; j++ ) { serverNames.add( addrs[j].getHostAddress() ); } } catch ( Exception genericException ) { getLogger().error( "Cannot get IP address(es) for " + serverNameConfs[i].getValue() ); } } } if ( serverNames.isEmpty() ) { throw new ConfigurationException( "Fatal configuration error: no servernames specified!" ); } if ( getLogger().isInfoEnabled() ) { for ( Iterator i = serverNames.iterator(); i.hasNext(); ) { getLogger().info( "Handling mail for: " + i.next() ); } } context.put( Constants.SERVER_NAMES, this.serverNames ); attributes.put( Constants.SERVER_NAMES, this.serverNames ); // Get postmaster String postMasterAddress = conf.getChild( "postmaster" ).getValue( "postmaster" ); // if there is no @domain part, then add the first one from the // list of supported domains that isn't localhost. If that // doesn't work, use the hostname, even if it is localhost. if ( postMasterAddress.indexOf( '@' ) < 0 ) { String domainName = null; // the domain to use // loop through candidate domains until we find one or exhaust the list for ( int i = 0; domainName == null && i < serverNameConfs.length; i++ ) { String serverName = serverNameConfs[i].getValue().toLowerCase( Locale.US ); if ( !( "localhost".equals( serverName ) ) ) { domainName = serverName; // ok, not localhost, so use it } } // if we found a suitable domain, use it. Otherwise fallback to the host name. postMasterAddress = postMasterAddress + "@" + ( domainName != null ? domainName : hostName ); } this.postmaster = new MailAddress( postMasterAddress ); context.put( Constants.POSTMASTER, postmaster ); if ( !isLocalServer( postmaster.getHost() ) ) { StringBuffer warnBuffer = new StringBuffer( 320 ) .append( "The specified postmaster address ( " ) .append( postmaster ) .append( " ) is not a local address. This is not necessarily a problem, but it does mean that emails addressed to the postmaster will be routed to another server. For some configurations this may cause problems." ); getLogger().warn( warnBuffer.toString() ); } Configuration userNamesConf = conf.getChild( "usernames" ); ignoreCase = userNamesConf.getAttributeAsBoolean( "ignoreCase", false ); enableAliases = userNamesConf.getAttributeAsBoolean( "enableAliases", false ); enableForwarding = userNamesConf.getAttributeAsBoolean( "enableForwarding", false ); //Get localusers try { localusers = ( UsersRepository ) usersStore.getRepository( "LocalUsers" ); } catch ( Exception e ) { getLogger().error( "Cannot open private UserRepository" ); throw e; } //} compMgr.put( UsersRepository.ROLE, ( Component ) localusers ); getLogger().info( "Local users repository opened" ); try { // Get storage config param if ( conf.getChild( "storage" ).getValue().equals( "IMAP" ) ) { useIMAPstorage = true; getLogger().info( "Using IMAP Store-System" ); } } catch ( Exception e ) { // No storage entry found in config file } // Get the LocalInbox repository if ( useIMAPstorage ) { try { // We will need to use a no-args constructor for flexibility imapHost = ( ImapHost ) compMgr.lookup( ImapHost.ROLE ); } catch ( Exception e ) { getLogger().error( "Exception in IMAP Storage init: " + e.getMessage() ); throw e; } } else { Configuration inboxConf = conf.getChild( "inboxRepository" ); Configuration inboxRepConf = inboxConf.getChild( "repository" ); try { localInbox = ( MailRepository ) mailstore.select( inboxRepConf ); } catch ( Exception e ) { getLogger().error( "Cannot open private MailRepository" ); throw e; } inboxRootURL = inboxRepConf.getAttribute( "destinationURL" ); } getLogger().info( "Private Repository LocalInbox opened" ); // Add this to comp compMgr.put( MailServer.ROLE, this ); spool = mailstore.getInboundSpool(); if ( getLogger().isDebugEnabled() ) { getLogger().debug( "Got spool" ); } // For mailet engine provide MailetContext //compMgr.put("org.apache.mailet.MailetContext", this); // For AVALON aware mailets and matchers, we put the Component object as // an attribute attributes.put( Constants.AVALON_COMPONENT_MANAGER, compMgr ); System.out.println( SOFTWARE_NAME_VERSION ); getLogger().info( "JAMES ...init end" ); }
|
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/1ad7ffcfbbf77facca5521af64958c222e2d9e63/James.java/buggy/trunk/proposals/imap2/java/org/apache/james/James.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
1435,
1216,
1185,
565,
288,
3639,
7156,
7675,
1376,
12,
315,
46,
1642,
55,
1208,
7070,
11272,
3639,
368,
2660,
30,
1220,
1410,
4614,
279,
1898,
2923,
4141,
2650,
2845,
628,
3639,
368,
1772,
716,
353,
444,
731,
316,
1438,
18,
2902,
3639,
775,
288,
5411,
4791,
2233,
273,
261,
11542,
2257,
262,
1161,
9455,
18,
8664,
12,
11542,
2257,
18,
16256,
11272,
3639,
289,
3639,
1044,
261,
1185,
425,
262,
288,
5411,
309,
261,
7156,
7675,
291,
3160,
1526,
1435,
262,
288,
7734,
7156,
7675,
8935,
12,
315,
2568,
1404,
336,
4994,
30,
315,
397,
425,
11272,
5411,
289,
3639,
289,
3639,
309,
261,
7156,
7675,
291,
2829,
1526,
1435,
262,
288,
5411,
7156,
7675,
4148,
12,
315,
7736,
11542,
2257,
30,
315,
397,
4791,
2233,
18,
10492,
1435,
11272,
3639,
289,
3639,
775,
288,
5411,
3677,
2257,
273,
261,
12109,
2257,
262,
1161,
9455,
18,
8664,
12,
12109,
2257,
18,
16256,
11272,
3639,
289,
3639,
1044,
261,
1185,
425,
262,
288,
5411,
309,
261,
7156,
7675,
291,
3160,
1526,
1435,
262,
288,
7734,
7156,
7675,
8935,
12,
315,
2568,
1404,
336,
4994,
30,
315,
397,
425,
11272,
5411,
289,
3639,
289,
3639,
309,
261,
7156,
7675,
291,
2829,
1526,
1435,
262,
288,
5411,
7156,
7675,
4148,
12,
315,
7736,
12109,
2257,
30,
315,
397,
3677,
2257,
18,
10492,
1435,
11272,
3639,
289,
3639,
514,
19266,
273,
446,
31,
3639,
775,
288,
5411,
19266,
273,
14218,
18,
588,
2042,
2594,
7675,
588,
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,
4046,
1435,
1216,
1185,
565,
288,
3639,
7156,
7675,
1376,
12,
315,
46,
1642,
55,
1208,
7070,
11272,
3639,
368,
2660,
30,
1220,
1410,
4614,
279,
1898,
2923,
4141,
2650,
2845,
628,
3639,
368,
1772,
716,
353,
444,
731,
316,
1438,
18,
2902,
3639,
775,
288,
5411,
4791,
2233,
273,
261,
11542,
2257,
262,
1161,
9455,
18,
8664,
12,
11542,
2257,
18,
16256,
11272,
3639,
289,
3639,
1044,
261,
1185,
425,
262,
288,
5411,
309,
261,
7156,
7675,
291,
3160,
1526,
1435,
262,
288,
7734,
7156,
7675,
8935,
12,
315,
2568,
1404,
336,
4994,
30,
315,
397,
425,
11272,
5411,
289,
3639,
289,
3639,
309,
261,
7156,
7675,
291,
2829,
1526,
1435,
262,
288,
5411,
7156,
2
] |
private void newSourceChanged(final int sourcePriority) { /* * In this first phase, we cycle through all of the contributions that * could have potentially changed. Each such contribution is added to a * set for future processing. We add it to a set so that we avoid * handling any individual contribution more than once. */ final Set contributionsToRecompute = new HashSet(); for (int i = 1; i <= 32; i++) { if ((sourcePriority & (1 << i)) != 0) { final Collection contributions = activationsBySourcePriority[i]; if (contributions != null) { final Iterator contributionItr = contributions.iterator(); while (contributionItr.hasNext()) { contributionsToRecompute.add(contributionItr.next()); } } } } /* * For every contribution, we recompute its state, and check whether it * has changed. If it has changed, then we take note of the menu element * so we can update the menu element later. */ final Iterator contributionItr = contributionsToRecompute.iterator(); while (contributionItr.hasNext()) { final IMenuActivation contribution = (IMenuActivation) contributionItr .next(); final boolean currentlyVisible = evaluate(contribution); contribution.clearResult(); final boolean newVisible = evaluate(contribution); if (newVisible != currentlyVisible) { // should we be proactive about notifying that an // IContributionItem is dirty? IContributionItem menuItem = contribution.getContribution(); menuItem.update(); // old code // contribution.getMenuElement().setVisible(window, newVisible); } } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d776bcff0aa4a090aa008b1f9669652f257c89ef/MenuAuthority.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuAuthority.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
2704,
1830,
5033,
12,
6385,
474,
3168,
8183,
15329,
202,
202,
20308,
202,
202,
14,
382,
2211,
3645,
13961,
16,
91,
557,
93,
830,
546,
2642,
287,
383,
74,
451,
17181,
4027,
334,
11304,
202,
202,
14,
15195,
21516,
13130,
11220,
6703,
18,
3442,
87,
2648,
591,
4027,
291,
9665,
12799,
202,
202,
14,
542,
1884,
14343,
10632,
18,
59,
684,
72,
305,
869,
345,
2413,
10370,
270,
1814,
842,
839,
202,
202,
14,
26822,
2273,
22032,
5557,
591,
4027,
10161,
23483,
8243,
18,
202,
202,
5549,
202,
202,
6385,
694,
591,
15326,
774,
426,
9200,
33,
2704,
13482,
5621,
202,
202,
1884,
12,
474,
77,
33,
21,
31,
77,
32,
33,
1578,
31,
77,
27245,
95,
1082,
202,
430,
12443,
3168,
8183,
10,
12,
21,
17685,
77,
3719,
5,
33,
20,
15329,
9506,
202,
6385,
2532,
591,
15326,
33,
11422,
1012,
858,
1830,
8183,
63,
77,
15533,
9506,
202,
430,
12,
591,
15326,
5,
33,
2011,
15329,
6862,
202,
6385,
3198,
591,
4027,
28984,
33,
591,
15326,
18,
9838,
5621,
6862,
202,
17523,
12,
591,
4027,
28984,
18,
5332,
2134,
10756,
95,
25083,
202,
591,
15326,
774,
426,
9200,
18,
1289,
12,
591,
4027,
28984,
18,
4285,
10663,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
20308,
202,
202,
14,
13573,
3242,
591,
4027,
16,
2051,
30433,
2507,
1282,
2019,
16,
464,
1893,
3350,
2437,
305,
202,
202,
14,
5332,
6703,
18,
2047,
483,
345,
6703,
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,
6459,
2704,
1830,
5033,
12,
6385,
474,
3168,
8183,
15329,
202,
202,
20308,
202,
202,
14,
382,
2211,
3645,
13961,
16,
91,
557,
93,
830,
546,
2642,
287,
383,
74,
451,
17181,
4027,
334,
11304,
202,
202,
14,
15195,
21516,
13130,
11220,
6703,
18,
3442,
87,
2648,
591,
4027,
291,
9665,
12799,
202,
202,
14,
542,
1884,
14343,
10632,
18,
59,
684,
72,
305,
869,
345,
2413,
10370,
270,
1814,
842,
839,
202,
202,
14,
26822,
2273,
22032,
5557,
591,
4027,
10161,
23483,
8243,
18,
202,
202,
5549,
202,
202,
6385,
694,
591,
15326,
774,
426,
9200,
33,
2704,
13482,
5621,
202,
202,
1884,
12,
474,
77,
33,
21,
31,
77,
32,
33,
1578,
31,
77,
2
] |
||
"\t@Property constraints = {\n" +
|
"\tdef constraints = {\n" +
|
protected void onSetUp() throws Exception { Class groovyClass = cl.parseClass("public class PersistentMethodTests {\n" + "\n" + "\t@Property List optionals = [ \"age\" ];\n" + "\t\n" + "\t@Property Long id; \n" + "\t@Property Long version; \n" + "\t\n" + "\t@Property String firstName; \n" + "\t@Property String lastName; \n" + "\t@Property Integer age;\n" + "\t\n" + "\t@Property constraints = {\n" + "\t\tfirstName(length:4..15)\n" + "\t}\n" + "}"); grailsApplication = new DefaultGrailsApplication(new Class[]{groovyClass},cl); DefaultGrailsDomainConfiguration config = new DefaultGrailsDomainConfiguration(); config.setGrailsApplication(this.grailsApplication); Properties props = new Properties(); props.put("hibernate.connection.username","sa"); props.put("hibernate.connection.password",""); props.put("hibernate.connection.url","jdbc:hsqldb:mem:grailsDB"); props.put("hibernate.connection.driver_class","org.hsqldb.jdbcDriver"); props.put("hibernate.dialect","org.hibernate.dialect.HSQLDialect"); props.put("hibernate.hbm2ddl.auto","create-drop"); //props.put("hibernate.hbm2ddl.auto","update"); config.setProperties(props); //originalClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(this.cl); this.sessionFactory = config.buildSessionFactory(); if(!TransactionSynchronizationManager.hasResource(this.sessionFactory)) { this.hibSession = this.sessionFactory.openSession(); TransactionSynchronizationManager.bindResource(this.sessionFactory, new SessionHolder(hibSession)); } new DomainClassMethods(grailsApplication,groovyClass,sessionFactory,cl); GrailsDomainClassValidator validator = new GrailsDomainClassValidator(); GrailsDomainClass domainClass =this.grailsApplication.getGrailsDomainClass("PersistentMethodTests"); validator.setDomainClass(this.grailsApplication.getGrailsDomainClass("PersistentMethodTests")); domainClass.setValidator(validator); super.onSetUp(); }
|
51826 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51826/dd7ca7d1686d48648d4eab36fa08f1bfb26eb0ea/PersistentMethodTests.java/clean/test/persistence/org/codehaus/groovy/grails/orm/hibernate/PersistentMethodTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
603,
694,
1211,
1435,
1216,
1185,
288,
5411,
1659,
24955,
797,
273,
927,
18,
2670,
797,
2932,
482,
667,
11049,
1305,
14650,
18890,
82,
6,
397,
7734,
1548,
82,
6,
397,
7734,
1548,
88,
36,
1396,
987,
1456,
1031,
273,
306,
1239,
410,
2412,
308,
9747,
82,
6,
397,
7734,
1548,
88,
64,
82,
6,
397,
7734,
1548,
88,
36,
1396,
3407,
612,
31,
521,
82,
6,
397,
7734,
1548,
88,
36,
1396,
3407,
1177,
31,
521,
82,
6,
397,
7734,
1548,
88,
64,
82,
6,
397,
7734,
1548,
88,
36,
1396,
514,
22033,
31,
521,
82,
6,
397,
7734,
1548,
88,
36,
1396,
514,
23439,
31,
521,
82,
6,
397,
7734,
1548,
88,
36,
1396,
2144,
9388,
9747,
82,
6,
397,
7734,
1548,
88,
64,
82,
6,
397,
7734,
1548,
88,
536,
6237,
273,
18890,
82,
6,
397,
7734,
1548,
88,
64,
88,
3645,
461,
12,
2469,
30,
24,
838,
3600,
5153,
82,
6,
397,
7734,
1548,
88,
6280,
82,
6,
397,
7734,
11883,
1769,
3639,
3087,
14573,
3208,
273,
394,
2989,
14571,
14573,
3208,
12,
2704,
1659,
63,
7073,
75,
12859,
797,
5779,
830,
1769,
3639,
2989,
14571,
14573,
3748,
1750,
642,
273,
394,
2989,
14571,
14573,
3748,
1750,
5621,
3639,
642,
18,
542,
14571,
14573,
3208,
12,
2211,
18,
2752,
14573,
3208,
1769,
3639,
6183,
3458,
273,
394,
6183,
5621,
3639,
3458,
18,
458,
2932,
15769,
22828,
18,
4071,
18,
5053,
15937,
13098,
8863,
3639,
3458,
18,
458,
2932,
15769,
22828,
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,
4750,
918,
603,
694,
1211,
1435,
1216,
1185,
288,
5411,
1659,
24955,
797,
273,
927,
18,
2670,
797,
2932,
482,
667,
11049,
1305,
14650,
18890,
82,
6,
397,
7734,
1548,
82,
6,
397,
7734,
1548,
88,
36,
1396,
987,
1456,
1031,
273,
306,
1239,
410,
2412,
308,
9747,
82,
6,
397,
7734,
1548,
88,
64,
82,
6,
397,
7734,
1548,
88,
36,
1396,
3407,
612,
31,
521,
82,
6,
397,
7734,
1548,
88,
36,
1396,
3407,
1177,
31,
521,
82,
6,
397,
7734,
1548,
88,
64,
82,
6,
397,
7734,
1548,
88,
36,
1396,
514,
22033,
31,
521,
82,
6,
397,
7734,
1548,
88,
36,
1396,
514,
23439,
31,
521,
82,
6,
397,
7734,
1548,
88,
36,
1396,
2
] |
(implementsSerializableDirectly || sawSerialVersionUID) ? HIGH_PRIORITY : NORMAL_PRIORITY)
|
implementsSerializableDirectly ? HIGH_PRIORITY : ( sawSerialVersionUID ? NORMAL_PRIORITY : LOW_PRIORITY))
|
public void visitAfter(JavaClass obj) { if (isEnum) return; if (false) { System.out.println(getDottedClassName()); System.out.println(" hasPublicVoidConstructor: " + hasPublicVoidConstructor); System.out.println(" superClassHasVoidConstructor: " + superClassHasVoidConstructor); System.out.println(" isExternalizable: " + isExternalizable); System.out.println(" isSerializable: " + isSerializable); System.out.println(" isAbstract: " + isAbstract); System.out.println(" superClassImplementsSerializable: " + superClassImplementsSerializable); } if (isSerializable && !isExternalizable && !superClassHasVoidConstructor && !superClassImplementsSerializable) bugReporter.reportBug(new BugInstance(this, "SE_NO_SUITABLE_CONSTRUCTOR", (implementsSerializableDirectly || sawSerialVersionUID) ? HIGH_PRIORITY : NORMAL_PRIORITY) .addClass(getThisClass().getClassName())); // Downgrade class-level warnings if it's a GUI class. int priority = isGUIClass ? LOW_PRIORITY : NORMAL_PRIORITY; if (obj.getClassName().endsWith("_Stub")) priority++; if (isExternalizable && !hasPublicVoidConstructor && !isAbstract) bugReporter.reportBug(new BugInstance(this, "SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION", directlyImplementsExternalizable ? HIGH_PRIORITY : NORMAL_PRIORITY) .addClass(getThisClass().getClassName())); if (foundSynthetic && !isAnonymousInnerClass && !isExternalizable && !isGUIClass && isSerializable && !isAbstract && !sawSerialVersionUID) bugReporter.reportBug(new BugInstance(this, "SE_NO_SERIALVERSIONID", priority).addClass(this)); if (writeObjectIsSynchronized && !foundSynchronizedMethods) bugReporter.reportBug(new BugInstance(this, "WS_WRITEOBJECT_SYNC", LOW_PRIORITY).addClass(this)); }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/8ba2cf52385e1c5acc5b03bab20aa416f38c52fc/SerializableIdiom.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/SerializableIdiom.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
4436,
12,
5852,
797,
1081,
13,
288,
202,
202,
430,
261,
291,
3572,
13,
327,
31,
202,
202,
430,
261,
5743,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
12,
588,
10412,
2344,
3834,
10663,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
225,
711,
4782,
19038,
6293,
30,
315,
397,
711,
4782,
19038,
6293,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
225,
18846,
5582,
19038,
6293,
30,
315,
397,
18846,
5582,
19038,
6293,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
225,
353,
6841,
6934,
30,
315,
397,
353,
6841,
6934,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
225,
353,
21682,
30,
315,
397,
353,
21682,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
225,
24996,
30,
315,
397,
24996,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
225,
18846,
17516,
21682,
30,
315,
397,
18846,
17516,
21682,
1769,
202,
202,
97,
202,
202,
430,
261,
291,
21682,
597,
401,
291,
6841,
6934,
1082,
3639,
597,
401,
9565,
797,
5582,
19038,
6293,
1082,
3639,
597,
401,
9565,
797,
17516,
21682,
13,
1082,
202,
925,
13289,
18,
6006,
19865,
12,
2704,
16907,
1442,
12,
2211,
16,
315,
1090,
67,
3417,
67,
6639,
1285,
2782,
67,
26935,
916,
3113,
9506,
3639,
261,
17061,
21682,
5368,
715,
747,
19821,
6342,
1444,
3060,
13,
9506,
3639,
692,
23472,
67,
19804,
294,
16362,
67,
19804,
13,
9506,
3639,
263,
1289,
797,
12,
588,
2503,
797,
7675,
588,
3834,
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,
3757,
4436,
12,
5852,
797,
1081,
13,
288,
202,
202,
430,
261,
291,
3572,
13,
327,
31,
202,
202,
430,
261,
5743,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
12,
588,
10412,
2344,
3834,
10663,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
225,
711,
4782,
19038,
6293,
30,
315,
397,
711,
4782,
19038,
6293,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
225,
18846,
5582,
19038,
6293,
30,
315,
397,
18846,
5582,
19038,
6293,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
225,
353,
6841,
6934,
30,
315,
397,
353,
6841,
6934,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
225,
353,
21682,
30,
315,
397,
353,
21682,
1769,
2
] |
setErrorText(null);
|
setErrorText(null);
|
public void applyEditorValue() { if (editor == null) { return; } // Check if editor has a valid value if (!editor.isValueValid()) { setErrorText(editor.getErrorMessage()); return; } setErrorText(null); // See if the value changed and if so update Object newValue = editor.getValue(); boolean changed = false; if (values.length > 1) { changed = true; } else if (editValue == null) { if (newValue != null) { changed = true; } } else if (!editValue.equals(newValue)) { changed = true; } // Set the editor value if (changed) { setValue(newValue); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1ccb6f8ddf35b3b40ebd3ebe3e7982aa947ec045/PropertySheetEntry.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetEntry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2230,
6946,
620,
1435,
288,
3639,
309,
261,
9177,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
3639,
368,
2073,
309,
4858,
711,
279,
923,
460,
3639,
309,
16051,
9177,
18,
291,
620,
1556,
10756,
288,
5411,
9967,
1528,
12,
9177,
18,
588,
14935,
10663,
5411,
327,
31,
3639,
289,
3639,
9967,
1528,
12,
2011,
1769,
3639,
368,
2164,
309,
326,
460,
3550,
471,
309,
1427,
1089,
3639,
1033,
6129,
273,
4858,
18,
24805,
5621,
3639,
1250,
3550,
273,
629,
31,
3639,
309,
261,
2372,
18,
2469,
405,
404,
13,
288,
5411,
3550,
273,
638,
31,
3639,
289,
469,
309,
261,
4619,
620,
422,
446,
13,
288,
5411,
309,
261,
2704,
620,
480,
446,
13,
288,
9506,
202,
6703,
273,
638,
31,
1082,
202,
97,
3639,
289,
469,
309,
16051,
4619,
620,
18,
14963,
12,
2704,
620,
3719,
288,
1082,
202,
6703,
273,
638,
31,
202,
202,
97,
3639,
368,
1000,
326,
4858,
460,
3639,
309,
261,
6703,
13,
288,
1082,
202,
542,
620,
12,
2704,
620,
1769,
202,
202,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2230,
6946,
620,
1435,
288,
3639,
309,
261,
9177,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
3639,
368,
2073,
309,
4858,
711,
279,
923,
460,
3639,
309,
16051,
9177,
18,
291,
620,
1556,
10756,
288,
5411,
9967,
1528,
12,
9177,
18,
588,
14935,
10663,
5411,
327,
31,
3639,
289,
3639,
9967,
1528,
12,
2011,
1769,
3639,
368,
2164,
309,
326,
460,
3550,
471,
309,
1427,
1089,
3639,
1033,
6129,
273,
4858,
18,
24805,
5621,
3639,
1250,
3550,
273,
629,
31,
3639,
309,
261,
2372,
18,
2469,
405,
404,
13,
288,
5411,
3550,
273,
638,
31,
3639,
289,
469,
309,
261,
4619,
620,
422,
446,
13,
288,
5411,
309,
261,
2704,
620,
480,
2
] |
if(!isSetDataInTable&&rate!=0) { try { str = String.valueOf(jTable1.getValueAt(rowSelect,columnSelect)); } catch(Exception ex) { str = new String("0");
|
if(!isSetDataInTable&&rate!=0) { try { str = String.valueOf(jTable1.getValueAt(rowSelect,columnSelect)); } catch(Exception ex) { str = new String("0");
|
private void setInputLisener() { getKeyBoardManager(); jTable1.addFocusListener(new FocusListener() { public void focusGained(FocusEvent e) { try { if((Boolean)jTable1.getValueAt(jTable1.getSelectedRow(),24)&& !((docLineTableModel)jTable1.getModel()).getIsFinishToEnterData(jTable1.getSelectedRow())) { ((docLineTableModel) jTable1.getModel()).enableCellEditable(0); // za tyrsene po ime ((docLineTableModel) jTable1.getModel()).enableCellEditable(1); } System.out.println("focusGained"); } catch(Exception ex){System.out.println("Error focusGained");}; } public void focusLost(FocusEvent e) { } }); jTable1.addMouseListener(new MouseListener() { public void mouseClicked(MouseEvent e) { int rowSelect = jTable1.getSelectedRow(); changeColumnName(5,(String)jTable1.getValueAt(rowSelect,13),jTable1); changeColumnName(6,(String)jTable1.getValueAt(rowSelect,14),jTable1); changeColumnName(7,(String)jTable1.getValueAt(rowSelect,15),jTable1); if((Integer)jTable1.getValueAt(rowSelect,0)>0 & (Integer)jTable1.getValueAt(rowSelect,2)>0 & (Integer)jTable1.getValueAt(rowSelect,4)>0 ) { // set data for rowSelect docLine myParent.setID_PC((Integer)jTable1.getValueAt(rowSelect,16)); myParent.setPriceList((Integer)jTable1.getValueAt(rowSelect,3)); double tmpPrList[] = new double[5]; tmpPrList[0]= (Double)jTable1.getValueAt(rowSelect,18); tmpPrList[1]=(Double)jTable1.getValueAt(rowSelect,19); tmpPrList[2]=(Double)jTable1.getValueAt(rowSelect,20); tmpPrList[3]=1.0; tmpPrList[4]=(Double)jTable1.getValueAt(rowSelect,17); // dostavna cena myParent.setWorkPriceListProduct(tmpPrList); myParent.setBrojProduct((Integer)jTable1.getValueAt(rowSelect,4)); productDescription_1 = (Integer)jTable1.getValueAt(rowSelect,21); productDescription_2 = (Integer)jTable1.getValueAt(rowSelect,22); productDescription_3 = (Integer)jTable1.getValueAt(rowSelect,23); myParent.setPriceOneProduct(((Double)jTable1.getValueAt(rowSelect,8))); isProductIN = checkInOutProduct(myParent.getDocFacadeType()); if(isProductIN) { jLabel32.setText("0"); jLabelPricelist_1.setText("\u0426\u0435\u043d\u0430 1"); jLabelPricelist_2.setText("\u0426\u0435\u043d\u0430 2"); jLabelPrice_1.setText(""); jLabelPrice_2.setText(""); } else { jLabelPricelist_1.setText("\u0426\u0435\u043d\u0430 "+String.valueOf(calculatePriceList(myParent.getPriceList())[0])); //???? jLabelPricelist_2.setText("\u0426\u0435\u043d\u0430 "+String.valueOf(calculatePriceList(myParent.getPriceList())[1])); //??? jLabelPrice_1.setText(String.valueOf(myParent.getWorkPriceListProduct()[calculatePriceList(myParent.getPriceList())[0]-1])); //??? jLabelPrice_2.setText(String.valueOf(myParent.getWorkPriceListProduct()[calculatePriceList(myParent.getPriceList())[1]-1])); //??? Double curs = myParent.getWorkPriceListProduct()[3]; //???? jLabelValuta.setText(myParent.getCountriesT().getValutaByID(curs.intValue())); } calculateWidthColumn(jTable1); } } public void mouseEntered(MouseEvent e) { } public void mouseExited(MouseEvent e) { } public void mousePressed(MouseEvent e) { } public void mouseReleased(MouseEvent e) { } }); jTable1.addKeyListener(new KeyListener() { public void keyPressed(KeyEvent e) { columnSelect = jTable1.getSelectedColumn(); rowSelect = jTable1.getSelectedRow(); if(e.getKeyCode()== KeyEvent.VK_UP) // selektira teksta v kletkata { changeColumnName(5,(String)jTable1.getValueAt(rowSelect,13),jTable1); changeColumnName(6,(String)jTable1.getValueAt(rowSelect,14),jTable1); changeColumnName(7,(String)jTable1.getValueAt(rowSelect,15),jTable1); } if(e.getKeyCode()== KeyEvent.VK_DOWN) // selektira teksta v kletkata { changeColumnName(5,(String)jTable1.getValueAt(rowSelect,13),jTable1); changeColumnName(6,(String)jTable1.getValueAt(rowSelect,14),jTable1); changeColumnName(7,(String)jTable1.getValueAt(rowSelect,15),jTable1); } // if(e.getKeyCode()>=48 && e.getKeyCode()<=57) str += e.getKeyChar(); // samo 4isla if(true) str += e.getKeyChar(); // vsiki znaci if(!isTyped) { Object value = jTable1.getCellEditor(rowSelect,columnSelect).getCellEditorValue(); Component com = jTable1.getCellEditor(rowSelect,columnSelect).getTableCellEditorComponent(jTable1,value,true,rowSelect,columnSelect); JTextField ff = (JTextField) com; ff.setBackground(Color.RED); ff.selectAll(); System.out.println(" >>>>>>>>>>>.. "+ff.getText()); } isTyped = true; System.out.println("===============keyPressed===================="); System.out.print("jTable1.getSelectedRow: "); System.out.println(jTable1.getSelectedRow()); System.out.print("jTable1.getSelectedColumn: "); System.out.println(jTable1.getSelectedColumn()); System.out.println("================keyPressed==================="); if(e.getKeyCode()== KeyEvent.VK_DELETE) // selektira teksta v kletkata { // Object value = jTable1.getCellEditor(rowSelect,columnSelect).getCellEditorValue(); // Component com = jTable1.getCellEditor(rowSelect,columnSelect).getTableCellEditorComponent(jTable1,value,true,rowSelect,columnSelect); // JTextField ff = (JTextField) com; // ff.selectAll(); // System.out.println(" >>>>>>>>>>>.. "+ff.getText()); isTyped = false; str=" "; } if(e.getKeyCode()== KeyEvent.VK_ENTER) { System.out.println("===========KeyEvent.VK_ENTER================"); System.out.print("jTable1.getSelectedRow: "); System.out.println(rowSelect); System.out.print("jTable1.getSelectedColumn: "); System.out.println(columnSelect); System.out.println("===========KeyEvent.VK_ENTER================"); if(columnSelect == 0) { // popylvat se drugite stoinosti na doc line isFinishRow = false; if(isProductIN) { ((docLineTableModel) jTable1.getModel()).enableCellEditable(4); ((docLineTableModel) jTable1.getModel()).enableCellEditable(5); ((docLineTableModel) jTable1.getModel()).enableCellEditable(6); ((docLineTableModel) jTable1.getModel()).enableCellEditable(7); } else { ((docLineTableModel) jTable1.getModel()).enableCellEditable(3); ((docLineTableModel) jTable1.getModel()).enableCellEditable(4); ((docLineTableModel) jTable1.getModel()).enableCellEditable(5); ((docLineTableModel) jTable1.getModel()).enableCellEditable(6); ((docLineTableModel) jTable1.getModel()).enableCellEditable(7); ((docLineTableModel) jTable1.getModel()).enableCellEditable(8); ((docLineTableModel) jTable1.getModel()).enableCellEditable(9); } } if(columnSelect == 1) // ime na produkta { isFinishRow = false; if(isProductIN) { ((docLineTableModel) jTable1.getModel()).enableCellEditable(4); ((docLineTableModel) jTable1.getModel()).enableCellEditable(5); ((docLineTableModel) jTable1.getModel()).enableCellEditable(6); ((docLineTableModel) jTable1.getModel()).enableCellEditable(7); } else { ((docLineTableModel) jTable1.getModel()).enableCellEditable(3); ((docLineTableModel) jTable1.getModel()).enableCellEditable(4); ((docLineTableModel) jTable1.getModel()).enableCellEditable(5); ((docLineTableModel) jTable1.getModel()).enableCellEditable(6); ((docLineTableModel) jTable1.getModel()).enableCellEditable(7); ((docLineTableModel) jTable1.getModel()).enableCellEditable(8); ((docLineTableModel) jTable1.getModel()).enableCellEditable(9); } } if(columnSelect == 3) // cenova lista { /* ((docLineTableModel) jTable1.getModel()).enableCellEditable(4); ((docLineTableModel) jTable1.getModel()).enableCellEditable(5); ((docLineTableModel) jTable1.getModel()).enableCellEditable(6); ((docLineTableModel) jTable1.getModel()).enableCellEditable(7);*/ if(myParent.getDocFacadeType()==OFERTA) { try { Robot robot = new Robot(); robot.keyPress(KeyEvent.VK_ENTER); robot.keyPress(KeyEvent.VK_ENTER); robot.keyPress(KeyEvent.VK_ENTER); robot.keyPress(KeyEvent.VK_ENTER); } catch (AWTException e12){} } } if(columnSelect == 4) // { } if(columnSelect == 5) // { } if(columnSelect == 7) { /* ((docLineTableModel) jTable1.getModel()).enableCellEditable(8); ((docLineTableModel) jTable1.getModel()).enableCellEditable(9);*/ } if(columnSelect == 10) { System.out.println("columnSelect == 10"); if( !isFinishRow) { str=""; System.out.println("Start save data in DB"); double alldds = Double.parseDouble(jLabelAllDDS.getText()); alldds += (Double) jTable1.getValueAt(rowSelect,11)*(Double) jTable1.getValueAt(rowSelect,10)/100; // jLabelAllDDS.setText(doubleRoundToString(4,alldds)); double ddsOsnova = Double.parseDouble(jLabelDDSOsnova.getText()); ddsOsnova += (Double) jTable1.getValueAt(rowSelect,11); // jLabelDDSOsnova.setText(doubleRoundToString(4,ddsOsnova)); double allTotal = Double.parseDouble(jLabelAllTotal.getText()); allTotal = alldds+ddsOsnova; // jLabelAllTotal.setText(doubleRoundToString(4,allTotal)); System.out.println(" = "+ allTotal + "::"+doubleRoundToString(4,allTotal)); System.out.println(" = "+ alldds + "::"+doubleRoundToString(4,alldds)); System.out.println(" = "+ ddsOsnova + "::" + doubleRoundToString(4,ddsOsnova)); calculateTotalPriceForDocument(); jTable1.setValueAt(true,jTable1.getSelectedRow(),24); // markirame reda - ve4e ne moze da se redaktira myParent.setPriceOneProduct((Double) jTable1.getValueAt(rowSelect,8)); myParent.setProcentProduct((Double) jTable1.getValueAt(rowSelect,9)); if(jTable1.getSelectedRow()==(jTable1.getRowCount() - 1)) // pri polovfenie 4e reda e posleden { int i = 0; System.out.println("IF ROW IS LAST"); i = jTable1.getSelectedRow(); ((docLineTableModel)jTable1.getModel()).setDefaultCellEditable(); // ((docLineTableModel)jTable1.getModel()).setIsFinishToEnterData(i); // markirame reda kato priklu4en s vyvezdaneto ((docLineTableModel)jTable1.getModel()).addRow(new docLineArray()); jTable1.changeSelection(i+1,-1,false,false); System.out.println("changeSelection"); ((docLineTableModel) jTable1.getModel()).enableCellEditable(0); //za tyrsene po ime ((docLineTableModel) jTable1.getModel()).enableCellEditable(1); // Save DocLine into DATABASE int nn = (Integer)jTable1.getValueAt(rowSelect,4); int prList =(Integer)jTable1.getValueAt(rowSelect,3); double dds =(Double)jTable1.getValueAt(rowSelect,10); double total = (Double)jTable1.getValueAt(rowSelect,11); // int tmpProductNumbers = myParent.getCountriesT().checkForEnoughProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),myParent.getDocFacadeLevel()); if(true) {// PRIEMATELNA_RAZPISKA - IN produkt if(myParent.getDocFacadeType()==PRIEMATELNA_RAZPISKA || myParent.getDocFacadeType()==RAZPISKA_ZA_VRYSHTANE ) { if(isNew) { myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),myParent.getStorageOUTProduct(),myParent.getPriceOneProduct(), myParent.getProcentProduct(),nn,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); //vry5tane na prodikta v tablicata s nali4nosti setNNReturnProduct(nn);//========================================== } else { int id_dl = (Integer) jTable1.getValueAt(rowSelect,12); int newNumberProduct = nn; docLineArray d =null; int oldNumberProduct = 0; for(int j=0; j < rows.size();j++) { d = (docLineArray) rows.get(j); if(id_dl==d.getID_DocLine()) { oldNumberProduct = d.getNumberOfProduct(); break; } } if(newNumberProduct > oldNumberProduct) { // myParent.getCountriesT().returnProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),(newNumberProduct-oldNumberProduct),myParent.getDocFacadeLevel()); setNNReturnProduct(newNumberProduct-oldNumberProduct); } else { // myParent.getCountriesT().preserveProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),(oldNumberProduct-newNumberProduct ),myParent.getDocFacadeLevel()); setNNPreserveProducts(oldNumberProduct-newNumberProduct); } if(oldNumberProduct>0) { myParent.getCountriesT().updateDocLine(id_dl,myParent.getID_DocFacade(),myParent.getID_PC(), myParent.getStorageOUTProduct(),myParent.getPriceOneProduct(), myParent.getProcentProduct(),newNumberProduct,dds,total,prList); } else { myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),myParent.getStorageOUTProduct(),myParent.getPriceOneProduct(), myParent.getProcentProduct(),newNumberProduct,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); } } } else//NAREZDANE_ZA_PREHVYRQNE if(myParent.getDocFacadeType()==NAREZDANE_ZA_PREHVYRQNE) { int storageTO = myParent.getStorageOUTProduct(); if(!isNew) { //vzimane na razlikata ot tablicata za DocLine i redaktiranite broiki ot jTable1 // vry6tane na razlikata ako ima takava ili zapazvane na brojkite int id_dl = (Integer) jTable1.getValueAt(rowSelect,12); int newNumberProduct = nn; docLineArray d =null; int oldNumberProduct = 0; for(int j=0; j < rows.size();j++) { d = (docLineArray) rows.get(j); if(id_dl==d.getID_DocLine()) { oldNumberProduct = d.getNumberOfProduct(); break; } } if(true) //newNumberProduct<tmpProductNumbers { if(newNumberProduct > oldNumberProduct ) { myParent.getCountriesT().preserveProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),(newNumberProduct - oldNumberProduct),myParent.getDocFacadeLevel()); }else { myParent.getCountriesT().returnProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),(oldNumberProduct-newNumberProduct ),myParent.getDocFacadeLevel()); } if(oldNumberProduct>0) { myParent.getCountriesT().updateDocLine(id_dl,myParent.getID_DocFacade(),myParent.getID_PC(), storageTO,myParent.getPriceOneProduct(), myParent.getProcentProduct(),newNumberProduct,dds,total,prList); } else { myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),storageTO,myParent.getPriceOneProduct(), myParent.getProcentProduct(),newNumberProduct,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); } } else // nqma dostaty4ni koli4etvo ot produkta { ((docLineTableModel) jTable1.getModel()).removeRow(rowSelect) ; ((docLineTableModel)jTable1.getModel()).addRow(new docLineArray()); } } else // ako dokumenta e nov { myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),storageTO,myParent.getPriceOneProduct(), myParent.getProcentProduct(),nn,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); //zapazvane na prodikta v tablicata s nali4nosti myParent.getCountriesT().preserveProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),nn,myParent.getDocFacadeLevel()); } } else//!PROFORMA_FAKTURA ili OFETRA if(myParent.getDocFacadeType()!=PROFORMA_FAKTURA && myParent.getDocFacadeType()!=OFERTA) { int storageTO = myParent.getStorageOUTProduct(); if(!isNew) { //vzimane na razlikata ot tablicata za DocLine i redaktiranite broiki ot jTable1 // vry6tane na razlikata ako ima takava ili zapazvane na brojkite int id_dl = (Integer) jTable1.getValueAt(rowSelect,12); int newNumberProduct = nn; docLineArray d =null; int oldNumberProduct = 0; for(int j=0; j < rows.size();j++) { d = (docLineArray) rows.get(j); if(id_dl==d.getID_DocLine()) { oldNumberProduct = d.getNumberOfProduct(); break; } } if(true) //newNumberProduct<tmpProductNumbers { if(newNumberProduct > oldNumberProduct ) { myParent.getCountriesT().preserveProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),(newNumberProduct - oldNumberProduct),myParent.getDocFacadeLevel()); }else { myParent.getCountriesT().returnProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),(oldNumberProduct-newNumberProduct ),myParent.getDocFacadeLevel()); } if(oldNumberProduct>0) { double newPrice1 = (Double) jTable1.getValueAt(rowSelect,8); double newPP1 = (Double) jTable1.getValueAt(rowSelect,9); myParent.getCountriesT().updateDocLine(id_dl,myParent.getID_DocFacade(),myParent.getID_PC(), storageTO,newPrice1, newPP1,newNumberProduct,dds,total,prList); } else { double newPrice1 = (Double) jTable1.getValueAt(rowSelect,8); double newPP1 = (Double) jTable1.getValueAt(rowSelect,9); myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),storageTO,newPrice1, newPP1,newNumberProduct,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); } } else // nqma dostaty4ni koli4etvo ot produkta { ((docLineTableModel) jTable1.getModel()).removeRow(rowSelect) ; ((docLineTableModel)jTable1.getModel()).addRow(new docLineArray()); } } else // ako dokumenta e nov { double newPrice1 = (Double) jTable1.getValueAt(rowSelect,8); double newPP1 = (Double) jTable1.getValueAt(rowSelect,9); myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),storageTO,newPrice1, newPP1,nn,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); //zapazvane na prodikta v tablicata s nali4nosti myParent.getCountriesT().preserveProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),nn,myParent.getDocFacadeLevel()); } }// ==POFORMA_FAKTURA ili OFERTA else // ako dokumenta e POFORMA_FAKTURA ili OFERTA if(myParent.getDocFacadeType()==PROFORMA_FAKTURA || myParent.getDocFacadeType()==OFERTA){ if(!isNew) { int id_dl = (Integer) jTable1.getValueAt(rowSelect,12); int newNumberProduct = nn; docLineArray d = (docLineArray) rows.get(rowSelect); myParent.getCountriesT().updateDocLine(id_dl,myParent.getID_DocFacade(),myParent.getID_PC(), myParent.getStorageOUTProduct(),myParent.getPriceOneProduct(), myParent.getProcentProduct(),newNumberProduct,dds,total,prList); } else { myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),myParent.getStorageOUTProduct(),myParent.getPriceOneProduct(), myParent.getProcentProduct(),nn,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); } } } else { ((docLineTableModel) jTable1.getModel()).removeRow(rowSelect); if(rowSelect==0) { ((docLineTableModel) jTable1.getModel()).addRow(new docLineArray()); } } isSetDataInTable = false; } if(jTable1.getSelectedRow()!=(jTable1.getRowCount() - 1)) // pri polovenie 4e reda ne e posleden { int i = 0; System.out.println("IF ROW IS`N LAST!!"); i = jTable1.getSelectedRow(); //((docLineTableModel)jTable1.getModel()).setDefaultCellEditable(); ((docLineTableModel)jTable1.getModel()).setIsFinishToEnterData(i); jTable1.setValueAt(true,jTable1.getSelectedRow(),24); // markirame reda - ve4e ne moze da se redaktira //((docLineTableModel)jTable1.getModel()).addRow(new docLineArray()); jTable1.changeSelection(i+1,0,false,false); System.out.println("changeSelection"); //((docLineTableModel) jTable1.getModel()).enableCellEditable(0); // Save DocLine into DATABASE int nn = (Integer)jTable1.getValueAt(rowSelect,4); int prList =(Integer)jTable1.getValueAt(rowSelect,3); double dds =(Double)jTable1.getValueAt(rowSelect,10); double total = (Double)jTable1.getValueAt(rowSelect,11); // int tmp = myParent.getCountriesT().checkForEnoughProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),myParent.getDocFacadeLevel()); if(true) //nn<=tmp {// PRIEMATELNA_RAZPISKA - IN produkt if(myParent.getDocFacadeType()==PRIEMATELNA_RAZPISKA || myParent.getDocFacadeType()==RAZPISKA_ZA_VRYSHTANE) { if(isNew) { myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),myParent.getStorageOUTProduct(),myParent.getPriceOneProduct(), myParent.getProcentProduct(),nn,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); //vry5tane na prodikta v tablicata s nali4nosti //================================= int levelForNali4nost=0; int emulateLevel=2; boolean isLevelOne=false; switch(myParent.getDocFacadeLevel()) { case 2 : { levelForNali4nost =0; emulateLevel=2; break; } case 3 : { levelForNali4nost =1; emulateLevel=3; break; } case 1 : { levelForNali4nost =0; isLevelOne=true; emulateLevel=2; break; } } int id_nal = myParent.getCountriesT().searchForNamlichnost(myParent.getID_PC(),myParent.getStorageOUTProduct(),levelForNali4nost); if(id_nal>0) { myParent.getCountriesT().returnProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),nn,emulateLevel); if(isLevelOne) { levelForNali4nost = 1; emulateLevel=3; int id_nal_tmp = myParent.getCountriesT().searchForNamlichnost(myParent.getID_PC(),myParent.getStorageOUTProduct(),levelForNali4nost); if(id_nal_tmp>0) { myParent.getCountriesT().returnProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),nn,emulateLevel); } else { id_nal = myParent.getCountriesT().insertProductNal(); myParent.getCountriesT().increaseProductNal(id_nal,0,myParent.getStorageOUTProduct(),myParent.getID_PC(),levelForNali4nost); myParent.getCountriesT().returnProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),nn,emulateLevel); } } } else { id_nal = myParent.getCountriesT().insertProductNal(); myParent.getCountriesT().increaseProductNal(id_nal,0,myParent.getStorageOUTProduct(),myParent.getID_PC(),levelForNali4nost); myParent.getCountriesT().returnProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),nn,emulateLevel); if(isLevelOne) { levelForNali4nost = 1; emulateLevel=3; int id_nal_tmp = myParent.getCountriesT().searchForNamlichnost(myParent.getID_PC(),myParent.getStorageOUTProduct(),levelForNali4nost); if(id_nal_tmp>0) { // myParent.getCountriesT().increaseProductNal(id_nal_tmp,0,myParent.getStorageOUTProduct(),myParent.getID_PC(),levelForNali4nost); myParent.getCountriesT().returnProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),nn,emulateLevel); } else { id_nal = myParent.getCountriesT().insertProductNal(); myParent.getCountriesT().increaseProductNal(id_nal,0,myParent.getStorageOUTProduct(),myParent.getID_PC(),levelForNali4nost); myParent.getCountriesT().returnProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),nn,emulateLevel); } } } //================================= } else { int id_dl = (Integer) jTable1.getValueAt(rowSelect,12); int newNumberProduct = nn; docLineArray d =null; int oldNumberProduct = 0; for(int j=0; j < rows.size();j++) { d = (docLineArray) rows.get(j); if(id_dl==d.getID_DocLine()) { oldNumberProduct = d.getNumberOfProduct(); break; } } if(newNumberProduct > oldNumberProduct) { myParent.getCountriesT().returnProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),(newNumberProduct-oldNumberProduct),myParent.getDocFacadeLevel()); } else { myParent.getCountriesT().preserveProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),(oldNumberProduct-newNumberProduct ),myParent.getDocFacadeLevel()); } if(oldNumberProduct>0) { myParent.getCountriesT().updateDocLine(id_dl,myParent.getID_DocFacade(),myParent.getID_PC(), myParent.getStorageOUTProduct(),myParent.getPriceOneProduct(), myParent.getProcentProduct(),newNumberProduct,dds,total,prList); } else { myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),myParent.getStorageOUTProduct(),myParent.getPriceOneProduct(), myParent.getProcentProduct(),newNumberProduct,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); } } } else//NAREZDANE_ZA_PREHVYRQNE if(myParent.getDocFacadeType()==NAREZDANE_ZA_PREHVYRQNE) { int storageTO = myParent.getStorageOUTProduct(); if(isNew) { myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),storageTO,myParent.getPriceOneProduct(), myParent.getProcentProduct(),nn,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); //zapazvane na prodikta v tablicata s nali4nosti myParent.getCountriesT().preserveProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),nn,myParent.getDocFacadeLevel()); } else { //vzimane na razlikata ot tablicata za DocLine i redaktiranite broiki ot jTable1 // vry6tane na razlikata ako ima takava ili zapazvane na brojkite int id_dl = (Integer) jTable1.getValueAt(rowSelect,12); int newNumberProduct = nn; docLineArray d =null; int oldNumberProduct = 0; for(int j=0; j < rows.size();j++) { d = (docLineArray) rows.get(j); if(id_dl==d.getID_DocLine()) { oldNumberProduct = d.getNumberOfProduct(); break; } } if(true) //newNumberProduct<tmpProductNumbers { if(newNumberProduct > oldNumberProduct ) { myParent.getCountriesT().preserveProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),(newNumberProduct - oldNumberProduct),myParent.getDocFacadeLevel()); }else { myParent.getCountriesT().returnProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),(oldNumberProduct-newNumberProduct ),myParent.getDocFacadeLevel()); } if(oldNumberProduct>0) { myParent.getCountriesT().updateDocLine(id_dl,myParent.getID_DocFacade(),myParent.getID_PC(), storageTO,myParent.getPriceOneProduct(), myParent.getProcentProduct(),newNumberProduct,dds,total,prList); } else { myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),storageTO,myParent.getPriceOneProduct(), myParent.getProcentProduct(),newNumberProduct,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); } } else // nqma dostaty4ni koli4etvo ot produkta { ((docLineTableModel) jTable1.getModel()).removeRow(rowSelect) ; ((docLineTableModel)jTable1.getModel()).addRow(new docLineArray()); } } } else//!PROFORMA_FAKTURA - OUT produkt if(myParent.getDocFacadeType()!=PROFORMA_FAKTURA && myParent.getDocFacadeType()!=OFERTA) { int storageTO = myParent.getStorageOUTProduct(); if(!isNew) { //vzimane na razlikata ot tablicata za DocLine i redaktiranite broiki ot jTable1 // vry6tane na razlikata ako ima takava ili zapazvane na brojkite int id_dl = (Integer) jTable1.getValueAt(rowSelect,12); int newNumberProduct = nn; docLineArray d =null; int oldNumberProduct = 0; for(int j=0; j < rows.size();j++) { d = (docLineArray) rows.get(j); if(id_dl==d.getID_DocLine()) { oldNumberProduct = d.getNumberOfProduct(); break; } } // int tmpProductNumbers = myParent.getCountriesT().checkForEnoughProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),myParent.getDocFacadeLevel()); if(true) //newNumberProduct<tmpProductNumbers { if(newNumberProduct > oldNumberProduct) { myParent.getCountriesT().preserveProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),(newNumberProduct - oldNumberProduct),myParent.getDocFacadeLevel()); } else { myParent.getCountriesT().returnProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),(oldNumberProduct-newNumberProduct ),myParent.getDocFacadeLevel()); } if(oldNumberProduct>0) { myParent.getCountriesT().updateDocLine(id_dl,myParent.getID_DocFacade(),myParent.getID_PC(), myParent.getStorageOUTProduct(),myParent.getPriceOneProduct(), myParent.getProcentProduct(),newNumberProduct,dds,total,prList); } else { myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),myParent.getStorageOUTProduct(),myParent.getPriceOneProduct(), myParent.getProcentProduct(),nn,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); //zapazvane na prodikta v tablicata s nali4nosti myParent.getCountriesT().preserveProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),nn,myParent.getDocFacadeLevel()); } } else { ((docLineTableModel) jTable1.getModel()).removeRow(rowSelect) ; ((docLineTableModel)jTable1.getModel()).addRow(new docLineArray()); } } // end if(!isNew) else //ako dokumenta e nov { double newPrice1 = (Double) jTable1.getValueAt(rowSelect,8); double newPP1 = (Double) jTable1.getValueAt(rowSelect,9); myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),storageTO,newPrice1, newPP1,nn,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); //zapazvane na prodikta v tablicata s nali4nosti myParent.getCountriesT().preserveProducts(myParent.getID_PC(),myParent.getStorageOUTProduct(),nn,myParent.getDocFacadeLevel()); } } // end if(myParent.getDocFacadeType()!=PROFORMA_FAKTURA)//== POFORMA_FAKTURA ili OFERTA else // ako dokumenta e POFORMA_FAKTURA ili OFERTA if(myParent.getDocFacadeType()==PROFORMA_FAKTURA || myParent.getDocFacadeType()==OFERTA) { if(!isNew) { int id_dl = (Integer) jTable1.getValueAt(rowSelect,12); int newNumberProduct = nn; docLineArray d = (docLineArray) rows.get(rowSelect); myParent.getCountriesT().updateDocLine(id_dl,myParent.getID_DocFacade(),myParent.getID_PC(), myParent.getStorageOUTProduct(),myParent.getPriceOneProduct(), myParent.getProcentProduct(),newNumberProduct,dds,total,prList); } else { myParent.getCountriesT().insertDocLine(myParent.getID_DocFacade(),myParent.getID_PC(),myParent.getStorageOUTProduct(),myParent.getPriceOneProduct(), myParent.getProcentProduct(),nn,dds,total,prList); int maxID_DocLine = myParent.getCountriesT().getMaxIdDocLine(); jTable1.setValueAt(maxID_DocLine,rowSelect,12); } } } else { ((docLineTableModel) jTable1.getModel()).removeRow(rowSelect); if(rowSelect==0) { ((docLineTableModel) jTable1.getModel()).addRow(new docLineArray()); } } isSetDataInTable = false; } } isFinishRow = true; int tmpId_dl = (Integer)jTable1.getValueAt(rowSelect,12); checkForSaveInDB.put(new Integer(tmpId_dl),new Boolean(true)); str=""; System.out.println("End procedure to save in DB"); } } if(e.getKeyCode()==KeyEvent.VK_F7) { columnSelect = jTable1.getSelectedColumn(); if(columnSelect==0) { if(str.equals("0") || str==null || str.equals("\uffff") ) {str="";} else { String tmpStr = new String(); byte by[] = str.getBytes(); for(int i=0 ; i< by.length;i++) { if(by[i]>=48 && by[i]<=57) { String b1 = String.valueOf((char)by[i]); tmpStr += b1; } } str=" "; str = tmpStr; } if((Boolean)jTable1.getValueAt(jTable1.getSelectedRow(),24)&& !((docLineTableModel)jTable1.getModel()).getIsFinishToEnterData(jTable1.getSelectedRow())) { isFinishRow = false; processKeyPress(myParent.getDocFacadeType(),F7_KEY,SEARCH_BY_CODE,4); } } if(columnSelect==1) { if(str.equals("0") || str==null || str.equals("\uffff") ) {str="";} if((Boolean)jTable1.getValueAt(jTable1.getSelectedRow(),24) && !((docLineTableModel)jTable1.getModel()).getIsFinishToEnterData(jTable1.getSelectedRow())) { // str=str.substring(0,str.length()-1); if(str.endsWith("\uffff")) { str = str.substring(0,str.length()-1); } str = removeCharacter(str); System.out.println("befor processKeyPress"+str); isFinishRow = false; processKeyPress(myParent.getDocFacadeType(),F7_KEY,SEARCH_BY_NAME,3); } } } if(e.getKeyCode()==KeyEvent.VK_F8) { if(str.equals("0")|| str==null) str=""; columnSelect = jTable1.getSelectedColumn(); if(columnSelect==0) { if(str.equals("0") || str==null || str.equals("\uffff") ) {str="";} else { String tmpStr = new String(); byte by[] = str.getBytes(); for(int i=0 ; i< by.length;i++) { if(by[i]>=48 && by[i]<=57) { String b1 = String.valueOf((char)by[i]); tmpStr += b1; } } str=" "; str = tmpStr; } if((Boolean)jTable1.getValueAt(jTable1.getSelectedRow(),24) && !((docLineTableModel)jTable1.getModel()).getIsFinishToEnterData(jTable1.getSelectedRow())) { isFinishRow = false; processKeyPress(myParent.getDocFacadeType(),F8_KEY,SEARCH_BY_CODE,4); } } if(columnSelect==1) { if(str.equals("0") || str==null || str.equals("\uffff") ) {str="";} if((Boolean)jTable1.getValueAt(jTable1.getSelectedRow(),24)&& !((docLineTableModel)jTable1.getModel()).getIsFinishToEnterData(jTable1.getSelectedRow())) { if(str.endsWith("\uffff")) { str = str.substring(0,str.length()-1); } str = removeCharacter(str); isFinishRow = false; processKeyPress(myParent.getDocFacadeType(),F8_KEY,SEARCH_BY_NAME,3); } } } if(e.getKeyCode()==KeyEvent.VK_F9) { if(str.equals("0")|| str==null) str=""; columnSelect = jTable1.getSelectedColumn(); if(columnSelect==0) { if(str.equals("0") || str==null || str.equals("\uffff") ) {str="";} else { String tmpStr = new String(); byte by[] = str.getBytes(); for(int i=0 ; i< by.length;i++) { if(by[i]>=48 && by[i]<=57) { String b1 = String.valueOf((char)by[i]); tmpStr += b1; } } str=" "; str = tmpStr; } if((Boolean)jTable1.getValueAt(jTable1.getSelectedRow(),24)&& !((docLineTableModel)jTable1.getModel()).getIsFinishToEnterData(jTable1.getSelectedRow())) { isFinishRow = false; processKeyPress(myParent.getDocFacadeType(),F9_KEY,SEARCH_BY_CODE,4); } } if(columnSelect==1) { if(str.equals("0") || str==null || str.equals("\uffff") ) {str="";} if((Boolean)jTable1.getValueAt(jTable1.getSelectedRow(),24)&& !((docLineTableModel)jTable1.getModel()).getIsFinishToEnterData(jTable1.getSelectedRow())) { if(str.endsWith("\uffff")) { str = str.substring(0,str.length()-1); } str = removeCharacter(str); isFinishRow = false; processKeyPress(myParent.getDocFacadeType(),F9_KEY,SEARCH_BY_NAME,3); } } } } // end keyPressed public void keyReleased(KeyEvent e) { columnSelect = jTable1.getSelectedColumn()-1; rowSelect = jTable1.getSelectedRow(); if(e.getKeyCode()== KeyEvent.VK_ENTER) { if(columnSelect == 0) { isFinishRow = false; System.out.println("keyReleased == = == 0000"); if(!isSetDataInTable&&rate!=0) { try { str = String.valueOf(jTable1.getValueAt(rowSelect,columnSelect)); } catch(Exception ex){} if(str.equals("0")) str=""; if((Boolean)jTable1.getValueAt(jTable1.getSelectedRow(),24)&& !((docLineTableModel)jTable1.getModel()).getIsFinishToEnterData(rowSelect)) processKeyPress(myParent.getDocFacadeType(),F7_KEY,SEARCH_BY_CODE,3); } } if(columnSelect == 1) { isFinishRow = false; System.out.println("keyReleased == = == 0000"); if(!isSetDataInTable&&rate!=0) { try { str = String.valueOf(jTable1.getValueAt(rowSelect,columnSelect)); } catch(Exception ex) { str = new String("0"); } if(str.equals("0")||str.equals("null")) str=""; if((Boolean)jTable1.getValueAt(jTable1.getSelectedRow(),24)&& !((docLineTableModel)jTable1.getModel()).getIsFinishToEnterData(rowSelect)) { System.out.println("processKeyPress - enter "+ str); if(str.endsWith("\uffff")) { str = str.substring(0,str.length()-1); } str = removeCharacter(str); System.out.println("processKeyPress - enter "+ str); processKeyPress(myParent.getDocFacadeType(),F7_KEY,SEARCH_BY_NAME,2); } } } if(columnSelect == 2 || columnSelect == 3 || columnSelect == 4 || columnSelect == 5 || columnSelect == 6 || columnSelect == 7 || columnSelect == 8 || columnSelect == 9 || columnSelect == 10) { if((Boolean)jTable1.getValueAt(jTable1.getSelectedRow(),24)) if(!isSetDataInTable) // ako ne e minal prez formata za izbor na produkt { jTable1.changeSelection(jTable1.getSelectedRow(),0,false,false); System.out.println("Return to begin DocLine"); } } if(columnSelect == 3) // cenova lista --------------------------------------------- { int pp = (Integer) jTable1.getValueAt(rowSelect,columnSelect); double p[] = new double[3]; if(!isProductIN) { if(pp>=1 && pp <=3) { System.out.println("---------->"+String.valueOf(jTable1.getValueAt(rowSelect,columnSelect))); p = myParent.getWorkPriceListProduct(); jLabelPricelist_1.setText("\u0426\u0435\u043d\u0430 "+String.valueOf(calculatePriceList(pp)[0])); jLabelPricelist_2.setText("\u0426\u0435\u043d\u0430 "+String.valueOf(calculatePriceList(pp)[1])); jLabelPrice_1.setText(String.valueOf(myParent.getWorkPriceListProduct()[calculatePriceList(pp)[0]-1])); jLabelPrice_2.setText(String.valueOf(myParent.getWorkPriceListProduct()[calculatePriceList(pp)[1]-1]));//rate---------> jTable1.setValueAt(myParent.getWorkPriceListProduct()[pp-1]*rate,rowSelect,8); myParent.setPriceOneProduct(myParent.getWorkPriceListProduct()[pp-1]); jTable1.setValueAt(calculateTotalPrice(myParent.getPriceOneProduct(),myParent.getBrojProduct()),jTable1.getSelectedRow(),11); } else { jTable1.setValueAt(myParent.getPriceList(),rowSelect,columnSelect); jLabelPricelist_1.setText("\u0426\u0435\u043d\u0430 "+String.valueOf(calculatePriceList(myParent.getPriceList())[0])); jLabelPricelist_2.setText("\u0426\u0435\u043d\u0430 "+String.valueOf(calculatePriceList(myParent.getPriceList())[1]));//rate ----------> jLabelPrice_1.setText(String.valueOf(myParent.getWorkPriceListProduct()[calculatePriceList(myParent.getPriceList())[0]-1]*rate)); jLabelPrice_2.setText(String.valueOf(myParent.getWorkPriceListProduct()[calculatePriceList(myParent.getPriceList())[1]-1]*rate)); } } else // produkta se vkarva v sklada, negovata cenova lista zadylzitelno trqbva da byde "0", // t.e. dostavna cena { jTable1.setValueAt(0,rowSelect,columnSelect); } /* ((docLineTableModel) jTable1.getModel()).disableCellEditable(3); ((docLineTableModel) jTable1.getModel()).enableCellEditable(4);*/ } if(columnSelect == 4) // broiki ot produkta --------------------------------------------- { int br = (Integer) jTable1.getValueAt(rowSelect,columnSelect) ; br = java.lang.Math.abs(br); if(isProductIN) { jTable1.setValueAt(calculateProductDescription(br,productDescription_2,productDescription_3)[0],jTable1.getSelectedRow(),5); jTable1.setValueAt(calculateProductDescription(br,productDescription_2,productDescription_3)[1],jTable1.getSelectedRow(),6); jTable1.setValueAt(calculateProductDescription(br,productDescription_2,productDescription_3)[2],jTable1.getSelectedRow(),7); jTable1.setValueAt(calculateTotalPrice(myParent.getPriceOneProduct(),br),jTable1.getSelectedRow(),11); } else if(true) // br <= myParent.getBrojProduct() { jTable1.setValueAt(calculateProductDescription(br,productDescription_2,productDescription_3)[0],jTable1.getSelectedRow(),5); jTable1.setValueAt(calculateProductDescription(br,productDescription_2,productDescription_3)[1],jTable1.getSelectedRow(),6); jTable1.setValueAt(calculateProductDescription(br,productDescription_2,productDescription_3)[2],jTable1.getSelectedRow(),7); jTable1.setValueAt(calculateTotalPrice(myParent.getPriceOneProduct(),br),jTable1.getSelectedRow(),11); } } if(columnSelect == 5) // razfasovka 1 --------------------------------------------- { isTyped = false; int rz1 = (Integer) jTable1.getValueAt(rowSelect,columnSelect); rz1 = java.lang.Math.abs(rz1); int br = (Integer) jTable1.getValueAt(rowSelect,4) ; int oldRz1 = calculateProductDescription(br,productDescription_2,productDescription_3)[0]; if(rz1<=productDescription_2) { int tmp = (rz1-oldRz1); if(isProductIN) { jTable1.setValueAt(new Integer(br+tmp),rowSelect,4);//rate-------> jTable1.setValueAt(calculateTotalPrice(myParent.getPriceOneProduct()*rate,br+tmp),jTable1.getSelectedRow(),11); jTable1.setValueAt(calculateTotalPrice(myParent.getPriceOneProduct(),br+tmp),jTable1.getSelectedRow(),11); } else if(true) // (br+tmp)<=myParent.getBrojProduct() { jTable1.setValueAt(new Integer(br+tmp),rowSelect,4); //rate-------> jTable1.setValueAt(calculateTotalPrice(myParent.getPriceOneProduct()*rate,br+tmp),jTable1.getSelectedRow(),11); } else jTable1.setValueAt(new Integer(oldRz1),rowSelect,5); } else jTable1.setValueAt(new Integer(oldRz1),rowSelect,5); } if(columnSelect == 6) // razfasovka 2 --------------------------------------------- { int rz2 = (Integer) jTable1.getValueAt(rowSelect,columnSelect); rz2 = java.lang.Math.abs(rz2); int br = (Integer) jTable1.getValueAt(rowSelect,4) ; int oldRz2 = calculateProductDescription(br,productDescription_2,productDescription_3)[1]; if( rz2 <= productDescription_3 ) { int tmp = (rz2-oldRz2); tmp *= productDescription_2; if(isProductIN) { jTable1.setValueAt(new Integer(br+tmp),rowSelect,4); //rate ------> jTable1.setValueAt(calculateTotalPrice(myParent.getPriceOneProduct()*rate,br+tmp),jTable1.getSelectedRow(),11); jTable1.setValueAt(calculateTotalPrice(myParent.getPriceOneProduct(),br+tmp),jTable1.getSelectedRow(),11); } else if(true) // (br+tmp)<=myParent.getBrojProduct() { jTable1.setValueAt(new Integer(br+tmp),rowSelect,4); //rate ------> jTable1.setValueAt(calculateTotalPrice(myParent.getPriceOneProduct()*rate,br+tmp),jTable1.getSelectedRow(),11); } else jTable1.setValueAt(new Integer(oldRz2),rowSelect,6); } else jTable1.setValueAt(new Integer(oldRz2),rowSelect,6); } if(columnSelect == 7) // razfasovka 3 --------------------------------------------- { int rz3 = (Integer) jTable1.getValueAt(rowSelect,columnSelect); rz3 = java.lang.Math.abs(rz3); int br = (Integer) jTable1.getValueAt(rowSelect,4) ; int oldRz3 = calculateProductDescription(br,productDescription_2,productDescription_3)[2]; int tmp = (rz3-oldRz3); tmp *= productDescription_3; if(isProductIN) { jTable1.setValueAt(new Integer(br+tmp),rowSelect,4);//rate ----->jTable1.setValueAt(calculateTotalPrice(myParent.getPriceOneProduct()*rate,br+tmp),jTable1.getSelectedRow(),11); jTable1.setValueAt(calculateTotalPrice(myParent.getPriceOneProduct(),br+tmp),jTable1.getSelectedRow(),11); } else if(true) // (br+tmp)<=myParent.getBrojProduct() { jTable1.setValueAt(new Integer(br+tmp),rowSelect,4);//rate -----> jTable1.setValueAt(calculateTotalPrice(myParent.getPriceOneProduct()*rate,br+tmp),jTable1.getSelectedRow(),11); } else jTable1.setValueAt(new Integer(oldRz3),rowSelect,7); } if(columnSelect == 8) // price one piece { //rate ----------> if(!isProductIN) { double newPrice = (Double)jTable1.getValueAt(rowSelect,columnSelect); int br = (Integer) jTable1.getValueAt(rowSelect,4) ; if(true) //ograni4eniq v cenata -> naprimer: (newPrice>=myParent.getPriceOneProduct()*rate) { double newPP =100-((newPrice*100)/(myParent.getPriceOneProduct()*rate)); if(newPP>0) { jTable1.setValueAt(new Double(newPP),rowSelect,9); if(newPP==myParent.getProcentProduct()) jTable1.setValueAt(new Double(0),rowSelect,9); } else { jTable1.setValueAt(new Double(0),rowSelect,9); } jTable1.setValueAt(calculateTotalPrice(newPrice,br),jTable1.getSelectedRow(),11); } else jTable1.setValueAt(myParent.getPriceOneProduct()*rate,rowSelect,8); } else jTable1.setValueAt(myParent.getPriceOneProduct(),rowSelect,8); } if(columnSelect == 9) // procent { if(!isProductIN) { double newPrice1 = (Double)jTable1.getValueAt(rowSelect,8); if(newPrice1<=myParent.getPriceOneProduct()*rate) { double newPP = (Double)jTable1.getValueAt(rowSelect,columnSelect); int br = (Integer) jTable1.getValueAt(rowSelect,4) ; if(newPP <= myParent.getProcentProduct()&& newPP>0) { double newPrice =(myParent.getPriceOneProduct()*rate)-(newPP/100)*(myParent.getPriceOneProduct()*rate); jTable1.setValueAt(new Double(newPrice),rowSelect,8); jTable1.setValueAt(calculateTotalPrice(newPrice,br),jTable1.getSelectedRow(),11); } else jTable1.setValueAt(new Double(0),rowSelect,9); } else jTable1.setValueAt(new Double(0),rowSelect,9); } else jTable1.setValueAt(myParent.getProcentProduct(),rowSelect,9); } } } public void keyTyped(KeyEvent e) { } }); }
|
12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/819e12d5887ee005a6db30d46fcc791a090c703a/aeDocumentFacade.java/clean/src/imakante/sales/aeDocumentFacade.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
21687,
48,
291,
708,
1435,
288,
3639,
3579,
22233,
1318,
5621,
3639,
525,
1388,
21,
18,
1289,
9233,
2223,
12,
2704,
478,
4560,
2223,
1435,
288,
5411,
1071,
918,
7155,
43,
8707,
12,
9233,
1133,
425,
13,
2398,
288,
7734,
775,
7734,
288,
7734,
309,
12443,
5507,
13,
78,
1388,
21,
18,
24805,
861,
12,
78,
1388,
21,
18,
588,
7416,
1999,
9334,
3247,
13,
10,
10,
13491,
401,
12443,
2434,
1670,
1388,
1488,
13,
78,
1388,
21,
18,
588,
1488,
1435,
2934,
588,
2520,
11641,
774,
10237,
751,
12,
78,
1388,
21,
18,
588,
7416,
1999,
1435,
3719,
10792,
288,
10792,
14015,
2434,
1670,
1388,
1488,
13,
525,
1388,
21,
18,
588,
1488,
1435,
2934,
7589,
4020,
15470,
12,
20,
1769,
10792,
368,
25001,
13806,
5453,
4009,
8275,
709,
73,
10792,
14015,
2434,
1670,
1388,
1488,
13,
525,
1388,
21,
18,
588,
1488,
1435,
2934,
7589,
4020,
15470,
12,
21,
1769,
10792,
289,
7734,
2332,
18,
659,
18,
8222,
2932,
13923,
43,
8707,
8863,
7734,
289,
7734,
1044,
12,
503,
431,
15329,
3163,
18,
659,
18,
8222,
2932,
668,
7155,
43,
8707,
8863,
20451,
5411,
289,
5411,
1071,
918,
7155,
19024,
12,
9233,
1133,
425,
13,
288,
5411,
289,
3639,
15549,
7734,
525,
1388,
21,
18,
1289,
9186,
2223,
12,
2704,
17013,
2223,
1435,
288,
5411,
1071,
918,
7644,
27633,
12,
9186,
1133,
425,
13,
288,
7734,
509,
1027,
3391,
273,
525,
1388,
21,
18,
588,
7416,
1999,
5621,
7734,
2549,
8516,
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,
377,
3238,
918,
21687,
48,
291,
708,
1435,
288,
3639,
3579,
22233,
1318,
5621,
3639,
525,
1388,
21,
18,
1289,
9233,
2223,
12,
2704,
478,
4560,
2223,
1435,
288,
5411,
1071,
918,
7155,
43,
8707,
12,
9233,
1133,
425,
13,
2398,
288,
7734,
775,
7734,
288,
7734,
309,
12443,
5507,
13,
78,
1388,
21,
18,
24805,
861,
12,
78,
1388,
21,
18,
588,
7416,
1999,
9334,
3247,
13,
10,
10,
13491,
401,
12443,
2434,
1670,
1388,
1488,
13,
78,
1388,
21,
18,
588,
1488,
1435,
2934,
588,
2520,
11641,
774,
10237,
751,
12,
78,
1388,
21,
18,
588,
7416,
1999,
1435,
3719,
10792,
288,
10792,
14015,
2434,
1670,
1388,
1488,
13,
525,
1388,
21,
18,
588,
1488,
1435,
2934,
2
] |
public static void sprocSetRoleDocPermissionSetId(IMCServiceInterface imcref, int metaId, int roleId, int newSetId) { imcref.sqlUpdateProcedure("SetRoleDocPermissionSetId", new String[]{"" + roleId, "" + metaId, "" + newSetId});
|
public static void sprocSetRoleDocPermissionSetId( IMCServiceInterface imcref, int metaId, int roleId, int newSetId ) { imcref.sqlUpdateProcedure( "SetRoleDocPermissionSetId", new String[]{"" + roleId, "" + metaId, "" + newSetId} );
|
public static void sprocSetRoleDocPermissionSetId(IMCServiceInterface imcref, int metaId, int roleId, int newSetId) { imcref.sqlUpdateProcedure("SetRoleDocPermissionSetId", new String[]{"" + roleId, "" + metaId, "" + newSetId}); }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/f203f6fc91c9ae8d2fcd69e28ea9f0981a4ee690/DocumentMapper.java/buggy/server/src/imcode/server/document/DocumentMapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
272,
9381,
694,
2996,
1759,
5041,
18523,
12,
3445,
39,
18348,
709,
71,
1734,
16,
509,
2191,
548,
16,
509,
21152,
16,
4766,
8227,
509,
394,
18523,
13,
288,
3639,
709,
71,
1734,
18,
4669,
1891,
17213,
2932,
694,
2996,
1759,
5041,
18523,
3113,
394,
514,
63,
7073,
3660,
397,
21152,
16,
1408,
397,
2191,
548,
16,
1408,
397,
394,
18523,
22938,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
272,
9381,
694,
2996,
1759,
5041,
18523,
12,
3445,
39,
18348,
709,
71,
1734,
16,
509,
2191,
548,
16,
509,
21152,
16,
4766,
8227,
509,
394,
18523,
13,
288,
3639,
709,
71,
1734,
18,
4669,
1891,
17213,
2932,
694,
2996,
1759,
5041,
18523,
3113,
394,
514,
63,
7073,
3660,
397,
21152,
16,
1408,
397,
2191,
548,
16,
1408,
397,
394,
18523,
22938,
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
] |
public org.quickfix.field.LegCurrency getLegCurrency() throws FieldNotFound { org.quickfix.field.LegCurrency value = new org.quickfix.field.LegCurrency();
|
public quickfix.field.LegCurrency getLegCurrency() throws FieldNotFound { quickfix.field.LegCurrency value = new quickfix.field.LegCurrency();
|
public org.quickfix.field.LegCurrency getLegCurrency() throws FieldNotFound { org.quickfix.field.LegCurrency value = new org.quickfix.field.LegCurrency(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReport.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
7623,
336,
8329,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
7623,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
7623,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
7623,
336,
8329,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
7623,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
7623,
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
] |
Statistics stats= new Statistics();
|
Statistics stats;
|
private Statistics computeStats(Dim dimension) { Statistics stats= new Statistics(); Set set= new HashSet(); for (int j= 0; j < fDataPoints.length; j++) { DataPoint dp= fDataPoints[j]; set.add(new Integer(dp.getStep())); } long mags[]= new long[fDataPoints.length]; switch (set.size()) { case 1: // if there is only one Step, we don't calculate the delta. for (int i= 0; i < fDataPoints.length; i++) { Scalar sc= fDataPoints[i].getScalar(dimension); if (sc != null) { long magnitude= sc.getMagnitude(); mags[i]= magnitude; stats.sum += magnitude; stats.count++; } } if (stats.count > 0) { stats.average= stats.sum / stats.count; for (int i= 0; i < fDataPoints.length; i++) { stats.stddev+= (stats.average - mags[i]) * (stats.average - mags[i]); } } break; case 2: for (int i= 0; i < fDataPoints.length-1; i += 2) { DataPoint before= fDataPoints[i]; Assert.assertTrue("wrong order of steps", before.getStep() == InternalPerformanceMeter.BEFORE); //$NON-NLS-1$ DataPoint after= fDataPoints[i + 1]; Assert.assertTrue("wrong order of steps", after.getStep() == InternalPerformanceMeter.AFTER); //$NON-NLS-1$ Scalar delta= getDelta(before, after, dimension); long magnitude= delta.getMagnitude(); mags[i]= magnitude; stats.sum += magnitude; stats.count++; } if (stats.count > 0) { stats.average= stats.sum / stats.count; for (int i= 0; i < fDataPoints.length-1; i += 2) { stats.stddev+= (stats.average - mags[i]) * (stats.average - mags[i]); } } break; default: Assert.assertTrue("cannot handle more than two steps", false); //$NON-NLS-1$ break; } if (stats.count > 1) stats.stddev= Math.sqrt(stats.stddev / stats.count - 1); // unbiased sample stdev else stats.stddev= Double.NaN; return stats; }
|
14221 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14221/d62d7b1a870b74cb529e17d6691b859fcad1c3b7/StatisticsSession.java/buggy/src/org/eclipse/test/internal/performance/eval/StatisticsSession.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
22964,
3671,
4195,
12,
5225,
4968,
13,
288,
202,
377,
9506,
202,
8569,
3177,
33,
394,
22964,
5621,
9506,
202,
694,
444,
33,
394,
6847,
5621,
202,
202,
1884,
261,
474,
525,
33,
374,
31,
525,
411,
284,
751,
5636,
18,
2469,
31,
525,
27245,
288,
1082,
565,
1910,
2148,
9986,
33,
284,
751,
5636,
63,
78,
15533,
1082,
565,
444,
18,
1289,
12,
2704,
2144,
12,
9295,
18,
588,
4160,
1435,
10019,
202,
202,
97,
9506,
202,
5748,
312,
1341,
8526,
33,
394,
1525,
63,
74,
751,
5636,
18,
2469,
15533,
202,
202,
9610,
261,
542,
18,
1467,
10756,
288,
202,
202,
3593,
404,
30,
1082,
202,
759,
309,
1915,
353,
1338,
1245,
8693,
16,
732,
2727,
1404,
4604,
326,
3622,
18,
1082,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
284,
751,
5636,
18,
2469,
31,
277,
27245,
288,
9506,
202,
13639,
888,
33,
284,
751,
5636,
63,
77,
8009,
588,
13639,
12,
11808,
1769,
9506,
202,
430,
261,
1017,
480,
446,
13,
288,
6862,
202,
5748,
13463,
33,
888,
18,
588,
11372,
10754,
5621,
6862,
202,
81,
1341,
63,
77,
65,
33,
13463,
31,
6862,
202,
5296,
18,
1364,
1011,
13463,
31,
6862,
202,
5296,
18,
1883,
9904,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
430,
261,
5296,
18,
1883,
405,
374,
13,
288,
9506,
202,
5296,
18,
15621,
33,
3177,
18,
1364,
342,
3177,
18,
1883,
31,
9506,
202,
1884,
261,
474,
277,
33,
374,
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,
225,
202,
1152,
22964,
3671,
4195,
12,
5225,
4968,
13,
288,
202,
377,
9506,
202,
8569,
3177,
33,
394,
22964,
5621,
9506,
202,
694,
444,
33,
394,
6847,
5621,
202,
202,
1884,
261,
474,
525,
33,
374,
31,
525,
411,
284,
751,
5636,
18,
2469,
31,
525,
27245,
288,
1082,
565,
1910,
2148,
9986,
33,
284,
751,
5636,
63,
78,
15533,
1082,
565,
444,
18,
1289,
12,
2704,
2144,
12,
9295,
18,
588,
4160,
1435,
10019,
202,
202,
97,
9506,
202,
5748,
312,
1341,
8526,
33,
394,
1525,
63,
74,
751,
5636,
18,
2469,
15533,
202,
202,
9610,
261,
542,
18,
1467,
10756,
288,
202,
202,
3593,
404,
30,
1082,
202,
759,
309,
1915,
353,
1338,
1245,
8693,
16,
2
] |
List resources = (List) new ArrayList();
|
List resources = new ArrayList();
|
public void deleteAllProperties(CmsRequestContext context, String resourceName, int deleteOption) throws CmsException { CmsResource resource = null; List resources = (List) new ArrayList(); try { // read the resource resource = readFileHeader(context, resourceName, CmsResourceFilter.IGNORE_EXPIRATION); // check the security checkPermissions(context, resource, I_CmsConstants.C_WRITE_ACCESS, CmsResourceFilter.ALL); // delete the property values m_vfsDriver.deleteProperties(context.currentProject().getId(), resource, deleteOption); // prepare the resources for the event to be fired resources.add(resource); if (deleteOption == CmsProperty.C_DELETE_OPTION_DELETE_STRUCTURE_AND_RESOURCE_VALUES || deleteOption == CmsProperty.C_DELETE_OPTION_DELETE_RESOURCE_VALUES) { resources.addAll(readSiblings(context, resourceName, false, CmsResourceFilter.ALL)); } } finally { // clear the driver manager cache m_propertyCache.clear(); // fire an event that all properties of a resource have been deleted OpenCms.fireCmsEvent(new CmsEvent(new CmsObject(), I_CmsEventListener.EVENT_RESOURCES_AND_PROPERTIES_MODIFIED, Collections.singletonMap("resources", resources))); } }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/19c5fe9a1e7b32089bfff15faca41564091f4c37/CmsDriverManager.java/buggy/src/org/opencms/db/CmsDriverManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27283,
2297,
12,
4747,
21426,
819,
16,
514,
9546,
16,
509,
1430,
1895,
13,
1216,
11228,
288,
3639,
7630,
1058,
273,
446,
31,
3639,
987,
2703,
273,
394,
2407,
5621,
3639,
775,
288,
5411,
368,
855,
326,
1058,
5411,
1058,
273,
10413,
1864,
12,
2472,
16,
9546,
16,
21082,
18,
20118,
67,
18433,
24284,
1769,
5411,
368,
866,
326,
4373,
5411,
866,
6521,
12,
2472,
16,
1058,
16,
467,
67,
4747,
2918,
18,
39,
67,
11677,
67,
13204,
16,
21082,
18,
4685,
1769,
5411,
368,
1430,
326,
1272,
924,
5411,
312,
67,
90,
2556,
4668,
18,
3733,
2297,
12,
2472,
18,
2972,
4109,
7675,
26321,
9334,
1058,
16,
1430,
1895,
1769,
13491,
368,
2911,
326,
2703,
364,
326,
871,
358,
506,
15950,
5411,
2703,
18,
1289,
12,
3146,
1769,
5411,
309,
261,
3733,
1895,
422,
18505,
18,
39,
67,
6460,
67,
7425,
67,
6460,
67,
13915,
4830,
67,
4307,
67,
11395,
67,
16386,
747,
1430,
1895,
422,
18505,
18,
39,
67,
6460,
67,
7425,
67,
6460,
67,
11395,
67,
16386,
13,
288,
7734,
2703,
18,
1289,
1595,
12,
896,
31555,
12,
2472,
16,
9546,
16,
629,
16,
21082,
18,
4685,
10019,
5411,
289,
3639,
289,
3095,
288,
5411,
368,
2424,
326,
3419,
3301,
1247,
5411,
312,
67,
4468,
1649,
18,
8507,
5621,
5411,
368,
4452,
392,
871,
716,
777,
1790,
434,
279,
1058,
1240,
2118,
4282,
5411,
10319,
18,
12179,
4747,
1133,
12,
2704,
2149,
1133,
12,
2704,
14371,
9334,
467,
67,
4747,
7375,
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,
27283,
2297,
12,
4747,
21426,
819,
16,
514,
9546,
16,
509,
1430,
1895,
13,
1216,
11228,
288,
3639,
7630,
1058,
273,
446,
31,
3639,
987,
2703,
273,
394,
2407,
5621,
3639,
775,
288,
5411,
368,
855,
326,
1058,
5411,
1058,
273,
10413,
1864,
12,
2472,
16,
9546,
16,
21082,
18,
20118,
67,
18433,
24284,
1769,
5411,
368,
866,
326,
4373,
5411,
866,
6521,
12,
2472,
16,
1058,
16,
467,
67,
4747,
2918,
18,
39,
67,
11677,
67,
13204,
16,
21082,
18,
4685,
1769,
5411,
368,
1430,
326,
1272,
924,
5411,
312,
67,
90,
2556,
4668,
18,
3733,
2297,
12,
2472,
18,
2972,
4109,
7675,
26321,
9334,
1058,
16,
1430,
1895,
1769,
13491,
368,
2911,
326,
2703,
2
] |
int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop);
|
int falseJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.IFNE, iCodeTop);
|
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte(TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); int index = fn.getExistingIntProp(Node.FUNCTION_PROP); iCodeTop = addByte(index >> 8, iCodeTop); iCodeTop = addByte(index & 0xff, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ ObjArray cases = (ObjArray) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { int label = node.getIntProp(Node.LABEL_PROP, -1); if (label == -1) { label = acquireLabel(); node.putIntProp(Node.LABEL_PROP, label); } markLabel(label, iCodeTop); // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte(op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte(SOURCEFILE_ICODE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte(TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte(type, iCodeTop); iCodeTop = addShort(nameIndex, iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addShort(childCount, iCodeTop); if (childCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = childCount; iCodeTop = addByte(SOURCEFILE_ICODE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte(TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); // Bug 115717 is due to adding a GOSUB here before // we insert an ENDTRY. I'm not sure of the best way // to fix this; perhaps we need to maintain a stack // of pending trys and have some knowledge of how // many trys we need to close when we perform a // GOTO or GOSUB. iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte(TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte(TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte(TokenStream.POP, iCodeTop); iCodeTop = addByte(TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte(TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte(TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte(TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte(TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte(TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte(TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC, iCodeTop); int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); else iCodeTop = addByte(type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC, iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte(type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC, iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addByte(TokenStream.ZERO, iCodeTop); } else if (inum == 1) { iCodeTop = addByte(TokenStream.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addByte(SHORTNUMBER_ICODE, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addByte(INTNUMBER_ICODE, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addByte(TokenStream.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte(type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte(TokenStream.TRY, iCodeTop); iCodeTop = addShort(0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; addLabelFixup(theLabel, iCodeTop); } iCodeTop = addShort(0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte(TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); int finallyLabel = finallyTarget.getExistingIntProp(Node.LABEL_PROP); iCodeTop = addGoto(finallyLabel, TokenStream.GOSUB, iCodeTop); iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(RETURN_UNDEF_ICODE, iCodeTop); } break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte(TokenStream.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte(node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte(TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = regexp.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addByte(TokenStream.OBJECT, iCodeTop); iCodeTop = addShort(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/b41bc47f816e88fc74cb209f1323974fbed7be07/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
5411,
648,
3155,
1228,
18,
7788,
294,
288,
10792,
277,
1085,
3401,
273,
527,
3216,
12,
1345,
1228,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
2029,
2295,
273,
261,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
509,
770,
273,
2295,
18,
588,
9895,
1702,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
277,
1085,
3401,
273,
527,
3216,
12,
1615,
1671,
1725,
16,
277,
1085,
3401,
1769,
10792,
277,
1085,
3401,
273,
527,
3216,
12,
1615,
473,
374,
5297,
16,
277,
1085,
3401,
1769,
10792,
2097,
2624,
6148,
9904,
31,
10792,
309,
261,
1282,
2624,
6148,
405,
2097,
751,
18,
1282,
2747,
2624,
13,
13491,
2097,
751,
18,
1282,
2747,
2624,
273,
2097,
2624,
6148,
31,
7734,
289,
7734,
898,
31,
5411,
648,
3155,
1228,
18,
10885,
294,
7734,
277,
1085,
3401,
273,
1089,
31063,
12,
2159,
16,
277,
1085,
3401,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
309,
261,
3624,
18,
588,
559,
1435,
480,
3155,
1228,
18,
7788,
13,
13491,
277,
1085,
3401,
273,
2103,
45,
1085,
12,
3624,
16,
277,
1085,
3401,
1769,
10792,
1151,
273,
1151,
18,
588,
2134,
10291,
5621,
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,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
5411,
648,
3155,
1228,
18,
7788,
294,
288,
10792,
277,
1085,
3401,
273,
527,
3216,
12,
1345,
1228,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
2029,
2295,
273,
261,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
509,
770,
273,
2295,
18,
588,
9895,
1702,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
277,
1085,
3401,
273,
527,
3216,
12,
1615,
1671,
2
] |
dialog.setText("c++filt Command");
|
dialog.setText(CUIMessages.getString("BinaryParserPage.label.cppfiltCommand"));
|
public void createControl(Composite parent) { Composite comp = ControlFactory.createCompositeEx(parent, 2, GridData.FILL_HORIZONTAL); ((GridLayout) comp.getLayout()).makeColumnsEqualWidth = false; Label label = ControlFactory.createLabel(comp, CUIMessages.getString("BinaryParserPage.label.addr2lineCommand")); //$NON-NLS-1$ GridData gd = new GridData(); gd.horizontalSpan = 2; label.setLayoutData(gd); fAddr2LineCommandText = ControlFactory.createTextField(comp, SWT.SINGLE | SWT.BORDER); fAddr2LineCommandText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent evt) { //updateLaunchConfigurationDialog(); } }); Button button = ControlFactory.createPushButton(comp, CUIMessages.getString("BinaryParserPage.label.browse")); //$NON-NLS-1$ button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent evt) { handleAddr2LineButtonSelected(); //updateLaunchConfigurationDialog(); } private void handleAddr2LineButtonSelected() { FileDialog dialog = new FileDialog(getShell(), SWT.NONE); dialog.setText("addr2line Command"); //$NON-NLS-1$ String command = fAddr2LineCommandText.getText().trim(); int lastSeparatorIndex = command.lastIndexOf(File.separator); if (lastSeparatorIndex != -1) { dialog.setFilterPath(command.substring(0, lastSeparatorIndex)); } String res = dialog.open(); if (res == null) { return; } fAddr2LineCommandText.setText(res); } }); label = ControlFactory.createLabel(comp, CUIMessages.getString("BinaryParserPage.label.cppfiltCommand")); //$NON-NLS-1$ gd = new GridData(); gd.horizontalSpan = 2; label.setLayoutData(gd); fCPPFiltCommandText = ControlFactory.createTextField(comp, SWT.SINGLE | SWT.BORDER); gd = new GridData(GridData.FILL_HORIZONTAL); fCPPFiltCommandText.setLayoutData(gd); fCPPFiltCommandText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent evt) { //updateLaunchConfigurationDialog(); } }); button = ControlFactory.createPushButton(comp, CUIMessages.getString("BinaryParserPage.label.browse")); //$NON-NLS-1$ button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent evt) { handleCPPFiltButtonSelected(); //updateLaunchConfigurationDialog(); } private void handleCPPFiltButtonSelected() { FileDialog dialog = new FileDialog(getShell(), SWT.NONE); dialog.setText("c++filt Command"); //$NON-NLS-1$ String command = fCPPFiltCommandText.getText().trim(); int lastSeparatorIndex = command.lastIndexOf(File.separator); if (lastSeparatorIndex != -1) { dialog.setFilterPath(command.substring(0, lastSeparatorIndex)); } String res = dialog.open(); if (res == null) { return; } fCPPFiltCommandText.setText(res); } }); label = ControlFactory.createLabel(comp, CUIMessages.getString("BinaryParserPage.label.cygpathCommand")); //$NON-NLS-1$ gd = new GridData(); gd.horizontalSpan = 2; label.setLayoutData(gd); fCygPathCommandText = ControlFactory.createTextField(comp, SWT.SINGLE | SWT.BORDER); gd = new GridData(GridData.FILL_HORIZONTAL); fCygPathCommandText.setLayoutData(gd); fCygPathCommandText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent evt) { //updateLaunchConfigurationDialog(); } }); button = ControlFactory.createPushButton(comp, CUIMessages.getString("BinaryParserPage.label.browse")); //$NON-NLS-1$ button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent evt) { handleCygPathButtonSelected(); //updateLaunchConfigurationDialog(); } private void handleCygPathButtonSelected() { FileDialog dialog = new FileDialog(getShell(), SWT.NONE); dialog.setText("cygpath Command"); //$NON-NLS-1$ String command = fCygPathCommandText.getText().trim(); int lastSeparatorIndex = command.lastIndexOf(File.separator); if (lastSeparatorIndex != -1) { dialog.setFilterPath(command.substring(0, lastSeparatorIndex)); } String res = dialog.open(); if (res == null) { return; } fCygPathCommandText.setText(res); } }); setControl(comp); initializeValues(); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/c33e846074da1b016f997084928224a7bcd41439/CygwinPEBinaryParserPage.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/CygwinPEBinaryParserPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
9400,
1161,
273,
8888,
1733,
18,
2640,
9400,
424,
12,
2938,
16,
576,
16,
7145,
751,
18,
29818,
67,
44,
20344,
1769,
202,
202,
12443,
6313,
3744,
13,
1161,
18,
588,
3744,
1435,
2934,
6540,
3380,
5812,
2384,
273,
629,
31,
202,
202,
2224,
1433,
273,
8888,
1733,
18,
2640,
2224,
12,
2919,
16,
18759,
3445,
1753,
18,
588,
780,
2932,
5905,
2678,
1964,
18,
1925,
18,
4793,
22,
1369,
2189,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
5621,
202,
202,
19016,
18,
18396,
6952,
273,
576,
31,
202,
202,
1925,
18,
542,
3744,
751,
12,
19016,
1769,
202,
202,
74,
3178,
22,
1670,
2189,
1528,
273,
8888,
1733,
18,
2640,
16157,
12,
2919,
16,
348,
8588,
18,
20184,
571,
348,
8588,
18,
38,
7954,
1769,
202,
202,
74,
3178,
22,
1670,
2189,
1528,
18,
1289,
11047,
2223,
12,
2704,
9518,
2223,
1435,
288,
1082,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
6324,
13,
288,
9506,
202,
759,
2725,
9569,
1750,
6353,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
3616,
3568,
273,
8888,
1733,
18,
2640,
7621,
3616,
12,
2919,
16,
18759,
3445,
1753,
18,
588,
780,
2932,
5905,
2678,
1964,
18,
1925,
18,
25731,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
5391,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
1082,
202,
482,
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,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
9400,
1161,
273,
8888,
1733,
18,
2640,
9400,
424,
12,
2938,
16,
576,
16,
7145,
751,
18,
29818,
67,
44,
20344,
1769,
202,
202,
12443,
6313,
3744,
13,
1161,
18,
588,
3744,
1435,
2934,
6540,
3380,
5812,
2384,
273,
629,
31,
202,
202,
2224,
1433,
273,
8888,
1733,
18,
2640,
2224,
12,
2919,
16,
18759,
3445,
1753,
18,
588,
780,
2932,
5905,
2678,
1964,
18,
1925,
18,
4793,
22,
1369,
2189,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
5621,
202,
202,
19016,
18,
18396,
6952,
273,
576,
31,
202,
202,
1925,
18,
542,
3744,
751,
2
] |
ITestNGMethod[] beforeMethodsArray = filteredMethods.toArray(new ITestNGMethod[filteredMethods.size()]); invokeConfigurations(testClass, beforeMethodsArray, suite, params, instance); groupMethods.removeBeforeGroups(groups);
|
private void invokeBeforeGroupsConfigurations(ITestClass testClass, ITestNGMethod tm, ConfigurationGroupMethods groupMethods, XmlSuite suite, Map<String, String> params, Object instance) { List<ITestNGMethod> filteredMethods = new ArrayList<ITestNGMethod>(); String[] groups = tm.getGroups(); Map<String, List<ITestNGMethod>> beforeGroupMap = groupMethods.getBeforeGroupsMap(); for (String group : groups) { List<ITestNGMethod> methods = beforeGroupMap.get(group); if (methods != null) { filteredMethods.addAll(methods); } } // // Invoke the right groups methods // ITestNGMethod[] beforeMethodsArray = filteredMethods.toArray(new ITestNGMethod[filteredMethods.size()]); invokeConfigurations(testClass, beforeMethodsArray, suite, params, instance); // // Remove them so they don't get run again // groupMethods.removeBeforeGroups(groups); }
|
46166 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46166/6277313ba72f743074b5132830ccfbab20f1e274/Invoker.java/buggy/src/main/org/testng/internal/Invoker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
4356,
4649,
3621,
9698,
12,
1285,
395,
797,
1842,
797,
16,
4202,
467,
4709,
4960,
1305,
6118,
16,
4202,
4659,
1114,
4712,
1041,
4712,
16,
4202,
5714,
13587,
11371,
16,
1635,
32,
780,
16,
514,
34,
859,
16,
4202,
1033,
791,
13,
282,
288,
565,
987,
32,
1285,
395,
4960,
1305,
34,
5105,
4712,
273,
394,
2407,
32,
1285,
395,
4960,
1305,
34,
5621,
565,
514,
8526,
3252,
273,
6118,
18,
588,
3621,
5621,
565,
1635,
32,
780,
16,
987,
32,
1285,
395,
4960,
1305,
9778,
1865,
1114,
863,
273,
1041,
4712,
18,
588,
4649,
3621,
863,
5621,
3639,
364,
261,
780,
1041,
294,
3252,
13,
288,
1377,
987,
32,
1285,
395,
4960,
1305,
34,
2590,
273,
1865,
1114,
863,
18,
588,
12,
1655,
1769,
1377,
309,
261,
5163,
480,
446,
13,
288,
3639,
5105,
4712,
18,
1289,
1595,
12,
5163,
1769,
1377,
289,
565,
289,
3639,
368,
565,
368,
14373,
326,
2145,
3252,
2590,
565,
368,
565,
467,
4709,
4960,
1305,
8526,
1865,
4712,
1076,
273,
4202,
5105,
4712,
18,
31447,
12,
2704,
467,
4709,
4960,
1305,
63,
12071,
4712,
18,
1467,
1435,
19226,
565,
4356,
9698,
12,
3813,
797,
16,
1865,
4712,
1076,
16,
11371,
16,
859,
16,
791,
1769,
3639,
368,
565,
368,
3581,
2182,
1427,
2898,
2727,
1404,
336,
1086,
3382,
565,
368,
565,
1041,
4712,
18,
4479,
4649,
3621,
12,
4650,
1769,
225,
289,
2,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4356,
4649,
3621,
9698,
12,
1285,
395,
797,
1842,
797,
16,
4202,
467,
4709,
4960,
1305,
6118,
16,
4202,
4659,
1114,
4712,
1041,
4712,
16,
4202,
5714,
13587,
11371,
16,
1635,
32,
780,
16,
514,
34,
859,
16,
4202,
1033,
791,
13,
282,
288,
565,
987,
32,
1285,
395,
4960,
1305,
34,
5105,
4712,
273,
394,
2407,
32,
1285,
395,
4960,
1305,
34,
5621,
565,
514,
8526,
3252,
273,
6118,
18,
588,
3621,
5621,
565,
1635,
32,
780,
16,
987,
32,
1285,
395,
4960,
1305,
9778,
1865,
1114,
863,
273,
1041,
4712,
18,
588,
4649,
3621,
863,
5621,
3639,
364,
261,
780,
1041,
294,
3252,
13,
288,
1377,
987,
32,
1285,
395,
4960,
1305,
34,
2590,
2
] |
|
PrintWriter out = BagFormatter.openUTF8Writer(directory, filename); out.print('\uFEFF'); out.println("# Recommended confusable mapping for IDN"); out.println("# $Revision: 1.11 $"); out.println("# $Date: 2006/06/09 21:21:20 $"); out.println("");
|
PrintWriter out = openAndWriteHeader(filename, "Recommended confusable mapping for IDN");
|
public void writeSourceOrder(String directory, String filename, boolean appendFile, boolean skipNFKEquivs) throws IOException { PrintWriter out = BagFormatter.openUTF8Writer(directory, filename); out.print('\uFEFF'); out.println("# Recommended confusable mapping for IDN"); out.println("# $Revision: 1.11 $"); out.println("# $Date: 2006/06/09 21:21:20 $"); out.println(""); if (appendFile) { String[] replacements = {"%date%", Default.getDate()}; Utility.appendFile("com/ibm/text/UCD/confusablesHeader.txt", Utility.UTF8_WINDOWS, out, replacements); } writeSourceOrder(out, dataSingleLowercase, "SL", "Single-Script, Lowercase Confusables", skipNFKEquivs); writeSourceOrder(out, dataSingleAnycase, "SA", "Single-Script, Anycase Confusables", skipNFKEquivs); writeSourceOrder(out, dataMixedLowercase, "ML", "Mixed-Script, Lowercase Confusables", skipNFKEquivs); writeSourceOrder(out, dataMixedAnycase, "MA", "Mixed-Script, Anycase Confusables", skipNFKEquivs); out.close(); }
|
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/690f5c528c854f682553efccd339aa36db4ef909/GenerateConfusables.java/clean/tools/unicodetools/com/ibm/text/UCD/GenerateConfusables.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1045,
1830,
2448,
12,
780,
1867,
16,
514,
1544,
16,
1250,
714,
812,
16,
1250,
2488,
26473,
6859,
372,
427,
87,
13,
1216,
1860,
288,
1082,
202,
5108,
2289,
596,
273,
31711,
5074,
18,
3190,
5159,
28,
2289,
12,
5149,
16,
1544,
1769,
1082,
202,
659,
18,
1188,
2668,
64,
89,
8090,
2246,
8284,
1082,
202,
659,
18,
8222,
2932,
7,
25546,
3934,
2195,
16665,
2874,
364,
1599,
50,
8863,
1082,
202,
659,
18,
8222,
2932,
7,
271,
7939,
30,
404,
18,
2499,
271,
8863,
1082,
202,
659,
18,
8222,
2932,
7,
271,
1626,
30,
27212,
19,
7677,
19,
5908,
9035,
30,
5340,
30,
3462,
271,
8863,
1082,
202,
659,
18,
8222,
2932,
8863,
1082,
202,
430,
261,
6923,
812,
13,
288,
9506,
202,
780,
8526,
11413,
273,
12528,
9,
712,
9,
3113,
2989,
18,
588,
1626,
17767,
31,
9506,
202,
6497,
18,
6923,
812,
2932,
832,
19,
10827,
19,
955,
19,
57,
10160,
19,
3923,
407,
1538,
1864,
18,
5830,
3113,
9944,
202,
6497,
18,
5159,
28,
67,
31874,
16,
596,
16,
11413,
1769,
1082,
202,
97,
1082,
202,
2626,
1830,
2448,
12,
659,
16,
501,
5281,
4070,
3593,
16,
315,
4559,
3113,
315,
5281,
17,
3651,
16,
24804,
3593,
9675,
407,
1538,
3113,
2488,
26473,
6859,
372,
427,
87,
1769,
1082,
202,
2626,
1830,
2448,
12,
659,
16,
501,
5281,
2961,
3593,
16,
315,
5233,
3113,
315,
5281,
17,
3651,
16,
5502,
3593,
9675,
407,
1538,
3113,
2488,
26473,
6859,
372,
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,
3196,
202,
482,
918,
1045,
1830,
2448,
12,
780,
1867,
16,
514,
1544,
16,
1250,
714,
812,
16,
1250,
2488,
26473,
6859,
372,
427,
87,
13,
1216,
1860,
288,
1082,
202,
5108,
2289,
596,
273,
31711,
5074,
18,
3190,
5159,
28,
2289,
12,
5149,
16,
1544,
1769,
1082,
202,
659,
18,
1188,
2668,
64,
89,
8090,
2246,
8284,
1082,
202,
659,
18,
8222,
2932,
7,
25546,
3934,
2195,
16665,
2874,
364,
1599,
50,
8863,
1082,
202,
659,
18,
8222,
2932,
7,
271,
7939,
30,
404,
18,
2499,
271,
8863,
1082,
202,
659,
18,
8222,
2932,
7,
271,
1626,
30,
27212,
19,
7677,
19,
5908,
9035,
30,
5340,
30,
3462,
271,
8863,
1082,
202,
659,
18,
8222,
2932,
8863,
1082,
2
] |
public static ParseImpl read(DataInput in) throws IOException {
|
public static ParseImpl read(DataInput in, NutchConf nutchConf) throws IOException {
|
public static ParseImpl read(DataInput in) throws IOException { ParseImpl parseImpl = new ParseImpl(); parseImpl.readFields(in); return parseImpl; }
|
1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/329ff64e9d7295aff108f85e9a8103f5e5f8f398/ParseImpl.java/buggy/src/java/org/apache/nutch/parse/ParseImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2884,
2828,
855,
12,
751,
1210,
316,
16,
423,
322,
343,
3976,
290,
322,
343,
3976,
13,
1216,
1860,
288,
565,
2884,
2828,
1109,
2828,
273,
394,
2884,
2828,
5621,
565,
1109,
2828,
18,
896,
2314,
12,
267,
1769,
565,
327,
1109,
2828,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
2884,
2828,
855,
12,
751,
1210,
316,
16,
423,
322,
343,
3976,
290,
322,
343,
3976,
13,
1216,
1860,
288,
565,
2884,
2828,
1109,
2828,
273,
394,
2884,
2828,
5621,
565,
1109,
2828,
18,
896,
2314,
12,
267,
1769,
565,
327,
1109,
2828,
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
] |
} else if(arg.length != 2){
|
} else if(arg.length != 2){
|
public static void main(String[] arg) { if(arg.length == 1){ if("-h".equals(arg[0]) || "--help".equals(arg[0])){ print(System.out, getHelpText()); System.exit(0); } else if("--colors".equals(arg[0])){ print(System.out, "The colors supported: \n"); Collection<String> colors = POIColor.getInstance().getSupportedColors(); for(String color: colors){ print(System.out, color); } System.exit(0); } else{ print(System.err, getHelpText()); System.exit(-1); } } else if(arg.length != 2){ print(System.err, getHelpText()); System.exit(-1); } try{ WorkBookCreator wbc = WorkBookCreatorFactory.getWorkBookCreator(); XML2XLSGenerator gen = new XML2XLSGenerator(); // Following line is capable of throwing Exception: gen.parse((WorkBookGenerationHandler)wbc, new FileInputStream(arg[0])); WorkBook workBook = wbc.getWorkBook(); workBook.write(new FileOutputStream(arg[1])); } catch(FileNotFoundException fnfe){ print(System.err, "FileNotFoundException occurred!"); fnfe.printStackTrace(System.err); } catch(IOException ioe){ print(System.err, "IOException occurred!"); ioe.printStackTrace(System.err); } catch(XML2XLSFatalException e){ print(System.err, "Error occurred: "+e.getMessage()); e.printStackTrace(System.err); } }
|
58507 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58507/5f7a69a4e14a6887fc9e0c3ece2046718de046d0/ConvertMain.java/buggy/trunk/src/main/java/org/wiztools/xml2spreadsheet/ConvertMain.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
1501,
13,
288,
3639,
309,
12,
3175,
18,
2469,
422,
404,
15329,
5411,
309,
2932,
17,
76,
9654,
14963,
12,
3175,
63,
20,
5717,
747,
5238,
5201,
9654,
14963,
12,
3175,
63,
20,
22643,
95,
7734,
1172,
12,
3163,
18,
659,
16,
336,
6696,
1528,
10663,
7734,
2332,
18,
8593,
12,
20,
1769,
5411,
289,
5411,
469,
309,
2932,
413,
9724,
9654,
14963,
12,
3175,
63,
20,
22643,
95,
7734,
1172,
12,
3163,
18,
659,
16,
315,
1986,
5740,
3260,
30,
521,
82,
8863,
7734,
2200,
32,
780,
34,
5740,
273,
13803,
45,
2957,
18,
588,
1442,
7675,
588,
7223,
12570,
5621,
7734,
364,
12,
780,
2036,
30,
5740,
15329,
10792,
1172,
12,
3163,
18,
659,
16,
2036,
1769,
7734,
289,
7734,
2332,
18,
8593,
12,
20,
1769,
5411,
289,
5411,
469,
95,
7734,
1172,
12,
3163,
18,
370,
16,
336,
6696,
1528,
10663,
7734,
2332,
18,
8593,
19236,
21,
1769,
5411,
289,
3639,
289,
3639,
469,
309,
12,
3175,
18,
2469,
480,
576,
15329,
5411,
1172,
12,
3163,
18,
370,
16,
336,
6696,
1528,
10663,
5411,
2332,
18,
8593,
19236,
21,
1769,
3639,
289,
7734,
775,
95,
5411,
4147,
9084,
10636,
341,
13459,
273,
4147,
9084,
10636,
1733,
18,
588,
2421,
9084,
10636,
5621,
5411,
3167,
22,
60,
3045,
3908,
3157,
273,
394,
3167,
22,
60,
3045,
3908,
5621,
5411,
368,
16093,
310,
980,
353,
22863,
434,
19440,
1185,
30,
5411,
3157,
18,
2670,
12443,
2421,
9084,
13842,
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,
2774,
12,
780,
8526,
1501,
13,
288,
3639,
309,
12,
3175,
18,
2469,
422,
404,
15329,
5411,
309,
2932,
17,
76,
9654,
14963,
12,
3175,
63,
20,
5717,
747,
5238,
5201,
9654,
14963,
12,
3175,
63,
20,
22643,
95,
7734,
1172,
12,
3163,
18,
659,
16,
336,
6696,
1528,
10663,
7734,
2332,
18,
8593,
12,
20,
1769,
5411,
289,
5411,
469,
309,
2932,
413,
9724,
9654,
14963,
12,
3175,
63,
20,
22643,
95,
7734,
1172,
12,
3163,
18,
659,
16,
315,
1986,
5740,
3260,
30,
521,
82,
8863,
7734,
2200,
32,
780,
34,
5740,
273,
13803,
45,
2957,
18,
588,
1442,
7675,
588,
7223,
12570,
5621,
7734,
364,
12,
780,
2036,
30,
5740,
15329,
10792,
2
] |
public boolean canModifyEntryState(long id, int newState) throws WorkflowException {
|
public boolean canModifyEntryState(long id, int newState) {
|
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { try { return wf.canModifyEntryState(id, newState); } catch (RemoteException e) { log.error("Error checking modifying entry state", e); throw new WorkflowException(e); } }
|
7621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7621/0ca9c1b022c14486a67ae3e20ab6a037851297fe/EJBWorkflow.java/clean/src/java/com/opensymphony/workflow/ejb/EJBWorkflow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
848,
11047,
1622,
1119,
12,
5748,
612,
16,
509,
15907,
13,
288,
3639,
775,
288,
5411,
327,
11578,
18,
4169,
11047,
1622,
1119,
12,
350,
16,
15907,
1769,
3639,
289,
1044,
261,
5169,
503,
425,
13,
288,
5411,
613,
18,
1636,
2932,
668,
6728,
21920,
1241,
919,
3113,
425,
1769,
5411,
604,
394,
11363,
503,
12,
73,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
848,
11047,
1622,
1119,
12,
5748,
612,
16,
509,
15907,
13,
288,
3639,
775,
288,
5411,
327,
11578,
18,
4169,
11047,
1622,
1119,
12,
350,
16,
15907,
1769,
3639,
289,
1044,
261,
5169,
503,
425,
13,
288,
5411,
613,
18,
1636,
2932,
668,
6728,
21920,
1241,
919,
3113,
425,
1769,
5411,
604,
394,
11363,
503,
12,
73,
1769,
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
] |
attributesComposite.setBackground(background);
|
protected void createAttributeLayout() { String title = getTitleString(); String keywords = ""; String url = ""; // Attributes Composite- this holds all the combo fiels and text fields Composite attributesComposite = new Composite(infoArea, SWT.NONE); GridLayout attributesLayout = new GridLayout(); attributesLayout.numColumns = 4; attributesLayout.horizontalSpacing = 14; attributesLayout.verticalSpacing = 6; attributesComposite.setLayout(attributesLayout); GridData attributesData = new GridData(GridData.FILL_BOTH); attributesData.horizontalSpan = 1; attributesData.grabExcessVerticalSpace = false; attributesComposite.setLayoutData(attributesData); attributesComposite.setBackground(background); // End Attributes Composite // Attributes Title Area Composite attributesTitleComposite = new Composite(attributesComposite, SWT.NONE); GridLayout attributesTitleLayout = new GridLayout(); attributesTitleLayout.horizontalSpacing = 0; attributesTitleLayout.marginWidth = 0; attributesTitleComposite.setLayout(attributesTitleLayout); attributesTitleComposite.setBackground(background); GridData attributesTitleData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); attributesTitleData.horizontalSpan = 4; attributesTitleData.grabExcessVerticalSpace = false; attributesTitleComposite.setLayoutData(attributesTitleData); // End Attributes Title // Set the Attributes Title// newAttributesLayout(attributesTitleComposite);// titleLabel.setText(title); bugzillaInput.setToolTipText(title); int currentCol = 1; String ccValue = null; // Populate Attributes for (Iterator<Attribute> it = getBug().getAttributes().iterator(); it.hasNext();) { Attribute attribute = it.next(); String key = attribute.getParameterName(); String name = attribute.getName(); String value = checkText(attribute.getValue()); Map<String, String> values = attribute.getOptionValues(); // make sure we don't try to display a hidden field if (attribute.isHidden() || (key != null && key.equals("status_whiteboard"))) continue; if (values == null) values = new HashMap<String, String>(); if (key == null) key = ""; GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalSpan = 1; data.horizontalIndent = HORZ_INDENT; if (key.equals("short_desc") || key.equals("keywords")) { keywords = value; } else if (key.equals("newcc")) { ccValue = value; if (value == null) ccValue = ""; } else if (key.equals("bug_file_loc")) { url = value; } else if (key.equals("op_sys")) { newLayout(attributesComposite, 1, name, PROPERTY); oSCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); oSCombo.setFont(TEXT_FONT); oSCombo.setLayoutData(data); oSCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { oSCombo.add(a[i]); } if (oSCombo.indexOf(value) != -1) { oSCombo.select(oSCombo.indexOf(value)); } else { oSCombo.select(oSCombo.indexOf("All")); } oSCombo.addListener(SWT.Modify, this); comboListenerMap.put(oSCombo, name); oSCombo.addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("version")) { newLayout(attributesComposite, 1, name, PROPERTY); versionCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); versionCombo.setFont(TEXT_FONT); versionCombo.setLayoutData(data); versionCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { versionCombo.add(a[i]); } versionCombo.select(versionCombo.indexOf(value)); versionCombo.addListener(SWT.Modify, this); versionCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(versionCombo, name); currentCol += 2; } else if (key.equals("priority")) { newLayout(attributesComposite, 1, name, PROPERTY); priorityCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); priorityCombo.setFont(TEXT_FONT); priorityCombo.setLayoutData(data); priorityCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { priorityCombo.add(a[i]); } priorityCombo.select(priorityCombo.indexOf(value)); priorityCombo.addListener(SWT.Modify, this); priorityCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(priorityCombo, name); currentCol += 2; } else if (key.equals("bug_severity")) { newLayout(attributesComposite, 1, name, PROPERTY); severityCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); severityCombo.setFont(TEXT_FONT); severityCombo.setLayoutData(data); severityCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { severityCombo.add(a[i]); } severityCombo.select(severityCombo.indexOf(value)); severityCombo.addListener(SWT.Modify, this); severityCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(severityCombo, name); currentCol += 2; } else if (key.equals("target_milestone")) { newLayout(attributesComposite, 1, name, PROPERTY); milestoneCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); milestoneCombo.setFont(TEXT_FONT); milestoneCombo.setLayoutData(data); milestoneCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { milestoneCombo.add(a[i]); } milestoneCombo.select(milestoneCombo.indexOf(value)); milestoneCombo.addListener(SWT.Modify, this); milestoneCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(milestoneCombo, name); currentCol += 2; } else if (key.equals("rep_platform")) { newLayout(attributesComposite, 1, name, PROPERTY); platformCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); platformCombo.setFont(TEXT_FONT); platformCombo.setLayoutData(data); platformCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { platformCombo.add(a[i]); } platformCombo.select(platformCombo.indexOf(value)); platformCombo.addListener(SWT.Modify, this); platformCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(platformCombo, name); currentCol += 2; } else if (key.equals("product")) { newLayout(attributesComposite, 1, name, PROPERTY); newLayout(attributesComposite, 1, value, VALUE).addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("assigned_to")) { newLayout(attributesComposite, 1, name, PROPERTY); assignedTo = new Text(attributesComposite, SWT.BORDER | SWT.SINGLE | SWT.WRAP); assignedTo.setFont(TEXT_FONT); assignedTo.setText(value); data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); data.horizontalSpan = 1; assignedTo.setLayoutData(data); assignedTo.addListener(SWT.KeyUp, new Listener() { public void handleEvent(Event event) { String sel = assignedTo.getText(); Attribute a = getBug().getAttribute("Assign To"); if (!(a.getNewValue().equals(sel))) { a.setNewValue(sel); changeDirtyStatus(true); } } }); assignedTo.addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("component")) { newLayout(attributesComposite, 1, name, PROPERTY); componentCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); componentCombo.setFont(TEXT_FONT); componentCombo.setLayoutData(data); componentCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { componentCombo.add(a[i]); } componentCombo.select(componentCombo.indexOf(value)); componentCombo.addListener(SWT.Modify, this); componentCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(componentCombo, name); currentCol += 2; } else if (name.equals("Summary")) { // Don't show the summary here. continue; } else if (values.isEmpty()) { newLayout(attributesComposite, 1, name, PROPERTY); newLayout(attributesComposite, 1, value, VALUE).addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } if (currentCol > attributesLayout.numColumns) { currentCol -= attributesLayout.numColumns; } } // End Populate Attributes // make sure that we are in the first column if (currentCol > 1) { while (currentCol <= attributesLayout.numColumns) { newLayout(attributesComposite, 1, "", PROPERTY); currentCol++; } } // URL, Keywords, Summary Text Fields addUrlText(url, attributesComposite); // keywords text field (not editable) addKeywordsList(keywords, attributesComposite); if (ccValue != null) { addCCList(ccValue, attributesComposite); } addSummaryText(attributesComposite); // End URL, Keywords, Summary Text Fields }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/1243f8693fe3d83fec6d687b2ea7a6dfb8f77388/AbstractBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/AbstractBugEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
1499,
3744,
1435,
288,
202,
202,
780,
2077,
273,
10786,
780,
5621,
202,
202,
780,
7093,
273,
1408,
31,
202,
202,
780,
880,
273,
1408,
31,
202,
202,
759,
9055,
14728,
17,
333,
14798,
777,
326,
16778,
7314,
10558,
471,
977,
1466,
202,
202,
9400,
1677,
9400,
273,
394,
14728,
12,
1376,
5484,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
1677,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
4350,
3744,
18,
2107,
3380,
273,
1059,
31,
202,
202,
4350,
3744,
18,
18396,
18006,
273,
5045,
31,
202,
202,
4350,
3744,
18,
17824,
18006,
273,
1666,
31,
202,
202,
4350,
9400,
18,
542,
3744,
12,
4350,
3744,
1769,
202,
202,
6313,
751,
1677,
751,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
4350,
751,
18,
18396,
6952,
273,
404,
31,
202,
202,
4350,
751,
18,
2752,
70,
424,
614,
15704,
3819,
273,
629,
31,
202,
202,
4350,
9400,
18,
542,
3744,
751,
12,
4350,
751,
1769,
202,
202,
4350,
9400,
18,
542,
8199,
12,
9342,
1769,
202,
202,
759,
4403,
9055,
14728,
202,
202,
759,
9055,
10984,
16668,
202,
202,
9400,
1677,
4247,
9400,
273,
394,
14728,
12,
4350,
9400,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
1677,
4247,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
4350,
4247,
3744,
18,
18396,
18006,
273,
374,
31,
202,
202,
4350,
4247,
3744,
18,
10107,
2384,
273,
374,
31,
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,
1117,
918,
752,
1499,
3744,
1435,
288,
202,
202,
780,
2077,
273,
10786,
780,
5621,
202,
202,
780,
7093,
273,
1408,
31,
202,
202,
780,
880,
273,
1408,
31,
202,
202,
759,
9055,
14728,
17,
333,
14798,
777,
326,
16778,
7314,
10558,
471,
977,
1466,
202,
202,
9400,
1677,
9400,
273,
394,
14728,
12,
1376,
5484,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
1677,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
4350,
3744,
18,
2107,
3380,
273,
1059,
31,
202,
202,
4350,
3744,
18,
18396,
18006,
273,
5045,
31,
202,
202,
4350,
3744,
18,
17824,
18006,
273,
1666,
31,
202,
202,
4350,
9400,
18,
542,
3744,
12,
4350,
3744,
1769,
202,
202,
6313,
2
] |
|
return symbolIndent;
|
return symbolIndent;
|
public float listIndent() { return symbolIndent; }
|
3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/6288f051b807f9da0a0f308a00b5851da285b8fb/PdfLine.java/buggy/itext/src/com/lowagie/text/pdf/PdfLine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1431,
666,
7790,
1435,
288,
3639,
327,
3273,
7790,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
666,
7790,
1435,
288,
3639,
327,
3273,
7790,
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
] |
if(currentChart != null)
|
if (currentChart != null)
|
public Chart getModel(String sSubType, Orientation orientation, String sDimension, Chart currentChart) { ChartWithAxes newChart = null; if(currentChart != null) { newChart = (ChartWithAxes) getConvertedChart(currentChart, sSubType, orientation, sDimension); if(newChart != null) { return newChart; } } newChart = ChartWithAxesImpl.create(); newChart.setType(sType); newChart.setSubType(sSubType); newChart.setOrientation(orientation); newChart.setDimension(getDimensionFor(sDimension)); ((Axis) newChart.getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) newChart.getAxes().get(0)).setType(AxisType.TEXT_LITERAL); SeriesDefinition sdX = SeriesDefinitionImpl.create(); Series categorySeries = SeriesImpl.create(); sdX.getSeries().add(categorySeries); ((Axis) newChart.getAxes().get(0)).getSeriesDefinitions().add(sdX); newChart.getTitle().getLabel().getCaption().setValue("Line Chart Title"); if (sSubType.equalsIgnoreCase("Stacked")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).getMarker().setVisible(true); ((LineSeries) valueSeries).setStacked(true); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } else if (sSubType.equalsIgnoreCase("Percent Stacked")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setPercent(true); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).getMarker().setVisible(true); ((LineSeries) valueSeries).setStacked(true); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } else if (sSubType.equalsIgnoreCase("Overlay")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).getMarker().setVisible(true); ((LineSeries) valueSeries).setStacked(false); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } addSampleData(newChart); return newChart; }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/33aaa1a97f4ae29f5607eeb332deeff2384cc2e3/LineChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14804,
7454,
12,
780,
272,
30511,
16,
531,
12556,
9820,
16,
514,
272,
8611,
16,
14804,
783,
7984,
13,
565,
288,
3639,
14804,
1190,
26494,
394,
7984,
273,
446,
31,
3639,
309,
261,
2972,
7984,
480,
446,
13,
3639,
288,
5411,
394,
7984,
273,
261,
7984,
1190,
26494,
13,
336,
22063,
7984,
12,
2972,
7984,
16,
272,
30511,
16,
9820,
16,
272,
8611,
1769,
5411,
309,
12,
2704,
7984,
480,
446,
13,
5411,
288,
7734,
327,
394,
7984,
31,
5411,
289,
3639,
289,
3639,
394,
7984,
273,
14804,
1190,
26494,
2828,
18,
2640,
5621,
3639,
394,
7984,
18,
542,
559,
12,
87,
559,
1769,
3639,
394,
7984,
18,
542,
30511,
12,
87,
30511,
1769,
3639,
394,
7984,
18,
542,
14097,
12,
19235,
1769,
3639,
394,
7984,
18,
542,
8611,
12,
588,
8611,
1290,
12,
87,
8611,
10019,
3639,
14015,
6558,
13,
394,
7984,
18,
588,
26494,
7675,
588,
12,
20,
13,
2934,
542,
14097,
12,
14097,
18,
44,
20344,
67,
23225,
1769,
3639,
14015,
6558,
13,
394,
7984,
18,
588,
26494,
7675,
588,
12,
20,
13,
2934,
542,
559,
12,
6558,
559,
18,
5151,
67,
23225,
1769,
3639,
9225,
1852,
8349,
60,
273,
9225,
1852,
2828,
18,
2640,
5621,
3639,
9225,
3150,
6485,
273,
9225,
2828,
18,
2640,
5621,
3639,
8349,
60,
18,
588,
6485,
7675,
1289,
12,
4743,
6485,
1769,
3639,
14015,
6558,
13,
394,
7984,
18,
588,
26494,
7675,
588,
12,
20,
13,
2934,
588,
6485,
7130,
7675,
1289,
12,
6427,
60,
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,
377,
1071,
14804,
7454,
12,
780,
272,
30511,
16,
531,
12556,
9820,
16,
514,
272,
8611,
16,
14804,
783,
7984,
13,
565,
288,
3639,
14804,
1190,
26494,
394,
7984,
273,
446,
31,
3639,
309,
261,
2972,
7984,
480,
446,
13,
3639,
288,
5411,
394,
7984,
273,
261,
7984,
1190,
26494,
13,
336,
22063,
7984,
12,
2972,
7984,
16,
272,
30511,
16,
9820,
16,
272,
8611,
1769,
5411,
309,
12,
2704,
7984,
480,
446,
13,
5411,
288,
7734,
327,
394,
7984,
31,
5411,
289,
3639,
289,
3639,
394,
7984,
273,
14804,
1190,
26494,
2828,
18,
2640,
5621,
3639,
394,
7984,
18,
542,
559,
12,
87,
559,
1769,
3639,
394,
7984,
18,
542,
30511,
12,
87,
30511,
1769,
3639,
394,
7984,
2
] |
public void setMessage(String newMessage) { setMessage(newMessage, null);
|
public void setMessage(String newMessage, int newType) { super.setMessage(newMessage, newType); if (isCurrentPage()) getContainer().updateMessage();
|
public void setMessage(String newMessage) { setMessage(newMessage, null);}
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a32ea1219bf762f0f808c062a7a180abb39b5c3b/WizardPage.java/buggy/bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/wizard/WizardPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
15227,
12,
780,
394,
1079,
13,
288,
202,
542,
1079,
12,
2704,
1079,
16,
446,
1769,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1071,
918,
15227,
12,
780,
394,
1079,
13,
288,
202,
542,
1079,
12,
2704,
1079,
16,
446,
1769,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (allFields.isSelected()) props.setProperty("xtfr.allFields","true"); else props.remove("xtfr.allFields");
|
if (allFields.isSelected()) props.setProperty("xtfr.allFields", "true"); else props.remove("xtfr.allFields");
|
private void saveXTFRFields() { SessionConfig config = session.getConfiguration(); Properties props = config.getProperties(); if (hostFile.getText().trim().length() > 0) props.setProperty("xtfr.fileName",hostFile.getText().trim()); else props.remove("xtfr.fileName"); if (user.getText().trim().length() > 0) props.setProperty("xtfr.user",user.getText().trim()); else props.remove("xtfr.user"); if (useQuery.isSelected()) props.setProperty("xtfr.useQuery","true"); else props.remove("xtfr.useQuery"); if (queryStatement.getText().trim().length() > 0) props.setProperty("xtfr.queryStatement",queryStatement.getText().trim()); else props.remove("xtfr.queryStatement"); if (allFields.isSelected()) props.setProperty("xtfr.allFields","true"); else props.remove("xtfr.allFields"); if (txtDesc.isSelected()) props.setProperty("xtfr.txtDesc","true"); else props.remove("xtfr.txtDesc"); props.setProperty("xtfr.fileFormat",(String)fileFormat.getSelectedItem()); if (localFile.getText().trim().length() > 0) props.setProperty("xtfr.localFile",localFile.getText().trim()); else props.remove("xtfr.localFile"); props.setProperty("xtfr.decimalSeparator",(String)decimalSeparator.getSelectedItem()); config.setModified(); }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6a23de0d5ab12f72eb326ce880d79c3f8f62a42f/XTFRFile.java/buggy/tn5250j/src/org/tn5250j/tools/XTFRFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1923,
3983,
9981,
2314,
1435,
288,
1377,
3877,
809,
642,
273,
1339,
18,
588,
1750,
5621,
1377,
6183,
3458,
273,
642,
18,
588,
2297,
5621,
1377,
309,
261,
2564,
812,
18,
588,
1528,
7675,
5290,
7675,
2469,
1435,
405,
374,
13,
540,
3458,
18,
542,
1396,
2932,
15239,
4840,
18,
17812,
3113,
2564,
812,
18,
588,
1528,
7675,
5290,
10663,
1377,
469,
540,
3458,
18,
4479,
2932,
15239,
4840,
18,
17812,
8863,
1377,
309,
261,
1355,
18,
588,
1528,
7675,
5290,
7675,
2469,
1435,
405,
374,
13,
540,
3458,
18,
542,
1396,
2932,
15239,
4840,
18,
1355,
3113,
1355,
18,
588,
1528,
7675,
5290,
10663,
1377,
469,
540,
3458,
18,
4479,
2932,
15239,
4840,
18,
1355,
8863,
1377,
309,
261,
1202,
1138,
18,
291,
7416,
10756,
540,
3458,
18,
542,
1396,
2932,
15239,
4840,
18,
1202,
1138,
15937,
3767,
8863,
1377,
469,
540,
3458,
18,
4479,
2932,
15239,
4840,
18,
1202,
1138,
8863,
1377,
309,
261,
2271,
3406,
18,
588,
1528,
7675,
5290,
7675,
2469,
1435,
405,
374,
13,
540,
3458,
18,
542,
1396,
2932,
15239,
4840,
18,
2271,
3406,
3113,
2271,
3406,
18,
588,
1528,
7675,
5290,
10663,
1377,
469,
540,
3458,
18,
4479,
2932,
15239,
4840,
18,
2271,
3406,
8863,
1377,
309,
261,
454,
2314,
18,
291,
7416,
10756,
540,
3458,
18,
542,
1396,
2932,
15239,
4840,
18,
454,
2314,
15937,
3767,
8863,
1377,
469,
540,
3458,
18,
4479,
2932,
15239,
4840,
18,
454,
2314,
8863,
1377,
309,
261,
5830,
4217,
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,
565,
3238,
918,
1923,
3983,
9981,
2314,
1435,
288,
1377,
3877,
809,
642,
273,
1339,
18,
588,
1750,
5621,
1377,
6183,
3458,
273,
642,
18,
588,
2297,
5621,
1377,
309,
261,
2564,
812,
18,
588,
1528,
7675,
5290,
7675,
2469,
1435,
405,
374,
13,
540,
3458,
18,
542,
1396,
2932,
15239,
4840,
18,
17812,
3113,
2564,
812,
18,
588,
1528,
7675,
5290,
10663,
1377,
469,
540,
3458,
18,
4479,
2932,
15239,
4840,
18,
17812,
8863,
1377,
309,
261,
1355,
18,
588,
1528,
7675,
5290,
7675,
2469,
1435,
405,
374,
13,
540,
3458,
18,
542,
1396,
2932,
15239,
4840,
18,
1355,
3113,
1355,
18,
588,
1528,
7675,
5290,
10663,
1377,
469,
540,
3458,
18,
4479,
2932,
15239,
4840,
18,
1355,
2
] |
/* * else{ theReturn = "VARCHAR("+maxlength+")"; } */
|
else if (maxlength<=4000){ theReturn = "VARCHAR("+maxlength+")"; }
|
public String getSQLType(String javaClassName, int maxlength) { String theReturn; if (javaClassName.equals("java.lang.Integer")) { theReturn = "INTEGER"; } else if (javaClassName.equals("java.lang.String")) { if (maxlength < 0) { theReturn = "VARCHAR(255)"; } //else if (maxlength<=4000){ /* * else{ theReturn = "VARCHAR("+maxlength+")"; } */ else { theReturn = "LONGVARCHAR"; } } else if (javaClassName.equals("java.lang.Boolean")) { theReturn = "CHAR(1)"; } else if (javaClassName.equals("java.lang.Float")) { theReturn = "REAL"; } else if (javaClassName.equals("java.lang.Double")) { theReturn = "REAL"; } else if (javaClassName.equals("java.sql.Timestamp")) { theReturn = "TIMESTAMP"; } else if (javaClassName.equals("java.sql.Date") || javaClassName.equals("java.util.Date")) { theReturn = "DATE"; } else if (javaClassName.equals("java.sql.Blob")) { theReturn = "LONGVARBINARY"; } else if (javaClassName.equals("java.sql.Time")) { theReturn = "TIME"; } else if (javaClassName.equals("com.idega.util.Gender")) { theReturn = "VARCHAR(1)"; } else if (javaClassName.equals("com.idega.data.BlobWrapper")) { theReturn = "LONGVARBINARY"; } else { theReturn = ""; } return theReturn; }
|
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/cdfdb910a863c680efbcab8a069b336753657707/HSQLDatastoreInterface.java/buggy/src/java/com/idega/data/HSQLDatastoreInterface.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
21708,
559,
12,
780,
2252,
3834,
16,
509,
943,
2469,
13,
288,
202,
202,
780,
326,
990,
31,
202,
202,
430,
261,
6290,
3834,
18,
14963,
2932,
6290,
18,
4936,
18,
4522,
6,
3719,
288,
1082,
202,
5787,
990,
273,
315,
14217,
14432,
202,
202,
97,
469,
309,
261,
6290,
3834,
18,
14963,
2932,
6290,
18,
4936,
18,
780,
6,
3719,
288,
1082,
202,
430,
261,
27875,
411,
374,
13,
288,
9506,
202,
5787,
990,
273,
315,
7716,
7305,
12,
10395,
2225,
31,
1082,
202,
97,
1082,
202,
759,
12107,
309,
261,
27875,
32,
33,
24,
3784,
15329,
1082,
202,
20308,
9506,
380,
469,
95,
326,
990,
273,
315,
7716,
7305,
2932,
15,
27875,
9078,
2225,
31,
289,
9506,
1195,
1082,
202,
12107,
288,
9506,
202,
5787,
990,
273,
315,
14639,
7716,
7305,
14432,
1082,
202,
97,
202,
202,
97,
469,
309,
261,
6290,
3834,
18,
14963,
2932,
6290,
18,
4936,
18,
5507,
6,
3719,
288,
1082,
202,
5787,
990,
273,
315,
7305,
12,
21,
2225,
31,
202,
202,
97,
469,
309,
261,
6290,
3834,
18,
14963,
2932,
6290,
18,
4936,
18,
4723,
6,
3719,
288,
1082,
202,
5787,
990,
273,
315,
31052,
14432,
202,
202,
97,
469,
309,
261,
6290,
3834,
18,
14963,
2932,
6290,
18,
4936,
18,
5265,
6,
3719,
288,
1082,
202,
5787,
990,
273,
315,
31052,
14432,
202,
202,
97,
469,
309,
261,
6290,
3834,
18,
14963,
2932,
6290,
18,
4669,
18,
4921,
6,
3719,
288,
1082,
202,
5787,
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,
514,
21708,
559,
12,
780,
2252,
3834,
16,
509,
943,
2469,
13,
288,
202,
202,
780,
326,
990,
31,
202,
202,
430,
261,
6290,
3834,
18,
14963,
2932,
6290,
18,
4936,
18,
4522,
6,
3719,
288,
1082,
202,
5787,
990,
273,
315,
14217,
14432,
202,
202,
97,
469,
309,
261,
6290,
3834,
18,
14963,
2932,
6290,
18,
4936,
18,
780,
6,
3719,
288,
1082,
202,
430,
261,
27875,
411,
374,
13,
288,
9506,
202,
5787,
990,
273,
315,
7716,
7305,
12,
10395,
2225,
31,
1082,
202,
97,
1082,
202,
759,
12107,
309,
261,
27875,
32,
33,
24,
3784,
15329,
1082,
202,
20308,
9506,
380,
469,
95,
326,
990,
273,
315,
7716,
7305,
2932,
15,
27875,
9078,
2
] |
public XSListODMG30(XSType contentType) { super(contentType);
|
public XSListODMG30(XSType contentType, final boolean useJava50) { super(contentType, useJava50);
|
public XSListODMG30(XSType contentType) { super(contentType); this.contentType = contentType; } //-- XSListODMG30
|
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/44087e16fa464906abff19b2390830195c60355f/XSListODMG30.java/buggy/castor/trunk/src/main/java/org/exolab/castor/builder/types/XSListODMG30.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1139,
55,
682,
1212,
49,
43,
5082,
12,
60,
55,
559,
5064,
13,
288,
3639,
2240,
12,
22194,
1769,
3639,
333,
18,
22194,
273,
5064,
31,
565,
289,
368,
413,
1139,
55,
682,
1212,
49,
43,
5082,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1139,
55,
682,
1212,
49,
43,
5082,
12,
60,
55,
559,
5064,
13,
288,
3639,
2240,
12,
22194,
1769,
3639,
333,
18,
22194,
273,
5064,
31,
565,
289,
368,
413,
1139,
55,
682,
1212,
49,
43,
5082,
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
] |
public static Object jsFunction_unshift(Context cx, Scriptable thisObj, Object[] args, Function funOjb)
|
private static Object jsFunction_unshift(Context cx, Scriptable thisObj, Object[] args)
|
public static Object jsFunction_unshift(Context cx, Scriptable thisObj, Object[] args, Function funOjb) { Object result; double length = (double)getLengthProperty(thisObj); int argc = args.length; if (args.length > 0) { /* Slide up the array to make room for args at the bottom */ if (length > 0) { for (long last = (long)length - 1; last >= 0; last--) { Object temp = getElem(thisObj, last); setElem(thisObj, last + argc, temp); } } /* Copy from argv to the bottom of the array. */ for (int i = 0; i < args.length; i++) { setElem(thisObj, i, args[i]); } /* Follow Perl by returning the new array length. */ length += args.length; ScriptRuntime.setProp(thisObj, "length", new Double(length), thisObj); } return new Long((long)length); }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeArray.java/buggy/js/rhino/src/org/mozilla/javascript/NativeArray.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3828,
2083,
67,
13858,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
5411,
1033,
8526,
833,
16,
4284,
9831,
51,
10649,
13,
565,
288,
3639,
1033,
563,
31,
3639,
1645,
769,
273,
261,
9056,
13,
588,
1782,
1396,
12,
2211,
2675,
1769,
3639,
509,
1501,
71,
273,
833,
18,
2469,
31,
3639,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
5411,
1748,
225,
348,
8130,
731,
326,
526,
358,
1221,
7725,
364,
833,
622,
326,
5469,
1195,
5411,
309,
261,
2469,
405,
374,
13,
288,
7734,
364,
261,
5748,
1142,
273,
261,
5748,
13,
2469,
300,
404,
31,
1142,
1545,
374,
31,
1142,
413,
13,
288,
10792,
1033,
1906,
273,
4774,
3269,
12,
2211,
2675,
16,
1142,
1769,
10792,
444,
7498,
12,
2211,
2675,
16,
1142,
397,
1501,
71,
16,
1906,
1769,
7734,
289,
5411,
289,
5411,
1748,
5631,
628,
5261,
358,
326,
5469,
434,
326,
526,
18,
1195,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
7734,
444,
7498,
12,
2211,
2675,
16,
277,
16,
833,
63,
77,
19226,
5411,
289,
5411,
1748,
16093,
5722,
80,
635,
5785,
326,
394,
526,
769,
18,
1195,
5411,
769,
1011,
833,
18,
2469,
31,
5411,
7739,
5576,
18,
542,
4658,
12,
2211,
2675,
16,
315,
2469,
3113,
21394,
394,
3698,
12,
2469,
3631,
15261,
1769,
3639,
289,
3639,
327,
394,
3407,
12443,
5748,
13,
2469,
1769,
565,
289,
2,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3828,
2083,
67,
13858,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
5411,
1033,
8526,
833,
16,
4284,
9831,
51,
10649,
13,
565,
288,
3639,
1033,
563,
31,
3639,
1645,
769,
273,
261,
9056,
13,
588,
1782,
1396,
12,
2211,
2675,
1769,
3639,
509,
1501,
71,
273,
833,
18,
2469,
31,
3639,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
5411,
1748,
225,
348,
8130,
731,
326,
526,
358,
1221,
7725,
364,
833,
622,
326,
5469,
1195,
5411,
309,
261,
2469,
405,
374,
13,
288,
7734,
364,
261,
5748,
1142,
273,
261,
5748,
13,
2469,
300,
404,
31,
1142,
1545,
374,
31,
1142,
413,
13,
288,
10792,
1033,
1906,
273,
4774,
3269,
12,
2211,
2
] |
if (buffer[offset] == c) { offset++; return true;
|
for (;;) { if (end == offset && !fill()) return false; int c = buffer[offset]; if (test == c) { ++offset; return true; } if (c < 128 || !formatChar(c)) { return false; } skipFormatChar();
|
boolean match(char c) throws IOException { if (end == offset && !fill()) return false; // This'd be a place where we'd need to map '\r' to '\n' and // do other updates, but TokenStream never looks ahead for // '\n', so we don't bother. if (buffer[offset] == c) { offset++; return true; } return false; }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b5141d614d4ae3c0a7455df83312be1a30e1b2e6/LineBuffer.java/clean/js/rhino/src/org/mozilla/javascript/LineBuffer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
845,
12,
3001,
276,
13,
1216,
1860,
288,
3639,
309,
261,
409,
422,
1384,
597,
401,
5935,
10756,
5411,
327,
629,
31,
3639,
368,
1220,
14271,
506,
279,
3166,
1625,
732,
14271,
1608,
358,
852,
2337,
86,
11,
358,
2337,
82,
11,
471,
3639,
368,
741,
1308,
4533,
16,
1496,
3155,
1228,
5903,
10192,
17510,
364,
3639,
368,
2337,
82,
2187,
1427,
732,
2727,
1404,
23440,
18,
3639,
309,
261,
4106,
63,
3348,
65,
422,
276,
13,
288,
5411,
1384,
9904,
31,
5411,
327,
638,
31,
3639,
289,
3639,
327,
629,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
845,
12,
3001,
276,
13,
1216,
1860,
288,
3639,
309,
261,
409,
422,
1384,
597,
401,
5935,
10756,
5411,
327,
629,
31,
3639,
368,
1220,
14271,
506,
279,
3166,
1625,
732,
14271,
1608,
358,
852,
2337,
86,
11,
358,
2337,
82,
11,
471,
3639,
368,
741,
1308,
4533,
16,
1496,
3155,
1228,
5903,
10192,
17510,
364,
3639,
368,
2337,
82,
2187,
1427,
732,
2727,
1404,
23440,
18,
3639,
309,
261,
4106,
63,
3348,
65,
422,
276,
13,
288,
5411,
1384,
9904,
31,
5411,
327,
638,
31,
3639,
289,
3639,
327,
629,
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
] |
logger.info (this.getName() + " building dtmHH object for mandatory dc.");
|
logger.info (this.getName() + " building dtmHH object for joint dc fro PINDEX=" + processorIndex);
|
private int respondToMessage (Message msg) { int returnValue=0; if ( msg.getSender().equals( modelServer ) ) { if (msg.getId().equals(MessageID.START_INFO)) { //propertyMap = (HashMap)msg.getValue( MessageID.PROPERTY_MAP_KEY ); zdm = (ZonalDataManager)msg.getValue( MessageID.ZONAL_DATA_MANAGER_KEY ); tdm = (TODDataManager)msg.getValue( MessageID.TOD_DATA_MANAGER_KEY ); zdmMap = (HashMap)msg.getValue( MessageID.STATIC_ZONAL_DATA_MAP_KEY ); tdmMap = (HashMap)msg.getValue( MessageID.STATIC_TOD_DATA_MAP_KEY ); processorId = Integer.parseInt((String)msg.getValue( MessageID.PROCESSOR_ID_KEY )); processorIndex = processorId % ZonalDataManager.MAX_DISTRIBUTED_PROCESSORES; zdm.setStaticData ( zdmMap ); tdm.setStaticData ( tdmMap ); // determine whether this model run is for an FTA Summit analysis or not if( (String)propertyMap.get("FTA_Restart_run") != null ) FtaRestartRun = ((String)propertyMap.get("FTA_Restart_run")).equalsIgnoreCase("true"); else FtaRestartRun = false; //Wu added for Summit Aggregation if( ((String)propertyMap.get("writeSummitAggregationFields")) != null ) writeSummitAggregationFields = ((String)propertyMap.get("writeSummitAggregationFields")).equalsIgnoreCase("true"); else writeSummitAggregationFields = false; // create a dtmHH object if (LOGGING) logger.info (this.getName() + " building dtmHH object for mandatory dc."); if (dtmHH == null) dtmHH = new DTMHousehold ( processorId, propertyMap, TourType.JOINT_CATEGORY, TourType.JOINT_TYPES ); if (LOGGING) logger.info (this.getName() + " dtmHH object built for mandatory dc, asking for work."); Message sendWorkMsg = createMessage(); sendWorkMsg.setId(MessageID.SEND_WORK); sendWorkMsg.setIntValue( MessageID.TOUR_CATEGORY_KEY, TourType.JOINT_CATEGORY ); sendWorkMsg.setValue( MessageID.TOUR_TYPES_KEY, TourType.JOINT_TYPES ); sendTo( "HhArrayServer", sendWorkMsg ); } else if ( msg.getId().equals( MessageID.RELEASE_MEMORY ) || msg.getId().equals( MessageID.EXIT ) ) { if (LOGGING) logger.info (this.getName() + " releasing memory after getting " + msg.getId() + " from " + msg.getSender() ); dtmHH = null; zdm = null; tdm = null; zdmMap = null; tdmMap = null; propertyMap = null; hhList = null; } } else { // this message should contain an array of Household objects to process if ( msg.getId().equals( MessageID.HOUSEHOLD_LIST ) ) { // retrieve the contents of the message: hhList = (Household[])msg.getValue( MessageID.HOUSEHOLD_LIST_KEY ); //Wu added for Summit Aggregation Vector summitRecords=new Vector(); Vector currentSummitRecords=null; VectorToArrayConvertor convertor=null; // if the list is null, no more hhs left to process; // otherwise, put the household objects from the message into an array for processing. if ( hhList != null ) { // run the dtm models for the joint tours in these households if (LOGGING) logger.info ( this.getName() + " processing household ids: " + hhList[0].getID() + " to " + hhList[hhList.length-1].getID() ); for (int i=0; i < hhList.length; i++) { try { hhList[i].setProcessorIndex (processorIndex); //Wu added for FTA restart //do if FTA_Restart_run is false, otherwise skip DC and TC if( !FtaRestartRun ){ dtmHH.resetHouseholdCount(); //logger.info("in jointDTMWorker, before dc , hh walk access="+hhList[i].getOriginWalkSegment()); dtmHH.jointTourDc (hhList[i]); dtmHH.resetHouseholdCount(); //logger.info("in jointDTMWorker, before tc , hh walk access="+hhList[i].getOriginWalkSegment()); dtmHH.jointTourTc (hhList[i]); } dtmHH.resetHouseholdCount(); //logger.info("in jointDTMWorker, before mc , hh walk access="+hhList[i].getOriginWalkSegment()); dtmHH.jointTourMc (hhList[i]); //Wu added for Summit Aggregation if(writeSummitAggregationFields){ currentSummitRecords=dtmHH.getSummitAggregationRecords(); summitRecords.addAll(currentSummitRecords); } //logger.info("in TcMcWorker before create logsum records."); } catch (java.lang.Exception e) { logger.fatal ("runtime exception occurred in joint dtm for household id=" + hhList[i].getID() + "in " + this.getName() ); logger.fatal(e.getMessage()); hhList[i].writeContentToLogger(logger); e.printStackTrace(); System.exit(-1); } } //Wu added for Summit Aggregation if(writeSummitAggregationFields){ //logger.info("in JointDTMWorker, original records="+summitRecords.size()); convertor=new VectorToArrayConvertor(summitRecords); summitAggregationArray=convertor.getSummitAggregationArray(); //logger.info("converted records="+summitAggregationArray.length); returnValue = MessageID.SUMMIT_AGGREGATION_ID; }else{ returnValue = MessageID.RESULTS_ID; }; } else { dtmHH.printTimes ( TourType.JOINT_CATEGORY ); returnValue = MessageID.FINISHED_ID; } } } return returnValue; }
|
1120 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1120/498d5b6501a2b5bac85c6de7e787aa102ba817b3/JointDTMWorker.java/clean/src/java/com/pb/morpc/daf/JointDTMWorker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
6846,
774,
1079,
261,
1079,
1234,
13,
288,
202,
202,
474,
7750,
33,
20,
31,
202,
202,
430,
261,
1234,
18,
588,
12021,
7675,
14963,
12,
938,
2081,
262,
262,
288,
1082,
202,
430,
261,
3576,
18,
26321,
7675,
14963,
12,
1079,
734,
18,
7570,
67,
5923,
3719,
288,
9506,
202,
759,
4468,
863,
273,
261,
8658,
13,
3576,
18,
24805,
12,
2350,
734,
18,
9900,
67,
8352,
67,
3297,
11272,
9506,
202,
94,
10956,
273,
261,
62,
9528,
751,
1318,
13,
3576,
18,
24805,
12,
2350,
734,
18,
62,
673,
1013,
67,
4883,
67,
19402,
67,
3297,
11272,
9506,
202,
4465,
81,
273,
261,
56,
1212,
751,
1318,
13,
3576,
18,
24805,
12,
2350,
734,
18,
56,
1212,
67,
4883,
67,
19402,
67,
3297,
11272,
9506,
202,
94,
10956,
863,
273,
261,
8658,
13,
3576,
18,
24805,
12,
2350,
734,
18,
22741,
67,
62,
673,
1013,
67,
4883,
67,
8352,
67,
3297,
11272,
9506,
202,
4465,
81,
863,
273,
261,
8658,
13,
3576,
18,
24805,
12,
2350,
734,
18,
22741,
67,
56,
1212,
67,
4883,
67,
8352,
67,
3297,
11272,
9506,
202,
8700,
548,
273,
2144,
18,
2670,
1702,
12443,
780,
13,
3576,
18,
24805,
12,
2350,
734,
18,
16560,
916,
67,
734,
67,
3297,
262,
1769,
9506,
202,
8700,
1016,
273,
6659,
548,
738,
2285,
9528,
751,
1318,
18,
6694,
67,
2565,
15765,
3000,
6404,
67,
16560,
51,
7031,
31,
9506,
202,
94,
10956,
18,
542,
5788,
751,
261,
998,
10956,
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,
509,
6846,
774,
1079,
261,
1079,
1234,
13,
288,
202,
202,
474,
7750,
33,
20,
31,
202,
202,
430,
261,
1234,
18,
588,
12021,
7675,
14963,
12,
938,
2081,
262,
262,
288,
1082,
202,
430,
261,
3576,
18,
26321,
7675,
14963,
12,
1079,
734,
18,
7570,
67,
5923,
3719,
288,
9506,
202,
759,
4468,
863,
273,
261,
8658,
13,
3576,
18,
24805,
12,
2350,
734,
18,
9900,
67,
8352,
67,
3297,
11272,
9506,
202,
94,
10956,
273,
261,
62,
9528,
751,
1318,
13,
3576,
18,
24805,
12,
2350,
734,
18,
62,
673,
1013,
67,
4883,
67,
19402,
67,
3297,
11272,
9506,
202,
4465,
81,
273,
261,
56,
1212,
751,
1318,
13,
3576,
18,
24805,
12,
2350,
2
] |
catch (IOException io) { io.printStackTrace(); }
|
catch (IOException io) { }
|
@Test public void testByteArrayDimensions() { boolean success = true; try { int imageCount = reader.getImageCount(currentFile); int sizeX = reader.getSizeX(currentFile); int sizeY = reader.getSizeY(currentFile); int bytesPerPixel = FormatReader.getBytesPerPixel(reader.getPixelType(currentFile)); int sizeC = reader.getSizeC(currentFile); boolean rgb = reader.isRGB(currentFile); int expectedBytes = sizeX * sizeY * bytesPerPixel * (rgb ? sizeC : 1); for (int i=0; i<imageCount; i++) { byte[] b = reader.openBytes(currentFile, i); if (b.length != expectedBytes) success = false; } } catch (Exception e) { e.printStackTrace(); success = false; } try { if (!success) { logFile.write(currentFile + " failed byte array test\n"); logFile.flush(); } } catch (IOException io) { io.printStackTrace(); } assertTrue(success); }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/099f018499f749c51c5b9b2e744efa18eb5b8045/ReaderTest.java/clean/loci/formats/test/ReaderTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
632,
4709,
1071,
918,
1842,
8826,
10796,
1435,
288,
565,
1250,
2216,
273,
638,
31,
565,
775,
288,
1377,
509,
1316,
1380,
273,
2949,
18,
588,
2040,
1380,
12,
2972,
812,
1769,
1377,
509,
963,
60,
273,
2949,
18,
588,
1225,
60,
12,
2972,
812,
1769,
1377,
509,
963,
61,
273,
2949,
18,
588,
1225,
61,
12,
2972,
812,
1769,
1377,
509,
31148,
9037,
273,
540,
4077,
2514,
18,
588,
2160,
2173,
9037,
12,
10530,
18,
588,
9037,
559,
12,
2972,
812,
10019,
1377,
509,
963,
39,
273,
2949,
18,
588,
1225,
39,
12,
2972,
812,
1769,
1377,
1250,
6917,
273,
2949,
18,
291,
11343,
12,
2972,
812,
1769,
1377,
509,
2665,
2160,
273,
963,
60,
380,
963,
61,
380,
31148,
9037,
380,
261,
10948,
692,
963,
39,
294,
404,
1769,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
2730,
1380,
31,
277,
27245,
288,
3639,
1160,
8526,
324,
273,
2949,
18,
3190,
2160,
12,
2972,
812,
16,
277,
1769,
3639,
309,
261,
70,
18,
2469,
480,
2665,
2160,
13,
2216,
273,
629,
31,
4202,
289,
565,
289,
565,
1044,
261,
503,
425,
13,
288,
4202,
425,
18,
1188,
6332,
5621,
1377,
2216,
273,
629,
31,
377,
289,
565,
775,
288,
1377,
309,
16051,
4768,
13,
288,
3639,
20169,
18,
2626,
12,
2972,
812,
397,
315,
2535,
1160,
526,
1842,
64,
82,
8863,
3639,
20169,
18,
11330,
5621,
1377,
289,
565,
289,
565,
1044,
261,
14106,
2527,
13,
288,
289,
565,
1815,
5510,
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,
282,
632,
4709,
1071,
918,
1842,
8826,
10796,
1435,
288,
565,
1250,
2216,
273,
638,
31,
565,
775,
288,
1377,
509,
1316,
1380,
273,
2949,
18,
588,
2040,
1380,
12,
2972,
812,
1769,
1377,
509,
963,
60,
273,
2949,
18,
588,
1225,
60,
12,
2972,
812,
1769,
1377,
509,
963,
61,
273,
2949,
18,
588,
1225,
61,
12,
2972,
812,
1769,
1377,
509,
31148,
9037,
273,
540,
4077,
2514,
18,
588,
2160,
2173,
9037,
12,
10530,
18,
588,
9037,
559,
12,
2972,
812,
10019,
1377,
509,
963,
39,
273,
2949,
18,
588,
1225,
39,
12,
2972,
812,
1769,
1377,
1250,
6917,
273,
2949,
18,
291,
11343,
12,
2972,
812,
1769,
1377,
509,
2665,
2160,
273,
963,
60,
380,
963,
2
] |
out("Reprocessing combining marks");
|
if (DEBUG) System.out.println("Reprocessing combining marks");
|
private char nextCompose() { out("--------------- top of nextCompose() --------------------"); int explodePos = EMPTY; // Position in input buffer int basePos = 0; // Position of last base in output string int baseIndex = 0; // Index of last base in "actions" array int classesSeen = 0; // Combining classes seen since last base int action; char lastBase = 0; boolean chFromText = true; // Compatibility explosions have lower indices; skip them if necessary int minExplode = mode.compat() ? 0 : ComposeData.MAX_COMPAT; int minDecomp = mode.compat() ? 0 : DecompData.MAX_COMPAT; initBuffer(); if (explodeBuf == null) { explodeBuf = new StringBuffer(); } else { explodeBuf.setLength(0); } char ch = curForward(); while (ch != DONE) { // Get the basic info for the character int charInfo = composeLookup(ch); int type = charInfo & ComposeData.TYPE_MASK; int index = charInfo >>> ComposeData.INDEX_SHIFT; if (type == ComposeData.BASE || type == ComposeData.NON_COMPOSING_COMBINING && index < minExplode) { if (buffer.length() > 0 && chFromText && explodePos == EMPTY) { // When we hit a base char in the source text, we can return the text // that's been composed so far. We'll re-process this char next time through. out("returning early because we hit a new base"); break; } classesSeen = 0; baseIndex = index; basePos = buffer.length(); buffer.append(ch); out("got BASE char " + hex(ch) + ", type=" + type + ", index=" + index); lastBase = ch; } else if (type == ComposeData.COMBINING && index > 0) { int cclass = ComposeData.typeMask[index]; out("got COMBINING char " + hex(ch) + ", type=" + type + ", index=" + index + ", class=" + Integer.toString(cclass,16)); // We can only combine a character with the base if we haven't // already seen a combining character with the same canonical class. if (type == ComposeData.COMBINING && (classesSeen & cclass) == 0 && (action = composeAction(baseIndex, index)) > 0) { if (action > ComposeData.MAX_COMPOSED) { // Pairwise explosion. Actions above this value are really // indices into an array that in turn contains indices // into the exploding string table // TODO: What if there are unprocessed chars in the explode buffer? char newBase = pairExplode(explodeBuf, action); explodePos = 0; buffer.setCharAt(basePos, newBase); baseIndex = composeLookup(newBase) >>> ComposeData.INDEX_SHIFT; out("Pairwise explosion: " + hex(lastBase) + "," + hex(ch) + " --> " + hex(newBase) + "," + hex(explodeBuf)); lastBase = newBase; } else { // Normal pairwise combination. Replace the base char char newBase = (char) action; buffer.setCharAt(basePos, newBase); baseIndex = composeLookup(newBase) >>> ComposeData.INDEX_SHIFT; out("Pairwise combination: " + hex(lastBase) + "," + hex(ch) + " --> " + hex(newBase)); lastBase = newBase; } // // Since there are Unicode characters that cannot be combined in arbitrary // order, we have to re-process any combining marks that go with this // base character. There are only four characters in Unicode that have // this problem. If they are fixed in Unicode 3.0, this code can go away. // int len = buffer.length(); if (len - basePos > 1) { out("Reprocessing combining marks"); for (int j = basePos+1; j < len; j++) { explodeBuf.append(buffer.charAt(j)); } buffer.setLength(basePos+1); classesSeen = 0; if (explodePos == EMPTY) explodePos = 0; } } else { out("char doesn't combine"); // No combination with this character bubbleAppend(buffer, ch, cclass); classesSeen |= cclass; } } else if (index > minExplode) { // Single exploding character explode(explodeBuf, index); explodePos = 0; out("explosion: " + hex(ch) + " --> " + hex(explodeBuf)); } else if (type == ComposeData.HANGUL && minExplode == 0) { // If we're in compatibility mode we need to decompose Hangul to Jamo, // because some of the Jamo might have compatibility decompositions. hangulToJamo(ch, explodeBuf, minDecomp); out("decomposed hangul " + hex(ch) + " to jamo " + hex(explodeBuf)); explodePos = 0; } else if (type == ComposeData.INITIAL_JAMO) { if (buffer.length() > 0 && chFromText && explodePos == EMPTY) { // When we hit a base char in the source text, we can return the text // that's been composed so far. We'll re-process this char next time through. out("returning early because we hit a new base"); break; } classesSeen = 0; baseIndex = ComposeData.INITIAL_JAMO_INDEX; basePos = buffer.length(); buffer.append(ch); out("got initial jamo " + hex(ch)); } else if (type == ComposeData.MEDIAL_JAMO && classesSeen == 0 && baseIndex == ComposeData.INITIAL_JAMO_INDEX) { // If the last character was an initial jamo, we can combine it with this // one to create a Hangul character. int l = buffer.charAt(basePos) - JAMO_LBASE; int v = ch - JAMO_VBASE; char newCh = (char)(HANGUL_BASE + (l*JAMO_VCOUNT + v) * JAMO_TCOUNT); buffer.setCharAt(basePos, newCh); out("got medial jamo " + hex(ch) + ", replacing with Hangul " + hex(newCh)); baseIndex = ComposeData.MEDIAL_JAMO_INDEX; } else if (type == ComposeData.FINAL_JAMO && classesSeen == 0 && baseIndex == ComposeData.MEDIAL_JAMO_INDEX) { // If the last character was a medial jamo that we turned into Hangul, // we can add this character too. char newCh = (char)(buffer.charAt(basePos) + (ch - JAMO_TBASE)); buffer.setCharAt(basePos, newCh); out("got final jamo " + hex(ch) + ", replacing with Hangul " + hex(newCh)); baseIndex = 0; basePos = -1; classesSeen = 0; } else { // TODO: deal with JAMO character types baseIndex = 0; basePos = -1; classesSeen = 0; buffer.append(ch); out("UNKNOWN char " + hex(ch)); } if (explodePos == EMPTY) { ch = text.next(); chFromText = true; } else { // NOTE: I added the following if() block to catch a case that was // happening during test runs. charAt() was being called (below) // with an out-of-range index. This fix makes the tests run and // pass, but this clearly isn't the right way to fix this. Someone // needs to come back and clean this up later. - liu 7/13/00 if (explodePos >= explodeBuf.length()) { // fix explodePos = EMPTY; // fix explodeBuf.setLength(0); // fix ch = DONE; // fix } else { // fix ch = explodeBuf.charAt(explodePos++); if (explodePos >= explodeBuf.length()) { explodePos = EMPTY; explodeBuf.setLength(0); } } // fix chFromText = false; } } if (buffer.length() > 0) { bufferLimit = buffer.length() - 1; ch = buffer.charAt(0); } else { ch = DONE; bufferLimit = 0; } return ch; }
|
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/df9c62a61e6f121a728eded18f1b2d41b388e77e/Normalizer.java/clean/icu4j/src/com/ibm/text/Normalizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1149,
1024,
22375,
1435,
565,
288,
3639,
596,
2932,
18753,
1760,
434,
1024,
22375,
1435,
12146,
6062,
8863,
3639,
509,
377,
3172,
1616,
273,
8984,
31,
540,
368,
11010,
316,
810,
1613,
3639,
509,
377,
1026,
1616,
273,
374,
31,
7734,
368,
11010,
434,
1142,
1026,
316,
876,
533,
3639,
509,
377,
1026,
1016,
273,
374,
31,
2868,
368,
3340,
434,
1142,
1026,
316,
315,
4905,
6,
526,
3639,
509,
377,
3318,
15160,
273,
374,
31,
5411,
368,
1286,
4757,
310,
3318,
5881,
3241,
1142,
1026,
3639,
509,
377,
1301,
31,
3639,
1149,
565,
1142,
2171,
273,
374,
31,
3639,
1250,
462,
1265,
1528,
273,
638,
31,
3639,
368,
5427,
270,
3628,
15233,
87,
1115,
1240,
2612,
4295,
31,
2488,
2182,
309,
4573,
3639,
509,
1131,
2966,
2034,
273,
1965,
18,
16239,
1435,
692,
374,
294,
1286,
4150,
751,
18,
6694,
67,
28249,
31,
3639,
509,
1131,
17731,
84,
225,
273,
1965,
18,
16239,
1435,
692,
374,
294,
3416,
20667,
751,
18,
6694,
67,
28249,
31,
3639,
1208,
1892,
5621,
3639,
309,
261,
2749,
2034,
5503,
422,
446,
13,
288,
5411,
3172,
5503,
273,
394,
6674,
5621,
3639,
289,
469,
288,
5411,
3172,
5503,
18,
542,
1782,
12,
20,
1769,
3639,
289,
3639,
1149,
462,
273,
662,
8514,
5621,
3639,
1323,
261,
343,
480,
26346,
13,
288,
5411,
368,
968,
326,
5337,
1123,
364,
326,
3351,
5411,
509,
1149,
966,
273,
11458,
6609,
12,
343,
1769,
5411,
509,
618,
273,
1149,
966,
473,
1286,
4150,
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,
1149,
1024,
22375,
1435,
565,
288,
3639,
596,
2932,
18753,
1760,
434,
1024,
22375,
1435,
12146,
6062,
8863,
3639,
509,
377,
3172,
1616,
273,
8984,
31,
540,
368,
11010,
316,
810,
1613,
3639,
509,
377,
1026,
1616,
273,
374,
31,
7734,
368,
11010,
434,
1142,
1026,
316,
876,
533,
3639,
509,
377,
1026,
1016,
273,
374,
31,
2868,
368,
3340,
434,
1142,
1026,
316,
315,
4905,
6,
526,
3639,
509,
377,
3318,
15160,
273,
374,
31,
5411,
368,
1286,
4757,
310,
3318,
5881,
3241,
1142,
1026,
3639,
509,
377,
1301,
31,
3639,
1149,
565,
1142,
2171,
273,
374,
31,
3639,
1250,
462,
1265,
1528,
273,
638,
31,
3639,
368,
5427,
270,
3628,
15233,
87,
1115,
1240,
2612,
2
] |
case Id_equalsIgnoreCase: return wrap_boolean( jsFunction_equalsIgnoreCase(ScriptRuntime.toString(thisObj), ScriptRuntime.toString(args, 0)));
|
case Id_match: return jsFunction_match(cx, thisObj, args, f);
|
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case ConstructorId_fromCharCode: return jsStaticFunction_fromCharCode(args); case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f). jsFunction_toString(); case Id_valueOf: return realThis(thisObj, f). jsFunction_valueOf(); case Id_charAt: return jsFunction_charAt(ScriptRuntime.toString(thisObj), args); case Id_charCodeAt: return wrap_double( jsFunction_charCodeAt(ScriptRuntime.toString(thisObj), args)); case Id_indexOf: return wrap_int( jsFunction_indexOf(ScriptRuntime.toString(thisObj), args)); case Id_lastIndexOf: return wrap_int( jsFunction_lastIndexOf(ScriptRuntime.toString(thisObj), args)); case Id_split: return jsFunction_split(cx, ScriptRuntime.toString(thisObj), args, f); case Id_substring: return jsFunction_substring(cx, ScriptRuntime.toString(thisObj), args); case Id_toLowerCase: return jsFunction_toLowerCase(ScriptRuntime.toString(thisObj)); case Id_toUpperCase: return jsFunction_toUpperCase(ScriptRuntime.toString(thisObj)); case Id_substr: return jsFunction_substr(ScriptRuntime.toString(thisObj), args); case Id_concat: return jsFunction_concat(ScriptRuntime.toString(thisObj), args); case Id_slice: return jsFunction_slice(ScriptRuntime.toString(thisObj), args); case Id_bold: return realThis(thisObj, f). jsFunction_bold(); case Id_italics: return realThis(thisObj, f). jsFunction_italics(); case Id_fixed: return realThis(thisObj, f). jsFunction_fixed(); case Id_strike: return realThis(thisObj, f). jsFunction_strike(); case Id_small: return realThis(thisObj, f). jsFunction_small(); case Id_big: return realThis(thisObj, f). jsFunction_big(); case Id_blink: return realThis(thisObj, f). jsFunction_blink(); case Id_sup: return realThis(thisObj, f). jsFunction_sup(); case Id_sub: return realThis(thisObj, f). jsFunction_sub(); case Id_fontsize: return realThis(thisObj, f). jsFunction_fontsize(ScriptRuntime.toString(args, 0)); case Id_fontcolor: return realThis(thisObj, f). jsFunction_fontcolor(ScriptRuntime.toString(args, 0)); case Id_link: return realThis(thisObj, f). jsFunction_link(ScriptRuntime.toString(args, 0)); case Id_anchor: return realThis(thisObj, f). jsFunction_anchor(ScriptRuntime.toString(args, 0)); case Id_equals: return wrap_boolean( jsFunction_equals(ScriptRuntime.toString(thisObj), ScriptRuntime.toString(args, 0))); case Id_equalsIgnoreCase: return wrap_boolean( jsFunction_equalsIgnoreCase(ScriptRuntime.toString(thisObj), ScriptRuntime.toString(args, 0))); case Id_match: return jsFunction_match(cx, thisObj, args, f); case Id_search: return jsFunction_search(cx, thisObj, args, f); case Id_replace: return jsFunction_replace(cx, thisObj, args, f); } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/d4a0073458f57af07bf530855ff31413fb1b18b0/NativeString.java/clean/js/rhino/src/org/mozilla/javascript/NativeString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1620,
261,
2039,
548,
13,
288,
3639,
648,
11417,
548,
67,
2080,
20535,
30,
327,
5411,
3828,
5788,
2083,
67,
2080,
20535,
12,
1968,
1769,
3639,
648,
3124,
67,
12316,
30,
327,
5411,
3828,
6293,
12,
1968,
16,
15261,
422,
446,
1769,
3639,
648,
3124,
67,
10492,
30,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
2934,
5411,
3828,
2083,
67,
10492,
5621,
3639,
648,
3124,
67,
1132,
951,
30,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
2934,
5411,
3828,
2083,
67,
1132,
951,
5621,
3639,
648,
3124,
67,
3001,
861,
30,
327,
5411,
3828,
2083,
67,
3001,
861,
12,
3651,
5576,
18,
10492,
12,
2211,
2675,
3631,
833,
1769,
3639,
648,
3124,
67,
3001,
1085,
861,
30,
327,
2193,
67,
9056,
12,
5411,
3828,
2083,
67,
3001,
1085,
861,
12,
3651,
5576,
18,
10492,
12,
2211,
2675,
3631,
833,
10019,
3639,
648,
3124,
67,
31806,
30,
327,
2193,
67,
474,
12,
5411,
3828,
2083,
67,
31806,
12,
3651,
5576,
18,
10492,
12,
2211,
2675,
3631,
833,
10019,
3639,
648,
3124,
67,
2722,
31985,
30,
327,
2193,
67,
474,
12,
5411,
3828,
2083,
67,
2722,
31985,
12,
3651,
5576,
18,
10492,
12,
2211,
2675,
3631,
833,
10019,
3639,
648,
3124,
67,
4939,
30,
327,
5411,
3828,
2083,
67,
4939,
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,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1620,
261,
2039,
548,
13,
288,
3639,
648,
11417,
548,
67,
2080,
20535,
30,
327,
5411,
3828,
5788,
2083,
67,
2080,
20535,
12,
1968,
1769,
3639,
648,
3124,
67,
12316,
30,
327,
5411,
3828,
6293,
12,
1968,
16,
15261,
422,
446,
1769,
3639,
648,
3124,
67,
10492,
30,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
2934,
5411,
3828,
2083,
67,
10492,
5621,
3639,
648,
3124,
67,
1132,
951,
30,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
2934,
5411,
3828,
2083,
67,
2
] |
/* Find the hand the card is to be removed from. */ hand = this.players[p].hand;
|
/* Find the hand the card is to be removed from. */ hand = this.players[p].hand;
|
private void handle_msg_play() throws IOException { int p, card_pos; Card card; ArrayList hand; /* Read the card being played. */ p = fd_in.read_seat(); card = fd_in.read_card(); /* * Place the card on the table. Note, this contradicts what the table * code does, since that runs animation that may assume the card has not * yet been placed on the table. Nonetheless, this is the correct thing * to do - it is the table code that needs to be fixed (to keep separate * track of what cards are being _drawn_ on the table, as opposed to * what cards are _supposed to be_ on the table which is what this is). */ this.players[p].table_card = card; /* Find the hand the card is to be removed from. */ hand = this.players[p].hand; /* Find a matching card to remove. */ card_pos = match_card(card, hand); /* Handle a bad match. */ if (card_pos < 0 || card_pos >= hand.size()) { /* * This is theoretically possible even without errors! In fact, a * clever server could _force_ us to pick wrong. Figure out how and * you'll be ready for a "squeeze" play! Fortunately, it's easily * solved. */ log .warning("Whoa! We can't find a match for the card. That's strange."); send_sync_request(); } /* Remove the card. */ hand.remove(card_pos); /* Update the graphics */ set_game_state(STATE_PLAY); game.alert_play(p, card); }
|
45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/44e587940db5385974fd6a597a51d634a1b2ab34/Client.java/clean/java/src/ggz/cards/client/Client.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1640,
67,
3576,
67,
1601,
1435,
1216,
1860,
288,
202,
202,
474,
293,
16,
5270,
67,
917,
31,
202,
202,
6415,
5270,
31,
202,
202,
19558,
948,
31,
202,
202,
20308,
2720,
326,
5270,
3832,
6599,
329,
18,
1195,
202,
202,
84,
273,
5194,
67,
267,
18,
896,
67,
307,
270,
5621,
202,
202,
3327,
273,
5194,
67,
267,
18,
896,
67,
3327,
5621,
202,
202,
20308,
1082,
380,
13022,
326,
5270,
603,
326,
1014,
18,
3609,
16,
333,
16252,
361,
933,
87,
4121,
326,
1014,
1082,
380,
981,
1552,
16,
3241,
716,
7597,
8794,
716,
2026,
6750,
326,
5270,
711,
486,
1082,
380,
4671,
2118,
15235,
603,
326,
1014,
18,
3858,
546,
12617,
16,
333,
353,
326,
3434,
7757,
1082,
380,
358,
741,
300,
518,
353,
326,
1014,
981,
716,
4260,
358,
506,
5499,
261,
869,
3455,
9004,
1082,
380,
3298,
434,
4121,
18122,
854,
3832,
389,
9446,
82,
67,
603,
326,
1014,
16,
487,
1061,
7423,
358,
1082,
380,
4121,
18122,
854,
389,
2859,
7423,
358,
506,
67,
603,
326,
1014,
1492,
353,
4121,
333,
353,
2934,
1082,
1195,
202,
202,
2211,
18,
1601,
414,
63,
84,
8009,
2121,
67,
3327,
273,
5270,
31,
202,
202,
20308,
4163,
326,
948,
326,
5270,
353,
358,
506,
3723,
628,
18,
1195,
202,
202,
2349,
273,
333,
18,
1601,
414,
63,
84,
8009,
2349,
31,
202,
202,
20308,
4163,
279,
3607,
5270,
358,
1206,
18,
1195,
202,
202,
3327,
67,
917,
273,
845,
67,
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,
1640,
67,
3576,
67,
1601,
1435,
1216,
1860,
288,
202,
202,
474,
293,
16,
5270,
67,
917,
31,
202,
202,
6415,
5270,
31,
202,
202,
19558,
948,
31,
202,
202,
20308,
2720,
326,
5270,
3832,
6599,
329,
18,
1195,
202,
202,
84,
273,
5194,
67,
267,
18,
896,
67,
307,
270,
5621,
202,
202,
3327,
273,
5194,
67,
267,
18,
896,
67,
3327,
5621,
202,
202,
20308,
1082,
380,
13022,
326,
5270,
603,
326,
1014,
18,
3609,
16,
333,
16252,
361,
933,
87,
4121,
326,
1014,
1082,
380,
981,
1552,
16,
3241,
716,
7597,
8794,
716,
2026,
6750,
326,
5270,
711,
486,
1082,
380,
4671,
2118,
15235,
603,
326,
1014,
18,
3858,
546,
12617,
16,
2
] |
throw new SchemaDateTimeException ("Not valid date");
|
throw new SchemaDateTimeException ("Not valid date: "+str);
|
protected int[] parse(String str, int[] date) throws SchemaDateTimeException{ resetBuffer(str); //create structure to hold an object if ( date == null ) { date = new int[TOTAL_SIZE]; } resetDateObj(date); // check for preceding '-' sign if (fBuffer.charAt(0)=='-') { fStart++; } int sign = findUTCSign(fStart, fEnd); if (sign == -1) { date[CY]=parseInt(fStart, fEnd); } else { date[CY]=parseInt(fStart, sign); getTimeZone (date, sign); } //initialize values date[M]=MONTH; date[D]=1; //validate and normalize if ( !validateDateTime(date) ) { //REVISIT: should we throw an exeption? // we should not try normalizing in this case .. throw new SchemaDateTimeException ("Not valid date"); } else if ( date[utc]!=0 && date[utc]!='Z' ) { normalize(date); } return date; }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/06d4f5296aaec58f8711338d163ecb3457110c29/YearDatatypeValidator.java/clean/src/org/apache/xerces/validators/datatype/YearDatatypeValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
8526,
1109,
12,
780,
609,
16,
509,
8526,
1509,
13,
1216,
4611,
5096,
503,
95,
3639,
2715,
1892,
12,
701,
1769,
3639,
368,
2640,
3695,
358,
6887,
392,
733,
3639,
309,
261,
1509,
422,
446,
262,
288,
5411,
1509,
273,
394,
509,
63,
28624,
67,
4574,
15533,
3639,
289,
3639,
2715,
1626,
2675,
12,
712,
1769,
3639,
368,
866,
364,
19969,
4014,
1573,
3639,
309,
261,
74,
1892,
18,
3001,
861,
12,
20,
13,
18920,
17,
6134,
288,
5411,
284,
1685,
9904,
31,
3639,
289,
3639,
509,
1573,
273,
1104,
11471,
2766,
12,
74,
1685,
16,
284,
1638,
1769,
3639,
309,
261,
2977,
422,
300,
21,
13,
288,
5411,
1509,
63,
16068,
65,
33,
2670,
1702,
12,
74,
1685,
16,
284,
1638,
1769,
3639,
289,
3639,
469,
288,
5411,
1509,
63,
16068,
65,
33,
2670,
1702,
12,
74,
1685,
16,
1573,
1769,
5411,
28556,
261,
712,
16,
1573,
1769,
3639,
289,
3639,
368,
11160,
924,
540,
1509,
63,
49,
65,
33,
13942,
31,
3639,
1509,
63,
40,
65,
33,
21,
31,
3639,
368,
5662,
471,
3883,
3639,
309,
261,
401,
5662,
5096,
12,
712,
13,
262,
288,
5411,
368,
862,
26780,
1285,
30,
1410,
732,
604,
392,
15073,
375,
35,
5411,
368,
540,
732,
1410,
486,
775,
2212,
6894,
316,
333,
648,
6116,
5411,
604,
394,
4611,
5096,
503,
7566,
1248,
923,
1509,
30,
13773,
701,
1769,
3639,
289,
3639,
469,
309,
261,
1509,
63,
17892,
65,
5,
33,
20,
597,
1509,
63,
17892,
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,
4750,
509,
8526,
1109,
12,
780,
609,
16,
509,
8526,
1509,
13,
1216,
4611,
5096,
503,
95,
3639,
2715,
1892,
12,
701,
1769,
3639,
368,
2640,
3695,
358,
6887,
392,
733,
3639,
309,
261,
1509,
422,
446,
262,
288,
5411,
1509,
273,
394,
509,
63,
28624,
67,
4574,
15533,
3639,
289,
3639,
2715,
1626,
2675,
12,
712,
1769,
3639,
368,
866,
364,
19969,
4014,
1573,
3639,
309,
261,
74,
1892,
18,
3001,
861,
12,
20,
13,
18920,
17,
6134,
288,
5411,
284,
1685,
9904,
31,
3639,
289,
3639,
509,
1573,
273,
1104,
11471,
2766,
12,
74,
1685,
16,
284,
1638,
1769,
3639,
309,
261,
2977,
422,
300,
21,
13,
288,
5411,
1509,
63,
16068,
65,
33,
2670,
1702,
2
] |
public EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed) { this.field = field; if (this.field == null) { throw new NullPointerException("the field parameter is null"); } this.a = a; if (this.a == null) { throw new NullPointerException("the a parameter is null"); } this.b = b; if (this.b == null) { throw new NullPointerException("the b parameter is null"); } // make defensive copy if (seed == null) { this.seed = null; } else { this.seed = new byte[seed.length]; System.arraycopy(seed, 0, this.seed, 0, this.seed.length); } // check parameters // Check invariant: a and b must be in the field. if (this.field instanceof ECFieldFp) { BigInteger p = ((ECFieldFp)this.field).getP(); if (this.a.signum() < 0 || this.a.compareTo(p) >= 0) { throw new IllegalArgumentException("the a is not in the field"); } if (this.b.signum() < 0 || this.b.compareTo(p) >= 0) { throw new IllegalArgumentException( "the a is not in the field"); } } else { int fieldSizeInBits = this.field.getFieldSize(); if (!(this.a.bitLength() <= fieldSizeInBits)) { throw new IllegalArgumentException("the a is not in the field"); } if (!(this.b.bitLength() <= fieldSizeInBits)) { throw new IllegalArgumentException("the b is not in the field"); } } }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/1960ee8229f94b048e67f1fb9faeb372cb91dbe3/EllipticCurve.java/clean/modules/security/src/main/java/common/java/security/spec/EllipticCurve.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10426,
549,
21507,
9423,
12,
7228,
974,
652,
16,
10246,
279,
16,
5411,
10246,
324,
16,
1160,
8526,
5009,
13,
288,
3639,
333,
18,
1518,
273,
652,
31,
3639,
309,
261,
2211,
18,
1518,
422,
446,
13,
288,
5411,
604,
394,
10108,
2932,
5787,
652,
1569,
353,
446,
8863,
3639,
289,
3639,
333,
18,
69,
273,
279,
31,
3639,
309,
261,
2211,
18,
69,
422,
446,
13,
288,
5411,
604,
394,
10108,
2932,
5787,
279,
1569,
353,
446,
8863,
3639,
289,
3639,
333,
18,
70,
273,
324,
31,
3639,
309,
261,
2211,
18,
70,
422,
446,
13,
288,
5411,
604,
394,
10108,
2932,
5787,
324,
1569,
353,
446,
8863,
3639,
289,
3639,
368,
1221,
1652,
14315,
1610,
3639,
309,
261,
12407,
422,
446,
13,
288,
5411,
333,
18,
12407,
273,
446,
31,
3639,
289,
469,
288,
5411,
333,
18,
12407,
273,
394,
1160,
63,
12407,
18,
2469,
15533,
5411,
2332,
18,
1126,
3530,
12,
12407,
16,
374,
16,
333,
18,
12407,
16,
374,
16,
333,
18,
12407,
18,
2469,
1769,
3639,
289,
3639,
368,
866,
1472,
3639,
368,
2073,
22514,
30,
279,
471,
324,
1297,
506,
316,
326,
652,
18,
3639,
309,
261,
2211,
18,
1518,
1276,
7773,
974,
42,
84,
13,
288,
5411,
10246,
293,
273,
14015,
7228,
974,
42,
84,
13,
2211,
18,
1518,
2934,
588,
52,
5621,
5411,
309,
261,
2211,
18,
69,
18,
2977,
379,
1435,
411,
374,
747,
7734,
333,
18,
69,
18,
9877,
774,
12,
84,
13,
1545,
374,
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,
10426,
549,
21507,
9423,
12,
7228,
974,
652,
16,
10246,
279,
16,
5411,
10246,
324,
16,
1160,
8526,
5009,
13,
288,
3639,
333,
18,
1518,
273,
652,
31,
3639,
309,
261,
2211,
18,
1518,
422,
446,
13,
288,
5411,
604,
394,
10108,
2932,
5787,
652,
1569,
353,
446,
8863,
3639,
289,
3639,
333,
18,
69,
273,
279,
31,
3639,
309,
261,
2211,
18,
69,
422,
446,
13,
288,
5411,
604,
394,
10108,
2932,
5787,
279,
1569,
353,
446,
8863,
3639,
289,
3639,
333,
18,
70,
273,
324,
31,
3639,
309,
261,
2211,
18,
70,
422,
446,
13,
288,
5411,
604,
394,
10108,
2932,
5787,
324,
1569,
353,
446,
8863,
3639,
289,
3639,
368,
1221,
1652,
14315,
1610,
2
] |
||
public void initIO () { streamOutput = output; }
|
public void init () { add (new Filter () { int x; Channel output = new Channel (Integer.TYPE, 1); /* push */ public void init() { this.x = 0; } public void initIO () { streamOutput = output; } public void work () { output.pushInt (x++); } }); /* add (new AmplifyByN (3)); */ add (new Filter () { Channel input = new Channel (Integer.TYPE, 1); /* pop [peek] */ public void initIO () { streamInput = input; } public void work () { System.out.println (input.popInt ()); } }); }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/7fb0c81c3f373d1f02294caef5a1cac237d8c238/HelloWorld6.java/clean/streams/apps/examples/hello/HelloWorld6.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
1832,
565,
288,
3639,
527,
261,
2704,
4008,
1832,
3639,
288,
5411,
509,
619,
31,
5411,
5307,
876,
273,
394,
5307,
261,
4522,
18,
2399,
16,
404,
1769,
565,
1748,
1817,
1195,
5411,
1071,
918,
1208,
1435,
288,
7734,
333,
18,
92,
273,
374,
31,
5411,
289,
5411,
1071,
918,
1208,
4294,
1832,
5411,
288,
7734,
1407,
1447,
273,
876,
31,
5411,
289,
5411,
1071,
918,
1440,
1832,
5411,
288,
7734,
876,
18,
6206,
1702,
261,
92,
9904,
1769,
5411,
289,
3639,
15549,
3639,
1748,
527,
261,
2704,
3986,
412,
1164,
858,
50,
261,
23,
10019,
1195,
3639,
527,
261,
2704,
4008,
1832,
3639,
288,
5411,
5307,
810,
273,
394,
5307,
261,
4522,
18,
2399,
16,
404,
1769,
377,
1748,
1843,
306,
347,
3839,
65,
1195,
5411,
1071,
918,
1208,
4294,
1832,
5411,
288,
7734,
1407,
1210,
273,
810,
31,
5411,
289,
5411,
1071,
918,
1440,
1832,
5411,
288,
7734,
2332,
18,
659,
18,
8222,
261,
2630,
18,
5120,
1702,
1832,
1769,
5411,
289,
3639,
15549,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
1832,
565,
288,
3639,
527,
261,
2704,
4008,
1832,
3639,
288,
5411,
509,
619,
31,
5411,
5307,
876,
273,
394,
5307,
261,
4522,
18,
2399,
16,
404,
1769,
565,
1748,
1817,
1195,
5411,
1071,
918,
1208,
1435,
288,
7734,
333,
18,
92,
273,
374,
31,
5411,
289,
5411,
1071,
918,
1208,
4294,
1832,
5411,
288,
7734,
1407,
1447,
273,
876,
31,
5411,
289,
5411,
1071,
918,
1440,
1832,
5411,
288,
7734,
876,
18,
6206,
1702,
261,
92,
9904,
1769,
5411,
289,
3639,
15549,
3639,
1748,
527,
261,
2704,
3986,
412,
1164,
858,
50,
261,
23,
10019,
1195,
3639,
527,
261,
2704,
4008,
1832,
3639,
288,
5411,
5307,
810,
273,
394,
5307,
261,
4522,
18,
2399,
2
] |
|
survey.setStartDate(Transformer.getCalendarFromString(sform.getStartDate())); survey.setFinishDate(Transformer.getCalendarFromString(sform.getEndDate()));
|
survey.setStartDate(Transformer.getCalendarFromString(sform .getStartDate())); survey.setFinishDate(Transformer.getCalendarFromString(sform .getEndDate()));
|
public void updatePersistedSurvey(HttpServletRequest request, SurveyForm sform){ Survey survey; HttpSession session = request.getSession(); if(sform.getSectionName()!=null && !sform.getSectionName().equals("")) survey = addSectionToSurvey(request, sform); else { survey = (Survey) session.getAttribute("currentSurvey"); survey.setName(sform.getName()); survey.setStartDate(Transformer.getCalendarFromString(sform.getStartDate())); survey.setFinishDate(Transformer.getCalendarFromString(sform.getEndDate())); survey.setStatus(sform.getState()); } surveyComponent.updateSurvey(survey); session.removeAttribute("currentSection"); session.removeAttribute("currentSurvey"); }
|
54385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54385/1987aafdf9f6e92293bee44cf33ba906d200af2c/SurveyWebComponent.java/buggy/survey/src/java/ar/com/survey/web/component/SurveyWebComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12771,
329,
22165,
12,
2940,
18572,
590,
16,
16680,
9062,
1204,
272,
687,
15329,
202,
202,
22165,
14902,
31,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
5621,
202,
202,
430,
12,
87,
687,
18,
588,
5285,
461,
1435,
5,
33,
2011,
597,
401,
87,
687,
18,
588,
5285,
461,
7675,
14963,
2932,
6,
3719,
1082,
202,
21448,
273,
527,
5285,
774,
22165,
12,
2293,
16,
272,
687,
1769,
202,
202,
12107,
288,
1082,
202,
21448,
273,
261,
22165,
13,
1339,
18,
588,
1499,
2932,
2972,
22165,
8863,
1082,
202,
21448,
18,
542,
461,
12,
87,
687,
18,
17994,
10663,
1082,
202,
21448,
18,
542,
22635,
12,
8319,
18,
588,
7335,
9193,
12,
87,
687,
18,
588,
22635,
1435,
10019,
1082,
202,
21448,
18,
542,
11641,
1626,
12,
8319,
18,
588,
7335,
9193,
12,
87,
687,
18,
588,
24640,
1435,
10019,
1082,
202,
21448,
18,
542,
1482,
12,
87,
687,
18,
588,
1119,
10663,
202,
202,
97,
202,
202,
21448,
1841,
18,
2725,
22165,
12,
21448,
1769,
202,
202,
3184,
18,
4479,
1499,
2932,
2972,
5285,
8863,
202,
202,
3184,
18,
4479,
1499,
2932,
2972,
22165,
8863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12771,
329,
22165,
12,
2940,
18572,
590,
16,
16680,
9062,
1204,
272,
687,
15329,
202,
202,
22165,
14902,
31,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
5621,
202,
202,
430,
12,
87,
687,
18,
588,
5285,
461,
1435,
5,
33,
2011,
597,
401,
87,
687,
18,
588,
5285,
461,
7675,
14963,
2932,
6,
3719,
1082,
202,
21448,
273,
527,
5285,
774,
22165,
12,
2293,
16,
272,
687,
1769,
202,
202,
12107,
288,
1082,
202,
21448,
273,
261,
22165,
13,
1339,
18,
588,
1499,
2932,
2972,
22165,
8863,
1082,
202,
21448,
18,
542,
461,
12,
87,
687,
18,
17994,
10663,
1082,
202,
21448,
18,
542,
22635,
12,
8319,
18,
588,
7335,
9193,
2
] |
void uninstallListeners()
|
protected void uninstallListeners()
|
void uninstallListeners() { list.removeFocusListener(focusListener); list.getModel().removeListDataListener(listDataListener); list.removeListSelectionListener(listSelectionListener); list.removeMouseListener(mouseInputListener); list.removeMouseMotionListener(mouseInputListener); list.removePropertyChangeListener(propertyChangeListener); }
|
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/7878167de36c868f3f4b0f507094bb155efbb199/BasicListUI.java/buggy/libjava/javax/swing/plaf/basic/BasicListUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
16577,
5583,
1435,
225,
288,
565,
666,
18,
4479,
9233,
2223,
12,
13923,
2223,
1769,
565,
666,
18,
588,
1488,
7675,
4479,
682,
751,
2223,
12,
1098,
751,
2223,
1769,
565,
666,
18,
4479,
682,
6233,
2223,
12,
1098,
6233,
2223,
1769,
565,
666,
18,
4479,
9186,
2223,
12,
11697,
1210,
2223,
1769,
565,
666,
18,
4479,
9186,
29360,
2223,
12,
11697,
1210,
2223,
1769,
565,
666,
18,
4479,
1396,
15744,
12,
4468,
15744,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
16577,
5583,
1435,
225,
288,
565,
666,
18,
4479,
9233,
2223,
12,
13923,
2223,
1769,
565,
666,
18,
588,
1488,
7675,
4479,
682,
751,
2223,
12,
1098,
751,
2223,
1769,
565,
666,
18,
4479,
682,
6233,
2223,
12,
1098,
6233,
2223,
1769,
565,
666,
18,
4479,
9186,
2223,
12,
11697,
1210,
2223,
1769,
565,
666,
18,
4479,
9186,
29360,
2223,
12,
11697,
1210,
2223,
1769,
565,
666,
18,
4479,
1396,
15744,
12,
4468,
15744,
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
] |
if (previous != null && previous.getDegreeOfInterest() != null) previousInterest = previous.getDegreeOfInterest().getValue();
|
if (previous != null && previous.getInterest() != null) previousInterest = previous.getInterest().getValue();
|
private void propegateDoiToParents(IMylarElement node, float previousInterest, float decayOffset, int level, List<IMylarElement> elementDelta) { if (level > MAX_PROPAGATION || node == null || node.getDegreeOfInterest().getValue() <= 0) return;// || "/".equals(node.getElementHandle())) return; checkForLandmarkDeltaAndNotify(previousInterest, node); level++; // original is 1st level float propagatedIncrement = node.getDegreeOfInterest().getValue() - previousInterest + decayOffset;// float propagatedIncrement = scalingFactors.getParentPropagationIncrement(level); IMylarStructureBridge adapter = MylarPlugin.getDefault().getStructureBridge(node.getContentType()); String parentHandle = adapter.getParentHandle(node.getHandleIdentifier()); if (parentHandle != null) { InteractionEvent propagationEvent = new InteractionEvent( InteractionEvent.Kind.PROPAGATION, adapter.getContentType(node.getHandleIdentifier()), adapter.getParentHandle(node.getHandleIdentifier()), SOURCE_ID_MODEL_PROPAGATION, CONTAINMENT_PROPAGATION_ID, propagatedIncrement); IMylarElement previous = activeContext.get(propagationEvent.getStructureHandle()); if (previous != null && previous.getDegreeOfInterest() != null) previousInterest = previous.getDegreeOfInterest().getValue(); CompositeContextElement parentNode = (CompositeContextElement)activeContext.addEvent(propagationEvent); if (isInterestDelta( previousInterest, previous.getDegreeOfInterest().isPredicted(), previous.getDegreeOfInterest().isPropagated(), parentNode)) { elementDelta.add(0, parentNode); } propegateDoiToParents(parentNode, previousInterest, decayOffset, level, elementDelta);//adapter.getResourceExtension(), adapter.getParentHandle(parentHandle), level, doi, parentChain); } }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/3de551576cd45b220ad7744a1ad0804a812b93d4/MylarContextManager.java/clean/org.eclipse.mylyn.context.core/src/org/eclipse/mylyn/core/internal/MylarContextManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
450,
9001,
340,
3244,
77,
774,
13733,
12,
3445,
93,
7901,
1046,
756,
16,
1431,
2416,
29281,
16,
1431,
22286,
2335,
16,
509,
1801,
16,
987,
32,
3445,
93,
7901,
1046,
34,
930,
9242,
13,
288,
3639,
309,
261,
2815,
405,
4552,
67,
15811,
1781,
2689,
747,
756,
422,
446,
747,
756,
18,
588,
22885,
951,
29281,
7675,
24805,
1435,
1648,
374,
13,
327,
31,
759,
747,
4016,
18,
14963,
12,
2159,
18,
21336,
3259,
1435,
3719,
327,
31,
7682,
13855,
29398,
3355,
9242,
1876,
9168,
12,
11515,
29281,
16,
756,
1769,
7734,
1801,
9904,
31,
368,
2282,
353,
404,
334,
1801,
3639,
1431,
29786,
10798,
273,
756,
18,
588,
22885,
951,
29281,
7675,
24805,
1435,
300,
2416,
29281,
397,
22286,
2335,
31,
759,
3639,
1431,
29786,
10798,
273,
10612,
23535,
18,
588,
3054,
14225,
10798,
12,
2815,
1769,
2868,
6246,
93,
7901,
6999,
13691,
4516,
273,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
6999,
13691,
12,
2159,
18,
588,
8046,
10663,
13491,
514,
982,
3259,
273,
4516,
18,
588,
3054,
3259,
12,
2159,
18,
588,
3259,
3004,
10663,
3639,
309,
261,
2938,
3259,
480,
446,
13,
288,
5411,
5294,
1128,
1133,
25686,
1133,
273,
394,
5294,
1128,
1133,
12,
10792,
5294,
1128,
1133,
18,
5677,
18,
15811,
1781,
2689,
16,
5397,
4516,
18,
588,
8046,
12,
2159,
18,
588,
3259,
3004,
1435,
3631,
10792,
4516,
18,
588,
3054,
3259,
12,
2159,
18,
588,
3259,
3004,
1435,
3631,
5397,
16088,
67,
734,
67,
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,
450,
9001,
340,
3244,
77,
774,
13733,
12,
3445,
93,
7901,
1046,
756,
16,
1431,
2416,
29281,
16,
1431,
22286,
2335,
16,
509,
1801,
16,
987,
32,
3445,
93,
7901,
1046,
34,
930,
9242,
13,
288,
3639,
309,
261,
2815,
405,
4552,
67,
15811,
1781,
2689,
747,
756,
422,
446,
747,
756,
18,
588,
22885,
951,
29281,
7675,
24805,
1435,
1648,
374,
13,
327,
31,
759,
747,
4016,
18,
14963,
12,
2159,
18,
21336,
3259,
1435,
3719,
327,
31,
7682,
13855,
29398,
3355,
9242,
1876,
9168,
12,
11515,
29281,
16,
756,
1769,
7734,
1801,
9904,
31,
368,
2282,
353,
404,
334,
1801,
3639,
1431,
29786,
10798,
273,
756,
18,
588,
22885,
951,
29281,
7675,
24805,
1435,
2
] |
String underlineValue = underline.getSelection( ) ? DesignChoiceConstants.TEXT_UNDERLINE_UNDERLINE
|
String underlineValue = underline.getSelection( ) ? DesignChoiceConstants.TEXT_UNDERLINE_UNDERLINE
|
protected void okPressed( ) { try { String familyValue = getRawFontFamily( ); String sizeValue = getRawFontSize( ); int colorValue = DEUtil.getRGBInt( color.getRGB( ) ); int backColorValue = DEUtil.getRGBInt( backColor.getRGB( ) ); String italicValue = italic.getSelection( ) ? DesignChoiceConstants.FONT_STYLE_ITALIC : DesignChoiceConstants.FONT_STYLE_NORMAL; String weightValue = bold.getSelection( ) ? DesignChoiceConstants.FONT_WEIGHT_BOLD : DesignChoiceConstants.FONT_WEIGHT_NORMAL; String underlineValue = underline.getSelection( ) ? DesignChoiceConstants.TEXT_UNDERLINE_UNDERLINE : DesignChoiceConstants.TEXT_UNDERLINE_NONE; String lingthroughValue = linethrough.getSelection( ) ? DesignChoiceConstants.TEXT_LINE_THROUGH_LINE_THROUGH : DesignChoiceConstants.TEXT_LINE_THROUGH_NONE; // provider.setTestExpression( DEUtil.resolveNull( // expression.getText( ) ) ); if ( handle == null ) { HighlightRule rule = StructureFactory.createHighlightRule( ); rule.setProperty( HighlightRule.OPERATOR_MEMBER, DEUtil.resolveNull( getValueForOperator( operator.getText( ) ) ) ); rule.setProperty( HighlightRule.VALUE1_MEMBER, DEUtil.resolveNull( value1.getText( ) ) ); rule.setProperty( HighlightRule.VALUE2_MEMBER, DEUtil.resolveNull( value2.getText( ) ) ); /** * Sets our necessary style properties. */ if ( color.getRGB( ) != null ) { rule.setProperty( HighlightRule.COLOR_MEMBER, new Integer( colorValue ) ); } if ( backColor.getRGB( ) != null ) { rule.setProperty( HighlightRule.BACKGROUND_COLOR_MEMBER, new Integer( backColorValue ) ); } if ( familyValue != null ) { rule.setProperty( HighlightRule.FONT_FAMILY_MEMBER, familyValue ); } if ( sizeValue != null ) { rule.setProperty( HighlightRule.FONT_SIZE_MEMBER, sizeValue ); } if ( isItalicChanged ) { rule.setProperty( HighlightRule.FONT_STYLE_MEMBER, italicValue ); } if ( isBoldChanged ) { rule.setProperty( HighlightRule.FONT_WEIGHT_MEMBER, weightValue ); } if ( isLinethroughChanged ) { rule.setProperty( HighlightRule.TEXT_LINE_THROUGH_MEMBER, lingthroughValue ); } if ( isUnderlineChanged ) { rule.setProperty( HighlightRule.TEXT_UNDERLINE_MEMBER, underlineValue ); } // set test expression into highlight rule. rule.setTestExpression( DEUtil.resolveNull( expression.getText( ) ) ); handle = provider.doAddItem( rule, handleCount ); } else { handle.setOperator( DEUtil.resolveNull( getValueForOperator( operator.getText( ) ) ) ); handle.setValue1( DEUtil.resolveNull( value1.getText( ) ) ); if ( handle.getOperator( ) .equals( DesignChoiceConstants.MAP_OPERATOR_BETWEEN ) || handle.getOperator( ) .equals( DesignChoiceConstants.MAP_OPERATOR_NOT_BETWEEN ) ) { handle.setValue2( DEUtil.resolveNull( value2.getText( ) ) ); } handle.getFontFamilyHandle( ) .setStringValue( DEUtil.resolveNull( familyValue ) ); handle.getFontSize( ) .setStringValue( DEUtil.resolveNull( sizeValue ) ); if ( color.getRGB( ) != null ) { handle.getColor( ).setRGB( colorValue ); } else { handle.getColor( ).setValue( null ); } if ( backColor.getRGB( ) != null ) { handle.getBackgroundColor( ).setRGB( backColorValue ); } else { handle.getBackgroundColor( ).setValue( null ); } if ( isItalicChanged ) { handle.setFontStyle( italicValue ); } if ( isBoldChanged ) { handle.setFontWeight( weightValue ); } if ( isUnderlineChanged ) { handle.setTextUnderline( underlineValue ); } if ( isLinethroughChanged ) { handle.setTextLineThrough( lingthroughValue ); } // set test expression into highlight rule. handle.setTestExpression( DEUtil.resolveNull( expression.getText( ) ) ); } } catch ( Exception e ) { WidgetUtil.processError( getShell( ), e ); } super.okPressed( ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e2b6eafcb11806e8cec2333182f81de479004998/HighlightRuleBuilder.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HighlightRuleBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1529,
24624,
12,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
780,
6755,
620,
273,
10547,
5711,
9203,
12,
11272,
1082,
202,
780,
963,
620,
273,
10547,
22688,
12,
11272,
1082,
202,
474,
2036,
620,
273,
2030,
1304,
18,
588,
11343,
1702,
12,
2036,
18,
588,
11343,
12,
262,
11272,
1082,
202,
474,
1473,
2957,
620,
273,
2030,
1304,
18,
588,
11343,
1702,
12,
1473,
2957,
18,
588,
11343,
12,
262,
11272,
1082,
202,
780,
31709,
620,
273,
31709,
18,
588,
6233,
12,
262,
692,
29703,
10538,
2918,
18,
25221,
67,
15066,
67,
1285,
1013,
2871,
6862,
202,
30,
29703,
10538,
2918,
18,
25221,
67,
15066,
67,
15480,
31,
1082,
202,
780,
3119,
620,
273,
13068,
18,
588,
6233,
12,
262,
692,
29703,
10538,
2918,
18,
25221,
67,
29988,
67,
38,
11846,
6862,
202,
30,
29703,
10538,
2918,
18,
25221,
67,
29988,
67,
15480,
31,
1082,
202,
780,
25985,
620,
273,
25985,
18,
588,
6233,
12,
262,
692,
29703,
10538,
2918,
18,
5151,
67,
31625,
5997,
67,
31625,
5997,
6862,
202,
30,
29703,
10538,
2918,
18,
5151,
67,
31625,
5997,
67,
9826,
31,
1082,
202,
780,
328,
310,
10064,
620,
273,
4739,
546,
2642,
18,
588,
6233,
12,
262,
692,
29703,
10538,
2918,
18,
5151,
67,
5997,
67,
2455,
1457,
57,
16715,
67,
5997,
67,
2455,
1457,
57,
16715,
6862,
202,
30,
29703,
10538,
2918,
18,
5151,
67,
5997,
67,
2455,
1457,
57,
16715,
67,
9826,
31,
1082,
202,
759,
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,
918,
1529,
24624,
12,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
780,
6755,
620,
273,
10547,
5711,
9203,
12,
11272,
1082,
202,
780,
963,
620,
273,
10547,
22688,
12,
11272,
1082,
202,
474,
2036,
620,
273,
2030,
1304,
18,
588,
11343,
1702,
12,
2036,
18,
588,
11343,
12,
262,
11272,
1082,
202,
474,
1473,
2957,
620,
273,
2030,
1304,
18,
588,
11343,
1702,
12,
1473,
2957,
18,
588,
11343,
12,
262,
11272,
1082,
202,
780,
31709,
620,
273,
31709,
18,
588,
6233,
12,
262,
692,
29703,
10538,
2918,
18,
25221,
67,
15066,
67,
1285,
1013,
2871,
6862,
202,
30,
29703,
10538,
2918,
18,
25221,
67,
15066,
67,
15480,
31,
1082,
202,
780,
2
] |
TemplateSet.getInstance().add(template);
|
fTemplates.add(template);
|
private void add() { Template template= new Template(); template.setContext(TemplateContext.JAVA); //$NON-NLS-1$ EditTemplateDialog dialog= new EditTemplateDialog(getShell(), template, false); if (dialog.open() == dialog.OK) { TemplateSet.getInstance().add(template); fTableViewer.refresh(); fTableViewer.setChecked(template, template.isEnabled()); fTableViewer.setSelection(new StructuredSelection(template)); } }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/2c833e5d9fc0d97e03e635e4f014fbc5ac1b426b/TemplatePreferencePage.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/TemplatePreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
1435,
288,
202,
202,
2283,
1542,
33,
394,
5035,
5621,
202,
202,
3202,
18,
542,
1042,
12,
2283,
1042,
18,
27264,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4666,
2283,
6353,
6176,
33,
394,
15328,
2283,
6353,
12,
588,
13220,
9334,
1542,
16,
629,
1769,
202,
202,
430,
261,
12730,
18,
3190,
1435,
422,
6176,
18,
3141,
13,
288,
1082,
202,
2283,
694,
18,
588,
1442,
7675,
1289,
12,
3202,
1769,
1082,
202,
74,
1388,
18415,
18,
9144,
5621,
1082,
202,
74,
1388,
18415,
18,
542,
11454,
12,
3202,
16,
1542,
18,
291,
1526,
10663,
1082,
202,
74,
1388,
18415,
18,
542,
6233,
12,
2704,
7362,
2862,
6233,
12,
3202,
10019,
6862,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1152,
918,
527,
1435,
288,
202,
202,
2283,
1542,
33,
394,
5035,
5621,
202,
202,
3202,
18,
542,
1042,
12,
2283,
1042,
18,
27264,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4666,
2283,
6353,
6176,
33,
394,
15328,
2283,
6353,
12,
588,
13220,
9334,
1542,
16,
629,
1769,
202,
202,
430,
261,
12730,
18,
3190,
1435,
422,
6176,
18,
3141,
13,
288,
1082,
202,
2283,
694,
18,
588,
1442,
7675,
1289,
12,
3202,
1769,
1082,
202,
74,
1388,
18415,
18,
9144,
5621,
1082,
202,
74,
1388,
18415,
18,
542,
11454,
12,
3202,
16,
1542,
18,
291,
1526,
10663,
1082,
202,
74,
1388,
18415,
18,
542,
6233,
12,
2704,
7362,
2862,
6233,
12,
3202,
10019,
2
] |
}
|
}
|
public CharSpan(int lo,int hi,String type, String docID) { this.lo=lo; this.hi=hi; this.type = type; this.docID=docID; }
|
51753 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51753/e6f5547ded82a315c0b8bcee96ff61710888c5a2/TextBaseLoader.java/clean/src/edu/cmu/minorthird/text/TextBaseLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3703,
6952,
12,
474,
437,
16,
474,
10118,
16,
780,
618,
16,
514,
997,
734,
13,
288,
202,
565,
333,
18,
383,
33,
383,
31,
333,
18,
12266,
33,
12266,
31,
333,
18,
723,
273,
618,
31,
333,
18,
2434,
734,
33,
2434,
734,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3703,
6952,
12,
474,
437,
16,
474,
10118,
16,
780,
618,
16,
514,
997,
734,
13,
288,
202,
565,
333,
18,
383,
33,
383,
31,
333,
18,
12266,
33,
12266,
31,
333,
18,
723,
273,
618,
31,
333,
18,
2434,
734,
33,
2434,
734,
31,
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
] |
Rectangle rect = new Rectangle( 0, 0, clippedBounds.height,
|
Rectangle rect = new Rectangle( 0, 0, clippedBounds.height,
|
protected void paintFigure( Graphics graphics ) { //set /* * @TODO:Pratik maybe you can break this method into a few methods. that * might make it a little easier to read and understand. plus, * sub-classes could customize certain parts. */ setIntervalForPaint( ); double dotsPerUnit = getDPU( ); Rectangle clip = transposer.t( graphics.getClip( Rectangle.SINGLETON ) ); Rectangle figClientArea = transposer.t( getClientArea( ) ); // Use the x and width of the client area, but the y and height of the // clip as the // bounds of the area which is to be repainted. This will increase // performance as the // entire ruler will not be repainted everytime. Rectangle clippedBounds = clip; clippedBounds.x = figClientArea.x; clippedBounds.width = figClientArea.width - BORDER_WIDTH; // Paint the background if ( isOpaque( ) ) { graphics.fillRectangle( transposer.t( clippedBounds ) ); } /* * A major mark is one that goes all the way from the left edge to the * right edge of a ruler and for which a number is displayed. Determine * the minimum number of pixels that are to be left between major marks. * This will, in turn, help determine how many units are to be displayed * per major mark. A major mark should have at least enough pixels to * display the text and its padding. We take into the consideration the * max of text's width and height so that for horizontal and vertical * rulers that are of the same height, the number of units per major * mark is the same. */ int unitsPerMajorMark = (int) ( minPixelsBetweenMajorMarks / dotsPerUnit ); //unitsPerMajorMark = 20; if ( minPixelsBetweenMajorMarks % dotsPerUnit != 0.0 ) { unitsPerMajorMark++; } if ( interval > 0 ) { /* * If the client specified how many units are to be displayed per * major mark, use that. If, however, showing that many units * wouldn't leave enough room for the text, than take its smallest * multiple that would leave enough room. */ int intervalMultiple = interval; while ( intervalMultiple < unitsPerMajorMark ) { intervalMultiple += interval; } unitsPerMajorMark = intervalMultiple; } else if ( unitsPerMajorMark != 1 && unitsPerMajorMark % 2 != 0 ) { // if the number of units per major mark is calculated dynamically, // ensure that // it is an even number. unitsPerMajorMark++; } /* * divsPerMajorMark indicates the number of divisions that a major mark * should be divided into. for eg., a value of 2 would mean that a major * mark would be shown as having two parts. that means that there would * be a marker showing the beginning and end of the major marker and * another right in the middle. */ int divsPerMajorMark; if ( divisions > 0 && dotsPerUnit * unitsPerMajorMark / divisions >= minPixelsBetweenMarks ) { /* * If the client has specified the number of divisions per major * mark, use that unless it would cause the minimum space between * marks to be less than minPixelsBetweenMarks */ divsPerMajorMark = divisions; } else { /* * If the client hasn't specified the number of divisions per major * mark or the one that the client has specified is invalid, then * calculate it dynamically. This algorithm will try to display 10 * divisions per CM, and 16 per INCH. However, if that puts the * marks too close together (i.e., the space between them is less * than minPixelsBetweenMarks), then it keeps decreasing the number * of divisions by a factor of 2 until there is enough space between * them. */ divsPerMajorMark = 2; if ( getUnit( ) == RulerProvider.UNIT_CENTIMETERS ) { divsPerMajorMark = 10; } else if ( getUnit( ) == RulerProvider.UNIT_INCHES ) { divsPerMajorMark = 8; } //divsPerMajorMark = getPerMajorMark(getUnit()); while ( dotsPerUnit * unitsPerMajorMark / divsPerMajorMark < minPixelsBetweenMarks ) { divsPerMajorMark /= 2; if ( divsPerMajorMark == 0 ) { break; } } // This should never happen unless the client has specified a // minPixelsBetweenMarks that is larger than // minPixelsBetweenMajorMarks (which // is calculated using the text's size -- size of the largest number // to be // displayed). if ( divsPerMajorMark == 0 ) { divsPerMajorMark = 1; } } /* * mediumMarkerDivNum is used to determine which mark (line drawn to * indicate a point on the ruler) in a major mark will be of medium * size. If its value is 1 then every mark will be of medium size. If * its value is 5, then every 5th mark will be of medium size (the rest * being of small size). */ int mediumMarkerDivNum = 1; switch ( divsPerMajorMark ) { case 20 : case 10 : case 5 : mediumMarkerDivNum = 5; break; case 16 : case 8 : mediumMarkerDivNum = 4; break; case 4 : mediumMarkerDivNum = 2; break; case 2 : mediumMarkerDivNum = 1; } Rectangle leftRect = transposer.t( getScaleLeftSpace( ) ); int leftMargin = leftRect.y; /* * dotsPerDivision = number of pixels between each mark = number of * pixels in a division */ double dotsPerDivision = dotsPerUnit * unitsPerMajorMark / divsPerMajorMark; /* * startMark is the division/mark from which we are going to start * painting. It should be the last major mark (one for which a number is * displayed) that is before the top of the clip rectangle. */ int startMark = (int) ( ( clippedBounds.y - leftMargin ) / ( dotsPerUnit * unitsPerMajorMark ) ) * divsPerMajorMark; if ( clippedBounds.y < 0 ) { // -2 / 10 = 0, not -1. so, if the top of the clip is negative, we // need to move // the startMark back by a whole major mark. startMark -= divsPerMajorMark; } // endMark is the first non-visible mark (doesn't have to be a major // mark) that is // beyond the end of the clip region int endMark = (int) ( ( ( clippedBounds.y + clippedBounds.height - leftMargin ) / dotsPerDivision ) ) + 1; int leading = FigureUtilities.getFontMetrics( getFont( ) ).getLeading( ); Rectangle forbiddenZone = new Rectangle( ); for ( int div = startMark; div <= endMark; div++ ) { // y is the vertical position of the mark if ( leftRect.bottom( ) <= clippedBounds.bottom( ) ) { //continue; } int y = (int) ( div * dotsPerDivision ); if ( div % divsPerMajorMark == 0 ) { String num = "" + ( div / divsPerMajorMark ) * unitsPerMajorMark; //$NON-NLS-1$ if ( isHorizontal( ) ) { Dimension numSize = FigureUtilities.getStringExtents( num, getFont( ) ); /* * FigureUtilities is increasing the width reported by GC by * 1, so we remove it here. Also, if the actual width (the * one reported by the GC) is even, we want to increase it * by 1. This will ensure that when marks marks are erased * because they are too close to the number, they are erased * from both sides of that number. */ if ( numSize.width % 2 == 0 ) { numSize.width--; } Point textLocation = new Point( y - ( numSize.width / 2 ) + leftMargin, clippedBounds.x + textMargin - leading ); forbiddenZone.setLocation( textLocation ); forbiddenZone.setSize( numSize ); forbiddenZone.expand( 1, 1 ); graphics.fillRectangle( forbiddenZone ); // Uncomment the following line of code if you want to see a // line at // the exact position of the major mark // graphics.drawLine(y, clippedBounds.x, y, clippedBounds.x // + clippedBounds.width); graphics.drawText( num, textLocation ); } else { Image numImage = ImageUtilities.createRotatedImageOfString( num, getFont( ), getForegroundColor( ), getBackgroundColor( ) ); Point textLocation = new Point( clippedBounds.x + textMargin, y - ( numImage.getBounds( ).height / 2 ) + leftMargin ); forbiddenZone.setLocation( textLocation ); forbiddenZone.setSize( numImage.getBounds( ).width, numImage.getBounds( ).height ); forbiddenZone.expand( 1, 1 + ( numImage.getBounds( ).height % 2 == 0 ? 1 : 0 ) ); graphics.fillRectangle( forbiddenZone ); graphics.drawImage( numImage, textLocation ); numImage.dispose( ); } } else if ( ( div % divsPerMajorMark ) % mediumMarkerDivNum == 0 ) { // this is a medium mark, so its length should be longer than // the small marks Point start = transposer.t( new Point( ( clippedBounds.getRight( ).x - mediumMarkWidth ) / 2, y + leftMargin ) ); Point end = transposer.t( new Point( ( ( clippedBounds.getRight( ).x - mediumMarkWidth ) / 2 ) + mediumMarkWidth, y + leftMargin ) ); if ( !forbiddenZone.contains( start ) ) { graphics.drawLine( start, end ); } } else { // small mark Point start = transposer.t( new Point( ( clippedBounds.getRight( ).x - smallMarkWidth ) / 2, y + leftMargin ) ); Point end = transposer.t( new Point( ( ( clippedBounds.getRight( ).x - smallMarkWidth ) / 2 ) + smallMarkWidth, y + leftMargin ) ); if ( !forbiddenZone.contains( start ) ) { graphics.drawLine( start, end ); } } } // paint the border clippedBounds.expand( BORDER_WIDTH, 0 ); graphics.setForegroundColor( ColorConstants.buttonDarker ); graphics.drawLine( transposer.t( clippedBounds.getTopRight( ) .translate( -1, -1 ) ), transposer.t( clippedBounds.getBottomRight( ) .translate( -1, -1 ) ) ); Color c = Display.getCurrent( ) .getSystemColor( SWT.COLOR_WIDGET_BACKGROUND ); graphics.setBackgroundColor( ReportColorConstants.greyFillColor ); graphics.setBackgroundColor( c ); Rectangle rect = new Rectangle( 0, 0, clippedBounds.height, leftMargin - 2 ); rect = transposer.t( rect ); graphics.fillRectangle( rect ); graphics.fillRectangle( getEndRect( graphics.getClip( Rectangle.SINGLETON ) ) ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/61cce071e25248ce85d293e05344845aab740350/EditorRulerFigure.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/rulers/EditorRulerFigure.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
12574,
42,
15906,
12,
16830,
17313,
262,
202,
95,
202,
202,
759,
542,
202,
202,
20308,
1082,
380,
632,
6241,
30,
2050,
270,
1766,
6944,
1846,
848,
898,
333,
707,
1368,
279,
11315,
2590,
18,
716,
1082,
380,
4825,
1221,
518,
279,
12720,
15857,
358,
855,
471,
22413,
18,
8737,
16,
1082,
380,
720,
17,
4701,
3377,
20236,
8626,
2140,
18,
1082,
1195,
202,
202,
542,
4006,
1290,
12699,
12,
11272,
202,
202,
9056,
19522,
2173,
2802,
273,
2343,
18061,
12,
11272,
202,
202,
19463,
6807,
273,
906,
5607,
18,
88,
12,
17313,
18,
588,
15339,
12,
13264,
18,
20184,
56,
673,
262,
11272,
202,
202,
19463,
4291,
1227,
5484,
273,
906,
5607,
18,
88,
12,
7635,
5484,
12,
262,
11272,
202,
202,
759,
2672,
326,
619,
471,
1835,
434,
326,
1004,
5091,
16,
1496,
326,
677,
471,
2072,
434,
326,
202,
202,
759,
6807,
487,
326,
202,
202,
759,
4972,
434,
326,
5091,
1492,
353,
358,
506,
24962,
329,
18,
1220,
903,
10929,
202,
202,
759,
9239,
487,
326,
202,
202,
759,
7278,
436,
17040,
903,
486,
506,
24962,
329,
3614,
957,
18,
202,
202,
19463,
26361,
5694,
273,
6807,
31,
202,
202,
14161,
1845,
5694,
18,
92,
273,
4291,
1227,
5484,
18,
92,
31,
202,
202,
14161,
1845,
5694,
18,
2819,
273,
4291,
1227,
5484,
18,
2819,
300,
605,
7954,
67,
10023,
31,
202,
202,
759,
30001,
326,
5412,
202,
202,
430,
261,
353,
3817,
14886,
12,
262,
262,
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,
1117,
918,
12574,
42,
15906,
12,
16830,
17313,
262,
202,
95,
202,
202,
759,
542,
202,
202,
20308,
1082,
380,
632,
6241,
30,
2050,
270,
1766,
6944,
1846,
848,
898,
333,
707,
1368,
279,
11315,
2590,
18,
716,
1082,
380,
4825,
1221,
518,
279,
12720,
15857,
358,
855,
471,
22413,
18,
8737,
16,
1082,
380,
720,
17,
4701,
3377,
20236,
8626,
2140,
18,
1082,
1195,
202,
202,
542,
4006,
1290,
12699,
12,
11272,
202,
202,
9056,
19522,
2173,
2802,
273,
2343,
18061,
12,
11272,
202,
202,
19463,
6807,
273,
906,
5607,
18,
88,
12,
17313,
18,
588,
15339,
12,
13264,
18,
20184,
56,
673,
262,
11272,
202,
202,
19463,
4291,
1227,
5484,
273,
906,
5607,
18,
88,
2
] |
private final int addString(String str, int iCodeTop)
|
private int addString(String str, int iCodeTop)
|
private final int addString(String str, int iCodeTop) { int index = itsData.itsStringTableIndex; if (itsData.itsStringTable.length == index) { String[] sa = new String[index * 2]; System.arraycopy(itsData.itsStringTable, 0, sa, 0, index); itsData.itsStringTable = sa; } itsData.itsStringTable[index] = str; itsData.itsStringTableIndex = index + 1; iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xFF), iCodeTop); return iCodeTop; }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/7f850f6162d49fce5f2a418eb4b32ba1cf9d58bf/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
527,
780,
12,
780,
609,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
770,
273,
2097,
751,
18,
1282,
780,
1388,
1016,
31,
3639,
309,
261,
1282,
751,
18,
1282,
780,
1388,
18,
2469,
422,
770,
13,
288,
5411,
514,
8526,
7864,
273,
394,
514,
63,
1615,
380,
576,
15533,
5411,
2332,
18,
1126,
3530,
12,
1282,
751,
18,
1282,
780,
1388,
16,
374,
16,
7864,
16,
374,
16,
770,
1769,
5411,
2097,
751,
18,
1282,
780,
1388,
273,
7864,
31,
3639,
289,
3639,
2097,
751,
18,
1282,
780,
1388,
63,
1615,
65,
273,
609,
31,
3639,
2097,
751,
18,
1282,
780,
1388,
1016,
273,
770,
397,
404,
31,
3639,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
21433,
1615,
1671,
1725,
3631,
277,
1085,
3401,
1769,
3639,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
21433,
1615,
473,
374,
6356,
3631,
277,
1085,
3401,
1769,
3639,
327,
277,
1085,
3401,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
527,
780,
12,
780,
609,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
770,
273,
2097,
751,
18,
1282,
780,
1388,
1016,
31,
3639,
309,
261,
1282,
751,
18,
1282,
780,
1388,
18,
2469,
422,
770,
13,
288,
5411,
514,
8526,
7864,
273,
394,
514,
63,
1615,
380,
576,
15533,
5411,
2332,
18,
1126,
3530,
12,
1282,
751,
18,
1282,
780,
1388,
16,
374,
16,
7864,
16,
374,
16,
770,
1769,
5411,
2097,
751,
18,
1282,
780,
1388,
273,
7864,
31,
3639,
289,
3639,
2097,
751,
18,
1282,
780,
1388,
63,
1615,
65,
273,
609,
31,
3639,
2097,
751,
18,
1282,
780,
1388,
1016,
273,
770,
397,
404,
31,
3639,
277,
1085,
3401,
273,
2
] |
return lm.swapsRejectedRecognizedID;
|
return LocationManager.swapsRejectedRecognizedID;
|
public int getSwapsRejectedRecognizedID() { return lm.swapsRejectedRecognizedID; }
|
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/f79658a86e4a0f06462206ea41312edb9ae1f465/Node.java/buggy/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
1322,
91,
6679,
19902,
5650,
9367,
734,
1435,
288,
202,
202,
2463,
14966,
18,
5328,
6679,
19902,
5650,
9367,
734,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
1322,
91,
6679,
19902,
5650,
9367,
734,
1435,
288,
202,
202,
2463,
14966,
18,
5328,
6679,
19902,
5650,
9367,
734,
31,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static char getCombiningChar(char c, char d) { switch (c) { case 0x0300 : switch (d) { case 0x0041 : return 0x00C0; case 0x0045 : return 0x00C8; case 0x0049 : return 0x00CC; case 0x004F : return 0x00D2; case 0x0055 : return 0x00D9; case 0x0061 : return 0x00E0; case 0x0065 : return 0x00E8; case 0x0069 : return 0x00EC; case 0x006F : return 0x00F2; case 0x0075 : return 0x00F9; default: break; } case 0x0301 : switch (d) { case 0x0041 : return 0x00C1; case 0x0043 : return 0x0106; case 0x0045 : return 0x00C9; case 0x0047 : return 0x01F4; case 0x0049 : return 0x00CD; case 0x004B : return 0x1E30; case 0x004C : return 0x0139; case 0x004D : return 0x1E3E; case 0x004E : return 0x0143; case 0x004F : return 0x00D3; case 0x0050 : return 0x1E54; case 0x0052 : return 0x0154; case 0x0053 : return 0x015A; case 0x0055 : return 0x00DA; case 0x0059 : return 0x00DD; case 0x005A : return 0x0179; case 0x0061 : return 0x00E1; case 0x0063 : return 0x0107; case 0x0065 : return 0x00E9; case 0x0067 : return 0x01F5; case 0x0069 : return 0x00ED; case 0x006B : return 0x1E31; case 0x006C : return 0x013A; case 0x006D : return 0x1E3F; case 0x006E : return 0x0144; case 0x006F : return 0x00F3; case 0x0070 : return 0x1E55; case 0x0072 : return 0x0155; case 0x0073 : return 0x015B; case 0x0075 : return 0x00FA; case 0x0079 : return 0x00FD; case 0x007A : return 0x017A; case 0x00A2 : return 0x01FE; case 0x00B2 : return 0x01FF; default: break; } case 0x0302 : switch(d) { case 0x0041 : return 0x00C2; case 0x0043 : return 0x0108; case 0x0045 : return 0x00CA; case 0x0047 : return 0x011C; case 0x0048 : return 0x0124; case 0x0049 : return 0x00CE; case 0x004A : return 0x0134; case 0x004B : return 0x01E8; case 0x004C : return 0x1E3C; case 0x004F : return 0x00D4; case 0x0053 : return 0x015C; case 0x0054 : return 0x1E70; case 0x0055 : return 0x00DB; case 0x0057 : return 0x0174; case 0x0059 : return 0x0176; case 0x0061 : return 0x00E2; case 0x0063 : return 0x0109; case 0x0065 : return 0x00EA; case 0x0067 : return 0x011D; case 0x0068 : return 0x0125; case 0x0069 : return 0x00EE; case 0x006A : return 0x0135; case 0x006B : return 0x01E9; case 0x006C : return 0x1E3D; case 0x006F : return 0x00F4; case 0x0073 : return 0x015D; case 0x0074 : return 0x1E71; case 0x0075 : return 0x00FB; case 0x0077 : return 0x0175; case 0x0079 : return 0x0177; default: break; } case 0x0303 : switch(d) { case 0x0041 : return 0x00C3; case 0x0049 : return 0x0128; case 0x004E : return 0x00D1; case 0x004F : return 0x00D5; case 0x0055 : return 0x0168; case 0x0061 : return 0x00E3; case 0x0069 : return 0x0129; case 0x006E : return 0x00F1; case 0x006F : return 0x00F5; case 0x0075 : return 0x0169; default: break; } case 0x0304 : switch(d) { case 0x0041 : return 0x0100; case 0x0045 : return 0x0112; case 0x0049 : return 0x012A; case 0x004F : return 0x014C; case 0x0055 : return 0x016A; case 0x0061 : return 0x0101; case 0x0065 : return 0x0113; case 0x0069 : return 0x012B; case 0x006F : return 0x014D; case 0x0075 : return 0x016B; default: break; } case 0x0306 : switch(d) { case 0x0041 : return 0x0102; case 0x0045 : return 0x0114; case 0x0047 : return 0x011E; case 0x0049 : return 0x012C; case 0x004F : return 0x014E; case 0x0055 : return 0x016C; case 0x0061 : return 0x0103; case 0x0065 : return 0x0115; case 0x0069 : return 0x012D; case 0x006F : return 0x014F; case 0x0075 : return 0x016D; default: break; } case 0x0307 : switch(d) { case 0x0041 : return 0x0226; case 0x0042 : return 0x1E02; case 0x0043 : return 0x010A; case 0x0045 : return 0x0116; case 0x0046 : return 0x1E1E; case 0x0047 : return 0x0120; case 0x0048 : return 0x1E22; case 0x0049 : return 0x0130; case 0x004D : return 0x1E40; case 0x004E : return 0x1E44; case 0x0054 : return 0x1E6A; case 0x0057 : return 0x1E86; case 0x0058 : return 0x1E8A; case 0x0059 : return 0x1E8E; case 0x005A : return 0x017B; case 0x0061 : return 0x0227; case 0x0062 : return 0x1E03; case 0x0063 : return 0x010B; case 0x0065 : return 0x0117; case 0x0066 : return 0x1E1F; case 0x0067 : return 0x0121; case 0x0068 : return 0x1E23; case 0x006D : return 0x1E41; case 0x006E : return 0x1E45; case 0x0074 : return 0x1E6B; case 0x0077 : return 0x1E87; case 0x0078 : return 0x1E8B; case 0x0079 : return 0x1E8F; case 0x007A : return 0x017C; default: break; } case 0x0308 : switch(d) { case 0x0041 : return 0x00C4; case 0x0045 : return 0x00CB; case 0x0049 : return 0x00CF; case 0x004F : return 0x00D6; case 0x0055 : return 0x00DC; case 0x0059 : return 0x0178; case 0x0061 : return 0x00E4; case 0x0065 : return 0x00EB; case 0x0069 : return 0x00EF; case 0x006F : return 0x00F6; case 0x0075 : return 0x00FC; case 0x0079 : return 0x00FF; default: break; } case 0x0309 : switch(d) { case 0x0041 : return 0x1EA2; case 0x0061 : return 0x1EA3; case 0x00C2 : return 0x1EA8; case 0x00E2 : return 0x1EA9; case 0x0102 : return 0x1EB2; case 0x0103 : return 0x1EB3; case 0x0045 : return 0x1EBA; case 0x0065 : return 0x1EBB; case 0x00CA : return 0x1EC0; case 0x00EA : return 0x1EC1; case 0x0049 : return 0x1EC8; case 0x0069 : return 0x1EC9; case 0x004F : return 0x1ECE; case 0x006F : return 0x1ECF; case 0x00D4 : return 0x1ED4; case 0x00F4 : return 0x1ED5; // latin capital letter O with horn and hook above case 0x01A0 : return 0x1EDE; // latin small letter o with horn and hook above case 0x01A1 : return 0x1EDF; // latin capital letter U with hook above case 0x0055 : return 0x1EE6; // latin small letter U with hook above case 0x0075 : return 0x1EE7; // latin capital letter U with horn and hook above case 0x01AF : return 0x1EEC; // latin small letter u with horn and hook above case 0x01B0 : return 0x1EED; // latin capital letter Y with hook above case 0x0059 : return 0x1EF6; // latin small letter y with hook above case 0x0079 : return 0x1EF7; default : break; } case 0x030C : switch(d) { case 0x0043 : return 0x010C; case 0x0044 : return 0x010E; case 0x0045 : return 0x011A; case 0x0047 : return 0x01E6; case 0x004C : return 0x013D; case 0x004E : return 0x0147; case 0x004F : return 0x01D1; case 0x0052 : return 0x0158; case 0x0053 : return 0x0160; case 0x0054 : return 0x0164; case 0x005A : return 0x017D; case 0x0063 : return 0x010D; case 0x0064 : return 0x010F; case 0x0065 : return 0x011B; case 0x0067 : return 0x01E7; case 0x006C : return 0x013E; case 0x006E : return 0x0148; case 0x006F : return 0x01D2; case 0x0072 : return 0x0159; case 0x0073 : return 0x0161; case 0x0074 : return 0x0165; case 0x007A : return 0x017E; default: break; } case 0x030A : switch(d) { case 0x0041 : return 0x00C5; case 0x0055 : return 0x016E; case 0x0061 : return 0x00E5; case 0x0075 : return 0x016F; default: break; } case 0x0315 : switch(d) { case 0x006E : return 0x0149; default: break; } case 0x030B : switch(d) { case 0x004F : return 0x0150; case 0x0055 : return 0x0170; case 0x006F : return 0x0151; case 0x0075 : return 0x0171; default: break; } case 0x0323 : switch(d) { case 0x0041 : return 0x1EA0; case 0x0042 : return 0x1E04; case 0x0044 : return 0x1E0C; case 0x004B : return 0x1E32; case 0x004C : return 0x1E36; case 0x004D : return 0x1E42; case 0x004E : return 0x1E46; case 0x0052 : return 0x1E5A; case 0x0054 : return 0x1E6C; case 0x0056 : return 0x1E7E; case 0x005A : return 0x1E92; case 0x0061 : return 0x1EA1; case 0x0062 : return 0x1E05; case 0x0064 : return 0x1E0D; case 0x0065 : return 0x1EB9; case 0x006B : return 0x1E33; case 0x006C : return 0x1E37; case 0x006D : return 0x1E43; case 0x006E : return 0x1E47; case 0x0072 : return 0x1E5B; case 0x0074 : return 0x1E6D; case 0x0076 : return 0x1E7F; case 0x007A : return 0x1E93; default: break; } case 0x0325 : switch(d) { case 0x0041 : return 0x1E00; case 0x0061 : return 0x1E01; default: break; } case 0x0327 : switch(d) { case 0x0043 : return 0x00C7; case 0x0047 : return 0x0122; case 0x004B : return 0x0136; case 0x004C : return 0x013B; case 0x004E : return 0x0145; case 0x0053 : return 0x015E; case 0x0054 : return 0x0162; case 0x0063 : return 0x00E7; case 0x0067 : return 0x0123; case 0x006B : return 0x0137; case 0x006C : return 0x013C; case 0x006E : return 0x0146; case 0x0072 : return 0x0157; case 0x0073 : return 0x015F; case 0x0074 : return 0x0163; default: break; } case 0x0328 : switch(d) { case 0x0041 : return 0x0104; case 0x0045 : return 0x0118; case 0x0049 : return 0x012E; case 0x004F : return 0x01EA; case 0x0055 : return 0x0172; case 0x0061 : return 0x0105; case 0x0065 : return 0x0119; case 0x0069 : return 0x012F; case 0x006F : return 0x01EB; case 0x0075 : return 0x0173; default: break; } case 0x0331 : switch(d) { case 0x0042 : return 0x1E06; case 0x0062 : return 0x1E07; default: break; } case 0x0333 : switch(d) { case 0x0047 : return 0x01E4; case 0x0048 : return 0x0126; case 0x0054 : return 0x0166; case 0x0067 : return 0x01E5; case 0x0068 : return 0x0127; case 0x0074 : return 0x0167; default: break; } case 0x0332 : switch(d) { case 0x0042 : return 0x1E06; case 0x0044 : return 0x1E0E; case 0x004B : return 0x1E34; case 0x004C : return 0x1E3A; case 0x004E : return 0x1E47; case 0x0052 : return 0x1E5E; case 0x0054 : return 0x1E6E; case 0x0062 : return 0x1E07; case 0x0064 : return 0x1E0F; case 0x006B : return 0x1E35; case 0x006C : return 0x1E3B; case 0x006E : return 0x1E48; case 0x0072 : return 0x1E5F; case 0x0074 : return 0x1E6F; default: break; } case 0x031C : switch(d) { case 0x0052 : return 0x0156; default: break; } case 0x032E : switch(d) { case 0x0048 : return 0x1E2A; case 0x0068 : return 0x1E2B; default: break; } default: break; } return 0; }
|
5019 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5019/5a70bb5e1a663b495a4eb352ec7c7510a3bfc2f1/Unicode.java/buggy/src/org/marc4j/util/Unicode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
343,
826,
24107,
310,
2156,
12,
3001,
71,
16,
343,
1060,
15329,
202,
9610,
12,
71,
15329,
3593,
20,
92,
4630,
713,
30,
9610,
12,
72,
15329,
3593,
20,
92,
713,
9803,
30,
2463,
20,
92,
713,
39,
20,
31,
3593,
20,
92,
713,
7950,
30,
2463,
20,
92,
713,
39,
28,
31,
3593,
20,
92,
713,
7616,
30,
2463,
20,
92,
713,
6743,
31,
3593,
20,
92,
26565,
42,
30,
2463,
20,
92,
713,
40,
22,
31,
3593,
20,
92,
713,
2539,
30,
2463,
20,
92,
713,
40,
29,
31,
3593,
20,
92,
713,
9498,
30,
2463,
20,
92,
713,
41,
20,
31,
3593,
20,
92,
713,
9222,
30,
2463,
20,
92,
713,
41,
28,
31,
3593,
20,
92,
713,
8148,
30,
2463,
20,
92,
713,
7228,
31,
3593,
20,
92,
713,
26,
42,
30,
2463,
20,
92,
713,
42,
22,
31,
3593,
20,
92,
713,
5877,
30,
2463,
20,
92,
713,
42,
29,
31,
1886,
30,
8820,
31,
97,
3593,
20,
92,
4630,
1611,
30,
9610,
12,
72,
15329,
3593,
20,
92,
713,
9803,
30,
2463,
20,
92,
713,
39,
21,
31,
3593,
20,
92,
713,
8942,
30,
2463,
20,
92,
1611,
7677,
31,
3593,
20,
92,
713,
7950,
30,
2463,
20,
92,
713,
39,
29,
31,
3593,
20,
92,
713,
9462,
30,
2463,
20,
92,
1611,
42,
24,
31,
3593,
20,
92,
713,
7616,
30,
2463,
20,
92,
713,
10160,
31,
3593,
20,
92,
26565,
38,
30,
2463,
20,
92,
21,
41,
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,
3845,
343,
826,
24107,
310,
2156,
12,
3001,
71,
16,
343,
1060,
15329,
202,
9610,
12,
71,
15329,
3593,
20,
92,
4630,
713,
30,
9610,
12,
72,
15329,
3593,
20,
92,
713,
9803,
30,
2463,
20,
92,
713,
39,
20,
31,
3593,
20,
92,
713,
7950,
30,
2463,
20,
92,
713,
39,
28,
31,
3593,
20,
92,
713,
7616,
30,
2463,
20,
92,
713,
6743,
31,
3593,
20,
92,
26565,
42,
30,
2463,
20,
92,
713,
40,
22,
31,
3593,
20,
92,
713,
2539,
30,
2463,
20,
92,
713,
40,
29,
31,
3593,
20,
92,
713,
9498,
30,
2463,
20,
92,
713,
41,
20,
31,
3593,
20,
92,
713,
9222,
30,
2463,
20,
92,
713,
41,
28,
31,
2
] |
||
return getInputStream();
|
return ch.getContent(this);
|
public Object getContent() throws IOException { if (!connected) connect(); // FIXME: Doc indicates that other criteria should be applied as // heuristics to determine the true content type, e.g. see // guessContentTypeFromName() and guessContentTypeFromStream methods // as well as FileNameMap class & fileNameMap field & get/set methods. String type = getContentType(); ContentHandler ch = setContentHandler(type); if (ch != null) return ch.getContent(this); return getInputStream(); }
|
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/2a81deb9769ceea4775c22641c27bc9bc5399c18/URLConnection.java/buggy/libjava/java/net/URLConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
5154,
1435,
1216,
1860,
225,
288,
565,
309,
16051,
8537,
13,
1377,
3077,
5621,
565,
368,
9852,
30,
3521,
8527,
716,
1308,
3582,
1410,
506,
6754,
487,
565,
368,
3904,
295,
4287,
358,
4199,
326,
638,
913,
618,
16,
425,
18,
75,
18,
2621,
377,
368,
7274,
8046,
29732,
1435,
471,
7274,
8046,
1265,
1228,
2590,
565,
368,
487,
5492,
487,
25075,
863,
667,
473,
3968,
863,
652,
473,
336,
19,
542,
2590,
18,
565,
514,
618,
273,
17470,
5621,
565,
3697,
1503,
462,
273,
10651,
1503,
12,
723,
1769,
565,
309,
261,
343,
480,
446,
13,
1377,
327,
462,
18,
588,
1350,
12,
2211,
1769,
565,
327,
462,
18,
588,
1350,
12,
2211,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1033,
5154,
1435,
1216,
1860,
225,
288,
565,
309,
16051,
8537,
13,
1377,
3077,
5621,
565,
368,
9852,
30,
3521,
8527,
716,
1308,
3582,
1410,
506,
6754,
487,
565,
368,
3904,
295,
4287,
358,
4199,
326,
638,
913,
618,
16,
425,
18,
75,
18,
2621,
377,
368,
7274,
8046,
29732,
1435,
471,
7274,
8046,
1265,
1228,
2590,
565,
368,
487,
5492,
487,
25075,
863,
667,
473,
3968,
863,
652,
473,
336,
19,
542,
2590,
18,
565,
514,
618,
273,
17470,
5621,
565,
3697,
1503,
462,
273,
10651,
1503,
12,
723,
1769,
565,
309,
261,
343,
480,
446,
13,
1377,
327,
462,
18,
588,
1350,
12,
2211,
1769,
565,
327,
462,
18,
588,
1350,
12,
2211,
1769,
225,
2
] |
assertQueryEquals("field:the -y", "-y");
|
assertQueryEquals("field:the -y", "field:the -y"); assertQueryEquals("\"the y\"", "\"the y\"");
|
public void testParseQuery() throws Exception { //simple tests assertQueryEquals("x", "x"); assertQueryEquals("X", "x"); assertQueryEquals("+x", "x"); assertQueryEquals("-x", "-x"); assertQueryEquals("x y", "x y"); assertQueryEquals(" x y ", "x y"); assertQueryEquals("test +", "test"); // missing fourth double quote assertQueryEquals("\" abc def \" \" def ghi ", "\"abc def\" \"def ghi\""); //empty query assertQueryEquals("\"", ""); //fields assertQueryEquals("field:x -another:y", "field:x -another:y"); assertQueryEquals("the:x", "the:x"); //ACRONYM assertQueryEquals("w.s.o.p.", "wsop"); //STOPWORD assertQueryEquals("the", ""); assertQueryEquals("field:the -y", "-y"); assertQueryEquals("+the -y", "the -y"); //PHRASE assertQueryEquals("\"hello world\"", "\"hello world\""); assertQueryEquals("\"phrase a.b.c. phrase\"", "\"phrase abc phrase\""); assertQueryEquals("\"the end\"", "\"the end\""); assertQueryEquals("term\"the end\"", "term \"the end\""); //unbalanced assertQueryEquals("term\"the end", "term \"the end\""); //SIGRAM assertQueryEquals("\u3040\u3041\u3042", "\u3040 \u3041 \u3042"); //COMPOUND assertQueryEquals("term some.email@adress.here", "term \"some email adress here\""); }
|
57484 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57484/0de9cbb52b5f216a10307e881a96d4a6271a9e0e/TestQueryParser.java/clean/src/test/org/apache/nutch/analysis/TestQueryParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
3201,
1138,
1435,
1216,
1185,
288,
565,
368,
9647,
7434,
565,
1815,
1138,
8867,
2932,
92,
3113,
315,
92,
8863,
565,
1815,
1138,
8867,
2932,
60,
3113,
315,
92,
8863,
565,
1815,
1138,
8867,
2932,
15,
92,
3113,
315,
92,
8863,
565,
1815,
1138,
8867,
2932,
17,
92,
3113,
3701,
92,
8863,
565,
1815,
1138,
8867,
2932,
92,
677,
3113,
315,
92,
677,
8863,
565,
1815,
1138,
8867,
2932,
619,
225,
677,
3104,
315,
92,
677,
8863,
565,
1815,
1138,
8867,
2932,
3813,
397,
3113,
315,
3813,
8863,
565,
368,
3315,
12792,
451,
1645,
3862,
565,
1815,
1138,
8867,
2932,
2412,
20011,
1652,
1239,
1239,
1652,
314,
12266,
3104,
7023,
18947,
1652,
2412,
1239,
536,
314,
12266,
8530,
1769,
565,
368,
5531,
843,
565,
1815,
1138,
8867,
2932,
2412,
3113,
1408,
1769,
565,
368,
2821,
565,
1815,
1138,
8867,
2932,
1518,
30,
92,
300,
304,
3011,
30,
93,
3113,
315,
1518,
30,
92,
300,
304,
3011,
30,
93,
8863,
565,
1815,
1138,
8867,
2932,
5787,
30,
92,
3113,
315,
5787,
30,
92,
8863,
565,
368,
2226,
19359,
61,
49,
565,
1815,
1138,
8867,
2932,
91,
18,
87,
18,
83,
18,
84,
1199,
16,
315,
4749,
556,
8863,
565,
368,
17513,
7952,
565,
1815,
1138,
8867,
2932,
5787,
3113,
1408,
1769,
565,
1815,
1138,
8867,
2932,
1518,
30,
5787,
300,
93,
3113,
315,
1518,
30,
5787,
300,
93,
8863,
1815,
1138,
8867,
2932,
2412,
5787,
677,
2412,
3113,
7023,
5787,
677,
8530,
1769,
565,
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,
1842,
3201,
1138,
1435,
1216,
1185,
288,
565,
368,
9647,
7434,
565,
1815,
1138,
8867,
2932,
92,
3113,
315,
92,
8863,
565,
1815,
1138,
8867,
2932,
60,
3113,
315,
92,
8863,
565,
1815,
1138,
8867,
2932,
15,
92,
3113,
315,
92,
8863,
565,
1815,
1138,
8867,
2932,
17,
92,
3113,
3701,
92,
8863,
565,
1815,
1138,
8867,
2932,
92,
677,
3113,
315,
92,
677,
8863,
565,
1815,
1138,
8867,
2932,
619,
225,
677,
3104,
315,
92,
677,
8863,
565,
1815,
1138,
8867,
2932,
3813,
397,
3113,
315,
3813,
8863,
565,
368,
3315,
12792,
451,
1645,
3862,
565,
1815,
1138,
8867,
2932,
2412,
20011,
1652,
1239,
1239,
1652,
314,
12266,
3104,
7023,
18947,
1652,
2412,
1239,
536,
2
] |
}
|
}
|
public void add(Method method) { String methodName = method.getName(); List l = (List) methodByNameMap.get( methodName ); if ( l == null) { l = new ArrayList(); methodByNameMap.put(methodName, l); } l.add(method); return; }
|
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/37d89f07fbf3f42538c188dceaf622063b2531dd/MethodMap.java/clean/src/java/org/apache/velocity/util/introspection/MethodMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
12,
1305,
707,
13,
565,
288,
3639,
514,
4918,
273,
707,
18,
17994,
5621,
3639,
987,
328,
273,
261,
682,
13,
707,
5911,
863,
18,
588,
12,
4918,
11272,
3639,
309,
261,
328,
422,
446,
13,
3639,
288,
5411,
328,
273,
394,
2407,
5621,
5411,
707,
5911,
863,
18,
458,
12,
2039,
461,
16,
328,
1769,
3639,
289,
10792,
328,
18,
1289,
12,
2039,
1769,
3639,
327,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
12,
1305,
707,
13,
565,
288,
3639,
514,
4918,
273,
707,
18,
17994,
5621,
3639,
987,
328,
273,
261,
682,
13,
707,
5911,
863,
18,
588,
12,
4918,
11272,
3639,
309,
261,
328,
422,
446,
13,
3639,
288,
5411,
328,
273,
394,
2407,
5621,
5411,
707,
5911,
863,
18,
458,
12,
2039,
461,
16,
328,
1769,
3639,
289,
10792,
328,
18,
1289,
12,
2039,
1769,
3639,
327,
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
] |
String[] errExpected = new String[]{"cvc-attribute"};
|
String[] errExpected = new String[]{ XmlErrorCodes.DATATYPE_VALID$UNION};
|
public void testUnionType() throws Throwable { UnionEltDocument doc = UnionEltDocument.Factory.newInstance(); assertEquals(null, doc.getUnionElt()); doc.setUnionElt("small"); try { assertTrue(doc.validate(validateOptions)); } catch (Throwable t) { showErrors(); throw t; } doc.setUnionElt(new Integer(2)); try { assertTrue(doc.validate(validateOptions)); } catch (Throwable t) { showErrors(); throw t; } doc.setUnionElt(new Integer(-2)); try { assertTrue(doc.validate(validateOptions)); } catch (Throwable t) { showErrors(); throw t; } doc.setUnionElt(new Integer(5)); assertTrue(!doc.validate(validateOptions)); showErrors(); String[] errExpected = new String[]{"cvc-attribute"}; assertTrue(compareErrorCodes(errExpected)); }
|
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/a3544b33c277dec96499dfa1bafa85ae3e81cb9d/UnionType.java/clean/v2/test/src/scomp/contentType/simple/detailed/UnionType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
14325,
559,
1435,
1216,
4206,
288,
3639,
9589,
15899,
2519,
997,
273,
9589,
15899,
2519,
18,
1733,
18,
2704,
1442,
5621,
3639,
1815,
8867,
12,
2011,
16,
997,
18,
588,
14325,
15899,
10663,
3639,
997,
18,
542,
14325,
15899,
2932,
12019,
8863,
3639,
775,
288,
5411,
1815,
5510,
12,
2434,
18,
5662,
12,
5662,
1320,
10019,
3639,
289,
3639,
1044,
261,
15155,
268,
13,
288,
5411,
2405,
4229,
5621,
5411,
604,
268,
31,
3639,
289,
3639,
997,
18,
542,
14325,
15899,
12,
2704,
2144,
12,
22,
10019,
3639,
775,
288,
5411,
1815,
5510,
12,
2434,
18,
5662,
12,
5662,
1320,
10019,
3639,
289,
3639,
1044,
261,
15155,
268,
13,
288,
5411,
2405,
4229,
5621,
5411,
604,
268,
31,
3639,
289,
3639,
997,
18,
542,
14325,
15899,
12,
2704,
2144,
19236,
22,
10019,
3639,
775,
288,
5411,
1815,
5510,
12,
2434,
18,
5662,
12,
5662,
1320,
10019,
3639,
289,
3639,
1044,
261,
15155,
268,
13,
288,
5411,
2405,
4229,
5621,
5411,
604,
268,
31,
3639,
289,
3639,
997,
18,
542,
14325,
15899,
12,
2704,
2144,
12,
25,
10019,
3639,
1815,
5510,
12,
5,
2434,
18,
5662,
12,
5662,
1320,
10019,
3639,
2405,
4229,
5621,
3639,
514,
8526,
393,
6861,
273,
394,
514,
63,
7073,
5714,
668,
6295,
18,
11102,
789,
1738,
67,
5063,
8,
2124,
1146,
20451,
10792,
1815,
5510,
12,
9877,
668,
6295,
12,
370,
6861,
10019,
565,
289,
2,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14325,
559,
1435,
1216,
4206,
288,
3639,
9589,
15899,
2519,
997,
273,
9589,
15899,
2519,
18,
1733,
18,
2704,
1442,
5621,
3639,
1815,
8867,
12,
2011,
16,
997,
18,
588,
14325,
15899,
10663,
3639,
997,
18,
542,
14325,
15899,
2932,
12019,
8863,
3639,
775,
288,
5411,
1815,
5510,
12,
2434,
18,
5662,
12,
5662,
1320,
10019,
3639,
289,
3639,
1044,
261,
15155,
268,
13,
288,
5411,
2405,
4229,
5621,
5411,
604,
268,
31,
3639,
289,
3639,
997,
18,
542,
14325,
15899,
12,
2704,
2144,
12,
22,
10019,
3639,
775,
288,
5411,
1815,
5510,
12,
2434,
18,
5662,
12,
5662,
1320,
10019,
3639,
289,
3639,
1044,
261,
15155,
268,
13,
288,
5411,
2405,
4229,
5621,
5411,
2
] |
DatanodeInfo[] chooseTargets(int desiredReplicates, TreeSet forbiddenNodes) {
|
DatanodeInfo[] chooseTargets(int desiredReplicates, TreeSet forbiddenNodes, UTF8 clientMachine) {
|
DatanodeInfo[] chooseTargets(int desiredReplicates, TreeSet forbiddenNodes) { TreeSet alreadyChosen = new TreeSet(); Vector targets = new Vector(); for (int i = 0; i < desiredReplicates; i++) { DatanodeInfo target = chooseTarget(forbiddenNodes, alreadyChosen); if (target != null) { targets.add(target); alreadyChosen.add(target); } else { break; // calling chooseTarget again won't help } } return (DatanodeInfo[]) targets.toArray(new DatanodeInfo[targets.size()]); }
|
50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/9068db10336ebb26576213d8fc57590c6deea873/FSNamesystem.java/buggy/src/java/org/apache/hadoop/dfs/FSNamesystem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
26739,
966,
8526,
9876,
9432,
12,
474,
6049,
426,
1780,
815,
16,
19461,
17987,
3205,
16,
6380,
28,
1004,
6981,
13,
288,
3639,
19461,
1818,
782,
8918,
273,
394,
19461,
5621,
3639,
5589,
5774,
273,
394,
5589,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6049,
426,
1780,
815,
31,
277,
27245,
288,
5411,
26739,
966,
1018,
273,
9876,
2326,
12,
1884,
9215,
3205,
16,
1818,
782,
8918,
1769,
5411,
309,
261,
3299,
480,
446,
13,
288,
7734,
5774,
18,
1289,
12,
3299,
1769,
7734,
1818,
782,
8918,
18,
1289,
12,
3299,
1769,
5411,
289,
469,
288,
7734,
898,
31,
368,
4440,
9876,
2326,
3382,
8462,
1404,
2809,
5411,
289,
3639,
289,
3639,
327,
261,
5139,
14085,
966,
63,
5717,
5774,
18,
31447,
12,
2704,
26739,
966,
63,
11358,
18,
1467,
1435,
19226,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
26739,
966,
8526,
9876,
9432,
12,
474,
6049,
426,
1780,
815,
16,
19461,
17987,
3205,
16,
6380,
28,
1004,
6981,
13,
288,
3639,
19461,
1818,
782,
8918,
273,
394,
19461,
5621,
3639,
5589,
5774,
273,
394,
5589,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6049,
426,
1780,
815,
31,
277,
27245,
288,
5411,
26739,
966,
1018,
273,
9876,
2326,
12,
1884,
9215,
3205,
16,
1818,
782,
8918,
1769,
5411,
309,
261,
3299,
480,
446,
13,
288,
7734,
5774,
18,
1289,
12,
3299,
1769,
7734,
1818,
782,
8918,
18,
1289,
12,
3299,
1769,
5411,
289,
469,
288,
7734,
898,
31,
368,
4440,
9876,
2326,
3382,
8462,
1404,
2809,
5411,
289,
3639,
289,
3639,
327,
261,
2
] |
newDescription = IDEWorkbenchPlugin.getPluginWorkspace() .loadProjectDescription(path);
|
if (isDefaultLocation(path)) { projectName = path.segment(path.segmentCount()-2); newDescription = IDEWorkbenchPlugin.getPluginWorkspace().newProjectDescription(projectName); } else { newDescription = IDEWorkbenchPlugin.getPluginWorkspace() .loadProjectDescription(path); }
|
private void setProjectName() { IProjectDescription newDescription = null; try { if (projectArchiveFile != null) { InputStream stream = provider .getContents(projectArchiveFile); if (stream != null){ newDescription = IDEWorkbenchPlugin.getPluginWorkspace() .loadProjectDescription(stream); stream.close(); } } else { IPath path = new Path(projectSystemFile.getPath()); newDescription = IDEWorkbenchPlugin.getPluginWorkspace() .loadProjectDescription(path); } } catch (CoreException e) { // no good couldn't get the name } catch (IOException e) { // no good couldn't get the name } if (newDescription == null) { this.description = null; projectName = ""; //$NON-NLS-1$ } else { this.description = newDescription; projectName = this.description.getName(); } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97e4630ace175097291bf5a8da7d3fb12e25957f/WizardProjectsImportPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
25323,
461,
1435,
288,
1082,
202,
45,
4109,
3291,
394,
3291,
273,
446,
31,
1082,
202,
698,
288,
9506,
202,
430,
261,
4406,
7465,
812,
480,
446,
13,
288,
6862,
202,
4348,
1407,
273,
2893,
6862,
1082,
202,
18,
588,
6323,
12,
4406,
7465,
812,
1769,
6862,
202,
430,
261,
3256,
480,
446,
15329,
25083,
202,
2704,
3291,
273,
1599,
41,
2421,
22144,
3773,
18,
588,
3773,
8241,
1435,
6862,
9506,
202,
18,
945,
4109,
3291,
12,
3256,
1769,
25083,
202,
3256,
18,
4412,
5621,
6862,
202,
97,
6862,
6862,
202,
97,
469,
288,
6862,
202,
45,
743,
589,
273,
394,
2666,
12,
4406,
3163,
812,
18,
588,
743,
10663,
6862,
202,
2704,
3291,
273,
1599,
41,
2421,
22144,
3773,
18,
588,
3773,
8241,
1435,
6862,
1082,
202,
18,
945,
4109,
3291,
12,
803,
1769,
9506,
202,
97,
1082,
202,
97,
1044,
261,
25341,
425,
13,
288,
9506,
202,
759,
1158,
7494,
17991,
1404,
336,
326,
508,
1082,
202,
97,
1044,
261,
14106,
425,
13,
288,
9506,
202,
759,
1158,
7494,
17991,
1404,
336,
326,
508,
1082,
202,
97,
1082,
202,
430,
261,
2704,
3291,
422,
446,
13,
288,
9506,
202,
2211,
18,
3384,
273,
446,
31,
9506,
202,
4406,
461,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
469,
288,
9506,
202,
2211,
18,
3384,
273,
394,
3291,
31,
9506,
202,
4406,
461,
273,
333,
18,
3384,
18,
17994,
5621,
1082,
202,
97,
202,
202,
97,
2,
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,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
25323,
461,
1435,
288,
1082,
202,
45,
4109,
3291,
394,
3291,
273,
446,
31,
1082,
202,
698,
288,
9506,
202,
430,
261,
4406,
7465,
812,
480,
446,
13,
288,
6862,
202,
4348,
1407,
273,
2893,
6862,
1082,
202,
18,
588,
6323,
12,
4406,
7465,
812,
1769,
6862,
202,
430,
261,
3256,
480,
446,
15329,
25083,
202,
2704,
3291,
273,
1599,
41,
2421,
22144,
3773,
18,
588,
3773,
8241,
1435,
6862,
9506,
202,
18,
945,
4109,
3291,
12,
3256,
1769,
25083,
202,
3256,
18,
4412,
5621,
6862,
202,
97,
6862,
6862,
202,
97,
469,
288,
6862,
202,
45,
743,
589,
273,
394,
2666,
12,
4406,
3163,
812,
18,
588,
743,
10663,
6862,
202,
2704,
3291,
273,
2
] |
throw new MessageInvalidException(ProtocolErrorMessage.INTERNAL_ERROR, "Internal error: could not allocate temp bucket: "+e.toString(), identifier);
|
throw new MessageInvalidException(ProtocolErrorMessage.INTERNAL_ERROR, "Internal error: could not allocate temp bucket: "+e.toString(), identifier, global);
|
public DirectDirPutFile(SimpleFieldSet subset, String identifier, BucketFactory bf) throws MessageInvalidException { super(subset, identifier); String s = subset.get("DataLength"); if(s == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "UploadFrom=direct requires a DataLength for "+name, identifier); try { length = Long.parseLong(s); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Could not parse DataLength: "+e.toString(), identifier); } try { data = bf.makeBucket(length); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.INTERNAL_ERROR, "Internal error: could not allocate temp bucket: "+e.toString(), identifier); } }
|
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/DirectDirPutFile.java/clean/src/freenet/node/fcp/DirectDirPutFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9908,
1621,
6426,
812,
12,
5784,
974,
694,
7931,
16,
514,
2756,
16,
7408,
1733,
16222,
13,
1216,
2350,
1941,
503,
288,
202,
202,
9565,
12,
15657,
16,
2756,
1769,
202,
202,
780,
272,
273,
7931,
18,
588,
2932,
751,
1782,
8863,
202,
202,
430,
12,
87,
422,
446,
13,
1082,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
19466,
67,
6776,
16,
315,
4777,
1265,
33,
7205,
4991,
279,
1910,
1782,
364,
13773,
529,
16,
2756,
1769,
202,
202,
698,
288,
1082,
202,
2469,
273,
3407,
18,
2670,
3708,
12,
87,
1769,
202,
202,
97,
1044,
261,
1854,
9291,
425,
13,
288,
1082,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
3589,
67,
2778,
23708,
67,
9931,
16,
315,
4445,
486,
1109,
1910,
1782,
30,
13773,
73,
18,
10492,
9334,
2756,
1769,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
892,
273,
16222,
18,
6540,
4103,
12,
2469,
1769,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
1082,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
14005,
67,
3589,
16,
315,
3061,
555,
30,
3377,
486,
10101,
1906,
2783,
30,
13773,
73,
18,
10492,
9334,
2756,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9908,
1621,
6426,
812,
12,
5784,
974,
694,
7931,
16,
514,
2756,
16,
7408,
1733,
16222,
13,
1216,
2350,
1941,
503,
288,
202,
202,
9565,
12,
15657,
16,
2756,
1769,
202,
202,
780,
272,
273,
7931,
18,
588,
2932,
751,
1782,
8863,
202,
202,
430,
12,
87,
422,
446,
13,
1082,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
19466,
67,
6776,
16,
315,
4777,
1265,
33,
7205,
4991,
279,
1910,
1782,
364,
13773,
529,
16,
2756,
1769,
202,
202,
698,
288,
1082,
202,
2469,
273,
3407,
18,
2670,
3708,
12,
87,
1769,
202,
202,
97,
1044,
261,
1854,
9291,
425,
13,
288,
1082,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
2
] |
private int calculateRemaining() { //the number of times this filter fires in the initialization //schedule int initFire = initMult; //if this is not a twostage, fake it by adding to initFire, //so we always think the preWork is called //if (!(filter instanceof SIRTwoStageFilter)) if(!filter.isTwoStage()) initFire++; //see my thesis for an explanation of this calculation if (initFire - 1 > 0) { bottomPeek = Math.max(0, peek - (prePeek - prePop)); } else bottomPeek = 0; //don't call initItemsReceived() here it //may cause an infinite loop because it creates filter infos int initItemsRec = 0; if (traceNode.getPrevious().isFilterTrace()) { FilterContent filterC = ((FilterTraceNode)traceNode.getPrevious()).getFilter(); initItemsRec = filterC.getPushInt() * filterC.getInitMult(); if (filterC.isTwoStage()) { initItemsRec -= filterC.getPushInt(); initItemsRec += filterC.getInitPush(); } } else { //previous is an input trace InputTraceNode in = (InputTraceNode)traceNode.getPrevious(); //add all the upstream filters items that reach this filter for (int i = 0; i < in.getWeights().length; i++) { Edge incoming = in.getSources()[i]; FilterContent filterC = ((FilterTraceNode)incoming.getSrc().getPrevious()).getFilter(); //calculate the init items sent by the upstream filter int upstreamInitItems = 0; upstreamInitItems = filterC.getPushInt() * filterC.getInitMult(); if (filterC.isTwoStage()) { upstreamInitItems -= filterC.getPushInt(); upstreamInitItems += filterC.getInitPush(); } initItemsRec = (int)((double)upstreamInitItems * incoming.getSrc().ratio(incoming)); } } remaining = initItemsRec - (prePeek + bottomPeek + Math.max((initFire - 2), 0) * pop); return remaining; }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/06d527d00e9dadd89c6688c4b11ba6083f76c9bb/FilterInfo.java/clean/streams/src/at/dms/kjc/spacetime/FilterInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
474,
11162,
11429,
1435,
95,
202,
759,
15991,
1226,
4401,
381,
395,
76,
291,
2188,
74,
2814,
267,
5787,
6769,
1588,
202,
759,
10676,
202,
474,
2738,
9723,
33,
2738,
5049,
31,
202,
759,
430,
2211,
291,
902,
270,
91,
669,
410,
16,
28395,
305,
1637,
3439,
869,
2738,
9723,
16,
202,
759,
87,
543,
73,
287,
1888,
20244,
754,
451,
881,
266,
2421,
291,
11777,
202,
759,
430,
12,
5,
12,
2188,
1336,
792,
2320,
54,
11710,
8755,
1586,
3719,
202,
430,
12,
5,
2188,
18,
291,
11710,
8755,
10756,
202,
2738,
9723,
9904,
31,
202,
202,
759,
307,
351,
93,
20432,
1884,
304,
338,
15854,
792,
2211,
29916,
202,
430,
12,
2738,
9723,
17,
21,
34,
20,
15329,
202,
9176,
30950,
33,
10477,
18,
1896,
12,
20,
16,
9506,
202,
347,
3839,
17,
12,
1484,
30950,
17,
1484,
7049,
10019,
202,
97,
202,
12107,
202,
9176,
30950,
33,
20,
31,
202,
202,
759,
19752,
1404,
1991,
2738,
3126,
8872,
1435,
14852,
305,
202,
759,
24877,
2700,
304,
267,
926,
305,
24214,
556,
26274,
305,
19787,
2188,
18227,
202,
474,
2738,
3126,
5650,
33,
20,
31,
202,
430,
12,
5129,
907,
18,
588,
8351,
7675,
291,
1586,
3448,
10756,
95,
202,
1586,
1350,
2188,
39,
33,
12443,
1586,
3448,
907,
13,
5129,
907,
18,
588,
8351,
1435,
2934,
588,
1586,
5621,
202,
2738,
3126,
5650,
33,
2188,
39,
18,
588,
7621,
1702,
1435,
14,
2188,
39,
18,
588,
2570,
5049,
5621,
202,
430,
12,
2188,
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,
474,
11162,
11429,
1435,
95,
202,
759,
15991,
1226,
4401,
381,
395,
76,
291,
2188,
74,
2814,
267,
5787,
6769,
1588,
202,
759,
10676,
202,
474,
2738,
9723,
33,
2738,
5049,
31,
202,
759,
430,
2211,
291,
902,
270,
91,
669,
410,
16,
28395,
305,
1637,
3439,
869,
2738,
9723,
16,
202,
759,
87,
543,
73,
287,
1888,
20244,
754,
451,
881,
266,
2421,
291,
11777,
202,
759,
430,
12,
5,
12,
2188,
1336,
792,
2320,
54,
11710,
8755,
1586,
3719,
202,
430,
12,
5,
2188,
18,
291,
11710,
8755,
10756,
202,
2738,
9723,
9904,
31,
202,
202,
759,
307,
351,
93,
20432,
1884,
304,
338,
15854,
792,
2211,
29916,
202,
430,
12,
2738,
9723,
17,
21,
34,
2
] |
||
for ( int row = 0; row < height; ++row ) { int rowOffset = row * width; for ( int col = 0; col < width; ++col ) {
|
for (int row = 0; row < height; ++row) { for (int col = 0; col < width; ++col) {
|
protected void encodeDone() throws IOException { // MD: added quantizer for max color limitation int[] palette = Quantize.quantizeImage(rgbPixels, 255); int transparentIndex = -1; int transparentRgb = -1; // Put all the pixels into a hash table. colorHash = new IntHashtable(); int index = 0; for ( int row = 0; row < height; ++row ) { int rowOffset = row * width; for ( int col = 0; col < width; ++col ) { // MD: and convert palette back to RGB rgbPixels[row][col] = palette[rgbPixels[row][col]]; int rgb = rgbPixels[row][col]; boolean isTransparent = ( ( rgb >>> 24 ) < 0x80 ); if ( isTransparent ) { if ( transparentIndex < 0 ) { // First transparent color; remember it. transparentIndex = index; transparentRgb = rgb; } else if ( rgb != transparentRgb ) { // A second transparent color; replace it with // the first one. rgbPixels[row][col] = rgb = transparentRgb; } } GifEncoderHashitem item = (GifEncoderHashitem) colorHash.get( rgb ); if ( item == null ) { if ( index >= 256 ) { throw new IOException( "too many colors for a GIF: "+index+" >= 256."); } item = new GifEncoderHashitem( rgb, 1, index, isTransparent ); ++index; colorHash.put( rgb, item ); } else { ++item.count; } } } // Figure out how many bits to use. int logColors; if ( index <= 2 ) logColors = 1; else if ( index <= 4 ) logColors = 2; else if ( index <= 16 ) logColors = 4; else logColors = 8; // Turn colors into colormap entries. int mapSize = 1 << logColors; byte[] reds = new byte[mapSize]; byte[] grns = new byte[mapSize]; byte[] blus = new byte[mapSize]; for ( Enumeration e = colorHash.elements(); e.hasMoreElements(); ) { GifEncoderHashitem item = (GifEncoderHashitem) e.nextElement(); reds[item.index] = (byte) ( ( item.rgb >> 16 ) & 0xff ); grns[item.index] = (byte) ( ( item.rgb >> 8 ) & 0xff ); blus[item.index] = (byte) ( item.rgb & 0xff ); } GIFEncode(width, height, interlace, (byte) 0, transparentIndex, logColors, reds, grns, blus ); }
|
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/f1a2e8bd347e294e5391728379b76d4500a7093d/GIFEncoder.java/clean/freehep-graphicsio/src/main/java/org/freehep/graphicsio/gif/GIFEncoder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2017,
7387,
1435,
1216,
1860,
288,
3639,
368,
10852,
30,
3096,
10251,
1824,
364,
943,
2036,
17732,
3639,
509,
8526,
12127,
273,
4783,
970,
554,
18,
17753,
554,
2040,
12,
10948,
18079,
16,
4561,
1769,
9079,
509,
17270,
1016,
273,
300,
21,
31,
3639,
509,
17270,
22333,
273,
300,
21,
31,
3639,
368,
4399,
777,
326,
8948,
1368,
279,
1651,
1014,
18,
3639,
2036,
2310,
273,
394,
3094,
5582,
14544,
5621,
3639,
509,
770,
273,
374,
31,
3639,
364,
261,
509,
1027,
273,
374,
31,
1027,
411,
2072,
31,
965,
492,
262,
288,
5411,
509,
1027,
2335,
273,
1027,
380,
1835,
31,
5411,
364,
261,
509,
645,
273,
374,
31,
645,
411,
1835,
31,
965,
1293,
262,
288,
7734,
368,
10852,
30,
471,
1765,
12127,
1473,
358,
11510,
7734,
6917,
18079,
63,
492,
6362,
1293,
65,
273,
12127,
63,
10948,
18079,
63,
492,
6362,
1293,
13563,
31,
7734,
509,
6917,
273,
6917,
18079,
63,
492,
6362,
1293,
15533,
7734,
1250,
353,
1429,
2938,
273,
261,
261,
6917,
4080,
4248,
262,
411,
374,
92,
3672,
11272,
7734,
309,
261,
353,
1429,
2938,
262,
288,
10792,
309,
261,
17270,
1016,
411,
374,
262,
288,
13491,
368,
5783,
17270,
2036,
31,
11586,
518,
18,
13491,
17270,
1016,
273,
770,
31,
13491,
17270,
22333,
273,
6917,
31,
10792,
289,
469,
309,
261,
6917,
480,
17270,
22333,
262,
288,
13491,
368,
432,
2205,
17270,
2036,
31,
1453,
518,
598,
13491,
368,
326,
1122,
1245,
18,
13491,
6917,
18079,
63,
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,
4750,
918,
2017,
7387,
1435,
1216,
1860,
288,
3639,
368,
10852,
30,
3096,
10251,
1824,
364,
943,
2036,
17732,
3639,
509,
8526,
12127,
273,
4783,
970,
554,
18,
17753,
554,
2040,
12,
10948,
18079,
16,
4561,
1769,
9079,
509,
17270,
1016,
273,
300,
21,
31,
3639,
509,
17270,
22333,
273,
300,
21,
31,
3639,
368,
4399,
777,
326,
8948,
1368,
279,
1651,
1014,
18,
3639,
2036,
2310,
273,
394,
3094,
5582,
14544,
5621,
3639,
509,
770,
273,
374,
31,
3639,
364,
261,
509,
1027,
273,
374,
31,
1027,
411,
2072,
31,
965,
492,
262,
288,
5411,
509,
1027,
2335,
273,
1027,
380,
1835,
31,
5411,
364,
261,
509,
645,
273,
374,
31,
645,
411,
1835,
31,
965,
1293,
2
] |
+ lSep + "Remember that for JAR files to be visible to ant tasks implemented" +lSep + "in ANT_HOME/lib, the files must be in the same directory or on the" +lSep + "classpath"+ lSep + lSep + "Please do not file bug reports on this problem, nor email the" +lSep + "ant mailing lists, until all of these causes have been explored," +lSep
|
+ lSep + "Remember that for JAR files to be visible to Ant tasks implemented" +lSep + "in ANT_HOME/lib, the files must be in the same directory or on the" +lSep + "classpath"+ lSep + lSep + "Please neither file bug reports on this problem, nor email the" +lSep + "Ant mailing lists, until all of these causes have been explored," +lSep
|
protected BuildException getNotFoundException(String what, String elementName) { String lSep = System.getProperty("line.separator"); String msg = "Could not create " + what + " of type: " + elementName + "." + lSep+ lSep + "Ant could not find the task or a class this " + "task relies upon." + lSep +lSep + "This is common and has a number of causes; the usual " + lSep + "solutions are to read the manual pages then download and" + lSep + "install needed JAR files, or fix the build file: "+ lSep + " - You have misspelt '" + elementName + "'." + lSep + " Fix: check your spelling." +lSep + " - The task needs an external JAR file to execute" +lSep + " and this is not found at the right place in the classpath." +lSep + " Fix: check the documentation for dependencies." +lSep + " - The task is not an Ant core or optional task " +lSep + " and needs to be declared using <taskdef>." +lSep + " Fix: declare the task." +lSep + " - The task is an Ant optional task and optional.jar is absent"+lSep + " Fix: look for optional.jar in ANT_HOME/lib, download if needed" +lSep + " - The task was not built into optional.jar as dependent" +lSep + " libraries were not found at build time." + lSep + " Fix: look in the JAR to verify, then rebuild with the needed" +lSep + " libraries, or download a release version from apache.org" +lSep + " - The build file was written for a later version of Ant" +lSep + " Fix: upgrade to at least the latest release version of Ant" +lSep + lSep + "Remember that for JAR files to be visible to ant tasks implemented" +lSep + "in ANT_HOME/lib, the files must be in the same directory or on the" +lSep + "classpath"+ lSep + lSep + "Please do not file bug reports on this problem, nor email the" +lSep + "ant mailing lists, until all of these causes have been explored," +lSep + "as this is not an Ant bug."; return new BuildException(msg, location); }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/4d18df6a9a71f77fda97e230e301ac2398c8eb6e/UnknownElement.java/buggy/src/main/org/apache/tools/ant/UnknownElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
18463,
336,
3990,
12,
780,
4121,
16,
4766,
5375,
514,
14453,
13,
288,
3639,
514,
328,
5097,
273,
2332,
18,
588,
1396,
2932,
1369,
18,
11287,
8863,
3639,
514,
1234,
273,
315,
4445,
486,
752,
315,
397,
4121,
397,
315,
434,
618,
30,
315,
397,
14453,
5411,
397,
4585,
397,
328,
5097,
15,
328,
5097,
5411,
397,
315,
14925,
3377,
486,
1104,
326,
1562,
578,
279,
667,
333,
315,
5411,
397,
315,
4146,
14719,
281,
12318,
1199,
397,
328,
5097,
397,
80,
5097,
5411,
397,
315,
2503,
353,
2975,
471,
711,
279,
1300,
434,
14119,
31,
326,
25669,
315,
397,
328,
5097,
5411,
397,
315,
18281,
6170,
854,
358,
855,
326,
11297,
4689,
1508,
4224,
471,
6,
397,
328,
5097,
5411,
397,
315,
5425,
3577,
24728,
1390,
16,
578,
2917,
326,
1361,
585,
30,
13773,
328,
5097,
5411,
397,
315,
300,
4554,
1240,
12543,
84,
20224,
2119,
397,
14453,
397,
30156,
397,
328,
5097,
5411,
397,
315,
282,
12139,
30,
866,
3433,
22377,
310,
1199,
397,
80,
5097,
5411,
397,
315,
300,
1021,
1562,
4260,
392,
3903,
24728,
585,
358,
1836,
6,
397,
80,
5097,
5411,
397,
315,
282,
471,
333,
353,
486,
1392,
622,
326,
2145,
3166,
316,
326,
10006,
1199,
397,
80,
5097,
5411,
397,
315,
282,
12139,
30,
866,
326,
7323,
364,
5030,
1199,
397,
80,
5097,
5411,
397,
315,
300,
1021,
1562,
353,
486,
392,
18830,
2922,
578,
3129,
1562,
315,
397,
80,
5097,
5411,
397,
315,
282,
471,
4260,
358,
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,
4750,
18463,
336,
3990,
12,
780,
4121,
16,
4766,
5375,
514,
14453,
13,
288,
3639,
514,
328,
5097,
273,
2332,
18,
588,
1396,
2932,
1369,
18,
11287,
8863,
3639,
514,
1234,
273,
315,
4445,
486,
752,
315,
397,
4121,
397,
315,
434,
618,
30,
315,
397,
14453,
5411,
397,
4585,
397,
328,
5097,
15,
328,
5097,
5411,
397,
315,
14925,
3377,
486,
1104,
326,
1562,
578,
279,
667,
333,
315,
5411,
397,
315,
4146,
14719,
281,
12318,
1199,
397,
328,
5097,
397,
80,
5097,
5411,
397,
315,
2503,
353,
2975,
471,
711,
279,
1300,
434,
14119,
31,
326,
25669,
315,
397,
328,
5097,
5411,
397,
315,
18281,
6170,
854,
358,
855,
326,
11297,
4689,
1508,
4224,
471,
6,
2
] |
Class javaClass = Class.forName(className);
|
Class javaClass = getJavaClass();
|
private Method getMethod() { try { Class javaClass = Class.forName(className); Class[] args = new Class[2 + arity]; args[0] = Ruby.class; args[1] = IRubyObject.class; for (int i = 2; i < args.length; i++) { args[i] = IRubyObject.class; } return javaClass.getMethod(methodName, args); } catch (ClassNotFoundException e) { Asserts.notReached("class not found: " + className); return null; } catch (NoSuchMethodException e) { Asserts.notReached("method not found: " + methodName); return null; } }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/af1920a5c29079063127d9968487d5e5fbf75031/CompiledReflectionCallback.java/buggy/src/org/jruby/runtime/CompiledReflectionCallback.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2985,
6272,
1435,
288,
3639,
775,
288,
5411,
1659,
2252,
797,
273,
18911,
797,
5621,
5411,
1659,
8526,
833,
273,
394,
1659,
63,
22,
397,
19353,
15533,
5411,
833,
63,
20,
65,
273,
19817,
18,
1106,
31,
5411,
833,
63,
21,
65,
273,
15908,
10340,
921,
18,
1106,
31,
5411,
364,
261,
474,
277,
273,
576,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
7734,
833,
63,
77,
65,
273,
15908,
10340,
921,
18,
1106,
31,
5411,
289,
5411,
327,
2252,
797,
18,
588,
1305,
12,
2039,
461,
16,
833,
1769,
3639,
289,
1044,
261,
797,
3990,
425,
13,
288,
5411,
5452,
87,
18,
902,
23646,
2932,
1106,
486,
1392,
30,
315,
397,
2658,
1769,
5411,
327,
446,
31,
3639,
289,
1044,
261,
28341,
14513,
425,
13,
288,
5411,
5452,
87,
18,
902,
23646,
2932,
2039,
486,
1392,
30,
315,
397,
4918,
1769,
5411,
327,
446,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2985,
6272,
1435,
288,
3639,
775,
288,
5411,
1659,
2252,
797,
273,
18911,
797,
5621,
5411,
1659,
8526,
833,
273,
394,
1659,
63,
22,
397,
19353,
15533,
5411,
833,
63,
20,
65,
273,
19817,
18,
1106,
31,
5411,
833,
63,
21,
65,
273,
15908,
10340,
921,
18,
1106,
31,
5411,
364,
261,
474,
277,
273,
576,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
7734,
833,
63,
77,
65,
273,
15908,
10340,
921,
18,
1106,
31,
5411,
289,
5411,
327,
2252,
797,
18,
588,
1305,
12,
2039,
461,
16,
833,
1769,
3639,
289,
1044,
261,
797,
3990,
425,
13,
288,
5411,
5452,
87,
18,
902,
23646,
2932,
1106,
486,
1392,
30,
315,
397,
2658,
1769,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.