rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
WorkingMemoryImpl workingMemory, PropagationContext context) { workingMemory.clearNodeMemory( this );
|
WorkingMemoryImpl[] workingMemories) { for ( int i = 0, length = workingMemories.length; i < length; i++) { WorkingMemoryImpl workingMemory = workingMemories[i]; TerminalNodeMemory memory = (TerminalNodeMemory) workingMemory.getNodeMemory( this ); ActivationQueue queue = memory.getLifo(); for ( AgendaItem item = (AgendaItem) queue.getFirst(); item != null; item = (AgendaItem) item.getNext() ) { if ( item.getRule() == this.rule ) { if ( item.isActivated() ) { item.remove(); workingMemory.getAgendaEventSupport().fireActivationCancelled( item ); } PropagationContext propagationContext = new PropagationContextImpl( workingMemory.getNextPropagationIdCounter(), PropagationContext.RULE_ADDITION, null, null ); workingMemory.removeLogicalDependencies( item, propagationContext, this.rule ); } } }
|
public void remove(BaseNode node, WorkingMemoryImpl workingMemory, PropagationContext context) { workingMemory.clearNodeMemory( this ); tupleSource.remove( this, workingMemory, context ); }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/aec3bbbbddd6505ff1be9f60ec9462c0ca17e799/TerminalNode.java/clean/drools-core/src/main/java/org/drools/reteoo/TerminalNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
12,
2171,
907,
756,
16,
15604,
22732,
6031,
2828,
5960,
6031,
16,
15604,
1186,
9095,
367,
1042,
819,
13,
288,
3639,
5960,
6031,
18,
8507,
907,
6031,
12,
333,
11272,
3639,
3193,
1830,
18,
4479,
12,
333,
16,
18701,
5960,
6031,
16,
18701,
819,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
1206,
12,
2171,
907,
756,
16,
15604,
22732,
6031,
2828,
5960,
6031,
16,
15604,
1186,
9095,
367,
1042,
819,
13,
288,
3639,
5960,
6031,
18,
8507,
907,
6031,
12,
333,
11272,
3639,
3193,
1830,
18,
4479,
12,
333,
16,
18701,
5960,
6031,
16,
18701,
819,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
public static long getLongProperty(Map props, Object key, long defaultValue) { if (props == null) { return defaultValue; } long ret = defaultValue; Object temp = props.get(key); if (temp != null) { try { ret = Long.parseLong(temp.toString()); } catch (NumberFormatException e) { ret = defaultValue; } } return ret; }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/5c7badd7924d8f30223c81136f63117d913be921/PropertiesHelper.java/clean/src/java/org/mule/util/PropertiesHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1525,
11105,
1396,
12,
863,
3458,
16,
1033,
498,
16,
1525,
4593,
13,
288,
3639,
309,
261,
9693,
422,
446,
13,
288,
5411,
327,
4593,
31,
3639,
289,
3639,
1525,
325,
273,
4593,
31,
3639,
1033,
1906,
273,
3458,
18,
588,
12,
856,
1769,
3639,
309,
261,
5814,
480,
446,
13,
288,
5411,
775,
288,
7734,
325,
273,
3407,
18,
2670,
3708,
12,
5814,
18,
10492,
10663,
5411,
289,
1044,
261,
1854,
9291,
425,
13,
288,
7734,
325,
273,
4593,
31,
5411,
289,
3639,
289,
3639,
327,
325,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1525,
11105,
1396,
12,
863,
3458,
16,
1033,
498,
16,
1525,
4593,
13,
288,
3639,
309,
261,
9693,
422,
446,
13,
288,
5411,
327,
4593,
31,
3639,
289,
3639,
1525,
325,
273,
4593,
31,
3639,
1033,
1906,
273,
3458,
18,
588,
12,
856,
1769,
3639,
309,
261,
5814,
480,
446,
13,
288,
5411,
775,
288,
7734,
325,
273,
3407,
18,
2670,
3708,
12,
5814,
18,
10492,
10663,
5411,
289,
1044,
261,
1854,
9291,
425,
13,
288,
7734,
325,
273,
4593,
31,
5411,
289,
3639,
289,
3639,
327,
325,
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
] |
return referencesSym(sym, sym.parents(), new HashSet());
|
return constructorsNeededBy(sym).contains(sym);
|
private boolean isCyclic(Symbol sym) { return referencesSym(sym, sym.parents(), new HashSet()); }
|
32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/d1a3ad162d0e2e0e1973b5f1f6814c724936ec1c/TypesAsValuesPhase.java/buggy/sources/scalac/transformer/TypesAsValuesPhase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1250,
353,
17992,
18964,
12,
5335,
5382,
13,
288,
5411,
327,
19874,
11449,
858,
12,
8117,
2934,
12298,
12,
8117,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1250,
353,
17992,
18964,
12,
5335,
5382,
13,
288,
5411,
327,
19874,
11449,
858,
12,
8117,
2934,
12298,
12,
8117,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
result.append("<td width=\"75\" class=\"fontnormalbold\">").append(getAnchor(action, resource.getString("Next"),"searchNext", currentFlowKey)).append("</td>");
|
result.append("<td width=\"75\" class=\"fontnormalbold\">").append(getAnchor(action, resource.getString("Next"),"searchNext", currentFlowKey,current+1)).append("</td>");
|
protected static String getPages(int current, int pageSize, int size, String action, String currentFlowKey) { StringBuilder result = new StringBuilder(); ResourceBundle resource = ResourceBundle.getBundle(TableTagConstants.PROPERTIESFILE); //to check the onClick status of the prev and next whether that is disable or not boolean prev = (current > 1) ? true : false; boolean next = ((current * pageSize) >= size) ? false : true; // Used to set the number of the start page int pageStart = ((current - 1) * pageSize) + 1; // Used to set the number of the end page int pageEnd = (current * pageSize); if (pageEnd > size) { pageEnd = size; } result.append("<tr>"); /** * to check whether previous is clicked or next is clicked * and call the respective page according to the click. * if previous or next is not allowed then disable the respective link. */ if (prev) { result.append("<td width=\"75\" class=\"fontnormalbold\">").append(getAnchor(action, resource.getString("Previous"),"searchPrev", currentFlowKey)).append("</td>"); } else { result.append("<td width=\"75\" class=\"fontnormalboldgray\">Previous</td>"); } result.append("<td width=\"150\" align=\"center\" class=\"fontnormalbold\">Results "+ pageStart + "-" + pageEnd + " of " + size + " </td>"); if (next) { result.append("<td width=\"75\" class=\"fontnormalbold\">").append(getAnchor(action, resource.getString("Next"),"searchNext", currentFlowKey)).append("</td>"); } else { result.append("<td width=\"75\" align=\"right\" class=\"fontnormalboldgray\">Next</td>"); } result.append("</tr>"); return result.toString(); }
|
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/a07705124c170afe7a397961e151c33acc1ab399/PageScroll.java/buggy/mifos/src/org/mifos/framework/components/tabletag/PageScroll.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
514,
1689,
1023,
12,
474,
783,
16,
1082,
202,
474,
13387,
16,
509,
963,
16,
514,
1301,
16,
514,
783,
5249,
653,
13,
288,
202,
202,
21253,
563,
273,
394,
3225,
5621,
202,
202,
18731,
1058,
273,
19198,
18,
588,
3405,
12,
1388,
1805,
2918,
18,
17421,
3776,
1769,
202,
202,
759,
869,
866,
326,
18296,
1267,
434,
326,
2807,
471,
1024,
2856,
716,
353,
4056,
578,
486,
202,
202,
6494,
2807,
273,
261,
2972,
405,
404,
13,
692,
638,
294,
629,
31,
202,
202,
6494,
1024,
273,
14015,
2972,
380,
13387,
13,
1545,
963,
13,
692,
629,
294,
638,
31,
202,
202,
759,
10286,
358,
444,
326,
1300,
434,
326,
787,
1363,
202,
202,
474,
1363,
1685,
273,
14015,
2972,
300,
404,
13,
380,
13387,
13,
397,
404,
31,
9506,
202,
759,
10286,
358,
444,
326,
1300,
434,
326,
679,
1363,
202,
202,
474,
1363,
1638,
273,
261,
2972,
380,
13387,
1769,
202,
202,
430,
261,
2433,
1638,
405,
963,
13,
288,
1082,
202,
2433,
1638,
273,
963,
31,
202,
202,
97,
9506,
202,
2088,
18,
6923,
2932,
32,
313,
2984,
1769,
9506,
202,
26873,
1082,
380,
358,
866,
2856,
2416,
353,
17688,
578,
1024,
353,
17688,
1875,
380,
471,
745,
326,
17613,
1363,
4888,
358,
326,
4682,
18,
1082,
380,
309,
2416,
578,
1024,
353,
486,
2935,
1508,
4056,
326,
17613,
1692,
18,
1082,
1195,
25083,
202,
430,
261,
10001,
13,
288,
1082,
202,
2088,
18,
6923,
2932,
32,
4465,
1835,
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,
760,
514,
1689,
1023,
12,
474,
783,
16,
1082,
202,
474,
13387,
16,
509,
963,
16,
514,
1301,
16,
514,
783,
5249,
653,
13,
288,
202,
202,
21253,
563,
273,
394,
3225,
5621,
202,
202,
18731,
1058,
273,
19198,
18,
588,
3405,
12,
1388,
1805,
2918,
18,
17421,
3776,
1769,
202,
202,
759,
869,
866,
326,
18296,
1267,
434,
326,
2807,
471,
1024,
2856,
716,
353,
4056,
578,
486,
202,
202,
6494,
2807,
273,
261,
2972,
405,
404,
13,
692,
638,
294,
629,
31,
202,
202,
6494,
1024,
273,
14015,
2972,
380,
13387,
13,
1545,
963,
13,
692,
629,
294,
638,
31,
202,
202,
759,
10286,
358,
444,
326,
1300,
434,
326,
787,
1363,
202,
202,
2
] |
case Optimizer.TO_OBJECT: {
|
case Token.TO_OBJECT: {
|
private void generateExpression(Node node, Node parent) { int type = node.getType(); Node child = node.getFirstChild(); switch (type) { case Token.USE_STACK: break; case Token.FUNCTION: if (fnCurrent != null || parent.getType() != Token.SCRIPT) { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); OptFunctionNode ofn = OptFunctionNode.get(scriptOrFn, fnIndex); int t = ofn.fnode.getFunctionType(); if (t != FunctionNode.FUNCTION_EXPRESSION) { throw Codegen.badTree(); } visitFunction(ofn, t); } break; case Token.NAME: { cfw.addALoad(contextLocal); cfw.addALoad(variableObjectLocal); cfw.addPush(node.getString()); addScriptRuntimeInvoke( "name", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/String;" +")Ljava/lang/Object;"); } break; case Token.CALL: case Token.NEW: { int specialType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); if (specialType == Node.NON_SPECIALCALL) { OptFunctionNode target; target = (OptFunctionNode)node.getProp( Node.DIRECTCALL_PROP); if (target != null) { visitOptimizedCall(node, target, type, child); } else if (type == Token.CALL) { visitStandardCall(node, child); } else { visitStandardNew(node, child); } } else { visitSpecialCall(node, type, specialType, child); } } break; case Token.REF_CALL: generateFunctionAndThisObj(child, node); // stack: ... functionObj thisObj child = child.getNext(); generateCallArgArray(node, child, false); cfw.addALoad(contextLocal); cfw.addALoad(variableObjectLocal); addScriptRuntimeInvoke( "callRef", "(Lorg/mozilla/javascript/Function;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;" +"Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); break; case Token.NUMBER: { double num = node.getDouble(); if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { cfw.addPush(num); } else { codegen.pushNumberAsObject(cfw, num); } } break; case Token.STRING: cfw.addPush(node.getString()); break; case Token.THIS: cfw.addALoad(thisObjLocal); break; case Token.THISFN: cfw.add(ByteCode.ALOAD_0); break; case Token.NULL: cfw.add(ByteCode.ACONST_NULL); break; case Token.TRUE: cfw.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); break; case Token.FALSE: cfw.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); break; case Token.REGEXP: { int i = node.getExistingIntProp(Node.REGEXP_PROP); // Scripts can not use REGEXP_ARRAY_FIELD_NAME since // it it will make script.exec non-reentrant so they // store regexp array in a local variable while // functions always access precomputed // REGEXP_ARRAY_FIELD_NAME not to consume locals if (fnCurrent == null) { cfw.addALoad(scriptRegexpLocal); } else { cfw.addALoad(funObjLocal); cfw.add(ByteCode.GETFIELD, codegen.mainClassName, Codegen.REGEXP_ARRAY_FIELD_NAME, Codegen.REGEXP_ARRAY_FIELD_TYPE); } cfw.addPush(i); cfw.add(ByteCode.AALOAD); } break; case Token.COMMA: { Node next = child.getNext(); while (next != null) { generateExpression(child, node); cfw.add(ByteCode.POP); child = next; next = next.getNext(); } generateExpression(child, node); break; } case Token.ENUM_NEXT: case Token.ENUM_ID: { int local = getLocalBlockRegister(node); cfw.addALoad(local); if (type == Token.ENUM_NEXT) { addScriptRuntimeInvoke( "enumNext", "(Ljava/lang/Object;)Ljava/lang/Boolean;"); } else { cfw.addALoad(contextLocal); addScriptRuntimeInvoke("enumId", "(Ljava/lang/Object;" +"Lorg/mozilla/javascript/Context;" +")Ljava/lang/Object;"); } break; } case Token.ARRAYLIT: visitArrayLiteral(node, child); break; case Token.OBJECTLIT: visitObjectLiteral(node, child); break; case Token.NOT: { int trueTarget = cfw.acquireLabel(); int falseTarget = cfw.acquireLabel(); int beyond = cfw.acquireLabel(); generateIfJump(child, node, trueTarget, falseTarget); cfw.markLabel(trueTarget); cfw.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); cfw.add(ByteCode.GOTO, beyond); cfw.markLabel(falseTarget); cfw.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); cfw.markLabel(beyond); cfw.adjustStackTop(-1); break; } case Token.BITNOT: generateExpression(child, node); addScriptRuntimeInvoke("toInt32", "(Ljava/lang/Object;)I"); cfw.addPush(-1); // implement ~a as (a ^ -1) cfw.add(ByteCode.IXOR); cfw.add(ByteCode.I2D); addDoubleWrap(); break; case Token.VOID: generateExpression(child, node); cfw.add(ByteCode.POP); Codegen.pushUndefined(cfw); break; case Token.TYPEOF: generateExpression(child, node); addScriptRuntimeInvoke("typeof", "(Ljava/lang/Object;" +")Ljava/lang/String;"); break; case Token.TYPEOFNAME: visitTypeofname(node); break; case Token.INC: case Token.DEC: visitIncDec(node, false); break; case Token.OR: case Token.AND: { generateExpression(child, node); cfw.add(ByteCode.DUP); addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); int falseTarget = cfw.acquireLabel(); if (type == Token.AND) cfw.add(ByteCode.IFEQ, falseTarget); else cfw.add(ByteCode.IFNE, falseTarget); cfw.add(ByteCode.POP); generateExpression(child.getNext(), node); cfw.markLabel(falseTarget); } break; case Token.HOOK : { Node ifThen = child.getNext(); Node ifElse = ifThen.getNext(); generateExpression(child, node); addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); int elseTarget = cfw.acquireLabel(); cfw.add(ByteCode.IFEQ, elseTarget); short stack = cfw.getStackTop(); generateExpression(ifThen, node); int afterHook = cfw.acquireLabel(); cfw.add(ByteCode.GOTO, afterHook); cfw.markLabel(elseTarget, stack); generateExpression(ifElse, node); cfw.markLabel(afterHook); } break; case Token.ADD: { generateExpression(child, node); generateExpression(child.getNext(), node); switch (node.getIntProp(Node.ISNUMBER_PROP, -1)) { case Node.BOTH: cfw.add(ByteCode.DADD); break; case Node.LEFT: addOptRuntimeInvoke("add", "(DLjava/lang/Object;)Ljava/lang/Object;"); break; case Node.RIGHT: addOptRuntimeInvoke("add", "(Ljava/lang/Object;D)Ljava/lang/Object;"); break; default: cfw.addALoad(contextLocal); addScriptRuntimeInvoke("add", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Context;" +")Ljava/lang/Object;"); } } break; case Token.MUL: visitArithmetic(node, ByteCode.DMUL, child, parent); break; case Token.SUB: visitArithmetic(node, ByteCode.DSUB, child, parent); break; case Token.DIV: case Token.MOD: visitArithmetic(node, type == Token.DIV ? ByteCode.DDIV : ByteCode.DREM, child, parent); break; case Token.BITOR: case Token.BITXOR: case Token.BITAND: case Token.LSH: case Token.RSH: case Token.URSH: visitBitOp(node, type, child); break; case Token.POS: case Token.NEG: generateExpression(child, node); addObjectToDouble(); if (type == Token.NEG) { cfw.add(ByteCode.DNEG); } addDoubleWrap(); break; case Optimizer.TO_DOUBLE: // cnvt to double (not Double) generateExpression(child, node); addObjectToDouble(); break; case Optimizer.TO_OBJECT: { // convert from double int prop = -1; if (child.getType() == Token.NUMBER) { prop = child.getIntProp(Node.ISNUMBER_PROP, -1); } if (prop != -1) { child.removeProp(Node.ISNUMBER_PROP); generateExpression(child, node); child.putIntProp(Node.ISNUMBER_PROP, prop); } else { generateExpression(child, node); addDoubleWrap(); } break; } case Token.IN: case Token.INSTANCEOF: case Token.LE: case Token.LT: case Token.GE: case Token.GT: { int trueGOTO = cfw.acquireLabel(); int falseGOTO = cfw.acquireLabel(); visitIfJumpRelOp(node, child, trueGOTO, falseGOTO); addJumpedBooleanWrap(trueGOTO, falseGOTO); break; } case Token.EQ: case Token.NE: case Token.SHEQ: case Token.SHNE: { int trueGOTO = cfw.acquireLabel(); int falseGOTO = cfw.acquireLabel(); visitIfJumpEqOp(node, child, trueGOTO, falseGOTO); addJumpedBooleanWrap(trueGOTO, falseGOTO); break; } case Token.GETPROP: visitGetProp(node, child); break; case Token.GETELEM: generateExpression(child, node); // object generateExpression(child.getNext(), node); // id cfw.addALoad(contextLocal); if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { addScriptRuntimeInvoke( "getObjectIndex", "(Ljava/lang/Object;D" +"Lorg/mozilla/javascript/Context;" +")Ljava/lang/Object;"); } else { addScriptRuntimeInvoke( "getObjectElem", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Context;" +")Ljava/lang/Object;"); } break; case Token.GET_REF: generateExpression(child, node); // reference cfw.addALoad(contextLocal); addScriptRuntimeInvoke( "refGet", "(Lorg/mozilla/javascript/Ref;" +"Lorg/mozilla/javascript/Context;" +")Ljava/lang/Object;"); break; case Token.GETVAR: visitGetVar(node); break; case Token.SETVAR: visitSetVar(node, child, true); break; case Token.SETNAME: visitSetName(node, child); break; case Token.SETPROP: case Token.SETPROP_OP: visitSetProp(type, node, child); break; case Token.SETELEM: case Token.SETELEM_OP: visitSetElem(type, node, child); break; case Token.SET_REF: case Token.SET_REF_OP: { generateExpression(child, node); child = child.getNext(); if (type == Token.SET_REF_OP) { cfw.add(ByteCode.DUP); cfw.addALoad(contextLocal); addScriptRuntimeInvoke( "refGet", "(Lorg/mozilla/javascript/Ref;" +"Lorg/mozilla/javascript/Context;" +")Ljava/lang/Object;"); } generateExpression(child, node); cfw.addALoad(contextLocal); addScriptRuntimeInvoke( "refSet", "(Lorg/mozilla/javascript/Ref;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Context;" +")Ljava/lang/Object;"); } break; case Token.DEL_REF: generateExpression(child, node); cfw.addALoad(contextLocal); addScriptRuntimeInvoke("refDel", "(Lorg/mozilla/javascript/Ref;" +"Lorg/mozilla/javascript/Context;" +")Ljava/lang/Object;"); break; case Token.DELPROP: generateExpression(child, node); child = child.getNext(); generateExpression(child, node); cfw.addALoad(contextLocal); addScriptRuntimeInvoke("delete", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Context;" +")Ljava/lang/Object;"); break; case Token.BINDNAME: { while (child != null) { generateExpression(child, node); child = child.getNext(); } // Generate code for "ScriptRuntime.bind(varObj, "s")" cfw.addALoad(contextLocal); cfw.addALoad(variableObjectLocal); cfw.addPush(node.getString()); addScriptRuntimeInvoke( "bind", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/String;" +")Lorg/mozilla/javascript/Scriptable;"); } break; case Token.LOCAL_LOAD: cfw.addALoad(getLocalBlockRegister(node)); break; case Token.REF_SPECIAL: { String special = (String)node.getProp(Node.NAME_PROP); generateExpression(child, node); cfw.addPush(special); cfw.addALoad(contextLocal); addScriptRuntimeInvoke( "specialRef", "(Ljava/lang/Object;" +"Ljava/lang/String;" +"Lorg/mozilla/javascript/Context;" +")Lorg/mozilla/javascript/Ref;"); } break; case Token.REF_MEMBER: case Token.REF_NS_MEMBER: case Token.REF_NAME: case Token.REF_NS_NAME: { int memberTypeFlags = node.getIntProp(Node.MEMBER_TYPE_PROP, 0); // generate possible target, possible namespace and member do { generateExpression(child, node); child = child.getNext(); } while (child != null); cfw.addALoad(contextLocal); String methodName, signature; switch (type) { case Token.REF_MEMBER: methodName = "memberRef"; signature = "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Context;" +"I" +")Lorg/mozilla/javascript/Ref;"; break; case Token.REF_NS_MEMBER: methodName = "memberRef"; signature = "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Context;" +"I" +")Lorg/mozilla/javascript/Ref;"; break; case Token.REF_NAME: methodName = "nameRef"; signature = "(Ljava/lang/Object;" +"Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"I" +")Lorg/mozilla/javascript/Ref;"; cfw.addALoad(variableObjectLocal); break; case Token.REF_NS_NAME: methodName = "nameRef"; signature = "(Ljava/lang/Object;" +"Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"I" +")Lorg/mozilla/javascript/Ref;"; cfw.addALoad(variableObjectLocal); break; default: throw Kit.codeBug(); } cfw.addPush(memberTypeFlags); addScriptRuntimeInvoke(methodName, signature); } break; case Token.DOTQUERY: visitDotQuery(node, child); break; case Token.ESCXMLATTR: generateExpression(child, node); cfw.addALoad(contextLocal); addScriptRuntimeInvoke("escapeAttributeValue", "(Ljava/lang/Object;" +"Lorg/mozilla/javascript/Context;" +")Ljava/lang/String;"); break; case Token.ESCXMLTEXT: generateExpression(child, node); cfw.addALoad(contextLocal); addScriptRuntimeInvoke("escapeTextValue", "(Ljava/lang/Object;" +"Lorg/mozilla/javascript/Context;" +")Ljava/lang/String;"); break; case Token.DEFAULTNAMESPACE: generateExpression(child, node); cfw.addALoad(contextLocal); addScriptRuntimeInvoke("setDefaultNamespace", "(Ljava/lang/Object;" +"Lorg/mozilla/javascript/Context;" +")Ljava/lang/Object;"); break; default: throw new RuntimeException("Unexpected node type "+type); } }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/f534359b03da94ab48bfc8f2027296f3dc01e5a4/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
2300,
12,
907,
756,
16,
2029,
982,
13,
565,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
1620,
261,
723,
13,
288,
2868,
648,
3155,
18,
8001,
67,
21971,
30,
7734,
898,
31,
2868,
648,
3155,
18,
7788,
30,
7734,
309,
261,
4293,
3935,
480,
446,
747,
982,
18,
588,
559,
1435,
480,
3155,
18,
10885,
13,
288,
10792,
509,
2295,
1016,
273,
756,
18,
588,
9895,
1702,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
12056,
2083,
907,
434,
82,
273,
12056,
2083,
907,
18,
588,
12,
4263,
1162,
5372,
16,
4766,
11794,
2295,
1016,
1769,
10792,
509,
268,
273,
434,
82,
18,
74,
2159,
18,
588,
2083,
559,
5621,
10792,
309,
261,
88,
480,
4284,
907,
18,
7788,
67,
19111,
13,
288,
13491,
604,
3356,
4507,
18,
8759,
2471,
5621,
10792,
289,
10792,
3757,
2083,
12,
792,
82,
16,
268,
1769,
7734,
289,
7734,
898,
31,
2868,
648,
3155,
18,
1985,
30,
7734,
288,
10792,
6080,
91,
18,
1289,
1013,
6189,
12,
2472,
2042,
1769,
10792,
6080,
91,
18,
1289,
1013,
6189,
12,
6105,
921,
2042,
1769,
10792,
6080,
91,
18,
1289,
7621,
12,
2159,
18,
588,
780,
10663,
10792,
527,
3651,
5576,
10969,
12,
13491,
315,
529,
3113,
13491,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
4868,
13491,
397,
6,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
13491,
397,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
2300,
12,
907,
756,
16,
2029,
982,
13,
565,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
1620,
261,
723,
13,
288,
2868,
648,
3155,
18,
8001,
67,
21971,
30,
7734,
898,
31,
2868,
648,
3155,
18,
7788,
30,
7734,
309,
261,
4293,
3935,
480,
446,
747,
982,
18,
588,
559,
1435,
480,
3155,
18,
10885,
13,
288,
10792,
509,
2295,
1016,
273,
756,
18,
588,
9895,
1702,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
12056,
2083,
907,
434,
82,
273,
12056,
2083,
907,
18,
588,
12,
4263,
1162,
5372,
16,
4766,
11794,
2295,
1016,
1769,
10792,
509,
268,
273,
2
] |
int x = wrR.x; int y = wrR.y; int width = wrR.width; int height = wrR.height;
|
ZeroRecter zr = ZeroRecter.getZeroRecter(wr);
|
protected void handleZero(WritableRaster wr) { // NOTE: I'm ignoring the pad mode here. I really need // to check what the mode is and pad out the edges // of wr. For now I just zero them... BufferedImage bi; bi = new BufferedImage(getColorModel(), wr.createWritableTranslatedChild(0,0), getColorModel().isAlphaPremultiplied(), null); Graphics2D g2d = bi.createGraphics(); // Make sure we draw with our hints. if (hints != null) g2d.setRenderingHints(hints); // Overwrite whatever is there. g2d.setComposite(AlphaComposite.Src); // Fully transparent black. g2d.setColor(new Color(0,0,0,0)); // Get my source. CachableRed src = (CachableRed)getSources().get(0); Rectangle srcR = src.getBounds(); Rectangle wrR = wr.getBounds(); int x = wrR.x; int y = wrR.y; int width = wrR.width; int height = wrR.height; // Position x, y at the topleft of the bufferedImage... g2d.translate(-x, -y); // We split the edge drawing up into four parts. // // +-----------------------------+ // | 1 | 2 | // | +---------------+------| // / / /4 / // / / / / // / / / / // / / / / // | +---------------+------| // | | 3 | // +-----------------------------+ // // We update our x,y, width, height as we go along so // we 'forget' about the parts we have already painted... // Draw #1 if (DEBUG) { System.out.println("WrR: " + wrR + " srcR: " + srcR); g2d.setColor(new Color(255,0,0,128)); } if (x < srcR.x) { int w = srcR.x-x; if (w > width) w=width; g2d.fillRect(x, y, w, height); x+=w; width-=w; } // Draw #2 if (DEBUG) { System.out.println("WrR: [" + x + "," + y + "," + width + "," + height + "] s rcR: " + srcR); g2d.setColor(new Color(0,0,255,128)); } if (y < srcR.y) { int h = srcR.y-y; if (h > height) h=height; g2d.fillRect(x, y, width, h); y+=h; height-=h; } // Draw #3 if (DEBUG) { System.out.println("WrR: [" + x + "," + y + "," + width + "," + height + "] srcR: " + srcR); g2d.setColor(new Color(0,255,0,128)); } if (y+height > srcR.y+srcR.height) { int h = (y+height) - (srcR.y+srcR.height); if (h > height) h=height; int y0 = y+height-h; // the +/-1 cancel (?) g2d.fillRect(x, y0, width, h); height-=h; } // Draw #4 if (DEBUG) { System.out.println("WrR: [" + x + "," + y + "," + width + "," + height + "] srcR: " + srcR); g2d.setColor(new Color(255,255,0,128)); } if (x+width > srcR.x+srcR.width) { int w = (x+width) - (srcR.x+srcR.width); if (w > width) w=width; int x0 = x+width-w; // the +/-1 cancel (?) g2d.fillRect(x0, y, w, height); width-=w; } }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/dc27dc059ad1f52f55dd6cd5923eef7671a40cb7/PadRed.java/buggy/sources/org/apache/batik/refimpl/gvt/filter/PadRed.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
7170,
12,
12061,
18637,
12408,
13,
288,
3639,
368,
5219,
30,
467,
17784,
14398,
326,
4627,
1965,
2674,
18,
467,
8654,
1608,
3639,
368,
4202,
358,
866,
4121,
326,
1965,
353,
471,
4627,
596,
326,
5231,
3639,
368,
4202,
434,
12408,
18,
225,
2457,
2037,
467,
2537,
3634,
2182,
2777,
3639,
12362,
10054,
31,
3639,
10054,
273,
394,
12362,
12,
588,
2957,
1488,
9334,
27573,
12408,
18,
2640,
12061,
20421,
1763,
12,
20,
16,
20,
3631,
1171,
9079,
15672,
1488,
7675,
291,
9690,
1386,
7027,
3110,
9334,
1171,
9079,
446,
1769,
3639,
16830,
22,
40,
314,
22,
72,
273,
10054,
18,
2640,
17558,
5621,
3639,
368,
4344,
3071,
732,
3724,
598,
3134,
13442,
18,
3639,
309,
261,
24598,
480,
446,
13,
314,
22,
72,
18,
542,
14261,
13368,
12,
24598,
1769,
3639,
368,
29747,
15098,
353,
1915,
18,
3639,
314,
22,
72,
18,
542,
9400,
12,
9690,
9400,
18,
7740,
1769,
3639,
368,
11692,
93,
17270,
7721,
18,
3639,
314,
22,
72,
18,
542,
2957,
12,
2704,
5563,
12,
20,
16,
20,
16,
20,
16,
20,
10019,
4766,
282,
368,
968,
3399,
1084,
18,
3639,
23782,
429,
3715,
1705,
225,
273,
261,
11309,
429,
3715,
13,
588,
8628,
7675,
588,
12,
20,
1769,
3639,
13264,
282,
1705,
54,
273,
1705,
18,
588,
5694,
5621,
3639,
13264,
282,
12408,
54,
225,
273,
12408,
18,
588,
5694,
5621,
3639,
509,
619,
1377,
273,
12408,
54,
18,
92,
31,
3639,
509,
677,
1377,
273,
12408,
54,
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,
1640,
7170,
12,
12061,
18637,
12408,
13,
288,
3639,
368,
5219,
30,
467,
17784,
14398,
326,
4627,
1965,
2674,
18,
467,
8654,
1608,
3639,
368,
4202,
358,
866,
4121,
326,
1965,
353,
471,
4627,
596,
326,
5231,
3639,
368,
4202,
434,
12408,
18,
225,
2457,
2037,
467,
2537,
3634,
2182,
2777,
3639,
12362,
10054,
31,
3639,
10054,
273,
394,
12362,
12,
588,
2957,
1488,
9334,
27573,
12408,
18,
2640,
12061,
20421,
1763,
12,
20,
16,
20,
3631,
1171,
9079,
15672,
1488,
7675,
291,
9690,
1386,
7027,
3110,
9334,
1171,
9079,
446,
1769,
3639,
16830,
22,
40,
314,
22,
72,
273,
10054,
18,
2640,
17558,
5621,
3639,
368,
4344,
3071,
732,
3724,
598,
3134,
13442,
18,
3639,
2
] |
public void saveOrUpdateBreakdownElement (BreakdownElement _bde) {
|
public void saveOrUpdateBreakdownElement(BreakdownElement _bde) {
|
public void saveOrUpdateBreakdownElement (BreakdownElement _bde) { this.getHibernateTemplate().saveOrUpdate(_bde) ; }
|
56018 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56018/fe668d7174a7a1e2a8162de5acca295790529884/BreakdownElementDao.java/buggy/trunk/src/woops2/hibernate/breakdownelement/BreakdownElementDao.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1923,
10466,
7634,
2378,
1046,
261,
7634,
2378,
1046,
389,
70,
323,
13,
288,
202,
202,
2211,
18,
588,
44,
24360,
2283,
7675,
5688,
10466,
24899,
70,
323,
13,
274,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1923,
10466,
7634,
2378,
1046,
261,
7634,
2378,
1046,
389,
70,
323,
13,
288,
202,
202,
2211,
18,
588,
44,
24360,
2283,
7675,
5688,
10466,
24899,
70,
323,
13,
274,
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
] |
if ( dn == null ) { dn = ""; } else {
|
if ( dn == null ) { printString( "dn" + m_sep + " " ); } else {
|
protected void printEntryStart( String dn ) { if ( dn == null ) { dn = ""; } else { byte[] b = null; try { b = dn.getBytes( "UTF8" ); } catch ( UnsupportedEncodingException ex ) { } if ( !LDIF.isPrintable(b) ) { dn = getPrintableValue( b ); } } printString( "dn" + m_sep + " " + dn ); }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/98a54aaa4a0cc44dd9887c26e52b0244008a8df5/LDIFWriter.java/buggy/directory/java-sdk/ldapjdk/netscape/ldap/util/LDIFWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1172,
1622,
1685,
12,
514,
8800,
262,
288,
202,
202,
430,
261,
8800,
422,
446,
262,
288,
1082,
202,
5176,
273,
1408,
31,
202,
202,
97,
469,
288,
5411,
1160,
8526,
324,
273,
446,
31,
5411,
775,
288,
7734,
324,
273,
8800,
18,
588,
2160,
12,
315,
5159,
28,
6,
11272,
5411,
289,
1044,
261,
15367,
431,
262,
288,
5411,
289,
5411,
309,
261,
401,
48,
2565,
42,
18,
291,
5108,
429,
12,
70,
13,
262,
288,
7734,
8800,
273,
8248,
474,
429,
620,
12,
324,
11272,
5411,
289,
3639,
289,
202,
202,
1188,
780,
12,
315,
5176,
6,
397,
312,
67,
10814,
397,
315,
315,
397,
8800,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1172,
1622,
1685,
12,
514,
8800,
262,
288,
202,
202,
430,
261,
8800,
422,
446,
262,
288,
1082,
202,
5176,
273,
1408,
31,
202,
202,
97,
469,
288,
5411,
1160,
8526,
324,
273,
446,
31,
5411,
775,
288,
7734,
324,
273,
8800,
18,
588,
2160,
12,
315,
5159,
28,
6,
11272,
5411,
289,
1044,
261,
15367,
431,
262,
288,
5411,
289,
5411,
309,
261,
401,
48,
2565,
42,
18,
291,
5108,
429,
12,
70,
13,
262,
288,
7734,
8800,
273,
8248,
474,
429,
620,
12,
324,
11272,
5411,
289,
3639,
289,
202,
202,
1188,
780,
12,
315,
5176,
6,
397,
312,
67,
10814,
397,
315,
315,
397,
8800,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100
] |
int nSize = pagesInCreationOrder.size(); IWorkbenchPage[] retArray = new IWorkbenchPage[nSize]; pagesInCreationOrder.toArray(retArray); return retArray; }
|
int nSize = pagesInCreationOrder.size(); IWorkbenchPage[] retArray = new IWorkbenchPage[nSize]; pagesInCreationOrder.toArray(retArray); return retArray; }
|
public IWorkbenchPage[] getPages() { int nSize = pagesInCreationOrder.size(); IWorkbenchPage[] retArray = new IWorkbenchPage[nSize]; pagesInCreationOrder.toArray(retArray); return retArray; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97610ef9afbe6c924e048d8d60c2f4721860850b/WorkbenchWindow.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
467,
2421,
22144,
1964,
8526,
1689,
1023,
1435,
288,
5411,
509,
290,
1225,
273,
4689,
382,
9906,
2448,
18,
1467,
5621,
5411,
467,
2421,
22144,
1964,
8526,
325,
1076,
273,
394,
467,
2421,
22144,
1964,
63,
82,
1225,
15533,
5411,
4689,
382,
9906,
2448,
18,
31447,
12,
1349,
1076,
1769,
5411,
327,
325,
1076,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
467,
2421,
22144,
1964,
8526,
1689,
1023,
1435,
288,
5411,
509,
290,
1225,
273,
4689,
382,
9906,
2448,
18,
1467,
5621,
5411,
467,
2421,
22144,
1964,
8526,
325,
1076,
273,
394,
467,
2421,
22144,
1964,
63,
82,
1225,
15533,
5411,
4689,
382,
9906,
2448,
18,
31447,
12,
1349,
1076,
1769,
5411,
327,
325,
1076,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ColumnConstraint[][] constraintses) { this.id = nextId++; this.aggregation = aggregation; this.measure = measure; int axisCount = aggregation.columns.length; Util.assertTrue(constraintses.length == axisCount); this.axes = new Aggregation.Axis[axisCount]; for (int i = 0; i < axisCount; i++) { Aggregation.Axis axis = this.axes[i] = new Aggregation.Axis(); axis.column = aggregation.columns[i]; axis.constraints = constraintses[i]; axis.mapKeyToOffset = new HashMap(); } this.cellKey = new CellKey(new int[axisCount]); this.desc = makeDescription(); this.state = State.Loading; }
|
ColumnConstraint[][] constraintses) { this.id = nextId++; this.aggregation = aggregation; this.measure = measure; int axisCount = aggregation.columns.length; Util.assertTrue(constraintses.length == axisCount); this.axes = new Aggregation.Axis[axisCount]; for (int i = 0; i < axisCount; i++) { Aggregation.Axis axis = this.axes[i] = new Aggregation.Axis(); axis.column = aggregation.columns[i]; axis.constraints = constraintses[i]; axis.mapKeyToOffset = new HashMap(); } this.cellKey = new CellKey(new int[axisCount]); this.desc = makeDescription(); this.state = State.Loading; }
|
Segment(Aggregation aggregation, RolapStar.Measure measure, ColumnConstraint[][] constraintses) { this.id = nextId++; this.aggregation = aggregation; this.measure = measure; int axisCount = aggregation.columns.length; Util.assertTrue(constraintses.length == axisCount); this.axes = new Aggregation.Axis[axisCount]; for (int i = 0; i < axisCount; i++) { Aggregation.Axis axis = this.axes[i] = new Aggregation.Axis(); axis.column = aggregation.columns[i]; axis.constraints = constraintses[i]; axis.mapKeyToOffset = new HashMap(); } this.cellKey = new CellKey(new int[axisCount]); this.desc = makeDescription(); this.state = State.Loading; }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/Segment.java/clean/src/main/mondrian/rolap/agg/Segment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
4131,
12,
12089,
10163,
16,
11714,
438,
18379,
18,
7197,
6649,
16,
1082,
202,
1494,
5806,
63,
6362,
65,
4954,
2420,
13,
288,
202,
202,
2211,
18,
350,
273,
1024,
548,
9904,
31,
202,
202,
2211,
18,
22082,
273,
10163,
31,
202,
202,
2211,
18,
10772,
273,
6649,
31,
202,
202,
474,
2654,
1380,
273,
10163,
18,
5112,
18,
2469,
31,
202,
202,
1304,
18,
11231,
5510,
12,
13364,
2420,
18,
2469,
422,
2654,
1380,
1769,
202,
202,
2211,
18,
10855,
273,
394,
21100,
18,
6558,
63,
4890,
1380,
15533,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2654,
1380,
31,
277,
27245,
288,
1082,
202,
12089,
18,
6558,
2654,
273,
9506,
202,
2211,
18,
10855,
63,
77,
65,
273,
394,
21100,
18,
6558,
5621,
1082,
202,
4890,
18,
2827,
273,
10163,
18,
5112,
63,
77,
15533,
1082,
202,
4890,
18,
11967,
273,
4954,
2420,
63,
77,
15533,
1082,
202,
4890,
18,
1458,
653,
774,
2335,
273,
394,
4317,
5621,
202,
202,
97,
202,
202,
2211,
18,
3855,
653,
273,
394,
8614,
653,
12,
2704,
509,
63,
4890,
1380,
19226,
202,
202,
2211,
18,
5569,
273,
1221,
3291,
5621,
202,
202,
2211,
18,
2019,
273,
3287,
18,
10515,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
4131,
12,
12089,
10163,
16,
11714,
438,
18379,
18,
7197,
6649,
16,
1082,
202,
1494,
5806,
63,
6362,
65,
4954,
2420,
13,
288,
202,
202,
2211,
18,
350,
273,
1024,
548,
9904,
31,
202,
202,
2211,
18,
22082,
273,
10163,
31,
202,
202,
2211,
18,
10772,
273,
6649,
31,
202,
202,
474,
2654,
1380,
273,
10163,
18,
5112,
18,
2469,
31,
202,
202,
1304,
18,
11231,
5510,
12,
13364,
2420,
18,
2469,
422,
2654,
1380,
1769,
202,
202,
2211,
18,
10855,
273,
394,
21100,
18,
6558,
63,
4890,
1380,
15533,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2654,
1380,
31,
277,
27245,
288,
1082,
202,
12089,
18,
6558,
2654,
273,
9506,
202,
2211,
2
] |
int offsetType = Integer.valueOf(String.valueOf(offsets[i][j]).substring(0,1)).intValue(); if (offsetType==IIndex.LINE){ match.setLocatable(new LineLocatable(Integer.valueOf(String.valueOf(offsets[i][j]).substring(1)).intValue(),0)); }else if (offsetType==IIndex.OFFSET){ int startOffset=Integer.valueOf(String.valueOf(offsets[i][j]).substring(1)).intValue(); int endOffset= startOffset + offsetLengths[i][j]; match.setLocatable(new OffsetLocatable(startOffset, endOffset)); }
|
match.setLocatable(getMatchLocatable(offsets[i][j],offsetLengths[i][j]));
|
public void feedIndexRequestor(IIndexSearchRequestor requestor, int detailLevel, int[] fileRefs, int[][] offsets, int[][] offsetLengths, IndexInput input, ICSearchScope scope) throws IOException { for (int i = 0, max = fileRefs.length; i < max; i++) { IndexedFileEntry file = input.getIndexedFile(fileRefs[i]); String path=null; if (file != null && scope.encloses(path =file.getPath())) { for (int j=0; j<offsets[i].length; j++){ BasicSearchMatch match = new BasicSearchMatch(); match.setName(new String(this.decodedSimpleName)); //Don't forget that offsets are encoded ICIndexStorageConstants //Offsets can either be LINE or OFFSET int offsetType = Integer.valueOf(String.valueOf(offsets[i][j]).substring(0,1)).intValue(); if (offsetType==IIndex.LINE){ match.setLocatable(new LineLocatable(Integer.valueOf(String.valueOf(offsets[i][j]).substring(1)).intValue(),0)); }else if (offsetType==IIndex.OFFSET){ int startOffset=Integer.valueOf(String.valueOf(offsets[i][j]).substring(1)).intValue(); int endOffset= startOffset + offsetLengths[i][j]; match.setLocatable(new OffsetLocatable(startOffset, endOffset)); } match.setParentName(""); //$NON-NLS-1$ match.setType(ICElement.C_MACRO); IFile tempFile = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(path)); if (tempFile != null && tempFile.exists()) match.setResource(tempFile); else { IPath tempPath = PathUtil.getWorkspaceRelativePath(file.getPath()); match.setPath(tempPath); match.setReferringElement(tempPath); } requestor.acceptSearchMatch(match); } } } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/08eb1c00e5d68fec992c04778388ad6b957a62ee/MacroDeclarationPattern.java/buggy/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MacroDeclarationPattern.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4746,
1016,
691,
280,
12,
45,
1016,
2979,
691,
280,
590,
280,
16,
509,
7664,
2355,
16,
509,
8526,
585,
9837,
16,
509,
63,
6362,
65,
8738,
16,
509,
63,
6362,
65,
1384,
22406,
16,
3340,
1210,
810,
16,
26899,
2979,
3876,
2146,
13,
1216,
1860,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
16,
943,
273,
585,
9837,
18,
2469,
31,
277,
411,
943,
31,
277,
27245,
288,
1082,
202,
15034,
20110,
585,
273,
810,
18,
588,
15034,
812,
12,
768,
9837,
63,
77,
19226,
1082,
202,
780,
589,
33,
2011,
31,
1082,
202,
430,
261,
768,
480,
446,
597,
2146,
18,
1331,
383,
2420,
12,
803,
273,
768,
18,
588,
743,
1435,
3719,
288,
9506,
202,
1884,
261,
474,
525,
33,
20,
31,
525,
32,
16542,
63,
77,
8009,
2469,
31,
525,
27245,
95,
6862,
202,
8252,
2979,
2060,
845,
273,
394,
7651,
2979,
2060,
5621,
6862,
202,
1916,
18,
542,
461,
12,
2704,
514,
12,
2211,
18,
26646,
5784,
461,
10019,
6862,
202,
759,
22293,
1404,
13776,
716,
8738,
854,
3749,
26899,
1016,
3245,
2918,
6862,
202,
759,
13830,
848,
3344,
506,
14340,
578,
26019,
4405,
202,
474,
1384,
559,
273,
2144,
18,
1132,
951,
12,
780,
18,
1132,
951,
12,
16542,
63,
77,
6362,
78,
65,
2934,
28023,
12,
20,
16,
21,
13,
2934,
474,
620,
5621,
6862,
202,
430,
261,
3348,
559,
631,
45,
1016,
18,
5997,
15329,
25083,
202,
1916,
18,
542,
1333,
8163,
12,
2704,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4746,
1016,
691,
280,
12,
45,
1016,
2979,
691,
280,
590,
280,
16,
509,
7664,
2355,
16,
509,
8526,
585,
9837,
16,
509,
63,
6362,
65,
8738,
16,
509,
63,
6362,
65,
1384,
22406,
16,
3340,
1210,
810,
16,
26899,
2979,
3876,
2146,
13,
1216,
1860,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
16,
943,
273,
585,
9837,
18,
2469,
31,
277,
411,
943,
31,
277,
27245,
288,
1082,
202,
15034,
20110,
585,
273,
810,
18,
588,
15034,
812,
12,
768,
9837,
63,
77,
19226,
1082,
202,
780,
589,
33,
2011,
31,
1082,
202,
430,
261,
768,
480,
446,
597,
2146,
18,
1331,
383,
2420,
12,
803,
273,
768,
18,
588,
743,
1435,
2
] |
case 50:
|
case 46:
|
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 57; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 49: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 54; else if (curChar == 47) { if (kind > 6) kind = 6; jjCheckNAddStates(0, 2); } break; case 0: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(3, 9); else if (curChar == 47) jjAddStates(10, 11); else if (curChar == 36) { if (kind > 71) kind = 71; jjCheckNAdd(28); } else if (curChar == 34) jjCheckNAddStates(12, 14); else if (curChar == 39) jjAddStates(15, 16); else if (curChar == 46) jjCheckNAdd(4); if ((0x3fe000000000000L & l) != 0L) { if (kind > 63) kind = 63; jjCheckNAddTwoStates(1, 2); } else if (curChar == 48) { if (kind > 63) kind = 63; jjCheckNAddStates(17, 19); } break; case 1: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 63) kind = 63; jjCheckNAddTwoStates(1, 2); break; case 3: if (curChar == 46) jjCheckNAdd(4); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 67) kind = 67; jjCheckNAddStates(20, 22); break; case 6: if ((0x280000000000L & l) != 0L) jjCheckNAdd(7); break; case 7: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 67) kind = 67; jjCheckNAddTwoStates(7, 8); break; case 9: if (curChar == 39) jjAddStates(15, 16); break; case 10: if ((0xffffff7fffffdbffL & l) != 0L) jjCheckNAdd(11); break; case 11: if (curChar == 39 && kind > 69) kind = 69; break; case 13: if ((0x8400000000L & l) != 0L) jjCheckNAdd(11); break; case 14: if ((0xff000000000000L & l) != 0L) jjCheckNAddTwoStates(15, 11); break; case 15: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(11); break; case 16: if ((0xf000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 17; break; case 17: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(15); break; case 18: if (curChar == 34) jjCheckNAddStates(12, 14); break; case 19: if ((0xfffffffbffffdbffL & l) != 0L) jjCheckNAddStates(12, 14); break; case 21: if ((0x8400000000L & l) != 0L) jjCheckNAddStates(12, 14); break; case 22: if (curChar == 34 && kind > 70) kind = 70; break; case 23: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(23, 26); break; case 24: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(12, 14); break; case 25: if ((0xf000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 26; break; case 26: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(24); break; case 27: if (curChar != 36) break; if (kind > 71) kind = 71; jjCheckNAdd(28); break; case 28: if ((0x3ff00100fffc1ffL & l) == 0L) break; if (kind > 71) kind = 71; jjCheckNAdd(28); break; case 29: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(3, 9); break; case 30: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 31: if (curChar != 46) break; if (kind > 67) kind = 67; jjCheckNAddStates(27, 29); break; case 32: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 67) kind = 67; jjCheckNAddStates(27, 29); break; case 34: if ((0x280000000000L & l) != 0L) jjCheckNAdd(35); break; case 35: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 67) kind = 67; jjCheckNAddTwoStates(35, 8); break; case 36: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(36, 37); break; case 38: if ((0x280000000000L & l) != 0L) jjCheckNAdd(39); break; case 39: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 67) kind = 67; jjCheckNAddTwoStates(39, 8); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 42: if ((0x280000000000L & l) != 0L) jjCheckNAdd(43); break; case 43: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(43, 8); break; case 44: if (curChar != 48) break; if (kind > 63) kind = 63; jjCheckNAddStates(17, 19); break; case 46: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 63) kind = 63; jjCheckNAddTwoStates(46, 2); break; case 47: if ((0xff000000000000L & l) == 0L) break; if (kind > 63) kind = 63; jjCheckNAddTwoStates(47, 2); break; case 48: if (curChar == 47) jjAddStates(10, 11); break; case 50: if ((0xffffffffffffdbffL & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddStates(0, 2); break; case 51: if ((0x2400L & l) != 0L && kind > 6) kind = 6; break; case 52: if (curChar == 10 && kind > 6) kind = 6; break; case 53: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 52; break; case 54: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 55; break; case 55: if ((0xffff7fffffffffffL & l) != 0L && kind > 7) kind = 7; break; case 56: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 54; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 71) kind = 71; jjCheckNAdd(28); break; case 2: if ((0x100000001000L & l) != 0L && kind > 63) kind = 63; break; case 5: if ((0x2000000020L & l) != 0L) jjAddStates(33, 34); break; case 8: if ((0x5000000050L & l) != 0L && kind > 67) kind = 67; break; case 10: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAdd(11); break; case 12: if (curChar == 92) jjAddStates(35, 37); break; case 13: if ((0x14404410000000L & l) != 0L) jjCheckNAdd(11); break; case 19: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAddStates(12, 14); break; case 20: if (curChar == 92) jjAddStates(38, 40); break; case 21: if ((0x14404410000000L & l) != 0L) jjCheckNAddStates(12, 14); break; case 28: if ((0x87fffffe87fffffeL & l) == 0L) break; if (kind > 71) kind = 71; jjCheckNAdd(28); break; case 33: if ((0x2000000020L & l) != 0L) jjAddStates(41, 42); break; case 37: if ((0x2000000020L & l) != 0L) jjAddStates(43, 44); break; case 41: if ((0x2000000020L & l) != 0L) jjAddStates(45, 46); break; case 45: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(46); break; case 46: if ((0x7e0000007eL & l) == 0L) break; if (kind > 63) kind = 63; jjCheckNAddTwoStates(46, 2); break; case 50: if (kind > 6) kind = 6; jjAddStates(0, 2); break; case 55: if (kind > 7) kind = 7; break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 71) kind = 71; jjCheckNAdd(28); break; case 10: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjstateSet[jjnewStateCnt++] = 11; break; case 19: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(12, 14); break; case 28: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 71) kind = 71; jjCheckNAdd(28); break; case 50: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 6) kind = 6; jjAddStates(0, 2); break; case 55: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 7) kind = 7; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 57 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParserTokenManager.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
15981,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
741,
540,
288,
5411,
1620,
12,
78,
78,
2019,
694,
63,
413,
77,
5717,
5411,
288,
9079,
648,
17160,
30,
5375,
309,
261,
1397,
2156,
422,
14856,
13,
5397,
10684,
2019,
694,
63,
78,
78,
2704,
1119,
11750,
9904,
65,
273,
22431,
31,
5375,
469,
309,
261,
1397,
2156,
422,
17495,
13,
5375,
288,
5397,
309,
261,
9224,
405,
1666,
13,
13491,
3846,
273,
1666,
31,
5397,
10684,
1564,
50,
986,
7629,
12,
20,
16,
576,
1769,
5375,
289,
5375,
898,
31,
9079,
648,
374,
30,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5397,
10684,
1564,
50,
986,
7629,
12,
23,
16,
2468,
1769,
5375,
469,
309,
261,
1397,
2156,
422,
17495,
13,
5397,
10684,
986,
7629,
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,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
15981,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
2
] |
registerPresences();
|
registerPresenceListener();
|
public void finished() { Boolean transportExists = (Boolean)get(); if (!transportExists) { return; } // Register presences. registerPresences(); }
|
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/GatewayPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/gateways/GatewayPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
6708,
1435,
288,
7734,
3411,
4736,
4002,
273,
261,
5507,
13,
588,
5621,
7734,
309,
16051,
13049,
4002,
13,
288,
10792,
327,
31,
7734,
289,
7734,
368,
5433,
4075,
2369,
18,
7734,
1744,
22590,
2223,
5621,
5411,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
6708,
1435,
288,
7734,
3411,
4736,
4002,
273,
261,
5507,
13,
588,
5621,
7734,
309,
16051,
13049,
4002,
13,
288,
10792,
327,
31,
7734,
289,
7734,
368,
5433,
4075,
2369,
18,
7734,
1744,
22590,
2223,
5621,
5411,
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
] |
TransportReceiver receiver = response.getTransportIn().getReciever();
|
TransportReceiver receiver = new HTTPTransportReceiver();
|
public MessageContext invokeBlocking(OperationDescription axisop, final MessageContext msgctx) throws AxisFault { verifyInvocation(axisop); msgctx.setTo(to); msgctx.setServiceContext(serviceContext); ConfigurationContext syscontext = serviceContext.getEngineContext(); final TransportInDescription transportIn = syscontext.getEngineConfig().getTransportIn(new QName(senderTransport)); final TransportOutDescription transportOut = syscontext.getEngineConfig().getTransportOut(new QName(senderTransport)); msgctx.setTransportIn(transportIn); msgctx.setTransportOut(transportOut); ConfigurationContext sysContext = serviceContext.getEngineContext(); AxisConfiguration registry = sysContext.getEngineConfig(); try { AxisEngine engine = new AxisEngine(sysContext); msgctx.setOperationContext( OperationContextFactory.createMEPContext( WSDLConstants.MEP_CONSTANT_IN_OUT, false, axisop, serviceContext)); engine.send(msgctx); MessageContext response = new MessageContext( msgctx.getSessionContext(), msgctx.getTransportIn(), msgctx.getTransportOut(), msgctx.getSystemContext()); response.setServerSide(false); TransportReceiver receiver = response.getTransportIn().getReciever(); receiver.invoke(response, sysContext); SOAPEnvelope resenvelope = response.getEnvelope(); // TODO if the resenvelope is a SOAPFault then throw an exception return response; } catch (OMException e) { throw AxisFault.makeFault(e); } catch (IOException e) { throw AxisFault.makeFault(e); } }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/42bf8650c391b253ca12fa4fae7039cb7002d0d5/InOutMEPClient.java/buggy/modules/core/src/org/apache/axis/clientapi/InOutMEPClient.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2350,
1042,
4356,
8728,
12,
2988,
3291,
2654,
556,
16,
727,
2350,
1042,
1234,
5900,
13,
3639,
1216,
15509,
7083,
288,
3639,
3929,
9267,
12,
4890,
556,
1769,
3639,
1234,
5900,
18,
542,
774,
12,
869,
1769,
3639,
1234,
5900,
18,
542,
1179,
1042,
12,
3278,
1042,
1769,
3639,
4659,
1042,
2589,
2472,
273,
1156,
1042,
18,
588,
4410,
1042,
5621,
3639,
727,
9514,
382,
3291,
4736,
382,
273,
5411,
2589,
2472,
18,
588,
4410,
809,
7675,
588,
6568,
382,
12,
2704,
16723,
12,
15330,
6568,
10019,
3639,
727,
9514,
1182,
3291,
4736,
1182,
273,
5411,
2589,
2472,
18,
588,
4410,
809,
7675,
588,
6568,
1182,
12,
2704,
16723,
12,
15330,
6568,
10019,
3639,
1234,
5900,
18,
542,
6568,
382,
12,
13049,
382,
1769,
5411,
1234,
5900,
18,
542,
6568,
1182,
12,
13049,
1182,
1769,
7734,
4659,
1042,
2589,
1042,
273,
1156,
1042,
18,
588,
4410,
1042,
5621,
3639,
15509,
1750,
4023,
273,
2589,
1042,
18,
588,
4410,
809,
5621,
3639,
775,
288,
5411,
15509,
4410,
4073,
273,
394,
15509,
4410,
12,
9499,
1042,
1769,
5411,
1234,
5900,
18,
542,
2988,
1042,
12,
7734,
4189,
29871,
18,
2640,
958,
52,
1042,
12,
10792,
30567,
2918,
18,
958,
52,
67,
25878,
67,
706,
67,
5069,
16,
10792,
629,
16,
10792,
2654,
556,
16,
10792,
1156,
1042,
10019,
5411,
4073,
18,
4661,
12,
3576,
5900,
1769,
5411,
2350,
1042,
766,
273,
7734,
394,
2350,
1042,
12,
10792,
1234,
5900,
18,
588,
2157,
1042,
9334,
10792,
1234,
5900,
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,
2350,
1042,
4356,
8728,
12,
2988,
3291,
2654,
556,
16,
727,
2350,
1042,
1234,
5900,
13,
3639,
1216,
15509,
7083,
288,
3639,
3929,
9267,
12,
4890,
556,
1769,
3639,
1234,
5900,
18,
542,
774,
12,
869,
1769,
3639,
1234,
5900,
18,
542,
1179,
1042,
12,
3278,
1042,
1769,
3639,
4659,
1042,
2589,
2472,
273,
1156,
1042,
18,
588,
4410,
1042,
5621,
3639,
727,
9514,
382,
3291,
4736,
382,
273,
5411,
2589,
2472,
18,
588,
4410,
809,
7675,
588,
6568,
382,
12,
2704,
16723,
12,
15330,
6568,
10019,
3639,
727,
9514,
1182,
3291,
4736,
1182,
273,
5411,
2589,
2472,
18,
588,
4410,
809,
7675,
588,
6568,
1182,
12,
2704,
16723,
12,
15330,
6568,
10019,
3639,
1234,
5900,
18,
2
] |
ItemId id = session.getHierarchyManager().getItemId(p); if (!id.denotesNode()) { return (PropertyId) id;
|
ItemState itemState = session.getHierarchyManager().getItemState(p); if (!itemState.isNode()) { return (PropertyState) itemState;
|
private PropertyId resolveRelativePropertyPath(String relPath) throws RepositoryException { try { /** * first check if relPath is just a name (in which case we don't * have to build & resolve absolute path) */ if (relPath.indexOf('/') == -1) { QName propName = NameFormat.parse(relPath, session.getNamespaceResolver()); // check if property entry exists if (getNodeState().hasPropertyName(propName)) { try { return getNodeState().getPropertyState(propName).getPropertyId(); } catch (ItemStateException e) { // should not occur due, since existance has been checked throw new RepositoryException(e); } } else { // there's no property with that name return null; } } /** * build and resolve absolute path */ Path p = getQPath(relPath).getCanonicalPath(); try { ItemId id = session.getHierarchyManager().getItemId(p); if (!id.denotesNode()) { return (PropertyId) id; } else { // not a property return null; } } catch (PathNotFoundException pnfe) { return null; } } catch (NameException e) { String msg = "failed to resolve path " + relPath + " relative to " + safeGetJCRPath(); log.debug(msg); throw new RepositoryException(msg, e); } }
|
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/206660c09d3bf7815a84c9debbaa760eb284ce3d/NodeImpl.java/clean/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4276,
548,
2245,
8574,
1396,
743,
12,
780,
20282,
13,
1216,
13367,
288,
3639,
775,
288,
5411,
1783,
2398,
380,
1122,
866,
309,
20282,
353,
2537,
279,
508,
261,
267,
1492,
648,
732,
2727,
1404,
2398,
380,
1240,
358,
1361,
473,
2245,
4967,
589,
13,
2398,
1195,
5411,
309,
261,
2878,
743,
18,
31806,
2668,
2473,
13,
422,
300,
21,
13,
288,
7734,
16723,
9994,
273,
1770,
1630,
18,
2670,
12,
2878,
743,
16,
1339,
18,
588,
3402,
4301,
10663,
7734,
368,
866,
309,
1272,
1241,
1704,
7734,
309,
261,
588,
907,
1119,
7675,
5332,
13073,
12,
5986,
461,
3719,
288,
10792,
775,
288,
13491,
327,
5973,
1119,
7675,
588,
1396,
1119,
12,
5986,
461,
2934,
588,
1396,
548,
5621,
10792,
289,
1044,
261,
1180,
5060,
425,
13,
288,
13491,
368,
1410,
486,
3334,
6541,
16,
3241,
1005,
1359,
711,
2118,
5950,
13491,
604,
394,
13367,
12,
73,
1769,
10792,
289,
7734,
289,
469,
288,
10792,
368,
1915,
1807,
1158,
1272,
598,
716,
508,
10792,
327,
446,
31,
7734,
289,
5411,
289,
5411,
1783,
2398,
380,
1361,
471,
2245,
4967,
589,
2398,
1195,
5411,
2666,
293,
273,
23413,
743,
12,
2878,
743,
2934,
588,
15512,
743,
5621,
5411,
775,
288,
7734,
4342,
548,
612,
273,
1339,
18,
588,
12074,
1318,
7675,
588,
17673,
12,
84,
1769,
7734,
309,
16051,
350,
18,
13002,
6366,
907,
10756,
288,
10792,
327,
261,
1396,
548,
13,
612,
31,
7734,
289,
469,
288,
10792,
368,
486,
279,
1272,
10792,
327,
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,
4276,
548,
2245,
8574,
1396,
743,
12,
780,
20282,
13,
1216,
13367,
288,
3639,
775,
288,
5411,
1783,
2398,
380,
1122,
866,
309,
20282,
353,
2537,
279,
508,
261,
267,
1492,
648,
732,
2727,
1404,
2398,
380,
1240,
358,
1361,
473,
2245,
4967,
589,
13,
2398,
1195,
5411,
309,
261,
2878,
743,
18,
31806,
2668,
2473,
13,
422,
300,
21,
13,
288,
7734,
16723,
9994,
273,
1770,
1630,
18,
2670,
12,
2878,
743,
16,
1339,
18,
588,
3402,
4301,
10663,
7734,
368,
866,
309,
1272,
1241,
1704,
7734,
309,
261,
588,
907,
1119,
7675,
5332,
13073,
12,
5986,
461,
3719,
288,
10792,
775,
288,
13491,
327,
5973,
1119,
7675,
588,
1396,
1119,
12,
5986,
461,
2934,
588,
2
] |
try
|
try
|
private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); }
|
58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/0f69da517df83133fd711f05acf8921bd3d8fcb5/AutomatedInstaller.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
741,
6410,
12,
22932,
690,
6410,
751,
3799,
892,
13,
377,
1216,
1185,
225,
288,
565,
368,
2660,
30,
277,
2643,
82,
565,
2332,
18,
659,
18,
8222,
2932,
63,
24591,
18472,
690,
13193,
308,
8863,
565,
368,
5442,
326,
20582,
316,
1353,
565,
4498,
20582,
3198,
273,
3799,
892,
18,
7355,
10558,
2448,
18,
9838,
5621,
565,
1323,
12,
7355,
10558,
3198,
18,
5332,
2134,
10756,
565,
288,
1377,
23641,
293,
273,
261,
5537,
13,
7355,
10558,
3198,
18,
4285,
5621,
202,
21114,
225,
309,
16051,
15112,
5806,
18,
476,
6869,
3935,
3163,
12,
84,
18,
538,
4878,
3719,
1324,
31,
202,
3639,
514,
6594,
3834,
273,
293,
18,
12434,
31,
1377,
514,
17539,
2276,
3834,
273,
315,
832,
18,
452,
1884,
908,
18,
452,
2920,
18,
7355,
10558,
1199,
15,
13916,
3834,
9078,
28589,
2276,
14432,
1377,
1659,
17539,
2276,
797,
273,
446,
31,
1377,
368,
4199,
309,
326,
6594,
6146,
18472,
690,
3799,
1377,
775,
4202,
288,
3639,
17539,
2276,
797,
273,
1659,
18,
1884,
461,
12,
5854,
11978,
2276,
3834,
1769,
1377,
289,
4202,
1044,
12,
797,
3990,
425,
13,
4202,
288,
3639,
368,
333,
353,
7791,
300,
486,
777,
20582,
1240,
19,
14891,
17539,
2865,
18,
3639,
1324,
31,
1377,
289,
1377,
368,
10275,
326,
17539,
4058,
364,
326,
6594,
1377,
23641,
28589,
17539,
2276,
1442,
273,
446,
31,
1377,
309,
12,
5854,
11978,
2276,
797,
480,
446,
13,
4202,
288,
3639,
775,
540,
288,
1850,
17539,
2276,
1442,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
741,
6410,
12,
22932,
690,
6410,
751,
3799,
892,
13,
377,
1216,
1185,
225,
288,
565,
368,
2660,
30,
277,
2643,
82,
565,
2332,
18,
659,
18,
8222,
2932,
63,
24591,
18472,
690,
13193,
308,
8863,
565,
368,
5442,
326,
20582,
316,
1353,
565,
4498,
20582,
3198,
273,
3799,
892,
18,
7355,
10558,
2448,
18,
9838,
5621,
565,
1323,
12,
7355,
10558,
3198,
18,
5332,
2134,
10756,
565,
288,
1377,
23641,
293,
273,
261,
5537,
13,
7355,
10558,
3198,
18,
4285,
5621,
202,
21114,
225,
309,
16051,
15112,
5806,
18,
476,
6869,
3935,
3163,
12,
84,
18,
538,
4878,
3719,
1324,
31,
202,
3639,
514,
6594,
3834,
273,
293,
18,
12434,
31,
1377,
514,
17539,
2276,
2
] |
KeyPair keypair) { debug(">addKeyRecoveryData(user: " + username + ")");
|
KeyPair keypair) { debug(">addKeyRecoveryData(user: " + username + ")");
|
public boolean addKeyRecoveryData(Admin admin, X509Certificate certificate, String username, KeyPair keypair) { debug(">addKeyRecoveryData(user: " + username + ")"); boolean returnval = false; try { int caid = CertTools.getIssuerDN(certificate).hashCode(); KeyRecoveryCAServiceResponse response = (KeyRecoveryCAServiceResponse) getSignSession().extendedService(admin,caid, new KeyRecoveryCAServiceRequest(KeyRecoveryCAServiceRequest.COMMAND_ENCRYPTKEYS,keypair)); keyrecoverydatahome.create(certificate.getSerialNumber(), CertTools.getIssuerDN(certificate), username, response.getKeyData()); getLogSession().log(admin, certificate, LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), username, certificate, LogEntry.EVENT_INFO_KEYRECOVERY, "Keyrecovery data for certificate with serial number : " + certificate.getSerialNumber().toString(16) + ", " + CertTools.getIssuerDN(certificate) + " added."); returnval = true; } catch (Exception e) { getLogSession().log(admin, certificate, LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), username, certificate, LogEntry.EVENT_ERROR_KEYRECOVERY, "Error when trying to add keyrecovery data for certificate with serial number : " + certificate.getSerialNumber().toString(16) + ", " + CertTools.getIssuerDN(certificate) + "."); } debug("<addKeyRecoveryData()"); return returnval; } // addKeyRecoveryData
|
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/eacf4dd5b0993e24e9a5988e58f9a0cbb200450b/LocalKeyRecoverySessionBean.java/clean/src/java/se/anatom/ejbca/keyrecovery/LocalKeyRecoverySessionBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
24819,
11548,
751,
12,
4446,
3981,
16,
1139,
5995,
4719,
4944,
16,
514,
2718,
16,
202,
202,
15099,
25298,
13,
288,
202,
202,
4148,
2932,
34,
1289,
653,
11548,
751,
12,
1355,
30,
315,
397,
2718,
397,
7310,
1769,
202,
202,
6494,
327,
1125,
273,
629,
31,
202,
202,
698,
288,
1082,
202,
474,
3474,
350,
273,
11921,
10348,
18,
588,
16667,
8609,
12,
14108,
2934,
2816,
1085,
5621,
1082,
202,
653,
11548,
3587,
5517,
766,
273,
261,
653,
11548,
3587,
5517,
13,
14167,
2157,
7675,
14948,
1179,
12,
3666,
16,
5353,
350,
16,
25083,
4766,
27573,
394,
1929,
11548,
3587,
1179,
691,
12,
653,
11548,
3587,
1179,
691,
18,
19104,
67,
1157,
14306,
16333,
16,
856,
6017,
10019,
1082,
202,
856,
23963,
892,
8712,
18,
2640,
12,
14108,
18,
588,
6342,
1854,
9334,
9506,
202,
5461,
10348,
18,
588,
16667,
8609,
12,
14108,
3631,
2718,
16,
766,
18,
588,
653,
751,
10663,
1082,
202,
588,
1343,
2157,
7675,
1330,
12,
3666,
16,
4944,
16,
30039,
18,
12194,
67,
3297,
30724,
17529,
16,
394,
2252,
18,
1367,
18,
1626,
9334,
2718,
16,
9506,
202,
14108,
16,
30039,
18,
10454,
67,
5923,
67,
3297,
30724,
17529,
16,
9506,
202,
6,
653,
23963,
501,
364,
4944,
598,
2734,
1300,
294,
315,
397,
9506,
202,
14108,
18,
588,
6342,
1854,
7675,
10492,
12,
2313,
13,
397,
3104,
315,
397,
9506,
202,
5461,
10348,
18,
588,
16667,
8609,
12,
14108,
13,
397,
315,
3096,
1199,
1769,
1082,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
24819,
11548,
751,
12,
4446,
3981,
16,
1139,
5995,
4719,
4944,
16,
514,
2718,
16,
202,
202,
15099,
25298,
13,
288,
202,
202,
4148,
2932,
34,
1289,
653,
11548,
751,
12,
1355,
30,
315,
397,
2718,
397,
7310,
1769,
202,
202,
6494,
327,
1125,
273,
629,
31,
202,
202,
698,
288,
1082,
202,
474,
3474,
350,
273,
11921,
10348,
18,
588,
16667,
8609,
12,
14108,
2934,
2816,
1085,
5621,
1082,
202,
653,
11548,
3587,
5517,
766,
273,
261,
653,
11548,
3587,
5517,
13,
14167,
2157,
7675,
14948,
1179,
12,
3666,
16,
5353,
350,
16,
25083,
4766,
27573,
394,
1929,
11548,
3587,
1179,
691,
12,
653,
11548,
3587,
1179,
691,
18,
19104,
67,
1157,
14306,
16333,
2
] |
access.setPermission(AccessController.CATEGORY_GROUP_ID, iwc, selectedGroupId, childGroup.getPrimaryKey().toString(), key, Boolean.FALSE);
|
}
|
private void saveChanges(IWContext iwc, List permissionTypes) { AccessController access = iwc.getAccessController(); try { checkForInheritanceChanges(iwc); Iterator iterator = permissionTypes.iterator(); while (iterator.hasNext()) { String key = (String) iterator.next(); String[] values = iwc.getParameterValues(key); Map permissions = this.getPermissionMapFromSession(iwc, key, false); //adding new values if (values != null && values.length > 0) { for (int i = 0; i < values.length; i++) { access.setPermission(AccessController.CATEGORY_GROUP_ID, iwc, selectedGroupId, values[i], key, Boolean.TRUE); if(groupIdsToRecurseChangesOn!=null && groupIdsToRecurseChangesOn.contains(new Integer(values[i]))){ //recurse through children and give same rights Group parent = getGroupBusiness(iwc).getGroupByGroupID(Integer.parseInt(values[i])); Collection children = getGroupBusiness(iwc).getChildGroupsRecursive(parent); Iterator childIter = children.iterator(); while (childIter.hasNext()) { Group childGroup = (Group) childIter.next(); //only if current user owns the group if(access.isOwner(childGroup,iwc)){ access.setPermission(AccessController.CATEGORY_GROUP_ID, iwc, selectedGroupId, childGroup.getPrimaryKey().toString(), key, Boolean.TRUE); } } } permissions.remove(values[i]); } } //does not remove record only set the permission to false //todo remove if I am owner (see todo on owner stuff in this class) //AccessControl.removePermissionRecords(AccessController.CATEGORY_GROUP_ID,iwc, instanceId,(String)item, groupsToRemove); Iterator entries = permissions.values().iterator(); while (entries.hasNext()) { ICPermission permission = (ICPermission) entries.next(); permission.setPermissionValue(false); permission.store(); if(groupIdsToRecurseChangesOn!=null && groupIdsToRecurseChangesOn.contains(new Integer(permission.getContextValue()))){ //recurse through children and remove same rights Group parent = getGroupBusiness(iwc).getGroupByGroupID(Integer.parseInt(permission.getContextValue())); Collection children = getGroupBusiness(iwc).getChildGroupsRecursive(parent); Iterator childIter = children.iterator(); while (childIter.hasNext()) { Group childGroup = (Group) childIter.next(); access.setPermission(AccessController.CATEGORY_GROUP_ID, iwc, selectedGroupId, childGroup.getPrimaryKey().toString(), key, Boolean.FALSE); } } } } //refresh permissions PermissionCacher.updatePermissions() iwc.getApplicationContext().removeApplicationAttribute("ic_permission_map_" + AccessController.CATEGORY_GROUP_ID); } catch (Exception e) { e.printStackTrace(); } }
|
53236 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53236/6b3b3019ed40e6d3b5a724ca56ff09ac4dc4dcec/GroupPermissionWindow.java/buggy/src/java/com/idega/user/presentation/GroupPermissionWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1923,
7173,
12,
45,
59,
1042,
25522,
71,
16,
987,
4132,
2016,
13,
288,
202,
202,
1862,
2933,
2006,
273,
25522,
71,
18,
588,
1862,
2933,
5621,
9506,
202,
698,
288,
1082,
202,
1893,
1290,
28255,
7173,
12,
22315,
71,
1769,
6862,
6862,
202,
3198,
2775,
273,
4132,
2016,
18,
9838,
5621,
1082,
202,
17523,
261,
9838,
18,
5332,
2134,
10756,
288,
9506,
202,
780,
498,
273,
261,
780,
13,
2775,
18,
4285,
5621,
9506,
202,
780,
8526,
924,
273,
25522,
71,
18,
588,
1662,
1972,
12,
856,
1769,
9506,
202,
863,
4371,
273,
333,
18,
588,
5041,
863,
1265,
2157,
12,
22315,
71,
16,
498,
16,
629,
1769,
9506,
202,
759,
3439,
394,
924,
9506,
202,
430,
261,
2372,
480,
446,
597,
924,
18,
2469,
405,
374,
13,
288,
6862,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
924,
18,
2469,
31,
277,
27245,
288,
25083,
202,
3860,
18,
542,
5041,
12,
1862,
2933,
18,
24847,
67,
8468,
67,
734,
16,
25522,
71,
16,
3170,
8722,
16,
924,
63,
77,
6487,
498,
16,
3411,
18,
18724,
1769,
6862,
6862,
6862,
6862,
202,
430,
12,
1655,
2673,
774,
426,
17682,
7173,
1398,
5,
33,
2011,
597,
1041,
2673,
774,
426,
17682,
7173,
1398,
18,
12298,
12,
2704,
2144,
12,
2372,
63,
77,
22643,
15329,
6862,
1082,
202,
759,
29362,
3059,
2325,
471,
8492,
1967,
14989,
6862,
1082,
202,
1114,
982,
273,
11751,
13423,
12,
22315,
71,
2934,
588,
26257,
30876,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1923,
7173,
12,
45,
59,
1042,
25522,
71,
16,
987,
4132,
2016,
13,
288,
202,
202,
1862,
2933,
2006,
273,
25522,
71,
18,
588,
1862,
2933,
5621,
9506,
202,
698,
288,
1082,
202,
1893,
1290,
28255,
7173,
12,
22315,
71,
1769,
6862,
6862,
202,
3198,
2775,
273,
4132,
2016,
18,
9838,
5621,
1082,
202,
17523,
261,
9838,
18,
5332,
2134,
10756,
288,
9506,
202,
780,
498,
273,
261,
780,
13,
2775,
18,
4285,
5621,
9506,
202,
780,
8526,
924,
273,
25522,
71,
18,
588,
1662,
1972,
12,
856,
1769,
9506,
202,
863,
4371,
273,
333,
18,
588,
5041,
863,
1265,
2157,
12,
22315,
71,
16,
498,
16,
629,
1769,
9506,
202,
759,
3439,
394,
924,
2
] |
protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = url; PG_DATABASE = database; PG_PASSWORD = info.getProperty("password"); PG_USER = info.getProperty("user"); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <peter@retep.org.uk> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString (receive_sbuf, 4096, getEncoding())); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString (receive_sbuf, 4096, getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(receive_sbuf, 4096, getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Originally we issued a SHOW DATESTYLE statement to find the databases default // datestyle. However, this caused some problems with timestamps, so in 6.5, we // went the way of ODBC, and set the connection to ISO. // // This may cause some clients to break when they assume anything other than ISO, // but then - they should be using the proper methods ;-) // // We also ask the DB for certain properties (i.e. DatabaseEncoding at this time) // firstWarning = null; java.sql.ResultSet initrset = ExecSQL("set datestyle to 'ISO'; select getdatabaseencoding()"); String dbEncoding = null; //retrieve DB properties if(initrset.next()) { //handle DatabaseEncoding dbEncoding = initrset.getString(1); //convert from the PostgreSQL name to the Java name if (dbEncoding.equals("SQL_ASCII")) { dbEncoding = "ASCII"; } else if (dbEncoding.equals("UNICODE")) { dbEncoding = "UTF8"; } else if (dbEncoding.equals("LATIN1")) { dbEncoding = "ISO8859_1"; } else if (dbEncoding.equals("LATIN2")) { dbEncoding = "ISO8859_2"; } else if (dbEncoding.equals("LATIN3")) { dbEncoding = "ISO8859_3"; } else if (dbEncoding.equals("LATIN4")) { dbEncoding = "ISO8859_4"; } else if (dbEncoding.equals("LATIN5")) { dbEncoding = "ISO8859_5"; } else if (dbEncoding.equals("LATIN6")) { dbEncoding = "ISO8859_6"; } else if (dbEncoding.equals("LATIN7")) { dbEncoding = "ISO8859_7"; } else if (dbEncoding.equals("LATIN8")) { dbEncoding = "ISO8859_8"; } else if (dbEncoding.equals("LATIN9")) { dbEncoding = "ISO8859_9"; } else if (dbEncoding.equals("EUC_JP")) { dbEncoding = "EUC_JP"; } else if (dbEncoding.equals("EUC_CN")) { dbEncoding = "EUC_CN"; } else if (dbEncoding.equals("EUC_KR")) { dbEncoding = "EUC_KR"; } else if (dbEncoding.equals("EUC_TW")) { dbEncoding = "EUC_TW"; } else if (dbEncoding.equals("KOI8")) { dbEncoding = "KOI8_R"; } else if (dbEncoding.equals("WIN")) { dbEncoding = "Cp1252"; } else { dbEncoding = null; } } //Set the encoding for this connection //Since the encoding could be specified or obtained from the DB we use the //following order: // 1. passed as a property // 2. value from DB if supported by current JVM // 3. default for JVM (leave encoding null) String passedEncoding = info.getProperty("charSet"); // could be null if (passedEncoding != null) { encoding = passedEncoding; } else { if (dbEncoding != null) { //test DB encoding try { "TEST".getBytes(dbEncoding); //no error the encoding is supported by the current JVM encoding = dbEncoding; } catch (UnsupportedEncodingException uee) { //dbEncoding is not supported by the current JVM encoding = null; } } else { encoding = null; } } // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; }
|
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/d832cd2773997d717fa8a1773bc600ff10ce33eb/Connection.java/clean/org/postgresql/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
2201,
1790,
854,
3315,
565,
368,
1220,
9145,
345,
285,
1230,
9938,
1347,
326,
1004,
4692,
326,
1790,
1177,
565,
368,
434,
6742,
9334,
471,
353,
279,
2975,
5073,
603,
326,
2699,
6035,
565,
309,
12,
1376,
18,
588,
1396,
2932,
1355,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
1355,
8863,
565,
309,
12,
1376,
18,
588,
1396,
2932,
3664,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
5466,
8863,
3639,
333,
67,
7407,
273,
302,
31,
565,
333,
67,
718,
273,
880,
31,
565,
22116,
67,
22366,
273,
2063,
31,
565,
22116,
67,
13784,
273,
1123,
18,
588,
1396,
2932,
3664,
8863,
565,
22116,
67,
4714,
273,
1123,
18,
588,
1396,
2932,
1355,
8863,
565,
22116,
67,
6354,
273,
1756,
31,
565,
22116,
67,
8908,
273,
1479,
31,
565,
22116,
67,
8608,
273,
20695,
67,
16234,
31,
565,
368,
4494,
1221,
326,
2172,
1459,
565,
775,
1377,
288,
202,
8365,
67,
3256,
273,
394,
22116,
67,
1228,
12,
2564,
16,
1756,
1769,
1377,
289,
1044,
261,
5215,
503,
276,
338,
13,
288,
202,
759,
25808,
635,
453,
847,
13076,
411,
84,
847,
36,
266,
736,
84,
18,
3341,
18,
19445,
34,
202,
759,
8289,
503,
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,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
2201,
1790,
854,
3315,
565,
368,
1220,
9145,
345,
285,
1230,
9938,
1347,
326,
1004,
4692,
326,
1790,
1177,
565,
368,
434,
6742,
9334,
471,
353,
279,
2975,
5073,
603,
326,
2699,
6035,
565,
309,
12,
1376,
18,
588,
1396,
2932,
1355,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
1355,
8863,
565,
309,
12,
1376,
18,
588,
1396,
2932,
3664,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
2
] |
||
case 21:
|
case 31: case 48:
|
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 30; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x3ff000000000000L & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(5); } else if (curChar == 36) { if (kind > 13) kind = 13; jjCheckNAddTwoStates(13, 14); } else if (curChar == 45) jjCheckNAdd(5); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 30: if ((0x3ff000000000000L & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } else if ((0x2400L & l) != 0L) { if (kind > 49) kind = 49; } else if ((0x100000200L & l) != 0L) jjCheckNAddStates(40, 42); if (curChar == 13) jjstateSet[jjnewStateCnt++] = 26; break; case 22: case 7: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 28: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 16) kind = 16; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 4: if (curChar == 45) jjCheckNAdd(5); break; case 5: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(5); break; case 10: if (curChar == 36 && kind > 13) kind = 13; break; case 12: if (curChar == 36) jjCheckNAddTwoStates(13, 14); break; case 14: if (curChar == 33 && kind > 14) kind = 14; break; case 15: if (curChar != 36) break; if (kind > 13) kind = 13; jjCheckNAddTwoStates(13, 14); break; case 18: if ((0x100000200L & l) != 0L) jjAddStates(43, 45); break; case 19: if ((0x2400L & l) != 0L && kind > 46) kind = 46; break; case 20: if (curChar == 10 && kind > 46) kind = 46; break; case 21: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 20; break; case 24: if ((0x100000200L & l) != 0L) jjCheckNAddStates(40, 42); break; case 25: if ((0x2400L & l) != 0L && kind > 49) kind = 49; break; case 26: if (curChar == 10 && kind > 49) kind = 49; break; case 27: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 26; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } else if (curChar == 92) jjCheckNAddStates(46, 49); if (curChar == 101) jjAddStates(50, 51); break; case 30: case 7: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 22: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 108) jjstateSet[jjnewStateCnt++] = 28; else if (curChar == 110) jjstateSet[jjnewStateCnt++] = 17; break; case 28: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 115) jjstateSet[jjnewStateCnt++] = 23; break; case 23: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 101) { if (kind > 49) kind = 49; jjAddStates(40, 42); } break; case 1: if (kind > 16) kind = 16; break; case 6: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 8: if (curChar == 92) jjCheckNAddStates(46, 49); break; case 9: if (curChar == 92) jjCheckNAddTwoStates(9, 10); break; case 11: if (curChar == 92) jjCheckNAddTwoStates(11, 12); break; case 13: if (curChar == 92) jjAddStates(52, 53); break; case 16: if (curChar == 101) jjAddStates(50, 51); break; case 17: if (curChar != 100) break; if (kind > 46) kind = 46; jjAddStates(43, 45); break; case 29: if (curChar == 108) jjstateSet[jjnewStateCnt++] = 28; break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 16) kind = 16; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 30 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/8e9e155e88430402b0d51d6b344267b73292ca2c/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
24,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
5196,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
741,
540,
288,
5411,
1620,
12,
78,
78,
2019,
694,
63,
413,
77,
5717,
5411,
288,
9079,
648,
890,
30,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5375,
288,
5397,
309,
261,
9224,
405,
18106,
13,
13491,
3846,
273,
18106,
31,
5397,
10684,
1564,
50,
986,
12,
25,
1769,
5375,
289,
5375,
469,
309,
261,
1397,
2156,
422,
6580,
13,
5375,
288,
5397,
309,
261,
9224,
405,
5958,
13,
13491,
3846,
273,
5958,
31,
5397,
10684,
1564,
50,
986,
11710,
7629,
12,
3437,
16,
5045,
1769,
5375,
289,
5375,
469,
309,
261,
1397,
2156,
422,
12292,
13,
5397,
10684,
1564,
50,
986,
12,
25,
1769,
5375,
469,
309,
261,
1397,
2156,
422,
13191,
13,
5397,
10684,
2019,
694,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
24,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
5196,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
2
] |
public void enable() { setEnabled(true);
|
public void enable() { this.enabled = true; if (peer != null) peer.setEnabled (true);
|
public void enable() { setEnabled(true); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Component.java/clean/core/src/classpath/java/java/awt/Component.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4237,
1435,
288,
202,
202,
542,
1526,
12,
3767,
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,
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,
225,
202,
482,
918,
4237,
1435,
288,
202,
202,
542,
1526,
12,
3767,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
iter = list.iterator(); size = list.size();
|
iter = directives.iterator(); size = directives.size();
|
static private LinkedList LookupInNominated( LookupData data, Declaration declaration, LinkedList transitiveDirectives ) throws ParserSymbolTableException{ //if the data.usingDirectives is empty, there is nothing to do. if( data.usingDirectives == null ){ return null; } LinkedList found = null; //list of found names to return //local variables LinkedList list = null; Iterator iter = null; Declaration decl = null; Declaration temp = null; int size = 0; list = (LinkedList) data.usingDirectives.remove( declaration ); if( list == null ){ return null; } iter = list.iterator(); size = list.size(); for( int i = size; i > 0; i-- ){ decl = (Declaration) iter.next(); //namespaces are searched at most once if( !data.visited.contains( decl ) ){ data.visited.add( decl ); temp = LookupInContained( data, decl ); //if we found something, add it to the list of found names if( temp != null ){ if( found == null ){ found = new LinkedList(); } found.add( temp ); } //only consider the transitive using directives if we are an unqualified //lookup, or we didn't find the name in decl if( (!data.qualified || temp == null) && decl._usingDirectives != null ){ //name wasn't found, add transitive using directives for later consideration transitiveDirectives.addAll( decl._usingDirectives ); } } } return found; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/09948618e89210b4fe0d381f7cf31dc3500e2b32/ParserSymbolTable.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ParserSymbolTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
3238,
10688,
8834,
382,
26685,
7458,
12,
8834,
751,
501,
16,
16110,
4302,
8266,
16,
10688,
30442,
25343,
262,
1216,
6783,
5335,
1388,
503,
95,
202,
202,
759,
430,
326,
501,
18,
9940,
25343,
353,
1008,
16,
1915,
353,
5083,
358,
741,
18,
202,
202,
430,
12,
501,
18,
9940,
25343,
422,
446,
262,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
6862,
202,
13174,
682,
1392,
273,
446,
31,
202,
759,
1098,
434,
1392,
1257,
358,
327,
9506,
202,
759,
3729,
3152,
202,
202,
13174,
682,
225,
666,
273,
446,
31,
202,
202,
3198,
565,
1400,
273,
446,
31,
202,
202,
6094,
3496,
273,
446,
31,
202,
202,
6094,
1906,
273,
446,
31,
202,
202,
474,
963,
273,
374,
31,
9506,
202,
1098,
273,
261,
13174,
682,
13,
501,
18,
9940,
25343,
18,
4479,
12,
8266,
11272,
9506,
202,
430,
12,
666,
422,
446,
262,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
9506,
202,
2165,
273,
666,
18,
9838,
5621,
202,
202,
1467,
273,
666,
18,
1467,
5621,
202,
202,
1884,
12,
509,
277,
273,
963,
31,
277,
405,
374,
31,
277,
413,
262,
95,
1082,
202,
8840,
273,
261,
6094,
13,
1400,
18,
4285,
5621,
1082,
202,
759,
16078,
854,
19242,
622,
4486,
3647,
1082,
202,
430,
12,
401,
892,
18,
30129,
18,
12298,
12,
3496,
262,
262,
95,
9506,
202,
892,
18,
30129,
18,
1289,
12,
3496,
11272,
6862,
9506,
202,
5814,
273,
8834,
382,
660,
8707,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
3238,
10688,
8834,
382,
26685,
7458,
12,
8834,
751,
501,
16,
16110,
4302,
8266,
16,
10688,
30442,
25343,
262,
1216,
6783,
5335,
1388,
503,
95,
202,
202,
759,
430,
326,
501,
18,
9940,
25343,
353,
1008,
16,
1915,
353,
5083,
358,
741,
18,
202,
202,
430,
12,
501,
18,
9940,
25343,
422,
446,
262,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
6862,
202,
13174,
682,
1392,
273,
446,
31,
202,
759,
1098,
434,
1392,
1257,
358,
327,
9506,
202,
759,
3729,
3152,
202,
202,
13174,
682,
225,
666,
273,
446,
31,
202,
202,
3198,
565,
1400,
273,
446,
31,
202,
202,
6094,
3496,
273,
446,
31,
202,
202,
6094,
1906,
273,
446,
31,
202,
2
] |
final CLabel label = new CLabel(parent, SWT.SHADOW_IN);
|
label = new CLabel(parent, SWT.SHADOW_IN);
|
public void fill(Composite parent) { final CLabel label = new CLabel(parent, SWT.SHADOW_IN); StatusLineLayoutData statusLineLayoutData = new StatusLineLayoutData(); if (widthHint < 0) { GC gc = new GC(parent); gc.setFont(parent.getFont()); widthHint = gc.getFontMetrics().getAverageCharWidth() * charWidth; gc.dispose(); } statusLineLayoutData.widthHint = widthHint; label.setLayoutData(statusLineLayoutData); label.setText(text); synchronized (labels) { labels.add(label); } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/edd4f9eab6fd7016da3fc2c181c9eac74a2bc5d1/StatusLineContributionItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/util/StatusLineContributionItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
12,
9400,
982,
13,
288,
1082,
202,
6385,
385,
2224,
1433,
273,
394,
385,
2224,
12,
2938,
16,
348,
8588,
18,
2664,
1880,
7306,
67,
706,
1769,
202,
202,
1482,
1670,
3744,
751,
1267,
1670,
3744,
751,
273,
394,
2685,
1670,
3744,
751,
5621,
9506,
202,
430,
261,
2819,
7002,
411,
374,
13,
288,
1082,
202,
15396,
8859,
273,
394,
15085,
12,
2938,
1769,
1082,
202,
13241,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
1082,
202,
2819,
7002,
273,
8859,
18,
588,
5711,
5653,
7675,
588,
17115,
2156,
2384,
1435,
380,
1149,
2384,
31,
1082,
202,
13241,
18,
2251,
4150,
5621,
202,
202,
97,
202,
202,
2327,
1670,
3744,
751,
18,
2819,
7002,
273,
1835,
7002,
31,
202,
202,
1925,
18,
542,
3744,
751,
12,
2327,
1670,
3744,
751,
1769,
202,
202,
1925,
18,
542,
1528,
12,
955,
1769,
202,
202,
22043,
261,
5336,
13,
288,
1082,
202,
5336,
18,
1289,
12,
1925,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3636,
12,
9400,
982,
13,
288,
1082,
202,
6385,
385,
2224,
1433,
273,
394,
385,
2224,
12,
2938,
16,
348,
8588,
18,
2664,
1880,
7306,
67,
706,
1769,
202,
202,
1482,
1670,
3744,
751,
1267,
1670,
3744,
751,
273,
394,
2685,
1670,
3744,
751,
5621,
9506,
202,
430,
261,
2819,
7002,
411,
374,
13,
288,
1082,
202,
15396,
8859,
273,
394,
15085,
12,
2938,
1769,
1082,
202,
13241,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
1082,
202,
2819,
7002,
273,
8859,
18,
588,
5711,
5653,
7675,
588,
17115,
2156,
2384,
1435,
380,
1149,
2384,
31,
1082,
202,
13241,
18,
2251,
4150,
5621,
202,
202,
97,
202,
202,
2327,
1670,
3744,
751,
18,
2819,
2
] |
context.preNodeEval(null, objectClass, self); } else { /* load in anonymous module as toplevel */ context.preNodeEval(RubyModule.newModule(this, null), context.getWrapper(), self);
|
/* default visibility is private at loading toplevel */ getCurrentContext().setCurrentVisibility(Visibility.PRIVATE);
|
public void loadNode(String scriptName, Node node, boolean wrap) { IRubyObject self = getTopSelf(); ThreadContext context = getCurrentContext(); RubyModule wrapper = context.getWrapper(); if (!wrap) { secure(4); /* should alter global state */ context.preNodeEval(null, objectClass, self); } else { /* load in anonymous module as toplevel */ context.preNodeEval(RubyModule.newModule(this, null), context.getWrapper(), self); self = getTopSelf().rbClone(); self.extendObject(context.getRubyClass()); } /* default visibility is private at loading toplevel */ getCurrentContext().setCurrentVisibility(Visibility.PRIVATE); try { self.eval(node); } catch (JumpException je) { if (je.getJumpType() == JumpException.JumpType.ReturnJump) { // Make sure this does not bubble out to java caller. } else { throw je; } } finally { context.postNodeEval(wrapper); } }
|
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/a1b8fc1d456e3d5c6e01579b88773383068aa85c/Ruby.java/buggy/src/org/jruby/Ruby.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1262,
907,
12,
780,
31008,
16,
2029,
756,
16,
1250,
2193,
13,
288,
3639,
15908,
10340,
921,
365,
273,
13729,
10084,
5621,
3639,
4884,
1042,
819,
273,
5175,
1042,
5621,
3639,
19817,
3120,
4053,
273,
819,
18,
588,
3611,
5621,
3639,
309,
16051,
4113,
13,
288,
5411,
8177,
12,
24,
1769,
1748,
1410,
10182,
2552,
919,
1195,
13491,
819,
18,
1484,
907,
13904,
12,
2011,
16,
23992,
16,
365,
1769,
3639,
289,
469,
288,
5411,
1748,
1262,
316,
13236,
1605,
487,
28999,
1195,
5411,
819,
18,
1484,
907,
13904,
12,
54,
10340,
3120,
18,
2704,
3120,
12,
2211,
16,
446,
3631,
819,
18,
588,
3611,
9334,
365,
1769,
13491,
365,
273,
13729,
10084,
7675,
6731,
10930,
5621,
5411,
365,
18,
14313,
921,
12,
2472,
18,
588,
54,
10340,
797,
10663,
3639,
289,
7734,
1748,
805,
9478,
353,
3238,
622,
7153,
28999,
1195,
3639,
5175,
1042,
7675,
542,
3935,
10135,
12,
10135,
18,
20055,
1769,
3639,
775,
288,
5411,
365,
18,
8622,
12,
2159,
1769,
3639,
289,
1044,
261,
26743,
503,
30356,
13,
288,
540,
202,
430,
261,
78,
73,
18,
588,
26743,
559,
1435,
422,
804,
2801,
503,
18,
26743,
559,
18,
990,
26743,
13,
288,
540,
202,
202,
759,
4344,
3071,
333,
1552,
486,
21577,
596,
358,
2252,
4894,
18,
540,
202,
97,
469,
288,
540,
202,
202,
12849,
30356,
31,
540,
202,
97,
3639,
289,
3095,
288,
5411,
819,
18,
2767,
907,
13904,
12,
8376,
1769,
3639,
289,
565,
289,
2,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1262,
907,
12,
780,
31008,
16,
2029,
756,
16,
1250,
2193,
13,
288,
3639,
15908,
10340,
921,
365,
273,
13729,
10084,
5621,
3639,
4884,
1042,
819,
273,
5175,
1042,
5621,
3639,
19817,
3120,
4053,
273,
819,
18,
588,
3611,
5621,
3639,
309,
16051,
4113,
13,
288,
5411,
8177,
12,
24,
1769,
1748,
1410,
10182,
2552,
919,
1195,
13491,
819,
18,
1484,
907,
13904,
12,
2011,
16,
23992,
16,
365,
1769,
3639,
289,
469,
288,
5411,
1748,
1262,
316,
13236,
1605,
487,
28999,
1195,
5411,
819,
18,
1484,
907,
13904,
12,
54,
10340,
3120,
18,
2704,
3120,
12,
2211,
16,
446,
3631,
819,
18,
588,
3611,
9334,
365,
1769,
13491,
365,
273,
13729,
10084,
7675,
6731,
10930,
2
] |
rs.close();
|
rs2.close();
|
public void testBlobSetNull6() throws Exception { Statement stmt = con.createStatement(); stmt.execute("CREATE TABLE #blobsetnull6 (data IMAGE NULL)"); stmt.close(); PreparedStatement pstmt = con.prepareStatement("INSERT INTO #blobsetnull6 (data) VALUES (?)"); // Test PreparedStatement.setNull() pstmt.setNull(1, Types.BLOB); assertTrue(pstmt.executeUpdate() == 1); pstmt.close(); Statement stmt2 = con.createStatement(); ResultSet rs = stmt2.executeQuery("SELECT data FROM #blobsetnull6"); assertTrue(rs.next()); // Test ResultSet.getBinaryStream() assertTrue(rs.getBinaryStream(1) == null); assertTrue(rs.wasNull()); // Test ResultSet.getBlob() assertTrue(rs.getBlob(1) == null); assertTrue(rs.wasNull()); // Test ResultSet.getBytes() assertTrue(rs.getBytes(1) == null); assertTrue(rs.wasNull()); // Test ResultSet.getObject() assertTrue(rs.getObject(1) == null); assertTrue(rs.wasNull()); assertTrue(!rs.next()); stmt2.close(); rs.close(); }
|
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/2f25d8afc1cabf96740fcbd0a069200d733dae83/LOBTest.java/clean/src/test/net/sourceforge/jtds/test/LOBTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9405,
694,
2041,
26,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
7567,
468,
10721,
542,
2011,
26,
261,
892,
10757,
3206,
2225,
1769,
3639,
3480,
18,
4412,
5621,
3639,
16913,
293,
10589,
273,
356,
18,
9366,
3406,
2932,
11356,
12421,
468,
10721,
542,
2011,
26,
261,
892,
13,
13477,
13590,
2225,
1769,
3639,
368,
7766,
16913,
18,
542,
2041,
1435,
3639,
293,
10589,
18,
542,
2041,
12,
21,
16,
7658,
18,
38,
6038,
1769,
3639,
1815,
5510,
12,
84,
10589,
18,
8837,
1891,
1435,
422,
404,
1769,
3639,
293,
10589,
18,
4412,
5621,
3639,
8056,
3480,
22,
273,
356,
18,
2640,
3406,
5621,
3639,
10842,
3597,
273,
3480,
22,
18,
8837,
1138,
2932,
4803,
501,
4571,
468,
10721,
542,
2011,
26,
8863,
3639,
1815,
5510,
12,
5453,
18,
4285,
10663,
3639,
368,
7766,
10842,
18,
588,
5905,
1228,
1435,
3639,
1815,
5510,
12,
5453,
18,
588,
5905,
1228,
12,
21,
13,
422,
446,
1769,
3639,
1815,
5510,
12,
5453,
18,
17416,
2041,
10663,
3639,
368,
7766,
10842,
18,
588,
9405,
1435,
3639,
1815,
5510,
12,
5453,
18,
588,
9405,
12,
21,
13,
422,
446,
1769,
3639,
1815,
5510,
12,
5453,
18,
17416,
2041,
10663,
3639,
368,
7766,
10842,
18,
588,
2160,
1435,
3639,
1815,
5510,
12,
5453,
18,
588,
2160,
12,
21,
13,
422,
446,
1769,
3639,
1815,
5510,
12,
5453,
18,
17416,
2041,
10663,
3639,
368,
7766,
10842,
18,
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,
1842,
9405,
694,
2041,
26,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
7567,
468,
10721,
542,
2011,
26,
261,
892,
10757,
3206,
2225,
1769,
3639,
3480,
18,
4412,
5621,
3639,
16913,
293,
10589,
273,
356,
18,
9366,
3406,
2932,
11356,
12421,
468,
10721,
542,
2011,
26,
261,
892,
13,
13477,
13590,
2225,
1769,
3639,
368,
7766,
16913,
18,
542,
2041,
1435,
3639,
293,
10589,
18,
542,
2041,
12,
21,
16,
7658,
18,
38,
6038,
1769,
3639,
1815,
5510,
12,
84,
10589,
18,
8837,
1891,
1435,
422,
404,
1769,
3639,
293,
10589,
18,
4412,
5621,
3639,
8056,
3480,
22,
273,
356,
18,
2640,
3406,
5621,
2
] |
public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[28]; try { result[0] = new PropertyDescriptor("accesskey", ELRadioTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("alt", ELRadioTag.class, null, "setAlt"); result[2] = new PropertyDescriptor("altKey", ELRadioTag.class, null, "setAltKey"); // This attribute has a non-standard mapping. result[3] = new PropertyDescriptor("disabled", ELRadioTag.class, null, "setDisabledExpr"); // This attribute has a non-standard mapping. result[4] = new PropertyDescriptor("indexed", ELRadioTag.class, null, "setIndexedExpr"); result[5] = new PropertyDescriptor("name", ELRadioTag.class, null, "setName"); result[6] = new PropertyDescriptor("onblur", ELRadioTag.class, null, "setOnblur"); result[7] = new PropertyDescriptor("onchange", ELRadioTag.class, null, "setOnchange"); result[8] = new PropertyDescriptor("onclick", ELRadioTag.class, null, "setOnclick"); result[9] = new PropertyDescriptor("ondblclick", ELRadioTag.class, null, "setOndblclick"); result[10] = new PropertyDescriptor("onfocus", ELRadioTag.class, null, "setOnfocus"); result[11] = new PropertyDescriptor("onkeydown", ELRadioTag.class, null, "setOnkeydown"); result[12] = new PropertyDescriptor("onkeypress", ELRadioTag.class, null, "setOnkeypress"); result[13] = new PropertyDescriptor("onkeyup", ELRadioTag.class, null, "setOnkeyup"); result[14] = new PropertyDescriptor("onmousedown", ELRadioTag.class, null, "setOnmousedown"); result[15] = new PropertyDescriptor("onmousemove", ELRadioTag.class, null, "setOnmousemove"); result[16] = new PropertyDescriptor("onmouseout", ELRadioTag.class, null, "setOnmouseout"); result[17] = new PropertyDescriptor("onmouseover", ELRadioTag.class, null, "setOnmouseover"); result[18] = new PropertyDescriptor("onmouseup", ELRadioTag.class, null, "setOnmouseup"); result[19] = new PropertyDescriptor("property", ELRadioTag.class, null, "setProperty"); result[20] = new PropertyDescriptor("style", ELRadioTag.class, null, "setStyle"); result[21] = new PropertyDescriptor("styleClass", ELRadioTag.class, null, "setStyleClass"); result[22] = new PropertyDescriptor("styleId", ELRadioTag.class, null, "setStyleId"); result[23] = new PropertyDescriptor("tabindex", ELRadioTag.class, null, "setTabindex"); result[24] = new PropertyDescriptor("title", ELRadioTag.class, null, "setTitle"); result[25] = new PropertyDescriptor("titleKey", ELRadioTag.class, null, "setTitleKey"); result[26] = new PropertyDescriptor("value", ELRadioTag.class, null, "setValue"); result[27] = new PropertyDescriptor("idName", ELRadioTag.class, null, "setIdName"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); }
|
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/ELRadioTagBeanInfo.java/buggy/struts-el/src/share/org/apache/strutsel/taglib/html/ELRadioTagBeanInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1396,
3187,
8526,
588,
1396,
12705,
1435,
95,
1396,
3187,
8526,
2088,
33,
2704,
1396,
3187,
63,
6030,
15533,
698,
95,
2088,
63,
20,
65,
33,
2704,
1396,
3187,
2932,
3860,
856,
3113,
2247,
19984,
1805,
18,
1106,
16,
2011,
10837,
542,
1862,
856,
8863,
2088,
63,
21,
65,
33,
2704,
1396,
3187,
2932,
2390,
3113,
2247,
19984,
1805,
18,
1106,
16,
2011,
10837,
542,
10655,
8863,
2088,
63,
22,
65,
33,
2704,
1396,
3187,
2932,
2390,
653,
3113,
2247,
19984,
1805,
18,
1106,
16,
2011,
10837,
542,
10655,
653,
8863,
759,
2503,
4589,
5332,
304,
265,
17,
10005,
6770,
18,
2088,
63,
23,
65,
33,
2704,
1396,
3187,
2932,
9278,
3113,
2247,
19984,
1805,
18,
1106,
16,
2011,
10837,
542,
8853,
4742,
8863,
759,
2503,
4589,
5332,
304,
265,
17,
10005,
6770,
18,
2088,
63,
24,
65,
33,
2704,
1396,
3187,
2932,
19626,
3113,
2247,
19984,
1805,
18,
1106,
16,
2011,
10837,
542,
15034,
4742,
8863,
2088,
63,
25,
65,
33,
2704,
1396,
3187,
2932,
529,
3113,
2247,
19984,
1805,
18,
1106,
16,
2011,
10837,
542,
461,
8863,
2088,
63,
26,
65,
33,
2704,
1396,
3187,
2932,
265,
27065,
3113,
2247,
19984,
1805,
18,
1106,
16,
2011,
10837,
542,
1398,
27065,
8863,
2088,
63,
27,
65,
33,
2704,
1396,
3187,
2932,
265,
3427,
3113,
2247,
19984,
1805,
18,
1106,
16,
2011,
10837,
542,
1398,
3427,
8863,
2088,
63,
28,
65,
33,
2704,
1396,
3187,
2932,
265,
7475,
3113,
2247,
19984,
1805,
18,
1106,
16,
2011,
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,
1396,
3187,
8526,
588,
1396,
12705,
1435,
95,
1396,
3187,
8526,
2088,
33,
2704,
1396,
3187,
63,
6030,
15533,
698,
95,
2088,
63,
20,
65,
33,
2704,
1396,
3187,
2932,
3860,
856,
3113,
2247,
19984,
1805,
18,
1106,
16,
2011,
10837,
542,
1862,
856,
8863,
2088,
63,
21,
65,
33,
2704,
1396,
3187,
2932,
2390,
3113,
2247,
19984,
1805,
18,
1106,
16,
2011,
10837,
542,
10655,
8863,
2088,
63,
22,
65,
33,
2704,
1396,
3187,
2932,
2390,
653,
3113,
2247,
19984,
1805,
18,
1106,
16,
2011,
10837,
542,
10655,
653,
8863,
759,
2503,
4589,
5332,
304,
265,
17,
10005,
6770,
18,
2088,
63,
23,
65,
33,
2704,
1396,
3187,
2932,
9278,
3113,
2247,
19984,
1805,
18,
1106,
16,
2
] |
||
throws FenixFilterException, FenixServiceException { return null; }
|
throws FenixFilterException, FenixServiceException { return null; }
|
protected IGroup[] getAllowedGroups(HttpServletRequest request, IGroup[] selectedGroups) throws FenixFilterException, FenixServiceException { // TODO Auto-generated method stub return null; }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/7a0c46554f101cca44c09e6e1f6f5b7402043864/SendMailToDegreeCurricularPlanStudents.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/cms/messaging/mailSender/SendMailToDegreeCurricularPlanStudents.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
1114,
8526,
26898,
3621,
12,
2940,
18572,
590,
16,
467,
1114,
8526,
3170,
3621,
13,
1082,
202,
15069,
478,
275,
697,
1586,
503,
16,
478,
275,
697,
15133,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
1117,
467,
1114,
8526,
26898,
3621,
12,
2940,
18572,
590,
16,
467,
1114,
8526,
3170,
3621,
13,
1082,
202,
15069,
478,
275,
697,
1586,
503,
16,
478,
275,
697,
15133,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
202,
2463,
446,
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
] |
return MOVE_FOLDED;
|
return DefUseEffect.MOVE_FOLDED;
|
private static byte longXor(OPT_Instruction s) { if (CF_LONG) { canonicalizeCommutativeOperator(s); OPT_Operand op1 = Binary.getVal1(s); OPT_Operand op2 = Binary.getVal2(s); if (op1.similar(op2)) { // THE SAME OPERAND: x ^ x == 0 Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(0)); return MOVE_FOLDED; } if (op2.isLongConstant()) { long val2 = op2.asLongConstant().value; if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(val1 ^ val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == -1L) { // x ^ -1L == x ^ 0xff..ff = ~x Unary.mutate(s, LONG_NOT, Binary.getClearResult(s), Binary.getClearVal1(s)); return REDUCED; } if (val2 == 0L) { // x ^ 0L == x Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/582eb14323a5e74a2c99b6035e34aa59e229d896/OPT_Simplifier.java/clean/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1160,
1525,
60,
280,
12,
15620,
67,
11983,
272,
13,
288,
282,
309,
261,
8955,
67,
14639,
13,
288,
1377,
25839,
799,
10735,
1535,
5592,
12,
87,
1769,
1377,
16456,
67,
10265,
1061,
21,
273,
7896,
18,
588,
3053,
21,
12,
87,
1769,
1377,
16456,
67,
10265,
1061,
22,
273,
7896,
18,
588,
3053,
22,
12,
87,
1769,
1377,
309,
261,
556,
21,
18,
22985,
12,
556,
22,
3719,
288,
3639,
368,
12786,
348,
1642,
17205,
4307,
30,
619,
3602,
619,
422,
374,
3639,
9933,
18,
10735,
340,
12,
87,
16,
14011,
67,
16537,
16,
7896,
18,
588,
9094,
1253,
12,
87,
3631,
5397,
27727,
12,
20,
10019,
3639,
327,
10922,
3727,
12477,
18,
16537,
67,
42,
1741,
7660,
31,
1377,
289,
1377,
309,
261,
556,
22,
18,
291,
3708,
6902,
10756,
288,
3639,
1525,
1244,
22,
273,
1061,
22,
18,
345,
3708,
6902,
7675,
1132,
31,
3639,
309,
261,
556,
21,
18,
291,
3708,
6902,
10756,
288,
1850,
368,
29370,
24023,
55,
30,
478,
11846,
1850,
1525,
1244,
21,
273,
1061,
21,
18,
345,
3708,
6902,
7675,
1132,
31,
1850,
9933,
18,
10735,
340,
12,
87,
16,
14011,
67,
16537,
16,
7896,
18,
588,
9094,
1253,
12,
87,
3631,
15604,
27727,
12,
1125,
21,
3602,
1244,
22,
10019,
1850,
327,
10922,
3727,
12477,
18,
16537,
67,
42,
1741,
7660,
31,
3639,
289,
469,
288,
1850,
368,
20747,
7247,
22,
4437,
24023,
30,
14464,
16988,
1856,
8493,
14410,
23893,
29539,
45,
1872,
55,
1850,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1160,
1525,
60,
280,
12,
15620,
67,
11983,
272,
13,
288,
282,
309,
261,
8955,
67,
14639,
13,
288,
1377,
25839,
799,
10735,
1535,
5592,
12,
87,
1769,
1377,
16456,
67,
10265,
1061,
21,
273,
7896,
18,
588,
3053,
21,
12,
87,
1769,
1377,
16456,
67,
10265,
1061,
22,
273,
7896,
18,
588,
3053,
22,
12,
87,
1769,
1377,
309,
261,
556,
21,
18,
22985,
12,
556,
22,
3719,
288,
3639,
368,
12786,
348,
1642,
17205,
4307,
30,
619,
3602,
619,
422,
374,
3639,
9933,
18,
10735,
340,
12,
87,
16,
14011,
67,
16537,
16,
7896,
18,
588,
9094,
1253,
12,
87,
3631,
5397,
27727,
12,
20,
10019,
3639,
327,
10922,
3727,
12477,
18,
16537,
67,
2
] |
String value = null; LdapSyntaxDescription lsd = null; value = "( 1.1 )"; lsd = parser.parseLdapSyntaxDescription( value ); assertEquals( 0, lsd.getExtensions().size() ); value = "( 1.1 X-TEST 'test' )"; lsd = parser.parseLdapSyntaxDescription( value ); assertEquals( 1, lsd.getExtensions().size() ); assertNotNull( lsd.getExtensions().get( "X-TEST" ) ); assertEquals( 1, lsd.getExtensions().get( "X-TEST" ).size() ); assertEquals( "test", lsd.getExtensions().get( "X-TEST" ).get( 0 ) ); value = "( 1.1 X-TEST-ABC ('test1' 'test äöüß' 'test 部長' ) )"; lsd = parser.parseLdapSyntaxDescription( value ); assertEquals( 1, lsd.getExtensions().size() ); assertNotNull( lsd.getExtensions().get( "X-TEST-ABC" ) ); assertEquals( 3, lsd.getExtensions().get( "X-TEST-ABC" ).size() ); assertEquals( "test1", lsd.getExtensions().get( "X-TEST-ABC" ).get( 0 ) ); assertEquals( "test äöüß", lsd.getExtensions().get( "X-TEST-ABC" ).get( 1 ) ); assertEquals( "test 部長", lsd.getExtensions().get( "X-TEST-ABC" ).get( 2 ) ); value = "(1.1 X-TEST-a ('test1-1' 'test1-2') X-TEST-b ('test2-1' 'test2-2'))"; lsd = parser.parseLdapSyntaxDescription( value ); assertEquals( 2, lsd.getExtensions().size() ); assertNotNull( lsd.getExtensions().get( "X-TEST-a" ) ); assertEquals( 2, lsd.getExtensions().get( "X-TEST-a" ).size() ); assertEquals( "test1-1", lsd.getExtensions().get( "X-TEST-a" ).get( 0 ) ); assertEquals( "test1-2", lsd.getExtensions().get( "X-TEST-a" ).get( 1 ) ); assertNotNull( lsd.getExtensions().get( "X-TEST-b" ) ); assertEquals( 2, lsd.getExtensions().get( "X-TEST-b" ).size() ); assertEquals( "test2-1", lsd.getExtensions().get( "X-TEST-b" ).get( 0 ) ); assertEquals( "test2-2", lsd.getExtensions().get( "X-TEST-b" ).get( 1 ) ); value = "( 1.1 X-TEST1 'test' )"; try { lsd = parser.parseLdapSyntaxDescription( value ); fail( "Exception expected, invalid extension X-TEST1 (no number allowed)" ); } catch ( ParseException pe ) { }
|
SchemaParserTestUtils.testExtensions( parser );
|
public void testExtensions() throws ParseException { String value = null; LdapSyntaxDescription lsd = null; // no extension value = "( 1.1 )"; lsd = parser.parseLdapSyntaxDescription( value ); assertEquals( 0, lsd.getExtensions().size() ); // single extension with one value value = "( 1.1 X-TEST 'test' )"; lsd = parser.parseLdapSyntaxDescription( value ); assertEquals( 1, lsd.getExtensions().size() ); assertNotNull( lsd.getExtensions().get( "X-TEST" ) ); assertEquals( 1, lsd.getExtensions().get( "X-TEST" ).size() ); assertEquals( "test", lsd.getExtensions().get( "X-TEST" ).get( 0 ) ); // single extension with multiple values value = "( 1.1 X-TEST-ABC ('test1' 'test äöüß' 'test 部長' ) )"; lsd = parser.parseLdapSyntaxDescription( value ); assertEquals( 1, lsd.getExtensions().size() ); assertNotNull( lsd.getExtensions().get( "X-TEST-ABC" ) ); assertEquals( 3, lsd.getExtensions().get( "X-TEST-ABC" ).size() ); assertEquals( "test1", lsd.getExtensions().get( "X-TEST-ABC" ).get( 0 ) ); assertEquals( "test äöüß", lsd.getExtensions().get( "X-TEST-ABC" ).get( 1 ) ); assertEquals( "test 部長", lsd.getExtensions().get( "X-TEST-ABC" ).get( 2 ) ); // multiple extensions value = "(1.1 X-TEST-a ('test1-1' 'test1-2') X-TEST-b ('test2-1' 'test2-2'))"; lsd = parser.parseLdapSyntaxDescription( value ); assertEquals( 2, lsd.getExtensions().size() ); assertNotNull( lsd.getExtensions().get( "X-TEST-a" ) ); assertEquals( 2, lsd.getExtensions().get( "X-TEST-a" ).size() ); assertEquals( "test1-1", lsd.getExtensions().get( "X-TEST-a" ).get( 0 ) ); assertEquals( "test1-2", lsd.getExtensions().get( "X-TEST-a" ).get( 1 ) ); assertNotNull( lsd.getExtensions().get( "X-TEST-b" ) ); assertEquals( 2, lsd.getExtensions().get( "X-TEST-b" ).size() ); assertEquals( "test2-1", lsd.getExtensions().get( "X-TEST-b" ).get( 0 ) ); assertEquals( "test2-2", lsd.getExtensions().get( "X-TEST-b" ).get( 1 ) ); // invalid extension, no number allowed value = "( 1.1 X-TEST1 'test' )"; try { lsd = parser.parseLdapSyntaxDescription( value ); fail( "Exception expected, invalid extension X-TEST1 (no number allowed)" ); } catch ( ParseException pe ) { // expected } }
|
54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/23b01e758326830e61fb79cdcbe5503ce7e0fb4c/SchemaParserLdapSyntaxDescriptionTest.java/clean/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserLdapSyntaxDescriptionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
7513,
1435,
1216,
10616,
565,
288,
3639,
514,
460,
273,
446,
31,
3639,
18053,
8070,
3291,
328,
6427,
273,
446,
31,
3639,
368,
1158,
2710,
3639,
460,
273,
7751,
404,
18,
21,
262,
14432,
3639,
328,
6427,
273,
2082,
18,
2670,
18437,
8070,
3291,
12,
460,
11272,
3639,
1815,
8867,
12,
374,
16,
328,
6427,
18,
588,
7513,
7675,
1467,
1435,
11272,
3639,
368,
2202,
2710,
598,
1245,
460,
3639,
460,
273,
7751,
404,
18,
21,
1139,
17,
16961,
296,
3813,
11,
262,
14432,
3639,
328,
6427,
273,
2082,
18,
2670,
18437,
8070,
3291,
12,
460,
11272,
3639,
1815,
8867,
12,
404,
16,
328,
6427,
18,
588,
7513,
7675,
1467,
1435,
11272,
3639,
25395,
12,
328,
6427,
18,
588,
7513,
7675,
588,
12,
315,
60,
17,
16961,
6,
262,
11272,
3639,
1815,
8867,
12,
404,
16,
328,
6427,
18,
588,
7513,
7675,
588,
12,
315,
60,
17,
16961,
6,
262,
18,
1467,
1435,
11272,
3639,
1815,
8867,
12,
315,
3813,
3113,
328,
6427,
18,
588,
7513,
7675,
588,
12,
315,
60,
17,
16961,
6,
262,
18,
588,
12,
374,
262,
11272,
3639,
368,
2202,
2710,
598,
3229,
924,
3639,
460,
273,
7751,
404,
18,
21,
1139,
17,
16961,
17,
26904,
7707,
3813,
21,
11,
296,
3813,
225,
132,
102,
132,
119,
132,
125,
132,
258,
11,
4202,
296,
3813,
225,
170,
230,
106,
170,
248,
120,
11,
262,
262,
14432,
3639,
328,
6427,
273,
2082,
18,
2670,
18437,
8070,
3291,
12,
460,
11272,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
7513,
1435,
1216,
10616,
565,
288,
3639,
514,
460,
273,
446,
31,
3639,
18053,
8070,
3291,
328,
6427,
273,
446,
31,
3639,
368,
1158,
2710,
3639,
460,
273,
7751,
404,
18,
21,
262,
14432,
3639,
328,
6427,
273,
2082,
18,
2670,
18437,
8070,
3291,
12,
460,
11272,
3639,
1815,
8867,
12,
374,
16,
328,
6427,
18,
588,
7513,
7675,
1467,
1435,
11272,
3639,
368,
2202,
2710,
598,
1245,
460,
3639,
460,
273,
7751,
404,
18,
21,
1139,
17,
16961,
296,
3813,
11,
262,
14432,
3639,
328,
6427,
273,
2082,
18,
2670,
18437,
8070,
3291,
12,
460,
11272,
3639,
1815,
8867,
12,
404,
16,
328,
6427,
18,
588,
7513,
7675,
1467,
1435,
11272,
3639,
25395,
12,
2
] |
try { if (!shouldCheckin(dialog, project)) { return;
|
lvcsAction.finish(); FileStatusManager.getInstance(project).fileStatusesChanged(); final Refreshable refreshablePanel = context.getRefreshableDialog(); if (refreshablePanel != null) { refreshablePanel.refresh(); } refreshFileView(project);
|
public void run() { try { if (!shouldCheckin(dialog, project)) { return; } CheckinProjectPanelImpl checkinProjectPanel = (CheckinProjectPanelImpl)dialog.getCheckinProjectPanel(); final Map<CheckinEnvironment, List<VcsOperation>> checkinOperations = checkinProjectPanel.getCheckinOperations(); Runnable checkinAction = new Runnable() { public void run() { for (CheckinEnvironment checkinEnvironment : checkinOperations.keySet()) { vcsExceptions.addAll(checkinEnvironment.commit(dialog, project)); } final LvcsAction lvcsAction = LocalVcs.getInstance(project).startAction(getActionName(context), "", true); VirtualFileManager.getInstance().refresh(true, new Runnable() { public void run() { lvcsAction.finish(); FileStatusManager.getInstance(project).fileStatusesChanged(); if (refreshablePanel != null) { refreshablePanel.refresh(); } refreshFileView(project); } }); AbstractVcsHelper.getInstance(project).showErrors(vcsExceptions, getActionName(context)); } }; ProgressManager.getInstance().runProcessWithProgressSynchronously(checkinAction, getActionName(context), true, project); } finally { dialog.dispose(); } }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/48ae060821cf118891a0ad9620ec944b5fdbdd03/AbstractCommonCheckinAction.java/buggy/source/com/intellij/openapi/vcs/actions/AbstractCommonCheckinAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1086,
1435,
288,
3639,
775,
288,
1850,
309,
16051,
13139,
1564,
267,
12,
12730,
16,
1984,
3719,
288,
5411,
327,
31,
1850,
289,
1850,
2073,
267,
4109,
5537,
2828,
866,
267,
4109,
5537,
273,
261,
1564,
267,
4109,
5537,
2828,
13,
12730,
18,
588,
1564,
267,
4109,
5537,
5621,
1850,
727,
1635,
32,
1564,
267,
5494,
16,
987,
32,
58,
2143,
2988,
9778,
866,
267,
9343,
273,
866,
267,
4109,
5537,
18,
588,
1564,
267,
9343,
5621,
1850,
10254,
866,
267,
1803,
273,
394,
10254,
1435,
288,
5411,
1071,
918,
1086,
1435,
288,
2868,
364,
261,
1564,
267,
5494,
866,
267,
5494,
294,
866,
267,
9343,
18,
856,
694,
10756,
288,
7734,
20255,
11416,
18,
1289,
1595,
12,
1893,
267,
5494,
18,
7371,
12,
12730,
16,
1984,
10019,
2868,
289,
2868,
727,
511,
18982,
1803,
5362,
2143,
1803,
273,
3566,
58,
2143,
18,
588,
1442,
12,
4406,
2934,
1937,
1803,
12,
588,
31149,
12,
2472,
3631,
23453,
638,
1769,
2868,
7269,
812,
1318,
18,
588,
1442,
7675,
9144,
12,
3767,
16,
394,
10254,
1435,
288,
7734,
1071,
918,
1086,
1435,
288,
5375,
5362,
2143,
1803,
18,
13749,
5621,
5375,
24366,
1318,
18,
588,
1442,
12,
4406,
2934,
768,
15220,
5033,
5621,
5375,
309,
261,
9144,
429,
5537,
480,
446,
13,
288,
10792,
4460,
429,
5537,
18,
9144,
5621,
5375,
289,
5375,
4460,
812,
1767,
12,
4406,
1769,
7734,
289,
2868,
15549,
2868,
4115,
58,
2143,
2276,
18,
588,
1442,
12,
4406,
2934,
4500,
4229,
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,
4202,
1071,
918,
1086,
1435,
288,
3639,
775,
288,
1850,
309,
16051,
13139,
1564,
267,
12,
12730,
16,
1984,
3719,
288,
5411,
327,
31,
1850,
289,
1850,
2073,
267,
4109,
5537,
2828,
866,
267,
4109,
5537,
273,
261,
1564,
267,
4109,
5537,
2828,
13,
12730,
18,
588,
1564,
267,
4109,
5537,
5621,
1850,
727,
1635,
32,
1564,
267,
5494,
16,
987,
32,
58,
2143,
2988,
9778,
866,
267,
9343,
273,
866,
267,
4109,
5537,
18,
588,
1564,
267,
9343,
5621,
1850,
10254,
866,
267,
1803,
273,
394,
10254,
1435,
288,
5411,
1071,
918,
1086,
1435,
288,
2868,
364,
261,
1564,
267,
5494,
866,
267,
5494,
294,
866,
267,
9343,
18,
856,
694,
10756,
288,
7734,
20255,
11416,
18,
1289,
2
] |
public boolean predicate2(Object dm, Designer dsgr) { if (!(ModelFacade.isAClassifier(dm))) return NO_PROBLEM; if (!(ModelFacade.isPrimaryObject(dm))) return NO_PROBLEM; // if the object does not have a name, // than no problem if ((ModelFacade.getName(dm) == null) || ("".equals(ModelFacade.getName(dm)))) return NO_PROBLEM; // abstract elements do not necessarily require associations if (ModelFacade.isAGeneralizableElement(dm) && ModelFacade.isAbstract(dm)) { return NO_PROBLEM; } // types can probably have associations, but we should not nag at them // not having any. // utility is a namespace collection - also not strictly required // to have associations. if (ModelFacade.isType(dm)) return NO_PROBLEM; if (ModelFacade.isUtility(dm)) return NO_PROBLEM; //TODO: different critic or special message for classes //that inherit all ops but define none of their own. if (findAssociation(dm, 0)) return NO_PROBLEM; return PROBLEM_FOUND; }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/b09c139e782889d7361851c21f0f2722ba1b9668/CrNoAssociations.java/clean/src_new/org/argouml/uml/cognitive/critics/CrNoAssociations.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
5641,
22,
12,
921,
9113,
16,
29703,
264,
302,
1055,
86,
13,
288,
3639,
309,
16051,
12,
1488,
12467,
18,
291,
37,
13860,
12,
10956,
20349,
5411,
327,
3741,
67,
3373,
38,
26817,
31,
3639,
309,
16051,
12,
1488,
12467,
18,
291,
6793,
921,
12,
10956,
20349,
5411,
327,
3741,
67,
3373,
38,
26817,
31,
3639,
368,
309,
326,
733,
1552,
486,
1240,
279,
508,
16,
3639,
368,
2353,
1158,
6199,
3639,
309,
14015,
1488,
12467,
18,
17994,
12,
10956,
13,
422,
446,
13,
5411,
747,
261,
3660,
18,
14963,
12,
1488,
12467,
18,
17994,
12,
10956,
3719,
3719,
5411,
327,
3741,
67,
3373,
38,
26817,
31,
7734,
368,
8770,
2186,
741,
486,
23848,
2583,
14474,
3639,
309,
261,
1488,
12467,
18,
291,
1781,
708,
287,
6934,
1046,
12,
10956,
13,
597,
2398,
3164,
12467,
18,
291,
7469,
12,
10956,
3719,
288,
5411,
327,
3741,
67,
3373,
38,
26817,
31,
3639,
289,
3639,
368,
1953,
848,
8656,
1240,
14474,
16,
1496,
732,
1410,
486,
290,
346,
622,
2182,
3639,
368,
486,
7999,
1281,
18,
3639,
368,
12788,
353,
279,
1981,
1849,
300,
2546,
486,
23457,
1931,
540,
368,
358,
1240,
14474,
18,
3639,
309,
261,
1488,
12467,
18,
291,
559,
12,
10956,
3719,
5411,
327,
3741,
67,
3373,
38,
26817,
31,
3639,
309,
261,
1488,
12467,
18,
291,
6497,
12,
10956,
3719,
5411,
327,
3741,
67,
3373,
38,
26817,
31,
3639,
368,
6241,
30,
3775,
7921,
335,
578,
4582,
883,
364,
3318,
3639,
368,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
5641,
22,
12,
921,
9113,
16,
29703,
264,
302,
1055,
86,
13,
288,
3639,
309,
16051,
12,
1488,
12467,
18,
291,
37,
13860,
12,
10956,
20349,
5411,
327,
3741,
67,
3373,
38,
26817,
31,
3639,
309,
16051,
12,
1488,
12467,
18,
291,
6793,
921,
12,
10956,
20349,
5411,
327,
3741,
67,
3373,
38,
26817,
31,
3639,
368,
309,
326,
733,
1552,
486,
1240,
279,
508,
16,
3639,
368,
2353,
1158,
6199,
3639,
309,
14015,
1488,
12467,
18,
17994,
12,
10956,
13,
422,
446,
13,
5411,
747,
261,
3660,
18,
14963,
12,
1488,
12467,
18,
17994,
12,
10956,
3719,
3719,
5411,
327,
3741,
67,
3373,
38,
26817,
31,
7734,
368,
8770,
2186,
741,
486,
23848,
2583,
14474,
2
] |
||
if (this.binding.isClass() || this.binding.isInterface()) {
|
if (isClass() || isInterface()) {
|
public boolean isAnonymous() { if (this.binding.isClass() || this.binding.isInterface()) { ReferenceBinding referenceBinding = (ReferenceBinding) this.binding; return referenceBinding.isAnonymousType(); } return false; }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/cab0d5a61247dd56c3860148ec39ed228f1ede1b/TypeBinding.java/buggy/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
18792,
1435,
288,
202,
202,
430,
261,
2211,
18,
7374,
18,
291,
797,
1435,
747,
333,
18,
7374,
18,
291,
1358,
10756,
288,
1082,
202,
2404,
5250,
2114,
5250,
273,
261,
2404,
5250,
13,
333,
18,
7374,
31,
1082,
202,
2463,
2114,
5250,
18,
291,
18792,
559,
5621,
202,
202,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
18792,
1435,
288,
202,
202,
430,
261,
2211,
18,
7374,
18,
291,
797,
1435,
747,
333,
18,
7374,
18,
291,
1358,
10756,
288,
1082,
202,
2404,
5250,
2114,
5250,
273,
261,
2404,
5250,
13,
333,
18,
7374,
31,
1082,
202,
2463,
2114,
5250,
18,
291,
18792,
559,
5621,
202,
202,
97,
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
] |
bitsPerSample = properties.getInt(FrontEnd.PROP_BITS_PER_SAMPLE, 16); sampleRate = properties.getInt(FrontEnd.PROP_SAMPLE_RATE, 8000);
|
bitsPerSample = properties.getInt (FrontEnd.PROP_PREFIX + FrontEnd.PROP_BITS_PER_SAMPLE, 16); sampleRate = properties.getInt (FrontEnd.PROP_PREFIX + FrontEnd.PROP_SAMPLE_RATE, 16000);
|
public Utterance(String name, String context) { this.name = name; audioBuffer = new Vector(); // get the Sphinx properties SphinxProperties properties = SphinxProperties.getSphinxProperties(context); bitsPerSample = properties.getInt(FrontEnd.PROP_BITS_PER_SAMPLE, 16); sampleRate = properties.getInt(FrontEnd.PROP_SAMPLE_RATE, 8000); float windowSizeInMs = properties.getFloat (FrontEnd.PROP_WINDOW_SIZE_MS, 25.625F); float windowShiftInMs = properties.getFloat (FrontEnd.PROP_WINDOW_SHIFT_MS, 10.0F); windowSizeInBytes = Util.getSamplesPerWindow (sampleRate, windowSizeInMs) * 2; windowShiftInBytes = Util.getSamplesPerShift (sampleRate, windowShiftInMs) * 2; }
|
47105 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47105/6b147ef29ade7c74547f96d06222cb31c78a5c3d/Utterance.java/buggy/sphinx4/edu/cmu/sphinx/frontend/Utterance.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
587,
88,
387,
1359,
12,
780,
508,
16,
514,
819,
13,
288,
3639,
333,
18,
529,
273,
508,
31,
3639,
7447,
1892,
273,
394,
5589,
5621,
3639,
368,
336,
326,
348,
15922,
1790,
3639,
348,
15922,
2297,
1790,
273,
2398,
348,
15922,
2297,
18,
588,
55,
15922,
2297,
12,
2472,
1769,
3639,
4125,
2173,
8504,
273,
1790,
18,
588,
1702,
12,
9580,
1638,
18,
15811,
67,
25171,
67,
3194,
67,
55,
21373,
16,
2872,
1769,
3639,
27505,
273,
1790,
18,
588,
1702,
12,
9580,
1638,
18,
15811,
67,
55,
21373,
67,
24062,
16,
1725,
3784,
1769,
7734,
1431,
27064,
382,
6947,
273,
1790,
18,
588,
4723,
5411,
261,
9580,
1638,
18,
15811,
67,
23407,
67,
4574,
67,
3537,
16,
6969,
18,
26,
2947,
42,
1769,
3639,
1431,
2742,
10544,
382,
6947,
273,
1790,
18,
588,
4723,
5411,
261,
9580,
1638,
18,
15811,
67,
23407,
67,
23191,
67,
3537,
16,
1728,
18,
20,
42,
1769,
7734,
27064,
16144,
273,
3564,
18,
588,
13239,
2173,
3829,
5411,
261,
6358,
4727,
16,
27064,
382,
6947,
13,
380,
576,
31,
3639,
2742,
10544,
16144,
273,
3564,
18,
588,
13239,
2173,
10544,
5411,
261,
6358,
4727,
16,
2742,
10544,
382,
6947,
13,
380,
576,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
587,
88,
387,
1359,
12,
780,
508,
16,
514,
819,
13,
288,
3639,
333,
18,
529,
273,
508,
31,
3639,
7447,
1892,
273,
394,
5589,
5621,
3639,
368,
336,
326,
348,
15922,
1790,
3639,
348,
15922,
2297,
1790,
273,
2398,
348,
15922,
2297,
18,
588,
55,
15922,
2297,
12,
2472,
1769,
3639,
4125,
2173,
8504,
273,
1790,
18,
588,
1702,
12,
9580,
1638,
18,
15811,
67,
25171,
67,
3194,
67,
55,
21373,
16,
2872,
1769,
3639,
27505,
273,
1790,
18,
588,
1702,
12,
9580,
1638,
18,
15811,
67,
55,
21373,
67,
24062,
16,
1725,
3784,
1769,
7734,
1431,
27064,
382,
6947,
273,
1790,
18,
588,
4723,
5411,
261,
9580,
1638,
18,
15811,
67,
23407,
67,
4574,
67,
2
] |
eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.SCALE__UNIT, oldUnit, unit, !oldUnitESet));
|
eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.SCALE__UNIT, oldUnit, unit, !oldUnitESet));
|
public void setUnit(ScaleUnitType newUnit) { ScaleUnitType oldUnit = unit; unit = newUnit == null ? UNIT_EDEFAULT : newUnit; boolean oldUnitESet = unitESet; unitESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.SCALE__UNIT, oldUnit, unit, !oldUnitESet)); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ScaleImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/ScaleImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2802,
12,
5587,
2802,
559,
394,
2802,
13,
565,
288,
3639,
12591,
2802,
559,
1592,
2802,
273,
2836,
31,
3639,
2836,
273,
394,
2802,
422,
446,
692,
28721,
67,
11236,
294,
394,
2802,
31,
3639,
1250,
1592,
2802,
41,
694,
273,
2836,
41,
694,
31,
3639,
2836,
41,
694,
273,
638,
31,
3639,
309,
261,
73,
21107,
10756,
5411,
22596,
12,
2704,
19953,
12,
2211,
16,
8050,
18,
4043,
16,
5435,
2261,
18,
19378,
972,
15736,
16,
1592,
2802,
16,
2836,
16,
401,
1673,
2802,
41,
694,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2802,
12,
5587,
2802,
559,
394,
2802,
13,
565,
288,
3639,
12591,
2802,
559,
1592,
2802,
273,
2836,
31,
3639,
2836,
273,
394,
2802,
422,
446,
692,
28721,
67,
11236,
294,
394,
2802,
31,
3639,
1250,
1592,
2802,
41,
694,
273,
2836,
41,
694,
31,
3639,
2836,
41,
694,
273,
638,
31,
3639,
309,
261,
73,
21107,
10756,
5411,
22596,
12,
2704,
19953,
12,
2211,
16,
8050,
18,
4043,
16,
5435,
2261,
18,
19378,
972,
15736,
16,
1592,
2802,
16,
2836,
16,
401,
1673,
2802,
41,
694,
10019,
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
] |
dataModel.loadFromXMLFile(Main.SAVE_DIR + JFritz.QUICKDIALS_FILE);
|
public QuickDialPanel() { setLayout(new BorderLayout()); dataModel = new QuickDials(); // dataModel.getQuickDialDataFromFritzBox(); dataModel.addTableModelListener(new TableModelListener() { public void tableChanged(TableModelEvent e) { updateButtons(); } }); dataModel.loadFromXMLFile(Main.SAVE_DIR + JFritz.QUICKDIALS_FILE); add(createQuickDialToolBar(), BorderLayout.NORTH); add(createQuickDialTable(), BorderLayout.CENTER); }
|
7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/8fb294b3f9ebd80a429ca7c5b84f346ae0b83a0e/QuickDialPanel.java/clean/jfritz/src/de/moonflower/jfritz/dialogs/quickdial/QuickDialPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19884,
11885,
5537,
1435,
288,
202,
202,
542,
3744,
12,
2704,
30814,
10663,
202,
202,
892,
1488,
273,
394,
19884,
11885,
87,
5621,
202,
202,
759,
27600,
18,
588,
13663,
11885,
751,
1265,
42,
583,
94,
3514,
5621,
202,
202,
892,
1488,
18,
1289,
1388,
1488,
2223,
12,
2704,
3555,
1488,
2223,
1435,
288,
1082,
202,
482,
918,
1014,
5033,
12,
1388,
1488,
1133,
425,
13,
288,
9506,
202,
2725,
14388,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
892,
1488,
18,
945,
1265,
4201,
812,
12,
6376,
18,
25242,
67,
4537,
397,
21091,
583,
94,
18,
3500,
16656,
2565,
1013,
55,
67,
3776,
1769,
202,
202,
1289,
12,
2640,
13663,
11885,
6364,
5190,
9334,
30814,
18,
50,
28212,
1769,
202,
202,
1289,
12,
2640,
13663,
11885,
1388,
9334,
30814,
18,
19835,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
19884,
11885,
5537,
1435,
288,
202,
202,
542,
3744,
12,
2704,
30814,
10663,
202,
202,
892,
1488,
273,
394,
19884,
11885,
87,
5621,
202,
202,
759,
27600,
18,
588,
13663,
11885,
751,
1265,
42,
583,
94,
3514,
5621,
202,
202,
892,
1488,
18,
1289,
1388,
1488,
2223,
12,
2704,
3555,
1488,
2223,
1435,
288,
1082,
202,
482,
918,
1014,
5033,
12,
1388,
1488,
1133,
425,
13,
288,
9506,
202,
2725,
14388,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
892,
1488,
18,
945,
1265,
4201,
812,
12,
6376,
18,
25242,
67,
4537,
397,
21091,
583,
94,
18,
3500,
16656,
2565,
1013,
55,
67,
3776,
1769,
202,
202,
1289,
12,
2640,
13663,
11885,
6364,
5190,
9334,
2
] |
|
throws SQLException
|
throws SQLException, ParseException
|
public static List harvest(Context context, DSpaceObject scope, String startDate, String endDate, int offset, int limit, boolean items, boolean collections, boolean withdrawn) throws SQLException { // Put together our query. Note there is no need for an // "in_archive=true" condition, we are using the existence of // Handles as our 'existence criterion'. String query = "SELECT handle.handle, handle.resource_id, item.withdrawn, item.last_modified FROM handle, item"; // We are building a complex query that may contain a variable // about of input data points. To accomidate this while still // providing type safty we build a list of parameters to be // plugged into the query at the database level. List parameters = new ArrayList(); if (scope != null) { if (scope.getType() == Constants.COLLECTION) { query += ", collection2item"; } else if (scope.getType() == Constants.COMMUNITY) { query += ", community2item"; } } query += " WHERE handle.resource_type_id=" + Constants.ITEM + " AND handle.resource_id=item.item_id "; if (scope != null) { if (scope.getType() == Constants.COLLECTION) { query += " AND collection2item.collection_id= ? " + " AND collection2item.item_id=handle.resource_id "; parameters.add(new Integer(scope.getID())); } else if (scope.getType() == Constants.COMMUNITY) { query += " AND community2item.community_id= ? " + " AND community2item.item_id=handle.resource_id"; parameters.add(new Integer(scope.getID())); } } if (startDate != null) { if ("oracle".equals(ConfigurationManager.getProperty("db.name"))) { startDate = oracleTimeStampFormat(startDate); query += " AND item.last_modified >= " + oracleTimeStampFunction(startDate); parameters.add(startDate); } else //postgres { query = query + " AND item.last_modified >= ? "; parameters.add(startDate); } } if (endDate != null) { /* * If the end date has seconds precision, e.g.: * * 2004-04-29T13:45:43Z * * we need to add 999 milliseconds to this. This is because SQL * TIMESTAMPs have millisecond precision, and so might have a value: * * 2004-04-29T13:45:43.952Z * * and so <= '2004-04-29T13:45:43Z' would not pick this up. Reading * things out of the database, TIMESTAMPs are rounded down, so the * above value would be read as '2004-04-29T13:45:43Z', and * therefore a caller would expect <= '2004-04-29T13:45:43Z' to * include that value. * * Got that? ;-) */ if (endDate.length() == 20) { endDate = endDate.substring(0, 19) + ".999Z"; } if ("oracle".equals(ConfigurationManager.getProperty("db.name"))) { endDate = oracleTimeStampFormat(endDate); query += " AND item.last_modified <= " + oracleTimeStampFunction(endDate); parameters.add(endDate); } else //postgres { query += " AND item.last_modified <= ? "; parameters.add(endDate); } } if (withdrawn == false) { // Exclude withdrawn items if ("oracle".equals(ConfigurationManager.getProperty("db.name"))) { query += " AND withdrawn=0 "; } else { // postgres uses booleans query += " AND withdrawn=false "; } } // Order by item ID, so that for a given harvest the order will be // consistent. This is so that big harvests can be broken up into // several smaller operations (e.g. for OAI resumption tokens.) query += " ORDER BY handle.resource_id"; log.debug(LogManager.getHeader(context, "harvest SQL", query)); // Execute Object[] parametersArray = parameters.toArray(); TableRowIterator tri = DatabaseManager.query(context, query, parametersArray); List infoObjects = new LinkedList(); int index = 0; // Process results of query into HarvestedItemInfo objects while (tri.hasNext()) { TableRow row = tri.next(); /* * This conditional ensures that we only process items within any * constraints specified by 'offset' and 'limit' parameters. */ if ((index >= offset) && ((limit == 0) || (index < (offset + limit)))) { HarvestedItemInfo itemInfo = new HarvestedItemInfo(); itemInfo.context = context; itemInfo.handle = row.getStringColumn("handle"); itemInfo.itemID = row.getIntColumn("resource_id"); itemInfo.datestamp = row.getDateColumn("last_modified"); itemInfo.withdrawn = row.getBooleanColumn("withdrawn"); if (collections) { fillCollections(context, itemInfo); } if (items) { // Get the item itemInfo.item = Item.find(context, itemInfo.itemID); } infoObjects.add(itemInfo); } index++; } tri.close(); return infoObjects; }
|
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/52cc683e558662b1c363cc18689e4e091e3f4cb3/Harvest.java/clean/dspace/src/org/dspace/search/Harvest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
987,
17895,
26923,
12,
1042,
819,
16,
463,
3819,
921,
2146,
16,
5411,
514,
12572,
16,
514,
13202,
16,
509,
1384,
16,
509,
1800,
16,
5411,
1250,
1516,
16,
1250,
6980,
16,
1250,
598,
9446,
82,
13,
5411,
1216,
6483,
16,
10616,
565,
288,
3639,
368,
4399,
9475,
3134,
843,
18,
3609,
1915,
353,
1158,
1608,
364,
392,
3639,
368,
315,
267,
67,
10686,
33,
3767,
6,
2269,
16,
732,
854,
1450,
326,
15782,
434,
3639,
368,
27020,
487,
3134,
296,
7398,
802,
11498,
10332,
3639,
514,
843,
273,
315,
4803,
1640,
18,
4110,
16,
1640,
18,
3146,
67,
350,
16,
761,
18,
1918,
9446,
82,
16,
761,
18,
2722,
67,
7342,
4571,
1640,
16,
761,
14432,
13491,
368,
1660,
854,
10504,
279,
7233,
843,
716,
2026,
912,
279,
2190,
540,
368,
2973,
434,
810,
501,
3143,
18,
2974,
28217,
350,
340,
333,
1323,
4859,
540,
368,
17721,
618,
7864,
1222,
93,
732,
1361,
279,
666,
434,
1472,
358,
506,
540,
368,
15852,
2423,
1368,
326,
843,
622,
326,
2063,
1801,
18,
3639,
987,
1472,
273,
394,
2407,
5621,
7734,
309,
261,
4887,
480,
446,
13,
3639,
288,
540,
202,
430,
261,
4887,
18,
588,
559,
1435,
422,
5245,
18,
25964,
13,
540,
202,
95,
540,
202,
202,
2271,
1011,
3104,
1849,
22,
1726,
14432,
540,
202,
97,
540,
202,
12107,
309,
261,
4887,
18,
588,
559,
1435,
422,
5245,
18,
4208,
49,
2124,
4107,
13,
540,
202,
95,
540,
202,
202,
2271,
1011,
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,
987,
17895,
26923,
12,
1042,
819,
16,
463,
3819,
921,
2146,
16,
5411,
514,
12572,
16,
514,
13202,
16,
509,
1384,
16,
509,
1800,
16,
5411,
1250,
1516,
16,
1250,
6980,
16,
1250,
598,
9446,
82,
13,
5411,
1216,
6483,
16,
10616,
565,
288,
3639,
368,
4399,
9475,
3134,
843,
18,
3609,
1915,
353,
1158,
1608,
364,
392,
3639,
368,
315,
267,
67,
10686,
33,
3767,
6,
2269,
16,
732,
854,
1450,
326,
15782,
434,
3639,
368,
27020,
487,
3134,
296,
7398,
802,
11498,
10332,
3639,
514,
843,
273,
315,
4803,
1640,
18,
4110,
16,
1640,
18,
3146,
67,
350,
16,
761,
18,
1918,
9446,
82,
16,
761,
18,
2722,
67,
7342,
4571,
1640,
16,
761,
2
] |
/* if (subtype.getState() == ) throw new ClassNotFoundException("Unknown superclass for class " + subtype.getSignature()); */ resolveObjectType(subtype);
|
public boolean isSubtype(ObjectType subtype, ObjectType supertype) throws ClassNotFoundException { if (Debug.VERIFY_INTEGRITY) { if (!inheritanceGraph.containsVertex(subtype)) throw new IllegalStateException("Inheritance graph does not contain node " + subtype.getSignature()); if (!inheritanceGraph.containsVertex(supertype)) throw new IllegalStateException("Inheritance graph does not contain node " + supertype.getSignature()); } // TODO: precompute subtypes and store in a table of bit vectors // based on type ids. That would be really fast. // For now, we do a slow traversal of the inheritance graph. if (!supertype.isInterface()) { // Check superclasses: this works for both class instance // and array types. while (true) { if (subtype.equals(supertype)) return true;/* if (subtype.getState() == ) // FIME: dynamic lookup to find the supertypes throw new ClassNotFoundException("Unknown superclass for class " + subtype.getSignature());*/ // Ensure supertypes for the class are known resolveObjectType(subtype); ObjectType directSuperclass = getSuperclass(subtype); if (directSuperclass == null) { // No superclass: we must have reached java.lang.Object, // which terminates the search. if (Debug.CHECK_ASSERTIONS && !subtype.getSignature().equals("Ljava/lang/Object;")) throw new IllegalStateException("Class " + subtype.getSignature() + " has no supertypes, but is not java.lang.Object"); return false; } subtype = directSuperclass; } } else { // Breadth first search through superinterfaces // and interfaces implemented by superclasses // TODO: cache the result as a bit vector of type ids. LinkedList<ObjectType> work = new LinkedList<ObjectType>(); work.add(subtype); HashSet<ObjectType> visited = new HashSet<ObjectType>(); LinkedList<String> missingClassList = new LinkedList<String>(); boolean answer = false; while (!work.isEmpty()) { ObjectType type = work.removeFirst(); if (visited.add(type)) continue; if (type.equals(supertype)) { answer = true; break; } try { // Resolve the type so we know its supertypes. resolveObjectType(type); // Add all supertypes to work queue. for (Iterator<ObjectType> i = inheritanceGraph.successorIterator(type); i.hasNext(); ) work.add(i.next()); } catch (ClassNotFoundException e) { String missingClassName = ClassNotFoundExceptionParser.getMissingClassName(e); if (missingClassName == null) missingClassName = "<unknown class>"; missingClassList.add(missingClassName); } } // Search terminated without finding the superinterface. // If no part of the class hierarchy was unknown, // then we have a definitive answer. Otherwise, // throw an exception. if (missingClassList.isEmpty()) { // TODO: cache bit vector of known supertypes return answer; } else throw new ClassNotFoundException("Class not found: " + missingClassList); } }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/921204739e0b6b0b07ad25ba8c9174dc228ae1a2/TypeRepository.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/type/TypeRepository.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
16523,
723,
12,
17610,
12308,
16,
21338,
2240,
723,
13,
1216,
10403,
288,
202,
202,
430,
261,
2829,
18,
23756,
67,
706,
1448,
6997,
4107,
13,
288,
1082,
202,
430,
16051,
6018,
1359,
4137,
18,
12298,
6475,
12,
21974,
3719,
9506,
202,
12849,
394,
5477,
2932,
28255,
2667,
1552,
486,
912,
756,
315,
397,
12308,
18,
588,
5374,
10663,
1082,
202,
430,
16051,
6018,
1359,
4137,
18,
12298,
6475,
12,
9565,
723,
3719,
9506,
202,
12849,
394,
5477,
2932,
28255,
2667,
1552,
486,
912,
756,
315,
397,
2240,
723,
18,
588,
5374,
10663,
202,
202,
97,
202,
202,
759,
2660,
30,
675,
9200,
720,
2352,
471,
1707,
316,
279,
1014,
434,
2831,
10046,
202,
202,
759,
2511,
603,
618,
3258,
18,
225,
12466,
4102,
506,
8654,
4797,
18,
202,
202,
759,
2457,
2037,
16,
732,
741,
279,
11816,
15940,
434,
326,
16334,
2667,
18,
202,
202,
430,
16051,
9565,
723,
18,
291,
1358,
10756,
288,
1082,
202,
759,
2073,
2240,
4701,
30,
333,
6330,
364,
3937,
667,
791,
1082,
202,
759,
471,
526,
1953,
18,
1082,
202,
17523,
261,
3767,
13,
288,
9506,
202,
430,
261,
21974,
18,
14963,
12,
9565,
723,
3719,
6862,
202,
2463,
638,
31,
20308,
9506,
202,
430,
261,
21974,
18,
588,
1119,
1435,
422,
262,
6862,
202,
759,
478,
3114,
30,
5976,
3689,
358,
1104,
326,
1169,
1051,
989,
6862,
202,
12849,
394,
10403,
2932,
4874,
12098,
364,
667,
315,
397,
12308,
18,
588,
5374,
10663,
5549,
9506,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
16523,
723,
12,
17610,
12308,
16,
21338,
2240,
723,
13,
1216,
10403,
288,
202,
202,
430,
261,
2829,
18,
23756,
67,
706,
1448,
6997,
4107,
13,
288,
1082,
202,
430,
16051,
6018,
1359,
4137,
18,
12298,
6475,
12,
21974,
3719,
9506,
202,
12849,
394,
5477,
2932,
28255,
2667,
1552,
486,
912,
756,
315,
397,
12308,
18,
588,
5374,
10663,
1082,
202,
430,
16051,
6018,
1359,
4137,
18,
12298,
6475,
12,
9565,
723,
3719,
9506,
202,
12849,
394,
5477,
2932,
28255,
2667,
1552,
486,
912,
756,
315,
397,
2240,
723,
18,
588,
5374,
10663,
202,
202,
97,
202,
202,
759,
2660,
30,
675,
9200,
720,
2352,
471,
1707,
316,
279,
1014,
434,
2831,
10046,
202,
202,
2
] |
|
s = replace(TOO_MANY_PEERS, "{PEERS}", Integer.toString(peers));
|
s = replace(TOO_MANY_PEERS, "\\{PEERS\\}", Integer.toString(peers));
|
public String getText() { String s; int disconnected = peers - conns; if(peers == 0) { if(n.isTestnetEnabled()) return NO_PEERS_TESTNET; else return NO_PEERS_DARKNET; } else if(conns == 0) { return NO_CONNS; } else if(conns == 1) { return ONE_CONN; } else if(conns == 2) { return TWO_CONNS; } else if(neverConn > MAX_NEVER_CONNECTED_PEER_ALERT_THRESHOLD) { s = replace(NEVER_CONN_TEXT, "{NEVER_CONN}", Integer.toString(neverConn)); } else if((peers - conns) > MAX_DISCONN_PEER_ALERT_THRESHOLD){ s = replace(DISCONNECTED, "{DISCONNECTED}", Integer.toString(disconnected)); } else if(conns > MAX_CONN_ALERT_THRESHOLD) { s = replace(TOO_MANY_CONNECTIONS, "{CONNS}", Integer.toString(conns)); } else if(peers > MAX_PEER_ALERT_THRESHOLD) { s = replace(TOO_MANY_PEERS, "{PEERS}", Integer.toString(peers)); } else if(n.bwlimitDelayAlertRelevant && (bwlimitDelayTime > Node.MAX_BWLIMIT_DELAY_TIME_ALERT_THRESHOLD)) { s = replace(TOO_HIGH_BWLIMITDELAYTIME, "{BWLIMIT_DELAY_TIME}", Integer.toString(bwlimitDelayTime)); // FIXME I'm not convinced about the next one! } else if(n.nodeAveragePingAlertRelevant && (nodeAveragePingTime > Node.MAX_NODE_AVERAGE_PING_TIME_ALERT_THRESHOLD)) { s = replace(TOO_HIGH_PING, "{PING_TIME}", Integer.toString(bwlimitDelayTime)); } else if(oldestNeverConnectedPeerAge > MAX_OLDEST_NEVER_CONNECTED_PEER_AGE_ALERT_THRESHOLD) { s = NEVER_CONNECTED_TWO_WEEKS; } else throw new IllegalArgumentException("Not valid"); return s; }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/28a46f35660692dcdfcd4b918eded109fffdff3e/PeerManagerUserAlert.java/clean/src/freenet/node/useralerts/PeerManagerUserAlert.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6701,
1435,
288,
202,
202,
780,
272,
31,
202,
202,
474,
17853,
273,
10082,
300,
18976,
31,
202,
202,
430,
12,
30502,
422,
374,
13,
288,
1082,
202,
430,
12,
82,
18,
291,
4709,
2758,
1526,
10756,
9506,
202,
2463,
3741,
67,
1423,
11367,
67,
16961,
14843,
31,
1082,
202,
12107,
9506,
202,
2463,
3741,
67,
1423,
11367,
67,
40,
9584,
14843,
31,
3196,
202,
97,
469,
309,
12,
591,
2387,
422,
374,
13,
288,
1082,
202,
2463,
3741,
67,
2248,
3156,
31,
202,
202,
97,
469,
309,
12,
591,
2387,
422,
404,
13,
288,
1082,
202,
2463,
15623,
67,
27733,
31,
202,
202,
97,
469,
309,
12,
591,
2387,
422,
576,
13,
288,
1082,
202,
2463,
24722,
51,
67,
2248,
3156,
31,
202,
202,
97,
469,
309,
12,
4644,
502,
3543,
405,
4552,
67,
5407,
2204,
67,
29011,
67,
1423,
654,
67,
1013,
11539,
67,
23840,
13,
288,
1082,
202,
87,
273,
1453,
12,
5407,
2204,
67,
27733,
67,
5151,
16,
4144,
5407,
2204,
67,
27733,
1532,
16,
2144,
18,
10492,
12,
4644,
502,
3543,
10019,
202,
202,
97,
469,
309,
12443,
30502,
300,
18976,
13,
405,
4552,
67,
13498,
27733,
67,
1423,
654,
67,
1013,
11539,
67,
23840,
15329,
1082,
202,
87,
273,
1453,
12,
13498,
29011,
16,
4144,
13498,
29011,
1532,
16,
2144,
18,
10492,
12,
2251,
8537,
10019,
202,
202,
97,
469,
309,
12,
591,
2387,
405,
4552,
67,
27733,
67,
1013,
11539,
67,
23840,
13,
288,
1082,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6701,
1435,
288,
202,
202,
780,
272,
31,
202,
202,
474,
17853,
273,
10082,
300,
18976,
31,
202,
202,
430,
12,
30502,
422,
374,
13,
288,
1082,
202,
430,
12,
82,
18,
291,
4709,
2758,
1526,
10756,
9506,
202,
2463,
3741,
67,
1423,
11367,
67,
16961,
14843,
31,
1082,
202,
12107,
9506,
202,
2463,
3741,
67,
1423,
11367,
67,
40,
9584,
14843,
31,
3196,
202,
97,
469,
309,
12,
591,
2387,
422,
374,
13,
288,
1082,
202,
2463,
3741,
67,
2248,
3156,
31,
202,
202,
97,
469,
309,
12,
591,
2387,
422,
404,
13,
288,
1082,
202,
2463,
15623,
67,
27733,
31,
202,
202,
97,
469,
309,
12,
591,
2387,
422,
576,
13,
288,
1082,
2
] |
}
|
ErrorService.error(il); } catch (FileExistsException fex) { RouterService.getCallback().showError( fex.getFileName(), "ERROR_ALREADY_EXISTS"); }
|
public static void handleMagnetRequest(String arg) { ActivityCallback callback = RouterService.getCallback(); // Make sure that connections are active if ( RouterService.getNumInitializedConnections() <= 0 ) RouterService.connect(); callback.restoreApplication(); callback.showDownloads(); MagnetOptions options[] = parseMagnet(arg); if ( options == null ) return; // Kick off appropriate downloaders for ( int i = 0; i < options.length; i++ ) { URN urn = null; if ( options[i].xt != null && options[i].xt.length() > 0 ) { try { urn = URN.createSHA1Urn(options[i].xt); } catch (IOException e) { /* Not a SHA1 */ } } // Collect up exact locations and additional locations String defaultURLs[] = null; ArrayList urls = new ArrayList(); if (options[i].xs != null && options[i].xs.startsWith(HTTP)) urls.add(options[i].xs); if (options[i].as != null && options[i].as.startsWith(HTTP)) urls.add(options[i].as); if (urls.size() > 0) { defaultURLs = new String[urls.size()]; defaultURLs = (String[]) urls.toArray(defaultURLs); } try { //System.out.println("download parms:"); //System.out.println("urn:"+urn); //System.out.println("kt:"+options[i].kt); //System.out.println("dn:"+options[i].dn); //System.out.println("xs:"+options[i].xs); //System.out.println("as:"+options[i].as); // TODO: Need to juggle xt, xs and as if SHA1s and URLs are // being used loosely. RouterService.download(urn,options[i].kt,options[i].dn,defaultURLs); } catch ( AlreadyDownloadingException a ) { // Silently fail } catch ( IllegalArgumentException il ) { // Silently fail } } }
|
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/ea4e408cc7f98c4e24cf22682bbf45bada8fd1af/ExternalControl.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/browser/ExternalControl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1640,
11372,
2758,
691,
12,
780,
1501,
13,
288,
202,
202,
6193,
2428,
1348,
273,
9703,
1179,
18,
588,
2428,
5621,
202,
202,
759,
4344,
3071,
716,
5921,
854,
2695,
202,
202,
430,
261,
9703,
1179,
18,
588,
2578,
11459,
9314,
1435,
1648,
374,
262,
1875,
565,
9703,
1179,
18,
3612,
5621,
202,
202,
3394,
18,
13991,
3208,
5621,
202,
202,
3394,
18,
4500,
22141,
5621,
202,
565,
12342,
2758,
1320,
702,
8526,
273,
1109,
11372,
2758,
12,
3175,
1769,
202,
202,
430,
261,
702,
422,
446,
262,
1082,
202,
2463,
31,
202,
202,
759,
1475,
1200,
3397,
5505,
4224,
414,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
702,
18,
2469,
31,
277,
9904,
262,
288,
1082,
202,
8521,
18412,
273,
446,
31,
1082,
202,
430,
261,
702,
63,
77,
8009,
15239,
480,
446,
597,
702,
63,
77,
8009,
15239,
18,
2469,
1435,
405,
374,
262,
288,
9506,
202,
698,
288,
9506,
3639,
18412,
273,
1618,
50,
18,
2640,
8325,
21,
57,
27639,
12,
2116,
63,
77,
8009,
15239,
1769,
9506,
202,
97,
1044,
261,
14106,
425,
13,
288,
1748,
2288,
279,
9777,
21,
1195,
289,
1082,
202,
97,
1082,
202,
759,
9302,
731,
5565,
7838,
471,
3312,
7838,
1082,
202,
780,
805,
15749,
8526,
273,
446,
31,
1082,
202,
19558,
6903,
273,
394,
2407,
5621,
1082,
202,
430,
261,
2116,
63,
77,
8009,
13713,
480,
446,
597,
702,
63,
77,
8009,
13713,
18,
17514,
1190,
12,
3693,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1640,
11372,
2758,
691,
12,
780,
1501,
13,
288,
202,
202,
6193,
2428,
1348,
273,
9703,
1179,
18,
588,
2428,
5621,
202,
202,
759,
4344,
3071,
716,
5921,
854,
2695,
202,
202,
430,
261,
9703,
1179,
18,
588,
2578,
11459,
9314,
1435,
1648,
374,
262,
1875,
565,
9703,
1179,
18,
3612,
5621,
202,
202,
3394,
18,
13991,
3208,
5621,
202,
202,
3394,
18,
4500,
22141,
5621,
202,
565,
12342,
2758,
1320,
702,
8526,
273,
1109,
11372,
2758,
12,
3175,
1769,
202,
202,
430,
261,
702,
422,
446,
262,
1082,
202,
2463,
31,
202,
202,
759,
1475,
1200,
3397,
5505,
4224,
414,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
702,
18,
2
] |
if (split.suffix != null) {
|
else if (split.suffix != null) {
|
private void processTagStart(XmlPullParser parser, boolean isempty) { XMLLump headlump = lumps[lumpindex - 1]; String tagname = parser.getName(); // standard text of |<tagname | to allow easy identification. setLumpString(headlump, XMLLump.tagToText(tagname)); //HashMap forwardmap = new HashMap(); //headlump.forwardmap = forwardmap; // current policy - every open tag gets a forwardmap, and separate lumps. // eventually we want only thing with an ID as such. int attrs = parser.getAttributeCount(); if (attrs > 0) { headlump.attributemap = new HashMap(); } for (int i = 0; i < attrs; ++i) { String attrname = parser.getAttributeName(i); String attrvalue = parser.getAttributeValue(i); XMLLump frontlump = newLump(parser); CharWrap lumpac = new CharWrap(); if (i > 0) { lumpac.append("\" "); } lumpac.append(attrname).append("=\""); setLumpChars(frontlump, lumpac.storage, 0, lumpac.size); // frontlump holds |" name="| // valuelump just holds the value. // This is a bit silly since we have all attrs in attrmap, but just // MARGINALLY // quicker to iterate over them this way! XMLLump valuelump = newLump(parser); setLumpString(valuelump, attrvalue); headlump.attributemap.put(attrname, attrvalue); if (attrname.equals(XMLLump.ID_ATTRIBUTE)) { String ID = attrvalue; headlump.rsfID = attrvalue; SplitID split = new SplitID(ID); XMLLump stacktop = findTopContainer(); stacktop.downmap.addLump(ID, headlump); globalmap.addLump(ID, headlump); //if (split.prefix.equals(HTMLLump.FORID_PREFIX)) { // foridtocomponent.put(split.suffix == null ? HTMLLump.FORID_PREFIX // : split.suffix, headlump); // we need really to be able to locate 3 levels of id - // for-message:message:to // ideally we would also like to be able to locate repetition // constructs too, hopefully the standard suffix-based computation // will allow this. However we previously never allowed BOTH // repetitious and non-repetitious constructs to share the same // prefix, so revisit this to solve. //} if (split.suffix != null) { // a repetitive tag is found. headlump.downmap = new XMLLumpMMap(); // Repetitions within a SCOPE should be UNIQUE and CONTIGUOUS. XMLLump prevlast = stacktop.downmap.getFinal(split.prefix); stacktop.downmap.setFinal(split.prefix, headlump); if (prevlast != null) { // only store transitions from non-initial state - // TODO: see if transition system will ever be needed. String prevsuffix = SplitID.getSuffix(prevlast.rsfID); String transitionkey = split.prefix + SplitID.SEPARATOR + prevsuffix + XMLLump.TRANSITION_SEPARATOR + split.suffix; stacktop.downmap.addLump(transitionkey, prevlast); globalmap.addLump(transitionkey, prevlast); } } } } XMLLump finallump = newLump(parser); String closetext = attrs == 0? (isempty? "/>" : ">"):(isempty? "\"/>" : "\">"); setLumpString(finallump, closetext); headlump.open_end = finallump; tagstack.add(nestingdepth, headlump); if (isempty) { processTagEnd(parser); } }
|
45809 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45809/c9df55680cc025dc5a2965bf371e9b2c6fdfdfdf/XMLViewTemplate.java/buggy/src/uk/org/ponder/rsf/template/XMLViewTemplate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1207,
1805,
1685,
12,
4432,
9629,
2678,
2082,
16,
1250,
277,
12000,
825,
13,
288,
565,
3167,
48,
2801,
910,
80,
2801,
273,
328,
23868,
63,
80,
2801,
1615,
300,
404,
15533,
565,
514,
25586,
273,
2082,
18,
17994,
5621,
565,
368,
4529,
977,
434,
571,
32,
2692,
529,
571,
358,
1699,
12779,
24739,
18,
565,
444,
48,
2801,
780,
12,
1978,
80,
2801,
16,
3167,
48,
2801,
18,
2692,
774,
1528,
12,
2692,
529,
10019,
565,
368,
8658,
5104,
1458,
273,
394,
4317,
5621,
565,
368,
1978,
80,
2801,
18,
11565,
1458,
273,
5104,
1458,
31,
565,
368,
783,
3329,
300,
3614,
1696,
1047,
5571,
279,
5104,
1458,
16,
471,
9004,
328,
23868,
18,
565,
368,
18011,
732,
2545,
1338,
7757,
598,
392,
1599,
487,
4123,
18,
565,
509,
3422,
273,
2082,
18,
588,
1499,
1380,
5621,
377,
309,
261,
7039,
405,
374,
13,
288,
1377,
910,
80,
2801,
18,
14588,
322,
25248,
273,
394,
4317,
5621,
565,
289,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3422,
31,
965,
77,
13,
288,
1377,
514,
1604,
529,
273,
2082,
18,
588,
19240,
12,
77,
1769,
1377,
514,
1604,
1132,
273,
2082,
18,
588,
14942,
12,
77,
1769,
1377,
3167,
48,
2801,
6641,
80,
2801,
273,
394,
48,
2801,
12,
4288,
1769,
1377,
3703,
2964,
328,
2801,
1077,
273,
394,
3703,
2964,
5621,
1377,
309,
261,
77,
405,
374,
13,
288,
3639,
328,
2801,
1077,
18,
6923,
2932,
2412,
315,
1769,
1377,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1207,
1805,
1685,
12,
4432,
9629,
2678,
2082,
16,
1250,
277,
12000,
825,
13,
288,
565,
3167,
48,
2801,
910,
80,
2801,
273,
328,
23868,
63,
80,
2801,
1615,
300,
404,
15533,
565,
514,
25586,
273,
2082,
18,
17994,
5621,
565,
368,
4529,
977,
434,
571,
32,
2692,
529,
571,
358,
1699,
12779,
24739,
18,
565,
444,
48,
2801,
780,
12,
1978,
80,
2801,
16,
3167,
48,
2801,
18,
2692,
774,
1528,
12,
2692,
529,
10019,
565,
368,
8658,
5104,
1458,
273,
394,
4317,
5621,
565,
368,
1978,
80,
2801,
18,
11565,
1458,
273,
5104,
1458,
31,
565,
368,
783,
3329,
300,
3614,
1696,
1047,
5571,
279,
5104,
1458,
16,
471,
9004,
328,
23868,
18,
565,
2
] |
public void saveDiscussionForumTopic(DiscussionTopic topic) { boolean isNew = topic.getId() == null; if (topic.getMutable() == null) { topic.setMutable(Boolean.FALSE); } if (topic.getSortIndex() == null) { topic.setSortIndex(new Integer(0)); } topic.setModified(new Date()); topic.setModifiedBy(getCurrentUser()); if (topic.getId() == null) { DiscussionForum discussionForum = (DiscussionForum) getForumByIdWithTopics(topic.getBaseForum().getId()); discussionForum.addTopic(topic); saveDiscussionForum(discussionForum); } else { getHibernateTemplate().saveOrUpdate(topic); } if (isNew) { eventTrackingService.post(eventTrackingService.newEvent(DiscussionForumService.EVENT_RESOURCE_ADD, getEventMessage(topic), false)); } else { eventTrackingService.post(eventTrackingService.newEvent(DiscussionForumService.EVENT_RESOURCE_WRITE, getEventMessage(topic), false)); } LOG.debug("saveDiscussionForumTopic executed with topicId: " + topic.getId());
|
public void saveDiscussionForumTopic(DiscussionTopic topic) { saveDiscussionForumTopic(topic, false);
|
public void saveDiscussionForumTopic(DiscussionTopic topic) { boolean isNew = topic.getId() == null;// if (isForumLocked(topic.getBaseForum().getId())) {// LOG.info("saveDiscussionForumTopic executed [topicId: " + (isNew ? "new" : topic.getId().toString()) + "] but forum is locked -- save aborted");// throw new LockedException("Topic could not be saved [topicId: " + (isNew ? "new" : topic.getId().toString()) + "]");// } if (topic.getMutable() == null) { topic.setMutable(Boolean.FALSE); } if (topic.getSortIndex() == null) { topic.setSortIndex(new Integer(0)); } topic.setModified(new Date()); topic.setModifiedBy(getCurrentUser()); if (topic.getId() == null) { DiscussionForum discussionForum = (DiscussionForum) getForumByIdWithTopics(topic.getBaseForum().getId()); discussionForum.addTopic(topic); // DiscussionForum forum = (DiscussionForum) topic.getBaseForum();// getHibernateTemplate().lock(forum, LockMode.NONE);// getHibernateTemplate().initialize(forum.getTopicsSet()); // forum.addTopic(topic); // getHibernateTemplate().saveOrUpdate(topic); saveDiscussionForum(discussionForum); } else { getHibernateTemplate().saveOrUpdate(topic); } if (isNew) { eventTrackingService.post(eventTrackingService.newEvent(DiscussionForumService.EVENT_RESOURCE_ADD, getEventMessage(topic), false)); } else { eventTrackingService.post(eventTrackingService.newEvent(DiscussionForumService.EVENT_RESOURCE_WRITE, getEventMessage(topic), false)); } LOG.debug("saveDiscussionForumTopic executed with topicId: " + topic.getId()); }
|
48936 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48936/ec2c0708ac67d5dd69e942a85b6b2e34be481150/MessageForumsForumManagerImpl.java/clean/messageforums-component-impl/src/java/org/sakaiproject/component/app/messageforums/MessageForumsForumManagerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
24393,
1290,
379,
6657,
12,
24393,
6657,
3958,
13,
288,
3639,
1250,
10783,
273,
3958,
18,
26321,
1435,
422,
446,
31,
759,
3639,
309,
261,
291,
1290,
379,
8966,
12,
10476,
18,
588,
2171,
1290,
379,
7675,
26321,
1435,
3719,
288,
759,
5411,
2018,
18,
1376,
2932,
5688,
24393,
1290,
379,
6657,
7120,
306,
10476,
548,
30,
315,
397,
261,
291,
1908,
692,
315,
2704,
6,
294,
3958,
18,
26321,
7675,
10492,
10756,
397,
9850,
1496,
11283,
353,
8586,
1493,
1923,
18166,
8863,
759,
5411,
604,
394,
3488,
329,
503,
2932,
6657,
3377,
486,
506,
5198,
306,
10476,
548,
30,
315,
397,
261,
291,
1908,
692,
315,
2704,
6,
294,
3958,
18,
26321,
7675,
10492,
10756,
397,
9870,
1769,
759,
3639,
289,
7734,
309,
261,
10476,
18,
588,
19536,
1435,
422,
446,
13,
288,
5411,
3958,
18,
542,
19536,
12,
5507,
18,
21053,
1769,
3639,
289,
3639,
309,
261,
10476,
18,
588,
4416,
1016,
1435,
422,
446,
13,
288,
5411,
3958,
18,
542,
4416,
1016,
12,
2704,
2144,
12,
20,
10019,
3639,
289,
3639,
3958,
18,
542,
4575,
12,
2704,
2167,
10663,
3639,
3958,
18,
542,
4575,
858,
12,
588,
3935,
1299,
10663,
3639,
309,
261,
10476,
18,
26321,
1435,
422,
446,
13,
288,
8227,
20900,
1290,
379,
14716,
1290,
379,
273,
2398,
261,
24393,
1290,
379,
13,
25761,
379,
5132,
1190,
17477,
12,
10476,
18,
588,
2171,
1290,
379,
7675,
26321,
10663,
1850,
14716,
1290,
379,
18,
1289,
6657,
12,
10476,
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,
918,
1923,
24393,
1290,
379,
6657,
12,
24393,
6657,
3958,
13,
288,
3639,
1250,
10783,
273,
3958,
18,
26321,
1435,
422,
446,
31,
759,
3639,
309,
261,
291,
1290,
379,
8966,
12,
10476,
18,
588,
2171,
1290,
379,
7675,
26321,
1435,
3719,
288,
759,
5411,
2018,
18,
1376,
2932,
5688,
24393,
1290,
379,
6657,
7120,
306,
10476,
548,
30,
315,
397,
261,
291,
1908,
692,
315,
2704,
6,
294,
3958,
18,
26321,
7675,
10492,
10756,
397,
9850,
1496,
11283,
353,
8586,
1493,
1923,
18166,
8863,
759,
5411,
604,
394,
3488,
329,
503,
2932,
6657,
3377,
486,
506,
5198,
306,
10476,
548,
30,
315,
397,
261,
291,
1908,
692,
315,
2704,
6,
294,
3958,
18,
26321,
7675,
10492,
2
] |
public static String getElementValue(Element elem, String path) { Element child = getElement(elem, path); if (child == null) return ""; String ret = ""; NodeList nl = child.getChildNodes(); for (int i = 0, len = nl.getLength(); i < len; i++) { Node node = nl.item(i); if (node.getNodeType() == Node.TEXT_NODE) ret += node.getNodeValue(); } return ret; }
|
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/bcf54ee9560f4fd9a0ff083d3f0ea7c829a28aea/Util.java/buggy/contrib/tag-doc/src/java/org/apache/struts/taskdefs/Util.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
7426,
620,
12,
1046,
3659,
16,
514,
589,
13,
288,
202,
202,
1046,
1151,
273,
7426,
12,
10037,
16,
589,
1769,
202,
202,
430,
261,
3624,
422,
446,
13,
1082,
202,
2463,
1408,
31,
202,
202,
780,
325,
273,
1408,
31,
202,
202,
19914,
7741,
273,
1151,
18,
588,
22460,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
16,
562,
273,
7741,
18,
588,
1782,
5621,
277,
411,
562,
31,
277,
27245,
288,
1082,
202,
907,
756,
273,
7741,
18,
1726,
12,
77,
1769,
1082,
202,
430,
261,
2159,
18,
588,
15101,
1435,
422,
2029,
18,
5151,
67,
8744,
13,
9506,
202,
1349,
1011,
756,
18,
588,
907,
620,
5621,
202,
202,
97,
202,
202,
2463,
325,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
7426,
620,
12,
1046,
3659,
16,
514,
589,
13,
288,
202,
202,
1046,
1151,
273,
7426,
12,
10037,
16,
589,
1769,
202,
202,
430,
261,
3624,
422,
446,
13,
1082,
202,
2463,
1408,
31,
202,
202,
780,
325,
273,
1408,
31,
202,
202,
19914,
7741,
273,
1151,
18,
588,
22460,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
16,
562,
273,
7741,
18,
588,
1782,
5621,
277,
411,
562,
31,
277,
27245,
288,
1082,
202,
907,
756,
273,
7741,
18,
1726,
12,
77,
1769,
1082,
202,
430,
261,
2159,
18,
588,
15101,
1435,
422,
2029,
18,
5151,
67,
8744,
13,
9506,
202,
1349,
1011,
756,
18,
588,
907,
620,
5621,
202,
202,
97,
2
] |
||
t = sqrt(a) ; double half = 0.5 ; while (b > 0.0)
|
if (b != 0.0)
|
double iNumpow(double a, double b) { // :todo: this needs proper checking for boundary cases boolean invert = b < 0.0 ; if (invert) b = -b ; double result = 1.0 ; int ipow = (int) b ; b -= ipow ; double t = a ; while (ipow > 0) { if ((ipow & 1) != 0) result *= t ; ipow >>= 1 ; t = t*t ; } t = sqrt(a) ; double half = 0.5 ; while (b > 0.0) { if (b >= half) { result = result * t ; b -= half ; } b = b+b ; t = sqrt(t) ; if (t == 1.0) break ; } return invert ? 1.0 / result : result ; }
|
47685 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47685/90bbf2435ab82c021edf05becc4f1d4a6e0acc94/Lua.java/clean/code/Lua.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1645,
277,
2578,
23509,
12,
9056,
279,
16,
1645,
324,
13,
225,
288,
565,
368,
294,
9012,
30,
333,
4260,
5338,
6728,
364,
7679,
6088,
565,
1250,
9848,
273,
324,
411,
374,
18,
20,
274,
565,
309,
261,
267,
1097,
13,
324,
273,
300,
70,
274,
565,
1645,
563,
273,
404,
18,
20,
274,
565,
509,
2359,
543,
273,
261,
474,
13,
324,
274,
565,
324,
3947,
2359,
543,
274,
565,
1645,
268,
273,
279,
274,
565,
1323,
261,
625,
543,
405,
374,
13,
565,
288,
1377,
309,
14015,
625,
543,
473,
404,
13,
480,
374,
13,
3639,
563,
6413,
268,
274,
1377,
2359,
543,
23359,
404,
274,
1377,
268,
273,
268,
14,
88,
274,
565,
289,
565,
268,
273,
5700,
12,
69,
13,
274,
565,
1645,
8816,
273,
374,
18,
25,
274,
565,
1323,
261,
70,
405,
374,
18,
20,
13,
565,
288,
1377,
309,
261,
70,
1545,
8816,
13,
1377,
288,
3639,
563,
273,
563,
380,
268,
274,
3639,
324,
3947,
8816,
274,
1377,
289,
1377,
324,
273,
324,
15,
70,
274,
1377,
268,
273,
5700,
12,
88,
13,
274,
1377,
309,
261,
88,
422,
404,
18,
20,
13,
3639,
898,
274,
565,
289,
565,
327,
9848,
692,
225,
404,
18,
20,
342,
563,
294,
563,
274,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1645,
277,
2578,
23509,
12,
9056,
279,
16,
1645,
324,
13,
225,
288,
565,
368,
294,
9012,
30,
333,
4260,
5338,
6728,
364,
7679,
6088,
565,
1250,
9848,
273,
324,
411,
374,
18,
20,
274,
565,
309,
261,
267,
1097,
13,
324,
273,
300,
70,
274,
565,
1645,
563,
273,
404,
18,
20,
274,
565,
509,
2359,
543,
273,
261,
474,
13,
324,
274,
565,
324,
3947,
2359,
543,
274,
565,
1645,
268,
273,
279,
274,
565,
1323,
261,
625,
543,
405,
374,
13,
565,
288,
1377,
309,
14015,
625,
543,
473,
404,
13,
480,
374,
13,
3639,
563,
6413,
268,
274,
1377,
2359,
543,
23359,
404,
274,
1377,
268,
273,
268,
14,
88,
274,
565,
289,
565,
2
] |
IRubyObject module = getConstantAt(name); return (module instanceof RubyClass) ? (RubyClass) module : null;
|
IRubyObject module = getConstantAt(name); return (module instanceof RubyClass) ? (RubyClass) module : null;
|
public RubyClass getClass(String name) { IRubyObject module = getConstantAt(name); return (module instanceof RubyClass) ? (RubyClass) module : null; }
|
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
797,
2900,
12,
780,
508,
13,
288,
377,
202,
7937,
10340,
921,
1605,
273,
24337,
861,
12,
529,
1769,
377,
202,
377,
202,
2463,
225,
261,
2978,
1276,
19817,
797,
13,
692,
261,
54,
10340,
797,
13,
1605,
294,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
797,
2900,
12,
780,
508,
13,
288,
377,
202,
7937,
10340,
921,
1605,
273,
24337,
861,
12,
529,
1769,
377,
202,
377,
202,
2463,
225,
261,
2978,
1276,
19817,
797,
13,
692,
261,
54,
10340,
797,
13,
1605,
294,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
metadata.put("Number of images", new Integer( DataTools.bytesToInt(temp, 0, 4, littleEndian))); metadata.put("Image width", new Integer( DataTools.bytesToInt(temp, 4, 4, littleEndian))); metadata.put("Image height", new Integer( DataTools.bytesToInt(temp, 8, 4, littleEndian)));
|
zs[i] = DataTools.bytesToInt(temp, 0, 4, littleEndian); widths[i] = DataTools.bytesToInt(temp, 4, 4, littleEndian); heights[i] = DataTools.bytesToInt(temp, 8, 4, littleEndian); metadata.put("Number of images", new Integer(zs[i])); metadata.put("Image width", new Integer(widths[i])); metadata.put("Image height", new Integer(heights[i]));
|
protected void initMetadata() { if (headerIFDs == null) headerIFDs = ifds; for (int i=0; i<headerIFDs.length; i++) { byte[] temp = (byte[]) headerIFDs[i].get(new Integer(10)); if (temp != null) { // the series data // ID_SERIES metadata.put("Version", new Integer(DataTools.bytesToInt(temp, 0, 4, littleEndian))); metadata.put("Number of Series", new Integer(DataTools.bytesToInt(temp, 4, 4, littleEndian))); metadata.put("Length of filename", new Integer(DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Length of file extension", new Integer(DataTools.bytesToInt(temp, 12, 4, littleEndian))); metadata.put("Image file extension", DataTools.stripString(new String(temp, 16, ((Integer) metadata.get("Length of file extension")).intValue()))); } temp = (byte[]) headerIFDs[i].get(new Integer(15)); if (temp != null) { // the image data // ID_IMAGES metadata.put("Number of images", new Integer( DataTools.bytesToInt(temp, 0, 4, littleEndian))); metadata.put("Image width", new Integer( DataTools.bytesToInt(temp, 4, 4, littleEndian))); metadata.put("Image height", new Integer( DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Bits per Sample", new Integer( DataTools.bytesToInt(temp, 12, 4, littleEndian))); metadata.put("Samples per pixel", new Integer( DataTools.bytesToInt(temp, 16, 4, littleEndian))); } temp = (byte[]) headerIFDs[i].get(new Integer(20)); if (temp != null) { // dimension description // ID_DIMDESCR int pt = 0; metadata.put("Voxel Version", new Integer( DataTools.bytesToInt(temp, 0, 4, littleEndian))); int voxelType = DataTools.bytesToInt(temp, 4, 4, littleEndian); String type = ""; switch (voxelType) { case 0: type = "undefined"; break; case 10: type = "gray normal"; break; case 20: type = "RGB"; break; } metadata.put("VoxelType", type); metadata.put("Bytes per pixel", new Integer( DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Real world resolution", new Integer( DataTools.bytesToInt(temp, 12, 4, littleEndian))); int length = DataTools.bytesToInt(temp, 16, 4, littleEndian); metadata.put("Maximum voxel intensity", DataTools.stripString(new String(temp, 20, length))); pt = 20 + length; pt += 4; metadata.put("Minimum voxel intensity", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4 + length + 4; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); for (int j=0; j<length; j++) { int dimId = DataTools.bytesToInt(temp, pt, 4, littleEndian); String dimType = ""; switch (dimId) { case 0: dimType = "undefined"; break; case 120: dimType = "x"; break; case 121: dimType = "y"; break; case 122: dimType = "z"; break; case 116: dimType = "t"; break; case 6815843: dimType = "channel"; break; case 6357100: dimType = "wave length"; break; case 7602290: dimType = "rotation"; break; case 7798904: dimType = "x-wide for the motorized xy-stage"; break; case 7798905: dimType = "y-wide for the motorized xy-stage"; break; case 7798906: dimType = "z-wide for the z-stage-drive"; break; case 4259957: dimType = "user1 - unspecified"; break; case 4325493: dimType = "user2 - unspecified"; break; case 4391029: dimType = "user3 - unspecified"; break; case 6357095: dimType = "graylevel"; break; case 6422631: dimType = "graylevel1"; break; case 6488167: dimType = "graylevel2"; break; case 6553703: dimType = "graylevel3"; break; case 7864398: dimType = "logical x"; break; case 7929934: dimType = "logical y"; break; case 7995470: dimType = "logical z"; break; case 7602254: dimType = "logical t"; break; case 7077966: dimType = "logical lambda"; break; case 7471182: dimType = "logical rotation"; break; case 5767246: dimType = "logical x-wide"; break; case 5832782: dimType = "logical y-wide"; break; case 5898318: dimType = "logical z-wide"; break; } if (dimType.equals("channel")) numChannels++; metadata.put("Dim" + j + " type", dimType); pt += 4; metadata.put("Dim" + j + " size", new Integer( DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dim" + j + " distance between sub-dimensions", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; int len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " physical length", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " physical origin", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " name", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " description", DataTools.stripString(new String(temp, pt, len))); } } temp = (byte[]) headerIFDs[i].get(new Integer(30)); if (temp != null) { // filter data // ID_FILTERSET // not currently used } temp = (byte[]) headerIFDs[i].get(new Integer(40)); if (temp != null) { // time data // ID_TIMEINFO try { metadata.put("Number of time-stamped dimensions", new Integer(DataTools.bytesToInt(temp, 0, 4, littleEndian))); int nDims = DataTools.bytesToInt(temp, 4, 4, littleEndian); metadata.put("Time-stamped dimension", new Integer(nDims)); int pt = 8; for (int j=0; j < nDims; j++) { metadata.put("Dimension " + j + " ID", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dimension " + j + " size", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dimension " + j + " distance between dimensions", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; } int numStamps = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of time-stamps", new Integer(numStamps)); for (int j=0; j<numStamps; j++) { metadata.put("Timestamp " + j, DataTools.stripString(new String(temp, pt, 64))); pt += 64; } int numTMs = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of time-markers", new Integer(numTMs)); for (int j=0; j<numTMs; j++) { int numDims = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; for (int k=0; k<numDims; k++) { metadata.put("Time-marker " + j + " Dimension " + k + " coordinate", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; } metadata.put("Time-marker " + j, DataTools.stripString(new String(temp, pt, 64))); pt += 64; } } catch (Throwable t) { } } temp = (byte[]) headerIFDs[i].get(new Integer(50)); if (temp != null) { // scanner data // ID_SCANNERSET // not currently used } temp = (byte[]) headerIFDs[i].get(new Integer(60)); if (temp != null) { // experiment data // ID_EXPERIMENT int pt = 8; int len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Image Description", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Main file extension", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Single image format identifier", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Single image extension", DataTools.stripString(new String(temp, pt, 2*len))); } temp = (byte[]) headerIFDs[i].get(new Integer(70)); if (temp != null) { // LUT data // ID_LUTDESC int pt = 0; int nChannels = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of LUT channels", new Integer(nChannels)); metadata.put("ID of colored dimension", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; for (int j=0; j<nChannels; j++) { metadata.put("LUT Channel " + j + " version", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; int invert = DataTools.bytesToInt(temp, pt, 1, littleEndian); pt += 1; boolean inverted = invert == 1; metadata.put("LUT Channel " + j + " inverted?", new Boolean(inverted).toString()); int length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " description", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " filename", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " name", DataTools.stripString(new String(temp, pt, length))); pt += length; pt += 8; } } } // The metadata store we're working with. MetadataStore store = new DummyMetadataStore(); try { store = getMetadataStore(currentId); } catch (Exception e) { } if (numChannels == 0) numChannels++; try { if (isRGB(currentId)) numChannels *= 3; } catch (Exception exc) { } Integer sizeX = (Integer) metadata.get("Image width"); Integer sizeY = (Integer) metadata.get("Image height"); Integer sizeZ = (Integer) metadata.get("Number of images"); store.setPixels(sizeX, sizeY, sizeZ, new Integer(numChannels == 0 ? 1 : numChannels), // SizeC new Integer(1), // SizeT null, // PixelType new Boolean(!littleEndian), // BigEndian "XYZTC", // DimensionOrder null); // Use index 0 String timestamp = (String) metadata.get("Timestamp 1"); String description = (String) metadata.get("Image Description"); try { store.setImage(null, timestamp.substring(3), description, null); } catch (NullPointerException n) { }// String voxel = metadata.get("VoxelType").toString();// String photoInterp;// if (voxel.equals("gray normal")) photoInterp = "monochrome";// else if (voxel.equals("RGB")) photoInterp = "RGB";// else photoInterp = "monochrome";// OMETools.setAttribute(ome, "ChannelInfo",// "PhotometricInterpretation", photoInterp);// OMETools.setAttribute(ome, "ChannelInfo", "SamplesPerPixel",// metadata.get("Samples per pixel").toString()); }
|
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/7e4d2f34455817883836e0b3f10b9319208ae5e6/LeicaReader.java/buggy/loci/formats/in/LeicaReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
2277,
1435,
288,
565,
309,
261,
3374,
5501,
22831,
422,
446,
13,
1446,
5501,
22831,
273,
309,
2377,
31,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
3374,
5501,
22831,
18,
2469,
31,
277,
27245,
288,
1377,
1160,
8526,
1906,
273,
261,
7229,
63,
5717,
1446,
5501,
22831,
63,
77,
8009,
588,
12,
2704,
2144,
12,
2163,
10019,
1377,
309,
261,
5814,
480,
446,
13,
288,
3639,
368,
326,
4166,
501,
3639,
368,
1599,
67,
2123,
8805,
3639,
1982,
18,
458,
2932,
1444,
3113,
1850,
394,
2144,
12,
751,
10348,
18,
3890,
17864,
12,
5814,
16,
374,
16,
1059,
16,
328,
10609,
3719,
1769,
3639,
1982,
18,
458,
2932,
1854,
434,
9225,
3113,
1850,
394,
2144,
12,
751,
10348,
18,
3890,
17864,
12,
5814,
16,
1059,
16,
1059,
16,
328,
10609,
3719,
1769,
3639,
1982,
18,
458,
2932,
1782,
434,
1544,
3113,
1850,
394,
2144,
12,
751,
10348,
18,
3890,
17864,
12,
5814,
16,
1725,
16,
1059,
16,
328,
10609,
3719,
1769,
3639,
1982,
18,
458,
2932,
1782,
434,
585,
2710,
3113,
1850,
394,
2144,
12,
751,
10348,
18,
3890,
17864,
12,
5814,
16,
2593,
16,
1059,
16,
328,
10609,
3719,
1769,
3639,
1982,
18,
458,
2932,
2040,
585,
2710,
3113,
1850,
1910,
10348,
18,
6406,
780,
12,
2704,
514,
12,
5814,
16,
2872,
16,
1850,
14015,
4522,
13,
1982,
18,
588,
2932,
1782,
434,
585,
2710,
7923,
2934,
474,
620,
1435,
3719,
1769,
1377,
289,
1377,
1906,
273,
261,
7229,
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,
4750,
918,
1208,
2277,
1435,
288,
565,
309,
261,
3374,
5501,
22831,
422,
446,
13,
1446,
5501,
22831,
273,
309,
2377,
31,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
3374,
5501,
22831,
18,
2469,
31,
277,
27245,
288,
1377,
1160,
8526,
1906,
273,
261,
7229,
63,
5717,
1446,
5501,
22831,
63,
77,
8009,
588,
12,
2704,
2144,
12,
2163,
10019,
1377,
309,
261,
5814,
480,
446,
13,
288,
3639,
368,
326,
4166,
501,
3639,
368,
1599,
67,
2123,
8805,
3639,
1982,
18,
458,
2932,
1444,
3113,
1850,
394,
2144,
12,
751,
10348,
18,
3890,
17864,
12,
5814,
16,
374,
16,
1059,
16,
328,
10609,
3719,
1769,
3639,
1982,
18,
458,
2932,
1854,
434,
9225,
3113,
2
] |
fireSelectionChanged(fullChangeStart, fullChangeFinish); fullChangeStart = -1; fullChangeFinish = -1;
|
swingThreadSource.getReadWriteLock().writeLock().lock(); try { fireSelectionChanged(fullChangeStart, fullChangeFinish); fullChangeStart = -1; fullChangeFinish = -1; } finally { swingThreadSource.getReadWriteLock().writeLock().unlock(); }
|
public void setValueIsAdjusting(boolean valueIsAdjusting) { this.valueIsAdjusting = valueIsAdjusting; // fire one extra change containing all changes in this set if(!valueIsAdjusting) { if(fullChangeStart != -1 && fullChangeFinish != -1) { fireSelectionChanged(fullChangeStart, fullChangeFinish); fullChangeStart = -1; fullChangeFinish = -1; } } }
|
10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/257089d9b56d674e07e80271894259c3da0ea66a/EventSelectionModel.java/clean/source/ca/odell/glazedlists/swing/EventSelectionModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5524,
2520,
10952,
310,
12,
6494,
460,
2520,
10952,
310,
13,
288,
3639,
333,
18,
1132,
2520,
10952,
310,
273,
460,
2520,
10952,
310,
31,
3639,
368,
4452,
1245,
2870,
2549,
4191,
777,
3478,
316,
333,
444,
3639,
309,
12,
5,
1132,
2520,
10952,
310,
13,
288,
5411,
309,
12,
2854,
3043,
1685,
480,
300,
21,
597,
1983,
3043,
11641,
480,
300,
21,
13,
288,
7734,
4452,
6233,
5033,
12,
2854,
3043,
1685,
16,
1983,
3043,
11641,
1769,
7734,
1983,
3043,
1685,
273,
300,
21,
31,
7734,
1983,
3043,
11641,
273,
300,
21,
31,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5524,
2520,
10952,
310,
12,
6494,
460,
2520,
10952,
310,
13,
288,
3639,
333,
18,
1132,
2520,
10952,
310,
273,
460,
2520,
10952,
310,
31,
3639,
368,
4452,
1245,
2870,
2549,
4191,
777,
3478,
316,
333,
444,
3639,
309,
12,
5,
1132,
2520,
10952,
310,
13,
288,
5411,
309,
12,
2854,
3043,
1685,
480,
300,
21,
597,
1983,
3043,
11641,
480,
300,
21,
13,
288,
7734,
4452,
6233,
5033,
12,
2854,
3043,
1685,
16,
1983,
3043,
11641,
1769,
7734,
1983,
3043,
1685,
273,
300,
21,
31,
7734,
1983,
3043,
11641,
273,
300,
21,
31,
5411,
289,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new GlueMessageDispatcher((AbstractConnector) connector);
|
return new GlueMessageDispatcher(endpoint);
|
public UMOMessageDispatcher create(UMOConnector connector) throws UMOException { return new GlueMessageDispatcher((AbstractConnector) connector); }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/589f59b15144184ea22999b384d5ea92ddec8bb9/GlueMessageDispatcherFactory.java/clean/providers/glue/src/main/java/org/mule/providers/soap/glue/GlueMessageDispatcherFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
587,
5980,
1079,
6681,
752,
12,
2799,
51,
7487,
8703,
13,
1216,
587,
5980,
503,
565,
288,
3639,
327,
394,
23138,
1079,
6681,
12,
8003,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
587,
5980,
1079,
6681,
752,
12,
2799,
51,
7487,
8703,
13,
1216,
587,
5980,
503,
565,
288,
3639,
327,
394,
23138,
1079,
6681,
12,
8003,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private int copyIconFile( )
|
private int copyIconFile( String filePath )
|
private int copyIconFile( ) { String templateFolderPath = ReportPlugin.getDefault( ) .getTemplatePreference( ); String filePath = page.getPreviewImagePath( ); if ( !( new File( filePath ).exists( ) ) ) { ExceptionHandler.openErrorMessageBox( Messages.getString( "PublishTemplateAction.wizard.errorTitle" ), //$NON-NLS-1$ Messages.getString( "PublishTemplateAction.wizard.message.PreviewImageNotExist" ) ); //$NON-NLS-1$ return 1; } String fileName = filePath.substring( filePath.lastIndexOf( File.separator ) + 1 ); File targetFolder = new File( templateFolderPath ); String targetFileName = fileName; if ( !checkExtensions( fileName ) ) { ExceptionHandler.openErrorMessageBox( Messages.getString( "PublishTemplateAction.wizard.errorTitle" ), //$NON-NLS-1$ Messages.getString( "PublishTemplateAction.wizard.message.PreviewImageNotValid" ) ); //$NON-NLS-1$ return 1; } File targetFile = new File( targetFolder, targetFileName ); if ( new File( filePath ).compareTo( targetFile ) == 0 ) { // if the two files are the same one , then do nothing. return 0; } int overwrite = Window.OK; try { if ( targetFile.exists( ) ) { String[] buttons = new String[]{ IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }; String question = Messages.getFormattedString( "SaveAsDialog.overwriteQuestion", //$NON-NLS-1$ new Object[]{ targetFile.getAbsolutePath( ) } ); MessageDialog d = new MessageDialog( getShell( ), Messages.getString( "SaveAsDialog.Question" ), //$NON-NLS-1$ null, question, MessageDialog.QUESTION, buttons, 0 ); overwrite = d.open( ); } if ( overwrite == Window.OK && ( targetFile.exists( ) || ( !targetFile.exists( ) && targetFile.createNewFile( ) ) ) ) { copyFile( filePath, targetFile ); } } catch ( IOException e ) { ExceptionHandler.handle( e ); } return overwrite; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/5114fa510f44bbe78ab0d1ad7203021668fd2dc0/PublishTemplateWizard.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/PublishTemplateWizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1610,
5554,
812,
12,
262,
202,
95,
202,
202,
780,
1542,
28785,
273,
8706,
3773,
18,
588,
1868,
12,
262,
9506,
202,
18,
588,
2283,
9624,
12,
11272,
202,
202,
780,
4612,
273,
1363,
18,
588,
11124,
2040,
743,
12,
11272,
202,
202,
430,
261,
401,
12,
394,
1387,
12,
4612,
262,
18,
1808,
12,
262,
262,
262,
202,
202,
95,
1082,
202,
18894,
18,
3190,
14935,
3514,
12,
4838,
18,
588,
780,
12,
315,
6024,
2283,
1803,
18,
31837,
18,
1636,
4247,
6,
262,
16,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
5058,
18,
588,
780,
12,
315,
6024,
2283,
1803,
18,
31837,
18,
2150,
18,
11124,
2040,
8418,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2463,
404,
31,
202,
202,
97,
202,
202,
780,
3968,
273,
4612,
18,
28023,
12,
4612,
18,
2722,
31985,
12,
1387,
18,
11287,
262,
397,
404,
11272,
202,
202,
812,
1018,
3899,
273,
394,
1387,
12,
1542,
28785,
11272,
202,
202,
780,
1018,
4771,
273,
3968,
31,
202,
202,
430,
261,
401,
1893,
7513,
12,
3968,
262,
262,
202,
202,
95,
1082,
202,
18894,
18,
3190,
14935,
3514,
12,
4838,
18,
588,
780,
12,
315,
6024,
2283,
1803,
18,
31837,
18,
1636,
4247,
6,
262,
16,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
5058,
18,
588,
780,
12,
315,
6024,
2283,
1803,
18,
31837,
18,
2150,
18,
11124,
2040,
1248,
1556,
6,
262,
11272,
4329,
3993,
17,
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,
1610,
5554,
812,
12,
262,
202,
95,
202,
202,
780,
1542,
28785,
273,
8706,
3773,
18,
588,
1868,
12,
262,
9506,
202,
18,
588,
2283,
9624,
12,
11272,
202,
202,
780,
4612,
273,
1363,
18,
588,
11124,
2040,
743,
12,
11272,
202,
202,
430,
261,
401,
12,
394,
1387,
12,
4612,
262,
18,
1808,
12,
262,
262,
262,
202,
202,
95,
1082,
202,
18894,
18,
3190,
14935,
3514,
12,
4838,
18,
588,
780,
12,
315,
6024,
2283,
1803,
18,
31837,
18,
1636,
4247,
6,
262,
16,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
5058,
18,
588,
780,
12,
315,
6024,
2283,
1803,
18,
31837,
18,
2150,
18,
11124,
2040,
8418,
6,
262,
11272,
2
] |
if (FloodfillNetworkDatabaseFacade.isFloodfill(info)) {
|
if (info != null && FloodfillNetworkDatabaseFacade.isFloodfill(info)) {
|
public void add(Hash entry) { //if (_context.profileOrganizer().isFailing(entry)) // return; if ( (_toIgnore != null) && (_toIgnore.contains(entry)) ) return; if (entry.equals(_context.routerHash())) return; if (_context.shitlist().isShitlisted(entry)) return; RouterInfo info = _context.netDb().lookupRouterInfoLocally(entry); if (info == null) return; if (FloodfillNetworkDatabaseFacade.isFloodfill(info)) { _floodfillMatches.add(entry); } else { if ( (_wanted > _matches) && (_key != null) ) { BigInteger diff = getDistance(_key, entry); _sorted.put(diff, entry); } } _matches++; }
|
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/c5aab8c75076dd9fddf68e3cabf21a71dcec310f/FloodfillPeerSelector.java/clean/router/java/src/net/i2p/router/networkdb/kademlia/FloodfillPeerSelector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
527,
12,
2310,
1241,
13,
288,
5411,
368,
430,
261,
67,
2472,
18,
5040,
6001,
304,
1824,
7675,
291,
3754,
310,
12,
4099,
3719,
5411,
368,
565,
327,
31,
5411,
309,
261,
261,
67,
869,
3777,
480,
446,
13,
597,
261,
67,
869,
3777,
18,
12298,
12,
4099,
3719,
262,
7734,
327,
31,
5411,
309,
261,
4099,
18,
14963,
24899,
2472,
18,
10717,
2310,
1435,
3719,
7734,
327,
31,
5411,
309,
261,
67,
2472,
18,
674,
305,
1098,
7675,
291,
1555,
305,
18647,
12,
4099,
3719,
7734,
327,
31,
5411,
9703,
966,
1123,
273,
389,
2472,
18,
2758,
4331,
7675,
8664,
8259,
966,
1333,
1230,
12,
4099,
1769,
5411,
309,
261,
1376,
422,
446,
13,
7734,
327,
31,
13491,
309,
261,
1376,
480,
446,
597,
478,
383,
369,
5935,
3906,
4254,
12467,
18,
291,
42,
383,
369,
5935,
12,
1376,
3719,
288,
7734,
389,
74,
383,
369,
5935,
6869,
18,
1289,
12,
4099,
1769,
5411,
289,
469,
288,
7734,
309,
261,
261,
67,
25861,
405,
389,
8436,
13,
597,
261,
67,
856,
480,
446,
13,
262,
288,
10792,
10246,
3122,
273,
29452,
24899,
856,
16,
1241,
1769,
10792,
389,
10350,
18,
458,
12,
5413,
16,
1241,
1769,
7734,
289,
5411,
289,
5411,
389,
8436,
9904,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
527,
12,
2310,
1241,
13,
288,
5411,
368,
430,
261,
67,
2472,
18,
5040,
6001,
304,
1824,
7675,
291,
3754,
310,
12,
4099,
3719,
5411,
368,
565,
327,
31,
5411,
309,
261,
261,
67,
869,
3777,
480,
446,
13,
597,
261,
67,
869,
3777,
18,
12298,
12,
4099,
3719,
262,
7734,
327,
31,
5411,
309,
261,
4099,
18,
14963,
24899,
2472,
18,
10717,
2310,
1435,
3719,
7734,
327,
31,
5411,
309,
261,
67,
2472,
18,
674,
305,
1098,
7675,
291,
1555,
305,
18647,
12,
4099,
3719,
7734,
327,
31,
5411,
9703,
966,
1123,
273,
389,
2472,
18,
2758,
4331,
7675,
8664,
8259,
966,
1333,
1230,
12,
4099,
1769,
5411,
309,
261,
1376,
422,
446,
13,
7734,
2
] |
ITranslationUnit myTranslationUnit; ICElement[] elements; int x;
|
ITranslationUnit myTranslationUnit; ICElement[] elements; int x;
|
public void testGetChildren() throws CModelException { ITranslationUnit myTranslationUnit; ICElement[] elements; int x; ExpectedStrings expectedString=new ExpectedStrings(expectedStringList); myTranslationUnit=CProjectHelper.findTranslationUnit(testProject,"exetest.c"); if (myTranslationUnit.hasChildren()) { elements=myTranslationUnit.getChildren(); for (x=0;x<elements.length;x++) { expectedString.foundString(elements[x].getElementName()); } } assertTrue("PR:23603 " +expectedString.getMissingString(),expectedString.gotAll()); assertTrue(expectedString.getExtraString(),!expectedString.gotExtra()); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/cd284ca6ec787a9d394dc976606f837a515f2339/TranslationUnitTests.java/clean/core/org.eclipse.cdt.core.tests/model/org/eclipse/cdt/core/model/tests/TranslationUnitTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
4212,
1435,
1216,
385,
1488,
503,
288,
3639,
467,
6717,
2802,
3399,
6717,
2802,
31,
3639,
26899,
1046,
8526,
2186,
31,
3639,
509,
619,
31,
3639,
13219,
7957,
2665,
780,
33,
2704,
13219,
7957,
12,
3825,
780,
682,
1769,
3639,
3399,
6717,
2802,
33,
39,
4109,
2276,
18,
4720,
6717,
2802,
12,
3813,
4109,
10837,
338,
278,
395,
18,
71,
8863,
7734,
309,
261,
4811,
6717,
2802,
18,
5332,
4212,
10756,
288,
5411,
2186,
33,
4811,
6717,
2802,
18,
588,
4212,
5621,
5411,
364,
261,
92,
33,
20,
31,
92,
32,
6274,
18,
2469,
31,
92,
27245,
288,
7734,
2665,
780,
18,
7015,
780,
12,
6274,
63,
92,
8009,
21336,
461,
10663,
5411,
289,
3639,
289,
3639,
1815,
5510,
2932,
8025,
30,
29941,
4630,
315,
397,
3825,
780,
18,
588,
4841,
780,
9334,
3825,
780,
18,
13212,
1595,
10663,
3639,
1815,
5510,
12,
3825,
780,
18,
588,
7800,
780,
9334,
5,
3825,
780,
18,
13212,
7800,
10663,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
918,
1842,
967,
4212,
1435,
1216,
385,
1488,
503,
288,
3639,
467,
6717,
2802,
3399,
6717,
2802,
31,
3639,
26899,
1046,
8526,
2186,
31,
3639,
509,
619,
31,
3639,
13219,
7957,
2665,
780,
33,
2704,
13219,
7957,
12,
3825,
780,
682,
1769,
3639,
3399,
6717,
2802,
33,
39,
4109,
2276,
18,
4720,
6717,
2802,
12,
3813,
4109,
10837,
338,
278,
395,
18,
71,
8863,
7734,
309,
261,
4811,
6717,
2802,
18,
5332,
4212,
10756,
288,
5411,
2186,
33,
4811,
6717,
2802,
18,
588,
4212,
5621,
5411,
364,
261,
92,
33,
20,
31,
92,
32,
6274,
18,
2469,
31,
92,
27245,
288,
7734,
2665,
780,
18,
7015,
780,
12,
6274,
63,
92,
8009,
21336,
461,
10663,
5411,
289,
2
] |
break; case Ajp13RequestHeaders.SSL_CIPHER_ATTR:
|
public long parseNext() throws IOException { long total_filled = -1; if (_buffer == null) { if (_header == null) { _header = _buffers.getBuffer(Ajp13Packet.MAX_PACKET_SIZE); _header.clear(); } _buffer = _header; _tok0 = new View(_header); _tok1 = new View(_header); _tok0.setPutIndex(_tok0.getIndex()); _tok1.setPutIndex(_tok1.getIndex()); } if (_state == STATE_END) throw new IllegalStateException("STATE_END"); if (_state > STATE_END && _contentPosition == _contentLength) { _state = STATE_END; _handler.messageComplete(_contentPosition); return total_filled; } int length = _buffer.length(); // Fill buffer if we can if (length == 0) { int filled = -1; if (_body != null && _buffer != _body) { _buffer = _body; filled = _buffer.length(); } if (_buffer.markIndex() == 0 && _buffer.putIndex() == _buffer.capacity()) throw new IOException("FULL"); if (_endp != null && filled <= 0) { // Compress buffer if handling _content buffer // TODO check this is not moving data too much if (_buffer == _body) _buffer.compact(); if (_buffer.space() == 0) { throw new IOException("FULL"); } try { if (total_filled < 0) total_filled = 0; filled = _endp.fill(_buffer); if (filled > 0) total_filled += filled; } catch (IOException e) { e.printStackTrace(); Log.debug(e); reset(true); throw (e instanceof EofException) ? e : new EofException(e); } } if (filled < 0) { if (_state > STATE_END) { _state = STATE_END; _handler.messageComplete(_contentPosition); return total_filled; } reset(true); throw new EofException(); } length = _buffer.length(); } // Parse Header Buffer bufHeaderName = null; Buffer bufHeaderValue = null; int attr_type = 0; while (_state < STATE_END) { switch (_state) { case STATE_START: _contentLength = HttpTokens.UNKNOWN_CONTENT; int _magic = Ajp13RequestPacket.getInt(_buffer); if (_magic != Ajp13RequestHeaders.MAGIC) { throw new IOException("Bad AJP13 rcv packet: " + "0x" + Integer.toHexString(_magic) + " expected " + "0x" + Integer.toHexString(Ajp13RequestHeaders.MAGIC) + " " + this); } _state = STATE_AJP13HEADER_PACKET_LENGTH; case STATE_AJP13HEADER_PACKET_LENGTH: int packetLength = Ajp13RequestPacket.getInt(_buffer); if (packetLength > Ajp13Packet.MAX_PACKET_SIZE) throw new IOException("AJP13 packet (" + packetLength + "bytes) too large for buffer"); _state = STATE_AJP13HEADER_PACKET_TYPE; case STATE_AJP13HEADER_PACKET_TYPE: byte packetType = Ajp13RequestPacket.getByte(_buffer); switch (packetType) { case Ajp13Packet.FORWARD_REQUEST_ORDINAL: _handler.startForwardRequest(); _state = STATE_AJP13HEADER_REQUEST_METHOD; break; case Ajp13Packet.SHUTDOWN_ORDINAL: // Log.warn("AJP13 SHUTDOWN not // supported!"); // break; case Ajp13Packet.CPING_REQUEST_ORDINAL: // handler.cpingRequest(); // break; default: // XXX Throw an Exception here?? Close // connection! Log.warn("AJP13 message type ({SHUTDOWN, CPING, PING}) not supported/recognized as a " + "container request", Integer.toString(packetType)); throw new IllegalStateException("SHUTDOWN, CPING, PING is not implemented"); } break; case STATE_AJP13HEADER_REQUEST_METHOD: _handler.parsedMethod(Ajp13RequestPacket.getMethod(_buffer)); _handler.parsedProtocol(Ajp13RequestPacket.getString(_buffer, _tok0)); _handler.parsedUri(Ajp13RequestPacket.getString(_buffer, _tok1)); _handler.parsedRemoteAddr(Ajp13RequestPacket.getString(_buffer, _tok1)); _handler.parsedRemoteHost(Ajp13RequestPacket.getString(_buffer, _tok1)); _handler.parsedServerName(Ajp13RequestPacket.getString(_buffer, _tok1)); _handler.parsedServerPort(Ajp13RequestPacket.getInt(_buffer)); _handler.parsedSslSecure(Ajp13RequestPacket.getBool(_buffer)); _headers = Ajp13RequestPacket.getInt(_buffer); _state = _headers == 0 ? STATE_AJP13HEADER_REQUEST_ATTR : STATE_AJP13HEADER_REQUEST_HEADER_NAME; break; case STATE_AJP13HEADER_REQUEST_HEADER_NAME: bufHeaderName = Ajp13RequestPacket.getHeaderName(_buffer, _tok0); bufHeaderValue = Ajp13RequestPacket.getString(_buffer, _tok1); if (bufHeaderName != null && bufHeaderName.toString().equals(Ajp13RequestHeaders.CONTENT_LENGTH)) { _contentLength = BufferUtil.toLong(bufHeaderValue); if (_contentLength <= 0) _contentLength = HttpTokens.NO_CONTENT; } _handler.parsedHeader(bufHeaderName, bufHeaderValue); _state = --_headers == 0 ? STATE_AJP13HEADER_REQUEST_ATTR : STATE_AJP13HEADER_REQUEST_HEADER_NAME; break; case STATE_AJP13HEADER_REQUEST_ATTR: attr_type = Ajp13RequestPacket.getByte(_buffer) & 0xff; if (attr_type == 0xFF) { _contentPosition = 0; switch ((int) _contentLength) { case HttpTokens.UNKNOWN_CONTENT: case HttpTokens.NO_CONTENT: _state = STATE_END; _generator.setNeedMore(false); _handler.headerComplete(); _handler.messageComplete(_contentPosition); break; default: if (_buffers != null && _body == null && _buffer == _header && _contentLength > (_header.capacity() - _header.getIndex())) { _body = _buffers.getBuffer(Ajp13Packet.MAX_PACKET_SIZE); _body.clear(); } _state = STATE_AJP13CHUNK_START; _handler.headerComplete(); // May // recurse // here! break; } return total_filled; } _state = STATE_AJP13HEADER_REQUEST_ATTR_VALUE; case STATE_AJP13HEADER_REQUEST_ATTR_VALUE: _state = STATE_AJP13HEADER_REQUEST_ATTR; switch (attr_type) { // XXX How does this plug into the web // containers // authentication? case Ajp13RequestHeaders.REMOTE_USER_ATTR: case Ajp13RequestHeaders.AUTH_TYPE_ATTR: break; case Ajp13RequestHeaders.QUERY_STRING_ATTR: _handler.parsedQueryString(Ajp13RequestPacket.getString(_buffer, _tok1)); break; case Ajp13RequestHeaders.JVM_ROUTE_ATTR: // XXX Using old Jetty 5 key, // should change! // Note used in // org.mortbay.jetty.servlet.HashSessionIdManager _handler.parsedRequestAttribute("org.mortbay.http.ajp.JVMRoute", Ajp13RequestPacket.getString(_buffer, _tok1)); break; case Ajp13RequestHeaders.SSL_CERT_ATTR: _handler.parsedRequestAttribute("javax.servlet.request.cipher_suite", Ajp13RequestPacket.getString(_buffer, _tok1)); break; case Ajp13RequestHeaders.SSL_CIPHER_ATTR: // XXX Implement! Investigate // SslSocketConnector.customize() break; case Ajp13RequestHeaders.SSL_SESSION_ATTR: _handler.parsedRequestAttribute("javax.servlet.request.ssl_session", Ajp13RequestPacket.getString(_buffer, _tok1)); break; case Ajp13RequestHeaders.REQUEST_ATTR: _handler.parsedRequestAttribute(Ajp13RequestPacket.getString(_buffer, _tok0).toString(), Ajp13RequestPacket.getString(_buffer, _tok1)); break; // New Jk API? // Check if experimental or can they // assumed to be // supported case Ajp13RequestHeaders.SSL_KEYSIZE_ATTR: _handler.parsedRequestAttribute("javax.servlet.request.key_size", Ajp13RequestPacket.getString(_buffer, _tok1)); break; // Used to lock down jk requests with a // secreate // key. case Ajp13RequestHeaders.SECRET_ATTR: // XXX Investigate safest way to // deal with // this... // should this tie into shutdown // packet? break; case Ajp13RequestHeaders.STORED_METHOD_ATTR: // XXX Confirm this should // really overide // previously parsed method? // _handler.parsedMethod(Ajp13PacketMethods.CACHE.get(Ajp13RequestPacket.getString())); break; // Legacy codes, simply ignore case Ajp13RequestHeaders.CONTEXT_ATTR: case Ajp13RequestHeaders.SERVLET_PATH_ATTR: default: Log.warn("Unsupported Ajp13 Request Attribute {}", new Integer(attr_type)); break; } break; default: throw new IllegalStateException("State not regonised {" + _state + "}"); } } // end of HEADER states loop Buffer chunk; while (_state > STATE_END) { switch (_state) { case STATE_AJP13CHUNK_START: int _magic = Ajp13RequestPacket.getInt(_buffer); if (_magic != Ajp13RequestHeaders.MAGIC) { throw new IOException("Bad AJP13 rcv packet: " + "0x" + Integer.toHexString(_magic) + " expected " + "0x" + Integer.toHexString(Ajp13RequestHeaders.MAGIC) + " " + this); } _chunkLength = 0; _chunkPosition = 0; _state = STATE_AJP13CHUNK_LENGTH; case STATE_AJP13CHUNK_LENGTH: _chunkLength = Ajp13RequestPacket.getInt(_buffer) - 2; _state = STATE_AJP13CHUNK_LENGTH2; case STATE_AJP13CHUNK_LENGTH2: Ajp13RequestPacket.getInt(_buffer); if (_chunkLength == 0) { // _buffer.clear(); _state = STATE_END; _generator.setNeedMore(false); _generator.setExpectMore(false); _handler.messageComplete(_contentPosition); return total_filled; } _state = STATE_AJP13CHUNK; case STATE_AJP13CHUNK: int remaining = _chunkLength - _chunkPosition; if (remaining == 0) { _state = STATE_AJP13CHUNK_START; if (_contentPosition < _contentLength) { _generator.setNeedMore(true); } else { // _state=STATE_END; _generator.setNeedMore(false); _generator.setExpectMore(false); } return total_filled; } if (_buffer.length() < remaining) { remaining = _buffer.length(); } chunk = Ajp13RequestPacket.get(_buffer, (int) remaining); _contentPosition += chunk.length(); _chunkPosition += chunk.length(); _contentView.update(chunk); // _contentView.put(chunk); remaining = _chunkLength - _chunkPosition; if (remaining == 0) { _state = STATE_AJP13CHUNK_START; if (_contentPosition < _contentLength) { _generator.setNeedMore(true); } else { // _state=STATE_END; _generator.setNeedMore(false); _generator.setExpectMore(false); } } else { } _handler.content(chunk); return total_filled; default: throw new IllegalStateException("Invalid Content State"); } } return total_filled; }
|
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/fccd8b9435afd5f53d41569f180645bf24e36aed/Ajp13Parser.java/buggy/trunk/extras/ajp/src/main/java/org/mortbay/jetty/ajp/Ajp13Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
1109,
2134,
1435,
1216,
1860,
565,
288,
3639,
1525,
2078,
67,
13968,
273,
300,
21,
31,
3639,
309,
261,
67,
4106,
422,
446,
13,
3639,
288,
5411,
309,
261,
67,
3374,
422,
446,
13,
5411,
288,
7734,
389,
3374,
273,
389,
28101,
18,
588,
1892,
12,
37,
21797,
3437,
6667,
18,
6694,
67,
12231,
1584,
67,
4574,
1769,
7734,
389,
3374,
18,
8507,
5621,
5411,
289,
5411,
389,
4106,
273,
389,
3374,
31,
5411,
389,
17692,
20,
273,
394,
4441,
24899,
3374,
1769,
5411,
389,
17692,
21,
273,
394,
4441,
24899,
3374,
1769,
5411,
389,
17692,
20,
18,
542,
6426,
1016,
24899,
17692,
20,
18,
588,
1016,
10663,
5411,
389,
17692,
21,
18,
542,
6426,
1016,
24899,
17692,
21,
18,
588,
1016,
10663,
3639,
289,
3639,
309,
261,
67,
2019,
422,
7442,
67,
4415,
13,
5411,
604,
394,
5477,
2932,
7998,
67,
4415,
8863,
3639,
309,
261,
67,
2019,
405,
7442,
67,
4415,
597,
389,
1745,
2555,
422,
389,
1745,
1782,
13,
3639,
288,
5411,
389,
2019,
273,
7442,
67,
4415,
31,
5411,
389,
4176,
18,
2150,
6322,
24899,
1745,
2555,
1769,
5411,
327,
2078,
67,
13968,
31,
3639,
289,
3639,
509,
769,
273,
389,
4106,
18,
2469,
5621,
3639,
368,
14192,
1613,
309,
732,
848,
3639,
309,
261,
2469,
422,
374,
13,
3639,
288,
5411,
509,
6300,
273,
300,
21,
31,
5411,
309,
261,
67,
3432,
480,
446,
597,
389,
4106,
480,
389,
3432,
13,
5411,
288,
7734,
389,
4106,
273,
389,
3432,
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,
1525,
1109,
2134,
1435,
1216,
1860,
565,
288,
3639,
1525,
2078,
67,
13968,
273,
300,
21,
31,
3639,
309,
261,
67,
4106,
422,
446,
13,
3639,
288,
5411,
309,
261,
67,
3374,
422,
446,
13,
5411,
288,
7734,
389,
3374,
273,
389,
28101,
18,
588,
1892,
12,
37,
21797,
3437,
6667,
18,
6694,
67,
12231,
1584,
67,
4574,
1769,
7734,
389,
3374,
18,
8507,
5621,
5411,
289,
5411,
389,
4106,
273,
389,
3374,
31,
5411,
389,
17692,
20,
273,
394,
4441,
24899,
3374,
1769,
5411,
389,
17692,
21,
273,
394,
4441,
24899,
3374,
1769,
5411,
389,
17692,
20,
18,
542,
6426,
1016,
24899,
17692,
20,
18,
588,
1016,
10663,
5411,
389,
17692,
21,
18,
542,
6426,
1016,
2
] |
|
new EngineException( "Error happened while running the report", t );
|
throw new EngineException( "Error happened while running the report", t );
|
public void run( ) throws EngineException { setRunningFlag( true ); // register default parameters and validate if ( !validateParameters( ) ) { setRunningFlag( false ); throw new EngineException( MessageConstants.INVALID_PARAMETER_EXCEPTION ); //$NON-NLS-1$ } loadDesign( ); prepareDesign( ); startFactory( ); startRender( ); try { IContentEmitter emitter = createContentEmitter( ); Report reportDesign = executionContext.getReport( ); ReportExecutor executor = new ReportExecutor( executionContext, reportDesign, null ); IReportExecutor lExecutor = new LocalizedReportExecutor( executionContext, executor ); executionContext.setExecutor( executor ); initializeContentEmitter( emitter, executor ); // if we need do the paginate, do the paginate. String format = executionContext.getOutputFormat( ); boolean paginate = true; if ( "html".equalsIgnoreCase( format ) ) //$NON-NLS-1$ { if ( renderOptions instanceof HTMLRenderOption ) { HTMLRenderOption htmlOption = (HTMLRenderOption) renderOptions; paginate = htmlOption.getHtmlPagination( ); } } synchronized ( this ) { if ( !executionContext.isCanceled( ) ) { layoutEngine = LayoutEngineFactory.createLayoutEngine( emitter.getOutputFormat( ) ); } } if( layoutEngine != null ) { OnPageBreakLayoutPageHandle handle = new OnPageBreakLayoutPageHandle( executionContext ); layoutEngine.setPageHandler( handle ); CompositeContentEmitter outputEmitters = new CompositeContentEmitter( format); outputEmitters.addEmitter( emitter ); outputEmitters.addEmitter( handle.getEmitter( ) ); layoutEngine.layout( lExecutor, outputEmitters, paginate ); } closeRender( ); closeFactory( ); } catch ( EngineException e ) { throw e; } catch ( Exception ex ) { ex.printStackTrace( ); log.log( Level.SEVERE, "An error happened while running the report. Cause:", ex ); //$NON-NLS-1$ throw new EngineException( "Error happened while running the report", ex ); //$NON-NLS-1$ } catch ( OutOfMemoryError err ) { err.printStackTrace( ); log.log( Level.SEVERE, "An OutOfMemory error happened while running the report." ); //$NON-NLS-1$ throw err; } catch ( Throwable t ) { log.log( Level.SEVERE, "Error happened while running the report.", t ); //$NON-NLS-1$ new EngineException( "Error happened while running the report", t ); //$NON-NLS-1$ } finally { setRunningFlag( false ); } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/98682dbffa8be3f81bc96cb5719921cbf8b96a3f/RunAndRenderTask.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RunAndRenderTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
262,
1216,
10507,
503,
202,
95,
202,
202,
542,
7051,
4678,
12,
638,
11272,
202,
202,
759,
1744,
805,
1472,
471,
1954,
202,
202,
430,
261,
401,
5662,
2402,
12,
262,
262,
202,
202,
95,
1082,
202,
542,
7051,
4678,
12,
629,
11272,
1082,
202,
12849,
394,
10507,
503,
12,
6862,
202,
1079,
2918,
18,
9347,
67,
9819,
67,
12658,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
945,
15478,
12,
11272,
202,
202,
9366,
15478,
12,
11272,
202,
202,
1937,
1733,
12,
11272,
202,
202,
1937,
3420,
12,
11272,
202,
202,
698,
202,
202,
95,
1082,
202,
45,
1350,
13476,
11520,
273,
752,
1350,
13476,
12,
11272,
1082,
202,
4820,
2605,
15478,
273,
30521,
18,
588,
4820,
12,
11272,
1082,
202,
4820,
6325,
6601,
273,
394,
8706,
6325,
12,
30521,
16,
6862,
202,
6006,
15478,
16,
446,
11272,
1082,
202,
45,
4820,
6325,
328,
6325,
273,
394,
3566,
1235,
4820,
6325,
12,
6862,
202,
16414,
1042,
16,
6601,
11272,
1082,
202,
16414,
1042,
18,
542,
6325,
12,
6601,
11272,
1082,
202,
11160,
1350,
13476,
12,
11520,
16,
6601,
11272,
1082,
202,
759,
309,
732,
1608,
741,
326,
15171,
16,
741,
326,
15171,
18,
1082,
202,
780,
740,
273,
30521,
18,
588,
1447,
1630,
12,
11272,
1082,
202,
6494,
15171,
273,
638,
31,
1082,
202,
430,
261,
315,
2620,
9654,
14963,
5556,
12,
740,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
95,
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,
1086,
12,
262,
1216,
10507,
503,
202,
95,
202,
202,
542,
7051,
4678,
12,
638,
11272,
202,
202,
759,
1744,
805,
1472,
471,
1954,
202,
202,
430,
261,
401,
5662,
2402,
12,
262,
262,
202,
202,
95,
1082,
202,
542,
7051,
4678,
12,
629,
11272,
1082,
202,
12849,
394,
10507,
503,
12,
6862,
202,
1079,
2918,
18,
9347,
67,
9819,
67,
12658,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
945,
15478,
12,
11272,
202,
202,
9366,
15478,
12,
11272,
202,
202,
1937,
1733,
12,
11272,
202,
202,
1937,
3420,
12,
11272,
202,
202,
698,
202,
202,
95,
1082,
202,
45,
1350,
13476,
11520,
273,
752,
1350,
13476,
12,
11272,
2
] |
"Row #0: \n"
|
"Row #0: ", ""
|
public void testCurrentDateMemberBefore() { assertQueryReturns( "SELECT { CurrentDateMember([Time], " + "\"[Ti\\me]\\.[yyyy]\\.[Qq]\\.[m]\", BEFORE)} " + "ON COLUMNS FROM [Sales]", fold(new String[] { "Axis #0:", "{}", "Axis #1:", "{[Time].[1998].[Q4].[12]}", "Row #0: \n" })); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/a04ea212daee9e72a5b267d1bd2ab38d948c4a64/UdfTest.java/buggy/testsrc/main/mondrian/test/UdfTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3935,
1626,
4419,
4649,
1435,
565,
288,
3639,
1815,
1138,
1356,
12,
5411,
315,
4803,
288,
6562,
1626,
4419,
3816,
950,
6487,
315,
397,
5411,
7023,
63,
56,
77,
1695,
3501,
65,
19978,
63,
17722,
65,
19978,
63,
53,
85,
65,
19978,
63,
81,
65,
22564,
21203,
16869,
315,
397,
5411,
315,
673,
5597,
19639,
4571,
306,
23729,
65,
3113,
5411,
11590,
12,
2704,
514,
8526,
288,
7734,
315,
6558,
468,
20,
2773,
16,
7734,
13034,
16,
7734,
315,
6558,
468,
21,
2773,
16,
7734,
4144,
63,
950,
8009,
63,
19818,
28,
8009,
63,
53,
24,
8009,
63,
2138,
20817,
16,
7734,
315,
1999,
468,
20,
30,
3104,
1408,
5411,
289,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3935,
1626,
4419,
4649,
1435,
565,
288,
3639,
1815,
1138,
1356,
12,
5411,
315,
4803,
288,
6562,
1626,
4419,
3816,
950,
6487,
315,
397,
5411,
7023,
63,
56,
77,
1695,
3501,
65,
19978,
63,
17722,
65,
19978,
63,
53,
85,
65,
19978,
63,
81,
65,
22564,
21203,
16869,
315,
397,
5411,
315,
673,
5597,
19639,
4571,
306,
23729,
65,
3113,
5411,
11590,
12,
2704,
514,
8526,
288,
7734,
315,
6558,
468,
20,
2773,
16,
7734,
13034,
16,
7734,
315,
6558,
468,
21,
2773,
16,
7734,
4144,
63,
950,
8009,
63,
19818,
28,
8009,
63,
53,
24,
8009,
63,
2138,
20817,
16,
7734,
315,
1999,
468,
20,
30,
3104,
1408,
5411,
289,
10019,
565,
289,
2,
-100
] |
baseStep.addInterestingFile(file);
|
ResultFile resultFile = new ResultFile(ResultFile.FILE_TYPE_GENERAL, file, baseStep.getTransMeta().getName(), baseStep.getStepname()); baseStep.addResultFile(resultFile);
|
Writer getWriter(Object source) throws KettleException { Writer outputStreamWriter = (Writer) writers.get(source); if (outputStreamWriter != null) return outputStreamWriter; File file = getReplayFilename(destinationDirectory, processingFilename, dateString, fileExtension, source); baseStep.addInterestingFile(file); try { if (encoding == null) outputStreamWriter = new OutputStreamWriter( new FileOutputStream(file)); else outputStreamWriter = new OutputStreamWriter( new FileOutputStream(file), encoding); } catch (Exception e) { throw new KettleException( Messages.getString("AbstractFileErrorHandler.Exception.CouldNotCreateFileErrorHandlerForFile") //$NON-NLS-1$ + file.getPath(), e); } writers.put(source, outputStreamWriter); return outputStreamWriter; }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/dec476e31491451da3a8cd348e87c60e7e36c715/AbstractFileErrorHandler.java/clean/src/be/ibridge/kettle/trans/step/errorhandling/AbstractFileErrorHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
2289,
20568,
12,
921,
1084,
13,
1216,
1475,
278,
5929,
503,
288,
202,
202,
2289,
14956,
2289,
273,
261,
2289,
13,
18656,
18,
588,
12,
3168,
1769,
202,
202,
430,
261,
2844,
29421,
480,
446,
13,
1082,
202,
2463,
14956,
2289,
31,
202,
202,
812,
585,
273,
5561,
1601,
5359,
12,
10590,
2853,
16,
4929,
5359,
16,
24757,
16,
23908,
16,
1084,
1769,
202,
202,
1969,
4160,
18,
1289,
2465,
10100,
812,
12,
768,
1769,
202,
202,
698,
288,
1082,
202,
430,
261,
5999,
422,
446,
13,
9506,
202,
2844,
29421,
273,
394,
24248,
12,
25083,
202,
2704,
12942,
12,
768,
10019,
1082,
202,
12107,
9506,
202,
2844,
29421,
273,
394,
24248,
12,
25083,
202,
2704,
12942,
12,
768,
3631,
2688,
1769,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
12849,
394,
1475,
278,
5929,
503,
12,
6862,
202,
5058,
18,
588,
780,
2932,
7469,
812,
17729,
18,
503,
18,
4445,
1248,
1684,
812,
17729,
1290,
812,
7923,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
1082,
202,
15,
585,
18,
588,
743,
9334,
425,
1769,
202,
202,
97,
202,
202,
5363,
414,
18,
458,
12,
3168,
16,
14956,
2289,
1769,
202,
202,
2463,
14956,
2289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2289,
20568,
12,
921,
1084,
13,
1216,
1475,
278,
5929,
503,
288,
202,
202,
2289,
14956,
2289,
273,
261,
2289,
13,
18656,
18,
588,
12,
3168,
1769,
202,
202,
430,
261,
2844,
29421,
480,
446,
13,
1082,
202,
2463,
14956,
2289,
31,
202,
202,
812,
585,
273,
5561,
1601,
5359,
12,
10590,
2853,
16,
4929,
5359,
16,
24757,
16,
23908,
16,
1084,
1769,
202,
202,
1969,
4160,
18,
1289,
2465,
10100,
812,
12,
768,
1769,
202,
202,
698,
288,
1082,
202,
430,
261,
5999,
422,
446,
13,
9506,
202,
2844,
29421,
273,
394,
24248,
12,
25083,
202,
2704,
12942,
12,
768,
10019,
1082,
202,
12107,
9506,
202,
2844,
29421,
273,
394,
24248,
12,
25083,
202,
2704,
12942,
2
] |
portletName = appPortletConfig.getPortletName();
|
portletName = concSportletDef.getConcreteSportletConfig().getName();
|
public ConcreteSportlet(PortletDeploymentDescriptor pdd, ApplicationPortletConfig appPortletConfig, ConcreteSportletDefinition concSportletDef) throws PortletException { this.portletDD = pdd; this.concSportletConfig = concSportletDef.getConcreteSportletConfig(); String appID, cappID; int index; // Get PortletApplication UID e.g. classname.number appID = appPortletConfig.getApplicationPortletID(); portletName = appPortletConfig.getPortletName(); concreteID = concSportletDef.getConcretePortletID(); index = concreteID.lastIndexOf("."); cappID = concreteID.substring(0, index); if (!(cappID.equals(appID))) { String msg = "The portlet classname defined by the portlet application id: " + appID + " and the concrete portlet classname: " + cappID + " are not equal"; log.error(msg); throw new PortletException(msg); } this.contextHash = concSportletDef.getContextAttributes(); // Get locale information defaultLocale = concSportletConfig.getDefaultLocale(); languageList = concSportletConfig.getLanguageList(); portletSettings = new SportletSettings(this); }
|
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/253c665aa9577cf433ea0b71242ecfd8ca39ae30/ConcreteSportlet.java/buggy/src/org/gridlab/gridsphere/portletcontainer/impl/ConcreteSportlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
735,
6883,
55,
655,
1810,
12,
18566,
6733,
3187,
293,
449,
16,
4257,
18566,
809,
595,
18566,
809,
16,
735,
6883,
55,
655,
1810,
1852,
20570,
55,
655,
1810,
3262,
13,
1216,
21305,
503,
225,
288,
3639,
333,
18,
655,
1810,
5698,
273,
293,
449,
31,
3639,
333,
18,
11504,
55,
655,
1810,
809,
273,
20570,
55,
655,
1810,
3262,
18,
588,
25845,
55,
655,
1810,
809,
5621,
3639,
514,
24411,
16,
276,
2910,
734,
31,
3639,
509,
770,
31,
3639,
368,
968,
21305,
3208,
10034,
225,
425,
18,
75,
18,
7479,
18,
2696,
3639,
24411,
273,
595,
18566,
809,
18,
588,
3208,
18566,
734,
5621,
1850,
13114,
461,
273,
20570,
55,
655,
1810,
3262,
18,
588,
25845,
55,
655,
1810,
809,
7675,
17994,
5621,
540,
12220,
734,
273,
20570,
55,
655,
1810,
3262,
18,
588,
25845,
18566,
734,
5621,
3639,
770,
273,
12220,
734,
18,
2722,
31985,
2932,
1199,
1769,
3639,
276,
2910,
734,
273,
12220,
734,
18,
28023,
12,
20,
16,
770,
1769,
3639,
309,
16051,
12,
71,
2910,
734,
18,
14963,
12,
2910,
734,
20349,
288,
5411,
514,
1234,
273,
315,
1986,
13114,
7479,
2553,
635,
326,
13114,
2521,
612,
30,
315,
5411,
397,
24411,
397,
315,
471,
326,
12220,
13114,
7479,
30,
315,
397,
276,
2910,
734,
397,
315,
854,
486,
3959,
14432,
5411,
613,
18,
1636,
12,
3576,
1769,
5411,
604,
394,
21305,
503,
12,
3576,
1769,
3639,
289,
3639,
333,
18,
2472,
2310,
273,
20570,
55,
655,
1810,
3262,
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,
735,
6883,
55,
655,
1810,
12,
18566,
6733,
3187,
293,
449,
16,
4257,
18566,
809,
595,
18566,
809,
16,
735,
6883,
55,
655,
1810,
1852,
20570,
55,
655,
1810,
3262,
13,
1216,
21305,
503,
225,
288,
3639,
333,
18,
655,
1810,
5698,
273,
293,
449,
31,
3639,
333,
18,
11504,
55,
655,
1810,
809,
273,
20570,
55,
655,
1810,
3262,
18,
588,
25845,
55,
655,
1810,
809,
5621,
3639,
514,
24411,
16,
276,
2910,
734,
31,
3639,
509,
770,
31,
3639,
368,
968,
21305,
3208,
10034,
225,
425,
18,
75,
18,
7479,
18,
2696,
3639,
24411,
273,
595,
18566,
809,
18,
588,
3208,
18566,
734,
5621,
1850,
13114,
461,
273,
20570,
55,
655,
1810,
3262,
18,
588,
2
] |
properties = JiveProperties.getInstance();
|
properties = getZimbraProperties();
|
public static void setProperties(Map propertyMap) { if (properties == null) { if (isSetupMode()) { return; } properties = JiveProperties.getInstance(); } properties.putAll(propertyMap); }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/28ad709518b42a7332e2c83eb98198d1e965bd7c/JiveGlobals.java/clean/ZimbraServer/src/java/com/zimbra/cs/im/xmpp/util/JiveGlobals.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
23126,
12,
863,
1272,
863,
13,
288,
3639,
309,
261,
4738,
422,
446,
13,
288,
5411,
309,
261,
291,
7365,
2309,
10756,
288,
7734,
327,
31,
5411,
289,
5411,
1790,
273,
23448,
381,
15397,
2297,
5621,
3639,
289,
3639,
1790,
18,
458,
1595,
12,
4468,
863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
23126,
12,
863,
1272,
863,
13,
288,
3639,
309,
261,
4738,
422,
446,
13,
288,
5411,
309,
261,
291,
7365,
2309,
10756,
288,
7734,
327,
31,
5411,
289,
5411,
1790,
273,
23448,
381,
15397,
2297,
5621,
3639,
289,
3639,
1790,
18,
458,
1595,
12,
4468,
863,
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
] |
public static synchronized void registerForObjectTracking(GLContext olderContextOrNull, GLContext newContext, GLContext realShareContext) {
|
public static void registerForObjectTracking(GLContext olderContextOrNull, GLContext newContext, GLContext realShareContext) {
|
public static synchronized void registerForObjectTracking(GLContext olderContextOrNull, GLContext newContext, GLContext realShareContext) { if (isObjectTrackingEnabled() || isObjectTrackingDebuggingEnabled()) { if (olderContextOrNull != null && newContext != null) { if (entryFor(olderContextOrNull) != entryFor(newContext)) { throw new IllegalArgumentException("old and new contexts must be able to share textures and display lists"); } } // FIXME: downcast to GLContextImpl undesirable GLContextImpl impl1 = (GLContextImpl) olderContextOrNull; GLContextImpl impl2 = (GLContextImpl) newContext; GLObjectTracker tracker = null; GLObjectTracker deletedObjectTracker = null; GLContextImpl shareImpl = (GLContextImpl) realShareContext; // Before we zap the "user-level" object trackers, make sure // that all contexts in the share set share the destroyed object // tracker if (shareImpl != null) { deletedObjectTracker = shareImpl.getDeletedObjectTracker(); } if (deletedObjectTracker == null) { // Must create one and possibly set it up in the older context deletedObjectTracker = new GLObjectTracker(); if (DEBUG) { System.err.println("Created deletedObjectTracker " + deletedObjectTracker + " because " + ((shareImpl == null) ? "shareImpl was null" : "shareImpl's (" + shareImpl + ") deletedObjectTracker was null")); } if (shareImpl != null) { // FIXME: think should really assert in this case shareImpl.setDeletedObjectTracker(deletedObjectTracker); if (DEBUG) { System.err.println("Set deletedObjectTracker " + deletedObjectTracker + " in shareImpl context " + shareImpl); } } } impl2.setDeletedObjectTracker(deletedObjectTracker); if (DEBUG) { System.err.println("Set deletedObjectTracker " + deletedObjectTracker + " in impl2 context " + impl2); } // Don't share object trackers with the primordial share context from Java2D if (Java2D.isOGLPipelineActive()) { // FIXME: probably need to do something different here // Need to be able to figure out the GraphicsDevice for the // older context if it's on-screen GraphicsConfiguration gc = GraphicsEnvironment. getLocalGraphicsEnvironment(). getDefaultScreenDevice(). getDefaultConfiguration(); GLContext j2dShareContext = Java2D.getShareContext(gc); if (impl1 != null && impl1 == j2dShareContext) { impl1 = null; } } if (impl1 != null) { tracker = impl1.getObjectTracker(); assert (tracker != null) : "registerForObjectTracking was not called properly for the older context"; } if (tracker == null) { tracker = new GLObjectTracker(); } // Note that we don't assert that the tracker is non-null for // impl2 because the way we use this functionality we actually // overwrite the initially-set object tracker in the new context impl2.setObjectTracker(tracker); } }
|
46690 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46690/909a78b2d82052bd5cc5f39a9be665e6dc184982/GLContextShareSet.java/clean/src/classes/com/sun/opengl/impl/GLContextShareSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3852,
918,
1744,
1290,
921,
12642,
12,
11261,
1042,
12156,
1042,
18936,
16,
4766,
18701,
10252,
1042,
28210,
16,
4766,
18701,
10252,
1042,
2863,
9535,
1042,
13,
288,
565,
309,
261,
291,
921,
12642,
1526,
1435,
747,
10932,
12642,
2829,
1998,
1526,
10756,
288,
1377,
309,
261,
1498,
1042,
18936,
480,
446,
597,
1850,
28210,
480,
446,
13,
288,
3639,
309,
261,
4099,
1290,
12,
1498,
1042,
18936,
13,
480,
1241,
1290,
12,
2704,
1042,
3719,
288,
1850,
604,
394,
2754,
2932,
1673,
471,
394,
5781,
1297,
506,
7752,
358,
7433,
977,
1823,
471,
2562,
6035,
8863,
3639,
289,
1377,
289,
1377,
368,
9852,
30,
2588,
4155,
358,
10252,
1042,
2828,
640,
5489,
26063,
1377,
10252,
1042,
2828,
9380,
21,
273,
261,
11261,
1042,
2828,
13,
12156,
1042,
18936,
31,
1377,
10252,
1042,
2828,
9380,
22,
273,
261,
11261,
1042,
2828,
13,
28210,
31,
1377,
10252,
921,
8135,
9745,
273,
446,
31,
1377,
10252,
921,
8135,
4282,
921,
8135,
273,
446,
31,
1377,
10252,
1042,
2828,
7433,
2828,
273,
261,
11261,
1042,
2828,
13,
2863,
9535,
1042,
31,
1377,
368,
11672,
732,
11419,
326,
315,
1355,
17,
2815,
6,
733,
3298,
414,
16,
1221,
3071,
1377,
368,
716,
777,
5781,
316,
326,
7433,
444,
7433,
326,
17689,
733,
1377,
368,
9745,
1377,
309,
261,
14419,
2828,
480,
446,
13,
288,
3639,
4282,
921,
8135,
273,
7433,
2828,
18,
588,
7977,
921,
8135,
5621,
1377,
289,
1377,
309,
261,
8600,
921,
8135,
422,
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,
282,
1071,
760,
3852,
918,
1744,
1290,
921,
12642,
12,
11261,
1042,
12156,
1042,
18936,
16,
4766,
18701,
10252,
1042,
28210,
16,
4766,
18701,
10252,
1042,
2863,
9535,
1042,
13,
288,
565,
309,
261,
291,
921,
12642,
1526,
1435,
747,
10932,
12642,
2829,
1998,
1526,
10756,
288,
1377,
309,
261,
1498,
1042,
18936,
480,
446,
597,
1850,
28210,
480,
446,
13,
288,
3639,
309,
261,
4099,
1290,
12,
1498,
1042,
18936,
13,
480,
1241,
1290,
12,
2704,
1042,
3719,
288,
1850,
604,
394,
2754,
2932,
1673,
471,
394,
5781,
1297,
506,
7752,
358,
7433,
977,
1823,
471,
2562,
6035,
8863,
3639,
289,
1377,
289,
1377,
368,
9852,
30,
2588,
4155,
358,
10252,
1042,
2828,
640,
5489,
26063,
1377,
10252,
2
] |
if (bufferedIO) { /* flush output buffer before close */ if (outBuffer.position() > 0) { outBuffer.flip(); flushOutBuffer(); } }
|
/* flush output buffer before close */ if (outBuffer.position() > 0) { outBuffer.flip(); flushOutBuffer(); }
|
public void close() throws IOException { if (bufferedIO) { /* flush output buffer before close */ if (outBuffer.position() > 0) { outBuffer.flip(); flushOutBuffer(); } } channel.close(); }
|
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/a6049d13f9eab0fce512fac5890ac20bf9ba9a27/IOHandlerNio.java/buggy/src/org/jruby/util/IOHandlerNio.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1746,
1435,
1216,
1860,
288,
3639,
309,
261,
26385,
4294,
13,
288,
5411,
1748,
3663,
876,
1613,
1865,
1746,
1195,
5411,
309,
261,
659,
1892,
18,
3276,
1435,
405,
374,
13,
288,
7734,
596,
1892,
18,
12357,
5621,
7734,
3663,
1182,
1892,
5621,
5411,
289,
3639,
289,
3639,
1904,
18,
4412,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1746,
1435,
1216,
1860,
288,
3639,
309,
261,
26385,
4294,
13,
288,
5411,
1748,
3663,
876,
1613,
1865,
1746,
1195,
5411,
309,
261,
659,
1892,
18,
3276,
1435,
405,
374,
13,
288,
7734,
596,
1892,
18,
12357,
5621,
7734,
3663,
1182,
1892,
5621,
5411,
289,
3639,
289,
3639,
1904,
18,
4412,
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
] |
tightMarshalCachedObject2(wireFormat, (DataStructure)info.getBrokerId(), dataOut, bs); tightMarshalString2(info.getBrokerURL(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getPeerBrokerInfos(), dataOut, bs); tightMarshalString2(info.getBrokerName(), dataOut, bs); bs.readBoolean();
|
tightMarshalCachedObject2(wireFormat, (DataStructure)info.getBrokerId(), dataOut, bs); tightMarshalString2(info.getBrokerURL(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getPeerBrokerInfos(), dataOut, bs); tightMarshalString2(info.getBrokerName(), dataOut, bs); bs.readBoolean();
|
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutputStream dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); BrokerInfo info = (BrokerInfo)o; tightMarshalCachedObject2(wireFormat, (DataStructure)info.getBrokerId(), dataOut, bs); tightMarshalString2(info.getBrokerURL(), dataOut, bs); tightMarshalObjectArray2(wireFormat, info.getPeerBrokerInfos(), dataOut, bs); tightMarshalString2(info.getBrokerName(), dataOut, bs); bs.readBoolean(); }
|
17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/cd0fb615deb6accf8dfdc07fbe58b53cf6b972a2/BrokerInfoMarshaller.java/clean/activemq-core/src/main/java/org/apache/activemq/openwire/v1/BrokerInfoMarshaller.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26066,
8105,
22,
12,
3678,
15249,
1630,
6636,
1630,
16,
1033,
320,
16,
28680,
501,
1182,
16,
3411,
1228,
7081,
13,
1216,
1860,
288,
3639,
2240,
18,
88,
750,
8105,
22,
12,
14538,
1630,
16,
320,
16,
501,
1182,
16,
7081,
1769,
3639,
20438,
966,
1123,
273,
261,
11194,
966,
13,
83,
31,
565,
26066,
8105,
9839,
921,
22,
12,
14538,
1630,
16,
261,
751,
6999,
13,
1376,
18,
588,
11194,
548,
9334,
501,
1182,
16,
7081,
1769,
565,
26066,
8105,
780,
22,
12,
1376,
18,
588,
11194,
1785,
9334,
501,
1182,
16,
7081,
1769,
565,
26066,
8105,
921,
1076,
22,
12,
14538,
1630,
16,
1123,
18,
588,
6813,
11194,
7655,
9334,
501,
1182,
16,
7081,
1769,
565,
26066,
8105,
780,
22,
12,
1376,
18,
588,
11194,
461,
9334,
501,
1182,
16,
7081,
1769,
565,
7081,
18,
896,
5507,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26066,
8105,
22,
12,
3678,
15249,
1630,
6636,
1630,
16,
1033,
320,
16,
28680,
501,
1182,
16,
3411,
1228,
7081,
13,
1216,
1860,
288,
3639,
2240,
18,
88,
750,
8105,
22,
12,
14538,
1630,
16,
320,
16,
501,
1182,
16,
7081,
1769,
3639,
20438,
966,
1123,
273,
261,
11194,
966,
13,
83,
31,
565,
26066,
8105,
9839,
921,
22,
12,
14538,
1630,
16,
261,
751,
6999,
13,
1376,
18,
588,
11194,
548,
9334,
501,
1182,
16,
7081,
1769,
565,
26066,
8105,
780,
22,
12,
1376,
18,
588,
11194,
1785,
9334,
501,
1182,
16,
7081,
1769,
565,
26066,
8105,
921,
1076,
22,
12,
14538,
1630,
16,
1123,
18,
588,
6813,
11194,
7655,
9334,
501,
1182,
16,
7081,
2
] |
int[] perm = Common.randPerm(config.populationSize);
|
int[] perm = Common.randPerm(population.size());
|
public <T extends Individual> List<T> select(List<T> population) { List<T> out = new ArrayList<T>(); for (T t: population) { t.setOnPop(false); } double maxFit; int indMaxFit; //For every pass: for (int i=0; i<config.tournamentSize; i++) { int[] perm = Common.randPerm(config.populationSize); //For every tournament: for (int j=0; j<config.populationSize; j+= config.tournamentSize) { maxFit = population.get(perm[j]).readFitness(); indMaxFit = j; //For every tree in the tournament: for (int k=j+1; k<j+config.tournamentSize; k++) { if (population.get(perm[k]).readFitness() > maxFit) { maxFit = population.get(perm[k]).readFitness(); indMaxFit = k; } } /* If this tree has already been selected, we need a copy of it * (So we don't modify both when operating on one of them) */ if (population.get(perm[indMaxFit]).isOnPop()) { T tmp = (T)population.get(perm[indMaxFit]).deepClone(); tmp.setOnPop(true); out.add(tmp); } else { population.get(perm[indMaxFit]).setOnPop(true); out.add(population.get(perm[indMaxFit])); } } } return out; }
|
12140 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12140/1cb2412b635ddae70e397ad3093292963f6c409b/TreeSelectorTournament.java/clean/branches/clustering/src/gpalta/ops/TreeSelectorTournament.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
411,
56,
3231,
24147,
34,
987,
32,
56,
34,
2027,
12,
682,
32,
56,
34,
11209,
13,
565,
288,
3639,
987,
32,
56,
34,
596,
273,
394,
2407,
32,
56,
34,
5621,
3639,
364,
261,
56,
268,
30,
11209,
13,
3639,
288,
5411,
268,
18,
542,
1398,
7049,
12,
5743,
1769,
3639,
289,
3639,
1645,
943,
14219,
31,
3639,
509,
1547,
2747,
14219,
31,
3639,
368,
1290,
3614,
1342,
30,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1425,
18,
869,
30751,
1225,
31,
277,
27245,
3639,
288,
5411,
509,
8526,
4641,
273,
5658,
18,
7884,
9123,
12,
23555,
18,
1467,
10663,
13491,
368,
1290,
3614,
358,
30751,
30,
5411,
364,
261,
474,
525,
33,
20,
31,
525,
32,
1425,
18,
23555,
1225,
31,
525,
15,
33,
642,
18,
869,
30751,
1225,
13,
5411,
288,
7734,
943,
14219,
273,
11209,
18,
588,
12,
12160,
63,
78,
65,
2934,
896,
42,
9746,
5621,
7734,
1547,
2747,
14219,
273,
525,
31,
27573,
368,
1290,
3614,
2151,
316,
326,
358,
30751,
30,
7734,
364,
261,
474,
417,
33,
78,
15,
21,
31,
417,
32,
78,
15,
1425,
18,
869,
30751,
1225,
31,
417,
27245,
7734,
288,
10792,
309,
261,
23555,
18,
588,
12,
12160,
63,
79,
65,
2934,
896,
42,
9746,
1435,
405,
943,
14219,
13,
10792,
288,
13491,
943,
14219,
273,
11209,
18,
588,
12,
12160,
63,
79,
65,
2934,
896,
42,
9746,
5621,
13491,
1547,
2747,
14219,
273,
417,
31,
10792,
289,
7734,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
411,
56,
3231,
24147,
34,
987,
32,
56,
34,
2027,
12,
682,
32,
56,
34,
11209,
13,
565,
288,
3639,
987,
32,
56,
34,
596,
273,
394,
2407,
32,
56,
34,
5621,
3639,
364,
261,
56,
268,
30,
11209,
13,
3639,
288,
5411,
268,
18,
542,
1398,
7049,
12,
5743,
1769,
3639,
289,
3639,
1645,
943,
14219,
31,
3639,
509,
1547,
2747,
14219,
31,
3639,
368,
1290,
3614,
1342,
30,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1425,
18,
869,
30751,
1225,
31,
277,
27245,
3639,
288,
5411,
509,
8526,
4641,
273,
5658,
18,
7884,
9123,
12,
23555,
18,
1467,
10663,
13491,
368,
1290,
3614,
358,
30751,
30,
5411,
364,
261,
474,
525,
33,
2
] |
super.rejectValue(errors,URL_CONSTRAINT,args,MessageFormat.format( DEFAULT_INVALID_URL_MESSAGE, args ));
|
super.rejectValue(errors,URL_CONSTRAINT + INVALID_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_URL_MESSAGE, args ));
|
protected void processValidate(Object propertyValue, Errors errors) { if(url) { UrlValidator urlValidator = new UrlValidator(UrlValidator.ALLOW_ALL_SCHEMES + UrlValidator.ALLOW_2_SLASHES); if(!urlValidator.isValid(propertyValue.toString())) { Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue }; super.rejectValue(errors,URL_CONSTRAINT,args,MessageFormat.format( DEFAULT_INVALID_URL_MESSAGE, args )); } } }
|
54552 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54552/27fec428b45b70114ce42879d6de1197d360f5e2/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
1207,
4270,
12,
921,
12337,
16,
9372,
1334,
13,
288,
1082,
202,
430,
12,
718,
13,
288,
9506,
202,
1489,
5126,
880,
5126,
273,
394,
6816,
5126,
12,
1489,
5126,
18,
13511,
67,
4685,
67,
22870,
55,
397,
6816,
5126,
18,
13511,
67,
22,
67,
24079,
3991,
1769,
6862,
6862,
9506,
202,
430,
12,
5,
718,
5126,
18,
26810,
12,
4468,
620,
18,
10492,
1435,
3719,
288,
6862,
202,
921,
8526,
833,
273,
394,
1033,
8526,
288,
4954,
13073,
16,
4954,
3494,
2093,
797,
16,
12337,
289,
31,
6862,
202,
9565,
18,
24163,
620,
12,
4324,
16,
1785,
67,
15199,
16,
1968,
16,
1079,
1630,
18,
2139,
12,
3331,
67,
9347,
67,
1785,
67,
8723,
16,
833,
262,
1769,
6862,
9506,
202,
97,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
1207,
4270,
12,
921,
12337,
16,
9372,
1334,
13,
288,
1082,
202,
430,
12,
718,
13,
288,
9506,
202,
1489,
5126,
880,
5126,
273,
394,
6816,
5126,
12,
1489,
5126,
18,
13511,
67,
4685,
67,
22870,
55,
397,
6816,
5126,
18,
13511,
67,
22,
67,
24079,
3991,
1769,
6862,
6862,
9506,
202,
430,
12,
5,
718,
5126,
18,
26810,
12,
4468,
620,
18,
10492,
1435,
3719,
288,
6862,
202,
921,
8526,
833,
273,
394,
1033,
8526,
288,
4954,
13073,
16,
4954,
3494,
2093,
797,
16,
12337,
289,
31,
6862,
202,
9565,
18,
24163,
620,
12,
4324,
16,
1785,
67,
15199,
16,
1968,
16,
1079,
1630,
18,
2139,
12,
3331,
67,
9347,
67,
1785,
67,
8723,
2
] |
if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": Succeeded search for key " + _state.getTarget()); if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": State of successful search: " + _state);
|
if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": Succeeded search for key " + _state.getTarget()); if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": State of successful search: " + _state);
|
protected void succeed() { if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": Succeeded search for key " + _state.getTarget()); if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": State of successful search: " + _state); if (_keepStats) { long time = Clock.getInstance().now() - _state.getWhenStarted(); StatManager.getInstance().addRateData("netDb.successTime", time, 0); StatManager.getInstance().addRateData("netDb.successPeers", _state.getAttempted().size(), time); } if (_onSuccess != null) JobQueue.getInstance().addJob(_onSuccess); }
|
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/86759d2f9c63d203488c7e8b34e64be162a16ce9/SearchJob.java/buggy/router/java/src/net/i2p/router/networkdb/kademlia/SearchJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
12897,
1435,
288,
202,
430,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
202,
565,
389,
1330,
18,
1376,
12,
588,
23378,
1435,
397,
6398,
348,
20983,
1623,
364,
498,
315,
397,
389,
2019,
18,
588,
2326,
10663,
202,
430,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
202,
565,
389,
1330,
18,
4148,
12,
588,
23378,
1435,
397,
6398,
3287,
434,
6873,
1623,
30,
315,
397,
389,
2019,
1769,
202,
202,
430,
261,
67,
10102,
4195,
13,
288,
202,
565,
1525,
813,
273,
18051,
18,
588,
1442,
7675,
3338,
1435,
300,
389,
2019,
18,
588,
9434,
9217,
5621,
202,
565,
8269,
1318,
18,
588,
1442,
7675,
1289,
4727,
751,
2932,
2758,
4331,
18,
4768,
950,
3113,
813,
16,
374,
1769,
202,
565,
8269,
1318,
18,
588,
1442,
7675,
1289,
4727,
751,
2932,
2758,
4331,
18,
4768,
14858,
3113,
389,
2019,
18,
588,
28788,
7675,
1467,
9334,
813,
1769,
202,
97,
202,
430,
261,
67,
265,
4510,
480,
446,
13,
202,
565,
3956,
3183,
18,
588,
1442,
7675,
1289,
2278,
24899,
265,
4510,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
12897,
1435,
288,
202,
430,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
202,
565,
389,
1330,
18,
1376,
12,
588,
23378,
1435,
397,
6398,
348,
20983,
1623,
364,
498,
315,
397,
389,
2019,
18,
588,
2326,
10663,
202,
430,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
202,
565,
389,
1330,
18,
4148,
12,
588,
23378,
1435,
397,
6398,
3287,
434,
6873,
1623,
30,
315,
397,
389,
2019,
1769,
202,
202,
430,
261,
67,
10102,
4195,
13,
288,
202,
565,
1525,
813,
273,
18051,
18,
588,
1442,
7675,
3338,
1435,
300,
389,
2019,
18,
588,
9434,
9217,
5621,
202,
565,
8269,
1318,
18,
588,
1442,
7675,
1289,
4727,
751,
2
] |
toolkit.eventQueue.postEvent(e);
|
QtToolkit.eventQueue.postEvent(e);
|
protected void resizeEvent(int oldWidth, int oldHeight, int width, int height) { if(!(owner instanceof Window)) return; updateBackBuffer(width, height); ignoreResize = true; owner.setSize(width, height); ignoreResize = false; ComponentEvent e = new ComponentEvent(owner, ComponentEvent.COMPONENT_RESIZED); toolkit.eventQueue.postEvent(e); QtToolkit.repaintThread.queueComponent(this); }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/d03b7ded9dacd5a74a8420d7dade451079b17d89/QtComponentPeer.java/clean/libraries/javalib/gnu/java/awt/peer/qt/QtComponentPeer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
7041,
1133,
12,
474,
1592,
2384,
16,
509,
1592,
2686,
16,
4697,
377,
509,
1835,
16,
509,
2072,
13,
225,
288,
565,
309,
12,
5,
12,
8443,
1276,
6076,
3719,
1377,
327,
31,
565,
1089,
2711,
1892,
12,
2819,
16,
2072,
1769,
565,
2305,
12182,
273,
638,
31,
565,
3410,
18,
542,
1225,
12,
2819,
16,
2072,
1769,
565,
2305,
12182,
273,
629,
31,
565,
5435,
1133,
425,
273,
394,
5435,
1133,
12,
8443,
16,
565,
25083,
225,
5435,
1133,
18,
22922,
67,
862,
2320,
62,
2056,
1769,
565,
7354,
6364,
8691,
18,
2575,
3183,
18,
2767,
1133,
12,
73,
1769,
565,
7354,
6364,
8691,
18,
14462,
1598,
3830,
18,
4000,
1841,
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,
4750,
918,
7041,
1133,
12,
474,
1592,
2384,
16,
509,
1592,
2686,
16,
4697,
377,
509,
1835,
16,
509,
2072,
13,
225,
288,
565,
309,
12,
5,
12,
8443,
1276,
6076,
3719,
1377,
327,
31,
565,
1089,
2711,
1892,
12,
2819,
16,
2072,
1769,
565,
2305,
12182,
273,
638,
31,
565,
3410,
18,
542,
1225,
12,
2819,
16,
2072,
1769,
565,
2305,
12182,
273,
629,
31,
565,
5435,
1133,
425,
273,
394,
5435,
1133,
12,
8443,
16,
565,
25083,
225,
5435,
1133,
18,
22922,
67,
862,
2320,
62,
2056,
1769,
565,
7354,
6364,
8691,
18,
2575,
3183,
18,
2767,
1133,
12,
73,
1769,
565,
7354,
6364,
8691,
18,
14462,
1598,
3830,
18,
4000,
1841,
12,
2211,
1769,
225,
2
] |
if (horizontal)
|
if (horizontal) {
|
private List computeWrappedTrim(TrimArea trimArea, int majorHint) { boolean horizontal = trimArea.orientation == SWT.TOP || trimArea.orientation == SWT.BOTTOM; // Return a list of 'lines' to tile the control into... List lines = new ArrayList(); TrimLine curLine = new TrimLine(); lines.add(curLine); curLine.minorMax = trimArea.defaultMinor; // Init the tilePos to force a 'new' line int tilePos = 0; for (Iterator iter = trimArea.trimContents.iterator(); iter.hasNext();) { Control control = (Control) iter.next(); TrimLayoutData td = (TrimLayoutData) control.getLayoutData(); Point prefSize; if (horizontal) prefSize = control.computeSize(majorHint, SWT.DEFAULT); else prefSize = control.computeSize(SWT.DEFAULT, majorHint); // Will this control fit onto the current line? int curTileSize = horizontal ? prefSize.x : prefSize.y; // every control except the first one needs to include the 'spacing' // in the calc if (curLine.controls.size() > 0) curTileSize += spacing; // If the control can be re-positioned then we have to add a drag // handle to it // we have to include the space that it'll occupy in the calcs if (td.listener != null) curTileSize += horizontal ? horizontalHandleSize : verticalHandleSize; // Place the control into the 'current' line if it'll fit (or if // it's the // -first- control (this handles the case where a control is too // large to // fit into the current TrimArea's 'major' size. if ((tilePos + curTileSize) <= majorHint || curLine.controls.size() == 0) { curLine.controls.add(control); // Cache the maximum amount of 'minor' space needed int minorSize = horizontal ? prefSize.y : prefSize.x; if (minorSize > curLine.minorMax) curLine.minorMax = minorSize; tilePos += curTileSize; } else { // Remember how much space was left on the current line curLine.extraSpace = majorHint - tilePos; // We need a new line... curLine = new TrimLine(); lines.add(curLine); curLine.controls.add(control); // Cache the maximum amount of 'minor' space needed int minorSize = horizontal ? prefSize.y : prefSize.x; if (minorSize > curLine.minorMax) curLine.minorMax = minorSize; tilePos = curTileSize; } // Count how many 'resizable' controls there are if ((td.flags & TrimLayoutData.GROWABLE) != 0) curLine.resizableCount++; } // Remember how much space was left on the current line curLine.extraSpace = majorHint - tilePos; return lines; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchLayout.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchLayout.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
987,
3671,
17665,
14795,
12,
14795,
5484,
2209,
5484,
16,
509,
7888,
7002,
13,
288,
202,
202,
6494,
10300,
273,
2209,
5484,
18,
19235,
422,
348,
8588,
18,
10462,
9506,
202,
20081,
2209,
5484,
18,
19235,
422,
348,
8588,
18,
28891,
31,
202,
202,
759,
2000,
279,
666,
434,
296,
3548,
11,
358,
4769,
326,
3325,
1368,
2777,
202,
202,
682,
2362,
273,
394,
2407,
5621,
202,
202,
14795,
1670,
662,
1670,
273,
394,
7105,
1670,
5621,
202,
202,
3548,
18,
1289,
12,
1397,
1670,
1769,
202,
202,
1397,
1670,
18,
17364,
2747,
273,
2209,
5484,
18,
1886,
19549,
31,
202,
202,
759,
4378,
326,
4769,
1616,
358,
2944,
279,
296,
2704,
11,
980,
202,
202,
474,
4769,
1616,
273,
374,
31,
202,
202,
1884,
261,
3198,
1400,
273,
2209,
5484,
18,
5290,
6323,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
3367,
3325,
273,
261,
3367,
13,
1400,
18,
4285,
5621,
1082,
202,
14795,
3744,
751,
6655,
273,
261,
14795,
3744,
751,
13,
3325,
18,
588,
3744,
751,
5621,
1082,
202,
2148,
11307,
1225,
31,
1082,
202,
430,
261,
18396,
13,
9506,
202,
25724,
1225,
273,
3325,
18,
9200,
1225,
12,
14019,
7002,
16,
348,
8588,
18,
5280,
1769,
1082,
202,
12107,
9506,
202,
25724,
1225,
273,
3325,
18,
9200,
1225,
12,
55,
8588,
18,
5280,
16,
7888,
7002,
1769,
1082,
202,
759,
9980,
333,
3325,
4845,
10170,
326,
783,
980,
35,
1082,
202,
474,
662,
9337,
1225,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
987,
3671,
17665,
14795,
12,
14795,
5484,
2209,
5484,
16,
509,
7888,
7002,
13,
288,
202,
202,
6494,
10300,
273,
2209,
5484,
18,
19235,
422,
348,
8588,
18,
10462,
9506,
202,
20081,
2209,
5484,
18,
19235,
422,
348,
8588,
18,
28891,
31,
202,
202,
759,
2000,
279,
666,
434,
296,
3548,
11,
358,
4769,
326,
3325,
1368,
2777,
202,
202,
682,
2362,
273,
394,
2407,
5621,
202,
202,
14795,
1670,
662,
1670,
273,
394,
7105,
1670,
5621,
202,
202,
3548,
18,
1289,
12,
1397,
1670,
1769,
202,
202,
1397,
1670,
18,
17364,
2747,
273,
2209,
5484,
18,
1886,
19549,
31,
202,
202,
759,
4378,
326,
4769,
1616,
358,
2944,
279,
296,
2704,
11,
980,
202,
202,
2
] |
buffer.append(paramType.getFullyQualifiedName());
|
if (paramType != null) buffer.append(paramType.getFullyQualifiedName()); else buffer.append(parameters[index].getQualifiedName());
|
protected String createRefactoringScriptName() { final MethodDeclaration declaration= (MethodDeclaration) getDeclaration(); final IMethodBinding binding= declaration.resolveBinding(); if (binding != null) { final StringBuffer buffer= new StringBuffer(); buffer.append(SCRIPT_NAME_PREFIX); final IJavaElement element= binding.getDeclaringClass().getJavaElement(); if (element instanceof IType) { final IType type= (IType) element; buffer.append(type.getFullyQualifiedName()); buffer.append('.'); buffer.append(binding.getName()); buffer.append('('); final ITypeBinding[] parameters= binding.getParameterTypes(); for (int index= 0; index < parameters.length; index++) { if (index != 0) buffer.append(','); final IType paramType= (IType) parameters[index].getJavaElement(); buffer.append(paramType.getFullyQualifiedName()); } buffer.append(')'); buffer.append(".xml"); //$NON-NLS-1$ return buffer.toString(); } } return null; }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/d257d5d88b123d4db35f3cbf9ee6eff78aa13f49/DelegateMethodCreator.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/delegates/DelegateMethodCreator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
752,
426,
3493,
6053,
3651,
461,
1435,
288,
202,
202,
6385,
2985,
6094,
8266,
33,
261,
1305,
6094,
13,
336,
6094,
5621,
202,
202,
6385,
467,
1305,
5250,
5085,
33,
8266,
18,
10828,
5250,
5621,
202,
202,
430,
261,
7374,
480,
446,
13,
288,
1082,
202,
6385,
6674,
1613,
33,
394,
6674,
5621,
1082,
202,
4106,
18,
6923,
12,
10885,
67,
1985,
67,
6307,
1769,
1082,
202,
6385,
467,
5852,
1046,
930,
33,
5085,
18,
588,
3456,
14682,
7675,
588,
5852,
1046,
5621,
1082,
202,
430,
261,
2956,
1276,
467,
559,
13,
288,
9506,
202,
6385,
467,
559,
618,
33,
261,
45,
559,
13,
930,
31,
9506,
202,
4106,
18,
6923,
12,
723,
18,
588,
16999,
12345,
10663,
9506,
202,
4106,
18,
6923,
2668,
1093,
1769,
9506,
202,
4106,
18,
6923,
12,
7374,
18,
17994,
10663,
9506,
202,
4106,
18,
6923,
2668,
2668,
1769,
9506,
202,
6385,
467,
559,
5250,
8526,
1472,
33,
5085,
18,
588,
1662,
2016,
5621,
9506,
202,
1884,
261,
474,
770,
33,
374,
31,
770,
411,
1472,
18,
2469,
31,
770,
27245,
288,
6862,
202,
430,
261,
1615,
480,
374,
13,
25083,
202,
4106,
18,
6923,
12,
2187,
8284,
6862,
202,
6385,
467,
559,
20781,
33,
261,
45,
559,
13,
1472,
63,
1615,
8009,
588,
5852,
1046,
5621,
6862,
202,
4106,
18,
6923,
12,
891,
559,
18,
588,
16999,
12345,
10663,
9506,
202,
97,
9506,
202,
4106,
18,
6923,
2668,
2506,
1769,
9506,
202,
4106,
18,
6923,
2932,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
752,
426,
3493,
6053,
3651,
461,
1435,
288,
202,
202,
6385,
2985,
6094,
8266,
33,
261,
1305,
6094,
13,
336,
6094,
5621,
202,
202,
6385,
467,
1305,
5250,
5085,
33,
8266,
18,
10828,
5250,
5621,
202,
202,
430,
261,
7374,
480,
446,
13,
288,
1082,
202,
6385,
6674,
1613,
33,
394,
6674,
5621,
1082,
202,
4106,
18,
6923,
12,
10885,
67,
1985,
67,
6307,
1769,
1082,
202,
6385,
467,
5852,
1046,
930,
33,
5085,
18,
588,
3456,
14682,
7675,
588,
5852,
1046,
5621,
1082,
202,
430,
261,
2956,
1276,
467,
559,
13,
288,
9506,
202,
6385,
467,
559,
618,
33,
261,
45,
559,
13,
930,
31,
9506,
202,
4106,
18,
6923,
12,
723,
18,
588,
2
] |
public DecimalFormatSymbols( Locale locale ) { initialize( locale );
|
public DecimalFormatSymbols() { initialize( Locale.getDefault() );
|
public DecimalFormatSymbols( Locale locale ) { initialize( locale ); }
|
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/c83b37a16ebce1f9f0963418f2f279785e82ba0c/DecimalFormatSymbols.java/buggy/icu4j/src/com/ibm/icu/text/DecimalFormatSymbols.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29665,
14821,
12,
6458,
2573,
262,
288,
3639,
4046,
12,
2573,
11272,
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,
29665,
14821,
12,
6458,
2573,
262,
288,
3639,
4046,
12,
2573,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
buf,
|
currentSet,
|
protected NodeSet getSiblings( StaticContext context, NodeSet contextSet) { if (!test.isWildcardTest()) { if (buf == null) { buf = (NodeSet) context.getBroker().findElementsByTagName( ElementValue.ELEMENT, contextSet.getDocumentSet(), test.getName()); } return contextSet.selectSiblings( buf, axis == Constants.PRECEDING_SIBLING_AXIS ? NodeSet.PRECEDING : NodeSet.FOLLOWING); } else { ArraySet result = new ArraySet(contextSet.getLength()); NodeProxy p; NodeImpl n; for (Iterator i = contextSet.iterator(); i.hasNext();) { p = (NodeProxy) i.next(); n = (NodeImpl) p.getNode(); while ((n = getNextSibling(n)) != null) { if (test.matches(n)) result.add( new NodeProxy( (DocumentImpl) n.getOwnerDocument(), n.getGID(), n.getInternalAddress())); } } return result; } }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/624e0556552dea33ac995cea6615535f9908c43b/LocationStep.java/buggy/src/org/exist/xpath/LocationStep.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
2029,
694,
1322,
495,
11603,
12,
202,
202,
5788,
1042,
819,
16,
202,
202,
907,
694,
819,
694,
13,
288,
202,
202,
430,
16051,
3813,
18,
291,
12121,
4709,
10756,
288,
1082,
202,
430,
261,
4385,
422,
446,
13,
288,
9506,
202,
4385,
273,
6862,
202,
12,
907,
694,
13,
819,
18,
588,
11194,
7675,
4720,
3471,
10401,
12,
25083,
202,
1046,
620,
18,
10976,
16,
819,
694,
18,
588,
2519,
694,
9334,
25083,
202,
3813,
18,
17994,
10663,
1082,
202,
97,
1082,
202,
2463,
819,
694,
18,
4025,
31555,
12,
9506,
202,
4385,
16,
9506,
202,
4890,
422,
5245,
18,
3670,
23552,
1360,
67,
9894,
26789,
67,
25614,
6862,
202,
35,
2029,
694,
18,
3670,
23552,
1360,
6862,
202,
30,
2029,
694,
18,
29890,
1360,
1769,
202,
202,
97,
469,
288,
1082,
202,
1076,
694,
563,
273,
394,
1510,
694,
12,
2472,
694,
18,
588,
1782,
10663,
1082,
202,
907,
3886,
293,
31,
1082,
202,
907,
2828,
290,
31,
1082,
202,
1884,
261,
3198,
277,
273,
819,
694,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
9506,
202,
84,
273,
261,
907,
3886,
13,
277,
18,
4285,
5621,
9506,
202,
82,
273,
261,
907,
2828,
13,
293,
18,
588,
907,
5621,
9506,
202,
17523,
14015,
82,
273,
6927,
10291,
12,
82,
3719,
480,
446,
13,
288,
6862,
202,
430,
261,
3813,
18,
8436,
12,
82,
3719,
25083,
202,
2088,
18,
1289,
12,
6862,
1082,
202,
2704,
2029,
3886,
12,
6862,
9506,
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,
2029,
694,
1322,
495,
11603,
12,
202,
202,
5788,
1042,
819,
16,
202,
202,
907,
694,
819,
694,
13,
288,
202,
202,
430,
16051,
3813,
18,
291,
12121,
4709,
10756,
288,
1082,
202,
430,
261,
4385,
422,
446,
13,
288,
9506,
202,
4385,
273,
6862,
202,
12,
907,
694,
13,
819,
18,
588,
11194,
7675,
4720,
3471,
10401,
12,
25083,
202,
1046,
620,
18,
10976,
16,
819,
694,
18,
588,
2519,
694,
9334,
25083,
202,
3813,
18,
17994,
10663,
1082,
202,
97,
1082,
202,
2463,
819,
694,
18,
4025,
31555,
12,
9506,
202,
4385,
16,
9506,
202,
4890,
422,
5245,
18,
3670,
23552,
1360,
67,
9894,
26789,
67,
25614,
6862,
202,
35,
2029,
694,
18,
3670,
2
] |
private Class checkGetAndSet2(String name, Class c) throws OntologyException { Method getMethod = findMethodCaseInsensitive("getAll" + name, c); Method addMethod = findMethodCaseInsensitive("add" + name, c); //Method remMethod = findMethodCaseInsensitive("remove" + name, c); //Method clrMethod = findMethodCaseInsensitive("clearAll" + name, c); Class result = getArgumentType(addMethod,0); //FIXME. The type of result should be taken from the SlotDescriptor // and not directly from the method argument. // check "get" method if (getArgumentLength(getMethod) != 0) throw new OntologyException("Wrong class: method " + getMethod.getName() + "() must take no arguments."); // MODIFIED by GC // The return value of the getAllXXX() method of the user defined class // must be a jade.util.leap.Iterator or a super-class/interface of it --> // No problem if it is a jade.util.leap.Iterator. if (!(getReturnType(getMethod)).isAssignableFrom(jade.util.leap.Iterator.class)) //if (!getReturnType(getMethod).equals(jade.util.leap.Iterator.class)) throw new OntologyException("Wrong class: method " + getMethod.getName() + "() must return a jade.util.leap.Iterator." + getReturnType(getMethod).toString()); // check 'add' method if (getArgumentLength(addMethod) != 1) throw new OntologyException("Wrong class: method " + addMethod.getName() + "() must take one argument."); if (!getArgumentType(addMethod,0).equals(result)) throw new OntologyException("Wrong class: method " + addMethod.getName() + "() has the wrong argument type."); if (!getReturnType(addMethod).equals(Void.TYPE)) throw new OntologyException("Wrong class: method " + addMethod.getName() + "() must return a void."); /* check remove method if (getArgumentLength(remMethod) != 1) throw new OntologyException("Wrong class: method " + remMethod.getName() + "() must take one argument."); if (!getArgumentType(remMethod,0).equals(result)) throw new OntologyException("Wrong class: method " + remMethod.getName() + "() has the wrong argument type."); if (!getReturnType(remMethod).equals(Boolean.TYPE)) throw new OntologyException("Wrong class: method " + remMethod.getName() + "() must return a boolean."); */ /* check clear method if (getArgumentLength(clrMethod) != 0) throw new OntologyException("Wrong class: method " + clrMethod.getName() + "() must take no arguments."); if (!getReturnType(clrMethod).equals(Void.TYPE)) throw new OntologyException("Wrong class: method " + clrMethod.getName() + "() must return a void."); */ return result; }
|
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/7157fd253dca46890bc09a3fcacf82e3321691f6/DefaultOntology.java/clean/src/jade/onto/DefaultOntology.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1659,
866,
967,
13152,
22,
12,
780,
508,
16,
1659,
276,
13,
1216,
29683,
503,
288,
565,
2985,
6272,
273,
1104,
1305,
2449,
21931,
2932,
588,
1595,
6,
397,
508,
16,
276,
1769,
565,
2985,
18223,
273,
1104,
1305,
2449,
21931,
2932,
1289,
6,
397,
508,
16,
276,
1769,
565,
368,
1305,
849,
1305,
273,
1104,
1305,
2449,
21931,
2932,
4479,
6,
397,
508,
16,
276,
1769,
565,
368,
1305,
927,
86,
1305,
273,
1104,
1305,
2449,
21931,
2932,
8507,
1595,
6,
397,
508,
16,
276,
1769,
565,
1659,
563,
273,
11950,
559,
12,
1289,
1305,
16,
20,
1769,
1377,
368,
25810,
18,
1021,
618,
434,
563,
1410,
506,
9830,
628,
326,
23195,
3187,
377,
368,
471,
486,
5122,
628,
326,
707,
1237,
18,
377,
368,
866,
315,
588,
6,
707,
377,
309,
261,
588,
1379,
1782,
12,
588,
1305,
13,
480,
374,
13,
1377,
604,
394,
29683,
503,
2932,
13634,
667,
30,
707,
315,
397,
225,
6272,
18,
17994,
1435,
397,
25605,
1297,
4862,
1158,
1775,
1199,
1769,
565,
368,
8663,
13519,
635,
15085,
565,
368,
1021,
327,
460,
434,
326,
5514,
15639,
1435,
707,
434,
326,
729,
2553,
667,
377,
368,
1297,
506,
279,
525,
2486,
18,
1367,
18,
298,
438,
18,
3198,
578,
279,
2240,
17,
1106,
19,
5831,
434,
518,
15431,
565,
368,
2631,
6199,
309,
518,
353,
279,
525,
2486,
18,
1367,
18,
298,
438,
18,
3198,
18,
565,
309,
16051,
12,
588,
9102,
12,
588,
1305,
13,
2934,
291,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1659,
866,
967,
13152,
22,
12,
780,
508,
16,
1659,
276,
13,
1216,
29683,
503,
288,
565,
2985,
6272,
273,
1104,
1305,
2449,
21931,
2932,
588,
1595,
6,
397,
508,
16,
276,
1769,
565,
2985,
18223,
273,
1104,
1305,
2449,
21931,
2932,
1289,
6,
397,
508,
16,
276,
1769,
565,
368,
1305,
849,
1305,
273,
1104,
1305,
2449,
21931,
2932,
4479,
6,
397,
508,
16,
276,
1769,
565,
368,
1305,
927,
86,
1305,
273,
1104,
1305,
2449,
21931,
2932,
8507,
1595,
6,
397,
508,
16,
276,
1769,
565,
1659,
563,
273,
11950,
559,
12,
1289,
1305,
16,
20,
1769,
1377,
368,
25810,
18,
1021,
618,
434,
563,
1410,
506,
9830,
628,
326,
23195,
3187,
377,
368,
471,
2
] |
||
openCmd.getName().setValue("Inspect Type");
|
protected Onion harvestTypeCommands() { // 1. inspect type.. Onion base = new Onion(); try { Class[] paramTypes = { CommandInfo.class }; Method method = AbstractComplexEObject.ReadState.class.getMethod("Open", paramTypes); Command openCmd = _reflector.reflectCommand(method, AbstractComplexEObject.ReadState.class, this); openCmd.getName().setValue("Inspect Type"); base.add(openCmd); base = new Onion(base); } catch (NoSuchMethodException ex) { System.err.println("No Such Method: "+ex.getMessage()); ex.printStackTrace(); } // 2. add browse/new/find Onion typeCmds = Harvester.simpleHarvestCommands(ComplexType.class, base, false, this); // 3. add static methods from instance class _staticTypeCmds = Harvester.simpleHarvestCommands(_clazz, new Onion(), true, this); if (_staticTypeCmds.isEmpty()) return typeCmds; Onion cmds = _staticTypeCmds.deepCopy(); cmds.mergeIn(typeCmds); return cmds; }
|
55159 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55159/3b822ffe639485cafd736ee644b73aa579407032/ComplexType.java/clean/jmatter/src/com/u2d/model/ComplexType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
2755,
285,
17895,
26923,
559,
9127,
1435,
282,
288,
1377,
368,
404,
18,
5334,
618,
838,
1377,
2755,
285,
1026,
273,
394,
2755,
285,
5621,
1377,
775,
1377,
288,
540,
1659,
8526,
21265,
273,
288,
3498,
966,
18,
1106,
289,
31,
540,
2985,
707,
273,
4115,
12795,
8029,
18,
1994,
1119,
18,
1106,
18,
588,
1305,
2932,
3678,
3113,
28524,
1850,
21265,
1769,
540,
3498,
1696,
5931,
273,
5411,
389,
1734,
4787,
18,
1734,
1582,
2189,
12,
2039,
16,
4766,
1377,
4115,
12795,
8029,
18,
1994,
1119,
18,
1106,
16,
333,
1769,
5375,
1026,
18,
1289,
12,
3190,
5931,
1769,
540,
1026,
273,
394,
2755,
285,
12,
1969,
1769,
1377,
289,
1377,
1044,
261,
28341,
14513,
431,
13,
1377,
288,
540,
2332,
18,
370,
18,
8222,
2932,
2279,
8002,
2985,
30,
13773,
338,
18,
24906,
10663,
540,
431,
18,
1188,
6332,
5621,
1377,
289,
1377,
368,
576,
18,
527,
21670,
19,
2704,
19,
4720,
1377,
2755,
285,
618,
5931,
87,
273,
540,
670,
297,
3324,
387,
18,
9647,
44,
297,
26923,
9127,
12,
12795,
559,
18,
1106,
16,
1026,
16,
629,
16,
333,
1769,
1377,
368,
890,
18,
527,
760,
2590,
628,
791,
667,
1377,
389,
3845,
559,
5931,
87,
273,
670,
297,
3324,
387,
18,
9647,
44,
297,
26923,
9127,
24899,
830,
3638,
16,
4766,
13491,
394,
2755,
285,
9334,
638,
16,
333,
1769,
1377,
309,
261,
67,
3845,
559,
5931,
87,
18,
291,
1921,
10756,
540,
327,
618,
5931,
87,
31,
1377,
2755,
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,
4750,
2755,
285,
17895,
26923,
559,
9127,
1435,
282,
288,
1377,
368,
404,
18,
5334,
618,
838,
1377,
2755,
285,
1026,
273,
394,
2755,
285,
5621,
1377,
775,
1377,
288,
540,
1659,
8526,
21265,
273,
288,
3498,
966,
18,
1106,
289,
31,
540,
2985,
707,
273,
4115,
12795,
8029,
18,
1994,
1119,
18,
1106,
18,
588,
1305,
2932,
3678,
3113,
28524,
1850,
21265,
1769,
540,
3498,
1696,
5931,
273,
5411,
389,
1734,
4787,
18,
1734,
1582,
2189,
12,
2039,
16,
4766,
1377,
4115,
12795,
8029,
18,
1994,
1119,
18,
1106,
16,
333,
1769,
5375,
1026,
18,
1289,
12,
3190,
5931,
1769,
540,
1026,
273,
394,
2755,
285,
12,
1969,
1769,
1377,
289,
1377,
1044,
261,
28341,
14513,
431,
2
] |
|
return MOVE_REDUCED;
|
return DefUseEffect.MOVE_REDUCED;
|
private static byte objarrayStoreCheck(OPT_Instruction s){ OPT_Operand val = StoreCheck.getVal(s); if (val.isNullConstant()) { // Writing null into an array is trivially safe Move.mutate(s, GUARD_MOVE, StoreCheck.getClearGuardResult(s), StoreCheck.getClearGuard(s)); return MOVE_REDUCED; } else { OPT_Operand ref = StoreCheck.getRef(s); VM_TypeReference arrayTypeRef = ref.getType(); VM_Type typeOfIMElem = arrayTypeRef.getInnermostElementType().peekResolvedType(); if (typeOfIMElem != null) { VM_Type typeOfVal = val.getType().peekResolvedType(); if ((typeOfIMElem == typeOfVal) && (typeOfIMElem.isPrimitiveType() || typeOfIMElem.asClass().isFinal())) { // Writing something of a final type to an array of that // final type is safe Move.mutate(s, GUARD_MOVE, StoreCheck.getClearGuardResult(s), StoreCheck.getClearGuard(s)); return MOVE_REDUCED; } } if (ref.isConstant() && (arrayTypeRef == VM_TypeReference.JavaLangObjectArray)) { // We know this to be an array of objects so any store must // be safe Move.mutate(s, GUARD_MOVE, StoreCheck.getClearGuardResult(s), StoreCheck.getClearGuard(s)); return MOVE_REDUCED; } if (val.isConstant() && ref.isConstant()) { // writing a constant value into a constant array byte ans = OPT_ClassLoaderProxy.includesType(arrayTypeRef.getArrayElementType(), val.getType()); if (ans == OPT_Constants.YES) { // all stores should succeed Move.mutate(s, GUARD_MOVE, StoreCheck.getClearGuardResult(s), StoreCheck.getClearGuard(s)); return MOVE_REDUCED; } else if (ans == OPT_Constants.NO) { // all stores will fail Trap.mutate(s, TRAP, StoreCheck.getClearGuardResult(s), OPT_TrapCodeOperand.StoreCheck()); return TRAP_REDUCED; } } return UNCHANGED; } }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/eb4369b6f8fdd0cd15c56bc3cbfa8673171db226/OPT_Simplifier.java/clean/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1160,
1081,
1126,
2257,
1564,
12,
15620,
67,
11983,
272,
15329,
565,
16456,
67,
10265,
1244,
273,
4994,
1564,
18,
588,
3053,
12,
87,
1769,
565,
309,
261,
1125,
18,
291,
2041,
6902,
10756,
288,
1377,
368,
10423,
310,
446,
1368,
392,
526,
353,
433,
427,
6261,
4183,
1377,
9933,
18,
10735,
340,
12,
87,
16,
611,
57,
8085,
67,
16537,
16,
4994,
1564,
18,
588,
9094,
16709,
1253,
12,
87,
3631,
4994,
1564,
18,
588,
9094,
16709,
12,
87,
10019,
1377,
327,
10922,
3727,
12477,
18,
16537,
67,
5879,
57,
23552,
31,
565,
289,
565,
469,
288,
1377,
16456,
67,
10265,
1278,
273,
4994,
1564,
18,
588,
1957,
12,
87,
1769,
1377,
8251,
67,
7534,
526,
25950,
273,
1278,
18,
588,
559,
5621,
1377,
8251,
67,
559,
23170,
3114,
3269,
273,
526,
25950,
18,
588,
382,
82,
28055,
17481,
7675,
347,
3839,
12793,
559,
5621,
1377,
309,
261,
723,
951,
3114,
3269,
480,
446,
13,
288,
3639,
8251,
67,
559,
23170,
3053,
273,
1244,
18,
588,
559,
7675,
347,
3839,
12793,
559,
5621,
3639,
309,
14015,
723,
951,
3114,
3269,
422,
23170,
3053,
13,
597,
5411,
261,
723,
951,
3114,
3269,
18,
291,
9840,
559,
1435,
747,
2398,
23170,
3114,
3269,
18,
345,
797,
7675,
291,
7951,
1435,
3719,
288,
1850,
368,
10423,
310,
5943,
434,
279,
727,
618,
358,
392,
526,
434,
716,
1850,
368,
727,
618,
353,
4183,
1850,
9933,
18,
10735,
340,
12,
87,
16,
611,
57,
8085,
67,
16537,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1160,
1081,
1126,
2257,
1564,
12,
15620,
67,
11983,
272,
15329,
565,
16456,
67,
10265,
1244,
273,
4994,
1564,
18,
588,
3053,
12,
87,
1769,
565,
309,
261,
1125,
18,
291,
2041,
6902,
10756,
288,
1377,
368,
10423,
310,
446,
1368,
392,
526,
353,
433,
427,
6261,
4183,
1377,
9933,
18,
10735,
340,
12,
87,
16,
611,
57,
8085,
67,
16537,
16,
4994,
1564,
18,
588,
9094,
16709,
1253,
12,
87,
3631,
4994,
1564,
18,
588,
9094,
16709,
12,
87,
10019,
1377,
327,
10922,
3727,
12477,
18,
16537,
67,
5879,
57,
23552,
31,
565,
289,
565,
469,
288,
1377,
16456,
67,
10265,
1278,
273,
4994,
1564,
18,
588,
1957,
12,
87,
1769,
1377,
8251,
67,
7534,
2
] |
if (result.isEmpty()) { throw new EmptyRepositoryException(); }
|
if (result.isEmpty()) { throw new EmptyRepositoryException(); }
|
public Repository createRepository() throws EmptyRepositoryException { // if (currentFileBuilder != null) { // fileBuilders.add(currentFileBuilder); // currentFileBuilder = null; // } if (startDate == null) { throw new EmptyRepositoryException(); } Repository result = new Repository(); Iterator it = fileBuilders.values().iterator(); while (it.hasNext()) { FileBuilder fileBuilder = (FileBuilder) it.next(); VersionedFile file = fileBuilder.createFile(startDate); if (file == null) { continue; } result.addFile(file); logger.finer("adding " + file.getFilenameWithPath() + " (" + file.getRevisions().size() + " revisions)"); } if (result.isEmpty()) { throw new EmptyRepositoryException(); } // Uh oh... SortedSet revisions = result.getRevisions(); List commits = new CommitListBuilder(revisions).createCommitList(); result.setCommits(commits); result.setSymbolicNames(new TreeSet(symbolicNames.values())); return result; }
|
48585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48585/fe784b1bb6157b15ed84ba55ea39b94e5e897d57/Builder.java/buggy/statsvn/src/net/sf/statcvs/input/Builder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6281,
752,
3305,
1435,
1216,
8953,
3305,
503,
288,
202,
202,
759,
309,
261,
2972,
812,
1263,
480,
446,
13,
288,
202,
202,
759,
585,
20460,
18,
1289,
12,
2972,
812,
1263,
1769,
202,
202,
759,
22650,
1263,
273,
446,
31,
202,
202,
759,
289,
202,
202,
430,
261,
1937,
1626,
422,
446,
13,
288,
1082,
202,
12849,
394,
8953,
3305,
503,
5621,
202,
202,
97,
202,
202,
3305,
563,
273,
394,
6281,
5621,
202,
202,
3198,
518,
273,
585,
20460,
18,
2372,
7675,
9838,
5621,
202,
202,
17523,
261,
305,
18,
5332,
2134,
10756,
288,
1082,
202,
812,
1263,
585,
1263,
273,
261,
812,
1263,
13,
518,
18,
4285,
5621,
1082,
202,
23676,
812,
585,
273,
585,
1263,
18,
2640,
812,
12,
1937,
1626,
1769,
1082,
202,
430,
261,
768,
422,
446,
13,
288,
9506,
202,
17143,
31,
1082,
202,
97,
1082,
202,
2088,
18,
1289,
812,
12,
768,
1769,
1082,
202,
4901,
18,
926,
264,
2932,
3439,
315,
397,
585,
18,
588,
5359,
1190,
743,
1435,
397,
315,
7566,
6862,
202,
15,
585,
18,
588,
21208,
7675,
1467,
1435,
397,
315,
18325,
2225,
1769,
202,
202,
97,
202,
202,
430,
261,
2088,
18,
291,
1921,
10756,
288,
1082,
202,
12849,
394,
8953,
3305,
503,
5621,
202,
202,
97,
202,
202,
759,
587,
76,
29797,
2777,
202,
202,
11739,
694,
18325,
273,
563,
18,
588,
21208,
5621,
202,
202,
682,
14335,
273,
394,
10269,
682,
1263,
12,
29892,
2934,
2640,
5580,
682,
5621,
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,
6281,
752,
3305,
1435,
1216,
8953,
3305,
503,
288,
202,
202,
759,
309,
261,
2972,
812,
1263,
480,
446,
13,
288,
202,
202,
759,
585,
20460,
18,
1289,
12,
2972,
812,
1263,
1769,
202,
202,
759,
22650,
1263,
273,
446,
31,
202,
202,
759,
289,
202,
202,
430,
261,
1937,
1626,
422,
446,
13,
288,
1082,
202,
12849,
394,
8953,
3305,
503,
5621,
202,
202,
97,
202,
202,
3305,
563,
273,
394,
6281,
5621,
202,
202,
3198,
518,
273,
585,
20460,
18,
2372,
7675,
9838,
5621,
202,
202,
17523,
261,
305,
18,
5332,
2134,
10756,
288,
1082,
202,
812,
1263,
585,
1263,
273,
261,
812,
1263,
13,
518,
18,
4285,
5621,
1082,
202,
23676,
812,
585,
2
] |
jmi.setActionCommand(name);
|
jmi.setActionCommand(name);
|
JPanel createGUIPane() { JPanel c = new JPanel(); c.setLayout(new FlowLayout()); c.add(new JLabel("GUI style: ")); // find L&F definitions UIManager.LookAndFeelInfo[] plafs = UIManager.getInstalledLookAndFeels(); installedLAFs = new java.util.Hashtable(plafs.length); for (int i = 0; i < plafs.length; i++){ installedLAFs.put(plafs[i].getName(), plafs[i].getClassName()); } // make the radio buttons LAFGroup = new ButtonGroup(); Enumeration LAFNames = installedLAFs.keys(); while (LAFNames.hasMoreElements()) { String name = (String)LAFNames.nextElement(); JRadioButton jmi = new JRadioButton(name); c.add(jmi); LAFGroup.add(jmi); jmi.setActionCommand(name); jmi.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { log.info("LAF class set to "+e.getActionCommand()); selectedLAF = e.getActionCommand(); } }); if (installedLAFs.get(name).equals(UIManager.getLookAndFeel().getClass().getName())) { jmi.setSelected(true); selectedLAF = name; } } return c; }
|
213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/431c1dce9ab9b5c59663539bf6ae558aa46f3d1e/AbstractConfigFrame.java/clean/apps/AbstractConfigFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
46,
5537,
752,
30673,
2579,
8806,
1435,
288,
202,
202,
46,
5537,
276,
273,
394,
24048,
5621,
202,
202,
71,
18,
542,
3744,
12,
2704,
9473,
3744,
10663,
202,
202,
71,
18,
1289,
12,
2704,
21403,
2932,
43,
5370,
2154,
30,
9369,
1769,
202,
202,
759,
1104,
511,
10,
42,
6377,
3639,
6484,
1318,
18,
9794,
1876,
2954,
292,
966,
8526,
886,
1727,
87,
273,
6484,
1318,
18,
588,
16747,
9794,
1876,
2954,
10558,
5621,
3639,
5876,
2534,
12432,
273,
394,
2252,
18,
1367,
18,
5582,
14544,
12,
412,
1727,
87,
18,
2469,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
886,
1727,
87,
18,
2469,
31,
277,
27245,
95,
5411,
5876,
2534,
12432,
18,
458,
12,
412,
1727,
87,
63,
77,
8009,
17994,
9334,
886,
1727,
87,
63,
77,
8009,
588,
3834,
10663,
3639,
289,
202,
202,
759,
1221,
326,
13512,
9502,
3639,
2928,
42,
1114,
273,
394,
12569,
1114,
5621,
3639,
13864,
2928,
42,
1557,
273,
5876,
2534,
12432,
18,
2452,
5621,
3639,
1323,
261,
2534,
42,
1557,
18,
5332,
7417,
3471,
10756,
288,
5411,
514,
508,
273,
261,
780,
13,
2534,
42,
1557,
18,
4285,
1046,
5621,
5411,
804,
19984,
3616,
525,
9197,
273,
394,
804,
19984,
3616,
12,
529,
1769,
5411,
276,
18,
1289,
12,
78,
9197,
1769,
5411,
2928,
42,
1114,
18,
1289,
12,
78,
9197,
1769,
5411,
202,
78,
9197,
18,
542,
1803,
2189,
12,
529,
1769,
5411,
525,
9197,
18,
1289,
1803,
2223,
12,
2704,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
46,
5537,
752,
30673,
2579,
8806,
1435,
288,
202,
202,
46,
5537,
276,
273,
394,
24048,
5621,
202,
202,
71,
18,
542,
3744,
12,
2704,
9473,
3744,
10663,
202,
202,
71,
18,
1289,
12,
2704,
21403,
2932,
43,
5370,
2154,
30,
9369,
1769,
202,
202,
759,
1104,
511,
10,
42,
6377,
3639,
6484,
1318,
18,
9794,
1876,
2954,
292,
966,
8526,
886,
1727,
87,
273,
6484,
1318,
18,
588,
16747,
9794,
1876,
2954,
10558,
5621,
3639,
5876,
2534,
12432,
273,
394,
2252,
18,
1367,
18,
5582,
14544,
12,
412,
1727,
87,
18,
2469,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
886,
1727,
87,
18,
2469,
31,
277,
27245,
95,
5411,
5876,
2534,
12432,
2
] |
private boolean viewSource(Project project, AnalysisRun analysisRun, final SourceLineAnnotation srcLine) throws IOException { // Get rid of old source code text sourceTextArea.setText(""); // There is nothing to do without a source annotation // TODO: actually, might want to put a message in the source window // explaining that we don't have the source file, and that // they might want to recompile with debugging info turned on. if (srcLine == null) return false; // Look up the source file for this class. sourceFinder.setSourceBaseList(project.getSourceDirList()); String sourceFile = srcLine.getSourceFile(); if (sourceFile == null || sourceFile.equals("<Unknown>")) { logger.logMessage(ConsoleLogger.WARNING, "No source file for class " + srcLine.getClassName()); return false; } // Try to open the source file and display its contents // in the source text area. InputStream in = sourceFinder.openSource(srcLine.getPackageName(), sourceFile); BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(in)); String line; while ((line = reader.readLine()) != null) { sourceTextArea.append(line + "\n"); } } finally { if (reader != null) reader.close(); } if (srcLine.isUnknown()) { // No line number information, so can't highlight anything SwingUtilities.invokeLater(new Runnable() { public void run() { sourceTextAreaScrollPane.getViewport().setViewPosition(new Point(0, 0)); } }); return true; } // Highlight the annotation. // There seems to be some bug in Swing that sometimes prevents this code // from working when executed immediately after populating the // text in the text area. My guess is that when a large amount of text // is added, Swing defers some UI update work until "later" that is needed // to compute the visibility of text in the text area. // So, post some code to do the update to the Swing event queue. // Not really an ideal solution, but it seems to work. SwingUtilities.invokeLater(new Runnable() { public void run() { // Highlight the lines from the source annotation. // Note that the source lines start at 1, while the line numbers // in the text area start at 0. try { int startLine = srcLine.getStartLine() - 1; int endLine = srcLine.getEndLine(); // Compute number of rows visible. // What a colossal pain in the ass this is. // You'd think there would be a convenient method to // return this information, but no. JViewport viewport = sourceTextAreaScrollPane.getViewport(); Rectangle viewportRect = viewport.getViewRect(); int topRow = sourceTextArea.getLineOfOffset(sourceTextArea.viewToModel(viewportRect.getLocation())); int bottomRow = sourceTextArea.getLineOfOffset(sourceTextArea.viewToModel(new Point(viewportRect.x, (viewportRect.y + viewportRect.height) - 1))); int numRowsVisible = bottomRow - topRow; // Scroll the window so the beginning of the // annotation text will be (approximately) centered. int viewLine = Math.max(startLine - (numRowsVisible > 0 ? numRowsVisible / 2 : 0), 0); int viewBegin = sourceTextArea.getLineStartOffset(viewLine); Rectangle viewRect = sourceTextArea.modelToView(viewBegin); viewport.setViewPosition(new Point(viewRect.x, viewRect.y)); // Select (and highlight) the annotation. int selBegin = sourceTextArea.getLineStartOffset(startLine); int selEnd = sourceTextArea.getLineStartOffset(endLine); sourceTextArea.select(selBegin, selEnd); sourceTextArea.getCaret().setSelectionVisible(true); } catch (javax.swing.text.BadLocationException e) { logger.logMessage(ConsoleLogger.ERROR, e.toString()); } } }); return true; }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/bf216415fd986a4c01b6479c5f4afcf34c2336dc/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1476,
1830,
12,
4109,
1984,
16,
16318,
1997,
6285,
1997,
16,
727,
4998,
1670,
3257,
1705,
1670,
13,
202,
3639,
1216,
1860,
288,
202,
202,
759,
968,
10911,
434,
1592,
1084,
981,
977,
202,
202,
3168,
1528,
5484,
18,
542,
1528,
2932,
8863,
202,
202,
759,
6149,
353,
5083,
358,
741,
2887,
279,
1084,
3204,
202,
202,
759,
2660,
30,
6013,
16,
4825,
2545,
358,
1378,
279,
883,
316,
326,
1084,
2742,
202,
202,
759,
22991,
3280,
716,
732,
2727,
1404,
1240,
326,
1084,
585,
16,
471,
716,
202,
202,
759,
2898,
4825,
2545,
358,
283,
11100,
598,
10450,
1123,
21826,
603,
18,
202,
202,
430,
261,
4816,
1670,
422,
446,
13,
1082,
202,
2463,
629,
31,
202,
202,
759,
10176,
731,
326,
1084,
585,
364,
333,
667,
18,
202,
202,
3168,
8441,
18,
542,
1830,
2171,
682,
12,
4406,
18,
588,
1830,
1621,
682,
10663,
202,
202,
780,
16338,
273,
1705,
1670,
18,
588,
31150,
5621,
202,
202,
430,
261,
3168,
812,
422,
446,
747,
16338,
18,
14963,
2932,
32,
4874,
2984,
3719,
288,
1082,
202,
4901,
18,
1330,
1079,
12,
10215,
3328,
18,
9511,
16,
315,
2279,
1084,
585,
364,
667,
315,
397,
1705,
1670,
18,
588,
3834,
10663,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
759,
6161,
358,
1696,
326,
1084,
585,
471,
2562,
2097,
2939,
202,
202,
759,
316,
326,
1084,
977,
5091,
18,
202,
202,
4348,
316,
273,
1084,
8441,
18,
3190,
1830,
12,
4816,
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,
1250,
1476,
1830,
12,
4109,
1984,
16,
16318,
1997,
6285,
1997,
16,
727,
4998,
1670,
3257,
1705,
1670,
13,
202,
3639,
1216,
1860,
288,
202,
202,
759,
968,
10911,
434,
1592,
1084,
981,
977,
202,
202,
3168,
1528,
5484,
18,
542,
1528,
2932,
8863,
202,
202,
759,
6149,
353,
5083,
358,
741,
2887,
279,
1084,
3204,
202,
202,
759,
2660,
30,
6013,
16,
4825,
2545,
358,
1378,
279,
883,
316,
326,
1084,
2742,
202,
202,
759,
22991,
3280,
716,
732,
2727,
1404,
1240,
326,
1084,
585,
16,
471,
716,
202,
202,
759,
2898,
4825,
2545,
358,
283,
11100,
598,
10450,
1123,
21826,
603,
18,
202,
202,
430,
261,
4816,
1670,
422,
446,
13,
1082,
202,
2463,
2
] |
||
if ( formatCategroy != DesignChoiceConstants.STRING_FORMAT_TYPE_CUSTOM )
|
if ( isCustom( ) )
|
private void updateFormatField( ) { String displayFormat; IChoiceSet choiceSet = getFormatChoiceSet( getSelectedDataType( ) ); if ( choiceSet == null ) {// Boolean type; displayFormat = DEUtil.getMetaDataDictionary( ) .getChoiceSet( DesignChoiceConstants.CHOICE_STRING_FORMAT_TYPE ) .findChoice( DesignChoiceConstants.STRING_FORMAT_TYPE_UNFORMATTED ) .getDisplayName( ); } else { displayFormat = choiceSet.findChoice( formatCategroy ) .getDisplayName( ); if ( formatCategroy != DesignChoiceConstants.STRING_FORMAT_TYPE_CUSTOM ) { displayFormat += ": " + formatPattern; //$NON-NLS-1$ } } formatField.setText( "" + displayFormat ); //$NON-NLS-1$ changeFormat.setEnabled( choiceSet != null ); if ( selectedParameter != null ) { doPreview( formatCategroy != DesignChoiceConstants.STRING_FORMAT_TYPE_CUSTOM ? formatCategroy : formatPattern ); } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/05eaa07ecbd0b690fd917d050b42db71034caf5d/CascadingParametersDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/CascadingParametersDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
1630,
974,
12,
262,
202,
95,
202,
202,
780,
2562,
1630,
31,
202,
202,
45,
10538,
694,
6023,
694,
273,
10959,
10538,
694,
12,
16625,
6273,
12,
262,
11272,
202,
202,
430,
261,
6023,
694,
422,
446,
262,
202,
202,
95,
759,
3411,
618,
31,
1082,
202,
5417,
1630,
273,
2030,
1304,
18,
588,
6998,
10905,
12,
262,
6862,
202,
18,
588,
10538,
694,
12,
29703,
10538,
2918,
18,
22213,
11774,
67,
5804,
67,
7254,
67,
2399,
262,
6862,
202,
18,
4720,
10538,
12,
29703,
10538,
2918,
18,
5804,
67,
7254,
67,
2399,
67,
2124,
7254,
6404,
262,
6862,
202,
18,
588,
20524,
12,
11272,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
5417,
1630,
273,
6023,
694,
18,
4720,
10538,
12,
740,
39,
1287,
3800,
262,
6862,
202,
18,
588,
20524,
12,
11272,
1082,
202,
430,
261,
740,
39,
1287,
3800,
480,
29703,
10538,
2918,
18,
5804,
67,
7254,
67,
2399,
67,
15136,
262,
1082,
202,
95,
9506,
202,
5417,
1630,
1011,
6398,
225,
315,
397,
740,
3234,
31,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
202,
202,
97,
202,
202,
2139,
974,
18,
542,
1528,
12,
1408,
397,
2562,
1630,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
3427,
1630,
18,
542,
1526,
12,
6023,
694,
480,
446,
11272,
202,
202,
430,
261,
3170,
1662,
480,
446,
262,
202,
202,
95,
1082,
202,
2896,
11124,
12,
740,
39,
1287,
3800,
480,
29703,
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,
1089,
1630,
974,
12,
262,
202,
95,
202,
202,
780,
2562,
1630,
31,
202,
202,
45,
10538,
694,
6023,
694,
273,
10959,
10538,
694,
12,
16625,
6273,
12,
262,
11272,
202,
202,
430,
261,
6023,
694,
422,
446,
262,
202,
202,
95,
759,
3411,
618,
31,
1082,
202,
5417,
1630,
273,
2030,
1304,
18,
588,
6998,
10905,
12,
262,
6862,
202,
18,
588,
10538,
694,
12,
29703,
10538,
2918,
18,
22213,
11774,
67,
5804,
67,
7254,
67,
2399,
262,
6862,
202,
18,
4720,
10538,
12,
29703,
10538,
2918,
18,
5804,
67,
7254,
67,
2399,
67,
2124,
7254,
6404,
262,
6862,
202,
18,
588,
20524,
12,
11272,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
2
] |
if (!first) Log.write(" "); else first = false; Log.write(block);
|
if (!first) Log.write(" "); else first = false; Log.write(block);
|
final static int sanityTraverse(Address block, Address prev, boolean verbose) { if (verbose) Log.write("["); boolean first = true; int blocks = 0; while (!block.isZero()) { if (Assert.VERIFY_ASSERTIONS) Assert._assert(getPrevBlock(block).EQ(prev)); blocks++; if (verbose) { if (!first) Log.write(" "); else first = false; Log.write(block); } prev = block; block = getNextBlock(block); Log.flush(); } if (verbose) Log.write("]"); return blocks; }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/9232c996b259f69154b495f6df0a9c0d44e630e0/BlockAllocator.java/clean/MMTk/src/org/mmtk/utility/alloc/BlockAllocator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
760,
509,
16267,
29654,
12,
1887,
1203,
16,
5267,
2807,
16,
4405,
282,
1250,
3988,
13,
288,
565,
309,
261,
11369,
13,
1827,
18,
2626,
2932,
63,
8863,
565,
1250,
1122,
273,
638,
31,
565,
509,
4398,
273,
374,
31,
565,
1323,
16051,
2629,
18,
291,
7170,
10756,
288,
1377,
309,
261,
8213,
18,
23756,
67,
8423,
11539,
1146,
55,
13,
5452,
6315,
11231,
12,
588,
9958,
1768,
12,
2629,
2934,
27247,
12,
10001,
10019,
1377,
4398,
9904,
31,
1377,
309,
261,
11369,
13,
288,
202,
430,
16051,
3645,
13,
202,
225,
1827,
18,
2626,
2932,
315,
1769,
202,
12107,
202,
225,
1122,
273,
629,
31,
202,
1343,
18,
2626,
12,
2629,
1769,
1377,
289,
1377,
2807,
273,
1203,
31,
1377,
1203,
273,
6927,
1768,
12,
2629,
1769,
1377,
1827,
18,
11330,
5621,
565,
289,
565,
309,
261,
11369,
13,
1827,
18,
2626,
2932,
4279,
1769,
565,
327,
4398,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
760,
509,
16267,
29654,
12,
1887,
1203,
16,
5267,
2807,
16,
4405,
282,
1250,
3988,
13,
288,
565,
309,
261,
11369,
13,
1827,
18,
2626,
2932,
63,
8863,
565,
1250,
1122,
273,
638,
31,
565,
509,
4398,
273,
374,
31,
565,
1323,
16051,
2629,
18,
291,
7170,
10756,
288,
1377,
309,
261,
8213,
18,
23756,
67,
8423,
11539,
1146,
55,
13,
5452,
6315,
11231,
12,
588,
9958,
1768,
12,
2629,
2934,
27247,
12,
10001,
10019,
1377,
4398,
9904,
31,
1377,
309,
261,
11369,
13,
288,
202,
430,
16051,
3645,
13,
202,
225,
1827,
18,
2626,
2932,
315,
1769,
202,
12107,
202,
225,
1122,
273,
629,
31,
202,
1343,
18,
2626,
12,
2629,
1769,
1377,
289,
1377,
2807,
2
] |
if (ChainBuilderAgent.DEBUG)
|
if (ChainBuilderAgent.DEBUG > 3)
|
public void mouseClicked(PInputEvent e) { if (timer.isRunning()) { if (ChainBuilderAgent.DEBUG) System.err.println("mouse double click"); // this is effectively a double click. timer.stop(); if (wasDoubleClick == true) wasDoubleClick = false; else doMouseDoubleClicked(e); } else { timer.restart(); if (ChainBuilderAgent.DEBUG) System.err.println("caching click event .."+e); cachedEvent = e; } }
|
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/630a53d68f5d29c53d2485557b18599785befb83/ChainCreationEventHandler.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7644,
27633,
12,
52,
1210,
1133,
425,
13,
288,
202,
202,
430,
261,
12542,
18,
291,
7051,
10756,
288,
1082,
202,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
9506,
202,
3163,
18,
370,
18,
8222,
2932,
11697,
1645,
4682,
8863,
1082,
202,
759,
333,
353,
23500,
279,
1645,
4682,
18,
1082,
202,
12542,
18,
5681,
5621,
1082,
202,
430,
261,
17416,
5265,
6563,
422,
638,
13,
9506,
202,
17416,
5265,
6563,
225,
273,
629,
31,
1082,
202,
12107,
9506,
202,
2896,
9186,
5265,
27633,
12,
73,
1769,
202,
202,
97,
202,
202,
12107,
288,
1082,
202,
12542,
18,
19164,
5621,
1082,
202,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
9506,
202,
3163,
18,
370,
18,
8222,
2932,
17703,
310,
4682,
871,
263,
1199,
15,
73,
1769,
1082,
202,
7097,
1133,
273,
425,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7644,
27633,
12,
52,
1210,
1133,
425,
13,
288,
202,
202,
430,
261,
12542,
18,
291,
7051,
10756,
288,
1082,
202,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
9506,
202,
3163,
18,
370,
18,
8222,
2932,
11697,
1645,
4682,
8863,
1082,
202,
759,
333,
353,
23500,
279,
1645,
4682,
18,
1082,
202,
12542,
18,
5681,
5621,
1082,
202,
430,
261,
17416,
5265,
6563,
422,
638,
13,
9506,
202,
17416,
5265,
6563,
225,
273,
629,
31,
1082,
202,
12107,
9506,
202,
2896,
9186,
5265,
27633,
12,
73,
1769,
202,
202,
97,
202,
202,
12107,
288,
1082,
202,
12542,
18,
19164,
5621,
1082,
202,
430,
261,
3893,
1263,
3630,
18,
9394,
13,
9506,
202,
3163,
18,
2
] |
protected int runDiff(SourceFile vmFile, SourceFile cpFile,
|
protected Flags runDiff(SourceFile vmFile, SourceFile cpFile,
|
protected int runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", "-b", // Ignore white space change "-au", "-I", ".*$" + "Id:.*$.*", // Avoid cvs keyword // expansion in this string vmFile.getFileName(), cpFile.getFile().getAbsolutePath() }; final ByteArrayOutputStream out = new ByteArrayOutputStream(); final ByteArrayOutputStream err = new ByteArrayOutputStream(); final PumpStreamHandler streamHandler = new PumpStreamHandler(out, err); final Execute exe = new Execute(streamHandler); exe.setCommandline(cmd); exe.setWorkingDirectory(vmFile.getBaseDir()); final int rc = exe.execute(); if (rc != 0) { File diffFile = new File(destDir, diffFileName); FileOutputStream os = new FileOutputStream(diffFile); try { final byte[] diff = out.toByteArray(); os.write(diff); os.flush(); final String diffStr = new String(diff); final String pkg = vmFile.getPackageName(); String pkgDiff; if (packageDiffs.containsKey(pkg)) { pkgDiff = packageDiffs.get(pkg); pkgDiff = pkgDiff + "diff\n" + diffStr; } else { pkgDiff = diffStr; } packageDiffs.put(pkg, pkgDiff); int flags = getFlags(diffStr); if (!vmFile.getTarget().equals(cpFile.getTarget())) { flags |= FLAG_TARGET_DIFF; } return flags | NEEDS_MERGE; } finally { os.close(); } } else { return NO_CHANGE; } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
10104,
1086,
5938,
12,
31150,
4268,
812,
16,
4998,
812,
3283,
812,
16,
5411,
514,
3122,
4771,
16,
1635,
32,
780,
16,
514,
34,
2181,
10428,
2556,
13,
5411,
1216,
1860,
16,
7558,
288,
3639,
727,
514,
8526,
1797,
273,
288,
315,
5413,
3113,
3701,
70,
3113,
368,
8049,
9578,
3476,
2549,
7734,
3701,
8377,
3113,
3701,
45,
3113,
3552,
14,
12911,
397,
315,
548,
30,
4509,
8,
4509,
3113,
368,
17843,
276,
6904,
4932,
4766,
10792,
368,
17965,
316,
333,
533,
7734,
4268,
812,
18,
588,
4771,
9334,
3283,
812,
18,
29925,
7675,
588,
10368,
743,
1435,
289,
31,
3639,
727,
11559,
596,
273,
394,
11559,
5621,
3639,
727,
11559,
393,
273,
394,
11559,
5621,
3639,
727,
453,
2801,
1228,
1503,
1407,
1503,
273,
394,
453,
2801,
1228,
1503,
12,
659,
16,
393,
1769,
3639,
727,
7903,
15073,
273,
394,
7903,
12,
3256,
1503,
1769,
3639,
15073,
18,
542,
2189,
1369,
12,
4172,
1769,
3639,
15073,
18,
542,
14836,
2853,
12,
3489,
812,
18,
588,
2171,
1621,
10663,
3639,
727,
509,
4519,
273,
15073,
18,
8837,
5621,
3639,
309,
261,
1310,
480,
374,
13,
288,
5411,
1387,
3122,
812,
273,
394,
1387,
12,
10488,
1621,
16,
3122,
4771,
1769,
5411,
12942,
1140,
273,
394,
12942,
12,
5413,
812,
1769,
5411,
775,
288,
7734,
727,
1160,
8526,
3122,
273,
596,
18,
869,
8826,
5621,
7734,
1140,
18,
2626,
12,
5413,
1769,
7734,
1140,
18,
11330,
5621,
7734,
727,
514,
3122,
1585,
273,
394,
514,
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,
4750,
10104,
1086,
5938,
12,
31150,
4268,
812,
16,
4998,
812,
3283,
812,
16,
5411,
514,
3122,
4771,
16,
1635,
32,
780,
16,
514,
34,
2181,
10428,
2556,
13,
5411,
1216,
1860,
16,
7558,
288,
3639,
727,
514,
8526,
1797,
273,
288,
315,
5413,
3113,
3701,
70,
3113,
368,
8049,
9578,
3476,
2549,
7734,
3701,
8377,
3113,
3701,
45,
3113,
3552,
14,
12911,
397,
315,
548,
30,
4509,
8,
4509,
3113,
368,
17843,
276,
6904,
4932,
4766,
10792,
368,
17965,
316,
333,
533,
7734,
4268,
812,
18,
588,
4771,
9334,
3283,
812,
18,
29925,
7675,
588,
10368,
743,
1435,
289,
31,
3639,
727,
11559,
596,
273,
394,
11559,
5621,
3639,
727,
11559,
393,
273,
394,
11559,
5621,
3639,
2
] |
attr.values = (Vector) this.values.clone();
|
attr.values = (Vector<Object>) this.values.clone();
|
public Object clone() { try { BasicAttribute attr = (BasicAttribute) super.clone(); attr.values = (Vector) this.values.clone(); return attr; } catch (CloneNotSupportedException e) { throw new InternalError("Failed to clone object of BasicAttribute class."); //$NON-NLS-1$ } }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/e1795a65ab1199f58e26759fdf55c3a989032169/BasicAttribute.java/clean/modules/jndi/src/main/java/javax/naming/directory/BasicAttribute.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3236,
1435,
288,
3639,
775,
288,
5411,
7651,
1499,
1604,
273,
261,
8252,
1499,
13,
2240,
18,
14056,
5621,
5411,
1604,
18,
2372,
273,
261,
5018,
32,
921,
23429,
333,
18,
2372,
18,
14056,
5621,
5411,
327,
1604,
31,
3639,
289,
1044,
261,
10930,
25482,
425,
13,
288,
5411,
604,
394,
3186,
668,
2932,
2925,
358,
3236,
733,
434,
7651,
1499,
667,
1199,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
1033,
3236,
1435,
288,
3639,
775,
288,
5411,
7651,
1499,
1604,
273,
261,
8252,
1499,
13,
2240,
18,
14056,
5621,
5411,
1604,
18,
2372,
273,
261,
5018,
32,
921,
23429,
333,
18,
2372,
18,
14056,
5621,
5411,
327,
1604,
31,
3639,
289,
1044,
261,
10930,
25482,
425,
13,
288,
5411,
604,
394,
3186,
668,
2932,
2925,
358,
3236,
733,
434,
7651,
1499,
667,
1199,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
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
] |
throw new RubyNameException(
|
throw new NameError(
|
public RubyObject method_missing(RubyObject symbol, RubyObject[] args) { // +++ // IMPLEMENT THIS METHOD // --- Ruby ruby = getRuby(); throw new RubyNameException( ruby, ruby.getSourceFile() + ":" + ruby.getSourceLine() + " undefined method '" + symbol.toId() + "' for " + type().toName()); }
|
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/8140cac1b7c2375c549787852e38fa6c52b199df/RubyObject.java/buggy/org/jruby/RubyObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
707,
67,
7337,
12,
54,
10340,
921,
3273,
16,
19817,
921,
8526,
833,
13,
288,
3639,
368,
965,
15,
3639,
368,
15694,
7618,
20676,
10152,
3639,
368,
9948,
3639,
19817,
22155,
273,
4170,
10340,
5621,
3639,
604,
394,
25473,
12,
5411,
22155,
16,
5411,
22155,
18,
588,
31150,
1435,
397,
6153,
397,
22155,
18,
588,
1830,
1670,
1435,
397,
315,
3109,
707,
2119,
397,
3273,
18,
869,
548,
1435,
397,
2491,
364,
315,
397,
618,
7675,
869,
461,
10663,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
707,
67,
7337,
12,
54,
10340,
921,
3273,
16,
19817,
921,
8526,
833,
13,
288,
3639,
368,
965,
15,
3639,
368,
15694,
7618,
20676,
10152,
3639,
368,
9948,
3639,
19817,
22155,
273,
4170,
10340,
5621,
3639,
604,
394,
25473,
12,
5411,
22155,
16,
5411,
22155,
18,
588,
31150,
1435,
397,
6153,
397,
22155,
18,
588,
1830,
1670,
1435,
397,
315,
3109,
707,
2119,
397,
3273,
18,
869,
548,
1435,
397,
2491,
364,
315,
397,
618,
7675,
869,
461,
10663,
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
] |
protected Base64(String name, int minimum, int maximum) { super(name, byte[].class); _minimum = minimum; _maximum = maximum;
|
private Base64() { this("_base64", 0, Integer.MAX_VALUE);
|
protected Base64(String name, int minimum, int maximum) { super(name, byte[].class); _minimum = minimum; _maximum = maximum; }
|
45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/06bdaac06ed0d1dd7388a5d37434a3a38144a099/Base64.java/clean/src/java-common/org/xins/common/types/standard/Base64.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
3360,
1105,
12,
780,
508,
16,
509,
5224,
16,
509,
4207,
13,
288,
1377,
2240,
12,
529,
16,
1160,
63,
8009,
1106,
1769,
1377,
389,
15903,
273,
5224,
31,
1377,
389,
15724,
273,
4207,
31,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
565,
4750,
3360,
1105,
12,
780,
508,
16,
509,
5224,
16,
509,
4207,
13,
288,
1377,
2240,
12,
529,
16,
1160,
63,
8009,
1106,
1769,
1377,
389,
15903,
273,
5224,
31,
1377,
389,
15724,
273,
4207,
31,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void setValue (Object newValue)
|
public void setValue(Object newValue)
|
public void setValue (Object newValue) { if (value == newValue) return; Object oldValue = value; value = newValue; // If there is no formatterFactory then make one. if (formatterFactory == null) setFormatterFactory(createFormatterFactory(newValue)); // Set the formatter appropriately. This is because there may be a new // formatterFactory from the line above, or we may want a new formatter // depending on the type of newValue (or if newValue is null). setFormatter (formatterFactory.getFormatter(this)); firePropertyChange("value", oldValue, newValue); }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/68f678cd302ace0954186c0ecfde3afa6c8064a3/JFormattedTextField.java/clean/javax/swing/JFormattedTextField.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
5524,
12,
921,
6129,
13,
225,
288,
565,
309,
261,
1132,
422,
6129,
13,
1377,
327,
31,
565,
1033,
11144,
273,
460,
31,
565,
460,
273,
6129,
31,
3639,
368,
971,
1915,
353,
1158,
4453,
1733,
1508,
1221,
1245,
18,
565,
309,
261,
12354,
1733,
422,
446,
13,
1377,
23018,
1733,
12,
2640,
5074,
1733,
12,
2704,
620,
10019,
3639,
368,
1000,
326,
4453,
21419,
18,
225,
1220,
353,
2724,
1915,
2026,
506,
279,
394,
565,
368,
4453,
1733,
628,
326,
980,
5721,
16,
578,
732,
2026,
2545,
279,
394,
4453,
565,
368,
8353,
603,
326,
618,
434,
6129,
261,
280,
309,
6129,
353,
446,
2934,
565,
23018,
261,
12354,
1733,
18,
588,
5074,
12,
2211,
10019,
565,
4452,
1396,
3043,
2932,
1132,
3113,
11144,
16,
6129,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
5524,
12,
921,
6129,
13,
225,
288,
565,
309,
261,
1132,
422,
6129,
13,
1377,
327,
31,
565,
1033,
11144,
273,
460,
31,
565,
460,
273,
6129,
31,
3639,
368,
971,
1915,
353,
1158,
4453,
1733,
1508,
1221,
1245,
18,
565,
309,
261,
12354,
1733,
422,
446,
13,
1377,
23018,
1733,
12,
2640,
5074,
1733,
12,
2704,
620,
10019,
3639,
368,
1000,
326,
4453,
21419,
18,
225,
1220,
353,
2724,
1915,
2026,
506,
279,
394,
565,
368,
4453,
1733,
628,
326,
980,
5721,
16,
578,
732,
2026,
2545,
279,
394,
4453,
565,
368,
8353,
603,
326,
618,
434,
6129,
261,
280,
309,
6129,
353,
446,
2934,
565,
23018,
261,
12354,
1733,
18,
588,
5074,
12,
2211,
2
] |
List dataList = getDataServiceProvider( ).getPreviewData( ); for ( Iterator iterator = dataList.iterator( ); iterator.hasNext( ); ) { String[] dataRow = (String[]) iterator.next( ); for ( int i = 0; i < dataRow.length; i++ )
|
List dataList = getDataServiceProvider( ).getPreviewData( ); for ( Iterator iterator = dataList.iterator( ); iterator.hasNext( ); )
|
private void switchDataTable( String datasetName ) { try { // Add data header String[] header = getDataServiceProvider( ).getPreviewHeader( ); tablePreview.setColumns( header ); refreshTableColor( ); // Add data value List dataList = getDataServiceProvider( ).getPreviewData( ); for ( Iterator iterator = dataList.iterator( ); iterator.hasNext( ); ) { String[] dataRow = (String[]) iterator.next( ); for ( int i = 0; i < dataRow.length; i++ ) { tablePreview.addEntry( dataRow[i], i ); } } } catch ( ChartException e ) { ChartWizard.displayException( e ); } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ae28e0887118b93a3190109968e52b664baf91c0/TaskSelectData.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1620,
21237,
12,
514,
3709,
461,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
1436,
501,
1446,
1082,
202,
780,
8526,
1446,
273,
4303,
16300,
12,
262,
18,
588,
11124,
1864,
12,
11272,
1082,
202,
2121,
11124,
18,
542,
3380,
12,
1446,
11272,
1082,
202,
9144,
1388,
2957,
12,
11272,
1082,
202,
759,
1436,
501,
460,
1082,
202,
682,
501,
682,
273,
4303,
16300,
12,
262,
18,
588,
11124,
751,
12,
11272,
1082,
202,
1884,
261,
4498,
2775,
273,
501,
682,
18,
9838,
12,
11272,
2775,
18,
5332,
2134,
12,
11272,
262,
1082,
202,
95,
9506,
202,
780,
8526,
31659,
273,
261,
780,
63,
5717,
2775,
18,
4285,
12,
11272,
9506,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
31659,
18,
2469,
31,
277,
9904,
262,
9506,
202,
95,
6862,
202,
2121,
11124,
18,
1289,
1622,
12,
31659,
63,
77,
6487,
277,
11272,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
14683,
261,
14804,
503,
425,
262,
202,
202,
95,
1082,
202,
7984,
27130,
18,
5417,
503,
12,
425,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1620,
21237,
12,
514,
3709,
461,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
1436,
501,
1446,
1082,
202,
780,
8526,
1446,
273,
4303,
16300,
12,
262,
18,
588,
11124,
1864,
12,
11272,
1082,
202,
2121,
11124,
18,
542,
3380,
12,
1446,
11272,
1082,
202,
9144,
1388,
2957,
12,
11272,
1082,
202,
759,
1436,
501,
460,
1082,
202,
682,
501,
682,
273,
4303,
16300,
12,
262,
18,
588,
11124,
751,
12,
11272,
1082,
202,
1884,
261,
4498,
2775,
273,
501,
682,
18,
9838,
12,
11272,
2775,
18,
5332,
2134,
12,
11272,
262,
1082,
202,
95,
9506,
202,
780,
8526,
31659,
273,
261,
780,
63,
5717,
2775,
18,
4285,
12,
11272,
9506,
2
] |
protected abstract void listen (int backlog) throws IOException;
|
protected abstract void listen(int backlog) throws IOException;
|
protected abstract void listen (int backlog) throws IOException;
|
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/84d120cc49d42a79bfbc68fe36429395bdef90fd/SocketImpl.java/buggy/libjava/java/net/SocketImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
8770,
918,
6514,
261,
474,
1473,
1330,
13,
1216,
1860,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8770,
918,
6514,
261,
474,
1473,
1330,
13,
1216,
1860,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (jj_scan_token(CLASS)) return true;
|
if (jj_scan_token(IDENTIFIER)) return true;
|
final private boolean jj_3R_168() { if (jj_3R_80()) return true; if (jj_scan_token(DOT)) return true; if (jj_scan_token(CLASS)) return true; return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
23329,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3672,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
17591,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
3238,
1250,
10684,
67,
23,
54,
67,
23329,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3672,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
17591,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
565,
327,
629,
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
] |
public static void showBox(Component parent, String text, int type) { int typ=4; switch (type) { case 1: typ=JOptionPane.ERROR_MESSAGE; break; case 2: typ=JOptionPane.INFORMATION_MESSAGE; break; case 3: typ=JOptionPane.QUESTION_MESSAGE; break; case 4: typ=JOptionPane.WARNING_MESSAGE; break; } JOptionPane.showMessageDialog(parent, text, Define.getOwnName() + " " + Define.getVersionAsString(),typ);
|
public static void showBox(String text, int type) { showBox(null, text, type);
|
public static void showBox(Component parent, String text, int type) { int typ=4; switch (type) { case 1: typ=JOptionPane.ERROR_MESSAGE; break; case 2: typ=JOptionPane.INFORMATION_MESSAGE; break; case 3: typ=JOptionPane.QUESTION_MESSAGE; break; case 4: typ=JOptionPane.WARNING_MESSAGE; break; } JOptionPane.showMessageDialog(parent, text, Define.getOwnName() + " " + Define.getVersionAsString(),typ); }
|
9165 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9165/1c981fd0e97d28811f188fbb39e6888035f4a682/Base.java/buggy/ptool/de/partysoke/psagent/util/Base.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2405,
3514,
12,
1841,
982,
16,
514,
977,
16,
509,
618,
13,
288,
202,
202,
474,
3815,
33,
24,
31,
202,
202,
9610,
261,
723,
13,
288,
1082,
202,
3593,
404,
30,
3815,
33,
46,
1895,
8485,
18,
3589,
67,
8723,
31,
898,
31,
1082,
202,
3593,
576,
30,
3815,
33,
46,
1895,
8485,
18,
706,
23805,
67,
8723,
31,
898,
31,
1082,
202,
3593,
890,
30,
3815,
33,
46,
1895,
8485,
18,
4740,
1146,
67,
8723,
31,
898,
31,
1082,
202,
3593,
1059,
30,
3815,
33,
46,
1895,
8485,
18,
9511,
67,
8723,
31,
898,
31,
202,
202,
97,
202,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
12,
2938,
16,
977,
16,
13184,
18,
588,
5460,
461,
1435,
397,
315,
315,
397,
13184,
18,
588,
1444,
8092,
9334,
12846,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
760,
918,
2405,
3514,
12,
1841,
982,
16,
514,
977,
16,
509,
618,
13,
288,
202,
202,
474,
3815,
33,
24,
31,
202,
202,
9610,
261,
723,
13,
288,
1082,
202,
3593,
404,
30,
3815,
33,
46,
1895,
8485,
18,
3589,
67,
8723,
31,
898,
31,
1082,
202,
3593,
576,
30,
3815,
33,
46,
1895,
8485,
18,
706,
23805,
67,
8723,
31,
898,
31,
1082,
202,
3593,
890,
30,
3815,
33,
46,
1895,
8485,
18,
4740,
1146,
67,
8723,
31,
898,
31,
1082,
202,
3593,
1059,
30,
3815,
33,
46,
1895,
8485,
18,
9511,
67,
8723,
31,
898,
31,
202,
202,
97,
202,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
12,
2938,
16,
977,
16,
2
] |
parseEntity((short)0);
|
parseEntity((short) 0);
|
public String parseValue(String name, boolean foldCase, MutableBoolean isempty, MutableInteger pdelim) { int len = 0; int start; short map; boolean seen_gt = false; boolean munge = true; int c = 0; int lastc, delim, quotewarning; String value; delim = 0; pdelim.value = '"'; /* Henry Zrepa reports that some folk are using the embed element with script attributes where newlines are significant and must be preserved */ if (this.configuration.LiteralAttribs) munge = false; /* skip white space before the '=' */ for (;;) { c = this.in.readChar(); if (c == StreamIn.EndOfStream) { this.in.ungetChar(c); break; } map = MAP((char)c); if ((map & WHITE) == 0) break; } /* c should be '=' if there is a value other legal possibilities are white space, '/' and '>' */ if (c != '=') { this.in.ungetChar(c); return null; } /* skip white space after '=' */ for (;;) { c = this.in.readChar(); if (c == StreamIn.EndOfStream) { this.in.ungetChar(c); break; } map = MAP((char)c); if ((map & WHITE) == 0) break; } /* check for quote marks */ if (c == '"' || c == '\'') delim = c; else if (c == '<') { start = this.lexsize; addCharToLexer(c); pdelim.value = parseServerInstruction(); len = this.lexsize - start; this.lexsize = start; return (len > 0 ? getString(this.lexbuf, start, len) : null); } else this.in.ungetChar(c); /* and read the value string check for quote mark if needed */ quotewarning = 0; start = this.lexsize; c = '\0'; for (;;) { lastc = c; /* track last character */ c = this.in.readChar(); if (c == StreamIn.EndOfStream) { Report.attrError(this, this.token, null, Report.UNEXPECTED_END_OF_FILE); this.in.ungetChar(c); break; } if (delim == (char)0) { if (c == '>') { this.in.ungetChar(c); break; } if (c == '"' || c == '\'') { Report.attrError(this, this.token, null, Report.UNEXPECTED_QUOTEMARK); break; } if (c == '<') { /* this.in.ungetChar(c); */ Report.attrError(this, this.token, null, Report.UNEXPECTED_GT); /* break; */ } /* For cases like <br clear=all/> need to avoid treating /> as part of the attribute value, however care is needed to avoid so treating <a href=http://www.acme.com/> in this way, which would map the <a> tag to <a href="http://www.acme.com"/> */ if (c == '/') { /* peek ahead in case of /> */ c = this.in.readChar(); if (c == '>' && !AttributeTable.getDefaultAttributeTable().isUrl(name)) { isempty.value = true; this.in.ungetChar(c); break; } /* unget peeked char */ this.in.ungetChar(c); c = '/'; } } else /* delim is '\'' or '"' */ { if (c == delim) break; /* treat CRLF, CR and LF as single line break */ if (c == '\r') { c = this.in.readChar(); if (c != '\n') this.in.ungetChar(c); c = '\n'; } if (c == '\n' || c == '<' || c == '>') ++quotewarning; if (c == '>') seen_gt = true; } if (c == '&') { addCharToLexer(c); parseEntity((short)0); continue; } /* kludge for JavaScript attribute values with line continuations in string literals */ if (c == '\\') { c = this.in.readChar(); if (c != '\n') { this.in.ungetChar(c); c = '\\'; } } map = MAP((char)c); if ((map & WHITE) != 0) { if (delim == (char)0) break; if (munge) { c = ' '; if (lastc == ' ') continue; } } else if (foldCase && (map & UPPERCASE) != 0) c += ('a' - 'A'); addCharToLexer(c); } if (quotewarning > 10 && seen_gt && munge) { /* there is almost certainly a missing trailling quote mark as we have see too many newlines, < or > characters. an exception is made for Javascript attributes and the javascript URL scheme which may legitimately include < and > */ if (!AttributeTable.getDefaultAttributeTable().isScript(name) && !(AttributeTable.getDefaultAttributeTable().isUrl(name) && (getString(this.lexbuf, start, 11)).equals("javascript:"))) Report.error(this, null, null, Report.SUSPECTED_MISSING_QUOTE); } len = this.lexsize - start; this.lexsize = start; if (len > 0 || delim != 0) value = getString(this.lexbuf, start, len); else value = null; /* note delimiter if given */ if (delim != 0) pdelim.value = delim; else pdelim.value = '"'; return value; }
|
3308 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3308/996a78dda16e68e3ae71e3f24fde1a98bd1c0178/Lexer.java/clean/src/main/org/w3c/tidy/Lexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1109,
620,
12,
780,
508,
16,
1250,
11590,
2449,
16,
11794,
10960,
5507,
277,
12000,
825,
16,
10960,
4522,
293,
23822,
13,
565,
288,
3639,
509,
562,
273,
374,
31,
3639,
509,
787,
31,
3639,
3025,
852,
31,
3639,
1250,
5881,
67,
4521,
273,
629,
31,
3639,
1250,
312,
25561,
273,
638,
31,
3639,
509,
276,
273,
374,
31,
3639,
509,
1142,
71,
16,
10508,
16,
4914,
359,
9542,
31,
3639,
514,
460,
31,
3639,
10508,
273,
374,
31,
3639,
293,
23822,
18,
1132,
273,
4754,
31,
3639,
1748,
540,
670,
275,
1176,
2285,
266,
8774,
10557,
716,
2690,
28420,
79,
854,
1450,
326,
540,
4724,
930,
598,
2728,
1677,
1625,
19181,
540,
854,
14177,
471,
1297,
506,
21096,
3639,
1195,
3639,
309,
261,
2211,
18,
7025,
18,
6177,
31292,
13,
5411,
312,
25561,
273,
629,
31,
3639,
1748,
2488,
9578,
3476,
1865,
326,
5214,
1195,
3639,
364,
261,
25708,
13,
3639,
288,
5411,
276,
273,
333,
18,
267,
18,
896,
2156,
5621,
5411,
309,
261,
71,
422,
3961,
382,
18,
23358,
1228,
13,
5411,
288,
7734,
333,
18,
267,
18,
318,
588,
2156,
12,
71,
1769,
7734,
898,
31,
5411,
289,
5411,
852,
273,
12815,
12443,
3001,
13,
71,
1769,
5411,
309,
14015,
1458,
473,
24353,
13,
422,
374,
13,
9079,
898,
31,
3639,
289,
565,
1748,
1377,
276,
1410,
506,
5214,
309,
1915,
353,
279,
460,
1377,
1308,
19286,
28550,
854,
9578,
1377,
3476,
16,
2023,
471,
7481,
565,
1195,
3639,
309,
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,
514,
1109,
620,
12,
780,
508,
16,
1250,
11590,
2449,
16,
11794,
10960,
5507,
277,
12000,
825,
16,
10960,
4522,
293,
23822,
13,
565,
288,
3639,
509,
562,
273,
374,
31,
3639,
509,
787,
31,
3639,
3025,
852,
31,
3639,
1250,
5881,
67,
4521,
273,
629,
31,
3639,
1250,
312,
25561,
273,
638,
31,
3639,
509,
276,
273,
374,
31,
3639,
509,
1142,
71,
16,
10508,
16,
4914,
359,
9542,
31,
3639,
514,
460,
31,
3639,
10508,
273,
374,
31,
3639,
293,
23822,
18,
1132,
273,
4754,
31,
3639,
1748,
540,
670,
275,
1176,
2285,
266,
8774,
10557,
716,
2690,
28420,
79,
854,
1450,
326,
540,
4724,
930,
598,
2728,
1677,
1625,
19181,
540,
854,
14177,
471,
2
] |
if (!PreferenceLoader.loadString("coreExecutable").equals("") && !PreferenceLoader.isRelaunching()) { if (debug) System.out.println("Setting hostname=localhost");
|
if (!PreferenceLoader.loadString("coreExecutable").equals("")) { if (debug) System.out.println("A coreExecutable has been given");
|
private static void launch() { /* we are running, so we make this available to other instances */ PreferenceLoader.setValue("running", true); PreferenceLoader.saveStore(); Object waiterObject = new Object(); myPrefs = new Preferences(PreferenceLoader.getPreferenceStore()); // create our main shell for displaying stuff shell = new Shell(display); // should the core be spawned by the gui? // if yes, set hostname to localhost boolean runCore = false; if (!PreferenceLoader.loadString("coreExecutable").equals("") && !PreferenceLoader.isRelaunching()) { if (debug) System.out.println("Setting hostname=localhost"); runCore = true; PreferenceLoader.setValue("hostname", "localhost"); } // create the splash if (PreferenceLoader.loadBoolean("splashScreen")) if ( runCore ) new Splash( display, 7 ); else new Splash( display, 5 ); // Needed on GTK to dispatch paintEvent. // SWT is idiotic. display.update(); // launch the core if requested if (runCore) { Splash.increaseSplashBar("launching core"); spawnCore(); } Splash.increaseSplashBar("initializing connection"); /* if the gui isnt set up yet launch the preference window */ if (!(PreferenceLoader.getBoolean("initialized"))) { PreferenceLoader.setValue("initialized", true); Splash.setVisible(false); myPrefs.open(shell, null); // crashes if you call myPrefs.open again // if you don't create a new Preferenes() - Why? // a jface.Wizard would be better // temporary hack myPrefs = new Preferences(PreferenceLoader.getPreferenceStore()); Splash.setVisible(true); display.update(); } // we're almost done with restarting, so set it to false PreferenceLoader.setRelaunching(false); // read parameters from our preferencestore readParams(); if (debug) System.out.println("Host: " + hostname + ":" + port + " User: " + username); Socket socket = initializeSocket( false ); if (socket == null ) return; PreferenceLoader.saveStore(); core = startCore( waiterObject, socket, false ); // handle some errors the core can cause // connection denied if (core.getConnectionDenied()) { core.disconnect(); connectDeniedHandling(); // bad password } else if (core.getBadPassword()) { core.disconnect(); badPasswordHandling(); // connection is setup successfully } else { // launch the view Splash.increaseSplashBar("connection to core successfully created"); new MainWindow(core, shell); } // disconnect the core core.disconnect(); /* * we are not running anymore, so we can allow another instance to * be started */ PreferenceLoader.setValue("running", false); /* save our preferences */ PreferenceLoader.saveStore(); if (debug) System.out.println("G2gui shut down."); }
|
11075 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11075/1c6ebe9e38ecff8eddf99ba5b54b80988240108c/G2Gui.java/clean/g2gui/src/net/mldonkey/g2gui/view/G2Gui.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
8037,
1435,
288,
377,
202,
20308,
732,
854,
3549,
16,
1427,
732,
1221,
333,
2319,
358,
1308,
3884,
1195,
3639,
29125,
2886,
18,
542,
620,
2932,
8704,
3113,
638,
1769,
3639,
29125,
2886,
18,
5688,
2257,
5621,
3639,
1033,
17522,
921,
273,
394,
1033,
5621,
3639,
3399,
1386,
2556,
273,
394,
28310,
12,
9624,
2886,
18,
588,
9624,
2257,
10663,
3639,
368,
752,
3134,
2774,
5972,
364,
23620,
10769,
3639,
5972,
273,
394,
19433,
12,
5417,
1769,
7734,
368,
1410,
326,
2922,
506,
12560,
329,
635,
326,
13238,
35,
3639,
368,
309,
12465,
16,
444,
5199,
358,
17365,
202,
202,
6494,
1086,
4670,
273,
629,
31,
202,
202,
430,
16051,
9624,
2886,
18,
945,
780,
2932,
3644,
17709,
20387,
14963,
2932,
7923,
597,
401,
9624,
2886,
18,
291,
1971,
4760,
310,
10756,
288,
1082,
202,
430,
261,
4148,
13,
2332,
18,
659,
18,
8222,
2932,
5568,
5199,
33,
13014,
8863,
1082,
202,
2681,
4670,
273,
638,
31,
1082,
202,
9624,
2886,
18,
542,
620,
2932,
10358,
3113,
315,
13014,
8863,
202,
202,
97,
6862,
202,
759,
752,
326,
6121,
961,
3639,
309,
261,
9624,
2886,
18,
945,
5507,
2932,
13106,
961,
7956,
6,
3719,
5411,
309,
261,
1086,
4670,
262,
202,
5411,
394,
29356,
12,
2562,
16,
2371,
11272,
202,
3639,
469,
202,
1850,
202,
2704,
29356,
12,
2562,
16,
1381,
11272,
5411,
368,
26480,
603,
19688,
47,
358,
3435,
12574,
1133,
18,
3639,
368,
348,
8588,
353,
612,
77,
352,
335,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
8037,
1435,
288,
377,
202,
20308,
732,
854,
3549,
16,
1427,
732,
1221,
333,
2319,
358,
1308,
3884,
1195,
3639,
29125,
2886,
18,
542,
620,
2932,
8704,
3113,
638,
1769,
3639,
29125,
2886,
18,
5688,
2257,
5621,
3639,
1033,
17522,
921,
273,
394,
1033,
5621,
3639,
3399,
1386,
2556,
273,
394,
28310,
12,
9624,
2886,
18,
588,
9624,
2257,
10663,
3639,
368,
752,
3134,
2774,
5972,
364,
23620,
10769,
3639,
5972,
273,
394,
19433,
12,
5417,
1769,
7734,
368,
1410,
326,
2922,
506,
12560,
329,
635,
326,
13238,
35,
3639,
368,
309,
12465,
16,
444,
5199,
358,
17365,
202,
202,
6494,
1086,
4670,
273,
629,
31,
202,
202,
430,
16051,
9624,
2886,
18,
945,
780,
2
] |
protected ParseResult doParse(ByteBuffer buf) { //=============================================== // This method is very procedural, to make // cleanup after errors easier. In general, // there are a lot of helper functions called // which return true/false. Most of these operate // on the ScannerAndAccumulator data member. If false // is returned from these methods, this method // performs cleanup and enters passthru mode. // -wrs 7/05 // List<Token> toks = new LinkedList<Token>(); boolean done = false; while(!done && buf.hasRemaining()) { m_logger.debug("Draining tokens from buffer (" + toks.size() + " tokens so far)"); //Re-check passthru, in case we hit it while looping in //this method. if(isPassthru()) { if(buf.hasRemaining()) { toks.add(new Chunk(buf)); } return new ParseResult(toks); } switch(m_state) { //================================================== case COMMAND: if(getSmtpCasing().isInSASLLogin()) { m_logger.debug("In SASL Exchange"); SmtpSASLObserver observer = getSmtpCasing().getSASLObserver(); ByteBuffer dup = buf.duplicate(); switch(observer.clientData(buf)) { case EXCHANGE_COMPLETE: m_logger.debug("SASL Exchange complete"); getSmtpCasing().closeSASLExchange(); case IN_PROGRESS: //There should not be any extra bytes //left with "in progress", but what the hell dup.limit(buf.position()); toks.add(new SASLExchangeToken(dup)); break; case RECOMMEND_PASSTHRU: m_logger.debug("Entering passthru on advice of SASLObserver"); declarePassthru(); toks.add(PassThruToken.PASSTHRU); toks.add(new Chunk(dup.slice())); buf.position(buf.limit()); return new ParseResult(toks); } break; } if(findCrLf(buf) >= 0) {//BEGIN Complete Command //Parse the next command. If there is a parse error, //pass along the original chunk ByteBuffer dup = buf.duplicate(); Command cmd = null; try { cmd = CommandParser.parse(buf); } catch(ParseException pe) { //Duplicate the bad buffer dup.limit(findCrLf(dup) + 2); ByteBuffer badBuf = ByteBuffer.allocate(dup.remaining()); badBuf.put(dup); badBuf.flip(); //Position the "real" buffer beyond the bad point. buf.position(dup.position()); m_logger.error("Exception parsing command line \"" + ASCIIUtil.bbToString(badBuf) + "\". Pass to server and monitor response", pe); cmd = new UnparsableCommand(badBuf); getSessionTracker().commandReceived(cmd, new CommandParseErrorResponseCallback(badBuf)); toks.add(cmd); break; } //If we're here, we have a legitimate command toks.add(cmd); if(cmd.getType() == Command.CommandType.AUTH) { m_logger.debug("Received an AUTH command (hiding details for privacy reasons)"); AUTHCommand authCmd = (AUTHCommand) cmd; String mechName = authCmd.getMechanismName(); if(!getSmtpCasing().openSASLExchange(mechName)) { m_logger.debug("Unable to find SASLObserver for \"" + mechName + "\""); declarePassthru(); toks.add(PassThruToken.PASSTHRU); toks.add(new Chunk(buf)); return new ParseResult(toks, null); } else { m_logger.debug("Opening SASL Exchange"); } switch(getSmtpCasing().getSASLObserver().initialClientResponse( authCmd.getInitialResponse())) { case EXCHANGE_COMPLETE: m_logger.debug("SASL Exchange complete"); getSmtpCasing().closeSASLExchange(); case IN_PROGRESS: break;//Nothing interesting to do case RECOMMEND_PASSTHRU: m_logger.debug("Entering passthru on advice of SASLObserver"); declarePassthru(); toks.add(PassThruToken.PASSTHRU); toks.add(new Chunk(buf)); return new ParseResult(toks); } break; } else { //This is broken off so we don't put folks //passwords into the log m_logger.debug("Received command: " + cmd.toDebugString()); } if(cmd.getType() == Command.CommandType.STARTTLS) { m_logger.debug("Enqueue observer for response to STARTTLS, " + "to go into passthru if accepted"); getSessionTracker().commandReceived(cmd, new TLSResponseCallback()); } else if(cmd.getType() == Command.CommandType.DATA) { m_logger.debug("entering data transmission (DATA)"); if(!openSAC()) { //Error opening the temp file. The //error has been reported and the temp file //cleaned-up m_logger.debug("Declare passthru as we cannot buffer MIME"); declarePassthru(); toks.add(PassThruToken.PASSTHRU); toks.add(new Chunk(buf)); return new ParseResult(toks, null); } m_logger.debug("Change state to " + SmtpClientState.HEADERS + ". Enqueue response handler in case DATA " + "command rejected (returning us to " + SmtpClientState.COMMAND + ")"); getSessionTracker().commandReceived(cmd, new DATAResponseCallback(m_sac)); changeState(SmtpClientState.HEADERS); //Go back and start evaluating the header bytes. } else { getSessionTracker().commandReceived(cmd); } }//ENDOF Complete Command else {//BEGIN Not complete Command //Check for attack if(buf.remaining() > MAX_COMMAND_LINE_SZ) { m_logger.debug("Line longer than " + MAX_COMMAND_LINE_SZ + " received without new line. " + "Assume tunneling (permitted) and declare passthru"); declarePassthru(); toks.add(PassThruToken.PASSTHRU); toks.add(new Chunk(buf)); return new ParseResult(toks, null); } m_logger.debug("Command line does not end with CRLF. Need more bytes"); done = true; }//ENDOF Not complete Command break; //================================================== case HEADERS: //Duplicate the buffer, in case we have a problem ByteBuffer dup = buf.duplicate(); boolean endOfHeaders = m_sac.scanner.processHeaders(buf, 1024*4);//TODO bscott a real value here //If we're here, we didn't get a line which was too long. Write //what we have to disk. ByteBuffer dup2 = dup.duplicate(); dup2.limit(buf.position()); if(m_sac.scanner.isHeadersBlank()) { m_logger.debug("Headers are blank"); } else { m_logger.debug("About to write the " + (endOfHeaders?"last":"next") + " " + dup2.remaining() + " header bytes to disk"); } if(!m_sac.accumulator.addHeaderBytes(dup2, endOfHeaders)) { m_logger.error("Unable to write header bytes to disk. Enter passthru"); //TODO bscott THis still needs to be more gracefully unwound // in the stateful transforms puntDuringHeaders(toks, dup); return new ParseResult(toks, null); } if(endOfHeaders) {//BEGIN End of Headers MIMEMessageHeaders headers = m_sac.accumulator.parseHeaders(); if(headers == null) {//BEGIN Header PArse Error m_logger.error("Unable to parse headers. This will be caught downstream"); }//ENDOF Header PArse Error m_logger.debug("Adding the BeginMIMEToken"); getSessionTracker().beginMsgTransmission(); toks.add(new BeginMIMEToken(m_sac.accumulator, createMessageInfo(headers))); m_sac.noLongerAccumulatorMaster(); changeState(SmtpClientState.BODY); if(m_sac.scanner.isEmptyMessage()) { m_logger.debug("Message blank. Skip to reading commands"); toks.add(new ContinuedMIMEToken(m_sac.accumulator.createChunk(null, true))); changeState(SmtpClientState.COMMAND); m_sac = null; } }//ENDOF End of Headers else { m_logger.debug("Need more header bytes"); done = true; } break; //================================================== case BODY: ByteBuffer bodyBuf = ByteBuffer.allocate(buf.remaining()); boolean bodyEnd = m_sac.scanner.processBody(buf, bodyBuf); bodyBuf.flip(); MIMEAccumulator.MIMEChunk mimeChunk = null; if(bodyEnd) { m_logger.debug("Found end of body"); mimeChunk = m_sac.accumulator.createChunk(bodyBuf, true); m_logger.debug("Adding last MIME token with length: " + mimeChunk.getData().remaining()); m_sac = null; changeState(SmtpClientState.COMMAND); } else { mimeChunk = m_sac.accumulator.createChunk(bodyBuf, false); m_logger.debug("Adding continued MIME token with length: " + mimeChunk.getData().remaining()); done = true; } toks.add(new ContinuedMIMEToken(mimeChunk)); break; } } //Compact the buffer buf = compactIfNotEmpty(buf, MAX_COMMAND_LINE_SZ); if(buf == null) { m_logger.debug("returning ParseResult with " + toks.size() + " tokens and a null buffer"); } else { m_logger.debug("returning ParseResult with " + toks.size() + " tokens and a buffer with " + buf.remaining() + " remaining (" + buf.position() + " to be seen on next invocation)"); } return new ParseResult(toks, buf); }
|
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/115e144444f9e3e5b13e66a4e36937ed2f6c876a/SmtpClientParser.java/buggy/tran/mail/main/com/metavize/tran/mail/impl/smtp/SmtpClientParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
2884,
1253,
741,
3201,
12,
12242,
1681,
13,
288,
565,
368,
4428,
14468,
12275,
565,
368,
1220,
707,
353,
8572,
450,
3263,
3766,
16,
358,
1221,
565,
368,
6686,
1839,
1334,
15857,
18,
225,
657,
7470,
16,
565,
368,
1915,
854,
279,
17417,
434,
4222,
4186,
2566,
565,
368,
1492,
327,
638,
19,
5743,
18,
225,
22099,
434,
4259,
20829,
565,
368,
603,
326,
19074,
1876,
27361,
501,
3140,
18,
225,
971,
629,
565,
368,
353,
2106,
628,
4259,
2590,
16,
333,
707,
565,
368,
11199,
6686,
471,
3281,
414,
14699,
334,
7256,
89,
1965,
18,
565,
368,
282,
300,
91,
5453,
2371,
19,
6260,
565,
368,
565,
987,
32,
1345,
34,
21404,
273,
394,
10688,
32,
1345,
34,
5621,
565,
1250,
2731,
273,
629,
31,
3639,
1323,
12,
5,
8734,
597,
1681,
18,
5332,
11429,
10756,
288,
1377,
312,
67,
4901,
18,
4148,
2932,
26896,
310,
2430,
628,
1613,
7566,
397,
21404,
18,
1467,
1435,
397,
3639,
315,
2430,
1427,
10247,
2225,
1769,
1377,
368,
426,
17,
1893,
14699,
334,
7256,
89,
16,
316,
648,
732,
6800,
518,
1323,
25004,
316,
1377,
368,
2211,
707,
18,
1377,
309,
12,
291,
52,
345,
334,
7256,
89,
10756,
288,
3639,
309,
12,
4385,
18,
5332,
11429,
10756,
288,
1850,
21404,
18,
1289,
12,
2704,
13021,
12,
4385,
10019,
3639,
289,
3639,
327,
394,
2884,
1253,
12,
17692,
87,
1769,
1377,
289,
2868,
1620,
12,
81,
67,
2019,
13,
288,
2868,
368,
20775,
631,
3639,
648,
17266,
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,
4750,
2884,
1253,
741,
3201,
12,
12242,
1681,
13,
288,
565,
368,
4428,
14468,
12275,
565,
368,
1220,
707,
353,
8572,
450,
3263,
3766,
16,
358,
1221,
565,
368,
6686,
1839,
1334,
15857,
18,
225,
657,
7470,
16,
565,
368,
1915,
854,
279,
17417,
434,
4222,
4186,
2566,
565,
368,
1492,
327,
638,
19,
5743,
18,
225,
22099,
434,
4259,
20829,
565,
368,
603,
326,
19074,
1876,
27361,
501,
3140,
18,
225,
971,
629,
565,
368,
353,
2106,
628,
4259,
2590,
16,
333,
707,
565,
368,
11199,
6686,
471,
3281,
414,
14699,
334,
7256,
89,
1965,
18,
565,
368,
282,
300,
91,
5453,
2371,
19,
6260,
565,
368,
565,
987,
32,
1345,
34,
21404,
273,
394,
10688,
32,
2
] |
||
result.put("evaluationResult", new Boolean(true));
|
result.put("evaluationResult", Boolean.TRUE);
|
public static Map testWorkflowCondition(DispatchContext dctx, Map context) { Map result = new HashMap(); result.put("evaluationResult", new Boolean(true)); return result; }
|
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/bd428bde64a45c1f64b8f0a8680d9c42ddc683a0/CommonServices.java/clean/framework/common/src/org/ofbiz/common/CommonServices.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1635,
1842,
8484,
3418,
12,
5325,
1042,
302,
5900,
16,
1635,
819,
13,
288,
3639,
1635,
563,
273,
394,
4317,
5621,
3639,
563,
18,
458,
2932,
14168,
367,
1253,
3113,
3411,
18,
18724,
1769,
3639,
327,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1635,
1842,
8484,
3418,
12,
5325,
1042,
302,
5900,
16,
1635,
819,
13,
288,
3639,
1635,
563,
273,
394,
4317,
5621,
3639,
563,
18,
458,
2932,
14168,
367,
1253,
3113,
3411,
18,
18724,
1769,
3639,
327,
563,
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
] |
TypeSystem ts = tc.typeSystem();
|
protected void duplicateFieldCheck(TypeChecker tc) throws SemanticException { ClassType type = tc.context().currentClass(); TypeSystem ts = tc.typeSystem(); ArrayList l = new ArrayList(type.fields()); for (int i = 0; i < l.size(); i++) { FieldInstance fi = (FieldInstance) l.get(i); for (int j = i+1; j < l.size(); j++) { FieldInstance fj = (FieldInstance) l.get(j); if (fi.name().equals(fj.name())) { throw new SemanticException("Duplicate field \"" + fj + "\".", fj.position()); } } } }
|
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/0c01cd2a5f199d686047f1e5677b3667404315f6/ClassBody_c.java/buggy/src/polyglot/ast/ClassBody_c.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
6751,
974,
1564,
12,
559,
8847,
1715,
13,
1216,
24747,
503,
288,
3639,
1659,
559,
618,
273,
1715,
18,
2472,
7675,
2972,
797,
5621,
9079,
2407,
328,
273,
394,
2407,
12,
723,
18,
2821,
10663,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
328,
18,
1467,
5621,
277,
27245,
288,
5411,
2286,
1442,
7314,
273,
261,
974,
1442,
13,
328,
18,
588,
12,
77,
1769,
5411,
364,
261,
474,
525,
273,
277,
15,
21,
31,
525,
411,
328,
18,
1467,
5621,
525,
27245,
288,
7734,
2286,
1442,
284,
78,
273,
261,
974,
1442,
13,
328,
18,
588,
12,
78,
1769,
7734,
309,
261,
22056,
18,
529,
7675,
14963,
12,
74,
78,
18,
529,
1435,
3719,
288,
10792,
604,
394,
24747,
503,
2932,
11826,
652,
11843,
397,
284,
78,
397,
7023,
1199,
16,
284,
78,
18,
3276,
10663,
7734,
289,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
6751,
974,
1564,
12,
559,
8847,
1715,
13,
1216,
24747,
503,
288,
3639,
1659,
559,
618,
273,
1715,
18,
2472,
7675,
2972,
797,
5621,
9079,
2407,
328,
273,
394,
2407,
12,
723,
18,
2821,
10663,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
328,
18,
1467,
5621,
277,
27245,
288,
5411,
2286,
1442,
7314,
273,
261,
974,
1442,
13,
328,
18,
588,
12,
77,
1769,
5411,
364,
261,
474,
525,
273,
277,
15,
21,
31,
525,
411,
328,
18,
1467,
5621,
525,
27245,
288,
7734,
2286,
1442,
284,
78,
273,
261,
974,
1442,
13,
328,
18,
588,
12,
78,
1769,
7734,
309,
261,
22056,
18,
529,
7675,
14963,
12,
74,
78,
18,
529,
1435,
2
] |
|
runTests(new TestDescriptor[]{ new TestDescriptor(TEST1, "returning a HashSet, bad", 1, rule), new TestDescriptor(TEST2, "returning a Map, OK", 0, rule), new TestDescriptor(TEST3, "no problemo", 0, rule), new TestDescriptor(TEST4, "returning a set", 0, rule), new TestDescriptor(TEST5, "field declared of type HashSet", 1, rule), new TestDescriptor(TEST6, "field, return type both HashSet", 2, rule), new TestDescriptor(TEST7, "two fields", 2, rule), new TestDescriptor(TEST8, "method param is HashMap", 1, rule), new TestDescriptor(TEST9, "Vector could be List", 1, rule), new TestDescriptor(TEST10, "ArrayList could be List", 1, rule), new TestDescriptor(TEST11, "java.util.HashMap should be Map", 1, rule), });
|
runTests(rule);
|
public void testAll() { runTests(new TestDescriptor[]{ new TestDescriptor(TEST1, "returning a HashSet, bad", 1, rule), new TestDescriptor(TEST2, "returning a Map, OK", 0, rule), new TestDescriptor(TEST3, "no problemo", 0, rule), new TestDescriptor(TEST4, "returning a set", 0, rule), new TestDescriptor(TEST5, "field declared of type HashSet", 1, rule), new TestDescriptor(TEST6, "field, return type both HashSet", 2, rule), new TestDescriptor(TEST7, "two fields", 2, rule), new TestDescriptor(TEST8, "method param is HashMap", 1, rule), new TestDescriptor(TEST9, "Vector could be List", 1, rule), new TestDescriptor(TEST10, "ArrayList could be List", 1, rule), new TestDescriptor(TEST11, "java.util.HashMap should be Map", 1, rule), }); }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/4e45de9075eeb015245ff09f8f8c58cf0f98bbf3/LooseCouplingTest.java/buggy/pmd/regress/test/net/sourceforge/pmd/rules/typeresolution/rules/LooseCouplingTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1595,
1435,
288,
3639,
1086,
14650,
12,
2704,
7766,
3187,
63,
7073,
5411,
394,
7766,
3187,
12,
16961,
21,
16,
315,
2463,
310,
279,
6847,
16,
5570,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
22,
16,
315,
2463,
310,
279,
1635,
16,
7791,
3113,
374,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
23,
16,
315,
2135,
6199,
83,
3113,
374,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
24,
16,
315,
2463,
310,
279,
444,
3113,
374,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
25,
16,
315,
1518,
7886,
434,
618,
6847,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
26,
16,
315,
1518,
16,
327,
618,
3937,
6847,
3113,
576,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
27,
16,
315,
15415,
1466,
3113,
576,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
28,
16,
315,
2039,
579,
353,
4317,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
29,
16,
315,
5018,
3377,
506,
987,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
2163,
16,
315,
19558,
3377,
506,
987,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
2499,
16,
315,
6290,
18,
1367,
18,
8658,
1410,
506,
1635,
3113,
404,
16,
1720,
3631,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1595,
1435,
288,
3639,
1086,
14650,
12,
2704,
7766,
3187,
63,
7073,
5411,
394,
7766,
3187,
12,
16961,
21,
16,
315,
2463,
310,
279,
6847,
16,
5570,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
22,
16,
315,
2463,
310,
279,
1635,
16,
7791,
3113,
374,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
23,
16,
315,
2135,
6199,
83,
3113,
374,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
24,
16,
315,
2463,
310,
279,
444,
3113,
374,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
25,
16,
315,
1518,
7886,
434,
618,
6847,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
26,
16,
315,
2
] |
if(!clazz.getSuperclass().equals( GroovyObject.class ) && !clazz.getSuperclass().equals(Object.class)) {
|
if(!clazz.getSuperclass().equals( GroovyObject.class ) && !clazz.getSuperclass().equals(Object.class) && !Modifier.isAbstract(clazz.getSuperclass().getModifiers())) {
|
public DefaultGrailsDomainClass(Class clazz) { super(clazz, ""); PropertyDescriptor[] propertyDescriptors = getReference().getPropertyDescriptors(); if(!clazz.getSuperclass().equals( GroovyObject.class ) && !clazz.getSuperclass().equals(Object.class)) { this.root = false; } this.propertyMap = new HashMap(); this.relationshipMap = (Map)getPropertyValue( GrailsDomainClassProperty.RELATES_TO_MANY, Map.class ); if(this.relationshipMap == null) { this.relationshipMap = new HashMap(); } // process the constraints evaluateConstraints(); // get mapped by setting if(getPropertyValue(GrailsDomainClassProperty.MAPPED_BY, String.class) != null) this.mappedBy = (String)getPropertyValue(GrailsDomainClassProperty.MAPPED_BY, String.class); Class belongsTo = (Class)getPropertyValue(GrailsDomainClassProperty.BELONGS_TO, Class.class); if(belongsTo == null) { List ownersProp = (List)getPropertyValue(GrailsDomainClassProperty.BELONGS_TO, List.class); if(ownersProp != null) { this.owners = ownersProp; } } else { this.owners = new ArrayList(); this.owners.add(belongsTo); } // First go through the properties of the class and create domain properties // populating into a map for(int i = 0; i < propertyDescriptors.length; i++) { PropertyDescriptor descriptor = propertyDescriptors[i]; // ignore certain properties if(!descriptor.getName().equals( GrailsDomainClassProperty.META_CLASS ) && !descriptor.getName().equals( GrailsDomainClassProperty.CLASS ) && !descriptor.getName().equals( GrailsDomainClassProperty.TRANSIENT) && !descriptor.getName().equals( GrailsDomainClassProperty.RELATES_TO_MANY) && !descriptor.getName().equals( GrailsDomainClassProperty.EVANESCENT) && !descriptor.getName().equals( GrailsDomainClassProperty.OPTIONAL) && !descriptor.getName().equals( GrailsDomainClassProperty.CONSTRAINTS )&& !descriptor.getName().equals( GrailsDomainClassProperty.MAPPED_BY ) && !descriptor.getName().equals( GrailsDomainClassProperty.BELONGS_TO ) ) { GrailsDomainClassProperty property = new DefaultGrailsDomainClassProperty(this, descriptor); this.propertyMap.put(property.getName(), property); if(property.isIdentity()) { this.identifier = property; } else if(property.getName().equals( GrailsDomainClassProperty.VERSION )) { this.version = property; } } } // if no identifier property throw exception if(this.identifier == null) { throw new GrailsDomainException("Identity property not found, but required in domain class ["+getFullName()+"]" ); } // if no version property throw exception if(this.version == null) { throw new GrailsDomainException("Version property not found, but required in domain class ["+getFullName()+"]" ); } // set properties from map values this.properties = (GrailsDomainClassProperty[])this.propertyMap.values().toArray( new GrailsDomainClassProperty[this.propertyMap.size()] ); // establish relationships establishRelationships(); // set persistant properties Collection tempList = new ArrayList(); for(Iterator i = this.propertyMap.values().iterator();i.hasNext();) { GrailsDomainClassProperty currentProp = (GrailsDomainClassProperty)i.next(); if(currentProp.isPersistent() && !currentProp.isIdentity() && !currentProp.getName().equals( GrailsDomainClassProperty.VERSION )) { tempList.add(currentProp); } } this.persistantProperties = (GrailsDomainClassProperty[])tempList.toArray( new GrailsDomainClassProperty[tempList.size()]); }
|
50831 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50831/97a8bab3e1dec08dc6a8df06d5699cc0e5ca433e/DefaultGrailsDomainClass.java/buggy/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2989,
14571,
14573,
3748,
797,
12,
797,
4003,
13,
288,
202,
202,
9565,
12,
830,
3638,
16,
1408,
1769,
202,
202,
1396,
3187,
8526,
1272,
12705,
273,
13223,
7675,
588,
1396,
12705,
5621,
9506,
202,
430,
12,
5,
830,
3638,
18,
588,
28471,
7675,
14963,
12,
20841,
921,
18,
1106,
262,
597,
401,
830,
3638,
18,
588,
28471,
7675,
14963,
12,
921,
18,
1106,
3719,
288,
1082,
202,
2211,
18,
3085,
273,
629,
31,
202,
202,
97,
202,
202,
2211,
18,
4468,
863,
273,
394,
4317,
5621,
202,
202,
2211,
18,
12873,
863,
273,
261,
863,
13,
588,
16107,
12,
10812,
14573,
3748,
797,
1396,
18,
862,
10512,
55,
67,
4296,
67,
24177,
16,
1635,
18,
1106,
11272,
202,
202,
430,
12,
2211,
18,
12873,
863,
422,
446,
13,
288,
1082,
202,
2211,
18,
12873,
863,
273,
394,
4317,
5621,
202,
202,
97,
202,
202,
759,
1207,
326,
6237,
202,
202,
21024,
4878,
5621,
9506,
202,
759,
336,
5525,
635,
3637,
202,
202,
430,
12,
588,
16107,
12,
14571,
14573,
3748,
797,
1396,
18,
8352,
12120,
67,
6486,
16,
514,
18,
1106,
13,
480,
446,
13,
1082,
202,
2211,
18,
13654,
858,
273,
261,
780,
13,
588,
16107,
12,
14571,
14573,
3748,
797,
1396,
18,
8352,
12120,
67,
6486,
16,
514,
18,
1106,
1769,
3639,
1659,
11081,
774,
273,
261,
797,
13,
588,
16107,
12,
14571,
14573,
3748,
797,
1396,
18,
38,
2247,
7390,
55,
67,
4296,
16,
1659,
18,
1106,
1769,
3639,
309,
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,
2989,
14571,
14573,
3748,
797,
12,
797,
4003,
13,
288,
202,
202,
9565,
12,
830,
3638,
16,
1408,
1769,
202,
202,
1396,
3187,
8526,
1272,
12705,
273,
13223,
7675,
588,
1396,
12705,
5621,
9506,
202,
430,
12,
5,
830,
3638,
18,
588,
28471,
7675,
14963,
12,
20841,
921,
18,
1106,
262,
597,
401,
830,
3638,
18,
588,
28471,
7675,
14963,
12,
921,
18,
1106,
3719,
288,
1082,
202,
2211,
18,
3085,
273,
629,
31,
202,
202,
97,
202,
202,
2211,
18,
4468,
863,
273,
394,
4317,
5621,
202,
202,
2211,
18,
12873,
863,
273,
261,
863,
13,
588,
16107,
12,
10812,
14573,
3748,
797,
1396,
18,
862,
10512,
55,
67,
4296,
67,
24177,
16,
1635,
18,
2
] |
catch ( NumberFormatException nfe ) { if ( s.equals("INF") ) { value = Double.POSITIVE_INFINITY; } else if ( s.equals("-INF") ) { value = Double.NEGATIVE_INFINITY; } else if ( s.equals("NaN" ) ) { value = Double.NaN; } else { throw nfe; }
|
else if ( s.equals("INF") ) { value = Double.POSITIVE_INFINITY; } else if ( s.equals("-INF") ) { value = Double.NEGATIVE_INFINITY; } else if ( s.equals("NaN" ) ) { value = Double.NaN; } else { throw new NumberFormatException(s);
|
public XDouble(String s) throws NumberFormatException { try { value = Double.parseDouble(s); } catch ( NumberFormatException nfe ) { if ( s.equals("INF") ) { value = Double.POSITIVE_INFINITY; } else if ( s.equals("-INF") ) { value = Double.NEGATIVE_INFINITY; } else if ( s.equals("NaN" ) ) { value = Double.NaN; } else { throw nfe; } } }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/84a3ae31d49077fba7af385af2bed272b8139438/DoubleDV.java/clean/src/org/apache/xerces/impl/dv/xs/DoubleDV.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1139,
5265,
12,
780,
272,
13,
1216,
12100,
288,
5411,
775,
288,
7734,
460,
273,
3698,
18,
2670,
5265,
12,
87,
1769,
5411,
289,
5411,
1044,
261,
12100,
25386,
262,
288,
7734,
309,
261,
272,
18,
14963,
2932,
19212,
7923,
262,
288,
10792,
460,
273,
3698,
18,
7057,
16325,
67,
17716,
31,
7734,
289,
7734,
469,
309,
261,
272,
18,
14963,
2932,
17,
19212,
7923,
262,
288,
10792,
460,
273,
3698,
18,
5407,
22421,
67,
17716,
31,
7734,
289,
7734,
469,
309,
261,
272,
18,
14963,
2932,
21172,
6,
262,
262,
288,
10792,
460,
273,
3698,
18,
21172,
31,
7734,
289,
7734,
469,
288,
10792,
604,
25386,
31,
7734,
289,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1139,
5265,
12,
780,
272,
13,
1216,
12100,
288,
5411,
775,
288,
7734,
460,
273,
3698,
18,
2670,
5265,
12,
87,
1769,
5411,
289,
5411,
1044,
261,
12100,
25386,
262,
288,
7734,
309,
261,
272,
18,
14963,
2932,
19212,
7923,
262,
288,
10792,
460,
273,
3698,
18,
7057,
16325,
67,
17716,
31,
7734,
289,
7734,
469,
309,
261,
272,
18,
14963,
2932,
17,
19212,
7923,
262,
288,
10792,
460,
273,
3698,
18,
5407,
22421,
67,
17716,
31,
7734,
289,
7734,
469,
309,
261,
272,
18,
14963,
2932,
21172,
6,
262,
262,
288,
10792,
460,
273,
3698,
18,
21172,
31,
7734,
289,
7734,
469,
288,
10792,
604,
25386,
31,
7734,
289,
5411,
289,
3639,
289,
2,
-100,
-100,
-100
] |
public RubyNumeric op_mod(RubyNumeric other) { double x = getDoubleValue(); double y = other.getDoubleValue(); double mod = x % y;
|
public IRubyObject op_mod(IRubyObject other) { if (other instanceof RubyNumeric) { double x = getDoubleValue(); double y = ((RubyNumeric) other).getDoubleValue(); double mod = x % y;
|
public RubyNumeric op_mod(RubyNumeric other) { // Modelled after c ruby implementation (java /,% not same as ruby) double x = getDoubleValue(); double y = other.getDoubleValue(); double mod = x % y; if (mod < 0 && y > 0 || mod > 0 && y < 0) { mod += y; } return RubyFloat.newFloat(getRuntime(), mod); }
|
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyFloat.java/clean/src/org/jruby/RubyFloat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
1711,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
368,
3164,
1259,
1839,
276,
22155,
4471,
261,
6290,
342,
15529,
486,
1967,
487,
22155,
13,
3639,
1645,
619,
273,
16097,
620,
5621,
3639,
1645,
677,
273,
1308,
18,
588,
5265,
620,
5621,
3639,
1645,
681,
273,
619,
738,
677,
31,
3639,
309,
261,
1711,
411,
374,
597,
677,
405,
374,
747,
681,
405,
374,
597,
677,
411,
374,
13,
288,
5411,
681,
1011,
677,
31,
3639,
289,
3639,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
9334,
681,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
1711,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
368,
3164,
1259,
1839,
276,
22155,
4471,
261,
6290,
342,
15529,
486,
1967,
487,
22155,
13,
3639,
1645,
619,
273,
16097,
620,
5621,
3639,
1645,
677,
273,
1308,
18,
588,
5265,
620,
5621,
3639,
1645,
681,
273,
619,
738,
677,
31,
3639,
309,
261,
1711,
411,
374,
597,
677,
405,
374,
747,
681,
405,
374,
597,
677,
411,
374,
13,
288,
5411,
681,
1011,
677,
31,
3639,
289,
3639,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
9334,
681,
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
] |
return true;
|
else { return true; }
|
private boolean classFilter(final ClassGen cg) { if (cg.isInterface()) { return true; } if (m_weaveModel.isAdvised(cg.getClassName())) { return false; } return true; }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/c0ad9fd621e3e04228079c4d3161cf221ca08acb/AdviseMemberMethodTransformer.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/transform/AdviseMemberMethodTransformer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
667,
1586,
12,
6385,
1659,
7642,
14947,
13,
288,
3639,
309,
261,
26275,
18,
291,
1358,
10756,
288,
5411,
469,
288,
327,
638,
31,
289,
3639,
289,
3639,
309,
261,
81,
67,
1814,
836,
1488,
18,
291,
1871,
26779,
12,
26275,
18,
588,
3834,
1435,
3719,
288,
5411,
327,
629,
31,
3639,
289,
3639,
469,
288,
327,
638,
31,
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,
3238,
1250,
667,
1586,
12,
6385,
1659,
7642,
14947,
13,
288,
3639,
309,
261,
26275,
18,
291,
1358,
10756,
288,
5411,
469,
288,
327,
638,
31,
289,
3639,
289,
3639,
309,
261,
81,
67,
1814,
836,
1488,
18,
291,
1871,
26779,
12,
26275,
18,
588,
3834,
1435,
3719,
288,
5411,
327,
629,
31,
3639,
289,
3639,
469,
288,
327,
638,
31,
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
] |
public XSNamedMap4Types(String[] namespaces, SymbolHash[] maps, int num, short type) { super(namespaces, maps, num);
|
public XSNamedMap4Types(String namespace, SymbolHash map, short type) { super(namespace, map);
|
public XSNamedMap4Types(String[] namespaces, SymbolHash[] maps, int num, short type) { super(namespaces, maps, num); fType = type; }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/35fe2882143c2ad3973e1d4e76951c3ccc6807b6/XSNamedMap4Types.java/buggy/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1139,
55,
7604,
863,
24,
2016,
12,
780,
8526,
7728,
16,
8565,
2310,
8526,
7565,
16,
509,
818,
16,
3025,
618,
13,
288,
3639,
2240,
12,
16078,
16,
7565,
16,
818,
1769,
3639,
284,
559,
273,
618,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
1139,
55,
7604,
863,
24,
2016,
12,
780,
8526,
7728,
16,
8565,
2310,
8526,
7565,
16,
509,
818,
16,
3025,
618,
13,
288,
3639,
2240,
12,
16078,
16,
7565,
16,
818,
1769,
3639,
284,
559,
273,
618,
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
] |
MuleProperties.DISABLE_SERVER_CONNECTIONS,
|
MuleProperties.DISABLE_SERVER_CONNECTIONS_SYSTEM_PROPERTY,
|
protected void registerAdminAgent() throws UMOException { // Allows users to disable all server components and connections // this can be useful for testing boolean disable = PropertiesHelper.getBooleanProperty(System.getProperties(), MuleProperties.DISABLE_SERVER_CONNECTIONS, false); // if endpointUri is null do not setup server components if (config.getServerUrl() == null || "".equals(config.getServerUrl().trim())) { logger.info("Server endpointUri is null, not registering Mule Admin agent"); disable = true; } if (!disable) { unregisterAgent(MuleAdminAgent.AGENT_NAME); registerAgent(new MuleAdminAgent()); } }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/5ae1458cac1e635e7a9468a79f599c146473034a/MuleManager.java/buggy/src/java/org/mule/MuleManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1744,
4446,
3630,
1435,
1216,
587,
5980,
503,
288,
3639,
368,
25619,
3677,
358,
4056,
777,
1438,
4085,
471,
5921,
3639,
368,
333,
848,
506,
5301,
364,
7769,
3639,
1250,
4056,
273,
6183,
2276,
18,
588,
5507,
1396,
12,
3163,
18,
588,
2297,
9334,
4766,
17311,
490,
725,
2297,
18,
13498,
2782,
67,
4370,
67,
15461,
55,
67,
14318,
67,
9900,
16,
4766,
17311,
629,
1769,
3639,
368,
309,
2494,
3006,
353,
446,
741,
486,
3875,
1438,
4085,
3639,
309,
261,
1425,
18,
588,
2081,
1489,
1435,
422,
446,
747,
1408,
18,
14963,
12,
1425,
18,
588,
2081,
1489,
7675,
5290,
1435,
3719,
288,
5411,
1194,
18,
1376,
2932,
2081,
2494,
3006,
353,
446,
16,
486,
22845,
490,
725,
7807,
4040,
8863,
5411,
4056,
273,
638,
31,
3639,
289,
3639,
309,
16051,
8394,
13,
288,
5411,
10232,
3630,
12,
49,
725,
4446,
3630,
18,
15005,
67,
1985,
1769,
5411,
1744,
3630,
12,
2704,
490,
725,
4446,
3630,
10663,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1744,
4446,
3630,
1435,
1216,
587,
5980,
503,
288,
3639,
368,
25619,
3677,
358,
4056,
777,
1438,
4085,
471,
5921,
3639,
368,
333,
848,
506,
5301,
364,
7769,
3639,
1250,
4056,
273,
6183,
2276,
18,
588,
5507,
1396,
12,
3163,
18,
588,
2297,
9334,
4766,
17311,
490,
725,
2297,
18,
13498,
2782,
67,
4370,
67,
15461,
55,
67,
14318,
67,
9900,
16,
4766,
17311,
629,
1769,
3639,
368,
309,
2494,
3006,
353,
446,
741,
486,
3875,
1438,
4085,
3639,
309,
261,
1425,
18,
588,
2081,
1489,
1435,
422,
446,
747,
1408,
18,
14963,
12,
1425,
18,
588,
2081,
1489,
7675,
5290,
1435,
3719,
288,
5411,
1194,
18,
1376,
2932,
2081,
2494,
3006,
353,
446,
16,
486,
2
] |
public void baseSpecifierName(Object baseSpecifier) {
|
public Object baseSpecifierName(Object baseSpecifier) { return baseSpecifier;
|
public void baseSpecifierName(Object baseSpecifier) { }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/44aad85270fb48dbc04906626c769076958182ca/NewModelBuilder.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/model/NewModelBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1026,
21416,
461,
12,
921,
1026,
21416,
13,
288,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1026,
21416,
461,
12,
921,
1026,
21416,
13,
288,
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,
-100,
-100,
-100,
-100
] |
final Map<String, Object> attributeMap = new HashMap<String, Object>();
|
final Map<String, Object> parameterMap = new HashMap<String, Object>(); for (final Entry<String, Object> entry : ((Map<String, Object>) request.getParameterMap()).entrySet()) { parameterMap.put(entry.getKey(), entry.getValue()); } httpSession.setAttribute("ORIGINAL_PARAMETER_MAP", parameterMap); final Map<String, Object> attributeMap = new HashMap<String, Object>();
|
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { final HttpServletRequest request = (HttpServletRequest) servletRequest; final HttpServletResponse response = (HttpServletResponse) servletResponse; final String uri = request.getRequestURI(); final IUserView userView = getUserView(request); if (isPrivateURI(uri.substring(APP_CONTEXT_LENGTH)) && !validUserView(userView)) { System.out.println("uri: " + uri);// for (final Entry<String, String[]> entry : ((Map<String, String[]>) request.getParameterMap()).entrySet()) {// System.out.println(" parameter: " + entry.getKey());// for (final String string : entry.getValue()) {// System.out.println(" |-> " + string);// }// }// final Enumeration enumeration = request.getAttributeNames();// while (enumeration.hasMoreElements()) {// final Object object = enumeration.nextElement();// System.out.println(" attribute: " + object + " = " + request.getAttribute((String) object));// } final HttpSession httpSession = request.getSession(true); httpSession.setAttribute("ORIGINAL_REQUEST", request); final StringBuilder originalURI = new StringBuilder(request.getRequestURI()); boolean isFirst = true; for (final Entry<String, String[]> entry : ((Map<String, String[]>) request.getParameterMap()).entrySet()) { for (final String parameterValue : entry.getValue()) { if (isFirst) { isFirst = false; originalURI.append('?'); } else { originalURI.append('&'); } originalURI.append(entry.getKey()); originalURI.append('='); originalURI.append(parameterValue); } } httpSession.setAttribute("ORIGINAL_URI", originalURI.toString()); final Map<String, Object> attributeMap = new HashMap<String, Object>(); final Enumeration enumeration = request.getAttributeNames(); while (enumeration.hasMoreElements()) { final String attributeName = (String) enumeration.nextElement(); attributeMap.put(attributeName, request.getAttribute(attributeName)); } httpSession.setAttribute("ORIGINAL_ATTRIBUTE_MAP", attributeMap); response.sendRedirect(REDIRECT); } else { filterChain.doFilter(request, response); } }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/1f4e50e8efadb2a712997e842531fc4a0161b9fb/CheckUserViewFilter.java/clean/src/net/sourceforge/fenixedu/presentationTier/servlets/filters/CheckUserViewFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
1586,
12,
18572,
8100,
691,
16,
7971,
1064,
8100,
1064,
16,
4008,
3893,
1034,
3893,
13,
5411,
1216,
1860,
16,
16517,
288,
3639,
727,
9984,
590,
273,
261,
2940,
18572,
13,
8100,
691,
31,
3639,
727,
12446,
766,
273,
261,
2940,
29910,
13,
8100,
1064,
31,
3639,
727,
514,
2003,
273,
590,
18,
588,
691,
3098,
5621,
3639,
727,
467,
1299,
1767,
729,
1767,
273,
4735,
1767,
12,
2293,
1769,
3639,
309,
261,
291,
6014,
3098,
12,
1650,
18,
28023,
12,
7215,
67,
13181,
67,
7096,
3719,
597,
401,
877,
1299,
1767,
12,
1355,
1767,
3719,
288,
540,
202,
3163,
18,
659,
18,
8222,
2932,
1650,
30,
315,
397,
2003,
1769,
759,
540,
202,
1884,
261,
6385,
3841,
32,
780,
16,
514,
8526,
34,
1241,
294,
14015,
863,
32,
780,
16,
514,
8526,
23429,
590,
18,
588,
1662,
863,
1435,
2934,
4099,
694,
10756,
288,
759,
540,
202,
202,
3163,
18,
659,
18,
8222,
2932,
282,
1569,
30,
315,
397,
1241,
18,
588,
653,
10663,
759,
540,
202,
202,
1884,
261,
6385,
514,
533,
294,
1241,
18,
24805,
10756,
288,
759,
540,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
1377,
571,
2122,
315,
397,
533,
1769,
759,
540,
202,
202,
97,
759,
540,
202,
97,
759,
540,
202,
6385,
13864,
16836,
273,
590,
18,
588,
26080,
5621,
759,
540,
202,
17523,
261,
7924,
7067,
18,
5332,
7417,
3471,
10756,
288,
759,
540,
202,
202,
6385,
1033,
733,
273,
16836,
18,
4285,
1046,
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,
741,
1586,
12,
18572,
8100,
691,
16,
7971,
1064,
8100,
1064,
16,
4008,
3893,
1034,
3893,
13,
5411,
1216,
1860,
16,
16517,
288,
3639,
727,
9984,
590,
273,
261,
2940,
18572,
13,
8100,
691,
31,
3639,
727,
12446,
766,
273,
261,
2940,
29910,
13,
8100,
1064,
31,
3639,
727,
514,
2003,
273,
590,
18,
588,
691,
3098,
5621,
3639,
727,
467,
1299,
1767,
729,
1767,
273,
4735,
1767,
12,
2293,
1769,
3639,
309,
261,
291,
6014,
3098,
12,
1650,
18,
28023,
12,
7215,
67,
13181,
67,
7096,
3719,
597,
401,
877,
1299,
1767,
12,
1355,
1767,
3719,
288,
540,
202,
3163,
18,
659,
18,
8222,
2932,
1650,
30,
315,
397,
2003,
1769,
759,
540,
202,
1884,
2
] |
private void checkOptionReferences(IProject project) throws BuildException { // Get the targets out of the project ITarget[] definedTargets = ManagedBuildManager.getTargets(project); assertEquals(1, definedTargets.length); ITarget rootTarget = definedTargets[0]; // Now get the configs IConfiguration[] definedConfigs = rootTarget.getConfigurations(); assertEquals(4, definedConfigs.length); IConfiguration newConfig = rootTarget.getConfiguration(testConfigId); assertNotNull(newConfig); // Now get the tool options and make sure the values are correct ITool[] definedTools = newConfig.getTools(); assertEquals(1, definedTools.length); ITool rootTool = definedTools[0]; // Check that the options in the new config contain overridden values IOption[] rootOptions = rootTool.getOptions(); assertEquals(4, rootOptions.length); // First is the new list assertEquals("List Option in Top", rootOptions[0].getName()); assertEquals(IOption.STRING_LIST, rootOptions[0].getValueType()); String[] list = rootOptions[0].getStringListValue(); assertEquals(3, list.length); assertTrue(Arrays.equals(listVal, list)); assertEquals(rootOptions[0].getCommand(), "-L"); // Next option is a boolean in top assertEquals("Boolean Option in Top", rootOptions[1].getName()); assertEquals(IOption.BOOLEAN, rootOptions[1].getValueType()); assertEquals(boolVal, rootOptions[1].getBooleanValue()); assertEquals("-b", rootOptions[1].getCommand()); // Next option is a string category assertEquals("String Option in Category", rootOptions[2].getName()); assertEquals(IOption.STRING, rootOptions[2].getValueType()); assertEquals(stringVal, rootOptions[2].getStringValue()); // Final option is an enumerated assertEquals("Enumerated Option in Category", rootOptions[3].getName()); assertEquals(IOption.ENUMERATED, rootOptions[3].getValueType()); String selEnum = rootOptions[3].getSelectedEnum(); assertEquals(enumVal, selEnum); String[] enums = rootOptions[3].getApplicableValues(); assertEquals(2, enums.length); assertEquals("Default Enum", enums[0]); assertEquals("Another Enum", enums[1]); assertEquals("-e1", rootOptions[3].getEnumCommand(enums[0])); assertEquals("-e2", rootOptions[3].getEnumCommand(enums[1])); assertEquals("-e2", rootOptions[3].getEnumCommand(selEnum)); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/e5e65d527afdfbb05c296370bbf033175ee74f72/ManagedBuildTests.java/buggy/core/org.eclipse.cdt.core.tests/build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
866,
1895,
8221,
12,
45,
4109,
1984,
13,
1216,
18463,
288,
202,
202,
759,
968,
326,
5774,
596,
434,
326,
1984,
202,
202,
1285,
826,
8526,
2553,
9432,
273,
10024,
3116,
1318,
18,
588,
9432,
12,
4406,
1769,
202,
202,
11231,
8867,
12,
21,
16,
2553,
9432,
18,
2469,
1769,
202,
202,
1285,
826,
1365,
2326,
273,
2553,
9432,
63,
20,
15533,
202,
202,
759,
4494,
336,
326,
6784,
202,
202,
45,
1750,
8526,
2553,
8062,
273,
1365,
2326,
18,
588,
9698,
5621,
4697,
202,
11231,
8867,
12,
24,
16,
2553,
8062,
18,
2469,
1769,
202,
202,
45,
1750,
21032,
273,
1365,
2326,
18,
588,
1750,
12,
3813,
809,
548,
1769,
202,
202,
11231,
5962,
12,
2704,
809,
1769,
202,
202,
759,
4494,
336,
326,
5226,
702,
471,
1221,
3071,
326,
924,
854,
3434,
9506,
202,
45,
6364,
8526,
2553,
10348,
273,
21032,
18,
588,
10348,
5621,
202,
202,
11231,
8867,
12,
21,
16,
2553,
10348,
18,
2469,
1769,
202,
202,
45,
6364,
1365,
6364,
273,
2553,
10348,
63,
20,
15533,
202,
202,
759,
2073,
716,
326,
702,
316,
326,
394,
642,
912,
11000,
924,
202,
202,
45,
1895,
8526,
1365,
1320,
273,
1365,
6364,
18,
588,
1320,
5621,
202,
202,
11231,
8867,
12,
24,
16,
1365,
1320,
18,
2469,
1769,
202,
202,
759,
5783,
353,
326,
394,
666,
202,
202,
11231,
8867,
2932,
682,
2698,
316,
7202,
3113,
1365,
1320,
63,
20,
8009,
17994,
10663,
202,
202,
11231,
8867,
12,
45,
1895,
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,
866,
1895,
8221,
12,
45,
4109,
1984,
13,
1216,
18463,
288,
202,
202,
759,
968,
326,
5774,
596,
434,
326,
1984,
202,
202,
1285,
826,
8526,
2553,
9432,
273,
10024,
3116,
1318,
18,
588,
9432,
12,
4406,
1769,
202,
202,
11231,
8867,
12,
21,
16,
2553,
9432,
18,
2469,
1769,
202,
202,
1285,
826,
1365,
2326,
273,
2553,
9432,
63,
20,
15533,
202,
202,
759,
4494,
336,
326,
6784,
202,
202,
45,
1750,
8526,
2553,
8062,
273,
1365,
2326,
18,
588,
9698,
5621,
4697,
202,
11231,
8867,
12,
24,
16,
2553,
8062,
18,
2469,
1769,
202,
202,
45,
1750,
21032,
273,
1365,
2326,
18,
588,
1750,
12,
3813,
809,
548,
1769,
202,
202,
11231,
5962,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.