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 |
|---|---|---|---|---|---|---|
return this.get(positionY + this.getWidth());
|
return this.get(position + this.getWidth());
|
public Object down(Object o) { int positionY = this.getY(this.indexOf(o)); if (positionY != this.getHeight()) { return this.get(positionY + this.getWidth()); } else { return null; } }
|
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/f65ce438302658787d8a974be204323b67888d57/Cube.java/buggy/src/org/objectweb/proactive/core/group/topology/Cube.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2588,
12,
921,
320,
13,
288,
3639,
509,
1754,
61,
273,
333,
18,
588,
61,
12,
2211,
18,
31806,
12,
83,
10019,
3639,
309,
261,
3276,
61,
480,
333,
18,
588,
2686,
10756,
288,
5411,
327,
333,
18,
588,
12,
3276,
397,
333,
18,
588,
2384,
10663,
3639,
289,
469,
288,
5411,
327,
446,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
1033,
2588,
12,
921,
320,
13,
288,
3639,
509,
1754,
61,
273,
333,
18,
588,
61,
12,
2211,
18,
31806,
12,
83,
10019,
3639,
309,
261,
3276,
61,
480,
333,
18,
588,
2686,
10756,
288,
5411,
327,
333,
18,
588,
12,
3276,
397,
333,
18,
588,
2384,
10663,
3639,
289,
469,
288,
5411,
327,
446,
31,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static final boolean validateZone( String zoneName, String locationID )
|
public static final boolean validateZone( String zoneName, String locationId )
|
public static final boolean validateZone( String zoneName, String locationID ) { if ( zoneName == null || locationID == null ) return true; ArrayList validationRequests = (ArrayList) zoneValidations.get( zoneName ); if ( validationRequests == null || validationRequests.isEmpty() ) return true; boolean isValidZone = true; for ( int i = 1; isValidZone && i < validationRequests.size() - 1; ++i ) { ZONE_VALIDATOR.constructURLString( (String) validationRequests.get(0) ).run(); isValidZone &= ZONE_VALIDATOR.responseText != null && ZONE_VALIDATOR.responseText.indexOf( (String) validationRequests.get(i) ) != -1; } ZONE_VALIDATOR.constructURLString( (String) validationRequests.get( validationRequests.size() - 1 ) ).run(); // Special handling of the bat zone. if ( locationID.equals( "32" ) || locationID.equals( "33" ) || locationID.equals( "34" ) ) { if ( locationID.equals( "32" ) && ZONE_VALIDATOR.responseText.indexOf( "batrockleft.gif" ) == -1 ) return true; if ( locationID.equals( "33" ) && ZONE_VALIDATOR.responseText.indexOf( "batrockright.gif" ) == -1 ) return true; if ( locationID.equals( "34" ) && ZONE_VALIDATOR.responseText.indexOf( "batrockbottom.gif" ) == -1 ) return true; int sonarCount = SONAR.getCount( inventory ); int sonarToUse = 0; if ( ZONE_VALIDATOR.responseText.indexOf( "batrockleft.gif" ) != -1 ) sonarToUse = 3; else if ( ZONE_VALIDATOR.responseText.indexOf( "batrockright.gif" ) != -1 ) sonarToUse = 2; else if ( ZONE_VALIDATOR.responseText.indexOf( "batrockbottom.gif" ) != -1 ) sonarToUse = 1; DEFAULT_SHELL.executeLine( "use " + Math.min( sonarToUse, sonarCount ) + " sonar-in-a-biscuit" ); ZONE_VALIDATOR.run(); return locationID.equals( "32" ) && ZONE_VALIDATOR.responseText.indexOf( "batrockleft.gif" ) == -1 || locationID.equals( "33" ) && ZONE_VALIDATOR.responseText.indexOf( "batrockright.gif" ) == -1 || locationID.equals( "34" ) && ZONE_VALIDATOR.responseText.indexOf( "batrockbottom.gif" ) == -1; } // Handle all others as normal. isValidZone &= ZONE_VALIDATOR.responseText != null; if ( isValidZone ) { isValidZone &= ZONE_VALIDATOR.responseText.indexOf( "snarfblat=" + locationID ) != -1 || ZONE_VALIDATOR.responseText.indexOf( "adv=" + locationID ) != -1 || ZONE_VALIDATOR.responseText.indexOf( "name=snarfblat value=" + locationID ) != -1 || ZONE_VALIDATOR.responseText.indexOf( "name=adv value=" + locationID ) != -1; } return isValidZone; }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/db652071b06715a4456f702f081fbe5b47aa5a70/AdventureDatabase.java/buggy/src/net/sourceforge/kolmafia/AdventureDatabase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
1250,
1954,
4226,
12,
514,
4157,
461,
16,
514,
2117,
734,
262,
202,
95,
202,
202,
430,
261,
4157,
461,
422,
446,
747,
2117,
734,
422,
446,
262,
1082,
202,
2463,
638,
31,
202,
202,
19558,
3379,
6421,
273,
261,
19558,
13,
4157,
1556,
1012,
18,
588,
12,
4157,
461,
11272,
202,
202,
430,
261,
3379,
6421,
422,
446,
747,
3379,
6421,
18,
291,
1921,
1435,
262,
1082,
202,
2463,
638,
31,
202,
202,
6494,
4908,
4226,
273,
638,
31,
202,
202,
1884,
261,
509,
277,
273,
404,
31,
4908,
4226,
597,
277,
411,
3379,
6421,
18,
1467,
1435,
300,
404,
31,
965,
77,
262,
202,
202,
95,
1082,
202,
20725,
67,
5063,
3575,
18,
10062,
1785,
780,
12,
261,
780,
13,
3379,
6421,
18,
588,
12,
20,
13,
262,
18,
2681,
5621,
1082,
202,
26810,
4226,
12058,
2285,
5998,
67,
5063,
3575,
18,
2740,
1528,
480,
446,
597,
9506,
202,
20725,
67,
5063,
3575,
18,
2740,
1528,
18,
31806,
12,
261,
780,
13,
3379,
6421,
18,
588,
12,
77,
13,
262,
480,
300,
21,
31,
202,
202,
97,
202,
202,
20725,
67,
5063,
3575,
18,
10062,
1785,
780,
12,
261,
780,
13,
3379,
6421,
18,
588,
12,
3379,
6421,
18,
1467,
1435,
300,
404,
262,
262,
18,
2681,
5621,
202,
202,
759,
13409,
5057,
434,
326,
27464,
4157,
18,
202,
202,
430,
261,
2117,
734,
18,
14963,
12,
315,
1578,
6,
262,
747,
2117,
734,
18,
14963,
12,
315,
3707,
6,
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,
727,
1250,
1954,
4226,
12,
514,
4157,
461,
16,
514,
2117,
734,
262,
202,
95,
202,
202,
430,
261,
4157,
461,
422,
446,
747,
2117,
734,
422,
446,
262,
1082,
202,
2463,
638,
31,
202,
202,
19558,
3379,
6421,
273,
261,
19558,
13,
4157,
1556,
1012,
18,
588,
12,
4157,
461,
11272,
202,
202,
430,
261,
3379,
6421,
422,
446,
747,
3379,
6421,
18,
291,
1921,
1435,
262,
1082,
202,
2463,
638,
31,
202,
202,
6494,
4908,
4226,
273,
638,
31,
202,
202,
1884,
261,
509,
277,
273,
404,
31,
4908,
4226,
597,
277,
411,
3379,
6421,
18,
1467,
1435,
300,
404,
31,
965,
77,
262,
202,
202,
95,
1082,
202,
20725,
67,
5063,
3575,
2
] |
a = atrDeIns; return a;
|
return atrDeIns;
|
public Par I() throws Exception{ /*ahora puede ser ICompuesta, IIf * las ecs son: * - {I.err= ICompuesta.err; } * - {I.err= Iif.err;}*/ Par a = new Par(); Par atrDeIns = null; lexico.lexer(); if (lexico.reconoce(Tipos.TKBEG)){ atrDeIns = ICompuesta(); } else{ if (lexico.reconoce(Tipos.TKIF)){ atrDeIns = IIf(); } else if(lexico.reconoce(Tipos.TKWHL)){ atrDeIns = IWhile(); } else if (lexico.reconoce(Tipos.TKNEW)){ atrDeIns = INew(); } else if (lexico.reconoce(Tipos.TKDEL)){ atrDeIns = IDel(); } else{ atrDeIns = IAsig(); } } a = atrDeIns; return a; }
|
10474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10474/f6dc44d80fd64451a5eb89c4413e42d14f2f424d/Sintactico.java/buggy/plg/procesador/Sintactico.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2280,
467,
1435,
1216,
1185,
95,
202,
202,
20308,
9795,
10610,
293,
344,
323,
703,
467,
2945,
89,
395,
69,
16,
467,
2047,
1082,
380,
27596,
28507,
18882,
30,
1082,
380,
300,
288,
45,
18,
370,
33,
467,
2945,
89,
395,
69,
18,
370,
31,
289,
1082,
380,
300,
288,
45,
18,
370,
33,
467,
430,
18,
370,
31,
97,
5549,
202,
202,
1553,
279,
273,
394,
2280,
5621,
202,
202,
1553,
622,
86,
758,
5048,
273,
446,
31,
202,
202,
4149,
10764,
18,
31731,
5621,
202,
202,
430,
261,
4149,
10764,
18,
266,
591,
83,
311,
12,
14189,
538,
18,
56,
47,
5948,
43,
3719,
95,
1082,
202,
270,
86,
758,
5048,
273,
467,
2945,
89,
395,
69,
5621,
202,
202,
97,
202,
202,
12107,
95,
1082,
202,
430,
261,
4149,
10764,
18,
266,
591,
83,
311,
12,
14189,
538,
18,
56,
47,
5501,
3719,
95,
9506,
202,
270,
86,
758,
5048,
273,
467,
2047,
5621,
1082,
202,
97,
1082,
202,
12107,
309,
12,
4149,
10764,
18,
266,
591,
83,
311,
12,
14189,
538,
18,
56,
47,
12557,
48,
3719,
95,
6862,
202,
270,
86,
758,
5048,
273,
467,
15151,
5621,
1082,
202,
97,
1082,
202,
12107,
309,
261,
4149,
10764,
18,
266,
591,
83,
311,
12,
14189,
538,
18,
56,
47,
12917,
3719,
95,
9506,
202,
270,
86,
758,
5048,
273,
467,
1908,
5621,
1082,
202,
97,
1082,
202,
12107,
309,
261,
4149,
10764,
18,
266,
591,
83,
311,
12,
14189,
538,
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,
2280,
467,
1435,
1216,
1185,
95,
202,
202,
20308,
9795,
10610,
293,
344,
323,
703,
467,
2945,
89,
395,
69,
16,
467,
2047,
1082,
380,
27596,
28507,
18882,
30,
1082,
380,
300,
288,
45,
18,
370,
33,
467,
2945,
89,
395,
69,
18,
370,
31,
289,
1082,
380,
300,
288,
45,
18,
370,
33,
467,
430,
18,
370,
31,
97,
5549,
202,
202,
1553,
279,
273,
394,
2280,
5621,
202,
202,
1553,
622,
86,
758,
5048,
273,
446,
31,
202,
202,
4149,
10764,
18,
31731,
5621,
202,
202,
430,
261,
4149,
10764,
18,
266,
591,
83,
311,
12,
14189,
538,
18,
56,
47,
5948,
43,
3719,
95,
1082,
202,
270,
86,
758,
5048,
273,
467,
2945,
2
] |
private static boolean findVirtualCubeJoinLevels(Query query)
|
private static boolean findVirtualCubeJoinLevels( Query query, Set baseCubesLevelToColumnMaps, Map measureMap)
|
private static boolean findVirtualCubeJoinLevels(Query query) { // Gather the unique set of level-to-column maps corresponding // to the underlying star/cube where the measure column // originates from. Set baseCubesLevelToColumnMaps = new HashSet(); Map measureMap = new HashMap(); Set measureMembers = query.getMeasuresMembers(); // if no measures are explicitly referenced, just use the default // measure if (measureMembers.isEmpty()) { Cube cube = query.getCube(); Dimension dimension = cube.getDimensions()[0]; query.addMeasuresMembers( dimension.getHierarchy().getDefaultMember()); } for (Iterator it = query.getMeasuresMembers().iterator(); it.hasNext(); ) { Member member = (Member) it.next(); if (member instanceof RolapStoredMeasure) { addMeasure( (RolapStoredMeasure) member, baseCubesLevelToColumnMaps, measureMap); } else if (member instanceof RolapCalculatedMember) { findMeasures( ((RolapCalculatedMember) member).getExpression(), baseCubesLevelToColumnMaps, measureMap); } } if (measureMap.isEmpty()) { return false; } query.setVirtualCubeBaseCubeMaps(baseCubesLevelToColumnMaps); query.setLevelMapToMeasureMap(measureMap); return true; }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/d3a4760811e233dcee2565507c51e47f8108ec02/SqlContextConstraint.java/clean/src/main/mondrian/rolap/SqlContextConstraint.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
1104,
6466,
39,
4895,
4572,
12240,
12,
2770,
843,
16,
1000,
1026,
39,
23317,
2355,
774,
1494,
8903,
16,
1635,
6649,
863,
13,
565,
288,
3639,
368,
25868,
326,
3089,
444,
434,
1801,
17,
869,
17,
2827,
7565,
4656,
3639,
368,
358,
326,
6808,
10443,
19,
21186,
1625,
326,
6649,
1057,
3639,
368,
4026,
815,
628,
18,
3639,
1000,
1026,
39,
23317,
2355,
774,
1494,
8903,
273,
394,
6847,
5621,
3639,
1635,
6649,
863,
273,
394,
4317,
5621,
3639,
1000,
6649,
6918,
273,
843,
18,
588,
23177,
1823,
6918,
5621,
3639,
368,
309,
1158,
22692,
854,
8122,
8042,
16,
2537,
999,
326,
805,
3639,
368,
6649,
3639,
309,
261,
10772,
6918,
18,
291,
1921,
10756,
288,
5411,
385,
4895,
18324,
273,
843,
18,
588,
39,
4895,
5621,
5411,
13037,
4968,
273,
18324,
18,
588,
10796,
1435,
63,
20,
15533,
5411,
843,
18,
1289,
23177,
1823,
6918,
12,
7734,
4968,
18,
588,
12074,
7675,
588,
1868,
4419,
10663,
3639,
289,
3639,
364,
261,
3198,
518,
273,
843,
18,
588,
23177,
1823,
6918,
7675,
9838,
5621,
5411,
518,
18,
5332,
2134,
5621,
262,
3639,
288,
5411,
8596,
3140,
273,
261,
4419,
13,
518,
18,
4285,
5621,
5411,
309,
261,
5990,
1276,
11714,
438,
18005,
7197,
13,
288,
7734,
527,
7197,
12,
10792,
261,
4984,
438,
18005,
7197,
13,
3140,
16,
10792,
1026,
39,
23317,
2355,
774,
1494,
8903,
16,
10792,
6649,
863,
1769,
5411,
289,
469,
309,
261,
5990,
1276,
11714,
438,
4844,
690,
4419,
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,
1250,
1104,
6466,
39,
4895,
4572,
12240,
12,
2770,
843,
16,
1000,
1026,
39,
23317,
2355,
774,
1494,
8903,
16,
1635,
6649,
863,
13,
565,
288,
3639,
368,
25868,
326,
3089,
444,
434,
1801,
17,
869,
17,
2827,
7565,
4656,
3639,
368,
358,
326,
6808,
10443,
19,
21186,
1625,
326,
6649,
1057,
3639,
368,
4026,
815,
628,
18,
3639,
1000,
1026,
39,
23317,
2355,
774,
1494,
8903,
273,
394,
6847,
5621,
3639,
1635,
6649,
863,
273,
394,
4317,
5621,
3639,
1000,
6649,
6918,
273,
843,
18,
588,
23177,
1823,
6918,
5621,
3639,
368,
309,
1158,
22692,
854,
8122,
8042,
16,
2537,
999,
326,
805,
3639,
368,
6649,
3639,
309,
261,
10772,
6918,
18,
291,
1921,
10756,
2
] |
data[0]=-4611686018427387912L;
|
data[0]=-35184372088840L;
|
private static final long[] mk_tokenSet_14() { long[] data = new long[2048]; data[0]=-4611686018427387912L; for (int i = 1; i<=1023; i++) { data[i]=-1L; } return data; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/bb9e62961cd54f3562f2a8e34ebe8f272b7123b5/XQueryLexer.java/buggy/src/org/exist/xquery/parser/XQueryLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
20982,
202,
1152,
760,
727,
1525,
8526,
5028,
67,
2316,
694,
67,
3461,
1435,
288,
6862,
6862,
202,
5748,
8526,
501,
273,
394,
1525,
63,
21573,
28,
15533,
6862,
6862,
202,
892,
63,
20,
65,
29711,
8749,
20562,
14181,
5193,
5324,
7414,
7235,
2138,
48,
31,
6862,
6862,
202,
1884,
261,
474,
277,
273,
404,
31,
277,
32,
33,
2163,
4366,
31,
277,
27245,
288,
501,
63,
77,
65,
29711,
21,
48,
31,
289,
6862,
6862,
202,
2463,
501,
31,
6862,
9506,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20982,
202,
1152,
760,
727,
1525,
8526,
5028,
67,
2316,
694,
67,
3461,
1435,
288,
6862,
6862,
202,
5748,
8526,
501,
273,
394,
1525,
63,
21573,
28,
15533,
6862,
6862,
202,
892,
63,
20,
65,
29711,
8749,
20562,
14181,
5193,
5324,
7414,
7235,
2138,
48,
31,
6862,
6862,
202,
1884,
261,
474,
277,
273,
404,
31,
277,
32,
33,
2163,
4366,
31,
277,
27245,
288,
501,
63,
77,
65,
29711,
21,
48,
31,
289,
6862,
6862,
202,
2463,
501,
31,
6862,
9506,
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
] |
return module;
|
CallbackFactory processCallbackFactory = runtime.callbackFactory(RubyProcess.class); CallbackFactory process_statusCallbackFactory = runtime.callbackFactory(RubyProcess.RubyStatus.class); process_status.defineMethod("to_i", process_statusCallbackFactory.getMethod("to_i")); process_status.defineMethod("to_s", process_statusCallbackFactory.getMethod("to_s")); process_status.defineMethod("inspect", process_statusCallbackFactory.getMethod("inspect")); process_status.defineMethod("exitstatus", process_statusCallbackFactory.getMethod("exitstatus")); process_status.defineMethod("success?", process_statusCallbackFactory.getMethod("success_p")); return process;
|
public static RubyModule createProcessModule(IRuby runtime) { RubyModule module = runtime.defineModule("Process"); return module; }
|
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/7574ed61fde73d6f1ec85da344318faa7cbfa488/RubyProcess.java/buggy/src/org/jruby/RubyProcess.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
3120,
752,
2227,
3120,
12,
7937,
10340,
3099,
13,
288,
3639,
19817,
3120,
1605,
273,
3099,
18,
11255,
3120,
2932,
2227,
8863,
3639,
8444,
1733,
1207,
2428,
1733,
273,
3099,
18,
3394,
1733,
12,
54,
10340,
2227,
18,
1106,
1769,
8444,
1733,
1207,
67,
2327,
2428,
1733,
273,
3099,
18,
3394,
1733,
12,
54,
10340,
2227,
18,
54,
10340,
1482,
18,
1106,
1769,
4766,
10402,
1207,
67,
2327,
18,
11255,
1305,
2932,
869,
67,
77,
3113,
1207,
67,
2327,
2428,
1733,
18,
588,
1305,
2932,
869,
67,
77,
7923,
1769,
225,
1207,
67,
2327,
18,
11255,
1305,
2932,
869,
67,
87,
3113,
1207,
67,
2327,
2428,
1733,
18,
588,
1305,
2932,
869,
67,
87,
7923,
1769,
1207,
67,
2327,
18,
11255,
1305,
2932,
12009,
3113,
1207,
67,
2327,
2428,
1733,
18,
588,
1305,
2932,
12009,
7923,
1769,
4202,
1207,
67,
2327,
18,
11255,
1305,
2932,
8593,
2327,
3113,
1207,
67,
2327,
2428,
1733,
18,
588,
1305,
2932,
8593,
2327,
7923,
1769,
1207,
67,
2327,
18,
11255,
1305,
2932,
4768,
35,
3113,
1207,
67,
2327,
2428,
1733,
18,
588,
1305,
2932,
4768,
67,
84,
7923,
1769,
282,
327,
1207,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
3120,
752,
2227,
3120,
12,
7937,
10340,
3099,
13,
288,
3639,
19817,
3120,
1605,
273,
3099,
18,
11255,
3120,
2932,
2227,
8863,
3639,
8444,
1733,
1207,
2428,
1733,
273,
3099,
18,
3394,
1733,
12,
54,
10340,
2227,
18,
1106,
1769,
8444,
1733,
1207,
67,
2327,
2428,
1733,
273,
3099,
18,
3394,
1733,
12,
54,
10340,
2227,
18,
54,
10340,
1482,
18,
1106,
1769,
4766,
10402,
1207,
67,
2327,
18,
11255,
1305,
2932,
869,
67,
77,
3113,
1207,
67,
2327,
2428,
1733,
18,
588,
1305,
2932,
869,
67,
77,
7923,
1769,
225,
1207,
67,
2327,
18,
11255,
1305,
2932,
869,
67,
87,
3113,
1207,
67,
2327,
2428,
1733,
18,
588,
1305,
2932,
869,
67,
87,
7923,
2
] |
String line = removeRoot ? currentLine : currentLine.replace("\\", "/");
|
String line = removeRoot ? currentLine : currentLine.replaceAll("\\", "/");
|
private static String getBinaryFilename(final String currentLine, final boolean removeRoot) { // want to make sure we only have / in end result. String line = removeRoot ? currentLine : currentLine.replace("\\", "/"); // HACK: See bug 18. if removeRoot==true, no - will be found because we // are calling for one specific file. final String octetStream = " - application/octet-stream"; // if is common binary file or identified as something other than text if (line.endsWith(octetStream) || line.lastIndexOf(" - text/") < 0 && line.lastIndexOf(" - text/") == line.lastIndexOf(" - ")) { line = line.substring(0, line.lastIndexOf(" - ")); if (removeRoot) { line = SvnInfoUtils.urlToRelativePath(line); } return line; } return null; }
|
48585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48585/613dd1ee659f7c2608ef1798f00921d17aa584cc/SvnPropgetUtils.java/buggy/statsvn/src/net/sf/statsvn/util/SvnPropgetUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
27149,
5359,
12,
6385,
514,
22325,
16,
727,
1250,
1206,
2375,
13,
288,
202,
202,
759,
2545,
358,
1221,
3071,
732,
1338,
1240,
342,
316,
679,
563,
18,
202,
202,
780,
980,
273,
1206,
2375,
692,
22325,
294,
22325,
18,
2079,
2932,
1695,
3113,
4016,
1769,
202,
202,
759,
670,
3649,
30,
2164,
7934,
6549,
18,
309,
1206,
2375,
631,
3767,
16,
1158,
300,
903,
506,
1392,
2724,
732,
202,
202,
759,
854,
4440,
364,
1245,
2923,
585,
18,
202,
202,
6385,
514,
22309,
1228,
273,
315,
300,
2521,
19,
17909,
17,
3256,
14432,
202,
202,
759,
309,
353,
2975,
3112,
585,
578,
9283,
487,
5943,
1308,
2353,
977,
202,
202,
430,
261,
1369,
18,
5839,
1190,
12,
17909,
1228,
13,
747,
980,
18,
2722,
31985,
2932,
300,
977,
4898,
13,
411,
374,
597,
980,
18,
2722,
31985,
2932,
300,
977,
4898,
13,
422,
980,
18,
2722,
31985,
2932,
300,
315,
3719,
288,
1082,
202,
1369,
273,
980,
18,
28023,
12,
20,
16,
980,
18,
2722,
31985,
2932,
300,
9369,
1769,
1082,
202,
430,
261,
4479,
2375,
13,
288,
9506,
202,
1369,
273,
348,
25031,
966,
1989,
18,
718,
774,
16519,
12,
1369,
1769,
1082,
202,
97,
1082,
202,
2463,
980,
31,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
27149,
5359,
12,
6385,
514,
22325,
16,
727,
1250,
1206,
2375,
13,
288,
202,
202,
759,
2545,
358,
1221,
3071,
732,
1338,
1240,
342,
316,
679,
563,
18,
202,
202,
780,
980,
273,
1206,
2375,
692,
22325,
294,
22325,
18,
2079,
2932,
1695,
3113,
4016,
1769,
202,
202,
759,
670,
3649,
30,
2164,
7934,
6549,
18,
309,
1206,
2375,
631,
3767,
16,
1158,
300,
903,
506,
1392,
2724,
732,
202,
202,
759,
854,
4440,
364,
1245,
2923,
585,
18,
202,
202,
6385,
514,
22309,
1228,
273,
315,
300,
2521,
19,
17909,
17,
3256,
14432,
202,
202,
759,
309,
353,
2975,
3112,
585,
578,
9283,
487,
5943,
1308,
2353,
977,
202,
202,
430,
261,
1369,
2
] |
(bookComponent.curPage()).addTextRect(numCols);
|
public void createTextRect(int numCols) { //Create a textrect on the bodypage with these dimensions //This default behaviour will later be changed to reflect on //the master-page (bookComponent.curPage()).addTextRect(numCols); // Then create a textflow corresponding to this textrect curFlow=new TextFlow(); bookComponent.textFlows.addElement(curFlow); }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/cd264ba6a67a155375a4ba85cdb6dc35503ef593/MIFDocument.java/buggy/src/org/apache/fop/mif/MIFDocument.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
261,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
261,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
261,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
1071,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
918,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
752,
1528,
6120,
12,
474,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
15243,
21433,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
288,
1082,
202,
759,
1684,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
279,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
977,
2607,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
603,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
326,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
324,
369,
879,
410,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
598,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
4259,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
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,
261,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
261,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
261,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
1071,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
918,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
752,
1528,
6120,
12,
474,
12,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
15243,
21433,
3618,
1841,
18,
1397,
1964,
1435,
2934,
1289,
1528,
6120,
12,
2107,
8011,
1769,
288,
1082,
202,
759,
1684,
12,
2
] |
|
ArrayList nodes = domDb.findKeys(idx); Value ref; for (Iterator i = nodes.iterator(); i.hasNext();) { ref = (Value) i.next(); domDb.removeValue(ref); }
|
domDb.remove(idx, null);
|
public void removeDocument(User user, String docName) throws PermissionDeniedException { if (readOnly) throw new PermissionDeniedException("database is read-only"); try { if (!docName.startsWith("/")) docName = '/' + docName; final DocumentImpl doc = (DocumentImpl) getDocument(docName); if (doc == null) { LOG.debug("document " + docName + " not found"); return; } if (!doc.getCollection().getPermissions().validate(user, Permission.WRITE)) throw new PermissionDeniedException( "write access to collection denied; user=" + user.getName()); if (!doc.getPermissions().validate(user, Permission.WRITE)) throw new PermissionDeniedException("permission to remove document denied"); LOG.info("removing document " + doc.getDocId() + "..."); // remove document synchronized (collections) { synchronized (collectionsDb) { Collection collection = doc.getCollection(); collection.removeDocument(docName); saveCollection(collection); collectionsDb.flush(); //collections.remove(collection); } } // drop element-index short collectionId = doc.getCollection().getId(); Value ref = new ElementValue(collectionId); IndexQuery query = new IndexQuery(null, IndexQuery.TRUNC_RIGHT, ref); Lock lock = elementsDb.getLock(); try { lock.acquire(this, Lock.WRITE_LOCK); lock.enter(this); ArrayList elements = elementsDb.findKeys(query); LOG.debug("found " + elements.size() + " elements."); Value key; Value value; byte[] data; byte[] ndata; VariableByteInputStream is; VariableByteOutputStream os; int len; int docId; long delta; int page; int tid; boolean changed; for (int i = 0; i < elements.size(); i++) { key = (Value) elements.get(i); value = elementsDb.get(key); data = value.getData(); is = new VariableByteInputStream(data); os = new VariableByteOutputStream(); changed = false; try { while (is.available() > 0) { docId = is.readInt(); len = is.readInt(); if (docId != doc.getDocId()) { // copy data to new buffer os.writeInt(docId); os.writeInt(len); for (int j = 0; j < len; j++) { delta = is.readLong(); page = is.readInt(); tid = is.readInt(); os.writeLong(delta); os.writeInt(page); os.writeInt(tid); } } else { changed = true; // skip for (int j = 0; j < len; j++) { is.readLong(); is.readInt(); is.readInt(); } } } } catch (EOFException e) { LOG.debug("eof: " + is.available()); } if (changed) { ndata = os.toByteArray(); if (elementsDb.put(key, ndata) < 0) LOG.debug("could not save element"); } } } catch (LockException e) { LOG.warn("could not acquire lock on elements", e); } finally { lock.release(this); } elementPool.clear(); ((NativeTextEngine) textEngine).removeDocument(doc); new DOMTransaction(this, domDb) { public Object start() { NodeList children = doc.getChildNodes(); NodeImpl node; for (int i = 0; i < children.getLength(); i++) { node = (NodeImpl) children.item(i); Iterator j = getDOMIterator(doc, node.getGID()); removeNodes(j); } domDb.remove(doc.getAddress()); return null; } } .run(); ref = new NodeRef(doc.getDocId()); final IndexQuery idx = new IndexQuery(null, IndexQuery.TRUNC_RIGHT, ref); new DOMTransaction(this, domDb) { public Object start() { try { ArrayList nodes = domDb.findKeys(idx); Value ref; for (Iterator i = nodes.iterator(); i.hasNext();) { ref = (Value) i.next(); domDb.removeValue(ref); } domDb.flush(); } catch (BTreeException e) { LOG.warn("error while removing doc", e); } catch (DBException e) { LOG.warn("error while removing doc", e); } catch (IOException e) { LOG.warn("error while removing doc", e); } return null; } } .run(); LOG.info("removed document."); } catch (IOException ioe) { ioe.printStackTrace(); LOG.warn(ioe); } catch (BTreeException bte) { bte.printStackTrace(); LOG.warn(bte); } catch (DBException dbe) { LOG.warn(dbe); } catch (ReadOnlyException e) { LOG.warn("database is read-only"); } }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1c0cc42431436631d1b2e9ea8af63bb6dd883496/NativeBroker.java/clean/src/org/exist/storage/NativeBroker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
2519,
12,
1299,
729,
16,
514,
997,
461,
13,
1216,
8509,
15877,
288,
202,
202,
430,
261,
896,
3386,
13,
1082,
202,
12849,
394,
8509,
15877,
2932,
6231,
353,
855,
17,
3700,
8863,
202,
202,
698,
288,
1082,
202,
430,
16051,
2434,
461,
18,
17514,
1190,
2932,
4898,
3719,
9506,
202,
2434,
461,
273,
2023,
397,
997,
461,
31,
1082,
202,
6385,
4319,
2828,
997,
273,
261,
2519,
2828,
13,
9956,
12,
2434,
461,
1769,
1082,
202,
430,
261,
2434,
422,
446,
13,
288,
9506,
202,
4842,
18,
4148,
2932,
5457,
315,
397,
997,
461,
397,
315,
486,
1392,
8863,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
430,
16051,
2434,
18,
588,
2532,
7675,
588,
6521,
7675,
5662,
12,
1355,
16,
8509,
18,
11677,
3719,
9506,
202,
12849,
394,
8509,
15877,
12,
6862,
202,
6,
2626,
2006,
358,
1849,
15338,
31,
729,
1546,
397,
729,
18,
17994,
10663,
1082,
202,
430,
16051,
2434,
18,
588,
6521,
7675,
5662,
12,
1355,
16,
8509,
18,
11677,
3719,
9506,
202,
12849,
394,
8509,
15877,
2932,
9827,
358,
1206,
1668,
15338,
8863,
1082,
202,
4842,
18,
1376,
2932,
2764,
13767,
1668,
315,
397,
997,
18,
588,
1759,
548,
1435,
397,
26456,
1769,
1082,
202,
759,
1206,
1668,
1082,
202,
22043,
261,
19246,
13,
288,
9506,
202,
22043,
261,
19246,
4331,
13,
288,
6862,
202,
2532,
1849,
273,
997,
18,
588,
2532,
5621,
6862,
202,
5548,
18,
4479,
2519,
12,
2434,
461,
1769,
6862,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
2519,
12,
1299,
729,
16,
514,
997,
461,
13,
1216,
8509,
15877,
288,
202,
202,
430,
261,
896,
3386,
13,
1082,
202,
12849,
394,
8509,
15877,
2932,
6231,
353,
855,
17,
3700,
8863,
202,
202,
698,
288,
1082,
202,
430,
16051,
2434,
461,
18,
17514,
1190,
2932,
4898,
3719,
9506,
202,
2434,
461,
273,
2023,
397,
997,
461,
31,
1082,
202,
6385,
4319,
2828,
997,
273,
261,
2519,
2828,
13,
9956,
12,
2434,
461,
1769,
1082,
202,
430,
261,
2434,
422,
446,
13,
288,
9506,
202,
4842,
18,
4148,
2932,
5457,
315,
397,
997,
461,
397,
315,
486,
1392,
8863,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
430,
16051,
2434,
18,
588,
2
] |
String left; String right; Object middle;
|
private static String evaluateFileNameMapping( String expression, Artifact artifact ) throws MojoExecutionException { // this matches the last ${...} string Pattern pat = Pattern.compile( "^(.*)\\$\\{([^\\}]+)\\}(.*)$" ); Matcher mat = pat.matcher( expression ); String left; String right; Object middle; if ( mat.matches() ) { left = evaluateFileNameMapping( mat.group( 1 ), artifact ); try { middle = ReflectionValueExtractor.evaluate( "dep." + mat.group( 2 ), artifact ); } catch ( Exception e ) { throw new MojoExecutionException( "Cannot evaluate filenameMapping", e ); } right = mat.group( 3 ); if ( middle == null ) { // TODO: There should be a more generic way dealing with that. Having magic words is not good at all. // probe for magic word if ( "extension".equals( mat.group( 2 ).trim() ) ) { ArtifactHandler artifactHandler = artifact.getArtifactHandler(); middle = artifactHandler.getExtension(); } else { middle = "${" + mat.group( 2 ) + "}"; } } return left + middle + right; } return expression; }
|
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/33616fdd90d6932e0bbea80cc483a58efc714607/AbstractAssemblyMojo.java/buggy/maven-assembly-plugin/src/main/java/org/apache/maven/plugin/assembly/AbstractAssemblyMojo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
5956,
4771,
3233,
12,
514,
2652,
16,
14022,
6462,
262,
3639,
1216,
18780,
565,
288,
3639,
368,
333,
1885,
326,
1142,
3531,
2777,
97,
533,
3639,
6830,
9670,
273,
6830,
18,
11100,
12,
15017,
14361,
1695,
8,
1695,
95,
8178,
1695,
97,
7941,
1695,
97,
14361,
12911,
11272,
3639,
9757,
4834,
273,
9670,
18,
22761,
12,
2652,
11272,
3639,
514,
2002,
31,
3639,
514,
2145,
31,
3639,
1033,
7689,
31,
3639,
309,
261,
4834,
18,
8436,
1435,
262,
3639,
288,
5411,
2002,
273,
5956,
4771,
3233,
12,
4834,
18,
1655,
12,
404,
262,
16,
6462,
11272,
5411,
775,
5411,
288,
7734,
7689,
273,
5685,
620,
10958,
18,
21024,
12,
315,
15037,
1199,
397,
4834,
18,
1655,
12,
576,
262,
16,
6462,
11272,
5411,
289,
5411,
1044,
261,
1185,
425,
262,
5411,
288,
7734,
604,
394,
18780,
12,
315,
4515,
5956,
1544,
3233,
3113,
425,
11272,
5411,
289,
5411,
2145,
273,
4834,
18,
1655,
12,
890,
11272,
5411,
309,
261,
7689,
422,
446,
262,
5411,
288,
7734,
368,
2660,
30,
6149,
1410,
506,
279,
1898,
5210,
4031,
21964,
598,
716,
18,
670,
5339,
8146,
4511,
353,
486,
7494,
622,
777,
18,
7734,
368,
10695,
364,
8146,
2076,
7734,
309,
261,
315,
6447,
9654,
14963,
12,
4834,
18,
1655,
12,
576,
262,
18,
5290,
1435,
262,
262,
7734,
288,
10792,
14022,
1503,
6462,
1503,
273,
6462,
18,
588,
7581,
1503,
5621,
10792,
7689,
273,
6462,
1503,
18,
588,
3625,
5621,
7734,
289,
7734,
469,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
5956,
4771,
3233,
12,
514,
2652,
16,
14022,
6462,
262,
3639,
1216,
18780,
565,
288,
3639,
368,
333,
1885,
326,
1142,
3531,
2777,
97,
533,
3639,
6830,
9670,
273,
6830,
18,
11100,
12,
15017,
14361,
1695,
8,
1695,
95,
8178,
1695,
97,
7941,
1695,
97,
14361,
12911,
11272,
3639,
9757,
4834,
273,
9670,
18,
22761,
12,
2652,
11272,
3639,
514,
2002,
31,
3639,
514,
2145,
31,
3639,
1033,
7689,
31,
3639,
309,
261,
4834,
18,
8436,
1435,
262,
3639,
288,
5411,
2002,
273,
5956,
4771,
3233,
12,
4834,
18,
1655,
12,
404,
262,
16,
6462,
11272,
5411,
775,
5411,
288,
7734,
7689,
273,
5685,
620,
10958,
18,
21024,
12,
315,
15037,
1199,
397,
4834,
18,
2
] |
|
/* 60s and 7s and 9s */ tokenToWords(tokenVal.substring(0, tokenLength - 1)); wordRelation.addWord("'s"); } else if (tokenVal.indexOf('\'') != -1) { postropheToWords(tokenVal); } else if (matches(digitsSlashDigitsPattern, tokenVal) && tokenVal.equals(itemName)) {
|
} else if (tokenVal.equals("Mr")) {
|
private void tokenToWords(String tokenVal) { FeatureSet tokenFeatures = tokenItem.getFeatures(); String itemName = tokenFeatures.getString("name"); int tokenLength = tokenVal.length(); if (tokenFeatures.isPresent("phones")) { wordRelation.addWord(tokenVal); } else if ((tokenVal.equals("a") || tokenVal.equals("A")) && ((tokenItem.getNext() == null) || !(tokenVal.equals(itemName)) || !(((String) tokenItem.findFeature("punc")).equals("")))) { /* if A is a sub part of a token, then its ey not ah */ wordRelation.addWord("_a"); } else if (matches(alphabetPattern, tokenVal)) { if (matches(romanNumbersPattern, tokenVal)) { /* XVIII */ romanToWords(tokenVal); } else if (matches(illionPattern, tokenVal) && matches(usMoneyPattern, (String) tokenItem.findFeature("p.name"))) { /* $ X -illion */ wordRelation.addWord(tokenVal); wordRelation.addWord("dollars"); } else if (matches(drStPattern, tokenVal)) { /* St Andrew's St, Dr King Dr */ drStToWords(tokenVal); } else if (tokenVal.equals("Mr")) { tokenItem.getFeatures().setString("punc", ""); wordRelation.addWord("mister"); } else if (tokenVal.equals("Mrs")) { tokenItem.getFeatures().setString("punc", ""); wordRelation.addWord("missus"); } else if (tokenLength == 1 && isUppercaseLetter(tokenVal.charAt(0)) && ((String)tokenItem.findFeature("n.whitespace")).equals(" ") && isUppercaseLetter (((String) tokenItem.findFeature("n.name")).charAt(0))) { tokenFeatures.setString("punc", ""); String aaa = tokenVal.toLowerCase(); if (aaa.equals("a")) { wordRelation.addWord("_a"); } else { wordRelation.addWord(aaa); } } else if (isStateName(tokenVal)) { /* The name of a US state isStateName() has already added the full name of the state, so we're all set. */ } else if (tokenLength > 1 && !isPronounceable(tokenVal)) { /* Need common exception list */ /* unpronouncable list of alphas */ NumberExpander.expandLetters (tokenVal, wordRelation); } else { /* just a word */ wordRelation.addWord(tokenVal.toLowerCase()); } } else if (matches(dottedAbbrevPattern, tokenVal)) { /* U.S.A. */ // remove all dots String aaa = Utilities.deleteChar(tokenVal, '.'); NumberExpander.expandLetters(aaa, wordRelation); } else if (matches(commaIntPattern, tokenVal)) { /* 99,999,999 */ String aaa = Utilities.deleteChar(tokenVal, ','); NumberExpander.expandReal(aaa, wordRelation); } else if (matches(sevenPhoneNumberPattern, tokenVal)) { /* 234-3434 telephone numbers */ int dashIndex = tokenVal.indexOf('-'); String aaa = tokenVal.substring(0, dashIndex); String bbb = tokenVal.substring(dashIndex+1); NumberExpander.expandDigits(aaa, wordRelation); wordRelation.addBreak(); NumberExpander.expandDigits(bbb, wordRelation); } else if (matchesPartPhoneNumber(tokenVal)) { /* part of a telephone number */ String punctuation = (String) tokenItem.findFeature("punc"); if (punctuation.equals("")) { tokenItem.getFeatures().setString("punc", ","); } NumberExpander.expandDigits(tokenVal, wordRelation); wordRelation.addBreak(); } else if (matches(numberTimePattern, tokenVal)) { /* 12:35 */ int colonIndex = tokenVal.indexOf(':'); String aaa = tokenVal.substring(0, colonIndex); String bbb = tokenVal.substring(colonIndex+1); NumberExpander.expandNumber(aaa, wordRelation); if (!(bbb.equals("00"))) { NumberExpander.expandID(bbb, wordRelation); } } else if (matches(digits2DashPattern, tokenVal)) { /* 999-999-999 */ digitsDashToWords(tokenVal); } else if (matches(digitsPattern, tokenVal)) { digitsToWords(tokenVal); } else if (tokenLength == 1 && isUppercaseLetter(tokenVal.charAt(0)) && ((String)tokenItem.findFeature("n.whitespace")).equals (" ") && isUppercaseLetter (((String) tokenItem.findFeature("n.name")).charAt(0))) { tokenFeatures.setString("punc", ""); String aaa = tokenVal.toLowerCase(); if (aaa.equals("a")) { wordRelation.addWord("_a"); } else { wordRelation.addWord(aaa); } } else if (matches(doublePattern, tokenVal)) { NumberExpander.expandReal(tokenVal, wordRelation); } else if (matches(ordinalPattern, tokenVal)) { /* explicit ordinals */ String aaa = tokenVal.substring(0, tokenLength - 2); NumberExpander.expandOrdinal(aaa, wordRelation); } else if (matches(usMoneyPattern, tokenVal)) { /* US money */ usMoneyToWords(tokenVal); } else if (tokenLength > 0 && tokenVal.charAt(tokenLength - 1) == '%') { /* Y% */ tokenToWords(tokenVal.substring(0, tokenLength - 1)); wordRelation.addWord("per"); wordRelation.addWord("cent"); } else if (matches(numessPattern, tokenVal)) { /* 60s and 7s and 9s */ tokenToWords(tokenVal.substring(0, tokenLength - 1)); wordRelation.addWord("'s"); } else if (tokenVal.indexOf('\'') != -1) { postropheToWords(tokenVal); } else if (matches(digitsSlashDigitsPattern, tokenVal) && tokenVal.equals(itemName)) { digitsSlashDigitsToWords(tokenVal); } else if (tokenVal.indexOf('-') != -1) { dashToWords(tokenVal); } else if (tokenLength > 1 && !matches(alphabetPattern, tokenVal)) { notJustAlphasToWords(tokenVal); } else { /* just a word */ wordRelation.addWord(tokenVal.toLowerCase()); } }
|
24259 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24259/6a55df45b5e749262e5610405145a505d38c6c9e/TokenToWords.java/clean/java/de/dfki/lt/mary/modules/en/TokenToWords.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1147,
774,
7363,
12,
780,
1147,
3053,
13,
288,
3639,
202,
4595,
694,
1147,
8696,
273,
1147,
1180,
18,
588,
8696,
5621,
202,
780,
23488,
273,
1147,
8696,
18,
588,
780,
2932,
529,
8863,
202,
474,
1147,
1782,
273,
1147,
3053,
18,
2469,
5621,
202,
430,
261,
2316,
8696,
18,
291,
6351,
2932,
844,
5322,
6,
3719,
288,
202,
565,
2076,
3963,
18,
1289,
3944,
12,
2316,
3053,
1769,
202,
97,
469,
309,
14015,
2316,
3053,
18,
14963,
2932,
69,
7923,
747,
1147,
3053,
18,
14963,
2932,
37,
6,
3719,
597,
7734,
14015,
2316,
1180,
18,
588,
2134,
1435,
422,
446,
13,
747,
1171,
401,
12,
2316,
3053,
18,
14963,
12,
1726,
461,
3719,
747,
1171,
401,
12443,
12,
780,
13,
1147,
1180,
18,
4720,
4595,
2932,
84,
551,
7923,
2934,
14963,
2932,
6,
3719,
3719,
288,
202,
565,
1748,
309,
432,
353,
279,
720,
1087,
434,
279,
1147,
16,
1508,
2097,
12739,
486,
279,
76,
1195,
202,
565,
2076,
3963,
18,
1289,
3944,
2932,
67,
69,
8863,
202,
97,
469,
309,
261,
8436,
12,
287,
8907,
3234,
16,
1147,
3053,
3719,
288,
202,
565,
202,
565,
309,
261,
8436,
12,
520,
304,
10072,
3234,
16,
1147,
3053,
3719,
288,
9506,
202,
20308,
1139,
4136,
6954,
1195,
202,
202,
520,
304,
774,
7363,
12,
2316,
3053,
1769,
9506,
565,
289,
469,
309,
261,
8436,
12,
737,
285,
3234,
16,
1147,
3053,
13,
597,
1082,
4202,
1885,
12,
407,
23091,
3234,
16,
4697,
4202,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1147,
774,
7363,
12,
780,
1147,
3053,
13,
288,
3639,
202,
4595,
694,
1147,
8696,
273,
1147,
1180,
18,
588,
8696,
5621,
202,
780,
23488,
273,
1147,
8696,
18,
588,
780,
2932,
529,
8863,
202,
474,
1147,
1782,
273,
1147,
3053,
18,
2469,
5621,
202,
430,
261,
2316,
8696,
18,
291,
6351,
2932,
844,
5322,
6,
3719,
288,
202,
565,
2076,
3963,
18,
1289,
3944,
12,
2316,
3053,
1769,
202,
97,
469,
309,
14015,
2316,
3053,
18,
14963,
2932,
69,
7923,
747,
1147,
3053,
18,
14963,
2932,
37,
6,
3719,
597,
7734,
14015,
2316,
1180,
18,
588,
2134,
1435,
422,
446,
13,
747,
1171,
401,
12,
2316,
3053,
18,
14963,
12,
1726,
461,
3719,
747,
1171,
2
] |
m_mainClass = s;
|
m_mainClass= s;
|
public void setSuiteRunnerClass(String s) { m_mainClass = s; }
|
46166 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46166/75c0741cfb0fc75ef79c70ec78da0a1cd8144089/TestNGAntTask.java/clean/src/main/org/testng/TestNGAntTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
13587,
9709,
797,
12,
780,
272,
13,
288,
565,
312,
67,
5254,
797,
33,
272,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
13587,
9709,
797,
12,
780,
272,
13,
288,
565,
312,
67,
5254,
797,
33,
272,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
myRootCell.updateView(); relayout();
|
if (peekKeyboardHandler().processKeyPressed(getContext(), keyEvent) == true) { keyEvent.consume(); return;
|
public void run() { myRootCell.updateView(); relayout(); }
|
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/54b1d47a6e7dfabb6b52a0f5b2d47c5bd2bbfcab/AbstractEditorComponent.java/buggy/source/jetbrains/mps/nodeEditor/AbstractEditorComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
1850,
3399,
2375,
4020,
18,
2725,
1767,
5621,
1850,
1279,
2012,
5621,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1086,
1435,
288,
1850,
3399,
2375,
4020,
18,
2725,
1767,
5621,
1850,
1279,
2012,
5621,
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,
-100,
-100,
-100,
-100,
-100
] |
int dataIndex ) throws ChartException
|
int dataIndex, double dScale ) throws ChartException
|
protected final void renderLegendItem( IPrimitiveRenderer ipr, Legend lg, Label la, Label valueLa, double dX, double dY, double dW, double dItemHeight, double dFullHeight, double dExtraHeight, double dColumnWidth, double dLeftInset, double dHorizontalSpacing, Series se, Fill fPaletteEntry, LegendItemRenderingHints lirh, int dataIndex ) throws ChartException { LegendEntryRenderingHints lerh = new LegendEntryRenderingHints( la, valueLa, dataIndex, fPaletteEntry ); ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); // TODO replace with LegendEntryRenderingHints ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_LEGEND_ENTRY, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_LEGEND_ENTRY, la ); final Bounds bo = lirh.getLegendGraphicBounds( ); if ( isRightToLeft( ) ) { bo.setLeft( dX + dColumnWidth - dLeftInset - 1 - 3 * dItemHeight / 2 ); } else { bo.setLeft( dX + dLeftInset + 1 ); } bo.setTop( dY + 1 + ( dFullHeight - dItemHeight ) / 2 ); bo.setWidth( 3 * dItemHeight / 2 ); bo.setHeight( dItemHeight - 2 ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_LEGEND_ITEM, lerh, bo, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_LEGEND_ITEM, lerh ); final BaseRenderer br = lirh.getRenderer( ); br.renderLegendGraphic( ipr, lg, fPaletteEntry, bo ); final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ir ).getEventObject( StructureSource.createLegend( lg ), TextRenderEvent.class ); double dLaAngle = la.getCaption( ).getFont( ).getRotation( ); if ( isRightToLeft( ) ) { dLaAngle = -dLaAngle; } double dDeltaHeight = 0; if ( dLaAngle > 0 && dLaAngle < 90 ) { dDeltaHeight = ( bo.getHeight( ) + dFullHeight - dItemHeight ) / 2; } else if ( dLaAngle < 0 && dLaAngle > -90 ) { dDeltaHeight = ( bo.getHeight( ) - dFullHeight + dItemHeight ) / 2; } else if ( dLaAngle == 0 || dLaAngle == 90 || dLaAngle == -90 ) { dDeltaHeight = bo.getHeight( ) / 2; } if ( isRightToLeft( ) ) { tre.setLocation( LocationImpl.create( dX + dColumnWidth - dLeftInset - 3 * dItemHeight / 2 - dHorizontalSpacing, bo.getTop( ) + dDeltaHeight ) ); tre.setTextPosition( TextRenderEvent.LEFT ); } else { tre.setLocation( LocationImpl.create( dX + dLeftInset + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing, bo.getTop( ) + dDeltaHeight ) ); tre.setTextPosition( TextRenderEvent.RIGHT ); } if ( la.isVisible( ) ) { tre.setLabel( la ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } if ( valueLa != null ) { Location[] loaBack = new Location[4]; final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ir ).getEventObject( StructureSource.createLegend( lg ), PolygonRenderEvent.class ); pre.setBackground( valueLa.getBackground( ) ); pre.setOutline( valueLa.getOutline( ) ); pre.setPoints( loaBack ); final double dValueWidth = dColumnWidth - 2 * dLeftInset; loaBack[0] = LocationImpl.create( dX + dLeftInset + 1, dY + dFullHeight + 1 ); loaBack[1] = LocationImpl.create( dX + dLeftInset + 1, dY + dFullHeight + dExtraHeight ); loaBack[2] = LocationImpl.create( dX + dLeftInset + dValueWidth, dY + dFullHeight + dExtraHeight ); loaBack[3] = LocationImpl.create( dX + dLeftInset + dValueWidth, dY + dFullHeight + 1 ); ipr.fillPolygon( pre ); ipr.drawPolygon( pre ); Label tmpLa = LabelImpl.copyInstance( valueLa ); tmpLa.setOutline( null ); tmpLa.setBackground( null ); TextAlignment ta = TextAlignmentImpl.create( ); ta.setHorizontalAlignment( HorizontalAlignment.CENTER_LITERAL ); ta.setVerticalAlignment( VerticalAlignment.CENTER_LITERAL ); tre.setBlockAlignment( ta ); tre.setBlockBounds( BoundsImpl.create( dX + dLeftInset + 1, dY + dFullHeight + 1, dValueWidth - 2, dExtraHeight - 1 ) ); tre.setLabel( tmpLa ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } if ( isInteractivityEnabled( ) ) { // PROCESS 'SERIES LEVEL' TRIGGERS USING SOURCE='bs' Trigger tg; EList elTriggers = lg.getTriggers( ); Location[] loaHotspot = new Location[4]; // use the complete legend item area as the hotspot loaHotspot[0] = LocationImpl.create( dX + 1, dY + 1 ); loaHotspot[1] = LocationImpl.create( dX + dColumnWidth - 1, dY + 1 ); loaHotspot[2] = LocationImpl.create( dX + dColumnWidth - 1, dY + dFullHeight + dExtraHeight - 1 ); loaHotspot[3] = LocationImpl.create( dX + 1, dY + dFullHeight + dExtraHeight - 1 ); Trigger buildinTg = null; if ( cm.getInteractivity( ) != null ) { boolean customed = false; switch ( cm.getInteractivity( ).getLegendBehavior( ).getValue( ) ) { case LegendBehaviorType.HIGHLIGHT_SERIE : for ( Iterator itr = elTriggers.iterator( ); itr.hasNext( ); ) { tg = (Trigger) itr.next( ); if ( tg.getCondition( ) == TriggerCondition.ONCLICK_LITERAL || tg.getAction( ).getType( ) == ActionType.HIGHLIGHT_LITERAL ) { customed = true; } } if ( !customed ) { buildinTg = TriggerImpl.create( TriggerCondition.ONCLICK_LITERAL, ActionImpl.create( ActionType.HIGHLIGHT_LITERAL, SeriesValueImpl.create( String.valueOf( se.getSeriesIdentifier( ) ) ) ) ); } break; case LegendBehaviorType.TOGGLE_SERIE_VISIBILITY : for ( Iterator itr = elTriggers.iterator( ); itr.hasNext( ); ) { tg = (Trigger) itr.next( ); if ( tg.getCondition( ) == TriggerCondition.ONCLICK_LITERAL || tg.getAction( ).getType( ) == ActionType.TOGGLE_VISIBILITY_LITERAL ) { customed = true; } } if ( !customed ) { buildinTg = TriggerImpl.create( TriggerCondition.ONCLICK_LITERAL, ActionImpl.create( ActionType.TOGGLE_VISIBILITY_LITERAL, SeriesValueImpl.create( String.valueOf( se.getSeriesIdentifier( ) ) ) ) ); } break; case LegendBehaviorType.NONE : break; } } if ( !elTriggers.isEmpty( ) || buildinTg != null ) { final StructureSource source; if ( this.cm.getLegend( ).getItemType( ) == LegendItemType.CATEGORIES_LITERAL ) { final DataPointHints dph = new DataPointHints( la, null, null, null, null, null, null, null, null, dataIndex, null, 0, null ); source = WrappedStructureSource.createSeriesDataPoint( se, dph ); } else { source = StructureSource.createSeries( se ); } final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( source, InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, WrappedStructureSource.createLegendEntry( lg, lerh ) ); iev.addTrigger( tg ); } if ( buildinTg != null ) { processTrigger( buildinTg, WrappedStructureSource.createLegendEntry( lg, lerh ) ); iev.addTrigger( buildinTg ); } final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( source, PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_LEGEND_ITEM, lerh, bo, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_LEGEND_ITEM, lerh ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_LEGEND_ENTRY, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_LEGEND_ENTRY, la ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/876515bf3ac088d138efb4fbd339e6e7ecefb62f/BaseRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
1743,
16812,
1180,
12,
467,
9840,
6747,
277,
683,
16,
17167,
409,
15266,
16,
1082,
202,
2224,
7125,
16,
5287,
460,
30745,
16,
1645,
302,
60,
16,
1645,
302,
61,
16,
1645,
302,
59,
16,
1082,
202,
9056,
302,
1180,
2686,
16,
1645,
302,
5080,
2686,
16,
1645,
302,
7800,
2686,
16,
1082,
202,
9056,
302,
1494,
2384,
16,
1645,
302,
3910,
382,
542,
16,
1645,
302,
14457,
18006,
16,
1082,
202,
6485,
695,
16,
14192,
284,
25863,
1622,
16,
17167,
409,
1180,
14261,
13368,
328,
481,
76,
16,
1082,
202,
474,
501,
1016,
262,
1216,
14804,
503,
202,
95,
202,
202,
16812,
1622,
14261,
13368,
328,
264,
76,
273,
394,
17167,
409,
1622,
14261,
13368,
12,
7125,
16,
9506,
202,
1132,
30745,
16,
9506,
202,
892,
1016,
16,
9506,
202,
74,
25863,
1622,
11272,
202,
202,
3651,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
1503,
12,
11272,
202,
202,
759,
2660,
1453,
598,
17167,
409,
1622,
14261,
13368,
202,
202,
3651,
1503,
18,
1991,
2083,
12,
699,
16,
9506,
202,
3651,
1503,
18,
19152,
67,
40,
10821,
67,
19384,
4415,
67,
19083,
16,
9506,
202,
11821,
16,
9506,
202,
588,
1997,
950,
1042,
12,
262,
18,
588,
3651,
1042,
12,
262,
11272,
202,
202,
588,
1997,
950,
1042,
12,
262,
18,
12336,
6999,
3043,
12,
467,
6999,
1852,
2223,
18,
19152,
67,
40,
10821,
67,
19384,
4415,
67,
19083,
16,
9506,
202,
11821,
11272,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
1743,
16812,
1180,
12,
467,
9840,
6747,
277,
683,
16,
17167,
409,
15266,
16,
1082,
202,
2224,
7125,
16,
5287,
460,
30745,
16,
1645,
302,
60,
16,
1645,
302,
61,
16,
1645,
302,
59,
16,
1082,
202,
9056,
302,
1180,
2686,
16,
1645,
302,
5080,
2686,
16,
1645,
302,
7800,
2686,
16,
1082,
202,
9056,
302,
1494,
2384,
16,
1645,
302,
3910,
382,
542,
16,
1645,
302,
14457,
18006,
16,
1082,
202,
6485,
695,
16,
14192,
284,
25863,
1622,
16,
17167,
409,
1180,
14261,
13368,
328,
481,
76,
16,
1082,
202,
474,
501,
1016,
262,
1216,
14804,
503,
202,
95,
202,
202,
16812,
1622,
14261,
13368,
328,
264,
76,
273,
394,
17167,
409,
1622,
2
] |
for (int i = 0; i < tab; i++) super.print("\t");
|
private void printTabulation() { for (int i = 0; i < tab; i++) super.print("\t"); //$NON-NLS-1$ }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1bea1ad8a7a01dfced059d4608b3a11a4861d966/XMLMemento.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/XMLMemento.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
1152,
918,
1172,
5661,
6234,
1435,
288,
377,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3246,
31,
277,
27245,
377,
1082,
202,
9565,
18,
1188,
31458,
88,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
377,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
1152,
918,
1172,
5661,
6234,
1435,
288,
377,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3246,
31,
277,
27245,
377,
1082,
202,
9565,
18,
1188,
31458,
88,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
377,
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
] |
|
Element projectElement = new Element("project");
|
Element projectElement = new Element(TAGNAME_FOLDERNAME);
|
public Element toElement(DateFormat formatter) { Element modificationElement = new Element("modification"); modificationElement.setAttribute("type", type); Element filenameElement = new Element("filename"); filenameElement.addContent(fileName); Element projectElement = new Element("project"); projectElement.addContent(folderName); Element dateElement = new Element("date"); dateElement.addContent(formatter.format(modifiedTime)); Element userElement = new Element("user"); userElement.addContent(userName); Element commentElement = new Element("comment"); CDATA cd = null; try { cd = new CDATA(comment); } catch (org.jdom.IllegalDataException e) { LOG.error(e); cd = new CDATA("Unable to parse comment. It contains illegal data."); } commentElement.addContent(cd); modificationElement.addContent(filenameElement); modificationElement.addContent(projectElement); modificationElement.addContent(dateElement); modificationElement.addContent(userElement); modificationElement.addContent(commentElement); // not all sourcecontrols guarantee a non-null email address if (emailAddress != null) { Element emailAddressElement = new Element("email"); emailAddressElement.addContent(emailAddress); modificationElement.addContent(emailAddressElement); } return modificationElement; }
|
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/92acbbd09b825a60111c846534839e5b29d7e5e3/Modification.java/buggy/main/src/net/sourceforge/cruisecontrol/Modification.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3010,
358,
1046,
12,
11878,
4453,
13,
288,
3639,
3010,
11544,
1046,
273,
394,
3010,
2932,
31064,
8863,
3639,
11544,
1046,
18,
542,
1499,
2932,
723,
3113,
618,
1769,
3639,
3010,
1544,
1046,
273,
394,
3010,
2932,
3459,
8863,
3639,
1544,
1046,
18,
1289,
1350,
12,
17812,
1769,
3639,
3010,
1984,
1046,
273,
394,
3010,
12,
7927,
1985,
67,
17357,
1985,
1769,
3639,
1984,
1046,
18,
1289,
1350,
12,
5609,
461,
1769,
3639,
3010,
1509,
1046,
273,
394,
3010,
2932,
712,
8863,
3639,
1509,
1046,
18,
1289,
1350,
12,
12354,
18,
2139,
12,
7342,
950,
10019,
3639,
3010,
729,
1046,
273,
394,
3010,
2932,
1355,
8863,
3639,
729,
1046,
18,
1289,
1350,
12,
1355,
461,
1769,
3639,
3010,
2879,
1046,
273,
394,
3010,
2932,
3469,
8863,
3639,
28294,
7976,
273,
446,
31,
3639,
775,
288,
5411,
7976,
273,
394,
28294,
12,
3469,
1769,
3639,
289,
1044,
261,
3341,
18,
78,
9859,
18,
12195,
22480,
425,
13,
288,
5411,
2018,
18,
1636,
12,
73,
1769,
5411,
7976,
273,
394,
28294,
2932,
3370,
358,
1109,
2879,
18,
225,
2597,
1914,
16720,
501,
1199,
1769,
3639,
289,
3639,
2879,
1046,
18,
1289,
1350,
12,
4315,
1769,
3639,
11544,
1046,
18,
1289,
1350,
12,
3459,
1046,
1769,
3639,
11544,
1046,
18,
1289,
1350,
12,
4406,
1046,
1769,
3639,
11544,
1046,
18,
1289,
1350,
12,
712,
1046,
1769,
3639,
11544,
1046,
18,
1289,
1350,
12,
1355,
1046,
1769,
3639,
11544,
1046,
18,
1289,
1350,
12,
3469,
1046,
1769,
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,
3010,
358,
1046,
12,
11878,
4453,
13,
288,
3639,
3010,
11544,
1046,
273,
394,
3010,
2932,
31064,
8863,
3639,
11544,
1046,
18,
542,
1499,
2932,
723,
3113,
618,
1769,
3639,
3010,
1544,
1046,
273,
394,
3010,
2932,
3459,
8863,
3639,
1544,
1046,
18,
1289,
1350,
12,
17812,
1769,
3639,
3010,
1984,
1046,
273,
394,
3010,
12,
7927,
1985,
67,
17357,
1985,
1769,
3639,
1984,
1046,
18,
1289,
1350,
12,
5609,
461,
1769,
3639,
3010,
1509,
1046,
273,
394,
3010,
2932,
712,
8863,
3639,
1509,
1046,
18,
1289,
1350,
12,
12354,
18,
2139,
12,
7342,
950,
10019,
3639,
3010,
729,
1046,
273,
394,
3010,
2932,
1355,
8863,
3639,
729,
1046,
18,
1289,
1350,
12,
1355,
461,
1769,
3639,
2
] |
return readers[index].getSeries(id);
|
return readers[current].getSeries(id);
|
public int getSeries(String id) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id); return readers[index].getSeries(id); }
|
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/76f0f24f6d6757c1f4133a42b987de82878422c1/ImageReader.java/buggy/loci/formats/ImageReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
336,
6485,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
327,
16527,
63,
2972,
8009,
588,
6485,
12,
350,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
509,
336,
6485,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
327,
16527,
63,
2972,
8009,
588,
6485,
12,
350,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 visitField(@NotNull PsiField field) { if (field.hasModifierProperty(PsiModifier.STATIC)) {
|
public void visitField(@NotNull PsiField field){ if(field.hasModifierProperty(PsiModifier.STATIC)){
|
public void visitField(@NotNull PsiField field) { if (field.hasModifierProperty(PsiModifier.STATIC)) { return; } if (field.getInitializer() != null) { return; } if (m_ignorePrimitives) { final PsiType fieldType = field.getType(); if (ClassUtils.isPrimitive(fieldType)) { return; } } final PsiClass aClass = field.getContainingClass(); if (aClass == null) { return; } final PsiManager manager = field.getManager(); final PsiSearchHelper searchHelper = manager.getSearchHelper(); if (searchHelper.isFieldBoundToForm(field)) { return; } if (isInitializedInInitializer(field)) { return; } final PsiMethod[] constructors = aClass.getConstructors(); if (constructors == null || constructors.length == 0) { registerFieldError(field); return; } for(final PsiMethod constructor : constructors){ final PsiCodeBlock body = constructor.getBody(); if(!InitializationUtils.blockMustAssignVariableOrFail(field, body)){ registerFieldError(field); return; } } }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/bd57f07c33c419f20715b114b71a7e93425b34c9/InstanceVariableInitializationInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/initialization/InstanceVariableInitializationInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
974,
26964,
5962,
453,
7722,
974,
652,
13,
288,
5411,
309,
261,
1518,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
309,
261,
1518,
18,
588,
14729,
1435,
480,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
309,
261,
81,
67,
6185,
2050,
18116,
13,
288,
7734,
727,
453,
7722,
559,
9596,
273,
652,
18,
588,
559,
5621,
7734,
309,
261,
797,
1989,
18,
291,
9840,
12,
1518,
559,
3719,
288,
10792,
327,
31,
7734,
289,
5411,
289,
5411,
727,
453,
7722,
797,
20148,
273,
652,
18,
588,
24344,
797,
5621,
5411,
309,
261,
69,
797,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
1318,
3301,
273,
652,
18,
588,
1318,
5621,
5411,
727,
453,
7722,
2979,
2276,
1623,
2276,
273,
3301,
18,
588,
2979,
2276,
5621,
5411,
309,
261,
3072,
2276,
18,
291,
974,
3499,
774,
1204,
12,
1518,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
309,
261,
291,
11459,
382,
14729,
12,
1518,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
1305,
8526,
19874,
273,
20148,
18,
588,
29590,
5621,
5411,
309,
261,
10062,
1383,
422,
446,
747,
19874,
18,
2469,
422,
374,
13,
288,
7734,
1744,
974,
668,
12,
1518,
1769,
7734,
327,
31,
5411,
289,
5411,
364,
12,
6385,
453,
7722,
1305,
3885,
294,
19874,
15329,
7734,
727,
453,
7722,
1085,
1768,
1417,
273,
3885,
18,
588,
2250,
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,
540,
1071,
918,
3757,
974,
26964,
5962,
453,
7722,
974,
652,
13,
288,
5411,
309,
261,
1518,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
309,
261,
1518,
18,
588,
14729,
1435,
480,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
309,
261,
81,
67,
6185,
2050,
18116,
13,
288,
7734,
727,
453,
7722,
559,
9596,
273,
652,
18,
588,
559,
5621,
7734,
309,
261,
797,
1989,
18,
291,
9840,
12,
1518,
559,
3719,
288,
10792,
327,
31,
7734,
289,
5411,
289,
5411,
727,
453,
7722,
797,
20148,
273,
652,
18,
588,
24344,
797,
5621,
5411,
309,
261,
69,
797,
422,
446,
13,
288,
7734,
327,
31,
5411,
2
] |
} else if (result instanceof Iterator) {
|
} else if ( result instanceof Iterator ) {
|
public Iterator getResults(Tuple tuple, WorkingMemory wm, PropagationContext ctx) { //get the variable value that we are operating on Object variable = null; if (variableIsDeclaration) { variable = tuple.get( this.variableDeclaration ).getObject(); } else { variable = wm.getGlobal( this.variableName ); } if (variable == null) { throw new IllegalArgumentException("Unable to resolve the variable: [" + this.variableName + "]"); } //the types we have to convert the arguments to Class[] parameterTypes = this.method.getParameterTypes(); //the args values that we will pass Object[] args = new Object[this.valueHandlers.length]; //now we need to set all the values, convert if literal for ( int i = 0; i < this.valueHandlers.length; i++ ) { ValueHandler handler = valueHandlers[i]; if (handler instanceof LiteralValue) { String text = (String) handler.getValue( tuple, wm ); Class type = parameterTypes[i]; if (type == String.class) { args[i] = text; } else { args[i] = convert(text, type); } } else { args[i] = handler.getValue( tuple, wm ); } } //now the actual invoking of the method try { Object result = this.method.invoke( variable, args ); if (result instanceof Collection) { return ((Collection) result).iterator(); } else if (result instanceof Iterator) { return (Iterator) result; } else { List resultAsList = new ArrayList(1); resultAsList.add( result ); return resultAsList.iterator(); } } catch ( IllegalArgumentException e ) { throw new RuntimeDroolsException(e); } catch ( IllegalAccessException e ) { throw new RuntimeDroolsException(e); } catch ( InvocationTargetException e ) { throw new RuntimeDroolsException(e); } }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/86cff4d74a04222d865bf5eeac956f1056a94dab/MethodDataProvider.java/clean/drools-core/src/main/java/org/drools/base/dataproviders/MethodDataProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
21955,
12,
9038,
3193,
16,
1171,
9079,
22732,
6031,
18200,
16,
1171,
9079,
1186,
9095,
367,
1042,
1103,
13,
288,
7734,
368,
588,
326,
2190,
460,
716,
732,
854,
16929,
603,
3639,
1033,
2190,
273,
446,
31,
3639,
309,
261,
6105,
2520,
6094,
13,
288,
9079,
2190,
273,
3193,
18,
588,
12,
333,
18,
6105,
6094,
262,
18,
588,
921,
5621,
10792,
289,
469,
288,
5411,
2190,
273,
18200,
18,
588,
5160,
12,
333,
18,
6105,
461,
11272,
3639,
289,
3639,
309,
261,
6105,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
3370,
358,
2245,
326,
2190,
30,
8247,
397,
333,
18,
6105,
461,
397,
9870,
1769,
3639,
289,
13491,
368,
5787,
1953,
732,
1240,
358,
1765,
326,
1775,
358,
3639,
1659,
8526,
20173,
273,
333,
18,
2039,
18,
588,
1662,
2016,
5621,
7734,
368,
5787,
833,
924,
716,
732,
903,
1342,
3639,
1033,
8526,
833,
273,
394,
1033,
63,
2211,
18,
1132,
6919,
18,
2469,
15533,
13491,
368,
3338,
732,
1608,
358,
444,
777,
326,
924,
16,
1765,
309,
7158,
3639,
364,
261,
509,
277,
273,
374,
31,
277,
411,
333,
18,
1132,
6919,
18,
2469,
31,
277,
9904,
262,
288,
5411,
1445,
1503,
1838,
273,
460,
6919,
63,
77,
15533,
5411,
309,
261,
4176,
1276,
14392,
620,
13,
288,
7734,
514,
977,
273,
261,
780,
13,
1838,
18,
24805,
12,
3193,
16,
18200,
11272,
7734,
1659,
618,
273,
20173,
63,
77,
15533,
7734,
309,
261,
723,
422,
514,
18,
1106,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
21955,
12,
9038,
3193,
16,
1171,
9079,
22732,
6031,
18200,
16,
1171,
9079,
1186,
9095,
367,
1042,
1103,
13,
288,
7734,
368,
588,
326,
2190,
460,
716,
732,
854,
16929,
603,
3639,
1033,
2190,
273,
446,
31,
3639,
309,
261,
6105,
2520,
6094,
13,
288,
9079,
2190,
273,
3193,
18,
588,
12,
333,
18,
6105,
6094,
262,
18,
588,
921,
5621,
10792,
289,
469,
288,
5411,
2190,
273,
18200,
18,
588,
5160,
12,
333,
18,
6105,
461,
11272,
3639,
289,
3639,
309,
261,
6105,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
3370,
358,
2245,
326,
2190,
30,
8247,
397,
333,
18,
6105,
461,
397,
9870,
1769,
3639,
289,
13491,
368,
5787,
1953,
732,
1240,
2
] |
sideComponent[NORTH].setSize(orientation.addLength(sideComponent[NORTH].getSize(), movement)); sideComponent[SOUTH].setSize(orientation.subtractLength(sideComponent[SOUTH].getSize(), movement)); sideComponent[SOUTH].setLocation(orientation.addToPosition(sideComponent[SOUTH].getLocation(), movement));
|
sideComponent[NORTH] .setSize(orientation.addLength(sideComponent[NORTH].getSize(), movement)); sideComponent[SOUTH] .setSize(orientation.subtractLength(sideComponent[SOUTH].getSize(), movement)); sideComponent[SOUTH]. setLocation(orientation .addToPosition(sideComponent[SOUTH].getLocation(), movement));
|
private void resizeComponents(int movement) { sideComponent[NORTH].setSize(orientation.addLength(sideComponent[NORTH].getSize(), movement)); sideComponent[SOUTH].setSize(orientation.subtractLength(sideComponent[SOUTH].getSize(), movement)); sideComponent[SOUTH].setLocation(orientation.addToPosition(sideComponent[SOUTH].getLocation(), movement)); sideComponent[NORTH].validate(); sideComponent[SOUTH].validate(); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/23464f9cbc3169e9d2f1919998cae2c59b514985/Splitter.java/buggy/src_new/org/argouml/swingext/Splitter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
7041,
7171,
12,
474,
26017,
13,
288,
3639,
4889,
1841,
63,
50,
28212,
8009,
542,
1225,
12,
19235,
18,
1289,
1782,
12,
5564,
1841,
63,
50,
28212,
8009,
588,
1225,
9334,
26017,
10019,
3639,
4889,
1841,
63,
3584,
5844,
8009,
542,
1225,
12,
19235,
18,
1717,
1575,
1782,
12,
5564,
1841,
63,
3584,
5844,
8009,
588,
1225,
9334,
26017,
10019,
3639,
4889,
1841,
63,
3584,
5844,
8009,
542,
2735,
12,
19235,
18,
1289,
774,
2555,
12,
5564,
1841,
63,
3584,
5844,
8009,
588,
2735,
9334,
26017,
10019,
3639,
4889,
1841,
63,
50,
28212,
8009,
5662,
5621,
3639,
4889,
1841,
63,
3584,
5844,
8009,
5662,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
7041,
7171,
12,
474,
26017,
13,
288,
3639,
4889,
1841,
63,
50,
28212,
8009,
542,
1225,
12,
19235,
18,
1289,
1782,
12,
5564,
1841,
63,
50,
28212,
8009,
588,
1225,
9334,
26017,
10019,
3639,
4889,
1841,
63,
3584,
5844,
8009,
542,
1225,
12,
19235,
18,
1717,
1575,
1782,
12,
5564,
1841,
63,
3584,
5844,
8009,
588,
1225,
9334,
26017,
10019,
3639,
4889,
1841,
63,
3584,
5844,
8009,
542,
2735,
12,
19235,
18,
1289,
774,
2555,
12,
5564,
1841,
63,
3584,
5844,
8009,
588,
2735,
9334,
26017,
10019,
3639,
4889,
1841,
63,
50,
28212,
8009,
5662,
5621,
3639,
4889,
1841,
63,
3584,
5844,
8009,
5662,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!started && !stop)
|
if (stop) break; if (!started)
|
public void run() { // XXX - Support other IPs String announce = meta.getAnnounce(); //I2PSnarkUtil.instance().rewriteAnnounce(meta.getAnnounce()); String infoHash = urlencode(meta.getInfoHash()); String peerID = urlencode(coordinator.getID()); _log.debug("Announce: [" + meta.getAnnounce() + "] infoHash: " + infoHash + " xmitAnnounce: [" + announce + "]"); long uploaded = coordinator.getUploaded(); long downloaded = coordinator.getDownloaded(); long left = coordinator.getLeft(); boolean completed = (left == 0); int sleptTime = 0; try { if (!verifyConnected()) return; boolean started = false; while (!started) { sleptTime = 0; try { // Send start. TrackerInfo info = doRequest(announce, infoHash, peerID, uploaded, downloaded, left, STARTED_EVENT); Set peers = info.getPeers(); coordinator.trackerSeenPeers = peers.size(); coordinator.trackerProblems = null; if (!completed) { Iterator it = peers.iterator(); while (it.hasNext()) { Peer cur = (Peer)it.next(); coordinator.addPeer(cur); int delay = DELAY_MUL; delay *= ((int)cur.getPeerID().getAddress().calculateHash().toBase64().charAt(0)) % 10; delay += DELAY_MIN; sleptTime += delay; try { Thread.sleep(delay); } catch (InterruptedException ie) {} } } started = true; } catch (IOException ioe) { // Probably not fatal (if it doesn't last to long...) Snark.debug ("WARNING: Could not contact tracker at '" + announce + "': " + ioe, Snark.WARNING); coordinator.trackerProblems = ioe.getMessage(); } if (!started && !stop) { Snark.debug(" Retrying in one minute...", Snark.DEBUG); try { // Sleep one minutes... Thread.sleep(60*1000); } catch(InterruptedException interrupt) { // ignore } } } Random r = new Random(); while(!stop) { try { // Sleep some minutes... int delay; if(coordinator.trackerProblems != null && !completed) { delay = 60*1000; } else if(completed) { delay = 3*SLEEP*60*1000 + r.nextInt(120*1000); } else { delay = SLEEP*60*1000 + r.nextInt(120*1000); delay -= sleptTime; } if (delay > 0) Thread.sleep(delay); } catch(InterruptedException interrupt) { // ignore } if (stop) break; if (!verifyConnected()) return; uploaded = coordinator.getUploaded(); downloaded = coordinator.getDownloaded(); left = coordinator.getLeft(); // First time we got a complete download? String event; if (!completed && left == 0) { completed = true; event = COMPLETED_EVENT; } else event = NO_EVENT; // Only do a request when necessary. sleptTime = 0; if (event == COMPLETED_EVENT || coordinator.needPeers() || System.currentTimeMillis() > lastRequestTime + interval) { try { TrackerInfo info = doRequest(announce, infoHash, peerID, uploaded, downloaded, left, event); coordinator.trackerProblems = null; Set peers = info.getPeers(); coordinator.trackerSeenPeers = peers.size(); if ( (left > 0) && (!completed) ) { // we only want to talk to new people if we need things // from them (duh) List ordered = new ArrayList(peers); Collections.shuffle(ordered); Iterator it = ordered.iterator(); while (it.hasNext()) { Peer cur = (Peer)it.next(); // only delay if we actually make an attempt to add peer if(coordinator.addPeer(cur)) { int delay = DELAY_MUL; delay *= ((int)cur.getPeerID().getAddress().calculateHash().toBase64().charAt(0)) % 10; delay += DELAY_MIN; sleptTime += delay; try { Thread.sleep(delay); } catch (InterruptedException ie) {} } } } } catch (IOException ioe) { // Probably not fatal (if it doesn't last to long...) Snark.debug ("WARNING: Could not contact tracker at '" + announce + "': " + ioe, Snark.WARNING); coordinator.trackerProblems = ioe.getMessage(); } } } } catch (Throwable t) { I2PSnarkUtil.instance().debug("TrackerClient: " + t, Snark.ERROR, t); if (t instanceof OutOfMemoryError) throw (OutOfMemoryError)t; } finally { try { if (!verifyConnected()) return; TrackerInfo info = doRequest(announce, infoHash, peerID, uploaded, downloaded, left, STOPPED_EVENT); } catch(IOException ioe) { /* ignored */ } } }
|
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/1e404cd7ac45c2f02a74e0bb1b2e981e651de184/TrackerClient.java/buggy/apps/i2psnark/java/src/org/klomp/snark/TrackerClient.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
225,
288,
565,
368,
11329,
300,
13619,
1308,
23842,
565,
514,
14281,
273,
2191,
18,
588,
23137,
5621,
368,
45,
22,
5857,
82,
1313,
1304,
18,
1336,
7675,
21489,
23137,
12,
3901,
18,
588,
23137,
10663,
565,
514,
1123,
2310,
273,
9922,
12,
3901,
18,
588,
966,
2310,
10663,
565,
514,
4261,
734,
273,
9922,
12,
5732,
4240,
18,
588,
734,
10663,
565,
389,
1330,
18,
4148,
2932,
23137,
30,
8247,
397,
2191,
18,
588,
23137,
1435,
397,
9850,
1123,
2310,
30,
315,
397,
1123,
2310,
7734,
397,
315,
619,
1938,
23137,
30,
8247,
397,
14281,
397,
9870,
1769,
3639,
1525,
9140,
273,
24794,
18,
588,
24585,
5621,
565,
1525,
13549,
273,
24794,
18,
588,
4164,
4230,
5621,
565,
1525,
2002,
273,
24794,
18,
588,
3910,
5621,
565,
1250,
5951,
273,
261,
4482,
422,
374,
1769,
565,
509,
272,
298,
337,
950,
273,
374,
31,
565,
775,
1377,
288,
3639,
309,
16051,
8705,
8932,
10756,
327,
31,
3639,
1250,
5746,
273,
629,
31,
3639,
1323,
16051,
14561,
13,
1850,
288,
5411,
272,
298,
337,
950,
273,
374,
31,
5411,
775,
2868,
288,
7734,
368,
2479,
787,
18,
7734,
11065,
264,
966,
1123,
273,
25801,
12,
1072,
8386,
16,
1123,
2310,
16,
4261,
734,
16,
4766,
2398,
9140,
16,
13549,
16,
2002,
16,
4766,
2398,
21807,
6404,
67,
10454,
1769,
7734,
1000,
10082,
273,
1123,
18,
588,
14858,
5621,
7734,
24794,
18,
16543,
15160,
14858,
273,
10082,
18,
1467,
5621,
7734,
24794,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
225,
288,
565,
368,
11329,
300,
13619,
1308,
23842,
565,
514,
14281,
273,
2191,
18,
588,
23137,
5621,
368,
45,
22,
5857,
82,
1313,
1304,
18,
1336,
7675,
21489,
23137,
12,
3901,
18,
588,
23137,
10663,
565,
514,
1123,
2310,
273,
9922,
12,
3901,
18,
588,
966,
2310,
10663,
565,
514,
4261,
734,
273,
9922,
12,
5732,
4240,
18,
588,
734,
10663,
565,
389,
1330,
18,
4148,
2932,
23137,
30,
8247,
397,
2191,
18,
588,
23137,
1435,
397,
9850,
1123,
2310,
30,
315,
397,
1123,
2310,
7734,
397,
315,
619,
1938,
23137,
30,
8247,
397,
14281,
397,
9870,
1769,
3639,
1525,
9140,
273,
24794,
18,
588,
24585,
5621,
565,
1525,
13549,
273,
24794,
18,
2
] |
if (markerDelta == null) continue;
|
if (markerDelta == null) { continue; }
|
public void resourceChanged(final IResourceChangeEvent event) { /* * gather all marker changes from the delta. be sure to do this in the * calling thread, as the delta is destroyed when this method returns */ IMarkerDelta[] markerDeltas = event.findMarkerDeltas(null, true); if (markerDeltas == null) return; int oldTotal = totalMarkerCount; final List additions = new ArrayList(); final List removals = new ArrayList(); final List changes = new ArrayList(); for (int i = 0; i < markerDeltas.length; i++) { IMarkerDelta markerDelta = markerDeltas[i]; if (markerDelta == null) continue; int iKind = markerDelta.getKind(); for (int j = 0; j < TasksFilter.ROOT_TYPES.length; j++) { if (markerDelta.isSubtypeOf(TasksFilter.ROOT_TYPES[j])) { /* * Updates the total count of markers given the applicable * marker deltas. */ if (totalMarkerCount != -1) { switch (iKind) { case IResourceDelta.ADDED: totalMarkerCount++; break; case IResourceDelta.REMOVED: totalMarkerCount--; break; } } /* * Partition the marker deltas into one of the three given * lists depending on * the type of delta (add, remove, or change). * The resulting lists contain the corresponding markers, * not the deltas. * Deltas which are not under the current focus resource are * discarded. * This also updates the marker counts. */ IResource resource = markerDelta.getResource(); if (resource == null) continue; boolean affectedBy = taskList.checkResource(resource) && taskList.getFilter().select(markerDelta); if (affectedBy) { IMarker marker = markerDelta.getMarker(); switch (iKind) { case IResourceDelta.ADDED: additions.add(marker); updateMarkerCounts(markerDelta, +1); break; case IResourceDelta.REMOVED: removals.add(marker); updateMarkerCounts(markerDelta, -1); break; case IResourceDelta.CHANGED: changes.add(marker); /* * Assume attribute changes don't affect marker * counts. This is only true if problem severities * can't change. */ break; } } break; } } } if (oldTotal == totalMarkerCount && additions.size() + removals.size() + changes.size() == 0) { // no changes to markers that we care about return; } /* * do the required viewer updates in the UI thread need to use syncExec; * see 1G95PU8: ITPUI:WIN2000 - Changing task description flashes old * description */ viewer.getControl().getDisplay().syncExec(new Runnable() { public void run() { if (getFilterOnMarkerLimit() && sum(visibleMarkerCounts) > getMarkerLimit()) { if (!isMarkerLimitExceeded()) { setMarkerLimitExceeded(true); viewer.refresh(); } } else if (taskList.isMarkerLimitExceeded()) { setMarkerLimitExceeded(false); viewer.refresh(); } else { updateViewer(additions, removals, changes); } /* Update the task list's status message. * XXX: Quick and dirty solution here. * Would be better to have a separate model for the tasks and * have both the content provider and the task list register for * updates. XXX: Do this inside the syncExec, since we're * talking to status line widget. */ taskList.markersChanged(); } }); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/TaskListContentProvider.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskListContentProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1058,
5033,
12,
6385,
467,
1420,
20930,
871,
13,
288,
3639,
1748,
540,
380,
11090,
777,
5373,
3478,
628,
326,
3622,
18,
506,
3071,
358,
741,
333,
316,
326,
1850,
380,
4440,
2650,
16,
487,
326,
3622,
353,
17689,
1347,
333,
707,
1135,
540,
1195,
3639,
467,
7078,
9242,
8526,
5373,
2837,
9158,
273,
871,
18,
4720,
7078,
2837,
9158,
12,
2011,
16,
638,
1769,
3639,
309,
261,
11145,
2837,
9158,
422,
446,
13,
5411,
327,
31,
3639,
509,
1592,
5269,
273,
2078,
7078,
1380,
31,
3639,
727,
987,
26260,
273,
394,
2407,
5621,
3639,
727,
987,
2797,
1031,
273,
394,
2407,
5621,
3639,
727,
987,
3478,
273,
394,
2407,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5373,
2837,
9158,
18,
2469,
31,
277,
27245,
288,
5411,
467,
7078,
9242,
5373,
9242,
273,
5373,
2837,
9158,
63,
77,
15533,
5411,
309,
261,
11145,
9242,
422,
446,
13,
7734,
1324,
31,
5411,
509,
277,
5677,
273,
5373,
9242,
18,
588,
5677,
5621,
5411,
364,
261,
474,
525,
273,
374,
31,
525,
411,
20350,
1586,
18,
9185,
67,
10564,
18,
2469,
31,
525,
27245,
288,
7734,
309,
261,
11145,
9242,
18,
291,
1676,
723,
951,
12,
6685,
1586,
18,
9185,
67,
10564,
63,
78,
22643,
288,
10792,
1748,
8227,
380,
15419,
326,
2078,
1056,
434,
11754,
864,
326,
12008,
8227,
380,
5373,
20113,
18,
8227,
1195,
10792,
309,
261,
4963,
7078,
1380,
480,
300,
21,
13,
288,
13491,
1620,
261,
77,
5677,
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,
1058,
5033,
12,
6385,
467,
1420,
20930,
871,
13,
288,
3639,
1748,
540,
380,
11090,
777,
5373,
3478,
628,
326,
3622,
18,
506,
3071,
358,
741,
333,
316,
326,
1850,
380,
4440,
2650,
16,
487,
326,
3622,
353,
17689,
1347,
333,
707,
1135,
540,
1195,
3639,
467,
7078,
9242,
8526,
5373,
2837,
9158,
273,
871,
18,
4720,
7078,
2837,
9158,
12,
2011,
16,
638,
1769,
3639,
309,
261,
11145,
2837,
9158,
422,
446,
13,
5411,
327,
31,
3639,
509,
1592,
5269,
273,
2078,
7078,
1380,
31,
3639,
727,
987,
26260,
273,
394,
2407,
5621,
3639,
727,
987,
2797,
1031,
273,
394,
2407,
5621,
3639,
727,
987,
3478,
273,
394,
2407,
5621,
3639,
364,
261,
474,
277,
2
] |
public void receivedAckRequest(int packetNumber) {
|
public synchronized void receivedAckRequest(int packetNumber) {
|
public void receivedAckRequest(int packetNumber) { if(queuedAck(packetNumber)) { // Already going to send an ack // Don't speed it up though; wasteful } else { if(packetNumbersReceived.contains(packetNumber)) { // We have received it, so send them an ack queueAck(packetNumber); } else { // We have not received it, so get them to resend it try { queueResendRequest(packetNumber); } catch (UpdatableSortedLinkedListKilledException e) { // Ignore, we are decoding, not sending. } synchronized(this) { highestSeenIncomingSerialNumber = Math.max(highestSeenIncomingSerialNumber, packetNumber); } } } }
|
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/d764310ce0592a5fd06db73c2ccf0b083791a0b2/KeyTracker.java/clean/src/freenet/node/KeyTracker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
5079,
11931,
691,
12,
474,
4414,
1854,
13,
288,
3639,
309,
12,
19499,
11931,
12,
11482,
1854,
3719,
288,
5411,
368,
17009,
8554,
358,
1366,
392,
8479,
5411,
368,
7615,
1404,
8632,
518,
731,
11376,
31,
341,
14725,
2706,
3639,
289,
469,
288,
5411,
309,
12,
11482,
10072,
8872,
18,
12298,
12,
11482,
1854,
3719,
288,
7734,
368,
1660,
1240,
5079,
518,
16,
1427,
1366,
2182,
392,
8479,
7734,
2389,
11931,
12,
11482,
1854,
1769,
5411,
289,
469,
288,
7734,
368,
1660,
1240,
486,
5079,
518,
16,
1427,
336,
2182,
358,
31972,
518,
7734,
775,
288,
6862,
202,
4000,
607,
409,
691,
12,
11482,
1854,
1769,
9506,
202,
97,
1044,
261,
1211,
3404,
429,
11739,
13174,
682,
47,
13148,
503,
425,
13,
288,
6862,
202,
759,
8049,
16,
732,
854,
13547,
16,
486,
5431,
18,
9506,
202,
97,
7734,
3852,
12,
2211,
13,
288,
10792,
9742,
15160,
20370,
6342,
1854,
273,
2361,
18,
1896,
12,
8766,
395,
15160,
20370,
6342,
1854,
16,
4414,
1854,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
5079,
11931,
691,
12,
474,
4414,
1854,
13,
288,
3639,
309,
12,
19499,
11931,
12,
11482,
1854,
3719,
288,
5411,
368,
17009,
8554,
358,
1366,
392,
8479,
5411,
368,
7615,
1404,
8632,
518,
731,
11376,
31,
341,
14725,
2706,
3639,
289,
469,
288,
5411,
309,
12,
11482,
10072,
8872,
18,
12298,
12,
11482,
1854,
3719,
288,
7734,
368,
1660,
1240,
5079,
518,
16,
1427,
1366,
2182,
392,
8479,
7734,
2389,
11931,
12,
11482,
1854,
1769,
5411,
289,
469,
288,
7734,
368,
1660,
1240,
486,
5079,
518,
16,
1427,
336,
2182,
358,
31972,
518,
7734,
775,
288,
6862,
202,
4000,
607,
409,
691,
12,
11482,
1854,
1769,
9506,
202,
97,
1044,
261,
1211,
3404,
429,
11739,
2
] |
else return; }
|
else { destNode = IntraTraceBuffer.getBuffer(node, (OutputTraceNode)node.getNext()). getNonRedundant().getDRAM(); } }
|
private static void createSwitchCodeLinear(FilterTraceNode node, Trace parent, FilterInfo filterInfo, boolean init, boolean primePump, RawTile tile, RawChip rawChip) { //createReceiveCode(0, node, parent, filterInfo, init, primePump, tile, rawChip); ComputeNode sourceNode = null; int mult; if (init) mult = filterInfo.initMult; else mult = filterInfo.steadyMult; if (node.getPrevious().isFilterTrace()) sourceNode = rawChip.getTile(((FilterTraceNode)node.getPrevious()).getX(), ((FilterTraceNode)node.getPrevious()).getY()); else { if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace() && tile.hasIODevice()) sourceNode = tile.getIODevice(); else return; } SwitchIPort src = rawChip.getIPort(sourceNode, tile); SwitchIPort src2 = rawChip.getIPort2(sourceNode, tile); sourceNode = null; ComputeNode destNode = null; if (node.getNext().isFilterTrace()) destNode = rawChip.getTile(((FilterTraceNode)node.getNext()).getX(), ((FilterTraceNode)node.getNext()).getY()); else { if (KjcOptions.magicdram && node.getNext() != null && node.getNext().isOutputTrace() && tile.hasIODevice()) destNode = tile.getIODevice(); else return; } SwitchOPort dest = rawChip.getOPort(tile, destNode); SwitchOPort dest2 = rawChip.getOPort2(tile, destNode); destNode = null; FilterContent content = node.getFilter(); final int peek = content.getArray().length; final int pop = content.getPopCount(); final int numPop = peek/pop; final boolean begin=content.getBegin(); final boolean end=content.getEnd(); System.out.println("SRC: "+src); System.out.println("DEST: "+dest); SwitchCodeStore code = tile.getSwitchCode(); boolean first=true; for(int i = 0; i<numPop-1; i++) for(int j = 0; j<pop; j++) { FullIns ins = new FullIns(tile, new MoveIns(SwitchReg.R1, src)); if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace()) createMagicDramLoad((InputTraceNode)node.getPrevious(), node, (init || primePump), rawChip); ins.addRoute(src, SwitchOPort.CSTI); //if(!first) { if(!end) { if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace()) createMagicDramLoad((InputTraceNode)node.getPrevious(), node, (init || primePump), rawChip); if (KjcOptions.magicdram && node.getNext() != null && node.getNext().isOutputTrace()) createMagicDramStore((OutputTraceNode)node.getNext(), node, (init || primePump), rawChip); ins.addRoute(src,dest); //} } code.appendIns(ins, init||primePump); for(int k = i-1; k>= 0; k--) { FullIns newIns = new FullIns(tile); newIns.addRoute(SwitchReg.R1, SwitchOPort.CSTI); code.appendIns(newIns, init||primePump); } FullIns newIns=null; if(!begin) { newIns=new FullIns(tile); if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace()) createMagicDramLoad((InputTraceNode)node.getPrevious(), node, (init || primePump), rawChip); newIns.addRoute(src2, SwitchOPort.CSTI2); code.appendIns(newIns, init||primePump); } /*if(!first) { newIns = new FullIns(tile); newIns.addRoute(SwitchIPort.CSTO,dest); code.appendIns(newIns, init||primePump); } first=false;*/ } final int turns=content.getPos(); for(int turn=0;turn<turns;turn++) for(int j = 0; j<pop; j++) { FullIns ins = new FullIns(tile, new MoveIns(SwitchReg.R1, src)); if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace()) createMagicDramLoad((InputTraceNode)node.getPrevious(), node, (init || primePump), rawChip); ins.addRoute(src, SwitchOPort.CSTI); if(!first) { if(!end) { if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace()) createMagicDramLoad((InputTraceNode)node.getPrevious(), node, (init || primePump), rawChip); if (KjcOptions.magicdram && node.getNext() != null && node.getNext().isOutputTrace()) createMagicDramStore((OutputTraceNode)node.getNext(), node, (init || primePump), rawChip); ins.addRoute(src,dest); } } code.appendIns(ins, init||primePump); for(int k = numPop-2; k>= 0; k--) { FullIns newIns = new FullIns(tile); newIns.addRoute(SwitchReg.R1, SwitchOPort.CSTI); code.appendIns(newIns, init||primePump); } FullIns newIns=null; if(!begin) { newIns=new FullIns(tile); if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace()) createMagicDramLoad((InputTraceNode)node.getPrevious(), node, (init || primePump), rawChip); newIns.addRoute(src2, SwitchOPort.CSTI2); code.appendIns(newIns, init||primePump); } if(!first) { newIns = new FullIns(tile); if (KjcOptions.magicdram && node.getNext() != null && node.getNext().isOutputTrace()) createMagicDramStore((OutputTraceNode)node.getNext(), node, (init || primePump), rawChip); newIns.addRoute(SwitchIPort.CSTO,dest2); code.appendIns(newIns, init||primePump); } first=false; } Label label = code.getFreshLabel(); //code.appendIns(label, init||primePump); final int numTimes = Linear.getMult(peek); int pendingSends=0; int times=0; FullIns ins=null; //final int turns2=content.getTotal()-content.getPos()+1; final int turns2=content.getPos(); //final int turns2=1; for(int turn=0;turn<turns2+4;turn++) { if(turn==turns2) code.appendIns(label, init||primePump); for(int i = 0;i<numTimes;i++) { for(int j=0;j<pop;j++) { if(numPop==1&&j==0) pendingSends++; times++; ins = new FullIns(tile, new MoveIns(SwitchReg.R1, src)); if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace()) createMagicDramLoad((InputTraceNode)node.getPrevious(), node, (init || primePump), rawChip); ins.addRoute(src, SwitchOPort.CSTI); if(!end) { if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace()) createMagicDramLoad((InputTraceNode)node.getPrevious(), node, (init || primePump), rawChip); if (KjcOptions.magicdram && node.getNext() != null && node.getNext().isOutputTrace()) createMagicDramStore((OutputTraceNode)node.getNext(), node, (init || primePump), rawChip); ins.addRoute(src,dest); } if(turn>0&×>1) { if(!end) ins.addRoute(SwitchIPort.CSTO,dest2); else ins.addRoute(SwitchIPort.CSTO,dest); } /*if(times>2) { if(!begin) { if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace()) createMagicDramLoad((InputTraceNode)node.getPrevious(), node, (init || primePump), rawChip); ins.addRoute(src2,SwitchOPort.CSTI2); } pendingSends--; }*/ /*if(turn>1) { if(!begin) { if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace()) createMagicDramLoad((InputTraceNode)node.getPrevious(), node, (init || primePump), rawChip); ins.addRoute(src2,SwitchOPort.CSTI2); } }*/ code.appendIns(ins, init||primePump); if(times==4) { times=0; if(true||!begin) { //if(turn==0) //pendingSends++; if(pendingSends>0) { for(int l=0;l<pendingSends;l++) { ins=new FullIns(tile); if(/*turn>0&&*/!begin) { if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace()) createMagicDramLoad((InputTraceNode)node.getPrevious(), node, (init || primePump), rawChip); ins.addRoute(src2,SwitchOPort.CSTI2); } if (KjcOptions.magicdram && node.getNext() != null && node.getNext().isOutputTrace()) createMagicDramStore((OutputTraceNode)node.getNext(), node, (init || primePump), rawChip); if(turn>0&&l<1) { if(!end) ins.addRoute(SwitchIPort.CSTO,dest2); else ins.addRoute(SwitchIPort.CSTO,dest); } //if(!begin) code.appendIns(ins,init||primePump); } pendingSends=0; } } } for(int k = 1;k<numPop;k++) { if(j==0&&k==numPop-1) pendingSends++; times++; ins=new FullIns(tile); ins.addRoute(SwitchReg.R1, SwitchOPort.CSTI); code.appendIns(ins, init||primePump); if(times==4) { times=0; if(true||!begin) { //if(turn==0) //pendingSends++; if(pendingSends>0) { for(int l=0;l<pendingSends;l++) { ins=new FullIns(tile); if(/*turn>0&&*/!begin) { if (KjcOptions.magicdram && node.getPrevious() != null && node.getPrevious().isInputTrace()) createMagicDramLoad((InputTraceNode)node.getPrevious(), node, (init || primePump), rawChip); ins.addRoute(src2,SwitchOPort.CSTI2); } if (KjcOptions.magicdram && node.getNext() != null && node.getNext().isOutputTrace()) createMagicDramStore((OutputTraceNode)node.getNext(), node, (init || primePump), rawChip); if(turn>0&&l<1) { if(!end) ins.addRoute(SwitchIPort.CSTO,dest2); else ins.addRoute(SwitchIPort.CSTO,dest); } //if(!begin) code.appendIns(ins,init||primePump); } pendingSends=0; } } } } } } } /*for(int i=0;i<numTimes-1;i++) { FullIns newIns=new FullIns(tile); newIns.addRoute(SwitchIPort.CSTO,dest); code.appendIns(newIns,init||primePump); } FullIns newIns=new FullIns(tile,new JumpIns(label.getLabel())); newIns.addRoute(SwitchIPort.CSTO,dest); code.appendIns(newIns,init||primePump);*/ //code.appendIns(new JumpIns(label.getLabel()),init||primePump); ins.setProcessorIns(new JumpIns(label.getLabel())); }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/435f12c991ea0d0e0182438d440adbf6fa7f9d30/Rawify.java/buggy/streams/src/at/dms/kjc/spacetime/Rawify.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
752,
10200,
1085,
15982,
12,
1586,
3448,
907,
756,
16,
2677,
982,
16,
9944,
4202,
4008,
966,
1034,
966,
16,
1250,
1208,
16,
1250,
17014,
52,
2801,
16,
9944,
4202,
6576,
9337,
4769,
16,
6576,
782,
625,
1831,
782,
625,
13,
288,
202,
759,
2640,
11323,
1085,
12,
20,
16,
225,
756,
16,
225,
982,
16,
225,
1034,
966,
16,
225,
1208,
16,
225,
17014,
52,
2801,
16,
225,
4769,
16,
225,
1831,
782,
625,
1769,
202,
7018,
907,
26799,
273,
446,
31,
202,
474,
1778,
31,
202,
202,
430,
261,
2738,
13,
202,
565,
1778,
273,
1034,
966,
18,
2738,
5049,
31,
202,
12107,
3196,
565,
1778,
273,
1034,
966,
18,
334,
684,
93,
5049,
31,
202,
202,
430,
261,
2159,
18,
588,
8351,
7675,
291,
1586,
3448,
10756,
202,
565,
26799,
273,
1831,
782,
625,
18,
588,
9337,
12443,
12,
1586,
3448,
907,
13,
2159,
18,
588,
8351,
1435,
2934,
588,
60,
9334,
282,
25083,
14015,
1586,
3448,
907,
13,
2159,
18,
588,
8351,
1435,
2934,
588,
61,
10663,
202,
12107,
288,
202,
565,
309,
261,
47,
78,
71,
1320,
18,
11179,
72,
1940,
597,
756,
18,
588,
8351,
1435,
480,
225,
446,
597,
202,
202,
2159,
18,
588,
8351,
7675,
291,
1210,
3448,
1435,
597,
202,
202,
15368,
18,
5332,
4294,
3654,
10756,
3196,
202,
3168,
907,
273,
4769,
18,
588,
4294,
3654,
5621,
202,
565,
469,
3196,
202,
2463,
31,
202,
97,
202,
10200,
2579,
499,
1705,
273,
1831,
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,
752,
10200,
1085,
15982,
12,
1586,
3448,
907,
756,
16,
2677,
982,
16,
9944,
4202,
4008,
966,
1034,
966,
16,
1250,
1208,
16,
1250,
17014,
52,
2801,
16,
9944,
4202,
6576,
9337,
4769,
16,
6576,
782,
625,
1831,
782,
625,
13,
288,
202,
759,
2640,
11323,
1085,
12,
20,
16,
225,
756,
16,
225,
982,
16,
225,
1034,
966,
16,
225,
1208,
16,
225,
17014,
52,
2801,
16,
225,
4769,
16,
225,
1831,
782,
625,
1769,
202,
7018,
907,
26799,
273,
446,
31,
202,
474,
1778,
31,
202,
202,
430,
261,
2738,
13,
202,
565,
1778,
273,
1034,
966,
18,
2738,
5049,
31,
202,
12107,
3196,
565,
1778,
273,
1034,
966,
18,
334,
684,
93,
2
] |
value_types[i] = RealType.getRealType(name + (i+1), unit);
|
valueTypes[i] = RealType.getRealType(name + (i+1), unit);
|
public void go(String args[]) throws IOException, VisADException, RemoteException { String dir = ""; String slash = System.getProperty("file.separator"); if (args.length > 0) { dir = args[0]; if (!dir.endsWith(slash)) dir = dir + slash; } RealTupleType domain = null; Unit unit = null; String name = null; Set set = null; RealType[] value_types = new RealType[NFILES]; values = new float[NFILES][]; DefaultFamily loader = new DefaultFamily("loader"); for (int i=0; i<NFILES; i++) { Tuple tuple = (Tuple) loader.open(dir + "SPB" + (i+1) + ".PIC"); FieldImpl field = (FieldImpl) tuple.getComponent(0); FlatField ff = (FlatField) field.getSample(0); set = ff.getDomainSet();/*System.out.println("set = " + set);set = Linear2DSet: Length = 393216 Dimension 1: Length = 768 Range = 0.0 to 767.0 Dimension 2: Length = 512 Range = 0.0 to 511.0*/ if (i == 0) { FunctionType func = (FunctionType) ff.getType(); domain = func.getDomain(); element = (RealType) domain.getComponent(0); line = (RealType) domain.getComponent(1); value = (RealType) func.getRange(); unit = value.getDefaultUnit(); name = value.getName(); } value_types[i] = RealType.getRealType(name + (i+1), unit); float[][] temps = ff.getFloats(false); values[i] = temps[0]; // System.out.println("data " + i + " type: " + value_types[i]); } npixels = values[0].length; RealTupleType range = new RealTupleType(value_types); FunctionType big_func = new FunctionType(domain, range); final FlatField big_data = new FlatField(big_func, set); big_data.setSamples(values, false); // RealType value = RealType.getRealType("value"); RealType hue = RealType.getRealType("hue"); RealType HUE = RealType.getRealType("HUE"); RealTupleType new_range = new RealTupleType(value, hue); FunctionType new_func = new FunctionType(domain, new_range); data = new FlatField(new_func, set); data_values = new float[2][npixels]; DataReferenceImpl ref1 = new DataReferenceImpl("ref1"); ref1.setData(data); text = TextType.getTextType("text"); RealType[] time = {RealType.Time}; RealTupleType time_type = new RealTupleType(time); MathType[] mtypes = {element, line, text}; text_tuple = new TupleType(mtypes); FunctionType text_function = new FunctionType(RealType.Time, text_tuple); Set time_set = new Linear1DSet(time_type, 0.0, 1.0, 2); text_field = new FieldImpl(text_function, time_set); DataReferenceImpl text_ref = new DataReferenceImpl("text_ref"); text_ref.setData(text_field); Linear2DSet wedge_set = new Linear2DSet(domain, 0.0, 767.0, 768, 550.0, 570.0, 21); wedge = new FlatField(new_func, wedge_set); wedge_samples = new float[2][768 * 21]; DataReferenceImpl wedge_ref = new DataReferenceImpl("wedge_ref"); wedge_ref.setData(wedge); final DataReferenceImpl xref = new DataReferenceImpl("xref"); // System.out.println("data type: " + new_func); display1 = new DisplayImplJ3D("display1", new TwoDDisplayRendererJ3D()); ScalarMap xmap = new ScalarMap(element, Display.XAxis); display1.addMap(xmap); huexmap = new ScalarMap(HUE, Display.XAxis); display1.addMap(huexmap); ScalarMap ymap = new ScalarMap(line, Display.YAxis); display1.addMap(ymap); ymap.setRange(0.0, 511.0); vmap = new ScalarMap(value, Display.Value); display1.addMap(vmap); hmap = new ScalarMap(hue, Display.Hue); display1.addMap(hmap); ScalarMap textmap = new ScalarMap(text, Display.Text); display1.addMap(textmap); display1.addMap(new ConstantMap(1.0, Display.Saturation)); Control ctrl = textmap.getControl(); if (ctrl != null && ctrl instanceof TextControl) { TextControl text_control = (TextControl) ctrl; text_control.setSize(1.0); text_control.setJustification(TextControl.Justification.CENTER); text_control.setAutoSize(true); } // display1.getGraphicsModeControl().setScaleEnable(true); display1.addReference(ref1); DefaultRendererJ3D renderer = new DefaultRendererJ3D(); display1.addReferences(renderer, xref); renderer.suppressExceptions(true); DefaultRendererJ3D text_renderer = new DefaultRendererJ3D(); display1.addReferences(text_renderer, text_ref); text_renderer.suppressExceptions(true); DefaultRendererJ3D wedge_renderer = new DefaultRendererJ3D(); display1.addReferences(wedge_renderer, wedge_ref); wedge_renderer.suppressExceptions(true); line_ref = new DataReferenceImpl("line"); Gridded2DSet dummy_set = new Gridded2DSet(domain, null, 1); line_ref.setData(dummy_set); display1.addReferences( new RubberBandLineRendererJ3D(element, line), line_ref); final RealType channel = RealType.getRealType("channel"); final RealType point = RealType.getRealType("point"); RealType intensity = RealType.getRealType("intensity"); final FunctionType spectrum_type = new FunctionType(channel, intensity); final FunctionType spectra_type = new FunctionType(point, spectrum_type); final FunctionType line_type = new FunctionType(point, intensity); final FunctionType lines_type = new FunctionType(channel, line_type); final DataReferenceImpl ref2 = new DataReferenceImpl("ref2"); DisplayImplJ3D display2 = new DisplayImplJ3D("display2"); ScalarMap xmap2 = new ScalarMap(channel, Display.XAxis); display2.addMap(xmap2); ScalarMap ymap2 = new ScalarMap(intensity, Display.YAxis); display2.addMap(ymap2); ScalarMap zmap2 = new ScalarMap(point, Display.ZAxis); display2.addMap(zmap2); display2.getGraphicsModeControl().setScaleEnable(true); DefaultRendererJ3D renderer2 = new DefaultRendererJ3D(); display2.addReferences(renderer2, ref2); renderer2.suppressExceptions(true); final RealTupleType fdomain = domain; CellImpl cell = new CellImpl() { public void doAction() throws VisADException, RemoteException { Set cell_set = (Set) line_ref.getData(); if (cell_set == null) return; float[][] samples = cell_set.getSamples(); if (samples == null) return; // System.out.println("box (" + samples[0][0] + ", " + samples[1][0] + // ") to (" + samples[0][1] + ", " + samples[1][1] + ")"); float x1 = samples[0][0]; float y1 = samples[1][0]; float x2 = samples[0][1]; float y2 = samples[1][1]; double dist = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); int nsamp = (int) (dist + 1.0); if (nsamp < 2) nsamp = 2; float[][] ss = new float[2][nsamp]; for (int i=0; i<nsamp; i++) { float a = ((float) i) / (nsamp - 1.0f); ss[0][i] = x1 + a * (x2 - x1); ss[1][i] = y1 + a * (y2 - y1); } Gridded2DSet line = new Gridded2DSet(fdomain, ss, nsamp); xref.setData(line); FlatField line_field = (FlatField) // big_data.resample(line, Data.WEIGHTED_AVERAGE, Data.NO_ERRORS); big_data.resample(line, Data.NEAREST_NEIGHBOR, Data.NO_ERRORS); float[][] line_samples = line_field.getFloats(false); // [NFILES][nsamp] Linear1DSet point_set = new Linear1DSet(point, 0.0, 1.0, nsamp); Integer1DSet channel_set = new Integer1DSet(channel, NFILES); FieldImpl spectra = new FieldImpl(spectra_type, point_set); for (int i=0; i<nsamp; i++) { FlatField spectrum = new FlatField(spectrum_type, channel_set); float[][] temp = new float[1][NFILES]; for (int j=0; j<NFILES; j++) { temp[0][j] = line_samples[j][i]; } spectrum.setSamples(temp, false); spectra.setSample(i, spectrum); } FieldImpl lines = new FieldImpl(lines_type, channel_set); for (int j=0; j<NFILES; j++) { FlatField linex = new FlatField(line_type, point_set); float[][] temp = new float[1][nsamp]; for (int i=0; i<nsamp; i++) { temp[0][i] = line_samples[j][i]; } linex.setSamples(temp, false); lines.setSample(j, linex); } ref2.setData(new Tuple(new Data[] {spectra, lines})); } }; cell.addReference(line_ref); VisADSlider[] value_sliders = new VisADSlider[NFILES]; VisADSlider[] hue_sliders = new VisADSlider[NFILES]; value_refs = new DataReferenceImpl[NFILES]; hue_refs = new DataReferenceImpl[NFILES]; JFrame frame = new JFrame("VisAD MultiLUT"); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) {System.exit(0);} }); // create JPanel in frame JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS)); panel.setAlignmentY(JPanel.TOP_ALIGNMENT); panel.setAlignmentX(JPanel.LEFT_ALIGNMENT); frame.setContentPane(panel); JPanel left = new JPanel(); left.setLayout(new BoxLayout(left, BoxLayout.Y_AXIS)); left.setAlignmentY(JPanel.TOP_ALIGNMENT); left.setAlignmentX(JPanel.LEFT_ALIGNMENT); JPanel center = new JPanel(); center.setLayout(new BoxLayout(center, BoxLayout.Y_AXIS)); center.setAlignmentY(JPanel.TOP_ALIGNMENT); center.setAlignmentX(JPanel.LEFT_ALIGNMENT); JPanel right = new JPanel(); right.setLayout(new BoxLayout(right, BoxLayout.Y_AXIS)); right.setAlignmentY(JPanel.TOP_ALIGNMENT); right.setAlignmentX(JPanel.LEFT_ALIGNMENT); panel.add(left); panel.add(center); panel.add(right); Dimension d = new Dimension(300, 1000); left.setMaximumSize(d); center.setMaximumSize(d); for (int i=0; i<NFILES; i++) { value_refs[i] = new DataReferenceImpl("value" + i); value_refs[i].setData(new Real(1.0)); value_sliders[i] = new VisADSlider("value" + i, -100, 100, 100, 0.01, value_refs[i], RealType.Generic); left.add(value_sliders[i]); hue_refs[i] = new DataReferenceImpl("hue" + i); hue_refs[i].setData(new Real(1.0)); hue_sliders[i] = new VisADSlider("hue" + i, -100, 100, 100, 0.01, hue_refs[i], RealType.Generic); center.add(hue_sliders[i]); } // slider button for setting all value sliders to 0 JButton value_clear = new JButton("Zero values"); value_clear.addActionListener(this); value_clear.setActionCommand("value_clear"); left.add(Box.createVerticalStrut(10)); left.add(value_clear); // slider button for setting all value sliders to 1 JButton value_set = new JButton("One values"); value_set.addActionListener(this); value_set.setActionCommand("value_set"); left.add(value_set); // slider button for setting all hue sliders to 0 JButton hue_clear = new JButton("Zero hues"); hue_clear.addActionListener(this); hue_clear.setActionCommand("hue_clear"); center.add(Box.createVerticalStrut(10)); center.add(hue_clear); // slider button for setting all hue sliders to 1 JButton hue_set = new JButton("One hues"); hue_set.addActionListener(this); hue_set.setActionCommand("hue_set"); center.add(hue_set); // slider button for setting all hue sliders to 0 right.add(display1.getComponent()); right.add(display2.getComponent()); // vmin and vmax labels minmax = new JLabel(" "); left.add(Box.createVerticalStrut(30)); left.add(minmax); // "GO" button for applying computation in sliders JButton compute = new JButton("Compute"); compute.addActionListener(this); compute.setActionCommand("compute"); left.add(Box.createVerticalStrut(10)); left.add(compute); int WIDTH = 1200; int HEIGHT = 1000; Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); frame.setLocation(screenSize.width/2 - WIDTH/2, screenSize.height/2 - HEIGHT/2); frame.setSize(WIDTH, HEIGHT); frame.setVisible(true); doit(); }
|
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/d3560cf43f33592c964cabbb057bed37fea39a07/MultiLUT.java/clean/loci/MultiLUT.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1960,
12,
780,
833,
63,
5717,
540,
1216,
1860,
16,
8077,
1880,
503,
16,
18361,
288,
565,
514,
1577,
273,
1408,
31,
565,
514,
9026,
273,
2332,
18,
588,
1396,
2932,
768,
18,
11287,
8863,
565,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
1377,
1577,
273,
833,
63,
20,
15533,
1377,
309,
16051,
1214,
18,
5839,
1190,
12,
12877,
3719,
1577,
273,
1577,
397,
9026,
31,
565,
289,
565,
15987,
9038,
559,
2461,
273,
446,
31,
565,
8380,
2836,
273,
446,
31,
565,
514,
508,
273,
446,
31,
565,
1000,
444,
273,
446,
31,
565,
15987,
559,
8526,
460,
67,
2352,
273,
394,
15987,
559,
63,
50,
12669,
15533,
565,
924,
273,
394,
1431,
63,
50,
12669,
6362,
15533,
565,
2989,
9203,
4088,
273,
394,
2989,
9203,
2932,
6714,
8863,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
50,
12669,
31,
277,
27245,
288,
1377,
7257,
3193,
273,
261,
9038,
13,
4088,
18,
3190,
12,
1214,
397,
315,
3118,
38,
6,
397,
261,
77,
15,
21,
13,
397,
3552,
20385,
8863,
1377,
2286,
2828,
652,
273,
261,
974,
2828,
13,
3193,
18,
588,
1841,
12,
20,
1769,
1377,
20396,
974,
6875,
273,
261,
16384,
974,
13,
652,
18,
588,
8504,
12,
20,
1769,
1377,
444,
273,
6875,
18,
588,
3748,
694,
5621,
20308,
3163,
18,
659,
18,
8222,
2932,
542,
273,
315,
397,
444,
1769,
542,
273,
13921,
22,
40,
694,
30,
11311,
273,
16977,
1578,
2313,
225,
13037,
404,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1960,
12,
780,
833,
63,
5717,
540,
1216,
1860,
16,
8077,
1880,
503,
16,
18361,
288,
565,
514,
1577,
273,
1408,
31,
565,
514,
9026,
273,
2332,
18,
588,
1396,
2932,
768,
18,
11287,
8863,
565,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
1377,
1577,
273,
833,
63,
20,
15533,
1377,
309,
16051,
1214,
18,
5839,
1190,
12,
12877,
3719,
1577,
273,
1577,
397,
9026,
31,
565,
289,
565,
15987,
9038,
559,
2461,
273,
446,
31,
565,
8380,
2836,
273,
446,
31,
565,
514,
508,
273,
446,
31,
565,
1000,
444,
273,
446,
31,
565,
15987,
559,
8526,
460,
67,
2352,
273,
394,
15987,
559,
63,
50,
12669,
15533,
565,
924,
273,
394,
1431,
2
] |
return JFaceResources.getImageRegistry().get(Dialog.DLG_IMG_INFO);
|
return getShell().getDisplay().getSystemImage(SWT.ICON_INFORMATION);
|
protected Image getImage() { return JFaceResources.getImageRegistry().get(Dialog.DLG_IMG_INFO); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/bc99f2bd58d72867c073860f58aeaa32fc999633/BlockedJobsDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/BlockedJobsDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3421,
10567,
1435,
288,
202,
202,
2463,
804,
11824,
3805,
18,
588,
2040,
4243,
7675,
588,
12,
6353,
18,
8914,
43,
67,
3445,
43,
67,
5923,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3421,
10567,
1435,
288,
202,
202,
2463,
804,
11824,
3805,
18,
588,
2040,
4243,
7675,
588,
12,
6353,
18,
8914,
43,
67,
3445,
43,
67,
5923,
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
] |
if(fs.get(prefix+"."+configName) != null) { if(!(o[j].getValueString().equals(fs.get(prefix+"."+configName)))){ if(logMINOR) Logger.minor(this, "Setting "+prefix+"."+configName+" to "+fs.get(prefix+"."+configName));
|
if(fs.get(prefix+ '.' +configName) != null) { if(!(o[j].getValueString().equals(fs.get(prefix+ '.' +configName)))){ if(logMINOR) Logger.minor(this, "Setting "+prefix+ '.' +configName+" to "+fs.get(prefix+ '.' +configName));
|
public void run(FCPConnectionHandler handler, Node node) throws MessageInvalidException { Config config = node.config; SubConfig[] sc = config.getConfigs(); boolean logMINOR = Logger.shouldLog(Logger.MINOR, this); for(int i=0; i<sc.length ; i++){ Option[] o = sc[i].getOptions(); String prefix = sc[i].getPrefix(); String configName; for(int j=0; j<o.length; j++){ configName=o[j].getName(); if(logMINOR) Logger.minor(this, "Setting "+prefix+"."+configName); // we ignore unreconized parameters if(fs.get(prefix+"."+configName) != null) { if(!(o[j].getValueString().equals(fs.get(prefix+"."+configName)))){ if(logMINOR) Logger.minor(this, "Setting "+prefix+"."+configName+" to "+fs.get(prefix+"."+configName)); try{ o[j].setValue(fs.get(prefix+"."+configName)); }catch(Exception e){ // Bad values silently fail from an FCP perspective, but the FCP client can tell if a change took by comparing ConfigData messages before and after Logger.error(this, "Caught "+e, e); } } } } } node.clientCore.storeConfig(); handler.outputHandler.queue(new ConfigData(node, true)); }
|
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/62fd59041864b4ed1f43adc676de6bfb5ea977f3/ModifyConfig.java/clean/src/freenet/node/fcp/ModifyConfig.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
809,
642,
273,
756,
18,
1425,
31,
202,
202,
1676,
809,
8526,
888,
273,
642,
18,
588,
8062,
5621,
9506,
202,
6494,
613,
6236,
916,
273,
4242,
18,
13139,
1343,
12,
3328,
18,
6236,
916,
16,
333,
1769,
9506,
202,
1884,
12,
474,
277,
33,
20,
31,
277,
32,
1017,
18,
2469,
274,
277,
27245,
95,
1082,
202,
1895,
8526,
320,
273,
888,
63,
77,
8009,
588,
1320,
5621,
1082,
202,
780,
1633,
273,
888,
63,
77,
8009,
588,
2244,
5621,
1082,
202,
780,
24710,
31,
25083,
202,
1884,
12,
474,
525,
33,
20,
31,
525,
32,
83,
18,
2469,
31,
525,
27245,
95,
9506,
202,
1425,
461,
33,
83,
63,
78,
8009,
17994,
5621,
9506,
202,
430,
12,
1330,
6236,
916,
13,
4242,
18,
17364,
12,
2211,
16,
315,
5568,
13773,
3239,
9078,
1199,
15,
1425,
461,
1769,
6862,
9506,
202,
759,
732,
2305,
640,
266,
591,
1235,
1472,
4697,
202,
430,
12,
2556,
18,
588,
12,
3239,
9078,
1199,
15,
1425,
461,
13,
480,
446,
13,
288,
6862,
202,
430,
12,
5,
12,
83,
63,
78,
8009,
24805,
780,
7675,
14963,
12,
2556,
18,
588,
12,
3239,
9078,
1199,
15,
1425,
461,
3719,
3719,
95,
25083,
202,
430,
12,
1330,
6236,
916,
13,
4242,
18,
17364,
12,
2211,
16,
315,
5568,
13773,
3239,
9078,
1199,
15,
1425,
461,
9078,
358,
13773,
2556,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
809,
642,
273,
756,
18,
1425,
31,
202,
202,
1676,
809,
8526,
888,
273,
642,
18,
588,
8062,
5621,
9506,
202,
6494,
613,
6236,
916,
273,
4242,
18,
13139,
1343,
12,
3328,
18,
6236,
916,
16,
333,
1769,
9506,
202,
1884,
12,
474,
277,
33,
20,
31,
277,
32,
1017,
18,
2469,
274,
277,
27245,
95,
1082,
202,
1895,
8526,
320,
273,
888,
63,
77,
8009,
588,
1320,
5621,
1082,
202,
780,
1633,
273,
888,
63,
77,
8009,
588,
2244,
5621,
1082,
202,
780,
24710,
31,
25083,
202,
1884,
12,
474,
525,
33,
20,
31,
525,
32,
2
] |
Object target = getTarget(); if (!(target instanceof Fig)) { Project p = ProjectManager.getManager().getCurrentProject(); Collection col = p.findFigsForMember(target); if (col == null || col.isEmpty()) { target = null; } else { target = col.iterator().next(); } } return target instanceof Fig ? (Fig) target : null;
|
return _figTarget;
|
public Fig getFigTarget() { Object target = getTarget(); if (!(target instanceof Fig)) { Project p = ProjectManager.getManager().getCurrentProject(); Collection col = p.findFigsForMember(target); if (col == null || col.isEmpty()) { target = null; } else { target = col.iterator().next(); } } return target instanceof Fig ? (Fig) target : null; }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/d5cbce0bdbb219cb89b05407c2c3a0195079296c/TargetManager.java/clean/src_new/org/argouml/ui/targetmanager/TargetManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
478,
360,
2812,
360,
2326,
1435,
288,
3639,
1033,
1018,
273,
8571,
5621,
3639,
309,
16051,
12,
3299,
1276,
478,
360,
3719,
288,
5411,
5420,
293,
273,
5420,
1318,
18,
588,
1318,
7675,
588,
3935,
4109,
5621,
5411,
2200,
645,
273,
293,
18,
4720,
42,
360,
28388,
4419,
12,
3299,
1769,
5411,
309,
261,
1293,
422,
446,
747,
645,
18,
291,
1921,
10756,
288,
7734,
1018,
273,
446,
31,
5411,
289,
469,
288,
7734,
1018,
273,
645,
18,
9838,
7675,
4285,
5621,
5411,
289,
3639,
289,
3639,
327,
1018,
1276,
478,
360,
692,
261,
42,
360,
13,
1018,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
478,
360,
2812,
360,
2326,
1435,
288,
3639,
1033,
1018,
273,
8571,
5621,
3639,
309,
16051,
12,
3299,
1276,
478,
360,
3719,
288,
5411,
5420,
293,
273,
5420,
1318,
18,
588,
1318,
7675,
588,
3935,
4109,
5621,
5411,
2200,
645,
273,
293,
18,
4720,
42,
360,
28388,
4419,
12,
3299,
1769,
5411,
309,
261,
1293,
422,
446,
747,
645,
18,
291,
1921,
10756,
288,
7734,
1018,
273,
446,
31,
5411,
289,
469,
288,
7734,
1018,
273,
645,
18,
9838,
7675,
4285,
5621,
5411,
289,
3639,
289,
3639,
327,
1018,
1276,
478,
360,
692,
261,
42,
360,
13,
1018,
294,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Vector vec = getEntitiesToDeployForRound(round); return ( ((null == vec) || (vec.size() == 0)) ? false : true);
|
Vector vec = getEntitiesToDeployForRound(round); return ( ((null == vec) || (vec.size() == 0)) ? false : true);
|
public boolean shouldDeployForRound(int round) { Vector vec = getEntitiesToDeployForRound(round); return ( ((null == vec) || (vec.size() == 0)) ? false : true); }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c0d331e47a5378fcd2571e60b810f6a4e16def7d/Game.java/buggy/megamek/src/megamek/common/Game.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1410,
10015,
1290,
11066,
12,
474,
3643,
13,
288,
1377,
5589,
7062,
273,
4774,
6678,
774,
10015,
1290,
11066,
12,
2260,
1769,
1377,
327,
261,
14015,
2011,
422,
7062,
13,
747,
261,
8799,
18,
1467,
1435,
422,
374,
3719,
692,
629,
294,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
1250,
1410,
10015,
1290,
11066,
12,
474,
3643,
13,
288,
1377,
5589,
7062,
273,
4774,
6678,
774,
10015,
1290,
11066,
12,
2260,
1769,
1377,
327,
261,
14015,
2011,
422,
7062,
13,
747,
261,
8799,
18,
1467,
1435,
422,
374,
3719,
692,
629,
294,
638,
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
] |
} if(bootIDChanged) { KeyTracker oldPrev = null; KeyTracker oldCur = null; synchronized(this) {
|
if(bootIDChanged) {
|
public boolean completedHandshake(long thisBootID, byte[] data, int offset, int length, BlockCipher encCipher, byte[] encKey, Peer replyTo, boolean unverified) { logMINOR = Logger.shouldLog(Logger.MINOR, this); long now = System.currentTimeMillis(); synchronized(this) { completedHandshake = true; handshakeCount = 0; bogusNoderef = false; isConnected = true; } stopARKFetcher(); try { // First, the new noderef processNewNoderef(data, offset, length); } catch (FSParseException e1) { synchronized(this) { bogusNoderef = true; // Disconnect, something broke isConnected = false; } Logger.error(this, "Failed to parse new noderef for "+this+": "+e1, e1); } boolean routable = true; boolean newer = false; boolean older = false; if(reverseInvalidVersion()) { try { node.setNewestPeerLastGoodVersion(Version.getArbitraryBuildNumber(getLastGoodVersion())); } catch (NumberFormatException e) { // ignore } Logger.normal(this, "Not connecting to "+this+" - reverse invalid version "+Version.getVersionString()+" for peer's lastGoodversion: "+getLastGoodVersion()); newer = true; } else { newer = false; } if(invalidVersion()) { Logger.normal(this, "Not connecting to "+this+" - invalid version "+getVersion()); older = true; routable = false; } else { older = false; } synchronized(this) { isRoutable = routable; verifiedIncompatibleNewerVersion = newer; verifiedIncompatibleOlderVersion = older; } KeyTracker newTracker = new KeyTracker(this, encCipher, encKey); changedIP(replyTo); boolean bootIDChanged = false; synchronized(this) { bootIDChanged = (thisBootID != this.bootID); if(bootIDChanged && logMINOR) Logger.minor(this, "Changed boot ID from "+bootID+" to "+thisBootID+" for "+getPeer()); this.bootID = thisBootID; connectedTime = now; } if(bootIDChanged) { KeyTracker oldPrev = null; KeyTracker oldCur = null; synchronized(this) { oldPrev = previousTracker; oldCur = currentTracker; previousTracker = null; currentTracker = null; } if(oldPrev != null) { oldPrev.completelyDeprecated(newTracker); } if(oldCur != null) oldCur.completelyDeprecated(newTracker); node.lm.lostOrRestartedNode(this); } // else it's a rekey if(unverified) { synchronized(this) { unverifiedTracker = newTracker; ctx = null; } if(logMINOR) Logger.minor(this, "sentHandshake() being called for unverifiedTracker: "+getPeer()); sentHandshake(); } else { KeyTracker prev; synchronized(this) { prev = currentTracker; previousTracker = prev; currentTracker = newTracker; unverifiedTracker = null; neverConnected = false; peerAddedTime = 0; // don't store anymore ctx = null; } if(prev != null) prev.deprecated(); } synchronized(this) { Logger.normal(this, "Completed handshake with "+this+" on "+replyTo+" - current: "+currentTracker+" old: "+previousTracker+" unverified: "+unverifiedTracker+" bootID: "+thisBootID+" getName(): "+getName()); } try { receivedPacket(unverified); } catch (NotConnectedException e) { Logger.error(this, "Disconnected in completedHandshake with "+this); return true; // i suppose } if(newer || older || !isConnected()) node.peers.disconnected(this); else node.peers.addConnectedPeer(this); setPeerNodeStatus(now); synchronized(this) { sentInitialMessages = false; } if(isConnected()) { onConnect(); } return true; }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/92061e70ef36714b61c11ad2640dd5689d28deb3/PeerNode.java/clean/src/freenet/node/PeerNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
5951,
14545,
12,
5748,
333,
15817,
734,
16,
1160,
8526,
501,
16,
509,
1384,
16,
509,
769,
16,
3914,
13896,
2446,
13896,
16,
1160,
8526,
2446,
653,
16,
10669,
30934,
16,
1250,
640,
19685,
13,
288,
377,
202,
1330,
6236,
916,
273,
4242,
18,
13139,
1343,
12,
3328,
18,
6236,
916,
16,
333,
1769,
377,
202,
5748,
2037,
273,
2332,
18,
2972,
28512,
5621,
377,
202,
377,
202,
22043,
12,
2211,
13,
288,
377,
202,
202,
13615,
14545,
273,
638,
31,
377,
202,
202,
2349,
7478,
1380,
273,
374,
31,
540,
202,
70,
28774,
50,
369,
822,
74,
273,
629,
31,
1082,
202,
291,
8932,
273,
638,
31,
3639,
289,
377,
202,
5681,
9584,
16855,
5621,
202,
202,
698,
288,
1082,
202,
759,
5783,
16,
326,
394,
14003,
822,
74,
1082,
202,
2567,
1908,
50,
369,
822,
74,
12,
892,
16,
1384,
16,
769,
1769,
202,
202,
97,
1044,
261,
4931,
13047,
425,
21,
13,
288,
1082,
202,
22043,
12,
2211,
13,
288,
9506,
202,
70,
28774,
50,
369,
822,
74,
273,
638,
31,
9506,
202,
759,
23957,
16,
5943,
324,
6822,
9506,
202,
291,
8932,
273,
629,
31,
1082,
202,
97,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
2925,
358,
1109,
394,
14003,
822,
74,
364,
13773,
2211,
15,
6877,
13773,
73,
21,
16,
425,
21,
1769,
202,
202,
97,
202,
202,
6494,
721,
3050,
273,
638,
31,
202,
202,
6494,
16069,
273,
629,
31,
202,
202,
6494,
12156,
273,
629,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
5951,
14545,
12,
5748,
333,
15817,
734,
16,
1160,
8526,
501,
16,
509,
1384,
16,
509,
769,
16,
3914,
13896,
2446,
13896,
16,
1160,
8526,
2446,
653,
16,
10669,
30934,
16,
1250,
640,
19685,
13,
288,
377,
202,
1330,
6236,
916,
273,
4242,
18,
13139,
1343,
12,
3328,
18,
6236,
916,
16,
333,
1769,
377,
202,
5748,
2037,
273,
2332,
18,
2972,
28512,
5621,
377,
202,
377,
202,
22043,
12,
2211,
13,
288,
377,
202,
202,
13615,
14545,
273,
638,
31,
377,
202,
202,
2349,
7478,
1380,
273,
374,
31,
540,
202,
70,
28774,
50,
369,
822,
74,
273,
629,
31,
1082,
202,
291,
8932,
273,
638,
31,
3639,
289,
377,
202,
5681,
9584,
16855,
5621,
2
] |
if (sorter instanceof CategorySorter)
|
if (sorter instanceof CategorySorter) {
|
private boolean isShowingHierarchy() { ViewerSorter sorter = view.getViewer().getSorter(); if (sorter instanceof CategorySorter) return ((CategorySorter) sorter).getCategoryField() != null; return false; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/MarkerAdapter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
353,
5706,
310,
12074,
1435,
288,
202,
202,
18415,
24952,
19867,
273,
1476,
18,
588,
18415,
7675,
588,
24952,
5621,
202,
202,
430,
261,
2467,
387,
1276,
9856,
24952,
13,
1082,
202,
2463,
14015,
4457,
24952,
13,
19867,
2934,
588,
4457,
974,
1435,
480,
446,
31,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1152,
1250,
353,
5706,
310,
12074,
1435,
288,
202,
202,
18415,
24952,
19867,
273,
1476,
18,
588,
18415,
7675,
588,
24952,
5621,
202,
202,
430,
261,
2467,
387,
1276,
9856,
24952,
13,
1082,
202,
2463,
14015,
4457,
24952,
13,
19867,
2934,
588,
4457,
974,
1435,
480,
446,
31,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.principals.put(key, principal);
|
m_principals.put(key, principal);
|
protected synchronized void parse() { //reset the principals cache this.principals = new HashMap(); try { UserFactory.init(); UserManager factory = UserFactory.getInstance(); //this.log.debug("Reloaded the users.xml file into memory"); Map map = factory.getUsers(); //this.log.debug("Loaded " + map.size() + " users into memory"); Iterator iterator = map.keySet().iterator(); while (iterator.hasNext()) { String key = (String) iterator.next(); OpenNMSPrincipal principal = new OpenNMSPrincipal((User) map.get(key)); this.principals.put(key, principal); } //this.log.debug("Loaded the regular users into the principal cache"); } catch (MarshalException e) { //this.log.error("Could not parse the users.xml file", e); } catch (ValidationException e) { //this.log.error("Could not parse the users.xml file", e); } catch (FileNotFoundException e) { //this.log.error("Could not find the users.xml file", e); } catch (Exception e) { //this.log.error("Unexpected exception parsing users.xml file", e); } try { //load the "magic" users Map[] maps = this.parseMagicUsers(); Map magicUserToPasswordMapping = maps[0]; this.magicRoleMapping = maps[1]; //this.log.debug("Loaded the magic user config file"); Iterator iterator = magicUserToPasswordMapping.keySet().iterator(); while (iterator.hasNext()) { String name = (String) iterator.next(); String password = (String) magicUserToPasswordMapping.get(name); User magicUser = new User(); magicUser.setUserId(name); magicUser.setPassword(UserFactory.getInstance().encryptedPassword(password)); this.principals.put(name, new OpenNMSPrincipal(magicUser)); } //this.log.debug("Loaded the magic users into the principal cache"); this.magicUsersLastModified = this.magicUsersFile.lastModified(); //this.log.debug("Updated the magic user file last modified time stamp to " + this.magicUsersLastModified); } catch (FileNotFoundException e) { //this.log.error("Could not find the magic users file", e); } catch (IOException e) { //this.log.error("Could not read the magic users file", e); } catch (Exception e) { //this.log.error("Unexpected exception parsing users.xml file", e); } initialized = true; }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/73011c968f8c5392428cdb423188e5bc8a628dc6/OpenNMSTomcatRealm.java/clean/opennms-tomcat/src/main/java/org/opennms/web/authenticate/OpenNMSTomcatRealm.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
918,
1109,
1435,
288,
3639,
368,
6208,
326,
25160,
1247,
7734,
333,
18,
683,
14997,
273,
394,
4317,
5621,
3639,
775,
288,
5411,
2177,
1733,
18,
2738,
5621,
5411,
2177,
1318,
3272,
273,
2177,
1733,
18,
588,
1442,
5621,
5411,
368,
2211,
18,
1330,
18,
4148,
2932,
1971,
83,
2435,
326,
3677,
18,
2902,
585,
1368,
3778,
8863,
5411,
1635,
852,
273,
3272,
18,
588,
6588,
5621,
5411,
368,
2211,
18,
1330,
18,
4148,
2932,
8835,
315,
397,
852,
18,
1467,
1435,
397,
315,
3677,
1368,
3778,
8863,
5411,
4498,
2775,
273,
852,
18,
856,
694,
7675,
9838,
5621,
5411,
1323,
261,
9838,
18,
5332,
2134,
10756,
288,
7734,
514,
498,
273,
261,
780,
13,
2775,
18,
4285,
5621,
7734,
3502,
50,
3537,
9155,
8897,
273,
394,
3502,
50,
3537,
9155,
12443,
1299,
13,
852,
18,
588,
12,
856,
10019,
7734,
312,
67,
683,
14997,
18,
458,
12,
856,
16,
8897,
1769,
5411,
289,
5411,
368,
2211,
18,
1330,
18,
4148,
2932,
8835,
326,
6736,
3677,
1368,
326,
8897,
1247,
8863,
3639,
289,
1044,
261,
8105,
503,
425,
13,
288,
5411,
368,
2211,
18,
1330,
18,
1636,
2932,
4445,
486,
1109,
326,
3677,
18,
2902,
585,
3113,
425,
1769,
3639,
289,
1044,
261,
18146,
425,
13,
288,
5411,
368,
2211,
18,
1330,
18,
1636,
2932,
4445,
486,
1109,
326,
3677,
18,
2902,
585,
3113,
425,
1769,
3639,
289,
1044,
261,
812,
3990,
425,
13,
288,
5411,
368,
2211,
18,
1330,
18,
1636,
2932,
4445,
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,
3852,
918,
1109,
1435,
288,
3639,
368,
6208,
326,
25160,
1247,
7734,
333,
18,
683,
14997,
273,
394,
4317,
5621,
3639,
775,
288,
5411,
2177,
1733,
18,
2738,
5621,
5411,
2177,
1318,
3272,
273,
2177,
1733,
18,
588,
1442,
5621,
5411,
368,
2211,
18,
1330,
18,
4148,
2932,
1971,
83,
2435,
326,
3677,
18,
2902,
585,
1368,
3778,
8863,
5411,
1635,
852,
273,
3272,
18,
588,
6588,
5621,
5411,
368,
2211,
18,
1330,
18,
4148,
2932,
8835,
315,
397,
852,
18,
1467,
1435,
397,
315,
3677,
1368,
3778,
8863,
5411,
4498,
2775,
273,
852,
18,
856,
694,
7675,
9838,
5621,
5411,
1323,
261,
9838,
18,
5332,
2134,
10756,
288,
7734,
514,
498,
273,
261,
780,
13,
2775,
2
] |
} else { return; }
|
this.sendHtml(req,res,new Vector(), file, null) ; return ;
|
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { // Lets validate the session, e.g has the user logged in to Janus? if (super.checkSession(req,res) == false) return ; // Lets get all parameters for this servlet Properties params = this.getParameters(req) ; if (super.checkParameters(req, res, params) == false) { /* String header = "ConfLogin servlet. " ; String msg = params.toString() ; ChatError err = new ChatError(req,res,header,1) ; */ return ; } //log("tyest"); // Lets get the user object imcode.server.User user = super.getUserObj(req,res) ; if(user == null) return ; if ( isUserAuthorized( req, res, user ) ) { // Lets get serverinformation String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("userserver",host) ; // Lets detect which helparea the user wants //String helpArea = params.getProperty("HELP_AREA") ; // Lets get a VariableManager VariableManager vm = new VariableManager() ; String file = ""; // Lets create the path to our html page if ( params.getProperty("HELP_MODE").equalsIgnoreCase("USER") ) { file = USER_TEMPLATE ; } else if ( params.getProperty("HELP_MODE").equalsIgnoreCase("ADMIN") ) { //lets se if user has adminrights String metaId = getMetaId( req ); if ( metaId != null && userHasAdminRights( imcServer, Integer.parseInt( metaId ), user ) ) { file = ADMIN_TEMPLATE ; if( params.getProperty("HELP_AREA").equalsIgnoreCase("TEMPLATESPEC") ) { file = ADMIN_TEMPLATE2; } } else { String header = "ConfHelp servlet. " ; String msg = params.toString() ; ChatError err = new ChatError( req, res, header, 6 ); return ; } } //if( params.getProperty("HELP_SPEC").equalsIgnoreCase("SPEC") ) file = ADMIN_TEMPLATE2 ;// this.sendHtml(req,res,vm, file) ; this.sendHtml(req,res,new Vector(), file, null) ; return ; } else { return; } } //DoPost
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/ChatHelp.java/clean/servlets/chat/ChatHelp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
202,
95,
202,
202,
759,
511,
2413,
1954,
326,
1339,
16,
425,
18,
75,
711,
326,
729,
7545,
316,
358,
23214,
407,
35,
202,
202,
430,
261,
9565,
18,
1893,
2157,
12,
3658,
16,
455,
13,
422,
629,
13,
202,
2463,
274,
202,
202,
759,
511,
2413,
336,
777,
1472,
364,
333,
8100,
202,
202,
2297,
859,
273,
333,
18,
588,
2402,
12,
3658,
13,
274,
202,
202,
430,
261,
9565,
18,
1893,
2402,
12,
3658,
16,
400,
16,
859,
13,
422,
629,
13,
202,
202,
95,
1082,
202,
20308,
1082,
202,
780,
1446,
273,
315,
3976,
5358,
8100,
18,
315,
274,
1082,
202,
780,
1234,
273,
859,
18,
10492,
1435,
274,
1082,
202,
14163,
668,
393,
273,
394,
16903,
668,
12,
3658,
16,
455,
16,
3374,
16,
21,
13,
274,
1082,
202,
5549,
1082,
202,
2463,
274,
202,
202,
97,
3196,
202,
759,
1330,
2932,
4098,
395,
8863,
202,
202,
759,
511,
2413,
336,
326,
729,
733,
1875,
202,
381,
710,
18,
3567,
18,
1299,
729,
273,
2240,
18,
588,
1299,
2675,
12,
3658,
16,
455,
13,
274,
202,
202,
430,
12,
1355,
422,
446,
13,
327,
274,
202,
202,
430,
261,
29302,
15341,
12,
1111,
16,
400,
16,
729,
262,
262,
202,
202,
95,
1082,
202,
759,
511,
2413,
336,
1438,
13117,
1082,
202,
780,
1479,
273,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
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,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
202,
95,
202,
202,
759,
511,
2413,
1954,
326,
1339,
16,
425,
18,
75,
711,
326,
729,
7545,
316,
358,
23214,
407,
35,
202,
202,
430,
261,
9565,
18,
1893,
2157,
12,
3658,
16,
455,
13,
422,
629,
13,
202,
2463,
274,
202,
202,
759,
511,
2413,
336,
777,
1472,
364,
333,
8100,
202,
202,
2297,
859,
273,
333,
18,
588,
2402,
12,
3658,
13,
274,
202,
202,
430,
261,
9565,
18,
1893,
2402,
12,
3658,
16,
400,
16,
859,
13,
422,
629,
13,
202,
202,
95,
1082,
202,
20308,
1082,
202,
780,
1446,
273,
315,
3976,
5358,
8100,
18,
2
] |
private List findLessonTypesExecutionCourse(IExecutionCourse executionCourse) { List lessonTypes = new ArrayList(); if (executionCourse.getTheoreticalHours() != null && executionCourse.getTheoreticalHours().intValue() > 0) { lessonTypes.add(ShiftType.TEORICA); } if (executionCourse.getTheoPratHours() != null && executionCourse.getTheoPratHours().intValue() > 0) { lessonTypes.add(ShiftType.TEORICO_PRATICA); } if (executionCourse.getPraticalHours() != null && executionCourse.getPraticalHours().intValue() > 0) { lessonTypes.add(ShiftType.PRATICA); } if (executionCourse.getLabHours() != null && executionCourse.getLabHours().intValue() > 0) { lessonTypes.add(ShiftType.LABORATORIAL); } return lessonTypes; }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/07b3e341cc41d93437850ac69a3f8b0507470224/ReadSummaries.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/departmentAdmOffice/ReadSummaries.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
1104,
15313,
265,
2016,
3210,
39,
3117,
12,
45,
3210,
39,
3117,
4588,
39,
3117,
13,
288,
3639,
987,
22766,
2016,
273,
394,
2407,
5621,
3639,
309,
261,
16414,
39,
3117,
18,
588,
1986,
479,
88,
1706,
14910,
1435,
480,
446,
7734,
597,
4588,
39,
3117,
18,
588,
1986,
479,
88,
1706,
14910,
7675,
474,
620,
1435,
405,
374,
13,
288,
5411,
22766,
2016,
18,
1289,
12,
10544,
559,
18,
1448,
916,
2871,
37,
1769,
3639,
289,
3639,
309,
261,
16414,
39,
3117,
18,
588,
1986,
83,
2050,
270,
14910,
1435,
480,
446,
7734,
597,
4588,
39,
3117,
18,
588,
1986,
83,
2050,
270,
14910,
7675,
474,
620,
1435,
405,
374,
13,
288,
5411,
22766,
2016,
18,
1289,
12,
10544,
559,
18,
1448,
916,
2871,
51,
67,
8025,
11781,
37,
1769,
3639,
289,
3639,
309,
261,
16414,
39,
3117,
18,
588,
2050,
270,
1706,
14910,
1435,
480,
446,
7734,
597,
4588,
39,
3117,
18,
588,
2050,
270,
1706,
14910,
7675,
474,
620,
1435,
405,
374,
13,
288,
5411,
22766,
2016,
18,
1289,
12,
10544,
559,
18,
8025,
11781,
37,
1769,
3639,
289,
3639,
309,
261,
16414,
39,
3117,
18,
588,
14506,
14910,
1435,
480,
446,
597,
4588,
39,
3117,
18,
588,
14506,
14910,
7675,
474,
620,
1435,
405,
374,
13,
288,
5411,
22766,
2016,
18,
1289,
12,
10544,
559,
18,
48,
2090,
916,
3575,
6365,
1769,
3639,
289,
3639,
327,
22766,
2016,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
1104,
15313,
265,
2016,
3210,
39,
3117,
12,
45,
3210,
39,
3117,
4588,
39,
3117,
13,
288,
3639,
987,
22766,
2016,
273,
394,
2407,
5621,
3639,
309,
261,
16414,
39,
3117,
18,
588,
1986,
479,
88,
1706,
14910,
1435,
480,
446,
7734,
597,
4588,
39,
3117,
18,
588,
1986,
479,
88,
1706,
14910,
7675,
474,
620,
1435,
405,
374,
13,
288,
5411,
22766,
2016,
18,
1289,
12,
10544,
559,
18,
1448,
916,
2871,
37,
1769,
3639,
289,
3639,
309,
261,
16414,
39,
3117,
18,
588,
1986,
83,
2050,
270,
14910,
1435,
480,
446,
7734,
597,
4588,
39,
3117,
18,
588,
1986,
83,
2050,
270,
14910,
7675,
474,
620,
1435,
405,
374,
13,
288,
5411,
22766,
2016,
2
] |
||
System.out.print(((RubyString)m_sprintf(ruby, recv, args)).getValue());
|
ruby.getRuntime().getOutputStream().print(((RubyString)m_sprintf(ruby, recv, args)).getValue());
|
public static RubyObject m_printf(Ruby ruby, RubyObject recv, RubyObject args[]) { System.out.print(((RubyString)m_sprintf(ruby, recv, args)).getValue()); return ruby.getNil(); }
|
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/buggy/org/jruby/core/RbKernel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
921,
312,
67,
1461,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
19817,
921,
833,
63,
5717,
288,
3639,
22155,
18,
588,
5576,
7675,
588,
4632,
7675,
1188,
12443,
12,
54,
10340,
780,
13,
81,
67,
87,
1461,
12,
27768,
16,
10665,
16,
833,
13,
2934,
24805,
10663,
3639,
327,
22155,
18,
588,
12616,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
760,
19817,
921,
312,
67,
1461,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
19817,
921,
833,
63,
5717,
288,
3639,
22155,
18,
588,
5576,
7675,
588,
4632,
7675,
1188,
12443,
12,
54,
10340,
780,
13,
81,
67,
87,
1461,
12,
27768,
16,
10665,
16,
833,
13,
2934,
24805,
10663,
3639,
327,
22155,
18,
588,
12616,
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
] |
data = ContentFilter.filter(data, ctx.getBucketFactory(), typeName, uri, null);
|
FilterOutput fo = ContentFilter.filter(data, ctx.getBucketFactory(), typeName, uri, null); data = fo.data; typeName = fo.type;
|
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { //String ks = uri.toString(); String ks = uri.getPath(); HTTPRequest httprequest = new HTTPRequest(uri); if (ks.equals("/")) { if (httprequest.isParameterSet("key")) { MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/"+httprequest.getParam("key")); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } RedirectException re = new RedirectException(); try { String querystring = uri.getQuery(); if (querystring == null) { re.newuri = new URI("/welcome/"); } else { // TODP possibly a proper URLEncode method querystring = querystring.replace(' ', '+'); re.newuri = new URI("/welcome/?"+querystring); } } catch (URISyntaxException e) { // HUH!?! } throw re; }else if(ks.equals("/favicon.ico")){ byte[] buf = new byte[1024]; int len; InputStream strm = getClass().getResourceAsStream("staticfiles/favicon.ico"); if (strm == null) { this.sendErrorPage(ctx, 404, "Path not found", "The specified path does not exist."); return; } ctx.sendReplyHeaders(200, "OK", null, "image/x-icon", strm.available()); while ( (len = strm.read(buf)) > 0) { ctx.writeData(buf, 0, len); } return; } if(ks.startsWith("/")) ks = ks.substring(1); long maxSize = httprequest.getLongParam("max-size", MAX_LENGTH); StringBuffer buf = new StringBuffer(); FreenetURI key; try { key = new FreenetURI(ks); } catch (MalformedURLException e) { ctx.getPageMaker().makeHead(buf, "Invalid key"); buf.append("<div class=\"infobox infobox-error\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Invalid key\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("Expected a freenet key, but got "+HTMLEncoder.encode(ks)+"\n"); ctx.getPageMaker().makeBackLink(buf,ctx); buf.append("<br><a href=\"/\" title=\"Node Homepage\">Homepage</a>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 400, "text/html", "Invalid key", buf.toString()); return; } try { Logger.minor(this, "FProxy fetching "+key); FetchResult result = fetch(key, maxSize); // Now, is it safe? Bucket data = result.asBucket(); String typeName = result.getMimeType(); String reqParam = httprequest.getParam("type", null); if(reqParam != null) typeName = reqParam; Logger.minor(this, "Type: "+typeName+" ("+result.getMimeType()+" "+reqParam+")"); long now = System.currentTimeMillis(); String forceString = httprequest.getParam("force"); boolean force = false; boolean forcedownload = false; if(forceString != null) { if(forceString.equals(getForceValue(key, now)) || forceString.equals(getForceValue(key, now-FORCE_GRAIN_INTERVAL))) force = true; } if(httprequest.isParameterSet("forcedownload")) { // Download to disk, this should be safe, and is set when we do "force download to disk" from a dangerous-content-warning page. typeName = "application/x-msdownload"; forcedownload = true; } try { if(!force && !forcedownload) { data = ContentFilter.filter(data, ctx.getBucketFactory(), typeName, uri, null); } if (forcedownload) { MultiValueTable headers = new MultiValueTable(); headers.put("Content-Disposition", "attachment"); ctx.sendReplyHeaders(200, "OK", headers, typeName, data.size()); ctx.writeData(data); } else { // Send the data, intact writeReply(ctx, 200, typeName, "OK", data); } } catch (UnsafeContentTypeException e) { ctx.getPageMaker().makeHead(buf, "Potentially Dangerous Content"); buf.append("<div class=\"infobox infobox-alert\">"); buf.append("<div class=\"infobox-header\">").append(e.getHTMLEncodedTitle()).append("</div>"); buf.append("<div class=\"infobox-content\">"); buf.append(e.getExplanation()); buf.append("<p>Your options are:</p><ul>\n"); buf.append("<li><a href=\"/"+key.toString(false)+"?type=text/plain\">Click here</a> to open the file as plain text (this should not be dangerous, but it may be garbled).</li>\n"); // FIXME: is this safe? See bug #131 buf.append("<li><a href=\"/"+key.toString(false)+"?forcedownload\">Click here</a> to force your browser to download the file to disk.</li>\n"); buf.append("<li><a href=\"/"+key.toString(false)+"?force="+getForceValue(key, now)+"\">Click here</a> to open the file as "+HTMLEncoder.encode(typeName)+".</li>\n"); buf.append("<li><a href=\"/\">Click here</a> to go to the FProxy home page.</li>\n"); buf.append("</ul></div>"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); } } catch (FetchException e) { String msg = e.getMessage(); String extra = ""; if(e.mode == FetchException.NOT_ENOUGH_METASTRINGS) { this.writePermanentRedirect(ctx, "Not enough meta-strings", "/" + URLEncoder.encode(key.toString(false)) + "/"); } else if(e.newURI != null) { this.writePermanentRedirect(ctx, msg, "/"+e.newURI.toString()); } else if(e.mode == FetchException.TOO_BIG) { ctx.getPageMaker().makeHead(buf, "Large File"); buf.append("<table style=\"border: none; \">\n"); String fnam = getFilename(e, key, e.getExpectedMimeType()); buf.append("<tr><td><b>Filename</b></td><td>"); buf.append("<a href=\"/"+URLEncoder.encode(key.toString(false))+"\">"); buf.append(fnam); buf.append("</a>"); buf.append("</td></tr>\n"); boolean finalized = e.finalizedSize(); if(e.expectedSize > 0) { buf.append("<tr><td><b>"); if(!finalized) buf.append("Expected size (may change)"); else buf.append("Size"); buf.append("</b></td><td>"); buf.append(SizeUtil.formatSize(e.expectedSize)); buf.append("</td></tr>\n"); } String mime = e.getExpectedMimeType(); if(mime != null) { buf.append("<tr><td><b>"); if(!finalized) buf.append("Expected MIME type"); else buf.append("MIME type"); buf.append("</b></td><td>"); buf.append(mime); buf.append(" bytes </td></tr>\n"); } // FIXME filename buf.append("</table>\n"); buf.append("<br />The Freenet key you requested refers to a large file. Files of this size cannot generally be sent directly to your browser since they take too long for your Freenet node to retrieve. The following options are available: "); buf.append("<ul>"); buf.append("<li><form method=\"get\" action=\"/"+key.toString(false)+"\">"); buf.append("<input type=\"hidden\" name=\"max-size\" value=\""+e.expectedSize+"\">"); buf.append("<input type=\"submit\" name=\"fetch\" value=\"Fetch anyway and display file in browser\">"); buf.append("</form></li>\n"); buf.append("<li><form method=\"post\" action=\"/queue/\">"); buf.append("<input type=\"hidden\" name=\"key\" value=\""+key.toString(false)+"\">"); buf.append("<input type=\"hidden\" name=\"return-type\" value=\"disk\">"); buf.append("<input type=\"hidden\" name=\"persistence\" value=\"forever\">"); buf.append("<input type=\"hidden\" name=\"formPassword\" value=\""+node.formPassword+"\">"); if(mime != null) buf.append("<input type=\"hidden\" name=\"type\" value=\""+URLEncoder.encode(mime)+"\">"); buf.append("<input type=\"submit\" name=\"download\" value=\"Download in background and store in downloads directory\">"); buf.append("</form></li>\n"); // FIXME add a queue-a-download option.// buf.append("<li>Save it to disk at </li>"); // FIXME add return-to-referring-page //buf.append("<li>Return to the referring page: "); buf.append("<li><a href=\"/\" title=\"FProxy Home Page\" >Abort and return to the FProxy home page</a></li>"); buf.append("</ul>"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); // FIXME provide option to queue write to disk. } else { if(e.errorCodes != null) extra = "<pre>"+e.errorCodes.toVerboseString()+"</pre>"; ctx.getPageMaker().makeHead(buf,FetchException.getShortMessage(e.mode)); buf.append("<div class=\"infobox infobox-error\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append(FetchException.getShortMessage(e.mode)+"\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("Error: "+HTMLEncoder.encode(msg)+extra+"\n"); ctx.getPageMaker().makeBackLink(buf,ctx); buf.append("<br><a href=\"/\" title=\"Node Homepage\">Homepage</a>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 500 /* close enough - FIXME probably should depend on status code */, "text/html", FetchException.getShortMessage(e.mode), buf.toString()); } } catch (Throwable t) { Logger.error(this, "Caught "+t, t); String msg = "<html><head><title>Internal Error</title></head><body><h1>Internal Error: please report</h1><pre>"; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); t.printStackTrace(pw); pw.flush(); msg = msg + sw.toString() + "</pre></body></html>"; this.writeReply(ctx, 500, "text/html", "Internal Error", msg); } }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/4a6e957580e2358253e9631a718382ca710e680b/FProxyToadlet.java/buggy/src/freenet/clients/http/FProxyToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1875,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
759,
780,
11654,
273,
2003,
18,
10492,
5621,
202,
202,
780,
11654,
273,
2003,
18,
588,
743,
5621,
9506,
202,
23891,
1062,
2293,
273,
394,
25238,
12,
1650,
1769,
9506,
202,
430,
261,
7904,
18,
14963,
2932,
4898,
3719,
288,
1082,
202,
430,
261,
2022,
1484,
456,
18,
291,
1662,
694,
2932,
856,
6,
3719,
288,
9506,
202,
5002,
620,
1388,
1607,
273,
394,
5991,
620,
1388,
5621,
6862,
9506,
202,
2485,
18,
458,
2932,
2735,
3113,
4016,
15,
2022,
1484,
456,
18,
588,
786,
2932,
856,
7923,
1769,
9506,
202,
5900,
18,
4661,
7817,
3121,
12,
23,
3103,
16,
315,
2043,
3113,
1607,
16,
446,
16,
374,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
25083,
202,
5961,
503,
283,
273,
394,
9942,
503,
5621,
1082,
202,
698,
288,
9506,
202,
780,
20741,
273,
2003,
18,
588,
1138,
5621,
6862,
9506,
202,
430,
261,
2271,
1080,
422,
446,
13,
288,
6862,
202,
266,
18,
2704,
1650,
273,
394,
3699,
2932,
19,
91,
16312,
4898,
1769,
9506,
202,
97,
469,
288,
6862,
202,
759,
399,
1212,
52,
10016,
279,
5338,
1976,
5509,
707,
6862,
202,
2271,
1080,
273,
20741,
18,
2079,
2668,
2265,
10058,
1769,
6862,
202,
266,
18,
2704,
1650,
273,
394,
3699,
2932,
19,
91,
16312,
19,
7225,
15,
2271,
1080,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1875,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
759,
780,
11654,
273,
2003,
18,
10492,
5621,
202,
202,
780,
11654,
273,
2003,
18,
588,
743,
5621,
9506,
202,
23891,
1062,
2293,
273,
394,
25238,
12,
1650,
1769,
9506,
202,
430,
261,
7904,
18,
14963,
2932,
4898,
3719,
288,
1082,
202,
430,
261,
2022,
1484,
456,
18,
291,
1662,
694,
2932,
856,
6,
3719,
288,
9506,
202,
5002,
620,
1388,
1607,
273,
394,
5991,
620,
1388,
5621,
6862,
9506,
202,
2485,
18,
458,
2932,
2735,
3113,
4016,
15,
2022,
1484,
456,
18,
588,
786,
2932,
2
] |
SAXParserImpl(SAXParserFactory spf, Hashtable features) throws SAXException { // Instantiate a SAXParser directly and not through SAX so that we // use the right ClassLoader xmlReader = new org.apache.xerces.parsers.SAXParser(); // Default Xerces2 configuration automatically enables XML Schema // validation which is not backward compatible w/ JAXP so turn it // off by default xmlReader.setFeature(Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE, false); // Validation validating = spf.isValidating(); String validation = "http://xml.org/sax/features/validation"; // If validating, provide a default ErrorHandler that prints // validation errors with a warning telling the user to set an // ErrorHandler. Note: this does not handle all cases. if (validating) { xmlReader.setErrorHandler(new DefaultValidationErrorHandler()); } // Allow SAX parser to use a different ErrorHandler if it wants to xmlReader.setFeature(validation, validating); // "namespaceAware" == SAX Namespaces feature // Note: there is a compatibility problem here with default values: // JAXP default is false while SAX 2 default is true! namespaceAware = spf.isNamespaceAware(); String namespaces = "http://xml.org/sax/features/namespaces"; xmlReader.setFeature(namespaces, namespaceAware); // SAX "namespaces" and "namespace-prefixes" features must not both // be false as specified by SAX if (namespaceAware == false) { String prefixes = "http://xml.org/sax/features/namespace-prefixes"; xmlReader.setFeature(prefixes, true); } setFeatures(features); }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/68169e6c70704741b6b7b8684ec68b69ca1d1c5e/SAXParserImpl.java/buggy/src/org/apache/xerces/jaxp/SAXParserImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
10168,
2678,
2828,
12,
55,
2501,
2678,
1733,
1694,
74,
16,
18559,
4467,
13,
3639,
1216,
14366,
565,
288,
3639,
368,
26492,
279,
10168,
2678,
5122,
471,
486,
3059,
10168,
1427,
716,
732,
3639,
368,
999,
326,
2145,
9403,
3639,
2025,
2514,
273,
394,
2358,
18,
19211,
18,
92,
264,
764,
18,
11104,
18,
55,
2501,
2678,
5621,
3639,
368,
2989,
1139,
264,
764,
22,
1664,
6635,
19808,
3167,
4611,
3639,
368,
3379,
1492,
353,
486,
12555,
7318,
341,
19,
7431,
52,
1427,
7005,
518,
3639,
368,
3397,
635,
805,
3639,
2025,
2514,
18,
542,
4595,
12,
2918,
18,
60,
654,
1441,
55,
67,
18257,
67,
6307,
397,
11794,
5245,
18,
14233,
67,
5063,
2689,
67,
18257,
16,
629,
1769,
3639,
368,
5684,
3639,
18075,
273,
1694,
74,
18,
26810,
1776,
5621,
3639,
514,
3379,
273,
315,
2505,
2207,
2902,
18,
3341,
19,
87,
651,
19,
7139,
19,
8685,
14432,
3639,
368,
971,
18075,
16,
5615,
279,
805,
26406,
716,
14971,
3639,
368,
3379,
1334,
598,
279,
3436,
9276,
310,
326,
729,
358,
444,
392,
3639,
368,
26406,
18,
225,
3609,
30,
333,
1552,
486,
1640,
777,
6088,
18,
3639,
309,
261,
877,
1776,
13,
288,
5411,
2025,
2514,
18,
542,
17729,
12,
2704,
2989,
12101,
1503,
10663,
3639,
289,
3639,
368,
7852,
10168,
2082,
358,
999,
279,
3775,
26406,
309,
518,
14805,
358,
3639,
2025,
2514,
18,
542,
4595,
12,
8685,
16,
18075,
1769,
3639,
368,
315,
4937,
10155,
6,
422,
10168,
5276,
4996,
2572,
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,
10168,
2678,
2828,
12,
55,
2501,
2678,
1733,
1694,
74,
16,
18559,
4467,
13,
3639,
1216,
14366,
565,
288,
3639,
368,
26492,
279,
10168,
2678,
5122,
471,
486,
3059,
10168,
1427,
716,
732,
3639,
368,
999,
326,
2145,
9403,
3639,
2025,
2514,
273,
394,
2358,
18,
19211,
18,
92,
264,
764,
18,
11104,
18,
55,
2501,
2678,
5621,
3639,
368,
2989,
1139,
264,
764,
22,
1664,
6635,
19808,
3167,
4611,
3639,
368,
3379,
1492,
353,
486,
12555,
7318,
341,
19,
7431,
52,
1427,
7005,
518,
3639,
368,
3397,
635,
805,
3639,
2025,
2514,
18,
542,
4595,
12,
2918,
18,
60,
654,
1441,
55,
67,
18257,
67,
6307,
397,
11794,
5245,
18,
14233,
67,
5063,
2689,
67,
18257,
16,
2
] |
||
if(sChannel != null) sChannel.close();
|
if (sChannel == null) { log.debug("LDAPPlugin: failed to connect within specified timeout"); return false; } log.debug("LDAPPlugin.isServer: connect successful");
|
private boolean isServer(InetAddress host, int port, int retries, int timeout) { Category log = ThreadCategory.getInstance(getClass()); boolean isAServer = false; //first just try a connection to the box via socket. Just in case there is //a no way to route to the address, don't iterate through the retries, as a //NoRouteToHost exception will only be thrown after about 5 minutes, thus tying //up the thread SocketChannel sChannel = null; try { sChannel = SocketChannelUtil.getConnectedSocketChannel(host, port, timeout); if(sChannel != null) sChannel.close(); //now go ahead and attempt to determin if LDAP is on this host for (int attempts=0; attempts <= retries && !isAServer; attempts++) { log.debug("LDAPPlugin.isServer: attempt " + attempts + " to connect host " + host.getHostAddress()); try { LDAPConnection lc = new LDAPConnection(new TimeoutLDAPSocket(timeout)); lc.connect(host.getHostAddress(),port); isAServer = true; } catch (LDAPException e) { isAServer = false; } } } catch(ConnectException e) { // Connection refused!! No need to perform retries. // log.debug(getClass().getName()+": connection refused to " + host.getHostAddress() + ":" + port); } catch(NoRouteToHostException e) { // No route to host!! No need to perform retries. e.fillInStackTrace(); log.warn(getClass().getName()+": No route to host " + host.getHostAddress(), e); throw new UndeclaredThrowableException(e); } catch(InterruptedIOException e) { // ignore totally, we expect to get this // } catch(Throwable t) { log.warn(getClass().getName()+": An undeclared throwable exception caught contacting host " + host.getHostAddress(), t); } return isAServer; }
|
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/9ea114a625b6d7fcfcbe71092a747eef4338abde/LdapPlugin.java/buggy/src/services/org/opennms/netmgt/capsd/LdapPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
353,
2081,
12,
382,
278,
1887,
1479,
16,
509,
1756,
16,
509,
9453,
16,
509,
2021,
13,
202,
95,
202,
202,
4457,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
202,
202,
6494,
25997,
2081,
273,
629,
31,
9506,
202,
759,
3645,
2537,
775,
279,
1459,
358,
326,
3919,
3970,
2987,
18,
12526,
316,
648,
1915,
353,
202,
202,
759,
69,
1158,
4031,
358,
1946,
358,
326,
1758,
16,
2727,
1404,
7401,
3059,
326,
9453,
16,
487,
279,
202,
202,
759,
2279,
3255,
774,
2594,
1520,
903,
1338,
506,
6718,
1839,
2973,
1381,
6824,
16,
12493,
13806,
310,
202,
202,
759,
416,
326,
2650,
7734,
8758,
2909,
272,
2909,
273,
446,
31,
202,
202,
698,
202,
202,
95,
13491,
272,
2909,
273,
8758,
2909,
1304,
18,
588,
8932,
4534,
2909,
12,
2564,
16,
1756,
16,
2021,
1769,
13491,
309,
12,
87,
2909,
480,
446,
13,
27573,
272,
2909,
18,
4412,
5621,
1082,
202,
759,
3338,
1960,
17510,
471,
4395,
358,
6328,
309,
11916,
353,
603,
333,
1479,
1082,
202,
1884,
261,
474,
7531,
33,
20,
31,
7531,
1648,
9453,
597,
401,
291,
37,
2081,
31,
7531,
27245,
1082,
202,
95,
9506,
202,
1330,
18,
4148,
2932,
15496,
3773,
18,
291,
2081,
30,
4395,
315,
397,
7531,
397,
315,
358,
3077,
1479,
315,
397,
1479,
18,
588,
2594,
1887,
10663,
6862,
9506,
202,
698,
288,
6862,
202,
15496,
1952,
9109,
273,
394,
11916,
1952,
12,
2704,
7804,
15496,
4534,
12,
4538,
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,
353,
2081,
12,
382,
278,
1887,
1479,
16,
509,
1756,
16,
509,
9453,
16,
509,
2021,
13,
202,
95,
202,
202,
4457,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
202,
202,
6494,
25997,
2081,
273,
629,
31,
9506,
202,
759,
3645,
2537,
775,
279,
1459,
358,
326,
3919,
3970,
2987,
18,
12526,
316,
648,
1915,
353,
202,
202,
759,
69,
1158,
4031,
358,
1946,
358,
326,
1758,
16,
2727,
1404,
7401,
3059,
326,
9453,
16,
487,
279,
202,
202,
759,
2279,
3255,
774,
2594,
1520,
903,
1338,
506,
6718,
1839,
2973,
1381,
6824,
16,
12493,
13806,
310,
202,
202,
759,
416,
326,
2650,
7734,
8758,
2909,
272,
2909,
273,
446,
31,
2
] |
Policy .getLog() .log( new Status( IStatus.ERROR, Policy.JFACE, IStatus.OK, "Undefined context while filtering dialog/window contexts", e));
|
if (context==null || !bindingErrors.contains(context.getId())) { if (context!=null) { bindingErrors.add(context.getId()); } Policy .getLog() .log( new Status( IStatus.ERROR, Policy.JFACE, IStatus.OK, "Undefined context while filtering dialog/window contexts", e)); }
|
private final Map createFilteredContextTreeFor(final Set contextIds) { // Check to see whether a dialog or window is active. boolean dialog = false; boolean window = false; Iterator contextIdItr = contextIds.iterator(); while (contextIdItr.hasNext()) { final String contextId = (String) contextIdItr.next(); if (IContextIds.CONTEXT_ID_DIALOG.equals(contextId)) { dialog = true; continue; } if (IContextIds.CONTEXT_ID_WINDOW.equals(contextId)) { window = true; continue; } } /* * Remove all context identifiers for contexts whose parents are dialog * or window, and the corresponding dialog or window context is not * active. */ contextIdItr = contextIds.iterator(); while (contextIdItr.hasNext()) { String contextId = (String) contextIdItr.next(); Context context = contextManager.getContext(contextId); try { String parentId = context.getParentId(); while (parentId != null) { if (IContextIds.CONTEXT_ID_DIALOG.equals(parentId)) { if (!dialog) { contextIdItr.remove(); } break; } if (IContextIds.CONTEXT_ID_WINDOW.equals(parentId)) { if (!window) { contextIdItr.remove(); } break; } if (IContextIds.CONTEXT_ID_DIALOG_AND_WINDOW .equals(parentId)) { if ((!window) && (!dialog)) { contextIdItr.remove(); } break; } context = contextManager.getContext(parentId); parentId = context.getParentId(); } } catch (NotDefinedException e) { // since this context was part of an undefined hierarchy, // I'm going to yank it out as a bad bet contextIdItr.remove(); // now log like you've never logged before! Policy .getLog() .log( new Status( IStatus.ERROR, Policy.JFACE, IStatus.OK, "Undefined context while filtering dialog/window contexts", //$NON-NLS-1$ e)); } } return createContextTreeFor(contextIds); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/89b45307323c00e1cd75c56ab038c3c15c1c8955/BindingManager.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/bindings/BindingManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
1635,
752,
14478,
1042,
2471,
1290,
12,
6385,
1000,
819,
2673,
13,
288,
202,
202,
759,
2073,
358,
2621,
2856,
279,
6176,
578,
2742,
353,
2695,
18,
202,
202,
6494,
6176,
273,
629,
31,
202,
202,
6494,
2742,
273,
629,
31,
202,
202,
3198,
819,
548,
28984,
273,
819,
2673,
18,
9838,
5621,
202,
202,
17523,
261,
2472,
548,
28984,
18,
5332,
2134,
10756,
288,
1082,
202,
6385,
514,
819,
548,
273,
261,
780,
13,
819,
548,
28984,
18,
4285,
5621,
1082,
202,
430,
261,
45,
1042,
2673,
18,
13181,
67,
734,
67,
2565,
18683,
18,
14963,
12,
2472,
548,
3719,
288,
9506,
202,
12730,
273,
638,
31,
9506,
202,
17143,
31,
1082,
202,
97,
1082,
202,
430,
261,
45,
1042,
2673,
18,
13181,
67,
734,
67,
23407,
18,
14963,
12,
2472,
548,
3719,
288,
9506,
202,
5668,
273,
638,
31,
9506,
202,
17143,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
20308,
1082,
380,
3581,
777,
819,
9863,
364,
5781,
8272,
6298,
854,
6176,
1082,
380,
578,
2742,
16,
471,
326,
4656,
6176,
578,
2742,
819,
353,
486,
1082,
380,
2695,
18,
1082,
1195,
202,
202,
2472,
548,
28984,
273,
819,
2673,
18,
9838,
5621,
202,
202,
17523,
261,
2472,
548,
28984,
18,
5332,
2134,
10756,
288,
1082,
202,
780,
819,
548,
273,
261,
780,
13,
819,
548,
28984,
18,
4285,
5621,
1082,
202,
1042,
819,
273,
819,
1318,
18,
29120,
12,
2472,
548,
1769,
1082,
202,
698,
288,
9506,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
1635,
752,
14478,
1042,
2471,
1290,
12,
6385,
1000,
819,
2673,
13,
288,
202,
202,
759,
2073,
358,
2621,
2856,
279,
6176,
578,
2742,
353,
2695,
18,
202,
202,
6494,
6176,
273,
629,
31,
202,
202,
6494,
2742,
273,
629,
31,
202,
202,
3198,
819,
548,
28984,
273,
819,
2673,
18,
9838,
5621,
202,
202,
17523,
261,
2472,
548,
28984,
18,
5332,
2134,
10756,
288,
1082,
202,
6385,
514,
819,
548,
273,
261,
780,
13,
819,
548,
28984,
18,
4285,
5621,
1082,
202,
430,
261,
45,
1042,
2673,
18,
13181,
67,
734,
67,
2565,
18683,
18,
14963,
12,
2472,
548,
3719,
288,
9506,
202,
12730,
273,
638,
31,
9506,
202,
17143,
31,
1082,
202,
97,
2
] |
} else if (jj_2_46(2147483647)) {
|
} else if (jj_2_47(2147483647)) {
|
final public void Annotation() throws ParseException { /*@bgen(jjtree) Annotation */ ASTAnnotation jjtn000 = new ASTAnnotation(this, JJTANNOTATION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { if (jj_2_45(2147483647)) { NormalAnnotation(); } else if (jj_2_46(2147483647)) { SingleMemberAnnotation(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AT: MarkerAnnotation(); break; default: jj_la1[120] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/2c4cc3303f04cdb3883f34b25cfe841b0bdf1fb5/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
6090,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
6090,
1195,
225,
9183,
3257,
10684,
5088,
3784,
273,
394,
9183,
3257,
12,
2211,
16,
804,
46,
56,
24922,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
565,
775,
288,
1377,
309,
261,
78,
78,
67,
22,
67,
7950,
12,
22,
3461,
30623,
30792,
3719,
288,
3639,
8769,
3257,
5621,
1377,
289,
469,
309,
261,
78,
78,
67,
22,
67,
9462,
12,
22,
3461,
30623,
30792,
3719,
288,
3639,
10326,
4419,
3257,
5621,
1377,
289,
469,
288,
3639,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
3639,
648,
14464,
30,
1850,
14742,
3257,
5621,
1850,
898,
31,
3639,
805,
30,
1850,
10684,
67,
11821,
21,
63,
22343,
65,
273,
10684,
67,
4507,
31,
1850,
10684,
67,
21224,
67,
2316,
19236,
21,
1769,
1850,
604,
394,
10616,
5621,
3639,
289,
1377,
289,
565,
289,
1044,
261,
15155,
10684,
736,
3784,
13,
288,
377,
309,
261,
78,
78,
5111,
3784,
13,
288,
4202,
10684,
3413,
18,
8507,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
4202,
10684,
5111,
3784,
273,
629,
31,
377,
289,
469,
288,
4202,
10684,
3413,
18,
5120,
907,
5621,
377,
289,
377,
309,
261,
78,
78,
736,
3784,
1276,
3235,
13,
288,
4202,
288,
430,
261,
3767,
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,
727,
1071,
918,
6090,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
6090,
1195,
225,
9183,
3257,
10684,
5088,
3784,
273,
394,
9183,
3257,
12,
2211,
16,
804,
46,
56,
24922,
1769,
225,
1250,
10684,
5111,
3784,
273,
638,
31,
225,
10684,
3413,
18,
3190,
907,
3876,
12,
78,
78,
5088,
3784,
1769,
565,
775,
288,
1377,
309,
261,
78,
78,
67,
22,
67,
7950,
12,
22,
3461,
30623,
30792,
3719,
288,
3639,
8769,
3257,
5621,
1377,
289,
469,
309,
261,
78,
78,
67,
22,
67,
9462,
12,
22,
3461,
30623,
30792,
3719,
288,
3639,
10326,
4419,
3257,
5621,
1377,
289,
469,
288,
3639,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
2
] |
public String toString() {
|
public String toString() {
|
public String toString() { StringBuffer sb = new StringBuffer("ResolvedCritic: " + critic + " : "); int i; for (i = 0; i < offenders.size(); i++) { if (i > 0) sb.append(", "); sb.append(offenders.elementAt(i)); } return sb.toString(); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/77a71243718889b5cdf554ddc64e2c066e3441a5/ResolvedCritic.java/buggy/src_new/org/argouml/cognitive/ResolvedCritic.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
565,
288,
202,
780,
1892,
2393,
273,
202,
565,
394,
6674,
2932,
12793,
39,
583,
335,
30,
315,
397,
7921,
335,
397,
315,
294,
315,
1769,
202,
474,
277,
31,
202,
1884,
261,
77,
273,
374,
31,
277,
411,
3397,
10130,
18,
1467,
5621,
277,
27245,
202,
95,
202,
565,
309,
261,
77,
405,
374,
13,
202,
202,
18366,
18,
6923,
2932,
16,
315,
1769,
202,
565,
2393,
18,
6923,
12,
3674,
10130,
18,
2956,
861,
12,
77,
10019,
202,
97,
202,
2463,
2393,
18,
10492,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
514,
1762,
1435,
565,
288,
202,
780,
1892,
2393,
273,
202,
565,
394,
6674,
2932,
12793,
39,
583,
335,
30,
315,
397,
7921,
335,
397,
315,
294,
315,
1769,
202,
474,
277,
31,
202,
1884,
261,
77,
273,
374,
31,
277,
411,
3397,
10130,
18,
1467,
5621,
277,
27245,
202,
95,
202,
565,
309,
261,
77,
405,
374,
13,
202,
202,
18366,
18,
6923,
2932,
16,
315,
1769,
202,
565,
2393,
18,
6923,
12,
3674,
10130,
18,
2956,
861,
12,
77,
10019,
202,
97,
202,
2463,
2393,
18,
10492,
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
] |
tw.state != TriggerWrapper.STATE_PAUSED_BLOCKED)
|
tw.state != TriggerWrapper.STATE_PAUSED_BLOCKED) {
|
public void resumeTrigger(SchedulingContext ctxt, String triggerName, String groupName) { TriggerWrapper tw = (TriggerWrapper) triggersByFQN.get(TriggerWrapper .getTriggerNameKey(triggerName, groupName)); Trigger trig = tw.getTrigger(); // does the trigger exist? if (tw == null || tw.trigger == null) return; // if the trigger is not paused resuming it does not make sense... if (tw.state != TriggerWrapper.STATE_PAUSED && tw.state != TriggerWrapper.STATE_PAUSED_BLOCKED) return; synchronized (triggerLock) { if(blockedJobs.contains( JobWrapper.getJobNameKey(trig.getJobName(), trig.getJobGroup()) )) tw.state = TriggerWrapper.STATE_BLOCKED; else tw.state = TriggerWrapper.STATE_WAITING; applyMisfire(tw); if (tw.state == TriggerWrapper.STATE_WAITING) addToTimeTriggers(tw); } }
|
55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/cf7f5f77ce5bb6364145230d302b86f1cdadea88/RAMJobStore.java/clean/src/java/org/quartz/simpl/RAMJobStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10774,
6518,
12,
25401,
1042,
14286,
16,
514,
3080,
461,
16,
5411,
514,
11619,
13,
288,
3639,
11321,
3611,
2339,
273,
261,
6518,
3611,
13,
11752,
858,
23032,
50,
18,
588,
12,
6518,
3611,
7734,
263,
588,
6518,
461,
653,
12,
10668,
461,
16,
11619,
10019,
3639,
11321,
23142,
273,
2339,
18,
588,
6518,
5621,
7734,
368,
1552,
326,
3080,
1005,
35,
3639,
309,
261,
11246,
422,
446,
747,
2339,
18,
10668,
422,
446,
13,
327,
31,
3639,
368,
309,
326,
3080,
353,
486,
17781,
400,
21249,
518,
1552,
486,
1221,
12764,
2777,
3639,
309,
261,
11246,
18,
2019,
480,
11321,
3611,
18,
7998,
67,
4066,
20093,
597,
1171,
2339,
18,
2019,
480,
11321,
3611,
18,
7998,
67,
4066,
20093,
67,
11403,
2056,
13,
288,
2398,
327,
31,
3639,
3852,
261,
10668,
2531,
13,
288,
5411,
309,
12,
23156,
7276,
18,
12298,
12,
3956,
3611,
18,
588,
29425,
653,
12,
313,
360,
18,
588,
29425,
9334,
23142,
18,
588,
2278,
1114,
10756,
8623,
7734,
2339,
18,
2019,
273,
11321,
3611,
18,
7998,
67,
11403,
2056,
31,
5411,
469,
10792,
2339,
18,
2019,
273,
11321,
3611,
18,
7998,
67,
19046,
1360,
31,
13491,
2230,
49,
7396,
577,
12,
11246,
1769,
13491,
309,
261,
11246,
18,
2019,
422,
11321,
3611,
18,
7998,
67,
19046,
1360,
13,
2868,
9604,
950,
15114,
12,
11246,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10774,
6518,
12,
25401,
1042,
14286,
16,
514,
3080,
461,
16,
5411,
514,
11619,
13,
288,
3639,
11321,
3611,
2339,
273,
261,
6518,
3611,
13,
11752,
858,
23032,
50,
18,
588,
12,
6518,
3611,
7734,
263,
588,
6518,
461,
653,
12,
10668,
461,
16,
11619,
10019,
3639,
11321,
23142,
273,
2339,
18,
588,
6518,
5621,
7734,
368,
1552,
326,
3080,
1005,
35,
3639,
309,
261,
11246,
422,
446,
747,
2339,
18,
10668,
422,
446,
13,
327,
31,
3639,
368,
309,
326,
3080,
353,
486,
17781,
400,
21249,
518,
1552,
486,
1221,
12764,
2777,
3639,
309,
261,
11246,
18,
2019,
480,
11321,
3611,
18,
7998,
67,
4066,
20093,
597,
1171,
2339,
18,
2019,
480,
11321,
3611,
18,
2
] |
public Dimension getMinimumSize ();
|
Dimension getMinimumSize();
|
public Dimension getMinimumSize ();
|
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/42de8277e53eabea04a48598c12ed6d488412a7b/ComponentPeer.java/buggy/libjava/java/awt/peer/ComponentPeer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
30665,
1225,
261,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
30665,
1225,
261,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Object invoke(Object component, UMOEventContext context, Method method) throws InvocationTargetException,
|
Object invoke(Object component, UMOEventContext context) throws InvocationTargetException,
|
Object invoke(Object component, UMOEventContext context, Method method) throws InvocationTargetException, IllegalAccessException, TransformerException;
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/e1ea6311a750bee7ca2360230a1a4f7d0f919610/UMOEntryPoint.java/clean/mule/src/java/org/mule/umo/model/UMOEntryPoint.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1033,
4356,
12,
921,
1794,
16,
587,
5980,
1133,
1042,
819,
13,
1216,
15342,
16,
5411,
11900,
16,
21684,
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
] |
[
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1033,
4356,
12,
921,
1794,
16,
587,
5980,
1133,
1042,
819,
13,
1216,
15342,
16,
5411,
11900,
16,
21684,
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
] |
final AbstractRepositoryConnector connector = TasksUiPlugin.getRepositoryManager().getRepositoryConnector( this.repository.getKind());
|
final IProgressService svc = PlatformUI.getWorkbench().getProgressService(); final AddExistingTaskJob job = new AddExistingTaskJob(getTaskId()); job.schedule(); PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
|
public final boolean performFinish() { final AbstractRepositoryConnector connector = TasksUiPlugin.getRepositoryManager().getRepositoryConnector( this.repository.getKind()); final String taskId = getTaskId(); try { getContainer().run(true, false, new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { monitor.beginTask("Retrieving task...", IProgressMonitor.UNKNOWN); try { newTask = connector.createTaskFromExistingKey(repository, taskId, null); if (newTask instanceof AbstractRepositoryTask) { TasksUiPlugin.getSynchronizationManager().synchronize(connector, (AbstractRepositoryTask)newTask, true, null); } } catch (Exception e) { throw new InvocationTargetException(e); } finally { monitor.done(); } } }); } catch (InvocationTargetException e) { String message = e.getCause() != null ? e.getCause().getMessage() : "None provided"; MessageDialog.openWarning(this.getShell(), "Add Existing Task Failed", "Unable to retrieve existing task from repository, error was: \n\n" + message); return false; } catch (InterruptedException e) { // cancelled return true; } if (newTask != null && TaskListView.getFromActivePerspective() != null) { Object selectedObject = ((IStructuredSelection) TaskListView.getFromActivePerspective().getViewer() .getSelection()).getFirstElement(); if (selectedObject instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().moveToContainer(((TaskCategory) selectedObject), newTask); } else { TasksUiPlugin.getTaskListManager().getTaskList().moveToRoot(newTask); } if (TaskListView.getFromActivePerspective() != null) { TaskListView.getFromActivePerspective().getViewer().setSelection(new StructuredSelection(newTask)); } TaskUiUtil.openEditor(newTask, false); } else { // TODO: createTaskFromExistingKey needs to throw exceptions so that // we can provide the correct error handling in // the try catch above. MessageDialog.openWarning(this.getShell(), "Add Existing Task Failed", "Unable to retrieve task from repository."); } return true; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/900696b33e75e5ee0335e1b9190fe0e07134d1e3/CommonAddExistingTaskWizard.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/CommonAddExistingTaskWizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
1250,
3073,
11641,
1435,
288,
202,
202,
6385,
4115,
3305,
7487,
8703,
273,
20350,
13943,
3773,
18,
588,
3305,
1318,
7675,
588,
3305,
7487,
12,
9506,
202,
2211,
18,
9071,
18,
588,
5677,
10663,
202,
202,
6385,
514,
15321,
273,
11478,
548,
5621,
202,
202,
698,
288,
1082,
202,
588,
2170,
7675,
2681,
12,
3767,
16,
629,
16,
394,
467,
20013,
1190,
5491,
1435,
288,
9506,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
1216,
15342,
16,
7558,
288,
6862,
202,
10259,
18,
10086,
2174,
2932,
3848,
6282,
1562,
7070,
16,
467,
5491,
7187,
18,
14737,
1769,
6862,
202,
698,
288,
25083,
202,
2704,
2174,
273,
8703,
18,
2640,
2174,
1265,
9895,
653,
12,
9071,
16,
15321,
16,
446,
1769,
25083,
202,
430,
261,
2704,
2174,
1276,
4115,
3305,
2174,
13,
288,
6862,
1082,
202,
6685,
13943,
3773,
18,
588,
30196,
1318,
7675,
87,
2600,
554,
12,
23159,
16,
261,
7469,
3305,
2174,
13,
2704,
2174,
16,
638,
16,
446,
1769,
25083,
202,
97,
6862,
202,
97,
1044,
261,
503,
425,
13,
288,
25083,
202,
12849,
394,
15342,
12,
73,
1769,
6862,
202,
97,
3095,
288,
25083,
202,
10259,
18,
8734,
5621,
6862,
202,
97,
9506,
202,
97,
1082,
202,
22938,
202,
202,
97,
1044,
261,
9267,
14950,
425,
13,
288,
1082,
202,
780,
883,
273,
425,
18,
588,
10683,
1435,
480,
446,
692,
425,
18,
588,
10683,
7675,
24906,
1435,
294,
315,
7036,
2112,
14432,
1082,
202,
1079,
6353,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
1250,
3073,
11641,
1435,
288,
202,
202,
6385,
4115,
3305,
7487,
8703,
273,
20350,
13943,
3773,
18,
588,
3305,
1318,
7675,
588,
3305,
7487,
12,
9506,
202,
2211,
18,
9071,
18,
588,
5677,
10663,
202,
202,
6385,
514,
15321,
273,
11478,
548,
5621,
202,
202,
698,
288,
1082,
202,
588,
2170,
7675,
2681,
12,
3767,
16,
629,
16,
394,
467,
20013,
1190,
5491,
1435,
288,
9506,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
1216,
15342,
16,
7558,
288,
6862,
202,
10259,
18,
10086,
2174,
2932,
3848,
6282,
1562,
7070,
16,
467,
5491,
7187,
18,
14737,
1769,
6862,
202,
698,
288,
25083,
202,
2704,
2174,
273,
8703,
18,
2640,
2174,
1265,
9895,
653,
2
] |
recv.checkArgumentCount(args, 0, 3);
|
public static IRubyObject raise(IRubyObject recv, IRubyObject[] args) { // FIXME special case in ruby // recv.checkArgumentCount(args, 0, 2); IRuby runtime = recv.getRuntime(); RubyString string = null; RubyException excptn = null; RaiseException re = null; switch (args.length) { case 0 : IRubyObject defaultException = runtime.getGlobalVariables().get("$!"); if (defaultException.isNil()) { re = new RaiseException(runtime, runtime.getClass("RuntimeError"), "", false); } else { re = new RaiseException((RubyException) defaultException); } break; case 1 : if (args[0] instanceof RubyException) { re = new RaiseException((RubyException) args[0]); } else if (args[0] instanceof RubyClass) { re = new RaiseException(RubyException.newInstance(args[0], new IRubyObject[0])); } else { re = new RaiseException(RubyException.newInstance(runtime.getClass("RuntimeError"), args)); } break; case 2 : if (args[0] == runtime.getClass("Exception")) { re = new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } else { string = (RubyString) args[1]; re = new RaiseException(new RubyException(runtime, ((RubyClass)args[0]), string.getValue())); } break; case 3: if (args[0] == runtime.getClass("Exception")) { re = new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } else { string = (RubyString) args[1]; excptn = new RubyException(runtime, ((RubyClass)args[0]), string.getValue()); excptn.set_backtrace(args[2]); re = new RaiseException(excptn); } break; default : re = runtime.newArgumentError("wrong number of arguments"); } // Insert exception to be raised into global var and current thread runtime.getGlobalVariables().set("$!", re.getException()); throw re; }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/db72794764bda58903c87df9b567f1f843bea69c/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
1071,
760,
15908,
10340,
921,
1002,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
18334,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
368,
9852,
18334,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
4582,
648,
316,
22155,
18334,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
368,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
576,
1769,
18334,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
225,
15908,
10340,
3099,
273,
10665,
18,
588,
5576,
5621,
18334,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
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,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
1071,
760,
15908,
10340,
921,
1002,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
18334,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
368,
9852,
18334,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
890,
1769,
4582,
648,
316,
22155,
18334,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
2
] |
|
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi)
|
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException
|
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) { meta=(CubeOutputMeta)smi; data=(CubeOutputData)sdi; Row r; boolean result=true; r=getRow(); // This also waits for a row to be finished. if (r==null) { setOutputDone(); return false; } result=writeRowToFile(r); if (!result) { setErrors(1); stopAll(); return false; } putRow(r); // in case we want it to go further... if ((linesOutput>0) && (linesOutput%Const.ROWS_UPDATE)==0)logBasic(Messages.getString("CubeOutput.Log.LineNumber")+linesOutput); //$NON-NLS-1$ return result; }
|
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/e55ffe0f98f0b9594e4388f8c5be719da5eb7b54/CubeOutput.java/clean/kettle/src/be/ibridge/kettle/trans/step/cubeoutput/CubeOutput.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1207,
1999,
12,
4160,
2781,
1358,
3029,
77,
16,
8693,
751,
1358,
272,
3211,
13,
202,
95,
202,
202,
3901,
28657,
39,
4895,
1447,
2781,
13,
4808,
77,
31,
202,
202,
892,
28657,
39,
4895,
1447,
751,
13,
87,
3211,
31,
202,
202,
1999,
436,
31,
202,
202,
6494,
563,
33,
3767,
31,
9506,
202,
86,
33,
588,
1999,
5621,
4202,
368,
1220,
2546,
16248,
364,
279,
1027,
358,
506,
6708,
18,
9506,
202,
430,
261,
86,
631,
2011,
13,
202,
202,
95,
1082,
202,
542,
1447,
7387,
5621,
5411,
327,
629,
31,
202,
202,
97,
9506,
202,
2088,
33,
2626,
1999,
15450,
12,
86,
1769,
202,
202,
430,
16051,
2088,
13,
202,
202,
95,
1082,
202,
542,
4229,
12,
21,
1769,
1082,
202,
5681,
1595,
5621,
1082,
202,
2463,
629,
31,
202,
202,
97,
9506,
202,
458,
1999,
12,
86,
1769,
4202,
368,
316,
648,
732,
2545,
518,
358,
1960,
9271,
2777,
9506,
202,
430,
14015,
3548,
1447,
34,
20,
13,
597,
261,
3548,
1447,
9,
9661,
18,
28402,
67,
8217,
13,
631,
20,
13,
1330,
8252,
12,
5058,
18,
588,
780,
2932,
39,
4895,
1447,
18,
1343,
18,
31063,
7923,
15,
3548,
1447,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2463,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1207,
1999,
12,
4160,
2781,
1358,
3029,
77,
16,
8693,
751,
1358,
272,
3211,
13,
202,
95,
202,
202,
3901,
28657,
39,
4895,
1447,
2781,
13,
4808,
77,
31,
202,
202,
892,
28657,
39,
4895,
1447,
751,
13,
87,
3211,
31,
202,
202,
1999,
436,
31,
202,
202,
6494,
563,
33,
3767,
31,
9506,
202,
86,
33,
588,
1999,
5621,
4202,
368,
1220,
2546,
16248,
364,
279,
1027,
358,
506,
6708,
18,
9506,
202,
430,
261,
86,
631,
2011,
13,
202,
202,
95,
1082,
202,
542,
1447,
7387,
5621,
5411,
327,
629,
31,
202,
202,
97,
9506,
202,
2088,
33,
2626,
1999,
15450,
12,
86,
1769,
202,
202,
430,
16051,
2088,
13,
202,
202,
95,
2
] |
_leaseSet = getContext().netDb().lookupLeaseSetLocally(_clientMessage.getDestination().calculateHash());
|
_leaseSet = getContext().netDb().lookupLeaseSetLocally(_to.calculateHash());
|
private boolean getNextLease() { _leaseSet = getContext().netDb().lookupLeaseSetLocally(_clientMessage.getDestination().calculateHash()); if (_leaseSet == null) { if (_log.shouldLog(Log.WARN)) _log.warn(getJobId() + ": Lookup locally didn't find the leaseSet"); return false; } long now = getContext().clock().now(); // get the possible leases List leases = new ArrayList(_leaseSet.getLeaseCount()); for (int i = 0; i < _leaseSet.getLeaseCount(); i++) { Lease lease = _leaseSet.getLease(i); if (lease.isExpired(Router.CLOCK_FUDGE_FACTOR)) { if (_log.shouldLog(Log.WARN)) _log.warn(getJobId() + ": getNextLease() - expired lease! - " + lease); continue; } else { leases.add(lease); } } if (leases.size() <= 0) { if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": No leases found from: " + _leaseSet); return false; } // randomize the ordering (so leases with equal # of failures per next // sort are randomly ordered) Collections.shuffle(leases); // ordered by lease number of failures TreeMap orderedLeases = new TreeMap(); for (Iterator iter = leases.iterator(); iter.hasNext(); ) { Lease lease = (Lease)iter.next(); long id = lease.getNumFailure(); while (orderedLeases.containsKey(new Long(id))) id++; orderedLeases.put(new Long(id), lease); if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": ranking lease we havent sent it down as " + id); } _lease = (Lease)orderedLeases.get(orderedLeases.firstKey()); return true; }
|
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/9e16bc203acad926f1d4c7750311694f35c88100/OutboundClientMessageOneShotJob.java/clean/router/java/src/net/i2p/router/message/OutboundClientMessageOneShotJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
6927,
17746,
1435,
288,
3639,
389,
2508,
694,
273,
6474,
7675,
2758,
4331,
7675,
8664,
17746,
694,
1333,
1230,
24899,
869,
18,
11162,
2310,
10663,
3639,
309,
261,
67,
2508,
694,
422,
446,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
27999,
3719,
7734,
389,
1330,
18,
8935,
12,
588,
23378,
1435,
397,
6398,
8834,
13760,
10242,
1404,
1104,
326,
11863,
694,
8863,
5411,
327,
629,
31,
3639,
289,
540,
1525,
2037,
273,
6474,
7675,
18517,
7675,
3338,
5621,
7734,
368,
336,
326,
3323,
884,
3304,
3639,
987,
884,
3304,
273,
394,
2407,
24899,
2508,
694,
18,
588,
17746,
1380,
10663,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
389,
2508,
694,
18,
588,
17746,
1380,
5621,
277,
27245,
288,
5411,
23175,
11863,
273,
389,
2508,
694,
18,
588,
17746,
12,
77,
1769,
5411,
309,
261,
2508,
18,
291,
10556,
12,
8259,
18,
39,
6589,
67,
42,
12587,
7113,
67,
26835,
3719,
288,
7734,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
27999,
3719,
10792,
389,
1330,
18,
8935,
12,
588,
23378,
1435,
397,
6398,
6927,
17746,
1435,
300,
7708,
11863,
5,
300,
315,
397,
11863,
1769,
7734,
1324,
31,
5411,
289,
469,
288,
7734,
884,
3304,
18,
1289,
12,
2508,
1769,
5411,
289,
3639,
289,
7734,
309,
261,
298,
3304,
18,
1467,
1435,
1648,
374,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
7734,
389,
1330,
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,
1250,
6927,
17746,
1435,
288,
3639,
389,
2508,
694,
273,
6474,
7675,
2758,
4331,
7675,
8664,
17746,
694,
1333,
1230,
24899,
869,
18,
11162,
2310,
10663,
3639,
309,
261,
67,
2508,
694,
422,
446,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
27999,
3719,
7734,
389,
1330,
18,
8935,
12,
588,
23378,
1435,
397,
6398,
8834,
13760,
10242,
1404,
1104,
326,
11863,
694,
8863,
5411,
327,
629,
31,
3639,
289,
540,
1525,
2037,
273,
6474,
7675,
18517,
7675,
3338,
5621,
7734,
368,
336,
326,
3323,
884,
3304,
3639,
987,
884,
3304,
273,
394,
2407,
24899,
2508,
694,
18,
588,
17746,
1380,
10663,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2
] |
System.out.println("" + _id + "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= getWantClientAuth");
|
_log.debug("" + _id + "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= getWantClientAuth");
|
public boolean getWantClientAuth() { System.out.println("" + _id + "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= getWantClientAuth"); return super.getWantClientAuth(); }
|
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/123ddf7793d135a7a3ae32914cef534cc6dc6e0c/DebugSSLSocket.java/clean/securityservices/src/org/cougaar/core/security/util/DebugSSLSocket.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13876,
970,
1227,
1730,
1435,
288,
565,
389,
1330,
18,
4148,
2932,
6,
397,
389,
350,
397,
29199,
17,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
33,
13876,
970,
1227,
1730,
8863,
565,
327,
2240,
18,
588,
59,
970,
1227,
1730,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13876,
970,
1227,
1730,
1435,
288,
565,
389,
1330,
18,
4148,
2932,
6,
397,
389,
350,
397,
29199,
17,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
29711,
33,
13876,
970,
1227,
1730,
8863,
565,
327,
2240,
18,
588,
59,
970,
1227,
1730,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return m_target!=null?m_target:"";
|
return m_target != null ? m_target : "";
|
public String getPage() { return m_target!=null?m_target:""; }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/247b9f9f8ac6897a562e2ae06f80157d6d8a3ece/CmsJspTagInclude.java/buggy/src/org/opencms/jsp/CmsJspTagInclude.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8957,
1435,
288,
540,
327,
312,
67,
3299,
480,
446,
692,
312,
67,
3299,
294,
1408,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8957,
1435,
288,
540,
327,
312,
67,
3299,
480,
446,
692,
312,
67,
3299,
294,
1408,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
mySteppingThroughThreads.add(getSuspendContext().getThread()); resumeAction(myDebugProcess.createStepOverCommand(getSuspendContext(), ignoreBreakpoints), EVENT_STEP);
|
final SuspendContextImpl suspendContext = getSuspendContext(); mySteppingThroughThreads.add(suspendContext.getThread()); resumeAction(myDebugProcess.createStepOverCommand(suspendContext, ignoreBreakpoints), EVENT_STEP);
|
public void stepOver(boolean ignoreBreakpoints) { mySteppingThroughThreads.add(getSuspendContext().getThread()); resumeAction(myDebugProcess.createStepOverCommand(getSuspendContext(), ignoreBreakpoints), EVENT_STEP); }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/d447cb36ef9ce5ba18d62292a4a7d77329ca89e0/DebuggerSession.java/clean/source/com/intellij/debugger/impl/DebuggerSession.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2235,
4851,
12,
6494,
2305,
7634,
4139,
13,
288,
565,
3399,
4160,
1382,
14287,
13233,
18,
1289,
12,
588,
55,
18815,
1042,
7675,
588,
3830,
10663,
565,
10774,
1803,
12,
4811,
2829,
2227,
18,
2640,
4160,
4851,
2189,
12,
588,
55,
18815,
1042,
9334,
2305,
7634,
4139,
3631,
9964,
67,
26951,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
918,
2235,
4851,
12,
6494,
2305,
7634,
4139,
13,
288,
565,
3399,
4160,
1382,
14287,
13233,
18,
1289,
12,
588,
55,
18815,
1042,
7675,
588,
3830,
10663,
565,
10774,
1803,
12,
4811,
2829,
2227,
18,
2640,
4160,
4851,
2189,
12,
588,
55,
18815,
1042,
9334,
2305,
7634,
4139,
3631,
9964,
67,
26951,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public synchronized void remove(int index) {
|
public synchronized boolean remove(int index) {
|
public synchronized void remove(int index) { Logger.minor(this, "Removing "+index+" - min="+minValue+" max="+maxValue); if(contents.remove(new Integer(index)) != null) { if(index > minValue && index < maxValue) return; if(contents.size() == 0) { minValue = maxValue = -1; notifyAll(); return; } if(index == maxValue) { for(int i=maxValue;i>=minValue;i--) { Integer ii = new Integer(i); if(contents.containsKey(ii)) { maxValue = i; notifyAll(); return; } } // Still here - WTF? notifyAll(); throw new IllegalStateException("Still here! (a)"); } if(index == minValue) { for(int i=minValue;i<=maxValue;i++) { Integer ii = new Integer(i); if(contents.containsKey(ii)) { minValue = i; notifyAll(); return; } } // Still here - WTF? notifyAll(); throw new IllegalStateException("Still here! (b)"); } notifyAll(); throw new IllegalStateException("impossible"); } }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/b9290b82ec9c4d4f0c8c24bb332de9c501dfa468/LimitedRangeIntByteArrayMap.java/buggy/src/freenet/support/LimitedRangeIntByteArrayMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
1206,
12,
474,
770,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
18939,
13773,
1615,
9078,
300,
1131,
1546,
15,
1154,
620,
9078,
943,
1546,
15,
1896,
620,
1769,
3639,
309,
12,
3980,
18,
4479,
12,
2704,
2144,
12,
1615,
3719,
480,
446,
13,
288,
5411,
309,
12,
1615,
405,
20533,
597,
770,
411,
18666,
13,
327,
31,
5411,
309,
12,
3980,
18,
1467,
1435,
422,
374,
13,
288,
7734,
20533,
273,
18666,
273,
300,
21,
31,
7734,
5066,
1595,
5621,
7734,
327,
31,
5411,
289,
5411,
309,
12,
1615,
422,
18666,
13,
288,
7734,
364,
12,
474,
277,
33,
1896,
620,
31,
77,
34,
33,
1154,
620,
31,
77,
413,
13,
288,
10792,
2144,
6072,
273,
394,
2144,
12,
77,
1769,
10792,
309,
12,
3980,
18,
12298,
653,
12,
2835,
3719,
288,
13491,
18666,
273,
277,
31,
13491,
5066,
1595,
5621,
13491,
327,
31,
10792,
289,
7734,
289,
7734,
368,
934,
737,
2674,
300,
678,
17963,
35,
7734,
5066,
1595,
5621,
7734,
604,
394,
5477,
2932,
510,
737,
2674,
5,
261,
69,
2225,
1769,
5411,
289,
5411,
309,
12,
1615,
422,
20533,
13,
288,
7734,
364,
12,
474,
277,
33,
1154,
620,
31,
77,
32,
33,
1896,
620,
31,
77,
27245,
288,
10792,
2144,
6072,
273,
394,
2144,
12,
77,
1769,
10792,
309,
12,
3980,
18,
12298,
653,
12,
2835,
3719,
288,
13491,
20533,
273,
277,
31,
13491,
5066,
1595,
5621,
13491,
327,
31,
10792,
289,
7734,
289,
7734,
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,
3852,
1250,
1206,
12,
474,
770,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
18939,
13773,
1615,
9078,
300,
1131,
1546,
15,
1154,
620,
9078,
943,
1546,
15,
1896,
620,
1769,
3639,
309,
12,
3980,
18,
4479,
12,
2704,
2144,
12,
1615,
3719,
480,
446,
13,
288,
5411,
309,
12,
1615,
405,
20533,
597,
770,
411,
18666,
13,
327,
31,
5411,
309,
12,
3980,
18,
1467,
1435,
422,
374,
13,
288,
7734,
20533,
273,
18666,
273,
300,
21,
31,
7734,
5066,
1595,
5621,
7734,
327,
31,
5411,
289,
5411,
309,
12,
1615,
422,
18666,
13,
288,
7734,
364,
12,
474,
277,
33,
1896,
620,
31,
77,
34,
33,
1154,
620,
31,
77,
413,
13,
288,
2
] |
public void testPreparedSelect() throws Exception { log.info("test- testPreparedSelect"); db1 = setupTable(); t1 = startTransaction(db1); doSQLImmed(db1, t1, "INSERT INTO R1 VALUES (1, 2)"); doSQLImmed(db1, t1, "INSERT INTO R1 VALUES (2, 3)"); doSQLImmed(db1, t1, "INSERT INTO R1 VALUES (3, 4)"); XSQLDA in_xsqlda;// = new XSQLDA(); XSQLDA out_xsqlda;// = new XSQLDA(); isc_stmt_handle stmt1 = gds.get_new_isc_stmt_handle(); log.info("test- isc_dsql_allocate_statement"); gds.isc_dsql_allocate_statement(db1, stmt1); log.info("test- isc_dsql_prepare"); out_xsqlda = gds.isc_dsql_prepare(t1, stmt1, "SELECT COL1, COL2 FROM R1 WHERE COL1 = 1", GDS.SQL_DIALECT_CURRENT);//, out_xsqlda);// log.info("test- isc_dsql_describe_bind");// in_xsqlda = gds.isc_dsql_describe_bind(stmt1, 1);//, in_xsqlda); in_xsqlda = null;// in_xsqlda.sqlvar[0].sqldata = new Short((short) 1);// log.info("test- isc_dsql_describe");// out_xsqlda = gds.isc_dsql_describe(stmt1, 1);//, out_xsqlda); log.info("test- isc_dsql_execute2"); gds.isc_dsql_execute2(t1, stmt1, 1, in_xsqlda, null);// log.info("test- isc_dsql_set_cursor_name");// gds.isc_dsql_set_cursor_name(stmt1, "cur1", 0);// int fetch_stat; String out = ""; while (gds.isc_dsql_fetch(stmt1, 1, out_xsqlda) != null) { for (int i = 0; i < out_xsqlda.sqld; i++) { Short data = (Short) out_xsqlda.sqlvar[i].sqldata; out += data.shortValue() + " "; } out += System.getProperty("line.separator"); } log.info("fetch returned: " + out); log.info("test- isc_dsql_free_statement"); gds.isc_dsql_free_statement(stmt1, GDS.DSQL_drop); commit(t1); teardownTable(db1); }
|
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/d551c5302d9d5f52860ad5a47b9cbab3e036a621/TestGds.java/clean/src/org/firebirdsql/jgds/TestGds.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15464,
3391,
1435,
1216,
1185,
288,
3639,
613,
18,
1376,
2932,
3813,
17,
1842,
15464,
3391,
8863,
3639,
1319,
21,
273,
3875,
1388,
5621,
3639,
268,
21,
273,
787,
3342,
12,
1966,
21,
1769,
3639,
741,
3997,
1170,
2937,
12,
1966,
21,
16,
268,
21,
16,
315,
11356,
12421,
534,
21,
13477,
261,
21,
16,
576,
2225,
1769,
3639,
741,
3997,
1170,
2937,
12,
1966,
21,
16,
268,
21,
16,
315,
11356,
12421,
534,
21,
13477,
261,
22,
16,
890,
2225,
1769,
3639,
741,
3997,
1170,
2937,
12,
1966,
21,
16,
268,
21,
16,
315,
11356,
12421,
534,
21,
13477,
261,
23,
16,
1059,
2225,
1769,
3639,
1139,
3997,
9793,
316,
67,
92,
4669,
2414,
31,
759,
273,
394,
1139,
3997,
9793,
5621,
3639,
1139,
3997,
9793,
596,
67,
92,
4669,
2414,
31,
759,
273,
394,
1139,
3997,
9793,
5621,
3639,
353,
71,
67,
10589,
67,
4110,
3480,
21,
273,
314,
2377,
18,
588,
67,
2704,
67,
291,
71,
67,
10589,
67,
4110,
5621,
3639,
613,
18,
1376,
2932,
3813,
17,
353,
71,
67,
2377,
1217,
67,
16247,
67,
11516,
8863,
3639,
314,
2377,
18,
291,
71,
67,
2377,
1217,
67,
16247,
67,
11516,
12,
1966,
21,
16,
3480,
21,
1769,
3639,
613,
18,
1376,
2932,
3813,
17,
353,
71,
67,
2377,
1217,
67,
9366,
8863,
3639,
596,
67,
92,
4669,
2414,
273,
314,
2377,
18,
291,
71,
67,
2377,
1217,
67,
9366,
12,
88,
21,
16,
3480,
21,
16,
315,
4803,
5597,
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,
15464,
3391,
1435,
1216,
1185,
288,
3639,
613,
18,
1376,
2932,
3813,
17,
1842,
15464,
3391,
8863,
3639,
1319,
21,
273,
3875,
1388,
5621,
3639,
268,
21,
273,
787,
3342,
12,
1966,
21,
1769,
3639,
741,
3997,
1170,
2937,
12,
1966,
21,
16,
268,
21,
16,
315,
11356,
12421,
534,
21,
13477,
261,
21,
16,
576,
2225,
1769,
3639,
741,
3997,
1170,
2937,
12,
1966,
21,
16,
268,
21,
16,
315,
11356,
12421,
534,
21,
13477,
261,
22,
16,
890,
2225,
1769,
3639,
741,
3997,
1170,
2937,
12,
1966,
21,
16,
268,
21,
16,
315,
11356,
12421,
534,
21,
13477,
261,
23,
16,
1059,
2225,
1769,
3639,
1139,
3997,
9793,
316,
67,
92,
4669,
2414,
2
] |
||
}
|
}
|
public void setLDSConfirmation(Ordinance ldsConfirmation) { // TODO Auto-generated method stub }
|
6190 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6190/7b30da2f47cbda6e16406770c133332adb1b4079/IndividualJDOM.java/clean/MacPAF/src/com/redbugz/macpaf/jdom/IndividualJDOM.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
48,
3948,
17597,
12,
15383,
267,
1359,
328,
2377,
17597,
13,
288,
3639,
368,
2660,
8064,
17,
11168,
707,
7168,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
48,
3948,
17597,
12,
15383,
267,
1359,
328,
2377,
17597,
13,
288,
3639,
368,
2660,
8064,
17,
11168,
707,
7168,
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
] |
assertEquals(180,activities.size());
|
assertEquals(177,activities.size());
|
public void testCreateFailureWhenRoleNameIsNull() throws Exception{ RolesPermissionsPersistence RolesPermissionsPersistence = new RolesPermissionsPersistence(); List<ActivityEntity> activities = RolesPermissionsPersistence.getActivities(); assertEquals(180,activities.size()); RoleBO roleBO = null; try{ roleBO = new RoleBO(TestObjectFactory.getContext(),null,activities); roleBO.save(); HibernateUtil.commitTransaction(); HibernateUtil.closeSession(); }catch(RolesPermissionException e){ assertEquals(RolesAndPermissionConstants.KEYROLENAMENOTSPECIFIED,e.getKey()); } try{ roleBO = new RoleBO(TestObjectFactory.getContext(),"",activities); roleBO.save(); HibernateUtil.commitTransaction(); HibernateUtil.closeSession(); }catch(RolesPermissionException e){ assertEquals(RolesAndPermissionConstants.KEYROLENAMENOTSPECIFIED,e.getKey()); } }
|
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/7695bb2c99774a79c149907e421311a9580f475b/TestRoleBO.java/clean/mifos/test/org/mifos/application/rolesandpermission/business/TestRoleBO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1684,
5247,
9434,
31278,
2520,
2041,
1435,
1216,
1185,
95,
202,
202,
6898,
6521,
13182,
19576,
6521,
13182,
273,
394,
19576,
6521,
13182,
5621,
202,
202,
682,
32,
6193,
1943,
34,
17259,
273,
19576,
6521,
13182,
18,
588,
21101,
5621,
202,
202,
11231,
8867,
12,
18278,
16,
24745,
18,
1467,
10663,
202,
202,
2996,
5315,
2478,
5315,
273,
446,
31,
202,
202,
698,
95,
1082,
202,
4615,
5315,
273,
394,
6204,
5315,
12,
4709,
921,
1733,
18,
29120,
9334,
2011,
16,
24745,
1769,
1082,
202,
4615,
5315,
18,
5688,
5621,
1082,
202,
44,
24360,
1304,
18,
7371,
3342,
5621,
1082,
202,
44,
24360,
1304,
18,
4412,
2157,
5621,
202,
202,
97,
14683,
12,
6898,
5041,
503,
425,
15329,
1082,
202,
11231,
8867,
12,
6898,
1876,
5041,
2918,
18,
3297,
16256,
1985,
4400,
13847,
13519,
16,
73,
18,
588,
653,
10663,
202,
202,
97,
202,
202,
698,
95,
1082,
202,
4615,
5315,
273,
394,
6204,
5315,
12,
4709,
921,
1733,
18,
29120,
9334,
6,
3113,
24745,
1769,
1082,
202,
4615,
5315,
18,
5688,
5621,
1082,
202,
44,
24360,
1304,
18,
7371,
3342,
5621,
1082,
202,
44,
24360,
1304,
18,
4412,
2157,
5621,
202,
202,
97,
14683,
12,
6898,
5041,
503,
425,
15329,
1082,
202,
11231,
8867,
12,
6898,
1876,
5041,
2918,
18,
3297,
16256,
1985,
4400,
13847,
13519,
16,
73,
18,
588,
653,
10663,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1684,
5247,
9434,
31278,
2520,
2041,
1435,
1216,
1185,
95,
202,
202,
6898,
6521,
13182,
19576,
6521,
13182,
273,
394,
19576,
6521,
13182,
5621,
202,
202,
682,
32,
6193,
1943,
34,
17259,
273,
19576,
6521,
13182,
18,
588,
21101,
5621,
202,
202,
11231,
8867,
12,
18278,
16,
24745,
18,
1467,
10663,
202,
202,
2996,
5315,
2478,
5315,
273,
446,
31,
202,
202,
698,
95,
1082,
202,
4615,
5315,
273,
394,
6204,
5315,
12,
4709,
921,
1733,
18,
29120,
9334,
2011,
16,
24745,
1769,
1082,
202,
4615,
5315,
18,
5688,
5621,
1082,
202,
44,
24360,
1304,
18,
7371,
3342,
5621,
1082,
202,
44,
24360,
1304,
18,
4412,
2157,
5621,
202,
202,
97,
14683,
12,
6898,
2
] |
new SGSUserImpl(router, new TransportProtocolTransmitter() {
|
if (TRACE){ System.out.println("New TCP connection received by server"); } final SGSUserImpl user = new SGSUserImpl(router, new TransportProtocolTransmitter() {
|
public void newTCPConnection(final NIOTCPConnection connection) { new SGSUserImpl(router, new TransportProtocolTransmitter() { public void sendBuffers(ByteBuffer[] buffs) { try { connection.send(buffs); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }, validatorFactory.newValidator()); }
|
55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/96b8c34a552c4fde1dbf307285233759afb44ea3/TCPIPUserManager.java/buggy/src/com/sun/gi/comm/users/server/impl/TCPIPUserManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
394,
13891,
1952,
12,
6385,
423,
45,
1974,
4258,
1952,
1459,
13,
288,
202,
202,
2704,
348,
16113,
1299,
2828,
12,
10717,
16,
394,
9514,
5752,
1429,
1938,
387,
1435,
288,
1082,
202,
482,
918,
1366,
13699,
12,
12242,
8526,
1681,
2556,
13,
288,
9506,
202,
698,
288,
6862,
202,
4071,
18,
4661,
12,
4385,
2556,
1769,
9506,
202,
97,
1044,
261,
14106,
425,
13,
288,
6862,
202,
759,
2660,
8064,
17,
11168,
1044,
1203,
6862,
202,
73,
18,
1188,
6332,
5621,
9506,
202,
97,
6862,
1082,
202,
97,
6862,
202,
5779,
4213,
1733,
18,
2704,
5126,
10663,
1082,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
394,
13891,
1952,
12,
6385,
423,
45,
1974,
4258,
1952,
1459,
13,
288,
202,
202,
2704,
348,
16113,
1299,
2828,
12,
10717,
16,
394,
9514,
5752,
1429,
1938,
387,
1435,
288,
1082,
202,
482,
918,
1366,
13699,
12,
12242,
8526,
1681,
2556,
13,
288,
9506,
202,
698,
288,
6862,
202,
4071,
18,
4661,
12,
4385,
2556,
1769,
9506,
202,
97,
1044,
261,
14106,
425,
13,
288,
6862,
202,
759,
2660,
8064,
17,
11168,
1044,
1203,
6862,
202,
73,
18,
1188,
6332,
5621,
9506,
202,
97,
6862,
1082,
202,
97,
6862,
202,
5779,
4213,
1733,
18,
2704,
5126,
10663,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Model model = _ctx.loadModel("bonuses", "bonus_point"); _cursbind = model.getAnimation("normal").bind(_cursor, 0, null, null);
|
_ctx.loadModel("bonuses", "bonus_point", new ModelAttacher(_cursor));
|
protected void wasAdded () { super.wasAdded(); // create our cursor _cursor = new Node("cursor"); _cursor.setLocalTranslation(new Vector3f(0, 0, TILE_SIZE)); // _cursor.setLocalScale(0.75f); Model model = _ctx.loadModel("bonuses", "bonus_point"); _cursbind = model.getAnimation("normal").bind(_cursor, 0, null, null); _cursor.addController(new Spinner(_cursor, FastMath.PI)); _cursor.addController(new Bouncer(_cursor, TILE_SIZE, TILE_SIZE/4)); _cursor.setRenderState(RenderUtil.lequalZBuf); _cursor.updateRenderState(); }
|
8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/7a947690417363c52e006fe92e90cda55d353c2b/BangBoardView.java/buggy/src/java/com/threerings/bang/game/client/BangBoardView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1703,
8602,
1832,
565,
288,
3639,
2240,
18,
17416,
8602,
5621,
3639,
368,
752,
3134,
3347,
3639,
389,
9216,
273,
394,
2029,
2932,
9216,
8863,
3639,
389,
9216,
18,
542,
2042,
6717,
12,
2704,
5589,
23,
74,
12,
20,
16,
374,
16,
399,
13578,
67,
4574,
10019,
3639,
368,
389,
9216,
18,
542,
2042,
5587,
12,
20,
18,
5877,
74,
1769,
3639,
3164,
938,
273,
389,
5900,
18,
945,
1488,
2932,
18688,
6117,
3113,
315,
18688,
407,
67,
1153,
8863,
3639,
389,
2789,
4376,
273,
938,
18,
588,
10816,
2932,
6130,
20387,
4376,
24899,
9216,
16,
374,
16,
446,
16,
446,
1769,
3639,
389,
9216,
18,
1289,
2933,
12,
2704,
5878,
7872,
24899,
9216,
16,
26915,
18,
1102,
10019,
3639,
389,
9216,
18,
1289,
2933,
12,
2704,
605,
465,
2750,
24899,
9216,
16,
399,
13578,
67,
4574,
16,
399,
13578,
67,
4574,
19,
24,
10019,
3639,
389,
9216,
18,
542,
3420,
1119,
12,
3420,
1304,
18,
298,
3369,
62,
5503,
1769,
3639,
389,
9216,
18,
2725,
3420,
1119,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1703,
8602,
1832,
565,
288,
3639,
2240,
18,
17416,
8602,
5621,
3639,
368,
752,
3134,
3347,
3639,
389,
9216,
273,
394,
2029,
2932,
9216,
8863,
3639,
389,
9216,
18,
542,
2042,
6717,
12,
2704,
5589,
23,
74,
12,
20,
16,
374,
16,
399,
13578,
67,
4574,
10019,
3639,
368,
389,
9216,
18,
542,
2042,
5587,
12,
20,
18,
5877,
74,
1769,
3639,
3164,
938,
273,
389,
5900,
18,
945,
1488,
2932,
18688,
6117,
3113,
315,
18688,
407,
67,
1153,
8863,
3639,
389,
2789,
4376,
273,
938,
18,
588,
10816,
2932,
6130,
20387,
4376,
24899,
9216,
16,
374,
16,
446,
16,
446,
1769,
3639,
389,
9216,
18,
1289,
2933,
12,
2704,
5878,
7872,
24899,
9216,
16,
26915,
2
] |
if (encoder.canEncode(c)) { buf.append(c); } else
|
if (!encoder.canEncode(c))
|
final byte[] encodeText(String text) throws IOException { encoder.reset(); if (!encoder.canEncode(text)) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); if (encoder.canEncode(c)) { buf.append(c); } else { // Replace with character entity reference String hex = Integer.toHexString((int) c); buf.append("&#x"); buf.append(hex); buf.append(';'); } } text = buf.toString(); } ByteBuffer encoded = encoder.encode(CharBuffer.wrap(text)); int len = encoded.limit() - encoded.position(); if (encoded.hasArray()) { byte[] ret = encoded.array(); if (ret.length > len) { // Why? byte[] ret2 = new byte[len]; System.arraycopy(ret, 0, ret2, 0, len); ret = ret2; } return ret; } encoded.flip(); byte[] ret = new byte[len]; encoded.get(ret, 0, len); return ret; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/StreamSerializer.java/buggy/core/src/classpath/gnu/gnu/xml/transform/StreamSerializer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1160,
8526,
2017,
1528,
12,
780,
977,
13,
565,
1216,
1860,
225,
288,
565,
7261,
18,
6208,
5621,
565,
309,
16051,
16480,
18,
4169,
5509,
12,
955,
3719,
1377,
288,
3639,
368,
2073,
1517,
3351,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
509,
562,
273,
977,
18,
2469,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
1850,
288,
5411,
1149,
276,
273,
977,
18,
3001,
861,
12,
77,
1769,
5411,
309,
261,
16480,
18,
4169,
5509,
12,
71,
3719,
2868,
288,
7734,
1681,
18,
6923,
12,
71,
1769,
2868,
289,
5411,
469,
2868,
288,
7734,
368,
6910,
598,
3351,
1522,
2114,
7734,
514,
3827,
273,
2144,
18,
869,
14866,
12443,
474,
13,
276,
1769,
7734,
1681,
18,
6923,
2932,
18642,
92,
8863,
7734,
1681,
18,
6923,
12,
7118,
1769,
7734,
1681,
18,
6923,
2668,
4359,
1769,
2868,
289,
1850,
289,
5411,
977,
273,
1681,
18,
10492,
5621,
1850,
289,
565,
7400,
3749,
273,
7261,
18,
3015,
12,
2156,
1892,
18,
4113,
12,
955,
10019,
565,
509,
562,
273,
3749,
18,
3595,
1435,
300,
3749,
18,
3276,
5621,
565,
309,
261,
10787,
18,
5332,
1076,
10756,
1377,
288,
3639,
1160,
8526,
325,
273,
3749,
18,
1126,
5621,
3639,
309,
261,
1349,
18,
2469,
405,
562,
13,
1850,
288,
5411,
368,
3497,
93,
35,
5411,
1160,
8526,
325,
22,
273,
394,
1160,
63,
1897,
15533,
5411,
2332,
18,
1126,
3530,
12,
1349,
16,
374,
16,
325,
22,
16,
374,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1160,
8526,
2017,
1528,
12,
780,
977,
13,
565,
1216,
1860,
225,
288,
565,
7261,
18,
6208,
5621,
565,
309,
16051,
16480,
18,
4169,
5509,
12,
955,
3719,
1377,
288,
3639,
368,
2073,
1517,
3351,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
509,
562,
273,
977,
18,
2469,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
1850,
288,
5411,
1149,
276,
273,
977,
18,
3001,
861,
12,
77,
1769,
5411,
309,
261,
16480,
18,
4169,
5509,
12,
71,
3719,
2868,
288,
7734,
1681,
18,
6923,
12,
71,
1769,
2868,
289,
5411,
469,
2868,
288,
7734,
368,
6910,
598,
3351,
1522,
2114,
7734,
514,
3827,
273,
2144,
18,
869,
14866,
2
] |
meanTransformationMatrixPool = createDummyMatrixPool("meanTransformationMatrix"); meanTransformationVectorPool = createDummyVectorPool("meanTransformationMatrix"); varianceTransformationMatrixPool = createDummyMatrixPool("varianceTransformationMatrix"); varianceTransformationVectorPool = createDummyVectorPool("varianceTransformationMatrix");
|
meanTransformationMatrixPool = createDummyMatrixPool("meanTransformationMatrix"); meanTransformationVectorPool = createDummyVectorPool("meanTransformationMatrix"); varianceTransformationMatrixPool = createDummyMatrixPool("varianceTransformationMatrix"); varianceTransformationVectorPool = createDummyVectorPool("varianceTransformationMatrix");
|
public void load() throws IOException { // TODO: what is this all about? hmmManager = new HMMManager(); contextIndependentUnits = new LinkedHashMap(); // dummy pools for these elements meanTransformationMatrixPool = createDummyMatrixPool("meanTransformationMatrix"); meanTransformationVectorPool = createDummyVectorPool("meanTransformationMatrix"); varianceTransformationMatrixPool = createDummyMatrixPool("varianceTransformationMatrix"); varianceTransformationVectorPool = createDummyVectorPool("varianceTransformationMatrix"); // do the actual acoustic model loading loadModelFiles(model); }
|
8321 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8321/41b9324cb05d8613eca0b71a08ad14de838fcf0e/Sphinx3Loader.java/buggy/sphinx4/edu/cmu/sphinx/linguist/acoustic/tiedstate/Sphinx3Loader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1262,
1435,
1216,
1860,
288,
3639,
368,
2660,
30,
4121,
353,
333,
777,
2973,
35,
3639,
366,
7020,
1318,
273,
394,
670,
8206,
1318,
5621,
3639,
819,
382,
10891,
7537,
273,
394,
13589,
5621,
3639,
368,
9609,
16000,
364,
4259,
2186,
3639,
3722,
15292,
4635,
2864,
273,
752,
20094,
4635,
2864,
2932,
7079,
15292,
4635,
8863,
3639,
3722,
15292,
5018,
2864,
273,
752,
20094,
5018,
2864,
2932,
7079,
15292,
4635,
8863,
3639,
12380,
15292,
4635,
2864,
273,
752,
20094,
4635,
2864,
2932,
11721,
15292,
4635,
8863,
3639,
12380,
15292,
5018,
2864,
273,
752,
20094,
5018,
2864,
2932,
11721,
15292,
4635,
8863,
3639,
368,
741,
326,
3214,
1721,
83,
641,
335,
938,
7153,
3639,
1262,
1488,
2697,
12,
2284,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1262,
1435,
1216,
1860,
288,
3639,
368,
2660,
30,
4121,
353,
333,
777,
2973,
35,
3639,
366,
7020,
1318,
273,
394,
670,
8206,
1318,
5621,
3639,
819,
382,
10891,
7537,
273,
394,
13589,
5621,
3639,
368,
9609,
16000,
364,
4259,
2186,
3639,
3722,
15292,
4635,
2864,
273,
752,
20094,
4635,
2864,
2932,
7079,
15292,
4635,
8863,
3639,
3722,
15292,
5018,
2864,
273,
752,
20094,
5018,
2864,
2932,
7079,
15292,
4635,
8863,
3639,
12380,
15292,
4635,
2864,
273,
752,
20094,
4635,
2864,
2932,
11721,
15292,
4635,
8863,
3639,
12380,
15292,
5018,
2864,
273,
752,
20094,
5018,
2864,
2932,
11721,
15292,
4635,
8863,
3639,
368,
741,
326,
3214,
1721,
83,
641,
335,
938,
7153,
3639,
1262,
1488,
2697,
2
] |
: action.getSelectFromTableSchema().getName();
|
: ((JDBCSchema) action.getSelectFromTableSchema()) .getDatabaseSchema();
|
public void doCreate(Create action, List statements) { String createTableSchema = action.getNewTableSchema() == null ? action .getDataSetSchemaName() : action.getNewTableSchema().getName(); String createTableName = action.getNewTableName(); String fromTableSchema = action.getSelectFromTableSchema() == null ? action .getDataSetSchemaName() : action.getSelectFromTableSchema().getName(); String fromTableName = action.getSelectFromTableName(); DataSetTableRestriction tblRestriction = action.getTableRestriction(); boolean useDistinct = action.isUseDistinct(); StringBuffer sb = new StringBuffer(); sb.append("create table " + createTableSchema + "." + createTableName + " as select "); if (useDistinct) sb.append("distinct "); for (Iterator i = action.getSelectFromColumns().iterator(); i.hasNext();) { Column col = (Column) i.next(); if (action.isUseAliases()) { DataSetColumn dsCol = (DataSetColumn) col; if (dsCol instanceof WrappedColumn) { sb.append("a."); sb.append(((WrappedColumn) dsCol).getWrappedColumn() .getName()); sb.append(" as "); } else if (dsCol instanceof SchemaNameColumn) { sb.append('\''); sb.append(fromTableSchema); sb.append("' as "); } else { // Ouch! throw new MartBuilderInternalError(); } } sb.append(col.getName()); if (i.hasNext()) sb.append(','); } sb.append(" from " + fromTableSchema + "." + fromTableName + " as a"); // Do restriction. if (tblRestriction != null) { sb.append(" where "); sb.append(tblRestriction.getSubstitutedExpression("a")); } statements.add(sb.toString()); }
|
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/c99f5719792c1057e153fcfd6a0e8076addad103/PostgreSQLDialect.java/clean/src/java/org/biomart/builder/controller/dialects/PostgreSQLDialect.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
1684,
12,
1684,
1301,
16,
987,
6317,
13,
288,
202,
202,
780,
19565,
3078,
273,
1301,
18,
588,
1908,
1388,
3078,
1435,
422,
446,
692,
1301,
9506,
202,
18,
588,
13676,
3078,
461,
1435,
294,
1301,
18,
588,
1908,
1388,
3078,
7675,
17994,
5621,
202,
202,
780,
752,
7147,
273,
1301,
18,
588,
1908,
7147,
5621,
202,
202,
780,
628,
1388,
3078,
273,
1301,
18,
588,
3391,
1265,
1388,
3078,
1435,
422,
446,
692,
1301,
9506,
202,
18,
588,
13676,
3078,
461,
1435,
9506,
202,
30,
1301,
18,
588,
3391,
1265,
1388,
3078,
7675,
17994,
5621,
202,
202,
780,
628,
7147,
273,
1301,
18,
588,
3391,
1265,
7147,
5621,
202,
202,
13676,
1388,
11670,
10142,
11670,
273,
1301,
18,
588,
1388,
11670,
5621,
202,
202,
6494,
999,
23402,
273,
1301,
18,
291,
3727,
23402,
5621,
202,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
202,
202,
18366,
18,
6923,
2932,
2640,
1014,
315,
397,
19565,
3078,
397,
4585,
397,
752,
7147,
9506,
202,
15,
315,
487,
2027,
315,
1769,
202,
202,
430,
261,
1202,
23402,
13,
1082,
202,
18366,
18,
6923,
2932,
24592,
315,
1769,
202,
202,
1884,
261,
3198,
277,
273,
1301,
18,
588,
3391,
1265,
3380,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
1494,
645,
273,
261,
1494,
13,
277,
18,
4285,
5621,
1082,
202,
430,
261,
1128,
18,
291,
3727,
9667,
10756,
288,
9506,
202,
13676,
1494,
3780,
914,
273,
261,
13676,
1494,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
1684,
12,
1684,
1301,
16,
987,
6317,
13,
288,
202,
202,
780,
19565,
3078,
273,
1301,
18,
588,
1908,
1388,
3078,
1435,
422,
446,
692,
1301,
9506,
202,
18,
588,
13676,
3078,
461,
1435,
294,
1301,
18,
588,
1908,
1388,
3078,
7675,
17994,
5621,
202,
202,
780,
752,
7147,
273,
1301,
18,
588,
1908,
7147,
5621,
202,
202,
780,
628,
1388,
3078,
273,
1301,
18,
588,
3391,
1265,
1388,
3078,
1435,
422,
446,
692,
1301,
9506,
202,
18,
588,
13676,
3078,
461,
1435,
9506,
202,
30,
1301,
18,
588,
3391,
1265,
1388,
3078,
7675,
17994,
5621,
202,
202,
780,
628,
7147,
273,
1301,
18,
588,
3391,
1265,
7147,
5621,
202,
202,
13676,
1388,
11670,
2
] |
required = required<<1;
|
required = required<<1;
|
public boolean poll(boolean mustCollect, Space space) throws LogicallyUninterruptiblePragma { if (collectionsInitiated > 0 || !initialized || space == metaDataSpace) return false; mustCollect |= stressTestGCRequired(); if (mustCollect || getPagesReserved() > getTotalPages()) { required = space.reservedPages() - space.committedPages(); if (space == copySpace0 || space == copySpace1) required = required<<1; // must account for copy reserve Collection.triggerCollection(Collection.RESOURCE_GC_TRIGGER); return true; } return false; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/758ed5c231ce2489135a1eef3a6d5c0ec6ce00d7/SemiSpaceBase.java/buggy/MMTk/src/org/mmtk/plan/SemiSpaceBase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
7672,
12,
6494,
1297,
10808,
16,
14059,
3476,
13,
377,
1216,
1827,
6478,
984,
31847,
1523,
2050,
9454,
288,
565,
309,
261,
19246,
2570,
10206,
405,
374,
747,
401,
13227,
747,
3476,
422,
11651,
3819,
13,
1377,
327,
629,
31,
565,
1297,
10808,
5626,
384,
663,
4709,
15396,
3705,
5621,
565,
309,
261,
11926,
10808,
747,
1689,
1023,
10435,
1435,
405,
12831,
5716,
10756,
288,
1377,
1931,
273,
3476,
18,
18898,
5716,
1435,
300,
3476,
18,
7371,
2344,
5716,
5621,
1377,
309,
261,
2981,
422,
1610,
3819,
20,
747,
3476,
422,
1610,
3819,
21,
13,
202,
4718,
273,
1931,
17685,
21,
31,
368,
1297,
2236,
364,
1610,
20501,
1377,
2200,
18,
10668,
2532,
12,
2532,
18,
11395,
67,
15396,
67,
6566,
27399,
1769,
1377,
327,
638,
31,
565,
289,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
7672,
12,
6494,
1297,
10808,
16,
14059,
3476,
13,
377,
1216,
1827,
6478,
984,
31847,
1523,
2050,
9454,
288,
565,
309,
261,
19246,
2570,
10206,
405,
374,
747,
401,
13227,
747,
3476,
422,
11651,
3819,
13,
1377,
327,
629,
31,
565,
1297,
10808,
5626,
384,
663,
4709,
15396,
3705,
5621,
565,
309,
261,
11926,
10808,
747,
1689,
1023,
10435,
1435,
405,
12831,
5716,
10756,
288,
1377,
1931,
273,
3476,
18,
18898,
5716,
1435,
300,
3476,
18,
7371,
2344,
5716,
5621,
1377,
309,
261,
2981,
422,
1610,
3819,
20,
747,
3476,
422,
1610,
3819,
21,
13,
202,
4718,
273,
1931,
17685,
21,
31,
368,
1297,
2236,
364,
1610,
20501,
1377,
2200,
18,
10668,
2532,
12,
2532,
18,
2
] |
suite.addTestSuite(EscapedMetaCharacterTest.class); suite.addTestSuite(EscapedUnicodeTest.class);
|
public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(AmbiguousInvocationTest.class); suite.addTestSuite(ArrayAutoboxingTest.class); suite.addTestSuite(ArrayParamMethodTest.class); suite.addTestSuite(ArrayTest.class); suite.addTestSuite(AssertNumberTest.class); suite.addTestSuite(AssertTest.class); suite.addTestSuite(AssignmentInsideExpressionBug.class); suite.addTestSuite(AutoboxingOfComparisonsBug.class); suite.addTestSuite(BadScriptNameBug.class); suite.addTestSuite(Base64Test.class); suite.addTestSuite(BenchmarkBug.class); suite.addTestSuite(BigDecimalOperationTest.class); suite.addTestSuite(BindingTest.class); suite.addTestSuite(BitwiseOperationsTest.class); suite.addTestSuite(BlockAsClosureBug.class); suite.addTestSuite(BooleanBug.class); suite.addTestSuite(BooleanOperationTest.class); suite.addTestSuite(ByteIndexBug.class); suite.addTestSuite(Bytecode2Bug.class); suite.addTestSuite(Bytecode3Bug.class); suite.addTestSuite(Bytecode4Bug.class); suite.addTestSuite(Bytecode5Bug.class); suite.addTestSuite(Bytecode6Bug.class); suite.addTestSuite(Bytecode7Bug.class); suite.addTestSuite(BytecodeBug.class); suite.addTestSuite(CallInnerClassCtorTest.class); suite.addTestSuite(CallingClosuresWithClosuresBug.class); suite.addTestSuite(CastTest.class); suite.addTestSuite(CastWhenUsingClosuresBug.class); suite.addTestSuite(CategoryTest.class); suite.addTestSuite(ChainedAssignment.class); suite.addTestSuite(ChristofsPropertyBug.class); suite.addTestSuite(ClassExpressionTest.class); suite.addTestSuite(ClassInNamedParamsBug.class); suite.addTestSuite(ClassLoaderBug.class); suite.addTestSuite(ClassTest.class); suite.addTestSuite(ClosureAsParamTest.class); suite.addTestSuite(ClosureClassLoaderBug.class); suite.addTestSuite(ClosureCloneTest.class); suite.addTestSuite(ClosureComparatorTest.class); suite.addTestSuite(ClosureCurryTest.class); suite.addTestSuite(ClosureInClosureBug.class); suite.addTestSuite(ClosureInClosureTest.class); // TODO //suite.addTestSuite(ClosureInStaticMethodTest.class); // TODO //suite.addTestSuite(ClosureMethodCallTest.class); suite.addTestSuite(ClosureMethodTest.class); suite.addTestSuite(ClosureParameterPassingBug.class); suite.addTestSuite(ClosureReturnTest.class); suite.addTestSuite(ClosureReturnWithoutReturnStatementTest.class); suite.addTestSuite(ClosureSugarTest.class); // TODO //suite.addTestSuite(ClosureTest.class); suite.addTestSuite(ClosureTypedVariableBug.class); suite.addTestSuite(ClosureUsingOuterVariablesTest.class); suite.addTestSuite(ClosureVariableBug.class); suite.addTestSuite(ClosureWithDefaultParamTest.class); suite.addTestSuite(CompareToTest.class); suite.addTestSuite(CompilerErrorTest.class); suite.addTestSuite(ConstructorBug.class); suite.addTestSuite(DateTest.class); suite.addTestSuite(DefVariableBug.class); suite.addTestSuite(DefaultParamClosureTest.class); suite.addTestSuite(DefaultParamTest.class); suite.addTestSuite(DollarEscapingTest.class); suite.addTestSuite(DoubleOperationTest.class); // TODO //suite.addTestSuite(EscapedMetaCharacterTest.class); // TODO //suite.addTestSuite(EscapedUnicodeTest.class); suite.addTestSuite(ExceptionInClosureTest.class); suite.addTestSuite(ExpandoPropertyTest.class); suite.addTestSuite(FilterLineTest.class); // TODO //suite.addTestSuite(ForAndSqlBug.class); suite.addTestSuite(ForLoopBug.class); suite.addTestSuite(ForLoopTest.class); suite.addTestSuite(ForLoopWithLocalVariablesTest.class); suite.addTestSuite(FullyQualifiedClassBug.class); suite.addTestSuite(GPathTest.class); suite.addTestSuite(GStringTest.class); // TODO //suite.addTestSuite(GeneratorTest.class); suite.addTestSuite(GetterBug.class); suite.addTestSuite(GlobalPrintlnTest.class); suite.addTestSuite(Groovy239_Bug.class); // todo suite.addTestSuite(Groovy249_Bug.class); suite.addTestSuite(Groovy252_Bug.class); suite.addTestSuite(Groovy389_Bug.class); suite.addTestSuite(Groovy513_Bug.class); suite.addTestSuite(GroovyMethodsTest.class); suite.addTestSuite(GuillaumesBug.class); suite.addTestSuite(GuillaumesMapBug.class); suite.addTestSuite(HeredocsTest.class); suite.addTestSuite(HomepageTest.class); suite.addTestSuite(IfElseCompactTest.class); suite.addTestSuite(IfElseTest.class); suite.addTestSuite(IfPropertyTest.class); suite.addTestSuite(IfTest.class); suite.addTestSuite(IfWithMethodCallTest.class); suite.addTestSuite(ImmutableModificationTest.class); suite.addTestSuite(ImportTest.class); suite.addTestSuite(InconsistentStackHeightBug.class); suite.addTestSuite(InstanceofTest.class); suite.addTestSuite(InvokeNormalMethodFromBuilder_Bug657.class); suite.addTestSuite(InvokeNormalMethodsFirstTest.class); suite.addTestSuite(IntegerOperationTest.class); suite.addTestSuite(IterateOverCustomTypeBug.class); suite.addTestSuite(ListIteratingTest.class); //todo suite.addTestSuite(ListTest.class); suite.addTestSuite(LiteralTypesTest.class); suite.addTestSuite(LittleClosureTest.class); suite.addTestSuite(LocalFieldTest.class); suite.addTestSuite(LocalPropertyTest.class); suite.addTestSuite(LocalVariableTest.class); suite.addTestSuite(LogTest.class); suite.addTestSuite(LogicTest.class); // TODO //suite.addTestSuite(LoopBreakTest.class); suite.addTestSuite(MapConstructionTest.class); suite.addTestSuite(MapPropertyTest.class); suite.addTestSuite(MapTest.class); //todo suite.addTestSuite(MarkupAndMethodBug.class); suite.addTestSuite(MethodCallTest.class); suite.addTestSuite(MethodCallWithoutParensInStaticMethodBug.class); suite.addTestSuite(MethodCallWithoutParenthesisTest.class); suite.addTestSuite(MethodDispatchBug.class); suite.addTestSuite(MethodParameterAccessWithinClosureTest.class); suite.addTestSuite(MinMaxTest.class); suite.addTestSuite(MinusEqualsTest.class); suite.addTestSuite(ModuloTest.class); suite.addTestSuite(MorgansBug.class); suite.addTestSuite(MultilineStringTest.class); suite.addTestSuite(MultiplyDivideEqualsTest.class); suite.addTestSuite(NamedParameterTest.class); suite.addTestSuite(NavigationTest.class); suite.addTestSuite(NegateListsTest.class); suite.addTestSuite(NegationTests.class); suite.addTestSuite(NestedClosure2Bug.class); suite.addTestSuite(NestedClosureBug.class); suite.addTestSuite(NestedClosureBugTest.class); suite.addTestSuite(NewExpressionTest.class); suite.addTestSuite(NoPackageTest.class); suite.addTestSuite(NodeGPathTest.class); suite.addTestSuite(NullCompareBug.class); suite.addTestSuite(NullPropertyTest.class); suite.addTestSuite(NumberMathTest.class); suite.addTestSuite(NumberTest.class); suite.addTestSuite(OptionalReturnTest.class); suite.addTestSuite(OrderByTest.class); suite.addTestSuite(OverloadInvokeMethodBug.class); suite.addTestSuite(OverloadInvokeMethodTest.class); suite.addTestSuite(OverridePropertyGetterTest.class); suite.addTestSuite(PlusEqualsTest.class); suite.addTestSuite(PostfixTest.class); suite.addTestSuite(PowerOperationTest.class); suite.addTestSuite(PrefixTest.class); // TODO //suite.addTestSuite(PrimitiveArraysTest.class); suite.addTestSuite(PrimitiveTypeFieldTest.class); suite.addTestSuite(PrimitiveTypesTest.class); // TODO //suite.addTestSuite(PrintTest.class); suite.addTestSuite(PrintlnWithNewBug.class); suite.addTestSuite(PrivateVariableAccessFromAnotherInstanceTest.class); suite.addTestSuite(ProcessTest.class); suite.addTestSuite(PropertyBug.class); suite.addTestSuite(PropertyTest.class); suite.addTestSuite(PropertyTest2.class); suite.addTestSuite(PropertyWithoutDotTest.class); suite.addTestSuite(RangeTest.class); suite.addTestSuite(ReadLineTest.class); suite.addTestSuite(RegularExpressionsTest.class); suite.addTestSuite(ReturnTest.class); suite.addTestSuite(RodsBooleanBug.class); suite.addTestSuite(RodsBug.class); // TODO //suite.addTestSuite(SafeNavigationTest.class); suite.addTestSuite(SpreadOperatorTest.class); suite.addTestSuite(SerializeTest.class); suite.addTestSuite(ShellTest.class); suite.addTestSuite(SmallTreeTest.class); suite.addTestSuite(SocketTest.class); suite.addTestSuite(SortTest.class); suite.addTestSuite(StaticClosurePropertyBug.class); suite.addTestSuite(StaticMarkupBug.class); suite.addTestSuite(StaticPrintlnTest.class); suite.addTestSuite(StaticThisTest.class); suite.addTestSuite(StringOperationTest.class); suite.addTestSuite(StringTest.class); suite.addTestSuite(SubscriptAndExpressionBug.class); suite.addTestSuite(SubscriptTest.class); //todo suite.addTestSuite(SuperMethod2Bug.class); suite.addTestSuite(SuperMethodBug.class); suite.addTestSuite(SwitchTest.class); suite.addTestSuite(SwitchWithDifferentTypesTest.class); suite.addTestSuite(TedsClosureBug.class); suite.addTestSuite(TernaryOperatorTest.class); suite.addTestSuite(TextPropertyTest.class); suite.addTestSuite(ThrowTest.class); suite.addTestSuite(ToArrayBug.class); suite.addTestSuite(ToStringBug.class); suite.addTestSuite(TreeTest.class); suite.addTestSuite(TripleQuotedStringTest.class); suite.addTestSuite(TryCatch2Bug.class); suite.addTestSuite(TryCatchBug.class); suite.addTestSuite(TryCatchTest.class); suite.addTestSuite(TypesafeMethodTest.class); suite.addTestSuite(UnaryMinusTest.class); suite.addTestSuite(UnknownVariableBug.class); suite.addTestSuite(UnsafeNavigationTest.class); suite.addTestSuite(UseClosureInClosureBug.class); suite.addTestSuite(UseStaticInClosureBug.class); suite.addTestSuite(VariableScopingBug.class); //todo suite.addTestSuite(VariblePrecedence.class); suite.addTestSuite(VerbatimGStringTest.class); suite.addTestSuite(VerboseTreeTest.class); suite.addTestSuite(WhileLoopTest.class); suite.addTestSuite(ZoharsBug.class); return suite; }
|
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/84caa4f965d4ec748f0aa1f72fd8910dbd2c77b2/UberTestCase.java/buggy/src/test/UberTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
30676,
18,
1289,
4709,
13587,
12,
17208,
2781,
7069,
4709,
18,
1106,
1769,
225,
11371,
18,
1289,
4709,
13587,
12,
17208,
16532,
4709,
18,
1106,
1769,
565,
7766,
13587,
11371,
273,
394,
7766,
13587,
5621,
30676,
18,
1289,
4709,
13587,
12,
17208,
2781,
7069,
4709,
18,
1106,
1769,
225,
11371,
18,
1289,
4709,
13587,
12,
17208,
16532,
4709,
18,
1106,
1769,
565,
11371,
18,
1289,
4709,
13587,
12,
30706,
10623,
9267,
4709,
18,
1106,
1769,
30676,
18,
1289,
4709,
13587,
12,
17208,
2781,
7069,
4709,
18,
1106,
1769,
225,
11371,
18,
1289,
4709,
13587,
12,
17208,
16532,
4709,
18,
1106,
1769,
565,
11371,
18,
1289,
4709,
13587,
12,
1076,
7150,
27570,
310,
4709,
18,
1106,
1769,
30676,
18,
1289,
4709,
13587,
12,
17208,
2781,
7069,
4709,
18,
1106,
1769,
225,
11371,
18,
1289,
4709,
13587,
12,
17208,
16532,
4709,
18,
1106,
1769,
11371,
18,
1289,
4709,
13587,
12,
17208,
2781,
7069,
4709,
18,
1106,
1769,
225,
11371,
18,
1289,
4709,
13587,
12,
17208,
16532,
4709,
18,
1106,
1769,
11371,
18,
1289,
4709,
13587,
12,
17208,
2781,
7069,
4709,
18,
1106,
1769,
225,
11371,
18,
1289,
4709,
13587,
12,
17208,
16532,
4709,
18,
1106,
1769,
225,
11371,
18,
1289,
4709,
13587,
12,
1076,
786,
1305,
4709,
18,
1106,
1769,
30676,
18,
1289,
4709,
13587,
12,
17208,
2781,
7069,
4709,
18,
1106,
1769,
225,
11371,
18,
1289,
4709,
13587,
12,
17208,
16532,
4709,
18,
1106,
1769,
565,
11371,
18,
1289,
4709,
13587,
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,
7766,
11371,
1435,
288,
30676,
18,
1289,
4709,
13587,
12,
17208,
2781,
7069,
4709,
18,
1106,
1769,
225,
11371,
18,
1289,
4709,
13587,
12,
17208,
16532,
4709,
18,
1106,
1769,
565,
7766,
13587,
11371,
273,
394,
7766,
13587,
5621,
30676,
18,
1289,
4709,
13587,
12,
17208,
2781,
7069,
4709,
18,
1106,
1769,
225,
11371,
18,
1289,
4709,
13587,
12,
17208,
16532,
4709,
18,
1106,
1769,
565,
11371,
18,
1289,
4709,
13587,
12,
30706,
10623,
9267,
4709,
18,
1106,
1769,
30676,
18,
1289,
4709,
13587,
12,
17208,
2781,
7069,
4709,
18,
1106,
1769,
225,
11371,
18,
1289,
4709,
13587,
12,
17208,
16532,
4709,
18,
1106,
1769,
565,
11371,
18,
1289,
4709,
13587,
12,
1076,
7150,
27570,
310,
2
] |
|
model.add(new UserNameStep(this)); model.add(new UserDetailsStep(this)); model.add(new UserRolesStep(this)); model.add(new ConfirmationStep(this));
|
model.add(new UserNameStep()); model.add(new UserDetailsStep()); model.add(new UserRolesStep()); model.add(new ConfirmationStep());
|
public NewUserWizard(MarkupContainer parent, String id) { super(parent, id); // create a blank user user = new User(); setModel(new CompoundPropertyModel(this)); WizardModel model = new WizardModel(); model.add(new UserNameStep(this)); model.add(new UserDetailsStep(this)); model.add(new UserRolesStep(this)); model.add(new ConfirmationStep(this)); // initialize the wizard with the wizard model we just built init(model); }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/59ef2ce9baa44b851262f4310b2454a85dff7daa/NewUserWizard.java/clean/wicket-examples/src/java/wicket/examples/wizard/NewUserWizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1166,
1299,
27130,
12,
13111,
2170,
982,
16,
514,
612,
13,
202,
95,
202,
202,
9565,
12,
2938,
16,
612,
1769,
202,
202,
759,
752,
279,
7052,
729,
202,
202,
1355,
273,
394,
2177,
5621,
202,
202,
542,
1488,
12,
2704,
21327,
1396,
1488,
12,
2211,
10019,
202,
202,
27130,
1488,
938,
273,
394,
678,
13412,
1488,
5621,
202,
202,
2284,
18,
1289,
12,
2704,
29313,
4160,
12,
2211,
10019,
202,
202,
2284,
18,
1289,
12,
2704,
2177,
3790,
4160,
12,
2211,
10019,
202,
202,
2284,
18,
1289,
12,
2704,
2177,
6898,
4160,
12,
2211,
10019,
202,
202,
2284,
18,
1289,
12,
2704,
17580,
367,
4160,
12,
2211,
10019,
202,
202,
759,
4046,
326,
24204,
598,
326,
24204,
938,
732,
2537,
6650,
202,
202,
2738,
12,
2284,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
1166,
1299,
27130,
12,
13111,
2170,
982,
16,
514,
612,
13,
202,
95,
202,
202,
9565,
12,
2938,
16,
612,
1769,
202,
202,
759,
752,
279,
7052,
729,
202,
202,
1355,
273,
394,
2177,
5621,
202,
202,
542,
1488,
12,
2704,
21327,
1396,
1488,
12,
2211,
10019,
202,
202,
27130,
1488,
938,
273,
394,
678,
13412,
1488,
5621,
202,
202,
2284,
18,
1289,
12,
2704,
29313,
4160,
12,
2211,
10019,
202,
202,
2284,
18,
1289,
12,
2704,
2177,
3790,
4160,
12,
2211,
10019,
202,
202,
2284,
18,
1289,
12,
2704,
2177,
6898,
4160,
12,
2211,
10019,
202,
202,
2284,
18,
1289,
12,
2704,
17580,
367,
4160,
12,
2211,
10019,
202,
202,
759,
4046,
326,
24204,
598,
2
] |
height = parse(s.substring(hndx + hstr.length(), q), height);
|
height = parse(setup.substring(hndx + hstr.length(), q), height);
|
public SlimPlotter(String[] args) throws Exception { ProgressMonitor progress = new ProgressMonitor(null, "Launching SlimPlotter", "Initializing", 0, 23); progress.setMillisToPopup(0); progress.setMillisToDecideToPopup(0); int p = 0; // parse command line arguments String filename = null; File file = null; if (args == null || args.length < 1) { JFileChooser jc = new JFileChooser(System.getProperty("user.dir")); jc.addChoosableFileFilter(new ExtensionFileFilter("sdt", "Becker & Hickl SPC-Image SDT")); int rval = jc.showOpenDialog(null); if (rval != JFileChooser.APPROVE_OPTION) { System.out.println("Please specify an SDT file."); System.exit(1); } file = jc.getSelectedFile(); filename = file.getPath(); } else { filename = args[0]; file = new File(filename); } width = height = timeBins = channels = -1; if (args.length >= 3) { width = parse(args[1], -1); height = parse(args[2], -1); } if (args.length >= 4) timeBins = parse(args[3], -1); if (args.length >= 5) channels = parse(args[4], -1); // read SDT file header DataInputStream fin = new DataInputStream(new BufferedInputStream( new FileInputStream(file))); fin.mark(4096); fin.skipBytes(14); // skip 14 byte header int offset = DataTools.read2UnsignedBytes(fin, true) + 22; System.out.println("Data offset: " + offset);//TEMP byte[] stuff = new byte[4077]; fin.readFully(stuff); String s = new String(stuff); fin.reset(); int leftToFind = 3; if (width < 0) { String wstr = "[SP_SCAN_X,I,"; int wndx = s.indexOf(wstr); width = 128; if (wndx >= 0) { int q = s.indexOf("]", wndx); if (q >= 0) { width = parse(s.substring(wndx + wstr.length(), q), width); System.out.println("Got width from file: " + width);//TEMP leftToFind--; } } } if (height < 0) { height = 128; String hstr = "[SP_SCAN_Y,I,"; int hndx = s.indexOf(hstr); if (hndx >= 0) { int q = s.indexOf("]", hndx); if (q >= 0) { height = parse(s.substring(hndx + hstr.length(), q), height); System.out.println("Got height from file: " + height);//TEMP leftToFind--; } } } if (timeBins < 0) { timeBins = 64; String tstr = "[SP_ADC_RE,I,"; int tndx = s.indexOf(tstr); if (tndx >= 0) { int q = s.indexOf("]", tndx); if (q >= 0) { timeBins = parse(s.substring(tndx + tstr.length(), q), timeBins); System.out.println("Got timeBins from file: " + timeBins);//TEMP leftToFind--; } } } if (channels < 0) { // autodetect number of channels based on file size channels = (int) ((file.length() - offset) / (2 * timeBins * width * height)); } timeRange = 12.5; minWave = 400; waveStep = 10; // warn user if some numbers were not found if (leftToFind > 0) { JOptionPane.showMessageDialog(null, "Some numbers (image width, image height, and number of time bins)\n" + "were not found within the file. The numbers you are about to see\n" + "are best guesses. Please change them if they are incorrect.", "SlimPlotter", JOptionPane.WARNING_MESSAGE); } // show dialog confirming data parameters paramDialog = new JDialog((Frame) null, "SlimPlotter", true); JPanel paramPane = new JPanel(); paramPane.setBorder(new EmptyBorder(10, 10, 10, 10)); paramDialog.setContentPane(paramPane); paramPane.setLayout(new GridLayout(9, 3)); wField = addRow(paramPane, "Image width", width, "pixels"); hField = addRow(paramPane, "Image height", height, "pixels"); tField = addRow(paramPane, "Time bins", timeBins, ""); cField = addRow(paramPane, "Channel count", channels, ""); trField = addRow(paramPane, "Time range", timeRange, "nanoseconds"); wlField = addRow(paramPane, "Starting wavelength", minWave, "nanometers"); sField = addRow(paramPane, "Channel width", waveStep, "nanometers"); JButton ok = new JButton("OK"); ok.addActionListener(this); paramPane.add(new JLabel()); paramPane.add(new JLabel()); paramPane.add(new JLabel()); paramPane.add(new JLabel()); paramPane.add(ok); paramDialog.pack(); Dimension ss = Toolkit.getDefaultToolkit().getScreenSize(); Dimension ps = paramDialog.getSize(); paramDialog.setLocation((ss.width - ps.width) / 2, (ss.height - ps.height) / 2); paramDialog.setVisible(true); int maxWave = minWave + (channels - 1) * waveStep; // read pixel data progress.setMaximum(channels + 7); progress.setNote("Reading data"); fin.skipBytes(offset); // skip to data byte[] data = new byte[2 * channels * height * width * timeBins]; fin.readFully(data); fin.close(); progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); // create types progress.setNote("Creating types"); RealType xType = RealType.getRealType("element"); RealType yType = RealType.getRealType("line"); ScaledUnit ns = new ScaledUnit(1e-9, SI.second, "ns"); ScaledUnit nm = new ScaledUnit(1e-9, SI.meter, "nm"); RealType bType = RealType.getRealType("bin", ns); cType = RealType.getRealType("channel", nm); RealType vType = RealType.getRealType("value"); RealTupleType xy = new RealTupleType(xType, yType); FunctionType xyvFunc = new FunctionType(xy, vType); Integer2DSet xySet = new Integer2DSet(xy, width, height); FunctionType cxyvFunc = new FunctionType(cType, xyvFunc); Linear1DSet cSet = new Linear1DSet(cType, minWave, maxWave, channels, null, new Unit[] {nm}, null); RealTupleType bc = new RealTupleType(bType, cType); bcvFunc = new FunctionType(bc, vType); bcSet = new Linear2DSet(bc, 0, timeRange, timeBins, minWave, maxWave, channels, null, new Unit[] {ns, nm}, null); progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); // plot intensity data in 2D display progress.setNote("Building displays"); iPlot = new DisplayImplJ3D("intensity", new TwoDDisplayRendererJ3D()); iPlot.getMouseBehavior().getMouseHelper().setFunctionMap(new int[][][] { {{MouseHelper.DIRECT, MouseHelper.NONE}, // L, shift-L {MouseHelper.NONE, MouseHelper.NONE}}, // ctrl-L, ctrl-shift-L {{MouseHelper.CURSOR_TRANSLATE, MouseHelper.CURSOR_ZOOM}, // M, shift-M {MouseHelper.CURSOR_ROTATE, MouseHelper.NONE}}, // ctrl-M, ctrl-shift-M {{MouseHelper.ROTATE, MouseHelper.ZOOM}, // R, shift-R {MouseHelper.TRANSLATE, MouseHelper.NONE}}, // ctrl-R, ctrl-shift-R }); iPlot.enableEvent(DisplayEvent.MOUSE_DRAGGED); iPlot.enableEvent(DisplayEvent.MOUSE_MOVED); iPlot.addDisplayListener(this); iPlot.addMap(new ScalarMap(xType, Display.XAxis)); iPlot.addMap(new ScalarMap(yType, Display.YAxis)); iPlot.addMap(new ScalarMap(vType, Display.RGB)); iPlot.addMap(new ScalarMap(cType, Display.Animation)); DataReferenceImpl intensityRef = new DataReferenceImpl("intensity"); iPlot.addReference(intensityRef); final DataReferenceImpl boxRef = new DataReferenceImpl("box");// for RubberBandBoxRendererJ3D: boxRef.setData(new Gridded2DSet(xy, null, 1)); // dummy iPlot.addReferences(new RubberBandBoxRendererJ3D(xType, yType, 0, 0), boxRef);// for CurveManipulationRendererJ3D:// UnionSet dummy = new UnionSet(xy, new Gridded2DSet[] {// new Gridded2DSet(xy, new float[][] {{0}, {0}}, 1)// });// boxRef.setData(dummy);// CurveManipulationRendererJ3D curve =// new CurveManipulationRendererJ3D(0, 0, true);// iPlot.addReferences(curve, boxRef); CellImpl cell = new CellImpl() { public void doAction() throws VisADException, RemoteException { Set set = (Set) boxRef.getData(); if (set == null) return; float[][] samples = set.getSamples(false); if (samples == null) return; minX = (int) Math.round(samples[0][0]); minY = (int) Math.round(samples[1][0]); maxX = (int) Math.round(samples[0][1]); maxY = (int) Math.round(samples[1][1]); plotData(true); } }; cell.addReference(boxRef); ac = (AnimationControl) iPlot.getControl(AnimationControl.class); iPlot.getProjectionControl().setMatrix( iPlot.make_matrix(0, 0, 0, 0.85, 0, 0, 0)); progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); // plot decay curves in 3D display decayPlot = new DisplayImplJ3D("decay"); ScalarMap xMap = new ScalarMap(bType, Display.XAxis); ScalarMap yMap = new ScalarMap(cType, Display.YAxis); zMap = new ScalarMap(vType, Display.ZAxis); decayPlot.addMap(xMap); decayPlot.addMap(yMap); decayPlot.addMap(zMap); vMap = new ScalarMap(vType, Display.RGB); decayPlot.addMap(vMap); ref = new DataReferenceImpl("decay"); decayPlot.addReference(ref); xMap.getAxisScale().setTitle("Time (ns)"); yMap.getAxisScale().setTitle("Wavelength (nm)"); zMap.getAxisScale().setTitle("Count"); decayPlot.getGraphicsModeControl().setScaleEnable(true); decayPlot.getGraphicsModeControl().setTextureEnable(false); decayPlot.getProjectionControl().setMatrix(MATRIX); decayPlot.getProjectionControl().setAspectCartesian( new double[] {2, 1, 1}); progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); // convert byte data to shorts progress.setNote("Constructing images "); values = new int[channels][height][width][timeBins]; float[][][] pix = new float[channels][1][width * height]; FieldImpl field = new FieldImpl(cxyvFunc, cSet); int max = 0; int maxChan = 0; for (int c=0; c<channels; c++) { progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); int oc = timeBins * width * height * c; for (int h=0; h<height; h++) { int oh = timeBins * width * h; for (int w=0; w<width; w++) { int ow = timeBins * w; int sum = 0; for (int t=0; t<timeBins; t++) { int ndx = 2 * (oc + oh + ow + t); int val = DataTools.bytesToInt(data, ndx, 2, true); if (val > max) { max = val; maxChan = c; } values[c][h][w][t] = val; sum += val; } pix[c][0][width * h + w] = sum; } } FlatField ff = new FlatField(xyvFunc, xySet); ff.setSamples(pix[c], false); field.setSample(c, ff); } progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); // show 2D window on screen progress.setNote("Creating plots"); JFrame intensityFrame = new JFrame("Intensity Data"); intensityFrame.addWindowListener(this); JPanel intensityPane = new JPanel(); intensityPane.setLayout(new BorderLayout()); intensityPane.add(iPlot.getComponent(), BorderLayout.CENTER); cSlider = new JSlider(1, channels, 1); cSlider.setSnapToTicks(true); cSlider.setMajorTickSpacing(channels / 4); cSlider.setMinorTickSpacing(1); cSlider.setPaintTicks(true); cSlider.addChangeListener(this); intensityPane.add(cSlider, BorderLayout.SOUTH); int pad = 30; int ifx = pad / 2, ify = pad / 2; int ifw = (ss.width - pad) / 2, ifh = ifw; intensityFrame.setContentPane(intensityPane); intensityFrame.setBounds(ifx, ify, ifw, ifh); intensityRef.setData(field); ColorControl cc = (ColorControl) iPlot.getControl(ColorControl.class); cc.setTable(ColorControl.initTableGreyWedge(new float[3][256])); intensityFrame.setVisible(true); progress.setProgress(++p); if (progress.isCanceled()) System.exit(0); // show 3D window on screen JFrame decayFrame = new JFrame("Spectral Lifetime Data"); decayFrame.addWindowListener(this); JPanel decayPane = new JPanel(); decayPane.setLayout(new BorderLayout()); decayPane.add(decayPlot.getComponent(), BorderLayout.CENTER); decayLabel = new JLabel("Decay curve for all pixels"); decayPane.add(decayLabel, BorderLayout.NORTH); JPanel options = new JPanel(); options.setLayout(new BoxLayout(options, BoxLayout.X_AXIS)); surface = new JCheckBox("Surface", true); surface.addChangeListener(this); parallel = new JCheckBox("Parallel projection", false); parallel.addChangeListener(this); logScale = new JCheckBox("Log scale", false); logScale.addChangeListener(this); options.add(surface); options.add(parallel); options.add(logScale); decayPane.add(options, BorderLayout.SOUTH); decayFrame.setContentPane(decayPane); decayFrame.setBounds(ifx + ifw, ify, ifw, ifh); minX = minY = 0; maxX = width; maxY = height; plotData(true); cSlider.setValue(maxChan + 1); decayFrame.setVisible(true); progress.setProgress(++p); }
|
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/1de1936b126cff0a7aa0c87975d237db709e4135/SlimPlotter.java/buggy/loci/slim/SlimPlotter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
348,
7091,
11532,
387,
12,
780,
8526,
833,
13,
1216,
1185,
288,
565,
10980,
7187,
4007,
273,
394,
10980,
7187,
12,
2011,
16,
1377,
315,
9569,
310,
348,
7091,
11532,
387,
3113,
315,
29782,
3113,
374,
16,
10213,
1769,
565,
4007,
18,
542,
4814,
774,
13770,
12,
20,
1769,
565,
4007,
18,
542,
4814,
774,
1799,
831,
774,
13770,
12,
20,
1769,
565,
509,
293,
273,
374,
31,
565,
368,
1109,
1296,
980,
1775,
565,
514,
1544,
273,
446,
31,
565,
1387,
585,
273,
446,
31,
565,
309,
261,
1968,
422,
446,
747,
833,
18,
2469,
411,
404,
13,
288,
1377,
804,
812,
17324,
19807,
273,
394,
804,
812,
17324,
12,
3163,
18,
588,
1396,
2932,
1355,
18,
1214,
7923,
1769,
1377,
19807,
18,
1289,
9636,
538,
429,
29837,
12,
2704,
10021,
29837,
2932,
6427,
88,
3113,
3639,
315,
38,
762,
264,
473,
670,
1200,
80,
348,
3513,
17,
2040,
348,
9081,
7923,
1769,
1377,
509,
14267,
273,
19807,
18,
4500,
3678,
6353,
12,
2011,
1769,
1377,
309,
261,
86,
1125,
480,
804,
812,
17324,
18,
2203,
3373,
3412,
67,
7425,
13,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
8496,
4800,
392,
348,
9081,
585,
1199,
1769,
3639,
2332,
18,
8593,
12,
21,
1769,
1377,
289,
1377,
585,
273,
19807,
18,
588,
7416,
812,
5621,
1377,
1544,
273,
585,
18,
588,
743,
5621,
565,
289,
565,
469,
288,
1377,
1544,
273,
833,
63,
20,
15533,
1377,
585,
273,
394,
1387,
12,
3459,
1769,
565,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
348,
7091,
11532,
387,
12,
780,
8526,
833,
13,
1216,
1185,
288,
565,
10980,
7187,
4007,
273,
394,
10980,
7187,
12,
2011,
16,
1377,
315,
9569,
310,
348,
7091,
11532,
387,
3113,
315,
29782,
3113,
374,
16,
10213,
1769,
565,
4007,
18,
542,
4814,
774,
13770,
12,
20,
1769,
565,
4007,
18,
542,
4814,
774,
1799,
831,
774,
13770,
12,
20,
1769,
565,
509,
293,
273,
374,
31,
565,
368,
1109,
1296,
980,
1775,
565,
514,
1544,
273,
446,
31,
565,
1387,
585,
273,
446,
31,
565,
309,
261,
1968,
422,
446,
747,
833,
18,
2469,
411,
404,
13,
288,
1377,
804,
812,
17324,
19807,
273,
394,
804,
812,
17324,
12,
3163,
18,
588,
1396,
2932,
1355,
2
] |
throw new org.apache.xalan.utils.WrappedRuntimeException(
|
throw new org.apache.xml.utils.WrappedRuntimeException(
|
Node getDoc(XPathContext xctxt, Node context, String uri, String base) throws javax.xml.transform.TransformerException { // System.out.println("base: "+base+", uri: "+uri); SourceTreeManager treeMgr = xctxt.getSourceTreeManager(); Node newDoc; try { Source source = treeMgr.resolveURI(base, uri, xctxt.getSAXLocator()); newDoc = treeMgr.getNode(source); } catch (IOException ioe) { throw new TransformerException(ioe.getMessage(), (SourceLocator)xctxt.getSAXLocator(), ioe); } catch(TransformerException te) { throw new TransformerException(te); } if (null != newDoc) return newDoc; // If the uri length is zero, get the uri of the stylesheet. if (uri.length() == 0) uri = xctxt.getNamespaceContext().getBaseIdentifier(); String diagnosticsString = null; try { if ((null != uri) && (uri.toString().length() > 0)) { newDoc = treeMgr.getSourceTree(base, uri, xctxt.getSAXLocator()); // System.out.println("newDoc: "+((Document)newDoc).getDocumentElement().getNodeName()); } else warn(xctxt, XSLTErrorResources.WG_CANNOT_MAKE_URL_FROM, new Object[]{ ((base == null) ? "" : base) + uri }); //"Can not make URL from: "+((base == null) ? "" : base )+uri); } catch (Throwable throwable) { // throwable.printStackTrace(); newDoc = null; // path.warn(XSLTErrorResources.WG_ENCODING_NOT_SUPPORTED_USING_JAVA, new Object[]{((base == null) ? "" : base )+uri}); //"Can not load requested doc: "+((base == null) ? "" : base )+uri); while (throwable instanceof org.apache.xalan.utils.WrappedRuntimeException) { throwable = ((org.apache.xalan.utils.WrappedRuntimeException) throwable).getException(); } if ((throwable instanceof NullPointerException) || (throwable instanceof ClassCastException)) { throw new org.apache.xalan.utils.WrappedRuntimeException( (Exception) throwable); } StringWriter sw = new StringWriter(); PrintWriter diagnosticsWriter = new PrintWriter(sw); if (throwable instanceof TransformerException) { TransformerException spe = (TransformerException) throwable; { Exception e = spe; while (null != e) { if (null != e.getMessage()) { diagnosticsWriter.println(" (" + e.getClass().getName() + "): " + e.getMessage()); } if (e instanceof TransformerException) { TransformerException spe2 = (TransformerException) e; SourceLocator locator = spe2.getLocator(); if ((null != locator) && (null != locator.getSystemId())) diagnosticsWriter.println(" ID: " + locator.getSystemId() + " Line #" + locator.getLineNumber() + " Column #" + locator.getColumnNumber()); e = spe2.getException(); if (e instanceof org.apache.xalan.utils.WrappedRuntimeException) e = ((org.apache.xalan.utils.WrappedRuntimeException) e).getException(); } else e = null; } } } else { diagnosticsWriter.println(" (" + throwable.getClass().getName() + "): " + throwable.getMessage()); } diagnosticsString = throwable.getMessage(); //sw.toString(); } if (null == newDoc) { // System.out.println("what?: "+base+", uri: "+uri); if (null != diagnosticsString) { warn(xctxt, XSLTErrorResources.WG_CANNOT_LOAD_REQUESTED_DOC, new Object[]{ diagnosticsString }); //"Can not load requested doc: "+((base == null) ? "" : base )+uri); } else warn(xctxt, XSLTErrorResources.WG_CANNOT_LOAD_REQUESTED_DOC, new Object[]{ uri == null ? ((base == null) ? "" : base) + uri : uri.toString() }); //"Can not load requested doc: "+((base == null) ? "" : base )+uri); } else { // TBD: What to do about XLocator? // xctxt.getSourceTreeManager().associateXLocatorToNode(newDoc, url, null); } return newDoc; }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/d4f9ef1128e471c78e8cc97f9a11f7021597682b/FuncDocument.java/buggy/src/org/apache/xalan/templates/FuncDocument.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
2029,
17999,
12,
14124,
1042,
25465,
16,
2029,
819,
16,
514,
2003,
16,
514,
1026,
13,
1850,
1216,
6863,
18,
2902,
18,
6547,
18,
8319,
503,
225,
288,
565,
368,
2332,
18,
659,
18,
8222,
2932,
1969,
30,
13773,
1969,
15,
3113,
2003,
30,
13773,
1650,
1769,
565,
4998,
2471,
1318,
2151,
9455,
273,
25465,
18,
588,
1830,
2471,
1318,
5621,
3639,
2029,
394,
1759,
31,
565,
775,
565,
288,
1377,
4998,
1084,
273,
2151,
9455,
18,
10828,
3098,
12,
1969,
16,
2003,
16,
25465,
18,
588,
55,
2501,
5786,
10663,
1377,
394,
1759,
273,
2151,
9455,
18,
588,
907,
12,
3168,
1769,
565,
289,
565,
1044,
261,
14106,
10847,
13,
565,
288,
1377,
604,
394,
21684,
12,
1594,
73,
18,
24906,
9334,
540,
261,
1830,
5786,
13,
92,
20364,
18,
588,
55,
2501,
5786,
9334,
10847,
1769,
565,
289,
565,
1044,
12,
8319,
503,
6489,
13,
565,
288,
1377,
604,
394,
21684,
12,
736,
1769,
565,
289,
565,
309,
261,
2011,
480,
394,
1759,
13,
1377,
327,
394,
1759,
31,
565,
368,
971,
326,
2003,
769,
353,
3634,
16,
336,
326,
2003,
434,
326,
13820,
18,
565,
309,
261,
1650,
18,
2469,
1435,
422,
374,
13,
1377,
2003,
273,
25465,
18,
588,
3402,
1042,
7675,
588,
2171,
3004,
5621,
565,
514,
22568,
780,
273,
446,
31,
565,
775,
565,
288,
1377,
309,
14015,
2011,
480,
2003,
13,
597,
261,
1650,
18,
10492,
7675,
2469,
1435,
405,
374,
3719,
1377,
288,
3639,
394,
1759,
273,
2151,
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,
2029,
17999,
12,
14124,
1042,
25465,
16,
2029,
819,
16,
514,
2003,
16,
514,
1026,
13,
1850,
1216,
6863,
18,
2902,
18,
6547,
18,
8319,
503,
225,
288,
565,
368,
2332,
18,
659,
18,
8222,
2932,
1969,
30,
13773,
1969,
15,
3113,
2003,
30,
13773,
1650,
1769,
565,
4998,
2471,
1318,
2151,
9455,
273,
25465,
18,
588,
1830,
2471,
1318,
5621,
3639,
2029,
394,
1759,
31,
565,
775,
565,
288,
1377,
4998,
1084,
273,
2151,
9455,
18,
10828,
3098,
12,
1969,
16,
2003,
16,
25465,
18,
588,
55,
2501,
5786,
10663,
1377,
394,
1759,
273,
2151,
9455,
18,
588,
907,
12,
3168,
1769,
565,
289,
565,
1044,
261,
14106,
10847,
13,
565,
288,
1377,
604,
394,
21684,
12,
2
] |
resource().handleMigrationPatchApplied();
|
notifyMigrationApplied();
|
protected void createObject(EObject peekObject, EStructuralFeature feature) { if(isMigrationEnabled()) { if(getXSIType() == null && feature instanceof EReference) { // adding xsi/xmi:type // @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=154712 EReference referenceFeature = ((EReference)feature); EClass oldDefaultRefType = (config != null) ? config.getAddedTypeInfo(referenceFeature) : null; if(oldDefaultRefType != null) { String typeQName = helper.getQName(oldDefaultRefType); super.createObjectFromTypeName(peekObject, typeQName, feature); // notify resource that a migration was neccessary resource().handleMigrationPatchApplied(); return; } } } // end of migration super.createObject(peekObject, feature); }
|
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/8d4503e7c928c2b91f702df89851876bb0606ad0/MigrationResource.java/clean/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/migrate/MigrationResource.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
17109,
12,
8029,
8032,
921,
16,
512,
14372,
4595,
2572,
13,
288,
1082,
202,
430,
12,
291,
10224,
1526,
10756,
288,
9506,
202,
430,
12,
588,
60,
2320,
559,
1435,
422,
446,
597,
2572,
1276,
512,
2404,
13,
288,
20982,
202,
759,
6534,
619,
7722,
19,
92,
9197,
30,
723,
6862,
202,
759,
632,
5946,
2333,
2207,
19381,
18,
20416,
18,
3341,
19,
19381,
19,
4500,
67,
925,
18,
19062,
35,
350,
33,
3600,
9462,
2138,
6862,
202,
41,
2404,
2114,
4595,
273,
14015,
41,
2404,
13,
7238,
1769,
6862,
202,
5720,
1592,
1868,
22600,
273,
261,
1425,
480,
446,
13,
692,
642,
18,
588,
8602,
17305,
12,
6180,
4595,
13,
294,
446,
31,
25083,
202,
430,
12,
1673,
1868,
22600,
480,
446,
13,
288,
25083,
202,
780,
618,
13688,
273,
4222,
18,
588,
13688,
12,
1673,
1868,
22600,
1769,
25083,
202,
9565,
18,
2640,
921,
1265,
7947,
12,
347,
3839,
921,
16,
618,
13688,
16,
2572,
1769,
25083,
202,
759,
5066,
1058,
716,
279,
6333,
1703,
290,
557,
614,
814,
9944,
202,
3146,
7675,
4110,
10224,
7332,
16203,
5621,
25083,
202,
2463,
31,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
368,
679,
434,
6333,
25083,
202,
9565,
18,
2640,
921,
12,
347,
3839,
921,
16,
2572,
1769,
6862,
25083,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
17109,
12,
8029,
8032,
921,
16,
512,
14372,
4595,
2572,
13,
288,
1082,
202,
430,
12,
291,
10224,
1526,
10756,
288,
9506,
202,
430,
12,
588,
60,
2320,
559,
1435,
422,
446,
597,
2572,
1276,
512,
2404,
13,
288,
20982,
202,
759,
6534,
619,
7722,
19,
92,
9197,
30,
723,
6862,
202,
759,
632,
5946,
2333,
2207,
19381,
18,
20416,
18,
3341,
19,
19381,
19,
4500,
67,
925,
18,
19062,
35,
350,
33,
3600,
9462,
2138,
6862,
202,
41,
2404,
2114,
4595,
273,
14015,
41,
2404,
13,
7238,
1769,
6862,
202,
5720,
1592,
1868,
22600,
273,
261,
1425,
480,
446,
13,
692,
642,
18,
588,
8602,
17305,
12,
6180,
4595,
13,
294,
446,
31,
25083,
2
] |
Source sourceDoc = null; DocumentResult resultDoc = new DocumentResult(); DefaultErrorListener errorListener = null;
|
Source sourceDoc = getXmlSource(src); ResultHolder holder = getResultHolder(returnClass == null && src != null ? src.getClass() : returnClass); assert(sourceDoc != null);
|
public Object doTransform(Object src, String encoding) throws TransformerException { try { Source sourceDoc = null; DocumentResult resultDoc = new DocumentResult(); DefaultErrorListener errorListener = null; if (src instanceof byte[]) { sourceDoc = new StreamSource(new ByteArrayInputStream((byte[])src)); } else if (src instanceof String) { String xml = (String) src; Document dom4jDoc = DocumentHelper.parseText(xml); sourceDoc = new DocumentSource(dom4jDoc); } else if (src instanceof DocumentSource) { sourceDoc = (DocumentSource) src; } else if (src instanceof Document) { sourceDoc = new DocumentSource((Document) src); } assert(sourceDoc != null); errorListener = new DefaultErrorListener(this); transformer.setErrorListener(errorListener); if (logger.isDebugEnabled()) { logger.debug("Before transform: " + sourceDoc.toString()); } transformer.transform(sourceDoc, resultDoc); if (logger.isDebugEnabled()) { logger.debug("After transform: " + resultDoc.toString()); } if(errorListener.isError()) { throw errorListener.getException(); } if (Document.class.equals(returnClass)) { return resultDoc.getDocument(); } else { Document transformedDoc = resultDoc.getDocument(); return transformedDoc.asXML(); } } catch (Exception e) { throw new TransformerException(this, e); } }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/6b9bc1820bff45d29e1f1f7c708b44b6f9141294/XsltTransformer.java/buggy/src/java/org/mule/transformers/xml/XsltTransformer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
741,
4059,
12,
921,
1705,
16,
514,
2688,
13,
1216,
21684,
288,
3639,
775,
288,
5411,
4998,
1084,
1759,
273,
446,
31,
5411,
4319,
1253,
563,
1759,
273,
394,
4319,
1253,
5621,
5411,
2989,
668,
2223,
555,
2223,
273,
446,
31,
5411,
309,
261,
4816,
1276,
1160,
63,
5717,
288,
7734,
1084,
1759,
273,
394,
3961,
1830,
12,
2704,
16180,
12443,
7229,
63,
5717,
4816,
10019,
5411,
289,
469,
309,
261,
4816,
1276,
514,
13,
288,
7734,
514,
2025,
273,
261,
780,
13,
1705,
31,
7734,
4319,
4092,
24,
78,
1759,
273,
4319,
2276,
18,
2670,
1528,
12,
2902,
1769,
7734,
1084,
1759,
273,
394,
4319,
1830,
12,
9859,
24,
78,
1759,
1769,
5411,
289,
469,
309,
261,
4816,
1276,
4319,
1830,
13,
288,
7734,
1084,
1759,
273,
261,
2519,
1830,
13,
1705,
31,
5411,
289,
469,
309,
261,
4816,
1276,
4319,
13,
288,
7734,
1084,
1759,
273,
394,
4319,
1830,
12443,
2519,
13,
1705,
1769,
5411,
289,
5411,
1815,
12,
3168,
1759,
480,
446,
1769,
5411,
555,
2223,
273,
394,
2989,
668,
2223,
12,
2211,
1769,
5411,
8360,
18,
542,
668,
2223,
12,
1636,
2223,
1769,
5411,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
7734,
1194,
18,
4148,
2932,
4649,
2510,
30,
315,
397,
1084,
1759,
18,
10492,
10663,
5411,
289,
5411,
8360,
18,
6547,
12,
3168,
1759,
16,
563,
1759,
1769,
5411,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
7734,
1194,
18,
4148,
2932,
4436,
2510,
30,
315,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
741,
4059,
12,
921,
1705,
16,
514,
2688,
13,
1216,
21684,
288,
3639,
775,
288,
5411,
4998,
1084,
1759,
273,
446,
31,
5411,
4319,
1253,
563,
1759,
273,
394,
4319,
1253,
5621,
5411,
2989,
668,
2223,
555,
2223,
273,
446,
31,
5411,
309,
261,
4816,
1276,
1160,
63,
5717,
288,
7734,
1084,
1759,
273,
394,
3961,
1830,
12,
2704,
16180,
12443,
7229,
63,
5717,
4816,
10019,
5411,
289,
469,
309,
261,
4816,
1276,
514,
13,
288,
7734,
514,
2025,
273,
261,
780,
13,
1705,
31,
7734,
4319,
4092,
24,
78,
1759,
273,
4319,
2276,
18,
2670,
1528,
12,
2902,
1769,
7734,
1084,
1759,
273,
394,
4319,
1830,
12,
9859,
24,
78,
1759,
1769,
5411,
289,
469,
2
] |
if(childDir.isDirectory()) {
|
if (childDir.isDirectory()) {
|
private void readLanguageDescriptors(File dir) { if(!dir.isDirectory()) { return; } File[] files = dir.listFiles(new FilenameFilter() { public boolean accept(File dir, String name) { return name.endsWith(".mpl"); } }); for (int i = 0; i < files.length; i++) { File file = files[i]; Language language = Language.loadFromFile(file, this); addLanguage(language.getNamespace(), language); } File[] dirs = dir.listFiles(); for (int i = 0; i < dirs.length; i++) { File childDir = dirs[i]; if(childDir.isDirectory()) { readLanguageDescriptors(childDir); } } }
|
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/03de86ef05606a1d25d7e8ae5b4fb8ebff051e9f/MPSProject.java/clean/source/jetbrains/mps/project/MPSProject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
855,
3779,
12705,
12,
812,
1577,
13,
288,
565,
309,
12,
5,
1214,
18,
291,
2853,
10756,
288,
1377,
327,
31,
565,
289,
565,
1387,
8526,
1390,
273,
1577,
18,
1098,
2697,
12,
2704,
16671,
1586,
1435,
288,
1850,
1071,
1250,
2791,
12,
812,
1577,
16,
514,
508,
13,
288,
5411,
327,
508,
18,
5839,
1190,
2932,
18,
10514,
8863,
1850,
289,
3639,
15549,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1390,
18,
2469,
31,
277,
27245,
288,
1377,
1387,
585,
273,
1390,
63,
77,
15533,
1377,
9889,
2653,
273,
9889,
18,
945,
13087,
12,
768,
16,
333,
1769,
1377,
527,
3779,
12,
4923,
18,
588,
3402,
9334,
2653,
1769,
565,
289,
565,
1387,
8526,
7717,
273,
1577,
18,
1098,
2697,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
7717,
18,
2469,
31,
277,
27245,
288,
1377,
1387,
1151,
1621,
273,
7717,
63,
77,
15533,
1377,
309,
261,
3624,
1621,
18,
291,
2853,
10756,
288,
3639,
855,
3779,
12705,
12,
3624,
1621,
1769,
1377,
289,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
855,
3779,
12705,
12,
812,
1577,
13,
288,
565,
309,
12,
5,
1214,
18,
291,
2853,
10756,
288,
1377,
327,
31,
565,
289,
565,
1387,
8526,
1390,
273,
1577,
18,
1098,
2697,
12,
2704,
16671,
1586,
1435,
288,
1850,
1071,
1250,
2791,
12,
812,
1577,
16,
514,
508,
13,
288,
5411,
327,
508,
18,
5839,
1190,
2932,
18,
10514,
8863,
1850,
289,
3639,
15549,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1390,
18,
2469,
31,
277,
27245,
288,
1377,
1387,
585,
273,
1390,
63,
77,
15533,
1377,
9889,
2653,
273,
9889,
18,
945,
13087,
12,
768,
16,
333,
1769,
1377,
527,
3779,
12,
4923,
18,
588,
3402,
9334,
2653,
1769,
565,
289,
565,
2
] |
if (IDialogConstants.OK_LABEL.equals(label)) { id = IDialogConstants.OK_ID; } else if (IDialogConstants.YES_LABEL.equals(label)) { id = IDialogConstants.YES_ID; } else if (IDialogConstants.NO_LABEL.equals(label)) { id = IDialogConstants.NO_ID; } else if (IDialogConstants.CANCEL_LABEL.equals(label)) { id = IDialogConstants.CANCEL_ID; } else if (IDialogConstants.YES_TO_ALL_LABEL.equals(label)) { id = IDialogConstants.YES_TO_ALL_ID; } else if (IDialogConstants.SKIP_LABEL.equals(label)) { id = IDialogConstants.SKIP_ID; } else if (IDialogConstants.STOP_LABEL.equals(label)) { id = IDialogConstants.STOP_ID; } else if (IDialogConstants.ABORT_LABEL.equals(label)) { id = IDialogConstants.ABORT_ID; } else if (IDialogConstants.RETRY_LABEL.equals(label)) { id = IDialogConstants.RETRY_ID; } else if (IDialogConstants.IGNORE_LABEL.equals(label)) { id = IDialogConstants.IGNORE_ID; } else if (IDialogConstants.PROCEED_LABEL.equals(label)) { id = IDialogConstants.PROCEED_ID; } else if (IDialogConstants.OPEN_LABEL.equals(label)) { id = IDialogConstants.OPEN_ID; } else if (IDialogConstants.CLOSE_LABEL.equals(label)) { id = IDialogConstants.CLOSE_ID; } else if (IDialogConstants.BACK_LABEL.equals(label)) { id = IDialogConstants.BACK_ID; } else if (IDialogConstants.NEXT_LABEL.equals(label)) { id = IDialogConstants.NEXT_ID; } else if (IDialogConstants.FINISH_LABEL.equals(label)) { id = IDialogConstants.FINISH_ID; } else if (IDialogConstants.HELP_LABEL.equals(label)) { id = IDialogConstants.HELP_ID; } else if (IDialogConstants.NO_TO_ALL_LABEL.equals(label)) { id = IDialogConstants.NO_TO_ALL_ID; }
|
int id = mapButtonLabelToButtonID(label, suggestedId); if (id == suggestedId) suggestedId++;
|
protected void createButtonsForButtonBar(Composite parent) { final String[] buttonLabels = getButtonLabels(); final Button[] buttons = new Button[buttonLabels.length]; final int defaultButtonIndex = getDefaultButtonIndex(); for (int i = 0; i < buttonLabels.length; i++) { int id = i; String label = buttonLabels[i]; if (IDialogConstants.OK_LABEL.equals(label)) { id = IDialogConstants.OK_ID; } else if (IDialogConstants.YES_LABEL.equals(label)) { id = IDialogConstants.YES_ID; } else if (IDialogConstants.NO_LABEL.equals(label)) { id = IDialogConstants.NO_ID; } else if (IDialogConstants.CANCEL_LABEL.equals(label)) { id = IDialogConstants.CANCEL_ID; } else if (IDialogConstants.YES_TO_ALL_LABEL.equals(label)) { id = IDialogConstants.YES_TO_ALL_ID; } else if (IDialogConstants.SKIP_LABEL.equals(label)) { id = IDialogConstants.SKIP_ID; } else if (IDialogConstants.STOP_LABEL.equals(label)) { id = IDialogConstants.STOP_ID; } else if (IDialogConstants.ABORT_LABEL.equals(label)) { id = IDialogConstants.ABORT_ID; } else if (IDialogConstants.RETRY_LABEL.equals(label)) { id = IDialogConstants.RETRY_ID; } else if (IDialogConstants.IGNORE_LABEL.equals(label)) { id = IDialogConstants.IGNORE_ID; } else if (IDialogConstants.PROCEED_LABEL.equals(label)) { id = IDialogConstants.PROCEED_ID; } else if (IDialogConstants.OPEN_LABEL.equals(label)) { id = IDialogConstants.OPEN_ID; } else if (IDialogConstants.CLOSE_LABEL.equals(label)) { id = IDialogConstants.CLOSE_ID; } else if (IDialogConstants.BACK_LABEL.equals(label)) { id = IDialogConstants.BACK_ID; } else if (IDialogConstants.NEXT_LABEL.equals(label)) { id = IDialogConstants.NEXT_ID; } else if (IDialogConstants.FINISH_LABEL.equals(label)) { id = IDialogConstants.FINISH_ID; } else if (IDialogConstants.HELP_LABEL.equals(label)) { id = IDialogConstants.HELP_ID; } else if (IDialogConstants.NO_TO_ALL_LABEL.equals(label)) { id = IDialogConstants.NO_TO_ALL_ID; } // No XXX_LABEL in IDialogConstants for these. Unlikely // they would be used in a message dialog though. // public int DETAILS_ID = 13; // public int SELECT_ALL_ID = 18; // public int DESELECT_ALL_ID = 19; // public int SELECT_TYPES_ID = 20; Button button = createButton(parent, id, label, defaultButtonIndex == i); buttons[i] = button; } setButtons(buttons); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e7fe041a033953210b03822ff50cf34f48c81e1a/MessageDialogWithToggle.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/MessageDialogWithToggle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
14388,
1290,
3616,
5190,
12,
9400,
982,
13,
288,
3639,
727,
514,
8526,
3568,
5888,
273,
2882,
2644,
5888,
5621,
3639,
727,
12569,
8526,
9502,
273,
394,
12569,
63,
5391,
5888,
18,
2469,
15533,
3639,
727,
509,
805,
3616,
1016,
273,
4829,
3616,
1016,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3568,
5888,
18,
2469,
31,
277,
27245,
288,
5411,
509,
612,
273,
277,
31,
5411,
514,
1433,
273,
3568,
5888,
63,
77,
15533,
5411,
309,
261,
734,
3529,
2918,
18,
3141,
67,
13545,
18,
14963,
12,
1925,
3719,
288,
7734,
612,
273,
1599,
3529,
2918,
18,
3141,
67,
734,
31,
5411,
289,
469,
309,
261,
734,
3529,
2918,
18,
29081,
67,
13545,
18,
14963,
12,
1925,
3719,
288,
7734,
612,
273,
1599,
3529,
2918,
18,
29081,
67,
734,
31,
5411,
289,
469,
309,
261,
734,
3529,
2918,
18,
3417,
67,
13545,
18,
14963,
12,
1925,
3719,
288,
7734,
612,
273,
1599,
3529,
2918,
18,
3417,
67,
734,
31,
5411,
289,
469,
309,
261,
734,
3529,
2918,
18,
25268,
67,
13545,
18,
14963,
12,
1925,
3719,
288,
7734,
612,
273,
1599,
3529,
2918,
18,
25268,
67,
734,
31,
5411,
289,
469,
309,
261,
734,
3529,
2918,
18,
29081,
67,
4296,
67,
4685,
67,
13545,
18,
14963,
12,
1925,
3719,
288,
7734,
612,
273,
1599,
3529,
2918,
18,
29081,
67,
4296,
67,
4685,
67,
734,
31,
5411,
289,
469,
309,
261,
734,
3529,
2918,
18,
22589,
67,
13545,
18,
14963,
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,
752,
14388,
1290,
3616,
5190,
12,
9400,
982,
13,
288,
3639,
727,
514,
8526,
3568,
5888,
273,
2882,
2644,
5888,
5621,
3639,
727,
12569,
8526,
9502,
273,
394,
12569,
63,
5391,
5888,
18,
2469,
15533,
3639,
727,
509,
805,
3616,
1016,
273,
4829,
3616,
1016,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3568,
5888,
18,
2469,
31,
277,
27245,
288,
5411,
509,
612,
273,
277,
31,
5411,
514,
1433,
273,
3568,
5888,
63,
77,
15533,
5411,
309,
261,
734,
3529,
2918,
18,
3141,
67,
13545,
18,
14963,
12,
1925,
3719,
288,
7734,
612,
273,
1599,
3529,
2918,
18,
3141,
67,
734,
31,
5411,
289,
469,
309,
261,
734,
3529,
2918,
18,
29081,
2
] |
if (!workStroke.equals(ke)) { workStroke.setAttributes(ke); lastKeyMnemonic = (String)mappedKeys.get(workStroke); } return lastKeyMnemonic;
|
return getKeyStrokeText(ke,false);
|
public final static String getKeyStrokeText(KeyEvent ke) { if (!workStroke.equals(ke)) { workStroke.setAttributes(ke); lastKeyMnemonic = (String)mappedKeys.get(workStroke); } return lastKeyMnemonic; }
|
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/a9b63e0a8842bf8edaebaf245148e0577939062a/KeyMapper.java/buggy/src/org/tn5250j/tools/KeyMapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
727,
760,
514,
3579,
14602,
1528,
12,
653,
1133,
12519,
13,
288,
1377,
309,
16051,
1252,
14602,
18,
14963,
12,
4491,
3719,
288,
540,
1440,
14602,
18,
542,
2498,
12,
4491,
1769,
540,
29928,
29668,
20918,
273,
261,
780,
13,
13654,
2396,
18,
588,
12,
1252,
14602,
1769,
1377,
289,
1377,
327,
29928,
29668,
20918,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
727,
760,
514,
3579,
14602,
1528,
12,
653,
1133,
12519,
13,
288,
1377,
309,
16051,
1252,
14602,
18,
14963,
12,
4491,
3719,
288,
540,
1440,
14602,
18,
542,
2498,
12,
4491,
1769,
540,
29928,
29668,
20918,
273,
261,
780,
13,
13654,
2396,
18,
588,
12,
1252,
14602,
1769,
1377,
289,
1377,
327,
29928,
29668,
20918,
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
] |
Listener lsRepExplore = new Listener() { public void handleEvent(Event e) { exploreRepository(); } };
|
Listener lsRepDisconnect = new Listener() { public void handleEvent(Event e) { closeRepository(); } };
|
Listener lsRepExplore = new Listener() { public void handleEvent(Event e) { exploreRepository(); } };
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/2ec49065645641cf193aa2ca54e8173eea794745/Spoon.java/clean/src/be/ibridge/kettle/spoon/Spoon.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
10652,
7180,
18933,
2966,
383,
266,
377,
273,
394,
10652,
1435,
288,
1071,
918,
1640,
1133,
12,
1133,
425,
13,
288,
15233,
266,
3305,
5621,
289,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
10652,
7180,
18933,
2966,
383,
266,
377,
273,
394,
10652,
1435,
288,
1071,
918,
1640,
1133,
12,
1133,
425,
13,
288,
15233,
266,
3305,
5621,
289,
289,
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
] |
public Object getUsers(CmsObject cms, String tagcontent, A_CmsXmlContent doc, Object userObj) throws CmsException { StringBuffer retValue = new StringBuffer(); retValue.append(C_ROLE); // get the language for choose-user String chooseUser = (new CmsXmlLanguageFile(cms)).getLanguageValue("task.label.emptyuser"); // get all groups Vector groups = cms.getGroups(); for(int n = 0;n < groups.size();n++) { if(((CmsGroup)groups.elementAt(n)).getRole()) { String groupname = ((CmsGroup)groups.elementAt(n)).getName(); // get users of this group Vector users = cms.getUsersOfGroup(groupname); // create entry for role retValue.append(C_ROLE_1 + groupname + C_ROLE_2); retValue.append(C_USER_1 + groupname + C_USER_2 + 0 + C_USER_3 + chooseUser + C_USER_4 + C_USER_5); for(int m = 0;m < users.size();m++) { CmsUser user = (CmsUser)users.elementAt(m); // create entry for user retValue.append(C_USER_1 + groupname + C_USER_2 + (m + 1) + C_USER_3 + user.getName() + C_USER_4 + user.getName() + C_USER_5); } } } // generate output for all users retValue.append(C_ROLE_1 + C_ALL_ROLES + C_ROLE_2); retValue.append(C_USER_1 + C_ALL_ROLES + C_USER_2 + 0 + C_USER_3 + chooseUser + C_USER_4 + C_USER_5); Vector users = cms.getUsers(); for(int m = 0;m < users.size();m++) { CmsUser user = (CmsUser)users.elementAt(m); // create entry for user retValue.append(C_USER_1 + C_ALL_ROLES + C_USER_2 + (m + 1) + C_USER_3 + user.getName() + C_USER_4 + user.getName() + C_USER_5); } return retValue.toString(); }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/65fec749058083642e3e85283287c65357fa8690/CmsTaskNew.java/buggy/src/com/opencms/workplace/CmsTaskNew.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
27564,
12,
4747,
921,
6166,
16,
514,
1047,
1745,
16,
432,
67,
4747,
27415,
997,
16,
1033,
729,
2675,
13,
1216,
11228,
288,
3639,
6674,
21236,
273,
394,
6674,
5621,
3639,
21236,
18,
6923,
12,
39,
67,
16256,
1769,
7734,
368,
336,
326,
2653,
364,
9876,
17,
1355,
3639,
514,
9876,
1299,
273,
261,
2704,
16084,
3779,
812,
12,
6851,
13,
2934,
588,
3779,
620,
2932,
4146,
18,
1925,
18,
5531,
1355,
8863,
7734,
368,
336,
777,
3252,
3639,
5589,
3252,
273,
6166,
18,
588,
3621,
5621,
3639,
364,
12,
474,
290,
273,
374,
31,
82,
411,
3252,
18,
1467,
5621,
82,
27245,
288,
5411,
309,
12443,
12,
4747,
1114,
13,
4650,
18,
2956,
861,
12,
82,
13,
2934,
588,
2996,
10756,
288,
7734,
514,
25329,
273,
14015,
4747,
1114,
13,
4650,
18,
2956,
861,
12,
82,
13,
2934,
17994,
5621,
27573,
368,
336,
3677,
434,
333,
1041,
7734,
5589,
3677,
273,
6166,
18,
588,
6588,
951,
1114,
12,
1655,
529,
1769,
27573,
368,
752,
1241,
364,
2478,
7734,
21236,
18,
6923,
12,
39,
67,
16256,
67,
21,
397,
25329,
397,
385,
67,
16256,
67,
22,
1769,
7734,
21236,
18,
6923,
12,
39,
67,
4714,
67,
21,
397,
25329,
397,
385,
67,
4714,
67,
22,
397,
374,
397,
385,
67,
4714,
67,
23,
397,
9876,
1299,
397,
385,
67,
4714,
67,
24,
397,
385,
67,
4714,
67,
25,
1769,
7734,
364,
12,
474,
312,
273,
374,
31,
81,
411,
3677,
18,
1467,
5621,
81,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
27564,
12,
4747,
921,
6166,
16,
514,
1047,
1745,
16,
432,
67,
4747,
27415,
997,
16,
1033,
729,
2675,
13,
1216,
11228,
288,
3639,
6674,
21236,
273,
394,
6674,
5621,
3639,
21236,
18,
6923,
12,
39,
67,
16256,
1769,
7734,
368,
336,
326,
2653,
364,
9876,
17,
1355,
3639,
514,
9876,
1299,
273,
261,
2704,
16084,
3779,
812,
12,
6851,
13,
2934,
588,
3779,
620,
2932,
4146,
18,
1925,
18,
5531,
1355,
8863,
7734,
368,
336,
777,
3252,
3639,
5589,
3252,
273,
6166,
18,
588,
3621,
5621,
3639,
364,
12,
474,
290,
273,
374,
31,
82,
411,
3252,
18,
1467,
5621,
82,
27245,
288,
5411,
309,
12443,
12,
4747,
1114,
13,
4650,
18,
2956,
861,
12,
2
] |
||
IContentEmitter emitter, IResultIterator rsIterator );
|
IContentEmitter emitter, IResultSet resultSet );
|
abstract protected void accessHeader( ListingDesign list, IContentEmitter emitter, IResultIterator rsIterator );
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/7246d39aba16a9656ec9841ec35032d0d3084995/ListingElementExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ListingElementExecutor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
17801,
4750,
918,
2006,
1864,
12,
987,
310,
15478,
666,
16,
1082,
202,
45,
1350,
13476,
11520,
16,
467,
1253,
3198,
3597,
3198,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
17801,
4750,
918,
2006,
1864,
12,
987,
310,
15478,
666,
16,
1082,
202,
45,
1350,
13476,
11520,
16,
467,
1253,
3198,
3597,
3198,
11272,
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
] |
this.setDescription(HtmlStreamTokenizer.unescape(BugzillaTask.getBugId(getHandleIdentifier()) + ": " + bugReport.getSummary()));
|
this.setDescription(HtmlStreamTokenizer.unescape(TaskRepositoryManager.getTaskIdAsInt(getHandleIdentifier()) + ": " + bugReport.getSummary()));
|
public void updateTaskDetails() { try { if (bugReport == null) bugReport = downloadReport(); if (bugReport == null) return; setPriority(bugReport.getAttribute("Priority").getValue()); // TODO: this part might be redundant with overridden isCompleted()// String status = bugReport.getAttribute("Status").getValue();// if (bugReport.isResolved()) {// setCompleted(true);// } else if (status.equals("REOPENED")) {// setCompleted(false);// } this.setDescription(HtmlStreamTokenizer.unescape(BugzillaTask.getBugId(getHandleIdentifier()) + ": " + bugReport.getSummary())); } catch (NullPointerException npe) { MylarStatusHandler.fail(npe, "Task details update failed", false); } }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/1245a92f28a2990bae8373c09891556a69268c75/BugzillaTask.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
2174,
3790,
1435,
288,
202,
202,
698,
288,
1082,
202,
430,
261,
925,
4820,
422,
446,
13,
9506,
202,
925,
4820,
273,
4224,
4820,
5621,
1082,
202,
430,
261,
925,
4820,
422,
446,
13,
9506,
202,
2463,
31,
1082,
202,
542,
8183,
12,
925,
4820,
18,
588,
1499,
2932,
8183,
20387,
24805,
10663,
25083,
202,
759,
2660,
30,
333,
1087,
4825,
506,
19530,
598,
11000,
353,
9556,
1435,
759,
1082,
202,
780,
1267,
273,
7934,
4820,
18,
588,
1499,
2932,
1482,
20387,
24805,
5621,
759,
1082,
202,
430,
261,
925,
4820,
18,
291,
12793,
10756,
288,
759,
9506,
202,
542,
9556,
12,
3767,
1769,
759,
1082,
202,
97,
469,
309,
261,
2327,
18,
14963,
2932,
862,
11437,
2056,
6,
3719,
288,
759,
9506,
202,
542,
9556,
12,
5743,
1769,
759,
1082,
202,
97,
1875,
202,
2211,
18,
542,
3291,
12,
4353,
1228,
10524,
18,
318,
6939,
12,
19865,
15990,
2174,
18,
588,
19865,
548,
12,
588,
3259,
3004,
10756,
397,
6398,
315,
397,
7934,
4820,
18,
588,
4733,
1435,
10019,
202,
202,
97,
1044,
261,
2041,
9992,
290,
347,
13,
288,
1082,
202,
12062,
7901,
1482,
1503,
18,
6870,
12,
82,
347,
16,
315,
2174,
3189,
1089,
2535,
3113,
629,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
1089,
2174,
3790,
1435,
288,
202,
202,
698,
288,
1082,
202,
430,
261,
925,
4820,
422,
446,
13,
9506,
202,
925,
4820,
273,
4224,
4820,
5621,
1082,
202,
430,
261,
925,
4820,
422,
446,
13,
9506,
202,
2463,
31,
1082,
202,
542,
8183,
12,
925,
4820,
18,
588,
1499,
2932,
8183,
20387,
24805,
10663,
25083,
202,
759,
2660,
30,
333,
1087,
4825,
506,
19530,
598,
11000,
353,
9556,
1435,
759,
1082,
202,
780,
1267,
273,
7934,
4820,
18,
588,
1499,
2932,
1482,
20387,
24805,
5621,
759,
1082,
202,
430,
261,
925,
4820,
18,
291,
12793,
10756,
288,
759,
9506,
202,
542,
9556,
12,
3767,
1769,
759,
1082,
202,
97,
469,
309,
261,
2327,
18,
14963,
2
] |
public boolean readSequence(BufferedReader reader, SymbolParser symParser, SeqIOListener siol) throws IllegalSymbolException, IOException, ParseException { String line = reader.readLine(); if (line == null) { throw new IOException("Premature stream end"); } if (!line.startsWith(">")) { throw new IOException("Stream does not appear to contain FASTA formatted data: " + line); } siol.startSequence(); String description = line.substring(1).trim(); siol.addSequenceProperty(PROPERTY_DESCRIPTIONLINE, description); boolean seenEOF = readSequenceData(reader, symParser, siol); siol.endSequence(); return !seenEOF; }
|
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/420d3bc9b4769347584f54734aff6d6794a63f21/FastaFormat.java/clean/src/org/biojava/bio/seq/io/FastaFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
855,
4021,
12,
17947,
2514,
2949,
16,
9506,
202,
5335,
2678,
5382,
2678,
16,
9506,
202,
6926,
4294,
2223,
272,
6242,
13,
202,
15069,
2141,
5335,
503,
16,
1860,
16,
10616,
377,
288,
202,
780,
980,
273,
2949,
18,
896,
1670,
5621,
202,
430,
261,
1369,
422,
446,
13,
288,
202,
565,
604,
394,
1860,
2932,
23890,
1231,
1407,
679,
8863,
202,
97,
202,
430,
16051,
1369,
18,
17514,
1190,
2932,
2984,
3719,
288,
202,
565,
604,
394,
1860,
2932,
1228,
1552,
486,
9788,
358,
912,
24239,
37,
4955,
501,
30,
315,
397,
980,
1769,
202,
97,
202,
87,
6242,
18,
1937,
4021,
5621,
377,
202,
780,
2477,
273,
980,
18,
28023,
12,
21,
2934,
5290,
5621,
202,
87,
6242,
18,
1289,
4021,
1396,
12,
9900,
67,
15911,
5997,
16,
2477,
1769,
202,
6494,
5881,
12706,
273,
855,
4021,
751,
12,
10530,
16,
5382,
2678,
16,
272,
6242,
1769,
202,
87,
6242,
18,
409,
4021,
5621,
377,
202,
2463,
401,
15156,
12706,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
855,
4021,
12,
17947,
2514,
2949,
16,
9506,
202,
5335,
2678,
5382,
2678,
16,
9506,
202,
6926,
4294,
2223,
272,
6242,
13,
202,
15069,
2141,
5335,
503,
16,
1860,
16,
10616,
377,
288,
202,
780,
980,
273,
2949,
18,
896,
1670,
5621,
202,
430,
261,
1369,
422,
446,
13,
288,
202,
565,
604,
394,
1860,
2932,
23890,
1231,
1407,
679,
8863,
202,
97,
202,
430,
16051,
1369,
18,
17514,
1190,
2932,
2984,
3719,
288,
202,
565,
604,
394,
1860,
2932,
1228,
1552,
486,
9788,
358,
912,
24239,
37,
4955,
501,
30,
315,
397,
980,
1769,
202,
97,
202,
87,
6242,
18,
1937,
4021,
5621,
377,
202,
780,
2477,
273,
980,
18,
28023,
12,
21,
2934,
5290,
2
] |
||
} } }
|
} } }
|
public void refreshJobInfo(JobInfo info) { GroupInfo group = info.getGroupInfo(); if (group != null) { refreshGroup(group); } synchronized (listenersKey) { for (int i = 0; i < listeners.length; i++) { IJobProgressManagerListener listener = listeners[i]; if (!isNonDisplayableJob(info.getJob(), listener.showsDebug())) { listener.refreshJobInfo(info); } } } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/0e7fbc26f7d1b7769a0721c71fd17572c8432fd5/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4460,
2278,
966,
12,
2278,
966,
1123,
13,
288,
3639,
3756,
966,
1041,
273,
1123,
18,
588,
1114,
966,
5621,
3639,
309,
261,
1655,
480,
446,
13,
288,
1082,
202,
9144,
1114,
12,
1655,
1769,
202,
202,
97,
9079,
3852,
261,
16072,
653,
13,
288,
540,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
277,
27245,
288,
540,
202,
202,
45,
2278,
5491,
1318,
2223,
2991,
273,
4679,
63,
77,
15533,
540,
202,
202,
430,
16051,
291,
3989,
4236,
429,
2278,
12,
1376,
18,
588,
2278,
9334,
2991,
18,
4500,
87,
2829,
1435,
3719,
288,
6862,
202,
12757,
18,
9144,
2278,
966,
12,
1376,
1769,
9506,
202,
97,
540,
202,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4460,
2278,
966,
12,
2278,
966,
1123,
13,
288,
3639,
3756,
966,
1041,
273,
1123,
18,
588,
1114,
966,
5621,
3639,
309,
261,
1655,
480,
446,
13,
288,
1082,
202,
9144,
1114,
12,
1655,
1769,
202,
202,
97,
9079,
3852,
261,
16072,
653,
13,
288,
540,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
277,
27245,
288,
540,
202,
202,
45,
2278,
5491,
1318,
2223,
2991,
273,
4679,
63,
77,
15533,
540,
202,
202,
430,
16051,
291,
3989,
4236,
429,
2278,
12,
1376,
18,
588,
2278,
9334,
2991,
18,
4500,
87,
2829,
1435,
3719,
288,
6862,
202,
12757,
18,
9144,
2278,
966,
12,
1376,
1769,
9506,
202,
97,
540,
202,
2
] |
if (treeNode.bondType <= 4) { code.append(bondSymbols[(int)treeNode.bondType]); } else { } code.append(getElementSymbol(treeNode.symbol)); done[i] = true;
|
if (treeNode.bondType <= 4) { code.append(bondSymbols[(int) treeNode.bondType]); } else { } code.append(getElementSymbol(treeNode.symbol)); done[i] = true;
|
private String getSphereCode(Vector sphereNodes) { if (sphereNodes == null || sphereNodes.size() < 1) return ""; boolean[] done = new boolean[sphereNodes.size()]; Atom node = null; TreeNode treeNode = null; StringBuffer code = new StringBuffer(); calculateNodeScores(sphereNodes); sortNodes(sphereNodes); /* append the tree node code to the HOSECode in their now determined order, using commas to separate nodes from different branches */ Atom branch = ((TreeNode)sphereNodes.elementAt(0)).source; Atom nextBranch; int start = 0; do { nextBranch = null; for (int i = start; i < sphereNodes.size(); i ++) { treeNode = (TreeNode)sphereNodes.elementAt(i); if (treeNode.source == branch && !done[i]) { if (treeNode.bondType <= 4) { code.append(bondSymbols[(int)treeNode.bondType]); } else { // what should be done here? with wedges for example? // see SF bug #126841 } code.append(getElementSymbol(treeNode.symbol)); done[i] = true; } if (treeNode.source != branch && nextBranch == null && !done[i]) { nextBranch = treeNode.source; } if (debug) System.out.println("HOSECodeGenerator->getSphereCode()->treeNode.bondType:" + treeNode.bondType); if (debug) System.out.println("HOSECodeGenerator->getSphereCode()->treeNode.score:" + treeNode.score); } if (nextBranch != null) { code.append(","); branch = nextBranch; start ++; } }while(nextBranch != null); code.append(sphereDelimiters[sphere - 1]); return code.toString(); }
|
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/3b5db3ea1ef07876d963dc0d0aefdadbbb06eafe/HOSECodeGenerator.java/clean/org/openscience/cdk/tools/HOSECodeGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
1322,
9346,
1085,
12,
5018,
20041,
3205,
13,
202,
95,
202,
202,
430,
261,
87,
9346,
3205,
422,
446,
747,
20041,
3205,
18,
1467,
1435,
411,
404,
13,
327,
1408,
31,
202,
202,
6494,
8526,
2731,
273,
394,
1250,
63,
87,
9346,
3205,
18,
1467,
1435,
15533,
202,
202,
3641,
756,
273,
446,
31,
202,
202,
12513,
29733,
273,
446,
31,
9506,
202,
780,
1892,
981,
273,
394,
6674,
5621,
202,
202,
11162,
907,
20037,
12,
87,
9346,
3205,
1769,
202,
202,
3804,
3205,
12,
87,
9346,
3205,
1769,
202,
202,
20308,
714,
326,
2151,
756,
981,
358,
326,
11705,
1090,
1085,
316,
1875,
282,
3675,
2037,
11383,
1353,
16,
1450,
23528,
358,
1875,
282,
9004,
2199,
628,
3775,
11483,
1195,
202,
202,
3641,
3803,
273,
14015,
12513,
13,
87,
9346,
3205,
18,
2956,
861,
12,
20,
13,
2934,
3168,
31,
202,
202,
3641,
1024,
7108,
31,
202,
202,
474,
787,
273,
374,
31,
202,
202,
2896,
202,
202,
95,
1082,
202,
4285,
7108,
273,
446,
31,
1082,
202,
1884,
261,
474,
277,
273,
787,
31,
277,
411,
20041,
3205,
18,
1467,
5621,
277,
965,
13,
1082,
202,
95,
9506,
202,
3413,
907,
273,
261,
12513,
13,
87,
9346,
3205,
18,
2956,
861,
12,
77,
1769,
9506,
202,
430,
261,
3413,
907,
18,
3168,
422,
3803,
597,
401,
8734,
63,
77,
5717,
9506,
202,
95,
6862,
565,
309,
261,
3413,
907,
18,
26425,
559,
1648,
1059,
13,
288,
6862,
202,
710,
18,
6923,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
1322,
9346,
1085,
12,
5018,
20041,
3205,
13,
202,
95,
202,
202,
430,
261,
87,
9346,
3205,
422,
446,
747,
20041,
3205,
18,
1467,
1435,
411,
404,
13,
327,
1408,
31,
202,
202,
6494,
8526,
2731,
273,
394,
1250,
63,
87,
9346,
3205,
18,
1467,
1435,
15533,
202,
202,
3641,
756,
273,
446,
31,
202,
202,
12513,
29733,
273,
446,
31,
9506,
202,
780,
1892,
981,
273,
394,
6674,
5621,
202,
202,
11162,
907,
20037,
12,
87,
9346,
3205,
1769,
202,
202,
3804,
3205,
12,
87,
9346,
3205,
1769,
202,
202,
20308,
714,
326,
2151,
756,
981,
358,
326,
11705,
1090,
1085,
316,
1875,
282,
3675,
2037,
11383,
1353,
16,
1450,
23528,
358,
1875,
282,
2
] |
TestAuMgr1 mgr11 = (TestAuMgr1)daemon.getAuManager("MgrKey1", mau1); TestAuMgr2 mgr21 = (TestAuMgr2)daemon.getAuManager("MgrKey2", mau1);
|
TestAuMgr1 mgr11 = (TestAuMgr1)LockssDaemon.getAuManager("MgrKey1", mau1); TestAuMgr2 mgr21 = (TestAuMgr2)LockssDaemon.getAuManager("MgrKey2", mau1);
|
public void testStartAuManager() throws Exception { LockssDaemon daemon = new TestAuLockssDaemon(); Configuration config = ConfigManager.newConfiguration(); MockArchivalUnit mau1 = new MockArchivalUnit(); mau1.setAuId("mau1"); MockArchivalUnit mau2 = new MockArchivalUnit(); mau2.setAuId("mau2"); TestAuMgr.clearEvents(); daemon.startOrReconfigureAuManagers(mau1, config); TestAuMgr1 mgr11 = (TestAuMgr1)daemon.getAuManager("MgrKey1", mau1); TestAuMgr2 mgr21 = (TestAuMgr2)daemon.getAuManager("MgrKey2", mau1); assertSame(mau1, mgr11.getAu()); assertSame(mau1, mgr21.getAu()); assertEquals(ListUtil.list(mgr11), daemon.getAuManagersOfType("MgrKey1")); assertEquals(ListUtil.list(mgr21), daemon.getAuManagersOfType("MgrKey2")); Event[] exp1 = { new Event(mgr11, "initService", daemon), new Event(mgr21, "initService", daemon), new Event(mgr11, "setAuConfig", config), new Event(mgr21, "setAuConfig", config), new Event(mgr11, "startService", null), new Event(mgr21, "startService", null), }; assertIsomorphic(exp1, TestAuMgr.getEvents()); Configuration config2 = ConfigManager.newConfiguration(); config2.put("1", "2"); TestAuMgr.clearEvents(); daemon.startOrReconfigureAuManagers(mau1, config2); Event[] exp2 = { new Event(mgr11, "setAuConfig", config2), new Event(mgr21, "setAuConfig", config2), }; assertIsomorphic(exp2, TestAuMgr.getEvents()); try { daemon.getAuManager("MgrKey1", mau2); } catch (IllegalArgumentException e) { } daemon.startOrReconfigureAuManagers(mau2, config2); TestAuMgr1 mgr12 = (TestAuMgr1)daemon.getAuManager("MgrKey1", mau2); TestAuMgr2 mgr22 = (TestAuMgr2)daemon.getAuManager("MgrKey2", mau2); assertSame(mau2, mgr12.getAu()); assertSame(mau2, mgr22.getAu()); assertEquals(SetUtil.set(mgr11, mgr12), SetUtil.theSet(daemon.getAuManagersOfType("MgrKey1"))); assertEquals(SetUtil.set(mgr21, mgr22), SetUtil.theSet(daemon.getAuManagersOfType("MgrKey2"))); }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/bcf6ec394f2b46b71d3cf041e750f548798136f1/TestLockssDaemon.java/buggy/test/src/org/lockss/app/TestLockssDaemon.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
1685,
37,
89,
1318,
1435,
1216,
1185,
288,
565,
3488,
1049,
12858,
8131,
273,
394,
7766,
37,
89,
2531,
1049,
12858,
5621,
565,
4659,
642,
273,
1903,
1318,
18,
2704,
1750,
5621,
565,
7867,
12269,
5162,
2802,
312,
8377,
21,
273,
394,
7867,
12269,
5162,
2802,
5621,
565,
312,
8377,
21,
18,
542,
37,
89,
548,
2932,
2540,
89,
21,
8863,
565,
7867,
12269,
5162,
2802,
312,
8377,
22,
273,
394,
7867,
12269,
5162,
2802,
5621,
565,
312,
8377,
22,
18,
542,
37,
89,
548,
2932,
2540,
89,
22,
8863,
565,
7766,
37,
89,
9455,
18,
8507,
3783,
5621,
565,
8131,
18,
1937,
1162,
426,
14895,
37,
89,
17570,
12,
2540,
89,
21,
16,
642,
1769,
565,
7766,
37,
89,
9455,
21,
13333,
2499,
273,
261,
4709,
37,
89,
9455,
21,
13,
21511,
18,
588,
37,
89,
1318,
2932,
9455,
653,
21,
3113,
312,
8377,
21,
1769,
565,
7766,
37,
89,
9455,
22,
13333,
5340,
273,
261,
4709,
37,
89,
9455,
22,
13,
21511,
18,
588,
37,
89,
1318,
2932,
9455,
653,
22,
3113,
312,
8377,
21,
1769,
565,
1815,
8650,
12,
2540,
89,
21,
16,
13333,
2499,
18,
588,
37,
89,
10663,
565,
1815,
8650,
12,
2540,
89,
21,
16,
13333,
5340,
18,
588,
37,
89,
10663,
565,
1815,
8867,
12,
682,
1304,
18,
1098,
12,
13552,
2499,
3631,
8131,
18,
588,
37,
89,
17570,
18859,
2932,
9455,
653,
21,
7923,
1769,
565,
1815,
8867,
12,
682,
1304,
18,
1098,
12,
13552,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
1685,
37,
89,
1318,
1435,
1216,
1185,
288,
565,
3488,
1049,
12858,
8131,
273,
394,
7766,
37,
89,
2531,
1049,
12858,
5621,
565,
4659,
642,
273,
1903,
1318,
18,
2704,
1750,
5621,
565,
7867,
12269,
5162,
2802,
312,
8377,
21,
273,
394,
7867,
12269,
5162,
2802,
5621,
565,
312,
8377,
21,
18,
542,
37,
89,
548,
2932,
2540,
89,
21,
8863,
565,
7867,
12269,
5162,
2802,
312,
8377,
22,
273,
394,
7867,
12269,
5162,
2802,
5621,
565,
312,
8377,
22,
18,
542,
37,
89,
548,
2932,
2540,
89,
22,
8863,
565,
7766,
37,
89,
9455,
18,
8507,
3783,
5621,
565,
8131,
18,
1937,
1162,
426,
14895,
37,
89,
17570,
12,
2540,
89,
21,
16,
642,
2
] |
if (jj_3R_83()) return true;
|
Token xsp; xsp = jj_scanpos; if (jj_scan_token(32)) jj_scanpos = xsp; if (jj_3R_168()) return true; if (jj_scan_token(IDENTIFIER)) return true; while (true) { xsp = jj_scanpos; if (jj_3R_470()) { jj_scanpos = xsp; break; } }
|
final private boolean jj_3R_465() { if (jj_3R_83()) return true; return false; }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/0b7f9842c42a34509d077a5e1d655daf0b8192d6/Parser.java/clean/dynamicjava/src/koala/dynamicjava/parser/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
8749,
25,
1435,
288,
565,
3155,
619,
1752,
31,
619,
1752,
273,
10684,
67,
9871,
917,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
1578,
3719,
10684,
67,
9871,
917,
273,
619,
1752,
31,
309,
261,
78,
78,
67,
23,
54,
67,
23329,
10756,
327,
638,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
1323,
261,
3767,
13,
288,
619,
1752,
273,
10684,
67,
9871,
917,
31,
309,
261,
78,
78,
67,
23,
54,
67,
24,
7301,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
289,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
8749,
25,
1435,
288,
565,
3155,
619,
1752,
31,
619,
1752,
273,
10684,
67,
9871,
917,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
1578,
3719,
10684,
67,
9871,
917,
273,
619,
1752,
31,
309,
261,
78,
78,
67,
23,
54,
67,
23329,
10756,
327,
638,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
1323,
261,
3767,
13,
288,
619,
1752,
273,
10684,
67,
9871,
917,
31,
309,
261,
78,
78,
67,
23,
54,
67,
24,
7301,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
289,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100
] |
char thousandSeparator, char decimalPlaceholder, String dateSeparator, String timeSeparator, String currencySymbol, String currencyFormat, String[] daysOfWeekShort, String[] daysOfWeekLong, String[] monthsShort, String[] monthsLong, Locale locale) { FormatLocale formatLocale = new FormatLocale( thousandSeparator, decimalPlaceholder, dateSeparator, timeSeparator, currencySymbol, currencyFormat, daysOfWeekShort, daysOfWeekLong, monthsShort, monthsLong); if (locale != null) { registerFormatLocale(formatLocale, locale); } return formatLocale; }
|
char thousandSeparator, char decimalPlaceholder, String dateSeparator, String timeSeparator, String currencySymbol, String currencyFormat, String[] daysOfWeekShort, String[] daysOfWeekLong, String[] monthsShort, String[] monthsLong, Locale locale) { FormatLocale formatLocale = new FormatLocale( thousandSeparator, decimalPlaceholder, dateSeparator, timeSeparator, currencySymbol, currencyFormat, daysOfWeekShort, daysOfWeekLong, monthsShort, monthsLong); if (locale != null) { registerFormatLocale(formatLocale, locale); } return formatLocale; }
|
public static FormatLocale createLocale( char thousandSeparator, char decimalPlaceholder, String dateSeparator, String timeSeparator, String currencySymbol, String currencyFormat, String[] daysOfWeekShort, String[] daysOfWeekLong, String[] monthsShort, String[] monthsLong, Locale locale) { FormatLocale formatLocale = new FormatLocale( thousandSeparator, decimalPlaceholder, dateSeparator, timeSeparator, currencySymbol, currencyFormat, daysOfWeekShort, daysOfWeekLong, monthsShort, monthsLong); if (locale != null) { registerFormatLocale(formatLocale, locale); } return formatLocale; }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/Format.java/clean/src/main/mondrian/util/Format.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
4077,
3916,
752,
3916,
12,
202,
202,
3001,
286,
1481,
464,
6581,
16,
202,
202,
3001,
6970,
14038,
16,
202,
202,
780,
1509,
6581,
16,
202,
202,
780,
813,
6581,
16,
202,
202,
780,
5462,
5335,
16,
202,
202,
780,
5462,
1630,
16,
202,
202,
780,
8526,
4681,
12250,
4897,
16,
202,
202,
780,
8526,
4681,
12250,
3708,
16,
202,
202,
780,
8526,
8846,
4897,
16,
202,
202,
780,
8526,
8846,
3708,
16,
202,
202,
3916,
2573,
13,
202,
95,
202,
202,
1630,
3916,
740,
3916,
273,
394,
4077,
3916,
12,
1082,
202,
451,
1481,
464,
6581,
16,
6970,
14038,
16,
1509,
6581,
16,
1082,
202,
957,
6581,
16,
5462,
5335,
16,
5462,
1630,
16,
4681,
12250,
4897,
16,
1082,
202,
9810,
12250,
3708,
16,
8846,
4897,
16,
8846,
3708,
1769,
202,
202,
430,
261,
6339,
480,
446,
13,
288,
1082,
202,
4861,
1630,
3916,
12,
2139,
3916,
16,
2573,
1769,
202,
202,
97,
202,
202,
2463,
740,
3916,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
4077,
3916,
752,
3916,
12,
202,
202,
3001,
286,
1481,
464,
6581,
16,
202,
202,
3001,
6970,
14038,
16,
202,
202,
780,
1509,
6581,
16,
202,
202,
780,
813,
6581,
16,
202,
202,
780,
5462,
5335,
16,
202,
202,
780,
5462,
1630,
16,
202,
202,
780,
8526,
4681,
12250,
4897,
16,
202,
202,
780,
8526,
4681,
12250,
3708,
16,
202,
202,
780,
8526,
8846,
4897,
16,
202,
202,
780,
8526,
8846,
3708,
16,
202,
202,
3916,
2573,
13,
202,
95,
202,
202,
1630,
3916,
740,
3916,
273,
394,
4077,
3916,
12,
1082,
202,
451,
1481,
464,
6581,
16,
6970,
14038,
16,
1509,
6581,
16,
1082,
202,
957,
6581,
16,
5462,
5335,
16,
5462,
1630,
16,
2
] |
return RubyFixnum.newFixnum(runtime, list.hashCode());
|
return getRuntime().newFixnum(list.hashCode());
|
public RubyFixnum hash() { return RubyFixnum.newFixnum(runtime, list.hashCode()); }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArray.java/clean/src/org/jruby/RubyArray.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
1651,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
1098,
18,
2816,
1085,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8585,
2107,
1651,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
1098,
18,
2816,
1085,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
boolean modifiedDatetimeChanged = !document.getLastModifiedDatetime().equals( document.getModifiedDatetime() ); if ( !modifiedDatetimeChanged ) {
|
Date lastModifiedDatetime = Utility.truncateDateToMinutePrecision( document.getLastModifiedDatetime() ); Date modifiedDatetime = Utility.truncateDateToMinutePrecision( document.getModifiedDatetime() ); boolean modifiedDatetimeUnchanged = lastModifiedDatetime.equals( modifiedDatetime ); if ( modifiedDatetimeUnchanged ) {
|
public void saveDocument( DocumentDomainObject document, UserDomainObject user ) throws MaxCategoryDomainObjectsOfTypeExceededException { DocumentDomainObject oldDocument = getDocument( document.getId() ); if ( !user.canEdit( oldDocument ) ) { return; } checkMaxDocumentCategoriesOfType( document ); try { boolean modifiedDatetimeChanged = !document.getLastModifiedDatetime().equals( document.getModifiedDatetime() ); if ( !modifiedDatetimeChanged ) { document.setModifiedDatetime( this.clock.getCurrentDate() ); } sqlUpdateMeta( document ); updateDocumentSectionsCategoriesKeywords( document ); if ( user.canEditPermissionsFor( oldDocument ) ) { updateDocumentRolePermissions( document, user, oldDocument ); documentPermissionSetMapper.saveRestrictedDocumentPermissionSets( document, user, oldDocument ); } document.accept( new DocumentSavingVisitor( user, oldDocument, database ) ); } finally { invalidateDocument( document ); } }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/0941856a49bb8c1fe58acd5637eb0b0f2b3b3616/DocumentMapper.java/clean/server/src/imcode/server/document/DocumentMapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
2519,
12,
4319,
3748,
921,
1668,
16,
2177,
3748,
921,
729,
262,
1216,
4238,
4457,
3748,
4710,
18859,
14083,
288,
3639,
4319,
3748,
921,
1592,
2519,
273,
9956,
12,
1668,
18,
26321,
1435,
11272,
3639,
309,
261,
401,
1355,
18,
4169,
4666,
12,
1592,
2519,
262,
262,
288,
5411,
327,
31,
3639,
289,
3639,
866,
2747,
2519,
10487,
18859,
12,
1668,
11272,
3639,
775,
288,
5411,
1250,
4358,
16103,
5033,
273,
401,
5457,
18,
588,
14747,
16103,
7675,
14963,
12,
1668,
18,
588,
4575,
16103,
1435,
11272,
5411,
309,
261,
401,
7342,
16103,
5033,
262,
288,
7734,
1668,
18,
542,
4575,
16103,
12,
333,
18,
18517,
18,
588,
3935,
1626,
1435,
11272,
5411,
289,
5411,
1847,
1891,
2781,
12,
1668,
11272,
5411,
1089,
2519,
15965,
10487,
14149,
12,
1668,
11272,
5411,
309,
261,
729,
18,
4169,
4666,
6521,
1290,
12,
1592,
2519,
262,
262,
288,
7734,
1089,
2519,
2996,
6521,
12,
1668,
16,
729,
16,
1592,
2519,
11272,
7734,
1668,
5041,
694,
4597,
18,
5688,
18784,
2519,
5041,
2785,
12,
1668,
16,
729,
16,
1592,
2519,
11272,
5411,
289,
5411,
1668,
18,
9436,
12,
394,
4319,
24660,
7413,
12,
729,
16,
1592,
2519,
16,
2063,
262,
11272,
3639,
289,
3095,
288,
5411,
11587,
2519,
12,
1668,
11272,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
2519,
12,
4319,
3748,
921,
1668,
16,
2177,
3748,
921,
729,
262,
1216,
4238,
4457,
3748,
4710,
18859,
14083,
288,
3639,
4319,
3748,
921,
1592,
2519,
273,
9956,
12,
1668,
18,
26321,
1435,
11272,
3639,
309,
261,
401,
1355,
18,
4169,
4666,
12,
1592,
2519,
262,
262,
288,
5411,
327,
31,
3639,
289,
3639,
866,
2747,
2519,
10487,
18859,
12,
1668,
11272,
3639,
775,
288,
5411,
1250,
4358,
16103,
5033,
273,
401,
5457,
18,
588,
14747,
16103,
7675,
14963,
12,
1668,
18,
588,
4575,
16103,
1435,
11272,
5411,
309,
261,
401,
7342,
16103,
5033,
262,
288,
7734,
1668,
18,
542,
4575,
16103,
12,
333,
18,
18517,
18,
588,
3935,
1626,
1435,
11272,
5411,
289,
5411,
2
] |
public Bucket decode(BucketFactory bf, int maxLength) throws CHKDecodeException, IOException {
|
public Bucket decode(BucketFactory bf, int maxLength, boolean dontCompress) throws CHKDecodeException, IOException {
|
public Bucket decode(BucketFactory bf, int maxLength) throws CHKDecodeException, IOException { // Overall hash already verified, so first job is to decrypt. if(key.cryptoAlgorithm != Key.ALGO_AES_PCFB_256_SHA256) throw new UnsupportedOperationException(); BlockCipher cipher; try { cipher = new Rijndael(256, 256); } catch (UnsupportedCipherException e) { // FIXME - log this properly throw new Error(e); } byte[] cryptoKey = key.cryptoKey; if(cryptoKey.length < Node.SYMMETRIC_KEY_LENGTH) throw new CHKDecodeException("Crypto key too short"); cipher.initialize(key.cryptoKey); PCFBMode pcfb = new PCFBMode(cipher); byte[] hbuf = new byte[headers.length-2]; System.arraycopy(headers, 2, hbuf, 0, headers.length-2); byte[] dbuf = new byte[data.length]; System.arraycopy(data, 0, dbuf, 0, data.length); // Decipher header first - functions as IV pcfb.blockDecipher(hbuf, 0, hbuf.length); pcfb.blockDecipher(dbuf, 0, dbuf.length); // Check: Decryption key == hash of data (not including header) MessageDigest md256; try { md256 = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e1) { // FIXME: log this properly? throw new Error(e1); } byte[] dkey = md256.digest(dbuf); if(!java.util.Arrays.equals(dkey, key.cryptoKey)) { throw new CHKDecodeException("Check failed: decrypt key == H(data)"); } // Check: IV == hash of decryption key byte[] predIV = md256.digest(dkey); // Extract the IV byte[] iv = new byte[32]; System.arraycopy(hbuf, 0, iv, 0, 32); if(!Arrays.equals(iv, predIV)) throw new CHKDecodeException("Check failed: Decrypted IV == H(decryption key)"); // Checks complete int size = ((hbuf[32] & 0xff) << 8) + (hbuf[33] & 0xff); if(size > 32768 || size < 0) throw new CHKDecodeException("Invalid size: "+size); byte[] output = new byte[size]; // No particular reason to check the padding, is there? System.arraycopy(dbuf, 0, output, 0, size); return Key.decompress(key.isCompressed(), output, bf, Math.min(maxLength, MAX_LENGTH_BEFORE_COMPRESSION), key.compressionAlgorithm, false); }
|
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/453d4b996fb63d69f900accadc2e27f5ed795af0/ClientCHKBlock.java/clean/src/freenet/keys/ClientCHKBlock.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7408,
2495,
12,
4103,
1733,
16222,
16,
509,
13642,
16,
1250,
14046,
16552,
13,
1216,
6469,
47,
6615,
503,
16,
1860,
288,
3639,
368,
10752,
454,
1651,
1818,
13808,
16,
1427,
1122,
1719,
353,
358,
8420,
18,
3639,
309,
12,
856,
18,
18489,
6801,
480,
1929,
18,
1013,
16387,
67,
18436,
67,
3513,
22201,
67,
5034,
67,
8325,
5034,
13,
5411,
604,
394,
13172,
5621,
3639,
3914,
13896,
5867,
31,
3639,
775,
288,
5411,
5867,
273,
394,
534,
8302,
82,
2414,
292,
12,
5034,
16,
8303,
1769,
3639,
289,
1044,
261,
8544,
13896,
503,
425,
13,
288,
5411,
368,
9852,
300,
613,
333,
8214,
5411,
604,
394,
1068,
12,
73,
1769,
3639,
289,
3639,
1160,
8526,
8170,
653,
273,
498,
18,
18489,
653,
31,
3639,
309,
12,
18489,
653,
18,
2469,
411,
2029,
18,
7474,
49,
23081,
39,
67,
3297,
67,
7096,
13,
5411,
604,
394,
6469,
47,
6615,
503,
2932,
18048,
498,
4885,
3025,
8863,
3639,
5867,
18,
11160,
12,
856,
18,
18489,
653,
1769,
3639,
453,
8955,
38,
2309,
6125,
19192,
273,
394,
453,
8955,
38,
2309,
12,
17094,
1769,
3639,
1160,
8526,
366,
4385,
273,
394,
1160,
63,
2485,
18,
2469,
17,
22,
15533,
3639,
2332,
18,
1126,
3530,
12,
2485,
16,
576,
16,
366,
4385,
16,
374,
16,
1607,
18,
2469,
17,
22,
1769,
3639,
1160,
8526,
1319,
696,
273,
394,
1160,
63,
892,
18,
2469,
15533,
3639,
2332,
18,
1126,
3530,
12,
892,
16,
374,
16,
1319,
696,
16,
374,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7408,
2495,
12,
4103,
1733,
16222,
16,
509,
13642,
16,
1250,
14046,
16552,
13,
1216,
6469,
47,
6615,
503,
16,
1860,
288,
3639,
368,
10752,
454,
1651,
1818,
13808,
16,
1427,
1122,
1719,
353,
358,
8420,
18,
3639,
309,
12,
856,
18,
18489,
6801,
480,
1929,
18,
1013,
16387,
67,
18436,
67,
3513,
22201,
67,
5034,
67,
8325,
5034,
13,
5411,
604,
394,
13172,
5621,
3639,
3914,
13896,
5867,
31,
3639,
775,
288,
5411,
5867,
273,
394,
534,
8302,
82,
2414,
292,
12,
5034,
16,
8303,
1769,
3639,
289,
1044,
261,
8544,
13896,
503,
425,
13,
288,
5411,
368,
9852,
300,
613,
333,
8214,
5411,
604,
394,
1068,
12,
73,
1769,
3639,
289,
3639,
1160,
8526,
8170,
2
] |
int fnEndLine = lines[0];
|
int fnEndLine = fnFirstLine + 1;
|
synchronized void updateLineInfo(ScriptItem item) { int[] lines = item.getScript().getLineNumbers(); if (lines.length == 0) { return; } int fnFirstLine = lines[0]; int fnEndLine = lines[0]; for (int i = 1; i != lines.length; ++i) { int line = lines[i]; if (line < fnFirstLine) { fnFirstLine = line; }else if (line >= fnEndLine) { fnEndLine = line + 1; } } item.setFirstLine(fnFirstLine); if (endLine < fnEndLine) { endLine = fnEndLine; } if (breakableLines == null) { int newLength = 20; if (newLength < endLine) { newLength = endLine; } breakableLines = new boolean[newLength]; }else if (breakableLines.length < endLine) { int newLength = breakableLines.length * 2; if (newLength < endLine) { newLength = endLine; } boolean[] tmp = new boolean[newLength]; System.arraycopy(breakableLines, 0, tmp, 0, breakableLines.length); breakableLines = tmp; } int breakpointsEnd = (breakpoints == null) ? 0 : breakpoints.length; for (int i = 0; i != lines.length; ++i) { int line = lines[i]; breakableLines[line] = true; if (line < breakpointsEnd) { if (breakpoints[line] == OLD_BREAK_FLAG) { breakpoints[line] = BREAK_FLAG; } } } }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/5a7ad27176f189b07456b2ec0000fbe349bc3072/Main.java/clean/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
1089,
1670,
966,
12,
3651,
1180,
761,
13,
288,
3639,
509,
8526,
2362,
273,
761,
18,
588,
3651,
7675,
588,
1670,
10072,
5621,
3639,
309,
261,
3548,
18,
2469,
422,
374,
13,
288,
5411,
327,
31,
3639,
289,
3639,
509,
2295,
3759,
1670,
273,
2362,
63,
20,
15533,
3639,
509,
2295,
1638,
1670,
273,
2295,
3759,
1670,
397,
404,
31,
3639,
364,
261,
474,
277,
273,
404,
31,
277,
480,
2362,
18,
2469,
31,
965,
77,
13,
288,
5411,
509,
980,
273,
2362,
63,
77,
15533,
5411,
309,
261,
1369,
411,
2295,
3759,
1670,
13,
288,
7734,
2295,
3759,
1670,
273,
980,
31,
5411,
289,
12107,
309,
261,
1369,
1545,
2295,
1638,
1670,
13,
288,
7734,
2295,
1638,
1670,
273,
980,
397,
404,
31,
5411,
289,
3639,
289,
3639,
761,
18,
542,
3759,
1670,
12,
4293,
3759,
1670,
1769,
3639,
309,
261,
409,
1670,
411,
2295,
1638,
1670,
13,
288,
5411,
31763,
273,
2295,
1638,
1670,
31,
3639,
289,
3639,
309,
261,
8820,
429,
5763,
422,
446,
13,
288,
5411,
509,
394,
1782,
273,
4200,
31,
5411,
309,
261,
2704,
1782,
411,
31763,
13,
288,
394,
1782,
273,
31763,
31,
289,
5411,
898,
429,
5763,
273,
394,
1250,
63,
2704,
1782,
15533,
3639,
289,
12107,
309,
261,
8820,
429,
5763,
18,
2469,
411,
31763,
13,
288,
5411,
509,
394,
1782,
273,
898,
429,
5763,
18,
2469,
380,
576,
31,
5411,
309,
261,
2704,
1782,
411,
31763,
13,
288,
394,
1782,
273,
31763,
31,
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,
3852,
918,
1089,
1670,
966,
12,
3651,
1180,
761,
13,
288,
3639,
509,
8526,
2362,
273,
761,
18,
588,
3651,
7675,
588,
1670,
10072,
5621,
3639,
309,
261,
3548,
18,
2469,
422,
374,
13,
288,
5411,
327,
31,
3639,
289,
3639,
509,
2295,
3759,
1670,
273,
2362,
63,
20,
15533,
3639,
509,
2295,
1638,
1670,
273,
2295,
3759,
1670,
397,
404,
31,
3639,
364,
261,
474,
277,
273,
404,
31,
277,
480,
2362,
18,
2469,
31,
965,
77,
13,
288,
5411,
509,
980,
273,
2362,
63,
77,
15533,
5411,
309,
261,
1369,
411,
2295,
3759,
1670,
13,
288,
7734,
2295,
3759,
1670,
273,
980,
31,
5411,
289,
12107,
309,
261,
1369,
1545,
2295,
1638,
1670,
13,
288,
7734,
2
] |
private static String getTrimmedString( final String value ) { if( null == value ) {
|
private static String getTrimmedString(final String value) { if (null == value) {
|
private static String getTrimmedString( final String value ) { if( null == value ) { return null; } else { return value.trim(); } }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/9a91fca4e2293ddd217f37617fee7c6905268129/Specification.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/extension/Specification.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
336,
14795,
2937,
780,
12,
727,
514,
460,
262,
565,
288,
3639,
309,
12,
446,
422,
460,
262,
3639,
288,
5411,
327,
446,
31,
3639,
289,
3639,
469,
3639,
288,
5411,
327,
460,
18,
5290,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
514,
336,
14795,
2937,
780,
12,
727,
514,
460,
262,
565,
288,
3639,
309,
12,
446,
422,
460,
262,
3639,
288,
5411,
327,
446,
31,
3639,
289,
3639,
469,
3639,
288,
5411,
327,
460,
18,
5290,
5621,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case 36: break; case 25:
|
case 39: break; case 26:
|
public Yytoken yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 23: { // This is horrible. However it seems that there is no other way to do it with either jflex or CUP, as {URL} cannot be an unambiguous token :( String s = yytext(); if(debug) log("Recognized URL: "+s); DecodedStringThingy dst = new DecodedStringThingy(s); if(!dst.url) { throw new IllegalStateException("parsing url().. isn't a url()"); } if(dst.suffix.length() > 0) { yypushback(dst.suffix.length()); dst.suffix = ""; } s = dst.data; if(debug) log("URL now: "+s); try { s = processURL(s); dst.data = s; if(s == null || s.equals("")) { if(debug) log("URL invalid"); w.write("url()"); } else { s = dst.toString(); if(debug) log("Writing: "+s); w.write(s); } } catch (CommentException e) { w.write("/* "+commentEncode(e.getMessage())+" */"); } } case 31: break; case 18: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 32: break; case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 33: break; case 22: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 34: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 35: break; case 12: { String s = yytext(); if(debug) log("Matched string: "+s); if(paranoidStringCheck && s.indexOf(':') != -1) { w.write("/* Deleted disallowed string */"); log("Deleted disallowed string: "+s); } else { w.write(s); } } case 36: break; case 25: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 37: break; case 13: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 38: break; case 1: { String s = yytext(); char c = s.charAt(0); log("Matched anything: "+yytext()+" - ignoring"); w.write("/* ignored unmatched char: "+c+" */"); // single char cannot break out of comment } case 39: break; case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 40: break; case 20: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 41: break; case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 42: break; case 26: { String s = yytext(); s = s.substring("@media".length()).trim(); w.write("@media "+s+ ' '); if(debug) log("Matched @media: "+s); } case 43: break; case 2: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 44: break; case 24: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 45: break; case 28: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 46: break; case 19: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 47: break; case 9: { String s = yytext(); if(s.startsWith("url")) throwError("Invalid contents of url()"); w.write(s); if(debug) log("Matched function start: "+s); } case 48: break; case 27: { String s = yytext(); if(debug) log("Found @import: "+s); s = s.substring("@import".length()); s = s.trim(); DecodedStringThingy dst = new DecodedStringThingy(s); s = dst.data; if(debug) log("URL: "+s); try { s = processImportURL(s); dst.data = s; if(debug) log("Processed URL: "+s); if(dst.quote == ' ') dst.quote = '\"'; if (!(s == null || s.equals(""))) { if(debug) log("URL now: "+s); s = "@import "+dst.toString(); if(debug) log("Writing: "+s); w.write(s); } else if(debug) log("Dropped @import"); } catch (CommentException e) { w.write("/* " + commentEncode(e.getMessage()) + " */"); } } case 49: break; case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 50: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 51: break; case 21: { String s = yytext(); StringBuffer sb = new StringBuffer(s.length()); sb.append("/* "); boolean inPrefix = true; for(int i=2;i<s.length()-2;i++) { char c = s.charAt(i); if(inPrefix && Character.isWhitespace(c)) { continue; } inPrefix = false; if(Character.isDigit(c) || Character.isWhitespace(c) || Character.isLetter(c) || c == '.' || c == '_' || c == '-') { // No @, no !, etc; IE has been known to do things with comments // in CSS, and other browsers may too sb.append(c); } } while(Character.isWhitespace(sb.charAt(sb.length()-1))) sb.deleteCharAt(sb.length()-1); sb.append(" */"); w.write(sb.toString()); if(debug) log("Matched comment: "+s+" -> "+sb.toString()); } case 52: break; case 15: { if(!deleteErrors) { throwError("Unknown @identifier "+yytext()); } else { String s = yytext(); if(debug) log("Discarded identifier: "+s); // Ignore } } case 53: break; case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 54: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 55: break; case 30: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 56: break; case 10: { if(postBadImportFlag) { // Ignore postBadImportFlag = false; if(debug) log("Ignoring mediums list because after bad import: "+ yytext()); } else { String s = yytext(); w.write(s); if(debug) log("Matched and passing on mediums list: "+s); } } case 57: break; case 4: { String s = yytext(); w.write(s); if(debug) log("Matched single char: "+s); } case 58: break; case 14: { String s = yytext(); w.write(s); if(debug) log("Matched #name: "+s); } case 59: break; case 5: { String s = yytext(); w.write(s); if(debug) log("Matched function end: "+s); } case 60: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return null; } else { zzScanError(ZZ_NO_MATCH); } } } }
|
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/58e844dc77aa5d1ee9f4952f22f0f7b6b8469457/CSSTokenizerFilter.java/clean/src/freenet/clients/http/filter/CSSTokenizerFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1616,
48,
31,
565,
509,
11273,
21486,
1616,
48,
31,
565,
509,
11273,
1638,
1994,
48,
273,
11273,
1638,
1994,
31,
565,
1149,
5378,
11273,
1892,
48,
273,
11273,
1892,
31,
565,
1149,
5378,
11273,
39,
863,
48,
273,
2285,
62,
67,
39,
8352,
31,
565,
509,
5378,
11273,
1429,
48,
273,
2285,
62,
67,
16596,
31,
565,
509,
5378,
11273,
1999,
863,
48,
273,
2285,
62,
67,
11226,
8352,
31,
565,
509,
5378,
11273,
3843,
48,
273,
2285,
62,
67,
11616,
31,
565,
1323,
261,
3767,
13,
288,
1377,
11273,
21486,
1616,
48,
273,
11273,
21486,
1616,
31,
1377,
11273,
1803,
273,
300,
21,
31,
1377,
11273,
3935,
1616,
48,
273,
11273,
3935,
1616,
273,
11273,
1685,
1994,
273,
11273,
21486,
1616,
48,
31,
3639,
11273,
1119,
273,
11273,
14756,
1706,
1119,
31,
1377,
11273,
1290,
1803,
30,
288,
3639,
1323,
261,
3767,
13,
288,
2868,
309,
261,
6378,
3935,
1616,
48,
411,
11273,
1638,
1994,
48,
13,
5411,
11273,
1210,
273,
11273,
1892,
48,
63,
6378,
3935,
1616,
48,
9904,
15533,
1850,
469,
309,
261,
6378,
861,
12706,
13,
288,
5411,
11273,
1210,
273,
1624,
61,
12706,
31,
5411,
898,
11273,
1290,
1803,
31,
1850,
289,
1850,
469,
288,
5411,
368,
1707,
1473,
3472,
6865,
5411,
11273,
3935,
1616,
225,
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,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1616,
48,
31,
565,
509,
11273,
21486,
1616,
48,
31,
565,
509,
11273,
1638,
1994,
48,
273,
11273,
1638,
1994,
31,
565,
1149,
5378,
11273,
1892,
48,
273,
11273,
1892,
31,
565,
1149,
5378,
11273,
39,
863,
48,
273,
2285,
62,
67,
39,
8352,
31,
565,
509,
5378,
11273,
1429,
48,
273,
2285,
62,
67,
16596,
31,
565,
509,
5378,
11273,
1999,
863,
48,
273,
2285,
62,
67,
11226,
8352,
31,
565,
509,
5378,
11273,
3843,
48,
273,
2285,
62,
67,
11616,
31,
565,
2
] |
Via via = ((SIPClientTransaction) clientTransactionId) .getOutgoingViaHeader();
|
Via via = ((SIPClientTransaction) clientTransactionId) .getOutgoingViaHeader();
|
public void sendRequest(ClientTransaction clientTransactionId) throws TransactionDoesNotExistException, SipException { SIPRequest dialogRequest = ((SIPClientTransaction) clientTransactionId).getOriginalRequest(); if (clientTransactionId == null) throw new NullPointerException("null parameter"); if (dialogRequest.getMethod().equals(Request.ACK) || dialogRequest.getMethod().equals(Request.CANCEL)) throw new SipException( "Bad Request Method. " + dialogRequest.getMethod()); // Cannot send bye until the dialog has been established. if (this.getState() == null) { throw new SipException("Bad dialog state " + this.getState()); } /** if (this.isServer() && dialogRequest.getMethod().equalsIgnoreCase(Request.BYE) && this.getState().getValue() == EARLY_STATE) { throw new SipException("Bad dialog state " + this.getState()); } **/ if (LogWriter.needsLogging) sipStack.logWriter.logMessage( "dialog.sendRequest " + " dialog = " + this + "\ndialogRequest = \n" + dialogRequest); if (dialogRequest.getTopmostVia() == null) { Via via = ((SIPClientTransaction) clientTransactionId) .getOutgoingViaHeader(); dialogRequest.addHeader(via); } if (!this .getCallId() .getCallId() .equals(dialogRequest.getCallId().getCallId())) { throw new SipException("Bad call ID in request"); } // Set the dialog back pointer. ((SIPClientTransaction) clientTransactionId).dialog = this; this.addTransaction((SIPTransaction) clientTransactionId); // Enable the retransmission filter for the transaction ((SIPClientTransaction) clientTransactionId).isMapped = true; From from = (From) dialogRequest.getFrom(); To to = (To) dialogRequest.getTo(); try { if (this.getLocalTag() != null) from.setTag(this.getLocalTag()); if (this.getRemoteTag() != null) to.setTag(this.getRemoteTag()); } catch (ParseException ex) { System.out.println("Huh??"); ex.printStackTrace(); } // Caller has not assigned the route header - set the route header // and the request URI for the outgoing request. // Bugs reported by Brad Templeton. if (dialogRequest.getHeader(RouteHeader.NAME) == null) { // get the route list from the dialog. RouteList rl = this.getRouteList(); // Add it to the header. if (rl.size() > 0) { Route route = (Route) rl.getFirst(); SipURI sipUri = (SipUri) route.getAddress().getURI(); if (sipUri.hasLrParam()) { dialogRequest.setRequestURI( this.getRemoteTarget().getURI()); dialogRequest.addHeader(rl); } else { // First route is not a lr // Add the contact route to the end. rl.removeFirst(); dialogRequest.setRequestURI(sipUri); // Check for 0 size - Bug report from Andreas Bystrom. if (rl.size() > 0) dialogRequest.addHeader(rl); if (contactRoute != null) dialogRequest.addHeader(contactRoute); } } else { // Bug report from Antonis Karydas if (this.getRemoteTarget() != null) dialogRequest.setRequestURI( this.getRemoteTarget().getURI()); } } // 2543 Backward compatibility hack contributed by // Steve Crossley (Nortel Networks). HopImpl hop; try { hop = this.getNextHop(); } catch (SipException se) { // If no route set is defined in the dialog, consult the stack's // router object to determine the route as if the request were // being sent outside of a dialog. This is for backward // compatibility with old clients that may not put contact // headers in final responses. Iterator iter = sipStack.getNextHop(dialogRequest); if (iter.hasNext()) { Hop h = (Hop) iter.next(); hop = new HopImpl(h.getHost(), h.getPort(), h.getTransport()); } else { throw se; } } try { TCPMessageChannel oldChannel = null; MessageChannel messageChannel = sipStack.createRawMessageChannel(hop); if ( ((SIPClientTransaction) clientTransactionId).encapsulatedChannel instanceof TCPMessageChannel ) { // Remove this from the connection cache if it is in the connection // cache and is not yet active. oldChannel = (TCPMessageChannel) ((SIPClientTransaction)clientTransactionId).encapsulatedChannel; if (oldChannel.isCached && ! oldChannel.isRunning) { oldChannel.uncache(); } // Not configured to cache client connections. if ( !sipStack.cacheClientConnections ) { oldChannel.useCount --; if (LogWriter.needsLogging) sipStack.logWriter.logMessage("oldChannel: useCount " + oldChannel.useCount); } } ((SIPClientTransaction) clientTransactionId).encapsulatedChannel = messageChannel; if (messageChannel == null) { // Bug fix from Antonis Karydas // At this point the procedures of 8.1.2 // and 12.2.1.1 of RFC3261 have been tried // but the resulting next hop cannot be resolved // (recall that the exception thrown // is caught and ignored in SIPStack.createMessageChannel() // so we end up here with a null messageChannel // instead of the exception handler below). // All else failing, try the outbound proxy in accordance // with 8.1.2, in particular: // This ensures that outbound proxies that do not add // Record-Route header field values will drop out of // the path of subsequent requests. It allows endpoints // that cannot resolve the first Route // URI to delegate that task to an outbound proxy. // // if one considers the 'first Route URI' of a // request constructed according to 12.2.1.1 // to be the request URI when the route set is empty. Hop outboundProxy = sipStack.getRouter().getOutboundProxy(); if (outboundProxy == null) throw new SipException("No route found!"); messageChannel = sipStack.createRawMessageChannel(outboundProxy); } ((SIPClientTransaction) clientTransactionId).encapsulatedChannel = messageChannel; if (messageChannel != null && messageChannel instanceof TCPMessageChannel ) ((TCPMessageChannel) messageChannel).useCount ++; // See if we need to release the previously mapped channel. if ( ( ! sipStack.cacheClientConnections ) && oldChannel != null && oldChannel.useCount == 0 ) oldChannel.close(); } catch (Exception ex) { if (LogWriter.needsLogging) sipStack.logWriter.logException(ex); throw new SipException("Cold not create message channel"); } try { // Increment before setting!! localSequenceNumber++; dialogRequest.getCSeq().setSequenceNumber(getLocalSequenceNumber()); } catch (InvalidArgumentException ex) { ex.printStackTrace(); } if (this.isServer()) { SIPServerTransaction serverTransaction = (SIPServerTransaction) this.getFirstTransaction(); try { if (this.myTag != null) from.setTag(this.myTag); if (this.hisTag != null) to.setTag(this.hisTag); } catch (ParseException ex) { throw new SipException(ex.getMessage()); } try { ((SIPClientTransaction) clientTransactionId).sendMessage( dialogRequest); // If the method is BYE then mark the dialog completed. if (dialogRequest.getMethod().equals(Request.BYE)) this.setState(COMPLETED_STATE); } catch (IOException ex) { throw new SipException("error sending message"); } } else { // I am the client so I do not swap headers. SIPClientTransaction clientTransaction = (SIPClientTransaction) this.getFirstTransaction(); try { if (LogWriter.needsLogging) { sipStack.logWriter.logMessage( "setting tags from " + this.getDialogId()); sipStack.logWriter.logMessage("fromTag " + this.myTag); sipStack.logWriter.logMessage("toTag " + this.hisTag); } if (this.myTag != null) from.setTag(this.myTag); if (this.hisTag != null) to.setTag(this.hisTag); } catch (ParseException ex) { throw new SipException(ex.getMessage()); } try { ((SIPClientTransaction) clientTransactionId).sendMessage( dialogRequest); // go directly to terminated state. if (dialogRequest.getMethod().equalsIgnoreCase(Request.BYE)) this.setState(COMPLETED_STATE); } catch (IOException ex) { if (LogWriter.needsLogging) sipStack.logWriter.logException(ex); throw new SipException("error sending message"); } } }
|
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/d231d2c6c5ca907b5c90d5737c6ae873878b219f/SIPDialog.java/buggy/src/gov/nist/javax/sip/stack/SIPDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12413,
12,
1227,
3342,
1004,
27387,
13,
565,
1216,
5947,
26621,
16,
13475,
503,
288,
7734,
348,
2579,
691,
6176,
691,
273,
3639,
14015,
17739,
1227,
3342,
13,
1004,
27387,
2934,
588,
8176,
691,
5621,
3639,
309,
261,
2625,
27387,
422,
446,
13,
5411,
604,
394,
10108,
2932,
2011,
1569,
8863,
7734,
309,
261,
12730,
691,
18,
588,
1305,
7675,
14963,
12,
691,
18,
3649,
13,
3639,
747,
6176,
691,
18,
588,
1305,
7675,
14963,
12,
691,
18,
25268,
3719,
5411,
604,
394,
13475,
503,
12,
5411,
315,
6434,
1567,
2985,
18,
315,
397,
6176,
691,
18,
588,
1305,
10663,
3639,
368,
14143,
1366,
635,
73,
3180,
326,
6176,
711,
2118,
19703,
18,
3639,
309,
261,
2211,
18,
588,
1119,
1435,
422,
446,
13,
288,
5411,
604,
394,
13475,
503,
2932,
6434,
6176,
919,
315,
397,
333,
18,
588,
1119,
10663,
10792,
289,
202,
26873,
3639,
309,
261,
2211,
18,
291,
2081,
1435,
597,
3639,
6176,
691,
18,
588,
1305,
7675,
14963,
5556,
12,
691,
18,
6486,
41,
13,
3639,
597,
333,
18,
588,
1119,
7675,
24805,
1435,
422,
512,
985,
7076,
67,
7998,
13,
288,
5411,
604,
394,
13475,
503,
2932,
6434,
6176,
919,
315,
397,
333,
18,
588,
1119,
10663,
3639,
289,
202,
636,
19,
1082,
7734,
309,
261,
1343,
2289,
18,
20600,
7735,
13,
5411,
10341,
2624,
18,
1330,
2289,
18,
1330,
1079,
12,
5411,
315,
12730,
18,
4661,
691,
315,
5411,
397,
315,
6176,
273,
315,
5411,
397,
333,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12413,
12,
1227,
3342,
1004,
27387,
13,
565,
1216,
5947,
26621,
16,
13475,
503,
288,
7734,
348,
2579,
691,
6176,
691,
273,
3639,
14015,
17739,
1227,
3342,
13,
1004,
27387,
2934,
588,
8176,
691,
5621,
3639,
309,
261,
2625,
27387,
422,
446,
13,
5411,
604,
394,
10108,
2932,
2011,
1569,
8863,
7734,
309,
261,
12730,
691,
18,
588,
1305,
7675,
14963,
12,
691,
18,
3649,
13,
3639,
747,
6176,
691,
18,
588,
1305,
7675,
14963,
12,
691,
18,
25268,
3719,
5411,
604,
394,
13475,
503,
12,
5411,
315,
6434,
1567,
2985,
18,
315,
397,
6176,
691,
18,
588,
1305,
10663,
3639,
368,
14143,
1366,
635,
73,
3180,
326,
6176,
711,
2118,
19703,
18,
3639,
309,
261,
2
] |
return new VariableInfo[] { new VariableInfo(id, classname, true, VariableInfo.AT_END) };
|
return new VariableInfo[] { new VariableInfo(id, classname, true, VariableInfo.AT_END) };
|
public VariableInfo[] getVariableInfo(TagData data) { String classname = data.getAttributeString("classname"); if( classname == null ) classname = "java.lang.Object"; String id = data.getAttributeString("id"); if( id == null ) id = data.getAttributeString("name"); return new VariableInfo[] { new VariableInfo(id, classname, true, VariableInfo.AT_END) }; }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/99f335ad4dfc53503a1890e981ff118c3c404811/UseAttributeTei.java/clean/src/share/org/apache/struts/taglib/tiles/UseAttributeTei.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7110,
966,
8526,
13522,
966,
12,
1805,
751,
501,
13,
288,
1377,
514,
7479,
273,
501,
18,
588,
1499,
780,
2932,
18340,
8863,
1377,
309,
12,
7479,
422,
446,
262,
3639,
7479,
273,
315,
6290,
18,
4936,
18,
921,
14432,
1377,
514,
612,
273,
501,
18,
588,
1499,
780,
2932,
350,
8863,
1377,
309,
12,
612,
422,
446,
262,
3639,
612,
273,
501,
18,
588,
1499,
780,
2932,
529,
8863,
202,
2463,
394,
7110,
966,
8526,
288,
202,
225,
394,
7110,
966,
12,
350,
16,
202,
10402,
7479,
16,
202,
10402,
638,
16,
202,
10402,
7110,
966,
18,
789,
67,
4415,
13,
202,
20451,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7110,
966,
8526,
13522,
966,
12,
1805,
751,
501,
13,
288,
1377,
514,
7479,
273,
501,
18,
588,
1499,
780,
2932,
18340,
8863,
1377,
309,
12,
7479,
422,
446,
262,
3639,
7479,
273,
315,
6290,
18,
4936,
18,
921,
14432,
1377,
514,
612,
273,
501,
18,
588,
1499,
780,
2932,
350,
8863,
1377,
309,
12,
612,
422,
446,
262,
3639,
612,
273,
501,
18,
588,
1499,
780,
2932,
529,
8863,
202,
2463,
394,
7110,
966,
8526,
288,
202,
225,
394,
7110,
966,
12,
350,
16,
202,
10402,
7479,
16,
202,
10402,
638,
16,
202,
10402,
7110,
966,
18,
789,
67,
4415,
13,
202,
20451,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
jobsToShow.remove(getRoots(elements, false));
|
public void remove(Object[] elements) { jobsToShow.remove(getRoots(elements, false)); progressViewer.setInput(this); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/86ecdca4c17babbdc41235d3ba6cf0f1e8baa9cf/ProgressViewerContentProvider.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressViewerContentProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
12,
921,
8526,
2186,
13,
288,
202,
202,
10088,
774,
5706,
18,
4479,
12,
588,
17540,
12,
6274,
16,
629,
10019,
202,
202,
8298,
18415,
18,
542,
1210,
12,
2211,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
12,
921,
8526,
2186,
13,
288,
202,
202,
10088,
774,
5706,
18,
4479,
12,
588,
17540,
12,
6274,
16,
629,
10019,
202,
202,
8298,
18415,
18,
542,
1210,
12,
2211,
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
] |
|
public final void lifetime_filter(MappingFilter filter)
|
public final MappingFilter lifetime_filter()
|
public final void lifetime_filter(MappingFilter filter) { lifetimeFilter_ = filter; }
|
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/30ce653ebfe41ea3d062a7d4cf131f5dff1e0ad5/AbstractProxy.java/buggy/src/org/jacorb/notification/servant/AbstractProxy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
9408,
1586,
12486,
67,
2188,
1435,
565,
288,
3639,
12486,
1586,
67,
273,
1034,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
9408,
1586,
12486,
67,
2188,
1435,
565,
288,
3639,
12486,
1586,
67,
273,
1034,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
result.interestingFiles.add(new File(getLogFilename()));
|
ResultFile resultFile = new ResultFile(ResultFile.FILE_TYPE_LOG, new File(getLogFilename()), parentJob.getName(), toString()); result.getResultFiles().add(resultFile);
|
public Result execute(Result result, int nr, Repository rep, Job parentJob) throws KettleException { LogWriter log = LogWriter.getInstance(); result.setEntryNr( nr ); LogWriter logwriter = log; Log4jFileAppender appender = null; int backupLogLevel = log.getLogLevel(); if (setLogfile) { try { appender = LogWriter.createFileAppender(getLogFilename(), true); } catch(KettleException e) { log.logError(toString(), "Unable to open file appender for file ["+getLogFilename()+"] : "+e.toString()); log.logError(toString(), Const.getStackTracker(e)); result.setNrErrors(1); result.setResult(false); return result; } log.addAppender(appender); log.setLogLevel(loglevel); } // Open the transformation... // Default directory for now... log.logBasic(toString(), "Opening transformation: ["+getTransname()+"] in directory ["+directory.getPath()+"]"); int iteration = 0; String args[] = arguments; Row resultRow = null; boolean first = true; List rows = result.getRows(); while( ( first && !execPerRow ) || ( execPerRow && rows!=null && iteration<rows.size() && result.getNrErrors()==0 ) ) { first=false; if (rows!=null) resultRow = (Row) rows.get(iteration); try { log.logDetailed(toString(), "Starting transformation...(file="+getFileName()+", name="+getName()+"), repinfo="+getDescription()); TransMeta transMeta = getTransMeta(rep); if (sendFiles) transMeta.setInputFiles(result.interestingFiles); if (parentJob.getJobMeta().isBatchIdPassed()) { transMeta.setJobBatchId(parentJob.getJobMeta().getBatchId()); } // Create the transformation from meta-data Trans trans = new Trans(logwriter, transMeta); // Set the result rows for the next one... trans.getTransMeta().setSourceRows(result.rows); // set the parent job on the transformation, variables are taken from here... trans.setParentJob(parentJob); // Pass along the kettle variables... LocalVariables localVariables = LocalVariables.getInstance(); localVariables.createKettleVariables(Thread.currentThread(), parentJob, false); if (execPerRow) // Execute for each input row { if (argFromPrevious) // Copy the input row to the (command line) arguments { args = null; if (resultRow!=null) { args = new String[resultRow.size()]; for (int i=0;i<resultRow.size();i++) { args[i] = resultRow.getValue(i).getString(); } } } else { // Just pass a single row ArrayList newList = new ArrayList(); newList.add(resultRow); trans.setSourceRows(newList); } } else { if (argFromPrevious) { // Only put the first Row on the arguments args = null; if (resultRow!=null) { args = new String[resultRow.size()]; for (int i=0;i<resultRow.size();i++) { args[i] = resultRow.getValue(i).toString(); } } } else { // Keep it as it was... trans.setSourceRows(result.rows); } } // Execute! if (!trans.execute(args)) { log.logError(toString(), "Unable to prepare for execution of the transformation"); result.setNrErrors(1); } else { while (!trans.isFinished() && !parentJob.isStopped()) { try { Thread.sleep(100);} catch(InterruptedException e) { } } if (parentJob.isStopped()) { trans.stopAll(); trans.waitUntilFinished(); trans.endProcessing("stop"); result.setNrErrors(1); } else { trans.endProcessing("end"); } Result newResult = trans.getResult(); result.clear(); result.add(newResult); // Set the result rows too... result.setRows(newResult.getRows()); result.interestingFiles=newResult.interestingFiles; if (setLogfile) { result.interestingFiles.add(new File(getLogFilename())); } } } catch(KettleException e) { log.logError(toString(), "Unable to open transformation: "+e.getMessage()); result.setNrErrors(1); } iteration++; } if (setLogfile) { if (appender!=null) { log.removeAppender(appender); appender.close(); } log.setLogLevel(backupLogLevel); } if (result.getNrErrors()==0) { result.setResult( true ); } else { result.setResult( false ); } return result; }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/1370e1438801a2e4d5a52a17008a616a9b38dd54/JobEntryTrans.java/buggy/src/be/ibridge/kettle/job/entry/trans/JobEntryTrans.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3438,
1836,
12,
1253,
563,
16,
509,
9884,
16,
6281,
2071,
16,
3956,
982,
2278,
13,
1216,
1475,
278,
5929,
503,
202,
95,
202,
202,
1343,
2289,
613,
4202,
273,
1827,
2289,
18,
588,
1442,
5621,
202,
202,
2088,
18,
542,
1622,
18726,
12,
9884,
11272,
202,
202,
1343,
2289,
613,
6299,
273,
613,
31,
3639,
1827,
24,
78,
812,
17302,
17405,
273,
446,
31,
3639,
509,
5114,
21806,
273,
613,
18,
588,
21806,
5621,
3639,
309,
261,
542,
1343,
768,
13,
3639,
288,
5411,
775,
5411,
288,
7734,
17405,
273,
1827,
2289,
18,
2640,
812,
17302,
12,
588,
1343,
5359,
9334,
638,
1769,
5411,
289,
5411,
1044,
12,
47,
278,
5929,
503,
425,
13,
5411,
288,
7734,
613,
18,
1330,
668,
12,
10492,
9334,
315,
3370,
358,
1696,
585,
17405,
364,
585,
8247,
15,
588,
1343,
5359,
1435,
9078,
65,
294,
13773,
73,
18,
10492,
10663,
7734,
613,
18,
1330,
668,
12,
10492,
9334,
9333,
18,
588,
2624,
8135,
12,
73,
10019,
7734,
563,
18,
542,
18726,
4229,
12,
21,
1769,
7734,
563,
18,
542,
1253,
12,
5743,
1769,
7734,
327,
563,
31,
5411,
289,
5411,
613,
18,
1289,
17302,
12,
6923,
264,
1769,
5411,
613,
18,
542,
21806,
12,
28189,
1769,
3639,
289,
9506,
202,
759,
3502,
326,
8620,
2777,
202,
202,
759,
2989,
1867,
364,
2037,
2777,
9506,
202,
1330,
18,
1330,
8252,
12,
10492,
9334,
315,
21378,
8620,
30,
8247,
15,
588,
1429,
529,
1435,
9078,
65,
316,
1867,
8247,
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,
3438,
1836,
12,
1253,
563,
16,
509,
9884,
16,
6281,
2071,
16,
3956,
982,
2278,
13,
1216,
1475,
278,
5929,
503,
202,
95,
202,
202,
1343,
2289,
613,
4202,
273,
1827,
2289,
18,
588,
1442,
5621,
202,
202,
2088,
18,
542,
1622,
18726,
12,
9884,
11272,
202,
202,
1343,
2289,
613,
6299,
273,
613,
31,
3639,
1827,
24,
78,
812,
17302,
17405,
273,
446,
31,
3639,
509,
5114,
21806,
273,
613,
18,
588,
21806,
5621,
3639,
309,
261,
542,
1343,
768,
13,
3639,
288,
5411,
775,
5411,
288,
7734,
17405,
273,
1827,
2289,
18,
2640,
812,
17302,
12,
588,
1343,
5359,
9334,
638,
1769,
5411,
289,
5411,
1044,
12,
47,
278,
5929,
503,
425,
13,
5411,
2
] |
subMonitor.done();
|
subMonitor2.done();
|
protected void commitWorkingCopy(IProgressMonitor monitor, Object element, CompilationUnitInfo info, boolean overwrite) throws CoreException { if (monitor == null) monitor= new NullProgressMonitor(); monitor.beginTask("", 100); //$NON-NLS-1$ try { IProgressMonitor subMonitor= getSubProgressMonitor(monitor, 50); try { synchronized (info.fCopy) { info.fCopy.reconcile(ICompilationUnit.NO_AST, false, null, subMonitor); } } catch (JavaModelException ex) { // Ignore: save anyway } finally { subMonitor.done(); } IDocument document= info.fTextFileBuffer.getDocument(); IResource resource= info.fCopy.getResource(); Assert.isTrue(resource instanceof IFile); if (!resource.exists()) { // underlying resource has been deleted, just recreate file, ignore the rest subMonitor= getSubProgressMonitor(monitor, 50); try { createFileFromDocument(subMonitor, (IFile) resource, document); } finally { subMonitor.done(); } return; } if (fSavePolicy != null) fSavePolicy.preSave(info.fCopy); try { subMonitor= getSubProgressMonitor(monitor, 50); fIsAboutToSave= true; info.fCopy.commitWorkingCopy(overwrite, subMonitor); } catch (CoreException x) { // inform about the failure fireElementStateChangeFailed(element); throw x; } catch (RuntimeException x) { // inform about the failure fireElementStateChangeFailed(element); throw x; } finally { fIsAboutToSave= false; subMonitor.done(); } // If here, the dirty state of the editor will change to "not dirty". // Thus, the state changing flag will be reset. if (info.fModel instanceof AbstractMarkerAnnotationModel) { AbstractMarkerAnnotationModel model= (AbstractMarkerAnnotationModel) info.fModel; model.updateMarkers(document); } if (fSavePolicy != null) { ICompilationUnit unit= fSavePolicy.postSave(info.fCopy); if (unit != null && info.fModel instanceof AbstractMarkerAnnotationModel) { IResource r= unit.getResource(); IMarker[] markers= r.findMarkers(IMarker.MARKER, true, IResource.DEPTH_ZERO); if (markers != null && markers.length > 0) { AbstractMarkerAnnotationModel model= (AbstractMarkerAnnotationModel) info.fModel; for (int i= 0; i < markers.length; i++) model.updateMarker(document, markers[i], null); } } } } finally { monitor.done(); } }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/10e26cf259ae5a6035f2ec3e36605b41e19c2263/CompilationUnitDocumentProvider.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3294,
14836,
2951,
12,
45,
5491,
7187,
6438,
16,
1033,
930,
16,
22416,
2802,
966,
1123,
16,
1250,
6156,
13,
1216,
30015,
288,
202,
202,
430,
261,
10259,
422,
446,
13,
1082,
202,
10259,
33,
394,
4112,
5491,
7187,
5621,
202,
202,
10259,
18,
10086,
2174,
2932,
3113,
2130,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
698,
288,
1082,
202,
45,
5491,
7187,
720,
7187,
33,
7040,
5491,
7187,
12,
10259,
16,
6437,
1769,
1082,
202,
698,
288,
9506,
202,
22043,
261,
1376,
18,
74,
2951,
13,
288,
6862,
202,
1376,
18,
74,
2951,
18,
266,
11504,
398,
12,
45,
19184,
2802,
18,
3417,
67,
9053,
16,
629,
16,
446,
16,
720,
7187,
1769,
9506,
202,
97,
1082,
202,
97,
1044,
261,
5852,
1488,
503,
431,
13,
288,
9506,
202,
759,
8049,
30,
1923,
13466,
1082,
202,
97,
3095,
288,
9506,
202,
1717,
7187,
18,
8734,
5621,
1082,
202,
97,
1082,
202,
734,
504,
650,
1668,
33,
1123,
18,
74,
1528,
812,
1892,
18,
588,
2519,
5621,
1082,
202,
45,
1420,
1058,
33,
1123,
18,
74,
2951,
18,
588,
1420,
5621,
1082,
202,
8213,
18,
291,
5510,
12,
3146,
1276,
467,
812,
1769,
1082,
202,
430,
16051,
3146,
18,
1808,
10756,
288,
9506,
202,
759,
6808,
1058,
711,
2118,
4282,
16,
2537,
23052,
585,
16,
2305,
326,
3127,
9506,
202,
1717,
7187,
33,
7040,
5491,
7187,
12,
10259,
16,
6437,
1769,
9506,
202,
698,
288,
6862,
202,
2640,
812,
1265,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3294,
14836,
2951,
12,
45,
5491,
7187,
6438,
16,
1033,
930,
16,
22416,
2802,
966,
1123,
16,
1250,
6156,
13,
1216,
30015,
288,
202,
202,
430,
261,
10259,
422,
446,
13,
1082,
202,
10259,
33,
394,
4112,
5491,
7187,
5621,
202,
202,
10259,
18,
10086,
2174,
2932,
3113,
2130,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
698,
288,
1082,
202,
45,
5491,
7187,
720,
7187,
33,
7040,
5491,
7187,
12,
10259,
16,
6437,
1769,
1082,
202,
698,
288,
9506,
202,
22043,
261,
1376,
18,
74,
2951,
13,
288,
6862,
202,
1376,
18,
74,
2951,
18,
266,
11504,
398,
12,
45,
19184,
2802,
18,
3417,
67,
9053,
16,
629,
16,
446,
16,
720,
2
] |
{ BoundedRangeModel oldModel = (BoundedRangeModel) e.getOldValue(); oldModel.removeChangeListener(changeListener); slider.getModel().addChangeListener(changeListener); calculateThumbLocation(); }
|
{ BoundedRangeModel oldModel = (BoundedRangeModel) e.getOldValue(); oldModel.removeChangeListener(changeListener); slider.getModel().addChangeListener(changeListener); calculateThumbLocation(); }
|
public void propertyChange(PropertyChangeEvent e) { // Check for orientation changes. if (e.getPropertyName().equals("orientation")) recalculateIfOrientationChanged(); else if (e.getPropertyName().equals("model")) { BoundedRangeModel oldModel = (BoundedRangeModel) e.getOldValue(); oldModel.removeChangeListener(changeListener); slider.getModel().addChangeListener(changeListener); calculateThumbLocation(); } // elif the componentOrientation changes (this is a bound property, // just undocumented) we change leftToRightCache. In Sun's // implementation, the LTR cache changes on a repaint. This is strange // since there is no need to do so. We could events here and // update the cache. // elif the border/insets change, we recalculateInsets. slider.repaint(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/BasicSliderUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1272,
3043,
12,
1396,
20930,
425,
13,
565,
288,
1377,
368,
2073,
364,
9820,
3478,
18,
1377,
309,
261,
73,
18,
588,
13073,
7675,
14963,
2932,
19235,
6,
3719,
202,
266,
11162,
2047,
14097,
5033,
5621,
1377,
469,
309,
261,
73,
18,
588,
13073,
7675,
14963,
2932,
2284,
6,
3719,
1377,
288,
3639,
605,
12002,
2655,
1488,
1592,
1488,
273,
261,
38,
12002,
2655,
1488,
13,
425,
18,
588,
7617,
620,
5621,
202,
1673,
1488,
18,
4479,
15744,
12,
3427,
2223,
1769,
202,
28372,
18,
588,
1488,
7675,
1289,
15744,
12,
3427,
2223,
1769,
202,
11162,
18922,
2735,
5621,
1377,
289,
1377,
368,
1327,
326,
1794,
14097,
3478,
261,
2211,
353,
279,
2489,
1272,
16,
1377,
368,
2537,
640,
5457,
329,
13,
732,
2549,
2002,
774,
4726,
1649,
18,
657,
31608,
1807,
4202,
368,
4471,
16,
326,
511,
4349,
1247,
3478,
603,
279,
24962,
18,
1220,
353,
609,
726,
1377,
368,
3241,
1915,
353,
1158,
1608,
358,
741,
1427,
18,
1660,
3377,
2641,
2674,
471,
4202,
368,
1089,
326,
1247,
18,
4202,
368,
1327,
326,
5795,
19,
267,
4424,
2549,
16,
732,
26657,
382,
4424,
18,
1377,
18442,
18,
14462,
1598,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1272,
3043,
12,
1396,
20930,
425,
13,
565,
288,
1377,
368,
2073,
364,
9820,
3478,
18,
1377,
309,
261,
73,
18,
588,
13073,
7675,
14963,
2932,
19235,
6,
3719,
202,
266,
11162,
2047,
14097,
5033,
5621,
1377,
469,
309,
261,
73,
18,
588,
13073,
7675,
14963,
2932,
2284,
6,
3719,
1377,
288,
3639,
605,
12002,
2655,
1488,
1592,
1488,
273,
261,
38,
12002,
2655,
1488,
13,
425,
18,
588,
7617,
620,
5621,
202,
1673,
1488,
18,
4479,
15744,
12,
3427,
2223,
1769,
202,
28372,
18,
588,
1488,
7675,
1289,
15744,
12,
3427,
2223,
1769,
202,
11162,
18922,
2735,
5621,
1377,
289,
1377,
368,
1327,
326,
1794,
14097,
3478,
261,
2211,
353,
279,
2489,
1272,
16,
1377,
2
] |
if (_faultData != null) { buf.append(", fault="); buf.append(_faultData); } buf.append('}'); return buf.toString(); }
|
public String toString() { StringBuffer buf= new StringBuffer("{ScopeFrame: o="); buf.append(oscope); buf.append(", id="); buf.append(scopeInstanceId); if (availableCompensations != null) { buf.append(", avComps="); buf.append(availableCompensations); } if (_faultData != null) { buf.append(", fault="); buf.append(_faultData); } buf.append('}'); return buf.toString(); }
|
45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/1183932ca4a81d65d22482f0b44fb17eebce0f37/ScopeFrame.java/buggy/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ScopeFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
565,
6674,
1681,
33,
394,
6674,
2932,
95,
3876,
3219,
30,
320,
1546,
1769,
565,
1681,
18,
6923,
12,
538,
71,
1306,
1769,
565,
1681,
18,
6923,
2932,
16,
612,
1546,
1769,
565,
1681,
18,
6923,
12,
4887,
15327,
1769,
565,
309,
261,
5699,
2945,
773,
1012,
480,
446,
13,
288,
1377,
1681,
18,
6923,
2932,
16,
1712,
799,
1121,
1546,
1769,
1377,
1681,
18,
6923,
12,
5699,
2945,
773,
1012,
1769,
565,
289,
565,
309,
261,
67,
643,
751,
480,
446,
13,
288,
1377,
1681,
18,
6923,
2932,
16,
12530,
1546,
1769,
1377,
1681,
18,
6923,
24899,
643,
751,
1769,
565,
289,
565,
1681,
18,
6923,
2668,
1713,
1769,
565,
327,
1681,
18,
10492,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
565,
6674,
1681,
33,
394,
6674,
2932,
95,
3876,
3219,
30,
320,
1546,
1769,
565,
1681,
18,
6923,
12,
538,
71,
1306,
1769,
565,
1681,
18,
6923,
2932,
16,
612,
1546,
1769,
565,
1681,
18,
6923,
12,
4887,
15327,
1769,
565,
309,
261,
5699,
2945,
773,
1012,
480,
446,
13,
288,
1377,
1681,
18,
6923,
2932,
16,
1712,
799,
1121,
1546,
1769,
1377,
1681,
18,
6923,
12,
5699,
2945,
773,
1012,
1769,
565,
289,
565,
309,
261,
67,
643,
751,
480,
446,
13,
288,
1377,
1681,
18,
6923,
2932,
16,
12530,
1546,
1769,
1377,
1681,
18,
6923,
24899,
643,
751,
1769,
565,
289,
565,
1681,
18,
6923,
2668,
1713,
1769,
565,
327,
1681,
2
] |
|
if (Display.getDefault() == null) return super.getDefaultMonitor(); else return new DefaultMonitor();
|
Display display; if(PlatformUI.isWorkbenchRunning()){ display = PlatformUI.getWorkbench().getDisplay(); if (display.getThread() == Thread.currentThread()) return new DefaultMonitor(); } return super.getDefaultMonitor();
|
public IProgressMonitor getDefaultMonitor() { //only need a default monitor for operations the UI thread if (Display.getDefault() == null) return super.getDefaultMonitor(); else return new DefaultMonitor(); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/7a0223655168069ac85576d327133e7fbdaa5a52/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
5491,
7187,
4829,
7187,
1435,
288,
202,
202,
759,
3700,
1608,
279,
805,
6438,
364,
5295,
326,
6484,
2650,
202,
202,
430,
261,
4236,
18,
588,
1868,
1435,
422,
446,
13,
1082,
202,
2463,
2240,
18,
588,
1868,
7187,
5621,
202,
202,
12107,
1082,
202,
2463,
394,
2989,
7187,
5621,
9506,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
482,
467,
5491,
7187,
4829,
7187,
1435,
288,
202,
202,
759,
3700,
1608,
279,
805,
6438,
364,
5295,
326,
6484,
2650,
202,
202,
430,
261,
4236,
18,
588,
1868,
1435,
422,
446,
13,
1082,
202,
2463,
2240,
18,
588,
1868,
7187,
5621,
202,
202,
12107,
1082,
202,
2463,
394,
2989,
7187,
5621,
9506,
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
] |
{ int[] colors = new int[rgba.length]; for (int i = 0; i < rgba.length; i++) colors[i] = rgba[i]; return colors; }
|
{ int[] colors = new int[rgba.length]; for (int i = 0; i < rgba.length; i++) colors[i] = rgba[i]; return colors; }
|
public int[] getRGBA() { int[] colors = new int[rgba.length]; for (int i = 0; i < rgba.length; i++) colors[i] = rgba[i]; return colors; }
|
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/de5b83ecccd54946c2125525e83cea40c4c4dd36/ChannelBindings.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/defs/ChannelBindings.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
8526,
4170,
5887,
37,
1435,
225,
202,
95,
202,
202,
474,
8526,
5740,
273,
394,
509,
63,
26198,
18,
2469,
15533,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
19465,
18,
2469,
31,
277,
27245,
1082,
202,
9724,
63,
77,
65,
273,
19465,
63,
77,
15533,
202,
202,
2463,
5740,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
8526,
4170,
5887,
37,
1435,
225,
202,
95,
202,
202,
474,
8526,
5740,
273,
394,
509,
63,
26198,
18,
2469,
15533,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
19465,
18,
2469,
31,
277,
27245,
1082,
202,
9724,
63,
77,
65,
273,
19465,
63,
77,
15533,
202,
202,
2463,
5740,
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
] |
return mapping.findForward("viewCurricularCourseInformation");
|
InfoCurriculum infoCurriculum = null; Object[] args = { infoExecutionDegreeCode, infoCurricularCourseCode }; try { infoCurriculum = (InfoCurriculum) ServiceUtils.executeService(userView, "ReadCurrentCurriculumByCurricularCourseCode", args); } catch (NonExistingServiceException e) { errors.add("chosenCurricularCourse", new ActionError( "error.coordinator.chosenCurricularCourse")); saveErrors(request, errors); } catch (FenixServiceException e) { if (e.getMessage().equals("nullCurricularCourse")) { errors.add("nullCode", new ActionError("error.coordinator.noCurricularCourse")); saveErrors(request, errors); } else { throw new FenixActionException(e); } } if (infoCurriculum == null) { errors.add("noCurriculum", new ActionError("error.coordinator.noCurriculum")); saveErrors(request, errors); } if (!errors.isEmpty()) { return mapping.findForward("degreeCurricularPlanManagement"); } sortCurricularCourses(request, infoCurriculum); return mapping.findForward("viewCurricularCourseInformation");
|
public ActionForward viewActiveCurricularCourseInformation(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixServiceException, FenixFilterException { HttpSession session = request.getSession(false); IUserView userView = getUserView(request); Integer infoCurricularCourseCode = getAndSetIntegerToRequest("infoCurricularCourseCode", request); Integer degreeCurricularPlanID = getAndSetIntegerToRequest("degreeCurricularPlanID", request); Integer infoExecutionDegreeCode = null; Object[] infoArgs = { degreeCurricularPlanID }; InfoExecutionDegree infoExecutionDegree = (InfoExecutionDegree) ServiceUtils .executeService(userView, "ReadCurrentExecutionDegreeByDegreeCurricularPlanID", infoArgs); infoExecutionDegreeCode = infoExecutionDegree.getIdInternal(); // check that this user can edit curricular course information Boolean canEdit = new Boolean(false); ActionErrors errors = new ActionErrors(); Object[] argsAuthorization = { infoExecutionDegreeCode, infoCurricularCourseCode, userView.getUtilizador() }; try { canEdit = (Boolean) ServiceUtils.executeService(null, "LoggedCoordinatorCanEdit", argsAuthorization); } catch (NonExistingServiceException e) { if (e.getMessage().equals("nullExecutionDegreeCode")) { errors.add("nullExecutionDegreeCode", new ActionError( "error.coordinator.noExecutionDegree")); saveErrors(request, errors); } else if (e.getMessage().equals("nullUsername")) { errors.add("nullUsername", new ActionError("error.coordinator.noUserView")); saveErrors(request, errors); } else if (e.getMessage().equals("nullCurricularCourseCode")) { errors.add("nullCurricularCourseCode", new ActionError( "error.coordinator.noCurricularCourse")); saveErrors(request, errors); } else { throw new FenixActionException(); } } catch (FenixServiceException e) { if (e.getMessage().equals("nullExecutionDegreeCode")) { errors.add("nullExecutionDegreeCode", new ActionError( "error.coordinator.noExecutionDegree")); saveErrors(request, errors); } else if (e.getMessage().equals("nullUsername")) { errors.add("nullUserView", new ActionError("error.coordinator.noUserView")); saveErrors(request, errors); } else if (e.getMessage().equals("nullCurricularCourseCode")) { errors.add("nullCurricularCourseCode", new ActionError( "error.coordinator.noCurricularCourse")); saveErrors(request, errors); } else { throw new FenixActionException(); } } if (!errors.isEmpty()) { return mapping.findForward("degreeCurricularPlanManagement"); } request.setAttribute("infoExecutionDegreeCode", infoExecutionDegreeCode); request.setAttribute("canEdit", String.valueOf(canEdit.booleanValue())); // get curricular course information InfoCurriculum infoCurriculum = null; Object[] args = { infoExecutionDegreeCode, infoCurricularCourseCode }; try { infoCurriculum = (InfoCurriculum) ServiceUtils.executeService(userView, "ReadCurrentCurriculumByCurricularCourseCode", args); } catch (NonExistingServiceException e) { errors.add("chosenCurricularCourse", new ActionError( "error.coordinator.chosenCurricularCourse")); saveErrors(request, errors); } catch (FenixServiceException e) { if (e.getMessage().equals("nullCurricularCourse")) { errors.add("nullCode", new ActionError("error.coordinator.noCurricularCourse")); saveErrors(request, errors); } else { throw new FenixActionException(e); } } if (infoCurriculum == null) { errors.add("noCurriculum", new ActionError("error.coordinator.noCurriculum")); saveErrors(request, errors); } if (!errors.isEmpty()) { return mapping.findForward("degreeCurricularPlanManagement"); } sortCurricularCourses(request, infoCurriculum); return mapping.findForward("viewCurricularCourseInformation"); }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/c5a62c2f5472dc0e8aecc07bdde634af957d104c/DegreeCurricularPlanManagementDispatchAction.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/coordinator/DegreeCurricularPlanManagementDispatchAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1476,
3896,
2408,
1512,
2490,
39,
3117,
5369,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
478,
275,
697,
15133,
16,
478,
275,
697,
1586,
503,
288,
3639,
26166,
1339,
273,
590,
18,
588,
2157,
12,
5743,
1769,
3639,
467,
1299,
1767,
729,
1767,
273,
4735,
1767,
12,
2293,
1769,
3639,
2144,
1123,
2408,
1512,
2490,
39,
3117,
1085,
273,
336,
13152,
4522,
774,
691,
2932,
1376,
2408,
1512,
2490,
39,
3117,
1085,
3113,
590,
1769,
3639,
2144,
10782,
2408,
1512,
2490,
5365,
734,
273,
336,
13152,
4522,
774,
691,
2932,
21361,
2408,
1512,
2490,
5365,
734,
3113,
590,
1769,
7734,
2144,
1123,
3210,
22885,
1085,
273,
446,
31,
3639,
1033,
8526,
1123,
2615,
273,
288,
10782,
2408,
1512,
2490,
5365,
734,
289,
31,
3196,
565,
3807,
3210,
22885,
1123,
3210,
22885,
273,
261,
966,
3210,
22885,
13,
1956,
1989,
202,
565,
263,
8837,
1179,
12,
1355,
1767,
16,
315,
1994,
3935,
3210,
22885,
858,
22885,
2408,
1512,
2490,
5365,
734,
3113,
1123,
2615,
1769,
3639,
1123,
3210,
22885,
1085,
273,
1123,
3210,
22885,
18,
26321,
3061,
5621,
7734,
368,
866,
716,
333,
729,
848,
3874,
662,
1512,
2490,
4362,
1779,
3639,
3411,
848,
4666,
273,
394,
3411,
12,
5743,
1769,
3639,
4382,
4229,
1334,
273,
394,
4382,
4229,
5621,
3639,
1033,
8526,
833,
6063,
273,
288,
1123,
3210,
22885,
1085,
16,
1123,
2408,
1512,
2490,
39,
3117,
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,
4382,
8514,
1476,
3896,
2408,
1512,
2490,
39,
3117,
5369,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
478,
275,
697,
15133,
16,
478,
275,
697,
1586,
503,
288,
3639,
26166,
1339,
273,
590,
18,
588,
2157,
12,
5743,
1769,
3639,
467,
1299,
1767,
729,
1767,
273,
4735,
1767,
12,
2293,
1769,
3639,
2144,
1123,
2408,
1512,
2490,
39,
3117,
1085,
273,
336,
13152,
4522,
774,
691,
2932,
1376,
2408,
1512,
2490,
39,
3117,
1085,
3113,
590,
1769,
3639,
2144,
10782,
2408,
1512,
2490,
5365,
734,
273,
336,
13152,
4522,
774,
691,
2932,
21361,
2408,
1512,
2490,
5365,
734,
3113,
590,
1769,
2
] |
if (tcode == AddressTypeCode) {
|
if (tcode == ReturnAddressTypeCode) {
|
private boolean scanBlocks (VM_NormalMethod method, // which method VM_BytecodeStream bytecodes, // the bytecodes boolean doDFS, // do a DFS or one-pass scan int pcs, // the target pcs, if doDFS byte[] ltypes, // the local types if doDFS byte[] stypes, // the stack types if doDFS int startpc, // start pc OSR_TypeStack S, // stack int[] stackHeights) { // the stack height if not doDFS int localsize = method.getLocalWords()-1; VM_Class declaringClass = method.getDeclaringClass(); bytecodes.reset(startpc); int tmpl = 0; boolean found = false; while (bytecodes.hasMoreBytecodes()) { int pc = bytecodes.index(); // get current pc if (visitedpc[pc] == 1) { return false; } else { visitedpc[pc] = 1; } if (doDFS && (pc == pcs)) { /* make a copy of stack frame and put into stypes. */ byte[] stack = S.snapshot(); System.arraycopy(stack, 0, stypes, 0, stack.length); return true; } if (!doDFS) { // record stack heights stackHeights[pc] = localsize + S.depth(); } /* let's continue */ int bcode = bytecodes.nextInstruction(); if (TRACE) { if (bcode <= JBC_jsr_w) VM.sysWriteln(pc + " : " + S.depth() +" : "+JBC_name[bcode]); else VM.sysWriteln(pc + " : " + S.depth() +" : impdep1"); } switch (bcode) { case JBC_nop: break; case JBC_aconst_null: S.push(ClassTypeCode); break; case JBC_iconst_m1: case JBC_iconst_0: case JBC_iconst_1: case JBC_iconst_2: case JBC_iconst_3: case JBC_iconst_4: case JBC_iconst_5: S.push(IntTypeCode); break; case JBC_lconst_0: case JBC_lconst_1: /* we should do the save order as opt compiler */ S.push(VoidTypeCode); S.push(LongTypeCode); break; case JBC_fconst_0: case JBC_fconst_1: case JBC_fconst_2: S.push(FloatTypeCode); break; case JBC_dconst_0: case JBC_dconst_1: S.push(VoidTypeCode); S.push(DoubleTypeCode); break; case JBC_bipush: bytecodes.getByteValue(); S.push(IntTypeCode); break; case JBC_sipush: bytecodes.getShortValue(); S.push(IntTypeCode); break; case JBC_ldc: case JBC_ldc_w: { int cpoolidx = (bcode == JBC_ldc) ? bytecodes.getConstantIndex():bytecodes.getWideConstantIndex(); byte tdesc = declaringClass.getLiteralDescription(cpoolidx); switch (tdesc) { case VM_Statics.INT_LITERAL: S.push(IntTypeCode); break; case VM_Statics.FLOAT_LITERAL: S.push(FloatTypeCode); break; case VM_Statics.STRING_LITERAL: S.push(ClassTypeCode); break; default: if (VM.TraceOnStackReplacement) VM.sysWriteln("ldc unknown type "+tdesc); if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); break; } // end of switch } break; case JBC_ldc2_w: { int cpoolidx = bytecodes.getWideConstantIndex(); byte tdesc = declaringClass.getLiteralDescription(cpoolidx); S.push(VoidTypeCode); switch (tdesc) { case VM_Statics.LONG_LITERAL: S.push(LongTypeCode); break; case VM_Statics.DOUBLE_LITERAL: S.push(DoubleTypeCode); break; default: if (VM.TraceOnStackReplacement) VM.sysWriteln("ldc2_w unknown type "+tdesc); if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); break; } // end of switch } break; case JBC_iload: bytecodes.getLocalNumber(); // skip local S.push (IntTypeCode); break; case JBC_lload: bytecodes.getLocalNumber(); // skip local S.push(VoidTypeCode); S.push(LongTypeCode); break; case JBC_fload: bytecodes.getLocalNumber(); // skip local S.push (FloatTypeCode); break; case JBC_dload: bytecodes.getLocalNumber(); S.push(VoidTypeCode); S.push(DoubleTypeCode); break; case JBC_aload: bytecodes.getLocalNumber(); S.push (ClassTypeCode); break; case JBC_iload_0: case JBC_iload_1: case JBC_iload_2: case JBC_iload_3: S.push (IntTypeCode); break; case JBC_lload_0: case JBC_lload_1: case JBC_lload_2: case JBC_lload_3: S.push(VoidTypeCode); S.push(LongTypeCode); break; case JBC_fload_0: case JBC_fload_1: case JBC_fload_2: case JBC_fload_3: S.push (FloatTypeCode); break; case JBC_dload_0: case JBC_dload_1: case JBC_dload_2: case JBC_dload_3: S.push(VoidTypeCode); S.push(DoubleTypeCode); break; case JBC_aload_0: case JBC_aload_1: case JBC_aload_2: case JBC_aload_3: S.push (ClassTypeCode); break; case JBC_iaload: case JBC_baload: case JBC_caload: case JBC_saload: S.pop (); S.pop (); S.push (IntTypeCode); break; case JBC_laload: S.pop(); S.pop(); S.push(VoidTypeCode); S.push(LongTypeCode); break; case JBC_faload: S.pop(); S.pop(); S.push (FloatTypeCode); break; case JBC_daload: S.pop(); S.pop(); S.push(VoidTypeCode); S.push(DoubleTypeCode); break; case JBC_aaload: S.pop(); S.pop(); S.push(ClassTypeCode); break; case JBC_istore: { S.pop(); int index = bytecodes.getLocalNumber(); if (doDFS) ltypes[index] = IntTypeCode; } break; case JBC_istore_0: case JBC_istore_1: case JBC_istore_2: case JBC_istore_3: { S.pop(); int index = bcode - JBC_istore_0; if (doDFS) ltypes[index] = IntTypeCode; } break; case JBC_lstore: { S.pop(); S.pop(); int index = bytecodes.getLocalNumber(); if (doDFS) { ltypes[index] = LongTypeCode; ltypes[index+1] = VoidTypeCode; } } break; case JBC_lstore_0: case JBC_lstore_1: case JBC_lstore_2: case JBC_lstore_3: { S.pop(); S.pop(); int index = bcode - JBC_lstore_0; if (doDFS) { ltypes[index] = LongTypeCode; ltypes[index+1] = VoidTypeCode; } } break; case JBC_fstore: { S.pop(); int index = bytecodes.getLocalNumber(); if (doDFS) ltypes[index] = FloatTypeCode; } break; case JBC_fstore_0: case JBC_fstore_1: case JBC_fstore_2: case JBC_fstore_3: { S.pop(); int index = bcode - JBC_fstore_0; if (doDFS) ltypes[index] = FloatTypeCode; } break; case JBC_dstore: { S.pop(); S.pop(); int index = bytecodes.getLocalNumber(); if (doDFS) { ltypes[index] = DoubleTypeCode; ltypes[index+1] = VoidTypeCode; } } break; case JBC_dstore_0: case JBC_dstore_1: case JBC_dstore_2: case JBC_dstore_3: { S.pop(); S.pop(); int index = bcode - JBC_dstore_0; if (doDFS) { ltypes[index] = DoubleTypeCode; ltypes[index+1] = VoidTypeCode; } } break; case JBC_astore: { // caution: astore may save return address type int index = bytecodes.getLocalNumber(); byte tcode = S.pop(); if (doDFS) ltypes[index] = tcode; // for ret address. if (tcode == AddressTypeCode) { retaddr[index] = addr; addr = -1; } } break; case JBC_astore_0: case JBC_astore_1: case JBC_astore_2: case JBC_astore_3: { // caution: astore may save return address type int index = bcode - JBC_astore_0; byte tcode = S.pop(); if (doDFS) ltypes[index] = tcode; // for ret address. if (tcode == AddressTypeCode) { retaddr[index] = addr; addr = -1; } } break; case JBC_iastore: case JBC_bastore: case JBC_castore: case JBC_sastore: S.pop(3); break; case JBC_lastore: S.pop(4); break; case JBC_fastore: S.pop(3); break; case JBC_dastore: S.pop(4); break; case JBC_aastore: S.pop(3); break; case JBC_pop: S.pop(); break; case JBC_pop2: S.pop(2); break; case JBC_dup: { byte v1 = S.peek(); S.push(v1); } break; case JBC_dup_x1: { byte v1 = S.peek(); S.pop(); byte v2 = S.peek(); S.pop(); S.push(v1); S.push(v2); S.push(v1); } break; case JBC_dup_x2: { byte v1 = S.peek(); S.pop(); byte v2 = S.peek(); S.pop(); byte v3 = S.peek(); S.pop(); S.push(v1); S.push(v3); S.push(v2); S.push(v1); } break; case JBC_dup2: { byte v1 = S.peek(); S.pop(); byte v2 = S.peek(); S.push(v1); S.push(v2); S.push(v1); } break; case JBC_dup2_x1: { byte v1 = S.peek(); S.pop(); byte v2 = S.peek(); S.pop(); byte v3 = S.peek(); S.pop(); S.push(v2); S.push(v1); S.push(v3); S.push(v2); S.push(v1); } break; case JBC_dup2_x2: { byte v1 = S.peek(); S.pop(); byte v2 = S.peek(); S.pop(); byte v3 = S.peek(); S.pop(); byte v4 = S.peek(); S.pop(); S.push(v2); S.push(v1); S.push(v4); S.push(v3); S.push(v2); S.push(v1); } break; case JBC_swap: { byte v1 = S.peek(); S.pop(); byte v2 = S.peek(); S.pop(); S.push(v1); S.push(v2); } break; case JBC_iadd: case JBC_isub: case JBC_imul: case JBC_idiv: case JBC_irem: case JBC_iand: case JBC_ior: case JBC_ixor: case JBC_ishl: case JBC_ishr: case JBC_iushr: S.pop(); break; case JBC_ladd: case JBC_lsub: case JBC_lmul: case JBC_ldiv: case JBC_lrem: case JBC_land: case JBC_lor: case JBC_lxor: S.pop(2); break; case JBC_lshl: case JBC_lshr: case JBC_lushr: S.pop(); break; case JBC_fadd: case JBC_fsub: case JBC_fmul: case JBC_fdiv: case JBC_frem: S.pop(); break; case JBC_dadd: case JBC_dsub: case JBC_dmul: case JBC_ddiv: case JBC_drem: S.pop(2); break; case JBC_ineg: case JBC_lneg: case JBC_fneg: case JBC_dneg: break; case JBC_iinc:{ int index = bytecodes.getLocalNumber(); int value = bytecodes.getIncrement(); if (doDFS) ltypes[index] = IntTypeCode; } break; case JBC_i2l: S.pop(); S.push(VoidTypeCode); S.push(LongTypeCode); break; case JBC_i2f: S.pop(); S.push(FloatTypeCode); break; case JBC_i2d: S.pop(); S.push(VoidTypeCode); S.push(DoubleTypeCode); break; case JBC_l2i: S.pop(2); S.push(IntTypeCode); break; case JBC_l2f: S.pop(2); S.push(FloatTypeCode); break; case JBC_l2d: S.pop(2); S.push(VoidTypeCode); S.push(DoubleTypeCode); break; case JBC_f2i: S.pop(); S.push(IntTypeCode); break; case JBC_f2l: S.pop(); S.push(VoidTypeCode); S.push(LongTypeCode); break; case JBC_f2d: S.pop(); S.push(VoidTypeCode); S.push(DoubleTypeCode); break; case JBC_d2i: S.pop(2); S.push(IntTypeCode); break; case JBC_d2l: S.pop(2); S.push(VoidTypeCode); S.push(LongTypeCode); break; case JBC_d2f: S.pop(2); S.push(FloatTypeCode); break; case JBC_int2byte: case JBC_int2char: case JBC_int2short: break; case JBC_lcmp: S.pop(4); S.push(IntTypeCode); break; case JBC_fcmpl: case JBC_fcmpg: S.pop(2); S.push(IntTypeCode); break; case JBC_dcmpl: case JBC_dcmpg: S.pop(4); S.push(IntTypeCode); break; case JBC_ifeq: case JBC_ifne: case JBC_iflt: case JBC_ifge: case JBC_ifgt: case JBC_ifle: case JBC_ifnull: case JBC_ifnonnull: { S.pop(); // flowthrough first int nextpc = pc + 3; int target = pc + bytecodes.getBranchOffset(); if (doDFS) { // make a copy of ltypes, stypes to pass in byte[] newltypes = new byte[ltypes.length]; byte[] newstypes = new byte[stypes.length]; System.arraycopy(ltypes, 0, newltypes, 0, ltypes.length); System.arraycopy(stypes, 0, newstypes, 0, stypes.length); found = scanBlocks(method, bytecodes, true, pcs, newltypes, newstypes, nextpc, new OSR_TypeStack(S), null); if (found) { // copy back the ltypes and stypes System.arraycopy(newltypes, 0, ltypes, 0, ltypes.length); System.arraycopy(newstypes, 0, stypes, 0, stypes.length); return true; } } else { found = scanBlocks(method, bytecodes, false, -1, null, null, nextpc, new OSR_TypeStack(S), stackHeights); } bytecodes.reset(target); } break; case JBC_if_icmpeq: case JBC_if_icmpne: case JBC_if_icmplt: case JBC_if_icmpge: case JBC_if_icmpgt: case JBC_if_icmple: case JBC_if_acmpeq: case JBC_if_acmpne: { S.pop(2); // flowthrough first int nextpc = pc + 3; int target = pc + bytecodes.getBranchOffset(); if (doDFS) { // make a copy of ltypes, stypes to pass in byte[] newltypes = new byte[ltypes.length]; byte[] newstypes = new byte[stypes.length]; System.arraycopy(ltypes, 0, newltypes, 0, ltypes.length); System.arraycopy(stypes, 0, newstypes, 0, stypes.length); found = scanBlocks(method, bytecodes, true, pcs, newltypes, newstypes, nextpc, new OSR_TypeStack(S), null); if (found) { // copy back the ltypes and stypes System.arraycopy(newltypes, 0, ltypes, 0, ltypes.length); System.arraycopy(newstypes, 0, stypes, 0, stypes.length); return true; } } else { found = scanBlocks(method, bytecodes, false, -1, null, null, nextpc, new OSR_TypeStack(S), stackHeights); } bytecodes.reset(target); } break; case JBC_goto: { int offset = bytecodes.getBranchOffset(); if (!ignoreGotos) { bytecodes.reset(pc + offset); } } break; case JBC_goto_w: { int offset = bytecodes.getWideBranchOffset(); if (!ignoreGotos) { bytecodes.reset(pc + offset); } } break; case JBC_jsr: case JBC_jsr_w: { // flow through firs int nextpc = pc + ((bcode == JBC_jsr)?3:5); int target = pc + ((bcode == JBC_jsr)?bytecodes.getBranchOffset(): bytecodes.getWideBranchOffset()); if (doDFS) { // make a copy of ltypes, stypes to pass in byte[] newltypes = new byte[ltypes.length]; byte[] newstypes = new byte[stypes.length]; System.arraycopy(ltypes, 0, newltypes, 0, ltypes.length); System.arraycopy(stypes, 0, newstypes, 0, stypes.length); found = scanBlocks(method, bytecodes, true, pcs, newltypes, newstypes, nextpc, new OSR_TypeStack(S), null); if (found) { // copy back the ltypes and stypes System.arraycopy(newltypes, 0, ltypes, 0, ltypes.length); System.arraycopy(newstypes, 0, stypes, 0, stypes.length); return true; } } else { found = scanBlocks(method, bytecodes, false, -1, null, null, nextpc, new OSR_TypeStack(S), stackHeights); } // branch to jsr subroutine // remember return address for ret. addr = pc + ((bcode == JBC_jsr)?3:5); S.push(AddressTypeCode); bytecodes.reset(target); } break; case JBC_ret: { // the OPT compiler set local to null after _ret instruction, // then we should clean it here also, otherwise it will // throw a null pointer exception. // HOWEVER, it is not part of JVM spec. int index = bytecodes.getLocalNumber(); if (doDFS) ltypes[index] = VoidTypeCode; /* the ret address may be saved by a PSEUDO_LoadAddrConstant */ if (retaddr[index] != -1) { bytecodes.reset(retaddr[index]); retaddr[index] = -1; } else { // now we hit ret, return out return false; } } break; case JBC_tableswitch: { S.pop(); bytecodes.alignSwitch(); int defaultval = bytecodes.getDefaultSwitchOffset(); int low = bytecodes.getLowSwitchValue(); int high = bytecodes.getHighSwitchValue(); // write down a list of targets int npairs = high-low+1; int[] offsets = new int[npairs]; for (int i=0; i<npairs; i++) { offsets [i] = bytecodes.getTableSwitchOffset(i); } for (int i=0; i<npairs; i++) { int tgtpc = pc + offsets[i]; if (doDFS) { // make a copy of ltypes, stypes to pass in byte[] newltypes = new byte[ltypes.length]; byte[] newstypes = new byte[stypes.length]; System.arraycopy(ltypes, 0, newltypes, 0, ltypes.length); System.arraycopy(stypes, 0, newstypes, 0, stypes.length); found = scanBlocks(method, bytecodes, true, pcs, newltypes, newstypes, tgtpc, new OSR_TypeStack(S), null); if (found) { // copy back the ltypes and stypes System.arraycopy(newltypes, 0, ltypes, 0, ltypes.length); System.arraycopy(newstypes, 0, stypes, 0, stypes.length); return true; } } else { found = scanBlocks(method, bytecodes, false, -1, null, null, tgtpc, new OSR_TypeStack(S), stackHeights); } } // default { int tgtpc = pc + defaultval; if (doDFS) { // make a copy of ltypes, stypes to pass in byte[] newltypes = new byte[ltypes.length]; byte[] newstypes = new byte[stypes.length]; System.arraycopy(ltypes, 0, newltypes, 0, ltypes.length); System.arraycopy(stypes, 0, newstypes, 0, stypes.length); found = scanBlocks(method, bytecodes, true, pcs, newltypes, newstypes, tgtpc, new OSR_TypeStack(S), null); if (found) { // copy back the ltypes and stypes System.arraycopy(newltypes, 0, ltypes, 0, ltypes.length); System.arraycopy(newstypes, 0, stypes, 0, stypes.length); } } else { found = scanBlocks(method, bytecodes, false, -1, null, null, tgtpc, new OSR_TypeStack(S), stackHeights); } return found; } } case JBC_lookupswitch: { S.pop(); // pop the key bytecodes.alignSwitch(); int defaultval = bytecodes.getDefaultSwitchOffset(); int npairs = bytecodes.getSwitchLength(); int[] matches = new int[npairs]; int[] offsets = new int[npairs]; for (int i=0; i<npairs; i++) { matches[i] = bytecodes.getLookupSwitchValue(i); offsets[i] = bytecodes.getLookupSwitchOffset(i); } for (int i=0; i<npairs; i++) { int match = matches[i]; int offset = offsets[i]; int tgtpc = pc + offset; if (doDFS) { // make a copy of ltypes, stypes to pass in byte[] newltypes = new byte[ltypes.length]; byte[] newstypes = new byte[stypes.length]; System.arraycopy(ltypes, 0, newltypes, 0, ltypes.length); System.arraycopy(stypes, 0, newstypes, 0, stypes.length); found = scanBlocks(method, bytecodes, true, pcs, newltypes, newstypes, tgtpc, new OSR_TypeStack(S), null); if (found) { // copy back the ltypes and stypes System.arraycopy(newltypes, 0, ltypes, 0, ltypes.length); System.arraycopy(newstypes, 0, stypes, 0, stypes.length); return true; } } else { found = scanBlocks(method, bytecodes, false, -1, null, null, tgtpc, new OSR_TypeStack(S), stackHeights); } } // default { int tgtpc = pc + defaultval; if (doDFS) { // make a copy of ltypes, stypes to pass in byte[] newltypes = new byte[ltypes.length]; byte[] newstypes = new byte[stypes.length]; System.arraycopy(ltypes, 0, newltypes, 0, ltypes.length); System.arraycopy(stypes, 0, newstypes, 0, stypes.length); found = scanBlocks(method, bytecodes, true, pcs, newltypes, newstypes, tgtpc, new OSR_TypeStack(S), null); if (found) { // copy back the ltypes and stypes System.arraycopy(newltypes, 0, ltypes, 0, ltypes.length); System.arraycopy(newstypes, 0, stypes, 0, stypes.length); } } else { found = scanBlocks(method, bytecodes, false, -1, null, null, tgtpc, new OSR_TypeStack(S), stackHeights); } } } return found; case JBC_ireturn: S.pop(); return false; case JBC_lreturn: S.pop(2); return false; case JBC_freturn: S.pop(); return false; case JBC_dreturn: S.pop(2); return false; case JBC_areturn: S.pop(); return false; case JBC_return: return false; case JBC_getfield: S.pop(); case JBC_getstatic: { VM_FieldReference fieldRef = bytecodes.getFieldReference(); VM_TypeReference ftype = fieldRef.getFieldContentsType(); byte tcode = ftype.getName().parseForTypeCode(); if ((tcode == LongTypeCode) || (tcode == DoubleTypeCode) ) { S.push(VoidTypeCode); } S.push(tcode); } break; case JBC_putstatic: { VM_FieldReference fieldRef = bytecodes.getFieldReference(); VM_TypeReference ftype = fieldRef.getFieldContentsType(); byte tcode = ftype.getName().parseForTypeCode(); if ( (tcode == LongTypeCode) || (tcode == DoubleTypeCode) ) S.pop(2); else S.pop(); } break; case JBC_putfield: { VM_FieldReference fieldRef = bytecodes.getFieldReference(); VM_TypeReference ftype = fieldRef.getFieldContentsType(); byte tcode = ftype.getName().parseForTypeCode(); if ( (tcode == LongTypeCode) || (tcode == DoubleTypeCode) ) S.pop(2); else S.pop(); } S.pop(); break; case JBC_invokevirtual: case JBC_invokespecial: case JBC_invokestatic: case JBC_invokeinterface: { VM_MethodReference callee = bytecodes.getMethodReference(); int psize = callee.getParameterWords(); S.pop(psize); if (bcode != JBC_invokestatic) { S.pop(); // pop the object reference } VM_TypeReference rtype = callee.getReturnType(); byte tcode = rtype.getName().parseForTypeCode(); if (tcode == VoidTypeCode) { // nothing to do with void return type } else { if ( (tcode == LongTypeCode) || (tcode == DoubleTypeCode) ) { S.push(VoidTypeCode); } S.push(tcode); } if (bcode == JBC_invokeinterface) { bytecodes.alignInvokeInterface(); } } break; case JBC_xxxunusedxxx: break; case JBC_new: bytecodes.getTypeReference(); // skip cpi of type S.push(ClassTypeCode); break; case JBC_newarray: S.pop(); S.push(ArrayTypeCode); bytecodes.getArrayElementType(); // skip cpi of element type break; case JBC_anewarray: S.pop(); S.push(ArrayTypeCode); bytecodes.getTypeReference(); // skip cpi of reference type break; case JBC_arraylength: S.pop(); S.push(IntTypeCode); break; case JBC_athrow: S.clear(); S.push(ClassTypeCode); return false; case JBC_checkcast: bytecodes.getTypeReference(); // skip cpi of reference type break; case JBC_instanceof: S.pop(); S.push(IntTypeCode); bytecodes.getTypeReference(); // skip cpi of reference type break; case JBC_monitorenter: case JBC_monitorexit: S.pop(); break; case JBC_wide: { int widecode = bytecodes.getWideOpcode(); int index = bytecodes.getWideLocalNumber(); switch (widecode) { case JBC_iload: S.push(IntTypeCode); break; case JBC_lload: S.push(LongTypeCode); break; case JBC_fload: S.push(FloatTypeCode); break; case JBC_dload: S.push(DoubleTypeCode); break; case JBC_aload: S.push(ClassTypeCode); break; case JBC_istore: S.pop(); if (doDFS) ltypes[index] = IntTypeCode; break; case JBC_lstore: S.pop(); if (doDFS) ltypes[index] = LongTypeCode; break; case JBC_fstore: S.pop(); if (doDFS) ltypes[index] = FloatTypeCode; break; case JBC_dstore: S.pop(); if (doDFS) ltypes[index] = DoubleTypeCode; break; case JBC_astore: { byte tcode = S.pop(); if (doDFS) ltypes[index] = tcode; // for ret address. if (tcode == AddressTypeCode) { retaddr[index] = addr; addr = -1; } } break; case JBC_iinc: { int value = bytecodes.getWideIncrement(); // skip increment if (doDFS) ltypes[index] = IntTypeCode; } break; case JBC_ret: if (doDFS) ltypes[index] = VoidTypeCode; if (retaddr[index] != -1) { bytecodes.reset(retaddr[index]); retaddr[index] = -1; } else { // now we hit ret, return out return false; } break; default: if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); break; } break; } case JBC_multianewarray: { bytecodes.getTypeReference(); // skip type reference int dims = bytecodes.getArrayDimension(); S.pop(dims); S.push(ArrayTypeCode); } break; case JBC_impdep1: { int pseudo_opcode = bytecodes.nextPseudoInstruction(); switch (pseudo_opcode) { case PSEUDO_LoadIntConst: bytecodes.readIntConst(); // skip value S.push(IntTypeCode); break; case PSEUDO_LoadLongConst: bytecodes.readLongConst(); // skip value S.push(VoidTypeCode); S.push(LongTypeCode); break; case PSEUDO_LoadFloatConst: bytecodes.readIntConst(); // skip value S.push(FloatTypeCode); break; case PSEUDO_LoadDoubleConst: bytecodes.readLongConst(); // skip value S.push(VoidTypeCode); S.push(DoubleTypeCode); break; case PSEUDO_LoadAddrConst: // remember the address for ret. addr = bytecodes.readIntConst(); // get address S.push(AddressTypeCode); break; case PSEUDO_InvokeStatic: { int mid = bytecodes.readIntConst(); // get METHIDX VM_Method callee = null; switch (mid) { case GETREFAT: callee = VM_Entrypoints.osrGetRefAtMethod; break; case CLEANREFS: callee = VM_Entrypoints.osrCleanRefsMethod; break; default: if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); break; } int psize = callee.getParameterWords(); S.pop(psize); VM_TypeReference rtype = callee.getReturnType(); byte tcode = rtype.getName().parseForTypeCode(); if (tcode == VoidTypeCode) { // nothing to do with void return type } else { if ( (tcode == LongTypeCode) || (tcode == DoubleTypeCode) ) { S.push(VoidTypeCode); } S.push(tcode); } break; }/* case PSEUDO_CheckCast: bytecodes.readIntConst(); // skip type id break;*/ case PSEUDO_InvokeCompiledMethod: int cmid = bytecodes.readIntConst(); // cmid bytecodes.readIntConst(); // skip bcindex VM_Method callee = VM_CompiledMethods.getCompiledMethod(cmid).getMethod(); int psize = callee.getParameterWords(); S.pop(psize); if (!callee.isStatic()) S.pop(); // pop receiver VM_TypeReference rtype = callee.getReturnType(); byte tcode = rtype.getName().parseForTypeCode(); if (tcode == VoidTypeCode) { // nothing to do with void return type } else { if ( (tcode == LongTypeCode) || (tcode == DoubleTypeCode) ) { S.push(VoidTypeCode); } S.push(tcode); } break; case PSEUDO_ParamInitEnd: break; default: if (VM.VerifyAssertions) { VM.sysWrite(" Error, no such pseudo code : " +pseudo_opcode +"\n"); VM._assert(VM.NOT_REACHED); } return false; } break; } default: VM.sysWrite("Unknown bytecode : "+bcode+"\n"); return false; } } /* did not found the PC. */ return false; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/5a52d97607a6c66ba42db666fc0f8b7bbcc685b9/OSR_BytecodeTraverser.java/clean/rvm/src/vm/adaptive/onStackReplacement/executionState/OSR_BytecodeTraverser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
4135,
6450,
261,
7397,
67,
5506,
1305,
707,
16,
565,
368,
1492,
707,
17311,
8251,
67,
858,
16651,
1228,
635,
14537,
1145,
16,
540,
368,
326,
635,
14537,
1145,
17311,
1250,
741,
31999,
16,
4202,
368,
741,
279,
23872,
578,
1245,
17,
5466,
4135,
17311,
509,
31353,
16,
2398,
368,
326,
1018,
31353,
16,
309,
741,
31999,
17311,
1160,
8526,
328,
2352,
16,
4202,
368,
326,
1191,
1953,
309,
741,
31999,
17311,
1160,
8526,
15453,
16,
4202,
368,
326,
2110,
1953,
309,
741,
31999,
17311,
509,
787,
2436,
16,
540,
368,
787,
6125,
17311,
5932,
54,
67,
559,
2624,
348,
16,
377,
368,
2110,
1171,
9079,
509,
8526,
2110,
2686,
87,
13,
288,
368,
326,
2110,
2072,
309,
486,
741,
31999,
565,
509,
1191,
1467,
273,
707,
18,
588,
2042,
7363,
1435,
17,
21,
31,
565,
8251,
67,
797,
3496,
14682,
273,
707,
18,
588,
3456,
14682,
5621,
565,
635,
14537,
1145,
18,
6208,
12,
1937,
2436,
1769,
3639,
509,
10720,
273,
374,
31,
565,
1250,
1392,
273,
629,
31,
565,
1323,
261,
1637,
14537,
1145,
18,
5332,
7417,
858,
14537,
1145,
10756,
288,
1377,
509,
6125,
273,
635,
14537,
1145,
18,
1615,
5621,
368,
336,
783,
6125,
1377,
309,
261,
30129,
2436,
63,
2436,
65,
422,
404,
13,
288,
3639,
327,
629,
31,
1377,
289,
469,
288,
3639,
9711,
2436,
63,
2436,
65,
273,
404,
31,
1377,
289,
1377,
309,
261,
2896,
31999,
597,
261,
2436,
422,
31353,
3719,
288,
3639,
1748,
1221,
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,
1250,
4135,
6450,
261,
7397,
67,
5506,
1305,
707,
16,
565,
368,
1492,
707,
17311,
8251,
67,
858,
16651,
1228,
635,
14537,
1145,
16,
540,
368,
326,
635,
14537,
1145,
17311,
1250,
741,
31999,
16,
4202,
368,
741,
279,
23872,
578,
1245,
17,
5466,
4135,
17311,
509,
31353,
16,
2398,
368,
326,
1018,
31353,
16,
309,
741,
31999,
17311,
1160,
8526,
328,
2352,
16,
4202,
368,
326,
1191,
1953,
309,
741,
31999,
17311,
1160,
8526,
15453,
16,
4202,
368,
326,
2110,
1953,
309,
741,
31999,
17311,
509,
787,
2436,
16,
540,
368,
787,
6125,
17311,
5932,
54,
67,
559,
2624,
348,
16,
377,
368,
2110,
1171,
9079,
509,
8526,
2110,
2686,
87,
13,
288,
368,
326,
2110,
2
] |
timer.pause(); dinfo.setPause(true); timer_new_piece.pause(); ((MoveBoard) db).setCheckMove(false); }
|
timer.pause(); dinfo.setPause(true); timer_new_piece.pause(); ((MoveBoard) db).setCheckMove(false); }
|
public void pause() { timer.pause(); dinfo.setPause(true); timer_new_piece.pause(); ((MoveBoard) db).setCheckMove(false); }
|
12674 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12674/582883286af99e95ba63ad2c7c8f7ea0fc04e5e0/Game.java/buggy/jcubitainer/org/jcubitainer/manager/Game.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
11722,
1435,
288,
202,
202,
12542,
18,
19476,
5621,
202,
202,
72,
1376,
18,
542,
19205,
12,
3767,
1769,
202,
202,
12542,
67,
2704,
67,
30100,
18,
19476,
5621,
202,
202,
12443,
7607,
22233,
13,
1319,
2934,
542,
1564,
7607,
12,
5743,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
482,
918,
11722,
1435,
288,
202,
202,
12542,
18,
19476,
5621,
202,
202,
72,
1376,
18,
542,
19205,
12,
3767,
1769,
202,
202,
12542,
67,
2704,
67,
30100,
18,
19476,
5621,
202,
202,
12443,
7607,
22233,
13,
1319,
2934,
542,
1564,
7607,
12,
5743,
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
] |
if (args.length <= 2) {
|
if (args.length < 2) {
|
public static void main(String args[]) { if (args.length <= 2) { usage(); return; } for (int i = 0; i < args.length; i += 2) { String dir = args[i]; try { int basePortNum = Integer.parseInt(args[i+1]); buildConfig(dir, basePortNum); } catch (NumberFormatException nfe) { nfe.printStackTrace(); } } buildBaseEnv(); buildStartupScript(args); }
|
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/591be4376310563d4fdc495103aea601ec644aa9/MultiRouterBuilder.java/buggy/router/java/src/net/i2p/router/MultiRouterBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
3639,
309,
261,
1968,
18,
2469,
411,
576,
13,
288,
5411,
4084,
5621,
5411,
327,
31,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
1011,
576,
13,
288,
5411,
514,
1577,
273,
833,
63,
77,
15533,
5411,
775,
288,
7734,
509,
1026,
2617,
2578,
273,
2144,
18,
2670,
1702,
12,
1968,
63,
77,
15,
21,
19226,
7734,
1361,
809,
12,
1214,
16,
1026,
2617,
2578,
1769,
5411,
289,
1044,
261,
1854,
9291,
25386,
13,
288,
7734,
25386,
18,
1188,
6332,
5621,
5411,
289,
3639,
289,
3639,
1361,
2171,
3491,
5621,
3639,
1361,
22178,
3651,
12,
1968,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
3639,
309,
261,
1968,
18,
2469,
411,
576,
13,
288,
5411,
4084,
5621,
5411,
327,
31,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
1011,
576,
13,
288,
5411,
514,
1577,
273,
833,
63,
77,
15533,
5411,
775,
288,
7734,
509,
1026,
2617,
2578,
273,
2144,
18,
2670,
1702,
12,
1968,
63,
77,
15,
21,
19226,
7734,
1361,
809,
12,
1214,
16,
1026,
2617,
2578,
1769,
5411,
289,
1044,
261,
1854,
9291,
25386,
13,
288,
7734,
25386,
18,
1188,
6332,
5621,
5411,
289,
3639,
289,
3639,
1361,
2171,
3491,
5621,
3639,
1361,
22178,
3651,
12,
1968,
1769,
565,
289,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.