rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
public TA_RetCode ADX( int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int today, lookbackTotal, outIdx; double prevHigh, prevLow, prevClose; double prevMinusDM, prevPlusDM, prevTR; double tempReal, tempReal2, diffP, diffM; double minusDI, plusDI, sumDX, prevADX; int i; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) ) optInTimePeriod = 14; else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; if( optInTimePeriod > 1 ) lookbackTotal = (2*optInTimePeriod) + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_ADX.ordinal()]) - 1; else lookbackTotal = 2; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outIdx = 0; outBegIdx.value = today = startIdx; prevMinusDM = 0.0; prevPlusDM = 0.0; prevTR = 0.0; today = startIdx - lookbackTotal; prevHigh = inHigh[today]; prevLow = inLow[today]; prevClose = inClose[today]; i = optInTimePeriod-1; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR += tempReal; prevClose = inClose[today]; } sumDX = 0.0; i = optInTimePeriod; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( ! (((-0.00000001)<prevTR)&&(prevTR<0.00000001)) ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( ! (((-0.00000001)<prevTR)&&(prevTR<0.00000001)) ) sumDX += (100.0 * ( Math.abs (minusDI-plusDI)/tempReal)) ; } } prevADX = (sumDX / optInTimePeriod) ; i = (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_ADX.ordinal()]) ; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( prevTR != 0.0 ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( tempReal != 0.0 ) { tempReal = (100.0*( Math.abs (minusDI-plusDI)/tempReal)) ; prevADX = (((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod) ; } } } outReal[0] = prevADX; outIdx = 1; while( today < endIdx ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( prevTR != 0.0 ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( tempReal != 0.0 ) { tempReal = (100.0*( Math.abs (minusDI-plusDI)/tempReal)) ; prevADX = (((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod) ; } } outReal[outIdx++] = prevADX; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;} | 51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/1a230e9b7099cbd2b7e9eb1294130ca009bfedf4/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
1880,
60,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,
267,
4605,
63,
6487,
474,
3838,
382,
26540,
16,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
9056,
659,
6955,
63,
5717,
95,
474,
30064,
16,
7330,
823,
5269,
16,
659,
4223,
31,
9056,
10001,
8573,
16,
10001,
10520,
16,
10001,
4605,
31,
9056,
10001,
18434,
16125,
16,
10001,
13207,
16125,
16,
10001,
4349,
31,
2896,
440,
278,
30752,
6955,
16,
5814,
6955,
22,
16,
5413,
52,
16,
5413,
49,
31,
9056,
19601,
2565,
16,
10103,
2565,
16,
1364,
28826,
16,
10001,
1880,
60,
31,
474,
77,
31,
430,
12,
1937,
4223,
32,
20,
13,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
430,
12443,
409,
4223,
32,
20,
14047,
96,
12,
409,
4223,
32,
1937,
4223,
3719,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
430,
12443,
474,
13,
3838,
382,
26540,
631,
12,
4522,
18,
6236,
67,
4051,
3719,
3838,
382,
26540,
33,
3461,
31,
12107,
430,
12443,
12,
474,
13,
3838,
382,
26540,
32,
22,
14047,
96,
12443,
474,
13,
3838,
382,
26540,
34,
21,
11706,
3719,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
16234,
67,
8388,
31,
430,
12,
3838,
382,
26540,
34,
21,
13,
7330,
823,
5269,
28657,
22,
14,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
1880,
60,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,
267,
4605,
63,
6487,
474,
3838,
382,
26540,
16,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
9056,
659,
6955,
63,
5717,
95,
474,
30064,
16,
7330,
823,
5269,
16,
659,
4223,
31,
9056,
10001,
8573,
16,
10001,
10520,
16,
10001,
4605,
31,
9056,
10001,
18434,
16125,
16,
10001,
13207,
16125,
16,
10001,
4349,
31,
2896,
440,
278,
30752,
6955,
16,
5814,
6955,
22,
16,
5413,
52,
16,
5413,
49,
31,
9056,
19601,
2565,
16,
10103,
2565,
16,
1364,
28826,
16,
10001,
1880,
60,
31,
474,
77,
31,
2
] | ||
return message.replace('\u0002', '\n').replace('\u0003', '\r'); | return message.replace(LINE_SEP_DELIMITER_1, '\n').replace(LINE_SEP_DELIMITER_2, '\r'); | public static String replaceNewLineReplacer(String message) { if(null == message) { return message; } return message.replace('\u0002', '\n').replace('\u0003', '\r'); } | 50994 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50994/c70a9debafb066e6124205609109e49078e16d94/MessageHelper.java/buggy/src/main/org/testng/remote/strprotocol/MessageHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
1453,
31453,
30060,
12,
780,
883,
13,
288,
565,
309,
12,
2011,
422,
883,
13,
288,
1377,
327,
883,
31,
565,
289,
3639,
327,
883,
18,
2079,
12,
5997,
67,
28610,
67,
19722,
67,
21,
16,
2337,
82,
16063,
2079,
12,
5997,
67,
28610,
67,
19722,
67,
22,
16,
2337,
86,
8284,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
1453,
31453,
30060,
12,
780,
883,
13,
288,
565,
309,
12,
2011,
422,
883,
13,
288,
1377,
327,
883,
31,
565,
289,
3639,
327,
883,
18,
2079,
12,
5997,
67,
28610,
67,
19722,
67,
21,
16,
2337,
82,
16063,
2079,
12,
5997,
67,
28610,
67,
19722,
67,
22,
16,
2337,
86,
8284,
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
] |
Object parent=null; if( parentWrapper!=null ) { parent=parentWrapper.getProxy(); } | public void onStartElement(String uri, String tag, String qname, Attributes attrs, AntXmlContext context) throws SAXParseException { RuntimeConfigurable parentWrapper=context.currentWrapper(); RuntimeConfigurable wrapper=null; /* UnknownElement is used for tasks and data types - with delayed eval */ UnknownElement task= new UnknownElement(qname); task.setProject(context.getProject()); //XXX task.setTaskType(qname); task.setTaskName(qname); Location location=new Location(context.locator.getSystemId(), context.locator.getLineNumber(), context.locator.getColumnNumber()); task.setLocation(location); task.setOwningTarget(context.currentTarget); context.configureId(task, attrs); Object parent=null; if( parentWrapper!=null ) { parent=parentWrapper.getProxy(); } if( parent != null ) { // Nested element ((UnknownElement)parent).addChild( task ); } else { // Task included in a target ( including the default one ). context.currentTarget.addTask( task ); } // container.addTask(task); // This is a nop in UE: task.init(); wrapper=new RuntimeConfigurable( task, task.getTaskName()); wrapper.setAttributes2(attrs); if (parentWrapper != null) { parentWrapper.addChild(wrapper); } context.pushWrapper( wrapper ); } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/594d2dd6c891e638a4a9ce006a8167594b0cabf6/ProjectHelper2.java/clean/src/main/org/apache/tools/ant/helper/ProjectHelper2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
603,
1685,
1046,
12,
780,
2003,
16,
514,
1047,
16,
514,
12621,
16,
4766,
282,
9055,
3422,
16,
4766,
282,
18830,
4432,
1042,
819,
13,
5411,
1216,
10168,
13047,
3639,
288,
5411,
2509,
31660,
982,
3611,
33,
2472,
18,
2972,
3611,
5621,
5411,
2509,
31660,
4053,
33,
2011,
31,
5411,
1748,
9077,
1046,
353,
1399,
364,
4592,
471,
501,
1953,
300,
598,
9079,
15278,
5302,
1195,
5411,
9077,
1046,
1562,
33,
394,
9077,
1046,
12,
85,
529,
1769,
5411,
1562,
18,
542,
4109,
12,
2472,
18,
588,
4109,
10663,
5411,
368,
15639,
1562,
18,
542,
2174,
559,
12,
85,
529,
1769,
5411,
1562,
18,
542,
2174,
461,
12,
85,
529,
1769,
5411,
7050,
2117,
33,
2704,
7050,
12,
2472,
18,
20048,
18,
588,
3163,
548,
9334,
10792,
819,
18,
20048,
18,
588,
31063,
9334,
10792,
819,
18,
20048,
18,
588,
1494,
1854,
10663,
5411,
1562,
18,
542,
2735,
12,
3562,
1769,
5411,
1562,
18,
542,
3494,
2093,
2326,
12,
2472,
18,
2972,
2326,
1769,
5411,
819,
18,
14895,
548,
12,
4146,
16,
3422,
1769,
5411,
1033,
982,
33,
2011,
31,
5411,
309,
12,
982,
3611,
5,
33,
2011,
262,
288,
7734,
982,
33,
2938,
3611,
18,
588,
3886,
5621,
5411,
289,
5411,
309,
12,
982,
480,
446,
262,
288,
7734,
368,
19071,
930,
7734,
14015,
4874,
1046,
13,
2938,
2934,
1289,
1763,
12,
1562,
11272,
5411,
289,
225,
469,
288,
7734,
368,
3837,
5849,
316,
279,
1018,
261,
6508,
326,
805,
1245,
262,
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,
540,
1071,
918,
603,
1685,
1046,
12,
780,
2003,
16,
514,
1047,
16,
514,
12621,
16,
4766,
282,
9055,
3422,
16,
4766,
282,
18830,
4432,
1042,
819,
13,
5411,
1216,
10168,
13047,
3639,
288,
5411,
2509,
31660,
982,
3611,
33,
2472,
18,
2972,
3611,
5621,
5411,
2509,
31660,
4053,
33,
2011,
31,
5411,
1748,
9077,
1046,
353,
1399,
364,
4592,
471,
501,
1953,
300,
598,
9079,
15278,
5302,
1195,
5411,
9077,
1046,
1562,
33,
394,
9077,
1046,
12,
85,
529,
1769,
5411,
1562,
18,
542,
4109,
12,
2472,
18,
588,
4109,
10663,
5411,
368,
15639,
1562,
18,
542,
2174,
559,
12,
85,
529,
1769,
5411,
1562,
18,
542,
2174,
461,
12,
85,
529,
1769,
5411,
7050,
2117,
33,
2704,
2
] | |
return next.getForUpdate(); | return next.getForUpdate(DummyManagedObject.class); | public DummyManagedObject getNextForUpdate() { if (next == null) { return null; } else { return next.getForUpdate(); } } | 55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/468fd904132fe7f543e7cd90eed49c63132c4835/DummyManagedObject.java/buggy/test/server/j2se/com/sun/sgs/test/util/DummyManagedObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
28622,
10055,
921,
6927,
28431,
1435,
288,
202,
430,
261,
4285,
422,
446,
13,
288,
202,
565,
327,
446,
31,
202,
97,
469,
288,
202,
565,
327,
1024,
18,
588,
28431,
5621,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
28622,
10055,
921,
6927,
28431,
1435,
288,
202,
430,
261,
4285,
422,
446,
13,
288,
202,
565,
327,
446,
31,
202,
97,
469,
288,
202,
565,
327,
1024,
18,
588,
28431,
5621,
202,
97,
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
] |
valBuilder1.setToolTipText( Messages .getString( "HighlightRuleBuilderDialog.tooltip.ExpBuilder" ) ); | valBuilder1.setToolTipText( Messages.getString( "HighlightRuleBuilderDialog.tooltip.ExpBuilder" ) ); | protected Control createContents( Composite parent ) { GridData gdata; GridLayout glayout; createTitleArea( parent ); Composite composite = new Composite( parent, 0 ); glayout = new GridLayout( ); glayout.marginHeight = 0; glayout.marginWidth = 0; glayout.verticalSpacing = 0; composite.setLayout( glayout ); composite.setLayoutData( new GridData( GridData.FILL_BOTH ) ); applyDialogFont( composite ); initializeDialogUnits( composite ); Composite innerParent = (Composite) createDialogArea( composite ); createButtonBar( composite ); Label lb = new Label( innerParent, SWT.NONE ); lb.setText( Messages .getString( "HighlightRuleBuilderDialog.text.Condition" ) ); //$NON-NLS-1$ Composite condition = new Composite( innerParent, SWT.NONE ); condition.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); glayout = new GridLayout( 5, false ); condition.setLayout( glayout ); expression = new Combo( condition, SWT.NONE ); gdata = new GridData( ); gdata.widthHint = 100; expression.setLayoutData( gdata ); fillExpression( expression ); expression.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { if ( expression.getText( ).equals( VALUE_OF_THIS_DATA_ITEM ) && designHandle instanceof DataItemHandle ) { expression .setText( DEUtil .getColumnExpression( ( (DataItemHandle) designHandle ) .getResultSetColumn( ) ) ); } updateButtons( ); } } ); expression.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { updateButtons( ); } } ); Button expBuilder = new Button( condition, SWT.PUSH ); expBuilder.setText( "..." ); //$NON-NLS-1$ gdata = new GridData( ); gdata.heightHint = 20; gdata.widthHint = 20; expBuilder.setLayoutData( gdata ); expBuilder.setToolTipText( Messages .getString( "HighlightRuleBuilderDialog.tooltip.ExpBuilder" ) ); //$NON-NLS-1$ expBuilder.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { editValue( expression ); } } ); operator = new Combo( condition, SWT.READ_ONLY ); for ( int i = 0; i < OPERATOR.length; i++ ) { operator.add( OPERATOR[i][0] ); } operator.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { String value = getValueForOperator( operator.getText( ) ); int vv = determineValueVisible( value ); if ( vv == 0 ) { value1.setVisible( false ); value2.setVisible( false ); valBuilder1.setVisible( false ); valBuilder2.setVisible( false ); andLable.setVisible( false ); } else if ( vv == 1 ) { value1.setVisible( true ); valBuilder1.setVisible( true ); value2.setVisible( false ); valBuilder2.setVisible( false ); andLable.setVisible( false ); } else if ( vv == 2 ) { value1.setVisible( true ); value2.setVisible( true ); valBuilder1.setVisible( true ); valBuilder2.setVisible( true ); andLable.setVisible( true ); } updateButtons( ); } } ); value1 = createText( condition ); value1.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { updateButtons( ); } } ); valBuilder1 = new Button( condition, SWT.PUSH ); valBuilder1.setText( "..." ); //$NON-NLS-1$ gdata = new GridData( ); gdata.heightHint = 20; gdata.widthHint = 20; valBuilder1.setLayoutData( gdata ); valBuilder1.setToolTipText( Messages .getString( "HighlightRuleBuilderDialog.tooltip.ExpBuilder" ) ); //$NON-NLS-1$ valBuilder1.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { editValue( value1 ); } } ); createDummy( condition, 3 ); andLable = new Label( condition, SWT.NONE ); andLable.setText( Messages .getString( "HighlightRuleBuilderDialog.text.AND" ) ); //$NON-NLS-1$ andLable.setVisible( false ); createDummy( condition, 1 ); createDummy( condition, 3 ); value2 = createText( condition ); value2.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { updateButtons( ); } } ); value2.setVisible( false ); valBuilder2 = new Button( condition, SWT.PUSH ); valBuilder2.setText( "..." ); //$NON-NLS-1$ gdata = new GridData( ); gdata.heightHint = 20; gdata.widthHint = 20; valBuilder2.setLayoutData( gdata ); valBuilder2.setToolTipText( Messages .getString( "HighlightRuleBuilderDialog.tooltip.ExpBuilder" ) ); //$NON-NLS-1$ valBuilder2.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { editValue( value2 ); } } ); valBuilder2.setVisible( false ); if ( operator.getItemCount( ) > 0 ) { operator.select( 0 ); } lb = new Label( innerParent, SWT.NONE ); lb.setText( Messages .getString( "HighlightRuleBuilderDialog.text.Format" ) ); //$NON-NLS-1$ Composite format = new Composite( innerParent, SWT.NONE ); format.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); glayout = new GridLayout( 7, false ); format.setLayout( glayout ); lb = new Label( format, 0 ); lb .setText( Messages .getString( "HighlightRuleBuilderDialog.text.Font" ) ); //$NON-NLS-1$ lb = new Label( format, 0 ); lb .setText( Messages .getString( "HighlightRuleBuilderDialog.text.Size" ) ); //$NON-NLS-1$ lb = new Label( format, 0 ); lb.setText( Messages .getString( "HighlightRuleBuilderDialog.text.Color" ) ); //$NON-NLS-1$ createDummy( format, 4 ); font = new Combo( format, SWT.READ_ONLY ); gdata = new GridData( ); gdata.widthHint = 100; font.setLayoutData( gdata ); IChoiceSet fontSet = ChoiceSetFactory.getElementChoiceSet( ReportDesignConstants.STYLE_ELEMENT, StyleHandle.FONT_FAMILY_PROP ); font.setData( fontSet ); font.setItems( ChoiceSetFactory.getDisplayNamefromChoiceSet( fontSet, new AlphabeticallyComparator( ) ) ); if ( SYSTEM_FONT_LIST != null && SYSTEM_FONT_LIST.length > 0 ) { for ( int i = 0; i < SYSTEM_FONT_LIST.length; i++ ) { font.add( SYSTEM_FONT_LIST[i] ); } } font.add( DEFAULT_CHOICE, 0 ); font.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { updatePreview( ); } } ); if ( font.getItemCount( ) > 0 ) { font.select( 0 ); } size = new FontSizeBuilder( format, SWT.None ); if ( designHandle != null ) { size.setDefaultUnit( designHandle.getPropertyHandle( StyleHandle.FONT_SIZE_PROP ).getDefaultUnit( ) ); } gdata = new GridData( ); gdata.widthHint = 120; size.setLayoutData( gdata ); size.setFontSizeValue( null ); size.addListener( SWT.Modify, new Listener( ) { public void handleEvent( Event event ) { updatePreview( ); } } ); color = new ColorBuilder( format, 0 ); gdata = new GridData( ); gdata.widthHint = 50; color.setLayoutData( gdata ); color.setChoiceSet( ChoiceSetFactory.getElementChoiceSet( ReportDesignConstants.STYLE_ELEMENT, StyleHandle.COLOR_PROP ) ); color.setRGB( null ); color.addListener( SWT.Modify, new Listener( ) { public void handleEvent( Event event ) { previewLabel.setForeground( ColorManager.getColor( color .getRGB( ) ) ); previewLabel.redraw( ); } } ); Composite fstyle = new Composite( format, 0 ); gdata = new GridData( ); gdata.horizontalSpan = 4; fstyle.setLayoutData( gdata ); fstyle.setLayout( new GridLayout( 4, false ) ); bold = createToggleButton( fstyle ); bold.setImage( ReportPlatformUIImages .getImage( AttributeConstant.FONT_WIDTH ) ); bold.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { isBoldChanged = true; updatePreview( ); } } ); bold.setToolTipText(Messages .getString("HighlightRuleBuilderDialog.tooltip.Bold")); italic = createToggleButton( fstyle ); italic.setImage( ReportPlatformUIImages .getImage( AttributeConstant.FONT_STYLE ) ); italic.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { isItalicChanged = true; updatePreview( ); } } ); italic.setToolTipText(Messages .getString("HighlightRuleBuilderDialog.tooltip.Italic")); underline = createToggleButton( fstyle ); underline.setImage( ReportPlatformUIImages .getImage( AttributeConstant.TEXT_UNDERLINE ) ); underline.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { isUnderlineChanged = true; previewLabel.setUnderline( underline.getSelection( ) ); previewLabel.redraw( ); } } ); underline.setToolTipText(Messages .getString("HighlightRuleBuilderDialog.tooltip.Underline")); linethrough = createToggleButton( fstyle ); linethrough.setImage( ReportPlatformUIImages .getImage( AttributeConstant.TEXT_LINE_THROUGH ) ); linethrough.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { isLinethroughChanged = true; previewLabel.setLinethrough( linethrough.getSelection( ) ); previewLabel.redraw( ); } } ); linethrough .setToolTipText(Messages .getString("HighlightRuleBuilderDialog.tooltip.Text_Line_Through")); Composite back = new Composite( innerParent, SWT.NONE ); back.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); glayout = new GridLayout( 1, false ); back.setLayout( glayout ); lb = new Label( back, 0 ); lb .setText( Messages .getString( "HighlightRuleBuilderDialog.text.BackgroundColor" ) ); //$NON-NLS-1$ backColor = new ColorBuilder( back, 0 ); gdata = new GridData( ); gdata.widthHint = 50; backColor.setLayoutData( gdata ); backColor.setChoiceSet( ChoiceSetFactory.getElementChoiceSet( ReportDesignConstants.STYLE_ELEMENT, StyleHandle.BACKGROUND_COLOR_PROP ) ); backColor.setRGB( null ); backColor.addListener( SWT.Modify, new Listener( ) { public void handleEvent( Event event ) { previewLabel.setBackground( ColorManager.getColor( backColor .getRGB( ) ) ); previewLabel.redraw( ); } } ); Composite preview = new Composite( innerParent, SWT.NONE ); glayout = new GridLayout( ); preview.setLayout( glayout ); gdata = new GridData( GridData.FILL_BOTH ); preview.setLayoutData( gdata ); lb = new Label( preview, SWT.NONE ); lb.setText( Messages .getString( "HighlightRuleBuilderDialog.text.Preview" ) ); //$NON-NLS-1$ Composite previewPane = new Composite( preview, SWT.BORDER ); glayout = new GridLayout( ); glayout.marginWidth = 0; glayout.marginHeight = 0; previewPane.setLayout( glayout ); gdata = new GridData( GridData.FILL_BOTH ); gdata.heightHint = 60; previewPane.setLayoutData( gdata ); previewLabel = new PreviewLabel( previewPane, 0 ); previewLabel.setText( Messages .getString( "HighlightRuleBuilderDialog.text.PreviewContent" ) ); //$NON-NLS-1$ gdata = new GridData( GridData.FILL_BOTH ); previewLabel.setLayoutData( gdata ); updatePreview( ); lb = new Label( innerParent, SWT.SEPARATOR | SWT.HORIZONTAL ); lb.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); syncViewProperties( ); updatePreview( ); updateButtons( ); return composite; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/1cbdabafb0e6f5e8a50eeb05f5cc3d2a2fff1551/HighlightRuleBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HighlightRuleBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
14728,
982,
262,
202,
95,
202,
202,
6313,
751,
314,
892,
31,
202,
202,
6313,
3744,
5118,
2012,
31,
202,
202,
2640,
4247,
5484,
12,
982,
11272,
202,
202,
9400,
9635,
273,
394,
14728,
12,
982,
16,
374,
11272,
202,
202,
75,
6741,
273,
394,
7145,
3744,
12,
11272,
202,
202,
75,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
75,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
75,
6741,
18,
17824,
18006,
273,
374,
31,
202,
202,
27676,
18,
542,
3744,
12,
5118,
2012,
11272,
202,
202,
27676,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
38,
18307,
262,
11272,
202,
202,
9010,
6353,
5711,
12,
9635,
11272,
202,
202,
11160,
6353,
7537,
12,
9635,
11272,
202,
202,
9400,
3443,
3054,
273,
261,
9400,
13,
752,
6353,
5484,
12,
9635,
11272,
202,
202,
2640,
3616,
5190,
12,
9635,
11272,
202,
202,
2224,
7831,
273,
394,
5287,
12,
3443,
3054,
16,
348,
8588,
18,
9826,
11272,
202,
202,
20404,
18,
542,
1528,
12,
4838,
9506,
202,
18,
588,
780,
12,
315,
16205,
2175,
1263,
6353,
18,
955,
18,
3418,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
9400,
2269,
273,
394,
14728,
12,
3443,
3054,
16,
348,
8588,
18,
9826,
11272,
202,
202,
4175,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
262,
11272,
202,
202,
75,
6741,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
14728,
982,
262,
202,
95,
202,
202,
6313,
751,
314,
892,
31,
202,
202,
6313,
3744,
5118,
2012,
31,
202,
202,
2640,
4247,
5484,
12,
982,
11272,
202,
202,
9400,
9635,
273,
394,
14728,
12,
982,
16,
374,
11272,
202,
202,
75,
6741,
273,
394,
7145,
3744,
12,
11272,
202,
202,
75,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
75,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
75,
6741,
18,
17824,
18006,
273,
374,
31,
202,
202,
27676,
18,
542,
3744,
12,
5118,
2012,
11272,
202,
202,
27676,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
38,
18307,
262,
11272,
202,
202,
2
] |
private static void showVersion() { System.out.print("ruby "); System.out.print(Constants.RUBY_VERSION); System.out.print(" ("); System.out.print(Constants.COMPILE_DATE); System.out.print(") ["); System.out.print("java"); System.out.println("]"); | private void showVersion() { out.print("ruby "); out.print(Constants.RUBY_VERSION); out.print(" ("); out.print(Constants.COMPILE_DATE); out.print(") ["); out.print("java"); out.println("]"); | private static void showVersion() { System.out.print("ruby "); System.out.print(Constants.RUBY_VERSION); System.out.print(" ("); System.out.print(Constants.COMPILE_DATE); System.out.print(") ["); System.out.print("java"); System.out.println("]"); } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/b4a189a27604d62c317938f16a124fb9dab1e94a/Main.java/clean/src/org/jruby/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2405,
1444,
1435,
288,
3639,
2332,
18,
659,
18,
1188,
2932,
27768,
315,
1769,
3639,
2332,
18,
659,
18,
1188,
12,
2918,
18,
54,
3457,
61,
67,
5757,
1769,
3639,
2332,
18,
659,
18,
1188,
2932,
7566,
1769,
3639,
2332,
18,
659,
18,
1188,
12,
2918,
18,
31075,
900,
67,
4594,
1769,
3639,
2332,
18,
659,
18,
1188,
2932,
13,
8247,
1769,
3639,
2332,
18,
659,
18,
1188,
2932,
6290,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
4279,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2405,
1444,
1435,
288,
3639,
2332,
18,
659,
18,
1188,
2932,
27768,
315,
1769,
3639,
2332,
18,
659,
18,
1188,
12,
2918,
18,
54,
3457,
61,
67,
5757,
1769,
3639,
2332,
18,
659,
18,
1188,
2932,
7566,
1769,
3639,
2332,
18,
659,
18,
1188,
12,
2918,
18,
31075,
900,
67,
4594,
1769,
3639,
2332,
18,
659,
18,
1188,
2932,
13,
8247,
1769,
3639,
2332,
18,
659,
18,
1188,
2932,
6290,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
4279,
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
] |
lVar = (OptLocalVariable) vars.getVariable(child.getString()); | lVar = OptLocalVariable.get(vars, child.getString()); | private void visitIncDec(Node node, boolean isInc) { Node child = node.getFirstChild(); if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { OptLocalVariable lVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if (lVar.getJRegister() == -1) lVar.assignJRegister(getNewWordPairLocal()); dload(lVar.getJRegister()); addByteCode(ByteCode.DUP2); push(1.0); addByteCode((isInc) ? ByteCode.DADD : ByteCode.DSUB); dstore(lVar.getJRegister()); } else { OptLocalVariable lVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); String routine = (isInc) ? "postIncrement" : "postDecrement"; if (hasVarsInRegs && child.getType() == TokenStream.GETVAR) { if (lVar == null) lVar = (OptLocalVariable) vars.getVariable(child.getString()); if (lVar.getJRegister() == -1) lVar.assignJRegister(getNewWordLocal()); aload(lVar.getJRegister()); addByteCode(ByteCode.DUP); addScriptRuntimeInvoke(routine, "(Ljava/lang/Object;)", "Ljava/lang/Object;"); astore(lVar.getJRegister()); } else { if (child.getType() == TokenStream.GETPROP) { Node getPropChild = child.getFirstChild(); generateCodeFromNode(getPropChild, node, -1, -1); generateCodeFromNode(getPropChild.getNextSibling(), node, -1, -1); aload(variableObjectLocal); addScriptRuntimeInvoke(routine, "(Ljava/lang/Object;Ljava/lang/String;" + "Lorg/mozilla/javascript/Scriptable;)", "Ljava/lang/Object;"); } else { if (child.getType() == TokenStream.GETELEM) { routine += "Elem"; Node getPropChild = child.getFirstChild(); generateCodeFromNode(getPropChild, node, -1, -1); generateCodeFromNode(getPropChild.getNextSibling(), node, -1, -1); aload(variableObjectLocal); addScriptRuntimeInvoke(routine, "(Ljava/lang/Object;Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)", "Ljava/lang/Object;"); } else { aload(variableObjectLocal); push(child.getString()); // push name addScriptRuntimeInvoke(routine, "(Lorg/mozilla/javascript/Scriptable;Ljava/lang/String;)", "Ljava/lang/Object;"); } } } } } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/e497d2b898e781a5052344191ab878cd469f3f53/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
14559,
1799,
12,
907,
756,
16,
1250,
8048,
71,
13,
565,
288,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
309,
261,
2159,
18,
588,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
300,
21,
13,
480,
300,
21,
13,
288,
5411,
12056,
2042,
3092,
328,
1537,
10792,
273,
261,
6179,
2042,
3092,
21433,
3624,
18,
588,
4658,
12,
907,
18,
16444,
67,
15811,
10019,
5411,
309,
261,
80,
1537,
18,
588,
46,
3996,
1435,
422,
300,
21,
13,
7734,
328,
1537,
18,
6145,
46,
3996,
12,
588,
1908,
3944,
4154,
2042,
10663,
5411,
302,
945,
12,
80,
1537,
18,
588,
46,
3996,
10663,
5411,
527,
3216,
1085,
12,
3216,
1085,
18,
30387,
22,
1769,
5411,
1817,
12,
21,
18,
20,
1769,
5411,
527,
3216,
1085,
12443,
291,
14559,
13,
692,
3506,
1085,
18,
40,
8355,
294,
3506,
1085,
18,
3948,
3457,
1769,
5411,
27723,
12,
80,
1537,
18,
588,
46,
3996,
10663,
3639,
289,
469,
288,
5411,
12056,
2042,
3092,
328,
1537,
10792,
273,
261,
6179,
2042,
3092,
21433,
3624,
18,
588,
4658,
12,
907,
18,
16444,
67,
15811,
10019,
5411,
514,
12245,
273,
261,
291,
14559,
13,
692,
315,
2767,
10798,
6,
294,
315,
2767,
23326,
475,
14432,
5411,
309,
261,
5332,
5555,
382,
426,
564,
597,
1151,
18,
588,
559,
1435,
422,
3155,
1228,
18,
3264,
7716,
13,
288,
7734,
309,
261,
80,
1537,
422,
446,
13,
10792,
328,
1537,
273,
12056,
2042,
3092,
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,
918,
3757,
14559,
1799,
12,
907,
756,
16,
1250,
8048,
71,
13,
565,
288,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
309,
261,
2159,
18,
588,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
300,
21,
13,
480,
300,
21,
13,
288,
5411,
12056,
2042,
3092,
328,
1537,
10792,
273,
261,
6179,
2042,
3092,
21433,
3624,
18,
588,
4658,
12,
907,
18,
16444,
67,
15811,
10019,
5411,
309,
261,
80,
1537,
18,
588,
46,
3996,
1435,
422,
300,
21,
13,
7734,
328,
1537,
18,
6145,
46,
3996,
12,
588,
1908,
3944,
4154,
2042,
10663,
5411,
302,
945,
12,
80,
1537,
18,
588,
46,
3996,
10663,
5411,
527,
3216,
1085,
12,
3216,
2
] |
String outRate = _context.router().getConfigSetting(ConfigNetHelper.PROP_OUTBOUND_KBPS); | String outBurstRate = _context.router().getConfigSetting(ConfigNetHelper.PROP_OUTBOUND_BURST_KBPS); | private void updateRates() { boolean updated = false; if ( (_inboundRate != null) && (_inboundRate.length() > 0) ) { _context.router().setConfigSetting(ConfigNetHelper.PROP_INBOUND_KBPS, _inboundRate); updated = true; } if ( (_outboundRate != null) && (_outboundRate.length() > 0) ) { _context.router().setConfigSetting(ConfigNetHelper.PROP_OUTBOUND_KBPS, _outboundRate); updated = true; } String inRate = _context.router().getConfigSetting(ConfigNetHelper.PROP_INBOUND_KBPS); if (_inboundBurst != null) { int rateKBps = 0; int burstSeconds = 0; try { rateKBps = Integer.parseInt(inRate); burstSeconds = Integer.parseInt(_inboundBurst); } catch (NumberFormatException nfe) { // ignore } if ( (rateKBps > 0) && (burstSeconds > 0) ) { int kb = rateKBps * burstSeconds; _context.router().setConfigSetting(ConfigNetHelper.PROP_INBOUND_BURST, "" + kb); updated = true; } } String outRate = _context.router().getConfigSetting(ConfigNetHelper.PROP_OUTBOUND_KBPS); if (_outboundBurst != null) { int rateKBps = 0; int burstSeconds = 0; try { rateKBps = Integer.parseInt(outRate); burstSeconds = Integer.parseInt(_outboundBurst); } catch (NumberFormatException nfe) { // ignore } if ( (rateKBps > 0) && (burstSeconds > 0) ) { int kb = rateKBps * burstSeconds; _context.router().setConfigSetting(ConfigNetHelper.PROP_OUTBOUND_BURST, "" + kb); updated = true; } } if (updated) addFormNotice("Updated bandwidth limits"); } | 27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/a8ecd32b45f5e68ac3be2a5c95f667f1c40146f4/ConfigNetHandler.java/clean/apps/routerconsole/java/src/net/i2p/router/web/ConfigNetHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
20836,
1435,
288,
3639,
1250,
3526,
273,
629,
31,
3639,
309,
261,
261,
67,
267,
3653,
4727,
480,
446,
13,
597,
261,
67,
267,
3653,
4727,
18,
2469,
1435,
405,
374,
13,
262,
288,
5411,
389,
2472,
18,
10717,
7675,
542,
809,
5568,
12,
809,
7308,
2276,
18,
15811,
67,
706,
19318,
67,
16024,
5857,
16,
389,
267,
3653,
4727,
1769,
5411,
3526,
273,
638,
31,
3639,
289,
3639,
309,
261,
261,
67,
659,
3653,
4727,
480,
446,
13,
597,
261,
67,
659,
3653,
4727,
18,
2469,
1435,
405,
374,
13,
262,
288,
5411,
389,
2472,
18,
10717,
7675,
542,
809,
5568,
12,
809,
7308,
2276,
18,
15811,
67,
5069,
19318,
67,
16024,
5857,
16,
389,
659,
3653,
4727,
1769,
5411,
3526,
273,
638,
31,
3639,
289,
7734,
514,
316,
4727,
273,
389,
2472,
18,
10717,
7675,
588,
809,
5568,
12,
809,
7308,
2276,
18,
15811,
67,
706,
19318,
67,
16024,
5857,
1769,
7734,
309,
261,
67,
267,
3653,
38,
18593,
480,
446,
13,
288,
5411,
509,
4993,
16024,
1121,
273,
374,
31,
5411,
509,
27966,
6762,
273,
374,
31,
5411,
775,
288,
7734,
4993,
16024,
1121,
273,
2144,
18,
2670,
1702,
12,
267,
4727,
1769,
7734,
27966,
6762,
273,
2144,
18,
2670,
1702,
24899,
267,
3653,
38,
18593,
1769,
5411,
289,
1044,
261,
1854,
9291,
25386,
13,
288,
7734,
368,
2305,
5411,
289,
5411,
309,
261,
261,
5141,
16024,
1121,
405,
374,
13,
597,
261,
70,
18593,
6762,
405,
374,
13,
262,
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,
1089,
20836,
1435,
288,
3639,
1250,
3526,
273,
629,
31,
3639,
309,
261,
261,
67,
267,
3653,
4727,
480,
446,
13,
597,
261,
67,
267,
3653,
4727,
18,
2469,
1435,
405,
374,
13,
262,
288,
5411,
389,
2472,
18,
10717,
7675,
542,
809,
5568,
12,
809,
7308,
2276,
18,
15811,
67,
706,
19318,
67,
16024,
5857,
16,
389,
267,
3653,
4727,
1769,
5411,
3526,
273,
638,
31,
3639,
289,
3639,
309,
261,
261,
67,
659,
3653,
4727,
480,
446,
13,
597,
261,
67,
659,
3653,
4727,
18,
2469,
1435,
405,
374,
13,
262,
288,
5411,
389,
2472,
18,
10717,
7675,
542,
809,
5568,
12,
809,
7308,
2276,
18,
15811,
67,
5069,
19318,
67,
16024,
5857,
16,
2
] |
public void paintComponent(Graphics g) { int numstate; JState current, endState; Object[] states; LinkedList<JState> currentList; ListIterator<JState> currentTarget; Point startLoc, endLoc; numstate = getComponentCountInLayer(STATE_LAYER); states = getComponentsInLayer(STATE_LAYER); for (int i = 0 ; i < numstate ; i++ ) { current = (JState)states[i]; | public void paintComponent(Graphics gr) { int numstate; JState current, endState; Object[] states; LinkedList<JState> currentList; ListIterator<JState> currentTarget; Point startLoc, endLoc; Graphics2D g = (Graphics2D)gr; numstate = getComponentCountInLayer(STATE_LAYER); states = getComponentsInLayer(STATE_LAYER); for (int i = 0 ; i < numstate ; i++ ) { current = (JState)states[i]; | public void paintComponent(Graphics g) { int numstate; JState current, endState; Object[] states; LinkedList<JState> currentList; ListIterator<JState> currentTarget; Point startLoc, endLoc; numstate = getComponentCountInLayer(STATE_LAYER); states = getComponentsInLayer(STATE_LAYER); for (int i = 0 ; i < numstate ; i++ ) { current = (JState)states[i]; current.setTransDrawn(false); } // wir holen uns bereits hier die Farben aus dem Optionsobjekt // um unntigen Methodenaufruf-Overhead in drawTransitions zu vermeiden charColour = VFSAGUI.options.getCharCol(); lineColour = VFSAGUI.options.getLineCol(); for (int i = 0 ; i < numstate ; i++ ) { current = (JState)states[i]; drawTransitions(current, g); current.setTransDrawn(true); } } | 11750 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11750/36ae550a98e77afb5a18157cf7613b9c6bfb13aa/AutWindow.java/buggy/src/gui/AutWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
1841,
12,
17558,
314,
13,
288,
202,
474,
818,
2019,
31,
202,
46,
1119,
783,
16,
679,
1119,
31,
202,
921,
8526,
5493,
31,
202,
13174,
682,
32,
46,
1119,
34,
783,
682,
31,
202,
682,
3198,
32,
46,
1119,
34,
783,
2326,
31,
202,
2148,
787,
1333,
16,
679,
1333,
31,
202,
2107,
2019,
273,
10322,
1380,
382,
4576,
12,
7998,
67,
22166,
1769,
202,
7992,
273,
336,
7171,
382,
4576,
12,
7998,
67,
22166,
1769,
202,
1884,
261,
474,
277,
273,
374,
274,
277,
411,
818,
2019,
274,
277,
9904,
262,
288,
202,
565,
783,
273,
261,
46,
1119,
13,
7992,
63,
77,
15533,
5411,
783,
18,
542,
1429,
6493,
82,
12,
5743,
1769,
202,
97,
7734,
368,
341,
481,
366,
355,
275,
16804,
324,
822,
1282,
366,
2453,
10387,
478,
6779,
275,
279,
407,
9626,
5087,
2603,
3839,
88,
3639,
368,
9570,
640,
496,
30577,
2985,
24457,
696,
86,
696,
17,
4851,
1978,
316,
3724,
23299,
998,
89,
331,
1035,
73,
17951,
3639,
1149,
26404,
273,
23567,
1781,
5370,
18,
2116,
18,
588,
2156,
914,
5621,
3639,
980,
26404,
273,
23567,
1781,
5370,
18,
2116,
18,
588,
1670,
914,
5621,
7734,
364,
261,
474,
277,
273,
374,
274,
277,
411,
818,
2019,
274,
277,
9904,
262,
288,
5411,
783,
273,
261,
46,
1119,
13,
7992,
63,
77,
15533,
5411,
3724,
23299,
12,
2972,
16,
314,
1769,
5411,
783,
18,
542,
1429,
6493,
82,
12,
3767,
1769,
3639,
289,
565,
289,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
1841,
12,
17558,
314,
13,
288,
202,
474,
818,
2019,
31,
202,
46,
1119,
783,
16,
679,
1119,
31,
202,
921,
8526,
5493,
31,
202,
13174,
682,
32,
46,
1119,
34,
783,
682,
31,
202,
682,
3198,
32,
46,
1119,
34,
783,
2326,
31,
202,
2148,
787,
1333,
16,
679,
1333,
31,
202,
2107,
2019,
273,
10322,
1380,
382,
4576,
12,
7998,
67,
22166,
1769,
202,
7992,
273,
336,
7171,
382,
4576,
12,
7998,
67,
22166,
1769,
202,
1884,
261,
474,
277,
273,
374,
274,
277,
411,
818,
2019,
274,
277,
9904,
262,
288,
202,
565,
783,
273,
261,
46,
1119,
13,
7992,
63,
77,
15533,
5411,
783,
18,
542,
1429,
6493,
82,
12,
5743,
2
] |
recv.getRuntime().getRuntime().setTraceFunction((RubyProc) trace_func); | public static IRubyObject set_trace_func(IRubyObject recv, IRubyObject trace_func) { if (trace_func.isNil()) { recv.getRuntime().getRuntime().setTraceFunction(null); } else if (!(trace_func instanceof RubyProc)) { throw new TypeError(recv.getRuntime(), "trace_func needs to be Proc."); } recv.getRuntime().getRuntime().setTraceFunction((RubyProc) trace_func); return trace_func; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/7b41d102019836c9a5ec6884b2d9b9380f9853a7/KernelModule.java/buggy/org/jruby/KernelModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
444,
67,
5129,
67,
644,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
2606,
67,
644,
13,
288,
3639,
309,
261,
5129,
67,
644,
18,
291,
12616,
10756,
288,
5411,
10665,
18,
588,
5576,
7675,
588,
5576,
7675,
542,
3448,
2083,
12,
2011,
1769,
3639,
289,
469,
309,
16051,
12,
5129,
67,
644,
1276,
19817,
15417,
3719,
288,
5411,
604,
394,
3580,
12,
18334,
18,
588,
5576,
9334,
315,
5129,
67,
644,
4260,
358,
506,
18470,
1199,
1769,
3639,
289,
9079,
327,
2606,
67,
644,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
444,
67,
5129,
67,
644,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
2606,
67,
644,
13,
288,
3639,
309,
261,
5129,
67,
644,
18,
291,
12616,
10756,
288,
5411,
10665,
18,
588,
5576,
7675,
588,
5576,
7675,
542,
3448,
2083,
12,
2011,
1769,
3639,
289,
469,
309,
16051,
12,
5129,
67,
644,
1276,
19817,
15417,
3719,
288,
5411,
604,
394,
3580,
12,
18334,
18,
588,
5576,
9334,
315,
5129,
67,
644,
4260,
358,
506,
18470,
1199,
1769,
3639,
289,
9079,
327,
2606,
67,
644,
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
] | |
if ( logger.isDebugEnabled()) logger.debug( "Loaded remote settings: " + newSettings ); | if ( logger.isDebugEnabled()) logger.debug( "Loaded remote settings:\n" + newSettings ); | public synchronized void setRemoteSettings( RemoteSettings newSettings ) throws NetworkException { if ( logger.isDebugEnabled()) logger.debug( "Loaded remote settings: " + newSettings ); NetworkUtilPriv nup = NetworkUtilPriv.getPrivInstance(); this.remote = nup.makeRemoteInternal( this.networkSettings, newSettings, this.ddnsSettings ); saveRemoteSettings( this.remote ); /* Update the rules */ generateRules(); if ( logger.isDebugEnabled()) logger.debug( "Loaded remote settings: " + this.remote ); /* Have to do this too, because the hostname may have changed */ try { updateServicesSettings(); } catch ( Exception e ) { logger.warn( "Error updating services settings, continuing", e ); } callRemoteListeners(); } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/f21c1e811d923e7ca3cccaef82334eb434294c2a/NetworkManagerImpl.java/clean/mvvm/main/com/metavize/mvvm/networking/NetworkManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
444,
5169,
2628,
12,
6304,
2628,
394,
2628,
262,
3639,
1216,
5128,
503,
565,
288,
3639,
309,
261,
1194,
18,
291,
2829,
1526,
10756,
1194,
18,
4148,
12,
315,
8835,
2632,
1947,
5581,
82,
6,
397,
394,
2628,
11272,
3639,
5128,
1304,
15475,
290,
416,
273,
5128,
1304,
15475,
18,
588,
15475,
1442,
5621,
3639,
333,
18,
7222,
273,
290,
416,
18,
6540,
5169,
3061,
12,
333,
18,
5185,
2628,
16,
394,
2628,
16,
333,
18,
449,
2387,
2628,
11272,
3639,
1923,
5169,
2628,
12,
333,
18,
7222,
11272,
3639,
1748,
2315,
326,
2931,
1195,
3639,
2103,
4478,
5621,
3639,
309,
261,
1194,
18,
291,
2829,
1526,
10756,
1194,
18,
4148,
12,
315,
8835,
2632,
1947,
30,
315,
397,
333,
18,
7222,
11272,
3639,
1748,
21940,
358,
741,
333,
4885,
16,
2724,
326,
5199,
2026,
1240,
3550,
1195,
3639,
775,
288,
5411,
1089,
5676,
2628,
5621,
3639,
289,
1044,
261,
1185,
425,
262,
288,
5411,
1194,
18,
8935,
12,
315,
668,
9702,
4028,
1947,
16,
29702,
3113,
425,
11272,
3639,
289,
3639,
745,
5169,
5583,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
444,
5169,
2628,
12,
6304,
2628,
394,
2628,
262,
3639,
1216,
5128,
503,
565,
288,
3639,
309,
261,
1194,
18,
291,
2829,
1526,
10756,
1194,
18,
4148,
12,
315,
8835,
2632,
1947,
5581,
82,
6,
397,
394,
2628,
11272,
3639,
5128,
1304,
15475,
290,
416,
273,
5128,
1304,
15475,
18,
588,
15475,
1442,
5621,
3639,
333,
18,
7222,
273,
290,
416,
18,
6540,
5169,
3061,
12,
333,
18,
5185,
2628,
16,
394,
2628,
16,
333,
18,
449,
2387,
2628,
11272,
3639,
1923,
5169,
2628,
12,
333,
18,
7222,
11272,
3639,
1748,
2315,
326,
2931,
1195,
3639,
2103,
4478,
5621,
3639,
309,
261,
1194,
18,
291,
2829,
1526,
10756,
1194,
18,
4148,
12,
315,
8835,
2632,
2
] |
while (!m_steps.getStep().equals(step)) | while (m_steps.getStep() == null || !m_steps.getStep().equals(step)) | public void waitForConfirmation(final String message, String step) { if (SwingUtilities.isEventDispatchThread()) throw new IllegalStateException("This cant be in dispatch thread"); //wait for the step to display. while (!m_steps.getStep().equals(step)) { try { Thread.sleep(50); } catch (InterruptedException e) { } } if (!getShowEnemyCasualtyNotification()) return; final Object continueLock = new Object(); //set the action in the swing thread. SwingUtilities.invokeLater(new Runnable() { public void run() { m_actionButton.setAction(new AbstractAction(message) { public void actionPerformed(ActionEvent e) { synchronized (continueLock) { continueLock.notifyAll(); } } }); } }); //wait for the button to be pressed. try { synchronized (continueLock) { continueLock.wait(); } } catch (InterruptedException ie) { } SwingUtilities.invokeLater(new Runnable() { public void run() { m_actionButton.setAction(null); } }); } | 8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/48adfbc2294e1fa239c6c938df9d427c2124c603/BattleDisplay.java/buggy/src/games/strategy/triplea/ui/BattleDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10712,
17597,
12,
6385,
514,
883,
16,
514,
2235,
13,
565,
288,
3639,
309,
261,
6050,
310,
11864,
18,
291,
1133,
5325,
3830,
10756,
5411,
604,
394,
5477,
2932,
2503,
848,
88,
506,
316,
3435,
2650,
8863,
3639,
368,
7048,
364,
326,
2235,
358,
2562,
18,
3639,
1323,
261,
81,
67,
8986,
18,
588,
4160,
1435,
422,
446,
747,
401,
81,
67,
8986,
18,
588,
4160,
7675,
14963,
12,
4119,
3719,
3639,
288,
5411,
775,
5411,
288,
7734,
4884,
18,
19607,
12,
3361,
1769,
5411,
289,
1044,
261,
24485,
503,
425,
13,
5411,
288,
5411,
289,
3639,
289,
3639,
309,
16051,
588,
5706,
664,
351,
93,
39,
345,
1462,
4098,
4386,
10756,
5411,
327,
31,
3639,
727,
1033,
1324,
2531,
273,
394,
1033,
5621,
3639,
368,
542,
326,
1301,
316,
326,
9028,
2650,
18,
3639,
26145,
11864,
18,
14407,
20607,
12,
2704,
10254,
1435,
3639,
288,
5411,
1071,
918,
1086,
1435,
5411,
288,
7734,
312,
67,
1128,
3616,
18,
542,
1803,
12,
2704,
4115,
1803,
12,
2150,
13,
7734,
288,
10792,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
10792,
288,
13491,
3852,
261,
17143,
2531,
13,
13491,
288,
18701,
1324,
2531,
18,
12336,
1595,
5621,
13491,
289,
10792,
289,
7734,
15549,
5411,
289,
3639,
15549,
3639,
368,
7048,
364,
326,
3568,
358,
506,
19504,
18,
3639,
775,
3639,
288,
5411,
3852,
261,
17143,
2531,
13,
5411,
288,
7734,
1324,
2531,
18,
7048,
5621,
5411,
289,
3639,
289,
1044,
261,
24485,
503,
9228,
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,
918,
10712,
17597,
12,
6385,
514,
883,
16,
514,
2235,
13,
565,
288,
3639,
309,
261,
6050,
310,
11864,
18,
291,
1133,
5325,
3830,
10756,
5411,
604,
394,
5477,
2932,
2503,
848,
88,
506,
316,
3435,
2650,
8863,
3639,
368,
7048,
364,
326,
2235,
358,
2562,
18,
3639,
1323,
261,
81,
67,
8986,
18,
588,
4160,
1435,
422,
446,
747,
401,
81,
67,
8986,
18,
588,
4160,
7675,
14963,
12,
4119,
3719,
3639,
288,
5411,
775,
5411,
288,
7734,
4884,
18,
19607,
12,
3361,
1769,
5411,
289,
1044,
261,
24485,
503,
425,
13,
5411,
288,
5411,
289,
3639,
289,
3639,
309,
16051,
588,
5706,
664,
351,
93,
39,
345,
1462,
4098,
4386,
10756,
5411,
327,
31,
3639,
2
] |
WorkingSetManager workingSetManager = (WorkingSetManager) WorkbenchPlugin .getDefault().getWorkingSetManager(); workingSetManager.workingSetChanged(this, IWorkingSetManager.CHANGE_WORKING_SET_CONTENT_CHANGE); | fireWorkingSetChanged(IWorkingSetManager.CHANGE_WORKING_SET_CONTENT_CHANGE, null); | public void setElements(IAdaptable[] newElements) { internalSetElements(newElements); WorkingSetManager workingSetManager = (WorkingSetManager) WorkbenchPlugin .getDefault().getWorkingSetManager(); workingSetManager.workingSetChanged(this, IWorkingSetManager.CHANGE_WORKING_SET_CONTENT_CHANGE); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5adaf6d1b10e28b15abd67fb9b1d71ffd368dde8/WorkingSet.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkingSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3471,
12,
45,
13716,
429,
8526,
394,
3471,
13,
288,
3639,
2713,
694,
3471,
12,
2704,
3471,
1769,
3639,
22732,
694,
1318,
5960,
694,
1318,
273,
261,
14836,
694,
1318,
13,
4147,
22144,
3773,
7734,
263,
588,
1868,
7675,
588,
14836,
694,
1318,
5621,
3639,
5960,
694,
1318,
18,
20478,
694,
5033,
12,
2211,
16,
7734,
467,
14836,
694,
1318,
18,
14473,
67,
10566,
1360,
67,
4043,
67,
9689,
67,
14473,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3471,
12,
45,
13716,
429,
8526,
394,
3471,
13,
288,
3639,
2713,
694,
3471,
12,
2704,
3471,
1769,
3639,
22732,
694,
1318,
5960,
694,
1318,
273,
261,
14836,
694,
1318,
13,
4147,
22144,
3773,
7734,
263,
588,
1868,
7675,
588,
14836,
694,
1318,
5621,
3639,
5960,
694,
1318,
18,
20478,
694,
5033,
12,
2211,
16,
7734,
467,
14836,
694,
1318,
18,
14473,
67,
10566,
1360,
67,
4043,
67,
9689,
67,
14473,
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
] |
if (bag instanceof InterMineIdBag) { idSet.addAll(bag); } } | public static void marshal(Profile profile, Model model, ObjectStore os, XMLStreamWriter writer) { try { writer.writeStartElement("userprofile"); writer.writeAttribute("username", profile.getUsername()); writer.writeAttribute("password", profile.getPassword()); ItemFactory itemFactory = new ItemFactory(os.getModel()); Set idSet = new HashSet(); // serialise all object in all bags and all objects mentioned in primary keys of those // items (recursively) for (Iterator i = profile.getSavedBags().entrySet().iterator(); i.hasNext();) { Map.Entry entry = (Map.Entry) i.next(); InterMineBag bag = (InterMineBag) entry.getValue(); if (bag instanceof InterMineIdBag) { idSet.addAll(bag); } } if (!idSet.isEmpty()) { List objects = os.getObjectsByIds(idSet); writer.writeStartElement("items"); Iterator objectsIter = objects.iterator(); while (objectsIter.hasNext()) { ResultsRow rr = (ResultsRow) objectsIter.next(); InterMineObject o = (InterMineObject) rr.get(0); Item item = itemFactory.makeItem(o); FullRenderer.render(writer, item); } writer.writeEndElement(); } writer.writeStartElement("bags"); for (Iterator i = profile.getSavedBags().entrySet().iterator(); i.hasNext();) { Map.Entry entry = (Map.Entry) i.next(); String bagName = (String) entry.getKey(); InterMineBag bag = (InterMineBag) entry.getValue(); InterMineBagBinding.marshal(bag, bagName, writer); } writer.writeEndElement(); writer.writeStartElement("queries"); for (Iterator i = profile.getSavedQueries().entrySet().iterator(); i.hasNext();) { Map.Entry entry = (Map.Entry) i.next(); String queryName = (String) entry.getKey(); PathQuery query = (PathQuery) entry.getValue(); PathQueryBinding.marshal(query, queryName, os.getModel().getName(), writer); } writer.writeEndElement(); writer.writeStartElement("template-queries"); for (Iterator i = profile.getSavedTemplates().entrySet().iterator(); i.hasNext();) { Map.Entry entry = (Map.Entry) i.next(); String templateName = (String) entry.getKey(); TemplateQuery template = (TemplateQuery) entry.getValue(); TemplateQueryBinding.marshal(template, writer); } writer.writeEndElement(); writer.writeEndElement(); } catch (XMLStreamException e) { throw new RuntimeException("exception while marshalling profile", e); } catch (ObjectStoreException e) { throw new RuntimeException("exception while marshalling profile", e); } } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/8b394c0a3f1d6d27662e0853d2e081161a09ccf1/ProfileBinding.java/buggy/intermine/src/java/org/intermine/web/ProfileBinding.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
10893,
12,
4029,
3042,
16,
3164,
938,
16,
1033,
2257,
1140,
16,
27573,
15595,
2289,
2633,
13,
288,
3639,
775,
288,
5411,
2633,
18,
2626,
1685,
1046,
2932,
1355,
5040,
8863,
5411,
2633,
18,
2626,
1499,
2932,
5053,
3113,
3042,
18,
588,
8575,
10663,
5411,
2633,
18,
2626,
1499,
2932,
3664,
3113,
3042,
18,
588,
3913,
10663,
5411,
4342,
1733,
761,
1733,
273,
394,
4342,
1733,
12,
538,
18,
588,
1488,
10663,
5411,
1000,
612,
694,
273,
394,
6847,
5621,
5411,
368,
2734,
784,
777,
733,
316,
777,
324,
1341,
471,
777,
2184,
27635,
316,
3354,
1311,
434,
5348,
5411,
368,
1516,
261,
266,
6235,
13,
5411,
364,
261,
3198,
277,
273,
3042,
18,
588,
16776,
38,
1341,
7675,
4099,
694,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
7734,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
277,
18,
4285,
5621,
7734,
5294,
49,
558,
5013,
13189,
273,
261,
2465,
49,
558,
5013,
13,
1241,
18,
24805,
5621,
7734,
309,
261,
22551,
1276,
5294,
49,
558,
548,
5013,
13,
288,
10792,
612,
694,
18,
1289,
1595,
12,
22551,
1769,
7734,
289,
5411,
289,
13491,
309,
16051,
350,
694,
18,
291,
1921,
10756,
288,
7734,
987,
2184,
273,
1140,
18,
588,
4710,
858,
2673,
12,
350,
694,
1769,
7734,
2633,
18,
2626,
1685,
1046,
2932,
3319,
8863,
7734,
4498,
2184,
2360,
273,
2184,
18,
9838,
5621,
7734,
1323,
261,
6911,
2360,
18,
5332,
2134,
10756,
288,
10792,
10351,
1999,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
10893,
12,
4029,
3042,
16,
3164,
938,
16,
1033,
2257,
1140,
16,
27573,
15595,
2289,
2633,
13,
288,
3639,
775,
288,
5411,
2633,
18,
2626,
1685,
1046,
2932,
1355,
5040,
8863,
5411,
2633,
18,
2626,
1499,
2932,
5053,
3113,
3042,
18,
588,
8575,
10663,
5411,
2633,
18,
2626,
1499,
2932,
3664,
3113,
3042,
18,
588,
3913,
10663,
5411,
4342,
1733,
761,
1733,
273,
394,
4342,
1733,
12,
538,
18,
588,
1488,
10663,
5411,
1000,
612,
694,
273,
394,
6847,
5621,
5411,
368,
2734,
784,
777,
733,
316,
777,
324,
1341,
471,
777,
2184,
27635,
316,
3354,
1311,
434,
5348,
5411,
368,
1516,
261,
266,
6235,
13,
5411,
364,
261,
3198,
277,
273,
3042,
18,
588,
2
] | |
initialY = location.y + insertionBounds.y + insertionBounds.height; | initialY = location.y + insertionBounds.y + insertionBounds.height; | protected void adjustBounds() { // Get our control's location in display coordinates. Point location = control.getDisplay().map(control.getParent(), null, control.getLocation()); int initialX = location.x + POPUP_OFFSET; int initialY = location.y + control.getSize().y + POPUP_OFFSET; // If we are inserting content, use the cursor position to // position the control. if (getProposalAcceptanceStyle() == PROPOSAL_INSERT) { Rectangle insertionBounds = controlContentAdapter.getInsertionBounds(control); initialX = initialX + insertionBounds.x; initialY = location.y + insertionBounds.y + insertionBounds.height; } // If there is no specified size, force it by setting // up a layout on the table. if (popupSize == null) { GridData data = new GridData(GridData.FILL_BOTH); data.heightHint = proposalTable.getItemHeight() * POPUP_CHAR_HEIGHT; data.widthHint = Math.max(control.getSize().x, POPUP_MINIMUM_WIDTH); proposalTable.setLayoutData(data); getShell().pack(); popupSize = getShell().getSize(); } getShell().setBounds(initialX, initialY, popupSize.x, popupSize.y); // Now set up a listener to monitor any changes in size. getShell().addListener(SWT.Resize, new Listener() { public void handleEvent(Event e) { popupSize = getShell().getSize(); if (infoPopup != null) { infoPopup.adjustBounds(); } } }); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d2ea3c55344390a188e5980181bdad548a74bfc4/ContentProposalAdapter.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
5765,
5694,
1435,
288,
1082,
202,
759,
968,
3134,
3325,
1807,
2117,
316,
2562,
5513,
18,
1082,
202,
2148,
2117,
273,
3325,
18,
588,
4236,
7675,
1458,
12,
7098,
18,
588,
3054,
9334,
6862,
202,
2011,
16,
3325,
18,
588,
2735,
10663,
1082,
202,
474,
2172,
60,
273,
2117,
18,
92,
397,
26839,
3079,
67,
11271,
31,
1082,
202,
474,
2172,
61,
273,
2117,
18,
93,
397,
3325,
18,
588,
1225,
7675,
93,
397,
26839,
3079,
67,
11271,
31,
1082,
202,
759,
971,
732,
854,
21079,
913,
16,
999,
326,
3347,
1754,
358,
1082,
202,
759,
1754,
326,
3325,
18,
1082,
202,
430,
261,
588,
14592,
5933,
1359,
2885,
1435,
422,
4629,
7057,
1013,
67,
11356,
13,
288,
9506,
202,
19463,
12626,
5694,
273,
3325,
1350,
4216,
18,
588,
29739,
5694,
12,
7098,
1769,
9506,
202,
6769,
60,
273,
2172,
60,
397,
12626,
5694,
18,
92,
31,
9506,
202,
6769,
61,
273,
2117,
18,
93,
397,
12626,
5694,
18,
93,
397,
12626,
5694,
18,
4210,
31,
1082,
202,
97,
1082,
202,
759,
971,
1915,
353,
1158,
1269,
963,
16,
2944,
518,
635,
3637,
1082,
202,
759,
731,
279,
3511,
603,
326,
1014,
18,
1082,
202,
430,
261,
16086,
1225,
422,
446,
13,
288,
9506,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
9506,
202,
892,
18,
4210,
7002,
273,
14708,
1388,
18,
588,
1180,
2686,
1435,
25083,
202,
14,
26839,
3079,
67,
7305,
67,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
5765,
5694,
1435,
288,
1082,
202,
759,
968,
3134,
3325,
1807,
2117,
316,
2562,
5513,
18,
1082,
202,
2148,
2117,
273,
3325,
18,
588,
4236,
7675,
1458,
12,
7098,
18,
588,
3054,
9334,
6862,
202,
2011,
16,
3325,
18,
588,
2735,
10663,
1082,
202,
474,
2172,
60,
273,
2117,
18,
92,
397,
26839,
3079,
67,
11271,
31,
1082,
202,
474,
2172,
61,
273,
2117,
18,
93,
397,
3325,
18,
588,
1225,
7675,
93,
397,
26839,
3079,
67,
11271,
31,
1082,
202,
759,
971,
732,
854,
21079,
913,
16,
999,
326,
3347,
1754,
358,
1082,
202,
759,
1754,
326,
3325,
18,
1082,
202,
430,
261,
588,
14592,
5933,
1359,
2885,
1435,
422,
4629,
7057,
1013,
67,
2
] |
public RubyClass defineClass(String name, RubyClass superClass) { if (superClass == null) { superClass = getClasses().getObjectClass(); } RubyClass newClass = RubyClass.newClass(this, superClass, name); newClass.makeMetaClass(superClass.getMetaClass()); newClass.inheritedBy(superClass); classes.putClass(name, newClass); return newClass; } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/fffe7aa25510c5fa1f975232bea0ef0fd24762d7/Ruby.java/buggy/src/org/jruby/Ruby.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
54,
10340,
797,
11255,
797,
12,
780,
529,
16,
54,
10340,
797,
9565,
797,
15329,
430,
12,
9565,
797,
631,
2011,
15329,
9565,
797,
33,
588,
4818,
7675,
588,
921,
797,
5621,
97,
54,
10340,
797,
2704,
797,
33,
54,
10340,
797,
18,
2704,
797,
12,
2211,
16,
9565,
797,
16,
529,
1769,
2704,
797,
18,
6540,
2781,
797,
12,
9565,
797,
18,
588,
2781,
797,
10663,
2704,
797,
18,
6018,
18696,
12,
9565,
797,
1769,
4701,
18,
458,
797,
12,
529,
16,
2704,
797,
1769,
2463,
2704,
797,
31,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
54,
10340,
797,
11255,
797,
12,
780,
529,
16,
54,
10340,
797,
9565,
797,
15329,
430,
12,
9565,
797,
631,
2011,
15329,
9565,
797,
33,
588,
4818,
7675,
588,
921,
797,
5621,
97,
54,
10340,
797,
2704,
797,
33,
54,
10340,
797,
18,
2704,
797,
12,
2211,
16,
9565,
797,
16,
529,
1769,
2704,
797,
18,
6540,
2781,
797,
12,
9565,
797,
18,
588,
2781,
797,
10663,
2704,
797,
18,
6018,
18696,
12,
9565,
797,
1769,
4701,
18,
458,
797,
12,
529,
16,
2704,
797,
1769,
2463,
2704,
797,
31,
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
] | ||
case TokenStream.IFNE : val = stack[stackTop]; | } case TokenStream.IFNE : { Object val = stack[stackTop]; boolean valBln; | public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/052726b68e684efc593535d50a73767571084837/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2146,
16,
15261,
16,
833,
16,
2295,
1162,
3651,
16,
326,
751,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
261,
4293,
1162,
3651,
18,
3175,
1557,
422,
446,
13,
18701,
692,
374,
294,
2295,
1162,
3651,
18,
3175,
1557,
18,
2469,
31,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
943,
7833,
6148,
273,
326,
751,
18,
1282,
2747,
7833,
6148,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
3639,
727,
509,
15234,
67,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2
] |
return eaid; } | GIMatrix matrix = new GIMatrix(getExtendedAdjacenyMatrix(atomContainer)); GIMatrix tempMatrix = matrix; GIMatrix fixedMatrix = matrix; for (int i = 2; i < atomContainer.getAtomCount(); i++) { tempMatrix = tempMatrix.multiply(fixedMatrix); matrix = matrix.add(tempMatrix); } for (int i = 0; i < atomContainer.getAtomCount(); i++) { matrix.setValueAt(i,i,matrix.getValueAt(i,i)+1); } double eaid = matrix.trace(); if (debug) { System.out.println(); System.out.println("final matrix - the sum of the powers of EA matrix: "); System.out.println(); displayMatrix(matrix.getArrayValue()); System.out.println(); System.out.println("eaid number: "+ eaid); System.out.println(); } return eaid; } | public static double getEAIDNumber(AtomContainer atomContainer) throws org.openscience.cdk.exception.NoSuchAtomException, BadMatrixFormatException,IndexOutOfBoundsException { boolean debug = false; GIMatrix matrix = new GIMatrix(getExtendedAdjacenyMatrix(atomContainer)); GIMatrix tempMatrix = matrix; GIMatrix fixedMatrix = matrix; for (int i = 2; i < atomContainer.getAtomCount(); i++) { tempMatrix = tempMatrix.multiply(fixedMatrix); matrix = matrix.add(tempMatrix); } for (int i = 0; i < atomContainer.getAtomCount(); i++) { matrix.setValueAt(i,i,matrix.getValueAt(i,i)+1); } double eaid = matrix.trace(); if (debug) { System.out.println(); System.out.println("final matrix - the sum of the powers of EA matrix: "); System.out.println(); displayMatrix(matrix.getArrayValue()); System.out.println(); System.out.println("eaid number: "+ eaid); System.out.println(); } return eaid; } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/0971906b242e8b5a0e534a085a4db5801b729cca/HuLuIndexTool.java/clean/src/org/openscience/cdk/graph/invariant/HuLuIndexTool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1645,
4774,
37,
734,
1854,
12,
3641,
2170,
22487,
13,
1216,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
4064,
18,
28341,
3641,
503,
16,
1082,
202,
6434,
4635,
9291,
16,
30548,
202,
95,
202,
202,
6494,
1198,
273,
629,
31,
9506,
202,
43,
3445,
1942,
3148,
273,
394,
611,
3445,
1942,
12,
588,
11456,
17886,
1077,
275,
93,
4635,
12,
7466,
2170,
10019,
9506,
202,
43,
3445,
1942,
1906,
4635,
273,
3148,
31,
202,
202,
43,
3445,
1942,
5499,
4635,
273,
3148,
31,
202,
202,
1884,
261,
474,
277,
273,
576,
31,
277,
411,
22487,
18,
588,
3641,
1380,
5621,
277,
27245,
202,
202,
95,
1082,
202,
5814,
4635,
273,
1906,
4635,
18,
7027,
1283,
12,
12429,
4635,
1769,
1082,
202,
5667,
273,
3148,
18,
1289,
12,
5814,
4635,
1769,
6862,
202,
97,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
22487,
18,
588,
3641,
1380,
5621,
277,
27245,
202,
202,
95,
1082,
202,
5667,
18,
542,
620,
861,
12,
77,
16,
77,
16,
5667,
18,
24805,
861,
12,
77,
16,
77,
27921,
21,
1769,
9506,
202,
97,
202,
202,
9056,
425,
20736,
273,
3148,
18,
5129,
5621,
9506,
202,
430,
261,
4148,
13,
202,
202,
95,
1082,
202,
3163,
18,
659,
18,
8222,
5621,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
6385,
3148,
300,
326,
2142,
434,
326,
7602,
414,
434,
512,
37,
3148,
30,
315,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
5621,
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,
760,
1645,
4774,
37,
734,
1854,
12,
3641,
2170,
22487,
13,
1216,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
4064,
18,
28341,
3641,
503,
16,
1082,
202,
6434,
4635,
9291,
16,
30548,
202,
95,
202,
202,
6494,
1198,
273,
629,
31,
9506,
202,
43,
3445,
1942,
3148,
273,
394,
611,
3445,
1942,
12,
588,
11456,
17886,
1077,
275,
93,
4635,
12,
7466,
2170,
10019,
9506,
202,
43,
3445,
1942,
1906,
4635,
273,
3148,
31,
202,
202,
43,
3445,
1942,
5499,
4635,
273,
3148,
31,
202,
202,
1884,
261,
474,
277,
273,
576,
31,
277,
411,
22487,
18,
588,
3641,
1380,
5621,
277,
27245,
202,
202,
95,
1082,
202,
5814,
4635,
273,
1906,
4635,
18,
2
] |
throw new ParseException("Unable to resolve namespace", 0); | String msg = "parsing.error.model-element-name.namespace-unresolved"; throw new ParseException(Translator.localize(msg), 0); | protected void parseModelElement(Object me, String text) throws ParseException { MyTokenizer st; Vector path = null; String name = null; String stereotype = null; String token; try { st = new MyTokenizer(text, "<<,\u00AB,\u00BB,>>,::"); while (st.hasMoreTokens()) { token = st.nextToken(); if ("<<".equals(token) || "\u00AB".equals(token)) { if (stereotype != null) { throw new ParseException("Element cannot have " + "two groups of stereotypes", st.getTokenIndex()); } stereotype = ""; while (true) { token = st.nextToken(); if (">>".equals(token) || "\u00BB".equals(token)) { break; } stereotype += token; } } else if ("::".equals(token)) { if (name != null) { name = name.trim(); } if (path != null && (name == null || "".equals(name))) { throw new ParseException("Element cannot have " + "anonymous qualifiers", st.getTokenIndex()); } if (path == null) { path = new Vector(); } if (name != null) { path.add(name); } name = null; } else { if (name != null) { throw new ParseException("Element cannot have " + "two word names or qualifiers", st .getTokenIndex()); } name = token; } } } catch (NoSuchElementException nsee) { throw new ParseException("Unexpected end of element", text.length()); } catch (ParseException pre) { throw pre; } if (name != null) { name = name.trim(); } if (path != null && (name == null || "".equals(name))) { throw new ParseException("Qualified names must end with a name", 0); } if (name != null && name.startsWith("+")) { name = name.substring(1).trim(); Model.getCoreHelper().setVisibility(me, Model.getVisibilityKind().getPublic()); } if (name != null && name.startsWith("-")) { name = name.substring(1).trim(); Model.getCoreHelper().setVisibility(me, Model.getVisibilityKind().getPrivate()); } if (name != null && name.startsWith("#")) { name = name.substring(1).trim(); Model.getCoreHelper().setVisibility(me, Model.getVisibilityKind().getProtected()); } if (name != null && name.startsWith("~")) { name = name.substring(1).trim(); Model.getCoreHelper().setVisibility(me, Model.getVisibilityKind().getPackage()); } if (name != null) { Model.getCoreHelper().setName(me, name); } NotationUtilityUml.dealWithStereotypes(me, stereotype, isValue("fullyHandleStereotypes")); if (path != null) { Object nspe = Model.getModelManagementHelper().getElement( path, Model.getFacade().getModel(me)); if (nspe == null || !(Model.getFacade().isANamespace(nspe))) { throw new ParseException("Unable to resolve namespace", 0); } Object model = ProjectManager.getManager().getCurrentProject().getRoot(); if (!Model.getCoreHelper().getAllPossibleNamespaces(me, model) .contains(nspe)) { throw new ParseException("Invalid namespace for element", 0); } Model.getCoreHelper().addOwnedElement(nspe, me); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/3a348b60807c47d91728708433b2fa7fd9dec972/ModelElementNameNotationUml.java/buggy/src_new/org/argouml/uml/notation/uml/ModelElementNameNotationUml.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1109,
1488,
1046,
12,
921,
1791,
16,
514,
977,
13,
3639,
1216,
10616,
288,
3639,
8005,
10524,
384,
31,
3639,
5589,
589,
273,
446,
31,
3639,
514,
508,
273,
446,
31,
3639,
514,
22890,
10570,
273,
446,
31,
3639,
514,
1147,
31,
3639,
775,
288,
5411,
384,
273,
394,
8005,
10524,
12,
955,
16,
3532,
32,
17211,
89,
713,
2090,
17211,
89,
713,
9676,
16,
9778,
16,
30,
2773,
1769,
5411,
1323,
261,
334,
18,
5332,
7417,
5157,
10756,
288,
7734,
1147,
273,
384,
18,
4285,
1345,
5621,
7734,
309,
7566,
17685,
9654,
14963,
12,
2316,
13,
747,
1548,
89,
713,
2090,
9654,
14963,
12,
2316,
3719,
288,
10792,
309,
261,
334,
822,
10570,
480,
446,
13,
288,
13491,
604,
394,
10616,
2932,
1046,
2780,
1240,
315,
27573,
397,
315,
15415,
3252,
434,
22890,
20297,
3113,
27573,
384,
18,
588,
1345,
1016,
10663,
10792,
289,
10792,
22890,
10570,
273,
1408,
31,
10792,
1323,
261,
3767,
13,
288,
13491,
1147,
273,
384,
18,
4285,
1345,
5621,
13491,
309,
261,
6441,
2984,
18,
14963,
12,
2316,
13,
747,
1548,
89,
713,
9676,
9654,
14963,
12,
2316,
3719,
288,
18701,
898,
31,
13491,
289,
13491,
22890,
10570,
1011,
1147,
31,
10792,
289,
7734,
289,
469,
309,
261,
6877,
2773,
18,
14963,
12,
2316,
3719,
288,
10792,
309,
261,
529,
480,
446,
13,
288,
13491,
508,
273,
508,
18,
5290,
5621,
10792,
289,
10792,
309,
261,
803,
480,
446,
597,
261,
529,
422,
446,
747,
1408,
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,
1109,
1488,
1046,
12,
921,
1791,
16,
514,
977,
13,
3639,
1216,
10616,
288,
3639,
8005,
10524,
384,
31,
3639,
5589,
589,
273,
446,
31,
3639,
514,
508,
273,
446,
31,
3639,
514,
22890,
10570,
273,
446,
31,
3639,
514,
1147,
31,
3639,
775,
288,
5411,
384,
273,
394,
8005,
10524,
12,
955,
16,
3532,
32,
17211,
89,
713,
2090,
17211,
89,
713,
9676,
16,
9778,
16,
30,
2773,
1769,
5411,
1323,
261,
334,
18,
5332,
7417,
5157,
10756,
288,
7734,
1147,
273,
384,
18,
4285,
1345,
5621,
7734,
309,
7566,
17685,
9654,
14963,
12,
2316,
13,
747,
1548,
89,
713,
2090,
9654,
14963,
12,
2316,
3719,
288,
10792,
309,
261,
334,
822,
10570,
480,
446,
2
] |
if (array.length == iCodeTop) { byte[] ba = new byte[iCodeTop * 2]; System.arraycopy(array, 0, ba, 0, iCodeTop); itsData.itsICode = array = ba; | if (iCodeTop == array.length) { array = increaseICodeCapasity(iCodeTop, 1); | private int addByte(int b, int iCodeTop) { byte[] array = itsData.itsICode; if (array.length == iCodeTop) { byte[] ba = new byte[iCodeTop * 2]; System.arraycopy(array, 0, ba, 0, iCodeTop); itsData.itsICode = array = ba; } array[iCodeTop++] = (byte)b; return iCodeTop; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b41bc47f816e88fc74cb209f1323974fbed7be07/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
527,
3216,
12,
474,
324,
16,
509,
277,
1085,
3401,
13,
288,
3639,
1160,
8526,
526,
273,
2097,
751,
18,
1282,
45,
1085,
31,
3639,
309,
261,
1126,
18,
2469,
422,
277,
1085,
3401,
13,
288,
5411,
1160,
8526,
9846,
273,
394,
1160,
63,
77,
1085,
3401,
380,
576,
15533,
5411,
2332,
18,
1126,
3530,
12,
1126,
16,
374,
16,
9846,
16,
374,
16,
277,
1085,
3401,
1769,
5411,
2097,
751,
18,
1282,
45,
1085,
273,
526,
273,
9846,
31,
3639,
289,
3639,
526,
63,
77,
1085,
3401,
9904,
65,
273,
261,
7229,
13,
70,
31,
3639,
327,
277,
1085,
3401,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
527,
3216,
12,
474,
324,
16,
509,
277,
1085,
3401,
13,
288,
3639,
1160,
8526,
526,
273,
2097,
751,
18,
1282,
45,
1085,
31,
3639,
309,
261,
1126,
18,
2469,
422,
277,
1085,
3401,
13,
288,
5411,
1160,
8526,
9846,
273,
394,
1160,
63,
77,
1085,
3401,
380,
576,
15533,
5411,
2332,
18,
1126,
3530,
12,
1126,
16,
374,
16,
9846,
16,
374,
16,
277,
1085,
3401,
1769,
5411,
2097,
751,
18,
1282,
45,
1085,
273,
526,
273,
9846,
31,
3639,
289,
3639,
526,
63,
77,
1085,
3401,
9904,
65,
273,
261,
7229,
13,
70,
31,
3639,
327,
277,
1085,
3401,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public OpenDefinitionsDocument openFile(FileOpenSelector com) throws IOException, OperationCanceledException, AlreadyOpenException { // Close an untitled, unchanged document if it is the only one open boolean closeUntitled = _hasOneEmptyDocument(); OpenDefinitionsDocument oldDoc = _activeDocument; OpenDefinitionsDocument openedDoc = openFileHelper(com); if (closeUntitled) closeFileHelper(oldDoc); setActiveDocument(openedDoc); return openedDoc; } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/010ae297b5b09284b0dfa287aa524a83e41fa50d/DefaultSingleDisplayModel.java/buggy/drjava/src/edu/rice/cs/drjava/model/DefaultSingleDisplayModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
3502,
7130,
2519,
225,
31622,
12,
812,
3678,
4320,
225,
532,
13,
225,
1216,
1850,
1860,
16,
225,
4189,
23163,
503,
16,
225,
17009,
3678,
503,
225,
288,
7734,
368,
225,
3527,
225,
392,
225,
640,
88,
305,
1259,
16,
225,
14827,
225,
1668,
225,
309,
225,
518,
225,
353,
225,
326,
225,
1338,
225,
1245,
225,
1696,
3639,
1250,
225,
1746,
57,
496,
305,
1259,
225,
273,
225,
389,
5332,
3335,
1921,
2519,
5621,
3639,
3502,
7130,
2519,
225,
1592,
1759,
225,
273,
225,
389,
3535,
2519,
31,
3639,
3502,
7130,
2519,
225,
10191,
1759,
225,
273,
225,
31622,
2276,
12,
832,
1769,
3639,
309,
225,
261,
4412,
57,
496,
305,
1259,
13,
225,
1746,
812,
2276,
12,
1673,
1759,
1769,
3639,
20669,
2519,
12,
25304,
1759,
1769,
3639,
327,
225,
10191,
1759,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
3502,
7130,
2519,
225,
31622,
12,
812,
3678,
4320,
225,
532,
13,
225,
1216,
1850,
1860,
16,
225,
4189,
23163,
503,
16,
225,
17009,
3678,
503,
225,
288,
7734,
368,
225,
3527,
225,
392,
225,
640,
88,
305,
1259,
16,
225,
14827,
225,
1668,
225,
309,
225,
518,
225,
353,
225,
326,
225,
1338,
225,
1245,
225,
1696,
3639,
1250,
225,
1746,
57,
496,
305,
1259,
225,
273,
225,
389,
5332,
3335,
1921,
2519,
5621,
3639,
3502,
7130,
2519,
225,
1592,
1759,
225,
273,
225,
389,
3535,
2519,
31,
3639,
3502,
7130,
2519,
225,
10191,
1759,
225,
273,
225,
31622,
2276,
12,
832,
1769,
3639,
309,
225,
261,
4412,
57,
496,
305,
1259,
13,
225,
1746,
2
] | ||
System.out.println("Before CTDM: " + tm.getTrainMotionModel()); | private void loadTrain(TrainModel tm, GameTime now, FreerailsPrincipal p, int trainIndex) { /* get the details of the station the train is at */ Point point = new Point(); tm.getPosition().getHead(point); FreerailsPrincipal sp = null; NonNullElements j = new NonNullElements(KEY.PLAYERS, world, Player.AUTHORITATIVE); NonNullElements i = null; boolean flag = false; StationModel sm; while (j.next()) { sp = ((Player) j.getElement()).getPrincipal(); i = new NonNullElements(KEY.STATIONS, world, sp); while (i.next()) { sm = (StationModel) i.getElement(); if (sm.getStationX() == point.x && sm.getStationY() == point.y) { flag = true; break; } } } if (flag) { DropOffAndPickupCargoMoveGenerator dopucmg = new DropOffAndPickupCargoMoveGenerator(p, trainIndex, sp, i.getIndex(), world); Move m = dopucmg.generateMove(); moveReceiver.processMove(m); } // set the trains new destination System.out.println("Before CTDM: " + tm.getTrainMotionModel()); Move ctdm = ChangeTrainDestinationMove.generateMove(world, new ObjectKey(KEY.TRAINS, p, trainIndex), tm.getScheduleIterator().nextOrder(world)); moveReceiver.processMove(ctdm); System.out.println("After CTDM: " + ((TrainModel) world.get(KEY.TRAINS, trainIndex, p)).getTrainMotionModel()); setState(trainIndex, p, TrainModel.STATE_RUNNABLE); return; } | 9170 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9170/469d85afdfe47cd85cfe3a6dc2400ec628f5e00f/TrainController.java/buggy/railz/src/jfreerails/server/TrainController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1262,
23419,
12,
23419,
1488,
6118,
16,
14121,
950,
2037,
16,
478,
266,
264,
15208,
9155,
293,
16,
202,
565,
509,
4691,
1016,
13,
288,
202,
20308,
336,
326,
3189,
434,
326,
13282,
326,
4691,
353,
622,
1195,
202,
2148,
1634,
273,
394,
4686,
5621,
202,
16925,
18,
588,
2555,
7675,
588,
1414,
12,
1153,
1769,
202,
42,
266,
264,
15208,
9155,
1694,
273,
446,
31,
202,
8921,
3471,
525,
273,
394,
7869,
3471,
12,
3297,
18,
52,
7868,
11367,
16,
9117,
16,
202,
202,
12148,
18,
7131,
916,
1285,
12992,
1769,
202,
8921,
3471,
277,
273,
446,
31,
202,
6494,
2982,
273,
629,
31,
202,
16672,
1488,
3029,
31,
202,
17523,
261,
78,
18,
4285,
10756,
288,
202,
565,
1694,
273,
14015,
12148,
13,
525,
18,
21336,
1435,
2934,
588,
9155,
5621,
202,
565,
277,
273,
394,
7869,
3471,
12,
3297,
18,
882,
15297,
16,
9117,
16,
1694,
1769,
202,
565,
1323,
261,
77,
18,
4285,
10756,
288,
202,
202,
4808,
273,
261,
16672,
1488,
13,
277,
18,
21336,
5621,
202,
202,
430,
261,
4808,
18,
588,
16672,
60,
1435,
422,
1634,
18,
92,
597,
1082,
202,
4808,
18,
588,
16672,
61,
1435,
422,
1634,
18,
93,
13,
288,
1082,
565,
2982,
273,
638,
31,
1082,
565,
898,
31,
202,
202,
97,
202,
565,
289,
202,
97,
202,
430,
261,
6420,
13,
288,
202,
565,
10895,
7210,
1876,
17968,
416,
39,
26999,
7607,
3908,
302,
556,
5286,
81,
75,
273,
394,
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,
377,
3238,
918,
1262,
23419,
12,
23419,
1488,
6118,
16,
14121,
950,
2037,
16,
478,
266,
264,
15208,
9155,
293,
16,
202,
565,
509,
4691,
1016,
13,
288,
202,
20308,
336,
326,
3189,
434,
326,
13282,
326,
4691,
353,
622,
1195,
202,
2148,
1634,
273,
394,
4686,
5621,
202,
16925,
18,
588,
2555,
7675,
588,
1414,
12,
1153,
1769,
202,
42,
266,
264,
15208,
9155,
1694,
273,
446,
31,
202,
8921,
3471,
525,
273,
394,
7869,
3471,
12,
3297,
18,
52,
7868,
11367,
16,
9117,
16,
202,
202,
12148,
18,
7131,
916,
1285,
12992,
1769,
202,
8921,
3471,
277,
273,
446,
31,
202,
6494,
2982,
273,
629,
31,
202,
16672,
1488,
3029,
31,
202,
17523,
261,
78,
18,
4285,
2
] | |
final Project project = (Project)event.getDataContext().getData(DataConstants.PROJECT); | final DataContext dataContext = event.getDataContext(); final Project project = (Project)dataContext.getData(DataConstants.PROJECT); | private ArrayList<Pair<EditorComposite, EditorWindow>> getFilesToClose (final AnActionEvent event) { final ArrayList<Pair<EditorComposite, EditorWindow>> res = new ArrayList<Pair<EditorComposite, EditorWindow>>(); final Project project = (Project)event.getDataContext().getData(DataConstants.PROJECT); final FileEditorManagerEx editorManager = FileEditorManagerEx.getInstanceEx(project); final EditorWindow[] windows = editorManager.getWindows (); final FileStatusManager fileStatusManager = FileStatusManager.getInstance(project); if (fileStatusManager != null) { for (int i = 0; i != windows.length; ++ i) { final EditorWindow window = windows [i]; final EditorComposite [] editors = window.getEditors (); for (int j = 0; j < editors.length; j++) { final EditorComposite editor = editors [j]; if (!editorManager.isChanged (editor)) { res.add (Pair.create (editor, window)); } } } } return res; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/a6bf3a8fd4f4c29e857800743aa7ef405a078de9/CloseAllUnmodifiedEditorsAction.java/buggy/source/com/intellij/ide/actions/CloseAllUnmodifiedEditorsAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
2407,
32,
4154,
32,
6946,
9400,
16,
18451,
3829,
9778,
18262,
774,
4605,
261,
6385,
1922,
1803,
1133,
871,
13,
288,
565,
727,
2407,
32,
4154,
32,
6946,
9400,
16,
18451,
3829,
9778,
400,
273,
394,
2407,
32,
4154,
32,
6946,
9400,
16,
18451,
3829,
9778,
5621,
565,
727,
1910,
1042,
501,
1042,
273,
871,
18,
588,
751,
1042,
5621,
727,
5420,
1984,
273,
261,
4109,
13,
892,
1042,
18,
588,
751,
12,
751,
2918,
18,
17147,
1769,
565,
727,
1387,
6946,
1318,
424,
4858,
1318,
273,
1387,
6946,
1318,
424,
18,
588,
1442,
424,
12,
4406,
1769,
565,
727,
18451,
3829,
8526,
9965,
273,
4858,
1318,
18,
588,
10399,
261,
1769,
565,
727,
24366,
1318,
585,
1482,
1318,
273,
24366,
1318,
18,
588,
1442,
12,
4406,
1769,
565,
309,
261,
768,
1482,
1318,
480,
446,
13,
288,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
480,
9965,
18,
2469,
31,
965,
277,
13,
288,
3639,
727,
18451,
3829,
2742,
273,
9965,
306,
77,
15533,
3639,
727,
18451,
9400,
5378,
29431,
273,
2742,
18,
588,
4666,
1383,
261,
1769,
3639,
364,
261,
474,
525,
273,
374,
31,
525,
411,
29431,
18,
2469,
31,
525,
27245,
288,
1850,
727,
18451,
9400,
4858,
273,
29431,
306,
78,
15533,
1850,
309,
16051,
9177,
1318,
18,
291,
5033,
261,
9177,
3719,
288,
5411,
400,
18,
1289,
261,
4154,
18,
2640,
261,
9177,
16,
2742,
10019,
1850,
289,
3639,
289,
1377,
289,
565,
289,
565,
327,
400,
31,
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,
3238,
2407,
32,
4154,
32,
6946,
9400,
16,
18451,
3829,
9778,
18262,
774,
4605,
261,
6385,
1922,
1803,
1133,
871,
13,
288,
565,
727,
2407,
32,
4154,
32,
6946,
9400,
16,
18451,
3829,
9778,
400,
273,
394,
2407,
32,
4154,
32,
6946,
9400,
16,
18451,
3829,
9778,
5621,
565,
727,
1910,
1042,
501,
1042,
273,
871,
18,
588,
751,
1042,
5621,
727,
5420,
1984,
273,
261,
4109,
13,
892,
1042,
18,
588,
751,
12,
751,
2918,
18,
17147,
1769,
565,
727,
1387,
6946,
1318,
424,
4858,
1318,
273,
1387,
6946,
1318,
424,
18,
588,
1442,
424,
12,
4406,
1769,
565,
727,
18451,
3829,
8526,
9965,
273,
4858,
1318,
18,
588,
10399,
261,
1769,
565,
727,
24366,
1318,
585,
2
] |
boolean targetUnderWater = targetHex.contains(Terrain.WATER) && targetHex.depth() > 0 && targEl < targetHex.surface(); boolean targetInWater = targetHex.contains(Terrain.WATER) && targetHex.depth() > 0 && targEl == targetHex.surface(); boolean targetOnLand = !(targetUnderWater || targetInWater); | boolean targetOffBoard = !game.board.contains(target.getPosition()); boolean targetUnderWater; boolean targetInWater; boolean targetOnLand; if (targetOffBoard) { targetUnderWater = true; targetInWater = false; targetOnLand = true; } else { targetUnderWater = targetHex.contains(Terrain.WATER) && targetHex.depth() > 0 && targEl < targetHex.surface(); targetInWater = targetHex.contains(Terrain.WATER) && targetHex.depth() > 0 && targEl == targetHex.surface(); targetOnLand = !(targetUnderWater || targetInWater); } | public static LosEffects calculateLos(Game game, int attackerId, Targetable target) { final Entity ae = game.getEntity(attackerId); // LOS fails if one of the entities is not deployed. if (null == ae.getPosition() || null == target.getPosition()) { LosEffects los = new LosEffects(); los.blocked = true; // TODO: come up with a better "impossible" return los; } final AttackInfo ai = new AttackInfo(); ai.attackPos = ae.getPosition(); ai.targetPos = target.getPosition(); ai.targetEntity = target.getTargetType() == Targetable.TYPE_ENTITY; ai.targetInfantry = target instanceof Infantry; ai.attackHeight = ae.getHeight(); ai.targetHeight = target.getHeight(); Hex attHex = game.board.getHex(ae.getPosition()); Hex targetHex = game.board.getHex(target.getPosition()); int attEl = ae.absHeight(); int targEl; if ( target.getTargetType() == Targetable.TYPE_ENTITY || target.getTargetType() == Targetable.TYPE_BUILDING || target.getTargetType() == Targetable.TYPE_BLDG_IGNITE ) { targEl = target.absHeight(); } else { targEl = game.board.getHex(target.getPosition()).floor(); } ai.attackAbsHeight = attEl; ai.targetAbsHeight = targEl; boolean attOffBoard = ae.isOffBoard(); boolean attUnderWater; boolean attInWater; boolean attOnLand; if (attOffBoard) { attUnderWater = true; attInWater = false; attOnLand = true; } else { attUnderWater = attHex.contains(Terrain.WATER) && attHex.depth() > 0 && attEl < attHex.surface(); attInWater = attHex.contains(Terrain.WATER) && attHex.depth() > 0 && attEl == attHex.surface(); attOnLand = !(attUnderWater || attInWater); } boolean targetUnderWater = targetHex.contains(Terrain.WATER) && targetHex.depth() > 0 && targEl < targetHex.surface(); boolean targetInWater = targetHex.contains(Terrain.WATER) && targetHex.depth() > 0 && targEl == targetHex.surface(); boolean targetOnLand = !(targetUnderWater || targetInWater); boolean underWaterCombat = targetUnderWater || attUnderWater; ai.attUnderWater = attUnderWater; ai.attInWater = attInWater; ai.attOnLand = attOnLand; ai.targetUnderWater = targetUnderWater; ai.targetInWater = targetInWater; ai.targetOnLand = targetOnLand; ai.underWaterCombat = underWaterCombat; ai.attOffBoard = attOffBoard; return calculateLos(game, ai); } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/78170c0777c4098dbed4eca987ed93c840e7e2f1/LosEffects.java/clean/megamek/src/megamek/common/LosEffects.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
511,
538,
29013,
4604,
48,
538,
12,
12496,
7920,
16,
509,
13843,
264,
548,
16,
5916,
429,
1018,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
4558,
484,
264,
548,
1769,
13491,
368,
1806,
55,
6684,
309,
1245,
434,
326,
5140,
353,
486,
19357,
18,
3639,
309,
261,
2011,
422,
14221,
18,
588,
2555,
1435,
747,
446,
422,
1018,
18,
588,
2555,
10756,
288,
5411,
511,
538,
29013,
22148,
273,
394,
511,
538,
29013,
5621,
5411,
22148,
18,
23156,
273,
638,
31,
368,
2660,
30,
12404,
731,
598,
279,
7844,
315,
381,
12708,
6,
5411,
327,
22148,
31,
3639,
289,
7734,
727,
6020,
484,
966,
14679,
273,
394,
6020,
484,
966,
5621,
3639,
14679,
18,
4558,
484,
1616,
273,
14221,
18,
588,
2555,
5621,
3639,
14679,
18,
3299,
1616,
273,
1018,
18,
588,
2555,
5621,
3639,
14679,
18,
3299,
1943,
273,
1018,
18,
588,
2326,
559,
1435,
422,
5916,
429,
18,
2399,
67,
11101,
31,
3639,
14679,
18,
3299,
13149,
304,
698,
273,
1018,
1276,
13648,
304,
698,
31,
3639,
14679,
18,
4558,
484,
2686,
273,
14221,
18,
588,
2686,
5621,
3639,
14679,
18,
3299,
2686,
273,
1018,
18,
588,
2686,
5621,
5411,
15734,
2403,
7037,
273,
7920,
18,
3752,
18,
588,
7037,
12,
8906,
18,
588,
2555,
10663,
3639,
15734,
1018,
7037,
273,
7920,
18,
3752,
18,
588,
7037,
12,
3299,
18,
588,
2555,
10663,
7734,
509,
2403,
4958,
273,
14221,
18,
5113,
2686,
5621,
3639,
509,
24202,
4958,
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,
511,
538,
29013,
4604,
48,
538,
12,
12496,
7920,
16,
509,
13843,
264,
548,
16,
5916,
429,
1018,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
4558,
484,
264,
548,
1769,
13491,
368,
1806,
55,
6684,
309,
1245,
434,
326,
5140,
353,
486,
19357,
18,
3639,
309,
261,
2011,
422,
14221,
18,
588,
2555,
1435,
747,
446,
422,
1018,
18,
588,
2555,
10756,
288,
5411,
511,
538,
29013,
22148,
273,
394,
511,
538,
29013,
5621,
5411,
22148,
18,
23156,
273,
638,
31,
368,
2660,
30,
12404,
731,
598,
279,
7844,
315,
381,
12708,
6,
5411,
327,
22148,
31,
3639,
289,
7734,
727,
6020,
484,
966,
14679,
273,
394,
6020,
484,
966,
5621,
2
] |
} | } | public static void main(String[] args) { // for developers: run 'jedit 0' to get extensive logging int level = Log.WARNING; if(args.length >= 1) { String levelStr = args[0]; if(levelStr.length() == 1 && Character.isDigit( levelStr.charAt(0))) { level = Integer.parseInt(levelStr); args[0] = null; } } // Parse command line boolean endOpts = false; settingsDirectory = MiscUtilities.constructPath( System.getProperty("user.home"),".jedit"); String portFile = "server"; boolean restore = true; boolean gui = true; // open initial view? boolean noStartupScripts = false; String userDir = System.getProperty("user.dir"); // script to run String scriptFile = null; for(int i = 0; i < args.length; i++) { String arg = args[i]; if(arg == null) continue; else if(arg.length() == 0) args[i] = null; else if(arg.startsWith("-") && !endOpts) { if(arg.equals("--")) endOpts = true; else if(arg.equals("-usage")) { version(); System.err.println(); usage(); System.exit(1); } else if(arg.equals("-version")) { version(); System.exit(1); } else if(arg.equals("-nosettings")) settingsDirectory = null; else if(arg.startsWith("-settings=")) settingsDirectory = arg.substring(10); else if(arg.startsWith("-noserver")) portFile = null; else if(arg.equals("-server")) portFile = "server"; else if(arg.startsWith("-server=")) portFile = arg.substring(8); else if(arg.startsWith("-background")) background = true; else if(arg.equals("-nogui")) gui = false; else if(arg.equals("-norestore")) restore = false; else if(arg.equals("-nostartupscripts")) noStartupScripts = true; else if(arg.startsWith("-run=")) scriptFile = arg.substring(5); else { System.err.println("Unknown option: " + arg); usage(); System.exit(1); } args[i] = null; } } if(settingsDirectory != null && portFile != null) portFile = MiscUtilities.constructPath(settingsDirectory,portFile); else portFile = null; // Try connecting to another running jEdit instance if(portFile != null && new File(portFile).exists()) { int port, key; try { BufferedReader in = new BufferedReader(new FileReader(portFile)); port = Integer.parseInt(in.readLine()); key = Integer.parseInt(in.readLine()); in.close(); Socket socket = new Socket(InetAddress.getByName("127.0.0.1"),port); Writer out = new OutputStreamWriter(socket.getOutputStream(),"UTF8"); out.write(String.valueOf(key)); out.write('\n'); String script = makeServerScript(restore,args,scriptFile); out.write(script); out.close(); System.exit(0); } catch(Exception e) { // ok, this one seems to confuse newbies // endlessly, so log it as NOTICE, not // ERROR Log.log(Log.NOTICE,jEdit.class,"An error occurred" + " while connecting to the jEdit server instance."); Log.log(Log.NOTICE,jEdit.class,"This probably means that" + " jEdit crashed and/or exited abnormally"); Log.log(Log.NOTICE,jEdit.class,"the last time it was run."); Log.log(Log.NOTICE,jEdit.class,"If you don't" + " know what this means, don't worry."); Log.log(Log.NOTICE,jEdit.class,e); } } // MacOS X GUI hacks if(System.getProperty("os.name").indexOf("Mac") != -1) { // put the menu bar at the top of the screen, as opposed to // inside the jEdit window System.getProperties().put("com.apple.macos.useScreenMenuBar","true"); } // don't show splash screen if there is a file named // 'nosplash' in the settings directory if(!new File(settingsDirectory,"nosplash").exists()) GUIUtilities.showSplashScreen(); Log.init(true,level); // Initialize activity log and settings directory Writer stream; if(settingsDirectory != null) { File _settingsDirectory = new File(settingsDirectory); if(!_settingsDirectory.exists()) _settingsDirectory.mkdirs(); File _macrosDirectory = new File(settingsDirectory,"macros"); if(!_macrosDirectory.exists()) _macrosDirectory.mkdir(); String logPath = MiscUtilities.constructPath( settingsDirectory,"activity.log"); try { stream = new BufferedWriter(new FileWriter(logPath)); } catch(Exception e) { e.printStackTrace(); stream = null; } } else { stream = null; } Log.setLogWriter(stream); Log.log(Log.NOTICE,jEdit.class,"jEdit version " + getVersion()); Log.log(Log.MESSAGE,jEdit.class,"Settings directory is " + settingsDirectory); // Initialize server if(portFile != null) { server = new EditServer(portFile); if(!server.isOK()) server = null; } else { if(background) { background = false; System.err.println("You cannot specify both the" + " -background and -noserver switches"); } } // Get things rolling initMisc(); initSystemProperties(); BeanShell.init(); GUIUtilities.advanceSplashProgress(); if(jEditHome != null) initSiteProperties(); initUserProperties(); initPLAF(); initActions(); initDockables(); GUIUtilities.advanceSplashProgress(); initPlugins(); if(settingsDirectory != null) { File history = new File(MiscUtilities.constructPath( settingsDirectory,"history")); if(history.exists()) historyModTime = history.lastModified(); HistoryModel.loadHistory(history); File recent = new File(MiscUtilities.constructPath( settingsDirectory,"recent.xml")); if(recent.exists()) recentModTime = recent.lastModified(); BufferHistory.load(recent); } Abbrevs.load(); GUIUtilities.advanceSplashProgress(); // Buffer sort sortBuffers = getBooleanProperty("sortBuffers"); sortByName = getBooleanProperty("sortByName"); reloadModes(); GUIUtilities.advanceSplashProgress(); SearchAndReplace.load(); FavoritesVFS.loadFavorites(); Macros.loadMacros(); GUIUtilities.advanceSplashProgress(); // Start plugins for(int i = 0; i < jars.size(); i++) { ((EditPlugin.JAR)jars.elementAt(i)).getClassLoader() .startAllPlugins(); } // Run startup scripts, after plugins, proeprties, etc // are loaded if(!noStartupScripts && jEditHome != null) { String path = MiscUtilities.constructPath(jEditHome,"startup"); File file = new File(path); if(file.exists()) runStartupScripts(file); } if(!noStartupScripts && settingsDirectory != null) { String path = MiscUtilities.constructPath(settingsDirectory,"startup"); File file = new File(path); if(!file.exists()) file.mkdirs(); else runStartupScripts(file); } // Run script specified with -run= parameter if(scriptFile != null) { scriptFile = MiscUtilities.constructPath(userDir,scriptFile); BeanShell.runScript(null,scriptFile,false,false); } // Must be after plugins are started!!! propertiesChanged(); GUIUtilities.advanceSplashProgress(); Buffer buffer = openFiles(null,userDir,args); if(buffer != null) { // files specified on command line; force initial view // to open gui = true; } String splitConfig = null; if(restore && settingsDirectory != null && jEdit.getBooleanProperty("restore") && (bufferCount == 0 || jEdit.getBooleanProperty("restore.cli"))) { splitConfig = restoreOpenFiles(); } if(bufferCount == 0 && gui) newFile(null); // Create the view and hide the splash screen. final Buffer _buffer = buffer; final String _splitConfig = splitConfig; final boolean _gui = gui; GUIUtilities.advanceSplashProgress(); SwingUtilities.invokeLater(new Runnable() { public void run() { EditBus.send(new EditorStarted(null)); if(_gui) { View view; if(_buffer != null) view = newView(null,_buffer); else view = newView(null,_splitConfig); } // Start I/O threads VFSManager.start(); // Start edit server if(server != null) server.start(); GUIUtilities.hideSplashScreen(); Log.log(Log.MESSAGE,jEdit.class,"Startup " + "complete"); } }); } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/b9738181fd39b892d5d7eee50449258111a26b08/jEdit.java/clean/org/gjt/sp/jedit/jEdit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
202,
95,
202,
202,
759,
364,
21701,
30,
1086,
296,
78,
4619,
374,
11,
358,
336,
1110,
14315,
2907,
202,
202,
474,
1801,
273,
1827,
18,
9511,
31,
202,
202,
430,
12,
1968,
18,
2469,
1545,
404,
13,
202,
202,
95,
1082,
202,
780,
1801,
1585,
273,
833,
63,
20,
15533,
1082,
202,
430,
12,
2815,
1585,
18,
2469,
1435,
422,
404,
597,
6577,
18,
291,
10907,
12,
9506,
202,
2815,
1585,
18,
3001,
861,
12,
20,
20349,
1082,
202,
95,
9506,
202,
2815,
273,
2144,
18,
2670,
1702,
12,
2815,
1585,
1769,
9506,
202,
1968,
63,
20,
65,
273,
446,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
759,
2884,
1296,
980,
202,
202,
6494,
679,
5476,
273,
629,
31,
202,
202,
4272,
2853,
273,
16584,
71,
11864,
18,
10062,
743,
12,
1082,
202,
3163,
18,
588,
1396,
2932,
1355,
18,
8712,
6,
3631,
9654,
78,
4619,
8863,
202,
202,
780,
1756,
812,
273,
315,
3567,
14432,
202,
202,
6494,
5217,
273,
638,
31,
202,
202,
6494,
13238,
273,
638,
31,
368,
1696,
2172,
1476,
35,
202,
202,
6494,
1158,
22178,
15041,
273,
629,
31,
202,
202,
780,
729,
1621,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
1214,
8863,
202,
202,
759,
2728,
358,
1086,
202,
202,
780,
2728,
812,
273,
446,
31,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
202,
202,
95,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
202,
95,
202,
202,
759,
364,
21701,
30,
1086,
296,
78,
4619,
374,
11,
358,
336,
1110,
14315,
2907,
202,
202,
474,
1801,
273,
1827,
18,
9511,
31,
202,
202,
430,
12,
1968,
18,
2469,
1545,
404,
13,
202,
202,
95,
1082,
202,
780,
1801,
1585,
273,
833,
63,
20,
15533,
1082,
202,
430,
12,
2815,
1585,
18,
2469,
1435,
422,
404,
597,
6577,
18,
291,
10907,
12,
9506,
202,
2815,
1585,
18,
3001,
861,
12,
20,
20349,
1082,
202,
95,
9506,
202,
2815,
273,
2144,
18,
2670,
1702,
12,
2815,
1585,
1769,
9506,
202,
1968,
63,
20,
65,
273,
446,
31,
1082,
202,
97,
202,
202,
97,
2
] |
return new HexDumper( datsrc.getInputStream(), datsrc.getLength() ); } | return new HexDumper( datsrc.getInputStream(), datsrc.getLength() ); } | public JComponent getComponent() throws IOException { return new HexDumper( datsrc.getInputStream(), datsrc.getLength() ); } | 48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/52593f153e8c738eb082809f21cc3cf8b4098b52/CompressedDataNode.java/clean/treeview/src/main/uk/ac/starlink/treeview/CompressedDataNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
29058,
10322,
1435,
1216,
1860,
288,
18701,
327,
394,
15734,
26711,
12,
1150,
4816,
18,
588,
4348,
9334,
4766,
10402,
1150,
4816,
18,
588,
1782,
1435,
11272,
13491,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
29058,
10322,
1435,
1216,
1860,
288,
18701,
327,
394,
15734,
26711,
12,
1150,
4816,
18,
588,
4348,
9334,
4766,
10402,
1150,
4816,
18,
588,
1782,
1435,
11272,
13491,
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
] |
mainFrame.getContactList().moveMetaContact(contactItem, group); | if(group != null) { mainFrame.getContactList().moveMetaContact(contactItem, group); } | public void actionPerformed(ActionEvent e){ JMenuItem menuItem = (JMenuItem) e.getSource(); String itemName = menuItem.getName(); String itemText = menuItem.getText(); if (mainFrame.getProtocolProviderForAccount(itemText) != null) { ProtocolProviderService pps = mainFrame.getProtocolProviderForAccount(itemText); AddContactDialog dialog = new AddContactDialog( mainFrame.getContactList(), contactItem, pps); dialog.setLocation( Toolkit.getDefaultToolkit().getScreenSize().width/2 - 250, Toolkit.getDefaultToolkit().getScreenSize().height/2 - 100 ); dialog.setVisible(true); } else if (itemName.equalsIgnoreCase("sendMessage")) { ContactListPanel clistPanel = mainFrame.getContactListPanel(); SwingUtilities.invokeLater(clistPanel.new RunMessageWindow( contactItem)); } else if (itemName.equalsIgnoreCase("sendFile")) { // disabled } else if (itemName.equalsIgnoreCase("renameContact")) { RenameContactDialog dialog = new RenameContactDialog( mainFrame.getContactList(), contactItem); dialog.setLocation( Toolkit.getDefaultToolkit().getScreenSize().width/2 - 200, Toolkit.getDefaultToolkit().getScreenSize().height/2 - 50 ); dialog.setVisible(true); dialog.requestFocusInFiled(); } else if (itemName.equalsIgnoreCase("viewHistory")) { HistoryWindow history = new HistoryWindow( this.mainFrame, this.contactItem); history.setVisible(true); } else if (itemName.equalsIgnoreCase("userInfo")) { Contact defaultContact = contactItem.getDefaultContact(); ProtocolProviderService defaultProvider = defaultContact.getProtocolProvider(); OperationSetWebContactInfo wContactInfo = mainFrame.getWebContactInfo(defaultProvider); CrossPlatformBrowserLauncher.openURL( wContactInfo.getWebContactInfo(defaultContact) .toString()); } else if (mainFrame.getGroupByID(itemName) != null) { MetaContactGroup group = mainFrame.getGroupByID(itemName); mainFrame.getContactList().moveMetaContact(contactItem, group); } else if (getContactFromMetaContact(itemName) != null) { Contact contact = getContactFromMetaContact(itemName); if(Constants.REMOVE_CONTACT_ASK) { String message = "<HTML>Are you sure you want to remove <B>" + this.contactItem.getDisplayName() + "</B><BR>from your contact list?</html>"; MessageDialog dialog = new MessageDialog(this.mainFrame, message, Messages.getString("remove")); int returnCode = dialog.showDialog(); if (returnCode == MessageDialog.OK_RETURN_CODE) { this.mainFrame.getContactList().removeContact(contact); } else if (returnCode == MessageDialog.OK_DONT_ASK_CODE) { this.mainFrame.getContactList().removeContact(contact); Constants.REMOVE_CONTACT_ASK = false; } } else { this.mainFrame.getContactList().removeContact(contact); } } else if (itemName.equals("allContacts")) { if(Constants.REMOVE_CONTACT_ASK) { String message = "<HTML>Are you sure you want to remove <B>" + this.contactItem.getDisplayName() + "</B><BR>from your contact list?</html>"; MessageDialog dialog = new MessageDialog(this.mainFrame, message, Messages.getString("remove")); int returnCode = dialog.showDialog(); if (returnCode == MessageDialog.OK_RETURN_CODE) { this.mainFrame.getContactList() .removeMetaContact(contactItem); } else if (returnCode == MessageDialog.OK_DONT_ASK_CODE) { this.mainFrame.getContactList() .removeMetaContact(contactItem); Constants.REMOVE_CONTACT_ASK = false; } } else { this.mainFrame.getContactList().removeMetaContact(contactItem); } } } | 43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/d3895c49e70d4dbd74cf3577cae3dce410943838/ContactRightButtonMenu.java/buggy/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactRightButtonMenu.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
15329,
3639,
804,
12958,
19711,
273,
261,
46,
12958,
13,
425,
18,
588,
1830,
5621,
3639,
514,
23488,
273,
19711,
18,
17994,
5621,
3639,
514,
761,
1528,
273,
19711,
18,
588,
1528,
5621,
3639,
309,
261,
5254,
3219,
18,
588,
5752,
2249,
1290,
3032,
12,
1726,
1528,
13,
480,
446,
13,
288,
5411,
4547,
2249,
1179,
293,
1121,
7734,
273,
2774,
3219,
18,
588,
5752,
2249,
1290,
3032,
12,
1726,
1528,
1769,
5411,
1436,
6567,
6353,
6176,
273,
394,
1436,
6567,
6353,
12,
10792,
2774,
3219,
18,
588,
6567,
682,
9334,
10792,
5388,
1180,
16,
293,
1121,
1769,
5411,
6176,
18,
542,
2735,
12,
10792,
13288,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
7956,
1225,
7675,
2819,
19,
22,
13491,
300,
16927,
16,
10792,
13288,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
7956,
1225,
7675,
4210,
19,
22,
13491,
300,
2130,
10792,
11272,
5411,
6176,
18,
542,
6207,
12,
3767,
1769,
3639,
289,
3639,
469,
309,
261,
1726,
461,
18,
14963,
5556,
2932,
4661,
1079,
6,
3719,
288,
5411,
13329,
682,
5537,
927,
376,
5537,
273,
2774,
3219,
18,
588,
6567,
682,
5537,
5621,
5411,
26145,
11864,
18,
14407,
20607,
12,
830,
376,
5537,
18,
2704,
1939,
1079,
3829,
12,
10792,
5388,
1180,
10019,
3639,
289,
3639,
469,
309,
261,
1726,
461,
18,
14963,
5556,
2932,
4661,
812,
6,
3719,
288,
5411,
368,
5673,
3639,
289,
3639,
469,
309,
261,
1726,
461,
18,
14963,
5556,
2932,
18539,
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,
26100,
12,
1803,
1133,
425,
15329,
3639,
804,
12958,
19711,
273,
261,
46,
12958,
13,
425,
18,
588,
1830,
5621,
3639,
514,
23488,
273,
19711,
18,
17994,
5621,
3639,
514,
761,
1528,
273,
19711,
18,
588,
1528,
5621,
3639,
309,
261,
5254,
3219,
18,
588,
5752,
2249,
1290,
3032,
12,
1726,
1528,
13,
480,
446,
13,
288,
5411,
4547,
2249,
1179,
293,
1121,
7734,
273,
2774,
3219,
18,
588,
5752,
2249,
1290,
3032,
12,
1726,
1528,
1769,
5411,
1436,
6567,
6353,
6176,
273,
394,
1436,
6567,
6353,
12,
10792,
2774,
3219,
18,
588,
6567,
682,
9334,
10792,
5388,
1180,
16,
293,
1121,
1769,
5411,
6176,
18,
542,
2735,
12,
10792,
13288,
8691,
18,
588,
1868,
6364,
2
] |
boolean visit(IBuildStep step) throws CoreException; | int visit(IBuildStep step) throws CoreException; | boolean visit(IBuildStep step) throws CoreException; | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/8f100afd6ce737232888384980887c4369742169/IStepVisitor.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/buildmodel/IStepVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6494,
3757,
12,
45,
3116,
4160,
2235,
13,
1216,
30015,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6494,
3757,
12,
45,
3116,
4160,
2235,
13,
1216,
30015,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cat.warn("invalid handle number"); | LOG.warn("invalid handle number"); | public void dragHandle(int mX, int mY, int anX, int anY, Handle hand) { if (hand.index < 10) { _paintButtons = false; super.dragHandle(mX, mY, anX, anY, hand); return; } int cx = _content.getX(), cy = _content.getY(); int cw = _content.getWidth(), ch = _content.getHeight(); int newX = cx, newY = cy, newW = cw, newH = ch; Dimension minSize = _content.getMinimumSize(); int minWidth = minSize.width, minHeight = minSize.height; Class edgeClass = null; Class nodeClass = (Class)ModelFacade.USE_CASE; int bx = mX, by = mY; boolean reverse = false; switch (hand.index) { case 12: //add assoc edgeClass = (Class)ModelFacade.ASSOCIATION; by = cy + ch / 2; bx = cx + cw; break; case 13: // add assoc edgeClass = (Class)ModelFacade.ASSOCIATION; reverse = true; by = cy + ch / 2; bx = cx; break; default: cat.warn("invalid handle number"); break; } if (edgeClass != null && nodeClass != null) { Editor ce = Globals.curEditor(); ModeCreateEdgeAndNode m = new ModeCreateEdgeAndNode(ce, edgeClass, nodeClass, false); m.setup((FigNode) _content, _content.getOwner(), bx, by, reverse); ce.mode(m); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/d099086bfb37f6acb8e6fe27c21af918f8847c0a/SelectionActor.java/buggy/src_new/org/argouml/uml/diagram/use_case/ui/SelectionActor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8823,
3259,
12,
474,
312,
60,
16,
509,
312,
61,
16,
509,
392,
60,
16,
509,
392,
61,
16,
5004,
948,
13,
288,
202,
430,
261,
2349,
18,
1615,
411,
1728,
13,
288,
202,
565,
389,
84,
1598,
14388,
273,
629,
31,
202,
565,
2240,
18,
15997,
3259,
12,
81,
60,
16,
312,
61,
16,
392,
60,
16,
392,
61,
16,
948,
1769,
202,
565,
327,
31,
202,
97,
202,
474,
9494,
273,
389,
1745,
18,
588,
60,
9334,
6143,
273,
389,
1745,
18,
588,
61,
5621,
202,
474,
14098,
273,
389,
1745,
18,
588,
2384,
9334,
462,
273,
389,
1745,
18,
588,
2686,
5621,
202,
474,
394,
60,
273,
9494,
16,
394,
61,
273,
6143,
16,
394,
59,
273,
14098,
16,
394,
44,
273,
462,
31,
202,
8611,
29343,
273,
389,
1745,
18,
588,
13042,
1225,
5621,
202,
474,
1131,
2384,
273,
29343,
18,
2819,
16,
1131,
2686,
273,
29343,
18,
4210,
31,
202,
797,
3591,
797,
273,
446,
31,
202,
797,
756,
797,
273,
261,
797,
13,
1488,
12467,
18,
8001,
67,
13415,
31,
202,
474,
24356,
273,
312,
60,
16,
635,
273,
312,
61,
31,
202,
6494,
4219,
273,
629,
31,
202,
9610,
261,
2349,
18,
1615,
13,
288,
202,
3593,
2593,
30,
368,
1289,
7191,
202,
565,
3591,
797,
273,
261,
797,
13,
1488,
12467,
18,
8423,
27248,
2689,
31,
202,
565,
635,
273,
6143,
397,
462,
342,
576,
31,
202,
565,
24356,
273,
9494,
397,
14098,
31,
202,
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,
377,
1071,
918,
8823,
3259,
12,
474,
312,
60,
16,
509,
312,
61,
16,
509,
392,
60,
16,
509,
392,
61,
16,
5004,
948,
13,
288,
202,
430,
261,
2349,
18,
1615,
411,
1728,
13,
288,
202,
565,
389,
84,
1598,
14388,
273,
629,
31,
202,
565,
2240,
18,
15997,
3259,
12,
81,
60,
16,
312,
61,
16,
392,
60,
16,
392,
61,
16,
948,
1769,
202,
565,
327,
31,
202,
97,
202,
474,
9494,
273,
389,
1745,
18,
588,
60,
9334,
6143,
273,
389,
1745,
18,
588,
61,
5621,
202,
474,
14098,
273,
389,
1745,
18,
588,
2384,
9334,
462,
273,
389,
1745,
18,
588,
2686,
5621,
202,
474,
394,
60,
273,
9494,
16,
394,
61,
273,
6143,
2
] |
assertEquals( 1, new XPathExpr("count( | assertEquals( 1, xpath("count( | public void testAppliedInvStatementWithSelect() throws MalformedURLException, XPathExpressionException, TransformerConfigurationException { builder.setImportSystemId(getTestingXsltSystemId("tests/xml/fake.xsl"), null); XPathExpr xp = new XPathExpr("aselect"); builder.setInvokationStatementInfo(xp, null, null); builder.build(); assertNotNull(new XPathExpr("//xsl:template[@match = '/']/xsl:apply-templates[@select = '" + xp.getExpression() + "']") .addNamespace("xsl", XSLTKeys.XSLT_NS) .toNode(builder.getCurrentStylesheetDoc()) ); assertEquals( 1, new XPathExpr("count(//xsl:apply-templates)") .addNamespace("xsl", XSLTKeys.XSLT_NS) .toInt(builder.getCurrentStylesheetDoc()) ); } | 3174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3174/2fd1712197bc0fd85d39534d07c5dc5d86f51151/UTestTemplatesBuilder.java/buggy/tests/org/tigris/juxy/builder/UTestTemplatesBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
16203,
3605,
3406,
1190,
3391,
1435,
1216,
20710,
16,
10172,
2300,
503,
16,
11519,
10737,
565,
288,
3639,
2089,
18,
542,
5010,
3163,
548,
12,
588,
22218,
60,
14414,
3163,
548,
2932,
16341,
19,
2902,
19,
28395,
18,
30903,
6,
3631,
446,
1769,
3639,
10172,
4742,
13681,
273,
394,
10172,
4742,
2932,
345,
13759,
8863,
3639,
2089,
18,
542,
11354,
367,
3406,
966,
12,
23829,
16,
446,
16,
446,
1769,
3639,
2089,
18,
3510,
5621,
3639,
25395,
12,
2704,
10172,
4742,
2932,
759,
30903,
30,
3202,
14782,
1916,
273,
2023,
18537,
30903,
30,
9010,
17,
8502,
14782,
4025,
273,
2119,
397,
13681,
18,
588,
2300,
1435,
397,
2491,
4279,
13,
4766,
565,
263,
1289,
3402,
2932,
30903,
3113,
20751,
2396,
18,
60,
4559,
56,
67,
3156,
13,
4766,
565,
263,
869,
907,
12,
9574,
18,
588,
3935,
24656,
1759,
10756,
11272,
3639,
1815,
8867,
12,
404,
16,
394,
10172,
4742,
2932,
1883,
12,
759,
30903,
30,
9010,
17,
8502,
2225,
13,
4766,
565,
263,
1289,
3402,
2932,
30903,
3113,
20751,
2396,
18,
60,
4559,
56,
67,
3156,
13,
4766,
565,
263,
869,
1702,
12,
9574,
18,
588,
3935,
24656,
1759,
10756,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
16203,
3605,
3406,
1190,
3391,
1435,
1216,
20710,
16,
10172,
2300,
503,
16,
11519,
10737,
565,
288,
3639,
2089,
18,
542,
5010,
3163,
548,
12,
588,
22218,
60,
14414,
3163,
548,
2932,
16341,
19,
2902,
19,
28395,
18,
30903,
6,
3631,
446,
1769,
3639,
10172,
4742,
13681,
273,
394,
10172,
4742,
2932,
345,
13759,
8863,
3639,
2089,
18,
542,
11354,
367,
3406,
966,
12,
23829,
16,
446,
16,
446,
1769,
3639,
2089,
18,
3510,
5621,
3639,
25395,
12,
2704,
10172,
4742,
2932,
759,
30903,
30,
3202,
14782,
1916,
273,
2023,
18537,
30903,
30,
9010,
17,
8502,
14782,
4025,
273,
2119,
397,
13681,
18,
588,
2300,
1435,
397,
2491,
4279,
13,
4766,
565,
263,
1289,
3402,
2
] |
if (!inCodeset(msg.charAt(startpos + i), codeset)) { | char c = msg.charAt(startpos + i); boolean second = (codeset == CODESET_C) && ((i % 2) != 0); if (!inCodeset(c, codeset, second)) { | private boolean nextLotInCodeset(String msg, int startpos, int codeset, int count) { if (startpos + count > msg.length()) { //Prevent ArrayOutOfBoundsException return false; } for (int i = 0; i < count; i++) { if (!inCodeset(msg.charAt(startpos + i), codeset)) { return false; } } return true; } | 47348 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47348/b389fb9670dd2516f80f2171f37906418bb9e9a6/DefaultCode128Encoder.java/buggy/barcode4j/src/java/org/krysalis/barcode4j/impl/DefaultCode128Encoder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1024,
48,
352,
382,
6295,
278,
12,
780,
1234,
16,
509,
787,
917,
16,
509,
6198,
278,
16,
509,
1056,
13,
288,
3639,
309,
261,
1937,
917,
397,
1056,
405,
1234,
18,
2469,
10756,
288,
5411,
368,
25828,
1510,
14347,
5411,
327,
629,
31,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1056,
31,
277,
27245,
288,
5411,
1149,
276,
273,
1234,
18,
3001,
861,
12,
1937,
917,
397,
277,
1769,
1250,
2205,
273,
261,
7000,
278,
422,
11128,
4043,
67,
39,
13,
597,
14015,
77,
738,
576,
13,
480,
374,
1769,
309,
16051,
267,
6295,
278,
12,
71,
16,
6198,
278,
16,
2205,
3719,
288,
7734,
327,
629,
31,
5411,
289,
3639,
289,
3639,
327,
638,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1024,
48,
352,
382,
6295,
278,
12,
780,
1234,
16,
509,
787,
917,
16,
509,
6198,
278,
16,
509,
1056,
13,
288,
3639,
309,
261,
1937,
917,
397,
1056,
405,
1234,
18,
2469,
10756,
288,
5411,
368,
25828,
1510,
14347,
5411,
327,
629,
31,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1056,
31,
277,
27245,
288,
5411,
1149,
276,
273,
1234,
18,
3001,
861,
12,
1937,
917,
397,
277,
1769,
1250,
2205,
273,
261,
7000,
278,
422,
11128,
4043,
67,
39,
13,
597,
14015,
77,
738,
576,
13,
480,
374,
1769,
309,
16051,
267,
6295,
278,
12,
71,
16,
6198,
278,
16,
2205,
3719,
288,
7734,
327,
629,
31,
5411,
289,
2
] |
if(fileName != null) { | if (fileName != null) { | void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); int returnValue = -1; if(cmd.equals("Cut") || cmd.equals("Copy") || cmd.equals("Paste")) { JInternalFrame f = getSelectedFrame(); if(f != null && f instanceof ActionListener) { ((ActionListener)f).actionPerformed(e); } } else if(cmd.equals("Step Over")) { returnValue = STEP_OVER; } else if(cmd.equals("Step Into")) { returnValue = STEP_INTO; } else if(cmd.equals("Step Out")) { returnValue = STEP_OUT; } else if(cmd.equals("Go")) { returnValue = GO; } else if(cmd.equals("Break")) { doBreak(); } else if(cmd.equals("Run to Cursor")) { returnValue = RUN_TO_CURSOR; } else if(cmd.equals("Exit")) { Exit(); } else if(cmd.equals("Open")) { Scriptable scope = getScope(); if(scope == null) { MessageDialogWrapper.showMessageDialog(this, "Can't compile scripts: no scope available", "Open", JOptionPane.ERROR_MESSAGE); } else { String fileName = chooseFile("Select a file to compile"); if(fileName != null) { new Thread(new OpenFile(this, scope, fileName)).start(); } } } else if(cmd.equals("Load")) { Scriptable scope = getScope(); if(scope == null) { MessageDialogWrapper.showMessageDialog(this, "Can't run scripts: no scope available", "Run", JOptionPane.ERROR_MESSAGE); } else { String fileName = chooseFile("Select a file to execute"); if(fileName != null) { new Thread(new LoadFile(this, scope, fileName)).start(); } } } else if(cmd.equals("More Windows...")) { MoreWindows dlg = new MoreWindows(this, fileWindows, "Window", "Files"); dlg.showDialog(this); } else if(cmd.equals("Console")) { if(console.isIcon()) { desk.getDesktopManager().deiconifyFrame(console); } console.show(); desk.getDesktopManager().activateFrame(console); console.consoleTextArea.requestFocus(); } else if(cmd.equals("Cut")) { } else if(cmd.equals("Copy")) { } else if(cmd.equals("Paste")) { } else if(cmd.equals("Go to function...")) { FindFunction dlg = new FindFunction(this, functionMap, "Go to function", "Function"); dlg.showDialog(this); } else if(cmd.equals("Tile")) { JInternalFrame[] frames = desk.getAllFrames(); int count = frames.length; int rows, cols; rows = cols = (int)Math.sqrt(count); if(rows*cols < count) { cols++; if(rows * cols < count) { rows++; } } Dimension size = desk.getSize(); int w = size.width/cols; int h = size.height/rows; int x = 0; int y = 0; for(int i = 0; i < rows; i++) { for(int j = 0; j < cols; j++) { int index = (i*cols) + j; if(index >= frames.length) { break; } JInternalFrame f = frames[index]; try { f.setIcon(false); f.setMaximum(false); } catch (Exception exc) { } desk.getDesktopManager().setBoundsForFrame(f, x, y, w, h); x += w; } y += h; x = 0; } } else if(cmd.equals("Cascade")) { JInternalFrame[] frames = desk.getAllFrames(); int count = frames.length; int x, y, w, h; x = y = 0; h = desk.getHeight(); int d = h / count; if(d > 30) d = 30; for(int i = count -1; i >= 0; i--, x += d, y += d) { JInternalFrame f = frames[i]; try { f.setIcon(false); f.setMaximum(false); } catch (Exception exc) { } Dimension dimen = f.getPreferredSize(); w = dimen.width; h = dimen.height; desk.getDesktopManager().setBoundsForFrame(f, x, y, w, h); } } else { Object obj = getFileWindow(cmd); if(obj != null) { FileWindow w = (FileWindow)obj; try { if(w.isIcon()) { w.setIcon(false); } w.setVisible(true); w.moveToFront(); w.setSelected(true); } catch(Exception exc) { } } } if(returnValue != -1) { if(currentWindow != null) currentWindow.setPosition(-1); synchronized(monitor) { this.returnValue = returnValue; monitor.notify(); } } } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
509,
7750,
273,
300,
21,
31,
3639,
309,
12,
4172,
18,
14963,
2932,
15812,
7923,
747,
1797,
18,
14963,
2932,
2951,
7923,
747,
1797,
18,
14963,
2932,
52,
14725,
6,
3719,
288,
5411,
804,
3061,
3219,
284,
273,
16625,
3219,
5621,
5411,
309,
12,
74,
480,
446,
597,
284,
1276,
25962,
13,
288,
7734,
14015,
1803,
2223,
13,
74,
2934,
1128,
13889,
12,
73,
1769,
5411,
289,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
10752,
6,
3719,
288,
5411,
7750,
273,
25538,
67,
12959,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
657,
869,
6,
3719,
288,
5411,
7750,
273,
25538,
67,
3217,
51,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
2976,
6,
3719,
288,
5411,
7750,
273,
25538,
67,
5069,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
5741,
6,
3719,
288,
5411,
7750,
273,
12389,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
7634,
6,
3719,
288,
5411,
741,
7634,
5621,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
1997,
358,
13949,
6,
3719,
288,
5411,
7750,
273,
15484,
67,
4296,
67,
7509,
55,
916,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
6767,
6,
3719,
288,
5411,
9500,
5621,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
3678,
6,
3719,
288,
5411,
22780,
2146,
273,
19203,
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,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
509,
7750,
273,
300,
21,
31,
3639,
309,
12,
4172,
18,
14963,
2932,
15812,
7923,
747,
1797,
18,
14963,
2932,
2951,
7923,
747,
1797,
18,
14963,
2932,
52,
14725,
6,
3719,
288,
5411,
804,
3061,
3219,
284,
273,
16625,
3219,
5621,
5411,
309,
12,
74,
480,
446,
597,
284,
1276,
25962,
13,
288,
7734,
14015,
1803,
2223,
13,
74,
2934,
1128,
13889,
12,
73,
1769,
5411,
289,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
10752,
6,
3719,
288,
5411,
7750,
273,
25538,
67,
12959,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
657,
2
] |
if(el.getElementsByTagName("recordSectionSize") != null) { | if(SodUtil.getElement(el, "recordSectionSize") != null) { | public RecordSectionGrouping(Element el) { try { magRange = new MagnitudeRange((Element)(el.getElementsByTagName("magnitudeRange")).item(0)); distRange = new DistanceRange((Element)el.getElementsByTagName("distanceRange") .item(0)); if(el.getElementsByTagName("individualSeisHeight") != null) { indSeisHeight = new Integer(SodUtil.getText(SodUtil.getElement(el, "individualSeisHeight"))).intValue(); } if(el.getElementsByTagName("recordSectionSize") != null) { int width = new Integer(SodUtil.getText(SodUtil.getElement(SodUtil.getElement(el, "recordSectionSize"), "width"))).intValue(); int height = new Integer(SodUtil.getText(SodUtil.getElement(SodUtil.getElement(el, "recordSectionSize"), "height"))).intValue(); recSecDim = new Dimension(width, height); } } catch(ConfigurationException ce) { GlobalExceptionHandler.handle("Error in the recordsectiondisplaygenerator configuration", ce); } } | 45996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45996/8da8e4723937e2f5d294e459631dc1dc261986d4/RecordSectionDisplayGenerator.java/buggy/src/edu/sc/seis/sod/process/waveform/RecordSectionDisplayGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
5059,
5285,
21014,
12,
1046,
415,
13,
288,
5411,
775,
288,
7734,
4447,
2655,
273,
394,
12342,
10754,
2655,
12443,
1046,
21433,
292,
18,
588,
3471,
10401,
2932,
30279,
2655,
7923,
2934,
1726,
12,
20,
10019,
7734,
2411,
2655,
273,
394,
20335,
2655,
12443,
1046,
13,
292,
18,
588,
3471,
10401,
2932,
8969,
2655,
7923,
13491,
263,
1726,
12,
20,
10019,
7734,
309,
12,
292,
18,
588,
3471,
10401,
2932,
22032,
5557,
1761,
291,
2686,
7923,
480,
446,
13,
288,
10792,
1547,
1761,
291,
2686,
273,
394,
2144,
12,
55,
369,
1304,
18,
588,
1528,
12,
55,
369,
1304,
18,
21336,
12,
292,
16,
28524,
10402,
315,
22032,
5557,
1761,
291,
2686,
6,
3719,
2934,
474,
620,
5621,
7734,
289,
7734,
309,
12,
55,
369,
1304,
18,
21336,
12,
292,
16,
315,
3366,
5285,
1225,
7923,
480,
446,
13,
288,
10792,
509,
1835,
273,
394,
2144,
12,
55,
369,
1304,
18,
588,
1528,
12,
55,
369,
1304,
18,
21336,
12,
55,
369,
1304,
18,
21336,
12,
292,
16,
28524,
21394,
315,
3366,
5285,
1225,
6,
3631,
28524,
9079,
315,
2819,
6,
3719,
2934,
474,
620,
5621,
10792,
509,
2072,
273,
394,
2144,
12,
55,
369,
1304,
18,
588,
1528,
12,
55,
369,
1304,
18,
21336,
12,
55,
369,
1304,
18,
21336,
12,
292,
16,
28524,
4766,
282,
315,
3366,
5285,
1225,
6,
3631,
28524,
7734,
315,
4210,
6,
3719,
2934,
474,
620,
5621,
10792,
1950,
2194,
5225,
273,
394,
13037,
12,
2819,
16,
2072,
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,
540,
1071,
5059,
5285,
21014,
12,
1046,
415,
13,
288,
5411,
775,
288,
7734,
4447,
2655,
273,
394,
12342,
10754,
2655,
12443,
1046,
21433,
292,
18,
588,
3471,
10401,
2932,
30279,
2655,
7923,
2934,
1726,
12,
20,
10019,
7734,
2411,
2655,
273,
394,
20335,
2655,
12443,
1046,
13,
292,
18,
588,
3471,
10401,
2932,
8969,
2655,
7923,
13491,
263,
1726,
12,
20,
10019,
7734,
309,
12,
292,
18,
588,
3471,
10401,
2932,
22032,
5557,
1761,
291,
2686,
7923,
480,
446,
13,
288,
10792,
1547,
1761,
291,
2686,
273,
394,
2144,
12,
55,
369,
1304,
18,
588,
1528,
12,
55,
369,
1304,
18,
21336,
12,
292,
16,
28524,
10402,
315,
22032,
5557,
1761,
291,
2686,
6,
3719,
2934,
474,
620,
2
] |
public SAXParserBase() {} | public SAXParserBase() { } | public SAXParserBase() {} | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/SAXParserBase.java/buggy/src_new/org/argouml/xml/SAXParserBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10168,
2678,
2171,
1435,
2618,
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,
10168,
2678,
2171,
1435,
2618,
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
] |
if (newStep <= getNumSteps()) { String c = (String) _cues.elementAt(newStep - 1); return new WizStepCue(this, c); | if (newStep <= getNumSteps()) { String c = (String) _cues.elementAt(newStep - 1); return new WizStepCue(this, c); } return null; | public JPanel makePanel(int newStep) { if (newStep <= getNumSteps()) { String c = (String) _cues.elementAt(newStep - 1); return new WizStepCue(this, c); } return null; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/WizCueCards.java/buggy/src_new/org/argouml/uml/cognitive/critics/WizCueCards.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
24048,
1221,
5537,
12,
474,
394,
4160,
13,
288,
565,
309,
261,
2704,
4160,
1648,
11187,
11811,
10756,
288,
1377,
514,
276,
273,
261,
780,
13,
389,
71,
3610,
18,
2956,
861,
12,
2704,
4160,
300,
404,
1769,
1377,
327,
394,
678,
452,
4160,
39,
344,
12,
2211,
16,
276,
1769,
565,
289,
565,
327,
446,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
24048,
1221,
5537,
12,
474,
394,
4160,
13,
288,
565,
309,
261,
2704,
4160,
1648,
11187,
11811,
10756,
288,
1377,
514,
276,
273,
261,
780,
13,
389,
71,
3610,
18,
2956,
861,
12,
2704,
4160,
300,
404,
1769,
1377,
327,
394,
678,
452,
4160,
39,
344,
12,
2211,
16,
276,
1769,
565,
289,
565,
327,
446,
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
] |
null, | new Integer(pixelType[0]), | protected void initFile(String id) throws FormatException, IOException { super.initFile(id); // get the working directory File tempFile = new File(id); File workingDir = tempFile.getParentFile(); if (workingDir == null) workingDir = new File("."); String workingDirPath = workingDir.getPath() + File.separator; String[] ls = workingDir.list(); // check if we have any of the required header file types int cfgPos = -1; int anoPos = -1; int recPos = -1; int timPos = -1; int csvPos = -1; int zpoPos = -1; int htmPos = -1; int filesPt = 0; files = new String[ls.length]; String tempFileName = tempFile.getName(); int dot = tempFileName.lastIndexOf("."); String check = dot < 0 ? tempFileName : tempFileName.substring(0, dot); // locate appropriate .tim, .csv, .zpo, .htm and .tif files String prefix = null; for (int i=0; i<ls.length; i++) { // make sure that the file has a name similar to the name of the // specified file int d = ls[i].lastIndexOf("."); String s = dot < 0 ? ls[i] : ls[i].substring(0, d); String filename = ls[i].toLowerCase(); if (s.startsWith(check) || check.startsWith(s) || ((prefix != null) && (s.startsWith(prefix)))) { if (cfgPos == -1) { if (filename.endsWith(".cfg")) { cfgPos = i; prefix = ls[i].substring(0, d); } } if (anoPos == -1) { if (filename.endsWith(".ano")) { anoPos = i; prefix = ls[i].substring(0, d); } } if (recPos == -1) { if (filename.endsWith(".rec")) { recPos = i; prefix = ls[i].substring(0, d); } } if (timPos == -1) { if (filename.endsWith(".tim")) { timPos = i; prefix = ls[i].substring(0, d); } } if (csvPos == -1) { if (filename.endsWith(".csv")) { csvPos = i; prefix = ls[i].substring(0, d); } } if (zpoPos == -1) { if (filename.endsWith(".zpo")) { zpoPos = i; prefix = ls[i].substring(0, d); } } if (htmPos == -1) { if (filename.endsWith(".htm")) { htmPos = i; prefix = ls[i].substring(0, d); } } if (filename.endsWith(".tif") || filename.endsWith(".tiff")) { files[filesPt] = workingDirPath + ls[i]; filesPt++; } try { String extension = filename.substring(filename.lastIndexOf(".") + 1); int num = Integer.parseInt(extension); isTiff = false; files[filesPt] = workingDirPath + ls[i]; filesPt++; } catch (Exception e) { } } } String[] tempFiles = files; files = new String[filesPt]; System.arraycopy(tempFiles, 0, files, 0, filesPt); numImages = files.length; BufferedReader read; char[] data; StringTokenizer t; // highly questionable metadata parsing // we always parse the .tim and .htm files if they exist, along with // either the .csv file or the .zpo file if (timPos != -1) { tempFile = new File(workingDir, ls[timPos]); read = new BufferedReader(new FileReader(tempFile)); data = new char[(int) tempFile.length()]; read.read(data); t = new StringTokenizer(new String(data)); int tNum = 0; // can ignore "Zero x" and "Extra int" String[] hashKeys = {"Number of Wavelengths/Timepoints", "Zero 1", "Zero 2", "Number of slices", "Extra int", "Calibration Unit", "Pixel Size Y", "Pixel Size X", "Image Width", "Image Length", "Origin X", "SubfileType X", "Dimension Label X", "Origin Y", "SubfileType Y", "Dimension Label Y", "Origin Z", "SubfileType Z", "Dimension Label Z"}; // there are 9 additional tokens, but I don't know what they're for while (t.hasMoreTokens() && tNum<hashKeys.length) { String token = t.nextToken(); while ((tNum == 1 || tNum == 2) && !token.trim().equals("0")) { tNum++; } if (tNum == 4) { try { Integer.parseInt(token); } catch (Exception e) { tNum++; } } metadata.put(hashKeys[tNum], token); tNum++; } } if (csvPos != -1) { tempFile = new File(workingDir, ls[csvPos]); read = new BufferedReader(new FileReader(tempFile)); data = new char[(int) tempFile.length()]; read.read(data); t = new StringTokenizer(new String(data)); int tNum = 0; String[] hashKeys = {"Calibration Unit", "Pixel Size X", "Pixel Size Y", "Z slice space"}; int pt = 0; while (t.hasMoreTokens()) { if (tNum < 7) { t.nextToken(); } else if ((tNum > 7 && tNum < 12) || (tNum > 12 && tNum < 18) || (tNum > 18 && tNum < 22)) { t.nextToken(); } else if (pt < hashKeys.length) { metadata.put(hashKeys[pt], t.nextToken()); pt++; } else { metadata.put(t.nextToken() + t.nextToken(), t.nextToken()); } tNum++; } } else if (zpoPos != -1) { tempFile = new File(workingDir, ls[zpoPos]); read = new BufferedReader(new FileReader(tempFile)); data = new char[(int) tempFile.length()]; read.read(data); t = new StringTokenizer(new String(data)); int tNum = 0; while (t.hasMoreTokens()) { metadata.put("Z slice #" + tNum + " position", t.nextToken()); tNum++; } } // be aggressive about parsing the HTML file, since it's the only one that // explicitly defines the number of wavelengths and timepoints if (htmPos != -1) { // ooh, pretty HTML tempFile = new File(workingDir, ls[htmPos]); read = new BufferedReader(new FileReader(tempFile)); data = new char[(int) tempFile.length()]; read.read(data); String regex = "<p>|</p>|<br>|<hr>|<b>|</b>|<HTML>|<HEAD>|</HTML>|" + "</HEAD>|<h1>|</h1>|<HR>|</body>"; // use reflection to avoid dependency on Java 1.4-specific split method Class c = String.class; String[] tokens = new String[0]; try { Method split = c.getMethod("split", new Class[] {c}); tokens = (String[]) split.invoke(new String(data), new Object[] {regex}); } catch (Throwable e) { } for (int j=0; j<tokens.length; j++) { if (tokens[j].indexOf("<") != -1) tokens[j] = ""; } for (int j=0; j<tokens.length-1; j+=2) { if (tokens[j].indexOf("Wavelength") != -1) { metadata.put("Camera Data " + tokens[j].charAt(13), tokens[j]); j--; } else if (!tokens[j].trim().equals("")) { metadata.put(tokens[j], tokens[j+1]); } } } else { throw new FormatException("Valid header files not found."); } String details = (String) metadata.get("Experiment details:"); // parse details to get number of wavelengths and timepoints t = new StringTokenizer(details); int tokenNum = 0; String wavelengths = "1"; int numTokens = t.countTokens(); boolean foundId = false; String prevToken = ""; while (t.hasMoreTokens()) { String token = t.nextToken(); foundId = token.equals("Wavelengths"); if (foundId) { wavelengths = prevToken; } tokenNum++; prevToken = token; } channels = Integer.parseInt(wavelengths); sizeX[0] = Integer.parseInt((String) metadata.get("Image Width")); sizeY[0] = Integer.parseInt((String) metadata.get("Image Length")); sizeZ[0] = Integer.parseInt((String) metadata.get("Number of slices")); sizeC[0] = channels; sizeT[0] = getImageCount(currentId) / (sizeZ[0] * sizeC[0]); currentOrder[0] = "XYCTZ"; if (sizeZ[0] <= 0) { sizeZ[0] = 1; sizeT[0] = getImageCount(currentId) / (sizeZ[0] * sizeC[0]); } if (sizeC[0] <= 0) { sizeC[0] = 1; sizeT[0] = getImageCount(currentId) / (sizeZ[0] * sizeC[0]); } if (sizeT[0] <= 0) sizeT[0] = 1; // Populate metadata store // The metadata store we're working with. MetadataStore store = getMetadataStore(id); // populate Dimensions element String pixelSizeX = (String) metadata.get("Pixel Size X"); String pixelSizeY = (String) metadata.get("Pixel Size Y"); store.setDimensions(new Float(pixelSizeX), new Float(pixelSizeY), null, null, null, null); // populate Image element String time = (String) metadata.get("Finish Time:"); time = time.substring(1).trim(); store.setImage(null, time, null, null); // populate Pixels element String x = (String) metadata.get("Image Width"); String y = (String) metadata.get("Image Length"); String z = (String) metadata.get("Number of slices"); store.setPixels( new Integer(x), // SizeX new Integer(y), // SizeY new Integer(z), // SizeZ new Integer(wavelengths), // SizeC new Integer(getSizeT(id)), // SizeT null, // PixelType null, // BigEndian "XYCTZ", // DimensionOrder null); // Use index 0 // populate StageLabel element String originX = (String) metadata.get("Origin X"); String originY = (String) metadata.get("Origin Y"); String originZ = (String) metadata.get("Origin Z"); try { store.setStageLabel(null, new Float(originX), new Float(originY), new Float(originZ), null); } catch (Exception e) { } } | 55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/152ea9f3f73a28d996513a7cb7b820a6ed4e6b22/PerkinElmerReader.java/clean/loci/formats/in/PerkinElmerReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
368,
336,
326,
5960,
1867,
565,
1387,
18286,
273,
394,
1387,
12,
350,
1769,
565,
1387,
5960,
1621,
273,
18286,
18,
588,
3054,
812,
5621,
565,
309,
261,
20478,
1621,
422,
446,
13,
5960,
1621,
273,
394,
1387,
2932,
1199,
1769,
565,
514,
5960,
20129,
273,
5960,
1621,
18,
588,
743,
1435,
397,
1387,
18,
11287,
31,
565,
514,
8526,
7180,
273,
5960,
1621,
18,
1098,
5621,
565,
368,
866,
309,
732,
1240,
1281,
434,
326,
1931,
1446,
585,
1953,
565,
509,
2776,
1616,
273,
300,
21,
31,
565,
509,
392,
83,
1616,
273,
300,
21,
31,
565,
509,
1950,
1616,
273,
300,
21,
31,
565,
509,
1658,
1616,
273,
300,
21,
31,
565,
509,
6101,
1616,
273,
300,
21,
31,
565,
509,
998,
1631,
1616,
273,
300,
21,
31,
565,
509,
14049,
81,
1616,
273,
300,
21,
31,
565,
509,
1390,
16484,
273,
374,
31,
565,
1390,
273,
394,
514,
63,
3251,
18,
2469,
15533,
565,
514,
1906,
4771,
273,
18286,
18,
17994,
5621,
565,
509,
3928,
273,
1906,
4771,
18,
2722,
31985,
2932,
1199,
1769,
565,
514,
866,
273,
3928,
411,
374,
692,
1906,
4771,
294,
1906,
4771,
18,
28023,
12,
20,
16,
3928,
1769,
565,
368,
10627,
5505,
263,
8584,
16,
263,
6715,
16,
263,
94,
1631,
16,
263,
31180,
471,
263,
26922,
1390,
565,
514,
1633,
273,
446,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
368,
336,
326,
5960,
1867,
565,
1387,
18286,
273,
394,
1387,
12,
350,
1769,
565,
1387,
5960,
1621,
273,
18286,
18,
588,
3054,
812,
5621,
565,
309,
261,
20478,
1621,
422,
446,
13,
5960,
1621,
273,
394,
1387,
2932,
1199,
1769,
565,
514,
5960,
20129,
273,
5960,
1621,
18,
588,
743,
1435,
397,
1387,
18,
11287,
31,
565,
514,
8526,
7180,
273,
5960,
1621,
18,
1098,
5621,
565,
368,
866,
309,
732,
1240,
1281,
434,
326,
1931,
1446,
585,
1953,
565,
509,
2776,
1616,
273,
300,
21,
31,
565,
509,
392,
83,
1616,
273,
300,
2
] |
if (-1 != (nextNativeRDFNode = nativeNextElement(nativeRDFNode))) { result = parent.newRDFTreeNode(nextNativeRDFNode, parent); | if (-1 != (nextNativeRDFNode = nativeNextElement(nativeWebShell, nativeRDFNode))) { result = parent.newRDFTreeNode(nativeWebShell, nextNativeRDFNode, parent); | public Object nextElement(){ Assert.assert(null != parent); Object result = null; int nextNativeRDFNode; if (-1 != (nextNativeRDFNode = nativeNextElement(nativeRDFNode))) { result = parent.newRDFTreeNode(nextNativeRDFNode, parent); } return result;} | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/e6a5d40f61594538c2df8ef076b836a3827a1f3d/RDFEnumeration.java/clean/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/RDFEnumeration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1033,
14512,
1435,
95,
565,
5452,
18,
11231,
12,
2011,
480,
982,
1769,
565,
1033,
563,
273,
446,
31,
565,
509,
1024,
9220,
30137,
907,
31,
565,
309,
24927,
21,
480,
261,
4285,
9220,
30137,
907,
273,
6448,
2134,
1046,
12,
13635,
30137,
907,
20349,
288,
3639,
563,
273,
982,
18,
2704,
30137,
12513,
12,
4285,
9220,
30137,
907,
16,
982,
1769,
565,
289,
565,
327,
563,
31,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1033,
14512,
1435,
95,
565,
5452,
18,
11231,
12,
2011,
480,
982,
1769,
565,
1033,
563,
273,
446,
31,
565,
509,
1024,
9220,
30137,
907,
31,
565,
309,
24927,
21,
480,
261,
4285,
9220,
30137,
907,
273,
6448,
2134,
1046,
12,
13635,
30137,
907,
20349,
288,
3639,
563,
273,
982,
18,
2704,
30137,
12513,
12,
4285,
9220,
30137,
907,
16,
982,
1769,
565,
289,
565,
327,
563,
31,
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
] |
TreeBuilder model = new TreeBuilder(this) { protected void buildChildren(TreeBuilderNode node) { | final TreeBuilder model = new TreeBuilder(this) { public void buildChildren(TreeBuilderNode node) { | public DebuggerTree(Project project) { super(null, project); setScrollsOnExpand(false); myDescriptorManager = new NodeManagerImpl(project, this); TreeBuilder model = new TreeBuilder(this) { protected void buildChildren(TreeBuilderNode node) { final DebuggerTreeNodeImpl debuggerTreeNode = (DebuggerTreeNodeImpl)node; if (debuggerTreeNode.getDescriptor() instanceof DefaultNodeDescriptor) { return; } buildNode(debuggerTreeNode); } protected boolean isExpandable(TreeBuilderNode builderNode) { return DebuggerTree.this.isExpandable((DebuggerTreeNodeImpl)builderNode); } }; model.setRoot(getNodeFactory().getDefaultNode()); model.addTreeModelListener(new TreeModelListener() { public void treeNodesChanged (TreeModelEvent event) { myTipManager.hideTooltip(); } public void treeNodesInserted (TreeModelEvent event) { myTipManager.hideTooltip(); } public void treeNodesRemoved (TreeModelEvent event) { myTipManager.hideTooltip(); } public void treeStructureChanged (TreeModelEvent event) { myTipManager.hideTooltip(); } }); setModel(model); myProject = project; new TreeSpeedSearch(this); } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/153769f68e9bcb7188e6e0289d821933d4d9a7df/DebuggerTree.java/buggy/source/com/intellij/debugger/ui/impl/watch/DebuggerTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
28645,
2471,
12,
4109,
1984,
13,
288,
565,
2240,
12,
2011,
16,
1984,
1769,
565,
444,
6806,
87,
1398,
12271,
12,
5743,
1769,
565,
3399,
3187,
1318,
273,
394,
2029,
1318,
2828,
12,
4406,
16,
333,
1769,
565,
21993,
938,
273,
394,
21993,
12,
2211,
13,
288,
1377,
4750,
918,
1361,
4212,
12,
25060,
907,
756,
13,
288,
3639,
727,
28645,
12513,
2828,
19977,
12513,
273,
261,
24113,
12513,
2828,
13,
2159,
31,
3639,
309,
261,
4148,
693,
12513,
18,
588,
3187,
1435,
1276,
2989,
907,
3187,
13,
288,
1850,
327,
31,
3639,
289,
3639,
1361,
907,
12,
4148,
693,
12513,
1769,
1377,
289,
1377,
4750,
1250,
353,
12271,
429,
12,
25060,
907,
2089,
907,
13,
288,
3639,
327,
28645,
2471,
18,
2211,
18,
291,
12271,
429,
12443,
24113,
12513,
2828,
13,
9574,
907,
1769,
1377,
289,
565,
289,
31,
565,
938,
18,
542,
2375,
12,
588,
907,
1733,
7675,
588,
1868,
907,
10663,
565,
938,
18,
1289,
2471,
1488,
2223,
12,
2704,
4902,
1488,
2223,
1435,
288,
1377,
1071,
918,
2151,
3205,
5033,
377,
261,
2471,
1488,
1133,
871,
13,
288,
3399,
14189,
1318,
18,
11248,
22444,
5621,
289,
1377,
1071,
918,
2151,
3205,
27329,
565,
261,
2471,
1488,
1133,
871,
13,
288,
3399,
14189,
1318,
18,
11248,
22444,
5621,
289,
1377,
1071,
918,
2151,
3205,
10026,
377,
261,
2471,
1488,
1133,
871,
13,
288,
3399,
14189,
1318,
18,
11248,
22444,
5621,
289,
1377,
1071,
918,
2151,
6999,
5033,
261,
2471,
1488,
1133,
871,
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,
28645,
2471,
12,
4109,
1984,
13,
288,
565,
2240,
12,
2011,
16,
1984,
1769,
565,
444,
6806,
87,
1398,
12271,
12,
5743,
1769,
565,
3399,
3187,
1318,
273,
394,
2029,
1318,
2828,
12,
4406,
16,
333,
1769,
565,
21993,
938,
273,
394,
21993,
12,
2211,
13,
288,
1377,
4750,
918,
1361,
4212,
12,
25060,
907,
756,
13,
288,
3639,
727,
28645,
12513,
2828,
19977,
12513,
273,
261,
24113,
12513,
2828,
13,
2159,
31,
3639,
309,
261,
4148,
693,
12513,
18,
588,
3187,
1435,
1276,
2989,
907,
3187,
13,
288,
1850,
327,
31,
3639,
289,
3639,
1361,
907,
12,
4148,
693,
12513,
1769,
1377,
289,
1377,
4750,
1250,
353,
12271,
429,
12,
25060,
907,
2089,
907,
13,
288,
2
] |
file = new File(new URI(local)); | file = new File(new URI(encode(local))); | protected String ensureUnique(String local) { String orig = local; File file = null; try { file = new File(new URI(local)); int current = 0; while (file.exists()) { current++; int dotPos = orig.lastIndexOf('.'); if (dotPos == -1) { local = orig + current; } else { local = orig.substring(0, dotPos) + "-" + current + orig.substring(dotPos); } file = new File(new URI(local)); } } catch (URISyntaxException e) { throw new RuntimeException(e); } return local; } | 48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/7906cc8aad833d7a59deb0a76b57b5e3d3aeb284/PortfolioMirror.java/buggy/presentation/api-impl/src/java/org/theospi/portfolio/presentation/export/PortfolioMirror.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
514,
3387,
6303,
12,
780,
1191,
13,
288,
1377,
514,
1647,
273,
1191,
31,
1377,
1387,
585,
273,
446,
31,
1377,
775,
288,
540,
585,
273,
394,
1387,
12,
2704,
3699,
12,
3015,
12,
3729,
3719,
1769,
540,
509,
783,
273,
374,
31,
540,
1323,
261,
768,
18,
1808,
10756,
288,
5411,
783,
9904,
31,
5411,
509,
3928,
1616,
273,
1647,
18,
2722,
31985,
2668,
1093,
1769,
5411,
309,
261,
9811,
1616,
422,
300,
21,
13,
288,
9079,
1191,
273,
1647,
397,
783,
31,
5411,
289,
5411,
469,
288,
9079,
1191,
273,
1647,
18,
28023,
12,
20,
16,
3928,
1616,
13,
397,
7514,
397,
783,
397,
1647,
18,
28023,
12,
9811,
1616,
1769,
5411,
289,
5411,
585,
273,
394,
1387,
12,
2704,
3699,
12,
3015,
12,
3729,
3719,
1769,
540,
289,
1377,
289,
1377,
1044,
261,
3098,
14714,
425,
13,
288,
540,
604,
394,
3235,
12,
73,
1769,
1377,
289,
1377,
327,
1191,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
514,
3387,
6303,
12,
780,
1191,
13,
288,
1377,
514,
1647,
273,
1191,
31,
1377,
1387,
585,
273,
446,
31,
1377,
775,
288,
540,
585,
273,
394,
1387,
12,
2704,
3699,
12,
3015,
12,
3729,
3719,
1769,
540,
509,
783,
273,
374,
31,
540,
1323,
261,
768,
18,
1808,
10756,
288,
5411,
783,
9904,
31,
5411,
509,
3928,
1616,
273,
1647,
18,
2722,
31985,
2668,
1093,
1769,
5411,
309,
261,
9811,
1616,
422,
300,
21,
13,
288,
9079,
1191,
273,
1647,
397,
783,
31,
5411,
289,
5411,
469,
288,
9079,
1191,
273,
1647,
18,
28023,
12,
20,
16,
3928,
1616,
13,
397,
7514,
397,
783,
397,
1647,
18,
28023,
12,
9811,
1616,
1769,
5411,
289,
5411,
585,
2
] |
if(Matches.TerritoryIsNuetral.match(route.getEnd())) | if(Matches.TerritoryIsNuetral.match(route.getEnd()) && Matches.TerritoryIsEmpty.match(route.getEnd())) | private void addNeutralBattle(Route route, Collection units, TransportTracker tracker, PlayerID id, GameData data, DelegateBridge bridge) { //TODO check for pre existing battles at the sight //here and in empty battle Collection neutral = route.getMatches(Matches.TerritoryIsNuetral); //deal with the end seperately neutral.remove(route.getEnd()); m_conquered.addAll(neutral); Iterator iter = neutral.iterator(); while(iter.hasNext()) { Territory current = (Territory) iter.next(); takeOver(current, id, bridge, data); } //deal with end territory, may be the case that //a naval battle must precede th if(Matches.TerritoryIsNuetral.match(route.getEnd())) { Battle precede = getDependentAmphibiousAssault(route); if(precede == null) { m_conquered.add(route.getEnd()); takeOver(route.getEnd(), id, bridge, data); } else { Battle nonFight = getPendingBattle(route.getEnd(), false); if(nonFight == null) { nonFight = new NonFightingBattle(route.getEnd(), id, this, true, data, tracker); m_pendingBattles.add(nonFight); } nonFight.addAttack(route, units); addDependency(nonFight, precede); } } } | 8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/6d4902f6fb4cc244abe3aaada952f389c483c4fe/BattleTracker.java/clean/triplea/src/games/strategy/triplea/delegate/BattleTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
6586,
14566,
287,
38,
4558,
298,
12,
3255,
1946,
16,
2200,
4971,
16,
9514,
8135,
9745,
16,
19185,
734,
612,
16,
14121,
751,
501,
16,
27687,
13691,
10105,
13,
202,
95,
202,
202,
759,
6241,
866,
364,
675,
2062,
324,
4558,
1040,
622,
326,
272,
750,
202,
202,
759,
14852,
471,
316,
1008,
324,
4558,
298,
202,
202,
2532,
22403,
287,
273,
1946,
18,
588,
6869,
12,
6869,
18,
56,
25313,
2520,
50,
89,
16354,
287,
1769,
202,
202,
759,
323,
287,
598,
326,
679,
22282,
5173,
202,
202,
4644,
14566,
287,
18,
4479,
12,
5547,
18,
588,
1638,
10663,
202,
202,
81,
67,
591,
25734,
329,
18,
1289,
1595,
12,
4644,
14566,
287,
1769,
202,
202,
3198,
1400,
273,
22403,
287,
18,
9838,
5621,
202,
202,
17523,
12,
2165,
18,
5332,
2134,
10756,
202,
202,
95,
1082,
202,
56,
25313,
783,
273,
261,
56,
25313,
13,
1400,
18,
4285,
5621,
1082,
202,
22188,
4851,
12,
2972,
16,
612,
16,
10105,
16,
501,
1769,
202,
202,
97,
202,
202,
759,
323,
287,
598,
679,
268,
25313,
16,
2026,
506,
326,
648,
716,
202,
202,
759,
69,
8775,
287,
324,
4558,
298,
1297,
26348,
323,
286,
202,
202,
430,
12,
6869,
18,
56,
25313,
2520,
50,
89,
16354,
287,
18,
1916,
12,
5547,
18,
588,
1638,
1435,
3719,
202,
202,
95,
1082,
202,
38,
4558,
298,
26348,
323,
273,
336,
18571,
9864,
844,
495,
22774,
2610,
3714,
12,
5547,
1769,
1082,
202,
430,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
6586,
14566,
287,
38,
4558,
298,
12,
3255,
1946,
16,
2200,
4971,
16,
9514,
8135,
9745,
16,
19185,
734,
612,
16,
14121,
751,
501,
16,
27687,
13691,
10105,
13,
202,
95,
202,
202,
759,
6241,
866,
364,
675,
2062,
324,
4558,
1040,
622,
326,
272,
750,
202,
202,
759,
14852,
471,
316,
1008,
324,
4558,
298,
202,
202,
2532,
22403,
287,
273,
1946,
18,
588,
6869,
12,
6869,
18,
56,
25313,
2520,
50,
89,
16354,
287,
1769,
202,
202,
759,
323,
287,
598,
326,
679,
22282,
5173,
202,
202,
4644,
14566,
287,
18,
4479,
12,
5547,
18,
588,
1638,
10663,
202,
202,
81,
67,
591,
25734,
329,
18,
1289,
1595,
12,
4644,
14566,
287,
2
] |
studentTestQuestion.getSubQuestionByItem().setNextItemId( responseProcessing.getNextItem()); | if (responseProcessing != null) { studentTestQuestion.getSubQuestionByItem().setNextItemId(responseProcessing.getNextItem()); } | public StudentTestQuestion getMark(StudentTestQuestion studentTestQuestion) { if (studentTestQuestion.getSubQuestionByItem().getQuestionType().getType().intValue() == QuestionType.LID) { if (studentTestQuestion.getSubQuestionByItem().getQuestionType().getCardinalityType() .getType().intValue() == CardinalityType.MULTIPLE) { // 2*(correctOptionsChosen+wrongOptionNotChosen)/allOptionNumber-1 Integer fenixCorrectResponseIndex = getFenixCorrectResponseIndex(studentTestQuestion .getSubQuestionByItem().getResponseProcessingInstructions()); Integer empty = new Integer(getEmptyOptionIndex(studentTestQuestion .getSubQuestionByItem().getOptions())); List<ResponseCondition> correctResponseList = getFenixCorrectResponse4LID( studentTestQuestion.getSubQuestionByItem().getResponseProcessingInstructions(), fenixCorrectResponseIndex); int emptyNumber = 0; int emptyIndex = getEmptyOptionIndex(studentTestQuestion.getSubQuestionByItem() .getOptions()); if (emptyIndex != -1) emptyNumber = 1; int allOptionNumber = studentTestQuestion.getSubQuestionByItem().getOptions().size() - emptyNumber; int correctOptionNumber = getCorrectOptionsNumber(correctResponseList, emptyIndex); int wrongOptionsNumber = allOptionNumber - correctOptionNumber; int correctOptionsChosen = 0; int wrongOptionChosen = 0; Boolean[] isCorrect = new Boolean[((ResponseLID) studentTestQuestion.getResponse()) .getResponse().length]; for (int i = 0; i < ((ResponseLID) studentTestQuestion.getResponse()).getResponse().length; i++) { boolean correct = false; boolean chooseEmpty = false; for (ResponseCondition responseCondition : correctResponseList) { if ((((ResponseLID) studentTestQuestion.getResponse()).getResponse()[i]) .equals(empty.toString())) chooseEmpty = true; if (responseCondition.isCorrectLID(new String(((ResponseLID) studentTestQuestion .getResponse()).getResponse()[i]))) { correct = true; break; } } isCorrect[i] = new Boolean(correct); if (!chooseEmpty) { if (correct) correctOptionsChosen++; else wrongOptionChosen++; } } int wrongOptionNotChosen = wrongOptionsNumber - wrongOptionChosen; if (allOptionNumber > 1) { studentTestQuestion.setTestQuestionMark(new Double(studentTestQuestion .getTestQuestionValue().doubleValue() * (2 * (correctOptionsChosen + wrongOptionNotChosen) * (java.lang.Math.pow(allOptionNumber, -1)) - 1))); } else { studentTestQuestion.setTestQuestionMark(new Double(studentTestQuestion .getTestQuestionValue().doubleValue() * correctOptionsChosen)); } ResponseLID r = (ResponseLID) studentTestQuestion.getResponse(); r.setIsCorrect(isCorrect); studentTestQuestion.setResponse(r); ResponseProcessing responseProcessing = getLIDResponseProcessing(studentTestQuestion .getSubQuestionByItem().getResponseProcessingInstructions(), ((ResponseLID) studentTestQuestion.getResponse()).getResponse()); studentTestQuestion.getSubQuestionByItem().setNextItemId( responseProcessing.getNextItem()); return studentTestQuestion; } else if (studentTestQuestion.getSubQuestionByItem().getQuestionType().getCardinalityType() .getType().intValue() == CardinalityType.SINGLE) { // (1/num_op)-1 ResponseProcessing responseProcessing = getLIDResponseProcessing(studentTestQuestion .getSubQuestionByItem().getResponseProcessingInstructions(), ((ResponseLID) studentTestQuestion.getResponse()).getResponse()[0]); if (responseProcessing != null && responseProcessing.isFenixCorrectResponse()) { studentTestQuestion.setTestQuestionMark(new Double(studentTestQuestion .getTestQuestionValue().doubleValue())); ResponseLID r = (ResponseLID) studentTestQuestion.getResponse(); r.setIsCorrect(new Boolean[] { new Boolean(true) }); studentTestQuestion.setResponse(r); studentTestQuestion.getSubQuestionByItem().setNextItemId( responseProcessing.getNextItem()); return studentTestQuestion; } else if (studentTestQuestion.getSubQuestionByItem().getOptions().size() > 1) { studentTestQuestion.setTestQuestionMark(new Double(-(studentTestQuestion .getTestQuestionValue().intValue() * (java.lang.Math.pow(studentTestQuestion .getSubQuestionByItem().getOptions().size() - 1, -1))))); ResponseLID r = (ResponseLID) studentTestQuestion.getResponse(); r.setIsCorrect(new Boolean[] { new Boolean(false) }); studentTestQuestion.setResponse(r); if (responseProcessing != null) { studentTestQuestion.getSubQuestionByItem().setNextItemId( responseProcessing.getNextItem()); } return studentTestQuestion; } } } studentTestQuestion.setTestQuestionMark(new Double(0)); return studentTestQuestion; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/fd4836712c8935eb3569f5ab919f9d3f2efc291d/FENIX_LIDQuestionCorrectionStrategy.java/buggy/src/net/sourceforge/fenixedu/applicationTier/strategy/tests/strategys/FENIX_LIDQuestionCorrectionStrategy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
934,
1100,
319,
4709,
11665,
23232,
12,
19943,
319,
4709,
11665,
18110,
4709,
11665,
13,
288,
3639,
309,
261,
26240,
4709,
11665,
18,
588,
1676,
11665,
858,
1180,
7675,
588,
11665,
559,
7675,
588,
559,
7675,
474,
620,
1435,
422,
18267,
559,
18,
28447,
13,
288,
5411,
309,
261,
26240,
4709,
11665,
18,
588,
1676,
11665,
858,
1180,
7675,
588,
11665,
559,
7675,
588,
20091,
559,
1435,
10792,
263,
588,
559,
7675,
474,
620,
1435,
422,
14338,
9232,
559,
18,
24683,
900,
13,
288,
7734,
368,
576,
21556,
6746,
1320,
782,
8918,
15,
21530,
1895,
1248,
782,
8918,
13176,
454,
1895,
1854,
17,
21,
7734,
2144,
284,
275,
697,
16147,
1064,
1016,
273,
2812,
275,
697,
16147,
1064,
1016,
12,
26240,
4709,
11665,
13491,
263,
588,
1676,
11665,
858,
1180,
7675,
588,
1064,
7798,
26712,
10663,
7734,
2144,
1008,
273,
394,
2144,
12,
588,
1921,
1895,
1016,
12,
26240,
4709,
11665,
13491,
263,
588,
1676,
11665,
858,
1180,
7675,
588,
1320,
1435,
10019,
7734,
987,
32,
1064,
3418,
34,
3434,
1064,
682,
273,
2812,
275,
697,
16147,
1064,
24,
28447,
12,
13491,
18110,
4709,
11665,
18,
588,
1676,
11665,
858,
1180,
7675,
588,
1064,
7798,
26712,
9334,
13491,
284,
275,
697,
16147,
1064,
1016,
1769,
7734,
509,
1008,
1854,
273,
374,
31,
7734,
509,
1008,
1016,
273,
30824,
1895,
1016,
12,
26240,
4709,
11665,
18,
588,
1676,
11665,
858,
1180,
1435,
13491,
263,
588,
1320,
10663,
7734,
309,
261,
5531,
1016,
480,
300,
21,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
934,
1100,
319,
4709,
11665,
23232,
12,
19943,
319,
4709,
11665,
18110,
4709,
11665,
13,
288,
3639,
309,
261,
26240,
4709,
11665,
18,
588,
1676,
11665,
858,
1180,
7675,
588,
11665,
559,
7675,
588,
559,
7675,
474,
620,
1435,
422,
18267,
559,
18,
28447,
13,
288,
5411,
309,
261,
26240,
4709,
11665,
18,
588,
1676,
11665,
858,
1180,
7675,
588,
11665,
559,
7675,
588,
20091,
559,
1435,
10792,
263,
588,
559,
7675,
474,
620,
1435,
422,
14338,
9232,
559,
18,
24683,
900,
13,
288,
7734,
368,
576,
21556,
6746,
1320,
782,
8918,
15,
21530,
1895,
1248,
782,
8918,
13176,
454,
1895,
1854,
17,
21,
7734,
2144,
284,
275,
697,
16147,
1064,
1016,
273,
2812,
275,
697,
16147,
2
] |
loadAndCompare(test, "DateMidnight.dat"); inlineCompare(test); | loadAndCompare(test, "DateMidnight.dat", false); inlineCompare(test, false); | public void testSerializedDateMidnight() throws Exception { DateMidnight test = new DateMidnight(); loadAndCompare(test, "DateMidnight.dat"); inlineCompare(test); } | 52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/226795703795b4e4031ca3cd76ca304d23916976/TestSerialization.java/buggy/JodaTime/src/test/org/joda/time/TestSerialization.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15134,
1626,
20711,
18840,
1435,
1216,
1185,
288,
3639,
2167,
20711,
18840,
1842,
273,
394,
2167,
20711,
18840,
5621,
3639,
1262,
1876,
8583,
12,
3813,
16,
315,
1626,
20711,
18840,
18,
3404,
8863,
3639,
6370,
8583,
12,
3813,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15134,
1626,
20711,
18840,
1435,
1216,
1185,
288,
3639,
2167,
20711,
18840,
1842,
273,
394,
2167,
20711,
18840,
5621,
3639,
1262,
1876,
8583,
12,
3813,
16,
315,
1626,
20711,
18840,
18,
3404,
8863,
3639,
6370,
8583,
12,
3813,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.LegSecurityExchange getLegSecurityExchange() throws FieldNotFound { org.quickfix.field.LegSecurityExchange value = new org.quickfix.field.LegSecurityExchange(); | public quickfix.field.LegSecurityExchange getLegSecurityExchange() throws FieldNotFound { quickfix.field.LegSecurityExchange value = new quickfix.field.LegSecurityExchange(); | public org.quickfix.field.LegSecurityExchange getLegSecurityExchange() throws FieldNotFound { org.quickfix.field.LegSecurityExchange value = new org.quickfix.field.LegSecurityExchange(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/RFQRequest.java/buggy/src/java/src/quickfix/fix44/RFQRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
4368,
11688,
336,
8329,
4368,
11688,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
4368,
11688,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
4368,
11688,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
4368,
11688,
336,
8329,
4368,
11688,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
4368,
11688,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
4368,
11688,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
services.put(DataProtectionService.class, new DataProtectionServiceProvider()); rootServiceBroker.addService(DataProtectionService.class, this); | boolean dataOn = Boolean.valueOf(System.getProperty("org.cougaar.core.security.dataprotection", "true")).booleanValue(); if (dataOn) { newSP = new DataProtectionServiceProvider(serviceBroker, mySecurityCommunity); services.put(DataProtectionService.class, newSP); rootServiceBroker.addService(DataProtectionService.class, newSP); } else { log.warn("Data protection service disabled"); } | private void registerServices() { // Get root service broker nodeControlService = (NodeControlService) serviceBroker.getService(this, NodeControlService.class, null); if (nodeControlService != null) { rootServiceBroker = nodeControlService.getRootServiceBroker(); if (rootServiceBroker == null) { throw new RuntimeException("Unable to get root service broker"); } } else { // We are running outside a Cougaar node. // No Cougaar services are available. isExecutedWithinNode = false; rootServiceBroker = serviceBroker; /* ******************************** * Logging service */ // NodeAgent has not started the logging service at this point, // but we need it. // Removed because the Logging service is started early in 9.4 LoggingServiceProvider loggingServiceProvider = new LoggingServiceProvider(); rootServiceBroker.addService(LoggingService.class, loggingServiceProvider); rootServiceBroker.addService(LoggingControlService.class, loggingServiceProvider); } System.setProperty("org.cougaar.core.security.isExecutedWithinNode", String.valueOf(isExecutedWithinNode)); this.log = (LoggingService) rootServiceBroker.getService(this, LoggingService.class, null); services = new SecurityServiceTable(log); if (log.isDebugEnabled()) { log.debug("Registering security services"); } if (log.isInfoEnabled() && isExecutedWithinNode == false) { log.info("Running outside a Cougaar node"); } /* ******************************** * Property service */ services.put(SecurityPropertiesService.class, new SecurityPropertiesServiceProvider()); rootServiceBroker.addService(SecurityPropertiesService.class, this); SecurityPropertiesService secprop = (SecurityPropertiesService) rootServiceBroker.getService(this, SecurityPropertiesService.class, null); /* boolean standalone = false; try { standalone = new Boolean(secprop.getProperty( "org.cougaar.core.security.standalone", "false")).booleanValue(); if (!standalone) new NodeInfo().setNodeName(serviceBroker); } catch (Exception ex) { log.warn("Unable to get value of standalone mode"); } */ /* ******************************** * Configuration services */ services.put(ConfigParserService.class, new ConfigParserServiceProvider(mySecurityCommunity)); rootServiceBroker.addService(ConfigParserService.class, this); /* ******************************** * Encryption services */ /* Certificate Directory lookup services */ services.put(CertDirectoryServiceClient.class, new CertDirectoryServiceProvider()); rootServiceBroker.addService(CertDirectoryServiceClient.class, this); services.put(CertDirectoryServiceCA.class, new CertDirectoryServiceProvider()); rootServiceBroker.addService(CertDirectoryServiceCA.class, this); /* Certificate Management service */ services.put(CertificateManagementService.class, new CertificateManagementServiceProvider()); rootServiceBroker.addService(CertificateManagementService.class, this); /* Key lookup service */ services.put(KeyRingService.class, new KeyRingServiceProvider()); rootServiceBroker.addService(KeyRingService.class, this); /* Certificate validity service */ services.put(CertValidityService.class, new CertValidityServiceProvider()); rootServiceBroker.addService(CertValidityService.class, this); if (isExecutedWithinNode) { /* Encryption Service */ services.put(EncryptionService.class, new EncryptionServiceProvider()); rootServiceBroker.addService(EncryptionService.class, this); /* Data protection service */ services.put(DataProtectionService.class, new DataProtectionServiceProvider()); rootServiceBroker.addService(DataProtectionService.class, this); /* Message protection service */ services.put(MessageProtectionService.class, new MessageProtectionServiceProvider()); rootServiceBroker.addService(MessageProtectionService.class, this); /* ******************************** * Identity services */ /* Agent identity service */ services.put(AgentIdentityService.class, new AgentIdentityServiceProvider()); rootServiceBroker.addService(AgentIdentityService.class, this); /* ******************************** * Access Control services */ /* ******************************** * Policy services */ services.put(PolicyBootstrapperService.class, new PolicyBootstrapperServiceProvider()); rootServiceBroker.addService(PolicyBootstrapperService.class, this); services.put(AccessControlPolicyService.class, new AccessControlPolicyServiceProvider(serviceBroker)); rootServiceBroker.addService(AccessControlPolicyService.class, this); services.put(CryptoPolicyService.class, new CryptoPolicyServiceProvider(serviceBroker)); rootServiceBroker.addService(CryptoPolicyService.class, this); services.put(ServletPolicyService.class, new ServletPolicyServiceProvider(serviceBroker)); rootServiceBroker.addService(ServletPolicyService.class, this); /* ******************************** * SSL services */ services.put(SSLService.class, new SSLServiceProvider()); rootServiceBroker.addService(SSLService.class, this); // SSLService and WebserverIdentityService are self started // they offer static functions to get socket factory // in the functions the permission will be checked. rootServiceBroker.getService(this, SSLService.class, null); KeyRingService krs = (KeyRingService) rootServiceBroker.getService(this, KeyRingService.class, null); javax.net.ssl.HttpsURLConnection. setDefaultSSLSocketFactory(new JaasSSLFactory(krs, rootServiceBroker)); krs.getDirectoryKeyStore().finishInitialization(); // configured to use SSL? if (secprop.getProperty(secprop.WEBSERVER_HTTPS_PORT, null) != null) { services.put(WebserverIdentityService.class, new WebserverSSLServiceProvider()); rootServiceBroker.addService(WebserverIdentityService.class, this); rootServiceBroker.getService(this, WebserverIdentityService.class, null); } /* ******************************** * LDAP user administration */ services.put(LdapUserService.class, new LdapUserServiceProvider(serviceBroker)); rootServiceBroker.addService(LdapUserService.class, this); org.cougaar.core.security.crypto.ldap.KeyRingJNDIRealm. setNodeServiceBroker(serviceBroker); } else { KeyRingService krs = (KeyRingService) rootServiceBroker.getService(this, KeyRingService.class, null); log.info("Running in standalone mode"); if (krs != null) { services.put(UserSSLService.class, new UserSSLServiceProvider()); rootServiceBroker.addService(UserSSLService.class, this); krs.getDirectoryKeyStore().finishInitialization(); } } } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/e3b200c45019ca79b708ef4d4e228105f39388b6/SecurityServiceProvider.java/buggy/securityservices/src/org/cougaar/core/security/provider/SecurityServiceProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1744,
5676,
1435,
288,
565,
368,
968,
1365,
1156,
8625,
565,
756,
3367,
1179,
273,
261,
907,
3367,
1179,
13,
1377,
1156,
11194,
18,
588,
1179,
12,
2211,
16,
2029,
3367,
1179,
18,
1106,
16,
446,
1769,
565,
309,
261,
2159,
3367,
1179,
480,
446,
13,
288,
1377,
1365,
1179,
11194,
273,
756,
3367,
1179,
18,
588,
2375,
1179,
11194,
5621,
1377,
309,
261,
3085,
1179,
11194,
422,
446,
13,
288,
202,
12849,
394,
3235,
2932,
3370,
358,
336,
1365,
1156,
8625,
8863,
1377,
289,
565,
289,
565,
469,
288,
1377,
368,
1660,
854,
3549,
8220,
279,
7695,
637,
69,
297,
756,
18,
1377,
368,
2631,
7695,
637,
69,
297,
4028,
854,
2319,
18,
1377,
353,
23839,
18949,
907,
273,
629,
31,
1377,
1365,
1179,
11194,
273,
1156,
11194,
31,
1377,
1748,
380,
19482,
27243,
4202,
380,
10253,
1156,
4202,
1195,
1377,
368,
2029,
3630,
711,
486,
5746,
326,
2907,
1156,
622,
333,
1634,
16,
1377,
368,
1496,
732,
1608,
518,
18,
1377,
368,
2663,
9952,
2724,
326,
10253,
1156,
353,
5746,
11646,
316,
2468,
18,
24,
1377,
10253,
16300,
2907,
16300,
273,
202,
2704,
10253,
16300,
5621,
1377,
1365,
1179,
11194,
18,
1289,
1179,
12,
7735,
1179,
18,
1106,
16,
6862,
282,
2907,
16300,
1769,
1377,
1365,
1179,
11194,
18,
1289,
1179,
12,
7735,
3367,
1179,
18,
1106,
16,
6862,
282,
2907,
16300,
1769,
565,
289,
565,
2332,
18,
542,
1396,
2932,
3341,
18,
2894,
637,
69,
297,
18,
3644,
18,
7462,
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,
3238,
918,
1744,
5676,
1435,
288,
565,
368,
968,
1365,
1156,
8625,
565,
756,
3367,
1179,
273,
261,
907,
3367,
1179,
13,
1377,
1156,
11194,
18,
588,
1179,
12,
2211,
16,
2029,
3367,
1179,
18,
1106,
16,
446,
1769,
565,
309,
261,
2159,
3367,
1179,
480,
446,
13,
288,
1377,
1365,
1179,
11194,
273,
756,
3367,
1179,
18,
588,
2375,
1179,
11194,
5621,
1377,
309,
261,
3085,
1179,
11194,
422,
446,
13,
288,
202,
12849,
394,
3235,
2932,
3370,
358,
336,
1365,
1156,
8625,
8863,
1377,
289,
565,
289,
565,
469,
288,
1377,
368,
1660,
854,
3549,
8220,
279,
7695,
637,
69,
297,
756,
18,
1377,
368,
2631,
7695,
637,
69,
297,
4028,
854,
2319,
18,
1377,
353,
2
] |
int _m328 = mark(); synPredMatched328 = true; | int _m356 = mark(); synPredMatched356 = true; | public final void mNEXT_TOKEN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = NEXT_TOKEN; int _saveIndex; switch ( LA(1)) { case '{': { mLCURLY(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LCURLY; } break; } case '}': { mRCURLY(false); if ( inputState.guessing==0 ) { _ttype = RCURLY; } break; } case '&': { mANDEQ(false); if ( inputState.guessing==0 ) { _ttype = ANDEQ; } break; } default: boolean synPredMatched335 = false; if (((_tokenSet_12.member(LA(1))) && (_tokenSet_13.member(LA(2))) && (_tokenSet_14.member(LA(3))))) { int _m335 = mark(); synPredMatched335 = true; inputState.guessing++; try { { mDECIMAL_LITERAL(false); { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched335 = false; } rewind(_m335); inputState.guessing--; } if ( synPredMatched335 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else if ((LA(1)=='-') && (LA(2)=='-') && (LA(3)=='>')) { mXML_COMMENT_END(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT_END; } } else if ((LA(1)=='<') && (LA(2)=='!')) { mXML_COMMENT(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT; } } else { boolean synPredMatched326 = false; if (((LA(1)=='<') && (LA(2)=='?'))) { int _m326 = mark(); synPredMatched326 = true; inputState.guessing++; try { { mXML_PI_START(false); } } catch (RecognitionException pe) { synPredMatched326 = false; } rewind(_m326); inputState.guessing--; } if ( synPredMatched326 ) { mXML_PI(false); if ( inputState.guessing==0 ) { _ttype = XML_PI; } } else if ((LA(1)=='<') && (LA(2)=='/')) { mEND_TAG_START(false); if ( inputState.guessing==0 ) { inElementContent= false; wsExplicit= false; _ttype = END_TAG_START; } } else if ((LA(1)=='<') && (LA(2)=='=')) { mLTEQ(false); if ( inputState.guessing==0 ) { _ttype = LTEQ; } } else if (((LA(1)=='"'||LA(1)=='\'') && ((LA(2) >= '\u0003' && LA(2) <= '\uffff')) && (true))&&( parseStringLiterals )) { mSTRING_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = STRING_LITERAL; } } else { boolean synPredMatched328 = false; if (((LA(1)=='.') && (LA(2)=='.') && (true))) { int _m328 = mark(); synPredMatched328 = true; inputState.guessing++; try { { match('.'); match('.'); } } catch (RecognitionException pe) { synPredMatched328 = false; } rewind(_m328); inputState.guessing--; } if ( synPredMatched328 ) { mPARENT(false); if ( inputState.guessing==0 ) { _ttype = PARENT; } } else { boolean synPredMatched330 = false; if (((_tokenSet_12.member(LA(1))) && (_tokenSet_12.member(LA(2))) && (true))) { int _m330 = mark(); synPredMatched330 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); } } catch (RecognitionException pe) { synPredMatched330 = false; } rewind(_m330); inputState.guessing--; } if ( synPredMatched330 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched337 = false; if (((_tokenSet_12.member(LA(1))) && (_tokenSet_12.member(LA(2))) && (true))) { int _m337 = mark(); synPredMatched337 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); match('.'); } } catch (RecognitionException pe) { synPredMatched337 = false; } rewind(_m337); inputState.guessing--; } if ( synPredMatched337 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else if ((LA(1)=='/') && (LA(2)=='/') && (true)) { mDSLASH(false); if ( inputState.guessing==0 ) { _ttype = DSLASH; } } else if ((LA(1)=='|') && (LA(2)=='=') && (true)) { mOREQ(false); if ( inputState.guessing==0 ) { _ttype = OREQ; } } else if ((LA(1)=='!') && (LA(2)=='=') && (true)) { mNEQ(false); if ( inputState.guessing==0 ) { _ttype = NEQ; } } else if ((LA(1)=='>') && (LA(2)=='=') && (true)) { mGTEQ(false); if ( inputState.guessing==0 ) { _ttype = GTEQ; } } else if ((LA(1)=='?') && (LA(2)=='>') && (true)) { mXML_PI_END(false); if ( inputState.guessing==0 ) { _ttype = XML_PI_END; } } else if ((LA(1)=='<') && (true)) { mLT(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LT; } } else if (((_tokenSet_15.member(LA(1))) && (true) && (true))&&( inAttributeContent )) { mATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ATTRIBUTE_CONTENT; } } else if (((LA(1)=='"') && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mQUOT(false); if ( inputState.guessing==0 ) { _ttype = QUOT; } } else if (((_tokenSet_16.member(LA(1))) && (true) && (true))&&( inElementContent )) { mELEMENT_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ELEMENT_CONTENT; } } else if ((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' ') && (true) && (true)) { mWS(false); if ( inputState.guessing==0 ) { if (wsExplicit) _ttype = WS; else _ttype = Token.SKIP; } } else if ((_tokenSet_17.member(LA(1))) && (true) && (true)) { mNCNAME(false); if ( inputState.guessing==0 ) { _ttype = NCNAME; } } else { boolean synPredMatched332 = false; if (((LA(1)=='.') && (true) && (true))) { int _m332 = mark(); synPredMatched332 = true; inputState.guessing++; try { { match('.'); } } catch (RecognitionException pe) { synPredMatched332 = false; } rewind(_m332); inputState.guessing--; } if ( synPredMatched332 ) { mSELF(false); if ( inputState.guessing==0 ) { _ttype = SELF; } } else if ((_tokenSet_3.member(LA(1))) && (true) && (true)) { mINTEGER_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = INTEGER_LITERAL; } } else if ((LA(1)=='/') && (true) && (true)) { mSLASH(false); if ( inputState.guessing==0 ) { _ttype = SLASH; } } else if ((LA(1)==':') && (true) && (true)) { mCOLON(false); if ( inputState.guessing==0 ) { _ttype = COLON; } } else if ((LA(1)==',') && (true) && (true)) { mCOMMA(false); if ( inputState.guessing==0 ) { _ttype = COMMA; } } else if ((LA(1)=='*') && (true) && (true)) { mSTAR(false); if ( inputState.guessing==0 ) { _ttype = STAR; } } else if ((LA(1)=='+') && (true) && (true)) { mPLUS(false); if ( inputState.guessing==0 ) { _ttype = PLUS; } } else if ((LA(1)=='-') && (true) && (true)) { mMINUS(false); if ( inputState.guessing==0 ) { _ttype = MINUS; } } else if ((LA(1)=='[') && (true) && (true)) { mLPPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPPAREN; } } else if ((LA(1)==']') && (true) && (true)) { mRPPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPPAREN; } } else if ((LA(1)=='(') && (true) && (true)) { mLPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPAREN; } } else if ((LA(1)==')') && (true) && (true)) { mRPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPAREN; } } else if ((LA(1)=='|') && (true) && (true)) { mUNION(false); if ( inputState.guessing==0 ) { _ttype = UNION; } } else if ((LA(1)=='@') && (true) && (true)) { mAT(false); if ( inputState.guessing==0 ) { _ttype = AT; } } else if ((LA(1)=='$') && (true) && (true)) { mDOLLAR(false); if ( inputState.guessing==0 ) { _ttype = DOLLAR; } } else if ((LA(1)=='=') && (true) && (true)) { mEQ(false); if ( inputState.guessing==0 ) { _ttype = EQ; } } else if ((LA(1)=='>') && (true) && (true)) { mGT(false); if ( inputState.guessing==0 ) { _ttype = GT; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/991914fac6d8ec32704e1e021ab6bf8707ee56ec/XPathLexer2.java/buggy/src/org/exist/parser/XPathLexer2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
25083,
202,
267,
1046,
1350,
33,
629,
31,
25083,
202,
67,
88,
723,
273,
511,
26314,
31,
6862,
9506,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
9571,
30,
202,
202,
95,
1082,
202,
81,
11529,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
67,
88,
723,
273,
534,
26314,
31,
1082,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
5183,
4278,
202,
202,
95,
1082,
202,
81,
1258,
1639,
53,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
67,
88,
723,
273,
8175,
1639,
53,
31,
1082,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
1886,
30,
1082,
202,
6494,
6194,
10391,
15400,
3707,
25,
273,
629,
31,
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,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
25083,
202,
267,
1046,
1350,
33,
629,
31,
25083,
202,
67,
88,
723,
273,
511,
2
] |
nmgr.evictKey(node.getKey()); | if (create) { nmgr.registerNode(node); } else { nmgr.evictKey(node.getKey()); } | protected Node getGroupbySubnode(String sid, boolean create) { if (sid == null) { throw new IllegalArgumentException("Can't create group by null"); } if (state == TRANSIENT) { throw new RuntimeException("Can't add grouped child on transient node. "+ "Make parent persistent before adding grouped nodes."); } loadNodes(); if (subnodes == null) { subnodes = new ExternalizableVector(); } if (create || subnodes.contains(new NodeHandle(new SyntheticKey(getKey(), sid)))) { try { DbMapping groupbyMapping = dbmap.getGroupbyMapping(); boolean relational = groupbyMapping.getSubnodeMapping().isRelational(); if (relational || create) { Node node = relational ? new Node(this, sid, nmgr, null) : new Node(sid, null, nmgr); // set "groupname" property to value of groupby field node.setString("groupname", sid); node.setDbMapping(groupbyMapping); if (!relational) { setNode(sid, node); subnodes.add(node.getHandle()); } node.setPrototype(groupbyMapping.getTypeName()); nmgr.evictKey(node.getKey()); return node; } } catch (Exception noluck) { nmgr.logEvent("Error creating group-by node for " + sid + ": " + noluck); noluck.printStackTrace(); } } return null; } | 46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/6b631e0f0e0e8c0550b98a721f8e25d4ff12a9da/Node.java/clean/src/helma/objectmodel/db/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2029,
11751,
1637,
1676,
2159,
12,
780,
7348,
16,
1250,
752,
13,
288,
3639,
309,
261,
7453,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
2568,
1404,
752,
1041,
635,
446,
8863,
3639,
289,
3639,
309,
261,
2019,
422,
14996,
24937,
13,
288,
5411,
604,
394,
3235,
2932,
2568,
1404,
527,
10303,
1151,
603,
12315,
756,
18,
13773,
4766,
4202,
315,
6464,
982,
9195,
1865,
6534,
10303,
2199,
1199,
1769,
3639,
289,
3639,
1262,
3205,
5621,
3639,
309,
261,
1717,
4690,
422,
446,
13,
288,
5411,
720,
4690,
273,
394,
11352,
6934,
5018,
5621,
3639,
289,
3639,
309,
261,
2640,
747,
720,
4690,
18,
12298,
12,
2704,
2029,
3259,
12,
2704,
16091,
16466,
653,
12,
588,
653,
9334,
7348,
3719,
3719,
288,
5411,
775,
288,
7734,
8408,
3233,
13126,
3233,
273,
1319,
1458,
18,
588,
1114,
1637,
3233,
5621,
7734,
1250,
25302,
273,
13126,
3233,
18,
588,
1676,
2159,
3233,
7675,
291,
15060,
5621,
7734,
309,
261,
5488,
287,
747,
752,
13,
288,
10792,
2029,
756,
273,
25302,
692,
394,
2029,
12,
2211,
16,
7348,
16,
8442,
3197,
16,
446,
13,
4766,
6647,
294,
394,
2029,
12,
7453,
16,
446,
16,
8442,
3197,
1769,
10792,
368,
444,
315,
1655,
529,
6,
1272,
358,
460,
434,
13126,
652,
10792,
756,
18,
542,
780,
2932,
1655,
529,
3113,
7348,
1769,
10792,
756,
18,
542,
4331,
3233,
12,
1655,
1637,
3233,
1769,
10792,
309,
16051,
5488,
287,
13,
288,
13491,
26250,
12,
7453,
16,
756,
1769,
13491,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2029,
11751,
1637,
1676,
2159,
12,
780,
7348,
16,
1250,
752,
13,
288,
3639,
309,
261,
7453,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
2568,
1404,
752,
1041,
635,
446,
8863,
3639,
289,
3639,
309,
261,
2019,
422,
14996,
24937,
13,
288,
5411,
604,
394,
3235,
2932,
2568,
1404,
527,
10303,
1151,
603,
12315,
756,
18,
13773,
4766,
4202,
315,
6464,
982,
9195,
1865,
6534,
10303,
2199,
1199,
1769,
3639,
289,
3639,
1262,
3205,
5621,
3639,
309,
261,
1717,
4690,
422,
446,
13,
288,
5411,
720,
4690,
273,
394,
11352,
6934,
5018,
5621,
3639,
289,
3639,
309,
261,
2640,
747,
720,
4690,
18,
12298,
12,
2704,
2029,
3259,
12,
2704,
16091,
16466,
653,
12,
588,
2
] |
if (jj_scan_token(DIVIDEEQUAL)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | if (jj_scan_token(COMMA)) return true; if (jj_3R_336()) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_341()) jj_scanpos = xsp; return false; } | static final private boolean jj_3R_338() { if (jj_scan_token(DIVIDEEQUAL)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3707,
28,
1435,
288,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2565,
15472,
9383,
8729,
3719,
327,
638,
31,
3639,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
3639,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3707,
28,
1435,
288,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2565,
15472,
9383,
8729,
3719,
327,
638,
31,
3639,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
3639,
327,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String[] parts = betterClassName.split("[.]"); baseClassName = parts[parts.length-1]; | try { JavaClass supers[] = Repository.getSuperClasses(obj); for(int i = 0; i < supers.length; i++) visit(supers[i]); } catch (ClassNotFoundException e) { } | public void visit(JavaClass obj) { super.visit(obj); String[] parts = betterClassName.split("[.]"); baseClassName = parts[parts.length-1]; } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/4bfe090a9210717ba3132bffefe66ad69423e193/Naming.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/Naming.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3757,
12,
5852,
797,
1081,
13,
377,
288,
202,
9565,
18,
11658,
12,
2603,
1769,
202,
780,
8526,
2140,
273,
7844,
3834,
18,
4939,
2932,
63,
18,
4279,
1769,
3639,
1026,
3834,
273,
2140,
63,
6019,
18,
2469,
17,
21,
15533,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3757,
12,
5852,
797,
1081,
13,
377,
288,
202,
9565,
18,
11658,
12,
2603,
1769,
202,
780,
8526,
2140,
273,
7844,
3834,
18,
4939,
2932,
63,
18,
4279,
1769,
3639,
1026,
3834,
273,
2140,
63,
6019,
18,
2469,
17,
21,
15533,
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
] |
if (jj_scan_token(ANDASSIGN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_scan_token(COMMA)) return true; if (jj_3R_228()) return true; | final private boolean jj_3R_229() { if (jj_scan_token(ANDASSIGN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/d42ce7980bc2030e88ae13be5cf1b864eee291da/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3787,
29,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4307,
23289,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3787,
29,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4307,
23289,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 (minimized){ m_dialog.setResizable(true); setSize(getSize().width, heightBufer); }else{ heightBufer = getSize().height; setSize(getSize().width, 14); m_mapImage = createImage(Math.max(1, getSize().width), 14); m_dialog.setResizable(false); } minimized = ! minimized; m_dialog.pack(); drawMap(); | if(x < 14){ if (zoom == 0) return; zoom --; initializeMap(); }else if ( x> (getSize().width - 14)){ if (zoom == (hexSide.length - 1)) return; zoom ++; initializeMap(); } else{ if (minimized){ setSize(getSize().width, heightBufer); m_mapImage = createImage(getSize().width, heightBufer); }else{ heightBufer = getSize().height; setSize(getSize().width, 14); m_mapImage = createImage(Math.max(1, getSize().width), 14); } minimized = ! minimized; m_dialog.pack(); drawMap(); } | private void processMouseClick(int x, int y){ if (y > (getSize().height - 14)){ if (minimized){ m_dialog.setResizable(true); setSize(getSize().width, heightBufer); }else{ heightBufer = getSize().height; setSize(getSize().width, 14); m_mapImage = createImage(Math.max(1, getSize().width), 14); m_dialog.setResizable(false); } minimized = ! minimized; m_dialog.pack(); drawMap(); }else{ if ((x < leftMargin) || (x > (getSize().width - leftMargin)) || (y < topMargin) || (y > (getSize().height - topMargin))){ return; } else { m_bview.centerOnHex(translateCoords(x - leftMargin, y - topMargin)); } } } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/2d73b3e6269719a1415f61dd46ccae385d6b1e79/MiniMap.java/clean/megamek/src/megamek/client/ui/AWT/MiniMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
9186,
6563,
12,
474,
619,
16,
509,
677,
15329,
3639,
309,
261,
93,
405,
261,
588,
1225,
7675,
4210,
300,
5045,
3719,
95,
5411,
309,
261,
1154,
381,
1235,
15329,
7734,
312,
67,
12730,
18,
542,
607,
6934,
12,
3767,
1769,
7734,
19106,
12,
588,
1225,
7675,
2819,
16,
2072,
38,
89,
586,
1769,
5411,
289,
12107,
95,
7734,
2072,
38,
89,
586,
273,
9950,
7675,
4210,
31,
7734,
19106,
12,
588,
1225,
7675,
2819,
16,
5045,
1769,
7734,
312,
67,
1458,
2040,
273,
28301,
12,
10477,
18,
1896,
12,
21,
16,
9950,
7675,
2819,
3631,
5045,
1769,
7734,
312,
67,
12730,
18,
542,
607,
6934,
12,
5743,
1769,
5411,
289,
5411,
18172,
1235,
273,
401,
18172,
1235,
31,
5411,
312,
67,
12730,
18,
2920,
5621,
5411,
3724,
863,
5621,
3639,
289,
12107,
95,
5411,
309,
14015,
92,
411,
2002,
9524,
13,
747,
261,
92,
405,
261,
588,
1225,
7675,
2819,
300,
225,
2002,
9524,
3719,
747,
261,
93,
411,
1760,
9524,
13,
747,
261,
93,
405,
261,
588,
1225,
7675,
4210,
300,
1760,
9524,
3719,
15329,
7734,
327,
31,
5411,
289,
469,
288,
7734,
312,
67,
70,
1945,
18,
5693,
1398,
7037,
12,
13929,
13089,
12,
92,
300,
2002,
9524,
16,
677,
300,
1760,
9524,
10019,
5411,
289,
4202,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
918,
1207,
9186,
6563,
12,
474,
619,
16,
509,
677,
15329,
3639,
309,
261,
93,
405,
261,
588,
1225,
7675,
4210,
300,
5045,
3719,
95,
5411,
309,
261,
1154,
381,
1235,
15329,
7734,
312,
67,
12730,
18,
542,
607,
6934,
12,
3767,
1769,
7734,
19106,
12,
588,
1225,
7675,
2819,
16,
2072,
38,
89,
586,
1769,
5411,
289,
12107,
95,
7734,
2072,
38,
89,
586,
273,
9950,
7675,
4210,
31,
7734,
19106,
12,
588,
1225,
7675,
2819,
16,
5045,
1769,
7734,
312,
67,
1458,
2040,
273,
28301,
12,
10477,
18,
1896,
12,
21,
16,
9950,
7675,
2819,
3631,
5045,
1769,
7734,
312,
67,
12730,
18,
542,
607,
6934,
12,
5743,
1769,
5411,
289,
5411,
18172,
1235,
273,
2
] |
return Collections.EMPTY_LIST; | return EMPTY_LIST; | public List childNodes() { return Collections.EMPTY_LIST; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/b1293eda8454686e846e2a9837b348e2983bb423/NilNode.java/clean/src/org/jruby/ast/NilNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
10582,
1435,
288,
3639,
327,
8984,
67,
7085,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
10582,
1435,
288,
3639,
327,
8984,
67,
7085,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
checkIfDir(files[i], nodeId, primary, interval, dateStamp, baseIfMap, allIfMap, events); | checkIfDir(files[i], nodeId, primary, interval, range, dateStamp, baseIfMap, allIfMap, events); | public int check(NetworkInterface iface, EventProxy eproxy, Map parameters) { Category log = ThreadCategory.getInstance(getClass()); String dsDir = serviceName; String port = ParameterMap.getKeyedString( parameters, "port", null); String friendlyName = ParameterMap.getKeyedString( parameters, "friendly-name", port); if (useFriendlyName) { dsDir = friendlyName; } InetAddress primary = (InetAddress) iface.getAddress(); // Get configuration parameters // String groupName = ParameterMap.getKeyedString(parameters, "thresholding-group", serviceName); int interval = ParameterMap.getKeyedInteger(parameters, "interval", DEFAULT_INTERVAL); if (log.isDebugEnabled()) log.debug("check: service= " + serviceName.toUpperCase() + " address= " + primary.getHostAddress() + " thresholding-group=" + groupName + " interval=" + interval + "ms"); // RRD Repository attribute // String repository = (String) iface.getAttribute(RRD_REPOSITORY_KEY); if (log.isDebugEnabled()) log.debug("check: rrd repository=" + repository); // Nodeid attribute // Integer nodeId = (Integer) iface.getAttribute(NODE_ID_KEY); // node and interface ThresholdEntity map attributes // Map nodeMap = (Map) iface.getAttribute(NODE_THRESHOLD_MAP_KEY); Map baseIfMap = (Map) iface.getAttribute(BASE_IF_THRESHOLD_MAP_KEY); Map allIfMap = (Map) iface.getAttribute(ALL_IF_THRESHOLD_MAP_KEY); // ----------------------------------------------------------- // // Perform node-level threshold checking // // ----------------------------------------------------------- // Get File object representing the node directory File nodeDirectory = new File(repository + File.separator + nodeId.toString() + "/" + dsDir); //if (!RrdFileConstants.isValidRRDNodeDir(nodeDirectory)) { // log.error("Node directory for " + nodeDirectory + " does not exist or is not a valid RRD node directory."); // log.error("Threshold checking failed for primary " + serviceName + " interface " + primary.getHostAddress()); //} // Create empty Events object to hold any threshold // events generated during the thresholding check... Events events = new Events(); // Date stamp for all outgoing events Date dateStamp = new Date(); try { checkNodeDir(nodeDirectory, nodeId, primary, interval, dateStamp, nodeMap, events); } catch (IllegalArgumentException e) { log.error("check: Threshold checking failed for primary " + serviceName + " interface " + primary.getHostAddress(), e); return THRESHOLDING_FAILED; } // ----------------------------------------------------------- // // Perform interface-level threshold checking // // ----------------------------------------------------------- // Iterate over node directory contents and call // checkInterfaceDirectory() for any/all RRD interface // directories. // File[] files = nodeDirectory.listFiles(RrdFileConstants.INTERFACE_DIRECTORY_FILTER); if (files != null) { for (int i = 0; i < files.length; i++) { try { // Found interface directory... checkIfDir(files[i], nodeId, primary, interval, dateStamp, baseIfMap, allIfMap, events); } catch (IllegalArgumentException e) { log.error("check: Threshold checking failed for primary " + serviceName + " interface " + primary.getHostAddress(), e); return THRESHOLDING_FAILED; } } } // Send created events // if (events.getEventCount() > 0) { try { Log eventLog = new Log(); eventLog.setEvents(events); eproxy.send(eventLog); } catch (EventProxyException e) { log.error("check: Failed sending threshold events via event proxy...", e); return THRESHOLDING_FAILED; } } // return the status of the threshold check // return THRESHOLDING_SUCCEEDED; } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/07a7353dcb047b34d91730d300899c5e7d3ddc6e/JMXThresholder.java/buggy/src/services/org/opennms/netmgt/threshd/JMXThresholder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
866,
12,
27413,
9751,
16,
2587,
3886,
425,
5656,
16,
1635,
1472,
13,
288,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
3639,
514,
3780,
1621,
273,
6773,
31,
3639,
514,
1756,
540,
273,
5498,
863,
18,
588,
653,
329,
780,
12,
1472,
16,
315,
655,
3113,
6647,
446,
1769,
3639,
514,
13118,
461,
273,
5498,
863,
18,
588,
653,
329,
780,
12,
1472,
16,
315,
29111,
17,
529,
3113,
225,
1756,
1769,
7734,
309,
261,
1202,
19730,
461,
13,
288,
5411,
3780,
1621,
273,
13118,
461,
31,
3639,
289,
3639,
14218,
3354,
273,
261,
382,
278,
1887,
13,
9751,
18,
588,
1887,
5621,
3639,
368,
968,
1664,
1472,
3639,
368,
3639,
514,
11619,
273,
5498,
863,
18,
588,
653,
329,
780,
12,
3977,
16,
315,
8699,
310,
17,
1655,
3113,
6773,
1769,
3639,
509,
565,
3673,
225,
273,
5498,
863,
18,
588,
653,
329,
4522,
12,
3977,
16,
315,
6624,
3113,
3331,
67,
16435,
1769,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
5411,
613,
18,
4148,
2932,
1893,
30,
1156,
33,
315,
397,
6773,
18,
869,
8915,
1435,
397,
315,
1758,
33,
315,
397,
3354,
18,
588,
2594,
1887,
1435,
397,
315,
5573,
310,
17,
1655,
1546,
397,
11619,
397,
315,
3673,
1546,
397,
3673,
397,
315,
959,
8863,
3639,
368,
534,
20403,
6281,
1566,
3639,
368,
3639,
514,
3352,
273,
261,
780,
13,
9751,
18,
588,
1499,
12,
17950,
40,
67,
862,
30986,
67,
3297,
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,
509,
866,
12,
27413,
9751,
16,
2587,
3886,
425,
5656,
16,
1635,
1472,
13,
288,
3639,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
797,
10663,
3639,
514,
3780,
1621,
273,
6773,
31,
3639,
514,
1756,
540,
273,
5498,
863,
18,
588,
653,
329,
780,
12,
1472,
16,
315,
655,
3113,
6647,
446,
1769,
3639,
514,
13118,
461,
273,
5498,
863,
18,
588,
653,
329,
780,
12,
1472,
16,
315,
29111,
17,
529,
3113,
225,
1756,
1769,
7734,
309,
261,
1202,
19730,
461,
13,
288,
5411,
3780,
1621,
273,
13118,
461,
31,
3639,
289,
3639,
14218,
3354,
273,
261,
382,
278,
1887,
13,
9751,
18,
588,
1887,
5621,
3639,
368,
968,
1664,
1472,
3639,
368,
2
] |
List methods = ClassHelper.getSatisfiableMethods(FruitBowl.class, new Class[]{Apple.class}, true, true); | List methods = ClassHelper.getSatisfiableMethods(FruitBowl.class, new Class[]{Apple.class}, true, true, true); | public void testGetSatisfiableMethods() throws Exception { List methods = ClassHelper.getSatisfiableMethods(FruitBowl.class, new Class[]{Apple.class}, true, true); assertNotNull(methods); assertEquals(1, methods.size()); methods = ClassHelper.getSatisfiableMethods(FruitBowl.class, new Class[]{Apple.class}, false, true); assertNotNull(methods); assertEquals(0, methods.size()); methods = ClassHelper.getSatisfiableMethods(FruitBowl.class, new Class[]{WaterMelon.class}, true, true); assertNotNull(methods); assertEquals(0, methods.size()); } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/f1745eba149dbbfbe5f538437ce80af4ad563728/ClassHelperTestCase.java/buggy/src/test/java/org/mule/test/util/ClassHelperTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
15163,
7396,
2214,
4712,
1435,
1216,
1185,
565,
288,
3639,
987,
2590,
273,
1659,
2276,
18,
588,
15163,
7396,
2214,
4712,
12,
7167,
14945,
38,
543,
80,
18,
1106,
16,
394,
1659,
63,
7073,
1294,
1802,
18,
1106,
5779,
638,
16,
638,
16,
638,
1769,
3639,
25395,
12,
5163,
1769,
3639,
1815,
8867,
12,
21,
16,
2590,
18,
1467,
10663,
3639,
2590,
273,
1659,
2276,
18,
588,
15163,
7396,
2214,
4712,
12,
7167,
14945,
38,
543,
80,
18,
1106,
16,
394,
1659,
63,
7073,
1294,
1802,
18,
1106,
5779,
629,
16,
638,
1769,
3639,
25395,
12,
5163,
1769,
3639,
1815,
8867,
12,
20,
16,
2590,
18,
1467,
10663,
3639,
2590,
273,
1659,
2276,
18,
588,
15163,
7396,
2214,
4712,
12,
7167,
14945,
38,
543,
80,
18,
1106,
16,
394,
1659,
63,
7073,
24064,
49,
292,
265,
18,
1106,
5779,
638,
16,
638,
1769,
3639,
25395,
12,
5163,
1769,
3639,
1815,
8867,
12,
20,
16,
2590,
18,
1467,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
15163,
7396,
2214,
4712,
1435,
1216,
1185,
565,
288,
3639,
987,
2590,
273,
1659,
2276,
18,
588,
15163,
7396,
2214,
4712,
12,
7167,
14945,
38,
543,
80,
18,
1106,
16,
394,
1659,
63,
7073,
1294,
1802,
18,
1106,
5779,
638,
16,
638,
16,
638,
1769,
3639,
25395,
12,
5163,
1769,
3639,
1815,
8867,
12,
21,
16,
2590,
18,
1467,
10663,
3639,
2590,
273,
1659,
2276,
18,
588,
15163,
7396,
2214,
4712,
12,
7167,
14945,
38,
543,
80,
18,
1106,
16,
394,
1659,
63,
7073,
1294,
1802,
18,
1106,
5779,
629,
16,
638,
1769,
3639,
25395,
12,
5163,
1769,
3639,
1815,
8867,
12,
20,
16,
2590,
18,
1467,
10663,
3639,
2590,
273,
1659,
2276,
18,
2
] |
if (name != null && value != null) { | if (name != null && value != null && !isFlagParameter) { | public String encode() { if (name != null && value != null) { if (GenericObject.isMySubclass(value.getClass())) { GenericObject gv = (GenericObject) value; return name + separator + quotes + gv.encode() + quotes; } else if (GenericObjectList.isMySubclass(value.getClass())) { GenericObjectList gvlist = (GenericObjectList) value; return name + separator + gvlist.encode(); } else return name + separator + quotes + value.toString() + quotes; } else if (name == null && value != null) { if (GenericObject.isMySubclass(value.getClass())) { GenericObject gv = (GenericObject) value; return gv.encode(); } else if (GenericObjectList.isMySubclass(value.getClass())) { GenericObjectList gvlist = (GenericObjectList) value; return gvlist.encode(); } return quotes + value.toString() + quotes; } else if (name != null && value == null) { return name; } else return ""; } | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/60cb14c753a84efa4e55de2985207d7aa33d75bd/NameValue.java/buggy/trunk/src/gov/nist/core/NameValue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
2017,
1435,
288,
202,
202,
430,
261,
529,
480,
446,
597,
460,
480,
446,
13,
288,
1082,
202,
430,
261,
7014,
921,
18,
291,
12062,
1676,
1106,
12,
1132,
18,
588,
797,
1435,
3719,
288,
9506,
202,
7014,
921,
11404,
273,
261,
7014,
921,
13,
460,
31,
9506,
202,
2463,
508,
397,
4182,
397,
10681,
397,
11404,
18,
3015,
1435,
397,
10681,
31,
1082,
202,
97,
469,
309,
261,
7014,
25979,
18,
291,
12062,
1676,
1106,
12,
1132,
18,
588,
797,
1435,
3719,
288,
9506,
202,
7014,
25979,
11404,
1098,
273,
261,
7014,
25979,
13,
460,
31,
9506,
202,
2463,
508,
397,
4182,
397,
11404,
1098,
18,
3015,
5621,
1082,
202,
97,
469,
9506,
202,
2463,
508,
397,
4182,
397,
10681,
397,
460,
18,
10492,
1435,
397,
10681,
31,
202,
202,
97,
469,
309,
261,
529,
422,
446,
597,
460,
480,
446,
13,
288,
1082,
202,
430,
261,
7014,
921,
18,
291,
12062,
1676,
1106,
12,
1132,
18,
588,
797,
1435,
3719,
288,
9506,
202,
7014,
921,
11404,
273,
261,
7014,
921,
13,
460,
31,
9506,
202,
2463,
11404,
18,
3015,
5621,
1082,
202,
97,
469,
309,
261,
7014,
25979,
18,
291,
12062,
1676,
1106,
12,
1132,
18,
588,
797,
1435,
3719,
288,
9506,
202,
7014,
25979,
11404,
1098,
273,
261,
7014,
25979,
13,
460,
31,
9506,
202,
2463,
11404,
1098,
18,
3015,
5621,
1082,
202,
97,
1082,
202,
2463,
10681,
397,
460,
18,
10492,
1435,
397,
10681,
31,
202,
202,
97,
469,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
2017,
1435,
288,
202,
202,
430,
261,
529,
480,
446,
597,
460,
480,
446,
13,
288,
1082,
202,
430,
261,
7014,
921,
18,
291,
12062,
1676,
1106,
12,
1132,
18,
588,
797,
1435,
3719,
288,
9506,
202,
7014,
921,
11404,
273,
261,
7014,
921,
13,
460,
31,
9506,
202,
2463,
508,
397,
4182,
397,
10681,
397,
11404,
18,
3015,
1435,
397,
10681,
31,
1082,
202,
97,
469,
309,
261,
7014,
25979,
18,
291,
12062,
1676,
1106,
12,
1132,
18,
588,
797,
1435,
3719,
288,
9506,
202,
7014,
25979,
11404,
1098,
273,
261,
7014,
25979,
13,
460,
31,
9506,
202,
2463,
508,
397,
4182,
397,
11404,
1098,
18,
3015,
5621,
1082,
202,
97,
469,
9506,
202,
2
] |
Display.getDefault().asyncExec(new Runnable() { public void run () { refresh(); } }); | Display.getDefault().asyncExec(this); | public void update(Observable o, Object arg) { Display.getDefault().asyncExec(new Runnable() { public void run () { refresh(); } }); } | 23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/64a00b6d313fc2b3680346148d1257ba4095e408/AbstractMonitoringEditPart.java/buggy/ic2d-plugins/org.objectweb.proactive.ic2d.monitoring/src/org/objectweb/proactive/ic2d/monitoring/editparts/AbstractMonitoringEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
15279,
320,
16,
1033,
1501,
13,
288,
202,
202,
4236,
18,
588,
1868,
7675,
3810,
1905,
12,
2704,
10254,
1435,
288,
1082,
202,
482,
918,
1086,
1832,
288,
9506,
202,
9144,
5621,
6862,
202,
97,
202,
202,
22938,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
15279,
320,
16,
1033,
1501,
13,
288,
202,
202,
4236,
18,
588,
1868,
7675,
3810,
1905,
12,
2704,
10254,
1435,
288,
1082,
202,
482,
918,
1086,
1832,
288,
9506,
202,
9144,
5621,
6862,
202,
97,
202,
202,
22938,
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
] |
if(TaskListView.getDefault() != null) TaskListView.getDefault().getViewer().refresh(); | Display.getDefault().asyncExec(new Runnable(){ public void run() { if(TaskListView.getDefault() != null) TaskListView.getDefault().getViewer().refresh(); } }); | private void refreshTasksAndQueries() { List<ITask> tasks = MylarTasklistPlugin.getTaskListManager().getTaskList().getRootTasks(); for (ITask task : tasks) { if (task instanceof BugzillaTask && !task.isCompleted()) {// ((BugzillaTask) task).refresh(); BugzillaUiPlugin.getDefault().getBugzillaRefreshManager().addTaskToBeRefreshed((BugzillaTask)task); } } for (ICategory cat : MylarTasklistPlugin .getTaskListManager().getTaskList().getCategories()) {// if(cat.isArchive())// continue; if (cat instanceof TaskCategory) { for (ITask task : ((TaskCategory) cat).getChildren()) { if (task instanceof BugzillaTask && !task.isCompleted()) { if(BugzillaTask.getLastRefreshTimeInMinutes(((BugzillaTask)task).getLastRefresh()) > 2){ BugzillaUiPlugin.getDefault().getBugzillaRefreshManager().addTaskToBeRefreshed((BugzillaTask)task); }// ((BugzillaTask) task).refresh(); } } if (((TaskCategory) cat).getChildren() != null) { for (ITask child : ((TaskCategory) cat).getChildren()) { if (child instanceof BugzillaTask && !child.isCompleted()) { BugzillaUiPlugin.getDefault().getBugzillaRefreshManager().addTaskToBeRefreshed((BugzillaTask)child);// ((BugzillaTask)child).refresh(); } } } } } for(IQuery query: MylarTasklistPlugin .getTaskListManager().getTaskList().getQueries()){ if(!(query instanceof BugzillaQueryCategory)){ continue; } final BugzillaQueryCategory bqc = (BugzillaQueryCategory) query; PlatformUI.getWorkbench().getDisplay().syncExec( new Runnable() { public void run() { bqc.refreshBugs(); for(IQueryHit hit: bqc.getChildren()){ if(hit.hasCorrespondingActivatableTask()){ BugzillaTask task = ((BugzillaTask)hit.getOrCreateCorrespondingTask()); if(!task.isCompleted()){ BugzillaUiPlugin.getDefault().getBugzillaRefreshManager().addTaskToBeRefreshed(task);// task.refresh(); } } } if(TaskListView.getDefault() != null) TaskListView.getDefault().getViewer().refresh(); } }); } if(TaskListView.getDefault() != null) TaskListView.getDefault().getViewer().refresh(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/3fd4c44b54eddb86f3572b62d924a9d0ab552c7f/RefreshBugzillaReportsAction.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/actions/RefreshBugzillaReportsAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4460,
6685,
1876,
9592,
1435,
288,
202,
202,
682,
32,
1285,
835,
34,
4592,
273,
8005,
7901,
2174,
1098,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
7675,
588,
2375,
6685,
5621,
202,
202,
1884,
261,
1285,
835,
1562,
294,
4592,
13,
288,
1082,
202,
430,
261,
4146,
1276,
16907,
15990,
2174,
597,
401,
4146,
18,
291,
9556,
10756,
288,
759,
9506,
202,
12443,
19865,
15990,
2174,
13,
1562,
2934,
9144,
5621,
9506,
202,
19865,
15990,
13943,
3773,
18,
588,
1868,
7675,
588,
19865,
15990,
8323,
1318,
7675,
1289,
2174,
15360,
8323,
329,
12443,
19865,
15990,
2174,
13,
4146,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
1884,
261,
2871,
1881,
6573,
294,
8005,
7901,
2174,
1098,
3773,
9506,
202,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
7675,
588,
10487,
10756,
288,
759,
1082,
202,
430,
12,
2574,
18,
291,
7465,
10756,
759,
9506,
202,
17143,
31,
25083,
202,
430,
261,
2574,
1276,
3837,
4457,
13,
288,
9506,
202,
1884,
261,
1285,
835,
1562,
294,
14015,
2174,
4457,
13,
6573,
2934,
588,
4212,
10756,
288,
6862,
202,
430,
261,
4146,
1276,
16907,
15990,
2174,
597,
401,
4146,
18,
291,
9556,
10756,
288,
25083,
202,
430,
12,
19865,
15990,
2174,
18,
588,
3024,
8323,
950,
30470,
12443,
12,
19865,
15990,
2174,
13,
4146,
2934,
588,
3024,
8323,
10756,
405,
576,
15329,
6862,
1082,
202,
19865,
15990,
13943,
3773,
18,
588,
1868,
7675,
588,
19865,
15990,
8323,
1318,
7675,
1289,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4460,
6685,
1876,
9592,
1435,
288,
202,
202,
682,
32,
1285,
835,
34,
4592,
273,
8005,
7901,
2174,
1098,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
7675,
588,
2375,
6685,
5621,
202,
202,
1884,
261,
1285,
835,
1562,
294,
4592,
13,
288,
1082,
202,
430,
261,
4146,
1276,
16907,
15990,
2174,
597,
401,
4146,
18,
291,
9556,
10756,
288,
759,
9506,
202,
12443,
19865,
15990,
2174,
13,
1562,
2934,
9144,
5621,
9506,
202,
19865,
15990,
13943,
3773,
18,
588,
1868,
7675,
588,
19865,
15990,
8323,
1318,
7675,
1289,
2174,
15360,
8323,
329,
12443,
19865,
15990,
2174,
13,
4146,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
1884,
261,
2871,
1881,
6573,
2
] |
protected boolean protocolConnect(String host, int port, String username, String password) throws MessagingException { if (port<0) port = DEFAULT_PORT; if (host==null) return false; try { hostname = host; socket = new Socket(host, port); in = new CRLFInputStream(new BufferedInputStream(socket.getInputStream())); out = new CRLFOutputStream(new BufferedOutputStream(socket.getOutputStream())); switch (getResponse()) { case READY: postingAllowed = true; case READ_ONLY: //StringTokenizer st = new StringTokenizer(response); //if (st.hasMoreTokens()) hostname = st.nextToken(); break; default: throw new MessagingException("unexpected server response: "+response); } send("MODE READER"); // newsreader extension switch (getResponse()) { case READY: postingAllowed = true; case READ_ONLY: break; } readNewsrc(); return true; } catch(UnknownHostException e) { throw new MessagingException("unknown host", e); } catch(IOException e) { throw new MessagingException("I/O error", e); } } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/NNTPStore.java/clean/grendel/sources/dog/mail/nntp/NNTPStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
1771,
5215,
12,
780,
1479,
16,
509,
1756,
16,
514,
2718,
16,
514,
2201,
13,
1216,
23794,
503,
288,
202,
202,
430,
261,
655,
32,
20,
13,
1756,
273,
3331,
67,
6354,
31,
202,
202,
430,
261,
2564,
631,
2011,
13,
1082,
202,
2463,
629,
31,
202,
202,
698,
288,
5411,
5199,
273,
1479,
31,
1082,
202,
7814,
273,
394,
8758,
12,
2564,
16,
1756,
1769,
1082,
202,
267,
273,
394,
21791,
4348,
12,
2704,
24742,
12,
7814,
18,
588,
4348,
1435,
10019,
1082,
202,
659,
273,
394,
21791,
4632,
12,
2704,
28649,
12,
7814,
18,
588,
4632,
1435,
10019,
25083,
202,
9610,
261,
588,
1064,
10756,
288,
1082,
202,
3593,
10746,
61,
30,
9506,
202,
2767,
310,
5042,
273,
638,
31,
1082,
202,
3593,
10746,
67,
10857,
30,
9506,
202,
759,
780,
10524,
384,
273,
394,
16370,
12,
2740,
1769,
9506,
202,
759,
430,
261,
334,
18,
5332,
7417,
5157,
10756,
5199,
273,
384,
18,
4285,
1345,
5621,
9506,
202,
8820,
31,
1082,
202,
1886,
30,
9506,
202,
12849,
394,
23794,
503,
2932,
21248,
1438,
766,
30,
13773,
2740,
1769,
1082,
202,
97,
25083,
202,
4661,
2932,
7038,
2438,
5483,
8863,
368,
14783,
10530,
2710,
1082,
202,
9610,
261,
588,
1064,
10756,
288,
1082,
202,
3593,
10746,
61,
30,
9506,
202,
2767,
310,
5042,
273,
638,
31,
1082,
202,
3593,
10746,
67,
10857,
30,
9506,
202,
8820,
31,
1082,
202,
97,
9506,
202,
896,
1908,
4816,
5621,
25083,
202,
2463,
638,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
1771,
5215,
12,
780,
1479,
16,
509,
1756,
16,
514,
2718,
16,
514,
2201,
13,
1216,
23794,
503,
288,
202,
202,
430,
261,
655,
32,
20,
13,
1756,
273,
3331,
67,
6354,
31,
202,
202,
430,
261,
2564,
631,
2011,
13,
1082,
202,
2463,
629,
31,
202,
202,
698,
288,
5411,
5199,
273,
1479,
31,
1082,
202,
7814,
273,
394,
8758,
12,
2564,
16,
1756,
1769,
1082,
202,
267,
273,
394,
21791,
4348,
12,
2704,
24742,
12,
7814,
18,
588,
4348,
1435,
10019,
1082,
202,
659,
273,
394,
21791,
4632,
12,
2704,
28649,
12,
7814,
18,
588,
4632,
1435,
10019,
25083,
202,
9610,
261,
588,
1064,
10756,
288,
1082,
202,
3593,
10746,
61,
30,
9506,
2
] | ||
if(!init) load(); | public static boolean getAutoWrapAround() { if(!init) load(); return wrap; } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/0e96500fbeea5db949c283b949f71ab0922ca126/SearchAndReplace.java/clean/org/gjt/sp/jedit/search/SearchAndReplace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
26707,
2964,
30022,
1435,
202,
95,
202,
202,
430,
12,
5,
2738,
13,
1082,
202,
945,
5621,
202,
202,
2463,
2193,
31,
202,
97,
368,
9090,
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,
482,
760,
1250,
26707,
2964,
30022,
1435,
202,
95,
202,
202,
430,
12,
5,
2738,
13,
1082,
202,
945,
5621,
202,
202,
2463,
2193,
31,
202,
97,
368,
9090,
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
] | |
IResource r = delta.getResource(); if (r != null && r.getType() == IResource.FILE) { this.jspFiles.put(r.getFullPath(), r); | int numSegments = delta.getFullPath().segmentCount(); String filename = delta.getFullPath().segment(numSegments-1); if (getJspContentType().isAssociatedWith(filename)) { IResource r = delta.getResource(); if (r != null && r.exists() && r.getType() == IResource.FILE) { this.jspFiles.put(r.getFullPath(), r); } | public boolean visit(IResourceDelta delta) throws CoreException { // in case JSP search was canceled (eg. when closing the editor) if(JSPSearchSupport.getInstance().isCanceled() || frameworkIsShuttingDown()) { setCanceledState(); return false; } try { int kind = delta.getKind(); boolean added = (kind & IResourceDelta.ADDED) == IResourceDelta.ADDED; boolean isInterestingChange = false; if((kind & IResourceDelta.CHANGED) == IResourceDelta.CHANGED) { int flags = delta.getFlags(); // ignore things like marker changes isInterestingChange = (flags & IResourceDelta.CONTENT) == IResourceDelta.CONTENT || (flags & IResourceDelta.REPLACED) == IResourceDelta.REPLACED; } boolean removed = (kind & IResourceDelta.REMOVED) == IResourceDelta.REMOVED; if(added || isInterestingChange) { // https://w3.opensource.ibm.com/bugzilla/show_bug.cgi?id=3553 // quick check if it's even JSP related to improve performance // checking name from the delta before getting resource because it's lighter int numSegments = delta.getFullPath().segmentCount(); String filename = delta.getFullPath().segment(numSegments-1); if (getJspContentType().isAssociatedWith(filename)) { IResource r = delta.getResource(); if (r != null && r.getType() == IResource.FILE) { this.jspFiles.put(r.getFullPath(), r); } } } else if(removed) { // handle cleanup if(delta.getResource() != null) { IResource r = delta.getResource(); if(r.getType() == IResource.FOLDER && r.exists()) { deleteIndex((IFile)r); } } } } catch (Exception e){ // need to set state here somehow, and reindex // otherwise index will be unreliable if(DEBUG) Logger.logException("Delta analysis may not be complete", e); //$NON-NLS-1$ } // if the delta has children, continue to add/remove files return true; } | 13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/faf1dd86568f231cd811805232803ee4cd57d451/JSPIndexManager.java/buggy/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/search/JSPIndexManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
3757,
12,
45,
1420,
9242,
3622,
13,
1216,
30015,
288,
25083,
202,
759,
316,
648,
804,
3118,
1623,
1703,
17271,
261,
1332,
18,
1347,
7647,
326,
4858,
13,
1082,
202,
430,
12,
46,
3118,
2979,
6289,
18,
588,
1442,
7675,
291,
23163,
1435,
747,
8257,
2520,
1555,
25387,
4164,
10756,
288,
9506,
202,
542,
23163,
1119,
5621,
9506,
202,
2463,
629,
31,
1082,
202,
97,
25083,
202,
698,
288,
9506,
202,
474,
3846,
273,
3622,
18,
588,
5677,
5621,
9506,
202,
6494,
3096,
273,
261,
9224,
473,
467,
1420,
9242,
18,
1880,
7660,
13,
422,
467,
1420,
9242,
18,
1880,
7660,
31,
9506,
202,
6494,
353,
2465,
10100,
3043,
273,
629,
31,
9506,
202,
430,
12443,
9224,
473,
467,
1420,
9242,
18,
24435,
13,
422,
467,
1420,
9242,
18,
24435,
13,
288,
6862,
202,
474,
2943,
273,
3622,
18,
588,
5094,
5621,
6862,
202,
759,
2305,
9198,
3007,
5373,
3478,
6862,
202,
291,
2465,
10100,
3043,
273,
261,
7133,
473,
467,
1420,
9242,
18,
9689,
13,
422,
467,
1420,
9242,
18,
9689,
747,
261,
7133,
473,
467,
1420,
9242,
18,
21726,
40,
13,
422,
467,
1420,
9242,
18,
21726,
40,
31,
9506,
202,
97,
9506,
202,
6494,
3723,
273,
261,
9224,
473,
467,
1420,
9242,
18,
11122,
12135,
13,
422,
467,
1420,
9242,
18,
11122,
12135,
31,
9506,
202,
430,
12,
9665,
747,
353,
2465,
10100,
3043,
13,
288,
6862,
25083,
202,
759,
2333,
2207,
91,
23,
18,
20346,
552,
18,
10827,
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,
3196,
202,
482,
1250,
3757,
12,
45,
1420,
9242,
3622,
13,
1216,
30015,
288,
25083,
202,
759,
316,
648,
804,
3118,
1623,
1703,
17271,
261,
1332,
18,
1347,
7647,
326,
4858,
13,
1082,
202,
430,
12,
46,
3118,
2979,
6289,
18,
588,
1442,
7675,
291,
23163,
1435,
747,
8257,
2520,
1555,
25387,
4164,
10756,
288,
9506,
202,
542,
23163,
1119,
5621,
9506,
202,
2463,
629,
31,
1082,
202,
97,
25083,
202,
698,
288,
9506,
202,
474,
3846,
273,
3622,
18,
588,
5677,
5621,
9506,
202,
6494,
3096,
273,
261,
9224,
473,
467,
1420,
9242,
18,
1880,
7660,
13,
422,
467,
1420,
9242,
18,
1880,
7660,
31,
9506,
202,
6494,
353,
2465,
10100,
3043,
273,
629,
31,
9506,
202,
430,
2
] |
return new BaseFile(baseStatusInfo); | String charset = null; try { charset = ((IEncodedStorage)local).getCharset(); } catch (CoreException e) { e.printStackTrace(); } return new BaseFile(baseStatusInfo, charset); | private static IResourceVariant createBaseResourceVariant(IResource local, LocalResourceStatus baseStatusInfo) { if( baseStatusInfo == null || baseStatusInfo.getLastChangedRevision() == null ) return null; if( local.getType() == IResource.FILE ) { return new BaseFile(baseStatusInfo); } else { return new BaseFolder(baseStatusInfo); } } | 6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/3464d619b98a1256fe41899a2a54c459b74cf796/SVNStatusSyncInfo.java/clean/subclipse/core/src/org/tigris/subversion/subclipse/core/sync/SVNStatusSyncInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
467,
1420,
9356,
752,
2171,
1420,
9356,
12,
45,
1420,
1191,
16,
3566,
1420,
1482,
1026,
1482,
966,
13,
288,
3639,
309,
12,
1026,
1482,
966,
422,
446,
7734,
747,
1026,
1482,
966,
18,
588,
3024,
5033,
7939,
1435,
422,
446,
262,
1850,
327,
446,
31,
7734,
309,
12,
1191,
18,
588,
559,
1435,
422,
467,
1420,
18,
3776,
262,
288,
5411,
514,
4856,
273,
446,
31,
775,
288,
4856,
273,
14015,
45,
10397,
3245,
13,
3729,
2934,
588,
9652,
5621,
289,
1044,
261,
25341,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
327,
394,
3360,
812,
12,
1969,
1482,
966,
16,
4856,
1769,
3639,
289,
3639,
469,
288,
5411,
327,
394,
3360,
3899,
12,
1969,
1482,
966,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
467,
1420,
9356,
752,
2171,
1420,
9356,
12,
45,
1420,
1191,
16,
3566,
1420,
1482,
1026,
1482,
966,
13,
288,
3639,
309,
12,
1026,
1482,
966,
422,
446,
7734,
747,
1026,
1482,
966,
18,
588,
3024,
5033,
7939,
1435,
422,
446,
262,
1850,
327,
446,
31,
7734,
309,
12,
1191,
18,
588,
559,
1435,
422,
467,
1420,
18,
3776,
262,
288,
5411,
514,
4856,
273,
446,
31,
775,
288,
4856,
273,
14015,
45,
10397,
3245,
13,
3729,
2934,
588,
9652,
5621,
289,
1044,
261,
25341,
425,
13,
288,
425,
18,
1188,
6332,
5621,
289,
327,
394,
3360,
812,
12,
1969,
1482,
966,
16,
4856,
1769,
3639,
289,
3639,
469,
288,
5411,
327,
394,
3360,
3899,
12,
2
] |
if (!wasNullFlag) | if ( fields[columnIndex - 1].getOID() == 26) | public byte[] getBytes(int columnIndex) throws SQLException { if (columnIndex < 1 || columnIndex > fields.length) throw new PSQLException("postgresql.res.colrange"); //If the data is already binary then just return it if (binaryCursor) return this_row[columnIndex - 1]; if (connection.haveMinimumCompatibleVersion("7.2")) { //Version 7.2 supports the bytea datatype for byte arrays return PGbytea.toBytes(getString(columnIndex)); } else { //Version 7.1 and earlier supports LargeObjects for byte arrays wasNullFlag = (this_row[columnIndex - 1] == null); // Handle OID's as BLOBS if (!wasNullFlag) { if ( fields[columnIndex - 1].getOID() == 26) { LargeObjectManager lom = connection.getLargeObjectAPI(); LargeObject lob = lom.open(getInt(columnIndex)); byte buf[] = lob.read(lob.size()); lob.close(); return buf; } } } return null; } | 46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/512a3aef36591386640f34866c1acbe58c20ca6e/ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1160,
8526,
8425,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
455,
18,
1293,
3676,
8863,
202,
202,
759,
2047,
326,
501,
353,
1818,
3112,
1508,
2537,
327,
518,
202,
202,
430,
261,
8578,
6688,
13,
1082,
202,
2463,
333,
67,
492,
63,
2827,
1016,
300,
404,
15533,
202,
202,
430,
261,
4071,
18,
21516,
13042,
14599,
1444,
2932,
27,
18,
22,
6,
3719,
202,
202,
95,
1082,
202,
759,
1444,
2371,
18,
22,
6146,
326,
1160,
69,
11172,
364,
1160,
5352,
1082,
202,
2463,
22116,
7229,
69,
18,
869,
2160,
12,
588,
780,
12,
2827,
1016,
10019,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
759,
1444,
2371,
18,
21,
471,
13805,
6146,
16236,
908,
4710,
364,
1160,
5352,
1082,
202,
17416,
2041,
4678,
273,
261,
2211,
67,
492,
63,
2827,
1016,
300,
404,
65,
422,
446,
1769,
1082,
202,
759,
5004,
18026,
1807,
487,
605,
6038,
55,
1082,
202,
430,
16051,
17416,
2041,
4678,
13,
1082,
202,
95,
9506,
202,
430,
261,
1466,
63,
2827,
1016,
300,
404,
8009,
588,
12945,
1435,
422,
10659,
13,
9506,
202,
95,
6862,
202,
20020,
921,
1318,
328,
362,
273,
1459,
18,
588,
20020,
921,
2557,
5621,
6862,
202,
20020,
921,
22925,
273,
328,
362,
18,
3190,
12,
588,
1702,
12,
2827,
1016,
10019,
6862,
202,
7229,
1681,
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,
1160,
8526,
8425,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
455,
18,
1293,
3676,
8863,
202,
202,
759,
2047,
326,
501,
353,
1818,
3112,
1508,
2537,
327,
518,
202,
202,
430,
261,
8578,
6688,
13,
1082,
202,
2463,
333,
67,
492,
63,
2827,
1016,
300,
404,
15533,
202,
202,
430,
261,
4071,
18,
21516,
13042,
14599,
1444,
2932,
27,
18,
22,
6,
3719,
202,
202,
95,
1082,
202,
759,
1444,
2371,
18,
22,
6146,
326,
1160,
69,
11172,
364,
1160,
5352,
1082,
202,
2463,
22116,
7229,
69,
18,
869,
2160,
2
] |
public void extra_statement() throws RecognitionException { try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:416:9: ( ( import_statement | global | function ) ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:416:9: ( import_statement | global | function ) { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:416:9: ( import_statement | global | function ) int alt24=3; switch ( input.LA(1) ) { case 17: alt24=1; break; case 19: alt24=2; break; case 20: alt24=3; break; default: NoViableAltException nvae = new NoViableAltException("416:9: ( import_statement | global | function )", 24, 0, input); throw nvae; } switch (alt24) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:416:17: import_statement { following.push(FOLLOW_import_statement_in_extra_statement720); import_statement(); following.pop(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:417:17: global { following.push(FOLLOW_global_in_extra_statement725); global(); following.pop(); } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:418:17: function { following.push(FOLLOW_function_in_extra_statement730); function(); following.pop(); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/e3fb9256ae6e5fcb8c78a2c3dbd47f678d9b1287/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2870,
67,
11516,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
24,
2313,
30,
29,
30,
261,
261,
1930,
67,
11516,
571,
2552,
571,
445,
262,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
24,
2313,
30,
29,
30,
261,
1930,
67,
11516,
571,
2552,
571,
445,
262,
5411,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
24,
2313,
30,
29,
30,
261,
1930,
67,
11516,
571,
2552,
571,
445,
262,
5411,
509,
3770,
3247,
33,
23,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
5411,
648,
8043,
30,
7734,
3770,
3247,
33,
21,
31,
7734,
898,
31,
5411,
648,
5342,
30,
7734,
3770,
3247,
33,
22,
31,
7734,
898,
31,
5411,
648,
4200,
30,
7734,
3770,
3247,
33,
23,
31,
7734,
898,
31,
5411,
805,
30,
7734,
17114,
15077,
273,
10792,
394,
17114,
2932,
24,
2313,
30,
29,
30,
261,
1930,
67,
11516,
571,
2552,
571,
445,
262,
3113,
4248,
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,
918,
2870,
67,
11516,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
24,
2313,
30,
29,
30,
261,
261,
1930,
67,
11516,
571,
2552,
571,
445,
262,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
24,
2313,
30,
29,
30,
261,
1930,
67,
11516,
571,
2552,
571,
445,
262,
5411,
288,
5411,
368,
385,
5581,
15298,
64,
2
] | ||
public void setAttributeNS(String namespaceURI,String qualifiedName, String value) { if (ownerDocument.errorChecking && isReadOnly()) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "NO_MODIFICATION_ALLOWED_ERR", null); throw new DOMException( DOMException.NO_MODIFICATION_ALLOWED_ERR, msg); } if (needsSyncData()) { synchronizeData(); } int index = qualifiedName.indexOf(':'); String prefix, localName; if (index < 0) { prefix = null; localName = qualifiedName; } else { prefix = qualifiedName.substring(0, index); localName = qualifiedName.substring(index + 1); } Attr newAttr = getAttributeNodeNS(namespaceURI, localName); if (newAttr == null) { // REVISIT: this is not efficient, we are creating twice the same // strings for prefix and localName. newAttr = getOwnerDocument().createAttributeNS( namespaceURI, qualifiedName); if (attributes == null) { attributes = new AttributeMap(this, null); } newAttr.setNodeValue(value); attributes.setNamedItemNS(newAttr); } else { // change prefix and value ((AttrNSImpl)newAttr).name= (prefix!=null)?(prefix+":"+localName):localName; newAttr.setNodeValue(value); } } // setAttributeNS(String,String,String) | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/e1631937d916e603ad03eee4efdccccc3179d206/ElementImpl.java/clean/src/org/apache/xerces/dom/ElementImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
1071,
918,
4730,
3156,
12,
780,
19421,
16,
780,
24133,
16,
1082,
12900,
514,
460,
13,
288,
202,
202,
430,
261,
8443,
2519,
18,
1636,
14294,
597,
26249,
10756,
288,
1082,
202,
780,
1234,
273,
9506,
202,
8168,
1079,
5074,
18,
2139,
1079,
12,
6862,
202,
8168,
1079,
5074,
18,
8168,
67,
18192,
16,
6862,
202,
6,
3417,
67,
6720,
14865,
67,
16852,
67,
9712,
3113,
6862,
202,
2011,
1769,
1082,
202,
12849,
394,
4703,
503,
12,
9506,
202,
8168,
503,
18,
3417,
67,
6720,
14865,
67,
16852,
67,
9712,
16,
9506,
202,
3576,
1769,
202,
202,
97,
202,
202,
430,
261,
20600,
4047,
751,
10756,
288,
1082,
202,
87,
2600,
554,
751,
5621,
202,
202,
97,
202,
202,
474,
770,
273,
24133,
18,
31806,
2668,
2497,
1769,
202,
202,
780,
1633,
16,
11927,
31,
202,
202,
430,
261,
1615,
411,
374,
13,
288,
1082,
202,
3239,
273,
446,
31,
1082,
202,
3729,
461,
273,
24133,
31,
202,
202,
97,
202,
202,
12107,
288,
1082,
202,
3239,
273,
24133,
18,
28023,
12,
20,
16,
770,
1769,
1082,
202,
3729,
461,
273,
24133,
18,
28023,
12,
1615,
397,
404,
1769,
202,
202,
97,
202,
202,
3843,
394,
3843,
273,
4061,
907,
3156,
12,
4937,
3098,
16,
11927,
1769,
202,
202,
430,
261,
2704,
3843,
422,
446,
13,
288,
5411,
368,
2438,
26780,
1285,
30,
333,
353,
486,
14382,
16,
732,
854,
4979,
13605,
326,
1967,
5411,
368,
1850,
2064,
364,
1633,
471,
11927,
18,
1082,
202,
2704,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
1071,
918,
4730,
3156,
12,
780,
19421,
16,
780,
24133,
16,
1082,
12900,
514,
460,
13,
288,
202,
202,
430,
261,
8443,
2519,
18,
1636,
14294,
597,
26249,
10756,
288,
1082,
202,
780,
1234,
273,
9506,
202,
8168,
1079,
5074,
18,
2139,
1079,
12,
6862,
202,
8168,
1079,
5074,
18,
8168,
67,
18192,
16,
6862,
202,
6,
3417,
67,
6720,
14865,
67,
16852,
67,
9712,
3113,
6862,
202,
2011,
1769,
1082,
202,
12849,
394,
4703,
503,
12,
9506,
202,
8168,
503,
18,
3417,
67,
6720,
14865,
67,
16852,
67,
9712,
16,
9506,
202,
3576,
1769,
202,
202,
97,
202,
202,
430,
261,
20600,
4047,
751,
10756,
288,
1082,
202,
87,
2600,
554,
751,
5621,
202,
202,
97,
202,
2
] | ||
if (i >= 0 && i < 65536) { | if ((i >= 0) && (i < 65536)) { | public static String decode(String s) { String t; Character ch; int tmpPos, i; int maxPos = s.length(); StringBuffer sb = new StringBuffer(maxPos); int curPos = 0; while (curPos < maxPos) { char c = s.charAt(curPos++); if (c == '&') { tmpPos = curPos; if (tmpPos < maxPos) { char d = s.charAt(tmpPos++); if (d == '#') { if (tmpPos < maxPos) { d = s.charAt(tmpPos++); if (d == 'x' || d == 'X') { if (tmpPos < maxPos) { d = s.charAt(tmpPos++); if (isHexDigit(d)) { while (tmpPos < maxPos) { d = s.charAt(tmpPos++); if (!isHexDigit(d)) { if (d == ';') { t = s.substring( curPos + 2, tmpPos - 1); try { i = Integer.parseInt( t, 16); if (i >= 0 && i < 65536) { c = (char) i; curPos = tmpPos; } } catch (NumberFormatException e) { } } break; } } } } } else if (isDigit(d)) { while (tmpPos < maxPos) { d = s.charAt(tmpPos++); if (!isDigit(d)) { if (d == ';') { t = s.substring( curPos + 1, tmpPos - 1); try { i = Integer.parseInt(t); if (i >= 0 && i < 65536) { c = (char) i; curPos = tmpPos; } } catch (NumberFormatException e) { } } break; } } } } } else if (isLetter(d)) { while (tmpPos < maxPos) { d = s.charAt(tmpPos++); if (!isLetterOrDigit(d)) { if (d == ';') { t = s.substring(curPos, tmpPos - 1); ch = (Character) charTable.get(t); if (ch != null) { c = ch.charValue(); curPos = tmpPos; } } break; } } } } } sb.append(c); } return sb.toString(); } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/HTMLDecoder.java/buggy/src/freenet/support/HTMLDecoder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
2495,
12,
780,
272,
13,
288,
202,
202,
780,
268,
31,
202,
202,
7069,
462,
31,
202,
202,
474,
1853,
1616,
16,
277,
31,
202,
202,
474,
943,
1616,
273,
272,
18,
2469,
5621,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
1896,
1616,
1769,
202,
202,
474,
662,
1616,
273,
374,
31,
202,
202,
17523,
261,
1397,
1616,
411,
943,
1616,
13,
288,
1082,
202,
3001,
276,
273,
272,
18,
3001,
861,
12,
1397,
1616,
9904,
1769,
1082,
202,
430,
261,
71,
422,
5183,
6134,
288,
9506,
202,
5645,
1616,
273,
662,
1616,
31,
9506,
202,
430,
261,
5645,
1616,
411,
943,
1616,
13,
288,
6862,
202,
3001,
302,
273,
272,
18,
3001,
861,
12,
5645,
1616,
9904,
1769,
6862,
202,
430,
261,
72,
422,
2946,
6134,
288,
25083,
202,
430,
261,
5645,
1616,
411,
943,
1616,
13,
288,
6862,
1082,
202,
72,
273,
272,
18,
3001,
861,
12,
5645,
1616,
9904,
1769,
6862,
1082,
202,
430,
261,
72,
422,
296,
92,
11,
747,
302,
422,
296,
60,
6134,
288,
6862,
9506,
202,
430,
261,
5645,
1616,
411,
943,
1616,
13,
288,
6862,
6862,
202,
72,
273,
272,
18,
3001,
861,
12,
5645,
1616,
9904,
1769,
6862,
6862,
202,
430,
261,
291,
7037,
10907,
12,
72,
3719,
288,
6862,
25083,
202,
17523,
261,
5645,
1616,
411,
943,
1616,
13,
288,
6862,
6862,
1082,
202,
72,
273,
272,
18,
3001,
861,
12,
5645,
1616,
9904,
1769,
6862,
6862,
1082,
202,
430,
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,
514,
2495,
12,
780,
272,
13,
288,
202,
202,
780,
268,
31,
202,
202,
7069,
462,
31,
202,
202,
474,
1853,
1616,
16,
277,
31,
202,
202,
474,
943,
1616,
273,
272,
18,
2469,
5621,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
1896,
1616,
1769,
202,
202,
474,
662,
1616,
273,
374,
31,
202,
202,
17523,
261,
1397,
1616,
411,
943,
1616,
13,
288,
1082,
202,
3001,
276,
273,
272,
18,
3001,
861,
12,
1397,
1616,
9904,
1769,
1082,
202,
430,
261,
71,
422,
5183,
6134,
288,
9506,
202,
5645,
1616,
273,
662,
1616,
31,
9506,
202,
430,
261,
5645,
1616,
411,
943,
1616,
13,
288,
6862,
202,
3001,
302,
273,
272,
18,
2
] |
PrimType dtype = Type.double_type; | PrimType dtype = LangPrimType.doubleType; | public void compile (ApplyExp exp, Compilation comp, Target target) { Expression[] args = exp.getArgs(); int len = args.length; if (len == 0) { comp.compileConstant(IntNum.zero(), target); return; } Type type = getReturnType(args); Type ttype = target.getType(); if (len == 1 || target instanceof IgnoreTarget) { // FIXME implement optimization for unary ApplyExp.compile(exp, comp, target); return; } PrimType ptype = null; if (ttype instanceof PrimType) { char sig = type.getSignature().charAt(0); if (sig == 'V' || sig == 'Z' || sig == 'C') ptype = null; // error else if (sig == 'D' || sig == 'F') { if (type.isSubtype(typeRealNum)) ptype = LangPrimType.doubleType; } else { if (type.isSubtype(typeIntNum)) ptype = sig == 'J' ? LangPrimType.longType : LangPrimType.intType; } } if (ptype != null) { CodeAttr code = comp.getCode(); // FIXME would be nice to use iinc when appropriate! // We would need to use a special LocalVariableTarget, // created by SetExp when dest is a local variable. // Then if len==2 && ptype==LangPrimType.intType // && target instanceof LocalVariableTarget // && one arg is QuoteExp && other arg is same local as target // => then emit iinc. args[0].compile(comp, ttype); for (int i = 1; i < len; i++) { args[i].compile(comp, ptype); if (plusOrMinus > 0) code.emitAdd(ptype); else code.emitSub(ptype); } target.compileFromStack(comp, ttype); } else if (type.isSubtype(typeDFloNum)) { PrimType dtype = Type.double_type; Target dtarget = new StackTarget(dtype); CodeAttr code = comp.getCode(); args[0].compile(comp, dtarget); for (int i = 1; i < len; i++) { args[i].compile(comp, dtarget); if (plusOrMinus > 0) code.emitAdd(dtype); else code.emitSub(dtype); } target.compileFromStack(comp, dtype); } else ApplyExp.compile(exp, comp, target); } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/dcb55ad6e7b06cfcd882620085a7dabd0f5d03de/AddOp.java/buggy/gnu/kawa/functions/AddOp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4074,
261,
7001,
2966,
1329,
16,
22416,
1161,
16,
5916,
1018,
13,
225,
288,
565,
5371,
8526,
833,
273,
1329,
18,
588,
2615,
5621,
565,
509,
562,
273,
833,
18,
2469,
31,
565,
309,
261,
1897,
422,
374,
13,
1377,
288,
202,
2919,
18,
11100,
6902,
12,
1702,
2578,
18,
7124,
9334,
1018,
1769,
202,
2463,
31,
1377,
289,
565,
1412,
618,
273,
18209,
12,
1968,
1769,
565,
1412,
27963,
273,
1018,
18,
588,
559,
5621,
565,
309,
261,
1897,
422,
404,
747,
1018,
1276,
8049,
2326,
13,
1377,
288,
202,
759,
9852,
2348,
14850,
364,
19017,
202,
7001,
2966,
18,
11100,
12,
2749,
16,
1161,
16,
1018,
1769,
202,
2463,
31,
1377,
289,
565,
2301,
381,
559,
24203,
273,
446,
31,
565,
309,
261,
88,
723,
1276,
2301,
381,
559,
13,
1377,
288,
202,
3001,
3553,
273,
618,
18,
588,
5374,
7675,
3001,
861,
12,
20,
1769,
202,
430,
261,
7340,
422,
296,
58,
11,
747,
3553,
422,
296,
62,
11,
747,
3553,
422,
296,
39,
6134,
202,
24203,
273,
446,
31,
368,
555,
202,
12107,
309,
261,
7340,
422,
296,
40,
11,
747,
3553,
422,
296,
42,
6134,
202,
225,
288,
202,
565,
309,
261,
723,
18,
291,
1676,
723,
12,
723,
6955,
2578,
3719,
202,
1377,
24203,
273,
13346,
2050,
381,
559,
18,
9056,
559,
31,
202,
225,
289,
202,
12107,
202,
225,
288,
202,
565,
309,
261,
723,
18,
291,
1676,
723,
12,
723,
1702,
2578,
3719,
202,
1377,
24203,
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,
4074,
261,
7001,
2966,
1329,
16,
22416,
1161,
16,
5916,
1018,
13,
225,
288,
565,
5371,
8526,
833,
273,
1329,
18,
588,
2615,
5621,
565,
509,
562,
273,
833,
18,
2469,
31,
565,
309,
261,
1897,
422,
374,
13,
1377,
288,
202,
2919,
18,
11100,
6902,
12,
1702,
2578,
18,
7124,
9334,
1018,
1769,
202,
2463,
31,
1377,
289,
565,
1412,
618,
273,
18209,
12,
1968,
1769,
565,
1412,
27963,
273,
1018,
18,
588,
559,
5621,
565,
309,
261,
1897,
422,
404,
747,
1018,
1276,
8049,
2326,
13,
1377,
288,
202,
759,
9852,
2348,
14850,
364,
19017,
202,
7001,
2966,
18,
11100,
12,
2749,
16,
1161,
16,
1018,
1769,
202,
2463,
31,
1377,
289,
565,
2301,
2
] |
checksumCalculator.update(contents); newEntry.setCrc(checksumCalculator.getValue()); | try { int n; while ((n = contentStream.read(readBuffer)) > 0) { checksumCalculator.update(readBuffer, 0, n); length += n; } } finally { if (contentStream != null) contentStream.close(); } entry.setSize(length); entry.setCrc(checksumCalculator.getValue()); | protected void write(String pathname, byte[] contents) throws IOException { ZipEntry newEntry = new ZipEntry(pathname); // if the contents are being compressed then we get the below for free. if (!useCompression) { newEntry.setMethod(ZipEntry.STORED); newEntry.setSize(contents.length); CRC32 checksumCalculator = new CRC32(); checksumCalculator.update(contents); newEntry.setCrc(checksumCalculator.getValue()); } outputStream.putNextEntry(newEntry); outputStream.write(contents); outputStream.closeEntry(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/33acc2206a9aba657b1895392254d8196c1cfeec/ZipFileExporter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ZipFileExporter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1045,
12,
780,
9806,
16,
1160,
8526,
2939,
13,
1216,
1860,
288,
3639,
23652,
24086,
273,
394,
23652,
12,
28336,
1769,
3639,
368,
309,
326,
2939,
854,
3832,
8968,
1508,
732,
336,
326,
5712,
364,
4843,
18,
3639,
309,
16051,
1202,
15270,
13,
288,
5411,
24086,
18,
542,
1305,
12,
9141,
1622,
18,
31487,
5879,
1769,
5411,
24086,
18,
542,
1225,
12,
3980,
18,
2469,
1769,
5411,
21773,
1578,
6697,
19278,
273,
394,
21773,
1578,
5621,
5411,
6697,
19278,
18,
2725,
12,
3980,
1769,
5411,
24086,
18,
542,
39,
1310,
12,
15149,
19278,
18,
24805,
10663,
3639,
289,
3639,
14956,
18,
458,
2134,
1622,
12,
2704,
1622,
1769,
3639,
14956,
18,
2626,
12,
3980,
1769,
3639,
14956,
18,
4412,
1622,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1045,
12,
780,
9806,
16,
1160,
8526,
2939,
13,
1216,
1860,
288,
3639,
23652,
24086,
273,
394,
23652,
12,
28336,
1769,
3639,
368,
309,
326,
2939,
854,
3832,
8968,
1508,
732,
336,
326,
5712,
364,
4843,
18,
3639,
309,
16051,
1202,
15270,
13,
288,
5411,
24086,
18,
542,
1305,
12,
9141,
1622,
18,
31487,
5879,
1769,
5411,
24086,
18,
542,
1225,
12,
3980,
18,
2469,
1769,
5411,
21773,
1578,
6697,
19278,
273,
394,
21773,
1578,
5621,
5411,
6697,
19278,
18,
2725,
12,
3980,
1769,
5411,
24086,
18,
542,
39,
1310,
12,
15149,
19278,
18,
24805,
10663,
3639,
289,
3639,
14956,
18,
458,
2134,
1622,
12,
2704,
1622,
1769,
3639,
14956,
18,
2626,
12,
3980,
1769,
3639,
2
] |
if (emacsMode) | if (emacsMode) { | protected void parseOutput(BufferedReader reader) throws IOException { if (emacsMode) parseEmacsOutput(reader); else parseStandardOutput(reader); } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/e3b6d1fe768d87352d3d0348638911045fc4668e/JikesOutputParser.java/buggy/src/main/org/apache/tools/ant/taskdefs/JikesOutputParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1109,
1447,
12,
17947,
2514,
2949,
13,
1216,
1860,
288,
4202,
309,
261,
351,
28965,
2309,
13,
288,
6647,
1109,
1514,
28965,
1447,
12,
10530,
1769,
4202,
469,
6647,
1109,
8336,
1447,
12,
10530,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1109,
1447,
12,
17947,
2514,
2949,
13,
1216,
1860,
288,
4202,
309,
261,
351,
28965,
2309,
13,
288,
6647,
1109,
1514,
28965,
1447,
12,
10530,
1769,
4202,
469,
6647,
1109,
8336,
1447,
12,
10530,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return parentrec != 0 ? getLinkage().getNode(parentrec) : null; | return parentrec != 0 ? getLinkageImpl().getNode(parentrec) : null; | public PDOMNode getParentNode() throws CoreException { int parentrec = pdom.getDB().getInt(record + PARENT); return parentrec != 0 ? getLinkage().getNode(parentrec) : null; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f5a4ba1d7638b16bde80c2f1086c78aa03af1f90/PDOMNode.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
453,
8168,
907,
5089,
907,
1435,
1216,
30015,
288,
202,
202,
474,
982,
3927,
273,
4863,
362,
18,
588,
2290,
7675,
588,
1702,
12,
3366,
397,
26367,
1769,
202,
202,
2463,
982,
3927,
480,
374,
692,
15545,
410,
7675,
588,
907,
12,
2938,
3927,
13,
294,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
453,
8168,
907,
5089,
907,
1435,
1216,
30015,
288,
202,
202,
474,
982,
3927,
273,
4863,
362,
18,
588,
2290,
7675,
588,
1702,
12,
3366,
397,
26367,
1769,
202,
202,
2463,
982,
3927,
480,
374,
692,
15545,
410,
7675,
588,
907,
12,
2938,
3927,
13,
294,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new PSQLException("postgresql.updateable.ioerror", ie); | throw new PSQLException("postgresql.updateable.ioerror", null, ie); | public synchronized void updateCharacterStream(int columnIndex, java.io.Reader x, int length ) throws SQLException { char[] theData = null; try { x.read(theData, 0, length); } catch (NullPointerException ex) { throw new PSQLException("postgresql.updateable.inputstream"); } catch (IOException ie) { throw new PSQLException("postgresql.updateable.ioerror", ie); } updateValue(columnIndex, theData); } | 49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/4fdd04a19cf451dea40bd4786a2d21fd10d112cc/AbstractJdbc2ResultSet.java/clean/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1089,
7069,
1228,
12,
474,
14882,
16,
1082,
202,
6290,
18,
1594,
18,
2514,
619,
16,
1082,
202,
474,
769,
6862,
6862,
6862,
225,
262,
202,
15069,
6483,
202,
95,
202,
202,
3001,
8526,
326,
751,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
92,
18,
896,
12,
5787,
751,
16,
374,
16,
769,
1769,
202,
202,
97,
202,
202,
14683,
261,
2041,
9992,
431,
13,
202,
202,
95,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
2725,
429,
18,
2630,
3256,
8863,
202,
202,
97,
202,
202,
14683,
261,
14106,
9228,
13,
202,
202,
95,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
2725,
429,
18,
1594,
1636,
3113,
9228,
1769,
202,
202,
97,
202,
202,
2725,
620,
12,
2827,
1016,
16,
326,
751,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1089,
7069,
1228,
12,
474,
14882,
16,
1082,
202,
6290,
18,
1594,
18,
2514,
619,
16,
1082,
202,
474,
769,
6862,
6862,
6862,
225,
262,
202,
15069,
6483,
202,
95,
202,
202,
3001,
8526,
326,
751,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
92,
18,
896,
12,
5787,
751,
16,
374,
16,
769,
1769,
202,
202,
97,
202,
202,
14683,
261,
2041,
9992,
431,
13,
202,
202,
95,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
2725,
429,
18,
2630,
3256,
8863,
202,
202,
97,
202,
202,
14683,
261,
14106,
9228,
13,
202,
202,
95,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
2725,
429,
18,
2
] |
return getInstance( className ); | return getInstance( className, context ); | protected static Object getInstance( DesignElementHandle element ) { String className = element.getEventHandlerClass( ); return getInstance( className ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/c0422a1db84842d1e332663c3d4c7e2a8109aca8/ScriptExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ScriptExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
1033,
3694,
12,
29703,
1046,
3259,
930,
262,
202,
95,
202,
202,
780,
2658,
273,
930,
18,
588,
16402,
797,
12,
11272,
202,
202,
2463,
3694,
12,
2658,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
1033,
3694,
12,
29703,
1046,
3259,
930,
262,
202,
95,
202,
202,
780,
2658,
273,
930,
18,
588,
16402,
797,
12,
11272,
202,
202,
2463,
3694,
12,
2658,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public IRubyObject convertToFloat() { | public RubyFloat convertToFloat() { | public IRubyObject convertToFloat() { return getRuntime().newFloat(getDoubleValue()); } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyNumeric.java/clean/src/org/jruby/RubyNumeric.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4723,
8137,
4723,
1435,
288,
3639,
327,
18814,
7675,
2704,
4723,
12,
588,
5265,
620,
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,
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,
1071,
19817,
4723,
8137,
4723,
1435,
288,
3639,
327,
18814,
7675,
2704,
4723,
12,
588,
5265,
620,
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,
-100,
-100
] |
if ("primary".equals(getAttributeValue(srcGeneName, "type"))) { primaryGeneName = new String(getAttributeValue(srcGeneName, "name")); } else if ("ORF".equals(getAttributeValue(srcGeneName, "type"))) { String tmp = getAttributeValue(srcGeneName, "name"); | String type = getAttributeValue(srcGeneName, "type"); String name = getAttributeValue(srcGeneName, "name"); geneNameTypeToName.put(type, name); if ("primary".equals(type)) { primaryGeneName = name; } else if ("ORF".equals(type)) { String tmp = name; | protected Collection translateItem(Item srcItem) throws ObjectStoreException, InterMineException { // This Item should be an EntryType and only have proteins associated with one organism. if (!(SRC_NS + "Entry").equals(srcItem.getClassName())) { throw new IllegalArgumentException("Attempted to translate and Uniprot source Item that" + " is not of class " + SRC_NS + "Entry"); } // First things first: find out the taxonid of the organism of this entry. int taxonId = 0; List organismList = getItemsInCollection(srcItem.getCollection("organisms")); Iterator organismIter = organismList.iterator(); while (organismIter.hasNext()) { // Drosophila melanogaster = 7227 // Caenorhabditis elegans 6239 // Anopheles gambiae = 7165 // Homo sapiens = 9606 Item organism = (Item) organismIter.next(); Iterator dbRefIter = getItemsInCollection( organism.getCollection("dbReferences")).iterator(); while (dbRefIter.hasNext()) { Item dbReference = (Item) dbRefIter.next(); String type = getAttributeValue(dbReference, "type"); if ("NCBI Taxonomy".equals(type)) { String taxonString = getAttributeValue(dbReference, "id"); if (taxonId != 0) { throw new IllegalStateException("Attempting to set taxon id to " + taxonString + " when it is already " + taxonId); } taxonId = Integer.parseInt(taxonString); } } } if (taxonId != 0) { Set retval = new HashSet(); Reference organismReference = new Reference("organism", getOrganismId(taxonId)); // 1. create Protein, same for all organisms // <entry> Item protein = createItem(tgtNs + "Protein", ""); // find name and set all names as synonyms List proteinNames = getItemsInCollection(srcItem.getCollection("names")); String proteinName = (String) getAttributeValue((Item) proteinNames.get(0), "name"); protein.addAttribute(new Attribute("identifier", proteinName)); protein.addReference(organismReference); retval.add(createSynonym(protein.getIdentifier(), "identifier", proteinName, getDataSourceId("UniProt"))); // find primary accession and set others as synonyms <entry><accession>* List srcAccessions = getItemsInCollection(srcItem.getCollection("accessions")); if (srcAccessions.isEmpty()) { // do not create store Protein if no primary accession LOG.info("Entry " + proteinName + " does not have any accessions"); return Collections.EMPTY_SET; } else { // primary accession is first in list Item srcPrimaryAccession = (Item) srcAccessions.get(0); protein.addAttribute(new Attribute("primaryAccession", getAttributeValue( srcPrimaryAccession, "accession"))); // all accessions should be Synonyms Iterator srcAccIter = srcAccessions.iterator(); while (srcAccIter.hasNext()) { Item srcAccession = (Item) srcAccIter.next(); String srcAccessionString = getAttributeValue(srcAccession, "accession"); retval.add(createSynonym(protein.getIdentifier(), "accession", srcAccessionString, getDataSourceId("UniProt"))); } } // add UniProt Database to evidence collection ReferenceList evidence = new ReferenceList("evidence", new ArrayList()); evidence.addRefId(getDataSourceId("UniProt")); protein.addCollection(evidence); // 2. first name should be protein name, all should be Synonyms // <entry><protein><name>* Item srcProtein = ItemHelper.convert(srcItemReader.getItemById(srcItem .getReference("protein").getRefId())); if (srcProtein != null) { List srcProteinNames = getItemsInCollection(srcProtein.getCollection("names")); Iterator srcProtNameIter = srcProteinNames.iterator(); while (srcProtNameIter.hasNext()) { Item srcProteinName = (Item) srcProtNameIter.next(); String srcProteinNameStr = getAttributeValue(srcProteinName, "name"); if (!protein.hasAttribute("name")) { protein.setAttribute("name", srcProteinNameStr); } String srcProteinNameEvidence = getAttributeValue(srcProteinName, "evidence"); if (srcProteinNameEvidence != null) { srcProteinNameStr += " (Evidence " + srcProteinNameEvidence + ")"; } retval.add(createSynonym(protein.getIdentifier(), "name", srcProteinNameStr, getDataSourceId("UniProt"))); } } // 3. get collection of Comments // <entry><comment>* List srcComments = getItemsInCollection(srcItem.getCollection("comments")); ReferenceList comments = new ReferenceList("comments", new ArrayList()); Iterator srcComIter = srcComments.iterator(); while (srcComIter.hasNext()) { Item srcComment = (Item) srcComIter.next(); String srcCommentType = getAttributeValue(srcComment, "type"); String srcCommentText = getAttributeValue(srcComment, "text"); if ((srcCommentType != null) && (srcCommentText != null)) { Item comment = createItem(tgtNs + "Comment", ""); comment.addAttribute(new Attribute("type", srcCommentType)); comment.addAttribute(new Attribute("text", srcCommentText)); comment.addReference(uniprotDataSetRef); comments.addRefId(comment.getIdentifier()); retval.add(comment); } } if (comments.getRefIds().size() > 0) { protein.addCollection(comments); } // 4. create a collection of Publications related to this protein // <entry><reference>* List srcReferences = getItemsInCollection(srcItem.getCollection("references")); ReferenceList publications = null; Iterator srcRefIter = srcReferences.iterator(); while (srcRefIter.hasNext()) { Item srcReference = (Item) srcRefIter.next(); Item srcCitation = ItemHelper.convert(srcItemReader.getItemById(srcReference .getReference("citation").getRefId())); List srcDbReferences = getItemsInCollection(srcCitation .getCollection("dbReferences")); Iterator srcDbRefIter = srcDbReferences.iterator(); while (srcDbRefIter.hasNext()) { Item srcDbReference = (Item) srcDbRefIter.next(); String type = getAttributeValue(srcDbReference, "type"); if ("PubMed".equals(type)) { String pubMedString = new String(getAttributeValue(srcDbReference, "id")); String publicationId = (String) pubMedIdToPublicationId .get(pubMedString); pubLinkCount++; if (publicationId == null) { Item publication = createItem(tgtNs + "Publication", ""); publication.addAttribute(new Attribute("pubMedId", pubMedString)); retval.add(publication); publicationId = publication.getIdentifier(); pubMedIdToPublicationId.put(pubMedString, publicationId); if (pubMedIdToPublicationId.size() % 100 == 0) { LOG.info("Processed " + pubMedIdToPublicationId.size() + " publications, with " + pubLinkCount + " references to publications"); } } if (publications == null) { publications = new ReferenceList("publications", new ArrayList()); protein.addCollection(publications); } publications.addRefId(publicationId); } } } // 5. create a Sequence object and reference from Protein // <entry><sequence> Reference seqRef = srcItem.getReference("sequence"); if (seqRef != null) { Item srcSeq = ItemHelper.convert(srcItemReader.getItemById(seqRef.getRefId())); if (srcSeq != null) { Item sequence = createItem(tgtNs + "Sequence", ""); String residues = srcSeq.getAttribute("sequence").getValue(); sequence.addAttribute(new Attribute("residues", residues)); sequence.addAttribute(new Attribute("length", "" + residues.length())); retval.add(sequence); protein.addReference(new Reference("sequence", sequence.getIdentifier())); } } // 6. Put an embl_seq_id in a protein so we can merge it with BioGrid's psi format data. // <entry><dbReference> List srcDbRefs = getItemsInCollection(srcItem.getCollection("dbReferences")); Iterator srcDbRefIter = srcDbRefs.iterator(); while (srcDbRefIter.hasNext()) { Item dbRefItem = (Item) srcDbRefIter.next(); String dbRefType = getAttributeValue(dbRefItem, "type"); if ("EMBL".equals(dbRefType)) { List props = getItemsInCollection(dbRefItem.getCollection("propertys")); Iterator pIter = props.iterator(); String emblProteinId = null; boolean isGenomicDna = false; while (pIter.hasNext()) { Item dbProp = (Item) pIter.next(); String dbPropType = getAttributeValue(dbProp, "type"); //<property type="protein sequence ID" value="AAB03417.3"/> if ("protein sequence ID".equals(dbPropType)) { emblProteinId = getAttributeValue(dbProp, "value"); } //<property type="molecule type" value="Genomic_DNA"/> else if ("molecule type".equals(dbPropType)) { String moleType = getAttributeValue(dbProp, "value"); if ("Genomic_DNA".equals(moleType)) { isGenomicDna = true; } } //Potentially we may need to mod this if there is more than one per <entry> if (isGenomicDna && (emblProteinId != null)) { protein.setAttribute("emblProteinId", (emblProteinId.indexOf(".") > 0 ? emblProteinId.substring(0, emblProteinId.indexOf(".")) : emblProteinId)); break; } } } } // 7. now try to create reference to gene, choice of identifier is organism specific // <entry><gene>* // <entry><dbReference> // a protein can be related to multiple genes List srcGenes = getItemsInCollection(srcItem.getCollection("genes")); ReferenceList geneCollection = null; Iterator srcGeneIter = srcGenes.iterator(); while (srcGeneIter.hasNext()) { Item srcGene = (Item) srcGeneIter.next(); List srcGeneNames = getItemsInCollection(srcGene.getCollection("names")); // Gene.identifier = <entry><gene><name type="ORF"> String geneIdentifier = null; // Gene.name = <entry><gene><name type="primary"> String primaryGeneName = null; Set geneNames = new HashSet(); { Iterator srcGeneNameIter = srcGeneNames.iterator(); String notCG = null; while (srcGeneNameIter.hasNext()) { Item srcGeneName = (Item) srcGeneNameIter.next(); if ("primary".equals(getAttributeValue(srcGeneName, "type"))) { primaryGeneName = new String(getAttributeValue(srcGeneName, "name")); } else if ("ORF".equals(getAttributeValue(srcGeneName, "type"))) { String tmp = getAttributeValue(srcGeneName, "name"); if ((taxonId == 7227) && (!tmp.startsWith("CG"))) { notCG = tmp; } else { geneIdentifier = tmp; } } geneNames.add(new String(getAttributeValue(srcGeneName, "name"))); } // Some UniProt entries have CGxxx as Dmel_CGxxx - need to strip prefix // so that they match identifiers from other sources. Some genes have // embl identifiers and no FlyBase id, ignore these. if (geneIdentifier == null && notCG != null) { if (notCG.startsWith("Dmel_")) { geneIdentifier = notCG.substring(5); } else { LOG.info("Found a Drosophila gene without a CG identifer: " + notCG); } } } String dbId = null; boolean createGene = false; // geneOrganismDbId = <entry><dbReference><type="FlyBase/WormBase/.."> // where designation = primary gene name String geneOrganismDbId = null; if (taxonId == 7227) { // D. melanogaster geneOrganismDbId = getDataSourceReferenceValue(srcItem, "FlyBase", geneNames); // For fly data use CGxxx as key instead of FBgnxxx if (geneIdentifier != null) { createGene = true; dbId = getDataSourceId("FlyBase"); } } else if (taxonId == 6239) { // C. elegans geneOrganismDbId = getDataSourceReferenceValue(srcItem, "WormBase", geneNames); if (geneOrganismDbId != null) { createGene = true; dbId = getDataSourceId("WormBase"); } } else if (taxonId == 180454) { // A. gambiae str. PEST // no organismDbId and no specific dbxref to ensembl - assume that // geneIdentifier is always ensembl gene stable id and set organismDbId // to be identifier if (geneIdentifier != null) { createGene = true; geneOrganismDbId = geneIdentifier; dbId = getDataSourceId("ensembl"); } } else if (taxonId == 9606) { // H. sapiens geneOrganismDbId = getDataSourceReferenceValue(srcItem, "Ensembl", null); createGeneIdentifier = false; if (geneOrganismDbId != null) { createGene = true; dbId = getDataSourceId("Ensembl"); } } else if (taxonId == 4932) { // S. cerevisiae // need to set SGD identifier to be SGD accession, also set organismDbId geneIdentifier = getDataSourceReferenceValue(srcItem, "SGD", geneNames); geneOrganismDbId = geneIdentifier; if (geneIdentifier != null) { createGene = true; dbId = getDataSourceId("SGD"); } } else if (taxonId == 36329) { // Malaria geneOrganismDbId = geneIdentifier; if (geneIdentifier != null) { createGene = true; dbId = getDataSourceId("GeneDB"); } } else if (taxonId == 10090) { // Mus musculus geneOrganismDbId = getDataSourceReferenceValue(srcItem, "Ensembl", geneNames); geneIdentifier = getDataSourceReferenceValue(srcItem, "MGI", geneNames); if (geneOrganismDbId != null) { createGene = true; dbId = getDataSourceId("Ensembl"); } } else if (taxonId == 10116) { // Rattus norvegicus geneOrganismDbId = getDataSourceReferenceValue(srcItem, "Ensembl", geneNames); geneIdentifier = getDataSourceReferenceValue(srcItem, "RGD", geneNames); // HACK in other places the RGD identifers start with 'RGD:' if (geneIdentifier != null && !geneIdentifier.startsWith("RGD:")) { geneIdentifier = "RGD:" + geneIdentifier; } if (geneOrganismDbId != null) { createGene = true; dbId = getDataSourceId("Ensembl"); } } // output gene identifier details if (outputIdentifiers) { try { fw.write(taxonId + "\tprotein: " + proteinName + "\tname: " + primaryGeneName + "\tidentifier: " + geneIdentifier + "\tgeneOrganismDbId: " + geneOrganismDbId + System.getProperty("line.separator")); } catch (IOException e) { throw new InterMineException(e); } } // uniprot data source has primary key of Gene.organismDbId // only create gene if a value was found if (createGene) { // may alrady have created this gene String geneItemId = (String) geneIdentifierToId.get(geneOrganismDbId); ReferenceList geneSynonyms = new ReferenceList("synonyms", new ArrayList()); // UniProt sometimes has same identifier paired with two organismDbIds // causes problems merging other data sources. Simple check to prevent // creating a gene with a duplicate identifier. // log problem genes boolean isDuplicateIdentifier = false; if ((geneItemId == null) && geneIdentifiers.contains(geneIdentifier)) { LOG.warn("already created a gene for identifier: " + geneIdentifier + " with different organismDbId, discarding this one"); isDuplicateIdentifier = true; } if ((geneItemId == null) && !isDuplicateIdentifier) { Item gene = createItem(tgtNs + "Gene", ""); if (geneOrganismDbId != null) { if (geneOrganismDbId.equals("")) { LOG.info("geneOrganismDbId was empty string"); } gene.addAttribute(new Attribute("organismDbId", geneOrganismDbId)); Item synonym = createSynonym(gene.getIdentifier(), "identifier", geneOrganismDbId, dbId); geneSynonyms.addRefId(synonym.getIdentifier()); retval.add(synonym); } if (geneIdentifier != null && createGeneIdentifier) { gene.addAttribute(new Attribute("identifier", geneIdentifier)); // don't create duplicate synonym if (!geneIdentifier.equals(geneOrganismDbId)) { Item synonym = createSynonym(gene.getIdentifier(), "identifier", geneIdentifier, dbId); geneSynonyms.addRefId(synonym.getIdentifier()); retval.add(synonym); } // keep a track of non-null gene identifiers geneIdentifiers.add(geneIdentifier); } // Problem with gene names for drosophila - ignore if (primaryGeneName != null && taxonId != 7227) { gene.addAttribute(new Attribute("symbol", primaryGeneName)); } gene.addReference(organismReference); // add UniProt Database to evidence collection ReferenceList evidence1 = new ReferenceList("evidence", new ArrayList()); evidence1.addRefId(getDataSourceId("UniProt")); gene.addCollection(evidence1); // everything in <entry><gene><name>* becomes a Synonym Iterator srcGeneNameIter = srcGeneNames.iterator(); while (srcGeneNameIter.hasNext()) { Item srcGeneName = (Item) srcGeneNameIter.next(); String type = getAttributeValue(srcGeneName, "type"); String symbol = getAttributeValue(srcGeneName, "name"); // synonym already created for ORF as identifer if (!type.equals("ORF")) { Item synonym = createSynonym(gene.getIdentifier(), (type.equals("primary") || type.equals("synonym")) ? "symbol" : type, symbol, dbId); geneSynonyms.addRefId(synonym.getIdentifier()); retval.add(synonym); } } gene.addCollection(geneSynonyms); geneItemId = gene.getIdentifier(); geneIdentifierToId.put(geneOrganismDbId, geneItemId); retval.add(gene); } // TODO untidy - sould just do this check once if (!isDuplicateIdentifier) { if (geneCollection == null) { geneCollection = new ReferenceList("genes", new ArrayList()); protein.addCollection(geneCollection); } geneCollection.addRefId(geneItemId); } } } retval.add(protein); return retval; } return Collections.EMPTY_SET; } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/53d52f789e7232a8208498d298a675f2b71cbd14/UniprotDataTranslator.java/buggy/bio/sources/uniprot/main/src/org/intermine/bio/dataconversion/UniprotDataTranslator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2200,
4204,
1180,
12,
1180,
1705,
1180,
13,
3639,
1216,
1033,
21151,
16,
5294,
49,
558,
503,
288,
3639,
368,
1220,
4342,
1410,
506,
392,
3841,
559,
471,
1338,
1240,
450,
31856,
3627,
598,
1245,
15501,
6228,
18,
3639,
309,
16051,
12,
28413,
67,
3156,
397,
315,
1622,
20387,
14963,
12,
4816,
1180,
18,
588,
3834,
1435,
3719,
288,
5411,
604,
394,
2754,
2932,
28788,
358,
4204,
471,
1351,
30506,
1084,
4342,
716,
6,
4766,
9079,
397,
315,
353,
486,
434,
667,
315,
397,
348,
11529,
67,
3156,
397,
315,
1622,
8863,
3639,
289,
3639,
368,
5783,
9198,
1122,
30,
1104,
596,
326,
25458,
350,
434,
326,
15501,
6228,
434,
333,
1241,
18,
3639,
509,
25458,
548,
273,
374,
31,
3639,
987,
15501,
6228,
682,
273,
15515,
382,
2532,
12,
4816,
1180,
18,
588,
2532,
2932,
22543,
23749,
7923,
1769,
3639,
4498,
15501,
6228,
2360,
273,
15501,
6228,
682,
18,
9838,
5621,
3639,
1323,
261,
22543,
6228,
2360,
18,
5332,
2134,
10756,
288,
5411,
368,
463,
6973,
23169,
330,
69,
312,
292,
304,
717,
2440,
273,
2371,
3787,
27,
5411,
368,
23318,
275,
280,
76,
378,
72,
305,
291,
415,
1332,
634,
1666,
4366,
29,
5411,
368,
1922,
23169,
19880,
314,
2536,
1155,
73,
273,
2371,
28275,
5411,
368,
670,
362,
83,
272,
2425,
773,
273,
2468,
4848,
26,
5411,
4342,
15501,
6228,
273,
261,
1180,
13,
15501,
6228,
2360,
18,
4285,
5621,
5411,
4498,
1319,
1957,
2360,
273,
15515,
382,
2532,
12,
4766,
1377,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2200,
4204,
1180,
12,
1180,
1705,
1180,
13,
3639,
1216,
1033,
21151,
16,
5294,
49,
558,
503,
288,
3639,
368,
1220,
4342,
1410,
506,
392,
3841,
559,
471,
1338,
1240,
450,
31856,
3627,
598,
1245,
15501,
6228,
18,
3639,
309,
16051,
12,
28413,
67,
3156,
397,
315,
1622,
20387,
14963,
12,
4816,
1180,
18,
588,
3834,
1435,
3719,
288,
5411,
604,
394,
2754,
2932,
28788,
358,
4204,
471,
1351,
30506,
1084,
4342,
716,
6,
4766,
9079,
397,
315,
353,
486,
434,
667,
315,
397,
348,
11529,
67,
3156,
397,
315,
1622,
8863,
3639,
289,
3639,
368,
5783,
9198,
1122,
30,
1104,
596,
326,
25458,
350,
434,
326,
15501,
6228,
434,
333,
1241,
18,
3639,
509,
25458,
548,
2
] |
Forwardings: while (true) | Forwardings: while (true) | public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException, RemarshalException { streamRequest request = (streamRequest) output; Forwardings: while (true) { try { if (request.response_expected) { binaryReply response = request.request.submit(); // Read reply header. ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); request.request.m_rph = rh; boolean moved_permanently = false; switch (rh.reply_status) { case ReplyHeader.NO_EXCEPTION : if (request.request.m_interceptor != null) request.request.m_interceptor. receive_reply(request.request.m_info); if (response.header.version.since_inclusive(1, 2)) input.align(8); return input; case ReplyHeader.SYSTEM_EXCEPTION : if (response.header.version.since_inclusive(1, 2)) input.align(8); showException(request, input); throw ObjectCreator.readSystemException(input); case ReplyHeader.USER_EXCEPTION : if (response.header.version.since_inclusive(1, 2)) input.align(8); showException(request, input); throw new ApplicationException(request. request.m_exception_id, input ); case ReplyHeader.LOCATION_FORWARD_PERM : moved_permanently = true; case ReplyHeader.LOCATION_FORWARD : if (response.header.version.since_inclusive(1, 2)) input.align(8); IOR forwarded = new IOR(); try { forwarded._read_no_endian(input); } catch (IOException ex) { MARSHAL t = new MARSHAL("Cant read forwarding info", 5102, CompletionStatus.COMPLETED_NO ); t.initCause(ex); throw t; } gnuRequest prev = request.request; gnuRequest r = getRequestInstance(target); r.m_interceptor = prev.m_interceptor; r.m_slots = prev.m_slots; r.m_args = prev.m_args; r.m_context = prev.m_context; r.m_context_list = prev.m_context_list; r.m_environment = prev.m_environment; r.m_exceptions = prev.m_exceptions; r.m_operation = prev.m_operation; r.m_parameter_buffer = prev.m_parameter_buffer; r.m_parameter_buffer.request = r; r.m_result = prev.m_result; r.m_target = prev.m_target; r.oneWay = prev.oneWay; r.m_forward_ior = forwarded; if (r.m_interceptor != null) r.m_interceptor.receive_other(r.m_info); r.setIor(forwarded); IOR_contructed_object it = new IOR_contructed_object(orb, forwarded); r.m_target = it; request.request = r; IOR prev_ior = getIor(); setIor(forwarded); try { return invoke(it, request); } finally { if (!moved_permanently) setIor(prev_ior); } default : throw new MARSHAL("Unknow reply status: " + rh.reply_status, 8000 + rh.reply_status, CompletionStatus.COMPLETED_NO ); } } else { request.request.send_oneway(); return null; } } catch (ForwardRequest forwarded) { ForwardRequest fw = forwarded; Forwarding2: while (true) { try { gnuRequest prev = request.request; gnuRequest r = getRequestInstance(target); r.m_interceptor = prev.m_interceptor; r.m_args = prev.m_args; r.m_context = prev.m_context; r.m_context_list = prev.m_context_list; r.m_environment = prev.m_environment; r.m_exceptions = prev.m_exceptions; r.m_operation = prev.m_operation; r.m_parameter_buffer = prev.m_parameter_buffer; r.m_parameter_buffer.request = r; r.m_result = prev.m_result; r.m_target = prev.m_target; r.oneWay = prev.oneWay; r.m_forwarding_target = fw.forward; if (r.m_interceptor != null) r.m_interceptor.receive_other(r.m_info); r.m_target = fw.forward; request.request = r; break Forwarding2; } catch (ForwardRequest e) { forwarded = e; } } } } } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/1ae69e4e117f16a6f054d25da0de26f83fe5b43e/IOR_Delegate.java/buggy/gnu/CORBA/IOR_Delegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5037,
4356,
12,
3341,
18,
362,
75,
18,
9428,
12536,
18,
921,
1018,
16,
8962,
876,
13,
565,
1216,
28816,
16,
2663,
2237,
503,
225,
288,
565,
1407,
691,
590,
273,
261,
3256,
691,
13,
876,
31,
565,
17206,
899,
30,
565,
1323,
261,
3767,
13,
1377,
288,
3639,
775,
1850,
288,
5411,
309,
261,
2293,
18,
2740,
67,
3825,
13,
2868,
288,
7734,
3112,
7817,
766,
273,
590,
18,
2293,
18,
9297,
5621,
7734,
368,
2720,
4332,
1446,
18,
7734,
16202,
1864,
6259,
273,
766,
18,
3374,
18,
2640,
67,
10629,
67,
3374,
5621,
7734,
276,
3069,
5503,
1210,
810,
273,
766,
18,
588,
1228,
5621,
7734,
810,
18,
542,
1162,
70,
12,
16640,
1769,
7734,
6259,
18,
896,
12,
2630,
1769,
7734,
590,
18,
2293,
18,
81,
67,
86,
844,
273,
6259,
31,
7734,
1250,
10456,
67,
457,
4728,
23351,
273,
629,
31,
7734,
1620,
261,
30138,
18,
10629,
67,
2327,
13,
5375,
288,
10792,
648,
16202,
1864,
18,
3417,
67,
12658,
294,
8227,
309,
261,
2293,
18,
2293,
18,
81,
67,
2761,
6757,
480,
446,
13,
13491,
590,
18,
2293,
18,
81,
67,
2761,
6757,
18,
12900,
6798,
67,
10629,
12,
2293,
18,
2293,
18,
81,
67,
1376,
1769,
8227,
309,
261,
2740,
18,
3374,
18,
1589,
18,
9256,
67,
267,
9173,
12,
21,
16,
576,
3719,
13491,
810,
18,
7989,
12,
28,
1769,
8227,
327,
810,
31,
10792,
648,
16202,
1864,
18,
14318,
67,
12658,
294,
8227,
309,
261,
2740,
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,
5037,
4356,
12,
3341,
18,
362,
75,
18,
9428,
12536,
18,
921,
1018,
16,
8962,
876,
13,
565,
1216,
28816,
16,
2663,
2237,
503,
225,
288,
565,
1407,
691,
590,
273,
261,
3256,
691,
13,
876,
31,
565,
17206,
899,
30,
565,
1323,
261,
3767,
13,
1377,
288,
3639,
775,
1850,
288,
5411,
309,
261,
2293,
18,
2740,
67,
3825,
13,
2868,
288,
7734,
3112,
7817,
766,
273,
590,
18,
2293,
18,
9297,
5621,
7734,
368,
2720,
4332,
1446,
18,
7734,
16202,
1864,
6259,
273,
766,
18,
3374,
18,
2640,
67,
10629,
67,
3374,
5621,
7734,
276,
3069,
5503,
1210,
810,
273,
766,
18,
588,
1228,
5621,
7734,
810,
18,
542,
1162,
70,
12,
16640,
1769,
7734,
2
] |
public int getRowCount() { return exceptionsList.size(); | public int getRowCount(){ synchronized(lock){ return exceptionsList.size(); } | public int getRowCount() { return exceptionsList.size(); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/10b2499ccbed55bc1c41db3f30d360c7ad4dd94c/BadExceptionThrownInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/errorhandling/BadExceptionThrownInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
11835,
1380,
1435,
288,
5411,
327,
4798,
682,
18,
1467,
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,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
11835,
1380,
1435,
288,
5411,
327,
4798,
682,
18,
1467,
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,
-100,
-100,
-100,
-100
] |
PerfDataCollector pdc = getCollector (name); if (pdc == null) { pdc = new LabeledPerfDataCollector (name, max_samples); addCollector (pdc); } if (pdc instanceof LabeledPerfDataCollector) { ((LabeledPerfDataCollector)pdc).interpretXMLData (doc); | if (buffername != null) { PerfDataCollector pdc = getCollector (buffername); if (pdc == null) { pdc = new LabeledPerfDataCollector (buffername, max_samples); addCollector (pdc); } if (pdc instanceof LabeledPerfDataCollector) { ((LabeledPerfDataCollector)pdc).interpretXMLData (doc); } else { System.out.println ("perfdatacollector type mismatch"); } | void interpretXMLCommands (Node doc) { String name = doc.getNodeName(); String value = doc.getNodeValue(); NamedNodeMap attributes; int attrcount; int i; boolean retval = true; Node child; switch (doc.getNodeType()) { case Node.DOCUMENT_NODE: case Node.DOCUMENT_FRAGMENT_NODE: child = doc.getFirstChild(); while (child != null) { interpretXMLCommands (child); child = child.getNextSibling(); } break; case Node.ELEMENT_NODE: if (name.equalsIgnoreCase ("protocol")) { // should check to verify it's jccl_protocol... child = doc.getFirstChild(); while (child != null) { interpretXMLCommands (child); child = child.getNextSibling(); } } else if (name.equals ("labeledbuffer")) { attributes = doc.getAttributes(); attrcount = attributes.getLength(); String buffername; for (i = 0; i < attrcount; i++) { child = attributes.item(i); if (child.getNodeName().equals ("name")) { buffername = child.getNodeValue(); } } PerfDataCollector pdc = getCollector (name); if (pdc == null) { pdc = new LabeledPerfDataCollector (name, max_samples); addCollector (pdc); } if (pdc instanceof LabeledPerfDataCollector) { ((LabeledPerfDataCollector)pdc).interpretXMLData (doc); } else { System.out.println ("perfdatacollector type mismatch"); } } case Node.COMMENT_NODE: case Node.NOTATION_NODE: case Node.PROCESSING_INSTRUCTION_NODE: case Node.TEXT_NODE: break; default: System.out.println ("unexpected dom node..."); //iostatus.addWarning ("Unexpected DOM node type..."); } } | 7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/fb04646603c5fdee3aa9a055a57f9fa4f93552b0/PerformanceModule.java/buggy/modules/jackal/perfmonitor/org/vrjuggler/jccl/perfmonitor/PerformanceModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
10634,
4201,
9127,
261,
907,
997,
13,
288,
3639,
514,
508,
273,
997,
18,
588,
18948,
5621,
3639,
514,
460,
273,
997,
18,
588,
907,
620,
5621,
3639,
9796,
907,
863,
1677,
31,
3639,
509,
1604,
1883,
31,
3639,
509,
277,
31,
3639,
1250,
5221,
273,
638,
31,
3639,
2029,
1151,
31,
3639,
1620,
261,
2434,
18,
588,
15101,
10756,
288,
3639,
648,
2029,
18,
18450,
67,
8744,
30,
3639,
648,
2029,
18,
18450,
67,
9981,
26903,
67,
8744,
30,
5411,
1151,
273,
997,
18,
588,
3759,
1763,
5621,
5411,
1323,
261,
3624,
480,
446,
13,
288,
7734,
10634,
4201,
9127,
261,
3624,
1769,
7734,
1151,
273,
1151,
18,
588,
2134,
10291,
5621,
5411,
289,
5411,
898,
31,
3639,
648,
2029,
18,
10976,
67,
8744,
30,
5411,
309,
261,
529,
18,
14963,
5556,
7566,
8373,
6,
3719,
288,
202,
202,
759,
1410,
866,
358,
3929,
518,
1807,
19807,
830,
67,
8373,
2777,
202,
202,
3624,
273,
997,
18,
588,
3759,
1763,
5621,
202,
202,
17523,
261,
3624,
480,
446,
13,
288,
1082,
565,
10634,
4201,
9127,
261,
3624,
1769,
1082,
565,
1151,
273,
1151,
18,
588,
2134,
10291,
5621,
202,
202,
97,
202,
565,
289,
202,
565,
469,
309,
261,
529,
18,
14963,
7566,
1925,
329,
4106,
6,
3719,
288,
7734,
1677,
273,
997,
18,
588,
2498,
5621,
7734,
1604,
1883,
273,
1677,
18,
588,
1782,
5621,
202,
202,
780,
1613,
529,
31,
7734,
364,
261,
77,
273,
374,
31,
277,
411,
1604,
1883,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
10634,
4201,
9127,
261,
907,
997,
13,
288,
3639,
514,
508,
273,
997,
18,
588,
18948,
5621,
3639,
514,
460,
273,
997,
18,
588,
907,
620,
5621,
3639,
9796,
907,
863,
1677,
31,
3639,
509,
1604,
1883,
31,
3639,
509,
277,
31,
3639,
1250,
5221,
273,
638,
31,
3639,
2029,
1151,
31,
3639,
1620,
261,
2434,
18,
588,
15101,
10756,
288,
3639,
648,
2029,
18,
18450,
67,
8744,
30,
3639,
648,
2029,
18,
18450,
67,
9981,
26903,
67,
8744,
30,
5411,
1151,
273,
997,
18,
588,
3759,
1763,
5621,
5411,
1323,
261,
3624,
480,
446,
13,
288,
7734,
10634,
4201,
9127,
261,
3624,
1769,
7734,
1151,
273,
1151,
18,
588,
2134,
10291,
5621,
5411,
289,
5411,
898,
2
] |
sizeimage = constructInt(bi, 20); | sizeimage = (constructInt(bi, 20) == 0 ? size - constructInt(bf,10) : constructInt(bi, 20)); | public final void read(byte[] data){ final int bflen = 14; byte bf[] = new byte[bflen]; for(int i = 0; i < bf.length; i++) { bf[i] = data[i]; } final int bilen = 40; byte bi[] = new byte[bilen]; for(int i = 0; i < bi.length; i++) { bi[i] = data[i + 14]; } size = constructInt(bf, 2); bisize = constructInt(bi, 2); width = constructInt(bi, 4); height = constructInt(bi, 8); planes = constructShort(bi, 12); bitcount = constructShort(bi, 14); compression = constructInt(bi, 16); sizeimage = constructInt(bi, 20); xpm = constructInt(bi, 24); ypm = constructInt(bi, 28); clrused = constructInt(bi, 32); clrimp = constructInt(bi, 36); } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/6993269e1184bf1c50c5adfd33404546e7acf50b/BitmapHeader.java/buggy/src/com/jme/image/BitmapHeader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
855,
12,
7229,
8526,
501,
15329,
3639,
727,
509,
16222,
1897,
273,
5045,
31,
3639,
1160,
16222,
8526,
273,
394,
1160,
63,
17156,
1897,
15533,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
16222,
18,
2469,
31,
277,
27245,
288,
5411,
16222,
63,
77,
65,
273,
501,
63,
77,
15533,
3639,
289,
3639,
727,
509,
324,
330,
275,
273,
8063,
31,
3639,
1160,
10054,
8526,
273,
394,
1160,
63,
70,
330,
275,
15533,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
10054,
18,
2469,
31,
277,
27245,
288,
5411,
10054,
63,
77,
65,
273,
501,
63,
77,
397,
5045,
15533,
3639,
289,
3639,
963,
273,
4872,
1702,
12,
17156,
16,
576,
1769,
3639,
17771,
554,
273,
4872,
1702,
12,
13266,
16,
576,
1769,
3639,
1835,
273,
4872,
1702,
12,
13266,
16,
1059,
1769,
3639,
2072,
273,
4872,
1702,
12,
13266,
16,
1725,
1769,
3639,
31634,
273,
4872,
4897,
12,
13266,
16,
2593,
1769,
3639,
2831,
1883,
273,
4872,
4897,
12,
13266,
16,
5045,
1769,
3639,
9154,
273,
4872,
1702,
12,
13266,
16,
2872,
1769,
3639,
963,
2730,
273,
261,
10062,
1702,
12,
13266,
16,
4200,
13,
422,
374,
692,
963,
300,
4872,
1702,
12,
17156,
16,
2163,
13,
294,
4872,
1702,
12,
13266,
16,
4200,
10019,
3639,
619,
7755,
273,
4872,
1702,
12,
13266,
16,
4248,
1769,
3639,
677,
7755,
273,
4872,
1702,
12,
13266,
16,
9131,
1769,
3639,
927,
86,
3668,
273,
4872,
1702,
12,
13266,
16,
3847,
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,
727,
918,
855,
12,
7229,
8526,
501,
15329,
3639,
727,
509,
16222,
1897,
273,
5045,
31,
3639,
1160,
16222,
8526,
273,
394,
1160,
63,
17156,
1897,
15533,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
16222,
18,
2469,
31,
277,
27245,
288,
5411,
16222,
63,
77,
65,
273,
501,
63,
77,
15533,
3639,
289,
3639,
727,
509,
324,
330,
275,
273,
8063,
31,
3639,
1160,
10054,
8526,
273,
394,
1160,
63,
70,
330,
275,
15533,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
10054,
18,
2469,
31,
277,
27245,
288,
5411,
10054,
63,
77,
65,
273,
501,
63,
77,
397,
5045,
15533,
3639,
289,
3639,
963,
273,
4872,
1702,
12,
17156,
16,
576,
2
] |
for (String extension : bridges.keySet()) { IMylarStructureBridge bridge = bridges.get(extension); | for (Entry<String, IMylarStructureBridge> entry : bridges.entrySet()) { IMylarStructureBridge bridge = entry.getValue(); | public List<AbstractRelationProvider> getActiveRelationProviders() { List<AbstractRelationProvider> providers = new ArrayList<AbstractRelationProvider>(); Map<String, IMylarStructureBridge> bridges = MylarPlugin.getDefault().getStructureBridges(); for (String extension : bridges.keySet()) { IMylarStructureBridge bridge = bridges.get(extension); if (bridge.getRelationshipProviders() != null) { providers.addAll(bridge.getRelationshipProviders()); } } return providers; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/211ddc14b22cafe1dc4a0b3acbc0982e2e4f09ae/MylarContextManager.java/buggy/org.eclipse.mylyn.context.core/src/org/eclipse/mylyn/core/internal/MylarContextManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
32,
7469,
3963,
2249,
34,
11960,
3963,
10672,
1435,
288,
377,
202,
682,
32,
7469,
3963,
2249,
34,
9165,
273,
394,
2407,
32,
7469,
3963,
2249,
34,
5621,
202,
202,
863,
32,
780,
16,
6246,
93,
7901,
6999,
13691,
34,
324,
1691,
2852,
273,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
6999,
38,
1691,
2852,
5621,
3639,
364,
261,
780,
2710,
294,
324,
1691,
2852,
18,
856,
694,
10756,
288,
5411,
6246,
93,
7901,
6999,
13691,
10105,
273,
324,
1691,
2852,
18,
588,
12,
6447,
1769,
5411,
309,
261,
18337,
18,
588,
8180,
10672,
1435,
480,
446,
13,
288,
2398,
202,
17520,
18,
1289,
1595,
12,
18337,
18,
588,
8180,
10672,
10663,
5411,
289,
3639,
289,
3639,
327,
9165,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
32,
7469,
3963,
2249,
34,
11960,
3963,
10672,
1435,
288,
377,
202,
682,
32,
7469,
3963,
2249,
34,
9165,
273,
394,
2407,
32,
7469,
3963,
2249,
34,
5621,
202,
202,
863,
32,
780,
16,
6246,
93,
7901,
6999,
13691,
34,
324,
1691,
2852,
273,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
6999,
38,
1691,
2852,
5621,
3639,
364,
261,
780,
2710,
294,
324,
1691,
2852,
18,
856,
694,
10756,
288,
5411,
6246,
93,
7901,
6999,
13691,
10105,
273,
324,
1691,
2852,
18,
588,
12,
6447,
1769,
5411,
309,
261,
18337,
18,
588,
8180,
10672,
1435,
480,
446,
13,
288,
2398,
202,
17520,
18,
1289,
1595,
12,
18337,
18,
588,
8180,
10672,
10663,
5411,
289,
3639,
2
] |
return this.targetdir + f.getName (); | return this.targetdir + f.getName(); | public String getTargetFilename () { // targetfile overrides targetdir if (this.targetfile != null) return this.targetfile; File f = new File (this.src); return this.targetdir + f.getName (); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8571,
5359,
1832,
565,
288,
1377,
368,
1018,
768,
9515,
1018,
1214,
1377,
309,
261,
2211,
18,
3299,
768,
480,
446,
13,
3639,
327,
333,
18,
3299,
768,
31,
4202,
1387,
284,
273,
394,
1387,
261,
2211,
18,
4816,
1769,
4202,
327,
333,
18,
3299,
1214,
397,
284,
18,
17994,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8571,
5359,
1832,
565,
288,
1377,
368,
1018,
768,
9515,
1018,
1214,
1377,
309,
261,
2211,
18,
3299,
768,
480,
446,
13,
3639,
327,
333,
18,
3299,
768,
31,
4202,
1387,
284,
273,
394,
1387,
261,
2211,
18,
4816,
1769,
4202,
327,
333,
18,
3299,
1214,
397,
284,
18,
17994,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
mDataSourceList.addEntry (new DataSource ("InfoSeek Directory", "ldap.infoseek.com")); | public AddressBook() { super("Address Book","0"); setBackground(Color.lightGray);// setBorderStyle(JPanel.ETCHED); getContentPane().setLayout(new BorderLayout());// addWindowListener(new FrameHider()); //create menubar (top) //merge both the editors commands with this applications commands. //mMenubar = NsMenuManager.createMenuBar("grendel.addressbook.Menus", "grendel.addressbook.MenuLabels", "mainMenubar", defaultActions); // FIXME - need to build the menu bar // (Jeff) // mMenubar = new JMenuBar(); // mMenubar = createMenubar(); mMenubar = buildMenu("menus.xml",defaultActions); setJMenuBar(mMenubar); //collapsble panels holds toolbar. CollapsiblePanel collapsePanel = new CollapsiblePanel(true); collapsePanel.setBorder (new EmptyBorder(5,5,5,5)); //toolbar buttons mTtoolbar = createToolbar(); //collapsible item collapsePanel.add(mTtoolbar); //create status bar (bottom) // mStatusbar = createStatusbar(); JPanel panel1 = new JPanel(); panel1.setLayout(new BorderLayout()); panel1.add(collapsePanel, BorderLayout.NORTH); //hack together the data sources. mDataSourceList = new DataSourceList (); mDataSourceList.addEntry (new DataSource ("Four11 Directory", "ldap.four11.com")); mDataSourceList.addEntry (new DataSource ("InfoSpace Directory", "ldap.infospace.com")); mDataSourceList.addEntry (new DataSource ("WhoWhere Directory", "ldap.whowhere.com")); mDataSourceList.addEntry (new DataSource ("InfoSeek Directory", "ldap.infoseek.com")); //Create address panel AddressPanel addressPanel = new AddressPanel (mDataSourceList); panel1.add(addressPanel, BorderLayout.CENTER); // getContentPane().add(mMenubar, BorderLayout.NORTH); getContentPane().add(panel1, BorderLayout.CENTER); setSize (600, 400); //Create Local Address Book //myLocalAddressBook = new ACS_Personal ("MyAddressBook.nab", true); } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/8e300bf47fabcd66aff98cab70eb64d560b77541/AddressBook.java/buggy/grendel/addressbook/AddressBook.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5267,
9084,
1435,
288,
3639,
2240,
2932,
1887,
20258,
15937,
20,
8863,
3639,
31217,
12,
2957,
18,
5099,
23521,
1769,
759,
3639,
25715,
2885,
12,
46,
5537,
18,
9235,
2056,
1769,
3639,
5154,
8485,
7675,
542,
3744,
12,
2704,
30814,
10663,
759,
3639,
527,
3829,
2223,
12,
2704,
8058,
44,
3585,
10663,
3639,
368,
2640,
21247,
373,
297,
261,
3669,
13,
3639,
368,
2702,
3937,
326,
29431,
4364,
598,
333,
12165,
4364,
18,
3639,
368,
81,
49,
275,
373,
297,
273,
31436,
4599,
1318,
18,
2640,
4599,
5190,
2932,
75,
1187,
3771,
18,
2867,
3618,
18,
29755,
3113,
315,
75,
1187,
3771,
18,
2867,
3618,
18,
4599,
5888,
3113,
315,
5254,
49,
275,
373,
297,
3113,
805,
6100,
1769,
3639,
368,
9852,
300,
1608,
358,
1361,
326,
3824,
4653,
3639,
368,
261,
46,
17098,
13,
3639,
368,
312,
49,
275,
373,
297,
273,
394,
804,
4599,
5190,
5621,
377,
202,
202,
759,
312,
49,
275,
373,
297,
273,
752,
49,
275,
373,
297,
5621,
3639,
312,
49,
275,
373,
297,
273,
1361,
4599,
2932,
26065,
18,
2902,
3113,
1886,
6100,
1769,
377,
202,
202,
542,
46,
4599,
5190,
12,
81,
49,
275,
373,
297,
1769,
5411,
368,
1293,
3762,
87,
7119,
20582,
14798,
12748,
18,
5411,
1558,
3762,
2736,
5537,
13627,
5537,
273,
394,
1558,
3762,
2736,
5537,
12,
3767,
1769,
5411,
13627,
5537,
18,
542,
8107,
261,
2704,
8953,
8107,
12,
25,
16,
25,
16,
25,
16,
25,
10019,
5411,
368,
18849,
9502,
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,
5267,
9084,
1435,
288,
3639,
2240,
2932,
1887,
20258,
15937,
20,
8863,
3639,
31217,
12,
2957,
18,
5099,
23521,
1769,
759,
3639,
25715,
2885,
12,
46,
5537,
18,
9235,
2056,
1769,
3639,
5154,
8485,
7675,
542,
3744,
12,
2704,
30814,
10663,
759,
3639,
527,
3829,
2223,
12,
2704,
8058,
44,
3585,
10663,
3639,
368,
2640,
21247,
373,
297,
261,
3669,
13,
3639,
368,
2702,
3937,
326,
29431,
4364,
598,
333,
12165,
4364,
18,
3639,
368,
81,
49,
275,
373,
297,
273,
31436,
4599,
1318,
18,
2640,
4599,
5190,
2932,
75,
1187,
3771,
18,
2867,
3618,
18,
29755,
3113,
315,
75,
1187,
3771,
18,
2867,
3618,
18,
4599,
5888,
3113,
315,
5254,
49,
275,
373,
297,
3113,
805,
2
] | |
Vector newRes = cms.readProjectView(projectId, "new"); | Vector newRes = cms.readProjectView(projectId, "new"); for (i=0;i<deleted.size();i++) { currentResource = (CmsResource) deleted.elementAt(i); cms.readAbsolutePath(currentResource); } for (i=0;i<changed.size();i++) { currentResource = (CmsResource) changed.elementAt(i); cms.readAbsolutePath(currentResource); } for (i=0;i<newRes.size();i++) { currentResource = (CmsResource) newRes.elementAt(i); cms.readAbsolutePath(currentResource); } | public void checkProject(CmsObject cms, int projectId, I_CmsReport report)throws CmsException{ if(projectId == CmsObject.C_PROJECT_ONLINE_ID){ // lets check only the online project Vector result = cms.getOnlineBrokenLinks(); for(int i=0; i<result.size(); i++){ report.println((CmsPageLinks)result.elementAt(i)); } }else{ // we are in a project. First get the changed, new ,deleted resources Vector deleted = cms.readProjectView(projectId, "deleted"); Vector changed = cms.readProjectView(projectId, "changed"); Vector newRes = cms.readProjectView(projectId, "new"); cms.getBrokenLinks(projectId, report, changed, deleted, newRes); } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/2bd977e1a8eb4188759e47e43f3987f2561c1cf3/LinkChecker.java/clean/src/com/opencms/linkmanagement/LinkChecker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
866,
4109,
12,
4747,
921,
6166,
16,
509,
9882,
16,
467,
67,
25702,
2605,
13,
15069,
11228,
95,
3639,
309,
12,
4406,
548,
422,
14371,
18,
39,
67,
17147,
67,
673,
5997,
67,
734,
15329,
5411,
368,
14557,
866,
1338,
326,
12365,
1984,
5411,
5589,
563,
273,
6166,
18,
588,
16860,
29559,
7100,
5621,
5411,
364,
12,
474,
277,
33,
20,
31,
277,
32,
2088,
18,
1467,
5621,
277,
27245,
95,
7734,
2605,
18,
8222,
12443,
4747,
1964,
7100,
13,
2088,
18,
2956,
861,
12,
77,
10019,
5411,
289,
3639,
289,
12107,
95,
5411,
368,
732,
854,
316,
279,
1984,
18,
5783,
336,
326,
3550,
16,
394,
269,
8600,
2703,
5411,
5589,
4282,
273,
6166,
18,
896,
4109,
1767,
12,
4406,
548,
16,
315,
8600,
8863,
5411,
5589,
3550,
273,
6166,
18,
896,
4109,
1767,
12,
4406,
548,
16,
315,
6703,
8863,
5411,
5589,
394,
607,
273,
6166,
18,
896,
4109,
1767,
12,
4406,
548,
16,
315,
2704,
8863,
225,
364,
261,
77,
33,
20,
31,
77,
32,
8600,
18,
1467,
5621,
77,
27245,
288,
783,
1420,
273,
261,
4747,
1420,
13,
4282,
18,
2956,
861,
12,
77,
1769,
6166,
18,
896,
10368,
743,
12,
2972,
1420,
1769,
289,
225,
364,
261,
77,
33,
20,
31,
77,
32,
6703,
18,
1467,
5621,
77,
27245,
288,
783,
1420,
273,
261,
4747,
1420,
13,
3550,
18,
2956,
861,
12,
77,
1769,
6166,
18,
896,
10368,
743,
12,
2972,
1420,
1769,
289,
225,
364,
261,
77,
33,
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,
866,
4109,
12,
4747,
921,
6166,
16,
509,
9882,
16,
467,
67,
25702,
2605,
13,
15069,
11228,
95,
3639,
309,
12,
4406,
548,
422,
14371,
18,
39,
67,
17147,
67,
673,
5997,
67,
734,
15329,
5411,
368,
14557,
866,
1338,
326,
12365,
1984,
5411,
5589,
563,
273,
6166,
18,
588,
16860,
29559,
7100,
5621,
5411,
364,
12,
474,
277,
33,
20,
31,
277,
32,
2088,
18,
1467,
5621,
277,
27245,
95,
7734,
2605,
18,
8222,
12443,
4747,
1964,
7100,
13,
2088,
18,
2956,
861,
12,
77,
10019,
5411,
289,
3639,
289,
12107,
95,
5411,
368,
732,
854,
316,
279,
1984,
18,
5783,
336,
326,
3550,
16,
394,
269,
8600,
2703,
5411,
5589,
4282,
273,
6166,
18,
2
] |
if (name.equals(Property.PROPERTY_CONTRIBUTING_CHILDREN)) { List list = new ArrayList(); list.add(dataMember); | if (name.equals(Property.PROPERTY_CONTRIBUTING_CHILDREN)) { List list = new ArrayList(); list.add(dataMember); | public Object getPropertyValue(String name) { if (name.equals(Property.PROPERTY_CONTRIBUTING_CHILDREN)) { List list = new ArrayList(); list.add(dataMember); RolapHierarchy hierarchy = (RolapHierarchy) getHierarchy(); hierarchy.memberReader.getMemberChildren(this, list); return list; } else { return super.getPropertyValue(name); } } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/SqlMemberSource.java/buggy/src/main/mondrian/rolap/SqlMemberSource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1033,
21694,
12,
780,
508,
13,
288,
1082,
202,
430,
261,
529,
18,
14963,
12,
1396,
18,
9900,
67,
6067,
2259,
38,
1693,
1360,
67,
27043,
24296,
3719,
288,
9506,
202,
682,
666,
273,
394,
2407,
5621,
9506,
202,
1098,
18,
1289,
12,
892,
4419,
1769,
7734,
11714,
438,
12074,
9360,
273,
261,
4984,
438,
12074,
13,
7628,
6000,
5621,
7734,
9360,
18,
5990,
2514,
18,
588,
4419,
4212,
12,
2211,
16,
666,
1769,
9506,
202,
2463,
666,
31,
1082,
202,
97,
469,
288,
9506,
202,
2463,
2240,
18,
588,
16107,
12,
529,
1769,
1082,
202,
97,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1033,
21694,
12,
780,
508,
13,
288,
1082,
202,
430,
261,
529,
18,
14963,
12,
1396,
18,
9900,
67,
6067,
2259,
38,
1693,
1360,
67,
27043,
24296,
3719,
288,
9506,
202,
682,
666,
273,
394,
2407,
5621,
9506,
202,
1098,
18,
1289,
12,
892,
4419,
1769,
7734,
11714,
438,
12074,
9360,
273,
261,
4984,
438,
12074,
13,
7628,
6000,
5621,
7734,
9360,
18,
5990,
2514,
18,
588,
4419,
4212,
12,
2211,
16,
666,
1769,
9506,
202,
2463,
666,
31,
1082,
202,
97,
469,
288,
9506,
202,
2463,
2240,
18,
588,
16107,
12,
529,
1769,
1082,
202,
97,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
FrameworkLogEntry logEntry = new FrameworkLogEntry(entry, FrameworkLogEntry.ERROR, 0, "FrameworkEvent.ERROR", 0, t, null); | int severity; switch (frameworkEvent.getType()) { case FrameworkEvent.INFO : severity = FrameworkLogEntry.INFO; break; case FrameworkEvent.ERROR : severity = FrameworkLogEntry.ERROR; break; case FrameworkEvent.WARNING : severity = FrameworkLogEntry.WARNING; break; default : severity = FrameworkLogEntry.OK; } FrameworkLogEntry logEntry = new FrameworkLogEntry(entry, severity, 0, "", 0, t, null); | public void log(FrameworkEvent frameworkEvent) { Bundle b = frameworkEvent.getBundle(); Throwable t = frameworkEvent.getThrowable(); String entry = b.getSymbolicName() == null ? b.getLocation() : b.getSymbolicName(); FrameworkLogEntry logEntry = new FrameworkLogEntry(entry, FrameworkLogEntry.ERROR, 0, "FrameworkEvent.ERROR", 0, t, null); //$NON-NLS-1$ //$NON-NLS-2$ log(logEntry); } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/a94d389fdc7bdf8747831b8e679bf59a78dba0ee/EclipseLog.java/buggy/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseLog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
613,
12,
13701,
1133,
8257,
1133,
13,
288,
202,
202,
3405,
324,
273,
8257,
1133,
18,
588,
3405,
5621,
202,
202,
15155,
268,
273,
8257,
1133,
18,
588,
15155,
5621,
202,
202,
780,
1241,
273,
324,
18,
588,
10876,
12164,
461,
1435,
422,
446,
692,
324,
18,
588,
2735,
1435,
294,
324,
18,
588,
10876,
12164,
461,
5621,
202,
202,
13701,
25548,
613,
1622,
273,
394,
13472,
25548,
12,
4099,
16,
13472,
25548,
18,
3589,
16,
374,
16,
315,
13701,
1133,
18,
3589,
3113,
374,
16,
268,
16,
446,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
202,
202,
1330,
12,
1330,
1622,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
613,
12,
13701,
1133,
8257,
1133,
13,
288,
202,
202,
3405,
324,
273,
8257,
1133,
18,
588,
3405,
5621,
202,
202,
15155,
268,
273,
8257,
1133,
18,
588,
15155,
5621,
202,
202,
780,
1241,
273,
324,
18,
588,
10876,
12164,
461,
1435,
422,
446,
692,
324,
18,
588,
2735,
1435,
294,
324,
18,
588,
10876,
12164,
461,
5621,
202,
202,
13701,
25548,
613,
1622,
273,
394,
13472,
25548,
12,
4099,
16,
13472,
25548,
18,
3589,
16,
374,
16,
315,
13701,
1133,
18,
3589,
3113,
374,
16,
268,
16,
446,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
202,
202,
1330,
12,
1330,
1622,
1769,
202,
97,
2,
-100,
-100
] |
if (jj_3R_249()) return true; | final private boolean jj_3R_243() { Token xsp; if (jj_3R_249()) return true; while (true) { xsp = jj_scanpos; if (jj_3R_249()) { jj_scanpos = xsp; break; } } if (jj_3R_158()) return true; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3e3034d7566b0047ef2bf5af2e29ce51f94a2d2e/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3247,
23,
1435,
288,
565,
3155,
619,
1752,
31,
4202,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
54,
67,
3247,
29,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
565,
309,
261,
78,
78,
67,
23,
54,
67,
25984,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3247,
23,
1435,
288,
565,
3155,
619,
1752,
31,
4202,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
54,
67,
3247,
29,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
565,
309,
261,
78,
78,
67,
23,
54,
67,
25984,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
public TA_RetCode ADX( int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int today, lookbackTotal, outIdx; double prevHigh, prevLow, prevClose; double prevMinusDM, prevPlusDM, prevTR; double tempReal, tempReal2, diffP, diffM; double minusDI, plusDI, sumDX, prevADX; int i; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) ) optInTimePeriod = 14; else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; if( optInTimePeriod > 1 ) lookbackTotal = (2*optInTimePeriod) + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_ADX.ordinal()]) - 1; else lookbackTotal = 2; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outIdx = 0; outBegIdx.value = today = startIdx; prevMinusDM = 0.0; prevPlusDM = 0.0; prevTR = 0.0; today = startIdx - lookbackTotal; prevHigh = inHigh[today]; prevLow = inLow[today]; prevClose = inClose[today]; i = optInTimePeriod-1; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR += tempReal; prevClose = inClose[today]; } sumDX = 0.0; i = optInTimePeriod; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( ! (((-0.00000001)<prevTR)&&(prevTR<0.00000001)) ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( ! (((-0.00000001)<prevTR)&&(prevTR<0.00000001)) ) sumDX += (100.0 * ( Math.abs (minusDI-plusDI)/tempReal)) ; } } prevADX = (sumDX / optInTimePeriod) ; i = (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_ADX.ordinal()]) ; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( prevTR != 0.0 ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( tempReal != 0.0 ) { tempReal = (100.0*( Math.abs (minusDI-plusDI)/tempReal)) ; prevADX = (((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod) ; } } } outReal[0] = prevADX; outIdx = 1; while( today < endIdx ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( prevTR != 0.0 ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( tempReal != 0.0 ) { tempReal = (100.0*( Math.abs (minusDI-plusDI)/tempReal)) ; prevADX = (((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod) ; } } outReal[outIdx++] = prevADX; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;} | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
1880,
60,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,
267,
4605,
63,
6487,
474,
3838,
382,
26540,
16,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
9056,
659,
6955,
63,
5717,
95,
474,
30064,
16,
7330,
823,
5269,
16,
659,
4223,
31,
9056,
10001,
8573,
16,
10001,
10520,
16,
10001,
4605,
31,
9056,
10001,
18434,
16125,
16,
10001,
13207,
16125,
16,
10001,
4349,
31,
2896,
440,
278,
30752,
6955,
16,
5814,
6955,
22,
16,
5413,
52,
16,
5413,
49,
31,
9056,
19601,
2565,
16,
10103,
2565,
16,
1364,
28826,
16,
10001,
1880,
60,
31,
474,
77,
31,
430,
12,
1937,
4223,
32,
20,
13,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
430,
12443,
409,
4223,
32,
20,
14047,
96,
12,
409,
4223,
32,
1937,
4223,
3719,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
430,
12443,
474,
13,
3838,
382,
26540,
631,
12,
4522,
18,
6236,
67,
4051,
3719,
3838,
382,
26540,
33,
3461,
31,
12107,
430,
12443,
12,
474,
13,
3838,
382,
26540,
32,
22,
14047,
96,
12443,
474,
13,
3838,
382,
26540,
34,
21,
11706,
3719,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
16234,
67,
8388,
31,
430,
12,
3838,
382,
26540,
34,
21,
13,
7330,
823,
5269,
28657,
22,
14,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
1880,
60,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,
267,
4605,
63,
6487,
474,
3838,
382,
26540,
16,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
9056,
659,
6955,
63,
5717,
95,
474,
30064,
16,
7330,
823,
5269,
16,
659,
4223,
31,
9056,
10001,
8573,
16,
10001,
10520,
16,
10001,
4605,
31,
9056,
10001,
18434,
16125,
16,
10001,
13207,
16125,
16,
10001,
4349,
31,
2896,
440,
278,
30752,
6955,
16,
5814,
6955,
22,
16,
5413,
52,
16,
5413,
49,
31,
9056,
19601,
2565,
16,
10103,
2565,
16,
1364,
28826,
16,
10001,
1880,
60,
31,
474,
77,
31,
2
] | ||
out.println("<H2>Snoop</H2>"); Web.snoop(out, true, getServletConfig(), req); | protected void doHome(HttpServletRequest req, HttpServletResponse res, Session session) throws IOException { // get all tools Set tools = ToolManager.findTools(null, null); // get the test tools Set categories = new HashSet(); categories.add("sakai.test"); Set testTools = ToolManager.findTools(categories, null); // get the helper tools categories.clear(); categories.add("sakai.helper"); Set helperTools = ToolManager.findTools(categories, null); // get the sample tools categories.clear(); categories.add("sakai.sample"); Set sampleTools = ToolManager.findTools(categories, null); // remove the test, sample and helper tools from the main list tools.removeAll(testTools); tools.removeAll(helperTools); tools.removeAll(sampleTools); // start the response res.setContentType("text/html; charset=UTF-8"); res.addDateHeader("Expires", System.currentTimeMillis() - (1000L * 60L * 60L * 24L * 365L)); res.addDateHeader("Last-Modified", System.currentTimeMillis()); res.addHeader("Cache-Control", "no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0"); res.addHeader("Pragma", "no-cache"); PrintWriter out = res.getWriter(); out.println("<html><head><title>Sakai Mercury Portal</title></head><body>"); // fun out.println("<img src=\"http://cvs.sakaiproject.org/images/sakai.gif\" width=\"110\" height=\"66\">"); out.println("<img src=\"http://cvs.sakaiproject.org/images/Hg-TableImage.png\" width=\"250\" height=\"75\">"); out.println("<img src=\"http://cvs.sakaiproject.org/images/mercury.gif\" width=\"78\" height=\"69\">"); out.println("<img src=\"http://cvs.sakaiproject.org/images/mercsymb.gif\" width=\"94\" height=\"75\"><br />"); // login out.println("<p><a href=\"" + Web.returnUrl(req, "/login") + "\">login</a></p>"); // Show session information out.println("<H2>Session</H2>"); showSession(out, true); // list the main tools out.println("<H2>Tools</H2>"); out.println("<p>These are the tools registered with Sakai:</p>"); out.println("<table border='1'><tr><th>id</th><th>title</th><th>description</th><th>final configuration</th><th>mutable configuration</th><th>categories</th><th>keywords</th></tr>"); // sorted TreeSet sorted = new TreeSet(tools); for (Iterator i = sorted.iterator(); i.hasNext();) { Tool t = (Tool) i.next(); String toolUrl = Web.returnUrl(req, "/" + t.getId() + "/mercury"); out.println("<tr><td><a href=\"" + toolUrl + "\">" + t.getId() + "</a></td><td>" + t.getTitle() + "</td><td>" + t.getDescription() + "</td><td>" + printConfiguration(t.getFinalConfig()) + "</td><td>" + printConfiguration(t.getMutableConfig()) + "</td><td>" + printCategories(t.getCategories()) + "</td><td>" + printKeywords(t.getKeywords()) + "</td></tr>"); } out.println("</table>"); // list the helper tools out.println("<H2>Helper Tools</H2>"); out.println("<p>These are the tools registered as helperswith Sakai. (Helper tools cannot be directly invoked): </p>"); out.println("<table border='1'><tr><th>id</th><th>title</th><th>description</th><th>final configuration</th><th>mutable configuration</th><th>categories</th><th>keywords</th></tr>"); // sorted sorted = new TreeSet(helperTools); for (Iterator i = sorted.iterator(); i.hasNext();) { Tool t = (Tool) i.next(); String toolUrl = Web.returnUrl(req, "/" + t.getId() + "/mercury"); out.println("<tr><td>" + t.getId() + "</td><td>" + t.getTitle() + "</td><td>" + t.getDescription() + "</td><td>" + printConfiguration(t.getFinalConfig()) + "</td><td>" + printConfiguration(t.getMutableConfig()) + "</td><td>" + printCategories(t.getCategories()) + "</td><td>" + printKeywords(t.getKeywords()) + "</td></tr>"); } out.println("</table>"); // list the sample tools out.println("<H2>Sample Tools</H2>"); out.println("<p>These are the tools registered with Sakai, categorized as <i>sakai.sample</i>:</p>"); out.println("<table border='1'><tr><th>id</th><th>title</th><th>description</th><th>final configuration</th><th>mutable configuration</th><th>categories</th><th>keywords</th></tr>"); // sorted sorted = new TreeSet(sampleTools); for (Iterator i = sorted.iterator(); i.hasNext();) { Tool t = (Tool) i.next(); String toolUrl = Web.returnUrl(req, "/" + t.getId() + "/mercury"); out.println("<tr><td><a href=\"" + toolUrl + "\">" + t.getId() + "</a></td><td>" + t.getTitle() + "</td><td>" + t.getDescription() + "</td><td>" + printConfiguration(t.getFinalConfig()) + "</td><td>" + printConfiguration(t.getMutableConfig()) + "</td><td>" + printCategories(t.getCategories()) + "</td><td>" + printKeywords(t.getKeywords()) + "</td></tr>"); } out.println("</table>"); // list the test tools out.println("<H2>Test Tools</H2>"); out.println("<p>These are the tools registered with Sakai, categorized as <i>sakai.test</i>:</p>"); out.println("<table border='1'><tr><th>id</th><th>title</th><th>description</th><th>final configuration</th><th>mutable configuration</th><th>categories</th><th>keywords</th></tr>"); // sorted sorted = new TreeSet(testTools); for (Iterator i = sorted.iterator(); i.hasNext();) { Tool t = (Tool) i.next(); String toolUrl = Web.returnUrl(req, "/" + t.getId() + "/mercury"); out.println("<tr><td><a href=\"" + toolUrl + "\">" + t.getId() + "</a></td><td>" + t.getTitle() + "</td><td>" + t.getDescription() + "</td><td>" + printConfiguration(t.getFinalConfig()) + "</td><td>" + printConfiguration(t.getMutableConfig()) + "</td><td>" + printCategories(t.getCategories()) + "</td><td>" + printKeywords(t.getKeywords()) + "</td></tr>"); } out.println("</table>"); // list placements out.println("<H2>Tool Placements</H2>"); out.println("<p>These are the placements we are tracking so far:</p>"); out.println("<table border='1'><tr><th>id</th><th>context</th><th>tool</th><th>configuration</th></tr>"); for (Iterator i = m_placements.values().iterator(); i.hasNext();) { Placement p = (Placement) i.next(); out.println("<tr><td>" + p.getId() + "</td><td>" + p.getContext() + "</td><td>" + p.getToolId() + "</td><td>" + printConfiguration(p.getPlacementConfig()) + "</td></tr>"); } out.println("</table>"); // out.println("<H2>Snoop</H2>"); // snoop(out, true, getServletConfig(), req); // close the response out.println("</body></html>"); } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/cecc51fa1ef59419780f73e4aa46e7160d329674/MercuryPortal.java/clean/portal/portal-mercury/mercury/src/java/org/sakaiproject/portal/tool/MercuryPortal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
8684,
12,
2940,
18572,
1111,
16,
12446,
400,
16,
3877,
1339,
13,
1216,
1860,
202,
95,
202,
202,
759,
336,
777,
8513,
202,
202,
694,
8513,
273,
13288,
1318,
18,
4720,
10348,
12,
2011,
16,
446,
1769,
202,
202,
759,
336,
326,
1842,
8513,
202,
202,
694,
6477,
273,
394,
6847,
5621,
202,
202,
8995,
18,
1289,
2932,
87,
581,
10658,
18,
3813,
8863,
202,
202,
694,
1842,
10348,
273,
13288,
1318,
18,
4720,
10348,
12,
8995,
16,
446,
1769,
202,
202,
759,
336,
326,
4222,
8513,
202,
202,
8995,
18,
8507,
5621,
202,
202,
8995,
18,
1289,
2932,
87,
581,
10658,
18,
4759,
8863,
202,
202,
694,
4222,
10348,
273,
13288,
1318,
18,
4720,
10348,
12,
8995,
16,
446,
1769,
202,
202,
759,
336,
326,
3296,
8513,
202,
202,
8995,
18,
8507,
5621,
202,
202,
8995,
18,
1289,
2932,
87,
581,
10658,
18,
6358,
8863,
202,
202,
694,
3296,
10348,
273,
13288,
1318,
18,
4720,
10348,
12,
8995,
16,
446,
1769,
202,
202,
759,
1206,
326,
1842,
16,
3296,
471,
4222,
8513,
628,
326,
2774,
666,
202,
202,
6642,
18,
4479,
1595,
12,
3813,
10348,
1769,
202,
202,
6642,
18,
4479,
1595,
12,
4759,
10348,
1769,
202,
202,
6642,
18,
4479,
1595,
12,
6358,
10348,
1769,
202,
202,
759,
787,
326,
766,
202,
202,
455,
18,
542,
8046,
2932,
955,
19,
2620,
31,
4856,
33,
5159,
17,
28,
8863,
202,
202,
455,
18,
1289,
1626,
1864,
2932,
14449,
3113,
2332,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
8684,
12,
2940,
18572,
1111,
16,
12446,
400,
16,
3877,
1339,
13,
1216,
1860,
202,
95,
202,
202,
759,
336,
777,
8513,
202,
202,
694,
8513,
273,
13288,
1318,
18,
4720,
10348,
12,
2011,
16,
446,
1769,
202,
202,
759,
336,
326,
1842,
8513,
202,
202,
694,
6477,
273,
394,
6847,
5621,
202,
202,
8995,
18,
1289,
2932,
87,
581,
10658,
18,
3813,
8863,
202,
202,
694,
1842,
10348,
273,
13288,
1318,
18,
4720,
10348,
12,
8995,
16,
446,
1769,
202,
202,
759,
336,
326,
4222,
8513,
202,
202,
8995,
18,
8507,
5621,
202,
202,
8995,
18,
1289,
2932,
87,
581,
10658,
18,
4759,
8863,
202,
202,
694,
4222,
10348,
273,
13288,
1318,
18,
2
] | |
/* | public void naiveDatasetConfig(){ if (ds == null) { JOptionPane.showMessageDialog(this, "Connect to database first", "ERROR", 0); return; } String dbtype = databaseDialog.getDatabaseType(); String schema = null; if(dbtype.equals("oracle")) schema = databaseDialog.getSchema().toUpperCase(); else schema = databaseDialog.getSchema(); try { disableCursor(); String[] datasets = dbutils.getNaiveDatasetNamesFor(schema); if(datasets.length==0){ JOptionPane.showMessageDialog(this, "No datasets available - Is this a BioMart comptatible schema?", "ERROR", 0); return; } String dataset = (String) JOptionPane.showInputDialog( null, "Choose one", "Dataset", JOptionPane.INFORMATION_MESSAGE, null, datasets, datasets[0]); if (dataset == null) return; disableCursor(); String template = dataset; String[] templates = new String[dbutils.getAllTemplateNames().length + 1]; templates[0] = dataset; String[] tNames = dbutils.getAllTemplateNames(); for (int i = 0; i < tNames.length; i++){ templates[i+1] = tNames[i]; } if(templates.length!=0){ //JOptionPane.showMessageDialog(this, "No datasets available - Is this a BioMart comptatible schema?", "ERROR", 0); //return; template = (String) JOptionPane.showInputDialog( null, "Choose one", "Template", JOptionPane.INFORMATION_MESSAGE, null, templates, templates[0]); if (template == null) return; } DatasetConfigTreeWidget frame = new DatasetConfigTreeWidget(null, this, null, null, dataset, null, schema,template); frame.setVisible(true); desktop.add(frame); try { frame.setSelected(true); } catch (java.beans.PropertyVetoException e) { } } catch (SQLException e) { } catch (ConfigurationException e) { } finally { enableCursor(); } } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/0e1a56d738065d2d5acef1f0b3a60ac53770493e/MartEditor.java/clean/src/java/org/ensembl/mart/editor/MartEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1748,
1748,
1071,
20308,
918,
20308,
28224,
10656,
809,
1435,
95,
20308,
1748,
1748,
1748,
309,
20308,
261,
2377,
20308,
422,
20308,
446,
13176,
14,
288,
20308,
1748,
1748,
1748,
1748,
1748,
804,
1895,
8485,
18,
4500,
1079,
6353,
12,
2211,
16,
20308,
315,
5215,
20308,
358,
20308,
2063,
20308,
1122,
3113,
20308,
315,
3589,
3113,
20308,
374,
1769,
20308,
1748,
1748,
1748,
1748,
1748,
327,
31,
20308,
1748,
1748,
1748,
289,
20308,
1748,
1748,
1748,
1748,
1748,
1748,
1748,
514,
20308,
1319,
723,
20308,
273,
20308,
2063,
6353,
18,
588,
4254,
559,
5621,
20308,
1748,
1748,
1748,
514,
20308,
1963,
20308,
273,
20308,
446,
31,
20308,
1748,
1748,
1748,
1748,
1748,
1748,
1748,
309,
12,
1966,
723,
18,
14963,
2932,
280,
16066,
6,
3719,
20308,
1963,
20308,
273,
20308,
2063,
6353,
18,
588,
3078,
7675,
869,
8915,
5621,
20308,
1748,
1748,
1748,
469,
20308,
1963,
20308,
273,
20308,
2063,
6353,
18,
588,
3078,
5621,
20308,
1748,
1748,
1748,
1748,
1748,
1748,
1748,
1748,
1748,
1748,
1748,
1748,
775,
20308,
288,
20308,
1748,
1748,
1748,
1748,
1748,
4056,
6688,
5621,
20308,
1748,
1748,
1748,
1748,
1748,
514,
8526,
20308,
11109,
20308,
273,
20308,
1319,
5471,
18,
588,
24101,
688,
10656,
1557,
1290,
12,
4821,
1769,
20308,
1748,
1748,
1748,
1748,
1748,
309,
12,
21125,
18,
2469,
631,
20,
15329,
20308,
1748,
1748,
1748,
1748,
1748,
1748,
1748,
804,
1895,
8485,
18,
4500,
1079,
6353,
12,
2211,
16,
20308,
315,
2279,
20308,
11109,
20308,
2319,
20308,
300,
20308,
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,
1748,
1748,
1071,
20308,
918,
20308,
28224,
10656,
809,
1435,
95,
20308,
1748,
1748,
1748,
309,
20308,
261,
2377,
20308,
422,
20308,
446,
13176,
14,
288,
20308,
1748,
1748,
1748,
1748,
1748,
804,
1895,
8485,
18,
4500,
1079,
6353,
12,
2211,
16,
20308,
315,
5215,
20308,
358,
20308,
2063,
20308,
1122,
3113,
20308,
315,
3589,
3113,
20308,
374,
1769,
20308,
1748,
1748,
1748,
1748,
1748,
327,
31,
20308,
1748,
1748,
1748,
289,
20308,
1748,
1748,
1748,
1748,
1748,
1748,
1748,
514,
20308,
1319,
723,
20308,
273,
20308,
2063,
6353,
18,
588,
4254,
559,
5621,
20308,
1748,
1748,
1748,
514,
20308,
1963,
20308,
273,
20308,
446,
31,
20308,
1748,
1748,
1748,
1748,
1748,
1748,
1748,
309,
12,
1966,
723,
18,
2
] | |
case Token.NAMEDEC : { | case Icode_NAMEDEC : { | static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { return execWithNewDomain(cx, scope, thisObj, args, argsDbl, argShift, argCount, fnOrScript, idata); } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Context.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!f.itsUseDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { scope = ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Context.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } String savedSourceFile = cx.interpreterSourceFile; cx.interpreterSourceFile = idata.itsSourceFile; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: for (;;) { try { switch (iCode[pc] & 0xff) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal withnexceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Context.codeBug(); int pcNew = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof WrappedException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcNew >= 0) { // Has catch block doCatch = true; } } if (pcNew < 0) { pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Context.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } // make stack to contain single exception object stackTop = STACK_SHFT; if (doCatch) { stack[stackTop] = ScriptRuntime.getCatchObject(cx, scope, javaException); } else { // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = pcNew; continue Loop; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; javaException = new JavaScriptException(value); exceptionPC = pc; if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IFNE : { Object val = stack[stackTop]; boolean valBln; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; } pc += 2; break; } case Token.IFEQ : { boolean valBln; Object val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; } pc += 2; break; } case Token.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; case Icode_RETSUB : { int slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case Token.POP : stack[stackTop] = null; stackTop--; break; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Icode_END: break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case Token.BINDNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case Token.GETBASE : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; } case Token.SETNAME : { String name = strings[getIndex(iCode, pc + 1)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; // what about class cast exception here for lhs? Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case Token.PROPINC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; } case Token.PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; } case Token.ELEMINC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; } case Token.ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; } case Token.GETTHIS : { Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis(lhs); break; } case Token.NEWTEMP : { int slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; } case Token.USETEMP : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc + 1] & 0xFF; boolean isNew = (iCode[pc + 2] != 0); int sourceLine = getShort(iCode, pc + 3); int count = getIndex(iCode, pc + 5); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); pc += 6; instructionCount = cx.instructionCount; break; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; int count = getIndex(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), calleeScope); } pc += 4; instructionCount = cx.instructionCount; break; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), scope); } pc += 4; instructionCount = cx.instructionCount; break; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case Token.TYPEOFNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case Token.STRING : stack[++stackTop] = strings[getIndex(iCode, pc + 1)]; pc += 2; break; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc + 1)]; pc += 2; break; case Token.NAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case Token.NAMEINC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postIncrement(scope, name); pc += 2; break; } case Token.NAMEDEC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postDecrement(scope, name); pc += 2; break; } case Token.SETVAR : { int slot = (iCode[++pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } break; } case Token.GETVAR : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } break; } case Token.VARINC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) + 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case Token.VARDEC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) - 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case Token.NULL : stack[++stackTop] = null; break; case Token.THIS : stack[++stackTop] = thisObj; break; case Token.THISFN : stack[++stackTop] = fnOrScript; break; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; break; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; break; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case Token.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case Token.ENUMINIT : { int slot = (iCode[++pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; } case Token.ENUMNEXT : { int slot = (iCode[++pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime.nextEnum(val); break; } case Icode_GETPROTO : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; } case Icode_GETPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; } case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; } case Icode_SETPROTO : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; } case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; } case Icode_SCOPE : stack[++stackTop] = scope; break; case Token.CLOSURE : { int i = getIndex(iCode, pc + 1); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case Token.REGEXP : { int i = getIndex(iCode, pc + 1); stack[++stackTop] = idata.itsRegExpLiterals[i]; pc += 2; break; } case Icode_LINE : { int line = getShort(iCode, pc + 1); cx.interpreterLine = line; if (debuggerFrame != null) { debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException ("Unknown icode : "+(iCode[pc] & 0xff)+" @ pc : "+pc); } // end of interpreter switch } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } javaException = ex; exceptionPC = pc; pc = getJavaCatchPC(iCode); continue Loop; } } cx.interpreterSourceFile = savedSourceFile; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/faf2a30c39fc508f2635416a94f9662c4ae41ad3/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
327,
1196,
1190,
1908,
3748,
12,
71,
92,
16,
2146,
16,
15261,
16,
19694,
833,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
16,
19694,
2295,
1162,
3651,
16,
612,
396,
1769,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
374,
31,
3639,
727,
509,
943,
5555,
273,
612,
396,
18,
1282,
2747,
5555,
31,
3639,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
67,
2664,
4464,
397,
943,
5555,
31,
3639,
727,
509,
11464,
67,
2664,
4464,
273,
15234,
67,
2664,
4464,
397,
612,
396,
18,
1282,
2747,
1333,
1031,
31,
759,
2110,
63,
7716,
67,
2664,
4464,
1648,
277,
411,
15234,
67,
2664,
4464,
14542,
3152,
759,
2110,
63,
14922,
67,
2664,
4464,
1648,
277,
411,
4235,
61,
67,
21971,
67,
2664,
4464,
14542,
1399,
364,
394,
5814,
19,
407,
278,
30752,
759,
2110,
63,
21971,
67,
2664,
4464,
1648,
277,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
327,
1196,
1190,
1908,
3748,
12,
71,
92,
16,
2146,
16,
15261,
16,
19694,
833,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
16,
19694,
2295,
1162,
3651,
16,
612,
396,
1769,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
2
] |
return getVFSForProtocol(path); | return getVFSForProtocol(MiscUtilities.getProtocolOfURL(path)); | public static VFS getVFSForPath(String path) { if(MiscUtilities.isURL(path)) return getVFSForProtocol(path); else return fileVFS; } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/4322e592a252b85bde544e44b3b1592ffc24ec52/VFSManager.java/buggy/org/gjt/sp/jedit/io/VFSManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
23567,
11031,
4931,
25589,
12,
780,
589,
13,
202,
95,
202,
202,
430,
12,
11729,
71,
11864,
18,
291,
1785,
12,
803,
3719,
1082,
202,
2463,
11031,
4931,
1290,
5752,
12,
803,
1769,
202,
202,
12107,
1082,
202,
2463,
585,
58,
4931,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
23567,
11031,
4931,
25589,
12,
780,
589,
13,
202,
95,
202,
202,
430,
12,
11729,
71,
11864,
18,
291,
1785,
12,
803,
3719,
1082,
202,
2463,
11031,
4931,
1290,
5752,
12,
803,
1769,
202,
202,
12107,
1082,
202,
2463,
585,
58,
4931,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
default : | case SLASH: value = next; optional(WS); next = getTokenAhead(); if (bQUOTING.get(next.kind)) { hTag = next; error("The value without opening quote is closed with '" + next.getImage() + "'"); attrValue = value.getImage(); } else if (next.kind == NUMTOKEN || next.kind == SLASH) { StringBuffer image = new StringBuffer(value.getImage()); while (next.kind == NUMTOKEN || next.kind == SLASH) { image.append(getNextToken().getImage()); next = getTokenAhead(); } attrValue = image.toString(); } else attrValue = value.getImage(); break; default: | protected void readAttributes(String element) { Token name; Token value; Token next; String attrValue; attributes = new htmlAttributeSet(); optional(WS); attributeReading: while (getTokenAhead().kind == NUMTOKEN) { name = getNextToken(); optional(WS); next = getTokenAhead(); if (next.kind == EQ) { mustBe(EQ); optional(WS); next = getNextToken(); switch (next.kind) { case QUOT : // read "quoted" attribute. buffer.setLength(0); readTillTokenE(QUOT); attrValue = buffer.toString(); break; case AP : // read 'quoted' attribute. buffer.setLength(0); readTillTokenE(AP); attrValue = buffer.toString(); break; // read unquoted attribute. case NUMTOKEN : value = next; optional(WS); // Check maybe the opening quote is missing. next = getTokenAhead(); if (bQUOTING.get(next.kind)) { hTag = next; error("The value without opening quote is closed with '" + next.getImage() + "'" ); attrValue = value.getImage(); } else if (next.kind == SLASH) // The slash in this context is treated as the ordinary // character, not as a token. The slash may be part of // the unquoted URL. { StringBuffer image = new StringBuffer(value.getImage()); while (next.kind == NUMTOKEN || next.kind == SLASH) { image.append(getNextToken().getImage()); next = getTokenAhead(); } attrValue = image.toString(); } else attrValue = value.getImage(); break; default : break attributeReading; } attributes.addAttribute(name.getImage(), attrValue); optional(WS); } else // The '=' is missing: attribute without value. { noValueAttribute(element, name.getImage()); } } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/abad947539d38da7392ff914207d1bb7d5538320/Parser.java/buggy/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/support/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
855,
2498,
12,
780,
930,
13,
225,
288,
565,
3155,
508,
31,
565,
3155,
460,
31,
565,
3155,
1024,
31,
565,
514,
21676,
31,
565,
1677,
273,
394,
1729,
1499,
694,
5621,
565,
3129,
12,
2651,
1769,
565,
1566,
15714,
30,
377,
1323,
261,
588,
1345,
24250,
7675,
9224,
422,
9443,
8412,
13,
1377,
288,
3639,
508,
273,
22616,
5621,
3639,
3129,
12,
2651,
1769,
3639,
1024,
273,
9162,
24250,
5621,
3639,
309,
261,
4285,
18,
9224,
422,
22426,
13,
1850,
288,
5411,
1297,
1919,
12,
27247,
1769,
5411,
3129,
12,
2651,
1769,
5411,
1024,
273,
22616,
5621,
5411,
1620,
261,
4285,
18,
9224,
13,
2868,
288,
7734,
648,
10110,
1974,
294,
5375,
368,
855,
315,
15179,
6,
1566,
18,
5375,
1613,
18,
542,
1782,
12,
20,
1769,
5375,
855,
56,
737,
1345,
41,
12,
3500,
1974,
1769,
5375,
21676,
273,
1613,
18,
10492,
5621,
5375,
898,
31,
7734,
648,
14410,
294,
5375,
368,
855,
296,
15179,
11,
1566,
18,
5375,
1613,
18,
542,
1782,
12,
20,
1769,
5375,
855,
56,
737,
1345,
41,
12,
2203,
1769,
5375,
21676,
273,
1613,
18,
10492,
5621,
5375,
898,
31,
7734,
368,
855,
640,
15179,
1566,
18,
7734,
648,
9443,
8412,
294,
5375,
460,
273,
1024,
31,
5375,
3129,
12,
2651,
1769,
5375,
368,
2073,
6944,
326,
10890,
3862,
353,
3315,
18,
5375,
1024,
273,
9162,
24250,
5621,
5375,
309,
261,
70,
3500,
1974,
1360,
18,
588,
12,
4285,
18,
9224,
3719,
10792,
288,
8227,
366,
1805,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
855,
2498,
12,
780,
930,
13,
225,
288,
565,
3155,
508,
31,
565,
3155,
460,
31,
565,
3155,
1024,
31,
565,
514,
21676,
31,
565,
1677,
273,
394,
1729,
1499,
694,
5621,
565,
3129,
12,
2651,
1769,
565,
1566,
15714,
30,
377,
1323,
261,
588,
1345,
24250,
7675,
9224,
422,
9443,
8412,
13,
1377,
288,
3639,
508,
273,
22616,
5621,
3639,
3129,
12,
2651,
1769,
3639,
1024,
273,
9162,
24250,
5621,
3639,
309,
261,
4285,
18,
9224,
422,
22426,
13,
1850,
288,
5411,
1297,
1919,
12,
27247,
1769,
5411,
3129,
12,
2651,
1769,
5411,
1024,
273,
22616,
5621,
5411,
1620,
261,
4285,
18,
9224,
13,
2868,
288,
7734,
648,
10110,
1974,
294,
5375,
368,
855,
315,
2
] |
if(referent == null) { | if(referent == null){ | public void visitMethodCallExpression(@NotNull PsiMethodCallExpression call){ if(containsStreamClose){ return; } super.visitMethodCallExpression(call); final PsiReferenceExpression methodExpression = call.getMethodExpression(); if(methodExpression == null){ return; } final String methodName = methodExpression.getReferenceName(); if(!"close".equals(methodName)){ return; } final PsiExpression qualifier = methodExpression.getQualifierExpression(); if(!(qualifier instanceof PsiReferenceExpression)){ return; } final PsiElement referent = ((PsiReference) qualifier).resolve(); if(referent == null) { return; } if(referent.equals(streamToClose)){ containsStreamClose = true; } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/75eaa8639d3bcddbd5fb58aa1a7a766e2daa265c/IOResourceInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/resources/IOResourceInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
12592,
2300,
26964,
5962,
453,
7722,
12592,
2300,
745,
15329,
5411,
309,
12,
12298,
1228,
4605,
15329,
7734,
327,
31,
5411,
289,
5411,
2240,
18,
11658,
12592,
2300,
12,
1991,
1769,
5411,
727,
453,
7722,
2404,
2300,
707,
2300,
273,
10792,
745,
18,
588,
1305,
2300,
5621,
5411,
309,
12,
2039,
2300,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
514,
4918,
273,
707,
2300,
18,
588,
2404,
461,
5621,
5411,
309,
12,
4442,
4412,
9654,
14963,
12,
2039,
461,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
12327,
273,
10792,
707,
2300,
18,
588,
16185,
2300,
5621,
5411,
309,
12,
5,
12,
28157,
1276,
453,
7722,
2404,
2300,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
1046,
283,
3518,
273,
10792,
14015,
52,
7722,
2404,
13,
12327,
2934,
10828,
5621,
5411,
309,
12,
266,
3518,
422,
446,
13,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
309,
12,
266,
3518,
18,
14963,
12,
3256,
774,
4605,
3719,
95,
7734,
1914,
1228,
4605,
273,
638,
31,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
12592,
2300,
26964,
5962,
453,
7722,
12592,
2300,
745,
15329,
5411,
309,
12,
12298,
1228,
4605,
15329,
7734,
327,
31,
5411,
289,
5411,
2240,
18,
11658,
12592,
2300,
12,
1991,
1769,
5411,
727,
453,
7722,
2404,
2300,
707,
2300,
273,
10792,
745,
18,
588,
1305,
2300,
5621,
5411,
309,
12,
2039,
2300,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
514,
4918,
273,
707,
2300,
18,
588,
2404,
461,
5621,
5411,
309,
12,
4442,
4412,
9654,
14963,
12,
2039,
461,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
12327,
273,
10792,
707,
2300,
18,
588,
16185,
2300,
5621,
5411,
309,
12,
5,
12,
28157,
1276,
453,
7722,
2404,
2300,
2
] |
diff = pc - nextTermFixup; SET_OFFSET(program, nextTermFixup, diff); | resolveForwardJump(program, nextTermFixup, pc); | emitREBytecode(CompilerState state, RECompiled re, int pc, RENode t) { RENode nextAlt; int nextAltFixup, nextTermFixup; int diff; RECharSet charSet; byte[] program = re.program; while (t != null) { program[pc++] = t.op; switch (t.op) { case REOP_EMPTY: --pc; break; case REOP_ALT: nextAlt = t.kid2; nextAltFixup = pc; /* address of next alternate */ pc += OFFSET_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_JUMP; nextTermFixup = pc; /* address of following term */ pc += OFFSET_LEN; diff = pc - nextAltFixup; SET_OFFSET(program, nextAltFixup, diff); pc = emitREBytecode(state, re, pc, nextAlt); program[pc++] = REOP_JUMP; nextAltFixup = pc; pc += OFFSET_LEN; diff = pc - nextTermFixup; SET_OFFSET(program, nextTermFixup, diff); diff = pc - nextAltFixup; SET_OFFSET(program, nextAltFixup, diff); break; case REOP_FLAT: /* * Consecutize FLAT's if possible. */ if (t.flatIndex != -1) { while ((t.next != null) && (t.next.op == REOP_FLAT) && ((t.flatIndex + t.length) == t.next.flatIndex)) { t.length += t.next.length; t.next = t.next.next; } } if ((t.flatIndex != -1) && (t.length > 1)) { if ((state.flags & JSREG_FOLD) != 0) program[pc - 1] = REOP_FLATi; else program[pc - 1] = REOP_FLAT; SET_ARG(program, pc, t.flatIndex); pc += ARG_LEN; SET_ARG(program, pc, t.length); pc += ARG_LEN; } else { if (t.chr < 256) { if ((state.flags & JSREG_FOLD) != 0) program[pc - 1] = REOP_FLAT1i; else program[pc - 1] = REOP_FLAT1; program[pc++] = (byte)(t.chr); } else { if ((state.flags & JSREG_FOLD) != 0) program[pc - 1] = REOP_UCFLAT1i; else program[pc - 1] = REOP_UCFLAT1; SET_ARG(program, pc, t.chr); pc += ARG_LEN; } } break; case REOP_LPAREN: SET_ARG(program, pc, t.parenIndex); pc += ARG_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_RPAREN; SET_ARG(program, pc, t.parenIndex); pc += ARG_LEN; break; case REOP_BACKREF: SET_ARG(program, pc, t.parenIndex); pc += ARG_LEN; break; case REOP_ASSERT: nextTermFixup = pc; pc += OFFSET_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_ASSERTTEST; diff = pc - nextTermFixup; SET_OFFSET(program, nextTermFixup, diff); break; case REOP_ASSERT_NOT: nextTermFixup = pc; pc += OFFSET_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_ASSERTNOTTEST; diff = pc - nextTermFixup; SET_OFFSET(program, nextTermFixup, diff); break; case REOP_QUANT: if ((t.min == 0) && (t.max == -1)) program[pc - 1] = (t.greedy) ? REOP_STAR : REOP_MINIMALSTAR; else if ((t.min == 0) && (t.max == 1)) program[pc - 1] = (t.greedy) ? REOP_OPT : REOP_MINIMALOPT; else if ((t.min == 1) && (t.max == -1)) program[pc - 1] = (t.greedy) ? REOP_PLUS : REOP_MINIMALPLUS; else { if (!t.greedy) program[pc - 1] = REOP_MINIMALQUANT; SET_ARG(program, pc, t.min); pc += ARG_LEN; SET_ARG(program, pc, t.max); pc += ARG_LEN; } SET_ARG(program, pc, t.parenCount); pc += ARG_LEN; SET_ARG(program, pc, t.parenIndex); pc += ARG_LEN; nextTermFixup = pc; pc += OFFSET_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_ENDCHILD; diff = pc - nextTermFixup; SET_OFFSET(program, nextTermFixup, diff); break; case REOP_CLASS: SET_ARG(program, pc, t.index); pc += ARG_LEN; charSet = re.classList[t.index]; charSet.converted = false; charSet.length = t.bmsize; charSet.startIndex = t.startIndex; charSet.strlength = t.kidlen; break; default: break; } t = t.next; } return pc; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/7ee5a14c0cac11724d22286034567fd418e25797/NativeRegExp.java/clean/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3626,
862,
858,
16651,
12,
9213,
1119,
919,
16,
2438,
20733,
283,
16,
509,
6125,
16,
2438,
907,
268,
13,
565,
288,
3639,
2438,
907,
1024,
10655,
31,
3639,
509,
1024,
10655,
8585,
416,
16,
1024,
4065,
8585,
416,
31,
3639,
509,
3122,
31,
3639,
2438,
2156,
694,
1149,
694,
31,
3639,
1160,
8526,
5402,
273,
283,
18,
12890,
31,
3639,
1323,
261,
88,
480,
446,
13,
288,
5411,
5402,
63,
2436,
9904,
65,
273,
268,
18,
556,
31,
5411,
1620,
261,
88,
18,
556,
13,
288,
5411,
648,
2438,
3665,
67,
13625,
30,
7734,
1493,
2436,
31,
7734,
898,
31,
5411,
648,
2438,
3665,
67,
18255,
30,
7734,
1024,
10655,
273,
268,
18,
79,
350,
22,
31,
7734,
1024,
10655,
8585,
416,
273,
6125,
31,
565,
1748,
1758,
434,
1024,
12184,
1195,
7734,
6125,
1011,
26019,
67,
13017,
31,
7734,
6125,
273,
3626,
862,
858,
16651,
12,
2019,
16,
283,
16,
6125,
16,
268,
18,
79,
350,
1769,
7734,
5402,
63,
2436,
9904,
65,
273,
2438,
3665,
67,
46,
23942,
31,
7734,
1024,
4065,
8585,
416,
273,
6125,
31,
565,
1748,
1758,
434,
3751,
2481,
1195,
7734,
6125,
1011,
26019,
67,
13017,
31,
7734,
3122,
273,
6125,
300,
1024,
10655,
8585,
416,
31,
7734,
7855,
67,
11271,
12,
12890,
16,
1024,
10655,
8585,
416,
16,
3122,
1769,
7734,
6125,
273,
3626,
862,
858,
16651,
12,
2019,
16,
283,
16,
6125,
16,
1024,
10655,
1769,
7734,
5402,
63,
2436,
9904,
65,
273,
2438,
3665,
67,
46,
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,
3626,
862,
858,
16651,
12,
9213,
1119,
919,
16,
2438,
20733,
283,
16,
509,
6125,
16,
2438,
907,
268,
13,
565,
288,
3639,
2438,
907,
1024,
10655,
31,
3639,
509,
1024,
10655,
8585,
416,
16,
1024,
4065,
8585,
416,
31,
3639,
509,
3122,
31,
3639,
2438,
2156,
694,
1149,
694,
31,
3639,
1160,
8526,
5402,
273,
283,
18,
12890,
31,
3639,
1323,
261,
88,
480,
446,
13,
288,
5411,
5402,
63,
2436,
9904,
65,
273,
268,
18,
556,
31,
5411,
1620,
261,
88,
18,
556,
13,
288,
5411,
648,
2438,
3665,
67,
13625,
30,
7734,
1493,
2436,
31,
7734,
898,
31,
5411,
648,
2438,
3665,
67,
18255,
30,
7734,
1024,
10655,
273,
268,
18,
79,
350,
22,
31,
2
] |
int attypmod = r.getInt(8); | int attypmod = r.getInt(8) - VARHDRSZ; | public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32); f[8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, 32); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, 32); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, 32); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid, 4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, 32); StringBuffer sql = new StringBuffer(512); /* Build a >= 7.1 SQL statement to list all columns */ sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + /* Use the new col_description in 7.2 or an additional outer join in 7.1 */ (connection.haveMinimumServerVersion("7.2") ? "col_description(a.attrelid, a.attnum) " : "e.description ") + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " ) "); if (!connection.haveMinimumServerVersion("7.2")) { /* Only for 7.1 */ sql.append( " left outer join pg_description e on" + " (" + " e.objoid = a.oid" + " ) "); } sql.append("order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = null; // Catalog name, not supported tuple[1] = null; // Schema name, not supported tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length // Decimal digits = scale // From the source (see e.g. backend/utils/adt/numeric.c, // function numeric()) the scale and precision can be calculated // from the typmod value. if (typname.equals("numeric") || typname.equals("decimal")) { int attypmod = r.getInt(8); tuple[8] = Integer.toString((attypmod - VARHDRSZ) & 0xffff).getBytes(); } else tuple[8] = "0".getBytes(); tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); } | 11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/521017c5d090f18278b0fa9e8b949f7e57e6e050/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
202,
202,
759,
1021,
652,
14215,
364,
326,
394,
10842,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
4883,
67,
2399,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
202,
202,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
2399,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
4574,
3113,
277,
1702,
24,
19105,
16,
1059,
1769,
202,
202,
74,
63,
27,
65,
273,
394,
2286,
12,
4071,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
202,
202,
759,
1021,
652,
14215,
364,
326,
394,
10842,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
2
] |
if (respondTo != null) respondTo.processResponse(transactionResponse, this); | if (respondTo != null) respondTo.processResponse(transactionResponse, this); | private void inviteClientTransaction( SIPResponse transactionResponse, MessageChannel sourceChannel) throws IOException { int statusCode = transactionResponse.getStatusCode(); if (TransactionState.TERMINATED == this.getState()) { // Do nothing in the terminated state. return; } else if (TransactionState.CALLING == this.getState()) { if (statusCode / 100 == 2) { // 200 responses are always seen by TU. if (respondTo != null) respondTo.processResponse(transactionResponse, this); disableRetransmissionTimer(); disableTimeoutTimer(); this.setState(TransactionState.TERMINATED); } else if (statusCode / 100 == 1) { disableRetransmissionTimer(); disableTimeoutTimer(); if (respondTo != null) respondTo.processResponse(transactionResponse, this); this.setState(TransactionState.PROCEEDING); } else if (300 <= statusCode && statusCode <= 699) { // Send back an ACK request (do this before calling the // application (bug noticed by Andreas Bystrom). try { sendMessage((SIPRequest) createAck()); } catch (SipException ex) { InternalErrorHandler.handleException(ex); } // When in either the "Calling" or "Proceeding" states, // reception of response with status code from 300-699 // MUST cause the client transaction to // transition to "Completed". // The client transaction MUST pass the received response up to // the TU, and the client transaction MUST generate an // ACK request. if (respondTo != null) respondTo.processResponse(transactionResponse, this); if (!isReliable()) { this.setState(TransactionState.COMPLETED); enableTimeoutTimer(TIMER_D); } else { //Proceed immediately to the TERMINATED state. this.setState(TransactionState.TERMINATED); } } } else if (TransactionState.PROCEEDING == this.getState()) { if ( statusCode / 100 == 1) { if (respondTo != null) respondTo.processResponse(transactionResponse, this); } else if (statusCode / 100 == 2) { this.setState(TransactionState.TERMINATED); if (respondTo != null) respondTo.processResponse(transactionResponse, this); } else if (300 <= statusCode && statusCode <= 699) { // Send back an ACK request try { sendMessage((SIPRequest) createAck()); } catch (SipException ex) { InternalErrorHandler.handleException(ex); } // Pass up to the TU for processing. if (respondTo != null) respondTo.processResponse(transactionResponse, this); if (!isReliable()) { this.setState(TransactionState.COMPLETED); enableTimeoutTimer(TIMER_D); } else { this.setState(TransactionState.TERMINATED); } } } else if (TransactionState.COMPLETED == this.getState()) { if (300 <= statusCode && statusCode <= 699) { // Send back an ACK request try { sendMessage((SIPRequest) createAck()); } catch (SipException ex) { InternalErrorHandler.handleException(ex); } } } } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/d231d2c6c5ca907b5c90d5737c6ae873878b219f/SIPClientTransaction.java/clean/src/gov/nist/javax/sip/stack/SIPClientTransaction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
19035,
1227,
3342,
12,
565,
348,
2579,
1064,
2492,
1064,
16,
565,
2350,
2909,
1084,
2909,
13,
565,
1216,
1860,
288,
3639,
509,
6593,
273,
2492,
1064,
18,
588,
14041,
5621,
3639,
309,
261,
3342,
1119,
18,
29516,
6344,
422,
333,
18,
588,
1119,
10756,
288,
5411,
368,
2256,
5083,
316,
326,
14127,
919,
18,
5411,
327,
31,
3639,
289,
469,
309,
261,
3342,
1119,
18,
13730,
1360,
422,
333,
18,
588,
1119,
10756,
288,
5411,
309,
261,
30120,
342,
2130,
422,
576,
13,
288,
7734,
368,
4044,
7220,
854,
3712,
5881,
635,
399,
57,
18,
7734,
309,
261,
17863,
774,
480,
446,
13,
6846,
774,
18,
2567,
1064,
12,
7958,
1064,
16,
333,
1769,
7734,
4056,
7055,
28001,
3951,
6777,
5621,
7734,
4056,
2694,
6777,
5621,
7734,
333,
18,
542,
1119,
12,
3342,
1119,
18,
29516,
6344,
1769,
5411,
289,
469,
309,
261,
30120,
342,
2130,
422,
404,
13,
288,
7734,
4056,
7055,
28001,
3951,
6777,
5621,
7734,
4056,
2694,
6777,
5621,
7734,
309,
261,
17863,
774,
480,
446,
13,
6846,
774,
18,
2567,
1064,
12,
7958,
1064,
16,
333,
1769,
7734,
333,
18,
542,
1119,
12,
3342,
1119,
18,
3373,
1441,
2056,
1360,
1769,
5411,
289,
469,
309,
261,
19249,
1648,
6593,
597,
6593,
1648,
1666,
2733,
13,
288,
7734,
368,
2479,
1473,
392,
26069,
590,
261,
2896,
333,
1865,
4440,
326,
7734,
368,
2521,
261,
925,
11690,
72,
635,
7835,
266,
345,
605,
1094,
520,
2934,
7734,
775,
288,
10792,
15399,
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,
19035,
1227,
3342,
12,
565,
348,
2579,
1064,
2492,
1064,
16,
565,
2350,
2909,
1084,
2909,
13,
565,
1216,
1860,
288,
3639,
509,
6593,
273,
2492,
1064,
18,
588,
14041,
5621,
3639,
309,
261,
3342,
1119,
18,
29516,
6344,
422,
333,
18,
588,
1119,
10756,
288,
5411,
368,
2256,
5083,
316,
326,
14127,
919,
18,
5411,
327,
31,
3639,
289,
469,
309,
261,
3342,
1119,
18,
13730,
1360,
422,
333,
18,
588,
1119,
10756,
288,
5411,
309,
261,
30120,
342,
2130,
422,
576,
13,
288,
7734,
368,
4044,
7220,
854,
3712,
5881,
635,
399,
57,
18,
7734,
309,
261,
17863,
774,
480,
446,
13,
6846,
774,
18,
2567,
1064,
12,
7958,
1064,
16,
333,
1769,
7734,
2
] |
Point3d iPnt = getPoint3d(); | boolean intersectCone(Point3d pt, PickCone cone, double[] dist) { Point3d origin = getPoint3d(); Point3d end = getPoint3d(); Vector3d direction = getVector3d(); Point3d iPnt = getPoint3d(); Vector3d originToIpnt = getVector3d(); // Get cone information cone.getOrigin (origin); cone.getDirection (direction); double radius; double distance; double sqDist; if (iPnt == null) { iPnt = new Point3d(); } if (cone instanceof PickConeSegment) { ((PickConeSegment)cone).getEnd (end); sqDist = Distance.pointToSegment (pt, origin, end, iPnt, null); } else { sqDist = Distance.pointToRay (pt, origin, direction, iPnt, null); } originToIpnt.sub(iPnt, origin); distance = originToIpnt.length(); radius = Math.tan (cone.getSpreadAngle()) * distance; if (sqDist <= radius*radius) { dist[0] = distance; freePoint3d(origin); freePoint3d(end); freePoint3d(iPnt); freeVector3d(direction); freeVector3d(originToIpnt); return true; } return false; } | 8698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8698/48706d71f20645ca81e3ee474c7b899b0828cba8/GeometryArrayRetained.java/buggy/src/classes/share/javax/media/j3d/GeometryArrayRetained.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
9136,
442,
73,
12,
2148,
23,
72,
5818,
16,
23038,
442,
73,
356,
73,
16,
1645,
8526,
2411,
13,
377,
288,
202,
2148,
23,
72,
4026,
273,
15808,
23,
72,
5621,
202,
2148,
23,
72,
679,
273,
15808,
23,
72,
5621,
202,
5018,
23,
72,
4068,
273,
336,
5018,
23,
72,
5621,
3639,
4686,
23,
72,
277,
52,
496,
273,
15808,
23,
72,
5621,
202,
5018,
23,
72,
4026,
774,
5273,
496,
273,
336,
5018,
23,
72,
5621,
202,
759,
968,
356,
73,
1779,
202,
71,
476,
18,
588,
7571,
261,
10012,
1769,
202,
71,
476,
18,
588,
8212,
261,
9855,
1769,
202,
9056,
5725,
31,
202,
9056,
3888,
31,
202,
9056,
4744,
5133,
31,
202,
430,
261,
77,
52,
496,
422,
446,
13,
288,
202,
565,
277,
52,
496,
273,
394,
4686,
23,
72,
5621,
202,
97,
202,
430,
261,
71,
476,
1276,
23038,
442,
73,
4131,
13,
288,
202,
565,
14015,
17968,
442,
73,
4131,
13,
71,
476,
2934,
588,
1638,
261,
409,
1769,
202,
565,
4744,
5133,
273,
20335,
18,
1153,
774,
4131,
261,
337,
16,
4026,
16,
679,
16,
277,
52,
496,
16,
446,
1769,
202,
97,
202,
12107,
288,
202,
565,
4744,
5133,
273,
20335,
18,
1153,
774,
54,
528,
261,
337,
16,
4026,
16,
4068,
16,
277,
52,
496,
16,
446,
1769,
202,
97,
202,
10012,
774,
5273,
496,
18,
1717,
12,
77,
52,
496,
16,
4026,
1769,
202,
8969,
273,
4026,
774,
5273,
496,
18,
2469,
5621,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
9136,
442,
73,
12,
2148,
23,
72,
5818,
16,
23038,
442,
73,
356,
73,
16,
1645,
8526,
2411,
13,
377,
288,
202,
2148,
23,
72,
4026,
273,
15808,
23,
72,
5621,
202,
2148,
23,
72,
679,
273,
15808,
23,
72,
5621,
202,
5018,
23,
72,
4068,
273,
336,
5018,
23,
72,
5621,
3639,
4686,
23,
72,
277,
52,
496,
273,
15808,
23,
72,
5621,
202,
5018,
23,
72,
4026,
774,
5273,
496,
273,
336,
5018,
23,
72,
5621,
202,
759,
968,
356,
73,
1779,
202,
71,
476,
18,
588,
7571,
261,
10012,
1769,
202,
71,
476,
18,
588,
8212,
261,
9855,
1769,
202,
9056,
5725,
31,
202,
9056,
3888,
31,
202,
9056,
4744,
5133,
31,
202,
430,
2
] | |
sqlQuery.addOrderBy(ordinalSql, true, false); | sqlQuery.addOrderBy(ordinalSql, true, false, true); | void addLevelMemberSql( SqlQuery sqlQuery, RolapLevel level, Map levelToColumnMap, boolean finalSelect) { RolapHierarchy hierarchy = (RolapHierarchy) level.getHierarchy(); RolapLevel[] levels = (RolapLevel[]) hierarchy.getLevels(); int levelDepth = level.getDepth(); int orderByColNo = 1; for (int i = 0; i <= levelDepth; i++) { RolapLevel level2 = levels[i]; if (level2.isAll()) { continue; } hierarchy.addToFrom(sqlQuery, level2.getKeyExp()); String keySql = level2.getKeyExp().getExpression(sqlQuery); sqlQuery.addSelect(keySql); sqlQuery.addGroupBy(keySql); hierarchy.addToFrom(sqlQuery, level2.getOrdinalExp()); constraint.addLevelConstraint( sqlQuery, null, level2, levelToColumnMap); if (level2.hasCaptionColumn()) { MondrianDef.Expression captionExp = level2.getCaptionExp(); hierarchy.addToFrom(sqlQuery, captionExp); String captionSql = captionExp.getExpression(sqlQuery); sqlQuery.addSelect(captionSql); sqlQuery.addGroupBy(captionSql); } String ordinalSql = level2.getOrdinalExp().getExpression(sqlQuery); sqlQuery.addGroupBy(ordinalSql); if (finalSelect) { // if this is a select on a virtual cube, the query will be // a union, so the order by columns need to be numbers, // not column name strings if (levelToColumnMap != null) { Integer obyCol = new Integer(orderByColNo); ordinalSql = obyCol.toString(); orderByColNo++; } sqlQuery.addOrderBy(ordinalSql, true, false); } RolapProperty[] properties = level2.getRolapProperties(); for (int j = 0; j < properties.length; j++) { RolapProperty property = properties[j]; String propSql = property.getExp().getExpression(sqlQuery); sqlQuery.addSelect(propSql); sqlQuery.addGroupBy(propSql); } } } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/5b8d0425a7b09e3db4e7f2d006efa9c093f71098/SqlTupleReader.java/clean/src/main/mondrian/rolap/SqlTupleReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
527,
2355,
4419,
5101,
12,
3639,
8855,
1138,
24451,
16,
11714,
438,
2355,
1801,
16,
1635,
1801,
774,
1494,
863,
16,
3639,
1250,
727,
3391,
13,
565,
288,
3639,
11714,
438,
12074,
9360,
273,
261,
4984,
438,
12074,
13,
1801,
18,
588,
12074,
5621,
3639,
11714,
438,
2355,
8526,
7575,
273,
261,
4984,
438,
2355,
63,
5717,
9360,
18,
588,
12240,
5621,
3639,
509,
1801,
6148,
273,
1801,
18,
588,
6148,
5621,
3639,
509,
5278,
914,
2279,
273,
404,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
1648,
1801,
6148,
31,
277,
27245,
288,
5411,
11714,
438,
2355,
1801,
22,
273,
7575,
63,
77,
15533,
5411,
309,
261,
2815,
22,
18,
291,
1595,
10756,
288,
7734,
1324,
31,
5411,
289,
5411,
9360,
18,
1289,
774,
1265,
12,
4669,
1138,
16,
1801,
22,
18,
588,
653,
2966,
10663,
5411,
514,
498,
5101,
273,
1801,
22,
18,
588,
653,
2966,
7675,
588,
2300,
12,
4669,
1138,
1769,
5411,
24451,
18,
1289,
3391,
12,
856,
5101,
1769,
5411,
24451,
18,
1289,
26257,
12,
856,
5101,
1769,
5411,
9360,
18,
1289,
774,
1265,
12,
4669,
1138,
16,
1801,
22,
18,
588,
22830,
2966,
10663,
5411,
4954,
18,
1289,
2355,
5806,
12,
7734,
24451,
16,
446,
16,
1801,
22,
16,
1801,
774,
1494,
863,
1769,
5411,
309,
261,
2815,
22,
18,
5332,
21158,
1494,
10756,
288,
7734,
490,
1434,
566,
304,
3262,
18,
2300,
11006,
2966,
273,
1801,
22,
18,
588,
21158,
2966,
5621,
7734,
9360,
18,
1289,
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,
918,
527,
2355,
4419,
5101,
12,
3639,
8855,
1138,
24451,
16,
11714,
438,
2355,
1801,
16,
1635,
1801,
774,
1494,
863,
16,
3639,
1250,
727,
3391,
13,
565,
288,
3639,
11714,
438,
12074,
9360,
273,
261,
4984,
438,
12074,
13,
1801,
18,
588,
12074,
5621,
3639,
11714,
438,
2355,
8526,
7575,
273,
261,
4984,
438,
2355,
63,
5717,
9360,
18,
588,
12240,
5621,
3639,
509,
1801,
6148,
273,
1801,
18,
588,
6148,
5621,
3639,
509,
5278,
914,
2279,
273,
404,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
1648,
1801,
6148,
31,
277,
27245,
288,
5411,
11714,
438,
2355,
1801,
22,
273,
7575,
63,
77,
15533,
5411,
309,
261,
2815,
22,
18,
291,
1595,
10756,
288,
2
] |
StopWatch sw = new StopWatch(); | StopWatch sw = new StopWatch(); | public void addField( GrouperSession s, String name, FieldType type, Privilege read, Privilege write, boolean required ) throws InsufficientPrivilegeException, SchemaException { // TODO DRY with deleteField() Field f = null; StopWatch sw = new StopWatch(); sw.start(); if (!PrivilegeResolver.getInstance().isRoot(s.getSubject())) { String msg = "subject not privileged to add fields"; LOG.error(msg); throw new InsufficientPrivilegeException(msg); } try { f = FieldFinder.find(name); // field already exists. } catch (SchemaException eS) { // Ignore } if (f != null) { String msg = "field already exists: " + name; LOG.error(msg); throw new SchemaException(msg); } if (GroupType.isSystemType(this)) { String msg = "cannot add fields to system group types"; LOG.error(msg); throw new SchemaException(msg); } if ( !( (type.toString().equals(FieldType.ATTRIBUTE.toString()) ) || (type.toString().equals(FieldType.LIST.toString()) ) ) ) { String msg = "invalid field type: " + type; LOG.error(msg); throw new SchemaException(msg); } if (!Privilege.isAccess(read)) { String msg = "read privilege not access privilege: " + read; LOG.error(msg); throw new SchemaException(msg); } if (!Privilege.isAccess(write)) { String msg = "write privilege not access privilege: " + write; LOG.error(msg); throw new SchemaException(msg); } try { boolean nullable = true; if (required == true) { nullable = false; } Set fields = this.getFields(); f = new Field(name, type, read, write, nullable); fields.add(f); this.setFields(fields); HibernateHelper.save(this); sw.stop(); EL.groupTypeAddField(s, this.getName(), name, sw); } catch (HibernateException eS) { String msg = "unable to add field: " + name + ": " + eS.getMessage(); LOG.error(msg); throw new SchemaException(msg); } } // public void addField(s, name, type, read, write, required) | 5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/bdcfebe4bb07a90873c2ffff2ef8694faccefa01/GroupType.java/clean/grouper/src/grouper/edu/internet2/middleware/grouper/GroupType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
11742,
12,
1377,
3756,
264,
2157,
272,
16,
514,
508,
16,
16602,
618,
16,
2301,
8203,
908,
855,
16,
4202,
2301,
8203,
908,
1045,
16,
1250,
1931,
225,
262,
565,
1216,
225,
22085,
11339,
24308,
503,
16,
5411,
4611,
503,
225,
288,
565,
368,
2660,
463,
9590,
598,
1430,
974,
1435,
565,
2286,
377,
284,
282,
273,
446,
31,
565,
5131,
5234,
1352,
225,
273,
394,
5131,
5234,
5621,
565,
1352,
18,
1937,
5621,
565,
309,
16051,
24308,
4301,
18,
588,
1442,
7675,
291,
2375,
12,
87,
18,
588,
6638,
1435,
3719,
288,
1377,
514,
1234,
273,
315,
7857,
486,
11334,
2423,
358,
527,
1466,
14432,
1377,
2018,
18,
1636,
12,
3576,
1769,
1377,
604,
394,
22085,
11339,
24308,
503,
12,
3576,
1769,
565,
289,
565,
775,
288,
1377,
284,
273,
2286,
8441,
18,
4720,
12,
529,
1769,
3639,
368,
652,
1818,
1704,
18,
1377,
289,
565,
1044,
261,
3078,
503,
425,
55,
13,
288,
1377,
368,
8049,
565,
289,
377,
309,
261,
74,
480,
446,
13,
288,
1377,
514,
1234,
273,
315,
1518,
1818,
1704,
30,
315,
397,
508,
31,
1377,
2018,
18,
1636,
12,
3576,
1769,
1377,
604,
394,
4611,
503,
12,
3576,
1769,
565,
289,
565,
309,
261,
1114,
559,
18,
291,
3163,
559,
12,
2211,
3719,
288,
1377,
514,
1234,
273,
315,
12892,
527,
1466,
358,
2619,
1041,
1953,
14432,
1377,
2018,
18,
1636,
12,
3576,
1769,
1377,
604,
394,
4611,
503,
12,
3576,
1769,
565,
289,
565,
309,
377,
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,
11742,
12,
1377,
3756,
264,
2157,
272,
16,
514,
508,
16,
16602,
618,
16,
2301,
8203,
908,
855,
16,
4202,
2301,
8203,
908,
1045,
16,
1250,
1931,
225,
262,
565,
1216,
225,
22085,
11339,
24308,
503,
16,
5411,
4611,
503,
225,
288,
565,
368,
2660,
463,
9590,
598,
1430,
974,
1435,
565,
2286,
377,
284,
282,
273,
446,
31,
565,
5131,
5234,
1352,
225,
273,
394,
5131,
5234,
5621,
565,
1352,
18,
1937,
5621,
565,
309,
16051,
24308,
4301,
18,
588,
1442,
7675,
291,
2375,
12,
87,
18,
588,
6638,
1435,
3719,
288,
1377,
514,
1234,
273,
315,
7857,
486,
11334,
2423,
358,
527,
1466,
14432,
1377,
2018,
18,
1636,
12,
3576,
1769,
1377,
604,
394,
2
] |
final IPluginDescriptor pluginDescriptor = descriptors[i]; | final IPluginDescriptor pluginDescriptor = descriptors[i]; | protected void startPlugins() { Runnable work = new Runnable() { IPreferenceStore store = getPreferenceStore(); final String pref = store.getString(IPreferenceConstants.PLUGINS_NOT_ACTIVATED_ON_STARTUP); public void run() { IPluginDescriptor descriptors[] = getEarlyActivatedPlugins(); for (int i = 0; i < descriptors.length; i++) { final IPluginDescriptor pluginDescriptor = descriptors[i]; SafeRunnable code = new SafeRunnable() { public void run() throws Exception { String id = pluginDescriptor.getUniqueIdentifier() + IPreferenceConstants.SEPARATOR; if(pref.indexOf(id) < 0) { Plugin plugin = pluginDescriptor.getPlugin(); IStartup startup = (IStartup)plugin; startup.earlyStartup(); } } public void handleException(Throwable exception) { WorkbenchPlugin.log("Unhandled Exception", new Status(IStatus.ERROR, "org.eclipse.ui", 0, "Unhandled Exception", exception)); } }; Platform.run(code); } } }; Thread thread = new Thread(work); thread.start(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/25425fe3505bc6f62e9021f3f79e33d77a752241/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
787,
9461,
1435,
288,
202,
202,
20013,
1440,
273,
394,
10254,
1435,
288,
1082,
202,
45,
9624,
2257,
1707,
273,
336,
9624,
2257,
5621,
1082,
202,
6385,
514,
11307,
273,
1707,
18,
588,
780,
12,
45,
9624,
2918,
18,
19415,
55,
67,
4400,
67,
22271,
6344,
67,
673,
67,
7570,
3079,
1769,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
45,
3773,
3187,
14215,
8526,
273,
4774,
20279,
28724,
9461,
5621,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
14215,
18,
2469,
31,
277,
27245,
288,
6862,
202,
6385,
467,
3773,
3187,
1909,
3187,
273,
14215,
63,
77,
15533,
4405,
202,
9890,
20013,
981,
273,
394,
14060,
20013,
1435,
288,
25083,
202,
482,
918,
1086,
1435,
1216,
1185,
288,
6862,
1082,
202,
780,
612,
273,
1909,
3187,
18,
588,
6303,
3004,
1435,
397,
467,
9624,
2918,
18,
4550,
31,
6862,
1082,
202,
430,
12,
25724,
18,
31806,
12,
350,
13,
411,
374,
13,
288,
6862,
9506,
202,
3773,
1909,
273,
1909,
3187,
18,
588,
3773,
5621,
6862,
9506,
202,
45,
22178,
11850,
273,
261,
45,
22178,
13,
4094,
31,
6862,
9506,
202,
23939,
18,
2091,
715,
22178,
5621,
6862,
1082,
202,
97,
25083,
202,
97,
25083,
202,
482,
918,
20879,
12,
15155,
1520,
13,
288,
6862,
1082,
202,
2421,
22144,
3773,
18,
1330,
2932,
26952,
1185,
3113,
394,
2685,
12,
45,
1482,
18,
3589,
16,
315,
3341,
18,
20416,
18,
4881,
3113,
374,
16,
315,
26952,
1185,
3113,
1520,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
787,
9461,
1435,
288,
202,
202,
20013,
1440,
273,
394,
10254,
1435,
288,
1082,
202,
45,
9624,
2257,
1707,
273,
336,
9624,
2257,
5621,
1082,
202,
6385,
514,
11307,
273,
1707,
18,
588,
780,
12,
45,
9624,
2918,
18,
19415,
55,
67,
4400,
67,
22271,
6344,
67,
673,
67,
7570,
3079,
1769,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
45,
3773,
3187,
14215,
8526,
273,
4774,
20279,
28724,
9461,
5621,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
14215,
18,
2469,
31,
277,
27245,
288,
6862,
202,
6385,
467,
3773,
3187,
1909,
3187,
273,
14215,
63,
77,
15533,
4405,
202,
9890,
20013,
981,
273,
394,
14060,
20013,
1435,
288,
25083,
2
] |
Asserts.notReached("can't convert from UTF8"); | assert false : "can't convert from UTF8"; | public static RubyArray unpack(String encodedString, RubyString formatString) { Ruby runtime = formatString.getRuntime(); RubyArray result = runtime.newArray(); PtrList format = new PtrList(formatString.getValue()); PtrList encode = new PtrList(encodedString); char type = format.nextChar(); // Type to be unpacked while(!format.isAtEnd()) { // Possible next type, format of current type, occurrences of type char next = format.nextChar(); // Next indicates to decode using native encoding format if (next == '_' || next == '!') { if (NATIVE_CODES.indexOf(type) == -1) { throw runtime.newArgumentError("'" + next + "' allowed only after types " + NATIVE_CODES); } // We advance in case occurences follows next = format.nextChar(); } // How many occurrences of 'type' we want int occurrences = 0; if (format.isAtEnd()) { occurrences = 1; } else if (next == '*') { occurrences = IS_STAR; next = format.nextChar(); } else if (Character.isDigit(next)) { format.backup(1); occurrences = format.nextAsciiNumber(); next = format.nextChar(); } else { occurrences = type == '@' ? 0 : 1; } // See if we have a converter for the job... Converter converter = (Converter) converters.get(new Character(type)); if (converter != null) { decode(runtime, encode, occurrences, result, converter); type = next; continue; } // Otherwise the unpack should be here... switch (type) { case '@' : encode.setPosition(occurrences); break; case '%' : throw runtime.newArgumentError("% is not supported"); case 'A' : { if (occurrences == IS_STAR || occurrences > encode.remaining()) { occurrences = encode.remaining(); } String potential = encode.nextSubstring(occurrences); for (int t = occurrences - 1; occurrences > 0; occurrences--, t--) { char c = potential.charAt(t); if (c != '\0' && c != ' ') { break; } } potential = potential.substring(0, occurrences); result.append(runtime.newString(potential)); } break; case 'Z' : { if (occurrences == IS_STAR || occurrences > encode.remaining()) { occurrences = encode.remaining(); } String potential = encode.nextSubstring(occurrences); for (int t = occurrences - 1; occurrences > 0; occurrences--, t--) { char c = potential.charAt(t); if (c != '\0') { break; } } potential = potential.substring(0, occurrences); result.append(runtime.newString(potential)); } break; case 'a' : if (occurrences == IS_STAR || occurrences > encode.remaining()) { occurrences = encode.remaining(); } result.append(runtime.newString(encode.nextSubstring(occurrences))); break; case 'b' : { if (occurrences == IS_STAR || occurrences > encode.remaining() * 8) { occurrences = encode.remaining() * 8; } int bits = 0; StringBuffer lElem = new StringBuffer(occurrences); for (int lCurByte = 0; lCurByte < occurrences; lCurByte++) { if ((lCurByte & 7) != 0) { bits >>>= 1; } else { bits = encode.nextChar(); } lElem.append((bits & 1) != 0 ? '1' : '0'); } result.append(runtime.newString(lElem.toString())); } break; case 'B' : { if (occurrences == IS_STAR || occurrences > encode.remaining() * 8) { occurrences = encode.remaining() * 8; } int bits = 0; StringBuffer lElem = new StringBuffer(occurrences); for (int lCurByte = 0; lCurByte < occurrences; lCurByte++) { if ((lCurByte & 7) != 0) bits <<= 1; else bits = encode.nextChar(); lElem.append((bits & 128) != 0 ? '1' : '0'); } result.append(runtime.newString(lElem.toString())); } break; case 'h' : { if (occurrences == IS_STAR || occurrences > encode.remaining() * 2) { occurrences = encode.remaining() * 2; } int bits = 0; StringBuffer lElem = new StringBuffer(occurrences); for (int lCurByte = 0; lCurByte < occurrences; lCurByte++) { if ((lCurByte & 1) != 0) { bits >>>= 4; } else { bits = encode.nextChar(); } lElem.append(sHexDigits[bits & 15]); } result.append(runtime.newString(lElem.toString())); } break; case 'H' : { if (occurrences == IS_STAR || occurrences > encode.remaining() * 2) { occurrences = encode.remaining() * 2; } int bits = 0; StringBuffer lElem = new StringBuffer(occurrences); for (int lCurByte = 0; lCurByte < occurrences; lCurByte++) { if ((lCurByte & 1) != 0) bits <<= 4; else bits = encode.nextChar(); lElem.append(sHexDigits[(bits >>> 4) & 15]); } result.append(runtime.newString(lElem.toString())); } break; case 'U' : { if (occurrences == IS_STAR || occurrences > encode.remaining()) { occurrences = encode.remaining(); } //get the correct substring String toUnpack = encode.nextSubstring(occurrences); String lUtf8 = null; try { lUtf8 = new String(toUnpack.getBytes("iso8859-1"), "UTF-8"); } catch (java.io.UnsupportedEncodingException e) { Asserts.notReached("can't convert from UTF8"); } char[] c = lUtf8.toCharArray(); for (int lCurCharIdx = 0; occurrences-- > 0 && lCurCharIdx < c.length; lCurCharIdx++) result.append(runtime.newFixnum(c[lCurCharIdx])); } break; case 'X': if (occurrences == IS_STAR) { occurrences = encode.getLength() - encode.remaining(); } try { encode.backup(occurrences); } catch (IllegalArgumentException e) { throw runtime.newArgumentError("in `unpack': X outside of string"); } break; case 'x': if (occurrences == IS_STAR) { occurrences = encode.remaining(); } try { encode.nextSubstring(occurrences); } catch (IllegalArgumentException e) { throw runtime.newArgumentError("in `unpack': x outside of string"); } break; } type = next; } return result; } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/Pack.java/buggy/src/org/jruby/util/Pack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
1076,
6167,
12,
780,
3749,
780,
16,
2398,
19817,
780,
27107,
13,
288,
3639,
19817,
3099,
273,
27107,
18,
588,
5576,
5621,
3639,
19817,
1076,
563,
273,
3099,
18,
2704,
1076,
5621,
3639,
14898,
682,
740,
273,
394,
14898,
682,
12,
2139,
780,
18,
24805,
10663,
3639,
14898,
682,
2017,
273,
394,
14898,
682,
12,
10787,
780,
1769,
3639,
1149,
618,
273,
740,
18,
4285,
2156,
5621,
368,
1412,
358,
506,
24195,
7734,
1323,
12,
5,
2139,
18,
291,
861,
1638,
10756,
288,
5411,
368,
25433,
1024,
618,
16,
740,
434,
783,
618,
16,
15698,
434,
618,
5411,
1149,
1024,
273,
740,
18,
4285,
2156,
5621,
13491,
368,
4804,
8527,
358,
2495,
1450,
6448,
2688,
740,
5411,
309,
261,
4285,
422,
4427,
747,
1024,
422,
15502,
13,
288,
7734,
309,
261,
50,
12992,
67,
17070,
18,
31806,
12,
723,
13,
422,
300,
21,
13,
288,
1171,
202,
12849,
3099,
18,
2704,
1379,
668,
2932,
4970,
397,
1024,
397,
1171,
3196,
3639,
2491,
2935,
1338,
1839,
1953,
315,
397,
423,
12992,
67,
17070,
1769,
7734,
289,
1171,
368,
1660,
8312,
316,
648,
9145,
18842,
764,
13040,
7734,
1024,
273,
740,
18,
4285,
2156,
5621,
5411,
289,
13491,
368,
9017,
4906,
15698,
434,
296,
723,
11,
732,
2545,
5411,
509,
15698,
273,
374,
31,
5411,
309,
261,
2139,
18,
291,
861,
1638,
10756,
288,
2398,
202,
26635,
12228,
273,
404,
31,
5411,
289,
469,
309,
261,
4285,
422,
5306,
13,
288,
2398,
202,
26635,
12228,
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,
19817,
1076,
6167,
12,
780,
3749,
780,
16,
2398,
19817,
780,
27107,
13,
288,
3639,
19817,
3099,
273,
27107,
18,
588,
5576,
5621,
3639,
19817,
1076,
563,
273,
3099,
18,
2704,
1076,
5621,
3639,
14898,
682,
740,
273,
394,
14898,
682,
12,
2139,
780,
18,
24805,
10663,
3639,
14898,
682,
2017,
273,
394,
14898,
682,
12,
10787,
780,
1769,
3639,
1149,
618,
273,
740,
18,
4285,
2156,
5621,
368,
1412,
358,
506,
24195,
7734,
1323,
12,
5,
2139,
18,
291,
861,
1638,
10756,
288,
5411,
368,
25433,
1024,
618,
16,
740,
434,
783,
618,
16,
15698,
434,
618,
5411,
1149,
1024,
273,
740,
18,
4285,
2156,
5621,
13491,
368,
4804,
8527,
358,
2495,
1450,
6448,
2688,
2
] |
logger.debug("*** SEARCH HANDLER IN REMOTE BODY"); | logger.debug("*** SEARCHING HANDLER IN REMOTE BODY"); | public static Handler searchExceptionHandler(NonFunctionalException ex, Object target) { // Try to get an handler from code level Handler handler = null; if ((handler = searchExceptionHandler(ex.getClass(), codeLevel, Handler.ID_Code)) != null) { return handler; } // Try to get a handler from object level (active object = body or proxy) if (target != null) { // target is local body (i.e. active object level) ? if (target instanceof ActiveBody) { if (logger.isDebugEnabled()) { logger.debug("*** SEARCH HANDLER IN LOCAL BODY"); } try { UniversalBody body = ((BodyProxy) ((org.objectweb.proactive.core.mop.StubObject) target).getProxy()).getBody(); HashMap map = ((UniversalBody) body).getHandlersLevel(); if ((handler = searchExceptionHandler(ex.getClass(), map, Handler.ID_Body)) != null) { return handler; } } catch (ProActiveException e) { if (logger.isDebugEnabled()) { logger.debug("*** ERROR : " + e.getMessage()); } } // target is remote body (i.e. active object level) ? } else if (target instanceof RemoteBodyAdapter) { if (logger.isDebugEnabled()) { logger.debug("*** SEARCH HANDLER IN REMOTE BODY"); } try { UniversalBody body = ((BodyProxy) ((org.objectweb.proactive.core.mop.StubObject) target).getProxy()).getBody(); HashMap map = ((UniversalBody) body).getRemoteAdapter() .getHandlersLevel(); if ((handler = searchExceptionHandler(ex.getClass(), map, Handler.ID_Body)) != null) { return handler; } } catch (ProActiveException e) { if (logger.isDebugEnabled()) { logger.debug("*** ERROR : " + e.getMessage()); } } // target is a proxy (i.e. a ref. to a body) ? } else if (target instanceof AbstractProxy) { if (logger.isDebugEnabled()) { logger.debug("*** SEARCH HANDLER IN PROXY"); } try { HashMap map = ((AbstractProxy) target).getHandlersLevel(); if ((handler = searchExceptionHandler(ex.getClass(), map, Handler.ID_Proxy)) != null) { return handler; } } catch (ProActiveException e) { if (logger.isDebugEnabled()) { logger.debug("*** ERROR : " + e.getMessage()); } } } } // Try to get an handler from VM level if ((handler = searchExceptionHandler(ex.getClass(), VMLevel, Handler.ID_VM)) != null) { return handler; } // At the end, get an handler from default level or return null return searchExceptionHandler(ex.getClass(), defaultLevel, Handler.ID_Default); } | 23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/2f1b7c86a3954051c326f351de2d6cf4d7c5f89b/ProActive.java/buggy/src/org/objectweb/proactive/ProActive.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
4663,
1623,
18894,
12,
3989,
2083,
287,
503,
431,
16,
3639,
1033,
1018,
13,
288,
3639,
368,
6161,
358,
336,
392,
1838,
628,
981,
1801,
3639,
4663,
1838,
273,
446,
31,
3639,
309,
14015,
4176,
273,
1623,
18894,
12,
338,
18,
588,
797,
9334,
981,
2355,
16,
13491,
4663,
18,
734,
67,
1085,
3719,
480,
446,
13,
288,
5411,
327,
1838,
31,
3639,
289,
3639,
368,
6161,
358,
336,
279,
1838,
628,
733,
1801,
261,
3535,
733,
273,
1417,
578,
2889,
13,
3639,
309,
261,
3299,
480,
446,
13,
288,
13491,
368,
1018,
353,
1191,
1417,
261,
77,
18,
73,
18,
2695,
733,
1801,
13,
692,
9506,
5411,
309,
261,
3299,
1276,
8857,
2250,
13,
288,
7734,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
10792,
1194,
18,
4148,
2932,
14465,
24053,
24166,
14668,
2120,
15234,
30580,
8863,
7734,
289,
7734,
775,
288,
6862,
202,
984,
14651,
2250,
1417,
273,
14015,
2250,
3886,
13,
14015,
3341,
18,
1612,
4875,
18,
685,
3535,
18,
3644,
18,
81,
556,
18,
11974,
921,
13,
1018,
2934,
588,
3886,
1435,
2934,
588,
2250,
5621,
10792,
4317,
852,
273,
14015,
984,
14651,
2250,
13,
1417,
2934,
588,
6919,
2355,
5621,
10792,
309,
14015,
4176,
273,
1623,
18894,
12,
338,
18,
588,
797,
9334,
852,
16,
4766,
565,
4663,
18,
734,
67,
2250,
3719,
480,
446,
13,
288,
13491,
327,
1838,
31,
10792,
289,
7734,
289,
1044,
261,
626,
3896,
503,
425,
13,
288,
10792,
309,
261,
4901,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
4663,
1623,
18894,
12,
3989,
2083,
287,
503,
431,
16,
3639,
1033,
1018,
13,
288,
3639,
368,
6161,
358,
336,
392,
1838,
628,
981,
1801,
3639,
4663,
1838,
273,
446,
31,
3639,
309,
14015,
4176,
273,
1623,
18894,
12,
338,
18,
588,
797,
9334,
981,
2355,
16,
13491,
4663,
18,
734,
67,
1085,
3719,
480,
446,
13,
288,
5411,
327,
1838,
31,
3639,
289,
3639,
368,
6161,
358,
336,
279,
1838,
628,
733,
1801,
261,
3535,
733,
273,
1417,
578,
2889,
13,
3639,
309,
261,
3299,
480,
446,
13,
288,
13491,
368,
1018,
353,
1191,
1417,
261,
77,
18,
73,
18,
2695,
733,
1801,
13,
692,
9506,
5411,
309,
261,
3299,
1276,
8857,
2250,
13,
288,
2
] |
visualizeClusterer(); } }); m_StorePredictionsBut.addActionListener(new ActionListener() { | } }); /* m_StorePredictionsBut.addActionListener(new ActionListener() { | public ClustererPanel() { // Connect / configure the components m_OutText.setEditable(false); m_OutText.setFont(new Font("Dialoginput", Font.PLAIN, 10)); m_OutText.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); m_OutText.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != InputEvent.BUTTON1_MASK) { m_OutText.selectAll(); } } }); m_History.setBorder(BorderFactory.createTitledBorder("Result list")); m_ClustererEditor.setClassType(Clusterer.class); m_ClustererEditor.setValue(new weka.clusterers.EM()); m_ClustererEditor.addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { repaint(); } }); m_VisualizeBut.setToolTipText("Visualize the current classifier"); m_TrainBut.setToolTipText("Cluster the same set that the clusterer" + " is trained on"); m_PercentBut.setToolTipText("Train on a percentage of the data and" + " cluster the remainder"); m_TestSplitBut.setToolTipText("Cluster a user-specified dataset"); m_StartBut.setToolTipText("Starts the clustering"); m_StopBut.setToolTipText("Stops a running clusterer"); m_StorePredictionsBut. setToolTipText("Store predictions in the result list for later " +"visualization"); m_TrainBut.setSelected(true); m_StorePredictionsBut.setSelected(true); updateRadioLinks(); ButtonGroup bg = new ButtonGroup(); bg.add(m_TrainBut); bg.add(m_PercentBut); bg.add(m_TestSplitBut); m_TrainBut.addActionListener(m_RadioListener); m_PercentBut.addActionListener(m_RadioListener); m_TestSplitBut.addActionListener(m_RadioListener); m_SetTestBut.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { setTestSet(); } }); m_StartBut.setEnabled(false); m_StopBut.setEnabled(false); m_VisualizeBut.setEnabled(false); m_StartBut.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { startClusterer(); } }); m_StopBut.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { stopClusterer(); } }); m_VisualizeBut.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (!m_StorePredictionsBut.isSelected()) { m_VisualizeBut.setEnabled(false); } visualizeClusterer(); } }); m_StorePredictionsBut.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (m_StorePredictionsBut.isSelected()) { if (m_CurrentVis != null) { m_VisualizeBut.setEnabled(true); } } } }); // Layout the GUI JPanel p1 = new JPanel(); p1.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createTitledBorder("Clusterer"), BorderFactory.createEmptyBorder(0, 5, 5, 5) )); p1.setLayout(new BorderLayout()); p1.add(m_CLPanel, BorderLayout.NORTH); JPanel p2 = new JPanel(); GridBagLayout gbL = new GridBagLayout(); p2.setLayout(gbL); p2.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createTitledBorder("Cluster mode"), BorderFactory.createEmptyBorder(0, 5, 5, 5) )); GridBagConstraints gbC = new GridBagConstraints(); gbC.anchor = GridBagConstraints.WEST; gbC.gridy = 0; gbC.gridx = 0; gbL.setConstraints(m_TrainBut, gbC); p2.add(m_TrainBut); gbC = new GridBagConstraints(); gbC.anchor = GridBagConstraints.WEST; gbC.gridy = 1; gbC.gridx = 0; gbL.setConstraints(m_TestSplitBut, gbC); p2.add(m_TestSplitBut); gbC = new GridBagConstraints(); gbC.anchor = GridBagConstraints.EAST; gbC.fill = GridBagConstraints.HORIZONTAL; gbC.gridy = 1; gbC.gridx = 1; gbC.gridwidth = 2; gbC.insets = new Insets(2, 10, 2, 0); gbL.setConstraints(m_SetTestBut, gbC); p2.add(m_SetTestBut); gbC = new GridBagConstraints(); gbC.anchor = GridBagConstraints.WEST; gbC.gridy = 2; gbC.gridx = 0; gbL.setConstraints(m_PercentBut, gbC); p2.add(m_PercentBut); gbC = new GridBagConstraints(); gbC.anchor = GridBagConstraints.EAST; gbC.fill = GridBagConstraints.HORIZONTAL; gbC.gridy = 2; gbC.gridx = 1; gbC.insets = new Insets(2, 10, 2, 10); gbL.setConstraints(m_PercentLab, gbC); p2.add(m_PercentLab); gbC = new GridBagConstraints(); gbC.anchor = GridBagConstraints.EAST; gbC.fill = GridBagConstraints.HORIZONTAL; gbC.gridy = 2; gbC.gridx = 2; gbC.weightx = 100; gbC.ipadx = 20; gbL.setConstraints(m_PercentText, gbC); p2.add(m_PercentText); gbC = new GridBagConstraints(); gbC.anchor = GridBagConstraints.WEST; gbC.gridy = 3; gbC.gridx = 0; gbC.gridwidth = 2; gbL.setConstraints(m_StorePredictionsBut, gbC); p2.add(m_StorePredictionsBut); JPanel buttons = new JPanel(); buttons.setLayout(new GridLayout(2,2)); JPanel ssButs = new JPanel(); ssButs.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); ssButs.setLayout(new GridLayout(1, 2, 5, 5)); ssButs.add(m_StartBut); ssButs.add(m_StopBut); buttons.add(ssButs); JPanel vPl = new JPanel(); vPl.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); vPl.setLayout(new GridLayout(1,1,5,5)); vPl.add(m_VisualizeBut); buttons.add(vPl); JPanel p3 = new JPanel(); p3.setBorder(BorderFactory.createTitledBorder("Clusterer output")); p3.setLayout(new BorderLayout()); final JScrollPane js = new JScrollPane(m_OutText); p3.add(js, BorderLayout.CENTER); js.getViewport().addChangeListener(new ChangeListener() { private int lastHeight; public void stateChanged(ChangeEvent e) { JViewport vp = (JViewport)e.getSource(); int h = vp.getViewSize().height; if (h != lastHeight) { // i.e. an addition not just a user scrolling lastHeight = h; int x = h - vp.getExtentSize().height; vp.setViewPosition(new Point(0, x)); } } }); JPanel mondo = new JPanel(); gbL = new GridBagLayout(); mondo.setLayout(gbL); gbC = new GridBagConstraints(); // gbC.anchor = GridBagConstraints.WEST; gbC.fill = GridBagConstraints.HORIZONTAL; gbC.gridy = 0; gbC.gridx = 0; gbL.setConstraints(p2, gbC); mondo.add(p2); gbC = new GridBagConstraints(); gbC.anchor = GridBagConstraints.NORTH; gbC.fill = GridBagConstraints.HORIZONTAL; gbC.gridy = 1; gbC.gridx = 0; gbL.setConstraints(buttons, gbC); mondo.add(buttons); gbC = new GridBagConstraints(); //gbC.anchor = GridBagConstraints.NORTH; gbC.fill = GridBagConstraints.BOTH; gbC.gridy = 2; gbC.gridx = 0; gbC.weightx = 0; gbL.setConstraints(m_History, gbC); mondo.add(m_History); gbC = new GridBagConstraints(); gbC.fill = GridBagConstraints.BOTH; gbC.gridy = 0; gbC.gridx = 1; gbC.gridheight = 3; gbC.weightx = 100; gbC.weighty = 100; gbL.setConstraints(p3, gbC); mondo.add(p3); setLayout(new BorderLayout()); add(p1, BorderLayout.NORTH); add(mondo, BorderLayout.CENTER); } | 48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/be0163d0e1fe433ab09a1fd088ff4ab74e8d1a2d/ClustererPanel.java/clean/weka/gui/explorer/ClustererPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5584,
264,
5537,
1435,
288,
565,
368,
8289,
342,
5068,
326,
4085,
565,
312,
67,
1182,
1528,
18,
542,
15470,
12,
5743,
1769,
565,
312,
67,
1182,
1528,
18,
542,
5711,
12,
2704,
10063,
2932,
6353,
2630,
3113,
10063,
18,
26549,
16,
1728,
10019,
565,
312,
67,
1182,
1528,
18,
542,
8107,
12,
8107,
1733,
18,
2640,
1921,
8107,
12,
25,
16,
1381,
16,
1381,
16,
1381,
10019,
565,
312,
67,
1182,
1528,
18,
1289,
9186,
2223,
12,
2704,
17013,
4216,
1435,
288,
1377,
1071,
918,
7644,
27633,
12,
9186,
1133,
425,
13,
288,
202,
430,
14015,
73,
18,
588,
11948,
1435,
473,
2741,
1133,
18,
20068,
21,
67,
11704,
13,
202,
565,
480,
2741,
1133,
18,
20068,
21,
67,
11704,
13,
288,
202,
225,
312,
67,
1182,
1528,
18,
4025,
1595,
5621,
202,
97,
1377,
289,
565,
15549,
565,
312,
67,
5623,
18,
542,
8107,
12,
8107,
1733,
18,
2640,
56,
305,
1259,
8107,
2932,
1253,
666,
7923,
1769,
565,
312,
67,
3629,
264,
6946,
18,
542,
18328,
12,
3629,
264,
18,
1106,
1769,
565,
312,
67,
3629,
264,
6946,
18,
542,
620,
12,
2704,
732,
7282,
18,
7967,
414,
18,
3375,
10663,
565,
312,
67,
3629,
264,
6946,
18,
1289,
1396,
15744,
12,
2704,
4276,
15744,
1435,
288,
1377,
1071,
918,
1272,
3043,
12,
1396,
20930,
425,
13,
288,
202,
14462,
1598,
5621,
1377,
289,
565,
15549,
565,
312,
67,
25780,
554,
31167,
18,
542,
29250,
1528,
2932,
25780,
554,
326,
783,
14622,
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,
5584,
264,
5537,
1435,
288,
565,
368,
8289,
342,
5068,
326,
4085,
565,
312,
67,
1182,
1528,
18,
542,
15470,
12,
5743,
1769,
565,
312,
67,
1182,
1528,
18,
542,
5711,
12,
2704,
10063,
2932,
6353,
2630,
3113,
10063,
18,
26549,
16,
1728,
10019,
565,
312,
67,
1182,
1528,
18,
542,
8107,
12,
8107,
1733,
18,
2640,
1921,
8107,
12,
25,
16,
1381,
16,
1381,
16,
1381,
10019,
565,
312,
67,
1182,
1528,
18,
1289,
9186,
2223,
12,
2704,
17013,
4216,
1435,
288,
1377,
1071,
918,
7644,
27633,
12,
9186,
1133,
425,
13,
288,
202,
430,
14015,
73,
18,
588,
11948,
1435,
473,
2741,
1133,
18,
20068,
21,
67,
11704,
13,
202,
565,
480,
2741,
1133,
18,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.