rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
---|---|---|---|---|---|---|
FieldMetadata fieldMetadata;
|
MemberMetadata memberMetadata;
|
protected void evaluateVisibleWhenConditions() { Map.Entry entry; FieldMetadata fieldMetadata; for (final Iterator i = formMetadata.getFieldMetadatas().entrySet() .iterator(); i.hasNext();) { entry = (Map.Entry) i.next(); fieldMetadata = (FieldMetadata) entry.getValue(); if (fieldMetadata.getVisibleCondition() == null) { continue; } visibleMap.put(entry.getKey(), isSatisfied(fieldMetadata .getVisibleCondition())); if (log.isDebugEnabled()) { log.debug("VisibleWhen Condition for field '" + entry.getKey() + "' evaluated as '" + visibleMap.get(entry.getKey()) + "'"); } } }
|
4173 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4173/a1be1d3aea5baf61c308f06d11c6ea26725dc4d9/DefaultFormController.java/clean/genesis/modules/client/src/net/java/dev/genesis/ui/controller/DefaultFormController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
5956,
6207,
9434,
8545,
1435,
288,
1377,
1635,
18,
1622,
1241,
31,
1377,
8596,
2277,
3140,
2277,
31,
1377,
364,
261,
6385,
4498,
277,
273,
646,
2277,
18,
588,
974,
49,
24484,
7675,
4099,
694,
1435,
5411,
263,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
540,
1241,
273,
261,
863,
18,
1622,
13,
277,
18,
4285,
5621,
540,
652,
2277,
273,
261,
974,
2277,
13,
1241,
18,
24805,
5621,
540,
309,
261,
1518,
2277,
18,
588,
6207,
3418,
1435,
422,
446,
13,
288,
5411,
1324,
31,
540,
289,
540,
6021,
863,
18,
458,
12,
4099,
18,
588,
653,
9334,
11604,
270,
21501,
12,
1518,
2277,
9079,
263,
588,
6207,
3418,
1435,
10019,
540,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
5411,
613,
18,
4148,
2932,
6207,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
5956,
6207,
9434,
8545,
1435,
288,
1377,
1635,
18,
1622,
1241,
31,
1377,
8596,
2277,
3140,
2277,
31,
1377,
364,
261,
6385,
4498,
277,
273,
646,
2277,
18,
588,
974,
49,
24484,
7675,
4099,
694,
1435,
5411,
263,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
540,
1241,
273,
261,
863,
18,
1622,
13,
277,
18,
4285,
5621,
540,
652,
2277,
273,
261,
974,
2277,
13,
1241,
18,
24805,
5621,
540,
309,
261,
1518,
2277,
18,
588,
6207,
3418,
1435,
422,
446,
13,
288,
5411,
1324,
31,
540,
289,
540,
6021,
863,
18,
458,
12,
4099,
18,
588,
653,
9334,
11604,
270,
21501,
12,
1518,
2277,
9079,
263,
588,
6207,
3418,
1435,
10019,
540,
309,
2
] |
return new SQLException("This method is not yet implemented.");
|
return new PSQLException("postgresql.unimplemented");
|
public static SQLException notImplemented() { //return new PSQLException("postgresql.unimplemented"); return new SQLException("This method is not yet implemented."); }
|
11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/20f0cfc3228abf0978360de30f91b2a91133f1b3/Driver.java/buggy/src/interfaces/jdbc/postgresql/Driver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6483,
486,
8644,
1435,
565,
288,
202,
759,
2463,
394,
453,
23116,
2932,
2767,
24330,
18,
318,
21099,
8863,
202,
2463,
394,
6483,
2932,
2503,
707,
353,
486,
4671,
8249,
1199,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6483,
486,
8644,
1435,
565,
288,
202,
759,
2463,
394,
453,
23116,
2932,
2767,
24330,
18,
318,
21099,
8863,
202,
2463,
394,
6483,
2932,
2503,
707,
353,
486,
4671,
8249,
1199,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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
] |
||
collection.add((String)tokens.nextToken());
|
collection.add(tokens.nextToken().trim());
|
public static Collection<String> stringToCollection(String string) { Collection<String> collection = new ArrayList<String>(); if (string != null) { StringTokenizer tokens = new StringTokenizer(string, ","); while (tokens.hasMoreTokens()) { collection.add((String)tokens.nextToken()); } } return collection; }
|
6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/804c3d9decd6f9c618b54a8436359460eec780b2/StringUtils.java/clean/src/java/org/jivesoftware/util/StringUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2200,
32,
780,
34,
14134,
2532,
12,
780,
533,
13,
288,
3639,
2200,
32,
780,
34,
1849,
273,
394,
2407,
32,
780,
34,
5621,
3639,
309,
261,
1080,
480,
446,
13,
288,
5411,
16370,
2430,
273,
394,
16370,
12,
1080,
16,
5753,
1769,
5411,
1323,
261,
7860,
18,
5332,
7417,
5157,
10756,
288,
7734,
1849,
18,
1289,
12,
7860,
18,
4285,
1345,
7675,
5290,
10663,
5411,
289,
3639,
289,
3639,
327,
1849,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
2200,
32,
780,
34,
14134,
2532,
12,
780,
533,
13,
288,
3639,
2200,
32,
780,
34,
1849,
273,
394,
2407,
32,
780,
34,
5621,
3639,
309,
261,
1080,
480,
446,
13,
288,
5411,
16370,
2430,
273,
394,
16370,
12,
1080,
16,
5753,
1769,
5411,
1323,
261,
7860,
18,
5332,
7417,
5157,
10756,
288,
7734,
1849,
18,
1289,
12,
7860,
18,
4285,
1345,
7675,
5290,
10663,
5411,
289,
3639,
289,
3639,
327,
1849,
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
] |
if (_outputType == HTML)
|
_depth++; _elementName = elementName; _attributes.clear(); _startTagOpen = true; _qnameStack.push(elementName);
|
public void startElement(String elementName) throws TransletException { try { // Do not output element tags if output mode is 'text' if (_outputType == TEXT) return; // Close any open start tag if (_startTagOpen) closeStartTag(); if (_cdataTagOpen) closeCDATA(); // If we don't know the output type yet we need to examine // the very first element to see if it is "html". if (_outputType == UNKNOWN) { if (elementName.toLowerCase().equals("html")) setTypeInternal(HTML); else setTypeInternal(XML); } // Handle document type declaration (for first element only) if (_lexHandler != null) { if (((_outputType == XML) && (_doctypeSystem != null)) || ((_doctypeSystem != null) || (_doctypePublic != null))) _lexHandler.startDTD(elementName, _doctypePublic,_doctypeSystem); _lexHandler = null; } _depth++; _elementName = elementName; _attributes.clear(); _startTagOpen = true; _qnameStack.push(elementName); if (_cdata != null) { if (_cdata.get(elementName) != null) { _cdataStack.push(new Integer(_depth)); } } // Insert <META> tag directly after <HEAD> element in HTML doc if (_outputType == HTML) if (elementName.toLowerCase().equals("head")) _headTagOpen = true; } catch (SAXException e) { throw new TransletException(e); } }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/218fffef1d42c9f6200540932aecffa365538529/TextOutput.java/buggy/src/org/apache/xalan/xsltc/runtime/TextOutput.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
780,
14453,
13,
202,
15069,
2604,
1810,
503,
288,
202,
698,
288,
202,
565,
368,
2256,
486,
876,
930,
2342,
309,
876,
1965,
353,
296,
955,
11,
202,
565,
309,
261,
67,
2844,
559,
422,
9204,
13,
327,
31,
3196,
565,
368,
3527,
1281,
1696,
787,
1047,
202,
565,
309,
261,
67,
1937,
1805,
3678,
13,
1746,
30512,
5621,
202,
565,
309,
261,
67,
71,
892,
1805,
3678,
13,
1746,
18375,
5621,
202,
565,
368,
971,
732,
2727,
1404,
5055,
326,
876,
618,
4671,
732,
1608,
358,
19707,
558,
202,
565,
368,
326,
8572,
1122,
930,
358,
2621,
309,
518,
353,
315,
2620,
9654,
202,
565,
309,
261,
67,
2844,
559,
422,
13598,
13,
288,
202,
202,
430,
261,
2956,
461,
18,
869,
5630,
7675,
14963,
2932,
2620,
6,
3719,
1082,
565,
8811,
3061,
12,
4870,
1769,
202,
202,
12107,
1082,
565,
8811,
3061,
12,
4201,
1769,
202,
565,
289,
202,
565,
368,
5004,
1668,
618,
8266,
261,
1884,
1122,
930,
1338,
13,
202,
565,
309,
261,
67,
4149,
1503,
480,
446,
13,
288,
202,
202,
430,
261,
12443,
67,
2844,
559,
422,
3167,
13,
597,
261,
67,
2896,
12387,
3163,
480,
446,
3719,
747,
1082,
565,
14015,
67,
2896,
12387,
3163,
480,
446,
13,
747,
261,
67,
2896,
12387,
4782,
480,
446,
20349,
1082,
565,
389,
4149,
1503,
18,
1937,
25728,
12,
2956,
461,
16,
25083,
389,
2896,
12387,
4782,
16,
67,
2896,
12387,
3163,
1769,
202,
202,
67,
4149,
1503,
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,
13591,
12,
780,
14453,
13,
202,
15069,
2604,
1810,
503,
288,
202,
698,
288,
202,
565,
368,
2256,
486,
876,
930,
2342,
309,
876,
1965,
353,
296,
955,
11,
202,
565,
309,
261,
67,
2844,
559,
422,
9204,
13,
327,
31,
3196,
565,
368,
3527,
1281,
1696,
787,
1047,
202,
565,
309,
261,
67,
1937,
1805,
3678,
13,
1746,
30512,
5621,
202,
565,
309,
261,
67,
71,
892,
1805,
3678,
13,
1746,
18375,
5621,
202,
565,
368,
971,
732,
2727,
1404,
5055,
326,
876,
618,
4671,
732,
1608,
358,
19707,
558,
202,
565,
368,
326,
8572,
1122,
930,
358,
2621,
309,
518,
353,
315,
2620,
9654,
202,
565,
309,
261,
67,
2844,
559,
422,
13598,
13,
2
] |
for (int j=0;j<estimateLength;j++)
|
for (int j=0;j<estimateWidth;j++)
|
public double[][] getRootPriors(){ double[][] rootPriors; if (savedRootEstimates == null) return null; else { double total = 0; int estimateLength = savedRootEstimates.length; // what are these really? int estimateWidth = savedRootEstimates[0].length; rootPriors = new double[estimateLength][estimateWidth]; for (int i=0;i<estimateLength;i++) for (int j=0;j<estimateWidth;j++) total += savedRootEstimates[i][j]; for (int i=0;i<estimateLength;i++) for (int j=0;j<estimateLength;j++) rootPriors[i][j] = savedRootEstimates[i][j]/total; } return rootPriors; }
|
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/aacc13bbf8d15e888b91dfd878ab9207a7b2a8d6/PagelMatrixModel.java/buggy/trunk/Mesquite Project/Source/mesquite/correl/lib/PagelMatrixModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
63,
6362,
65,
7656,
52,
566,
1383,
1435,
95,
377,
202,
202,
9056,
63,
6362,
65,
1365,
52,
566,
1383,
31,
377,
202,
202,
430,
261,
14077,
2375,
9122,
29678,
422,
446,
13,
377,
1082,
202,
2463,
446,
31,
377,
202,
202,
12107,
288,
377,
1082,
202,
9056,
2078,
273,
374,
31,
377,
1082,
202,
474,
11108,
1782,
273,
5198,
2375,
9122,
29678,
18,
2469,
31,
225,
368,
4121,
854,
4259,
8654,
35,
377,
1082,
202,
474,
11108,
2384,
273,
5198,
2375,
9122,
29678,
63,
20,
8009,
2469,
31,
377,
1082,
202,
3085,
52,
566,
1383,
273,
394,
1645,
63,
23562,
1782,
6362,
23562,
2384,
15533,
377,
1082,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
23562,
1782,
31,
77,
27245,
377,
9506,
202,
1884,
261,
474,
525,
33,
20,
31,
78,
32,
23562,
2384,
31,
78,
27245,
377,
6862,
202,
4963,
1011,
5198,
2375,
9122,
29678,
63,
77,
6362,
78,
15533,
377,
1082,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
23562,
1782,
31,
77,
27245,
377,
9506,
202,
1884,
261,
474,
525,
33,
20,
31,
78,
32,
23562,
2384,
31,
78,
27245,
377,
6862,
202,
3085,
52,
566,
1383,
63,
77,
6362,
78,
65,
273,
5198,
2375,
9122,
29678,
63,
77,
6362,
78,
18537,
4963,
31,
377,
202,
202,
97,
377,
202,
202,
2463,
1365,
52,
566,
1383,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1645,
63,
6362,
65,
7656,
52,
566,
1383,
1435,
95,
377,
202,
202,
9056,
63,
6362,
65,
1365,
52,
566,
1383,
31,
377,
202,
202,
430,
261,
14077,
2375,
9122,
29678,
422,
446,
13,
377,
1082,
202,
2463,
446,
31,
377,
202,
202,
12107,
288,
377,
1082,
202,
9056,
2078,
273,
374,
31,
377,
1082,
202,
474,
11108,
1782,
273,
5198,
2375,
9122,
29678,
18,
2469,
31,
225,
368,
4121,
854,
4259,
8654,
35,
377,
1082,
202,
474,
11108,
2384,
273,
5198,
2375,
9122,
29678,
63,
20,
8009,
2469,
31,
377,
1082,
202,
3085,
52,
566,
1383,
273,
394,
1645,
63,
23562,
1782,
6362,
23562,
2384,
15533,
377,
1082,
202,
1884,
261,
474,
277,
33,
20,
31,
2
] |
getMessageFromBundle(Wizard.WIZARD_TYPE_HIERARCHICAL)));
|
getMessageFromBundle(Wizard.WIZARD_TYPE_HIERARCHICAL)+ getMessageFromBundle(Wizard.WIZARD_TYPE_HIERARCHICAL+"_additional")));
|
public List getWizardTypes() { if (wizardTypes == null) { wizardTypes = new ArrayList(); wizardTypes.add(createSelect(Wizard.WIZARD_TYPE_SEQUENTIAL, getMessageFromBundle(Wizard.WIZARD_TYPE_SEQUENTIAL))); wizardTypes.add(createSelect(Wizard.WIZARD_TYPE_HIERARCHICAL, getMessageFromBundle(Wizard.WIZARD_TYPE_HIERARCHICAL))); } return wizardTypes; }
|
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/8f3aa9226a0166755ca47cc62929dfb42a994087/WizardTool.java/buggy/wizard/tool/src/java/org/theospi/portfolio/wizard/tool/WizardTool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
987,
13876,
13412,
2016,
1435,
288,
1377,
309,
261,
31837,
2016,
422,
446,
13,
288,
540,
24204,
2016,
273,
394,
2407,
5621,
540,
24204,
2016,
18,
1289,
12,
2640,
3391,
12,
27130,
18,
59,
6867,
8085,
67,
2399,
67,
1090,
3500,
2222,
6365,
16,
9079,
2381,
1265,
3405,
12,
27130,
18,
59,
6867,
8085,
67,
2399,
67,
1090,
3500,
2222,
6365,
3719,
1769,
540,
24204,
2016,
18,
1289,
12,
2640,
3391,
12,
27130,
18,
59,
6867,
8085,
67,
2399,
67,
29994,
654,
10586,
10109,
16,
9079,
2381,
1265,
3405,
12,
27130,
18,
59,
6867,
8085,
67,
2399,
67,
29994,
654,
10586,
10109,
27921,
2381,
1265,
3405,
12,
27130,
18,
59,
6867,
8085,
67,
2399,
67,
29994,
654,
10586,
10109,
9078,
67,
13996,
6,
3719,
1769,
1377,
289,
1377,
327,
24204,
2016,
31,
282,
289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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
987,
13876,
13412,
2016,
1435,
288,
1377,
309,
261,
31837,
2016,
422,
446,
13,
288,
540,
24204,
2016,
273,
394,
2407,
5621,
540,
24204,
2016,
18,
1289,
12,
2640,
3391,
12,
27130,
18,
59,
6867,
8085,
67,
2399,
67,
1090,
3500,
2222,
6365,
16,
9079,
2381,
1265,
3405,
12,
27130,
18,
59,
6867,
8085,
67,
2399,
67,
1090,
3500,
2222,
6365,
3719,
1769,
540,
24204,
2016,
18,
1289,
12,
2640,
3391,
12,
27130,
18,
59,
6867,
8085,
67,
2399,
67,
29994,
654,
10586,
10109,
16,
9079,
2381,
1265,
3405,
12,
27130,
18,
59,
6867,
8085,
67,
2399,
67,
29994,
654,
10586,
10109,
27921,
2381,
1265,
3405,
12,
27130,
18,
59,
6867,
8085,
67,
2399,
67,
29994,
654,
2
] |
final int fileLength; try { fileLength = Integer.parseInt(fileLengthString); responseProcessor.processUpdatedResponse(relativeLocalDirectory, repositoryFilePath, entryLine, mode, fileLength, clientEnvironment, responseServices, connectionStreams); } catch (NumberFormatException ex) { } return null; } else if (responseName.equalsIgnoreCase("Merged")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryFilePath = StreamUtilities.readLine(reader); final String entryLine = StreamUtilities.readLine(reader); final String mode = StreamUtilities.readLine(reader); final String fileLengthString = StreamUtilities.readLine(reader);
|
final int fileLength; try { fileLength = Integer.parseInt(fileLengthString); responseProcessor.processUpdatedResponse(relativeLocalDirectory, repositoryFilePath, entryLine, mode, fileLength, clientEnvironment, responseServices, connectionStreams); } catch (NumberFormatException ex) { } return null; } else if (responseName.equalsIgnoreCase("Merged")) { final String relativeLocalDirectory = myStreamUtilities.readLine(loggedInputStream); final String repositoryFilePath = myStreamUtilities.readLine(loggedInputStream); final String entryLine = myStreamUtilities.readLine(loggedInputStream); final String mode = myStreamUtilities.readLine(loggedInputStream); final String fileLengthString = myStreamUtilities.readLine(loggedInputStream);
|
public Boolean processResponse(String responseName, IConnectionStreams connectionStreams, IResponseServices responseServices, IClientEnvironment clientEnvironment) throws IOException { if (responseName.equalsIgnoreCase("E")) { final byte[] line = StreamUtilities.readLineBytes(connectionStreams.getLoggedReader(), false); responseProcessor.processErrorMessageResponse(prepareMessageAccordingToScr39148(line), responseServices); return null; } else if (responseName.equalsIgnoreCase("M")) { final Reader reader = connectionStreams.getLoggedReader(); final byte[] line = StreamUtilities.readLineBytes(reader, false); responseProcessor.processMessageResponse(prepareMessageAccordingToScr39148(line), responseServices); return null; } else if (responseName.equalsIgnoreCase("MBinary")) { final Reader reader = connectionStreams.getLoggedReader(); final String fileLengthString = StreamUtilities.readLine(reader); try { int fileLength = Integer.parseInt(fileLengthString); responseProcessor.processBinaryMessageResponse(fileLength, readFromStream(connectionStreams, fileLength), responseServices); } catch (NumberFormatException e) { //ignore } return null; } else if (responseName.equalsIgnoreCase("MT")) { final Reader reader = connectionStreams.getLoggedReader(); final byte[] text = StreamUtilities.readLineBytes(reader, false); responseProcessor.processMessageTaggedResponse(text, responseServices); return null; } else if (responseName.equalsIgnoreCase("Updated")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryFilePath = StreamUtilities.readLine(reader); final String entryLine = StreamUtilities.readLine(reader); final String mode = StreamUtilities.readLine(reader); final String fileLengthString = StreamUtilities.readLine(reader); final int fileLength; try { fileLength = Integer.parseInt(fileLengthString); responseProcessor.processUpdatedResponse(relativeLocalDirectory, repositoryFilePath, entryLine, mode, fileLength, clientEnvironment, responseServices, connectionStreams); } catch (NumberFormatException ex) { // ignore } return null; } else if (responseName.equalsIgnoreCase("Merged")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryFilePath = StreamUtilities.readLine(reader); final String entryLine = StreamUtilities.readLine(reader); final String mode = StreamUtilities.readLine(reader); final String fileLengthString = StreamUtilities.readLine(reader); final int fileLength; try { fileLength = Integer.parseInt(fileLengthString); responseProcessor.processMergedResponse(relativeLocalDirectory, repositoryFilePath, entryLine, mode, fileLength, clientEnvironment, responseServices, connectionStreams); } catch (NumberFormatException ex) { // ignore } return null; } else if (responseName.equalsIgnoreCase("Checked-in")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryFilePath = StreamUtilities.readLine(reader); final String entryLine = StreamUtilities.readLine(reader); responseProcessor.processCheckedInResponse(relativeLocalDirectory, repositoryFilePath, entryLine, responseServices, clientEnvironment); return null; } else if (responseName.equalsIgnoreCase("New-entry")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryFilePath = StreamUtilities.readLine(reader); final String entryLine = StreamUtilities.readLine(reader); responseProcessor.processNewEntryResponse(relativeLocalDirectory, repositoryFilePath, responseServices, entryLine, clientEnvironment); return null; } else if (responseName.equalsIgnoreCase("Set-static-directory")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryFilePath = StreamUtilities.readLine(reader); responseProcessor.processSetStaticDirectoryResponse(relativeLocalDirectory, repositoryFilePath, responseServices, clientEnvironment); return null; } else if (responseName.equalsIgnoreCase("Clear-static-directory")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryDirectoryPath = StreamUtilities.readLine(reader); responseProcessor.processClearStaticDirectoryResponse(relativeLocalDirectory, repositoryDirectoryPath, responseServices, clientEnvironment); return null; } else if (responseName.equalsIgnoreCase("Set-sticky")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryFilePath = StreamUtilities.readLine(reader); final String tag = StreamUtilities.readLine(reader); responseProcessor.processSetStickyResponse(relativeLocalDirectory, repositoryFilePath, tag, clientEnvironment); return null; } else if (responseName.equalsIgnoreCase("Clear-sticky")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryFilePath = StreamUtilities.readLine(reader); responseProcessor.processClearStickyResponse(relativeLocalDirectory, repositoryFilePath, clientEnvironment); return null; } else if (responseName.equalsIgnoreCase("Notified")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryFilePath = StreamUtilities.readLine(reader); responseProcessor.processNotifiedResponse(relativeLocalDirectory, repositoryFilePath, clientEnvironment); return null; } else if (responseName.equalsIgnoreCase("Removed")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryFileName = StreamUtilities.readLine(reader); responseProcessor.processRemovedResponse(relativeLocalDirectory, repositoryFileName, responseServices, clientEnvironment); return null; } else if (responseName.equalsIgnoreCase("Remove-entry")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryFilePath = StreamUtilities.readLine(reader); responseProcessor.processRemoveEntryResponse(relativeLocalDirectory, repositoryFilePath, responseServices, clientEnvironment); return null; } else if (responseName.equalsIgnoreCase("Copy-file")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryFilePath = StreamUtilities.readLine(reader); final String newName = StreamUtilities.readLine(reader); responseProcessor.processCopyFileResponse(relativeLocalDirectory, repositoryFilePath, newName, clientEnvironment); return null; } else if (responseName.equalsIgnoreCase("Mod-time")) { final Reader reader = connectionStreams.getLoggedReader(); final String dateString = StreamUtilities.readLine(reader); try { final Date modifiedDate = ResponseUtils.parseDateString(dateString); responseProcessor.processModTimeResponse(modifiedDate, responseServices); } catch (ParseException ex) { BugLog.getInstance().showException(ex); } return null; } else if (responseName.equalsIgnoreCase("Mode")) { final Reader reader = connectionStreams.getLoggedReader(); final String mode = StreamUtilities.readLine(reader); responseProcessor.processModeResponse(mode, responseServices); return null; } else if (responseName.equalsIgnoreCase("Template")) { final Reader reader = connectionStreams.getLoggedReader(); final String relativeLocalDirectory = StreamUtilities.readLine(reader); final String repositoryFilePath = StreamUtilities.readLine(reader); final String lengthString = StreamUtilities.readLine(reader); final int length; try { // the following line can be sent by the server, when the template file is not available on the server // "E cvs server: Couldn't open rcsinfo template file /cvsroot/geotools/CVSROOT/gtTemplate: No such file or directory" length = Integer.parseInt(lengthString); responseProcessor.processTemplateResponse(relativeLocalDirectory, repositoryFilePath, length, clientEnvironment, connectionStreams); } catch (NumberFormatException ex) { // ignore } return null; } else if (responseName.equalsIgnoreCase("Module-expansion")) { final String localPath = StreamUtilities.readLine(connectionStreams.getLoggedReader()); responseProcessor.processModuleExpansionResponse(localPath, responseServices); return null; } else if (responseName.equalsIgnoreCase("ok")) { responseProcessor.processOkResponse(responseServices); return Boolean.TRUE; } else if (responseName.equalsIgnoreCase("error")) { final byte[] message = StreamUtilities.readLineBytes(connectionStreams.getLoggedReader(), false); responseProcessor.processErrorResponse(message, responseServices); return Boolean.FALSE; } if (responseName.equalsIgnoreCase("Valid-requests")) { final String validRequests = StreamUtilities.readLine(connectionStreams.getLoggedReader()); responseProcessor.processValidRequestsResponse(validRequests, responseServices); return null; } else { throw new IOException("Unhandled response: " + responseName + "."); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/3de0fd6612b01325d3a8e2dd29c980447948f32c/ResponseParser.java/clean/plugins/cvs2/javacvs-src/org/netbeans/lib/cvsclient/response/ResponseParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3411,
1207,
1064,
12,
780,
766,
461,
16,
467,
1952,
10301,
1459,
10301,
16,
467,
1064,
5676,
766,
5676,
16,
467,
1227,
5494,
1004,
5494,
13,
1216,
1860,
288,
202,
202,
430,
261,
2740,
461,
18,
14963,
5556,
2932,
41,
6,
3719,
288,
1082,
202,
6385,
1160,
8526,
980,
273,
3961,
11864,
18,
896,
1670,
2160,
12,
4071,
10301,
18,
588,
19862,
2514,
9334,
629,
1769,
5411,
766,
5164,
18,
2567,
14935,
1064,
12,
9366,
1079,
9988,
4643,
774,
1541,
86,
5520,
25005,
12,
1369,
3631,
766,
5676,
1769,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
2740,
461,
18,
14963,
5556,
2932,
49,
6,
3719,
288,
1082,
202,
6385,
5393,
2949,
273,
1459,
10301,
18,
588,
19862,
2514,
5621,
1082,
202,
6385,
1160,
8526,
980,
273,
3961,
11864,
18,
896,
1670,
2160,
12,
10530,
16,
629,
1769,
1082,
202,
2740,
5164,
18,
2567,
1079,
1064,
12,
9366,
1079,
9988,
4643,
774,
1541,
86,
5520,
25005,
12,
1369,
3631,
766,
5676,
1769,
1082,
202,
2463,
446,
31,
202,
202,
97,
7734,
469,
309,
261,
2740,
461,
18,
14963,
5556,
2932,
49,
5905,
6,
3719,
288,
1082,
202,
6385,
5393,
2949,
273,
1459,
10301,
18,
588,
19862,
2514,
5621,
1082,
202,
6385,
514,
585,
1782,
780,
273,
3961,
11864,
18,
896,
1670,
12,
10530,
1769,
13491,
775,
288,
12900,
509,
585,
1782,
273,
2144,
18,
2670,
1702,
12,
768,
1782,
780,
1769,
12900,
766,
5164,
18,
2567,
5905,
1079,
1064,
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,
3411,
1207,
1064,
12,
780,
766,
461,
16,
467,
1952,
10301,
1459,
10301,
16,
467,
1064,
5676,
766,
5676,
16,
467,
1227,
5494,
1004,
5494,
13,
1216,
1860,
288,
202,
202,
430,
261,
2740,
461,
18,
14963,
5556,
2932,
41,
6,
3719,
288,
1082,
202,
6385,
1160,
8526,
980,
273,
3961,
11864,
18,
896,
1670,
2160,
12,
4071,
10301,
18,
588,
19862,
2514,
9334,
629,
1769,
5411,
766,
5164,
18,
2567,
14935,
1064,
12,
9366,
1079,
9988,
4643,
774,
1541,
86,
5520,
25005,
12,
1369,
3631,
766,
5676,
1769,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
2740,
461,
18,
14963,
5556,
2932,
49,
6,
3719,
288,
1082,
202,
6385,
5393,
2
] |
_text.setText( "This is the console area. \nLots of stuff to see here..."); setPreferredSize(new Dimension(200, 40));
|
public Console(AppContext context) { setLayout(new GridLayout(1,1)); _context = context; _text = new JTextPane(); _text.setEditable(false); JScrollPane scroller = new JScrollPane(_text); add(scroller); _text.setText( "This is the console area. \nLots of stuff to see here..."); setPreferredSize(new Dimension(200, 40)); }
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/c70641243c667093d23f689c7c28866fa661b1af/Console.java/buggy/src/antidote/org/apache/tools/ant/gui/Console.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9657,
12,
3371,
1042,
819,
13,
288,
3639,
18479,
12,
2704,
7145,
3744,
12,
21,
16,
21,
10019,
3639,
389,
2472,
273,
819,
31,
3639,
389,
955,
273,
394,
804,
1528,
8485,
5621,
3639,
389,
955,
18,
542,
15470,
12,
5743,
1769,
3639,
804,
26360,
888,
1539,
273,
394,
804,
26360,
24899,
955,
1769,
7734,
527,
12,
1017,
1539,
1769,
3639,
389,
955,
18,
542,
1528,
12,
5411,
315,
2503,
353,
326,
2983,
5091,
18,
521,
82,
48,
6968,
434,
10769,
358,
2621,
2674,
7070,
1769,
3639,
31099,
1225,
12,
2704,
13037,
12,
6976,
16,
8063,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9657,
12,
3371,
1042,
819,
13,
288,
3639,
18479,
12,
2704,
7145,
3744,
12,
21,
16,
21,
10019,
3639,
389,
2472,
273,
819,
31,
3639,
389,
955,
273,
394,
804,
1528,
8485,
5621,
3639,
389,
955,
18,
542,
15470,
12,
5743,
1769,
3639,
804,
26360,
888,
1539,
273,
394,
804,
26360,
24899,
955,
1769,
7734,
527,
12,
1017,
1539,
1769,
3639,
389,
955,
18,
542,
1528,
12,
5411,
315,
2503,
353,
326,
2983,
5091,
18,
521,
82,
48,
6968,
434,
10769,
358,
2621,
2674,
7070,
1769,
3639,
31099,
1225,
12,
2704,
13037,
12,
6976,
16,
8063,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
return (pathname.isDirectory() || !isDirectory) && filter.accept(parent, pathname.getName());
|
return (pathname.isDirectory() || !isDirectory) && SelectorUtils.matchPath(pattern, pathname.getName());
|
private static Collection getMatchingFiles(final File parent, final String pattern, final boolean isDirectory) { if (pattern.equals("**")) { // TODO: This kind of recursive globbing pattern needs to be implemented! return Collections.EMPTY_LIST; } return Arrays.asList(parent.listFiles(new FileFilter() { FilenameFilter filter = new GlobFilenameFilter(pattern); /** * @see java.io.FileFilter#accept(File) */ public boolean accept(File pathname) { return (pathname.isDirectory() || !isDirectory) && filter.accept(parent, pathname.getName()); } })); }
|
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/ef40ec2399c82f77074c649c2bb4d8db0bce46f3/Glob.java/clean/src/org/jruby/util/Glob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
2200,
336,
9517,
2697,
12,
6385,
1387,
982,
16,
727,
514,
1936,
16,
727,
1250,
10126,
13,
288,
3639,
309,
261,
4951,
18,
14963,
2932,
636,
6,
3719,
288,
5411,
368,
2660,
30,
1220,
3846,
434,
5904,
4715,
31169,
1936,
4260,
358,
506,
8249,
5,
5411,
327,
5737,
18,
13625,
67,
7085,
31,
3639,
289,
3639,
327,
5647,
18,
345,
682,
12,
2938,
18,
1098,
2697,
12,
2704,
1387,
1586,
1435,
288,
5411,
16671,
1586,
1034,
273,
394,
18901,
5359,
1586,
12,
4951,
1769,
5411,
1783,
2398,
380,
632,
5946,
2252,
18,
1594,
18,
29837,
7,
9436,
12,
812,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
2200,
336,
9517,
2697,
12,
6385,
1387,
982,
16,
727,
514,
1936,
16,
727,
1250,
10126,
13,
288,
3639,
309,
261,
4951,
18,
14963,
2932,
636,
6,
3719,
288,
5411,
368,
2660,
30,
1220,
3846,
434,
5904,
4715,
31169,
1936,
4260,
358,
506,
8249,
5,
5411,
327,
5737,
18,
13625,
67,
7085,
31,
3639,
289,
3639,
327,
5647,
18,
345,
682,
12,
2938,
18,
1098,
2697,
12,
2704,
1387,
1586,
1435,
288,
5411,
16671,
1586,
1034,
273,
394,
18901,
5359,
1586,
12,
4951,
1769,
5411,
1783,
2398,
380,
632,
5946,
2252,
18,
1594,
18,
29837,
7,
9436,
12,
812,
13,
2398,
1195,
5411,
1071,
1250,
2791,
12,
812,
9806,
13,
288,
7734,
327,
261,
28336,
18,
2
] |
mapper.map(key, value, output, reporter);
|
mapper.map(key, value, output, reporter); } } finally { mapper.close();
|
public void run(RecordReader input, OutputCollector output, Reporter reporter) throws IOException { while (true) { // allocate new key & value instances WritableComparable key = (WritableComparable)job.newInstance(inputKeyClass); Writable value = (Writable)job.newInstance(inputValueClass); // read next key & value if (!input.next(key, value)) return; // map pair to output mapper.map(key, value, output, reporter); } }
|
49248 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49248/1fcb1e4447b3f15606d2b325994866cb91842662/MapRunner.java/clean/src/java/org/apache/hadoop/mapred/MapRunner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
12,
2115,
2514,
810,
16,
3633,
7134,
876,
16,
5375,
25585,
11528,
13,
565,
1216,
1860,
288,
565,
1323,
261,
3767,
13,
288,
1377,
368,
10101,
394,
498,
473,
460,
3884,
1377,
14505,
799,
10207,
498,
273,
3639,
261,
12061,
799,
10207,
13,
4688,
18,
2704,
1442,
12,
2630,
653,
797,
1769,
1377,
14505,
460,
273,
261,
12061,
13,
4688,
18,
2704,
1442,
12,
2630,
620,
797,
1769,
1377,
368,
855,
1024,
498,
473,
460,
1377,
309,
16051,
2630,
18,
4285,
12,
856,
16,
460,
3719,
3639,
327,
31,
1377,
368,
852,
3082,
358,
876,
1377,
5815,
18,
1458,
12,
856,
16,
460,
16,
876,
16,
11528,
1769,
289,
289,
3095,
288,
5815,
18,
4412,
5621,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
12,
2115,
2514,
810,
16,
3633,
7134,
876,
16,
5375,
25585,
11528,
13,
565,
1216,
1860,
288,
565,
1323,
261,
3767,
13,
288,
1377,
368,
10101,
394,
498,
473,
460,
3884,
1377,
14505,
799,
10207,
498,
273,
3639,
261,
12061,
799,
10207,
13,
4688,
18,
2704,
1442,
12,
2630,
653,
797,
1769,
1377,
14505,
460,
273,
261,
12061,
13,
4688,
18,
2704,
1442,
12,
2630,
620,
797,
1769,
1377,
368,
855,
1024,
498,
473,
460,
1377,
309,
16051,
2630,
18,
4285,
12,
856,
16,
460,
3719,
3639,
327,
31,
1377,
368,
852,
3082,
358,
876,
1377,
5815,
18,
1458,
12,
856,
16,
460,
16,
876,
16,
11528,
1769,
289,
289,
3095,
288,
5815,
18,
4412,
2
] |
if (containingClass != null) { processClass(containingClass, originalSubstitutor, substMap); }
|
return containingClass == null || processClass(containingClass, originalSubstitutor, substMap);
|
private void processClass(PsiClass resolve, PsiSubstitutor originalSubstitutor, final Map<PsiTypeParameter, PsiType> substMap) { final PsiTypeParameter[] params = resolve.getTypeParameters(); for (final PsiTypeParameter param : params) { substMap.put(param, substituteInternal(originalSubstitutor.substitute(param))); } if (resolve.hasModifierProperty(PsiModifier.STATIC)) return; final PsiClass containingClass = resolve.getContainingClass(); if (containingClass != null) { processClass(containingClass, originalSubstitutor, substMap); } }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/93f371f30fd48c0441f3d7088db414e60fe18824/PsiSubstitutorImpl.java/buggy/source/com/intellij/psi/impl/PsiSubstitutorImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
797,
12,
52,
7722,
797,
2245,
16,
453,
7722,
1676,
5223,
3408,
2282,
1676,
5223,
3408,
16,
727,
1635,
32,
52,
7722,
16920,
16,
453,
7722,
559,
34,
27750,
863,
13,
288,
1377,
727,
453,
7722,
16920,
8526,
859,
273,
2245,
18,
588,
559,
2402,
5621,
1377,
364,
261,
6385,
453,
7722,
16920,
579,
294,
859,
13,
288,
3639,
27750,
863,
18,
458,
12,
891,
16,
14811,
3061,
12,
8830,
1676,
5223,
3408,
18,
1717,
17207,
12,
891,
3719,
1769,
1377,
289,
1377,
309,
261,
10828,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
3719,
327,
31,
1377,
727,
453,
7722,
797,
4191,
797,
273,
2245,
18,
588,
24344,
797,
5621,
1377,
309,
261,
1213,
3280,
797,
480,
446,
13,
288,
3639,
1207,
797,
12,
1213,
3280,
797,
16,
2282,
1676,
5223,
3408,
16,
27750,
863,
1769,
1377,
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,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
1676,
5223,
3408,
16,
727,
1635,
32,
52,
7722,
16920,
16,
453,
7722,
559,
34,
27750,
863,
13,
288,
1377,
727,
453,
7722,
16920,
8526,
859,
273,
2245,
18,
588,
559,
2402,
5621,
1377,
364,
261,
6385,
453,
7722,
16920,
579,
294,
859,
13,
288,
3639,
27750,
863,
18,
458,
12,
891,
16,
14811,
3061,
12,
8830,
1676,
5223,
3408,
18,
1717,
17207,
12,
891,
3719,
1769,
1377,
289,
1377,
309,
261,
10828,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
3719,
327,
31,
1377,
727,
453,
7722,
797,
4191,
797,
273,
2245,
18,
588,
24344,
797,
5621,
1377,
309,
2
] |
if (image != null && image.equals(getDisabledImage())) return;
|
if (image != null && image.equals(getDisabledImage())) { return; }
|
public void setDisabledImage(Image image) { checkWidget(); if (image != null && image.equals(getDisabledImage())) return; disabledImage = image; parent.redraw(); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a23c3b9bac4db696a0452560047155775a707b7/CTabItem.java/clean/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/r21/widgets/CTabItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
8853,
2040,
12,
2040,
1316,
13,
288,
3639,
866,
4609,
5621,
3639,
309,
261,
2730,
480,
446,
597,
1316,
18,
14963,
12,
588,
8853,
2040,
1435,
3719,
5411,
327,
31,
3639,
5673,
2040,
273,
1316,
31,
3639,
982,
18,
1118,
1899,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
8853,
2040,
12,
2040,
1316,
13,
288,
3639,
866,
4609,
5621,
3639,
309,
261,
2730,
480,
446,
597,
1316,
18,
14963,
12,
588,
8853,
2040,
1435,
3719,
5411,
327,
31,
3639,
5673,
2040,
273,
1316,
31,
3639,
982,
18,
1118,
1899,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
synchronized(this) { assert (!isDeleted); ReminderDA.getInstance().updateReminderRepeatValue(id, repeatValue); if (isLoaded) { loadData(); } } announceModify();
|
assert (!isDeleted); ReminderDA.getInstance().updateReminderRepeatValue(id, repeatValue); if (isLoaded) { loadData(); } announceModify();
|
public void setRepeatValue(final int repeatValue) { synchronized(this) { assert (!isDeleted); ReminderDA.getInstance().updateReminderRepeatValue(id, repeatValue); if (isLoaded) { loadData(); } } announceModify(); }
|
11042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11042/42f15ce06e127523723133285c793cb25214f02b/Reminder.java/clean/trunk/JPAS/src/org/jpas/model/Reminder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
16750,
620,
12,
6385,
509,
7666,
620,
13,
565,
288,
377,
202,
22043,
12,
2211,
13,
202,
202,
95,
202,
3639,
1815,
16051,
291,
7977,
1769,
202,
3639,
2663,
14055,
9793,
18,
588,
1442,
7675,
2725,
1933,
14055,
16750,
620,
12,
350,
16,
7666,
620,
1769,
202,
3639,
309,
261,
291,
8835,
13,
202,
3639,
288,
202,
5411,
29422,
5621,
202,
3639,
289,
202,
202,
97,
377,
202,
1072,
8386,
11047,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16750,
620,
12,
6385,
509,
7666,
620,
13,
565,
288,
377,
202,
22043,
12,
2211,
13,
202,
202,
95,
202,
3639,
1815,
16051,
291,
7977,
1769,
202,
3639,
2663,
14055,
9793,
18,
588,
1442,
7675,
2725,
1933,
14055,
16750,
620,
12,
350,
16,
7666,
620,
1769,
202,
3639,
309,
261,
291,
8835,
13,
202,
3639,
288,
202,
5411,
29422,
5621,
202,
3639,
289,
202,
202,
97,
377,
202,
1072,
8386,
11047,
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
] |
gai.addSuperDispatches(supers.supercalls(gai)); gai.addSuperFieldGetters(supers.superfieldgetters(gai)); gai.addSuperFieldSetters(supers.superfieldsetters(gai)); gai.addQualThiss(supers.qualthiss(gai));
|
public void update(abc.weaving.aspectinfo.GlobalAspectInfo gai, abc.weaving.aspectinfo.Aspect current_aspect) { // System.out.println("IMD host: "+host.toString()); List formals = new ArrayList(); Iterator fi = formals().iterator(); while (fi.hasNext()) { Formal f = (Formal)fi.next(); formals.add(new abc.weaving.aspectinfo.Formal(AbcFactory.AbcType(f.type().type()), f.name(), f.position())); } List exc = new ArrayList(); Iterator ti = throwTypes().iterator(); while (ti.hasNext()) { TypeNode t = (TypeNode)ti.next(); exc.add(AbcFactory.AbcClass((ClassType)t.type())); } abc.weaving.aspectinfo.MethodSig impl = new abc.weaving.aspectinfo.MethodSig (AbcFactory.modifiers(flags()), current_aspect.getInstanceClass(), AbcFactory.AbcType(returnType().type()), name(), formals, exc, position()); abc.weaving.aspectinfo.MethodSig target = new abc.weaving.aspectinfo.MethodSig (AbcFactory.modifiers(origflags), AbcFactory.AbcClass((ClassType)host.type()), AbcFactory.AbcType(returnType().type()), name(), formals, exc, null); abc.weaving.aspectinfo.IntertypeMethodDecl imd = new abc.weaving.aspectinfo.IntertypeMethodDecl (target, impl, current_aspect, originalName, position()); gai.addIntertypeMethodDecl(imd); gai.addSuperDispatches(supers.supercalls(gai)); gai.addSuperFieldGetters(supers.superfieldgetters(gai)); gai.addSuperFieldSetters(supers.superfieldsetters(gai)); gai.addQualThiss(supers.qualthiss(gai)); MethodCategory.register(impl, MethodCategory.INTERTYPE_METHOD_SOURCE); MethodCategory.registerRealNameAndClass(impl, AbcFactory.modifiers(origflags), originalName, AbcFactory.AbcClass((ClassType)host.type()), (origflags.isStatic()?0:1),0); }
|
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/07e37d7c014dd7c6546be155355dcd2dbb096949/IntertypeMethodDecl_c.java/buggy/aop/abc/src/abc/aspectj/ast/IntertypeMethodDecl_c.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
12,
18947,
18,
1814,
5339,
18,
23579,
1376,
18,
5160,
17468,
966,
314,
10658,
16,
20011,
18,
1814,
5339,
18,
23579,
1376,
18,
17468,
783,
67,
23579,
13,
288,
202,
759,
2332,
18,
659,
18,
8222,
2932,
3445,
40,
1479,
30,
13773,
2564,
18,
10492,
10663,
202,
682,
646,
1031,
273,
394,
2407,
5621,
202,
3198,
7314,
273,
646,
1031,
7675,
9838,
5621,
202,
17523,
261,
22056,
18,
5332,
2134,
10756,
288,
202,
565,
478,
1687,
284,
273,
261,
12183,
13,
22056,
18,
4285,
5621,
202,
565,
646,
1031,
18,
1289,
12,
2704,
20011,
18,
1814,
5339,
18,
23579,
1376,
18,
12183,
12,
5895,
71,
1733,
18,
5895,
71,
559,
12,
74,
18,
723,
7675,
723,
1435,
3631,
6862,
9506,
225,
284,
18,
529,
9334,
284,
18,
3276,
1435,
10019,
202,
97,
202,
682,
3533,
273,
394,
2407,
5621,
202,
3198,
11374,
273,
604,
2016,
7675,
9838,
5621,
202,
17523,
261,
9096,
18,
5332,
2134,
10756,
288,
202,
565,
1412,
907,
268,
273,
261,
559,
907,
13,
9096,
18,
4285,
5621,
202,
565,
3533,
18,
1289,
12,
5895,
71,
1733,
18,
5895,
71,
797,
12443,
18328,
13,
88,
18,
723,
1435,
10019,
202,
97,
202,
18947,
18,
1814,
5339,
18,
23579,
1376,
18,
1305,
8267,
9380,
273,
394,
20011,
18,
1814,
5339,
18,
23579,
1376,
18,
1305,
8267,
202,
565,
261,
5895,
71,
1733,
18,
15432,
12,
7133,
1435,
3631,
202,
377,
783,
67,
23579,
18,
588,
1442,
797,
9334,
202,
377,
9771,
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,
1089,
12,
18947,
18,
1814,
5339,
18,
23579,
1376,
18,
5160,
17468,
966,
314,
10658,
16,
20011,
18,
1814,
5339,
18,
23579,
1376,
18,
17468,
783,
67,
23579,
13,
288,
202,
759,
2332,
18,
659,
18,
8222,
2932,
3445,
40,
1479,
30,
13773,
2564,
18,
10492,
10663,
202,
682,
646,
1031,
273,
394,
2407,
5621,
202,
3198,
7314,
273,
646,
1031,
7675,
9838,
5621,
202,
17523,
261,
22056,
18,
5332,
2134,
10756,
288,
202,
565,
478,
1687,
284,
273,
261,
12183,
13,
22056,
18,
4285,
5621,
202,
565,
646,
1031,
18,
1289,
12,
2704,
20011,
18,
1814,
5339,
18,
23579,
1376,
18,
12183,
12,
5895,
71,
1733,
18,
5895,
71,
559,
12,
74,
18,
723,
7675,
2
] |
|
updateViewPosition(); updateButtons(); tabPane.repaint(); } else if (tabPane.isEnabled())
|
tabPane.repaint(); } else if (tabPane.isEnabled())
|
public void mousePressed(MouseEvent e) { Object s = e.getSource(); int placement = tabPane.getTabPlacement(); if (s == incrButton) { if(!incrButton.isEnabled()) return; currentScrollLocation++; switch (placement) { case JTabbedPane.TOP: case JTabbedPane.BOTTOM: currentScrollOffset = getTabAreaInsets(placement).left; for (int i = 0; i < currentScrollLocation; i++) currentScrollOffset += rects[i].width; break; default: currentScrollOffset = getTabAreaInsets(placement).top; for (int i = 0; i < currentScrollLocation; i++) currentScrollOffset += rects[i].height; break; } updateViewPosition(); updateButtons(); tabPane.repaint(); } else if (s == decrButton) { if(!decrButton.isEnabled()) return; // The scroll location may be zero but the offset // greater than zero because of an adjustement to // make a partially visible tab completely visible. if (currentScrollLocation > 0) currentScrollLocation--; // Set the offset back to 0 and recompute it. currentScrollOffset = 0; switch (placement) { case JTabbedPane.TOP: case JTabbedPane.BOTTOM: // Take the tab area inset into account. if (currentScrollLocation > 0) currentScrollOffset = getTabAreaInsets(placement).left; // Recompute scroll offset. for (int i = 0; i < currentScrollLocation; i++) currentScrollOffset += rects[i].width; break; default: // Take the tab area inset into account. if (currentScrollLocation > 0) currentScrollOffset = getTabAreaInsets(placement).top; for (int i = 0; i < currentScrollLocation; i++) currentScrollOffset += rects[i].height; } updateViewPosition(); updateButtons(); tabPane.repaint(); } else if (tabPane.isEnabled()) { int index = tabForCoordinate(tabPane, e.getX(), e.getY()); if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT && s == panel) scrollTab(index, placement); tabPane.setSelectedIndex(index); } }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/600ae6fadaec0b3e0792cf17937222b5d81d1938/BasicTabbedPaneUI.java/buggy/javax/swing/plaf/basic/BasicTabbedPaneUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
13,
565,
288,
1377,
1033,
272,
273,
425,
18,
588,
1830,
5621,
1377,
509,
12607,
273,
3246,
8485,
18,
588,
5661,
12420,
5621,
1850,
309,
261,
87,
422,
17633,
3616,
13,
3639,
288,
1850,
309,
12,
5,
267,
3353,
3616,
18,
291,
1526,
10756,
5411,
327,
31,
1850,
783,
6806,
2735,
9904,
31,
1850,
1620,
261,
15917,
13,
5411,
288,
2868,
648,
804,
5661,
2992,
8485,
18,
10462,
30,
2868,
648,
804,
5661,
2992,
8485,
18,
28891,
30,
1171,
783,
6806,
2335,
273,
3181,
378,
5484,
382,
4424,
12,
15917,
2934,
4482,
31,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
783,
6806,
2735,
31,
277,
27245,
5375,
783,
6806,
2335,
1011,
4917,
87,
63,
77,
8009,
2819,
31,
7734,
898,
31,
2868,
805,
30,
7734,
783,
6806,
2335,
273,
3181,
378,
5484,
382,
4424,
12,
15917,
2934,
3669,
31,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
783,
6806,
2735,
31,
277,
27245,
5375,
783,
6806,
2335,
1011,
4917,
87,
63,
77,
8009,
4210,
31,
7734,
898,
31,
5411,
289,
8227,
1089,
1767,
2555,
5621,
1850,
1089,
14388,
5621,
5375,
3246,
8485,
18,
14462,
1598,
5621,
3639,
289,
1377,
469,
309,
261,
87,
422,
2109,
86,
3616,
13,
3639,
288,
1850,
309,
12,
5,
323,
3353,
3616,
18,
291,
1526,
10756,
5411,
327,
31,
5375,
368,
1021,
5532,
2117,
2026,
506,
3634,
1496,
326,
1384,
1850,
368,
6802,
2353,
3634,
2724,
434,
392,
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,
7644,
24624,
12,
9186,
1133,
425,
13,
565,
288,
1377,
1033,
272,
273,
425,
18,
588,
1830,
5621,
1377,
509,
12607,
273,
3246,
8485,
18,
588,
5661,
12420,
5621,
1850,
309,
261,
87,
422,
17633,
3616,
13,
3639,
288,
1850,
309,
12,
5,
267,
3353,
3616,
18,
291,
1526,
10756,
5411,
327,
31,
1850,
783,
6806,
2735,
9904,
31,
1850,
1620,
261,
15917,
13,
5411,
288,
2868,
648,
804,
5661,
2992,
8485,
18,
10462,
30,
2868,
648,
804,
5661,
2992,
8485,
18,
28891,
30,
1171,
783,
6806,
2335,
273,
3181,
378,
5484,
382,
4424,
12,
15917,
2934,
4482,
31,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
783,
6806,
2735,
31,
277,
27245,
5375,
2
] |
indent = dealWithClosingGroupNodes(containedObj, outputstream, indent);
|
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) { // while writing out, attribHash should not be changed synchronized (attribHash) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; /* // 0. To be valid XML, we always start an XML block with an // XML declaration (e.g. somehting like "<?xml standalone="no"?>"). // Here we deal with printing out XML Declaration && its attributes if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); }*/ // 1. open this node, print its simple XML attributes if (nodeNameString != null) { if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); // indent node if desired // For printing the opening statement we need to invoke a little // Voodoo to keep the DTD happy: the first structure node is always // called by the root node name instead of the usual nodeNameString // We can tell this by checking if this object is derived from class // Structure and if XMLDeclAttrib defined/populated with information // NOTE: This isnt really the way to do this. We need to check if 'this' is // is or has as a superclass xdf.Structure instead of the 'string check' below. // check is class Strucuture & XMLDeclAttribs populated? /* if ( nodeNameString.equals(Specification.getInstance().getXDFStructureNodeName()) && !XMLDeclAttribs.isEmpty() ) nodeNameString = Specification.getInstance().getXDFRootNodeName(); */ writeOut(outputstream,"<" + nodeNameString); // print opening statement } // gather info about XMLAttributes in this object/node Hashtable xmlInfo = getXMLInfo(); // 2. Print out string object XML attributes EXCEPT for the one that // matches PCDATAAttribute. ArrayList attribs = (ArrayList) xmlInfo.get("attribList"); // is synchronized here correct? synchronized(attribs) { int size = attribs.size(); for (int i = 0; i < size; i++) { Hashtable item = (Hashtable) attribs.get(i); writeOut(outputstream, " " + item.get("name") + "=\""); // this slows things down, should we use? //writeOutAttribute(outputstream, (String) item.get("value")); writeOut(outputstream, (String) item.get("value")); writeOut(outputstream, "\"" ); } } // 3. Print out Node PCData or Child Nodes as specified by object ref // XML attributes. The way this stuff occurs will also affect how we // close the node. ArrayList childObjs = (ArrayList) xmlInfo.get("childObjList"); List childXMLElements = getXMLElementList(); String pcdata = (String) xmlInfo.get("PCDATA"); if ( childObjs.size() > 0 || childXMLElements.size() > 0 || pcdata != null || noChildObjectNodeName != null) { // close the opening tag if (nodeNameString != null) { writeOut(outputstream, ">"); if ((Specification.getInstance().isPrettyXDFOutput()) && (pcdata == null)) writeOut(outputstream, Constants.NEW_LINE); } // by definition these are printed first int size = childXMLElements.size(); String childindent = indent + Specification.getInstance().getPrettyXDFOutputIndentation(); for (int i = 0; i < size; i++) { ((XMLElement) childXMLElements.get(i)).toXMLOutputStream(outputstream, childindent); } // deal with object/list XML attributes, if any in our list size = childObjs.size(); for (int i = 0; i < size; i++) { Hashtable item = (Hashtable) childObjs.get(i); if (item.get("type") == Constants.LIST_TYPE) { List objectList = (List) item.get("value"); // Im not sure this synchronized wrapper is needed, we are // only accessing stuff here.. Also, should synchronzied wrapper // occur back in the getXMLInfo method instead where the orig // access occured?!? synchronized(objectList) { Iterator iter = objectList.iterator(); // Must be in synchronized block while (iter.hasNext()) { BaseObject containedObj = (BaseObject) iter.next(); if (containedObj != null) { // can happen from pre-allocation of axis values, etc (?) indent = dealWithOpeningGroupNodes(containedObj, outputstream, indent); indent = dealWithClosingGroupNodes(containedObj, outputstream, indent); String newindent = indent + Specification.getInstance().getPrettyXDFOutputIndentation(); containedObj.toXMLOutputStream(outputstream, new Hashtable(), newindent); } } } } else if (item.get("type") == Constants.OBJECT_TYPE) { BaseObject containedObj = (BaseObject) item.get("value"); if (containedObj != null) { // can happen from pre-allocation of axis values, etc (?) // shouldnt this be synchronized too?? synchronized(containedObj) { indent = dealWithOpeningGroupNodes(containedObj, outputstream, indent); indent = dealWithClosingGroupNodes(containedObj, outputstream, indent); String newindent = indent + Specification.getInstance().getPrettyXDFOutputIndentation(); containedObj.toXMLOutputStream(outputstream, new Hashtable(), newindent); } } } else { // error: weird type, actually shouldnt occur. Is this needed?? Log.errorln("Weird error: unknown XML attribute type for item:"+item); } } // print out PCDATA, if any if(pcdata != null) { writeOut(outputstream, pcdata); }; // if there are no PCDATA or child objects/nodes then // we print out noChildObjectNodeName and close the node if ( childObjs.size() == 0 && pcdata == null && noChildObjectNodeName != null) { if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent + Specification.getInstance().getPrettyXDFOutputIndentation()); writeOut(outputstream, "<" + noChildObjectNodeName + "/>"); if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); } // ok, now deal with closing the node if (nodeNameString != null) { indent = dealWithClosingGroupNodes((BaseObject) this, outputstream, indent); if (Specification.getInstance().isPrettyXDFOutput() && pcdata == null) writeOut(outputstream, indent); if (!dontCloseNode) writeOut(outputstream, "</"+nodeNameString+">"); } } else { if (nodeNameString != null) { if (dontCloseNode) { // it may not have sub-objects, but we dont want to close it // (happens for group objects) writeOut(outputstream, ">"); } else { // no sub-objects, just close this node writeOut(outputstream, "/>"); } } } if (Specification.getInstance().isPrettyXDFOutput() && nodeNameString != null ) writeOut(outputstream, Constants.NEW_LINE); } //end synchronize }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/b9991f56fbf493dbbc47d39befdb391d9f0b05be/BaseObjectWithXMLElements.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObjectWithXMLElements.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
30028,
4632,
261,
4766,
282,
8962,
876,
3256,
16,
4766,
282,
18559,
3167,
3456,
31292,
16,
4766,
282,
514,
3504,
16,
4766,
282,
1250,
14046,
4605,
907,
16,
4766,
282,
514,
10942,
461,
780,
16,
4766,
282,
514,
1158,
1763,
921,
18948,
4766,
262,
282,
288,
1377,
368,
1323,
7410,
596,
16,
5885,
2310,
1410,
486,
506,
3550,
1377,
3852,
261,
14588,
2310,
13,
288,
540,
514,
7553,
780,
273,
333,
18,
1106,
60,
4577,
18948,
31,
540,
368,
10939,
18,
348,
25976,
326,
508,
434,
326,
756,
732,
854,
10890,
353,
3775,
628,
540,
368,
716,
1269,
316,
326,
667,
60,
4577,
18948,
261,
14,
87,
2031,
12437,
540,
309,
261,
2704,
18948,
780,
480,
446,
13,
7553,
780,
273,
10942,
461,
780,
31,
282,
1748,
540,
368,
374,
18,
2974,
506,
923,
3167,
16,
732,
3712,
787,
392,
3167,
1203,
598,
392,
540,
368,
565,
3167,
8266,
261,
73,
18,
75,
18,
2690,
647,
310,
3007,
20410,
2902,
17676,
1546,
2135,
6,
35,
2984,
2934,
540,
368,
565,
13743,
732,
10490,
598,
225,
19171,
596,
3167,
16110,
4302,
597,
2097,
1677,
540,
309,
14015,
4201,
3456,
31292,
480,
2011,
13,
597,
12,
5,
4201,
3456,
31292,
18,
291,
1921,
1435,
3719,
288,
6647,
3504,
273,
1408,
31,
6647,
1045,
4201,
3456,
774,
4632,
12,
2844,
3256,
16,
3167,
3456,
31292,
1769,
540,
289,
5549,
5411,
368,
404,
18,
1696,
333,
756,
16,
1172,
2097,
4143,
3167,
1677,
540,
309,
261,
2159,
461,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
30028,
4632,
261,
4766,
282,
8962,
876,
3256,
16,
4766,
282,
18559,
3167,
3456,
31292,
16,
4766,
282,
514,
3504,
16,
4766,
282,
1250,
14046,
4605,
907,
16,
4766,
282,
514,
10942,
461,
780,
16,
4766,
282,
514,
1158,
1763,
921,
18948,
4766,
262,
282,
288,
1377,
368,
1323,
7410,
596,
16,
5885,
2310,
1410,
486,
506,
3550,
1377,
3852,
261,
14588,
2310,
13,
288,
540,
514,
7553,
780,
273,
333,
18,
1106,
60,
4577,
18948,
31,
540,
368,
10939,
18,
348,
25976,
326,
508,
434,
326,
756,
732,
854,
10890,
353,
3775,
628,
540,
368,
716,
1269,
316,
326,
667,
60,
4577,
18948,
261,
14,
87,
2031,
12437,
540,
309,
261,
2704,
18948,
780,
480,
2
] |
|
GeometryTools.translateAllPositive(atomContainer); GeometryTools.scaleMolecule(atomContainer, r2dm.getBackgroundDimension(), 0.8); GeometryTools.center(atomContainer, r2dm.getBackgroundDimension());
|
GeometryTools.translateAllPositive(atomContainer,r2dm.getRenderingCoordinates()); GeometryTools.scaleMolecule(atomContainer, r2dm.getBackgroundDimension(), 0.8,r2dm.getRenderingCoordinates()); GeometryTools.center(atomContainer, r2dm.getBackgroundDimension(),r2dm.getRenderingCoordinates());
|
public void paint(Graphics graphics) { super.paint(graphics); if (atomContainer != null) { setBackground(r2dm.getBackColor()); GeometryTools.translateAllPositive(atomContainer); GeometryTools.scaleMolecule(atomContainer, r2dm.getBackgroundDimension(), 0.8); GeometryTools.center(atomContainer, r2dm.getBackgroundDimension()); renderer.paintMolecule(atomContainer, (Graphics2D)graphics,false,true); } }
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/5be0abfe5b085eed3057d1e52b98e93946ca1210/MoleculeViewer2D.java/clean/src/org/openscience/cdk/applications/swing/MoleculeViewer2D.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
12,
17558,
17313,
13,
565,
288,
3639,
2240,
18,
84,
1598,
12,
31586,
1769,
3639,
309,
261,
7466,
2170,
480,
446,
13,
288,
5411,
31217,
12,
86,
22,
10956,
18,
588,
2711,
2957,
10663,
5411,
8344,
10348,
18,
13929,
1595,
14900,
12,
7466,
2170,
1769,
5411,
8344,
10348,
18,
5864,
29669,
12,
7466,
2170,
16,
436,
22,
10956,
18,
588,
8199,
8611,
9334,
374,
18,
28,
1769,
5411,
8344,
10348,
18,
5693,
12,
7466,
2170,
16,
436,
22,
10956,
18,
588,
8199,
8611,
10663,
5411,
5690,
18,
84,
1598,
29669,
12,
7466,
2170,
16,
261,
17558,
22,
40,
13,
31586,
16,
5743,
16,
3767,
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,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
13,
288,
5411,
31217,
12,
86,
22,
10956,
18,
588,
2711,
2957,
10663,
5411,
8344,
10348,
18,
13929,
1595,
14900,
12,
7466,
2170,
1769,
5411,
8344,
10348,
18,
5864,
29669,
12,
7466,
2170,
16,
436,
22,
10956,
18,
588,
8199,
8611,
9334,
374,
18,
28,
1769,
5411,
8344,
10348,
18,
5693,
12,
7466,
2170,
16,
436,
22,
10956,
18,
588,
8199,
8611,
10663,
5411,
5690,
18,
84,
1598,
29669,
12,
7466,
2170,
16,
261,
17558,
22,
40,
13,
31586,
16,
5743,
16,
3767,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
setOnclick(null);
|
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setMaxlength((String) evalAttr("maxlength", getMaxlength(), String.class)); } catch (NullAttributeException ex) { setMaxlength(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setReadonly(((Boolean) evalAttr("readonly", getReadonlyExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setReadonly(false); } try { setRedisplay(((Boolean) evalAttr("redisplay", getRedisplayExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setRedisplay(false); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setSize((String) evalAttr("size", getSize(), String.class)); } catch (NullAttributeException ex) { setSize(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
|
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/ELPasswordTag.java/buggy/struts-el/src/share/org/apache/strutsel/taglib/html/ELPasswordTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
653,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
8853,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
15034,
12443,
12,
5507,
13,
5302,
3843,
2932,
19626,
3113,
8088,
329,
4742,
9334,
4766,
6647,
3411,
18,
1106,
13,
2934,
15604,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
15034,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
10851,
2469,
12443,
780,
13,
5302,
3843,
2932,
27875,
3113,
7288,
2469,
9334,
4766,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
2
] |
|
getListeners().addElement(listener);
|
if (boardListeners == null) { boardListeners = new Vector<BoardListener>(); } boardListeners.addElement(listener);
|
public void addBoardListener(BoardListener listener) { getListeners().addElement(listener); }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/146b09124def37ab63c0bb3069d6ef9e2de68334/Board.java/clean/megamek/src/megamek/common/Board.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
22233,
2223,
12,
22233,
2223,
2991,
13,
288,
3639,
309,
261,
3752,
5583,
422,
446,
13,
288,
11094,
5583,
273,
394,
5589,
32,
22233,
2223,
34,
5621,
289,
11094,
5583,
18,
1289,
1046,
12,
12757,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
22233,
2223,
12,
22233,
2223,
2991,
13,
288,
3639,
309,
261,
3752,
5583,
422,
446,
13,
288,
11094,
5583,
273,
394,
5589,
32,
22233,
2223,
34,
5621,
289,
11094,
5583,
18,
1289,
1046,
12,
12757,
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
] |
StructuredSelection selection = (StructuredSelection) this.view.getViewer().getSelection(); String data = ""; for (Object selectedObject : ((IStructuredSelection) selection).toList()) { if (selectedObject instanceof ITaskListElement) { ITaskListElement element = (ITaskListElement) selectedObject; if (element.isDragAndDropEnabled()) { data += element.getHandleIdentifier() + DELIM; } } } if (data != null) { event.data = data; } else { event.data = "null"; }
|
event.data = "task-drag";
|
public void dragSetData(DragSourceEvent event) { StructuredSelection selection = (StructuredSelection) this.view.getViewer().getSelection(); String data = ""; for (Object selectedObject : ((IStructuredSelection) selection).toList()) { if (selectedObject instanceof ITaskListElement) { ITaskListElement element = (ITaskListElement) selectedObject; if (element.isDragAndDropEnabled()) { data += element.getHandleIdentifier() + DELIM; } } } if (data != null) { event.data = data; } else { event.data = "null"; } }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/9211f3a79a76e154ec8515d2086c4466c0dab239/TaskListDragSourceListener.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListDragSourceListener.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8823,
694,
751,
12,
11728,
1830,
1133,
871,
13,
288,
202,
202,
30733,
6233,
4421,
273,
261,
30733,
6233,
13,
333,
18,
1945,
18,
588,
18415,
7675,
588,
6233,
5621,
202,
202,
780,
501,
273,
1408,
31,
202,
202,
1884,
261,
921,
3170,
921,
294,
14015,
45,
30733,
6233,
13,
4421,
2934,
869,
682,
10756,
288,
1082,
202,
430,
261,
8109,
921,
1276,
467,
2174,
682,
1046,
13,
288,
9506,
202,
1285,
835,
682,
1046,
930,
273,
261,
1285,
835,
682,
1046,
13,
3170,
921,
31,
9506,
202,
430,
261,
2956,
18,
291,
11728,
1876,
7544,
1526,
10756,
288,
6862,
202,
892,
1011,
930,
18,
588,
3259,
3004,
1435,
397,
30767,
49,
31,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
261,
892,
480,
446,
13,
288,
1082,
202,
2575,
18,
892,
273,
501,
31,
202,
202,
97,
469,
288,
1082,
202,
2575,
18,
892,
273,
315,
2011,
14432,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8823,
694,
751,
12,
11728,
1830,
1133,
871,
13,
288,
202,
202,
30733,
6233,
4421,
273,
261,
30733,
6233,
13,
333,
18,
1945,
18,
588,
18415,
7675,
588,
6233,
5621,
202,
202,
780,
501,
273,
1408,
31,
202,
202,
1884,
261,
921,
3170,
921,
294,
14015,
45,
30733,
6233,
13,
4421,
2934,
869,
682,
10756,
288,
1082,
202,
430,
261,
8109,
921,
1276,
467,
2174,
682,
1046,
13,
288,
9506,
202,
1285,
835,
682,
1046,
930,
273,
261,
1285,
835,
682,
1046,
13,
3170,
921,
31,
9506,
202,
430,
261,
2956,
18,
291,
11728,
1876,
7544,
1526,
10756,
288,
6862,
202,
892,
1011,
930,
18,
588,
3259,
3004,
1435,
397,
30767,
49,
31,
9506,
202,
2
] |
sb.append (" "); sb.append (modeString()); sb.append (" "); sb.append (Rcode.TSIGstring(error)); sb.append ("\n");
|
sb.append(" "); sb.append(modeString()); sb.append(" "); sb.append(Rcode.TSIGstring(error)); sb.append("\n");
|
rdataToString() { StringBuffer sb = new StringBuffer(); if (alg == null) return sb.toString(); sb.append(alg); sb.append(" (\n\t"); sb.append(SIGRecord.formatDate(timeInception)); sb.append (" "); sb.append(SIGRecord.formatDate(timeExpire)); sb.append (" "); sb.append (modeString()); sb.append (" "); sb.append (Rcode.TSIGstring(error)); sb.append ("\n"); if (key != null) sb.append (base64.formatString(key, 64, "\t", false)); if (other != null) sb.append (base64.formatString(other, 64, "\t", false)); sb.append(" )"); return sb.toString();}
|
4227 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4227/cef1c9f37b27e75605c2347f8492ace98b2658d4/TKEYRecord.java/buggy/org/xbill/DNS/TKEYRecord.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
24291,
5808,
1435,
288,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
202,
430,
261,
18413,
422,
446,
13,
202,
202,
2463,
2393,
18,
10492,
5621,
202,
18366,
18,
6923,
12,
18413,
1769,
202,
18366,
18,
6923,
2932,
17938,
82,
64,
88,
8863,
202,
18366,
18,
6923,
12,
18513,
2115,
18,
2139,
1626,
12,
957,
382,
472,
10019,
202,
18366,
18,
6923,
7566,
315,
1769,
202,
18366,
18,
6923,
12,
18513,
2115,
18,
2139,
1626,
12,
957,
17033,
10019,
202,
18366,
18,
6923,
7566,
315,
1769,
202,
18366,
18,
6923,
261,
3188,
780,
10663,
202,
18366,
18,
6923,
7566,
315,
1769,
202,
18366,
18,
6923,
261,
54,
710,
18,
56,
18513,
1080,
12,
1636,
10019,
202,
18366,
18,
6923,
7566,
64,
82,
8863,
202,
430,
261,
856,
480,
446,
13,
202,
202,
18366,
18,
6923,
261,
1969,
1105,
18,
2139,
780,
12,
856,
16,
5178,
16,
1548,
88,
3113,
629,
10019,
202,
430,
261,
3011,
480,
446,
13,
202,
202,
18366,
18,
6923,
261,
1969,
1105,
18,
2139,
780,
12,
3011,
16,
5178,
16,
1548,
88,
3113,
629,
10019,
202,
18366,
18,
6923,
2932,
262,
8863,
202,
2463,
2393,
18,
10492,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
24291,
5808,
1435,
288,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
202,
430,
261,
18413,
422,
446,
13,
202,
202,
2463,
2393,
18,
10492,
5621,
202,
18366,
18,
6923,
12,
18413,
1769,
202,
18366,
18,
6923,
2932,
17938,
82,
64,
88,
8863,
202,
18366,
18,
6923,
12,
18513,
2115,
18,
2139,
1626,
12,
957,
382,
472,
10019,
202,
18366,
18,
6923,
7566,
315,
1769,
202,
18366,
18,
6923,
12,
18513,
2115,
18,
2139,
1626,
12,
957,
17033,
10019,
202,
18366,
18,
6923,
7566,
315,
1769,
202,
18366,
18,
6923,
261,
3188,
780,
10663,
202,
18366,
18,
6923,
7566,
315,
1769,
202,
18366,
18,
6923,
261,
54,
710,
18,
56,
18513,
1080,
12,
1636,
10019,
202,
18366,
18,
6923,
2
] |
public org.quickfix.field.TransferReason getTransferReason() throws FieldNotFound { org.quickfix.field.TransferReason value = new org.quickfix.field.TransferReason();
|
public quickfix.field.TransferReason getTransferReason() throws FieldNotFound { quickfix.field.TransferReason value = new quickfix.field.TransferReason();
|
public org.quickfix.field.TransferReason getTransferReason() throws FieldNotFound { org.quickfix.field.TransferReason value = new org.quickfix.field.TransferReason(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportRequest.java/clean/src/java/src/quickfix/fix44/TradeCaptureReportRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
5912,
8385,
336,
5912,
8385,
1435,
1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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
5912,
8385,
336,
5912,
8385,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
5912,
8385,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
5912,
8385,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
jCheckBoxJToolBarActionPerformed(evt);
|
jMenuItemCloseProjectActionPerformed(evt);
|
public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxJToolBarActionPerformed(evt); }
|
7731 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7731/1353d26b3e581366864bd35e0c02968df79ae56b/jFrame.java/clean/Project/jFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
525,
12958,
4605,
4109,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
525,
12958,
4605,
4109,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} }
|
} }
|
public void doExecuteQuery() { if (queryEditorTabbedPane.getTabCount() < 1) { warn("You must add or import a query to execute it."); } else { QueryEditor qe = (QueryEditor) queryEditorTabbedPane.getSelectedComponent(); if (qe == null) { warn("Can not execute query because none selected. Select one of the queries. "); } else { try { qe.execute(); } catch (SequenceException e) { e.printStackTrace(); warn(e.getMessage()); } catch (FormatException e) { e.printStackTrace(); warn(e.getMessage()); } catch (InvalidQueryException e) { e.printStackTrace(); warn(e.getMessage()); } catch (SQLException e) { e.printStackTrace(); warn(e.getMessage()); } } } }
|
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/30eaa1dcdfd92d8695bfaf583a28e73ab5302229/MartExplorer.java/buggy/src/java/org/ensembl/mart/explorer/MartExplorer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
5289,
1138,
1435,
288,
202,
202,
430,
261,
2271,
6946,
5661,
2992,
8485,
18,
588,
5661,
1380,
1435,
411,
404,
13,
288,
1082,
202,
8935,
2932,
6225,
1297,
527,
578,
1930,
279,
843,
358,
1836,
518,
1199,
1769,
202,
202,
97,
469,
288,
1082,
202,
1138,
6946,
1043,
73,
273,
9506,
202,
12,
1138,
6946,
13,
843,
6946,
5661,
2992,
8485,
18,
588,
7416,
1841,
5621,
1082,
202,
430,
261,
85,
73,
422,
446,
13,
288,
9506,
202,
8935,
2932,
2568,
486,
1836,
843,
2724,
6555,
3170,
18,
6766,
1245,
434,
326,
6218,
18,
315,
1769,
1082,
202,
97,
469,
288,
9506,
202,
698,
288,
6862,
202,
85,
73,
18,
8837,
5621,
9506,
202,
97,
1044,
261,
4021,
503,
425,
13,
288,
6862,
202,
73,
18,
1188,
6332,
5621,
6862,
202,
8935,
12,
73,
18,
24906,
10663,
9506,
202,
97,
1044,
261,
9291,
425,
13,
288,
6862,
202,
73,
18,
1188,
6332,
5621,
6862,
202,
8935,
12,
73,
18,
24906,
10663,
9506,
202,
97,
1044,
261,
1941,
1138,
503,
425,
13,
288,
6862,
202,
73,
18,
1188,
6332,
5621,
6862,
202,
8935,
12,
73,
18,
24906,
10663,
9506,
202,
97,
1044,
261,
23116,
425,
13,
288,
6862,
202,
73,
18,
1188,
6332,
5621,
6862,
202,
8935,
12,
73,
18,
24906,
10663,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
5289,
1138,
1435,
288,
202,
202,
430,
261,
2271,
6946,
5661,
2992,
8485,
18,
588,
5661,
1380,
1435,
411,
404,
13,
288,
1082,
202,
8935,
2932,
6225,
1297,
527,
578,
1930,
279,
843,
358,
1836,
518,
1199,
1769,
202,
202,
97,
469,
288,
1082,
202,
1138,
6946,
1043,
73,
273,
9506,
202,
12,
1138,
6946,
13,
843,
6946,
5661,
2992,
8485,
18,
588,
7416,
1841,
5621,
1082,
202,
430,
261,
85,
73,
422,
446,
13,
288,
9506,
202,
8935,
2932,
2568,
486,
1836,
843,
2724,
6555,
3170,
18,
6766,
1245,
434,
326,
6218,
18,
315,
1769,
1082,
202,
97,
469,
288,
9506,
202,
698,
288,
6862,
202,
85,
73,
18,
8837,
5621,
9506,
202,
2
] |
jar = entry.get();
|
jar = (JarFile) entry.get();
|
JarFile openJarFile(String fileString, String key, boolean temp) throws IOException { JarFile jar = null; if(useCaches){ CacheEntry entry; while ((entry = (CacheEntry) cacheQueue.poll()) != null) jarCache.remove(entry.key); entry = jarCache.get(key); if (entry != null) jar = entry.get(); if (jar == null && fileString != null) { int flags = ZipFile.OPEN_READ + (temp ? ZipFile.OPEN_DELETE : 0); jar = new JarFile(new File(Util.decode(fileString, false)), true, flags); jarCache.put(key, new CacheEntry(jar, key, cacheQueue)); } else { SecurityManager security = System.getSecurityManager(); if (security != null) security.checkPermission(getPermission()); if (temp) lru.remove(new LRUKey(jar, 0)); } }else{ int flags = ZipFile.OPEN_READ + (temp ? ZipFile.OPEN_DELETE : 0); jar = new JarFile(new File(Util.decode(fileString, false)), true, flags); } if (temp) { lru.add(new LRUKey(jar, new Date().getTime())); if (lru.size() > Limit) lru.remove(lru.first()); } return jar; }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/87eb7346a3c34158727247d56df7760d200d5b32/JarURLConnection.java/clean/modules/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/jar/JarURLConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
10813,
812,
1696,
10813,
812,
12,
780,
585,
780,
16,
514,
498,
16,
1250,
1906,
13,
1082,
202,
15069,
1860,
288,
202,
202,
10813,
812,
7334,
273,
446,
31,
202,
202,
430,
12,
1202,
18755,
15329,
1082,
565,
27657,
1241,
31,
5411,
1323,
14015,
4099,
273,
261,
27630,
13,
1247,
3183,
18,
13835,
10756,
480,
446,
13,
7734,
7334,
1649,
18,
4479,
12,
4099,
18,
856,
1769,
5411,
1241,
273,
7334,
1649,
18,
588,
12,
856,
1769,
5411,
309,
261,
4099,
480,
446,
13,
7734,
7334,
273,
261,
10813,
812,
13,
1241,
18,
588,
5621,
5411,
309,
261,
11930,
422,
446,
597,
585,
780,
480,
446,
13,
288,
7734,
509,
2943,
273,
18364,
18,
11437,
67,
6949,
13491,
397,
261,
5814,
692,
18364,
18,
11437,
67,
6460,
294,
374,
1769,
7734,
7334,
273,
394,
15644,
812,
12,
2704,
1387,
12,
1304,
18,
3922,
12,
768,
780,
16,
629,
13,
3631,
13491,
638,
16,
2943,
1769,
7734,
7334,
1649,
18,
458,
12,
856,
16,
394,
27657,
12,
11930,
16,
498,
16,
1247,
3183,
10019,
5411,
289,
469,
288,
7734,
6036,
1318,
4373,
273,
2332,
18,
588,
4368,
1318,
5621,
7734,
309,
261,
7462,
480,
446,
13,
10792,
4373,
18,
1893,
5041,
12,
588,
5041,
10663,
7734,
309,
261,
5814,
13,
10792,
23227,
18,
4479,
12,
2704,
511,
19866,
653,
12,
11930,
16,
374,
10019,
5411,
289,
202,
202,
97,
12107,
95,
1082,
565,
509,
2943,
273,
18364,
18,
11437,
67,
6949,
397,
261,
5814,
692,
18364,
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,
10813,
812,
1696,
10813,
812,
12,
780,
585,
780,
16,
514,
498,
16,
1250,
1906,
13,
1082,
202,
15069,
1860,
288,
202,
202,
10813,
812,
7334,
273,
446,
31,
202,
202,
430,
12,
1202,
18755,
15329,
1082,
565,
27657,
1241,
31,
5411,
1323,
14015,
4099,
273,
261,
27630,
13,
1247,
3183,
18,
13835,
10756,
480,
446,
13,
7734,
7334,
1649,
18,
4479,
12,
4099,
18,
856,
1769,
5411,
1241,
273,
7334,
1649,
18,
588,
12,
856,
1769,
5411,
309,
261,
4099,
480,
446,
13,
7734,
7334,
273,
261,
10813,
812,
13,
1241,
18,
588,
5621,
5411,
309,
261,
11930,
422,
446,
597,
585,
780,
480,
446,
13,
288,
7734,
509,
2943,
273,
18364,
18,
11437,
67,
6949,
2
] |
boolean sameEntries(Object[] entries) { return Arrays.equals(knownEntries, entries);
|
boolean sameEntries(ArrayList entries) { return CollectionUtil.isIsomorphic(knownEntries,entries);
|
boolean sameEntries(Object[] entries) { return Arrays.equals(knownEntries, entries); }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/11d1dcd648344737d77d4999d9bbfc4a23ea53aa/NamePoll.java/buggy/src/org/lockss/poller/NamePoll.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
1967,
5400,
12,
921,
8526,
3222,
13,
288,
1377,
327,
5647,
18,
14963,
12,
2994,
5400,
16,
3222,
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,
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5647,
18,
14963,
12,
2994,
5400,
16,
3222,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} else { throw new IllegalStateException(); } }
|
} else { throw new IllegalStateException(); } }
|
public Object next() { // iterate on this node timesRequested++; index++; // handle the empty tree case if(currentNode == null) { // beyond the tree in the trailing nulls if(index < size) { return null; // at the end of the list } else { throw new NoSuchElementException(); } // at the edge of the current node } else if(timesRequested > currentNode.emptySpace) { // move to the next node if(index < treeSize) { findNextNode(); timesRequested = 0; // act on the trailing nulls } else { // beyond the tree in the trailing nulls if(index < size) { return null; // at the end of the list } else { throw new NoSuchElementException(); } } } // next() was a null value if(timesRequested < currentNode.emptySpace) { return null; // next() was the value of this node } else if(timesRequested == currentNode.emptySpace) { return currentNode.value; // the iterator is out of state } else { throw new IllegalStateException(); } }
|
10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/a5b2117cfb5023b8823cf00b1f40ceb929f481a0/SparseListNode.java/clean/source/ca/odell/glazedlists/impl/adt/SparseListNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1033,
1024,
1435,
288,
1082,
202,
759,
7401,
603,
333,
756,
1082,
202,
8293,
11244,
9904,
31,
1082,
202,
1615,
9904,
31,
1082,
202,
759,
1640,
326,
1008,
2151,
648,
1082,
202,
430,
12,
2972,
907,
422,
446,
13,
288,
9506,
202,
759,
17940,
326,
2151,
316,
326,
7341,
27778,
9506,
202,
430,
12,
1615,
411,
963,
13,
288,
6862,
202,
2463,
446,
31,
9506,
202,
759,
622,
326,
679,
434,
326,
666,
9506,
202,
97,
469,
288,
6862,
202,
12849,
394,
23104,
5621,
9506,
202,
97,
1082,
202,
759,
622,
326,
3591,
434,
326,
783,
756,
1082,
202,
97,
469,
309,
12,
8293,
11244,
405,
13425,
18,
5531,
3819,
13,
288,
9506,
202,
759,
3635,
358,
326,
1024,
756,
9506,
202,
430,
12,
1615,
411,
2151,
1225,
13,
288,
6862,
202,
4720,
2134,
907,
5621,
6862,
202,
8293,
11244,
273,
374,
31,
9506,
202,
759,
1328,
603,
326,
7341,
27778,
9506,
202,
97,
469,
288,
6862,
202,
759,
17940,
326,
2151,
316,
326,
7341,
27778,
6862,
202,
430,
12,
1615,
411,
963,
13,
288,
25083,
202,
2463,
446,
31,
6862,
202,
759,
622,
326,
679,
434,
326,
666,
6862,
202,
97,
469,
288,
25083,
202,
12849,
394,
23104,
5621,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
1082,
202,
759,
1024,
1435,
1703,
279,
446,
460,
1082,
202,
430,
12,
8293,
11244,
411,
13425,
18,
5531,
3819,
13,
288,
9506,
202,
2463,
446,
31,
1082,
202,
759,
1024,
1435,
1703,
326,
460,
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,
1033,
1024,
1435,
288,
1082,
202,
759,
7401,
603,
333,
756,
1082,
202,
8293,
11244,
9904,
31,
1082,
202,
1615,
9904,
31,
1082,
202,
759,
1640,
326,
1008,
2151,
648,
1082,
202,
430,
12,
2972,
907,
422,
446,
13,
288,
9506,
202,
759,
17940,
326,
2151,
316,
326,
7341,
27778,
9506,
202,
430,
12,
1615,
411,
963,
13,
288,
6862,
202,
2463,
446,
31,
9506,
202,
759,
622,
326,
679,
434,
326,
666,
9506,
202,
97,
469,
288,
6862,
202,
12849,
394,
23104,
5621,
9506,
202,
97,
1082,
202,
759,
622,
326,
3591,
434,
326,
783,
756,
1082,
202,
97,
469,
309,
12,
8293,
11244,
405,
13425,
18,
5531,
3819,
13,
288,
9506,
202,
759,
3635,
2
] |
private void initPage() throws DocumentException { // initialisation of some page objects annotations = new PdfArray(); fontDictionary = new PdfFontDictionary(); xObjectDictionary = new PdfXObjectDictionary(); writer.resetContent(); // the pagenumber is incremented pageN++; // graphics and text are initialized float oldleading = leading; int oldAlignment = alignment; imageEnd = -1; imageIndentRight = 0; imageIndentLeft = 0; graphics = new PdfContentByte(writer); text = new PdfContentByte(writer); text.beginText(); leading = 16; indentBottom = 0; indentTop = 0; currentHeight = 0; // backgroundcolors, etc... thisPageSize = pageSize; if (pageSize.backgroundColor() != null || pageSize.hasBorders() || pageSize.borderColor() != null || pageSize.grayFill() > 0) { add(pageSize); } // if there is a watermark, the watermark is added if (watermark != null) { float mt[] = watermark.matrix(); graphics.addImage(watermark, mt[0], mt[1], mt[2], mt[3], watermark.offsetX() - mt[4], watermark.offsetY() - mt[5]); } // if there is a footer, the footer is added if (footer != null) { footer.setPageNumber(pageN); leading = footer.paragraph().leading(); add(footer.paragraph()); // adding the footer limits the height indentBottom = currentHeight; text.moveText(left(), indentBottom()); flushLines(); text.moveText(-left(), -bottom()); footer.setTop(bottom(currentHeight)); footer.setBottom(bottom() - (0.75f * leading)); footer.setLeft(left()); footer.setRight(right()); graphics.rectangle(footer); indentBottom = currentHeight + leading * 3 / 2; currentHeight = 0; } // we move to the left/top position of the page text.moveText(left(), top()); // if there is a header, the header = added if (header != null) { header.setPageNumber(pageN); leading = header.paragraph().leading(); text.moveText(0, leading); add(header.paragraph()); newLine(); indentTop = currentHeight - leading; header.setTop(top() + leading); header.setBottom(indentTop() + leading * 2 / 3); header.setLeft(left()); header.setRight(right()); graphics.rectangle(header); flushLines(); currentHeight = 0; } pageEmpty = true; // if there is an image waiting to be drawn, draw it try { if (imageWait != null) { add(imageWait); imageWait = null; } } catch(Exception e) { e.printStackTrace(); } leading = oldleading; alignment = oldAlignment; carriageReturn(); PdfPageEvent pageEvent = writer.getPageEvent(); if (pageEvent != null) { if (firstPageEvent) { pageEvent.onOpenDocument(writer, this); } pageEvent.onStartPage(writer, this); } firstPageEvent = false; }
|
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/57f3b7461acee82684c0e028473d49bed56a6b35/PdfDocument.java/clean/itext/src/com/lowagie/text/pdf/PdfDocument.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
1964,
1435,
1216,
4319,
503,
288,
7734,
368,
2172,
10742,
434,
2690,
1363,
2184,
3639,
5617,
273,
394,
9989,
1076,
5621,
3639,
3512,
10905,
273,
394,
9989,
5711,
10905,
5621,
3639,
619,
921,
10905,
273,
394,
9989,
60,
921,
10905,
5621,
3639,
2633,
18,
6208,
1350,
5621,
7734,
368,
326,
4262,
21998,
353,
28859,
3639,
1363,
50,
9904,
31,
7734,
368,
17313,
471,
977,
854,
6454,
3639,
1431,
1592,
27200,
273,
7676,
31,
3639,
509,
1592,
11535,
273,
8710,
31,
7734,
1316,
1638,
273,
300,
21,
31,
3639,
1316,
7790,
4726,
273,
374,
31,
3639,
1316,
7790,
3910,
273,
374,
31,
3639,
17313,
273,
394,
9989,
1350,
3216,
12,
6299,
1769,
3639,
977,
273,
394,
9989,
1350,
3216,
12,
6299,
1769,
3639,
977,
18,
10086,
1528,
5621,
3639,
7676,
273,
2872,
31,
3639,
3504,
10393,
273,
374,
31,
3639,
3504,
3401,
273,
374,
31,
3639,
783,
2686,
273,
374,
31,
7734,
368,
5412,
9724,
16,
5527,
2777,
3639,
333,
24035,
273,
13387,
31,
3639,
309,
261,
26165,
18,
9342,
2957,
1435,
480,
446,
3639,
747,
13387,
18,
5332,
21621,
1435,
3639,
747,
13387,
18,
8815,
2957,
1435,
480,
446,
3639,
747,
13387,
18,
22440,
8026,
1435,
405,
374,
13,
288,
5411,
527,
12,
26165,
1769,
3639,
289,
7734,
368,
309,
1915,
353,
279,
14377,
16,
326,
14377,
353,
3096,
3639,
309,
261,
91,
10003,
480,
446,
13,
288,
5411,
1431,
5874,
8526,
273,
14377,
18,
5667,
5621,
5411,
17313,
18,
1289,
2040,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
1964,
1435,
1216,
4319,
503,
288,
7734,
368,
2172,
10742,
434,
2690,
1363,
2184,
3639,
5617,
273,
394,
9989,
1076,
5621,
3639,
3512,
10905,
273,
394,
9989,
5711,
10905,
5621,
3639,
619,
921,
10905,
273,
394,
9989,
60,
921,
10905,
5621,
3639,
2633,
18,
6208,
1350,
5621,
7734,
368,
326,
4262,
21998,
353,
28859,
3639,
1363,
50,
9904,
31,
7734,
368,
17313,
471,
977,
854,
6454,
3639,
1431,
1592,
27200,
273,
7676,
31,
3639,
509,
1592,
11535,
273,
8710,
31,
7734,
1316,
1638,
273,
300,
21,
31,
3639,
1316,
7790,
4726,
273,
374,
31,
3639,
1316,
7790,
3910,
273,
374,
31,
3639,
17313,
273,
394,
9989,
1350,
3216,
12,
6299,
1769,
3639,
977,
273,
394,
2
] |
||
if (typeCode == null) { ORB orb = ORB.init(); StructMember[] members = new StructMember[ 0 ]; typeCode = orb.create_exception_tc(id(), "InvalidValue", members); } return typeCode;
|
ORB orb = OrbRestricted.Singleton; StructMember[] members = new StructMember[0]; return orb.create_exception_tc(id(), "InvalidValue", members);
|
public static TypeCode type() { if (typeCode == null) { ORB orb = ORB.init(); StructMember[] members = new StructMember[ 0 ]; typeCode = orb.create_exception_tc(id(), "InvalidValue", members); } return typeCode; }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/69bc0cc80cc62a9c38f3e78efa1e73074699ed1b/InvalidValueHelper.java/buggy/org/omg/DynamicAny/DynAnyPackage/InvalidValueHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
30332,
618,
1435,
225,
288,
565,
309,
261,
723,
1085,
422,
446,
13,
1377,
288,
3639,
4869,
38,
16823,
273,
4869,
38,
18,
2738,
5621,
3639,
7362,
4419,
8526,
4833,
273,
394,
7362,
4419,
63,
374,
308,
31,
3639,
618,
1085,
273,
16823,
18,
2640,
67,
4064,
67,
5111,
12,
350,
9334,
315,
1941,
620,
3113,
4833,
1769,
1377,
289,
565,
327,
618,
1085,
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,
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0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
30332,
618,
1435,
225,
288,
565,
309,
261,
723,
1085,
422,
446,
13,
1377,
288,
3639,
4869,
38,
16823,
273,
4869,
38,
18,
2738,
5621,
3639,
7362,
4419,
8526,
4833,
273,
394,
7362,
4419,
63,
374,
308,
31,
3639,
618,
1085,
273,
16823,
18,
2640,
67,
4064,
67,
5111,
12,
350,
9334,
315,
1941,
620,
3113,
4833,
1769,
1377,
289,
565,
327,
618,
1085,
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
] |
byte[] temp = AdminDoc.adminDoc(meta_id_int,meta_id_int,host,user,req,res) ; if (temp != null) { out.write(temp) ; }
|
byte[] tempbytes = AdminDoc.adminDoc(meta_id_int,meta_id_int,host,user,req,res) ; if ( tempbytes != null ) { out.write(tempbytes) ; }
|
public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("adminserver",host) ; String start_url = Utility.getDomainPref( "start_url",host ) ; String servlet_url = Utility.getDomainPref( "servlet_url",host ) ; imcode.server.User user ; // Check if user logged on if( (user=Check.userLoggedOn( req,res,start_url ))==null ) { return ; } res.setContentType( "text/html" ); ServletOutputStream out = res.getOutputStream(); String meta_id = req.getParameter( "meta_id" ) ; int meta_id_int = Integer.parseInt(meta_id) ; if ( !IMCServiceRMI.checkDocAdminRightsAny(imcserver,meta_id_int,user,7 ) ) { // Checking to see if user may edit this byte[] tempbytes ; tempbytes = AdminDoc.adminDoc(meta_id_int,meta_id_int,host,user,req,res) ; if ( tempbytes != null ) { out.write(tempbytes) ; } return ; } Properties metaprops = new Properties () ; String classification = req.getParameter("classification") ; // Hey, hey! Watch as i fetch the permission-set set (pun intended) for each role! String[][] role_permissions = IMCServiceRMI.sqlProcedureMulti(imcserver, "GetRolesDocPermissions "+meta_id) ; // Now watch as i fetch the permission_set for the user... String[] current_permissions = IMCServiceRMI.sqlProcedure(imcserver, "GetUserPermissionSet "+meta_id+", "+user.getInt("user_id")) ; int user_set_id = Integer.parseInt(current_permissions[0]) ; // The users set_id // Check if the user has any business in here whatsoever. if ( user_set_id > 2 ) { out.write(AdminDoc.adminDoc(meta_id_int,meta_id_int,host,user,req,res)) ; return ; } int user_perm_set = Integer.parseInt(current_permissions[1]) ; // The users permission_set for that id int currentdoc_perms = Integer.parseInt(current_permissions[2]) ; // The docspecific permissions for this doc. // Now i'll loop through the db-results, and read the values // for each roles set_id this user may change from the form. // Then set the new value for each. Properties temp_permission_settings = new Properties() ; for ( int i = 0 ; i < role_permissions.length ; ++i ) { String role_set_id_str = role_permissions[i][2] ; // Get the old set_id for this role from the db int role_set_id = Integer.parseInt(role_set_id_str) ; String role_id = role_permissions[i][0] ; // Get the role_id from the db String new_set_id_str = req.getParameter("role_"+role_id) ; // Check the value from the form if ( new_set_id_str == null ) { // If a new set_id for this role didn't come from the form continue ; // skip to the next role. } int new_set_id = Integer.parseInt(new_set_id_str) ; if ( ( // May the user edit permissions at all? user_set_id == 0 // If user has set_id == 0... || (user_perm_set & 4) != 0) // ...or the user may edit permissions for this document // May the user set this particular permission-set? && user_set_id <= new_set_id // May the user edit the permissions for this particular role? && user_set_id <= role_set_id // If user potentially has a more privileged set_id than the role... && (user_set_id != 1 // If user has set_id == 1 (that is , != 0 && != 2) || (role_set_id != 2 // ...he may not change set_id for a role with set_id 2.. && new_set_id != 2) // ...and he may not set set_id to 2 for any role... || (currentdoc_perms&1) != 0// ...unless set_id 1 is more privileged than set_id 2 for this document. ) ) { // We used to save to the db immediately. Now we do it a little bit differently to make it possible to store stuff in the session instead of the db. // IMCServiceRMI.sqlUpdateProcedure(imcserver, "SetRoleDocPermissionSetId "+role_id+","+meta_id+","+new_set_id) ; temp_permission_settings.setProperty(String.valueOf(role_id),String.valueOf(new_set_id)) ; } else { log ("User "+user.getInt("user_id")+" with set_id "+user_set_id+" and permission_set "+user_perm_set+" was denied permission to change set_id for role " +role_id+" from "+role_set_id+" to "+new_set_id+" on meta_id "+meta_id) ; } } /* Now we're going to start accepting the input form fields. This table keeps track of all the fields we may encounter. The "nullvalue" is there to support checkboxes, which, if not checked, report null. So, if the checkboxes do not appear, we know that we should enter the "nullvalue" found here, into the db. */ // NOTE! This table matches the one below. Don't go changing one without changing the other. // FIXME: They should be merged into one table. String [] metatable = { /* Nullable Nullvalue */ "shared", "0", "disable_search","0", "archive", "0", "show_meta", "0", "permissions", "0", "meta_headline", null, "meta_text", null, "meta_image", null, "activated_datetime",null, "archived_datetime", null, "frame_name", null, "target", null } ; final int metatable_cols = 2 ; // I'll make a table to keep track of // what is the least privileged (highest) // set_id you may have, to be able to change // each property. Roles with set_ids 1 and 2 // still need explicit permissions, so this is // mainly for fleshing out what only a user with // "full" (0) may do. (Change whether set-id 1 is // more privileged. "permissions") // I use a bitmask here to specify what permissions // are required for each. // 0 == Unreachable // 1 == Something on the "simple docinfo"-page // 2 == Something on the "advanced docinfo"-page // 3 == 1|2 // 4 == Something on the "rights/permissions"-page // 5 == 1|4 // 6 == 2|4 // 7 == 1|2|4 // NOTE! This table matches the one above. Don't go changing one without changing the other. // FIXME: They should be merged into one table. int[] metatable_restrictions = { // set_id, permission_bitmask 2, 6, //"shared", 2, 2, //"disable_search", 2, 2, //"archive", 2, 6, //"show_meta", 0, 4, //"permissions", 2, 7, //"meta_headline", 2, 3, //"meta_text", 2, 3, //"meta_image", 2, 2, //"activated_datetime", 2, 2, //"archived_datetime", 2, 2, //"frame_name", 2, 2 //"target" } ; HashMap inputMap = new HashMap() ; // Loop through all meta-table-properties // Adding them to a HashMap to be used as input // That way i can mutilate the values before all the // permissions are checked. for ( int i=0 ; i<metatable.length ; i+=metatable_cols ) { inputMap.put(metatable[i],req.getParameter(metatable[i])) ; } // Here's some mutilation! // activated_date and activated_time need to be merged, and likewise with archived_date and archived_time SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm") ; String activated_date = req.getParameter("activated_date") ; String activated_time = req.getParameter("activated_time") ; String activated_datetime = null ; if ( activated_date != null && activated_time != null ) { activated_datetime = activated_date + ' ' + activated_time ; try { dateformat.parse(activated_datetime) ; } catch (ParseException ex) { activated_datetime = null ; } } String archived_date = req.getParameter("archived_date") ; String archived_time = req.getParameter("archived_time") ; String archived_datetime = null ; if ( archived_date != null && archived_time != null ) { archived_datetime = archived_date + ' ' + archived_time ; try { dateformat.parse(archived_datetime) ; } catch (ParseException ex) { archived_datetime = null ; } } // Loop through all meta-table-properties // Checking permissions as we go. // All alterations of the inputdata must happen before this for ( int i=0 ; i<metatable.length ; i+=metatable_cols ) { String tmp = (String)inputMap.get(metatable[i]) ; if ( user_set_id > metatable_restrictions[i] // Check on set_id if user is allowed to set this particular property. || (user_set_id > 0 // If user not has full access (0)... && ((user_perm_set & metatable_restrictions[i+1]) == 0) // check permission-bitvector for the users set_id. ) ) { continue ; } if (metatable[i].equals("meta_headline")||metatable[i].equals("meta_text")) { if( tmp != null) tmp = imcode.server.HTMLConv.toHTML(tmp); } if ( tmp != null) { metaprops.setProperty(metatable[i],tmp) ; // If it is found, set it. } else { tmp = metatable[i+1] ; // FIXME: If it is null, that could mean the user // emptied the field. This leads to the property // not being updated, and left unchanged! // _Should_ be ok, since for checkboxes null is valid. (Means false) // For fields other than checkboxes and radiobuttons null would be bad. if ( tmp != null ) { metaprops.setProperty(metatable[i],tmp) ; // If it is not found, set it to the nullvalue. (For checkboxes, which do not appear if they are not checked.) } } } //ok here we fetch the settings fore the default_template 1 & 2 String temp_default_template_1 = req.getParameter("default_template_set_1") == null ? "-1" : req.getParameter("default_template_set_1"); String temp_default_template_2 = req.getParameter("default_template_set_2") == null ? "-1" : req.getParameter("default_template_set_2"); String[] temp_default_templates = {temp_default_template_1, temp_default_template_2}; // Set modified-date to now... Date dt = IMCServiceRMI.getCurrentDate(imcserver) ; metaprops.setProperty("date_modified",dateformat.format(dt)) ; // It's like this... people make changes on the page, and then they forget to press "save" // before they press one of the "define-permission" buttons, and then their settings are lost. // I will fix this by storing the settings in a temporary variable in the user object. // This variable will be an array of four objects. In order: // A String, containing the meta-id of the page. // A Properties, containing the docinfo for the page. (db-column, value) // A Properties, containing the permission_sets for the roles. (role_id, set_id) // A String[], containing default_template 1 and 2 // We also need a name for this temporary variable... i think i shall call it... (Drumroll, please...) "temp_perm_settings" ! // if ( req.getParameter("define_set_1") != null ) { // If user want's to edit permission-set 1 user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parsePermissionSet(meta_id_int,user,host,1,false)) ; return ; } else if ( req.getParameter("define_set_2") != null ) { // If user want's to edit permission-set 2 user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parsePermissionSet(meta_id_int,user,host,2,false)) ; return ; } else if ( req.getParameter("define_new_set_1") != null ) { user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parsePermissionSet(meta_id_int,user,host,1,true)) ; return ; } else if ( req.getParameter("define_new_set_2") != null ) { user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parsePermissionSet(meta_id_int,user,host,2,true)) ; return ; } else if ( req.getParameter("add_roles") != null ) { // The user wants to give permissions to roles that have none. String[] roles_no_rights = req.getParameterValues("roles_no_rights") ; for ( int i = 0 ; roles_no_rights!=null && i<roles_no_rights.length ; ++i ) { temp_permission_settings.setProperty(roles_no_rights[i],"3") ; } user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parseMetaPermission(meta_id,meta_id,user,host,"change_meta_rights.html")) ; return ; } // From now on we enter stuff into the db. // Here i'll construct an sql-query that will update all docinfo // the user is allowed to change. //ok lets start and get the default templates String tempStr = req.getParameter("default_template_set_1"); String template1 = "-1"; String template2 = "-1"; if (tempStr != null) { template1 = req.getParameter("default_template_set_1").equals("") ? "-1" : req.getParameter("default_template_set_1"); } tempStr = req.getParameter("default_template_set_2"); if (tempStr != null) { template2 = req.getParameter("default_template_set_2").equals("")? "-1":req.getParameter("default_template_set_2"); } String sqlStr = "activated_datetime = "+(null == activated_datetime ? "NULL" : "'"+activated_datetime+"'")+ ",archived_datetime = "+(null == archived_datetime ? "NULL" : "'"+archived_datetime+"'") + ","; Enumeration propkeys = metaprops.propertyNames() ; while ( propkeys.hasMoreElements() ) { String temp = (String)propkeys.nextElement() ; String val = metaprops.getProperty(temp) ; String [] vp = { "'", "''" } ; sqlStr += temp +" = '"+Parser.parseDoc(val,vp)+"' " ; if ( propkeys.hasMoreElements() ) { sqlStr += ", " ; } } for (int i=0; i<role_permissions.length; ++i) { String role_id = (String)role_permissions[i][0] ; String new_set_id = temp_permission_settings.getProperty(role_id) ; if (new_set_id == null) { continue ; } IMCServiceRMI.sqlUpdateProcedure(imcserver, "SetRoleDocPermissionSetId "+role_id+","+meta_id+","+new_set_id) ; } if ( sqlStr.length() > 0 ) { sqlStr = "update meta set " +sqlStr+ " where meta_id = "+meta_id ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; } // Save the classifications to the db if ( classification != null ) { classification = imcode.server.HTMLConv.toHTML(classification); IMCServiceRMI.sqlUpdateProcedure(imcserver,"Classification_Fix "+meta_id+",'"+classification+"'") ; } //ok lets save the default templates //log("test sql: UpdateDefaultTemplates "+meta_id+",'"+template1+"','"+template2+"'"); IMCServiceRMI.sqlUpdateProcedure(imcserver, "UpdateDefaultTemplates '"+meta_id+"','"+template1+"','"+template2+"'") ; // Update the date_modified for all parents. IMCServiceRMI.sqlUpdateProcedure(imcserver, "UpdateParentsDateModified "+meta_id) ; // Let's split this joint! byte[] temp = AdminDoc.adminDoc(meta_id_int,meta_id_int,host,user,req,res) ; if (temp != null) { out.write(temp) ; } //lets log to mainlog that the user done stuff mainLog.info(logdateFormat.format(new java.util.Date())+"Metadata on ["+meta_id+"] updated by user: [" +user.getString("first_name").trim() + " " + user.getString("last_name").trim() + "]"); return ; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/cd4b638e76682d918728cd2557cfc09e03e5195c/SaveMeta.java/clean/servlets/SaveMeta.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
202,
202,
780,
1479,
4697,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
202,
780,
709,
71,
3567,
1875,
202,
33,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
202,
780,
787,
67,
718,
540,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
1937,
67,
718,
3113,
2564,
262,
274,
202,
202,
780,
8100,
67,
718,
540,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
23231,
67,
718,
3113,
2564,
262,
274,
202,
202,
381,
710,
18,
3567,
18,
1299,
729,
274,
202,
202,
759,
2073,
309,
729,
7545,
603,
202,
202,
430,
12,
261,
1355,
33,
1564,
18,
1355,
19862,
1398,
12,
1111,
16,
455,
16,
1937,
67,
718,
8623,
631,
2011,
262,
288,
1082,
202,
2463,
274,
202,
202,
97,
202,
202,
455,
18,
542,
8046,
12,
315,
955,
19,
2620,
6,
11272,
202,
202,
4745,
4632,
596,
273,
400,
18,
588,
4632,
5621,
202,
202,
780,
2191,
67,
350,
273,
1111,
18,
588,
1662,
12,
315,
3901,
67,
350,
6,
262,
274,
202,
202,
474,
2191,
67,
350,
67,
474,
273,
2144,
18,
2670,
1702,
12,
3901,
67,
350,
13,
274,
202,
202,
430,
261,
401,
3445,
39,
1179,
54,
7492,
18,
1893,
1759,
4446,
18464,
2961,
12,
381,
71,
3567,
16,
3901,
67,
350,
67,
474,
16,
1355,
16,
27,
262,
262,
288,
202,
759,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
202,
202,
780,
1479,
4697,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
202,
780,
709,
71,
3567,
1875,
202,
33,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
202,
780,
787,
67,
718,
540,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
1937,
67,
718,
3113,
2564,
262,
274,
202,
202,
780,
8100,
67,
718,
540,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
23231,
67,
718,
3113,
2564,
262,
274,
202,
202,
381,
710,
18,
3567,
18,
1299,
729,
274,
202,
202,
759,
2073,
309,
729,
7545,
603,
202,
2
] |
return pos + 1;
|
return pos;
|
public long getPos() { return pos + 1; }
|
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/0250028b330ed682c3962aa71713c76f973e647e/LazyItemIterator.java/buggy/src/java/org/apache/jackrabbit/core/LazyItemIterator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
28666,
1435,
288,
3639,
327,
949,
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,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
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
28666,
1435,
288,
3639,
327,
949,
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,
-100,
-100
] |
public Enumeration getMatchingHeaders(String s[]) { Assert.NotYetImplemented("MessageBase.getMatchingHeaders -- don't know what it's really supposed to do!"); return null;
|
public Enumeration getMatchingHeaders(String s[]) throws MessagingException { return getHeadersObj().getMatchingHeaders(s);
|
public Enumeration getMatchingHeaders(String s[]) { Assert.NotYetImplemented("MessageBase.getMatchingHeaders -- don't know what it's really supposed to do!"); return null; }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/142ac2d2574885f73cb7b993d3684a66a2343069/MessageReadOnly.java/buggy/grendel/sources/grendel/storage/MessageReadOnly.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13864,
336,
9517,
3121,
12,
780,
272,
63,
5717,
288,
565,
5452,
18,
1248,
61,
278,
8644,
2932,
1079,
2171,
18,
588,
9517,
3121,
1493,
2727,
1404,
5055,
4121,
518,
1807,
8654,
18405,
358,
741,
4442,
1769,
565,
327,
446,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13864,
336,
9517,
3121,
12,
780,
272,
63,
5717,
288,
565,
5452,
18,
1248,
61,
278,
8644,
2932,
1079,
2171,
18,
588,
9517,
3121,
1493,
2727,
1404,
5055,
4121,
518,
1807,
8654,
18405,
358,
741,
4442,
1769,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
x += it.getImageWidth(); y += it.getImageHeight();
|
int w = it.getImageWidth(); int h = it.getImageHeight(); TransformLink link = (TransformLink) transformHandler.getLink(it); int axis = link instanceof StackLink ? ((StackLink) link).getStackAxis() : -1; int numSlices = axis < 0 ? 1 : it.getLengths()[axis]; double mw = it.getMicronWidth(); double mh = it.getMicronHeight(); double ms = it.getMicronStep(); x = mw == mw ? mw : w; y = mh == mh ? mh : h; z = ms == ms ? (ms * (numSlices - 1)) : (x < y ? x : y); break;
|
public void guessAspect() { TransformHandler transformHandler = window.getTransformHandler(); DataTransform[] trans = transformHandler.getTransforms(); int x = 0, y = 0; for (int i=0; i<trans.length; i++) { if (!(trans[i] instanceof ImageTransform)) continue; ImageTransform it = (ImageTransform) trans[i]; x += it.getImageWidth(); y += it.getImageHeight(); } if (x == 0) x = 1; if (y == 0) y = 1; double dx = x > y ? (double) x / y : 1.0; double dy = y > x ? (double) y / x : 1.0; panel.setAspect(dx, dy, 1.0); }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/bf8db52b45807c864b040cfb2af8dc0d6b9c0c3a/ViewHandler.java/buggy/loci/visbio/view/ViewHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7274,
17468,
1435,
288,
565,
11514,
1503,
2510,
1503,
273,
2742,
18,
588,
4059,
1503,
5621,
565,
1910,
4059,
8526,
906,
273,
2510,
1503,
18,
588,
15236,
5621,
565,
509,
619,
273,
374,
16,
677,
273,
374,
31,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
2338,
18,
2469,
31,
277,
27245,
288,
1377,
309,
16051,
12,
2338,
63,
77,
65,
1276,
3421,
4059,
3719,
1324,
31,
1377,
3421,
4059,
518,
273,
261,
2040,
4059,
13,
906,
63,
77,
15533,
1377,
619,
1011,
518,
18,
588,
2040,
2384,
5621,
1377,
677,
1011,
518,
18,
588,
2040,
2686,
5621,
565,
289,
565,
309,
261,
92,
422,
374,
13,
619,
273,
404,
31,
565,
309,
261,
93,
422,
374,
13,
677,
273,
404,
31,
565,
1645,
6633,
273,
619,
405,
677,
692,
261,
9056,
13,
619,
342,
677,
294,
404,
18,
20,
31,
565,
1645,
7732,
273,
677,
405,
619,
692,
261,
9056,
13,
677,
342,
619,
294,
404,
18,
20,
31,
565,
6594,
18,
542,
17468,
12,
13437,
16,
7732,
16,
404,
18,
20,
1769,
225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,
1435,
288,
565,
11514,
1503,
2510,
1503,
273,
2742,
18,
588,
4059,
1503,
5621,
565,
1910,
4059,
8526,
906,
273,
2510,
1503,
18,
588,
15236,
5621,
565,
509,
619,
273,
374,
16,
677,
273,
374,
31,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
2338,
18,
2469,
31,
277,
27245,
288,
1377,
309,
16051,
12,
2338,
63,
77,
65,
1276,
3421,
4059,
3719,
1324,
31,
1377,
3421,
4059,
518,
273,
261,
2040,
4059,
13,
906,
63,
77,
15533,
1377,
619,
1011,
518,
18,
588,
2040,
2384,
5621,
1377,
677,
1011,
518,
18,
588,
2040,
2686,
5621,
565,
289,
565,
309,
261,
92,
422,
374,
13,
619,
273,
404,
31,
565,
309,
261,
2
] |
structIndex++; } int lastUsed = structIndex-1;
|
structIndex++; } int lastUsed = structIndex - 1;
|
public void insertNode(Child child) { boolean updateParent = true; // first assign a subtype to the element and add it to the // m_elemTypes table. int type = addToTable(child); int uid = child.getUid(); int level = child.getLevel(); // Nothing there yet if (m_levelArray[level]== null) { Object[] nodesList = new Object[m_defaultSize]; m_levelArray[level] = nodesList; nodesList[0] = child; ((IndexedElem)child.getParentNode()).setIndex(0); } // Add to the existing list else { Object[] nodesList = (Object[])m_levelArray[level]; int structIndex = 0; while (structIndex < nodesList.length && (nodesList[structIndex]!= null) ) { structIndex++; } int lastUsed = structIndex-1; // TODO: cleanup // Need to reallocate?? 2 is the max slots we could // need to add plus 1 to indicate end... if (nodesList.length < lastUsed + 3) { nodesList = allocateNewList(nodesList); m_levelArray[level] = nodesList; } structIndex = 0; while (structIndex < nodesList.length && (nodesList[structIndex]!= null)) { int next = structIndex + 1; Child node = (Child)nodesList[structIndex]; if(child.getParentNode().equals(node.getParentNode())) { // There is already at least one node with this parent at this level // This parent already has a pointer to its children. updateParent = false; if(getType(node) == type) { // This parent already has children of this type. // Add this child to the end of the list for this type. if (nodesList[next] != null) { // Slide down one int i; for (i = lastUsed; i >= next; i--) { if (getType((Child)nodesList[i]) != type) nodesList[i+1] = nodesList[i]; } nodesList[i] = child; } else { nodesList[next] = child; } break; } structIndex = structIndex + 1; } // Keep looking for this parent and this type else { structIndex = structIndex + 1; } }// end while // First node for this parent of this type at this level if (nodesList[structIndex] == null) { nodesList[structIndex] = child; if (updateParent) ((IndexedElem)child.getParentNode()).setIndex(structIndex); } } //end else add to existing list }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/0e2298c0c460e281c6e54e92ac95421ec5eca2e4/LevelIndexer.java/buggy/src/org/apache/xalan/stree/LevelIndexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2243,
907,
12,
1763,
1151,
13,
225,
288,
565,
1250,
1089,
3054,
273,
638,
31,
565,
368,
1122,
2683,
279,
12308,
358,
326,
930,
471,
527,
518,
358,
326,
565,
368,
312,
67,
10037,
2016,
1014,
18,
565,
509,
618,
273,
9604,
1388,
12,
3624,
1769,
202,
225,
509,
4555,
273,
1151,
18,
588,
11994,
5621,
565,
509,
1801,
273,
1151,
18,
588,
2355,
5621,
8227,
368,
13389,
1915,
4671,
565,
309,
261,
81,
67,
2815,
1076,
63,
2815,
65,
631,
446,
13,
565,
288,
1377,
1033,
8526,
2199,
682,
273,
394,
1033,
63,
81,
67,
1886,
1225,
15533,
1377,
312,
67,
2815,
1076,
63,
2815,
65,
273,
2199,
682,
31,
1377,
2199,
682,
63,
20,
65,
273,
1151,
31,
1377,
14015,
15034,
7498,
13,
3624,
18,
588,
3054,
907,
1435,
2934,
542,
1016,
12,
20,
1769,
202,
565,
289,
565,
368,
1436,
358,
326,
2062,
666,
565,
469,
565,
288,
1377,
1033,
8526,
2199,
682,
273,
261,
921,
63,
5717,
81,
67,
2815,
1076,
63,
2815,
15533,
202,
565,
509,
1958,
1016,
273,
374,
31,
1377,
1323,
261,
1697,
1016,
411,
2199,
682,
18,
2469,
2398,
597,
261,
4690,
682,
63,
1697,
1016,
65,
5,
33,
446,
13,
262,
1377,
288,
3639,
1958,
1016,
9904,
31,
3196,
565,
289,
1082,
565,
509,
1142,
6668,
273,
1958,
1016,
17,
21,
31,
1377,
368,
2660,
30,
6686,
1377,
368,
12324,
358,
2863,
25450,
14646,
576,
353,
326,
943,
12169,
732,
3377,
1377,
368,
1608,
358,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2243,
907,
12,
1763,
1151,
13,
225,
288,
565,
1250,
1089,
3054,
273,
638,
31,
565,
368,
1122,
2683,
279,
12308,
358,
326,
930,
471,
527,
518,
358,
326,
565,
368,
312,
67,
10037,
2016,
1014,
18,
565,
509,
618,
273,
9604,
1388,
12,
3624,
1769,
202,
225,
509,
4555,
273,
1151,
18,
588,
11994,
5621,
565,
509,
1801,
273,
1151,
18,
588,
2355,
5621,
8227,
368,
13389,
1915,
4671,
565,
309,
261,
81,
67,
2815,
1076,
63,
2815,
65,
631,
446,
13,
565,
288,
1377,
1033,
8526,
2199,
682,
273,
394,
1033,
63,
81,
67,
1886,
1225,
15533,
1377,
312,
67,
2815,
1076,
63,
2815,
65,
273,
2199,
682,
31,
1377,
2199,
682,
63,
20,
2
] |
mucWin.show();
|
mucWin.setVisible(true);
|
public void handleNewMucWindow(MUCWindow mucWin) { if (mucWin == null) return; mucWin.show(); mMucWindows.add(mucWin); AppMenuBar.notifyUpdateWindowMenu(); // Remove the MUC window from the list and menu when it closes mucWin.addWindowListener( new WindowAdapter() { public void windowClosed(WindowEvent we) { mMucWindows.remove(we.getWindow()); AppMenuBar.notifyUpdateWindowMenu(); } }); }
|
49579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49579/82a91daa1ba71fa26a87a28e5f3c8751290d8656/JavolinApp.java/buggy/Javolin/source/org/volity/javolin/JavolinApp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1640,
1908,
49,
5286,
3829,
12,
49,
17479,
3829,
4129,
71,
18049,
13,
565,
288,
3639,
309,
261,
81,
5286,
18049,
422,
446,
13,
5411,
327,
31,
3639,
4129,
71,
18049,
18,
542,
6207,
12,
3767,
1769,
3639,
312,
49,
5286,
10399,
18,
1289,
12,
81,
5286,
18049,
1769,
3639,
4677,
4599,
5190,
18,
12336,
1891,
3829,
4599,
5621,
3639,
368,
3581,
326,
490,
17479,
2742,
628,
326,
666,
471,
3824,
1347,
518,
13445,
3639,
4129,
71,
18049,
18,
1289,
3829,
2223,
12,
5411,
394,
6076,
4216,
1435,
5411,
288,
7734,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1640,
1908,
49,
5286,
3829,
12,
49,
17479,
3829,
4129,
71,
18049,
13,
565,
288,
3639,
309,
261,
81,
5286,
18049,
422,
446,
13,
5411,
327,
31,
3639,
4129,
71,
18049,
18,
542,
6207,
12,
3767,
1769,
3639,
312,
49,
5286,
10399,
18,
1289,
12,
81,
5286,
18049,
1769,
3639,
4677,
4599,
5190,
18,
12336,
1891,
3829,
4599,
5621,
3639,
368,
3581,
326,
490,
17479,
2742,
628,
326,
666,
471,
3824,
1347,
518,
13445,
3639,
4129,
71,
18049,
18,
1289,
3829,
2223,
12,
5411,
394,
6076,
4216,
1435,
5411,
288,
7734,
1071,
918,
2742,
7395,
12,
3829,
1133,
732,
13,
7734,
288,
10792,
312,
49,
5286,
10399,
18,
4479,
12,
1814,
18,
588,
3829,
10663,
10792,
2
] |
public void killTimer(){ killed = true; }
|
public void killTimer() { killed = true; }
|
public void killTimer(){ killed = true; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/e9fcb847f1ddc8d251643493cc2e69d5b2d9d681/TimerThread.java/buggy/org.eclipse.mylyn.context.core/src/org/eclipse/mylyn/core/util/TimerThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8673,
6777,
1435,
95,
377,
202,
79,
13148,
273,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8673,
6777,
1435,
95,
377,
202,
79,
13148,
273,
638,
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
] |
public void setModel(Chart cm)
|
public void setModel(Chart chart, boolean bAddCommand)
|
public void setModel(Chart cm) { this.cm = cm; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/82edcc17a5f7fd43b8e0179a398bcd092111db6d/ChartReportItemImpl.java/buggy/chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19027,
12,
7984,
4980,
16,
1250,
324,
986,
2189,
13,
565,
288,
3639,
333,
18,
7670,
273,
5003,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19027,
12,
7984,
4980,
16,
1250,
324,
986,
2189,
13,
565,
288,
3639,
333,
18,
7670,
273,
5003,
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
] |
_instance = this; _controllers = new ArrayList();
|
_controllers = Collections.synchronizedList(new ArrayList());
|
private TunnelControllerGroup(String configFile) { _log = I2PAppContext.getGlobalContext().logManager().getLog(TunnelControllerGroup.class); _instance = this; _controllers = new ArrayList(); _configFile = configFile; _sessions = new HashMap(4); loadControllers(_configFile); }
|
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/12a6f3e9388df0ccb53fff2246812acaa97799a7/TunnelControllerGroup.java/buggy/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/TunnelControllerGroup.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
399,
8564,
2933,
1114,
12,
780,
12247,
13,
288,
3639,
389,
1330,
273,
467,
22,
52,
3371,
1042,
18,
588,
5160,
1042,
7675,
1330,
1318,
7675,
588,
1343,
12,
20329,
2933,
1114,
18,
1106,
1769,
3639,
389,
1336,
273,
333,
31,
3639,
389,
20171,
273,
394,
2407,
5621,
3639,
389,
1425,
812,
273,
12247,
31,
3639,
389,
16794,
273,
394,
4317,
12,
24,
1769,
3639,
1262,
13745,
24899,
1425,
812,
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,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
1330,
1318,
7675,
588,
1343,
12,
20329,
2933,
1114,
18,
1106,
1769,
3639,
389,
1336,
273,
333,
31,
3639,
389,
20171,
273,
394,
2407,
5621,
3639,
389,
1425,
812,
273,
12247,
31,
3639,
389,
16794,
273,
394,
4317,
12,
24,
1769,
3639,
1262,
13745,
24899,
1425,
812,
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
] |
if (community != null && community.getName().equals(communityName)) { return getHealthMonitorPeers(community); }
|
if (community != null && community.getName().equals(communityName)) { return getHealthMonitorPeers(community); }
|
private Set getHealthMonitorPeers(String communityName) { Community community = commSvc.getCommunity(communityName, null); if (community != null && community.getName().equals(communityName)) { return getHealthMonitorPeers(community); } return Collections.EMPTY_SET; }
|
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/4793b2700e275b6a0064a4a834dd9b24be0995fb/NodeHealthMonitorPlugin.java/clean/mgmt_agent/src/org/cougaar/tools/robustness/ma/plugins/NodeHealthMonitorPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1000,
336,
7802,
7187,
14858,
12,
780,
19833,
461,
13,
288,
565,
16854,
13352,
19833,
273,
1543,
17444,
18,
588,
12136,
13352,
12,
20859,
461,
16,
446,
1769,
1377,
309,
261,
20859,
480,
446,
597,
19833,
18,
17994,
7675,
14963,
12,
20859,
461,
3719,
288,
3639,
327,
336,
7802,
7187,
14858,
12,
20859,
1769,
1377,
289,
565,
327,
5737,
18,
13625,
67,
4043,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1000,
336,
7802,
7187,
14858,
12,
780,
19833,
461,
13,
288,
565,
16854,
13352,
19833,
273,
1543,
17444,
18,
588,
12136,
13352,
12,
20859,
461,
16,
446,
1769,
1377,
309,
261,
20859,
480,
446,
597,
19833,
18,
17994,
7675,
14963,
12,
20859,
461,
3719,
288,
3639,
327,
336,
7802,
7187,
14858,
12,
20859,
1769,
1377,
289,
565,
327,
5737,
18,
13625,
67,
4043,
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
] |
} else { m = new MuleMessage(httpMethod.getResponseBodyAsString(), h);
|
public UMOMessage doSend(UMOEvent event) throws Exception { HttpMethod httpMethod = execute(event, false); try { Properties h = new Properties(); Header[] headers = httpMethod.getRequestHeaders(); for (int i = 0; i < headers.length; i++) { h.setProperty(headers[i].getName(), headers[i].getValue()); } String status = String.valueOf(httpMethod.getStatusCode()); h.setProperty(HttpConnector.HTTP_STATUS_PROPERTY, status); logger.debug("Http response is: " + status); ExceptionPayload ep = null; if(httpMethod.getStatusCode() >= 400 ) { logger.error(httpMethod.getResponseBodyAsString()); ep = new ExceptionPayload(new DispatchException(event.getMessage(), event.getEndpoint(), new Exception("Http call returned a status of: " + httpMethod.getStatusCode() + " " + httpMethod.getStatusText()))); } UMOMessage m = null; if(httpMethod.getResponseHeader(HttpConstants.HEADER_CONTENT_TYPE).getValue().startsWith("text/")) { m = new MuleMessage(httpMethod.getResponseBody(), h); } else { m = new MuleMessage(httpMethod.getResponseBodyAsString(), h); } m.setExceptionPayload(ep); return m; } catch (Exception e) { throw new DispatchException(event.getMessage(), event.getEndpoint(), e); } finally { if (httpMethod != null) httpMethod.releaseConnection(); } }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/d7729498269f8d29f74c36a83550a274ec27c37d/HttpClientMessageDispatcher.java/clean/providers/http/src/java/org/mule/providers/http/HttpClientMessageDispatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
587,
5980,
1079,
741,
3826,
12,
2799,
51,
1133,
871,
13,
1216,
1185,
565,
288,
3639,
17069,
17425,
273,
1836,
12,
2575,
16,
629,
1769,
3639,
775,
288,
5411,
6183,
366,
273,
394,
6183,
5621,
5411,
4304,
8526,
1607,
273,
17425,
18,
588,
691,
3121,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1607,
18,
2469,
31,
277,
27245,
288,
7734,
366,
18,
542,
1396,
12,
2485,
63,
77,
8009,
17994,
9334,
1607,
63,
77,
8009,
24805,
10663,
5411,
289,
5411,
514,
1267,
273,
514,
18,
1132,
951,
12,
2505,
1305,
18,
588,
14041,
10663,
5411,
366,
18,
542,
1396,
12,
2940,
7487,
18,
3693,
67,
8608,
67,
9900,
16,
1267,
1769,
5411,
1194,
18,
4148,
2932,
2940,
766,
353,
30,
315,
397,
1267,
1769,
5411,
1185,
6110,
5529,
273,
446,
31,
5411,
309,
12,
2505,
1305,
18,
588,
14041,
1435,
1545,
7409,
262,
288,
7734,
1194,
18,
1636,
12,
2505,
1305,
18,
588,
23269,
8092,
10663,
7734,
5529,
273,
394,
1185,
6110,
12,
2704,
11552,
503,
12,
2575,
18,
24906,
9334,
871,
18,
588,
3293,
9334,
13491,
394,
1185,
2932,
2940,
745,
2106,
279,
1267,
434,
30,
315,
397,
17425,
18,
588,
14041,
1435,
397,
315,
315,
397,
17425,
18,
588,
1482,
1528,
1435,
3719,
1769,
5411,
289,
5411,
587,
5980,
1079,
312,
273,
446,
31,
5411,
309,
12,
2505,
1305,
18,
588,
1064,
1864,
12,
2940,
2918,
18,
7557,
67,
9689,
67,
2399,
2934,
24805,
7675,
17514,
1190,
2932,
955,
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,
587,
5980,
1079,
741,
3826,
12,
2799,
51,
1133,
871,
13,
1216,
1185,
565,
288,
3639,
17069,
17425,
273,
1836,
12,
2575,
16,
629,
1769,
3639,
775,
288,
5411,
6183,
366,
273,
394,
6183,
5621,
5411,
4304,
8526,
1607,
273,
17425,
18,
588,
691,
3121,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1607,
18,
2469,
31,
277,
27245,
288,
7734,
366,
18,
542,
1396,
12,
2485,
63,
77,
8009,
17994,
9334,
1607,
63,
77,
8009,
24805,
10663,
5411,
289,
5411,
514,
1267,
273,
514,
18,
1132,
951,
12,
2505,
1305,
18,
588,
14041,
10663,
5411,
366,
18,
542,
1396,
12,
2940,
7487,
18,
3693,
67,
8608,
67,
9900,
16,
1267,
1769,
5411,
1194,
2
] |
|
model0.getCursor().current().getState());
|
model0.currentToken().getState());
|
public void testChainEffect() { model0.insertQuote(); model0.insertBackSlash(); model0.insertQuote(); model0.insertQuote(); model0.insertQuote(); model0.insertBackSlash(); model0.insertQuote(); model0.insertQuote(); model0.insertQuote(); model0.insertBackSlash(); model0.insertQuote(); model0.insertQuote(); // "\"""\"""\""# assertEquals("#0.0", "\"", model0.getCursor().prevItem().getType()); assertTrue("#0.1", model0.getCursor().prevItem().isClosed()); model0.move(-3); // "\"""\"""#\"" assertEquals("#1.0", "\\\"", model0.getCursor().current().getType()); assertEquals("#1.1", ReducedToken.INSIDE_QUOTE, model0.getCursor().current().getState()); assertEquals("#1.2", "\"", model0.getCursor().prevItem().getType()); assertEquals("#1.3", ReducedToken.FREE, model0.getCursor().prevItem().getState()); assertTrue("#1.4", model0.getCursor().prevItem().isOpen()); model0.insertBackSlash(); // "\"""\"""\#\"" assertEquals("#2.0", "\\\\", model0.getCursor().current().getType()); assertEquals("#2.1", ReducedToken.INSIDE_QUOTE, model0.getCursor().current().getState()); assertEquals("#2.2", 1, model0.getBlockOffset()); assertEquals("#2.3", "\"", model0.getCursor().prevItem().getType()); assertEquals("#2.4", ReducedToken.FREE, model0.getCursor().prevItem().getState()); assertTrue("#2.5", model0.getCursor().prevItem().isOpen()); assertEquals("#2.6", "\"", model0.getCursor().nextItem().getType()); assertEquals("#2.7", ReducedToken.FREE, model0.getCursor().nextItem().getState()); assertTrue("#2.8", model0.getCursor().nextItem().isClosed()); model0.insertQuote(); // "\"""\"""\"#\"" assertEquals("#3.0", "\\\"", model0.getCursor().current().getType()); assertEquals("#3.1", ReducedToken.INSIDE_QUOTE, model0.getCursor().current().getState()); assertEquals("#3.2", 0, model0.getBlockOffset()); assertEquals("#3.3", "\\\"", model0.getCursor().prevItem().getType()); assertEquals("#3.4", ReducedToken.INSIDE_QUOTE, model0.getCursor().prevItem().getState()); assertEquals("#3.5", "\"", model0.getCursor().nextItem().getType()); assertEquals("#3.6", ReducedToken.FREE, model0.getCursor().nextItem().getState()); assertTrue("#3.7", model0.getCursor().nextItem().isClosed()); model0.move(-10); // "#\"""\"""\"\"" model0.delete(1); // "#"""\"""\"\"" assertEquals("#4.0", "\"", model0.getCursor().prevItem().getType()); assertTrue("#4.1", model0.getCursor().prevItem().isOpen()); assertEquals("#4.2", ReducedToken.FREE, model0.getCursor().prevItem().getState()); assertEquals("#4.3", "\"", model0.getCursor().current().getType()); assertTrue("#4.4", model0.getCursor().current().isClosed()); assertEquals("#4.5", ReducedToken.FREE, model0.getCursor().current().getState()); model0.move(2); // """#"\"""\"\"" assertEquals("#5.0", "\"", model0.getCursor().prevItem().getType()); assertTrue("#5.1", model0.getCursor().prevItem().isOpen()); assertEquals("#5.2", ReducedToken.FREE, model0.getCursor().prevItem().getState()); assertEquals("#5.3", "\"", model0.getCursor().current().getType()); assertTrue("#5.4", model0.getCursor().current().isClosed()); assertEquals("#5.5", ReducedToken.FREE, model0.getCursor().current().getState()); assertEquals("#5.6", "\\\"", model0.getCursor().nextItem().getType()); assertEquals("#5.7", ReducedToken.FREE, model0.getCursor().nextItem().getState()); model0.move(4); // """"\""#"\"\"" assertEquals("#6.0", "\"", model0.getCursor().prevItem().getType()); assertTrue("#6.1", model0.getCursor().prevItem().isOpen()); assertEquals("#6.2", ReducedToken.FREE, model0.getCursor().prevItem().getState()); assertEquals("#6.3", "\"", model0.getCursor().current().getType()); assertTrue("#6.4", model0.getCursor().current().isClosed()); assertEquals("#6.5", ReducedToken.FREE, model0.getCursor().current().getState()); assertEquals("#6.6", "\\\"", model0.getCursor().nextItem().getType()); assertEquals("#6.7", ReducedToken.FREE, model0.getCursor().nextItem().getState()); model0.move(5); // """"\"""\"\"#" assertEquals("#6.0", "\\\"", model0.getCursor().prevItem().getType()); assertEquals("#6.1", ReducedToken.FREE, model0.getCursor().prevItem().getState()); assertEquals("#6.2", "\"", model0.getCursor().current().getType()); assertTrue("#6.3", model0.getCursor().current().isOpen()); assertEquals("#6.4", ReducedToken.FREE, model0.getCursor().current().getState()); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/28c4be6b04d5867405916840b451c47e4acad060/BackSlashTest.java/clean/drjava/src/edu/rice/cs/drjava/model/definitions/reducedmodel/BackSlashTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3893,
12477,
1435,
202,
202,
95,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
2711,
11033,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
2711,
11033,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
2711,
11033,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
759,
1548,
8395,
2412,
3660,
8530,
7,
1082,
202,
11231,
8867,
2932,
7,
20,
18,
20,
3113,
7023,
3113,
938,
20,
18,
588,
6688,
7675,
10001,
1180,
7675,
588,
559,
10663,
1082,
202,
11231,
5510,
2932,
7,
20,
18,
21,
3113,
938,
20,
18,
588,
6688,
7675,
10001,
1180,
7675,
291,
7395,
10663,
1082,
202,
2284,
20,
18,
8501,
19236,
23,
1769,
1082,
202,
759,
1548,
8395,
2412,
3660,
7,
8530,
1082,
202,
11231,
8867,
2932,
7,
21,
18,
20,
3113,
1548,
27576,
3113,
938,
20,
18,
588,
6688,
7675,
2972,
7675,
588,
559,
10663,
1082,
202,
11231,
8867,
2932,
7,
21,
18,
21,
3113,
4621,
26372,
1345,
18,
706,
26498,
67,
18980,
16,
6862,
25083,
938,
20,
18,
588,
6688,
7675,
2972,
7675,
588,
1119,
10663,
1082,
202,
11231,
8867,
2932,
7,
21,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3893,
12477,
1435,
202,
202,
95,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
2711,
11033,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
2711,
11033,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
2711,
11033,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
2284,
20,
18,
6387,
10257,
5621,
1082,
202,
759,
1548,
8395,
2412,
3660,
8530,
7,
2
] |
public org.quickfix.field.MaturityDay getMaturityDay() throws FieldNotFound { org.quickfix.field.MaturityDay value = new org.quickfix.field.MaturityDay();
|
public quickfix.field.MaturityDay getMaturityDay() throws FieldNotFound { quickfix.field.MaturityDay value = new quickfix.field.MaturityDay();
|
public org.quickfix.field.MaturityDay getMaturityDay() throws FieldNotFound { org.quickfix.field.MaturityDay value = new org.quickfix.field.MaturityDay(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataRequest.java/buggy/src/java/src/quickfix/fix42/MarketDataRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
4245,
2108,
270,
2336,
4245,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
4245,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
4245,
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,
15947,
2336,
4245,
2108,
270,
2336,
4245,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
4245,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
4245,
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
] |
if (!ProgressManagerUtil .safeToOpen(ProgressMonitorFocusJobDialog.this,originatingShell)) {
|
if (!ProgressManagerUtil.safeToOpen( ProgressMonitorFocusJobDialog.this, originatingShell)) {
|
public IStatus runInUIThread(IProgressMonitor monitor) { //if the job is done at this point, we don't need the dialog if (job.getState() == Job.NONE) { finishedRun(); cleanUpFinishedJob(); return Status.CANCEL_STATUS; } //now open the progress dialog if nothing else is if (!ProgressManagerUtil .safeToOpen(ProgressMonitorFocusJobDialog.this,originatingShell)) { return Status.CANCEL_STATUS; } //Do not bother if the parent is disposed if (getParentShell() != null && getParentShell().isDisposed()) { return Status.CANCEL_STATUS; } open(); return Status.OK_STATUS; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/35d15f71cf899f7392f14dee1944aa390f1a1388/ProgressMonitorFocusJobDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorFocusJobDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
759,
430,
326,
1719,
353,
2731,
622,
333,
1634,
16,
732,
2727,
1404,
1608,
326,
6176,
9506,
202,
430,
261,
4688,
18,
588,
1119,
1435,
422,
3956,
18,
9826,
13,
288,
6862,
202,
13527,
1997,
5621,
6862,
202,
6200,
1211,
10577,
2278,
5621,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
9506,
202,
97,
9506,
202,
759,
3338,
1696,
326,
4007,
6176,
309,
5083,
469,
353,
9506,
202,
430,
16051,
5491,
1318,
1304,
25083,
202,
18,
4626,
774,
3678,
12,
5491,
7187,
9233,
2278,
6353,
18,
2211,
16,
10012,
1776,
13220,
3719,
288,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
9506,
202,
97,
9506,
202,
759,
3244,
486,
23440,
309,
326,
982,
353,
1015,
7423,
9506,
202,
430,
261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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
759,
430,
326,
1719,
353,
2731,
622,
333,
1634,
16,
732,
2727,
1404,
1608,
326,
6176,
9506,
202,
430,
261,
4688,
18,
588,
1119,
1435,
422,
3956,
18,
9826,
13,
288,
6862,
202,
13527,
1997,
5621,
6862,
202,
6200,
1211,
10577,
2278,
5621,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
9506,
202,
97,
9506,
202,
759,
3338,
1696,
326,
4007,
6176,
309,
5083,
469,
353,
9506,
202,
430,
16051,
5491,
1318,
1304,
25083,
202,
18,
4626,
774,
3678,
12,
5491,
7187,
9233,
2278,
6353,
18,
2211,
16,
10012,
1776,
13220,
3719,
288,
6862,
202,
2463,
2685,
18,
2
] |
PropertyDefImpl def = getApplicablePropertyDef(qName, type, multiValued); return createChildProperty(qName, type, def);
|
return getOrCreateProperty(qName, type, multiValued, status);
|
protected PropertyImpl getOrCreateProperty(String name, int type, boolean multiValued) throws RepositoryException { try { return (PropertyImpl) getProperty(name); } catch (PathNotFoundException pnfe) { // fall through } // property does not exist yet... QName qName; try { qName = QName.fromJCRName(name, session.getNamespaceResolver()); } catch (IllegalNameException ine) { throw new RepositoryException("invalid property name: " + name, ine); } catch (UnknownPrefixException upe) { throw new RepositoryException("invalid property name: " + name, upe); } // find definition for the specified property and create property PropertyDefImpl def = getApplicablePropertyDef(qName, type, multiValued); return createChildProperty(qName, type, def); }
|
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/9c877bd5e5301a28846412aecab609bd71230334/NodeImpl.java/clean/src/java/org/apache/jackrabbit/core/NodeImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4276,
2828,
13486,
1396,
12,
780,
508,
16,
509,
618,
16,
1250,
3309,
27558,
13,
5411,
1216,
13367,
288,
3639,
775,
288,
5411,
327,
261,
1396,
2828,
13,
3911,
12,
529,
1769,
3639,
289,
1044,
261,
743,
3990,
11059,
3030,
13,
288,
5411,
368,
4159,
3059,
3639,
289,
3639,
368,
1272,
1552,
486,
1005,
4671,
2777,
3639,
16723,
22914,
31,
3639,
775,
288,
5411,
22914,
273,
16723,
18,
2080,
46,
5093,
461,
12,
529,
16,
1339,
18,
588,
3402,
4301,
10663,
3639,
289,
1044,
261,
12195,
26771,
316,
73,
13,
288,
5411,
604,
394,
13367,
2932,
5387,
1272,
508,
30,
315,
397,
508,
16,
316,
73,
1769,
3639,
289,
1044,
261,
4874,
2244,
503,
582,
347,
13,
288,
5411,
604,
394,
13367,
2932,
5387,
1272,
508,
30,
315,
397,
508,
16,
582,
347,
1769,
3639,
289,
3639,
368,
1104,
2379,
364,
326,
1269,
1272,
471,
752,
1272,
3639,
4276,
3262,
2828,
1652,
273,
336,
27873,
1396,
3262,
12,
85,
461,
16,
618,
16,
3309,
27558,
1769,
3639,
327,
752,
1763,
1396,
12,
85,
461,
16,
618,
16,
1652,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
4750,
4276,
2828,
13486,
1396,
12,
780,
508,
16,
509,
618,
16,
1250,
3309,
27558,
13,
5411,
1216,
13367,
288,
3639,
775,
288,
5411,
327,
261,
1396,
2828,
13,
3911,
12,
529,
1769,
3639,
289,
1044,
261,
743,
3990,
11059,
3030,
13,
288,
5411,
368,
4159,
3059,
3639,
289,
3639,
368,
1272,
1552,
486,
1005,
4671,
2777,
3639,
16723,
22914,
31,
3639,
775,
288,
5411,
22914,
273,
16723,
18,
2080,
46,
5093,
461,
12,
529,
16,
1339,
18,
588,
3402,
4301,
10663,
3639,
289,
1044,
261,
12195,
26771,
316,
73,
13,
288,
5411,
604,
394,
13367,
2932,
5387,
1272,
508,
30,
315,
397,
508,
16,
316,
73,
1769,
3639,
289,
1044,
261,
4874,
2244,
503,
582,
347,
13,
2
] |
return (Group) m_groups.get(name);
|
return m_groups.get(name);
|
public Group getGroup(String name) throws IOException, MarshalException, ValidationException { update(); return (Group) m_groups.get(name); }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/7a86f2834f8ee12135b42094cac6abd75242882c/GroupManager.java/clean/opennms-services/src/main/java/org/opennms/netmgt/config/GroupManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3756,
11751,
12,
780,
508,
13,
1216,
1860,
16,
5884,
503,
16,
15614,
288,
3639,
1089,
5621,
5411,
327,
312,
67,
4650,
18,
588,
12,
529,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
3756,
11751,
12,
780,
508,
13,
1216,
1860,
16,
5884,
503,
16,
15614,
288,
3639,
1089,
5621,
5411,
327,
312,
67,
4650,
18,
588,
12,
529,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return RubyFixnum.newFixnum(runtime, cal.get(Calendar.DAY_OF_MONTH));
|
return getRuntime().newFixnum(cal.get(Calendar.DAY_OF_MONTH));
|
public RubyInteger mday() { return RubyFixnum.newFixnum(runtime, cal.get(Calendar.DAY_OF_MONTH)); }
|
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyTime.java/buggy/src/org/jruby/RubyTime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
312,
2881,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
771,
18,
588,
12,
7335,
18,
10339,
67,
3932,
67,
13942,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
2881,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
771,
18,
588,
12,
7335,
18,
10339,
67,
3932,
67,
13942,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static boolean isNameStart(char ch)
|
public static boolean isNameStart(int ch)
|
public static boolean isNameStart(char ch) { return Character.isLetter(ch) || ch == '_'; }
|
36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/13865762136612896360e1dab469607524a3b76c/XName.java/buggy/gnu/xml/XName.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
30430,
1685,
12,
474,
462,
13,
225,
288,
565,
327,
6577,
18,
291,
13938,
12,
343,
13,
747,
462,
422,
4427,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
30430,
1685,
12,
474,
462,
13,
225,
288,
565,
327,
6577,
18,
291,
13938,
12,
343,
13,
747,
462,
422,
4427,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private static String literalBeanShellReplace(String found)
|
private static String literalBeanShellReplace(View view, String found)
|
private static String literalBeanShellReplace(String found) throws Exception { replaceNS.setVariable("_0",found); Object obj = BeanShell.runCachedBlock( replaceMethod, null,replaceNS); if(obj == null) return ""; else return obj.toString(); } //}}}
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/534b2bec104d20deac772463218547112f8b4112/SearchAndReplace.java/buggy/org/gjt/sp/jedit/search/SearchAndReplace.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
7158,
3381,
13220,
5729,
12,
780,
1392,
13,
202,
202,
15069,
1185,
202,
95,
202,
202,
2079,
3156,
18,
542,
3092,
2932,
67,
20,
3113,
7015,
1769,
202,
202,
921,
1081,
273,
7704,
13220,
18,
2681,
9839,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
7158,
3381,
13220,
5729,
12,
780,
1392,
13,
202,
202,
15069,
1185,
202,
95,
202,
202,
2079,
3156,
18,
542,
3092,
2932,
67,
20,
3113,
7015,
1769,
202,
202,
921,
1081,
273,
7704,
13220,
18,
2681,
9839,
1768,
12,
1082,
202,
2079,
1305,
16,
1082,
202,
2011,
16,
2079,
3156,
1769,
202,
202,
430,
12,
2603,
422,
446,
13,
1082,
202,
2463,
1408,
31,
202,
202,
12107,
1082,
202,
2463,
1081,
18,
10492,
5621,
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
] |
if (kind > 123) kind = 123;
|
if (kind > 124) kind = 124;
|
static private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 82; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 32: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 5); else if (curChar == 34) jjCheckNAddStates(6, 8); else if (curChar == 39) jjAddStates(9, 10); else if (curChar == 46) jjCheckNAdd(1); if ((0x3fe000000000000L & l) != 0L) { if (kind > 118) kind = 118; jjCheckNAddStates(11, 18); } else if (curChar == 48) jjAddStates(19, 22); if (curChar == 48) { if (kind > 114) kind = 114; jjCheckNAddStates(23, 30); } break; case 0: if (curChar == 46) jjCheckNAdd(1); break; case 1: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 126) kind = 126; jjCheckNAddStates(31, 33); break; case 3: if ((0x280000000000L & l) != 0L) jjCheckNAdd(4); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 126) kind = 126; jjCheckNAddTwoStates(4, 5); break; case 6: if (curChar == 39) jjAddStates(9, 10); break; case 7: if ((0xffffff7fffffdbffL & l) != 0L) jjCheckNAdd(8); break; case 8: if (curChar == 39 && kind > 128) kind = 128; break; case 10: if ((0x8000008400000000L & l) != 0L) jjCheckNAdd(8); break; case 11: if (curChar == 48) jjCheckNAddTwoStates(12, 8); break; case 12: if ((0xff000000000000L & l) != 0L) jjCheckNAddTwoStates(12, 8); break; case 13: if ((0x3fe000000000000L & l) != 0L) jjCheckNAddTwoStates(14, 8); break; case 14: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(14, 8); break; case 15: if (curChar == 48) jjAddStates(34, 35); break; case 17: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(17, 8); break; case 19: if (curChar == 34) jjCheckNAddStates(6, 8); break; case 20: if ((0xfffffffbffffdbffL & l) != 0L) jjCheckNAddStates(6, 8); break; case 22: if ((0x8000008400000000L & l) != 0L) jjCheckNAddStates(6, 8); break; case 23: if (curChar == 34 && kind > 129) kind = 129; break; case 24: if (curChar == 48) jjCheckNAddStates(36, 39); break; case 25: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(36, 39); break; case 26: if ((0x3fe000000000000L & l) != 0L) jjCheckNAddStates(40, 43); break; case 27: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(40, 43); break; case 28: if (curChar == 48) jjAddStates(44, 45); break; case 30: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(46, 49); break; case 33: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 131) kind = 131; jjstateSet[jjnewStateCnt++] = 33; break; case 34: if (curChar != 48) break; if (kind > 114) kind = 114; jjCheckNAddStates(23, 30); break; case 35: if ((0xff000000000000L & l) == 0L) break; if (kind > 114) kind = 114; jjCheckNAdd(35); break; case 36: if ((0xff000000000000L & l) != 0L) jjCheckNAddTwoStates(36, 37); break; case 38: if ((0xff000000000000L & l) != 0L) jjCheckNAddTwoStates(38, 39); break; case 40: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(50, 52); break; case 45: if ((0x3fe000000000000L & l) == 0L) break; if (kind > 118) kind = 118; jjCheckNAddStates(11, 18); break; case 46: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 118) kind = 118; jjCheckNAdd(46); break; case 47: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(47, 48); break; case 49: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 51: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(53, 55); break; case 56: if (curChar == 48) jjAddStates(19, 22); break; case 58: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 122) kind = 122; jjstateSet[jjnewStateCnt++] = 58; break; case 60: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 123) kind = 123; jjAddStates(56, 57); break; case 63: if ((0x3ff000000000000L & l) != 0L) jjAddStates(58, 59); break; case 66: if ((0x3ff000000000000L & l) != 0L) jjAddStates(60, 62); break; case 71: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 5); break; case 72: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(72, 73); break; case 73: if (curChar != 46) break; if (kind > 126) kind = 126; jjCheckNAddStates(63, 65); break; case 74: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 126) kind = 126; jjCheckNAddStates(63, 65); break; case 75: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(75, 0); break; case 76: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(76, 77); break; case 78: if ((0x280000000000L & l) != 0L) jjCheckNAdd(79); break; case 79: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 127) kind = 127; jjCheckNAddTwoStates(79, 80); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 32: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 131) kind = 131; jjCheckNAdd(33); } if (curChar == 76) jjAddStates(66, 67); break; case 2: if ((0x2000000020L & l) != 0L) jjAddStates(68, 69); break; case 5: if ((0x104000001040L & l) != 0L && kind > 126) kind = 126; break; case 7: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAdd(8); break; case 9: if (curChar == 92) jjAddStates(70, 73); break; case 10: if ((0x54404610000000L & l) != 0L) jjCheckNAdd(8); break; case 16: if (curChar == 120) jjCheckNAdd(17); break; case 17: if ((0x7e0000007eL & l) != 0L) jjCheckNAddTwoStates(17, 8); break; case 18: if (curChar == 88) jjCheckNAdd(17); break; case 20: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAddStates(6, 8); break; case 21: if (curChar == 92) jjAddStates(74, 77); break; case 22: if ((0x54404610000000L & l) != 0L) jjCheckNAddStates(6, 8); break; case 29: if (curChar == 120) jjCheckNAdd(30); break; case 30: if ((0x7e0000007eL & l) != 0L) jjCheckNAddStates(46, 49); break; case 31: if (curChar == 88) jjCheckNAdd(30); break; case 33: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 131) kind = 131; jjCheckNAdd(33); break; case 37: if ((0x100000001000L & l) != 0L && kind > 115) kind = 115; break; case 39: if ((0x20000000200000L & l) != 0L && kind > 116) kind = 116; break; case 41: if ((0x100000001000L & l) != 0L && kind > 117) kind = 117; break; case 42: if ((0x20000000200000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 41; break; case 43: if ((0x20000000200000L & l) != 0L && kind > 117) kind = 117; break; case 44: if ((0x100000001000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 43; break; case 48: if ((0x20100000201000L & l) != 0L && kind > 119) kind = 119; break; case 50: if ((0x20000000200000L & l) != 0L && kind > 120) kind = 120; break; case 52: if ((0x100000001000L & l) != 0L && kind > 121) kind = 121; break; case 53: if ((0x20000000200000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 52; break; case 54: if ((0x20000000200000L & l) != 0L && kind > 121) kind = 121; break; case 55: if ((0x100000001000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 54; break; case 57: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(58); break; case 58: if ((0x7e0000007eL & l) == 0L) break; if (kind > 122) kind = 122; jjCheckNAdd(58); break; case 59: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(60); break; case 60: if ((0x7e0000007eL & l) == 0L) break; if (kind > 123) kind = 123; jjCheckNAddTwoStates(60, 61); break; case 61: if ((0x20100000201000L & l) != 0L && kind > 123) kind = 123; break; case 62: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(63); break; case 63: if ((0x7e0000007eL & l) != 0L) jjCheckNAddTwoStates(63, 64); break; case 64: if ((0x20000000200000L & l) != 0L && kind > 124) kind = 124; break; case 65: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(66); break; case 66: if ((0x7e0000007eL & l) != 0L) jjCheckNAddStates(60, 62); break; case 67: if ((0x100000001000L & l) != 0L && kind > 125) kind = 125; break; case 68: if ((0x20000000200000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 67; break; case 69: if ((0x20000000200000L & l) != 0L && kind > 125) kind = 125; break; case 70: if ((0x100000001000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 69; break; case 77: if ((0x2000000020L & l) != 0L) jjAddStates(78, 79); break; case 80: if ((0x104000001040L & l) != 0L && kind > 127) kind = 127; break; case 81: if (curChar == 76) jjAddStates(66, 67); break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 7: if ((jjbitVec0[i2] & l2) != 0L) jjstateSet[jjnewStateCnt++] = 8; break; case 20: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(6, 8); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 82 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/380243817238f20dded6aa323a249c33dbaceae3/CPPParserTokenManager.java/buggy/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
760,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
28024,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
741,
540,
288,
5411,
1620,
12,
78,
78,
2019,
694,
63,
413,
77,
5717,
5411,
288,
9079,
648,
3847,
30,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5397,
10684,
1564,
50,
986,
7629,
12,
20,
16,
1381,
1769,
5375,
469,
309,
261,
1397,
2156,
422,
13438,
13,
5397,
10684,
1564,
50,
986,
7629,
12,
26,
16,
1725,
1769,
5375,
469,
309,
261,
1397,
2156,
422,
16977,
13,
5397,
10684,
986,
7629,
12,
29,
16,
1728,
1769,
5375,
469,
309,
261,
1397,
2156,
422,
17077,
13,
5397,
10684,
1564,
50,
986,
12,
21,
1769,
5375,
309,
14015,
20,
92,
23,
3030,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5375,
288,
5397,
309,
261,
9224,
405,
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,
760,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
28024,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
2
] |
"Can't be handled as rss document. " + e).getEmptyParse();
|
"Can't be handled as rss document. " + e).getEmptyParse(getConf());
|
public Parse getParse(Content content) { List theRSSChannels = null; try { byte[] raw = content.getContent(); // create a new FeedParser... FeedParser parser = FeedParserFactory.newFeedParser(); // create a listener for handling our callbacks FeedParserListener listener = new FeedParserListenerImpl(); // start parsing our feed and have the onItem methods called parser.parse(listener, new ByteArrayInputStream(raw), /* resource */ null); theRSSChannels = ((FeedParserListenerImpl) listener).getChannels(); } catch (Exception e) { // run time exception e.printStackTrace(); LOG.fine("nutch:parse-rss:RSSParser Exception: " + e.getMessage()); return new ParseStatus(ParseStatus.FAILED, "Can't be handled as rss document. " + e).getEmptyParse(); } StringBuffer contentTitle = new StringBuffer(), indexText = new StringBuffer(); List theOutlinks = new Vector(); // for us, the contentTitle will be a concatenation of the titles of the // RSS Channels that we've parsed // and the index text will be a concatenation of the RSS Channel // descriptions, and descriptions of the RSS Items in the channel // also get the outlinks if (theRSSChannels != null) { for (int i = 0; i < theRSSChannels.size(); i++) { RSSChannel r = (RSSChannel) theRSSChannels.get(i); contentTitle.append(r.getTitle()); contentTitle.append(" "); // concat the description to the index text indexText.append(r.getDescription()); indexText.append(" "); if (r.getLink() != null) { try { // get the outlink if (r.getDescription()!= null ) { theOutlinks.add(new Outlink(r.getLink(), r.getDescription())); } else { theOutlinks.add(new Outlink(r.getLink(), "")); } } catch (MalformedURLException e) { LOG.info("nutch:parse-rss:RSSParser Exception: MalformedURL: " + r.getLink() + ": Attempting to continue processing outlinks"); e.printStackTrace(); continue; } } // now get the descriptions of all the underlying RSS Items and // then index them too for (int j = 0; j < r.getItems().size(); j++) { RSSItem theRSSItem = (RSSItem) r.getItems().get(j); indexText.append(theRSSItem.getDescription()); indexText.append(" "); String whichLink = null; if (theRSSItem.getPermalink() != null) whichLink = theRSSItem.getPermalink(); else whichLink = theRSSItem.getLink(); if (whichLink != null) { try { if (theRSSItem.getDescription()!=null) { theOutlinks.add(new Outlink(whichLink, theRSSItem.getDescription())); } else { theOutlinks.add(new Outlink(whichLink, "")); } } catch (MalformedURLException e) { LOG.info("nutch:parse-rss:RSSParser Exception: MalformedURL: " + whichLink + ": Attempting to continue processing outlinks"); e.printStackTrace(); continue; } } } } LOG.fine("nutch:parse-rss:getParse:indexText=" + indexText); LOG.fine("nutch:parse-rss:getParse:contentTitle=" + contentTitle); } else { LOG.fine("nutch:parse-rss:Error:getParse: No RSS Channels recorded!"); } // format the outlinks Outlink[] outlinks = (Outlink[]) theOutlinks.toArray(new Outlink[theOutlinks.size()]); LOG.fine("nutch:parse-rss:getParse:found " + outlinks.length + " outlinks"); // LOG.info("Outlinks: "+outlinks); ParseData parseData = new ParseData(ParseStatus.STATUS_SUCCESS, contentTitle.toString(), outlinks, content.getMetadata()); return new ParseImpl(indexText.toString(), parseData); }
|
57484 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57484/329ff64e9d7295aff108f85e9a8103f5e5f8f398/RSSParser.java/clean/src/plugin/parse-rss/src/java/org/apache/nutch/parse/rss/RSSParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2884,
336,
3201,
12,
1350,
913,
13,
288,
3639,
987,
326,
31211,
10585,
273,
446,
31,
3639,
775,
288,
5411,
1160,
8526,
1831,
273,
913,
18,
588,
1350,
5621,
5411,
368,
752,
279,
394,
14013,
2678,
2777,
5411,
14013,
2678,
2082,
273,
14013,
2678,
1733,
18,
2704,
8141,
2678,
5621,
5411,
368,
752,
279,
2991,
364,
5057,
3134,
6689,
5411,
14013,
2678,
2223,
2991,
273,
394,
14013,
2678,
2223,
2828,
5621,
5411,
368,
787,
5811,
3134,
4746,
471,
1240,
326,
603,
1180,
2590,
2566,
5411,
2082,
18,
2670,
12,
12757,
16,
394,
16180,
12,
1899,
3631,
1748,
1058,
1195,
5411,
446,
1769,
5411,
326,
31211,
10585,
273,
14015,
8141,
2678,
2223,
2828,
13,
2991,
2934,
588,
10585,
5621,
3639,
289,
1044,
261,
503,
425,
13,
288,
368,
1086,
813,
1520,
5411,
425,
18,
1188,
6332,
5621,
5411,
2018,
18,
74,
558,
2932,
82,
322,
343,
30,
2670,
17,
25151,
30,
31211,
2678,
1185,
30,
315,
397,
425,
18,
24906,
10663,
5411,
327,
394,
2884,
1482,
12,
3201,
1482,
18,
11965,
16,
10792,
315,
2568,
1404,
506,
7681,
487,
18817,
1668,
18,
315,
397,
425,
2934,
588,
1921,
3201,
12,
588,
3976,
10663,
3639,
289,
3639,
6674,
913,
4247,
273,
394,
6674,
9334,
770,
1528,
273,
394,
6674,
5621,
3639,
987,
326,
1182,
7135,
273,
394,
5589,
5621,
3639,
368,
364,
584,
16,
326,
913,
4247,
903,
506,
279,
26833,
434,
326,
14693,
434,
326,
3639,
368,
31481,
25263,
716,
732,
8081,
2707,
3639,
368,
471,
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,
2884,
336,
3201,
12,
1350,
913,
13,
288,
3639,
987,
326,
31211,
10585,
273,
446,
31,
3639,
775,
288,
5411,
1160,
8526,
1831,
273,
913,
18,
588,
1350,
5621,
5411,
368,
752,
279,
394,
14013,
2678,
2777,
5411,
14013,
2678,
2082,
273,
14013,
2678,
1733,
18,
2704,
8141,
2678,
5621,
5411,
368,
752,
279,
2991,
364,
5057,
3134,
6689,
5411,
14013,
2678,
2223,
2991,
273,
394,
14013,
2678,
2223,
2828,
5621,
5411,
368,
787,
5811,
3134,
4746,
471,
1240,
326,
603,
1180,
2590,
2566,
5411,
2082,
18,
2670,
12,
12757,
16,
394,
16180,
12,
1899,
3631,
1748,
1058,
1195,
5411,
446,
1769,
5411,
326,
31211,
10585,
273,
14015,
8141,
2678,
2223,
2828,
13,
2991,
2934,
588,
10585,
2
] |
public String getRelativePathForAttribute(String resourceType, int nodeId, String resource, String attribute) {
|
public String getRelativePathForAttribute(String resourceType, String resourceParent, String resource, String attribute) {
|
public String getRelativePathForAttribute(String resourceType, int nodeId, String resource, String attribute) { GraphResourceType rt = getResourceTypeByName(resourceType); return rt.getRelativePathForAttribute(nodeId, resource, attribute); }
|
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/7cadd90c230c6882b649ca0aeb73e308dd404f6b/PerformanceModel.java/clean/opennms-webapp/src/main/java/org/opennms/web/performance/PerformanceModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
26986,
1290,
1499,
12,
780,
14110,
16,
514,
1058,
3054,
16,
514,
1058,
16,
514,
1566,
13,
288,
3639,
5601,
15631,
8253,
273,
22779,
5911,
12,
3146,
559,
1769,
3639,
327,
8253,
18,
588,
16519,
1290,
1499,
12,
2159,
548,
16,
1058,
16,
1566,
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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,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
26986,
1290,
1499,
12,
780,
14110,
16,
514,
1058,
3054,
16,
514,
1058,
16,
514,
1566,
13,
288,
3639,
5601,
15631,
8253,
273,
22779,
5911,
12,
3146,
559,
1769,
3639,
327,
8253,
18,
588,
16519,
1290,
1499,
12,
2159,
548,
16,
1058,
16,
1566,
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
] |
if (fJavaTextTools != null) { fJavaTextTools.dispose(); fJavaTextTools= null; }
|
public void dispose() { if (fJavaTextTools != null) { fJavaTextTools.dispose(); fJavaTextTools= null; } if (fOverlayStore != null) { fOverlayStore.stop(); fOverlayStore= null; } if (fBackgroundColor != null && !fBackgroundColor.isDisposed()) fBackgroundColor.dispose(); super.dispose(); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/f2db10c91328da519181230c2f744867ca4fb6b1/JavaEditorPreferencePage.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
1435,
288,
9506,
202,
430,
261,
74,
5852,
1528,
10348,
480,
446,
13,
288,
1082,
202,
74,
5852,
1528,
10348,
18,
2251,
4150,
5621,
1082,
202,
74,
5852,
1528,
10348,
33,
446,
31,
202,
202,
97,
9506,
202,
430,
261,
74,
11627,
2257,
480,
446,
13,
288,
1082,
202,
74,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
1435,
288,
9506,
202,
430,
261,
74,
5852,
1528,
10348,
480,
446,
13,
288,
1082,
202,
74,
5852,
1528,
10348,
18,
2251,
4150,
5621,
1082,
202,
74,
5852,
1528,
10348,
33,
446,
31,
202,
202,
97,
9506,
202,
430,
261,
74,
11627,
2257,
480,
446,
13,
288,
1082,
202,
74,
11627,
2257,
18,
5681,
5621,
1082,
202,
74,
11627,
2257,
33,
446,
31,
202,
202,
97,
202,
202,
430,
261,
74,
21699,
480,
446,
597,
401,
74,
21699,
18,
291,
1669,
7423,
10756,
1082,
202,
74,
21699,
18,
2251,
4150,
5621,
9506,
202,
9565,
18,
2251,
4150,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if ( sourceType == IMAGE_NAME )
|
assert sourceType == IMAGE_NAME; if ( uri == null )
|
public String getImageName( ) { if ( sourceType == IMAGE_NAME ) { if ( uri == null ) { if ( generateBy instanceof ImageItemDesign ) return ( (ImageItemDesign) generateBy ).getImageName( ); } return uri; } return null; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/eba453d99fa69f37267f83ee6ca84bec88535702/ImageContent.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/ImageContent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
10567,
461,
12,
262,
202,
95,
202,
202,
430,
261,
26695,
422,
10757,
67,
1985,
262,
202,
202,
95,
1082,
202,
430,
261,
2003,
422,
446,
262,
1082,
202,
95,
9506,
202,
430,
261,
2103,
858,
1276,
3421,
1180,
15478,
262,
6862,
202,
2463,
261,
261,
2040,
1180,
15478,
13,
2103,
858,
262,
18,
588,
2040,
461,
12,
11272,
1082,
202,
97,
1082,
202,
2463,
2003,
31,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
10567,
461,
12,
262,
202,
95,
202,
202,
430,
261,
26695,
422,
10757,
67,
1985,
262,
202,
202,
95,
1082,
202,
430,
261,
2003,
422,
446,
262,
1082,
202,
95,
9506,
202,
430,
261,
2103,
858,
1276,
3421,
1180,
15478,
262,
6862,
202,
2463,
261,
261,
2040,
1180,
15478,
13,
2103,
858,
262,
18,
588,
2040,
461,
12,
11272,
1082,
202,
97,
1082,
202,
2463,
2003,
31,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public DOMWriter(Writer output) throws UnsupportedEncodingException {
|
public DOMWriter(Writer output) {
|
public DOMWriter(Writer output) throws UnsupportedEncodingException { super(output); tab = 0; println(XML_VERSION); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1bea1ad8a7a01dfced059d4608b3a11a4861d966/XMLMemento.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/XMLMemento.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
482,
4703,
2289,
12,
2289,
876,
13,
288,
377,
202,
202,
9565,
12,
2844,
1769,
377,
202,
202,
7032,
273,
374,
31,
377,
202,
202,
8222,
12,
4201,
67,
5757,
1769,
377,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
482,
4703,
2289,
12,
2289,
876,
13,
288,
377,
202,
202,
9565,
12,
2844,
1769,
377,
202,
202,
7032,
273,
374,
31,
377,
202,
202,
8222,
12,
4201,
67,
5757,
1769,
377,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
time_to_wait-=System.currentTimeMillis()-start;
|
time_to_wait=timeout - (System.currentTimeMillis() - start);
|
private void _waitUntilWithTimeout(Object result, long timeout) throws TimeoutException { long time_to_wait=timeout, start; boolean timeout_occurred=false; synchronized(lock) { if(result == null && cond == null) return; start=System.currentTimeMillis(); while(match(result, cond) == false) { if(timeout <= 0) { doWait(); } else { if(time_to_wait <= 0) { timeout_occurred=true; break; // terminate the while loop } else { doWait(time_to_wait); time_to_wait-=System.currentTimeMillis()-start; } } } if(timeout_occurred) throw new TimeoutException(); } }
|
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/cdea1d71ad7f455a500841b398f04e654a5c5228/CondVar.java/buggy/src/org/jgroups/util/CondVar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
389,
7048,
9716,
1190,
2694,
12,
921,
563,
16,
1525,
2021,
13,
1216,
23334,
288,
3639,
1525,
565,
813,
67,
869,
67,
7048,
33,
4538,
16,
787,
31,
3639,
1250,
2021,
67,
26635,
1118,
33,
5743,
31,
3639,
3852,
12,
739,
13,
288,
5411,
309,
12,
2088,
422,
446,
597,
6941,
422,
446,
13,
327,
31,
5411,
787,
33,
3163,
18,
2972,
28512,
5621,
5411,
1323,
12,
1916,
12,
2088,
16,
6941,
13,
422,
629,
13,
288,
7734,
309,
12,
4538,
1648,
374,
13,
288,
10792,
741,
5480,
5621,
7734,
289,
7734,
469,
288,
10792,
309,
12,
957,
67,
869,
67,
7048,
1648,
374,
13,
288,
13491,
2021,
67,
26635,
1118,
33,
3767,
31,
13491,
898,
31,
368,
10850,
326,
1323,
2798,
10792,
289,
10792,
469,
288,
13491,
741,
5480,
12,
957,
67,
869,
67,
7048,
1769,
13491,
813,
67,
869,
67,
7048,
33,
4538,
300,
261,
3163,
18,
2972,
28512,
1435,
300,
787,
1769,
10792,
289,
7734,
289,
5411,
289,
5411,
309,
12,
4538,
67,
26635,
1118,
13,
7734,
604,
394,
23334,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
389,
7048,
9716,
1190,
2694,
12,
921,
563,
16,
1525,
2021,
13,
1216,
23334,
288,
3639,
1525,
565,
813,
67,
869,
67,
7048,
33,
4538,
16,
787,
31,
3639,
1250,
2021,
67,
26635,
1118,
33,
5743,
31,
3639,
3852,
12,
739,
13,
288,
5411,
309,
12,
2088,
422,
446,
597,
6941,
422,
446,
13,
327,
31,
5411,
787,
33,
3163,
18,
2972,
28512,
5621,
5411,
1323,
12,
1916,
12,
2088,
16,
6941,
13,
422,
629,
13,
288,
7734,
309,
12,
4538,
1648,
374,
13,
288,
10792,
741,
5480,
5621,
7734,
289,
7734,
469,
288,
10792,
309,
12,
957,
67,
869,
67,
7048,
1648,
374,
13,
288,
13491,
2021,
67,
26635,
1118,
33,
3767,
31,
13491,
898,
2
] |
ArtifactRepository localRepository, ArtifactResolver artifactResolver, ArtifactFactory artifactFactory, List remoteArtifactRepositories, boolean downloadSources )
|
ArtifactRepository localRepository, ArtifactResolver artifactResolver, ArtifactFactory artifactFactory, List remoteArtifactRepositories, boolean downloadSources )
|
private void addDependency( XMLWriter writer, Artifact artifact, List referencedReactorArtifacts, ArtifactRepository localRepository, ArtifactResolver artifactResolver, ArtifactFactory artifactFactory, List remoteArtifactRepositories, boolean downloadSources ) throws MojoExecutionException { String path; String kind; String sourcepath = null; if ( referencedReactorArtifacts.contains( artifact ) ) { path = "/" + artifact.getArtifactId(); //$NON-NLS-1$ kind = "src"; //$NON-NLS-1$ } else { File artifactPath = artifact.getFile(); if ( artifactPath == null ) { log.error( Messages.getString( "EclipsePlugin.artifactpathisnull", artifact.getId() ) ); //$NON-NLS-1$ return; } if ( Artifact.SCOPE_SYSTEM.equals( artifact.getScope() ) ) { try { path = artifactPath.getCanonicalPath(); } catch ( IOException e ) { String message = Messages.getString( "EclipsePlugin.cantcanonicalize", artifactPath ); throw new MojoExecutionException( message, e ); } log.info( Messages.getString( "EclipsePlugin.artifactissystemscoped", //$NON-NLS-1$ new Object[] { artifact.getArtifactId(), path } ) ); log.info( Messages.getString( "EclipseClasspathWriter.sourcesnotavailable", //$NON-NLS-1$ artifact.getArtifactId() ) ); kind = "lib"; //$NON-NLS-1$ } else { File localRepositoryFile = new File( localRepository.getBasedir() ); String fullPath = artifactPath.getPath(); path = "M2_REPO/" //$NON-NLS-1$ + EclipseUtils.toRelativeAndFixSeparator( localRepositoryFile, fullPath, false ); if ( downloadSources ) { Artifact sourceArtifact = retrieveSourceArtifact( artifact, remoteArtifactRepositories, localRepository, artifactResolver, artifactFactory ); if ( !sourceArtifact.isResolved() ) { log.info( Messages.getString( "EclipseClasspathWriter.sourcesnotavailable", //$NON-NLS-1$ sourceArtifact.getArtifactId() ) ); } else { log.debug( Messages.getString( "EclipseClasspathWriter.sourcesavailable", //$NON-NLS-1$ new Object[]{sourceArtifact.getArtifactId(), sourceArtifact.getFile().getAbsolutePath()} ) ); sourcepath = "M2_REPO/" //$NON-NLS-1$ + EclipseUtils.toRelativeAndFixSeparator( localRepositoryFile, sourceArtifact.getFile().getAbsolutePath(), false ); } } kind = "var"; //$NON-NLS-1$ } } writer.startElement( "classpathentry" ); //$NON-NLS-1$ writer.addAttribute( "kind", kind ); //$NON-NLS-1$ writer.addAttribute( "path", path ); //$NON-NLS-1$ if ( sourcepath != null ) { writer.addAttribute( "sourcepath", sourcepath ); //$NON-NLS-1$ } writer.endElement(); }
|
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/20190392164c2da037e5f094452064f70b3ecc5b/EclipseClasspathWriter.java/buggy/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseClasspathWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
7787,
12,
3167,
2289,
2633,
16,
14022,
6462,
16,
987,
8042,
426,
3362,
16981,
16,
27573,
14022,
3305,
1191,
3305,
16,
14022,
4301,
6462,
4301,
16,
27573,
14022,
1733,
6462,
1733,
16,
987,
2632,
7581,
18429,
16,
27573,
1250,
4224,
8628,
262,
3639,
1216,
18780,
565,
288,
3639,
514,
589,
31,
3639,
514,
3846,
31,
3639,
514,
1084,
803,
273,
446,
31,
3639,
309,
261,
8042,
426,
3362,
16981,
18,
12298,
12,
6462,
262,
262,
3639,
288,
5411,
589,
273,
4016,
397,
6462,
18,
588,
7581,
548,
5621,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
3846,
273,
315,
4816,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
289,
3639,
469,
3639,
288,
5411,
1387,
6462,
743,
273,
6462,
18,
29925,
5621,
5411,
309,
261,
6462,
743,
422,
446,
262,
5411,
288,
7734,
613,
18,
1636,
12,
4838,
18,
588,
780,
12,
315,
23057,
10472,
3773,
18,
17706,
803,
291,
2011,
3113,
6462,
18,
26321,
1435,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
327,
31,
5411,
289,
5411,
309,
261,
14022,
18,
19444,
67,
14318,
18,
14963,
12,
6462,
18,
588,
3876,
1435,
262,
262,
5411,
288,
7734,
775,
7734,
288,
10792,
589,
273,
6462,
743,
18,
588,
15512,
743,
5621,
7734,
289,
7734,
1044,
261,
1860,
425,
262,
7734,
288,
10792,
514,
883,
273,
4838,
18,
588,
780,
12,
315,
23057,
10472,
3773,
18,
71,
970,
18288,
554,
3113,
6462,
743,
11272,
4766,
3639,
604,
394,
18780,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
7787,
12,
3167,
2289,
2633,
16,
14022,
6462,
16,
987,
8042,
426,
3362,
16981,
16,
27573,
14022,
3305,
1191,
3305,
16,
14022,
4301,
6462,
4301,
16,
27573,
14022,
1733,
6462,
1733,
16,
987,
2632,
7581,
18429,
16,
27573,
1250,
4224,
8628,
262,
3639,
1216,
18780,
565,
288,
3639,
514,
589,
31,
3639,
514,
3846,
31,
3639,
514,
1084,
803,
273,
446,
31,
3639,
309,
261,
8042,
426,
3362,
16981,
18,
12298,
12,
6462,
262,
262,
3639,
288,
5411,
589,
273,
4016,
397,
6462,
18,
588,
7581,
548,
5621,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
3846,
273,
315,
4816,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
289,
3639,
469,
3639,
288,
5411,
2
] |
msg_listener=l;
|
msg_listener = l;
|
public void setMessageListener(MessageListener l) { msg_listener=l; }
|
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/146a9f744cbe901c4fe56f6ceb2100ee15e7e898/MessageDispatcher.java/buggy/src/org/jgroups/blocks/MessageDispatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15227,
2223,
12,
1079,
2223,
328,
13,
288,
3639,
1234,
67,
12757,
273,
328,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15227,
2223,
12,
1079,
2223,
328,
13,
288,
3639,
1234,
67,
12757,
273,
328,
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
] |
cpdd.close(); } catch (Exception e) { Browser.getActiveBrowser().getMessageView().addMessage(cpdCat, new Message(e.toString()), false); } }
|
cpdd.close(); } catch (Exception e) { Browser.getActiveBrowser().getMessageView().addMessage(cpdCat, new Message(e.toString()), false); } }
|
private static void pmdCPD(PackageNode startingNode) { try { Browser.getActiveBrowser().getMessageView().clearMessages(cpdCat); //clear the message window final CPD cpd = new CPD(CPDPropertyGroup.PROP_MIN_TOKEN_COUNT.getInteger(), new LanguageFactory().createLanguage(LanguageFactory.JAVA_KEY)); //cpd.setMinimumTileSize(CPDPropertyGroup.PROP_MIN_TOKEN_COUNT.getInteger()); CPDDialog cpdd = new CPDDialog(cpd); if (startingNode != null) { //rub cpd across the provided node pmdCPDPackage(startingNode, cpd); } else { //otherwise, traverse all the nodes looking for package nodes Node[] nodes = Browser.getActiveBrowser().getActiveProject().getDisplayChildren(); for (int i=0; i<nodes.length; i++ ) { if (nodes[i] instanceof PackageNode) { PackageNode node = (PackageNode)nodes[i]; String packageName = node.getName(); if (packageName != null && !packageName.trim().equals("")) { //if there is no name then this is probably the <Project Source> package - so ignore it so we don't get duplicates pmdCPDPackage(node, cpd); } } } } cpd.go(); if (cpdd.wasCancelled()) { //if the dialog was cancelled by the user then let's get out of here cpdd.close(); return; } //Results results = cpd.getResults(); int resultCount = 0; //if (results != null) { //for (Iterator iter = results.getTiles(); iter.hasNext(); ) { for (Iterator iter = cpd.getMatches(); iter.hasNext(); ) { //Tile t = (Tile)iter.next(); Match m = (Match)iter.next(); resultCount++; int tileLineCount = m.getLineCount(); int dupCount = 0; for (Iterator iter2 = m.iterator(); iter2.hasNext(); ) { dupCount++; iter2.next(); } CPDMessage msg = CPDMessage.createMessage(String.valueOf(dupCount)+" duplicates in code set: " + resultCount, m.getSourceCodeSlice()); for (Iterator iter2 = m.iterator(); iter2.hasNext(); ) { TokenEntry mark = (TokenEntry)iter2.next(); msg.addChildMessage(mark.getBeginLine(), tileLineCount, mark.getTokenSrcID()); } Browser.getActiveBrowser().getMessageView().addMessage(cpdCat, msg, false); } cpdd.close(); } catch (Exception e) { Browser.getActiveBrowser().getMessageView().addMessage(cpdCat, new Message(e.toString()), false); } }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/80383f1476721229bf2581cac88a01646d2e86a7/PMDOpenTool.java/clean/pmd-jbuilder/src/net/sourceforge/pmd/jbuilder/PMDOpenTool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
11794,
3238,
760,
918,
293,
1264,
4258,
40,
12,
2261,
907,
5023,
907,
13,
288,
27573,
775,
288,
4766,
565,
15408,
18,
588,
3896,
9132,
7675,
24906,
1767,
7675,
8507,
5058,
12,
4057,
72,
11554,
1769,
1377,
368,
8507,
326,
883,
2742,
4766,
565,
727,
5181,
40,
29660,
273,
394,
5181,
40,
12,
4258,
40,
1396,
1114,
18,
15811,
67,
6236,
67,
8412,
67,
7240,
18,
588,
4522,
9334,
394,
9889,
1733,
7675,
2640,
3779,
12,
3779,
1733,
18,
27264,
67,
3297,
10019,
4766,
565,
368,
4057,
72,
18,
542,
13042,
9337,
1225,
12,
4258,
40,
1396,
1114,
18,
15811,
67,
6236,
67,
8412,
67,
7240,
18,
588,
4522,
10663,
4766,
565,
5181,
5698,
3529,
3283,
449,
273,
394,
5181,
5698,
3529,
12,
4057,
72,
1769,
4766,
565,
309,
261,
18526,
907,
480,
446,
13,
288,
282,
368,
18271,
29660,
10279,
326,
2112,
756,
4766,
3639,
293,
1264,
4258,
40,
2261,
12,
18526,
907,
16,
29660,
1769,
4766,
565,
289,
4766,
565,
469,
288,
225,
368,
29778,
16,
10080,
777,
326,
2199,
7849,
364,
2181,
2199,
4766,
3639,
2029,
8526,
2199,
273,
15408,
18,
588,
3896,
9132,
7675,
588,
3896,
4109,
7675,
588,
4236,
4212,
5621,
4766,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
4690,
18,
2469,
31,
277,
9904,
262,
288,
4766,
5411,
309,
261,
4690,
63,
77,
65,
1276,
7508,
907,
13,
288,
4766,
7734,
7508,
907,
756,
273,
261,
2261,
907,
13,
4690,
63,
77,
15533,
4766,
7734,
514,
9929,
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,
11794,
3238,
760,
918,
293,
1264,
4258,
40,
12,
2261,
907,
5023,
907,
13,
288,
27573,
775,
288,
4766,
565,
15408,
18,
588,
3896,
9132,
7675,
24906,
1767,
7675,
8507,
5058,
12,
4057,
72,
11554,
1769,
1377,
368,
8507,
326,
883,
2742,
4766,
565,
727,
5181,
40,
29660,
273,
394,
5181,
40,
12,
4258,
40,
1396,
1114,
18,
15811,
67,
6236,
67,
8412,
67,
7240,
18,
588,
4522,
9334,
394,
9889,
1733,
7675,
2640,
3779,
12,
3779,
1733,
18,
27264,
67,
3297,
10019,
4766,
565,
368,
4057,
72,
18,
542,
13042,
9337,
1225,
12,
4258,
40,
1396,
1114,
18,
15811,
67,
6236,
67,
8412,
67,
7240,
18,
588,
4522,
10663,
4766,
565,
5181,
5698,
3529,
3283,
449,
273,
394,
2
] |
if ((0x2400L & l) != 0L && kind > 46) kind = 46;
|
if ((0x2400L & l) != 0L && kind > 49) kind = 49;
|
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 30; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x3ff000000000000L & l) != 0L) { if (kind > 49) kind = 49; jjCheckNAdd(5); } else if (curChar == 36) { if (kind > 10) kind = 10; jjCheckNAddTwoStates(13, 14); } else if (curChar == 45) jjCheckNAdd(5); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 30: if ((0x3ff000000000000L & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(7); } else if ((0x2400L & l) != 0L) { if (kind > 46) kind = 46; } else if ((0x100000200L & l) != 0L) jjCheckNAddStates(34, 36); if (curChar == 13) jjstateSet[jjnewStateCnt++] = 26; break; case 22: case 7: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(7); break; case 28: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(7); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(7); break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 13) kind = 13; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 4: if (curChar == 45) jjCheckNAdd(5); break; case 5: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 49) kind = 49; jjCheckNAdd(5); break; case 10: if (curChar == 36 && kind > 10) kind = 10; break; case 12: if (curChar == 36) jjCheckNAddTwoStates(13, 14); break; case 14: if (curChar == 33 && kind > 11) kind = 11; break; case 15: if (curChar != 36) break; if (kind > 10) kind = 10; jjCheckNAddTwoStates(13, 14); break; case 18: if ((0x100000200L & l) != 0L) jjAddStates(37, 39); break; case 19: if ((0x2400L & l) != 0L && kind > 43) kind = 43; break; case 20: if (curChar == 10 && kind > 43) kind = 43; break; case 21: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 20; break; case 24: if ((0x100000200L & l) != 0L) jjCheckNAddStates(34, 36); break; case 25: if ((0x2400L & l) != 0L && kind > 46) kind = 46; break; case 26: if (curChar == 10 && kind > 46) kind = 46; break; case 27: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 26; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(7); } else if (curChar == 92) jjCheckNAddStates(40, 43); if (curChar == 101) jjAddStates(44, 45); break; case 30: case 7: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(7); break; case 22: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(7); } if (curChar == 108) jjstateSet[jjnewStateCnt++] = 28; else if (curChar == 110) jjstateSet[jjnewStateCnt++] = 17; break; case 28: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(7); } if (curChar == 115) jjstateSet[jjnewStateCnt++] = 23; break; case 23: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(7); } if (curChar == 101) { if (kind > 46) kind = 46; jjAddStates(34, 36); } break; case 1: if (kind > 13) kind = 13; break; case 6: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(7); break; case 8: if (curChar == 92) jjCheckNAddStates(40, 43); break; case 9: if (curChar == 92) jjCheckNAddTwoStates(9, 10); break; case 11: if (curChar == 92) jjCheckNAddTwoStates(11, 12); break; case 13: if (curChar == 92) jjAddStates(46, 47); break; case 16: if (curChar == 101) jjAddStates(44, 45); break; case 17: if (curChar != 100) break; if (kind > 43) kind = 43; jjAddStates(37, 39); break; case 29: if (curChar == 108) jjstateSet[jjnewStateCnt++] = 28; break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13) kind = 13; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 30 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/e128e4125429834f73621c8aa67036ca877e731e/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
24,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
5196,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
741,
540,
288,
5411,
1620,
12,
78,
78,
2019,
694,
63,
413,
77,
5717,
5411,
288,
9079,
648,
890,
30,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5375,
288,
5397,
309,
261,
9224,
405,
17160,
13,
13491,
3846,
273,
17160,
31,
5397,
10684,
1564,
50,
986,
12,
25,
1769,
5375,
289,
5375,
469,
309,
261,
1397,
2156,
422,
6580,
13,
5375,
288,
5397,
309,
261,
9224,
405,
1728,
13,
13491,
3846,
273,
1728,
31,
5397,
10684,
1564,
50,
986,
11710,
7629,
12,
3437,
16,
5045,
1769,
5375,
289,
5375,
469,
309,
261,
1397,
2156,
422,
12292,
13,
5397,
10684,
1564,
50,
986,
12,
25,
1769,
5375,
469,
309,
261,
1397,
2156,
422,
13191,
13,
5397,
10684,
2019,
694,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
24,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
5196,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
2
] |
library.load(runtime); } catch (IOException e) { loadedFeaturesInternal.remove(file); loadedFeatures.remove(runtime.newString(loadName));
|
library.load(runtime); return true; } catch (IOException e) { loadedFeaturesInternal.remove(loadName); loadedFeatures.remove(runtime.newString(loadName));
|
public void smartLoad(String file) { Library library = null; String loadName = file; String[] extensionsToSearch = null; // if an extension is specified, try more targetted searches if (file.indexOf('.') >= 0) { Matcher matcher = null; if ((matcher = sourcePattern.matcher(file)).matches()) { // source extensions extensionsToSearch = sourceSuffixes; // trim extension to try other options file = matcher.group(1); } else if ((matcher = extensionPattern.matcher(file)).matches()) { // extension extensions extensionsToSearch = extensionSuffixes; // trim extension to try other options file = matcher.group(1); } else { // unknown extension throw runtime.newLoadError("no such file to load -- " + file); } } else { // try all extensions extensionsToSearch = allSuffixes; } // First try suffixes with normal loading for (int i = 0; i < extensionsToSearch.length; i++) { library = findLibrary(file + extensionsToSearch[i]); if (library != null) { loadName = file + extensionsToSearch[i]; break; } } // Then try suffixes with classloader loading if (library == null) { for (int i = 0; i < extensionsToSearch.length; i++) { library = findLibraryWithClassloaders(file + extensionsToSearch[i]); if (library != null) { loadName = file + extensionsToSearch[i]; break; } } } library = tryLoadExtension(library,file); // no library or extension found, bail out if (library == null) { throw runtime.newLoadError("no such file to load -- " + file); } // attempt to load the found library synchronized (this) { try { loadedFeaturesInternal.add(file); loadedFeatures.add(runtime.newString(loadName)); library.load(runtime); } catch (IOException e) { loadedFeaturesInternal.remove(file); loadedFeatures.remove(runtime.newString(loadName)); throw runtime.newLoadError("IO error -- " + file); } } }
|
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/df365ec2c2e8b2c1348f22f8102d3515fbe4217c/LoadService.java/buggy/src/org/jruby/runtime/load/LoadService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13706,
2563,
12,
780,
585,
13,
288,
3639,
18694,
5313,
273,
446,
31,
3639,
514,
1262,
461,
273,
585,
31,
3639,
514,
8526,
4418,
774,
2979,
273,
446,
31,
7734,
368,
309,
392,
2710,
353,
1269,
16,
775,
1898,
1018,
2344,
16662,
3639,
309,
261,
768,
18,
31806,
2668,
1093,
13,
1545,
374,
13,
288,
5411,
9757,
4546,
273,
446,
31,
5411,
309,
14015,
22761,
273,
1084,
3234,
18,
22761,
12,
768,
13,
2934,
8436,
10756,
288,
7734,
368,
1084,
4418,
7734,
4418,
774,
2979,
273,
1084,
5791,
281,
31,
27573,
368,
2209,
2710,
358,
775,
1308,
702,
7734,
585,
273,
4546,
18,
1655,
12,
21,
1769,
5411,
289,
469,
309,
14015,
22761,
273,
2710,
3234,
18,
22761,
12,
768,
13,
2934,
8436,
10756,
288,
7734,
368,
2710,
4418,
7734,
4418,
774,
2979,
273,
2710,
5791,
281,
31,
27573,
368,
2209,
2710,
358,
775,
1308,
702,
7734,
585,
273,
4546,
18,
1655,
12,
21,
1769,
5411,
289,
469,
288,
7734,
368,
5917,
2710,
7734,
604,
3099,
18,
2704,
2563,
668,
2932,
2135,
4123,
585,
358,
1262,
1493,
315,
397,
585,
1769,
5411,
289,
3639,
289,
469,
288,
5411,
368,
775,
777,
4418,
5411,
4418,
774,
2979,
273,
777,
5791,
281,
31,
3639,
289,
7734,
368,
5783,
775,
18333,
598,
2212,
7153,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4418,
774,
2979,
18,
2469,
31,
277,
27245,
288,
5411,
5313,
273,
1104,
9313,
12,
768,
397,
4418,
774,
2979,
63,
77,
19226,
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,
13706,
2563,
12,
780,
585,
13,
288,
3639,
18694,
5313,
273,
446,
31,
3639,
514,
1262,
461,
273,
585,
31,
3639,
514,
8526,
4418,
774,
2979,
273,
446,
31,
7734,
368,
309,
392,
2710,
353,
1269,
16,
775,
1898,
1018,
2344,
16662,
3639,
309,
261,
768,
18,
31806,
2668,
1093,
13,
1545,
374,
13,
288,
5411,
9757,
4546,
273,
446,
31,
5411,
309,
14015,
22761,
273,
1084,
3234,
18,
22761,
12,
768,
13,
2934,
8436,
10756,
288,
7734,
368,
1084,
4418,
7734,
4418,
774,
2979,
273,
1084,
5791,
281,
31,
27573,
368,
2209,
2710,
358,
775,
1308,
702,
7734,
585,
273,
4546,
18,
1655,
12,
21,
1769,
5411,
289,
469,
309,
14015,
22761,
273,
2710,
3234,
2
] |
private void updateUI(Trigger trigger) { if (trigger == null) { clear(); return; } cmbTriggerType.setText(trigger.getCondition().getName()); cmbActionType.setText(trigger.getAction().getType().getName()); switch (cmbActionType.getSelectionIndex()) { case 0: this.slValues.topControl = cmpURL; URLValue urlValue = (URLValue) trigger.getAction().getValue(); txtBaseURL.setText((urlValue.getBaseUrl().length() > 0) ? urlValue.getBaseUrl() : ""); txtTarget.setText((urlValue.getTarget().length() > 0) ? urlValue.getTarget() : ""); txtBaseParm.setText((urlValue.getBaseParameterName().length() > 0) ? urlValue.getBaseParameterName() : ""); txtValueParm.setText((urlValue.getValueParameterName().length() > 0) ? urlValue.getValueParameterName() : ""); txtSeriesParm.setText((urlValue.getSeriesParameterName().length() > 0) ? urlValue .getSeriesParameterName() : ""); break; case 1: this.slValues.topControl = cmpTooltip; TooltipValue tooltipValue = (TooltipValue) trigger.getAction().getValue(); iscDelay.setValue(tooltipValue.getDelay()); txtTooltipText.setText((tooltipValue.getText().length() > 0) ? tooltipValue.getText() : ""); break; case 2: this.slValues.topControl = cmpVisibility; SeriesValue seriesValue = (SeriesValue) trigger.getAction().getValue(); txtSeriesDefinition.setText((seriesValue.getName().length() > 0) ? seriesValue.getName() : ""); break; case 3: this.slValues.topControl = cmpScript; ScriptValue scriptValue = (ScriptValue) trigger.getAction().getValue(); txtScript.setText((scriptValue.getScript().length() > 0) ? scriptValue.getScript() : ""); break; } grpValue.layout(); }
|
private void updateUI( Trigger trigger ) { if ( trigger == null ) { clear( ); return; } cmbTriggerType.setText( LiteralHelper.triggerConditionSet.getDisplayNameByName( trigger.getCondition( ) .getName( ) ) ); cmbActionType.setText( LiteralHelper.actionTypeSet.getDisplayNameByName( trigger.getAction( ) .getType( ) .getName( ) ) ); switch ( cmbActionType.getSelectionIndex( ) ) { case 0 : this.slValues.topControl = cmpURL; URLValue urlValue = (URLValue) trigger.getAction( ).getValue( ); txtBaseURL.setText( ( urlValue.getBaseUrl( ).length( ) > 0 ) ? urlValue.getBaseUrl( ) : "" ); txtTarget.setText( ( urlValue.getTarget( ).length( ) > 0 ) ? urlValue.getTarget( ) : "" ); txtBaseParm.setText( ( urlValue.getBaseParameterName( ) .length( ) > 0 ) ? urlValue.getBaseParameterName( ) : "" ); txtValueParm.setText( ( urlValue.getValueParameterName( ) .length( ) > 0 ) ? urlValue.getValueParameterName( ) : "" ); txtSeriesParm.setText( ( urlValue.getSeriesParameterName( ) .length( ) > 0 ) ? urlValue.getSeriesParameterName( ) : "" ); break; case 1 : this.slValues.topControl = cmpTooltip; TooltipValue tooltipValue = (TooltipValue) trigger.getAction( ) .getValue( ); iscDelay.setValue( tooltipValue.getDelay( ) ); txtTooltipText.setText( ( tooltipValue.getText( ).length( ) > 0 ) ? tooltipValue.getText( ) : "" ); break; case 2 : this.slValues.topControl = cmpVisibility; SeriesValue seriesValue = (SeriesValue) trigger.getAction( ) .getValue( ); txtSeriesDefinition.setText( ( seriesValue.getName( ).length( ) > 0 ) ? seriesValue.getName( ) : "" ); break; case 3 : this.slValues.topControl = cmpScript; ScriptValue scriptValue = (ScriptValue) trigger.getAction( ) .getValue( ); txtScript.setText( ( scriptValue.getScript( ).length( ) > 0 ) ? scriptValue.getScript( ) : "" ); break; } grpValue.layout( ); }
|
private void updateUI(Trigger trigger) { if (trigger == null) { clear(); return; } cmbTriggerType.setText(trigger.getCondition().getName()); cmbActionType.setText(trigger.getAction().getType().getName()); switch (cmbActionType.getSelectionIndex()) { case 0: this.slValues.topControl = cmpURL; URLValue urlValue = (URLValue) trigger.getAction().getValue(); txtBaseURL.setText((urlValue.getBaseUrl().length() > 0) ? urlValue.getBaseUrl() : ""); //$NON-NLS-1$ txtTarget.setText((urlValue.getTarget().length() > 0) ? urlValue.getTarget() : ""); //$NON-NLS-1$ txtBaseParm.setText((urlValue.getBaseParameterName().length() > 0) ? urlValue.getBaseParameterName() : ""); //$NON-NLS-1$ txtValueParm.setText((urlValue.getValueParameterName().length() > 0) ? urlValue.getValueParameterName() : ""); //$NON-NLS-1$ txtSeriesParm.setText((urlValue.getSeriesParameterName().length() > 0) ? urlValue .getSeriesParameterName() : ""); //$NON-NLS-1$ break; case 1: this.slValues.topControl = cmpTooltip; TooltipValue tooltipValue = (TooltipValue) trigger.getAction().getValue(); iscDelay.setValue(tooltipValue.getDelay()); txtTooltipText.setText((tooltipValue.getText().length() > 0) ? tooltipValue.getText() : ""); //$NON-NLS-1$ break; case 2: this.slValues.topControl = cmpVisibility; SeriesValue seriesValue = (SeriesValue) trigger.getAction().getValue(); txtSeriesDefinition.setText((seriesValue.getName().length() > 0) ? seriesValue.getName() : ""); //$NON-NLS-1$ break; case 3: this.slValues.topControl = cmpScript; ScriptValue scriptValue = (ScriptValue) trigger.getAction().getValue(); txtScript.setText((scriptValue.getScript().length() > 0) ? scriptValue.getScript() : ""); //$NON-NLS-1$ break; } grpValue.layout(); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/35e5ac52b1d08645abccb0fa32df6279923b4897/TriggerDataComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/TriggerDataComposite.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
5370,
12,
6518,
3080,
13,
565,
288,
3639,
309,
261,
10668,
422,
446,
13,
3639,
288,
5411,
2424,
5621,
5411,
327,
31,
3639,
289,
3639,
276,
1627,
6518,
559,
18,
542,
1528,
12,
10668,
18,
588,
3418,
7675,
17994,
10663,
3639,
276,
1627,
26995,
18,
542,
1528,
12,
10668,
18,
588,
1803,
7675,
588,
559,
7675,
17994,
10663,
3639,
1620,
261,
71,
1627,
26995,
18,
588,
6233,
1016,
10756,
3639,
288,
5411,
648,
374,
30,
7734,
333,
18,
2069,
1972,
18,
3669,
3367,
273,
9411,
1785,
31,
7734,
1976,
620,
880,
620,
273,
261,
1785,
620,
13,
3080,
18,
588,
1803,
7675,
24805,
5621,
7734,
6463,
29064,
18,
542,
1528,
12443,
718,
620,
18,
588,
14074,
7675,
2469,
1435,
405,
374,
13,
692,
880,
620,
18,
588,
14074,
1435,
294,
1408,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
6463,
2326,
18,
542,
1528,
12443,
718,
620,
18,
588,
2326,
7675,
2469,
1435,
405,
374,
13,
692,
880,
620,
18,
588,
2326,
1435,
294,
1408,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
6463,
2171,
27144,
18,
542,
1528,
12443,
718,
620,
18,
588,
2171,
24586,
7675,
2469,
1435,
405,
374,
13,
692,
880,
620,
18,
588,
2171,
24586,
1435,
10792,
294,
1408,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
6463,
620,
27144,
18,
542,
1528,
12443,
718,
620,
18,
24805,
24586,
7675,
2469,
1435,
405,
374,
13,
692,
880,
620,
18,
24805,
24586,
1435,
10792,
294,
1408,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
5370,
12,
6518,
3080,
13,
565,
288,
3639,
309,
261,
10668,
422,
446,
13,
3639,
288,
5411,
2424,
5621,
5411,
327,
31,
3639,
289,
3639,
276,
1627,
6518,
559,
18,
542,
1528,
12,
10668,
18,
588,
3418,
7675,
17994,
10663,
3639,
276,
1627,
26995,
18,
542,
1528,
12,
10668,
18,
588,
1803,
7675,
588,
559,
7675,
17994,
10663,
3639,
1620,
261,
71,
1627,
26995,
18,
588,
6233,
1016,
10756,
3639,
288,
5411,
648,
374,
30,
7734,
333,
18,
2069,
1972,
18,
3669,
3367,
273,
9411,
1785,
31,
7734,
1976,
620,
880,
620,
273,
261,
1785,
620,
13,
3080,
18,
588,
1803,
7675,
24805,
5621,
7734,
6463,
29064,
18,
542,
1528,
12443,
718,
620,
18,
588,
2
] |
protected final void checkQName(String prefix, String local){
|
protected final void checkQName(String prefix, String local) {
|
protected final void checkQName(String prefix, String local){ if (!errorChecking) { return; } int length; boolean validNCName = false; if (prefix != null) { length=prefix.length(); // check that prefix is NCName if(!xml11Version){ validNCName=XMLChar.isNCNameStart(prefix.charAt(0)); }else{ validNCName=XML11Char.isXML11NCNameStart(prefix.charAt(0)); } if (!validNCName) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "INVALID_CHARACTER_ERR", null); throw new DOMException(DOMException.INVALID_CHARACTER_ERR, msg); } validNCName = false; //reuse //TODO :: pass position of the invalid char in msg //otherwise it doesnot make sense to use this forloop. for (int i = 1; i < length; i++) { if(!xml11Version){ validNCName = XMLChar.isNCName(prefix.charAt(i)); }else{ validNCName = XML11Char.isXML11NCName(prefix.charAt(i)); } if (!validNCName) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "INVALID_CHARACTER_ERR", null); throw new DOMException( DOMException.INVALID_CHARACTER_ERR, msg); } } } length = local.length(); // check local part validNCName = false; if(!xml11Version) { validNCName = XMLChar.isNCNameStart(local.charAt(0)); }else{ validNCName = XML11Char.isXML11NCNameStart(local.charAt(0)); } if (!validNCName) { // REVISIT: add qname parameter to the message String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "INVALID_CHARACTER_ERR", null); throw new DOMException(DOMException.INVALID_CHARACTER_ERR, msg); } validNCName = false; //TODO :: pass position of the invalid char in msg //otherwise it doesnot make sense to use this forloop. for (int i = 1; i < length; i++) { if(!xml11Version){ validNCName = XMLChar.isNCName(local.charAt(i)); }else{ validNCName = XML11Char.isXML11NCName(local.charAt(i)); } if (!validNCName) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "INVALID_CHARACTER_ERR", null); throw new DOMException(DOMException.INVALID_CHARACTER_ERR, msg); } } }
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/10386c34bc864fc2796d60e0afa0b89cea1c7e07/CoreDocumentImpl.java/clean/src/org/apache/xerces/dom/CoreDocumentImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
866,
13688,
12,
780,
1633,
16,
565,
514,
1191,
15329,
3639,
309,
16051,
1636,
14294,
13,
288,
5411,
327,
31,
3639,
289,
3639,
509,
769,
31,
3639,
1250,
923,
10346,
461,
273,
629,
31,
3639,
309,
261,
3239,
480,
446,
13,
288,
5411,
769,
33,
3239,
18,
2469,
5621,
5411,
368,
866,
716,
1633,
353,
423,
39,
461,
5411,
309,
12,
5,
2902,
2499,
1444,
15329,
7734,
923,
10346,
461,
33,
4201,
2156,
18,
291,
10346,
461,
1685,
12,
3239,
18,
3001,
861,
12,
20,
10019,
5411,
289,
12107,
95,
7734,
923,
10346,
461,
33,
4201,
2499,
2156,
18,
291,
4201,
2499,
10346,
461,
1685,
12,
3239,
18,
3001,
861,
12,
20,
10019,
5411,
289,
13491,
309,
16051,
877,
10346,
461,
13,
288,
7734,
514,
1234,
273,
7734,
4703,
1079,
5074,
18,
2139,
1079,
12,
7734,
4703,
1079,
5074,
18,
8168,
67,
18192,
16,
7734,
315,
9347,
67,
27858,
67,
9712,
3113,
7734,
446,
1769,
7734,
604,
394,
4703,
503,
12,
8168,
503,
18,
9347,
67,
27858,
67,
9712,
16,
1234,
1769,
5411,
289,
5411,
923,
10346,
461,
273,
629,
31,
368,
266,
1202,
13491,
368,
6241,
493,
1342,
1754,
434,
326,
2057,
1149,
316,
1234,
5411,
368,
29778,
518,
1552,
902,
1221,
12764,
358,
999,
333,
364,
6498,
18,
5411,
364,
261,
474,
277,
273,
404,
31,
277,
411,
769,
31,
277,
27245,
288,
27573,
309,
12,
5,
2902,
2499,
1444,
15329,
10792,
923,
10346,
461,
273,
3167,
2156,
18,
291,
10346,
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,
727,
918,
866,
13688,
12,
780,
1633,
16,
565,
514,
1191,
15329,
3639,
309,
16051,
1636,
14294,
13,
288,
5411,
327,
31,
3639,
289,
3639,
509,
769,
31,
3639,
1250,
923,
10346,
461,
273,
629,
31,
3639,
309,
261,
3239,
480,
446,
13,
288,
5411,
769,
33,
3239,
18,
2469,
5621,
5411,
368,
866,
716,
1633,
353,
423,
39,
461,
5411,
309,
12,
5,
2902,
2499,
1444,
15329,
7734,
923,
10346,
461,
33,
4201,
2156,
18,
291,
10346,
461,
1685,
12,
3239,
18,
3001,
861,
12,
20,
10019,
5411,
289,
12107,
95,
7734,
923,
10346,
461,
33,
4201,
2499,
2156,
18,
291,
4201,
2499,
10346,
461,
1685,
12,
3239,
18,
3001,
861,
12,
20,
10019,
5411,
289,
2
] |
MessageUtil.warn(handler, "zipfile classpath entry is invalid: " + name + "<" + ioe.getMessage() + ">");
|
MessageUtil.warn(handler, WeaverMessages.format(WeaverMessages.ZIPFILE_ENTRY_INVALID,name,ioe.getMessage()));
|
public void addPath (String name, IMessageHandler handler) { File f = new File(name); String lc = name.toLowerCase(); if (lc.endsWith(".jar") || lc.endsWith(".zip")) { if (!f.isFile()) { MessageUtil.info(handler, "zipfile classpath entry does not exist: " + name); return; } try { entries.add(new ZipFileEntry(f)); } catch (IOException ioe) { MessageUtil.warn(handler, "zipfile classpath entry is invalid: " + name + "<" + ioe.getMessage() + ">"); return; } } else { if (!f.isDirectory()) { MessageUtil.info(handler, "directory classpath entry does not exist: " + name); return; } entries.add(new DirEntry(f)); } }
|
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/4feb835a5339c3f63d73fbd6db2fe307e1f08ed1/ClassPathManager.java/clean/weaver/src/org/aspectj/weaver/bcel/ClassPathManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
25505,
261,
780,
508,
16,
467,
1079,
1503,
1838,
13,
288,
202,
202,
812,
284,
273,
394,
1387,
12,
529,
1769,
202,
202,
780,
9109,
273,
508,
18,
869,
5630,
5621,
202,
202,
430,
261,
17704,
18,
5839,
1190,
2932,
18,
11930,
7923,
747,
9109,
18,
5839,
1190,
2932,
18,
4450,
6,
3719,
288,
1082,
202,
430,
16051,
74,
18,
291,
812,
10756,
288,
1082,
202,
1079,
1304,
18,
1376,
12,
4176,
16,
315,
4450,
768,
10006,
1241,
1552,
486,
1005,
30,
315,
397,
508,
1769,
1082,
202,
2463,
31,
1082,
202,
97,
1082,
202,
698,
288,
9506,
202,
8219,
18,
1289,
12,
2704,
18364,
1622,
12,
74,
10019,
1082,
202,
97,
1044,
261,
14106,
10847,
13,
288,
1082,
202,
1079,
1304,
18,
8935,
12,
4176,
16,
315,
4450,
768,
10006,
1241,
353,
2057,
30,
315,
397,
508,
397,
18165,
397,
10847,
18,
24906,
1435,
397,
14675,
1769,
1082,
202,
2463,
31,
1082,
202,
97,
202,
202,
97,
469,
288,
1082,
202,
430,
16051,
74,
18,
291,
2853,
10756,
288,
1082,
202,
1079,
1304,
18,
1376,
12,
4176,
16,
315,
5149,
10006,
1241,
1552,
486,
1005,
30,
315,
397,
508,
1769,
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,
812,
284,
273,
394,
1387,
12,
529,
1769,
202,
202,
780,
9109,
273,
508,
18,
869,
5630,
5621,
202,
202,
430,
261,
17704,
18,
5839,
1190,
2932,
18,
11930,
7923,
747,
9109,
18,
5839,
1190,
2932,
18,
4450,
6,
3719,
288,
1082,
202,
430,
16051,
74,
18,
291,
812,
10756,
288,
1082,
202,
1079,
1304,
18,
1376,
12,
4176,
16,
315,
4450,
768,
10006,
1241,
1552,
486,
1005,
30,
315,
397,
508,
1769,
1082,
202,
2463,
31,
1082,
202,
97,
1082,
202,
698,
288,
9506,
202,
8219,
18,
1289,
12,
2704,
18364,
1622,
12,
74,
10019,
1082,
202,
97,
1044,
261,
14106,
2
] |
public boolean isValidEntity(Entity entity, Game game) {
|
public boolean isValidEntity(Entity entity, IGame game) {
|
public boolean isValidEntity(Entity entity, Game game) { final boolean oldDone = entity.done; entity.done = false; final boolean result = super.isValidEntity( entity, game ); entity.done = oldDone; return result; }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/f76b85e1165e7f2dc730b78b34cf2b925d97622d/GameTurn.java/buggy/megamek/src/megamek/common/GameTurn.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
4908,
1943,
12,
1943,
1522,
16,
467,
12496,
7920,
13,
288,
5411,
727,
1250,
1592,
7387,
273,
1522,
18,
8734,
31,
5411,
1522,
18,
8734,
273,
629,
31,
5411,
727,
1250,
563,
273,
2240,
18,
26810,
1943,
12,
1522,
16,
7920,
11272,
5411,
1522,
18,
8734,
273,
1592,
7387,
31,
5411,
327,
563,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
4908,
1943,
12,
1943,
1522,
16,
467,
12496,
7920,
13,
288,
5411,
727,
1250,
1592,
7387,
273,
1522,
18,
8734,
31,
5411,
1522,
18,
8734,
273,
629,
31,
5411,
727,
1250,
563,
273,
2240,
18,
26810,
1943,
12,
1522,
16,
7920,
11272,
5411,
1522,
18,
8734,
273,
1592,
7387,
31,
5411,
327,
563,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.BidYield getBidYield() throws FieldNotFound { org.quickfix.field.BidYield value = new org.quickfix.field.BidYield();
|
public quickfix.field.BidYield getBidYield() throws FieldNotFound { quickfix.field.BidYield value = new quickfix.field.BidYield();
|
public org.quickfix.field.BidYield getBidYield() throws FieldNotFound { org.quickfix.field.BidYield value = new org.quickfix.field.BidYield(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteResponse.java/buggy/src/java/src/quickfix/fix44/QuoteResponse.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17763,
16348,
2882,
350,
16348,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17763,
16348,
2882,
350,
16348,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17763,
16348,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17763,
16348,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (output != null) output.close(); if (contentStream != null) contentStream.close();
|
if (output != null) { output.close(); } if (contentStream != null) { contentStream.close(); }
|
protected void writeFile(IFile file, IPath destinationPath) throws IOException, CoreException { FileOutputStream output = null; InputStream contentStream = null; try { contentStream = file.getContents(false); output = new FileOutputStream(destinationPath.toOSString()); int chunkSize = contentStream.available(); byte[] readBuffer = new byte[chunkSize]; int n = contentStream.read(readBuffer); while (n > 0) { output.write(readBuffer); n = contentStream.read(readBuffer); } } finally { if (output != null) output.close(); if (contentStream != null) contentStream.close(); } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/FileSystemExporter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/FileSystemExporter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
13286,
12,
45,
812,
585,
16,
467,
743,
30617,
13,
5411,
1216,
1860,
16,
30015,
288,
3639,
12942,
876,
273,
446,
31,
3639,
5037,
913,
1228,
273,
446,
31,
3639,
775,
288,
5411,
913,
1228,
273,
585,
18,
588,
6323,
12,
5743,
1769,
5411,
876,
273,
394,
12942,
12,
10590,
743,
18,
869,
4618,
780,
10663,
5411,
509,
17791,
273,
913,
1228,
18,
5699,
5621,
5411,
1160,
8526,
31404,
273,
394,
1160,
63,
6551,
1225,
15533,
5411,
509,
290,
273,
913,
1228,
18,
896,
12,
896,
1892,
1769,
5411,
1323,
261,
82,
405,
374,
13,
288,
7734,
876,
18,
2626,
12,
896,
1892,
1769,
7734,
290,
273,
913,
1228,
18,
896,
12,
896,
1892,
1769,
5411,
289,
3639,
289,
3095,
288,
5411,
309,
261,
2844,
480,
446,
13,
7734,
876,
18,
4412,
5621,
5411,
309,
261,
1745,
1228,
480,
446,
13,
7734,
913,
1228,
18,
4412,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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273,
446,
31,
3639,
775,
288,
5411,
913,
1228,
273,
585,
18,
588,
6323,
12,
5743,
1769,
5411,
876,
273,
394,
12942,
12,
10590,
743,
18,
869,
4618,
780,
10663,
5411,
509,
17791,
273,
913,
1228,
18,
5699,
5621,
5411,
1160,
8526,
31404,
273,
394,
1160,
63,
6551,
1225,
15533,
5411,
509,
290,
273,
913,
1228,
18,
896,
12,
896,
1892,
1769,
5411,
1323,
261,
82,
405,
374,
13,
288,
7734,
876,
18,
2626,
12,
896,
1892,
1769,
7734,
290,
273,
913,
1228,
18,
896,
12,
896,
1892,
1769,
5411,
2
] |
public String getRelativePathForAttribute(String resourceType, int nodeId, String resource, String attribute) {
|
public String getRelativePathForAttribute(String resourceType, String resourceParent, String resource, String attribute) {
|
public String getRelativePathForAttribute(String resourceType, int nodeId, String resource, String attribute) { GraphResourceType rt = getResourceTypeByName(resourceType); return rt.getRelativePathForAttribute(nodeId, resource, attribute); }
|
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/54a096d0955c91ed7c9011de68ec960fd6cfde1c/PerformanceModel.java/buggy/opennms-webapp/src/main/java/org/opennms/web/performance/PerformanceModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
26986,
1290,
1499,
12,
780,
14110,
16,
514,
1058,
3054,
16,
514,
1058,
16,
514,
1566,
13,
288,
3639,
5601,
15631,
8253,
273,
22779,
5911,
12,
3146,
559,
1769,
3639,
327,
8253,
18,
588,
16519,
1290,
1499,
12,
2159,
548,
16,
1058,
16,
1566,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
26986,
1290,
1499,
12,
780,
14110,
16,
514,
1058,
3054,
16,
514,
1058,
16,
514,
1566,
13,
288,
3639,
5601,
15631,
8253,
273,
22779,
5911,
12,
3146,
559,
1769,
3639,
327,
8253,
18,
588,
16519,
1290,
1499,
12,
2159,
548,
16,
1058,
16,
1566,
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
] |
BufferChecks.ensureVBOdisabled();
|
BufferChecks.ensureElementVBOdisabled();
|
public static void glDrawRangeElements(int mode, int start, int end, ByteBuffer indices) { BufferChecks.ensureVBOdisabled(); nglDrawRangeElements(mode, start, end, indices.remaining(), GL_UNSIGNED_BYTE, indices, indices.position()); }
|
5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/547e50ed2d8df791c2570f3ac959ce2f0c52d412/GL12.java/clean/src/java/org/lwjgl/opengl/GL12.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
5118,
6493,
2655,
3471,
12,
474,
1965,
16,
509,
787,
16,
509,
679,
16,
7400,
4295,
13,
288,
202,
202,
1892,
4081,
18,
15735,
58,
5315,
9278,
5621,
202,
202,
3368,
80,
6493,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
5118,
6493,
2655,
3471,
12,
474,
1965,
16,
509,
787,
16,
509,
679,
16,
7400,
4295,
13,
288,
202,
202,
1892,
4081,
18,
15735,
58,
5315,
9278,
5621,
202,
202,
3368,
80,
6493,
2655,
3471,
12,
3188,
16,
787,
16,
679,
16,
4295,
18,
17956,
9334,
10252,
67,
2124,
21049,
67,
15377,
16,
4295,
16,
4295,
18,
3276,
10663,
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
] |
DoubleMatrixNamed matrix = edms.getMatrix( ee, qt );
|
assertTrue( ee != null ); assertTrue( newee.equals( ee ) ); DoubleMatrixNamed matrix = edms.getMatrix( newee, qt );
|
public void testFetchAndLoadMultiChipPerSeriesShort() throws Exception { // this.setFlushModeCommit(); // this.setComplete(); assert config != null; String path = getTestFileBasePath(); geoService.setGenerator( new GeoDomainObjectGeneratorLocal( path + GEO_TEST_DATA_ROOT + "shortTest" ) ); /* * HG-U133A. GDS473 is for the other chip (B). Series is GSE674. see * http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=gds&term=GSE674[Accession]&cmd=search */ geoService.fetchAndLoad( "GDS472" ); // get the data back out. ExpressionExperimentService ees = ( ExpressionExperimentService ) getBean( "expressionExperimentService" ); QuantitationTypeService qts = ( QuantitationTypeService ) getBean( "quantitationTypeService" ); ExpressionDataMatrixService edms = new ExpressionDataMatrixService(); edms .setDesignElementDataVectorService( ( DesignElementDataVectorService ) getBean( "designElementDataVectorService" ) ); ExpressionExperiment ee = ees.findByName( "Normal Muscle - Female , Effect of Age" ); QuantitationType qtf = QuantitationType.Factory.newInstance(); qtf.setName( "VALUE" ); qtf.setRepresentation( PrimitiveType.DOUBLE ); qtf.setGeneralType( GeneralType.QUANTITATIVE ); qtf.setType( StandardQuantitationType.MEASUREDSIGNAL ); QuantitationType qt = qts.find( qtf ); assertTrue( qt != null ); DoubleMatrixNamed matrix = edms.getMatrix( ee, qt ); // printMatrix( matrix ); assertEquals( 31, matrix.rows() ); assertEquals( 15, matrix.columns() ); double k = matrix.getRowByName( "200000_s_at" )[matrix.getColIndexByName( "GSE674_bioMaterial_14" )]; assertEquals( 6357.0, k, 0.00001 ); k = matrix.getRowByName( "1007_s_at" )[matrix.getColIndexByName( "GSE674_bioMaterial_14" )]; assertEquals( 1558.0, k, 0.00001 ); }
|
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/fad9e9289b725ed72a2439b804cd172b4825a7b2/GeoDatasetServiceIntegrationTest.java/buggy/gemma-core/src/test/java/ubic/gemma/loader/expression/geo/service/GeoDatasetServiceIntegrationTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5005,
1876,
2563,
5002,
782,
625,
2173,
6485,
4897,
1435,
1216,
1185,
288,
3639,
368,
333,
18,
542,
8207,
2309,
5580,
5621,
1377,
368,
225,
333,
18,
542,
6322,
5621,
3639,
1815,
642,
480,
446,
31,
3639,
514,
589,
273,
29384,
812,
15912,
5621,
3639,
7856,
1179,
18,
542,
3908,
12,
394,
9385,
3748,
921,
3908,
2042,
12,
589,
397,
17788,
51,
67,
16961,
67,
4883,
67,
9185,
397,
315,
6620,
4709,
6,
262,
11272,
3639,
1748,
540,
380,
670,
43,
17,
57,
28615,
37,
18,
611,
3948,
24,
9036,
353,
364,
326,
1308,
18624,
261,
38,
2934,
9225,
353,
611,
1090,
26,
5608,
18,
2621,
540,
380,
1062,
2207,
5591,
18,
82,
7358,
77,
18,
14039,
81,
18,
82,
7392,
18,
75,
1527,
19,
319,
266,
94,
19,
2271,
18,
7142,
10052,
35,
1966,
33,
75,
2377,
10,
6408,
33,
43,
1090,
26,
5608,
63,
1862,
285,
65,
10,
4172,
33,
3072,
540,
1195,
3639,
7856,
1179,
18,
5754,
1876,
2563,
12,
315,
43,
3948,
24,
9060,
6,
11272,
3639,
368,
336,
326,
501,
1473,
596,
18,
3639,
5371,
22338,
1179,
425,
281,
273,
261,
5371,
22338,
1179,
262,
16485,
12,
315,
8692,
22338,
1179,
6,
11272,
3639,
4783,
970,
8773,
559,
1179,
1043,
3428,
273,
261,
4783,
970,
8773,
559,
1179,
262,
16485,
12,
315,
17753,
8773,
559,
1179,
6,
11272,
3639,
5371,
751,
4635,
1179,
1675,
959,
273,
394,
5371,
751,
4635,
1179,
5621,
3639,
1675,
959,
7734,
263,
542,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5005,
1876,
2563,
5002,
782,
625,
2173,
6485,
4897,
1435,
1216,
1185,
288,
3639,
368,
333,
18,
542,
8207,
2309,
5580,
5621,
1377,
368,
225,
333,
18,
542,
6322,
5621,
3639,
1815,
642,
480,
446,
31,
3639,
514,
589,
273,
29384,
812,
15912,
5621,
3639,
7856,
1179,
18,
542,
3908,
12,
394,
9385,
3748,
921,
3908,
2042,
12,
589,
397,
17788,
51,
67,
16961,
67,
4883,
67,
9185,
397,
315,
6620,
4709,
6,
262,
11272,
3639,
1748,
540,
380,
670,
43,
17,
57,
28615,
37,
18,
611,
3948,
24,
9036,
353,
364,
326,
1308,
18624,
261,
38,
2934,
9225,
353,
611,
1090,
26,
5608,
18,
2621,
540,
380,
1062,
2207,
5591,
18,
82,
7358,
77,
2
] |
Object np = getMyProperties().put(name, nullProperty); if (!nullProperty.equals(np)) firePropertyRemoved(prop);
|
p = (Property)getMyProperties().get(name); if (p.isVisible()) firePropertyRemoved(prop);
|
public void setPropertyVisible(Property prop, boolean newVisible) { CompositeName name = prop.getName(); if (newVisible) { Object np = getMyProperties().get(name); if (nullProperty.equals(np)) { getMyProperties().remove(name); firePropertyAdded(prop); } } else { Object np = getMyProperties().put(name, nullProperty); if (!nullProperty.equals(np)) firePropertyRemoved(prop); } }
|
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/b86d46f9ba0a046c4fc088ec855b9ca33db942e2/ConfigurableComponent.java/buggy/csmart/src/org/cougaar/tools/csmart/core/property/ConfigurableComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7486,
6207,
12,
1396,
2270,
16,
1250,
394,
6207,
13,
288,
565,
14728,
461,
508,
273,
2270,
18,
17994,
5621,
565,
309,
261,
2704,
6207,
13,
288,
1377,
1033,
1130,
273,
2108,
93,
2297,
7675,
588,
12,
529,
1769,
1377,
309,
261,
2011,
1396,
18,
14963,
12,
6782,
3719,
288,
3639,
2108,
93,
2297,
7675,
4479,
12,
529,
1769,
3639,
4452,
1396,
8602,
12,
5986,
1769,
1377,
289,
565,
289,
469,
288,
1377,
1033,
1130,
273,
2108,
93,
2297,
7675,
458,
12,
529,
16,
446,
1396,
1769,
1377,
309,
16051,
2011,
1396,
18,
14963,
12,
6782,
3719,
3639,
4452,
1396,
10026,
12,
5986,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
17994,
5621,
565,
309,
261,
2704,
6207,
13,
288,
1377,
1033,
1130,
273,
2108,
93,
2297,
7675,
588,
12,
529,
1769,
1377,
309,
261,
2011,
1396,
18,
14963,
12,
6782,
3719,
288,
3639,
2108,
93,
2297,
7675,
4479,
12,
529,
1769,
3639,
4452,
1396,
8602,
12,
5986,
1769,
1377,
289,
565,
289,
469,
288,
1377,
1033,
1130,
273,
2108,
93,
2297,
7675,
458,
12,
529,
16,
446,
1396,
1769,
1377,
309,
16051,
2011,
1396,
18,
14963,
12,
6782,
3719,
3639,
4452,
1396,
10026,
12,
5986,
1769,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public abstract Session getSession();
|
public Session getSession(EntityMode entityMode) { try { return this.getDelegatedSession().getSession(entityMode); } catch (HibernateException ex) { this.invalidateDelegatedSession(); throw this.handleException(ex); } }
|
public abstract Session getSession();
|
9344 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9344/8a6aedd245de4f4ab4eb9c668d2f41d33c4c057a/SessionDelegator.java/buggy/trunk/java/hibernate3/src/java/org/nanocontainer/hibernate3/SessionDelegator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
3877,
7183,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
3877,
7183,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
List subResources = (List)m_resourceListCache.get(cacheKey);
|
List resourceList = (List)m_resourceListCache.get(cacheKey); if (resourceList == null) { resourceList = m_vfsDriver.readResourceTree( dbc, dbc.currentProject().getId(), (readTree ? parent.getRootPath() : parent.getStructureId().toString()), filter.getType(), filter.getState(), filter.getModifiedAfter(), filter.getModifiedBefore(), filter.getReleaseAfter(), filter.getReleaseBefore(), filter.getExpireAfter(), filter.getExpireBefore(), (readTree ? CmsDriverManager.READMODE_INCLUDE_TREE : CmsDriverManager.READMODE_EXCLUDE_TREE) | (filter.excludeType() ? CmsDriverManager.READMODE_EXCLUDE_TYPE : 0) | (filter.excludeState() ? CmsDriverManager.READMODE_EXCLUDE_STATE : 0) | ((filter.getOnlyFolders() != null) ? (filter.getOnlyFolders().booleanValue() ? CmsDriverManager.READMODE_ONLY_FOLDERS : CmsDriverManager.READMODE_ONLY_FILES) : 0));
|
public List readResources(CmsDbContext dbc, CmsResource parent, CmsResourceFilter filter, boolean readTree) throws CmsException, CmsDataAccessException { // try to get the sub resources from the cache String cacheKey = getCacheKey(new String[] { dbc.currentUser().getName(), filter.getCacheId(), readTree ? "+" : "-", parent.getRootPath()}, dbc.currentProject()); List subResources = (List)m_resourceListCache.get(cacheKey); if (subResources != null && subResources.size() > 0) { // the parent folder is not deleted, and the sub resources were cached, no further operations required // we must however still apply the result filter and update the context dates return updateContextDates(dbc, subResources, filter); } // read the result form the database subResources = m_vfsDriver.readResourceTree( dbc, dbc.currentProject().getId(), (readTree ? parent.getRootPath() : parent.getStructureId().toString()), filter.getType(), filter.getState(), filter.getModifiedAfter(), filter.getModifiedBefore(), filter.getReleaseAfter(), filter.getReleaseBefore(), filter.getExpireAfter(), filter.getExpireBefore(), (readTree ? CmsDriverManager.READMODE_INCLUDE_TREE : CmsDriverManager.READMODE_EXCLUDE_TREE) | (filter.excludeType() ? CmsDriverManager.READMODE_EXCLUDE_TYPE : 0) | (filter.excludeState() ? CmsDriverManager.READMODE_EXCLUDE_STATE : 0) | ((filter.getOnlyFolders() != null) ? (filter.getOnlyFolders().booleanValue() ? CmsDriverManager.READMODE_ONLY_FOLDERS : CmsDriverManager.READMODE_ONLY_FILES) : 0)); for (int i = 0; i < subResources.size(); i++) { CmsResource currentResource = (CmsResource)subResources.get(i); int perms = m_securityManager.hasPermissions( dbc, currentResource, CmsPermissionSet.ACCESS_READ, true, filter); if (perms != CmsSecurityManager.PERM_ALLOWED) { subResources.remove(i--); } } // cache the sub resources m_resourceListCache.put(cacheKey, subResources); // apply the result filter and update the context dates return updateContextDates(dbc, subResources, filter); }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/af4227597144068c14a9a5948326ec275c64e8ae/CmsDriverManager.java/clean/src/org/opencms/db/CmsDriverManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
3805,
12,
4747,
4331,
1042,
9881,
16,
7630,
982,
16,
21082,
1034,
16,
1250,
855,
2471,
13,
565,
1216,
11228,
16,
2149,
751,
9773,
288,
3639,
368,
775,
358,
336,
326,
720,
2703,
628,
326,
1247,
3639,
514,
9097,
273,
26528,
12,
2704,
514,
8526,
288,
5411,
9881,
18,
2972,
1299,
7675,
17994,
9334,
5411,
1034,
18,
588,
1649,
548,
9334,
5411,
855,
2471,
692,
17487,
294,
3701,
3113,
5411,
982,
18,
588,
21302,
1435,
5779,
9881,
18,
2972,
4109,
10663,
3639,
987,
1058,
682,
273,
261,
682,
13,
81,
67,
3146,
682,
1649,
18,
588,
12,
2493,
653,
1769,
309,
261,
3146,
682,
422,
446,
13,
288,
225,
1058,
682,
273,
312,
67,
90,
2556,
4668,
18,
896,
1420,
2471,
12,
9881,
16,
9881,
18,
2972,
4109,
7675,
26321,
9334,
261,
896,
2471,
692,
982,
18,
588,
21302,
1435,
294,
982,
18,
588,
6999,
548,
7675,
10492,
1435,
3631,
1034,
18,
588,
559,
9334,
1034,
18,
588,
1119,
9334,
1034,
18,
588,
4575,
4436,
9334,
1034,
18,
588,
4575,
4649,
9334,
1034,
18,
588,
7391,
4436,
9334,
1034,
18,
588,
7391,
4649,
9334,
1034,
18,
588,
17033,
4436,
9334,
1034,
18,
588,
17033,
4649,
9334,
261,
896,
2471,
692,
2149,
4668,
1318,
18,
6949,
7038,
67,
26003,
67,
26557,
294,
2149,
4668,
1318,
18,
6949,
7038,
67,
2294,
14829,
67,
26557,
13,
571,
261,
2188,
18,
10157,
559,
1435,
692,
2149,
4668,
1318,
18,
6949,
7038,
67,
2294,
14829,
67,
2399,
294,
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,
987,
855,
3805,
12,
4747,
4331,
1042,
9881,
16,
7630,
982,
16,
21082,
1034,
16,
1250,
855,
2471,
13,
565,
1216,
11228,
16,
2149,
751,
9773,
288,
3639,
368,
775,
358,
336,
326,
720,
2703,
628,
326,
1247,
3639,
514,
9097,
273,
26528,
12,
2704,
514,
8526,
288,
5411,
9881,
18,
2972,
1299,
7675,
17994,
9334,
5411,
1034,
18,
588,
1649,
548,
9334,
5411,
855,
2471,
692,
17487,
294,
3701,
3113,
5411,
982,
18,
588,
21302,
1435,
5779,
9881,
18,
2972,
4109,
10663,
3639,
987,
1058,
682,
273,
261,
682,
13,
81,
67,
3146,
682,
1649,
18,
588,
12,
2493,
653,
1769,
309,
261,
3146,
682,
422,
446,
13,
288,
225,
1058,
682,
273,
312,
67,
90,
2
] |
stringBuffer.append(TEXT_111);
|
stringBuffer.append(TEXT_86);
|
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenCommonBase genElement = (GenCommonBase) ((Object[]) argument)[0];final GenChildLabelNode genChildNode = (GenChildLabelNode)genElement;GenNode genHost = genChildNode;GenNode genNode = genChildNode; /*var used by componentEditPolicy.javajetinc*/GenClass underlyingMetaClass = genHost.getDomainMetaClass();GenDiagram genDiagram = genChildNode.getDiagram();final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];LabelModelFacet labelModelFacet = genChildNode.getLabelModelFacet();final boolean isReadOnly = genChildNode.isLabelReadOnly(); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } stringBuffer.append(TEXT_4); stringBuffer.append(TEXT_5); class FeatureGetAccessorHelper { /** * @param containerName the name of the container * @param feature the feature whose value is in interest * @param containerMetaClass the <code>GenClass</code> of the container, or <code>null</code>, if the container is declared as an <code>EObject</code>. * @param needsCastToResultType whether the cast to the result type is required (this parameter is only used if the <code>EClass</code> this feature belongs to is an external interface). */ public void appendFeatureValueGetter(String containerName, GenFeature feature, GenClass containerMetaClass, boolean needsCastToResultType) { if (feature.getGenClass().isExternalInterface()) { boolean needsCastToEObject = containerMetaClass != null && containerMetaClass.isExternalInterface(); if (needsCastToResultType) { stringBuffer.append(TEXT_6); stringBuffer.append(importManager.getImportedName(feature.isListType() ? "java.util.Collection" : feature.getTypeGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_7); } if (needsCastToEObject) { stringBuffer.append(TEXT_8); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_9); } stringBuffer.append(containerName); if (needsCastToEObject) { stringBuffer.append(TEXT_10); } stringBuffer.append(TEXT_11); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_12); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_13); if (needsCastToResultType) { stringBuffer.append(TEXT_14); } } else { boolean needsCastToFeatureGenType = containerMetaClass == null || containerMetaClass.isExternalInterface(); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_15); stringBuffer.append(importManager.getImportedName(feature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_16); } stringBuffer.append(containerName); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_17); } stringBuffer.append(TEXT_18); stringBuffer.append(feature.getGetAccessor()); stringBuffer.append(TEXT_19); } }}final FeatureGetAccessorHelper myFeatureGetAccessorHelper = new FeatureGetAccessorHelper(); stringBuffer.append(TEXT_20); importManager.emitPackageStatement(stringBuffer);importManager.registerInnerClass("TreeEditPartAdapter");importManager.addImport("org.eclipse.gef.EditPolicy");importManager.addImport("org.eclipse.gef.Request");importManager.addImport("org.eclipse.gmf.runtime.notation.View");importManager.addImport("org.eclipse.gmf.runtime.notation.NotationPackage");importManager.addImport("java.util.List");importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_21); stringBuffer.append(genChildNode.getEditPartClassName()); stringBuffer.append(TEXT_22); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.AbstractGraphicalEditPart")); stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_24); {GenCommonBase genCommonBase = genChildNode; stringBuffer.append(TEXT_25); stringBuffer.append(TEXT_26); stringBuffer.append(genCommonBase.getVisualID()); stringBuffer.append(TEXT_27); } stringBuffer.append(TEXT_28); stringBuffer.append(TEXT_29); if (!isReadOnly) { stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_31); } stringBuffer.append(TEXT_32); stringBuffer.append(genChildNode.getEditPartClassName()); stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_35); stringBuffer.append(TEXT_36); stringBuffer.append(TEXT_37); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_39); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_41); String resolvedSemanticElement = "(" + importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName()) + ") getDiagramNode().getElement()"; final String primaryView = "getDiagramNode()"; if (!isReadOnly) { String editPatternCode = "EDIT_PATTERN"; //declared in labelText.javajetinc, used in directEditCommand.jetinc. stringBuffer.append(TEXT_42); stringBuffer.append(TEXT_43); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_44); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy")); stringBuffer.append(TEXT_45); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_46); stringBuffer.append(TEXT_47); stringBuffer.append(TEXT_48); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_49); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_50); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_51); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_52); stringBuffer.append(editPatternCode); stringBuffer.append(TEXT_53); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_54); stringBuffer.append(importManager.getImportedName("java.text.ParseException")); stringBuffer.append(TEXT_55); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_58); stringBuffer.append(primaryView); stringBuffer.append(TEXT_59); if (labelModelFacet instanceof FeatureLabelModelFacet) { GenFeature featureToSet = ((FeatureLabelModelFacet)labelModelFacet).getMetaFeature(); EStructuralFeature ecoreFeature = featureToSet.getEcoreFeature(); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_61); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_62); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_64); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_66); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_67); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName(featureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_70); stringBuffer.append(featureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_71); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_72); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_73); if (ecoreFeature.isMany()) { stringBuffer.append(TEXT_74); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_75); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_76); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_78); stringBuffer.append(featureToSet.getAccessorName()); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_81); } else { stringBuffer.append(TEXT_82); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_83); } stringBuffer.append(TEXT_84); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; List metaFeatures = compositeFeatureLabelModelFacet.getMetaFeatures(); stringBuffer.append(TEXT_85); stringBuffer.append(metaFeatures.size()); stringBuffer.append(TEXT_86); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_89); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_92); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_95); boolean haveDeclaredValues = false; for(int i = 0; i < metaFeatures.size(); i++) { GenFeature nextFeatureToSet = (GenFeature) metaFeatures.get(i); EStructuralFeature nextEcoreFeature = nextFeatureToSet.getEcoreFeature(); stringBuffer.append(TEXT_96); if (i == 0) { stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_97); } stringBuffer.append(TEXT_98); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName(nextFeatureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_100); stringBuffer.append(nextFeatureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_101); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_102); stringBuffer.append(i); stringBuffer.append(TEXT_103); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_104); if (nextEcoreFeature.isMany()) { stringBuffer.append(TEXT_105); if (!haveDeclaredValues) { haveDeclaredValues = true; stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_106); } stringBuffer.append(TEXT_107); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_108); stringBuffer.append(nextFeatureToSet.getAccessorName()); stringBuffer.append(TEXT_109); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_110); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_111); } else { stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_113); } } stringBuffer.append(TEXT_114); } stringBuffer.append(TEXT_115); } stringBuffer.append(TEXT_116); stringBuffer.append(TEXT_117); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_118); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy")); stringBuffer.append(TEXT_119); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_120); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest")); stringBuffer.append(TEXT_121); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_126); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_128); {TypeModelFacet facet = genNode.getModelFacet();GenFeature childFeature = facet.getChildMetaFeature();GenFeature containmentFeature = facet.getContainmentMetaFeature();if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { stringBuffer.append(TEXT_129); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_130); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_131); if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_132); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_133); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_134); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_135); } else { stringBuffer.append(TEXT_136); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_137); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_138); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_139); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_140); } if (childFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_141); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_142); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_143); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_144); } else { stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_146); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_147); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_148); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_149); } stringBuffer.append(TEXT_150); } else { if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_151); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_153); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_154); } else { stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_156); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_157); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_158); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_159); }} stringBuffer.append(TEXT_160); } /*restrict local vars used in component edit policy*/ stringBuffer.append(TEXT_161); if (!isReadOnly) { stringBuffer.append(TEXT_162); stringBuffer.append(TEXT_163); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_165); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_166); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_167); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TextCellEditor")); stringBuffer.append(TEXT_168); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.CellEditorLocator")); stringBuffer.append(TEXT_169); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.CellEditor")); stringBuffer.append(TEXT_170); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_171); } stringBuffer.append(TEXT_172); stringBuffer.append(TEXT_173); /*genFeature.getObjectType() throws NPE on primitive types. This is a workaround. */HashMap primitiveTypeToWrapperClassName = new HashMap();primitiveTypeToWrapperClassName.put(Boolean.TYPE, "Boolean");primitiveTypeToWrapperClassName.put(Byte.TYPE, "Byte");primitiveTypeToWrapperClassName.put(Character.TYPE, "Character");primitiveTypeToWrapperClassName.put(Double.TYPE, "Double");primitiveTypeToWrapperClassName.put(Float.TYPE, "Float");primitiveTypeToWrapperClassName.put(Integer.TYPE, "Integer");primitiveTypeToWrapperClassName.put(Long.TYPE, "Long");primitiveTypeToWrapperClassName.put(Short.TYPE, "Short");String viewPattern = null;String editPattern = null;if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet featureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; viewPattern = featureLabelModelFacet.getViewPattern(); if (viewPattern == null || viewPattern.length() == 0) { viewPattern = "{0}"; } editPattern = featureLabelModelFacet.getEditPattern(); if (editPattern == null || editPattern.length() == 0) { editPattern = "{0}"; }} else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; viewPattern = compositeFeatureLabelModelFacet.getViewPattern(); if (viewPattern == null || viewPattern.length() == 0) { StringBuffer patternBuffer = new StringBuffer(); for(int i = 0; i < compositeFeatureLabelModelFacet.getMetaFeatures().size(); i++) { patternBuffer.append("{").append(i).append("} "); } viewPattern = patternBuffer.toString().trim(); } editPattern = compositeFeatureLabelModelFacet.getEditPattern(); if (editPattern == null || editPattern.length() == 0) { StringBuffer patternBuffer = new StringBuffer(); for(int i = 0; i < compositeFeatureLabelModelFacet.getMetaFeatures().size(); i++) { patternBuffer.append("{").append(i).append("} "); } editPattern = patternBuffer.toString().trim(); }} stringBuffer.append(TEXT_174); stringBuffer.append(viewPattern); stringBuffer.append(TEXT_175); stringBuffer.append(editPattern); stringBuffer.append(TEXT_176); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_177); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_178); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_179); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_180); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_181); if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet featureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; GenFeature feature = featureLabelModelFacet.getMetaFeature(); if (!feature.isPrimitiveType()) { stringBuffer.append(TEXT_182); myFeatureGetAccessorHelper.appendFeatureValueGetter("element", feature, underlyingMetaClass, false); stringBuffer.append(TEXT_183); } stringBuffer.append(TEXT_184); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_185); if (feature.isPrimitiveType()) { stringBuffer.append(TEXT_186); stringBuffer.append(primitiveTypeToWrapperClassName.get(feature.getTypeGenClassifier().getEcoreClassifier().getInstanceClass())); stringBuffer.append(TEXT_187); } myFeatureGetAccessorHelper.appendFeatureValueGetter("element", feature, underlyingMetaClass, false); if (feature.isPrimitiveType()) { stringBuffer.append(TEXT_188); } stringBuffer.append(TEXT_189); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; stringBuffer.append(TEXT_190); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_191); for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); if (next.isPrimitiveType()) { stringBuffer.append(TEXT_192); stringBuffer.append(primitiveTypeToWrapperClassName.get(next.getTypeGenClassifier().getEcoreClassifier().getInstanceClass())); stringBuffer.append(TEXT_193); } myFeatureGetAccessorHelper.appendFeatureValueGetter("element", next, underlyingMetaClass, false); if (next.isPrimitiveType()) { stringBuffer.append(TEXT_194); } if (it.hasNext()) { stringBuffer.append(TEXT_195); } } stringBuffer.append(TEXT_196); } else { stringBuffer.append(TEXT_197); } stringBuffer.append(TEXT_198); stringBuffer.append(TEXT_199); boolean isFixedFontSetInFigure;{ StyleAttributes styleAttributes = (genElement.getViewmap() == null) ? null : (StyleAttributes)genElement.getViewmap().find(StyleAttributes.class); isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont();} stringBuffer.append(TEXT_200); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_201); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_202); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_203); stringBuffer.append(primaryView); stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_205); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_207); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_209); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_210); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); stringBuffer.append(TEXT_211); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_212); } stringBuffer.append(TEXT_213); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_214); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_215); } stringBuffer.append(TEXT_216); stringBuffer.append(TEXT_217); stringBuffer.append(TEXT_218); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_219); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_220); stringBuffer.append(primaryView); stringBuffer.append(TEXT_221); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_222); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_223); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_224); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_225); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Image")); stringBuffer.append(TEXT_227); if (genChildNode.isLabelElementIcon()) { stringBuffer.append(TEXT_228); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.resource.ImageDescriptor")); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_230); } stringBuffer.append(TEXT_231); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.TreeEditPart")); stringBuffer.append(TEXT_232); /*@ include file="adapters/propertySource.javajetinc"*/ stringBuffer.append(TEXT_233); stringBuffer.append(TEXT_234); stringBuffer.append(TEXT_235); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); stringBuffer.append(TEXT_236); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); stringBuffer.append(TEXT_237); stringBuffer.append(TEXT_238); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("java.util.HashMap")); stringBuffer.append(TEXT_240); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); stringBuffer.append(TEXT_242); stringBuffer.append(TEXT_243); stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_245); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_246); stringBuffer.append(TEXT_247); stringBuffer.append(TEXT_248); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_249); if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet compositeFeatureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); stringBuffer.append(TEXT_250); stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_251); stringBuffer.append(next.getFeatureAccessorName()); stringBuffer.append(TEXT_252); }} stringBuffer.append(TEXT_253); stringBuffer.append(TEXT_254); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_255); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_256); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_257); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_258); stringBuffer.append(TEXT_259); stringBuffer.append(TEXT_260); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_261); final Viewmap viewmap = genChildNode.getViewmap(); stringBuffer.append(TEXT_262); final String figureQualifiedClassName;if (viewmap instanceof ParentAssignedViewmap) { ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; figureQualifiedClassName = parentAssignedViewmap.getFigureQualifiedClassName() == null ? "org.eclipse.draw2d.IFigure" : parentAssignedViewmap.getFigureQualifiedClassName();} else if (viewmap instanceof FigureViewmap) { String figureQualifiedClassNameCandidate = ((FigureViewmap) viewmap).getFigureQualifiedClassName(); if (figureQualifiedClassNameCandidate == null || figureQualifiedClassNameCandidate.trim().length() == 0) { figureQualifiedClassName = "org.eclipse.draw2d.Label"; } else { figureQualifiedClassName = figureQualifiedClassNameCandidate; }} else if (viewmap instanceof SnippetViewmap) { figureQualifiedClassName = "org.eclipse.draw2d.IFigure";} else if (viewmap instanceof InnerClassViewmap) { figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName();} else { figureQualifiedClassName = "org.eclipse.draw2d.IFigure";}final String figureImportedName;if (viewmap instanceof InnerClassViewmap) { figureImportedName = figureQualifiedClassName; //do not import inner class} else { figureImportedName = importManager.getImportedName(figureQualifiedClassName);}if (viewmap instanceof ParentAssignedViewmap) { final ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; stringBuffer.append(TEXT_263); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_264); stringBuffer.append((parentAssignedViewmap.getSetterName() == null ? "setLabel" : parentAssignedViewmap.getSetterName())); stringBuffer.append(TEXT_265); } else { stringBuffer.append(TEXT_266); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_267); if (viewmap instanceof FigureViewmap) { stringBuffer.append(TEXT_268); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_269); } // instanceof FigureViewmap else if (viewmap instanceof SnippetViewmap) { stringBuffer.append(TEXT_270); stringBuffer.append(((SnippetViewmap) viewmap).getBody()); stringBuffer.append(TEXT_271); } // instanceof SnippetViewmap; FIXME : obtain figure class name to generate getter else if (viewmap instanceof InnerClassViewmap) { stringBuffer.append(TEXT_272); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_273); } stringBuffer.append(TEXT_274); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_275); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_276); if ("org.eclipse.draw2d.Label".equals(figureQualifiedClassName) || viewmap instanceof InnerClassViewmap) { stringBuffer.append(TEXT_277); } else { stringBuffer.append(TEXT_278); } stringBuffer.append(TEXT_279); } /*not parent-assigned*/ stringBuffer.append(TEXT_280); if (!"org.eclipse.draw2d.Label".equals(figureQualifiedClassName) && viewmap instanceof InnerClassViewmap==false) { stringBuffer.append(TEXT_281); } stringBuffer.append(TEXT_282); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Label")); stringBuffer.append(TEXT_283); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Label")); stringBuffer.append(TEXT_284); String labelSetterName = "setLabel"; // same assumption in NodeEditPartString labelFigureClassName = "org.eclipse.draw2d.IFigure";if (viewmap instanceof ParentAssignedViewmap) { ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; if (parentAssignedViewmap.getSetterName() != null) { labelSetterName = parentAssignedViewmap.getSetterName(); } if (parentAssignedViewmap.getFigureQualifiedClassName() != null) { labelFigureClassName = parentAssignedViewmap.getFigureQualifiedClassName(); }} // FIXME perhaps, there's no sense to have setLabel for any other viewmap than ParentAssigned? stringBuffer.append(TEXT_285); stringBuffer.append(labelSetterName); stringBuffer.append(TEXT_286); stringBuffer.append(importManager.getImportedName(labelFigureClassName)); stringBuffer.append(TEXT_287); if ("org.eclipse.draw2d.Label".equals(labelFigureClassName)) { stringBuffer.append(TEXT_288); } else { stringBuffer.append(TEXT_289); } stringBuffer.append(TEXT_290); if (viewmap instanceof InnerClassViewmap) { String classBody = ((InnerClassViewmap) viewmap).getClassBody(); stringBuffer.append(TEXT_291); stringBuffer.append(classBody); stringBuffer.append(TEXT_292); if (classBody.indexOf("DPtoLP") != -1) { stringBuffer.append(TEXT_293); } } stringBuffer.append(TEXT_294); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.tree.BaseTreeEditPart")); stringBuffer.append(TEXT_295); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_296); stringBuffer.append(TEXT_297); stringBuffer.append(TEXT_298); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_299); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy")); stringBuffer.append(TEXT_300); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_301); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest")); stringBuffer.append(TEXT_302); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_303); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_304); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_305); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_306); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_307); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_308); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_309); {TypeModelFacet facet = genNode.getModelFacet();GenFeature childFeature = facet.getChildMetaFeature();GenFeature containmentFeature = facet.getContainmentMetaFeature();if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { stringBuffer.append(TEXT_310); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_311); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_312); if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_313); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_314); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_315); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_316); } else { stringBuffer.append(TEXT_317); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_318); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_319); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_320); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_321); } if (childFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_322); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_323); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_324); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_325); } else { stringBuffer.append(TEXT_326); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_327); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_328); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_329); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_330); } stringBuffer.append(TEXT_331); } else { if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_332); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_333); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_334); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_335); } else { stringBuffer.append(TEXT_336); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_337); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_338); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_339); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_340); }} stringBuffer.append(TEXT_341); } /*restrict local vars used in component edit policy*/ if (!isReadOnly) { String editPatternCode = "EDIT_PATTERN"; //declared in labelText.javajetinc, used in directEditCommand.jetinc. stringBuffer.append(TEXT_342); stringBuffer.append(TEXT_343); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_344); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy")); stringBuffer.append(TEXT_345); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_346); stringBuffer.append(TEXT_347); stringBuffer.append(TEXT_348); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_349); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_350); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_351); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_352); stringBuffer.append(editPatternCode); stringBuffer.append(TEXT_353); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_354); stringBuffer.append(importManager.getImportedName("java.text.ParseException")); stringBuffer.append(TEXT_355); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_356); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_357); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_358); stringBuffer.append(primaryView); stringBuffer.append(TEXT_359); if (labelModelFacet instanceof FeatureLabelModelFacet) { GenFeature featureToSet = ((FeatureLabelModelFacet)labelModelFacet).getMetaFeature(); EStructuralFeature ecoreFeature = featureToSet.getEcoreFeature(); stringBuffer.append(TEXT_360); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_361); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_362); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_363); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_364); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_365); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_366); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_367); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_368); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_369); stringBuffer.append(importManager.getImportedName(featureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_370); stringBuffer.append(featureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_371); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_372); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_373); if (ecoreFeature.isMany()) { stringBuffer.append(TEXT_374); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_375); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_376); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_377); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_378); stringBuffer.append(featureToSet.getAccessorName()); stringBuffer.append(TEXT_379); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_380); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_381); } else { stringBuffer.append(TEXT_382); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_383); } stringBuffer.append(TEXT_384); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; List metaFeatures = compositeFeatureLabelModelFacet.getMetaFeatures(); stringBuffer.append(TEXT_385); stringBuffer.append(metaFeatures.size()); stringBuffer.append(TEXT_386); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_387); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_388); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_389); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_390); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_391); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_392); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_393); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_394); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_395); boolean haveDeclaredValues = false; for(int i = 0; i < metaFeatures.size(); i++) { GenFeature nextFeatureToSet = (GenFeature) metaFeatures.get(i); EStructuralFeature nextEcoreFeature = nextFeatureToSet.getEcoreFeature(); stringBuffer.append(TEXT_396); if (i == 0) { stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_397); } stringBuffer.append(TEXT_398); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_399); stringBuffer.append(importManager.getImportedName(nextFeatureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_400); stringBuffer.append(nextFeatureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_401); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_402); stringBuffer.append(i); stringBuffer.append(TEXT_403); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_404); if (nextEcoreFeature.isMany()) { stringBuffer.append(TEXT_405); if (!haveDeclaredValues) { haveDeclaredValues = true; stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_406); } stringBuffer.append(TEXT_407); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_408); stringBuffer.append(nextFeatureToSet.getAccessorName()); stringBuffer.append(TEXT_409); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_410); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_411); } else { stringBuffer.append(TEXT_412); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_413); } } stringBuffer.append(TEXT_414); } stringBuffer.append(TEXT_415); } stringBuffer.append(TEXT_416); stringBuffer.append(TEXT_417); stringBuffer.append(TEXT_418); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager")); stringBuffer.append(TEXT_419); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_420); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_421); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager")); stringBuffer.append(TEXT_422); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager")); stringBuffer.append(TEXT_423); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TextCellEditor")); stringBuffer.append(TEXT_424); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.CellEditorLocator")); stringBuffer.append(TEXT_425); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.CellEditor")); stringBuffer.append(TEXT_426); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.TreeItem")); stringBuffer.append(TEXT_427); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.TreeItem")); stringBuffer.append(TEXT_428); stringBuffer.append(TEXT_429); stringBuffer.append(TEXT_430); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); stringBuffer.append(TEXT_431); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); stringBuffer.append(TEXT_432); if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet compositeFeatureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); stringBuffer.append(TEXT_433); stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_434); stringBuffer.append(next.getFeatureAccessorName()); stringBuffer.append(TEXT_435); }} stringBuffer.append(TEXT_436); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_437); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_438); importManager.emitSortedImports(); stringBuffer.append(TEXT_439); return stringBuffer.toString(); }
|
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/de70953cec74fbba0ed0cfbed37c36c0b594b3db/ChildNodeEditPartGenerator.java/clean/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/ChildNodeEditPartGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
6517,
2171,
3157,
1046,
273,
261,
7642,
6517,
2171,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
10938,
1763,
2224,
907,
3157,
25550,
273,
261,
7642,
1763,
2224,
907,
13,
4507,
1046,
31,
7642,
907,
3157,
2594,
273,
3157,
25550,
31,
7642,
907,
3157,
907,
273,
3157,
25550,
31,
202,
20308,
1401,
1399,
635,
1794,
4666,
2582,
18,
6290,
78,
278,
9523,
5549,
7642,
797,
6808,
2781,
797,
273,
3157,
2594,
18,
588,
3748,
2781,
797,
5621,
7642,
14058,
1940,
3157,
14058,
1940,
273,
3157,
25550,
18,
588,
14058,
1940,
5621,
6385,
6164,
2610,
17175,
1930,
1318,
273,
261,
5010,
2610,
17175,
13,
14015,
921,
63,
5717,
1237,
25146,
21,
15533,
2224,
1488,
11137,
1433,
1488,
11137,
273,
3157,
25550,
18,
588,
2224,
1488,
11137,
5621,
6385,
1250,
26249,
273,
3157,
25550,
18,
291,
2224,
12066,
5621,
565,
533,
1892,
18,
6923,
12,
5151,
67,
21,
1769,
565,
514,
22245,
1528,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
7675,
588,
2951,
4083,
1528,
5621,
430,
261,
29187,
1528,
480,
446,
597,
22245,
1528,
18,
5290,
7675,
2469,
1435,
405,
374,
13,
288,
565,
533,
1892,
18,
6923,
12,
5151,
67,
22,
1769,
565,
533,
1892,
18,
6923,
12,
29187,
1528,
18,
2079,
1595,
31458,
82,
3113,
1548,
82,
380,
9369,
1769,
565,
533,
1892,
18,
6923,
12,
5151,
67,
23,
1769,
565,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
6517,
2171,
3157,
1046,
273,
261,
7642,
6517,
2171,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
10938,
1763,
2224,
907,
3157,
25550,
273,
261,
7642,
1763,
2224,
907,
13,
4507,
1046,
31,
7642,
907,
3157,
2594,
273,
3157,
25550,
31,
7642,
907,
3157,
907,
273,
3157,
25550,
31,
202,
20308,
1401,
1399,
635,
1794,
4666,
2582,
18,
6290,
78,
278,
9523,
5549,
7642,
797,
6808,
2781,
797,
273,
3157,
2594,
18,
588,
3748,
2781,
797,
5621,
7642,
14058,
1940,
3157,
14058,
1940,
273,
3157,
25550,
18,
588,
14058,
1940,
5621,
6385,
6164,
2610,
17175,
2
] |
reconnectDelay = initialReconnectDelay;
|
if (!useExponentialBackOff){ reconnectDelay = initialReconnectDelay; }
|
public FailoverTransport() throws InterruptedIOException { // Setup a task that is used to reconnect the a connection async. reconnectTask = DefaultThreadPools.getDefaultTaskRunnerFactory().createTaskRunner(new Task() { public boolean iterate() { Exception failure=null; synchronized (reconnectMutex) { if (disposed || connectionFailure!=null) { reconnectMutex.notifyAll(); } if (connectedTransport != null || disposed || connectionFailure!=null) { return false; } else { ArrayList connectList = getConnectList(); if( connectList.isEmpty() ) { failure = new IOException("No uris available to connect to."); } else { reconnectDelay = initialReconnectDelay; Iterator iter = connectList.iterator(); for (int i = 0; iter.hasNext() && connectedTransport == null && !disposed; i++) { URI uri = (URI) iter.next(); try { log.debug("Attempting connect to: " + uri); Transport t = TransportFactory.compositeConnect(uri); t.setTransportListener(myTransportListener); if (started) { restoreTransport(t); } log.debug("Connection established"); reconnectDelay = initialReconnectDelay; connectedTransportURI = uri; connectedTransport = t; reconnectMutex.notifyAll(); connectFailures = 0; if (transportListener != null){ transportListener.transportResumed(); } return false; } catch (Exception e) { failure = e; log.debug("Connect fail to: " + uri + ", reason: " + e); } } } } if (maxReconnectAttempts > 0 && ++connectFailures >= maxReconnectAttempts) { log.error("Failed to connect to transport after: " + connectFailures + " attempt(s)"); connectionFailure = failure; reconnectMutex.notifyAll(); return false; } } if(!disposed){ try{ log.debug("Waiting "+reconnectDelay+" ms before attempting connection. "); Thread.sleep(reconnectDelay); }catch(InterruptedException e1){ Thread.currentThread().interrupt(); } if(useExponentialBackOff){ // Exponential increment of reconnect delay. reconnectDelay*=backOffMultiplier; if(reconnectDelay>maxReconnectDelay) reconnectDelay=maxReconnectDelay; } } return !disposed; } }); }
|
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/2bc09bb764ea7f78e1d69e0a23013abc51e79bbc/FailoverTransport.java/buggy/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8911,
1643,
6568,
1435,
1216,
7350,
14106,
288,
3639,
368,
10939,
279,
1562,
716,
353,
1399,
358,
11812,
326,
279,
1459,
4326,
18,
3639,
11812,
2174,
273,
2989,
3830,
16639,
18,
588,
1868,
2174,
9709,
1733,
7675,
2640,
2174,
9709,
12,
2704,
3837,
1435,
288,
5411,
1071,
1250,
7401,
1435,
288,
7734,
1185,
5166,
33,
2011,
31,
7734,
3852,
261,
25913,
11433,
13,
288,
10792,
309,
261,
2251,
7423,
747,
1459,
5247,
5,
33,
2011,
13,
288,
13491,
11812,
11433,
18,
12336,
1595,
5621,
10792,
289,
10792,
309,
261,
8537,
6568,
480,
446,
747,
1015,
7423,
747,
1459,
5247,
5,
33,
2011,
13,
288,
13491,
327,
629,
31,
10792,
289,
469,
288,
13491,
2407,
3077,
682,
273,
336,
5215,
682,
5621,
13491,
309,
12,
3077,
682,
18,
291,
1921,
1435,
262,
288,
18701,
5166,
273,
394,
1860,
2932,
2279,
21476,
2319,
358,
3077,
358,
1199,
1769,
13491,
289,
469,
288,
18701,
309,
16051,
1202,
17972,
649,
2711,
7210,
15329,
11812,
6763,
273,
2172,
20427,
6763,
31,
289,
18701,
4498,
1400,
273,
3077,
682,
18,
9838,
5621,
18701,
364,
261,
474,
277,
273,
374,
31,
1400,
18,
5332,
2134,
1435,
597,
5840,
6568,
422,
446,
597,
401,
2251,
7423,
31,
277,
27245,
288,
27573,
3699,
2003,
273,
261,
3098,
13,
1400,
18,
4285,
5621,
27573,
775,
288,
4766,
565,
613,
18,
4148,
2932,
23089,
3077,
358,
30,
315,
397,
2003,
1769,
4766,
565,
9514,
268,
273,
9514,
1733,
18,
27676,
5215,
12,
1650,
1769,
4766,
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,
8911,
1643,
6568,
1435,
1216,
7350,
14106,
288,
3639,
368,
10939,
279,
1562,
716,
353,
1399,
358,
11812,
326,
279,
1459,
4326,
18,
3639,
11812,
2174,
273,
2989,
3830,
16639,
18,
588,
1868,
2174,
9709,
1733,
7675,
2640,
2174,
9709,
12,
2704,
3837,
1435,
288,
5411,
1071,
1250,
7401,
1435,
288,
7734,
1185,
5166,
33,
2011,
31,
7734,
3852,
261,
25913,
11433,
13,
288,
10792,
309,
261,
2251,
7423,
747,
1459,
5247,
5,
33,
2011,
13,
288,
13491,
11812,
11433,
18,
12336,
1595,
5621,
10792,
289,
10792,
309,
261,
8537,
6568,
480,
446,
747,
1015,
7423,
747,
1459,
5247,
5,
33,
2011,
13,
288,
13491,
327,
629,
31,
10792,
289,
469,
288,
13491,
2407,
3077,
682,
273,
2
] |
NFSDataOutputStream out = NutchFileSystem.getNamed("local").create(file);
|
NFSDataOutputStream out = NutchFileSystem.getNamed("local", this.jobConf).create(file);
|
public void readFields(DataInput in) throws IOException { this.mapTaskId = UTF8.readString(in); this.reduceTaskId = UTF8.readString(in); this.partition = in.readInt(); ProgressReporter reporter = (ProgressReporter)REPORTERS.get(); // read the length-prefixed file content into a local file File file = getInputFile(mapTaskId, reduceTaskId); long length = in.readLong(); float progPerByte = 1.0f / length; long unread = length; NFSDataOutputStream out = NutchFileSystem.getNamed("local").create(file); try { byte[] buffer = new byte[8192]; while (unread > 0) { int bytesToRead = (int)Math.min(unread, buffer.length); in.readFully(buffer, 0, bytesToRead); out.write(buffer, 0, bytesToRead); unread -= bytesToRead; if (reporter != null) { reporter.progress((length-unread)*progPerByte); } } } finally { out.close(); } }
|
57484 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57484/329ff64e9d7295aff108f85e9a8103f5e5f8f398/MapOutputFile.java/buggy/src/java/org/apache/nutch/mapred/MapOutputFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
855,
2314,
12,
751,
1210,
316,
13,
1216,
1860,
288,
565,
333,
18,
1458,
30182,
273,
6380,
28,
18,
896,
780,
12,
267,
1769,
565,
333,
18,
12498,
30182,
273,
6380,
28,
18,
896,
780,
12,
267,
1769,
565,
333,
18,
10534,
273,
316,
18,
896,
1702,
5621,
565,
10980,
13289,
11528,
273,
261,
5491,
13289,
13,
28879,
916,
2560,
55,
18,
588,
5621,
565,
368,
855,
326,
769,
17,
3239,
329,
585,
913,
1368,
279,
1191,
585,
565,
1387,
585,
273,
12353,
812,
12,
1458,
30182,
16,
5459,
30182,
1769,
565,
1525,
769,
273,
316,
18,
896,
3708,
5621,
565,
1431,
11243,
2173,
3216,
273,
404,
18,
20,
74,
342,
769,
31,
565,
1525,
19541,
273,
769,
31,
565,
31924,
751,
4632,
596,
273,
423,
322,
343,
11785,
18,
588,
7604,
2932,
3729,
3113,
333,
18,
4688,
3976,
2934,
2640,
12,
768,
1769,
565,
775,
288,
1377,
1160,
8526,
1613,
273,
394,
1160,
63,
28,
15561,
15533,
1377,
1323,
261,
318,
896,
405,
374,
13,
288,
1850,
509,
1731,
23321,
273,
261,
474,
13,
10477,
18,
1154,
12,
318,
896,
16,
1613,
18,
2469,
1769,
1850,
316,
18,
896,
16999,
12,
4106,
16,
374,
16,
1731,
23321,
1769,
1850,
596,
18,
2626,
12,
4106,
16,
374,
16,
1731,
23321,
1769,
1850,
19541,
3947,
1731,
23321,
31,
1850,
309,
261,
266,
7988,
480,
446,
13,
288,
5411,
11528,
18,
8298,
12443,
2469,
17,
318,
896,
17653,
14654,
2173,
3216,
1769,
1850,
289,
1377,
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,
282,
1071,
918,
855,
2314,
12,
751,
1210,
316,
13,
1216,
1860,
288,
565,
333,
18,
1458,
30182,
273,
6380,
28,
18,
896,
780,
12,
267,
1769,
565,
333,
18,
12498,
30182,
273,
6380,
28,
18,
896,
780,
12,
267,
1769,
565,
333,
18,
10534,
273,
316,
18,
896,
1702,
5621,
565,
10980,
13289,
11528,
273,
261,
5491,
13289,
13,
28879,
916,
2560,
55,
18,
588,
5621,
565,
368,
855,
326,
769,
17,
3239,
329,
585,
913,
1368,
279,
1191,
585,
565,
1387,
585,
273,
12353,
812,
12,
1458,
30182,
16,
5459,
30182,
1769,
565,
1525,
769,
273,
316,
18,
896,
3708,
5621,
565,
1431,
11243,
2173,
3216,
273,
404,
18,
20,
74,
342,
769,
31,
565,
1525,
19541,
2
] |
}catch(BuildMacroException e){
|
} catch(BuildMacroException e) {
|
protected void invokeMake(int buildType, IPath buildDir, IManagedBuildInfo info, IManagedBuilderMakefileGenerator generator, IProgressMonitor monitor) { // Get the project and make sure there's a monitor to cancel the build IProject currentProject = getProject(); if (monitor == null) { monitor = new NullProgressMonitor(); } try { // Figure out the working directory for the build and make sure there is a makefile there IPath workingDirectory = getWorkingDirectory().append(buildDir); IWorkspace workspace = currentProject.getWorkspace(); if (workspace == null) { return; } IWorkspaceRoot root = workspace.getRoot(); if (root == null) { return; } IPath makefile = workingDirectory.addTrailingSeparator().append(generator.getMakefileName()); if (root.getFileForLocation(makefile) == null) { return; } // Flag to the user that make is about to be called String makeCmd = info.getBuildCommand(); //try to resolve the build macros in the builder command try{ String resolved = ManagedBuildManager.getBuildMacroProvider().resolveValueToMakefileFormat( makeCmd, "", //$NON-NLS-1$ " ", //$NON-NLS-1$ IBuildMacroProvider.CONTEXT_CONFIGURATION, info.getDefaultConfiguration()); if((resolved = resolved.trim()).length() > 0) makeCmd = resolved; } catch (BuildMacroException e){ } IPath makeCommand = new Path(makeCmd); if (makeCommand != null) { String[] msgs = new String[2]; msgs[0] = makeCommand.toString(); msgs[1] = currentProject.getName(); monitor.subTask(ManagedMakeMessages.getFormattedString(MAKE, msgs)); // Get a build console for the project StringBuffer buf = new StringBuffer(); IConsole console = CCorePlugin.getDefault().getConsole(); console.start(currentProject); ConsoleOutputStream consoleOutStream = console.getOutputStream(); String[] consoleHeader = new String[3]; switch (buildType) { case FULL_BUILD: consoleHeader[0] = ManagedMakeMessages.getResourceString(TYPE_FULL); break; case INCREMENTAL_BUILD: consoleHeader[0] = ManagedMakeMessages.getResourceString(TYPE_INC); break; case CLEAN_BUILD: consoleHeader[0] = ManagedMakeMessages.getResourceString(TYPE_CLEAN); break; } consoleHeader[1] = info.getConfigurationName(); consoleHeader[2] = currentProject.getName(); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ buf.append(ManagedMakeMessages.getFormattedString(CONSOLE_HEADER, consoleHeader)); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ IConfiguration cfg = info.getDefaultConfiguration(); if(!cfg.isSupported()){ buf.append(ManagedMakeMessages.getFormattedString(WARNING_UNSUPPORTED_CONFIGURATION,new String[] {cfg.getName(),cfg.getToolChain().getName()})); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ } consoleOutStream.write(buf.toString().getBytes()); consoleOutStream.flush(); // Remove all markers for this project removeAllMarkers(currentProject); // Get a launcher for the make command String errMsg = null; CommandLauncher launcher = new CommandLauncher(); launcher.showCommand(true); // Set the environmennt IBuildEnvironmentVariable variables[] = ManagedBuildManager.getEnvironmentVariableProvider().getVariables(cfg,true); IBuildMacroProvider macroProvier = ManagedBuildManager.getBuildMacroProvider(); String[] env = null; ArrayList envList = new ArrayList(); if (variables != null) { for(int i = 0; i < variables.length; i++){ //resolve the build macros in environment variables try{ envList.add(variables[i].getName() + "=" + macroProvier.resolveValue(variables[i].getValue(),""," ",IBuildMacroProvider.CONTEXT_CONFIGURATION,cfg)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ }catch(BuildMacroException e){ envList.add(variables[i].getName() + "=" + variables[i].getValue()); //$NON-NLS-1$ } } env = (String[]) envList.toArray(new String[envList.size()]); } // Hook up an error parser manager String[] errorParsers = info.getDefaultConfiguration().getErrorParserList(); ErrorParserManager epm = new ErrorParserManager(getProject(), workingDirectory, this, errorParsers); epm.setOutputStream(consoleOutStream); OutputStream stdout = epm.getOutputStream(); OutputStream stderr = epm.getOutputStream(); // Get the arguments to be passed to make from build model ArrayList makeArgs = new ArrayList(); String arg = info.getBuildArguments(); if (arg.length() > 0) { String[] args = arg.split("\\s"); //$NON-NLS-1$ for (int i = 0; i < args.length; ++i) { makeArgs.add(args[i]); } } String[] makeTargets; String prebuildStep = info.getPrebuildStep(); //try to resolve the build macros in the prebuildStep try{ prebuildStep = ManagedBuildManager.getBuildMacroProvider().resolveValueToMakefileFormat( prebuildStep, "", //$NON-NLS-1$ " ", //$NON-NLS-1$ IBuildMacroProvider.CONTEXT_CONFIGURATION, cfg); } catch (BuildMacroException e){ } boolean prebuildStepPresent = (prebuildStep.length() > 0); Process proc = null; boolean isuptodate = false; if (prebuildStepPresent) { ArrayList premakeArgs = (ArrayList) makeArgs.clone(); String[] premakeTargets; switch (buildType) { case INCREMENTAL_BUILD: { // For an incremental build with a prebuild step: // Check the status of the main build with "make -q main-build" // If up to date: // then: don't invoke the prebuild step, which should be run only if // something needs to be built in the main build // else: invoke the prebuild step and the main build step boolean quit = false; premakeArgs.add("-q"); //$NON-NLS-1$ premakeArgs.add("main-build"); //$NON-NLS-1$ premakeTargets = (String[]) premakeArgs.toArray(new String[premakeArgs.size()]); proc = launcher.execute(makeCommand, premakeTargets, env, workingDirectory); if (proc != null) { try { // Close the input of the process since we will never write to it proc.getOutputStream().close(); } catch (IOException e) { } if (launcher.waitAndRead(stdout, stderr, new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN)) != CommandLauncher.OK) { errMsg = launcher.getErrorMessage(); } } else { errMsg = launcher.getErrorMessage(); } if ((errMsg != null && errMsg.length() > 0) || proc == null) { // Can't tell if the build is needed, so assume it is, and let any errors be triggered // when the "real" build is invoked below makeArgs.add("pre-build"); //$NON-NLS-1$ makeArgs.add("main-build"); //$NON-NLS-1$ } else { // The "make -q" command launch was successful if (proc.exitValue() == 0) { // If the status value returned from "make -q" is 0, then the build state is up-to-date isuptodate = true; // Report that the build was up to date, and thus nothing needs to be built String uptodateMsg = ManagedMakeMessages .getFormattedString(NOTHING_BUILT, currentProject.getName()); buf = new StringBuffer(); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$//$NON-NLS-2$ buf.append(uptodateMsg); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$//$NON-NLS-2$ // Write message on the console consoleOutStream.write(buf.toString().getBytes()); consoleOutStream.flush(); consoleOutStream.close(); stdout.close(); stderr.close(); } else { // The status value was other than 0, so press on with the build process makeArgs.add("pre-build"); //$NON-NLS-1$ makeArgs.add("main-build"); //$NON-NLS-1$ } } break; } case FULL_BUILD: { makeArgs.add("clean"); //$NON-NLS-1$ makeArgs.add("pre-build"); //$NON-NLS-1$ makeArgs.add("main-build"); //$NON-NLS-1$ break; } case CLEAN_BUILD: { makeArgs.add("clean"); //$NON-NLS-1$ break; } } } else { // No prebuild step // makeArgs.addAll(Arrays.asList(getMakeTargets(buildType))); } makeTargets = (String[]) makeArgs.toArray(new String[makeArgs.size()]); // Launch make - main invocation if (!isuptodate) { proc = launcher.execute(makeCommand, makeTargets, env, workingDirectory); if (proc != null) { try { // Close the input of the process since we will never write to it proc.getOutputStream().close(); } catch (IOException e) { } if (launcher.waitAndRead(stdout, stderr, new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN)) != CommandLauncher.OK) { errMsg = launcher.getErrorMessage(); } // Force a resync of the projects without allowing the user to cancel. // This is probably unkind, but short of this there is no way to insure // the UI is up-to-date with the build results monitor.subTask(ManagedMakeMessages .getResourceString(REFRESH)); try { currentProject.refreshLocal( IResource.DEPTH_INFINITE, null); } catch (CoreException e) { monitor.subTask(ManagedMakeMessages .getResourceString(REFRESH_ERROR)); } } else { errMsg = launcher.getErrorMessage(); } // Report either the success or failure of our mission buf = new StringBuffer(); if (errMsg != null && errMsg.length() > 0) { String errorDesc = ManagedMakeMessages .getResourceString(BUILD_ERROR); buf.append(errorDesc); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$//$NON-NLS-2$ buf.append("(").append(errMsg).append(")"); //$NON-NLS-1$ //$NON-NLS-2$ } else { // Report a successful build String successMsg = ManagedMakeMessages .getFormattedString(BUILD_FINISHED, currentProject.getName()); buf.append(successMsg); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$//$NON-NLS-2$ } // Write message on the console consoleOutStream.write(buf.toString().getBytes()); consoleOutStream.flush(); stdout.close(); stderr.close(); // Generate any error markers that the build has discovered monitor.subTask(ManagedMakeMessages .getResourceString(MARKERS)); addBuilderMarkers(epm); epm.reportProblems(); consoleOutStream.close(); } } } catch (Exception e) { forgetLastBuiltState(); } finally { getGenerationProblems().clear(); } }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/3950ab52aec3e3a967e2a41980a809afdef253ab/GeneratedMakefileBuilder.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/GeneratedMakefileBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4356,
6464,
12,
474,
1361,
559,
16,
467,
743,
1361,
1621,
16,
6246,
4184,
3116,
966,
1123,
16,
6246,
4184,
1263,
6464,
768,
3908,
4456,
16,
467,
5491,
7187,
6438,
13,
288,
202,
202,
759,
968,
326,
1984,
471,
1221,
3071,
1915,
1807,
279,
6438,
358,
3755,
326,
1361,
202,
202,
45,
4109,
783,
4109,
273,
11080,
5621,
202,
202,
430,
261,
10259,
422,
446,
13,
288,
1082,
202,
10259,
273,
394,
4112,
5491,
7187,
5621,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
759,
18818,
596,
326,
5960,
1867,
364,
326,
1361,
471,
1221,
3071,
1915,
353,
279,
1221,
768,
1915,
1875,
202,
45,
743,
5960,
2853,
273,
336,
14836,
2853,
7675,
6923,
12,
3510,
1621,
1769,
1082,
202,
45,
8241,
6003,
273,
783,
4109,
18,
588,
8241,
5621,
1082,
202,
430,
261,
14915,
422,
446,
13,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
45,
8241,
2375,
1365,
273,
6003,
18,
588,
2375,
5621,
1082,
202,
430,
261,
3085,
422,
446,
13,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
45,
743,
1221,
768,
273,
5960,
2853,
18,
1289,
16808,
6581,
7675,
6923,
12,
8812,
18,
588,
6464,
17812,
10663,
1082,
202,
430,
261,
3085,
18,
29925,
1290,
2735,
12,
6540,
768,
13,
422,
446,
13,
288,
9506,
202,
2463,
31,
1875,
202,
97,
1082,
202,
759,
9960,
358,
326,
729,
716,
1221,
353,
2973,
358,
506,
2566,
1082,
202,
780,
1221,
5931,
273,
1123,
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,
4356,
6464,
12,
474,
1361,
559,
16,
467,
743,
1361,
1621,
16,
6246,
4184,
3116,
966,
1123,
16,
6246,
4184,
1263,
6464,
768,
3908,
4456,
16,
467,
5491,
7187,
6438,
13,
288,
202,
202,
759,
968,
326,
1984,
471,
1221,
3071,
1915,
1807,
279,
6438,
358,
3755,
326,
1361,
202,
202,
45,
4109,
783,
4109,
273,
11080,
5621,
202,
202,
430,
261,
10259,
422,
446,
13,
288,
1082,
202,
10259,
273,
394,
4112,
5491,
7187,
5621,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
759,
18818,
596,
326,
5960,
1867,
364,
326,
1361,
471,
1221,
3071,
1915,
353,
279,
1221,
768,
1915,
1875,
202,
45,
743,
5960,
2853,
273,
336,
14836,
2853,
7675,
6923,
2
] |
} catch (NumberFormatException nf_ty) {
|
} catch (NumberFormatException nf_ty) {
|
void layoutPanels(String layout) { boolean touch = true; if (fLayout != null) { if (fLayout.equals(layout)) { return; // nothing to do } fLayout = layout; remove(splitter1); remove(splitter2); } fPanel.remove(splitter1); splitter1 = new JSplitPane(); splitter2 = new JSplitPane(); if (relayout == false) { InvisiblePrefs prefs = InvisiblePrefs.GetMaster(); // read dimensions out of preferences try { int tx, ty, fx, fy; // temporary dimensions fx = prefs.getMultiPaneFolderX(folderX); fy = prefs.getMultiPaneFolderY(folderY); tx = prefs.getMultiPaneThreadX(threadX); ty = prefs.getMultiPaneThreadY(threadY); folderX = fx; folderY = fy; threadX = tx; threadY = ty; // if the try bails, we use default } catch (NumberFormatException nf_ty) { nf_ty.printStackTrace(); } finally { relayout = true; } } else { folderX = FOLDERX; folderY = FOLDERY; threadX = THREADX; threadY = THREADY; } if (layout.equals(UnifiedMessageDisplayManager.STACKED)) { splitter1.setOrientation(JSplitPane.VERTICAL_SPLIT); splitter2.setOrientation(JSplitPane.VERTICAL_SPLIT); splitter1.setTopComponent(fFolders); splitter1.setBottomComponent(splitter2); splitter2.setTopComponent(fThreads); splitter2.setBottomComponent(fMessage); } else if (layout.equals(UnifiedMessageDisplayManager.SPLIT_LEFT)) { splitter1.setOrientation(JSplitPane.HORIZONTAL_SPLIT); splitter2.setOrientation(JSplitPane.VERTICAL_SPLIT); splitter2.setLeftComponent(fFolders); splitter2.setRightComponent(fThreads); splitter1.setTopComponent(splitter2); splitter1.setBottomComponent(fMessage); } else if (layout.equals(UnifiedMessageDisplayManager.SPLIT_RIGHT)) { splitter2.setOrientation(JSplitPane.VERTICAL_SPLIT); splitter1.setOrientation(JSplitPane.HORIZONTAL_SPLIT); splitter2.setLeftComponent(fThreads); splitter2.setRightComponent(fMessage); splitter1.setTopComponent(fFolders); splitter1.setBottomComponent(splitter2); } else { // Default: SPLIT_TOP splitter2.setOrientation(JSplitPane.HORIZONTAL_SPLIT); splitter1.setOrientation(JSplitPane.VERTICAL_SPLIT); splitter2.setLeftComponent(fFolders); splitter2.setRightComponent(fThreads); splitter1.setTopComponent(splitter2); splitter1.setBottomComponent(fMessage); } fFolders.setPreferredSize(new Dimension(folderX, folderY)); fThreads.setPreferredSize(new Dimension(threadX, threadY)); fPanel.add(splitter1, BorderLayout.CENTER); invalidate(); validate(); fLayout = layout; }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/UnifiedMessageDisplayManager.java/clean/grendel/sources/grendel/ui/UnifiedMessageDisplayManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
3511,
5537,
87,
12,
780,
3511,
13,
288,
565,
1250,
6920,
273,
638,
31,
565,
309,
261,
74,
3744,
480,
446,
13,
288,
1377,
309,
261,
74,
3744,
18,
14963,
12,
6741,
3719,
288,
3639,
327,
31,
368,
5083,
358,
741,
1377,
289,
5411,
284,
3744,
273,
3511,
31,
1377,
1206,
12,
4939,
387,
21,
1769,
1377,
1206,
12,
4939,
387,
22,
1769,
565,
289,
565,
284,
5537,
18,
4479,
12,
4939,
387,
21,
1769,
565,
21553,
21,
273,
394,
804,
5521,
8485,
5621,
565,
21553,
22,
273,
394,
804,
5521,
8485,
5621,
565,
309,
261,
2878,
2012,
422,
629,
13,
288,
1377,
657,
8613,
1386,
2556,
15503,
273,
657,
8613,
1386,
2556,
18,
967,
7786,
5621,
1377,
368,
855,
5769,
596,
434,
12750,
1377,
775,
288,
3639,
509,
2229,
16,
13806,
16,
12661,
16,
28356,
31,
368,
6269,
5769,
3639,
12661,
273,
15503,
18,
588,
5002,
8485,
3899,
60,
12,
5609,
60,
1769,
3639,
28356,
273,
15503,
18,
588,
5002,
8485,
3899,
61,
12,
5609,
61,
1769,
3639,
2229,
273,
15503,
18,
588,
5002,
8485,
3830,
60,
12,
5930,
60,
1769,
3639,
13806,
273,
15503,
18,
588,
5002,
8485,
3830,
61,
12,
5930,
61,
1769,
3639,
3009,
60,
273,
12661,
31,
3639,
3009,
61,
273,
28356,
31,
3639,
2650,
60,
273,
2229,
31,
3639,
2650,
61,
273,
13806,
31,
3639,
368,
309,
326,
775,
324,
15208,
16,
732,
999,
805,
1377,
289,
1044,
261,
1854,
9291,
13958,
67,
4098,
13,
288,
540,
13958,
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,
282,
918,
3511,
5537,
87,
12,
780,
3511,
13,
288,
565,
1250,
6920,
273,
638,
31,
565,
309,
261,
74,
3744,
480,
446,
13,
288,
1377,
309,
261,
74,
3744,
18,
14963,
12,
6741,
3719,
288,
3639,
327,
31,
368,
5083,
358,
741,
1377,
289,
5411,
284,
3744,
273,
3511,
31,
1377,
1206,
12,
4939,
387,
21,
1769,
1377,
1206,
12,
4939,
387,
22,
1769,
565,
289,
565,
284,
5537,
18,
4479,
12,
4939,
387,
21,
1769,
565,
21553,
21,
273,
394,
804,
5521,
8485,
5621,
565,
21553,
22,
273,
394,
804,
5521,
8485,
5621,
565,
309,
261,
2878,
2012,
422,
629,
13,
288,
1377,
657,
8613,
1386,
2556,
15503,
273,
657,
8613,
1386,
2556,
18,
967,
7786,
5621,
2
] |
}, rtc.getLocale( ) ) );
|
}, rtc.getLocale( ) ) );
|
public final SeriesRenderingHints getSeriesRenderingHints( Series seOrthogonal ) throws ChartException, IllegalArgumentException { final EList elCategories = cwoa.getSeriesDefinitions( ); if ( elCategories.size( ) != 1 ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_FORMAT, "exception.cwoa.single.series.definition", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); } final SeriesDefinition sd = (SeriesDefinition) elCategories.get( 0 ); final ArrayList al = sd.getRunTimeSeries( ); if ( al.size( ) != 1 ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_FORMAT, "exception.cwoa.single.runtime.series", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); } final Series seBase = (Series) al.get( 0 ); final DataSetIterator dsiBaseValues = new DataSetIterator( seBase.getDataSet( ) ); final DataSetIterator dsiOrthogonalValues = new DataSetIterator( seOrthogonal.getDataSet( ) ); DataPointHints[] dpha = null; if ( dsiBaseValues.size( ) != dsiOrthogonalValues.size( ) ) // DO NOT // COMPUTE // DATA // POINT // HINTS FOR // OUT-OF-SYNC // DATA { logger.log( ILogger.INFORMATION, Messages.getString( "exception.data.outofsync", //$NON-NLS-1$ new Object[]{ new Integer( dsiBaseValues.size( ) ), new Integer( dsiOrthogonalValues.size( ) ) }, rtc.getLocale( ) ) ); } else { final int iCount = dsiOrthogonalValues.size( ); dpha = new DataPointHints[iCount]; // OPTIMIZED PRE-FETCH FORMAT SPECIFIERS FOR ALL DATA POINTS final DataPoint dp = seOrthogonal.getDataPoint( ); final EList el = dp.getComponents( ); DataPointComponent dpc; DataPointComponentType dpct; FormatSpecifier fsBase = null, fsOrthogonal = null, fsSeries = null; for ( int i = 0; i < el.size( ); i++ ) { dpc = (DataPointComponent) el.get( i ); dpct = dpc.getType( ); if ( dpct == DataPointComponentType.BASE_VALUE_LITERAL ) { fsBase = dpc.getFormatSpecifier( ); if ( fsBase == null ) // BACKUP { fsBase = sd.getFormatSpecifier( ); } } else if ( dpct == DataPointComponentType.ORTHOGONAL_VALUE_LITERAL ) { fsOrthogonal = dpc.getFormatSpecifier( ); if ( fsOrthogonal == null && seOrthogonal.eContainer( ) instanceof SeriesDefinition ) { fsOrthogonal = ( (SeriesDefinition) seOrthogonal.eContainer( ) ).getFormatSpecifier( ); } } else if ( dpct == DataPointComponentType.SERIES_VALUE_LITERAL ) { fsSeries = dpc.getFormatSpecifier( ); } } UserDataSetHints udsh = new UserDataSetHints( seOrthogonal.getDataSets( ) ); udsh.reset( ); for ( int i = 0; i < iCount; i++ ) { dpha[i] = new DataPointHints( dsiBaseValues.next( ), dsiOrthogonalValues.next( ), seOrthogonal.getSeriesIdentifier( ), seOrthogonal.getDataPoint( ), fsBase, fsOrthogonal, fsSeries, null, -1, rtc ); udsh.next( dpha[i] ); } } return new SeriesRenderingHints( this, dpha, dsiBaseValues, dsiOrthogonalValues ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/9feffabd653a3a754530b6a31bb3319f80ad4b5c/PlotWithoutAxes.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withoutaxes/PlotWithoutAxes.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
9225,
14261,
13368,
336,
6485,
14261,
13368,
12,
1082,
202,
6485,
695,
1162,
451,
28396,
262,
1216,
14804,
503,
16,
1082,
202,
31237,
202,
95,
202,
202,
6385,
17021,
415,
10487,
273,
276,
6933,
69,
18,
588,
6485,
7130,
12,
11272,
202,
202,
430,
261,
415,
10487,
18,
1467,
12,
262,
480,
404,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
4883,
67,
7254,
16,
6862,
202,
6,
4064,
18,
71,
6933,
69,
18,
7526,
18,
10222,
18,
6907,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
18731,
18,
588,
3405,
12,
4838,
18,
28980,
16,
436,
5111,
18,
588,
3916,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
6385,
9225,
1852,
8349,
273,
261,
6485,
1852,
13,
415,
10487,
18,
588,
12,
374,
11272,
202,
202,
6385,
2407,
524,
273,
8349,
18,
588,
1997,
28486,
12,
11272,
202,
202,
430,
261,
524,
18,
1467,
12,
262,
480,
404,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
4883,
67,
7254,
16,
6862,
202,
6,
4064,
18,
71,
6933,
69,
18,
7526,
18,
9448,
18,
10222,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
18731,
18,
588,
3405,
12,
4838,
18,
28980,
16,
436,
5111,
18,
588,
3916,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
6385,
9225,
695,
2171,
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,
9225,
14261,
13368,
336,
6485,
14261,
13368,
12,
1082,
202,
6485,
695,
1162,
451,
28396,
262,
1216,
14804,
503,
16,
1082,
202,
31237,
202,
95,
202,
202,
6385,
17021,
415,
10487,
273,
276,
6933,
69,
18,
588,
6485,
7130,
12,
11272,
202,
202,
430,
261,
415,
10487,
18,
1467,
12,
262,
480,
404,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
4883,
67,
7254,
16,
6862,
202,
6,
4064,
18,
71,
6933,
69,
18,
7526,
18,
10222,
18,
6907,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
18731,
18,
588,
3405,
12,
4838,
18,
28980,
16,
436,
5111,
18,
2
] |
} else if (in.sval.equalsIgnoreCase("grant")) {
|
} else if (in.sval.equalsIgnoreCase("grant")) {
|
private void parse(final URL url) throws IOException { logger.log (Component.POLICY, "reading policy file from {0}", url); final StreamTokenizer in = new StreamTokenizer(new InputStreamReader(url.openStream())); in.resetSyntax(); in.slashSlashComments(true); in.slashStarComments(true); in.wordChars('A', 'Z'); in.wordChars('a', 'z'); in.wordChars('0', '9'); in.wordChars('.', '.'); in.wordChars('_', '_'); in.wordChars('$', '$'); in.whitespaceChars(' ', ' '); in.whitespaceChars('\t', '\t'); in.whitespaceChars('\f', '\f'); in.whitespaceChars('\n', '\n'); in.whitespaceChars('\r', '\r'); in.quoteChar('\''); in.quoteChar('"'); int tok; int state = STATE_BEGIN; List keystores = new LinkedList(); URL currentBase = null; List currentCerts = new LinkedList(); Permissions currentPerms = new Permissions(); while ((tok = in.nextToken()) != StreamTokenizer.TT_EOF) { switch (tok) { case '{': if (state != STATE_GRANT) error(url, in, "spurious '{'"); state = STATE_PERMS; tok = in.nextToken(); break; case '}': if (state != STATE_PERMS) error(url, in, "spurious '}'"); state = STATE_BEGIN; currentPerms.setReadOnly(); Certificate[] c = null; if (!currentCerts.isEmpty()) c = (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]); cs2pc.put(new CodeSource(currentBase, c), currentPerms); currentCerts.clear(); currentPerms = new Permissions(); currentBase = null; tok = in.nextToken(); if (tok != ';') in.pushBack(); continue; } if (tok != StreamTokenizer.TT_WORD) { error(url, in, "expecting word token"); } // keystore "<keystore-path>" [',' "<keystore-type>"] ';' if (in.sval.equalsIgnoreCase("keystore")) { String alg = KeyStore.getDefaultType(); tok = in.nextToken(); if (tok != '"' && tok != '\'') error(url, in, "expecting key store URL"); String store = in.sval; tok = in.nextToken(); if (tok == ',') { tok = in.nextToken(); if (tok != '"' && tok != '\'') error(url, in, "expecting key store type"); alg = in.sval; tok = in.nextToken(); } if (tok != ';') error(url, in, "expecting semicolon"); try { KeyStore keystore = KeyStore.getInstance(alg); keystore.load(new URL(url, store).openStream(), null); keystores.add(keystore); } catch (Exception x) { error(url, in, x.toString()); } } else if (in.sval.equalsIgnoreCase("grant")) { if (state != STATE_BEGIN) error(url, in, "extraneous grant keyword"); state = STATE_GRANT; } else if (in.sval.equalsIgnoreCase("signedBy")) { if (state != STATE_GRANT && state != STATE_PERMS) error(url, in, "spurious 'signedBy'"); if (keystores.isEmpty()) error(url, in, "'signedBy' with no keystores"); tok = in.nextToken(); if (tok != '"' && tok != '\'') error(url, in, "expecting signedBy name"); StringTokenizer st = new StringTokenizer(in.sval, ","); while (st.hasMoreTokens()) { String alias = st.nextToken(); for (Iterator it = keystores.iterator(); it.hasNext(); ) { KeyStore keystore = (KeyStore) it.next(); try { if (keystore.isCertificateEntry(alias)) currentCerts.add(keystore.getCertificate(alias)); } catch (KeyStoreException kse) { error(url, in, kse.toString()); } } } tok = in.nextToken(); if (tok != ',') { if (state != STATE_GRANT) error(url, in, "spurious ','"); in.pushBack(); } } else if (in.sval.equalsIgnoreCase("codeBase")) { if (state != STATE_GRANT) error(url, in, "spurious 'codeBase'"); tok = in.nextToken(); if (tok != '"' && tok != '\'') error(url, in, "expecting code base URL"); String base = expand(in.sval); if (File.separatorChar != '/') base = base.replace(File.separatorChar, '/'); try { currentBase = new URL(base); } catch (MalformedURLException mue) { error(url, in, mue.toString()); } tok = in.nextToken(); if (tok != ',') in.pushBack(); } else if (in.sval.equalsIgnoreCase("principal")) { if (state != STATE_GRANT) error(url, in, "spurious 'principal'"); tok = in.nextToken(); if (tok == StreamTokenizer.TT_WORD) { tok = in.nextToken(); if (tok != '"' && tok != '\'') error(url, in, "expecting principal name"); String name = in.sval; Principal p = null; try { Class pclass = Class.forName(in.sval); Constructor c = pclass.getConstructor(new Class[] { String.class }); p = (Principal) c.newInstance(new Object[] { name }); } catch (Exception x) { error(url, in, x.toString()); } for (Iterator it = keystores.iterator(); it.hasNext(); ) { KeyStore ks = (KeyStore) it.next(); try { for (Enumeration e = ks.aliases(); e.hasMoreElements(); ) { String alias = (String) e.nextElement(); if (ks.isCertificateEntry(alias)) { Certificate cert = ks.getCertificate(alias); if (!(cert instanceof X509Certificate)) continue; if (p.equals(((X509Certificate) cert).getSubjectDN()) || p.equals(((X509Certificate) cert).getSubjectX500Principal())) currentCerts.add(cert); } } } catch (KeyStoreException kse) { error(url, in, kse.toString()); } } } else if (tok == '"' || tok == '\'') { String alias = in.sval; for (Iterator it = keystores.iterator(); it.hasNext(); ) { KeyStore ks = (KeyStore) it.next(); try { if (ks.isCertificateEntry(alias)) currentCerts.add(ks.getCertificate(alias)); } catch (KeyStoreException kse) { error(url, in, kse.toString()); } } } else error(url, in, "expecting principal"); tok = in.nextToken(); if (tok != ',') in.pushBack(); } else if (in.sval.equalsIgnoreCase("permission")) { if (state != STATE_PERMS) error(url, in, "spurious 'permission'"); tok = in.nextToken(); if (tok != StreamTokenizer.TT_WORD) error(url, in, "expecting permission class name"); String className = in.sval; Class clazz = null; try { clazz = Class.forName(className); } catch (ClassNotFoundException cnfe) { } tok = in.nextToken(); if (tok == ';') { if (clazz == null) { currentPerms.add(new UnresolvedPermission(className, null, null, (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]))); continue; } try { currentPerms.add((Permission) clazz.newInstance()); } catch (Exception x) { error(url, in, x.toString()); } continue; } if (tok != '"' && tok != '\'') error(url, in, "expecting permission target"); String target = expand(in.sval); tok = in.nextToken(); if (tok == ';') { if (clazz == null) { currentPerms.add(new UnresolvedPermission(className, target, null, (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]))); continue; } try { Constructor c = clazz.getConstructor(new Class[] { String.class }); currentPerms.add((Permission) c.newInstance( new Object[] { target })); } catch (Exception x) { error(url, in, x.toString()); } continue; } if (tok != ',') error(url, in, "expecting ','"); tok = in.nextToken(); if (tok == StreamTokenizer.TT_WORD) { if (!in.sval.equalsIgnoreCase("signedBy")) error(url, in, "expecting 'signedBy'"); try { Constructor c = clazz.getConstructor(new Class[] { String.class }); currentPerms.add((Permission) c.newInstance( new Object[] { target })); } catch (Exception x) { error(url, in, x.toString()); } in.pushBack(); continue; } if (tok != '"' && tok != '\'') error(url, in, "expecting permission action"); String action = in.sval; if (clazz == null) { currentPerms.add(new UnresolvedPermission(className, target, action, (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]))); continue; } else { try { Constructor c = clazz.getConstructor( new Class[] { String.class, String.class }); currentPerms.add((Permission) c.newInstance( new Object[] { target, action })); } catch (Exception x) { error(url, in, x.toString()); } } tok = in.nextToken(); if (tok != ';' && tok != ',') error(url, in, "expecting ';' or ','"); } } }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/5200aefd16debc5177e0a889124f42ee39f14d8c/PolicyFile.java/clean/core/src/classpath/gnu/gnu/java/security/PolicyFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1109,
12,
6385,
1976,
880,
13,
1216,
1860,
225,
288,
565,
1194,
18,
1330,
261,
1841,
18,
26366,
16,
315,
21803,
3329,
585,
628,
288,
20,
1532,
16,
880,
1769,
565,
727,
3961,
10524,
316,
273,
394,
3961,
10524,
12,
2704,
15322,
12,
718,
18,
3190,
1228,
1435,
10019,
3639,
316,
18,
6208,
8070,
5621,
3639,
316,
18,
12877,
11033,
9051,
12,
3767,
1769,
3639,
316,
18,
12877,
18379,
9051,
12,
3767,
1769,
3639,
316,
18,
1095,
7803,
2668,
37,
2187,
296,
62,
8284,
3639,
316,
18,
1095,
7803,
2668,
69,
2187,
296,
94,
8284,
3639,
316,
18,
1095,
7803,
2668,
20,
2187,
296,
29,
8284,
3639,
316,
18,
1095,
7803,
2668,
1093,
16,
2611,
1769,
3639,
316,
18,
1095,
7803,
2668,
67,
2187,
4427,
1769,
3639,
316,
18,
1095,
7803,
2668,
8,
2187,
3365,
8284,
3639,
316,
18,
18777,
7803,
2668,
2265,
296,
28005,
3639,
316,
18,
18777,
7803,
2668,
64,
88,
2187,
2337,
88,
8284,
3639,
316,
18,
18777,
7803,
2668,
64,
74,
2187,
2337,
74,
8284,
3639,
316,
18,
18777,
7803,
2668,
64,
82,
2187,
2337,
82,
8284,
3639,
316,
18,
18777,
7803,
2668,
64,
86,
2187,
2337,
86,
8284,
3639,
316,
18,
6889,
2156,
2668,
3730,
8284,
3639,
316,
18,
6889,
2156,
2668,
5187,
1769,
3639,
509,
946,
31,
3639,
509,
919,
273,
7442,
67,
16061,
31,
3639,
987,
498,
19632,
273,
394,
10688,
5621,
3639,
1976,
783,
2171,
273,
446,
31,
3639,
987,
783,
16273,
273,
394,
10688,
5621,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1109,
12,
6385,
1976,
880,
13,
1216,
1860,
225,
288,
565,
1194,
18,
1330,
261,
1841,
18,
26366,
16,
315,
21803,
3329,
585,
628,
288,
20,
1532,
16,
880,
1769,
565,
727,
3961,
10524,
316,
273,
394,
3961,
10524,
12,
2704,
15322,
12,
718,
18,
3190,
1228,
1435,
10019,
3639,
316,
18,
6208,
8070,
5621,
3639,
316,
18,
12877,
11033,
9051,
12,
3767,
1769,
3639,
316,
18,
12877,
18379,
9051,
12,
3767,
1769,
3639,
316,
18,
1095,
7803,
2668,
37,
2187,
296,
62,
8284,
3639,
316,
18,
1095,
7803,
2668,
69,
2187,
296,
94,
8284,
3639,
316,
18,
1095,
7803,
2668,
20,
2187,
296,
29,
8284,
3639,
316,
18,
1095,
7803,
2668,
1093,
16,
2611,
1769,
2
] |
assertEquals("Enumerated Option in Category", options[3].getName()); assertEquals(IOption.ENUMERATED, options[3].getValueType()); assertEquals("Default Enum", options[3].getSelectedEnum()); valueList = options[3].getApplicableValues();
|
assertEquals("Another String Option in Category", options[3].getName()); assertEquals(IOption.STRING, options[3].getValueType()); assertEquals("", options[3].getStringValue()); assertEquals("-str", options[3].getCommand()); assertEquals("Enumerated Option in Category", options[4].getName()); assertEquals(IOption.ENUMERATED, options[4].getValueType()); assertEquals("Default Enum", options[4].getSelectedEnum()); valueList = options[4].getApplicableValues();
|
private void checkRootTarget(ITarget target) throws BuildException { // Target stuff String expectedCleanCmd = "del /myworld"; String expectedParserId = "org.eclipse.cdt.core.PE"; String[] expectedOSList = {"win32"}; assertTrue(target.isTestTarget()); if (target.getArtifactName().equals("ManagedBuildTest")) { assertEquals(target.getArtifactExtension(), newExt); } else { assertEquals(target.getArtifactExtension(), rootExt); } assertEquals(expectedCleanCmd, target.getCleanCommand()); assertEquals("make", target.getMakeCommand()); assertEquals(expectedParserId, target.getBinaryParserId()); assertTrue(Arrays.equals(expectedOSList, target.getTargetOSList())); // Tools ITool[] tools = target.getTools(); // Root Tool ITool rootTool = tools[0]; assertEquals("Root Tool", rootTool.getName()); // 4 Options are defined in the root tool IOption[] options = rootTool.getOptions(); assertEquals(4, options.length); // First option is a 3-element list with 1 built-in assertEquals("List Option in Top", options[0].getName()); assertEquals(IOption.STRING_LIST, options[0].getValueType()); String[] valueList = options[0].getStringListValue(); assertEquals(2, valueList.length); assertEquals("a", valueList[0]); assertEquals("b", valueList[1]); String[] builtInList = options[0].getBuiltIns(); assertEquals(1, builtInList.length); assertEquals("c", builtInList[0]); assertEquals(options[0].getCommand(), "-L"); // Next option is a boolean in top assertEquals("Boolean Option in Top", options[1].getName()); assertEquals(IOption.BOOLEAN, options[1].getValueType()); assertEquals(false, options[1].getBooleanValue()); assertEquals("-b", options[1].getCommand()); // Next option is a string category assertEquals("String Option in Category", options[2].getName()); assertEquals(IOption.STRING, options[2].getValueType()); assertEquals("x", options[2].getStringValue()); // Final option is an enumerated assertEquals("Enumerated Option in Category", options[3].getName()); assertEquals(IOption.ENUMERATED, options[3].getValueType()); assertEquals("Default Enum", options[3].getSelectedEnum()); valueList = options[3].getApplicableValues(); assertEquals(2, valueList.length); assertEquals("Default Enum", valueList[0]); assertEquals("Another Enum", valueList[1]); assertEquals("-e1", options[3].getEnumCommand(valueList[0])); assertEquals("-e2", options[3].getEnumCommand(valueList[1])); // Option Categories IOptionCategory topCategory = rootTool.getTopOptionCategory(); assertEquals("Root Tool", topCategory.getName()); options = topCategory.getOptions(null); assertEquals(2, options.length); assertEquals("List Option in Top", options[0].getName()); assertEquals("Boolean Option in Top", options[1].getName()); IOptionCategory[] categories = topCategory.getChildCategories(); assertEquals(1, categories.length); assertEquals("Category", categories[0].getName()); options = categories[0].getOptions(null); assertEquals(2, options.length); assertEquals("String Option in Category", options[0].getName()); assertEquals("Enumerated Option in Category", options[1].getName()); // There should be 3 defined configs IConfiguration[] configs = target.getConfigurations(); assertEquals(3, configs.length); // Root Config IConfiguration rootConfig = configs[0]; assertEquals("Root Config", rootConfig.getName()); // Tool elements tools = rootConfig.getTools(); assertEquals(1, tools.length); assertEquals("Root Tool", tools[0].getName()); assertEquals("-r", tools[0].getOutputFlag()); assertTrue(tools[0].buildsFileType("foo")); assertTrue(tools[0].buildsFileType("bar")); assertTrue(tools[0].producesFileType("toor")); assertEquals("doIt", tools[0].getToolCommand()); assertEquals("", tools[0].getOutputPrefix()); // The root tool defines one valid header file extension assertTrue(rootTool.isHeaderFile("baz")); assertTrue(tools[0].isHeaderFile("baz")); assertEquals(ITool.FILTER_C, rootTool.getNatureFilter()); // Partially Overriden Configuration assertEquals("Root Override Config", configs[1].getName()); tools = configs[1].getTools(); assertEquals(1, tools.length); assertTrue(tools[0] instanceof IToolReference); assertEquals("Root Tool", tools[0].getName()); topCategory = tools[0].getTopOptionCategory(); options = topCategory.getOptions(configs[1]); assertEquals(2, options.length); assertEquals("List Option in Top", options[0].getName()); valueList = options[0].getStringListValue(); assertEquals("a", valueList[0]); assertEquals("b", valueList[1]); assertEquals("Boolean Option in Top", options[1].getName()); assertEquals(true, options[1].getBooleanValue()); assertEquals("-b", options[1].getCommand()); categories = topCategory.getChildCategories(); options = categories[0].getOptions(configs[1]); assertEquals(2, options.length); assertEquals("String Option in Category", options[0].getName()); assertEquals("y", options[0].getStringValue()); assertEquals("Enumerated Option in Category", options[1].getName()); valueList = options[1].getApplicableValues(); assertEquals(2, valueList.length); assertEquals("Default Enum", valueList[0]); assertEquals("Another Enum", valueList[1]); assertEquals("-e1", options[1].getEnumCommand(valueList[0])); assertEquals("-e2", options[1].getEnumCommand(valueList[1])); assertEquals(1, tools.length); assertEquals("Root Tool", tools[0].getName()); assertEquals("-r", tools[0].getOutputFlag()); assertTrue(tools[0].buildsFileType("foo")); assertTrue(tools[0].buildsFileType("bar")); assertTrue(tools[0].producesFileType("toor")); assertTrue(tools[0].isHeaderFile("baz")); assertEquals("doIt", tools[0].getToolCommand()); // Completely Overridden configuration assertEquals("Complete Override Config", configs[2].getName()); tools = configs[2].getTools(); assertEquals(1, tools.length); assertTrue(tools[0] instanceof IToolReference); assertEquals("Root Tool", tools[0].getName()); topCategory = tools[0].getTopOptionCategory(); options = topCategory.getOptions(configs[2]); assertEquals(2, options.length); // Check that there's an empty string list and a true boolean (commands should not have changed) assertTrue(options[0] instanceof OptionReference); assertEquals("List Option in Top", options[0].getName()); assertEquals(IOption.STRING_LIST, options[0].getValueType()); valueList = options[0].getStringListValue(); assertTrue(valueList.length == 0); assertEquals("-L", options[0].getCommand()); assertEquals("Boolean Option in Top", options[1].getName()); assertTrue(options[1] instanceof OptionReference); assertEquals("Boolean Option in Top", options[1].getName()); assertEquals(IOption.BOOLEAN, options[1].getValueType()); assertEquals(true, options[1].getBooleanValue()); assertEquals("-b", options[1].getCommand()); // Check that there's an overridden enumeration and string categories = topCategory.getChildCategories(); options = categories[0].getOptions(configs[2]); assertEquals(2, options.length); assertTrue(options[0] instanceof OptionReference); assertEquals("String Option in Category", options[0].getName()); assertEquals(IOption.STRING, options[0].getValueType()); assertEquals("overridden", options[0].getStringValue()); assertTrue(options[1] instanceof OptionReference); assertEquals("Enumerated Option in Category", options[1].getName()); assertEquals(IOption.ENUMERATED, options[1].getValueType()); assertEquals("-e2", options[1].getSelectedEnum()); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e5e65d527afdfbb05c296370bbf033175ee74f72/ManagedBuildTests.java/clean/core/org.eclipse.cdt.core.tests/build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
866,
2375,
2326,
12,
1285,
826,
1018,
13,
1216,
18463,
288,
202,
202,
759,
5916,
10769,
202,
202,
780,
2665,
7605,
5931,
273,
315,
3771,
342,
4811,
18179,
14432,
202,
202,
780,
2665,
2678,
548,
273,
315,
3341,
18,
20416,
18,
4315,
88,
18,
3644,
18,
1423,
14432,
202,
202,
780,
8526,
2665,
4618,
682,
273,
12528,
8082,
1578,
6,
20451,
202,
202,
11231,
5510,
12,
3299,
18,
291,
4709,
2326,
10663,
202,
202,
430,
261,
3299,
18,
588,
7581,
461,
7675,
14963,
2932,
10055,
3116,
4709,
6,
3719,
288,
1082,
202,
11231,
8867,
12,
3299,
18,
588,
7581,
3625,
9334,
394,
2482,
1769,
202,
202,
97,
469,
288,
1082,
202,
11231,
8867,
12,
3299,
18,
588,
7581,
3625,
9334,
1365,
2482,
1769,
202,
202,
97,
202,
202,
11231,
8867,
12,
3825,
7605,
5931,
16,
1018,
18,
588,
7605,
2189,
10663,
202,
202,
11231,
8867,
2932,
6540,
3113,
1018,
18,
588,
6464,
2189,
10663,
202,
202,
11231,
8867,
12,
3825,
2678,
548,
16,
1018,
18,
588,
5905,
2678,
548,
10663,
202,
202,
11231,
5510,
12,
12726,
18,
14963,
12,
3825,
4618,
682,
16,
1018,
18,
588,
2326,
4618,
682,
1435,
10019,
9506,
202,
759,
19089,
202,
202,
45,
6364,
8526,
8513,
273,
1018,
18,
588,
10348,
5621,
202,
202,
759,
7450,
13288,
202,
202,
45,
6364,
1365,
6364,
273,
8513,
63,
20,
15533,
202,
202,
11231,
8867,
2932,
2375,
13288,
3113,
1365,
6364,
18,
17994,
10663,
202,
202,
759,
1059,
5087,
854,
2553,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
866,
2375,
2326,
12,
1285,
826,
1018,
13,
1216,
18463,
288,
202,
202,
759,
5916,
10769,
202,
202,
780,
2665,
7605,
5931,
273,
315,
3771,
342,
4811,
18179,
14432,
202,
202,
780,
2665,
2678,
548,
273,
315,
3341,
18,
20416,
18,
4315,
88,
18,
3644,
18,
1423,
14432,
202,
202,
780,
8526,
2665,
4618,
682,
273,
12528,
8082,
1578,
6,
20451,
202,
202,
11231,
5510,
12,
3299,
18,
291,
4709,
2326,
10663,
202,
202,
430,
261,
3299,
18,
588,
7581,
461,
7675,
14963,
2932,
10055,
3116,
4709,
6,
3719,
288,
1082,
202,
11231,
8867,
12,
3299,
18,
588,
7581,
3625,
9334,
394,
2482,
1769,
202,
202,
97,
469,
288,
1082,
202,
11231,
8867,
12,
3299,
2
] |
e.printStackTrace();
|
Logger.getLogger("SerHelper").error(e.getMessage());
|
public static Object serialClone(Object o) { try { ByteArrayOutputStream out = new ByteArrayOutputStream(); ObjectOutputStream os = new ObjectOutputStream(out); os.writeObject(o); os.flush(); ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); ObjectInputStream is = new ObjectInputStream(in); Object ret = is.readObject(); is.close(); os.close(); return ret; } catch (IOException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } return null; }
|
13062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13062/9093b0525eec7afc18ba1205a9d79d8a1a3c5f90/SerHelper.java/buggy/jtg/service/SerHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
2734,
10930,
12,
921,
320,
13,
288,
3639,
775,
288,
5411,
11559,
596,
273,
394,
11559,
5621,
5411,
23438,
1140,
273,
394,
23438,
12,
659,
1769,
13491,
1140,
18,
2626,
921,
12,
83,
1769,
5411,
1140,
18,
11330,
5621,
5411,
16180,
316,
273,
394,
16180,
12,
659,
18,
869,
8826,
10663,
5411,
22726,
353,
273,
394,
22726,
12,
267,
1769,
5411,
1033,
325,
273,
353,
18,
896,
921,
5621,
5411,
353,
18,
4412,
5621,
5411,
1140,
18,
4412,
5621,
5411,
327,
325,
31,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
4242,
18,
588,
3328,
2932,
827,
2276,
20387,
1636,
12,
73,
18,
24906,
10663,
3639,
289,
1044,
261,
797,
3990,
425,
13,
288,
5411,
4242,
18,
588,
3328,
2932,
827,
2276,
20387,
1636,
12,
73,
18,
24906,
10663,
3639,
289,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
2734,
10930,
12,
921,
320,
13,
288,
3639,
775,
288,
5411,
11559,
596,
273,
394,
11559,
5621,
5411,
23438,
1140,
273,
394,
23438,
12,
659,
1769,
13491,
1140,
18,
2626,
921,
12,
83,
1769,
5411,
1140,
18,
11330,
5621,
5411,
16180,
316,
273,
394,
16180,
12,
659,
18,
869,
8826,
10663,
5411,
22726,
353,
273,
394,
22726,
12,
267,
1769,
5411,
1033,
325,
273,
353,
18,
896,
921,
5621,
5411,
353,
18,
4412,
5621,
5411,
1140,
18,
4412,
5621,
5411,
327,
325,
31,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
4242,
18,
588,
3328,
2932,
827,
2276,
20387,
1636,
12,
73,
18,
24906,
10663,
3639,
289,
1044,
261,
797,
3990,
425,
13,
288,
2
] |
if (!tmpElement.isVirtualElement( ))
|
if ( !tmpElement.isVirtualElement( ) )
|
public static String getExternalizedValue( DesignElementHandle element, String key, String value, ULocale locale ) { if (element == null) return value; DesignElement tmpElement = element.getElement( ); while ( tmpElement != null ) { Module root = tmpElement.getRoot( ); if ( root == null ) break; String externalizedText = root.getMessage( key, locale ); if ( externalizedText != null ) return externalizedText; if (!tmpElement.isVirtualElement( )) tmpElement = tmpElement.getExtendsElement( ); else tmpElement = tmpElement.getVirtualParent( ); } return value; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/21c70f47c2840b52107289eb0dfc883e4f4d2420/ModuleUtil.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ModuleUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
22319,
1235,
620,
12,
29703,
1046,
3259,
930,
16,
1082,
202,
780,
498,
16,
514,
460,
16,
29145,
2573,
262,
202,
95,
202,
202,
430,
261,
2956,
422,
446,
13,
1082,
202,
2463,
460,
31,
9506,
202,
15478,
1046,
1853,
1046,
273,
930,
18,
21336,
12,
11272,
202,
202,
17523,
261,
1853,
1046,
480,
446,
262,
202,
202,
95,
1082,
202,
3120,
1365,
273,
1853,
1046,
18,
588,
2375,
12,
11272,
1082,
202,
430,
261,
1365,
422,
446,
262,
9506,
202,
8820,
31,
1082,
202,
780,
3903,
1235,
1528,
273,
1365,
18,
24906,
12,
498,
16,
2573,
11272,
1082,
202,
430,
261,
3903,
1235,
1528,
480,
446,
262,
9506,
202,
2463,
3903,
1235,
1528,
31,
25083,
202,
430,
16051,
5645,
1046,
18,
291,
6466,
1046,
12,
8623,
25083,
202,
5645,
1046,
273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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
22319,
1235,
620,
12,
29703,
1046,
3259,
930,
16,
1082,
202,
780,
498,
16,
514,
460,
16,
29145,
2573,
262,
202,
95,
202,
202,
430,
261,
2956,
422,
446,
13,
1082,
202,
2463,
460,
31,
9506,
202,
15478,
1046,
1853,
1046,
273,
930,
18,
21336,
12,
11272,
202,
202,
17523,
261,
1853,
1046,
480,
446,
262,
202,
202,
95,
1082,
202,
3120,
1365,
273,
1853,
1046,
18,
588,
2375,
12,
11272,
1082,
202,
430,
261,
1365,
422,
446,
262,
9506,
202,
8820,
31,
1082,
202,
780,
3903,
1235,
1528,
273,
1365,
18,
24906,
12,
498,
16,
2573,
11272,
1082,
202,
430,
261,
3903,
1235,
1528,
480,
446,
262,
9506,
202,
2463,
3903,
1235,
1528,
2
] |
print(" } else { last = msg; }\n");
|
print(" } else if (msg->execute_at > __counter_" + selfID + ") {\n"); print(" last = msg;\n"); print(" } else { print(" message::missed_delivery();\n"); print(" }");
|
public void visitFilter(SIRFilter self, SIRFilterIter iter) { filter = self; selfID = NodeEnumerator.getSIROperatorId(self); // needed by the class int id = selfID; method_names = new HashSet<String>(); JMethodDeclaration[] meth = self.getMethods(); for (int i = 0; i < meth.length; i++) { method_names.add(meth[i].getName()); } HashSet sendsCreditsTo = LatencyConstraints.getOutgoingConstraints(self); boolean restrictedExecution = LatencyConstraints.isRestricted(self); boolean sendsCredits = (sendsCreditsTo.size() > 0); SIRPortal outgoing[] = SIRPortal.getPortalsWithSender(self); SIRPortal incoming[] = SIRPortal.getPortalsWithReceiver(self); Vector<SIRStream> sends_to = new Vector<SIRStream>(); Vector<SIRStream> receives_from = new Vector<SIRStream>(); FlatNode node = NodeEnumerator.getFlatNode(selfID); Iterator constrIter; System.out.println("flat node: "+node); Integer init_int = (Integer)ClusterBackend.initExecutionCounts.get(node); int init_counts; if (init_int == null) { init_counts = 0; } else { init_counts = init_int.intValue(); } int steady_counts = ((Integer)ClusterBackend.steadyExecutionCounts.get(node)).intValue(); for (int t = 0; t < outgoing.length; t++) { SIRStream[] receivers = outgoing[t].getReceivers(); for (int i = 0; i < receivers.length; i++) { sends_to.add(receivers[i]); } } for (int t = 0; t < incoming.length; t++) { SIRPortalSender[] senders = incoming[t].getSenders(); for (int i = 0; i < senders.length; i++) { receives_from.add(senders[i].getStream()); } } int pop_n, peek_n, push_n; pop_n = self.getPopInt(); peek_n = self.getPeekInt(); push_n = self.getPushInt(); print("// peek: "+peek_n+" pop: "+pop_n+" push "+push_n+"\n"); print("// init counts: "+init_counts+" steady counts: "+steady_counts+"\n"); print("\n"); int data = DataEstimate.filterGlobalsSize(self); CodeEstimate est = CodeEstimate.estimate(self); //int code = CodeEstimate.estimateCode(self); //int locals = CodeEstimate.estimateLocals(self); int code = est.getCodeSize(); int locals = est.getLocalsSize(); System.out.println("[globals: "+data+" locals: "+locals+" code: "+code+"]"); Vector data_in = (Vector)RegisterStreams.getNodeInStreams(self); Vector data_out = (Vector)RegisterStreams.getNodeOutStreams(self); JMethodDeclaration[] methods = self.getMethods(); JFieldDeclaration[] fields = self.getFields(); JMethodDeclaration work = self.getWork(); CType input_type = self.getInputType(); CType output_type = self.getOutputType(); //NetStream in = RegisterStreams.getFilterInStream(self); //NetStream out = RegisterStreams.getFilterOutStream(self); //int out_pop_buffer_size = 10240; //int out_pop_num_iters = 0; //if (push_n != 0) out_pop_num_iters = out_pop_buffer_size / push_n; print("#include <stream_node.h>\n"); constrIter = sendsCreditsTo.iterator(); while (constrIter.hasNext()) { print("\n"); LatencyConstraint constraint = (LatencyConstraint)constrIter.next(); int receiver = NodeEnumerator.getSIROperatorId(constraint.getReceiver()); int sourcePhase = constraint.getSourceSteadyExec(); print("int __init_"+selfID+"_"+receiver+" = "+constraint.getSourceInit()+";\n"); print("int __source_phase_"+selfID+"_"+receiver+" = "+sourcePhase+";\n"); print("int __dest_phase_"+selfID+"_"+receiver+" = "+constraint.getDestSteadyExec()+";\n"); print("int __current_"+selfID+"_"+receiver+" = 0;\n"); print("int __dest_offset_"+selfID+"_"+receiver+" = 0;\n"); print("int __dependency_"+selfID+"_"+receiver+"[] = {"); int y; for (y = 0; y < sourcePhase - 1; y++) { print(constraint.getDependencyData(y)+","); } print(constraint.getDependencyData(y)+"};\n"); } print("\n"); //print("int *iteration__"+id+";\n"); print("class thread"+selfID+" : public stream_node<"+ typeToC(input_type,true)+","+typeToC(output_type,true)+"> {\n"); //print("\n"); //pos += TAB_SIZE; //print("\n"); print("public:\n"); print("\n"); print(" thread"+selfID+"() : stream_node<"+ typeToC(input_type,true)+","+typeToC(output_type,true)+">("+selfID+","+ NodeEnumerator.getNumberOfNodes()+","+pop_n +","+peek_n+","+push_n); //print(","); //if (in != null) print(in.getSource()); else print("-1"); //print(","); //if (out != null) print(out.getDest()); else print("-1"); print(") {\n"); pos += TAB_SIZE; { Iterator i; i = data_in.iterator(); while (i.hasNext()) { NetStream _in = (NetStream)i.next(); print(" add_input("+_in.getSource()+");\n"); } i = data_out.iterator(); while (i.hasNext()) { NetStream _out = (NetStream)i.next(); print(" add_output("+_out.getDest()+");\n"); } i = sends_to.iterator(); while (i.hasNext()) { int dst = NodeEnumerator.getSIROperatorId((SIRStream)i.next()); print(" add_msg_out("+dst+");\n"); } i = receives_from.iterator(); while (i.hasNext()) { int src = NodeEnumerator.getSIROperatorId((SIRStream)i.next()); print(" add_msg_in("+src+");\n"); } } pos -= TAB_SIZE; p.setPos(pos); print(" }\n"); print("\n"); // +=============================+ // | Read / Write Thread | // +=============================+ print("\n"); print(" int state_size() {\n"); print(" int res=0;\n"); for (int f = 0; f < fields.length; f++) { CType type = fields[f].getType(); String ident = fields[f].getVariable().getIdent(); DetectConst dc = DetectConst.getInstance((SIRFilter)self); if (dc != null && dc.isConst(ident)) continue; if (type.isArrayType()) { int size = 0; String dims[] = this.makeArrayStrings(((CArrayType)type).getDims()); CType base = ((CArrayType)type).getBaseType(); try { size = Integer.valueOf(dims[0]).intValue(); } catch (NumberFormatException ex) { System.out.println("Warning! Could not estimate size of an array: "+ident); } print(" res += "+size+" * sizeof("+typeToC(base)+");\n"); } else { print(" res += sizeof("+typeToC(type)+");\n"); } } { constrIter = sendsCreditsTo.iterator(); while (constrIter.hasNext()) { LatencyConstraint constraint = (LatencyConstraint)constrIter.next(); int receiver = NodeEnumerator.getSIROperatorId(constraint.getReceiver()); print(" res += 2 * sizeof(int);\n"); } } print(" return res;\n"); print(" }\n"); { //Iterator i; //r.add("void save_peek_buffer__"+id+"(object_write_buffer *buf);\n"); //r.add("void load_peek_buffer__"+id+"(object_write_buffer *buf);\n"); print("\n"); print(" thread"+id+" *clone() {\n"); print(" thread"+id+" *res = new thread"+id+"();\n"); print(" res->clone_stream(this);\n"); for (int f = 0; f < fields.length; f++) { CType type = fields[f].getType(); String ident = fields[f].getVariable().getIdent(); DetectConst dc = DetectConst.getInstance((SIRFilter)self); if (dc != null && dc.isConst(ident)) continue; if (type.isArrayType()) { int size = 0; String dims[] = this.makeArrayStrings(((CArrayType)type).getDims()); //CType base = ((CArrayType)type).getBaseType(); try { size = Integer.valueOf(dims[0]).intValue(); } catch (NumberFormatException ex) { System.out.println("Warning! Could not estimate size of an array: "+ident); } print(" for (int z = 0; z < "+size+"; z++)\n"); print(" res->"+ident+"__"+id+"[z] = "+ident+"__"+id+"[z];\n"); } else { print(" res->"+ident+"__"+id+" = "+ident+"__"+id+";\n"); } } /* constrIter = sendsCreditsTo.iterator(); while (constrIter.hasNext()) { LatencyConstraint constraint = (LatencyConstraint)constrIter.next(); int receiver = NodeEnumerator.getSIROperatorId(constraint.getReceiver()); print(" res->__current_"+selfID+"_"+receiver+" = __current_"+selfID+"_"+receiver+";\n"); print(" res->__dest_offset_"+selfID+"_"+receiver+" = __dest_offset_"+selfID+"_"+receiver+";\n"); } */ /* i = data_out.iterator(); while (i.hasNext()) { NetStream _out = (NetStream)i.next(); print(" //"+_out.producer_name()+".write_object(buf);\n"); } */ print(" return res;\n"); print(" }\n"); print("\n"); print(" void save_state(object_write_buffer *buf) {\n"); /* i = data_in.iterator(); while (i.hasNext()) { NetStream _in = (NetStream)i.next(); print(" //"+_in.consumer_name()+".write_object(buf);\n"); //if (oper instanceof SIRFilter) { // r.add(" "+in.name()+"in.write_object(buf);\n"); //} } */ //r.add(" save_peek_buffer__"+id+"(buf);\n"); for (int f = 0; f < fields.length; f++) { CType type = fields[f].getType(); String ident = fields[f].getVariable().getIdent(); DetectConst dc = DetectConst.getInstance((SIRFilter)self); if (dc != null && dc.isConst(ident)) continue; if (type.isArrayType()) { int size = 0; String dims[] = this.makeArrayStrings(((CArrayType)type).getDims()); CType base = ((CArrayType)type).getBaseType(); try { size = Integer.valueOf(dims[0]).intValue(); } catch (NumberFormatException ex) { System.out.println("Warning! Could not estimate size of an array: "+ident); } print(" buf->write("+ident+"__"+id+", "+size+" * sizeof("+typeToC(base)+"));\n"); } else { print(" buf->write(&"+ident+"__"+id+", sizeof("+typeToC(type)+"));\n"); } } constrIter = sendsCreditsTo.iterator(); while (constrIter.hasNext()) { LatencyConstraint constraint = (LatencyConstraint)constrIter.next(); int receiver = NodeEnumerator.getSIROperatorId(constraint.getReceiver()); print(" buf->write(&__current_"+selfID+"_"+receiver+", sizeof(int));\n"); print(" buf->write(&__dest_offset_"+selfID+"_"+receiver+", sizeof(int));\n"); } /* i = data_out.iterator(); while (i.hasNext()) { NetStream _out = (NetStream)i.next(); print(" //"+_out.producer_name()+".write_object(buf);\n"); } */ print(" }\n"); print("\n"); print(" void load_state(object_write_buffer *buf) {\n"); /* i = data_in.iterator(); while (i.hasNext()) { NetStream _in = (NetStream)i.next(); print(" //"+_in.consumer_name()+".read_object(buf);\n"); //if (oper instanceof SIRFilter) { //r.add(" "+in.name()+"in.read_object(buf);\n"); //} } */ //r.add(" load_peek_buffer__"+id+"(buf);\n"); for (int f = 0; f < fields.length; f++) { CType type = fields[f].getType(); String ident = fields[f].getVariable().getIdent(); DetectConst dc = DetectConst.getInstance((SIRFilter)self); if (dc != null && dc.isConst(ident)) continue; if (type.isArrayType()) { int size = 0; String dims[] = this.makeArrayStrings(((CArrayType)type).getDims()); CType base = ((CArrayType)type).getBaseType(); try { size = Integer.valueOf(dims[0]).intValue(); } catch (NumberFormatException ex) { System.out.println("Warning! Could not estimate size of an array: "+ident); } print(" buf->read("+ident+"__"+id+", "+size+" * sizeof("+typeToC(base)+"));\n"); } else { print(" buf->read(&"+ident+"__"+id+", sizeof("+typeToC(type)+"));\n"); } } constrIter = sendsCreditsTo.iterator(); while (constrIter.hasNext()) { LatencyConstraint constraint = (LatencyConstraint)constrIter.next(); int receiver = NodeEnumerator.getSIROperatorId(constraint.getReceiver()); print(" buf->read(&__current_"+selfID+"_"+receiver+", sizeof(int));\n"); print(" buf->read(&__dest_offset_"+selfID+"_"+receiver+", sizeof(int));\n"); } /* i = data_out.iterator(); while (i.hasNext()) { NetStream _out = (NetStream)i.next(); print(" //"+_out.producer_name()+".read_object(buf);\n"); } */ print(" }\n"); print("\n"); } //====================================== print(" void init_state() {\n"); print(" //super::init_state();\n"); if (restrictedExecution) { print(" set_need_credit();\n"); } { Iterator i; i = sends_to.iterator(); while (i.hasNext()) { SIRFilter sender = self; SIRFilter receiver = (SIRFilter)i.next(); int fromID = id; int toID = NodeEnumerator.getSIROperatorId(receiver); boolean downstream = LatencyConstraints.isMessageDirectionDownstream(sender, receiver); print("\n //SDEP from: "+fromID+" to: "+toID+";\n"); streamit.scheduler2.constrained.Scheduler cscheduler = streamit.scheduler2.constrained.Scheduler.createForSDEP(ClusterBackend.topStreamIter); streamit.scheduler2.iriter.Iterator firstIter = IterFactory.createFactory().createIter(sender); streamit.scheduler2.iriter.Iterator lastIter = IterFactory.createFactory().createIter(receiver); streamit.scheduler2.SDEPData sdep = null; if (downstream) { print(" //message sent downstream;\n"); try { sdep = cscheduler.computeSDEP(firstIter, lastIter); } catch (streamit.scheduler2.constrained.NoPathException ex) {} } else { print(" //message sent upstream;\n"); try { sdep = cscheduler.computeSDEP(lastIter, firstIter); } catch (streamit.scheduler2.constrained.NoPathException ex) {} } int srcInit = sdep.getNumSrcInitPhases(); int srcSteady = sdep.getNumSrcSteadyPhases(); int dstInit = sdep.getNumDstInitPhases(); int dstSteady = sdep.getNumDstSteadyPhases(); String sdepname = "sdep_"+fromID+"_"+toID; print(" "+sdepname+" = new sdep("+ srcInit+","+dstInit+","+ srcSteady+","+dstSteady+");\n"); for (int y = 0; y < dstInit + dstSteady + 1; y++) { print(" "+sdepname+"->setDst2SrcDependency("+y+","+sdep.getSrcPhase4DstPhase(y)+");\n"); } print("\n"); } } print(" "+self.getInit().getName()+/*"__"+id+*/"();\n"); print(" }\n"); // +=============================+ // | Send Credits | // +=============================+ //HashSet sendsCreditsTo = LatencyConstraints.getOutgoingConstraints(self); //boolean restrictedExecution = LatencyConstraints.isRestricted(self); //boolean sendsCredits; print("\n void send_credits() {\n"); print(" int tmp;\n"); constrIter = sendsCreditsTo.iterator(); while (constrIter.hasNext()) { LatencyConstraint constraint = (LatencyConstraint)constrIter.next(); int receiver = NodeEnumerator.getSIROperatorId(constraint.getReceiver()); if (LatencyConstraints.isMessageDirectionDownstream(self, constraint.getReceiver())) { // message and credit is sent downstream print(" if (iteration > __init_"+selfID+"_"+receiver+") {\n"); print(" tmp = __dependency_"+selfID+"_"+receiver+"[__current_"+selfID+"_"+receiver+"];\n"); print(" if (tmp > 0) {\n"); print(" send_credit("+receiver+", tmp + __dest_offset_"+selfID+"_"+receiver+");\n"); //print(" get_msg_out_socket("+receiver+")->write_int(-1);\n"); //print(" get_msg_out_socket("+receiver+")->write_int(tmp + __dest_offset_"+selfID+"_"+receiver+");\n"); print(" }\n"); print(" __current_"+selfID+"_"+receiver+" = (__current_"+selfID+"_"+receiver+" + 1) % __source_phase_"+selfID+"_"+receiver+";\n"); print(" if (__current_"+selfID+"_"+receiver+" == 0) __dest_offset_"+selfID+"_"+receiver+" += __dest_phase_"+selfID+"_"+receiver+";\n"); print(" }\n"); } else { // message and credit is sent upstream print(" send_credit("+receiver+", (++__current_"+selfID+"_"+receiver+")*1023);\n"); /* print(" if (iteration == 0) {\n"); print(" send_credit("+receiver+", __init_"+selfID+"_"+receiver+");\n"); //print(" __msg_sock_"+selfID+"_"+receiver+"out->write_int(-1);\n"); //print(" __msg_sock_"+selfID+"_"+receiver+"out->write_int(__init_"+selfID+"_"+receiver+");\n"); print(" } else {\n"); print(" tmp = __dependency_"+selfID+"_"+receiver+"[__current_"+selfID+"_"+receiver+"];\n"); print(" if (tmp > 0) {\n"); print(" send_credit("+receiver+", tmp + __dest_offset_"+selfID+"_"+receiver+");\n"); //print(" get_msg_out_socket("+receiver+")->write_int(-1);\n"); //print(" get_msg_out_socket("+receiver+")->write_int(tmp + __dest_offset_"+selfID+"_"+receiver+");\n"); print(" }\n"); print(" __current_"+selfID+"_"+receiver+" = (__current_"+selfID+"_"+receiver+" + 1) % __source_phase_"+selfID+"_"+receiver+";\n"); print(" if (__current_"+selfID+"_"+receiver+" == 0) __dest_offset_"+selfID+"_"+receiver+" += __dest_phase_"+selfID+"_"+receiver+";\n"); print(" }\n"); */ } } print(" }\n"); print("\n"); print(" void exec_message(message *msg) {\n"); SIRPortal[] portals = SIRPortal.getPortalsWithReceiver(self); // this block will need to be adjusted to receive from // multiple portals of different types (different interfaces) if (portals.length > 0) { CClass pclass = portals[0].getPortalType().getCClass(); CMethod pmethods[] = pclass.getMethods(); for (int i = 0 ; i < pmethods.length; i++) { CMethod portal_method = pmethods[i]; CType portal_method_params[] = portal_method.getParameters(); String method_name = portal_method.getIdent(); int length = method_name.length(); if (!method_name.startsWith("<") && !method_name.endsWith(">")) { print(" if (msg->method_id == "+i+") {\n"); for (int t = 0; t < methods.length; t++) { String thread_method_name = methods[t].getName(); if (thread_method_name.startsWith(method_name) && thread_method_name.charAt(length) == '_' && thread_method_name.charAt(length + 1) == '_') { int param_count = methods[t].getParameters().length; for (int a = 0; a < param_count; a++) { if (portal_method_params[a].toString().equals("int")) { print(" int p"+a+" = msg->get_int_param();\n"); } if (portal_method_params[a].toString().equals("float")) { print(" float p"+a+" = msg->get_float_param();\n"); } } print(" "+thread_method_name+/*"__"+selfID+*/"("); for (int a = 0; a < param_count; a++) { if (a > 0) print(", "); print("p"+a); } print(");\n"); } } print(" }\n"); } } } print(" }\n"); print("\n//============================================================\n"); print("\n"); for (int f = 0; f < fields.length; f++) { CType type = fields[f].getType(); String ident = fields[f].getVariable().getIdent(); if (type.toString().endsWith("Portal")) continue; print(typeToC(type)+" "+ident+"__"+id+";\n"); } { Iterator i = sends_to.iterator(); if (i.hasNext()) { print("\n"); while (i.hasNext()) { SIRStream str = (SIRStream)i.next(); print("sdep *sdep_"+id+"_"+NodeEnumerator.getSIROperatorId(str)+";\n"); } } } print("\n//============================================================\n"); // +=============================+ // | Method Bodies | // +=============================+ declOnly = false; for (int i = 0; i < methods.length; i++) { String old_name = ""; if (methods[i].equals(work)) { old_name = methods[i].getName(); methods[i].setName("work"); } methods[i].accept(this); if (methods[i].equals(work)) methods[i].setName(old_name); } // +=============================+ // | Work Function (int ____n) | // +=============================+ JBlock block = new JBlock(null, new JStatement[0], null); JVariableDefinition counter = new JVariableDefinition(null, 0, CStdType.Integer, "____n", new JIntLiteral(0));// JVariableDefinition iter_counter = // new JVariableDefinition(null, // 0, // CStdType.Integer,// "__counter_"+selfID,// null); JStatement init = new JEmptyStatement(null, null); //VariableDeclarationStatement(null, tmp, null); JExpression decrExpr = new JPostfixExpression(null, Constants.OPE_POSTDEC, new JLocalVariableExpression(null, counter)); JStatement decr = new JExpressionStatement(null, decrExpr, null); JExpression cond = new JRelationalExpression(null, Constants.OPE_LT, new JIntLiteral(0), new JLocalVariableExpression(null,counter)); block.addStatement(new JForStatement(null, init, cond, decr, work.getBody(), null)); // __counter_X = __counter_X + ____n; JFormalParameter param = new JFormalParameter(null, 0, CStdType.Integer, "____n", true); JFormalParameter params[] = new JFormalParameter[1]; params[0] = param; JMethodDeclaration work_n = new JMethodDeclaration(null, at.dms.kjc.Constants.ACC_PUBLIC, CStdType.Void, "work_n", //work.getName(), params, CClassType.EMPTY, block, null, null); work_n.accept(this); print("\n//============================================================\n"); // +=============================+ // | Push / Pop | // +=============================+ pos -= TAB_SIZE; print("};\n"); print("\n"); print("thread"+id+" *instance_"+id+" = NULL;\n"); print("thread"+id+" *get_instance_"+id+"() {\n"); print(" if (instance_"+id+" == NULL) instance_"+id+" = new thread"+id+"();\n"); print(" instance_"+id+"->init_stream();\n"); print(" return instance_"+id+";\n"); print("}\n"); print("\n"); print("void __get_thread_info_"+id+"() { get_instance_"+id+"()->get_thread_info(); }\n"); print("void __declare_sockets_"+id+"() { get_instance_"+id+"()->declare_sockets(); }\n"); print("extern int __max_iteration;\n"); print("void run_"+id+"() { get_instance_"+id+"()->run_simple("+init_counts+"+("+steady_counts+"*__max_iteration)); }\n"); createFile(selfID); //return; // +=============================+ // | Check Messages | // +=============================+ print("\nvoid check_messages__"+selfID+"() {\n"); print(" message *msg, *last = NULL;\n"); if (restrictedExecution) { print(" while (__credit_"+selfID+" <= __counter_"+selfID+") {\n"); } { Iterator i = receives_from.iterator(); while (i.hasNext()) { int src = NodeEnumerator.getSIROperatorId((SIRStream)i.next()); print(" if (__msg_sock_"+src+"_"+selfID+"in->data_available()) {\n handle_message__"+selfID+"(__msg_sock_"+src+"_"+selfID+"in);\n } // if\n"); } } if (restrictedExecution) { print(" } // while \n"); } print(" for (msg = __msg_stack_"+selfID+"; msg != NULL; msg = msg->next) {\n"); print(" if (msg->execute_at <= __counter_"+selfID+") {\n"); //SIRPortal[] portals = SIRPortal.getPortalsWithReceiver(self); // this block will need to be adjusted to receive from // multiple portals of different types (different interfaces) if (portals.length > 0) { CClass pclass = portals[0].getPortalType().getCClass(); CMethod pmethods[] = pclass.getMethods(); for (int i = 0 ; i < pmethods.length; i++) { CMethod portal_method = pmethods[i]; CType portal_method_params[] = portal_method.getParameters(); String method_name = portal_method.getIdent(); int length = method_name.length(); if (!method_name.startsWith("<") && !method_name.endsWith(">")) { print(" if (msg->method_id == "+i+") {\n"); for (int t = 0; t < methods.length; t++) { String thread_method_name = methods[t].getName(); if (thread_method_name.startsWith(method_name) && thread_method_name.charAt(length) == '_' && thread_method_name.charAt(length + 1) == '_') { int param_count = methods[t].getParameters().length; for (int a = 0; a < param_count; a++) { if (portal_method_params[a].toString().equals("int")) { print(" int p"+a+" = msg->get_int_param();\n"); } if (portal_method_params[a].toString().equals("float")) { print(" float p"+a+" = msg->get_float_param();\n"); } } print(" "+thread_method_name+"__"+selfID+"("); for (int a = 0; a < param_count; a++) { if (a > 0) print(", "); print("p"+a); } print(");\n"); } } print(" }\n"); } } print(" if (last != NULL) { \n"); print(" last->next = msg->next;\n"); print(" } else {\n"); print(" __msg_stack_"+selfID+" = msg->next;\n"); print(" }\n"); print(" delete msg;\n"); } print(" } else { last = msg; }\n"); print(" } // for \n"); print("}\n"); // +=============================+ // | Handle Message | // +=============================+ print("\nvoid handle_message__"+selfID+"(netsocket *sock) {\n"); print(" int size = sock->read_int();\n"); if (restrictedExecution) { print(" if (size == -1) { // a credit message received\n"); print(" __credit_"+selfID+" = sock->read_int();\n"); print(" return;\n"); print(" };\n"); } print(" int index = sock->read_int();\n"); print(" int iteration = sock->read_int();\n"); print(" printf(\"//Message receieved! thread: "+selfID+", method_index: %d excute at iteration: %d\\n\", index, iteration);\n"); print(" message *msg = new message(size, index, iteration);\n"); print(" msg->read_params(sock,16);\n"); print(" __msg_stack_"+selfID+" = msg->push_on_stack(__msg_stack_"+selfID+");\n"); print("}\n"); // +=============================+ // | Send Credits | // +=============================+ //Iterator constrIter; constrIter = sendsCreditsTo.iterator(); while (constrIter.hasNext()) { LatencyConstraint constraint = (LatencyConstraint)constrIter.next(); int receiver = NodeEnumerator.getSIROperatorId(constraint.getReceiver()); int sourcePhase = constraint.getSourceSteadyExec(); print("int __init_"+selfID+"_"+receiver+" = "+constraint.getSourceInit()+";\n"); print("int __source_phase_"+selfID+"_"+receiver+" = "+sourcePhase+";\n"); print("int __dest_phase_"+selfID+"_"+receiver+" = "+constraint.getDestSteadyExec()+";\n"); print("int __current_"+selfID+"_"+receiver+" = 0;\n"); print("int __dest_offset_"+selfID+"_"+receiver+" = 0;\n"); print("int __dependency_"+selfID+"_"+receiver+"[] = {"); int y; for (y = 0; y < sourcePhase - 1; y++) { print(constraint.getDependencyData(y)+","); } print(constraint.getDependencyData(y)+"};\n"); print("\n"); } print("\ninline void send_credits__"+selfID+"() {\n"); print(" int tmp;\n"); //HashSet sendsCreditsTo = LatencyConstraints.getOutgoingConstraints(self); //boolean restrictedExecution = LatencyConstraints.isRestricted(self); //boolean sendsCredits; constrIter = sendsCreditsTo.iterator(); while (constrIter.hasNext()) { LatencyConstraint constraint = (LatencyConstraint)constrIter.next(); int receiver = NodeEnumerator.getSIROperatorId(constraint.getReceiver()); if (LatencyConstraints.isMessageDirectionDownstream(self, constraint.getReceiver())) { // message and credit is sent downstream print(" if (__counter_"+selfID+" > __init_"+selfID+"_"+receiver+") {\n"); print(" tmp = __dependency_"+selfID+"_"+receiver+"[__current_"+selfID+"_"+receiver+"];\n"); print(" if (tmp > 0) {\n"); print(" __msg_sock_"+selfID+"_"+receiver+"out->write_int(-1);\n"); print(" __msg_sock_"+selfID+"_"+receiver+"out->write_int(tmp + __dest_offset_"+selfID+"_"+receiver+");\n"); print(" }\n"); print(" __current_"+selfID+"_"+receiver+" = (__current_"+selfID+"_"+receiver+" + 1) % __source_phase_"+selfID+"_"+receiver+";\n"); print(" if (__current_"+selfID+"_"+receiver+" == 0) __dest_offset_"+selfID+"_"+receiver+" += __dest_phase_"+selfID+"_"+receiver+";\n"); print(" }\n"); } else { // message and credit is sent upstream print(" if (__counter_"+selfID+" == 0) {\n"); print(" __msg_sock_"+selfID+"_"+receiver+"out->write_int(-1);\n"); print(" __msg_sock_"+selfID+"_"+receiver+"out->write_int(__init_"+selfID+"_"+receiver+");\n"); print(" } else {\n"); print(" tmp = __dependency_"+selfID+"_"+receiver+"[__current_"+selfID+"_"+receiver+"];\n"); print(" if (tmp > 0) {\n"); print(" __msg_sock_"+selfID+"_"+receiver+"out->write_int(-1);\n"); print(" __msg_sock_"+selfID+"_"+receiver+"out->write_int(tmp + __dest_offset_"+selfID+"_"+receiver+");\n"); print(" }\n"); print(" __current_"+selfID+"_"+receiver+" = (__current_"+selfID+"_"+receiver+" + 1) % __source_phase_"+selfID+"_"+receiver+";\n"); print(" if (__current_"+selfID+"_"+receiver+" == 0) __dest_offset_"+selfID+"_"+receiver+" += __dest_phase_"+selfID+"_"+receiver+";\n"); print(" }\n"); } } print("}\n"); // +=============================+ // | Cluster Main | // +=============================+ //Vector run = gen.generateRunFunction(filter.getInit().getName()+"__"+selfID, filter.getWork().getName()+"__"+selfID); //for (int i = 0; i < run.size(); i++) { // print(run.elementAt(i).toString()); //} //createFile(selfID); }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/142b90b74d2d8d55daae35bfb0c2093d0b974c83/FlatIRToCluster2.java/clean/streams/src/at/dms/kjc/cluster/FlatIRToCluster2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1586,
12,
2320,
54,
1586,
365,
16,
18701,
5705,
54,
1586,
2360,
1400,
13,
288,
3639,
1034,
273,
365,
31,
3639,
365,
734,
273,
2029,
3572,
7385,
18,
588,
2320,
1457,
457,
639,
548,
12,
2890,
1769,
368,
3577,
635,
326,
667,
3639,
509,
612,
273,
365,
734,
31,
3639,
707,
67,
1973,
273,
394,
6847,
32,
780,
34,
5621,
3639,
804,
1305,
6094,
8526,
7917,
273,
365,
18,
588,
4712,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
7917,
18,
2469,
31,
277,
27245,
288,
5411,
707,
67,
1973,
18,
1289,
12,
27305,
63,
77,
8009,
17994,
10663,
3639,
289,
3639,
6847,
9573,
24201,
1282,
774,
273,
11134,
2075,
4878,
18,
588,
24866,
4878,
12,
2890,
1769,
3639,
1250,
15693,
3210,
273,
11134,
2075,
4878,
18,
291,
18784,
12,
2890,
1769,
540,
1250,
9573,
24201,
1282,
273,
261,
4661,
87,
24201,
1282,
774,
18,
1467,
1435,
405,
374,
1769,
3639,
5705,
54,
24395,
12902,
8526,
273,
5705,
54,
24395,
18,
588,
2617,
1031,
1190,
12021,
12,
2890,
1769,
3639,
5705,
54,
24395,
6935,
8526,
273,
5705,
54,
24395,
18,
588,
2617,
1031,
1190,
12952,
12,
2890,
1769,
5411,
5589,
32,
2320,
54,
1228,
34,
9573,
67,
869,
273,
394,
5589,
32,
2320,
54,
1228,
34,
5621,
3639,
5589,
32,
2320,
54,
1228,
34,
17024,
67,
2080,
273,
394,
5589,
32,
2320,
54,
1228,
34,
5621,
3639,
20396,
907,
756,
273,
2029,
3572,
7385,
18,
588,
16384,
907,
12,
2890,
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,
3757,
1586,
12,
2320,
54,
1586,
365,
16,
18701,
5705,
54,
1586,
2360,
1400,
13,
288,
3639,
1034,
273,
365,
31,
3639,
365,
734,
273,
2029,
3572,
7385,
18,
588,
2320,
1457,
457,
639,
548,
12,
2890,
1769,
368,
3577,
635,
326,
667,
3639,
509,
612,
273,
365,
734,
31,
3639,
707,
67,
1973,
273,
394,
6847,
32,
780,
34,
5621,
3639,
804,
1305,
6094,
8526,
7917,
273,
365,
18,
588,
4712,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
7917,
18,
2469,
31,
277,
27245,
288,
5411,
707,
67,
1973,
18,
1289,
12,
27305,
63,
77,
8009,
17994,
10663,
3639,
289,
3639,
6847,
9573,
24201,
1282,
774,
273,
11134,
2075,
4878,
18,
2
] |
public static String getPosition(Context c, Box box) { String position = c.css.getStyle(box.getRealElement()).getStringProperty("position");
|
public static String getPosition(CalculatedStyle style) { String position = style.getStringProperty("position");
|
public static String getPosition(Context c, Box box) { String position = c.css.getStyle(box.getRealElement()).getStringProperty("position"); if (position == null) { position = "static"; } return position; }
|
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/LayoutUtil.java/buggy/src/java/org/xhtmlrenderer/layout/LayoutUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
14441,
12,
1042,
276,
16,
8549,
3919,
13,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
14441,
12,
1042,
276,
16,
8549,
3919,
13,
288,
3639,
514,
1754,
273,
276,
18,
5212,
18,
588,
2885,
12,
2147,
18,
588,
6955,
1046,
1435,
2934,
588,
780,
1396,
2932,
3276,
8863,
3639,
309,
261,
3276,
422,
446,
13,
288,
5411,
1754,
273,
315,
3845,
14432,
3639,
289,
3639,
327,
1754,
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
] |
postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier);
|
postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier, global);
|
public void onSuccess(FetchResult result, ClientGetter state) { Logger.minor(this, "Succeeded: "+identifier); Bucket data = result.asBucket(); if(returnBucket != data) Logger.error(this, "returnBucket = "+returnBucket+" but onSuccess() data = "+data); boolean dontFree = false; // FIXME I don't think this is a problem in this case...? (Disk write while locked..) AllDataMessage adm = null; synchronized(this) { if(succeeded) { Logger.error(this, "onSuccess called twice for "+this+" ("+identifier+ ')'); return; // We might be called twice; ignore it if so. } if(returnType == ClientGetMessage.RETURN_TYPE_DIRECT) { // Send all the data at once // FIXME there should be other options adm = new AllDataMessage(data, identifier); if(persistenceType == PERSIST_CONNECTION) adm.setFreeOnSent(); dontFree = true; /* * } else if(returnType == ClientGetMessage.RETURN_TYPE_NONE) { // Do nothing */ } else if(returnType == ClientGetMessage.RETURN_TYPE_DISK) { // Write to temp file, then rename over filename FileOutputStream fos = null; boolean closed = false; try { if(data != returnBucket) { fos = new FileOutputStream(tempFile); BucketTools.copyTo(data, fos, data.size()); if(fos != null) { fos.close(); // must be closed before rename closed = true; } } if(!tempFile.renameTo(targetFile)) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_RENAME_FILE, false, null, identifier); // Don't delete temp file, user might want it. } returnBucket = new FileBucket(targetFile, false, false, false, false); } catch (FileNotFoundException e) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier); } catch (IOException e) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier); } try { if((fos != null) && !closed) fos.close(); } catch (IOException e) { Logger.error(this, "Caught "+e+" closing file "+tempFile, e); } } progressPending = null; this.foundDataLength = data.size(); this.foundDataMimeType = result.getMimeType(); this.succeeded = true; finished = true; } trySendDataFoundOrGetFailed(null); if(adm != null) trySendAllDataMessage(adm, null); if(!dontFree) data.free(); finish(); }
|
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/ClientGet.java/buggy/src/freenet/node/fcp/ClientGet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20613,
12,
5005,
1253,
563,
16,
2445,
8461,
919,
13,
288,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
30500,
30,
13773,
5644,
1769,
202,
202,
4103,
501,
273,
563,
18,
345,
4103,
5621,
202,
202,
430,
12,
2463,
4103,
480,
501,
13,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
2463,
4103,
273,
13773,
2463,
4103,
9078,
1496,
20613,
1435,
501,
273,
13773,
892,
1769,
202,
202,
6494,
14046,
9194,
273,
629,
31,
202,
202,
759,
9852,
467,
2727,
1404,
15507,
333,
353,
279,
6199,
316,
333,
648,
2777,
35,
261,
6247,
1045,
1323,
8586,
838,
13,
202,
202,
1595,
751,
1079,
31003,
273,
446,
31,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12,
87,
20983,
13,
288,
9506,
202,
3328,
18,
1636,
12,
2211,
16,
315,
265,
4510,
2566,
13605,
364,
13773,
2211,
9078,
7566,
15,
5644,
15,
5777,
1769,
9506,
202,
2463,
31,
368,
1660,
4825,
506,
2566,
13605,
31,
2305,
518,
309,
1427,
18,
1082,
202,
97,
1082,
202,
430,
12,
2463,
559,
422,
2445,
967,
1079,
18,
14033,
67,
2399,
67,
17541,
13,
288,
9506,
202,
759,
2479,
777,
326,
501,
622,
3647,
9506,
202,
759,
9852,
1915,
1410,
506,
1308,
702,
9506,
202,
20864,
273,
394,
4826,
751,
1079,
12,
892,
16,
2756,
1769,
9506,
202,
430,
12,
24854,
559,
422,
10950,
18732,
67,
15461,
13,
6862,
202,
20864,
18,
542,
9194,
1398,
7828,
5621,
9506,
202,
72,
1580,
9194,
273,
638,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20613,
12,
5005,
1253,
563,
16,
2445,
8461,
919,
13,
288,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
30500,
30,
13773,
5644,
1769,
202,
202,
4103,
501,
273,
563,
18,
345,
4103,
5621,
202,
202,
430,
12,
2463,
4103,
480,
501,
13,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
2463,
4103,
273,
13773,
2463,
4103,
9078,
1496,
20613,
1435,
501,
273,
13773,
892,
1769,
202,
202,
6494,
14046,
9194,
273,
629,
31,
202,
202,
759,
9852,
467,
2727,
1404,
15507,
333,
353,
279,
6199,
316,
333,
648,
2777,
35,
261,
6247,
1045,
1323,
8586,
838,
13,
202,
202,
1595,
751,
1079,
31003,
273,
446,
31,
202,
202,
22043,
12,
2211,
13,
2
] |
pc += 4; break;
|
pc += 4; continue Loop;
|
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) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } 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) Kit.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 (!idata.useDynamicScope) { 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 { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.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); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; 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); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; 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 { int op = 0xFF & iCode[pc++]; switch (op) { // 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 with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.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 EvaluatorException) { 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) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // 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; int sourceLine = getShort(iCode, pc); javaException = new JavaScriptException(value, idata.itsSourceFile, sourceLine); exceptionPC = pc - 1; if (instructionThreshold != 0) { instructionCount += pc - 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 <= lDbl); } else { valBln = 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 = (lDbl <= rDbl); } else { valBln = 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 < lDbl); } else { valBln = 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 = (lDbl < rDbl); } else { valBln = 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(lhs, rhs, scope); 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 : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); stack[stackTop--] = null; continue Loop; } pc += 2; break; } case Token.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 1 - 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 - 1; 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 Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; break; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; 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 Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; 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.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; break; } case Token.BINDNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case Token.SETNAME : { String name = strings[getIndex(iCode, pc)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; 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 Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); break; } case Icode_ELEMINC : case Icode_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.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); break; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; break; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; break; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); 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); instructionCount = cx.instructionCount; pc += 6; break; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); 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)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); 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)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case Icode_TYPEOFNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case Icode_NAME_AND_THIS : { String name = strings[getIndex(iCode, pc)]; boolean skipGetThis = (0 != iCode[pc + 2]); stackTop = do_nameAndThis(stack, stackTop, scope, name, skipGetThis); pc += 3; break; } case Token.STRING : stack[++stackTop] = strings[getIndex(iCode, pc)]; pc += 2; break; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; break; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; break; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; break; case Token.NAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case Icode_NAMEINC : case Icode_NAMEDEC : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, name, op == Icode_NAMEINC); 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); } ++pc; 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); } ++pc; break; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; 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.CATCH_SCOPE : { String name = strings[getIndex(iCode, pc)]; stack[stackTop] = ScriptRuntime.newCatchScope(name, stack[stackTop]); pc += 2; break; } case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; break; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; break; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); break; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; break; } case Icode_SETPROTO : 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]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; break; } case Icode_SCOPE : stack[++stackTop] = scope; break; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; break; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; break; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; break; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; break; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } // end of interpreter switch } } 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.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { 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; }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/34e9dc56b7553f450b9015c8f4135584139686cf/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,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
612,
396,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
888,
18,
1991,
1190,
3748,
12,
350,
396,
18,
7462,
3748,
16,
9494,
16,
2295,
1162,
3651,
16,
29159,
2146,
16,
15261,
16,
833,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
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,
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,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
2
] |
super( ValueType.SHORT_TYPE,
|
super( ValueType.PSHORT_TYPE,
|
private ShortGreaterEvaluator() { super( ValueType.SHORT_TYPE, Operator.GREATER ); }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/c2b43d4f7850c45869b2d8334e4abf2cb52ca708/ShortFactory.java/clean/drools-core/src/main/java/org/drools/base/evaluators/ShortFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
7925,
20937,
15876,
1435,
288,
5411,
2240,
12,
31718,
18,
52,
15993,
67,
2399,
16,
10402,
11097,
18,
43,
18857,
11272,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
7925,
20937,
15876,
1435,
288,
5411,
2240,
12,
31718,
18,
52,
15993,
67,
2399,
16,
10402,
11097,
18,
43,
18857,
11272,
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
] |
for (Iterator i = urls.iterator(); i.hasNext(); ) { url = (URL)i.next();
|
for (Iterator i = urls.iterator(); i.hasNext();) { url = (URL) i.next();
|
protected ModuleConfig initModuleConfig(String prefix, String paths) throws ServletException { // :FIXME: Document UnavailableException? (Doesn't actually throw // anything) if (log.isDebugEnabled()) { log.debug( "Initializing module path '" + prefix + "' configuration from '" + paths + "'"); } // Parse the configuration for this module ModuleConfigFactory factoryObject = ModuleConfigFactory.createFactory(); ModuleConfig config = factoryObject.createModuleConfig(prefix); // Configure the Digester instance we will use Digester digester = initConfigDigester(); List urls = splitAndResolvePaths(paths); URL url = null; for (Iterator i = urls.iterator(); i.hasNext(); ) { url = (URL)i.next(); digester.push(config); this.parseModuleConfigFile(digester, url); } getServletContext().setAttribute( Globals.MODULE_KEY + config.getPrefix(), config); return config; }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/22fccc36154c6b13c98c040efe9504d75e1cb7a1/ActionServlet.java/buggy/src/share/org/apache/struts/action/ActionServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5924,
809,
1208,
3120,
809,
12,
780,
1633,
16,
514,
2953,
13,
3639,
1216,
16517,
288,
3639,
368,
294,
25810,
30,
4319,
1351,
5699,
503,
35,
261,
10154,
82,
1404,
6013,
604,
3639,
368,
6967,
13,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
5411,
613,
18,
4148,
12,
7734,
315,
29782,
1605,
589,
2119,
10792,
397,
1633,
10792,
397,
2491,
1664,
628,
2119,
10792,
397,
2953,
10792,
397,
5862,
1769,
3639,
289,
3639,
368,
2884,
326,
1664,
364,
333,
1605,
3639,
5924,
809,
1733,
3272,
921,
273,
5924,
809,
1733,
18,
2640,
1733,
5621,
3639,
5924,
809,
642,
273,
3272,
921,
18,
2640,
3120,
809,
12,
3239,
1769,
3639,
368,
11758,
326,
11678,
7654,
791,
732,
903,
999,
3639,
11678,
7654,
23821,
273,
1208,
809,
4907,
7654,
5621,
3639,
987,
6903,
273,
1416,
1876,
8460,
4466,
12,
4481,
1769,
3639,
1976,
880,
273,
446,
31,
3639,
364,
261,
3198,
277,
273,
6903,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
5411,
880,
273,
261,
1785,
13,
77,
18,
4285,
5621,
5411,
23821,
18,
6206,
12,
1425,
1769,
5411,
333,
18,
2670,
3120,
13705,
12,
5606,
7654,
16,
880,
1769,
3639,
289,
3639,
29015,
7675,
542,
1499,
12,
5411,
18901,
1031,
18,
12194,
67,
3297,
397,
642,
18,
588,
2244,
9334,
5411,
642,
1769,
3639,
327,
642,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5924,
809,
1208,
3120,
809,
12,
780,
1633,
16,
514,
2953,
13,
3639,
1216,
16517,
288,
3639,
368,
294,
25810,
30,
4319,
1351,
5699,
503,
35,
261,
10154,
82,
1404,
6013,
604,
3639,
368,
6967,
13,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
5411,
613,
18,
4148,
12,
7734,
315,
29782,
1605,
589,
2119,
10792,
397,
1633,
10792,
397,
2491,
1664,
628,
2119,
10792,
397,
2953,
10792,
397,
5862,
1769,
3639,
289,
3639,
368,
2884,
326,
1664,
364,
333,
1605,
3639,
5924,
809,
1733,
3272,
921,
273,
5924,
809,
1733,
18,
2640,
1733,
5621,
3639,
5924,
809,
642,
273,
3272,
921,
18,
2640,
3120,
809,
12,
3239,
1769,
3639,
368,
11758,
326,
11678,
7654,
2
] |
stream.writeFloat( PAD );
|
stream.writeInt( PAD );
|
void writeValue( DataOutput stream, Object value ) throws IOException { int i = 0; if ( value != null ) { float[] fvals = (float[]) value; int leng = Math.min( fvals.length, nel ); for ( ; i < leng; i++ ) { stream.writeFloat( fvals[ i ] ); } } for ( ; i < nel; i++ ) { stream.writeFloat( PAD ); } }
|
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/a2bd853facdfaec7cf3fbd236b5497b584254ed7/FitsTableSerializer.java/buggy/fits/src/main/uk/ac/starlink/fits/FitsTableSerializer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
918,
26727,
12,
1910,
1447,
1407,
16,
1033,
460,
262,
13491,
1216,
1860,
288,
10792,
509,
277,
273,
374,
31,
10792,
309,
261,
460,
480,
446,
262,
288,
13491,
1431,
8526,
284,
4524,
273,
261,
5659,
63,
5717,
460,
31,
13491,
509,
562,
75,
273,
2361,
18,
1154,
12,
284,
4524,
18,
2469,
16,
290,
292,
11272,
13491,
364,
261,
274,
277,
411,
562,
75,
31,
277,
9904,
262,
288,
18701,
1407,
18,
2626,
4723,
12,
284,
4524,
63,
277,
308,
11272,
13491,
289,
10792,
289,
10792,
364,
261,
274,
277,
411,
290,
292,
31,
277,
9904,
262,
288,
13491,
1407,
18,
2626,
1702,
12,
453,
1880,
11272,
10792,
289,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
918,
26727,
12,
1910,
1447,
1407,
16,
1033,
460,
262,
13491,
1216,
1860,
288,
10792,
509,
277,
273,
374,
31,
10792,
309,
261,
460,
480,
446,
262,
288,
13491,
1431,
8526,
284,
4524,
273,
261,
5659,
63,
5717,
460,
31,
13491,
509,
562,
75,
273,
2361,
18,
1154,
12,
284,
4524,
18,
2469,
16,
290,
292,
11272,
13491,
364,
261,
274,
277,
411,
562,
75,
31,
277,
9904,
262,
288,
18701,
1407,
18,
2626,
4723,
12,
284,
4524,
63,
277,
308,
11272,
13491,
289,
10792,
289,
10792,
364,
261,
274,
277,
411,
290,
292,
31,
277,
9904,
262,
288,
13491,
1407,
18,
2626,
1702,
12,
453,
1880,
11272,
10792,
289,
7734,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (newStr.equals(getValue())) {
|
if (sameAs(newStr)) {
|
public IRubyObject tr_s_bang(IRubyObject search, IRubyObject replace) { String newStr = tr(search, replace, true); if (newStr.equals(getValue())) { return getRuntime().getNil(); } setValue(newStr); return this; }
|
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
433,
67,
87,
67,
70,
539,
12,
7937,
10340,
921,
1623,
16,
15908,
10340,
921,
1453,
13,
288,
202,
202,
780,
394,
1585,
273,
433,
12,
3072,
16,
1453,
16,
638,
1769,
202,
202,
430,
261,
2704,
1585,
18,
14963,
12,
24805,
1435,
3719,
288,
1082,
202,
2463,
18814,
7675,
588,
12616,
5621,
202,
202,
97,
202,
202,
542,
620,
12,
2704,
1585,
1769,
202,
202,
2463,
333,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
433,
67,
87,
67,
70,
539,
12,
7937,
10340,
921,
1623,
16,
15908,
10340,
921,
1453,
13,
288,
202,
202,
780,
394,
1585,
273,
433,
12,
3072,
16,
1453,
16,
638,
1769,
202,
202,
430,
261,
2704,
1585,
18,
14963,
12,
24805,
1435,
3719,
288,
1082,
202,
2463,
18814,
7675,
588,
12616,
5621,
202,
202,
97,
202,
202,
542,
620,
12,
2704,
1585,
1769,
202,
202,
2463,
333,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
System.out.println("RXTXPort:waiting on isAlive()");
|
System.out.println(System.currentTimeMillis() + ": " + "RXTXPort:waiting on isAlive()");
|
public void removeEventListener() { if (debug) System.out.println("RXTXPort:removeEventListener()"); waitForTheNativeCodeSilly(); //if( monThread != null && monThread.isAlive() ) if( monThreadisInterrupted == true ) { System.out.println("RXTXPort:removeEventListener() already interrupted"); monThread = null; SPEventListener = null; Runtime.getRuntime().gc(); return; } else if( monThread != null && monThread.isAlive() ) { if (debug) System.out.println("RXTXPort:Interrupt=true"); monThreadisInterrupted=true; /* Notify all threads in this PID that something is up They will call back to see if its their thread using isInterrupted(). */ MonitorThreadCloseLock = true; if (debug) System.out.println("RXTXPort:calling interruptEventLoop"); interruptEventLoop( ); if (debug) System.out.print("RXTXPort:waiting on closelock"); while( MonitorThreadCloseLock ) { if (debug) System.out.print("."); try { Thread.sleep(100); } catch( Exception e ) {} } if (debug) System.out.println(); if (debug) System.out.println("RXTXPort:calling monThread.join()"); try { monThread.join(1000); } catch (Exception ex) { /* yikes */ ex.printStackTrace(); } if (debug) System.out.println("RXTXPort:waiting on isAlive()"); while( monThread.isAlive() ) { if ( debug ) System.out.println("MonThread is still alive!"); try { monThread.join(1000); Thread.sleep( 1000 ); } catch( Exception e ){} monThread.stop(); } } if (debug) System.out.println("RXTXPort:calling gc()"); monThread = null; SPEventListener = null; Runtime.getRuntime().gc(); MonitorThreadLock = false; MonitorThreadAlive=false; }
|
5329 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5329/b0fcbe4f1133e8969e69a9ffc3d9994bcd41ed58/RXTXPort.java/clean/src/gnu/io/RXTXPort.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
22404,
1435,
202,
95,
202,
202,
430,
261,
4148,
13,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
54,
3983,
60,
2617,
30,
4479,
7375,
1435,
8863,
202,
202,
7048,
1290,
1986,
9220,
1085,
19740,
715,
5621,
202,
202,
759,
430,
12,
6921,
3830,
480,
446,
597,
6921,
3830,
18,
291,
10608,
1435,
262,
202,
202,
430,
12,
6921,
3830,
291,
24485,
422,
638,
262,
202,
202,
95,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
54,
3983,
60,
2617,
30,
4479,
7375,
1435,
1818,
15711,
8863,
1082,
202,
2586,
3830,
273,
446,
31,
1082,
202,
3118,
7375,
273,
446,
31,
1082,
202,
5576,
18,
588,
5576,
7675,
13241,
5621,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
12107,
309,
12,
6921,
3830,
480,
446,
597,
6921,
3830,
18,
291,
10608,
1435,
262,
202,
202,
95,
1082,
202,
430,
261,
4148,
13,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
54,
3983,
60,
2617,
30,
14126,
33,
3767,
8863,
1082,
202,
2586,
3830,
291,
24485,
33,
3767,
31,
1082,
202,
20308,
9506,
282,
10918,
777,
7403,
316,
333,
14788,
716,
5943,
353,
731,
9506,
282,
16448,
903,
745,
1473,
358,
2621,
309,
2097,
3675,
2650,
9506,
282,
1450,
353,
24485,
7675,
1082,
202,
5549,
1082,
202,
7187,
3830,
4605,
2531,
273,
638,
31,
1082,
202,
430,
261,
4148,
13,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
54,
3983,
60,
2617,
30,
31623,
13123,
1133,
6452,
8863,
1082,
202,
31847,
1133,
6452,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
22404,
1435,
202,
95,
202,
202,
430,
261,
4148,
13,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
54,
3983,
60,
2617,
30,
4479,
7375,
1435,
8863,
202,
202,
7048,
1290,
1986,
9220,
1085,
19740,
715,
5621,
202,
202,
759,
430,
12,
6921,
3830,
480,
446,
597,
6921,
3830,
18,
291,
10608,
1435,
262,
202,
202,
430,
12,
6921,
3830,
291,
24485,
422,
638,
262,
202,
202,
95,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
54,
3983,
60,
2617,
30,
4479,
7375,
1435,
1818,
15711,
8863,
1082,
202,
2586,
3830,
273,
446,
31,
1082,
202,
3118,
7375,
273,
446,
31,
1082,
202,
5576,
18,
588,
5576,
7675,
13241,
5621,
1082,
202,
2463,
31,
202,
2
] |
jImportDeclarations(context); { _loop3: do { if ((_tokenSet_0.member(LA(1)))) { jTypeDefinition(context); } else { break _loop3; }
|
else { break _loop3; }
|
public final JCompilationUnit jCompilationUnit( ) throws RecognitionException, TokenStreamException { JCompilationUnit self = null; JPackageName pack; CParseCompilationUnitContext context = CParseCompilationUnitContext.getInstance(); TokenReference sourceRef = buildTokenReference(); pack=jPackageDeclaration(); if ( inputState.guessing==0 ) { context.setPackage(pack); } jImportDeclarations(context); { _loop3: do { if ((_tokenSet_0.member(LA(1)))) { jTypeDefinition(context); } else { break _loop3; } } while (true); } match(Token.EOF_TYPE); if ( inputState.guessing==0 ) { self = new JCompilationUnit(sourceRef, pack, context.getPackageImports(), context.getClassImports(), context.getTypeDeclarations()); context.release(); } return self; }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/a090084f5a188cad69e619ba8c5f1aa59a59753a/KjcParser.java/buggy/streams/src/at/dms/kjc/KjcParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
804,
19184,
2802,
225,
525,
19184,
2802,
12,
1082,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
46,
19184,
2802,
365,
273,
446,
31,
25083,
202,
46,
18308,
1082,
202,
2920,
31,
202,
202,
39,
3201,
19184,
2802,
1042,
202,
2472,
273,
385,
3201,
19184,
2802,
1042,
18,
588,
1442,
5621,
202,
202,
1345,
2404,
202,
202,
3168,
1957,
273,
1361,
1345,
2404,
5621,
25083,
202,
2920,
33,
78,
2261,
6094,
5621,
202,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
1082,
202,
2472,
18,
542,
2261,
12,
2920,
1769,
202,
202,
97,
202,
202,
78,
5010,
21408,
12,
2472,
1769,
202,
202,
95,
202,
202,
67,
6498,
23,
30,
202,
202,
2896,
288,
1082,
202,
430,
14015,
67,
2316,
694,
67,
20,
18,
5990,
12,
2534,
12,
21,
3719,
3719,
288,
9506,
202,
78,
559,
1852,
12,
2472,
1769,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
8820,
389,
6498,
23,
31,
1082,
202,
97,
6862,
202,
97,
1323,
261,
3767,
1769,
202,
202,
97,
202,
202,
1916,
12,
1345,
18,
12706,
67,
2399,
1769,
202,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
25083,
202,
2890,
273,
394,
804,
19184,
2802,
12,
3168,
1957,
16,
6862,
9506,
225,
2298,
16,
6862,
9506,
225,
819,
18,
588,
2261,
13347,
9334,
6862,
9506,
225,
819,
18,
588,
797,
13347,
9334,
6862,
9506,
225,
819,
18,
588,
559,
21408,
10663,
1082,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
804,
19184,
2802,
225,
525,
19184,
2802,
12,
1082,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
46,
19184,
2802,
365,
273,
446,
31,
25083,
202,
46,
18308,
1082,
202,
2920,
31,
202,
202,
39,
3201,
19184,
2802,
1042,
202,
2472,
273,
385,
3201,
19184,
2802,
1042,
18,
588,
1442,
5621,
202,
202,
1345,
2404,
202,
202,
3168,
1957,
273,
1361,
1345,
2404,
5621,
25083,
202,
2920,
33,
78,
2261,
6094,
5621,
202,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
1082,
202,
2472,
18,
542,
2261,
12,
2920,
1769,
202,
202,
97,
202,
202,
78,
5010,
21408,
12,
2472,
1769,
202,
202,
95,
202,
202,
67,
6498,
2
] |
return "type";
|
return "type";
|
public String getSymbolKind(Symbol symbol) { switch (symbol.kind) { case Kinds.ERROR: case Kinds.NONE: return null; case Kinds.CLASS: if (symbol.isTrait()) return "trait"; if (symbol.isModuleClass() && global.debug) return "object class"; return "class"; case Kinds.TYPE: case Kinds.ALIAS: return "type"; case Kinds.VAL: if (symbol.isVariable()) return "variable"; if (symbol.isModule()) return "object"; if (symbol.isConstructor()) return "constructor"; if (symbol.isInitializedMethod()) if (global.debug || (symbol.flags & Modifiers.STABLE) == 0) return "method"; return "value"; default: throw Debug.abort("unknown kind " + symbol.kind); } }
|
49529 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49529/51a5386fa3225c117633ea7171760590d01bf6f3/SymbolTablePrinter.java/clean/sources/scalac/symtab/SymbolTablePrinter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
18712,
5677,
12,
5335,
3273,
13,
288,
202,
9610,
261,
7175,
18,
9224,
13,
288,
3639,
648,
5851,
87,
18,
3589,
30,
3639,
648,
5851,
87,
18,
9826,
30,
5411,
327,
446,
31,
3639,
648,
5851,
87,
18,
5237,
30,
202,
565,
309,
261,
7175,
18,
291,
15525,
10756,
327,
315,
22513,
14432,
202,
565,
309,
261,
7175,
18,
291,
3120,
797,
1435,
597,
2552,
18,
4148,
13,
327,
315,
1612,
667,
14432,
5411,
327,
315,
1106,
14432,
202,
3593,
5851,
87,
18,
2399,
30,
3639,
648,
5851,
87,
18,
23784,
30,
202,
565,
327,
315,
723,
14432,
3639,
648,
5851,
87,
18,
2669,
30,
202,
565,
309,
261,
7175,
18,
291,
3092,
10756,
327,
315,
6105,
14432,
202,
565,
309,
261,
7175,
18,
291,
3120,
10756,
327,
315,
1612,
14432,
202,
565,
309,
261,
7175,
18,
291,
6293,
10756,
327,
315,
12316,
14432,
202,
565,
309,
261,
7175,
18,
291,
11459,
1305,
10756,
7734,
309,
261,
6347,
18,
4148,
747,
261,
7175,
18,
7133,
473,
3431,
3383,
18,
882,
2782,
13,
422,
374,
13,
1082,
565,
327,
315,
2039,
14432,
202,
565,
327,
315,
1132,
14432,
202,
1886,
30,
5411,
604,
4015,
18,
18623,
2932,
8172,
3846,
315,
397,
3273,
18,
9224,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
18712,
5677,
12,
5335,
3273,
13,
288,
202,
9610,
261,
7175,
18,
9224,
13,
288,
3639,
648,
5851,
87,
18,
3589,
30,
3639,
648,
5851,
87,
18,
9826,
30,
5411,
327,
446,
31,
3639,
648,
5851,
87,
18,
5237,
30,
202,
565,
309,
261,
7175,
18,
291,
15525,
10756,
327,
315,
22513,
14432,
202,
565,
309,
261,
7175,
18,
291,
3120,
797,
1435,
597,
2552,
18,
4148,
13,
327,
315,
1612,
667,
14432,
5411,
327,
315,
1106,
14432,
202,
3593,
5851,
87,
18,
2399,
30,
3639,
648,
5851,
87,
18,
23784,
30,
202,
565,
327,
315,
723,
14432,
3639,
648,
5851,
87,
18,
2669,
30,
202,
565,
309,
261,
7175,
18,
291,
3092,
10756,
327,
315,
2
] |
splitHorizontally ? JSplitPane.HORIZONTAL_SPLIT : JSplitPane.VERTICAL_SPLIT,
|
browser.isHorizontalLayout() ? JSplitPane.HORIZONTAL_SPLIT : JSplitPane.VERTICAL_SPLIT,
|
public BrowserView(VFSBrowser browser, final boolean splitHorizontally) { this.browser = browser; this.splitHorizontally = splitHorizontally; parentDirectories = new JList(); parentDirectories.getSelectionModel().setSelectionMode( TreeSelectionModel.SINGLE_TREE_SELECTION); parentDirectories.setCellRenderer(new ParentDirectoryRenderer()); parentDirectories.setVisibleRowCount(5); parentDirectories.addMouseListener(new MouseHandler()); rootNode = new DefaultMutableTreeNode(null,true); model = new DefaultTreeModel(rootNode,true); tree = new BrowserJTree(model); tree.setCellRenderer(renderer); tree.setEditable(false); tree.addTreeExpansionListener(new TreeHandler()); // looks bad with the OS X L&F, apparently... if(!OperatingSystem.isMacOSLF()) tree.putClientProperty("JTree.lineStyle", "Angled"); tree.setRootVisible(false); tree.setShowsRootHandles(true); tree.setVisibleRowCount(12); final JScrollPane parentScroller = new JScrollPane(parentDirectories); parentScroller.setMinimumSize(new Dimension(0,0)); JScrollPane treeScroller = new JScrollPane(tree); treeScroller.setMinimumSize(new Dimension(0,0)); splitPane = new JSplitPane( splitHorizontally ? JSplitPane.HORIZONTAL_SPLIT : JSplitPane.VERTICAL_SPLIT, parentScroller,treeScroller); splitPane.setOneTouchExpandable(true); SwingUtilities.invokeLater(new Runnable() { public void run() { String prop = splitHorizontally ? "vfs.browser.horizontalSplitter" : "vfs.browser.splitter"; int loc = jEdit.getIntegerProperty(prop,-1); if(loc == -1) loc = parentScroller.getPreferredSize().height; splitPane.setDividerLocation(loc); parentDirectories.ensureIndexIsVisible( parentDirectories.getModel() .getSize()); } }); tmpExpanded = new Hashtable(); if(browser.isMultipleSelectionEnabled()) tree.getSelectionModel().setSelectionMode( TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION); else tree.getSelectionModel().setSelectionMode( TreeSelectionModel.SINGLE_TREE_SELECTION); setLayout(new BorderLayout()); add(BorderLayout.CENTER,splitPane); propertiesChanged(); } //}}}
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/6d96cfa79fee8232e56e32a9bcc72c6ab5231764/BrowserView.java/clean/org/gjt/sp/jedit/browser/BrowserView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15408,
1767,
12,
58,
4931,
9132,
4748,
16,
727,
1250,
1416,
44,
6157,
1230,
13,
202,
95,
202,
202,
2211,
18,
11213,
273,
4748,
31,
202,
202,
2211,
18,
4939,
44,
6157,
1230,
273,
1416,
44,
6157,
1230,
31,
202,
202,
2938,
13071,
273,
394,
804,
682,
5621,
202,
202,
2938,
13071,
18,
588,
6233,
1488,
7675,
542,
6233,
2309,
12,
1082,
202,
2471,
6233,
1488,
18,
20184,
67,
26557,
67,
1090,
15445,
1769,
202,
202,
2938,
13071,
18,
542,
4020,
6747,
12,
2704,
9520,
2853,
6747,
10663,
202,
202,
2938,
13071,
18,
542,
6207,
26359,
12,
25,
1769,
202,
202,
2938,
13071,
18,
1289,
9186,
2223,
12,
2704,
17013,
1503,
10663,
202,
202,
3085,
907,
273,
394,
2989,
19536,
12513,
12,
2011,
16,
3767,
1769,
202,
202,
2284,
273,
394,
2989,
2471,
1488,
12,
3085,
907,
16,
3767,
1769,
202,
202,
3413,
273,
394,
15408,
46,
2471,
12,
2284,
1769,
202,
202,
3413,
18,
542,
4020,
6747,
12,
14374,
1769,
202,
202,
3413,
18,
542,
15470,
12,
5743,
1769,
202,
202,
3413,
18,
1289,
2471,
2966,
12162,
2223,
12,
2704,
4902,
1503,
10663,
202,
202,
759,
10192,
5570,
598,
326,
5932,
1139,
511,
10,
42,
16,
29614,
715,
2777,
202,
202,
430,
12,
5,
3542,
24811,
18,
291,
9990,
51,
4559,
42,
10756,
1082,
202,
3413,
18,
458,
1227,
1396,
2932,
46,
2471,
18,
1369,
2885,
3113,
315,
22757,
1259,
8863,
202,
202,
3413,
18,
542,
2375,
6207,
12,
5743,
1769,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15408,
1767,
12,
58,
4931,
9132,
4748,
16,
727,
1250,
1416,
44,
6157,
1230,
13,
202,
95,
202,
202,
2211,
18,
11213,
273,
4748,
31,
202,
202,
2211,
18,
4939,
44,
6157,
1230,
273,
1416,
44,
6157,
1230,
31,
202,
202,
2938,
13071,
273,
394,
804,
682,
5621,
202,
202,
2938,
13071,
18,
588,
6233,
1488,
7675,
542,
6233,
2309,
12,
1082,
202,
2471,
6233,
1488,
18,
20184,
67,
26557,
67,
1090,
15445,
1769,
202,
202,
2938,
13071,
18,
542,
4020,
6747,
12,
2704,
9520,
2853,
6747,
10663,
202,
202,
2938,
13071,
18,
542,
6207,
26359,
12,
25,
1769,
202,
202,
2938,
13071,
18,
1289,
9186,
2223,
12,
2704,
17013,
1503,
10663,
202,
202,
3085,
907,
2
] |
log.debug("Outcome: stepId=" + nextStep + ", status=" + theResult.getStatus() + ", owner=" + theResult.getOwner() + ", actionId=" + actionId + ", currentStep=" + ((currentStep != null) ? currentStep.getStepId() : 0));
|
log.debug("Outcome: stepId=" + nextStep + ", status=" + theResult.getStatus() + ", owner=" + theResult.getOwner() + ", actionId=" + actionId + ", currentStep=" + (currentStep != null ? currentStep.getStepId() : 0));
|
private Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { try { int nextStep = theResult.getStep(); if (nextStep == -1) { if (currentStep != null) { nextStep = currentStep.getStepId(); } else { throw new StoreException("Illegal argument: requested new current step same as current step, but current step not specified"); } } if (log.isDebugEnabled()) { log.debug("Outcome: stepId=" + nextStep + ", status=" + theResult.getStatus() + ", owner=" + theResult.getOwner() + ", actionId=" + actionId + ", currentStep=" + ((currentStep != null) ? currentStep.getStepId() : 0)); } if (previousIds == null) { previousIds = new long[0]; } String owner = TextUtils.noNull(theResult.getOwner()); if (owner.equals("")) { owner = null; } else { Object o = ScriptVariableParser.translateVariables(owner, transientVars, ps); owner = (o != null) ? o.toString() : null; } String oldStatus = theResult.getOldStatus(); oldStatus = ScriptVariableParser.translateVariables(oldStatus, transientVars, ps).toString(); String status = theResult.getStatus(); status = ScriptVariableParser.translateVariables(status, transientVars, ps).toString(); if (currentStep != null) { store.markFinished(currentStep, actionId, new Date(), oldStatus, context.getCaller()); store.moveToHistory(currentStep); //store.moveToHistory(actionId, new Date(), currentStep, oldStatus, context.getCaller()); } // construct the start date and optional due date Date startDate = new Date(); Date dueDate = null; if ((theResult.getDueDate() != null) && (theResult.getDueDate().length() > 0)) { Object dueDateObject = ScriptVariableParser.translateVariables(theResult.getDueDate(), transientVars, ps); if (dueDateObject instanceof Date) { dueDate = (Date) dueDateObject; } else if (dueDateObject instanceof String) { long offset = TextUtils.parseLong((String) dueDateObject); if (offset > 0) { dueDate = new Date(startDate.getTime() + offset); } } else if (dueDateObject instanceof Number) { Number num = (Number) dueDateObject; long offset = num.longValue(); if (offset > 0) { dueDate = new Date(startDate.getTime() + offset); } } } Step newStep = store.createCurrentStep(entry.getId(), nextStep, owner, startDate, dueDate, status, previousIds); WorkflowDescriptor descriptor = (WorkflowDescriptor) transientVars.get("descriptor"); List preFunctions = descriptor.getStep(nextStep).getPreFunctions(); for (Iterator iterator = preFunctions.iterator(); iterator.hasNext();) { FunctionDescriptor function = (FunctionDescriptor) iterator.next(); executeFunction(function, transientVars, ps); } return newStep; } catch (WorkflowException e) { context.setRollbackOnly(); throw e; } }
|
7621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7621/ca81d63977889d62841fbf0e39eaedd09706e825/AbstractWorkflow.java/buggy/src/java/com/opensymphony/workflow/AbstractWorkflow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
8693,
15291,
3935,
4160,
12,
1253,
3187,
326,
1253,
16,
11363,
1622,
1241,
16,
11363,
2257,
1707,
16,
509,
1301,
548,
16,
8693,
783,
4160,
16,
1525,
8526,
2416,
2673,
16,
1635,
12315,
5555,
16,
4276,
694,
4250,
13,
1216,
11363,
503,
288,
3639,
775,
288,
5411,
509,
1024,
4160,
273,
326,
1253,
18,
588,
4160,
5621,
5411,
309,
261,
4285,
4160,
422,
300,
21,
13,
288,
7734,
309,
261,
2972,
4160,
480,
446,
13,
288,
10792,
1024,
4160,
273,
783,
4160,
18,
588,
4160,
548,
5621,
7734,
289,
469,
288,
10792,
604,
394,
4994,
503,
2932,
12195,
1237,
30,
3764,
394,
783,
2235,
1967,
487,
783,
2235,
16,
1496,
783,
2235,
486,
1269,
8863,
7734,
289,
5411,
289,
5411,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
7734,
613,
18,
4148,
2932,
19758,
30,
2235,
548,
1546,
397,
1024,
4160,
397,
3104,
1267,
1546,
397,
326,
1253,
18,
588,
1482,
1435,
397,
3104,
3410,
1546,
397,
326,
1253,
18,
588,
5541,
1435,
397,
3104,
1301,
548,
1546,
397,
1301,
548,
397,
3104,
783,
4160,
1546,
397,
261,
2972,
4160,
480,
446,
692,
783,
4160,
18,
588,
4160,
548,
1435,
294,
374,
10019,
5411,
289,
5411,
309,
261,
11515,
2673,
422,
446,
13,
288,
7734,
2416,
2673,
273,
394,
1525,
63,
20,
15533,
5411,
289,
5411,
514,
3410,
273,
31282,
18,
2135,
2041,
12,
5787,
1253,
18,
588,
5541,
10663,
5411,
309,
261,
8443,
18,
14963,
2932,
6,
3719,
288,
7734,
3410,
273,
446,
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,
8693,
15291,
3935,
4160,
12,
1253,
3187,
326,
1253,
16,
11363,
1622,
1241,
16,
11363,
2257,
1707,
16,
509,
1301,
548,
16,
8693,
783,
4160,
16,
1525,
8526,
2416,
2673,
16,
1635,
12315,
5555,
16,
4276,
694,
4250,
13,
1216,
11363,
503,
288,
3639,
775,
288,
5411,
509,
1024,
4160,
273,
326,
1253,
18,
588,
4160,
5621,
5411,
309,
261,
4285,
4160,
422,
300,
21,
13,
288,
7734,
309,
261,
2972,
4160,
480,
446,
13,
288,
10792,
1024,
4160,
273,
783,
4160,
18,
588,
4160,
548,
5621,
7734,
289,
469,
288,
10792,
604,
394,
4994,
503,
2932,
12195,
1237,
30,
3764,
394,
783,
2235,
1967,
487,
783,
2235,
16,
1496,
783,
2235,
486,
1269,
8863,
7734,
289,
2
] |
if (jj_scan_token(AT)) return true; if (jj_3R_89()) return true;
|
if (jj_scan_token(SYNCHRONIZED)) return true;
|
final private boolean jj_3R_191() { if (jj_scan_token(AT)) return true; if (jj_3R_89()) return true; if (jj_scan_token(LPAREN)) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_223()) jj_scanpos = xsp; if (jj_scan_token(RPAREN)) return true; return false; }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
30380,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
789,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
6675,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
48,
15111,
3719,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3787,
23,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
54,
15111,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
30380,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
789,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
6675,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
48,
15111,
3719,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3787,
23,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
54,
15111,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (int i = 0; i < fields.length; i++) newObject.fields[i] = (fields[i] == null ? null : fields[i].clone(newObject));
|
for (int i = 0; i < fields.length; i++) { Field field = fields[i]; newObject.fields[i] = (field == null ? null : field.clone(newObject)); }
|
public NonterminatingAnalysisBug clone() throws CloneNotSupportedException { NonterminatingAnalysisBug newObject = (NonterminatingAnalysisBug) super .clone(); newObject.fields = new Field[fields.length]; for (int i = 0; i < fields.length; i++) newObject.fields[i] = (fields[i] == null ? null : fields[i].clone(newObject)); return newObject; }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/82a9a8dc7590a2873ffb6d7f3c82ba408718c423/NonterminatingAnalysisBug.java/buggy/findbugsTestCases/src/java/npe/NonterminatingAnalysisBug.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3858,
9505,
1776,
9418,
19865,
3236,
1435,
1216,
12758,
25482,
288,
1082,
202,
3989,
9505,
1776,
9418,
19865,
24518,
273,
261,
3989,
9505,
1776,
9418,
19865,
13,
2240,
6862,
202,
18,
14056,
5621,
9506,
202,
2704,
921,
18,
2821,
273,
394,
2286,
63,
2821,
18,
2469,
15533,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1466,
18,
2469,
31,
277,
27245,
6862,
202,
2704,
921,
18,
2821,
63,
77,
65,
273,
261,
2821,
63,
77,
65,
422,
446,
692,
446,
6862,
1082,
202,
30,
1466,
63,
77,
8009,
14056,
12,
2704,
921,
10019,
1082,
202,
2463,
24518,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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621,
9506,
202,
2704,
921,
18,
2821,
273,
394,
2286,
63,
2821,
18,
2469,
15533,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1466,
18,
2469,
31,
277,
27245,
6862,
202,
2704,
921,
18,
2821,
63,
77,
65,
273,
261,
2821,
63,
77,
65,
422,
446,
692,
446,
6862,
1082,
202,
30,
1466,
63,
77,
8009,
14056,
12,
2704,
921,
10019,
1082,
202,
2463,
24518,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assertSame(history.getUndoOperation(c3), op6);
|
assertSame(history.getUndoOperation(contextC), op6);
|
public void testOperationFailure() throws ExecutionException { history.addOperationApprover(new IOperationApprover() { public IStatus proceedRedoing(IUndoableOperation o, IOperationHistory h, IAdaptable a) { return Status.OK_STATUS; } public IStatus proceedUndoing(IUndoableOperation o, IOperationHistory h, IAdaptable a) { if (o == op6) return Status.CANCEL_STATUS; if (o == op5) return new OperationStatus(0, "Error", null); return Status.OK_STATUS; } }); // should fail but still keep op6 on the stack since it's cancelled IStatus status = history.undo(c3, null, null); assertFalse(status.isOK()); assertSame(history.getUndoOperation(c3), op6); // should fail and remove op5 since it's an error status = history.undo(c2, null, null); assertFalse(status.isOK()); assertNotSame("should not match", history.getUndoOperation(c2), op5); // should succeed status = history.undo(c2, null, null); assertTrue(status.isOK()); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/f2e3de5ef2b8a6e3f7ff548a57814536495aa48d/OperationsAPITest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/OperationsAPITest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2988,
5247,
1435,
1216,
20205,
288,
202,
202,
8189,
18,
1289,
2988,
12053,
502,
12,
2704,
1665,
1193,
12053,
502,
1435,
288,
1082,
202,
482,
467,
1482,
11247,
3715,
83,
310,
12,
45,
31224,
429,
2988,
320,
16,
1665,
1193,
5623,
366,
16,
467,
13716,
429,
279,
13,
288,
9506,
202,
2463,
2685,
18,
3141,
67,
8608,
31,
1082,
202,
97,
1082,
202,
482,
467,
1482,
11247,
31224,
310,
12,
45,
31224,
429,
2988,
320,
16,
1665,
1193,
5623,
366,
16,
467,
13716,
429,
279,
13,
288,
9506,
202,
430,
261,
83,
422,
1061,
26,
13,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
9506,
202,
430,
261,
83,
422,
1061,
25,
13,
6862,
202,
2463,
394,
22004,
12,
20,
16,
315,
668,
3113,
446,
1769,
9506,
202,
2463,
2685,
18,
3141,
67,
8608,
31,
1082,
202,
97,
202,
202,
22938,
202,
202,
759,
1410,
2321,
1496,
4859,
3455,
1061,
26,
603,
326,
2110,
3241,
518,
1807,
13927,
202,
202,
45,
1482,
1267,
273,
4927,
18,
31226,
12,
71,
23,
16,
446,
16,
446,
1769,
202,
202,
11231,
8381,
12,
2327,
18,
291,
3141,
10663,
202,
202,
11231,
8650,
12,
8189,
18,
588,
31224,
2988,
12,
71,
23,
3631,
1061,
26,
1769,
202,
202,
759,
1410,
2321,
471,
1206,
1061,
25,
3241,
518,
1807,
392,
555,
202,
202,
2327,
273,
4927,
18,
31226,
12,
71,
22,
16,
446,
16,
446,
1769,
202,
202,
11231,
8381,
12,
2327,
18,
291,
3141,
10663,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2988,
5247,
1435,
1216,
20205,
288,
202,
202,
8189,
18,
1289,
2988,
12053,
502,
12,
2704,
1665,
1193,
12053,
502,
1435,
288,
1082,
202,
482,
467,
1482,
11247,
3715,
83,
310,
12,
45,
31224,
429,
2988,
320,
16,
1665,
1193,
5623,
366,
16,
467,
13716,
429,
279,
13,
288,
9506,
202,
2463,
2685,
18,
3141,
67,
8608,
31,
1082,
202,
97,
1082,
202,
482,
467,
1482,
11247,
31224,
310,
12,
45,
31224,
429,
2988,
320,
16,
1665,
1193,
5623,
366,
16,
467,
13716,
429,
279,
13,
288,
9506,
202,
430,
261,
83,
422,
1061,
26,
13,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
9506,
202,
430,
261,
83,
422,
1061,
25,
13,
2
] |
if ( !dag.hasEdge( extensionId, id ) || !parentId.equals( id ) )
|
if ( !dag.hasEdge( projectRefId, id ) || !parentId.equals( id ) )
|
private void addEdgeWithParentCheck( Map projectMap, String extensionId, MavenProject project, String id ) throws CycleDetectedException { MavenProject extProject = (MavenProject) projectMap.get( extensionId ); project.addProjectReference( extProject ); MavenProject extParent = extProject.getParent(); if ( extParent != null ) { String parentId = ArtifactUtils.versionlessKey( extParent.getGroupId(), extParent.getArtifactId() ); // Don't add edge from parent to extension if a reverse edge already exists if ( !dag.hasEdge( extensionId, id ) || !parentId.equals( id ) ) { dag.addEdge( id, extensionId ); } } }
|
11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/4028c67c5a24907d73481676de10bba687adab4b/ProjectSorter.java/buggy/maven-project/src/main/java/org/apache/maven/project/ProjectSorter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
6098,
1190,
3054,
1564,
12,
1635,
1984,
863,
16,
514,
2710,
548,
16,
17176,
4109,
1984,
16,
514,
612,
262,
3639,
1216,
385,
3409,
22614,
503,
565,
288,
3639,
17176,
4109,
1110,
4109,
273,
261,
49,
7638,
4109,
13,
1984,
863,
18,
588,
12,
2710,
548,
11272,
3639,
1984,
18,
1289,
4109,
2404,
12,
1110,
4109,
11272,
3639,
17176,
4109,
1110,
3054,
273,
1110,
4109,
18,
588,
3054,
5621,
3639,
309,
261,
1110,
3054,
480,
446,
262,
3639,
288,
5411,
514,
11582,
273,
14022,
1989,
18,
1589,
2656,
653,
12,
1110,
3054,
18,
588,
8722,
9334,
1110,
3054,
18,
588,
7581,
548,
1435,
11272,
5411,
368,
7615,
1404,
527,
3591,
628,
982,
358,
2710,
309,
279,
4219,
3591,
1818,
1704,
5411,
309,
261,
401,
30204,
18,
5332,
6098,
12,
1984,
1957,
548,
16,
612,
262,
747,
401,
2938,
548,
18,
14963,
12,
612,
262,
262,
5411,
288,
7734,
22940,
18,
1289,
6098,
12,
612,
16,
2710,
548,
11272,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
612,
262,
3639,
1216,
385,
3409,
22614,
503,
565,
288,
3639,
17176,
4109,
1110,
4109,
273,
261,
49,
7638,
4109,
13,
1984,
863,
18,
588,
12,
2710,
548,
11272,
3639,
1984,
18,
1289,
4109,
2404,
12,
1110,
4109,
11272,
3639,
17176,
4109,
1110,
3054,
273,
1110,
4109,
18,
588,
3054,
5621,
3639,
309,
261,
1110,
3054,
480,
446,
262,
3639,
288,
5411,
514,
11582,
273,
14022,
1989,
18,
1589,
2656,
653,
12,
1110,
3054,
18,
588,
8722,
9334,
1110,
3054,
18,
588,
7581,
548,
1435,
11272,
5411,
368,
7615,
1404,
527,
3591,
628,
982,
358,
2710,
309,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.