rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
try { if (this.isConstructor() != method.isConstructor()) { return false; } } catch(JavaModelException e) { } return | return | public boolean isSimilar(IMethod method) { try { if (this.isConstructor() != method.isConstructor()) { return false; } } catch(JavaModelException e) { } return this.areSimilarMethods( this.getElementName(), this.getParameterTypes(), method.getElementName(), method.getParameterTypes(), null);} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/55dd1752724e94f80b5a3c87b786db3965b6bbc2/SourceMethod.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1250,
353,
16891,
12,
45,
1305,
707,
13,
288,
202,
698,
288,
202,
202,
430,
261,
2211,
18,
291,
6293,
1435,
480,
707,
18,
291,
6293,
10756,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
97,
1044,
12,
5852,
1488,
503,
425,
13,
288,
202,
97,
202,
2463,
202,
202,
2211,
18,
834,
16891,
4712,
12,
1082,
202,
2211,
18,
21336,
461,
9334,
333,
18,
588,
1662,
2016,
9334,
1082,
202,
2039,
18,
21336,
461,
9334,
707,
18,
588,
1662,
2016,
9334,
1082,
202,
2011,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1250,
353,
16891,
12,
45,
1305,
707,
13,
288,
202,
698,
288,
202,
202,
430,
261,
2211,
18,
291,
6293,
1435,
480,
707,
18,
291,
6293,
10756,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
97,
1044,
12,
5852,
1488,
503,
425,
13,
288,
202,
97,
202,
2463,
202,
202,
2211,
18,
834,
16891,
4712,
12,
1082,
202,
2211,
18,
21336,
461,
9334,
333,
18,
588,
1662,
2016,
9334,
1082,
202,
2039,
18,
21336,
461,
9334,
707,
18,
588,
1662,
2016,
9334,
1082,
202,
2011,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
tag.setAttribute(attributeName, ""); | tag.setAttribute(attributeName, ""); | private static void parseAttributes(HtmlTag tag, String s, int i) throws ParseException { while (i < s.length()) { // skip whitespace while (i < s.length() && Character.isWhitespace(s.charAt(i))) i++; if (i == s.length()) return; // read the attribute name -- the rule might be looser than the RFC // specifies: // everything up to a space or an equal sign is included int start = i; for (; i < s.length() && !Character.isWhitespace(s.charAt(i)) && s.charAt(i) != '='; i++) { // just move forward } String attributeName = s.substring(start, i).toLowerCase(); if(attributeName.equals("/")) { tag.setSelfTerminating(true); continue; } for (; i < s.length() && Character.isWhitespace(s.charAt(i)); i++) { // just move forward } if (i == s.length() || s.charAt(i) != '=') { // no attribute value tag.setAttribute(attributeName, ""); continue; } // skip whitespace to the start of attribute value for (i = i + 1; i < s.length() && Character.isWhitespace(s.charAt(i)); i++) { // just move forward } if (i == s.length()) return; // read the attribute value -- the rule for unquoted attribute value // is // looser than the one in Conolly's W3C 1996 lexical analyzer draft: // everything // is included up to the next space String attributeValue; if (s.charAt(i) == '"') { start = ++i; for (; i < s.length() && s.charAt(i) != '"'; i++) { // just move forward } if (i == s.length()) return; // shouldn't happen if input returned by nextToken attributeValue = unescape(s.substring(start, i)); i++; } else if (s.charAt(i) == '\'') { start = ++i; for (; i < s.length() && s.charAt(i) != '\''; i++) { // just move forward } if (i == s.length()) return; // shouldn't happen if input returned by nextToken attributeValue = unescape(s.substring(start, i)); i++; } else { start = i; for (; i < s.length() && !Character.isWhitespace(s.charAt(i)); i++) { // just move forward } attributeValue = s.substring(start, i); } tag.setAttribute(attributeName, attributeValue); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/854aac6509aa2ec74de8c71cf8795ea91792f9d7/HtmlStreamTokenizer.java/buggy/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/HtmlStreamTokenizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1109,
2498,
12,
4353,
1805,
1047,
16,
514,
272,
16,
509,
277,
13,
1216,
10616,
288,
202,
202,
17523,
261,
77,
411,
272,
18,
2469,
10756,
288,
1082,
202,
759,
2488,
7983,
1082,
202,
17523,
261,
77,
411,
272,
18,
2469,
1435,
597,
6577,
18,
291,
9431,
12,
87,
18,
3001,
861,
12,
77,
20349,
9506,
202,
77,
9904,
31,
1082,
202,
430,
261,
77,
422,
272,
18,
2469,
10756,
9506,
202,
2463,
31,
1082,
202,
759,
855,
326,
1566,
508,
1493,
326,
1720,
4825,
506,
437,
13164,
2353,
326,
8372,
1082,
202,
759,
11470,
30,
1082,
202,
759,
7756,
731,
358,
279,
3476,
578,
392,
3959,
1573,
353,
5849,
1082,
202,
474,
787,
273,
277,
31,
1082,
202,
1884,
261,
31,
277,
411,
272,
18,
2469,
1435,
597,
401,
7069,
18,
291,
9431,
12,
87,
18,
3001,
861,
12,
77,
3719,
597,
272,
18,
3001,
861,
12,
77,
13,
480,
5214,
31,
277,
27245,
288,
9506,
202,
759,
2537,
3635,
5104,
1082,
202,
97,
1082,
202,
780,
9734,
273,
272,
18,
28023,
12,
1937,
16,
277,
2934,
869,
5630,
5621,
1082,
202,
430,
12,
4589,
461,
18,
14963,
2932,
4898,
3719,
288,
9506,
202,
2692,
18,
542,
10084,
27506,
1776,
12,
3767,
1769,
9506,
202,
17143,
31,
1082,
202,
97,
25083,
202,
1884,
261,
31,
277,
411,
272,
18,
2469,
1435,
597,
6577,
18,
291,
9431,
12,
87,
18,
3001,
861,
12,
77,
10019,
277,
27245,
288,
9506,
202,
759,
2537,
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,
760,
918,
1109,
2498,
12,
4353,
1805,
1047,
16,
514,
272,
16,
509,
277,
13,
1216,
10616,
288,
202,
202,
17523,
261,
77,
411,
272,
18,
2469,
10756,
288,
1082,
202,
759,
2488,
7983,
1082,
202,
17523,
261,
77,
411,
272,
18,
2469,
1435,
597,
6577,
18,
291,
9431,
12,
87,
18,
3001,
861,
12,
77,
20349,
9506,
202,
77,
9904,
31,
1082,
202,
430,
261,
77,
422,
272,
18,
2469,
10756,
9506,
202,
2463,
31,
1082,
202,
759,
855,
326,
1566,
508,
1493,
326,
1720,
4825,
506,
437,
13164,
2353,
326,
8372,
1082,
202,
759,
11470,
30,
1082,
202,
759,
7756,
731,
358,
279,
3476,
578,
392,
3959,
1573,
353,
5849,
1082,
202,
474,
787,
2
] |
"SmartFrogDeploymentException", | EXCEPTION_DEPLOYMENT, | public void testCaseTCN25() throws Exception { deployExpectingException(FILES + "tcn25.sf", "tcn25", "SmartFrogDeploymentException", "failed to deploy 'data' component", "SmartFrogResolutionException", "Reference not found"); } | 4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/0d008eff459cca0a5fa7cd82a184cc3202c5b045/CompilerSystemTest.java/clean/core/testharness/testcases/org/smartfrog/test/system/compiler/CompilerSystemTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2449,
56,
12821,
2947,
1435,
1216,
1185,
288,
3639,
7286,
11988,
21546,
12,
12669,
397,
315,
5111,
82,
2947,
18,
21668,
3113,
7734,
315,
5111,
82,
2947,
3113,
7734,
23136,
67,
1639,
22971,
3212,
16,
7734,
315,
7307,
358,
7286,
296,
892,
11,
1794,
3113,
7734,
315,
23824,
42,
303,
75,
11098,
503,
3113,
7734,
315,
2404,
486,
1392,
8863,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2449,
56,
12821,
2947,
1435,
1216,
1185,
288,
3639,
7286,
11988,
21546,
12,
12669,
397,
315,
5111,
82,
2947,
18,
21668,
3113,
7734,
315,
5111,
82,
2947,
3113,
7734,
23136,
67,
1639,
22971,
3212,
16,
7734,
315,
7307,
358,
7286,
296,
892,
11,
1794,
3113,
7734,
315,
23824,
42,
303,
75,
11098,
503,
3113,
7734,
315,
2404,
486,
1392,
8863,
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
] |
return null; | return currentChart; | private Chart getConvertedChart( Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); if ( ( currentChart instanceof ChartWithAxes ) ) // Chart is // ChartWithAxes { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) { if ( !currentChart.getSubType( ).equals( sNewSubType ) ) { currentChart.setSubType( sNewSubType ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { ( (Axis) axes.get( i ) ).setPercent( false ); EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series.setStacked( false ); } } } ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( false ); if ( currentChart instanceof ChartWithAxes && !( (ChartWithAxes) currentChart ).getOrientation( ) .equals( newOrientation ) ) { ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); } return currentChart; } else if ( currentChart.getType( ).equals( LineChart.TYPE_LITERAL ) || currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) || currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( ScatterChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( BubbleChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( DifferenceChart.TYPE_LITERAL ) ) { if ( !currentChart.getType( ).equals( TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ) ) ); } currentChart.setType( TYPE_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( false ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getScale( ) .setStep( 10.0 ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getMajorGrid( ) .getLineAttributes( ) .setVisible( true ); currentChart.setSubType( sNewSubType ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { ( (Axis) axes.get( i ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) axes.get( i ) ).setType( AxisType.DATE_TIME_LITERAL ); ( (Axis) axes.get( i ) ).setPercent( false ); EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); series.setStacked( false ); ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } } else { return null; } } else { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setType( AxisType.DATE_TIME_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( getConvertedSampleData( helperModel.getSampleData( ) ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getType( ).equals( PieChart.TYPE_LITERAL ) ) { // Clear existing series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy base series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) .get( 0 ) ); // Clear existing series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy orthogonal series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .addAll( ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeriesDefinitions( ) ); // Update the base series Series series = ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); // Clear existing series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .clear( ); // Add converted series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .add( series ); // Update the orthogonal series EList seriesdefinitions = ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); series.setStacked( false ); // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } else { return null; } currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); } if ( currentChart instanceof ChartWithAxes && !( (ChartWithAxes) currentChart ).getOrientation( ) .equals( newOrientation ) ) { ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); } if ( !currentChart.getDimension( ) .equals( getDimensionFor( sNewDimension ) ) ) { currentChart.setDimension( getDimensionFor( sNewDimension ) ); } // return currentChart; return null; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/51342f37efb819d66eb6bfa56ebaba4fb7f4fa8b/GanttChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/GanttChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
14097,
394,
14097,
16,
514,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
512,
3644,
1304,
18,
3530,
12,
783,
7984,
11272,
202,
202,
430,
261,
261,
783,
7984,
1276,
14804,
1190,
26494,
262,
262,
368,
14804,
353,
202,
202,
759,
14804,
1190,
26494,
202,
202,
95,
1082,
202,
430,
261,
783,
7984,
18,
588,
559,
12,
262,
18,
14963,
12,
3463,
67,
23225,
262,
262,
1082,
202,
95,
9506,
202,
430,
261,
401,
2972,
7984,
18,
588,
30511,
12,
262,
18,
14963,
12,
272,
1908,
30511,
262,
262,
9506,
202,
95,
6862,
202,
2972,
7984,
18,
542,
30511,
12,
272,
1908,
30511,
11272,
6862,
202,
41,
682,
6515,
273,
261,
261,
6558,
13,
261,
261,
7984,
1190,
26494,
13,
783,
7984,
262,
18,
588,
26494,
12,
262,
6862,
1082,
202,
18,
588,
12,
374,
262,
262,
18,
588,
19233,
26494,
12,
11272,
6862,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
6515,
18,
1467,
12,
11272,
277,
9904,
262,
6862,
202,
95,
25083,
202,
12,
261,
6558,
13,
6515,
18,
588,
12,
277,
262,
262,
18,
542,
8410,
12,
629,
11272,
25083,
202,
41,
682,
4166,
13314,
273,
261,
261,
6558,
13,
6515,
18,
588,
12,
277,
262,
262,
18,
588,
6485,
7130,
12,
11272,
25083,
202,
1884,
261,
509,
525,
273,
374,
31,
525,
411,
4166,
13314,
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,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
14097,
394,
14097,
16,
514,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
512,
3644,
1304,
18,
3530,
12,
783,
7984,
11272,
202,
202,
430,
261,
261,
783,
7984,
1276,
14804,
1190,
26494,
262,
262,
368,
14804,
353,
202,
202,
759,
14804,
1190,
26494,
202,
202,
95,
1082,
202,
430,
261,
783,
7984,
18,
588,
559,
12,
262,
18,
14963,
12,
3463,
67,
23225,
262,
262,
1082,
202,
95,
9506,
202,
430,
261,
401,
2972,
7984,
18,
588,
30511,
12,
262,
18,
14963,
12,
272,
1908,
30511,
262,
262,
9506,
202,
95,
6862,
2
] |
while(this.returnValue == -1) { | while (this.returnValue == -1) { | void interrupted(Context cx) { synchronized(swingMonitor) { if(java.awt.EventQueue.isDispatchThread()) { dispatcherIsWaiting++; if(nonDispatcherWaiting) { // Another thread is stopped in the debugger // process events until it resumes and we // can enter java.awt.EventQueue eventQ = java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue(); while(nonDispatcherWaiting) { try { AWTEvent event = eventQ.getNextEvent(); if(event instanceof ActiveEvent) { ((ActiveEvent)event).dispatch(); } else { Object source = event.getSource(); if(source instanceof Component) { Component comp = (Component)source; // Suppress Window/InputEvent's that aren't // directed to the Debugger // if(!(event instanceof InputEvent || //event instanceof WindowEvent)|| //shouldDispatchTo(comp)) { comp.dispatchEvent(event); //} } else if(source instanceof MenuComponent) { ((MenuComponent)source).dispatchEvent(event); } } if(this.returnValue == EXIT) { return; } swingMonitor.wait(1); } catch(InterruptedException exc) { return; } } } } else { while(isInterrupted || dispatcherIsWaiting > 0) { try { swingMonitor.wait(); } catch(InterruptedException exc) { return; } } nonDispatcherWaiting = true; } isInterrupted = true; } do { currentContext = cx; DebuggableEngine engine = cx.getDebuggableEngine(); Thread thread = Thread.currentThread(); statusBar.setText("Thread: " + thread.toString()); ThreadState state = (ThreadState)threadState.get(thread); int stopAtFrameDepth = -1; if(state != null) { stopAtFrameDepth = state.stopAtFrameDepth; } if(runToCursorFile != null && thread == runToCursorThread) { int frameCount = engine.getFrameCount(); if(frameCount > 0) { DebugFrame frame = engine.getFrame(0); String sourceName = frame.getSourceName(); if(sourceName != null) { if(sourceName.equals(runToCursorFile)) { int lineNumber = frame.getLineNumber(); if(lineNumber == runToCursorLine) { stopAtFrameDepth = -1; runToCursorFile = null; } else { FileWindow w = getFileWindow(sourceName); if(w == null || !w.isBreakPoint(lineNumber)) { return; } else { runToCursorFile = null; } } } } } else { } } if(stopAtFrameDepth > 0) { if (engine.getFrameCount() > stopAtFrameDepth) { break; } } if(state != null) { state.stopAtFrameDepth = -1; } threadState.remove(thread); int frameCount = engine.getFrameCount(); this.frameIndex = frameCount -1; int line = 0; if(frameCount == 0) { break; } DebugFrame frame = engine.getFrame(0); String fileName = frame.getSourceName(); engine.setBreakNextLine(false); line = frame.getLineNumber(); int enterCount = 0; boolean isDispatchThread = java.awt.EventQueue.isDispatchThread(); if(!isDispatchThread) { // detach cx from its thread so the debugger (in the awt // dispatcher thread) can enter it if necessary cx.exit(); while(Context.getCurrentContext() != null) { Context.exit(); enterCount++; } } if(fileName != null && !fileName.equals("<stdin>")) { FileWindow w = (FileWindow)getFileWindow(fileName); if(w != null) { SetFilePosition action = new SetFilePosition(this, w, line); swingInvoke(action); } else { Vector v = (Vector)sourceNames.get(fileName); String source = ((SourceEntry)v.elementAt(0)).source.toString(); CreateFileWindow action = new CreateFileWindow(this, fileName, source, line); swingInvoke(action); } } else { if(console.isVisible()) { final JSInternalConsole finalConsole = console; swingInvoke(new Runnable() { public void run() { finalConsole.show(); } }); } } swingInvoke(new EnterInterrupt(this, cx)); swingInvoke(new UpdateContext(this, cx)); int returnValue; if(!isDispatchThread) { synchronized(monitor) { this.returnValue = -1; try { while(this.returnValue == -1) { monitor.wait(); } returnValue = this.returnValue; } catch(InterruptedException exc) { break; } } } else { java.awt.EventQueue eventQ = java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue(); this.returnValue = -1; while(this.returnValue == -1) { try { AWTEvent event = eventQ.getNextEvent(); if(event instanceof ActiveEvent) { ((ActiveEvent)event).dispatch(); } else { Object source = event.getSource(); if(source instanceof Component) { Component comp = (Component)source; // Suppress Window/InputEvent's that aren't // directed to the Debugger // if(!(event instanceof InputEvent || //event instanceof WindowEvent)|| // shouldDispatchTo(comp)) { //comp.dispatchEvent(event); //} comp.dispatchEvent(event); } else if(source instanceof MenuComponent) { ((MenuComponent)source).dispatchEvent(event); } } } catch(InterruptedException exc) { } } returnValue = this.returnValue; } swingInvoke(new ExitInterrupt(this)); if(!isDispatchThread) { // reattach cx to its thread Context current; if((current = Context.enter(cx)) != cx) { System.out.println("debugger error: cx = " + cx + " current = " + current); } while(enterCount > 0) { Context.enter(); enterCount--; } } switch(returnValue) { case STEP_OVER: engine.setBreakNextLine(true); stopAtFrameDepth = engine.getFrameCount(); if(state == null) { state = new ThreadState(); } state.stopAtFrameDepth = stopAtFrameDepth; threadState.put(thread, state); break; case STEP_INTO: engine.setBreakNextLine(true); if(state != null) { state.stopAtFrameDepth = -1; } break; case STEP_OUT: stopAtFrameDepth = engine.getFrameCount() -1; if(stopAtFrameDepth > 0) { engine.setBreakNextLine(true); if(state == null) { state = new ThreadState(); } state.stopAtFrameDepth = stopAtFrameDepth; threadState.put(thread, state); } break; case RUN_TO_CURSOR: engine.setBreakNextLine(true); if(state != null) { state.stopAtFrameDepth = -1; } break; } } while(false); synchronized(swingMonitor) { isInterrupted = false; if(java.awt.EventQueue.isDispatchThread()) { dispatcherIsWaiting--; } else { nonDispatcherWaiting = false; } swingMonitor.notifyAll(); } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/5b760bc86060749267746b7d77c0c8da1d3b9c1d/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
15711,
12,
1042,
9494,
13,
288,
3639,
3852,
12,
5328,
310,
7187,
13,
288,
5411,
309,
12,
6290,
18,
2219,
88,
18,
1133,
3183,
18,
291,
5325,
3830,
10756,
288,
7734,
7393,
2520,
15946,
9904,
31,
7734,
309,
12,
5836,
6681,
15946,
13,
288,
10792,
368,
432,
24413,
2650,
353,
9627,
316,
326,
19977,
10792,
368,
1207,
2641,
3180,
518,
400,
6411,
471,
732,
10792,
368,
848,
6103,
10792,
2252,
18,
2219,
88,
18,
1133,
3183,
871,
53,
225,
273,
13491,
2252,
18,
2219,
88,
18,
6364,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
3163,
1133,
3183,
5621,
10792,
1323,
12,
5836,
6681,
15946,
13,
288,
13491,
775,
288,
18701,
432,
8588,
1133,
871,
273,
871,
53,
18,
588,
2134,
1133,
5621,
18701,
309,
12,
2575,
1276,
8857,
1133,
13,
288,
27573,
14015,
3896,
1133,
13,
2575,
2934,
10739,
5621,
18701,
289,
469,
288,
27573,
1033,
1084,
273,
871,
18,
588,
1830,
5621,
27573,
309,
12,
3168,
1276,
5435,
13,
288,
4766,
565,
5435,
1161,
273,
261,
1841,
13,
3168,
31,
27573,
368,
4598,
6076,
19,
1210,
1133,
1807,
716,
11526,
1404,
27573,
368,
20830,
358,
326,
28645,
4766,
565,
368,
309,
12,
5,
12,
2575,
1276,
2741,
1133,
747,
4766,
565,
368,
2575,
1276,
6076,
1133,
14047,
96,
4766,
565,
368,
13139,
5325,
774,
12,
2919,
3719,
288,
4766,
565,
1161,
18,
10739,
1133,
12,
2575,
1769,
27573,
19363,
27573,
289,
469,
309,
12,
3168,
1276,
9809,
1841,
13,
288,
4766,
565,
14015,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
15711,
12,
1042,
9494,
13,
288,
3639,
3852,
12,
5328,
310,
7187,
13,
288,
5411,
309,
12,
6290,
18,
2219,
88,
18,
1133,
3183,
18,
291,
5325,
3830,
10756,
288,
7734,
7393,
2520,
15946,
9904,
31,
7734,
309,
12,
5836,
6681,
15946,
13,
288,
10792,
368,
432,
24413,
2650,
353,
9627,
316,
326,
19977,
10792,
368,
1207,
2641,
3180,
518,
400,
6411,
471,
732,
10792,
368,
848,
6103,
10792,
2252,
18,
2219,
88,
18,
1133,
3183,
871,
53,
225,
273,
13491,
2252,
18,
2219,
88,
18,
6364,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
3163,
1133,
3183,
5621,
10792,
1323,
12,
5836,
6681,
15946,
13,
288,
13491,
775,
288,
18701,
432,
8588,
1133,
871,
273,
871,
2
] |
throws EndOfFileException, BacktrackException { if( LT(1) != IToken.t_catch ) throw backtrack; while (LT(1) == IToken.t_catch) { consume(IToken.t_catch); consume(IToken.tLPAREN); if( LT(1) == IToken.tELLIPSIS ) consume( IToken.tELLIPSIS ); else simpleDeclaration( SimpleDeclarationStrategy.TRY_VARIABLE, scope, null, CompletionKind.EXCEPTION_REFERENCE, true, KeywordSetKey.DECL_SPECIFIER_SEQUENCE ); consume(IToken.tRPAREN); catchBlockCompoundStatement(scope); } } | throws EndOfFileException, BacktrackException { if (LT(1) != IToken.t_catch) throwBacktrack(LA(1).getOffset()); while (LT(1) == IToken.t_catch) { consume(IToken.t_catch); consume(IToken.tLPAREN); if (LT(1) == IToken.tELLIPSIS) consume(IToken.tELLIPSIS); else simpleDeclaration(SimpleDeclarationStrategy.TRY_VARIABLE, scope, null, CompletionKind.EXCEPTION_REFERENCE, true, KeywordSetKey.DECL_SPECIFIER_SEQUENCE); consume(IToken.tRPAREN); catchBlockCompoundStatement(scope); } } | protected void catchHandlerSequence(IASTScope scope) throws EndOfFileException, BacktrackException { if( LT(1) != IToken.t_catch ) throw backtrack; // error, need at least one of these while (LT(1) == IToken.t_catch) { consume(IToken.t_catch); consume(IToken.tLPAREN); if( LT(1) == IToken.tELLIPSIS ) consume( IToken.tELLIPSIS ); else simpleDeclaration( SimpleDeclarationStrategy.TRY_VARIABLE, scope, null, CompletionKind.EXCEPTION_REFERENCE, true, KeywordSetKey.DECL_SPECIFIER_SEQUENCE ); consume(IToken.tRPAREN); catchBlockCompoundStatement(scope); } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/85be18a5f9556c1b23f600ca12f088a1d51d3925/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1044,
1503,
4021,
12,
45,
9053,
3876,
2146,
13,
202,
15069,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
377,
202,
430,
12,
11807,
12,
21,
13,
480,
467,
1345,
18,
88,
67,
14683,
262,
377,
202,
202,
12849,
1473,
4101,
31,
368,
555,
16,
1608,
622,
4520,
1245,
434,
4259,
377,
202,
17523,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
67,
14683,
13,
377,
202,
95,
377,
202,
202,
21224,
12,
1285,
969,
18,
88,
67,
14683,
1769,
377,
202,
202,
21224,
12,
1285,
969,
18,
88,
48,
15111,
1769,
377,
202,
202,
430,
12,
11807,
12,
21,
13,
422,
467,
1345,
18,
88,
2247,
2053,
52,
15664,
262,
377,
1082,
202,
21224,
12,
467,
1345,
18,
88,
2247,
2053,
52,
15664,
11272,
377,
202,
202,
12107,
1377,
1082,
202,
9647,
6094,
12,
4477,
6094,
4525,
18,
17805,
67,
16444,
16,
2146,
16,
446,
16,
20735,
5677,
18,
12658,
67,
14617,
16,
638,
16,
18317,
30267,
18,
23956,
67,
13847,
10591,
67,
25330,
11272,
1377,
202,
202,
21224,
12,
1285,
969,
18,
88,
54,
15111,
1769,
377,
1082,
377,
202,
202,
14683,
1768,
16835,
3406,
12,
4887,
1769,
377,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1044,
1503,
4021,
12,
45,
9053,
3876,
2146,
13,
202,
15069,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
377,
202,
430,
12,
11807,
12,
21,
13,
480,
467,
1345,
18,
88,
67,
14683,
262,
377,
202,
202,
12849,
1473,
4101,
31,
368,
555,
16,
1608,
622,
4520,
1245,
434,
4259,
377,
202,
17523,
261,
12050,
12,
21,
13,
422,
467,
1345,
18,
88,
67,
14683,
13,
377,
202,
95,
377,
202,
202,
21224,
12,
1285,
969,
18,
88,
67,
14683,
1769,
377,
202,
202,
21224,
12,
1285,
969,
18,
88,
48,
15111,
1769,
377,
202,
202,
430,
12,
11807,
12,
21,
13,
422,
467,
1345,
18,
88,
2247,
2053,
52,
15664,
262,
377,
1082,
2
] |
return (String)constant_pool.get((Integer)constant_pool.get(class_index-1)-1); | int name_index = (Integer)constant_pool.get(class_index-1); String raw_name = getName(name_index); return raw_name.replace("/", "."); | public String getClassName(int class_index) { return (String)constant_pool.get((Integer)constant_pool.get(class_index-1)-1); } | 48847 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48847/9f97e3584bad7135263beb05aaded970c693af67/Reader.java/clean/interview-sun/decompile/Reader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11819,
12,
474,
667,
67,
1615,
13,
288,
3639,
509,
508,
67,
1615,
273,
261,
4522,
13,
14384,
67,
6011,
18,
588,
12,
1106,
67,
1615,
17,
21,
1769,
514,
1831,
67,
529,
273,
1723,
12,
529,
67,
1615,
1769,
327,
1831,
67,
529,
18,
2079,
2932,
19,
3113,
4585,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11819,
12,
474,
667,
67,
1615,
13,
288,
3639,
509,
508,
67,
1615,
273,
261,
4522,
13,
14384,
67,
6011,
18,
588,
12,
1106,
67,
1615,
17,
21,
1769,
514,
1831,
67,
529,
273,
1723,
12,
529,
67,
1615,
1769,
327,
1831,
67,
529,
18,
2079,
2932,
19,
3113,
4585,
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
] |
values.add("-1"); | if (curNav.getNavPosition() == Float.MAX_VALUE) { values.add((maxValue + 1) + ""); } else { values.add("-1"); } | public static String buildNavPosSelector(CmsObject cms, String filename, String attributes, CmsWorkplaceMessages messages) { List navList = new ArrayList(); List options = new ArrayList(); List values = new ArrayList(); // get current file navigation element CmsJspNavElement curNav = CmsJspNavBuilder.getNavigationForResource(cms, filename); // get the parent folder of the current file filename = CmsResource.getParentFolder(filename); // get navigation of the current folder navList = CmsJspNavBuilder.getNavigationForFolder(cms, filename); float maxValue = 0; float nextPos = 0; // calculate value for the first navigation position float firstValue = 1; try { CmsJspNavElement ne = (CmsJspNavElement)navList.get(0); maxValue = ne.getNavPosition(); } catch (Exception e) { // should usually never happen if (OpenCms.getLog(CmsChnav.class).isInfoEnabled()) { OpenCms.getLog(CmsChnav.class).info(e); } } if (maxValue != 0) { firstValue = maxValue / 2; } // add the first entry: before first element options.add(messages.key("input.firstelement")); values.add(firstValue+""); // show all present navigation elements in box for (int i=0; i<navList.size(); i++) { CmsJspNavElement ne = (CmsJspNavElement)navList.get(i); String navText = ne.getNavText(); float navPos = ne.getNavPosition(); // get position of next nav element nextPos = navPos + 2; if ((i+1) < navList.size()) { nextPos = ((CmsJspNavElement)navList.get(i+1)).getNavPosition(); } // calculate new position of current nav element float newPos = (navPos + nextPos) / 2; // check new maxValue of positions and increase it if (navPos > maxValue) { maxValue = navPos; } // if the element is the current file, mark it in selectbox if (curNav.getNavText().equals(navText) && curNav.getNavPosition() == navPos) { options.add(CmsEncoder.escapeHtml(messages.key("input.currentposition")+" ["+ne.getFileName()+"]")); values.add("-1"); } else { options.add(CmsEncoder.escapeHtml(navText+" ["+ne.getFileName()+"]")); values.add(newPos+""); } } // add the entry: at the last position options.add(messages.key("input.lastelement")); values.add((maxValue+1)+""); // add the entry: no change options.add(messages.key("input.nochange")); values.add("-1"); if (attributes != null && !"".equals(attributes.trim())) { attributes = " " + attributes; } else { attributes = ""; } CmsDialog wp = new CmsDialog(null); return wp.buildSelect("name=\""+PARAM_NAVPOS+"\"" + attributes, options, values, values.size()-1, true); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/c80cbf84d3454cc1f3b1cbd81ab2f9c1a25a001c/CmsChnav.java/buggy/src/org/opencms/workplace/commons/CmsChnav.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1361,
12599,
1616,
4320,
12,
4747,
921,
6166,
16,
514,
1544,
16,
514,
1677,
16,
27755,
5058,
2743,
13,
288,
3639,
987,
8775,
682,
273,
394,
2407,
5621,
3639,
987,
702,
273,
394,
2407,
5621,
3639,
987,
924,
273,
394,
2407,
5621,
7734,
368,
336,
783,
585,
10394,
930,
3639,
31108,
12599,
1046,
662,
12599,
273,
31108,
12599,
1263,
18,
588,
14301,
20977,
12,
6851,
16,
1544,
1769,
7734,
368,
336,
326,
982,
3009,
434,
326,
783,
585,
3639,
1544,
273,
7630,
18,
588,
3054,
3899,
12,
3459,
1769,
7734,
368,
336,
10394,
434,
326,
783,
3009,
3639,
8775,
682,
273,
31108,
12599,
1263,
18,
588,
14301,
1290,
3899,
12,
6851,
16,
1544,
1769,
3639,
1431,
18666,
273,
374,
31,
3639,
1431,
1024,
1616,
273,
374,
31,
7734,
368,
4604,
460,
364,
326,
1122,
10394,
1754,
3639,
1431,
1122,
620,
273,
404,
31,
3639,
775,
288,
5411,
31108,
12599,
1046,
1073,
273,
261,
4747,
21796,
12599,
1046,
13,
11589,
682,
18,
588,
12,
20,
1769,
5411,
18666,
273,
1073,
18,
588,
12599,
2555,
5621,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
368,
1410,
11234,
5903,
5865,
5411,
309,
261,
3678,
4747,
18,
588,
1343,
12,
4747,
782,
11589,
18,
1106,
2934,
291,
966,
1526,
10756,
288,
7734,
10319,
18,
588,
1343,
12,
4747,
782,
11589,
18,
1106,
2934,
1376,
12,
73,
1769,
5411,
289,
3639,
289,
7734,
309,
261,
1896,
620,
480,
374,
13,
288,
5411,
1122,
620,
273,
18666,
342,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1361,
12599,
1616,
4320,
12,
4747,
921,
6166,
16,
514,
1544,
16,
514,
1677,
16,
27755,
5058,
2743,
13,
288,
3639,
987,
8775,
682,
273,
394,
2407,
5621,
3639,
987,
702,
273,
394,
2407,
5621,
3639,
987,
924,
273,
394,
2407,
5621,
7734,
368,
336,
783,
585,
10394,
930,
3639,
31108,
12599,
1046,
662,
12599,
273,
31108,
12599,
1263,
18,
588,
14301,
20977,
12,
6851,
16,
1544,
1769,
7734,
368,
336,
326,
982,
3009,
434,
326,
783,
585,
3639,
1544,
273,
7630,
18,
588,
3054,
3899,
12,
3459,
1769,
7734,
368,
336,
10394,
434,
326,
783,
3009,
3639,
8775,
682,
273,
31108,
12599,
1263,
18,
588,
14301,
1290,
3899,
12,
6851,
16,
1544,
1769,
3639,
2
] |
if (value == null) | if (value == null) { | public double getDouble(String name) { String value = internalGet(name); if (value == null) return DOUBLE_DEFAULT_DEFAULT; try { return Double.parseDouble(value); } catch (NumberFormatException e) { return DOUBLE_DEFAULT_DEFAULT; } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ScopedPreferenceStore.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/preferences/ScopedPreferenceStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1645,
16097,
12,
780,
508,
13,
288,
202,
202,
780,
460,
273,
2713,
967,
12,
529,
1769,
202,
202,
430,
261,
1132,
422,
446,
13,
1082,
202,
2463,
14918,
67,
5280,
67,
5280,
31,
202,
202,
698,
288,
1082,
202,
2463,
3698,
18,
2670,
5265,
12,
1132,
1769,
202,
202,
97,
1044,
261,
1854,
9291,
425,
13,
288,
1082,
202,
2463,
14918,
67,
5280,
67,
5280,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1645,
16097,
12,
780,
508,
13,
288,
202,
202,
780,
460,
273,
2713,
967,
12,
529,
1769,
202,
202,
430,
261,
1132,
422,
446,
13,
1082,
202,
2463,
14918,
67,
5280,
67,
5280,
31,
202,
202,
698,
288,
1082,
202,
2463,
3698,
18,
2670,
5265,
12,
1132,
1769,
202,
202,
97,
1044,
261,
1854,
9291,
425,
13,
288,
1082,
202,
2463,
14918,
67,
5280,
67,
5280,
31,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
aclManagerService.addUserToGroup(franz, portals, PortletRole.getAdminRole()); aclManagerService.addUserToGroup(franz, triana, PortletRole.getAdminRole()); | aclManagerService.addUserToGroup(franz, portals, SportletRole.getAdminRole()); aclManagerService.addUserToGroup(franz, triana, SportletRole.getAdminRole()); | protected void setUp() { super.setUp(); int i; // Create both services using mock ServletConfig try { aclService = (AccessControlService)factory.createPortletService(AccessControlService.class, props, null, true); aclManagerService = (AccessControlManagerService)factory.createPortletService(AccessControlManagerService.class, props, null, true); userManager = (UserManagerService)factory.createPortletService(UserManagerService.class, props, null, true); } catch (Exception e) { log.error("Unable to initialize services: ", e); } // First we need to create some groups log.info("creating fake groups"); groups = new Vector(GROUPS.length); for (i = 0; i < GROUPS.length; i++) { groups.set(i, GROUPS[i]); aclManagerService.createNewGroup(GROUPS[i]); } List portletGroups = aclService.getAllGroups(); cactus = (PortletGroup)portletGroups.get(0); portals = (PortletGroup)portletGroups.get(1); triana = (PortletGroup)portletGroups.get(2); // Make sure we have proper ordering assertEquals(cactus.getName(), GROUPS[0]); assertEquals(portals.getName(), GROUPS[1]); assertEquals(triana.getName(), GROUPS[2]); // Lets make user 0 the super user and admin of group 0 hans = new SportletUserImpl(); hans.setGivenName(USERS[0]); hans.setUserID(USERS[0]); aclManagerService.addUserToSuperRole(hans); aclManagerService.addUserToGroup(hans, cactus, PortletRole.getAdminRole()); // Lets make user 1 admin of group 1 and 2 franz = new SportletUserImpl(); franz.setGivenName(USERS[1]); franz.setUserID(USERS[1]); aclManagerService.addUserToGroup(franz, portals, PortletRole.getAdminRole()); aclManagerService.addUserToGroup(franz, triana, PortletRole.getAdminRole()); // Lets make user 2 admin of group 2 josef = new SportletUserImpl(); josef.setGivenName(USERS[2]); josef.setUserID(USERS[2]); aclManagerService.addUserToGroup(josef, triana, PortletRole.getAdminRole()); } | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/33fe4e596da0e639836d95d5063f4e3b77e550b2/UserManagerServiceTest.java/buggy/src/org/gridlab/gridsphere/services/user/test/UserManagerServiceTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
509,
277,
31,
3639,
368,
1788,
3937,
4028,
1450,
5416,
7971,
809,
3639,
775,
288,
5411,
7895,
1179,
273,
261,
16541,
1179,
13,
6848,
18,
2640,
18566,
1179,
12,
16541,
1179,
18,
1106,
16,
3458,
16,
446,
16,
638,
1769,
5411,
7895,
1318,
1179,
273,
261,
16541,
1318,
1179,
13,
6848,
18,
2640,
18566,
1179,
12,
16541,
1318,
1179,
18,
1106,
16,
3458,
16,
446,
16,
638,
1769,
5411,
30833,
273,
261,
1299,
1318,
1179,
13,
6848,
18,
2640,
18566,
1179,
12,
1299,
1318,
1179,
18,
1106,
16,
3458,
16,
446,
16,
638,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
613,
18,
1636,
2932,
3370,
358,
4046,
4028,
30,
3104,
425,
1769,
3639,
289,
3639,
368,
5783,
732,
1608,
358,
752,
2690,
3252,
3639,
613,
18,
1376,
2932,
23799,
10517,
3252,
8863,
3639,
3252,
273,
394,
5589,
12,
28977,
18,
2469,
1769,
3639,
364,
261,
77,
273,
374,
31,
277,
411,
13839,
55,
18,
2469,
31,
277,
27245,
288,
5411,
3252,
18,
542,
12,
77,
16,
13839,
55,
63,
77,
19226,
5411,
7895,
1318,
1179,
18,
2640,
1908,
1114,
12,
28977,
63,
77,
19226,
3639,
289,
3639,
987,
13114,
3621,
273,
7895,
1179,
18,
588,
1595,
3621,
5621,
3639,
276,
621,
407,
273,
261,
18566,
1114,
13,
655,
1810,
3621,
18,
588,
12,
20,
1769,
3639,
1756,
1031,
273,
261,
18566,
1114,
13,
655,
1810,
3621,
18,
588,
12,
21,
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,
4750,
918,
24292,
1435,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
509,
277,
31,
3639,
368,
1788,
3937,
4028,
1450,
5416,
7971,
809,
3639,
775,
288,
5411,
7895,
1179,
273,
261,
16541,
1179,
13,
6848,
18,
2640,
18566,
1179,
12,
16541,
1179,
18,
1106,
16,
3458,
16,
446,
16,
638,
1769,
5411,
7895,
1318,
1179,
273,
261,
16541,
1318,
1179,
13,
6848,
18,
2640,
18566,
1179,
12,
16541,
1318,
1179,
18,
1106,
16,
3458,
16,
446,
16,
638,
1769,
5411,
30833,
273,
261,
1299,
1318,
1179,
13,
6848,
18,
2640,
18566,
1179,
12,
1299,
1318,
1179,
18,
1106,
16,
3458,
16,
446,
16,
638,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
613,
18,
1636,
2
] |
if (settings.getDialogShowLock()) { | if (!settings.getDialogShowLock()) { | private byte[] getContentLock(CmsObject cms, CmsXmlWpTemplateFile template, String elementName, Hashtable parameters, String templateSelector) throws CmsException { byte[] processResult = null; // now check if the "do you really want to lock" dialog should be shown. CmsUserSettings settings = new CmsUserSettings(cms.getRequestContext().currentUser()); if (settings.getDialogShowLock()) { parameters.put("action", "go"); } // session will be created or fetched CmsXmlTemplateLoader.getSession(cms.getRequestContext(), true); //get the class of the content definition Class cdClass = getContentDefinitionClass(); CmsUUID actUserId = cms.getRequestContext().currentUser().getId(); //get (stored) id parameter String id = (String)parameters.get("id"); if (id == null) id = ""; /*if (id != "") { session.putValue("idsave", id); } else { String idsave = (String) session.getValue("idsave"); if (idsave == null) idsave = ""; id = idsave; session.removeValue("idsave"); } */ parameters.put("idlock", id); // get value of hidden input field action String action = (String)parameters.get("action"); //no button pressed, go to the default section! if (action == null || action.equals("")) { //lock dialog, displays the title of the entry to be changed in lockstate templateSelector = "lock"; CmsUUID contentId = new CmsUUID(id); CmsUUID lockedByUserId = CmsUUID.getNullUUID(); // try { // contentId = Integer.valueOf(id); // } catch (Exception e) { // lockedByUserId = CmsUUID.getNullUUID(); // //access content definition object specified by id through reflection // Object o = null; // o = getContentDefinition(cms, cdClass, id); // try { // lockedByUserId = ((A_CmsContentDefinition) o).getLockstate(); // /*Method getLockstateMethod = (Method) cdClass.getMethod("getLockstate", new Class[] {}); // ls = (int) getLockstateMethod.invoke(o, new Object[0]); */ // } catch (Exception exc) { // exc.printStackTrace(); // } // } //access content definition object specified by id through reflection Object o = null; if (contentId != null) { o = getContentDefinition(cms, cdClass, contentId); try { lockedByUserId = ((A_CmsContentDefinition)o).getLockstate(); } catch (Exception e) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn(e.getMessage()); } } } else { o = getContentDefinition(cms, cdClass, id); try { lockedByUserId = ((A_CmsContentDefinition)o).getLockstate(); } catch (Exception e) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn(e.getMessage()); } } } //create appropriate class name with underscores for labels String moduleName = ""; moduleName = getClass().toString(); //get name moduleName = moduleName.substring(5); //remove 'class' substring at the beginning moduleName = moduleName.trim(); moduleName = moduleName.replace('.', '_'); //replace dots with underscores //create new language file object CmsXmlLanguageFile lang = new CmsXmlLanguageFile(cms); //get the dialog from the langauge file and set it in the template if (!lockedByUserId.isNullUUID() && !lockedByUserId.equals(actUserId)) { // "lock" template.setData("locktitle", lang.getLanguageValue("messagebox.title.lockchange")); template.setData("lockstate", lang.getLanguageValue("messagebox.message1.lockchange")); } if (lockedByUserId.isNullUUID()) { // "nolock" template.setData("locktitle", lang.getLanguageValue("messagebox.title.lock")); template.setData("lockstate", lang.getLanguageValue("messagebox.message1.lock")); } if (lockedByUserId.equals(actUserId)) { template.setData("locktitle", lang.getLanguageValue("messagebox.title.unlock")); template.setData("lockstate", lang.getLanguageValue("messagebox.message1.unlock")); } //set the title of the selected entry template.setData("newsentry", id); //go to default template section template.setData("setaction", "default"); parameters.put("action", "done"); // confirmation button pressed, process data! } else { templateSelector = "done"; //access content definition constructor by reflection CmsUUID contentId = new CmsUUID(id); CmsUUID lockedByUserId = CmsUUID.getNullUUID(); //call the appropriate content definition constructor Object o = null; o = getContentDefinition(cms, cdClass, contentId); try { lockedByUserId = ((A_CmsContentDefinition)o).getLockstate(); } catch (Exception e) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn(e.getMessage()); } } try { lockedByUserId = ((A_CmsContentDefinition)o).getLockstate(); } catch (Exception e) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn("Method getLockstate caused an exception", e); } } //show the possible cases of a lockstate in the template //and change lockstate in content definition (and in DB or VFS) if (lockedByUserId.equals(actUserId)) { if (isExtendedList()) { // if its an extended list check if the current project is the same as the // project, in which the resource is locked int curProjectId = cms.getRequestContext().currentProject().getId(); int lockedInProject = -1; try { lockedInProject = ((I_CmsExtendedContentDefinition)o).getLockedInProject(); } catch (Exception e) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn("Method getLockstate caused an exception", e); } } if (curProjectId == lockedInProject) { //unlock project try { ((A_CmsContentDefinition)o).setLockstate(CmsUUID.getNullUUID()); } catch (Exception e) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn("Method setLockstate caused an exception", e); } } } else { //steal lock try { ((A_CmsContentDefinition)o).setLockstate(actUserId); } catch (Exception e) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn("Method setLockstate caused an exception", e); } } } } else { // this is not the extended list //steal lock (userlock -> nolock) try { ((A_CmsContentDefinition)o).setLockstate(CmsUUID.getNullUUID()); } catch (Exception e) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn("Method setLockstate caused an exception", e); } } } //write to DB try { ((A_CmsContentDefinition)o).write(cms); // reflection is not neccessary! } catch (Exception e) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn("Method write caused an exception", e); } } templateSelector = "done"; } else { if ((!lockedByUserId.isNullUUID()) && (!lockedByUserId.equals(actUserId))) { //unlock (lock -> userlock) try { ((A_CmsContentDefinition)o).setLockstate(actUserId); } catch (Exception e) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn("Could not set lockstate", e); } } //write to DB try { ((A_CmsContentDefinition)o).write(cms); } catch (Exception e) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn("Could not set lockstate", e); } } templateSelector = "done"; } else { //lock (nolock -> userlock) try { ((A_CmsContentDefinition)o).setLockstate(actUserId); } catch (Exception e) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn("Could not set lockstate", e); } } //write to DB/VFS try { ((A_CmsContentDefinition)o).write(cms); } catch (Exception e) { if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn("Could not write to content definition", e); } } } } } //finally start the processing processResult = startProcessing(cms, template, elementName, parameters, templateSelector); return processResult; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/f0f645a9d766c9e180a8cc771cb4593d7d58a116/A_CmsBackoffice.java/clean/src/com/opencms/defaults/A_CmsBackoffice.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1160,
8526,
5154,
2531,
12,
4747,
921,
6166,
16,
16084,
59,
84,
2283,
812,
1542,
16,
514,
14453,
16,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
1160,
8526,
1207,
1253,
273,
446,
31,
3639,
368,
2037,
866,
309,
326,
315,
2896,
1846,
8654,
2545,
358,
2176,
6,
6176,
1410,
506,
12188,
18,
3639,
25492,
2628,
1947,
273,
394,
25492,
2628,
12,
6851,
18,
588,
21426,
7675,
2972,
1299,
10663,
3639,
309,
16051,
4272,
18,
588,
6353,
5706,
2531,
10756,
288,
5411,
1472,
18,
458,
2932,
1128,
3113,
315,
3240,
8863,
3639,
289,
3639,
368,
1339,
903,
506,
2522,
578,
12807,
3639,
16084,
2283,
2886,
18,
588,
2157,
12,
6851,
18,
588,
21426,
9334,
638,
1769,
3639,
368,
588,
326,
667,
434,
326,
913,
2379,
3639,
1659,
7976,
797,
273,
5154,
1852,
797,
5621,
3639,
15792,
1328,
10502,
273,
6166,
18,
588,
21426,
7675,
2972,
1299,
7675,
26321,
5621,
3639,
368,
588,
261,
22601,
13,
612,
1569,
3639,
514,
612,
273,
261,
780,
13,
3977,
18,
588,
2932,
350,
8863,
3639,
309,
261,
350,
422,
446,
13,
5411,
612,
273,
1408,
31,
3639,
1748,
430,
261,
350,
480,
1408,
13,
288,
5411,
1339,
18,
458,
620,
2932,
2232,
836,
3113,
612,
1769,
3639,
289,
469,
288,
5411,
514,
3258,
836,
273,
261,
780,
13,
1339,
18,
24805,
2932,
2232,
836,
8863,
5411,
309,
261,
2232,
836,
422,
446,
13,
7734,
3258,
836,
273,
1408,
31,
5411,
612,
273,
3258,
836,
31,
5411,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1160,
8526,
5154,
2531,
12,
4747,
921,
6166,
16,
16084,
59,
84,
2283,
812,
1542,
16,
514,
14453,
16,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
1160,
8526,
1207,
1253,
273,
446,
31,
3639,
368,
2037,
866,
309,
326,
315,
2896,
1846,
8654,
2545,
358,
2176,
6,
6176,
1410,
506,
12188,
18,
3639,
25492,
2628,
1947,
273,
394,
25492,
2628,
12,
6851,
18,
588,
21426,
7675,
2972,
1299,
10663,
3639,
309,
16051,
4272,
18,
588,
6353,
5706,
2531,
10756,
288,
5411,
1472,
18,
458,
2932,
1128,
3113,
315,
3240,
8863,
3639,
289,
3639,
368,
1339,
903,
506,
2522,
578,
12807,
3639,
16084,
2283,
2886,
18,
588,
2157,
12,
6851,
18,
588,
21426,
9334,
2
] |
OutputStream consoleOut = (sniffer == null ? cos : sniffer.getOutputStream()); OutputStream consoleErr = (sniffer == null ? cos : sniffer.getErrorStream()); TraceUtil.outputTrace("Default provider is executing command:", fCompileCommand.toString() + ca, ""); Process p = launcher.execute(fCompileCommand, compileArguments, setEnvironment(launcher), fWorkingDirectory); if (p != null) { try { p.getOutputStream().close(); } catch (IOException e) { } if (launcher.waitAndRead(consoleOut, consoleErr, new SubProgressMonitor(monitor, 0)) != CommandLauncher.OK) { errMsg = launcher.getErrorMessage(); } monitor.subTask(MakeMessages.getString("ExternalScannerInfoProvider.Parsing_Output")); | OutputStream consoleOut = (sniffer == null ? cos : sniffer.getOutputStream()); OutputStream consoleErr = (sniffer == null ? cos : sniffer.getErrorStream()); TraceUtil.outputTrace("Default provider is executing command:", fCompileCommand.toString() + ca, ""); Process p = launcher.execute(fCompileCommand, compileArguments, setEnvironment(launcher), fWorkingDirectory); if (p != null) { try { p.getOutputStream().close(); } catch (IOException e) { } if (launcher.waitAndRead(consoleOut, consoleErr, new SubProgressMonitor(monitor, 0)) != CommandLauncher.OK) { errMsg = launcher.getErrorMessage(); } monitor.subTask(MakeMessages.getString("ExternalScannerInfoProvider.Parsing_Output")); | public boolean invokeProvider(IProgressMonitor monitor, IResource resource, String providerId, IScannerConfigBuilderInfo2 buildInfo, IScannerInfoCollector collector) { // initialize fields this.resource = resource; this.providerId = providerId; this.buildInfo = buildInfo; this.collector = collector; IProject currentProject = resource.getProject(); // call a subclass to initialize protected fields if (!initialize()) { return false; } if (monitor == null) { monitor = new NullProgressMonitor(); } monitor.beginTask(MakeMessages.getString("ExternalScannerInfoProvider.Reading_Specs"), 100); //$NON-NLS-1$ try { IConsole console = CCorePlugin.getDefault().getConsole(EXTERNAL_SI_PROVIDER_CONSOLE_ID); console.start(currentProject); OutputStream cos = console.getOutputStream(); // Before launching give visual cues via the monitor monitor.subTask(MakeMessages.getString("ExternalScannerInfoProvider.Reading_Specs")); //$NON-NLS-1$ String errMsg = null; CommandLauncher launcher = new CommandLauncher(); // Print the command for visual interaction. launcher.showCommand(true); // add additional arguments // subclass can change default behavior String[] compileArguments = prepareArguments( buildInfo.isUseDefaultProviderCommand(providerId)); String ca = coligate(compileArguments); monitor.subTask(MakeMessages.getString("ExternalScannerInfoProvider.Invoking_Command") //$NON-NLS-1$ + fCompileCommand.toString() + ca); cos = new StreamMonitor(new SubProgressMonitor(monitor, 70), cos, 100); ConsoleOutputSniffer sniffer = ScannerInfoConsoleParserFactory.getESIProviderOutputSniffer( cos, cos, currentProject, providerId, buildInfo, collector, markerGenerator); OutputStream consoleOut = (sniffer == null ? cos : sniffer.getOutputStream()); OutputStream consoleErr = (sniffer == null ? cos : sniffer.getErrorStream()); TraceUtil.outputTrace("Default provider is executing command:", fCompileCommand.toString() + ca, ""); //$NON-NLS-1$ //$NON-NLS-2$ Process p = launcher.execute(fCompileCommand, compileArguments, setEnvironment(launcher), fWorkingDirectory); if (p != null) { try { // Close the input of the Process explicitely. // We will never write to it. p.getOutputStream().close(); } catch (IOException e) { } if (launcher.waitAndRead(consoleOut, consoleErr, new SubProgressMonitor(monitor, 0)) != CommandLauncher.OK) { errMsg = launcher.getErrorMessage(); } monitor.subTask(MakeMessages.getString("ExternalScannerInfoProvider.Parsing_Output")); //$NON-NLS-1$ } else { errMsg = launcher.getErrorMessage(); } if (errMsg != null) { String errorDesc = MakeMessages.getFormattedString(EXTERNAL_SI_PROVIDER_ERROR, fCompileCommand.toString() + ca); markerGenerator.addMarker(currentProject, -1, errorDesc, IMarkerGenerator.SEVERITY_WARNING, null); } monitor.subTask(MakeMessages.getString("ExternalScannerInfoProvider.Creating_Markers")); //$NON-NLS-1$ consoleOut.close(); consoleErr.close(); cos.close(); } catch (Exception e) { CCorePlugin.log(e); } finally { monitor.done(); } return true; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/b2265fc025ce33e3d277b0ba0f04324c4c2ebfb0/DefaultRunSIProvider.java/clean/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/DefaultRunSIProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
4356,
2249,
12,
45,
5491,
7187,
6438,
16,
21394,
467,
1420,
1058,
16,
4766,
282,
514,
2893,
548,
16,
4766,
282,
467,
11338,
809,
1263,
966,
22,
1361,
966,
16,
21394,
467,
11338,
966,
7134,
8543,
13,
288,
202,
565,
368,
4046,
1466,
3639,
333,
18,
3146,
273,
1058,
31,
3639,
333,
18,
6778,
548,
273,
2893,
548,
31,
3639,
333,
18,
3510,
966,
273,
1361,
966,
31,
3639,
333,
18,
21356,
273,
8543,
31,
7734,
467,
4109,
783,
4109,
273,
1058,
18,
588,
4109,
5621,
3639,
368,
745,
279,
10177,
358,
4046,
4750,
1466,
3639,
309,
16051,
11160,
10756,
288,
5411,
327,
629,
31,
3639,
289,
3639,
309,
261,
10259,
422,
446,
13,
288,
5411,
6438,
273,
394,
4112,
5491,
7187,
5621,
3639,
289,
3639,
6438,
18,
10086,
2174,
12,
6464,
5058,
18,
588,
780,
2932,
6841,
11338,
966,
2249,
18,
15714,
67,
15999,
6,
3631,
2130,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
775,
288,
5411,
467,
10215,
2983,
273,
385,
4670,
3773,
18,
588,
1868,
7675,
588,
10215,
12,
2294,
11702,
67,
2320,
67,
26413,
67,
2248,
3584,
900,
67,
734,
1769,
5411,
2983,
18,
1937,
12,
2972,
4109,
1769,
5411,
8962,
4987,
273,
2983,
18,
588,
4632,
5621,
5411,
368,
11672,
8037,
310,
8492,
11623,
276,
3610,
3970,
326,
6438,
5411,
6438,
18,
1717,
2174,
12,
6464,
5058,
18,
588,
780,
2932,
6841,
11338,
966,
2249,
18,
15714,
67,
15999,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
4356,
2249,
12,
45,
5491,
7187,
6438,
16,
21394,
467,
1420,
1058,
16,
4766,
282,
514,
2893,
548,
16,
4766,
282,
467,
11338,
809,
1263,
966,
22,
1361,
966,
16,
21394,
467,
11338,
966,
7134,
8543,
13,
288,
202,
565,
368,
4046,
1466,
3639,
333,
18,
3146,
273,
1058,
31,
3639,
333,
18,
6778,
548,
273,
2893,
548,
31,
3639,
333,
18,
3510,
966,
273,
1361,
966,
31,
3639,
333,
18,
21356,
273,
8543,
31,
7734,
467,
4109,
783,
4109,
273,
1058,
18,
588,
4109,
5621,
3639,
368,
745,
279,
10177,
358,
4046,
4750,
1466,
3639,
309,
16051,
11160,
10756,
288,
5411,
327,
629,
31,
3639,
289,
3639,
309,
261,
10259,
422,
446,
13,
288,
5411,
2
] |
u = new UdpSocketManager(portNo); | u = new UdpSocketManager(portNo, InetAddress.getByName(bindto)); | private Node(Config config, RandomSource random) throws NodeInitException { // Easy stuff arkPutter = new MyARKInserter(); startupTime = System.currentTimeMillis(); throttleWindow = new ThrottleWindowManager(2.0); alerts = new UserAlertManager(); recentlyCompletedIDs = new LRUQueue(); this.config = config; this.random = random; cachedPubKeys = new LRUHashtable(); lm = new LocationManager(random); try { localhostAddress = InetAddress.getByName("127.0.0.1"); } catch (UnknownHostException e3) { // Does not do a reverse lookup, so this is impossible throw new Error(e3); } ipDetector = new IPAddressDetector(10*1000, this); requestSenders = new HashMap(); transferringRequestSenders = new HashMap(); insertSenders = new HashMap(); runningUIDs = new HashSet(); ps = new PacketSender(this); // FIXME maybe these should persist? They need to be private though, so after the node/peers split. (bug 51). decrementAtMax = random.nextDouble() <= DECREMENT_AT_MAX_PROB; decrementAtMin = random.nextDouble() <= DECREMENT_AT_MIN_PROB; bootID = random.nextLong(); throttledPacketSendAverage = new TimeDecayingRunningAverage(1, 60000 /* should be significantly longer than a typical transfer */, 0, Long.MAX_VALUE); // Setup node-specific configuration SubConfig nodeConfig = new SubConfig("node", config); // IP address override nodeConfig.register("ipAddressOverride", "", 0, true, "IP address override", "IP address override (not usually needed)", new StringCallback() { public String get() { if(overrideIPAddress == null) return ""; else return overrideIPAddress.toString(); } public void set(String val) throws InvalidConfigValueException { // FIXME do we need to tell anyone? if(val.length() == 0) { // Set to null overrideIPAddress = null; lastIPAddress = null; redetectAddress(); shouldInsertARK(); return; } FreenetInetAddress addr; try { addr = new FreenetInetAddress(val, false); } catch (UnknownHostException e) { throw new InvalidConfigValueException("Unknown host: "+e.getMessage()); } overrideIPAddress = addr; lastIPAddress = null; redetectAddress(); shouldInsertARK(); } }); String ipOverrideString = nodeConfig.getString("ipAddressOverride"); if(ipOverrideString.length() == 0) overrideIPAddress = null; else { try { overrideIPAddress = new FreenetInetAddress(ipOverrideString, false); } catch (UnknownHostException e) { String msg = "Unknown host: "+ipOverrideString+" in config: "+e.getMessage(); Logger.error(this, msg); System.err.println(msg+" but starting up anyway with no IP override"); overrideIPAddress = null; } } // Determine the port number nodeConfig.register("listenPort", -1 /* means random */, 1, true, "FNP port number (UDP)", "UDP port for node-to-node communications (Freenet Node Protocol)", new IntCallback() { public int get() { return portNumber; } public void set(int val) throws InvalidConfigValueException { // FIXME implement on the fly listenPort changing // Note that this sort of thing should be the exception rather than the rule!!!! String msg = "Switching listenPort on the fly not yet supported!"; Logger.error(this, msg); throw new InvalidConfigValueException(msg); } }); int port=-1; try{ port=nodeConfig.getInt("listenPort"); }catch (Exception e){ Logger.error(this, "Caught "+e, e); System.err.println(e); e.printStackTrace(); port=-1; } UdpSocketManager u = null; if(port > 65535) { throw new NodeInitException(EXIT_IMPOSSIBLE_USM_PORT, "Impossible port number: "+port); } else if(port == -1) { // Pick a random port for(int i=0;i<200000;i++) { int portNo = 1024 + random.nextInt(65535-1024); try { u = new UdpSocketManager(portNo); port = u.getPortNumber(); break; } catch (SocketException e) { Logger.normal(this, "Could not use port: "+portNo+": "+e, e); System.err.println("Could not use port: "+portNo+": "+e); e.printStackTrace(); continue; } } if(u == null) throw new NodeInitException(EXIT_NO_AVAILABLE_UDP_PORTS, "Could not find an available UDP port number for FNP (none specified)"); } else { try { u = new UdpSocketManager(port); } catch (SocketException e) { throw new NodeInitException(EXIT_IMPOSSIBLE_USM_PORT, "Could not bind to port: "+port+" (node already running?)"); } } usm = u; System.out.println("Port number: "+port); portNumber = port; Logger.normal(Node.class, "Creating node..."); // Bandwidth limit // FIXME These should not be static !!!! Need a context object for BT for bwlimiting. // See bug 77 nodeConfig.register("outputBandwidthLimit", "15K", 3, false, "Output bandwidth limit", "Hard output bandwidth limit (bytes/sec); the node should almost never exceed this", new IntCallback() { public int get() { return BlockTransmitter.getHardBandwidthLimit(); } public void set(int val) throws InvalidConfigValueException { BlockTransmitter.setHardBandwidthLimit(val); } }); int obwLimit = nodeConfig.getInt("outputBandwidthLimit"); BlockTransmitter.setHardBandwidthLimit(obwLimit); // FIXME add an averaging/long-term/soft bandwidth limit. (bug 76) // There is already untested support for this in BlockTransmitter. // No long-term limit for now. BlockTransmitter.setSoftBandwidthLimit(0, 0); // SwapRequestInterval nodeConfig.register("swapRequestSendInterval", 2000, 4, true, "Swap request send interval (ms)", "Interval between swap attempting to send swap requests in milliseconds. Leave this alone!", new IntCallback() { public int get() { return swapInterval.fixedInterval; } public void set(int val) throws InvalidConfigValueException { swapInterval.set(val); } }); swapInterval = new StaticSwapRequestInterval(nodeConfig.getInt("swapRequestSendInterval")); // Testnet. // Cannot be enabled/disabled on the fly. // If enabled, forces certain other config options. if((testnetHandler = TestnetHandler.maybeCreate(this, config)) != null) { String msg = "WARNING: ENABLING TESTNET CODE! This WILL seriously jeopardize your anonymity!"; Logger.error(this, msg); System.err.println(msg); testnetEnabled = true; if(logConfigHandler.getFileLoggerHook() == null) { System.err.println("Forcing logging enabled (essential for testnet)"); logConfigHandler.forceEnableLogging(); } int x = Logger.globalGetThreshold(); if(!(x == Logger.MINOR || x == Logger.DEBUG)) { System.err.println("Forcing log threshold to MINOR for testnet, was "+x); Logger.globalSetThreshold(Logger.MINOR); } if(logConfigHandler.getMaxZippedLogFiles() < TESTNET_MIN_MAX_ZIPPED_LOGFILES) { System.err.println("Forcing max zipped logfiles space to 256MB for testnet"); try { logConfigHandler.setMaxZippedLogFiles(TESTNET_MIN_MAX_ZIPPED_LOGFILES_STRING); } catch (InvalidConfigValueException e) { throw new Error("Impossible: "+e); } } } else { String s = "Testnet mode DISABLED. You may have some level of anonymity. :)\n"+ "Note that while we no longer have explicit back-doors enabled, this version of Freenet is still a very early alpha, and may well have numerous bugs and design flaws.\n"+ "In particular: YOU ARE WIDE OPEN TO YOUR IMMEDIATE DARKNET PEERS! They can eavesdrop on your requests with relatively little difficulty at present (correlation attacks etc)."; Logger.normal(this, s); System.err.println(s); testnetEnabled = false; FileLoggerHook flh = logConfigHandler.getFileLoggerHook(); if(flh != null) flh.deleteAllOldLogFiles(); } if(wasTestnet != testnetEnabled) { Logger.error(this, "Switched from testnet mode to non-testnet mode or vice versa! Regenerating pubkey, privkey, and deleting logs."); this.myCryptoGroup = Global.DSAgroupBigA; this.myPrivKey = new DSAPrivateKey(myCryptoGroup, random); this.myPubKey = new DSAPublicKey(myCryptoGroup, myPrivKey); } // Directory for node-related files other than store nodeConfig.register("nodeDir", ".", 6, true, "Node directory", "Name of directory to put node-related files e.g. peers list in", new StringCallback() { public String get() { return nodeDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(nodeDir.equals(new File(val))) return; // FIXME throw new InvalidConfigValueException("Moving node directory on the fly not supported at present"); } }); nodeDir = new File(nodeConfig.getString("nodeDir")); if(!((nodeDir.exists() && nodeDir.isDirectory()) || (nodeDir.mkdir()))) { String msg = "Could not find or create datastore directory"; throw new NodeInitException(EXIT_BAD_NODE_DIR, msg); } // After we have set up testnet and IP address, load the node file try { // FIXME should take file directly? readNodeFile(new File(nodeDir, "node-"+portNumber).getPath(), random); } catch (IOException e) { try { readNodeFile(new File("node-"+portNumber+".bak").getPath(), random); } catch (IOException e1) { initNodeFileSettings(random); } } // Then read the peers peers = new PeerManager(this, new File(nodeDir, "peers-"+portNumber).getPath()); peers.writePeers(); peers.checkEmpty(); nodePinger = new NodePinger(this); usm.setDispatcher(dispatcher=new NodeDispatcher(this)); usm.setLowLevelFilter(packetMangler = new FNPPacketMangler(this)); // Temp files nodeConfig.register("tempDir", new File(nodeDir, "temp-"+portNumber).toString(), 6, true, "Temp files directory", "Name of directory to put temporary files in", new StringCallback() { public String get() { return tempDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(tempDir.equals(new File(val))) return; // FIXME throw new InvalidConfigValueException("Moving temp directory on the fly not supported at present"); } }); tempDir = new File(nodeConfig.getString("tempDir")); if(!((tempDir.exists() && tempDir.isDirectory()) || (tempDir.mkdir()))) { String msg = "Could not find or create temporary directory"; throw new NodeInitException(EXIT_BAD_TEMP_DIR, msg); } try { tempFilenameGenerator = new FilenameGenerator(random, true, tempDir, "temp-"); } catch (IOException e) { String msg = "Could not find or create temporary directory (filename generator)"; throw new NodeInitException(EXIT_BAD_TEMP_DIR, msg); } tempBucketFactory = new PaddedEphemerallyEncryptedBucketFactory(new TempBucketFactory(tempFilenameGenerator), random, 1024); // Persistent temp files nodeConfig.register("persistentTempDir", new File(nodeDir, "persistent-temp-"+portNumber).toString(), 7, true, "Persistent temp files directory", "Name of directory to put persistent temp files in", new StringCallback() { public String get() { return persistentTempBucketFactory.getDir().toString(); } public void set(String val) throws InvalidConfigValueException { if(!get().equals(val)) return; // FIXME throw new InvalidConfigValueException("Moving persistent temp directory on the fly not supported at present"); } }); try { persistentTempBucketFactory = new PersistentTempBucketFactory(new File(nodeConfig.getString("persistentTempDir")), "freenet-temp-", random); } catch (IOException e2) { String msg = "Could not find or create persistent temporary directory"; throw new NodeInitException(EXIT_BAD_TEMP_DIR, msg); } // Datastore nodeConfig.register("storeSize", "1G", 8, false, "Store size in bytes", "Store size in bytes", new LongCallback() { public long get() { return maxStoreKeys * sizePerKey; } public void set(long storeSize) throws InvalidConfigValueException { if(storeSize < 0 || storeSize < (32 * 1024 * 1024)) throw new InvalidConfigValueException("Invalid store size"); long newMaxStoreKeys = storeSize / sizePerKey; if(newMaxStoreKeys == maxStoreKeys) return; // Update each datastore maxStoreKeys = newMaxStoreKeys; chkDatastore.setMaxKeys(maxStoreKeys); sskDatastore.setMaxKeys(maxStoreKeys); pubKeyDatastore.setMaxKeys(maxStoreKeys); } }); long storeSize = nodeConfig.getLong("storeSize"); if(/*storeSize < 0 || */storeSize < (32 * 1024 * 1024)) { // totally arbitrary minimum! throw new NodeInitException(EXIT_INVALID_STORE_SIZE, "Invalid store size"); } maxStoreKeys = storeSize / sizePerKey; nodeConfig.register("storeDir", ".", 9, true, "Store directory", "Name of directory to put store files in", new StringCallback() { public String get() { return storeDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(storeDir.equals(new File(val))) return; // FIXME throw new InvalidConfigValueException("Moving datastore on the fly not supported at present"); } }); storeDir = new File(nodeConfig.getString("storeDir")); if(!((storeDir.exists() && storeDir.isDirectory()) || (storeDir.mkdir()))) { String msg = "Could not find or create datastore directory"; throw new NodeInitException(EXIT_STORE_OTHER, msg); } try { chkDatastore = new BerkeleyDBFreenetStore(storeDir.getPath()+File.separator+"store-"+portNumber, maxStoreKeys, 32768, CHKBlock.TOTAL_HEADERS_LENGTH); sskDatastore = new BerkeleyDBFreenetStore(storeDir.getPath()+File.separator+"sskstore-"+portNumber, maxStoreKeys, 1024, SSKBlock.TOTAL_HEADERS_LENGTH); pubKeyDatastore = new BerkeleyDBFreenetStore(storeDir.getPath()+File.separator+"pubkeystore-"+portNumber, maxStoreKeys, DSAPublicKey.PADDED_SIZE, 0); } catch (FileNotFoundException e1) { String msg = "Could not open datastore: "+e1; Logger.error(this, msg, e1); System.err.println(msg); throw new NodeInitException(EXIT_STORE_FILE_NOT_FOUND, msg); } catch (IOException e1) { String msg = "Could not open datastore: "+e1; Logger.error(this, msg, e1); System.err.println(msg); throw new NodeInitException(EXIT_STORE_IOEXCEPTION, msg); } catch (Exception e1) { String msg = "Could not open datastore: "+e1; Logger.error(this, msg, e1); System.err.println(msg); throw new NodeInitException(EXIT_STORE_OTHER, msg); } // Downloads directory nodeConfig.register("downloadsDir", "downloads", 10, false, "Default download directory", "The directory to save downloaded files into by default", new StringCallback() { public String get() { return downloadDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(downloadDir.equals(new File(val))) return; File f = new File(val); if(!((f.exists() && f.isDirectory()) || (f.mkdir()))) { throw new InvalidConfigValueException("Could not find or create directory"); } downloadDir = new File(val); } }); String val = nodeConfig.getString("downloadsDir"); downloadDir = new File(val); if(!((downloadDir.exists() && downloadDir.isDirectory()) || (downloadDir.mkdir()))) { throw new NodeInitException(EXIT_BAD_DOWNLOADS_DIR, "Could not find or create default downloads directory"); } // Name nodeConfig.register("name", myName, 11, false, "Node name for darknet", "Node name; you may want to set this to something descriptive if running on darknet e.g. Fred Blogg's Node; it is visible to any connecting node", new NodeNameCallback(this)); nodeNameUserAlert = new MeaningfulNodeNameUserAlert(); myName = nodeConfig.getString("name"); nodeConfig.finishedInitialization(); writeNodeFile(); // FIXME make all the below arbitrary constants configurable! archiveManager = new ArchiveManager(MAX_ARCHIVE_HANDLERS, MAX_CACHED_ARCHIVE_DATA, MAX_ARCHIVE_SIZE, MAX_ARCHIVED_FILE_SIZE, MAX_CACHED_ELEMENTS, random, tempFilenameGenerator); chkRequestThrottle = new MyRequestThrottle(throttleWindow, 5000, "CHK Request"); chkRequestStarter = new RequestStarter(this, chkRequestThrottle, "CHK Request starter ("+portNumber+")"); chkFetchScheduler = new ClientRequestScheduler(false, false, random, chkRequestStarter, this); chkRequestStarter.setScheduler(chkFetchScheduler); chkRequestStarter.start(); //insertThrottle = new ChainedRequestThrottle(10000, 2.0F, requestThrottle); // FIXME reenable the above chkInsertThrottle = new MyRequestThrottle(throttleWindow, 10000, "CHK Insert"); chkInsertStarter = new RequestStarter(this, chkInsertThrottle, "CHK Insert starter ("+portNumber+")"); chkPutScheduler = new ClientRequestScheduler(true, false, random, chkInsertStarter, this); chkInsertStarter.setScheduler(chkPutScheduler); chkInsertStarter.start(); sskRequestThrottle = new MyRequestThrottle(throttleWindow, 5000, "SSK Request"); sskRequestStarter = new RequestStarter(this, sskRequestThrottle, "SSK Request starter ("+portNumber+")"); sskFetchScheduler = new ClientRequestScheduler(false, true, random, sskRequestStarter, this); sskRequestStarter.setScheduler(sskFetchScheduler); sskRequestStarter.start(); //insertThrottle = new ChainedRequestThrottle(10000, 2.0F, requestThrottle); // FIXME reenable the above sskInsertThrottle = new MyRequestThrottle(throttleWindow, 10000, "SSK Insert"); sskInsertStarter = new RequestStarter(this, sskInsertThrottle, "SSK Insert starter ("+portNumber+")"); sskPutScheduler = new ClientRequestScheduler(true, true, random, sskInsertStarter, this); sskInsertStarter.setScheduler(sskPutScheduler); sskInsertStarter.start(); uskManager = new USKManager(this); // And finally, Initialize the plugin manager pluginManager = new PluginManager(this); FetcherContext ctx = makeClient((short)0).getFetcherContext(); ctx.allowSplitfiles = false; ctx.dontEnterImplicitArchives = true; ctx.maxArchiveRestarts = 0; ctx.maxMetadataSize = 256; ctx.maxNonSplitfileRetries = 10; ctx.maxOutputLength = 4096; ctx.maxRecursionLevel = 2; ctx.maxTempLength = 4096; this.arkFetcherContext = ctx; } | 46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/a2140f6a34d967d0c7ae7bce5ad9faffbec7de3c/Node.java/buggy/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
12,
809,
642,
16,
8072,
1830,
2744,
13,
1216,
2029,
2570,
503,
288,
377,
202,
377,
202,
759,
29442,
10769,
377,
202,
1313,
6426,
387,
273,
394,
8005,
9584,
382,
550,
387,
5621,
377,
202,
23939,
950,
273,
2332,
18,
2972,
28512,
5621,
377,
202,
27971,
298,
3829,
273,
394,
20640,
298,
3829,
1318,
12,
22,
18,
20,
1769,
3639,
24304,
273,
394,
2177,
13298,
1318,
5621,
3639,
19907,
9556,
5103,
273,
394,
511,
19866,
3183,
5621,
377,
202,
2211,
18,
1425,
273,
642,
31,
377,
202,
2211,
18,
9188,
273,
2744,
31,
377,
202,
7097,
9581,
2396,
273,
394,
511,
19866,
5582,
14544,
5621,
202,
202,
25972,
273,
394,
7050,
1318,
12,
9188,
1769,
377,
202,
698,
288,
1082,
202,
13014,
1887,
273,
14218,
18,
588,
5911,
2932,
14260,
18,
20,
18,
20,
18,
21,
8863,
202,
202,
97,
1044,
261,
4874,
29776,
425,
23,
13,
288,
1082,
202,
759,
9637,
486,
741,
279,
4219,
3689,
16,
1427,
333,
353,
23343,
1082,
202,
12849,
394,
1068,
12,
73,
23,
1769,
202,
202,
97,
3639,
2359,
12594,
273,
394,
23588,
12594,
12,
2163,
14,
18088,
16,
333,
1769,
3639,
590,
3826,
414,
273,
394,
4317,
5621,
3639,
906,
74,
20245,
691,
3826,
414,
273,
394,
4317,
5621,
3639,
2243,
3826,
414,
273,
394,
4317,
5621,
3639,
3549,
3060,
87,
273,
394,
6847,
5621,
3639,
4250,
273,
394,
11114,
12021,
12,
2211,
1769,
3639,
368,
9852,
6944,
4259,
1410,
3898,
35,
16448,
1608,
358,
506,
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,
2029,
12,
809,
642,
16,
8072,
1830,
2744,
13,
1216,
2029,
2570,
503,
288,
377,
202,
377,
202,
759,
29442,
10769,
377,
202,
1313,
6426,
387,
273,
394,
8005,
9584,
382,
550,
387,
5621,
377,
202,
23939,
950,
273,
2332,
18,
2972,
28512,
5621,
377,
202,
27971,
298,
3829,
273,
394,
20640,
298,
3829,
1318,
12,
22,
18,
20,
1769,
3639,
24304,
273,
394,
2177,
13298,
1318,
5621,
3639,
19907,
9556,
5103,
273,
394,
511,
19866,
3183,
5621,
377,
202,
2211,
18,
1425,
273,
642,
31,
377,
202,
2211,
18,
9188,
273,
2744,
31,
377,
202,
7097,
9581,
2396,
273,
394,
511,
19866,
5582,
14544,
5621,
202,
202,
25972,
273,
394,
7050,
1318,
12,
9188,
1769,
377,
2
] |
if (changingArg > 0) { initval = "getArgument(" + changingArg + ").hashCode()"; } else { initval = "0"; } | if (changingArg > 0) { initval = "getArgument(" + changingArg + ").hashCode()"; } else { initval = "0"; } | private void genAltHashFunction(Type type, Alternative alt) { if (!hasReservedTypeFields(type, alt)) { int arity = type.getAltArity(alt); String goldenratio = "0x9e3779b9"; int changingArg = guessChangingArgument(type, alt); String initval; if (changingArg > 0) { initval = "getArgument(" + changingArg + ").hashCode()"; } else { initval = "0"; } println(" protected int hashFunction() {"); println(" int c = " + initval + " + (getAnnotations().hashCode()<<8);"); println(" int a = " + goldenratio + ";"); println(" int b = (getAFun().hashCode()<<8);"); /* * This piece of code generates a number of shifts following the * algorithm of the Doobs hash functions (Google: Doobs), you can * find a general implementation in shared.HashFunctions of the * shared-objects library. This code specializes the algorithm for * a fixed number of arguments. */ for (int i = arity - 1; i >= 0; i--) { int shift = (i % 4) * 8; println( " " + "aaaabbbbcccc".toCharArray()[i % 12] + " += (getArgument(" + i + ").hashCode() << " + shift + ");"); } println(); println(" a -= b; a -= c; a ^= (c >> 13);"); println(" b -= c; b -= a; b ^= (a << 8);"); println(" c -= a; c -= b; c ^= (b >> 13);"); println(" a -= b; a -= c; a ^= (c >> 12);"); println(" b -= c; b -= a; b ^= (a << 16);"); println(" c -= a; c -= b; c ^= (b >> 5);"); println(" a -= b; a -= c; a ^= (c >> 3);"); println(" b -= c; b -= a; b ^= (a << 10);"); println(" c -= a; c -= b; c ^= (b >> 15);"); println(); println(" return c;"); println(" }"); println(); } } | 3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/76875cdfe2af0d6de4ab58a245cce8bd703a86ab/AlternativeGenerator.java/buggy/apigen/apigen/gen/java/AlternativeGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3157,
10655,
2310,
2083,
12,
559,
618,
16,
21498,
1535,
3770,
13,
288,
202,
202,
430,
16051,
5332,
10435,
559,
2314,
12,
723,
16,
3770,
3719,
288,
1082,
202,
474,
19353,
273,
618,
18,
588,
10655,
686,
560,
12,
2390,
1769,
1082,
202,
780,
20465,
275,
9847,
273,
315,
20,
92,
29,
73,
23,
4700,
29,
70,
29,
14432,
1082,
202,
474,
12770,
4117,
273,
7274,
782,
18183,
1379,
12,
723,
16,
3770,
1769,
1082,
202,
780,
1208,
1125,
31,
1082,
202,
430,
261,
343,
18183,
4117,
405,
374,
13,
288,
9506,
202,
2738,
1125,
273,
315,
588,
1379,
2932,
397,
12770,
4117,
397,
315,
2934,
2816,
1085,
10031,
31,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
2738,
1125,
273,
315,
20,
14432,
1082,
202,
97,
1082,
202,
8222,
2932,
225,
4750,
509,
1651,
2083,
1435,
288,
8863,
1082,
202,
8222,
2932,
565,
509,
276,
273,
315,
397,
1208,
1125,
397,
315,
397,
261,
588,
5655,
7675,
2816,
1085,
1435,
17685,
28,
1769,
8863,
1082,
202,
8222,
2932,
565,
509,
279,
273,
315,
397,
20465,
275,
9847,
397,
11430,
1769,
1082,
202,
8222,
2932,
565,
509,
324,
273,
261,
588,
6799,
318,
7675,
2816,
1085,
1435,
17685,
28,
1769,
8863,
1082,
202,
20308,
9506,
380,
1220,
11151,
434,
981,
6026,
279,
1300,
434,
27552,
3751,
326,
9506,
380,
4886,
434,
326,
2256,
10992,
1651,
4186,
261,
9639,
30,
2256,
10992,
3631,
1846,
848,
9506,
380,
1104,
279,
7470,
4471,
316,
5116,
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,
3157,
10655,
2310,
2083,
12,
559,
618,
16,
21498,
1535,
3770,
13,
288,
202,
202,
430,
16051,
5332,
10435,
559,
2314,
12,
723,
16,
3770,
3719,
288,
1082,
202,
474,
19353,
273,
618,
18,
588,
10655,
686,
560,
12,
2390,
1769,
1082,
202,
780,
20465,
275,
9847,
273,
315,
20,
92,
29,
73,
23,
4700,
29,
70,
29,
14432,
1082,
202,
474,
12770,
4117,
273,
7274,
782,
18183,
1379,
12,
723,
16,
3770,
1769,
1082,
202,
780,
1208,
1125,
31,
1082,
202,
430,
261,
343,
18183,
4117,
405,
374,
13,
288,
9506,
202,
2738,
1125,
273,
315,
588,
1379,
2932,
397,
12770,
4117,
397,
315,
2934,
2816,
1085,
10031,
31,
1082,
202,
97,
1082,
202,
2
] |
VM.sysWrite("Incompatabily typed register & other operand..."); | VM.sysWrite("Incompatabily typed register & other operand...("+type1+", "+type2+")..."); | public static OPT_Operand meet(OPT_Operand op1, OPT_Operand op2, OPT_Register reg) { // Step 1: Handler pointer equality and bottom if (op1 == op2) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { if (op1 == null) { VM.sysWrite("Both operands are bottom\n"); } else { VM.sysWrite("Operands are identical\n"); } } return op1; } if (op1 == null) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Op1 was already bottom\n"); } return op1; } if (op2 == null) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Op2 is bottom (but op1 was not)\n"); } return op2; } // Now handle the nontrivial cases... // Step 2: op1 is <null> (the null constant) if (op1 instanceof OPT_NullConstantOperand) { if (op2 instanceof OPT_NullConstantOperand) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Both operands are <null>\n"); } return op1; } else { VM_Type type2 = op2.getType(); if (type2.isReferenceType()) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("op1 is <null>, but op2 is other ref type\n"); } return new OPT_RegisterOperand(reg, type2); } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("op1 is <null>, but op2 is not a ref type\n"); } return null; // bottom } } } // Step 3: op1 is some other constant if (op1.isConstant()) { if (op1.similar(op2)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("op1 and op2 are similar constants\n"); } return op1; } else { VM_Type superType = OPT_ClassLoaderProxy.proxy.findCommonSuperclass(op1.getType(), op2.getType()); if (superType == null) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("op1 and op2 have incompatible types\n"); } return null; // bottom } else { return new OPT_RegisterOperand(reg, superType); } } } // Step 4: op1 is a register operand // This case is complicated by the need to ensure that // the various Flag bits are considered as well.... if (op1.isRegister()) { OPT_RegisterOperand rop1 = op1.asRegister(); VM_Type type1 = rop1.type; if (op2.isRegister()) { OPT_RegisterOperand rop2 = op2.asRegister(); VM_Type type2 = rop2.type; if (type1 == type2) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Identically typed register operands, checking flags..."); } if (rop1.hasLessConservativeFlags(rop2)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("mismatch\n"); } OPT_RegisterOperand res = new OPT_RegisterOperand(reg, type1, rop1.getFlags()); if (rop1.scratchObject instanceof OPT_Operand && rop2.scratchObject instanceof OPT_Operand && (((OPT_Operand)rop1.scratchObject).similar(((OPT_Operand)rop2.scratchObject)))) { res.scratchObject = rop1.scratchObject; // compatible, so preserve onto res } res.meetInheritableFlags(rop2); return res; } else if (OPT_BC2IR.hasLessConservativeGuard(rop1, rop2)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Operands are registers of identical type with compatible flags but with incompatible non-null guards\n"); } // by not setting scratchObject we mark as possible null return new OPT_RegisterOperand(reg, type1, rop1.getFlags()); } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("match\n"); } return op1; } } else if (OPT_ClassLoaderProxy.proxy.isAssignableWith(type1, type2) == OPT_Constants.YES) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Compatabily typed register operands, checking flags..."); } if (rop1.isPreciseType() || rop1.hasLessConservativeFlags(rop2)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("mismatch\n"); } OPT_RegisterOperand res = new OPT_RegisterOperand(reg, type1, rop1.getFlags()); res.meetInheritableFlags(rop2); // even if both op1 & op2 are precise, // op1.type != op2.type, so clear it on res res.clearPreciseType(); if (rop1.scratchObject instanceof OPT_Operand && rop2.scratchObject instanceof OPT_Operand && (((OPT_Operand)rop1.scratchObject).similar(((OPT_Operand)rop2.scratchObject)))) { // it matched, so preserve onto res. res.scratchObject = rop1.scratchObject; } return res; } else if (OPT_BC2IR.hasLessConservativeGuard(rop1, rop2)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Operands are registers of compatible type and flags but with incompatible non-null guards\n"); } return new OPT_RegisterOperand(reg, type1, rop1.getFlags()); } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("match\n"); } return op1; } } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Incompatabily typed register operands..."); } VM_Type resType = OPT_ClassLoaderProxy.proxy.findCommonSuperclass(type1, type2); if (resType == null) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("no common supertype, returning bottom\n"); } return null; // bottom } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("found common supertype\n"); } OPT_RegisterOperand res = new OPT_RegisterOperand(reg, resType, rop1.getFlags()); res.meetInheritableFlags(rop2); res.clearPreciseType(); // invalid on res res.clearDeclaredType(); // invalid on res if (rop1.scratchObject instanceof OPT_Operand && rop2.scratchObject instanceof OPT_Operand && (((OPT_Operand)rop1.scratchObject).similar(((OPT_Operand)rop2.scratchObject)))) { // it matched, so preserve onto res. res.scratchObject = rop1.scratchObject; } return res; } } } else { if (op2 instanceof OPT_BC2IR.ReturnAddressOperand || op2 == OPT_BC2IR.DUMMY) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Incompatabily typed operands"); } return null; // bottom } VM_Type type2 = op2.getType(); if (type1 == type2 || (OPT_ClassLoaderProxy.proxy.isAssignableWith(type1, type2) == OPT_Constants.YES)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Compatabily typed register & other operand, checking flags..."); } OPT_RegisterOperand res = rop1; if (res.isPreciseType() && type1 != type2) { res = res.copyU2U(); res.clearPreciseType(); } if ((rop1.scratchObject instanceof OPT_Operand) && ((type2 == OPT_ClassLoaderProxy.NULL_TYPE) || (type2.isIntLikeType() && op2.asIntConstant().value == 0) || (type2.isLongType() && op2.asLongConstant().value == 0L))) { res = res.copyU2U(); res.scratchObject = null; } if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { if (res == rop1) { VM.sysWrite("match\n"); } else { VM.sysWrite("mismatch\n"); } } return res; } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Incompatabily typed register & other operand..."); } VM_Type resType = OPT_ClassLoaderProxy.proxy.findCommonSuperclass(type1, type2); if (resType == null) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("no common supertype, returning bottom\n"); } return null; // bottom } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("found common supertype\n"); } return new OPT_RegisterOperand(reg, resType); } } } } // Step 5: op1 is some OPT_IRGEN operand if (op1.similar(op2)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Compatible OPT_BC2IR.* operands\n"); } return op1; } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Incompatible OPT_BC2IR.* operands, returning bottom\n"); } return null; // bottom } } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/5688219e223e04cb989be0a4ee9e5cae16586667/OPT_Operand.java/buggy/rvm/src/vm/compilers/optimizing/ir/instruction/operand/OPT_Operand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
16456,
67,
10265,
18721,
12,
15620,
67,
10265,
1061,
21,
16,
4405,
16456,
67,
10265,
1061,
22,
16,
4405,
16456,
67,
3996,
960,
13,
288,
565,
368,
8693,
404,
30,
4663,
4407,
14958,
471,
5469,
565,
309,
261,
556,
21,
422,
1061,
22,
13,
288,
1377,
309,
261,
15620,
67,
7937,
7642,
1320,
18,
2290,
43,
67,
13950,
4307,
67,
12190,
56,
11774,
13,
288,
202,
430,
261,
556,
21,
422,
446,
13,
288,
202,
225,
8251,
18,
9499,
3067,
2932,
20240,
14883,
854,
5469,
64,
82,
8863,
202,
97,
469,
288,
202,
225,
8251,
18,
9499,
3067,
2932,
3542,
5708,
854,
12529,
64,
82,
8863,
202,
97,
1377,
289,
1377,
327,
1061,
21,
31,
565,
289,
565,
309,
261,
556,
21,
422,
446,
13,
288,
1377,
309,
261,
15620,
67,
7937,
7642,
1320,
18,
2290,
43,
67,
13950,
4307,
67,
12190,
56,
11774,
13,
288,
202,
7397,
18,
9499,
3067,
2932,
3817,
21,
1703,
1818,
5469,
64,
82,
8863,
1377,
289,
1377,
327,
1061,
21,
31,
565,
289,
565,
309,
261,
556,
22,
422,
446,
13,
288,
1377,
309,
261,
15620,
67,
7937,
7642,
1320,
18,
2290,
43,
67,
13950,
4307,
67,
12190,
56,
11774,
13,
288,
202,
7397,
18,
9499,
3067,
2932,
3817,
22,
353,
5469,
261,
12885,
1061,
21,
1703,
486,
5153,
82,
8863,
1377,
289,
1377,
327,
1061,
22,
31,
565,
289,
565,
368,
4494,
1640,
326,
1661,
313,
20109,
6088,
2777,
565,
368,
8693,
576,
30,
1061,
21,
353,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
16456,
67,
10265,
18721,
12,
15620,
67,
10265,
1061,
21,
16,
4405,
16456,
67,
10265,
1061,
22,
16,
4405,
16456,
67,
3996,
960,
13,
288,
565,
368,
8693,
404,
30,
4663,
4407,
14958,
471,
5469,
565,
309,
261,
556,
21,
422,
1061,
22,
13,
288,
1377,
309,
261,
15620,
67,
7937,
7642,
1320,
18,
2290,
43,
67,
13950,
4307,
67,
12190,
56,
11774,
13,
288,
202,
430,
261,
556,
21,
422,
446,
13,
288,
202,
225,
8251,
18,
9499,
3067,
2932,
20240,
14883,
854,
5469,
64,
82,
8863,
202,
97,
469,
288,
202,
225,
8251,
18,
9499,
3067,
2932,
3542,
5708,
854,
12529,
64,
82,
8863,
202,
97,
1377,
289,
1377,
327,
1061,
21,
31,
565,
2
] |
message("Burning bootloader to I/O Board..."); try { Uploader uploader = new Uploader(); boolean success = parallel ? uploader.burnBootloaderParallel() : uploader.burnBootloaderAVRISP(); if (success) { message("Done burning bootloader."); } else { } } catch (RunnerException e) { message("Error while burning bootloader."); error(e); } catch (Exception e) { e.printStackTrace(); } buttons.clear(); | message("Burning bootloader to I/O Board (this may take a minute)..."); SwingUtilities.invokeLater(new Runnable() { public void run() { try { Uploader uploader = new Uploader(); boolean success = parallel ? uploader.burnBootloaderParallel() : uploader.burnBootloaderAVRISP(); if (success) { message("Done burning bootloader."); } else { } } catch (RunnerException e) { message("Error while burning bootloader."); error(e); } catch (Exception e) { e.printStackTrace(); } buttons.clear(); }}); | protected void handleBurnBootloader(boolean parallel) { if(debugging) doStop(); console.clear(); //String what = sketch.isLibrary() ? "Applet" : "Library"; //message("Exporting " + what + "..."); message("Burning bootloader to I/O Board..."); try { //boolean success = sketch.isLibrary() ? //sketch.exportLibrary() : sketch.exportApplet(); Uploader uploader = new Uploader(); boolean success = parallel ? uploader.burnBootloaderParallel() : uploader.burnBootloaderAVRISP(); if (success) { message("Done burning bootloader."); } else { // error message will already be visible } } catch (RunnerException e) { message("Error while burning bootloader."); //e.printStackTrace(); error(e); } catch (Exception e) { e.printStackTrace(); } buttons.clear(); } | 53947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53947/364379936735ef35599cfc1a496f35ea6aa3fa7c/Editor.java/clean/app/Editor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1640,
38,
321,
15817,
6714,
12,
6494,
7230,
13,
288,
565,
309,
12,
4148,
1998,
13,
1377,
741,
4947,
5621,
565,
2983,
18,
8507,
5621,
565,
368,
780,
4121,
273,
18534,
18,
291,
9313,
1435,
692,
315,
23696,
6,
294,
315,
9313,
14432,
565,
368,
2150,
2932,
6144,
310,
315,
397,
4121,
397,
26456,
1769,
565,
883,
2932,
38,
321,
310,
4835,
6714,
358,
467,
19,
51,
17980,
1060,
7070,
1769,
565,
775,
288,
1377,
368,
6494,
2216,
273,
18534,
18,
291,
9313,
1435,
692,
1377,
368,
7771,
1593,
18,
6530,
9313,
1435,
294,
18534,
18,
6530,
23696,
5621,
1377,
1948,
6714,
25062,
273,
394,
1948,
6714,
5621,
1377,
1250,
2216,
273,
7230,
692,
540,
25062,
18,
70,
321,
15817,
6714,
13056,
1435,
294,
3639,
25062,
18,
70,
321,
15817,
6714,
5856,
2259,
3118,
5621,
5411,
309,
261,
4768,
13,
288,
3639,
883,
2932,
7387,
18305,
310,
4835,
6714,
1199,
1769,
1377,
289,
469,
288,
3639,
368,
555,
883,
903,
1818,
506,
6021,
1377,
289,
565,
289,
1044,
261,
9709,
503,
425,
13,
288,
1377,
883,
2932,
668,
1323,
18305,
310,
4835,
6714,
1199,
1769,
1377,
368,
73,
18,
1188,
6332,
5621,
1377,
555,
12,
73,
1769,
565,
289,
1044,
261,
503,
425,
13,
288,
1377,
425,
18,
1188,
6332,
5621,
565,
289,
565,
9502,
18,
8507,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1640,
38,
321,
15817,
6714,
12,
6494,
7230,
13,
288,
565,
309,
12,
4148,
1998,
13,
1377,
741,
4947,
5621,
565,
2983,
18,
8507,
5621,
565,
368,
780,
4121,
273,
18534,
18,
291,
9313,
1435,
692,
315,
23696,
6,
294,
315,
9313,
14432,
565,
368,
2150,
2932,
6144,
310,
315,
397,
4121,
397,
26456,
1769,
565,
883,
2932,
38,
321,
310,
4835,
6714,
358,
467,
19,
51,
17980,
1060,
7070,
1769,
565,
775,
288,
1377,
368,
6494,
2216,
273,
18534,
18,
291,
9313,
1435,
692,
1377,
368,
7771,
1593,
18,
6530,
9313,
1435,
294,
18534,
18,
6530,
23696,
5621,
1377,
1948,
6714,
25062,
273,
394,
1948,
6714,
5621,
1377,
1250,
2216,
273,
7230,
692,
540,
25062,
2
] |
return (getFullResourceName() != null); | return (m_fullResourceName != null); | public boolean hasFullResourceName() { return (getFullResourceName() != null); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/8660e4b4e4c229b8cc034f0362597179b2f72cc8/CmsResource.java/buggy/src/com/opencms/file/CmsResource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
5080,
19327,
1435,
288,
3639,
327,
261,
81,
67,
2854,
19327,
480,
446,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
711,
5080,
19327,
1435,
288,
3639,
327,
261,
81,
67,
2854,
19327,
480,
446,
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,
-100,
-100,
-100
] |
int target = MAX_CLADE_CREDIBILITY; if (arguments.hasOption("target")) { target = USER_TARGET_TREE; targetTreeFileName = arguments.getStringOption("target"); } | int target = MAX_CLADE_CREDIBILITY; if (arguments.hasOption("target")) { target = USER_TARGET_TREE; targetTreeFileName = arguments.getStringOption("target"); } | public static void main(String[] args) throws IOException { String targetTreeFileName = null; String inputFileName = null; String outputFileName = null; if (args.length == 0) { System.setProperty("com.apple.macos.useScreenMenuBar","true"); System.setProperty("apple.laf.useScreenMenuBar","true"); System.setProperty("apple.awt.showGrowBox","true"); java.net.URL url = LogCombiner.class.getResource("/images/utility.png"); javax.swing.Icon icon = null; if (url != null) { icon = new javax.swing.ImageIcon(url); } String nameString = "TreeAnnotator v1.4"; final String versionString = "1.4"; String aboutString = "<html><center><p>Version " + versionString + ", 2006</p>" + "<p>by<br>" + "Andrew Rambaut and Alexei J. Drummond</p>" + "<p>Institute of Evolutionary Biology, University of Edinburgh<br>" + "<a href=\"mailto:[email protected]\">[email protected]</a></p>" + "<p>Department of Computer Science, University of Auckland<br>" + "<a href=\"mailto:[email protected]\">[email protected]</a></p>" + "<p>Part of the BEAST package:<br>" + "<a href=\"http://evolve.zoo.ox.ac.uk/beast/\">http://evolve.zoo.ox.ac.uk/beast/</a></p>" + "</center></html>"; ConsoleApplication consoleApp = new ConsoleApplication(nameString, aboutString, icon, true); printTitle(); TreeAnnotatorDialog dialog = new TreeAnnotatorDialog(new JFrame()); if (!dialog.showDialog("TreeAnnotator v1.4")) { return; } int burnin = dialog.getBurnin(); double posteriorLimit = dialog.getPosteriorLimit(); int targetOption = dialog.getTargetOption(); int heightsOption = dialog.getHeightsOption(); targetTreeFileName = dialog.getTargetFileName(); if (targetOption == USER_TARGET_TREE && targetTreeFileName == null) { System.err.println("No target file specified"); return; } inputFileName = dialog.getInputFileName(); if (inputFileName == null) { System.err.println("No input file specified"); return; } outputFileName = dialog.getOutputFileName(); if (outputFileName == null) { System.err.println("No output file specified"); return; } try { new TreeAnnotator(burnin, heightsOption, posteriorLimit, targetOption, targetTreeFileName, inputFileName, outputFileName); } catch (Exception ex) { System.err.println("Exception: " + ex.getMessage()); } System.out.println("Finished - Quit program to exit."); while (true) { try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } } printTitle(); Arguments arguments = new Arguments( new Arguments.Option[] { //new Arguments.StringOption("target", new String[] { "maxclade", "maxtree" }, false, "an option of 'maxclade' or 'maxtree'"), new Arguments.StringOption("heights", new String[] { "keep", "median", "mean" }, false, "an option of 'keep', 'median' or 'mean'"), new Arguments.IntegerOption("burnin", "the number of states to be considered as 'burn-in'"), new Arguments.RealOption("limit", "the minimum posterior probability for a node to be annoated"), new Arguments.StringOption("target", "target_file_name", "specifies a user target tree to be annotated"), new Arguments.Option("help", "option to print this message") }); try { arguments.parseArguments(args); } catch (Arguments.ArgumentException ae) { System.out.println(ae); printUsage(arguments); System.exit(1); } if (arguments.hasOption("help")) { printUsage(arguments); System.exit(0); } int heights = KEEP_HEIGHTS; if (arguments.hasOption("heights")) { String value = arguments.getStringOption("heights"); if (value.equalsIgnoreCase("mean")) { heights = MEAN_HEIGHTS; } else if (value.equalsIgnoreCase("median")) { heights = MEDIAN_HEIGHTS; } } int burnin = -1; if (arguments.hasOption("burnin")) { burnin = arguments.getIntegerOption("burnin"); } double posteriorLimit = 0.0; if (arguments.hasOption("limit")) { posteriorLimit = arguments.getRealOption("limit"); } int target = MAX_CLADE_CREDIBILITY; if (arguments.hasOption("target")) { target = USER_TARGET_TREE; targetTreeFileName = arguments.getStringOption("target"); } String[] args2 = arguments.getLeftoverArguments(); if (args2.length > 2) { System.err.println("Unknown option: " + args2[2]); System.err.println(); printUsage(arguments); System.exit(1); } if (args2.length == 2) { targetTreeFileName = null; inputFileName = args2[0]; outputFileName = args2[1]; } else { printUsage(arguments); System.exit(1); } new TreeAnnotator(burnin, heights, posteriorLimit, target, targetTreeFileName, inputFileName, outputFileName); System.exit(0); } | 49053 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49053/f5c99fa52041b3059823acb6b294c2af22d3e85a/TreeAnnotator.java/buggy/trunk/src/dr/app/tools/TreeAnnotator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1860,
288,
3639,
514,
1018,
2471,
4771,
273,
446,
31,
3639,
514,
810,
4771,
273,
446,
31,
3639,
514,
876,
4771,
273,
446,
31,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
2332,
18,
542,
1396,
2932,
832,
18,
438,
1802,
18,
5821,
538,
18,
1202,
7956,
4599,
5190,
15937,
3767,
8863,
5411,
2332,
18,
542,
1396,
2932,
438,
1802,
18,
80,
1727,
18,
1202,
7956,
4599,
5190,
15937,
3767,
8863,
5411,
2332,
18,
542,
1396,
2932,
438,
1802,
18,
2219,
88,
18,
4500,
30948,
3514,
15937,
3767,
8863,
5411,
2252,
18,
2758,
18,
1785,
880,
273,
1827,
24107,
264,
18,
1106,
18,
588,
1420,
2932,
19,
7369,
19,
1367,
560,
18,
6446,
8863,
5411,
6863,
18,
5328,
310,
18,
5554,
4126,
273,
446,
31,
5411,
309,
261,
718,
480,
446,
13,
288,
7734,
4126,
273,
394,
6863,
18,
5328,
310,
18,
2040,
5554,
12,
718,
1769,
5411,
289,
5411,
514,
508,
780,
273,
315,
2471,
11280,
639,
331,
21,
18,
24,
14432,
5411,
727,
514,
1177,
780,
273,
315,
21,
18,
24,
14432,
5411,
514,
2973,
780,
273,
3532,
2620,
4438,
5693,
4438,
84,
34,
1444,
315,
397,
1177,
780,
397,
3104,
27212,
1757,
84,
2984,
397,
10792,
3532,
84,
34,
1637,
32,
2848,
2984,
397,
10792,
315,
1876,
16052,
534,
2536,
5854,
471,
432,
4149,
73,
77,
804,
18,
11473,
379,
81,
1434,
1757,
84,
2984,
397,
10792,
3532,
84,
34,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1860,
288,
3639,
514,
1018,
2471,
4771,
273,
446,
31,
3639,
514,
810,
4771,
273,
446,
31,
3639,
514,
876,
4771,
273,
446,
31,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
2332,
18,
542,
1396,
2932,
832,
18,
438,
1802,
18,
5821,
538,
18,
1202,
7956,
4599,
5190,
15937,
3767,
8863,
5411,
2332,
18,
542,
1396,
2932,
438,
1802,
18,
80,
1727,
18,
1202,
7956,
4599,
5190,
15937,
3767,
8863,
5411,
2332,
18,
542,
1396,
2932,
438,
1802,
18,
2219,
88,
18,
4500,
30948,
3514,
15937,
3767,
8863,
5411,
2252,
18,
2758,
18,
1785,
880,
273,
1827,
24107,
264,
18,
1106,
18,
588,
1420,
2
] |
boolean validToken = true; for (int k = 0; k < token.length() && validToken; k++) { char c = token.charAt(k); if (c == ':' || c == '=' || Character.isSpaceChar(c)) { validToken = false; | boolean validToken = true; for (int k = 0; k < token.length() && validToken; k++) { char c = token.charAt(k); if (c == ':' || c == '=' || Character.isSpaceChar(c)) { validToken = false; } } if (!validToken) { startIndex += 1; } else { if (resourceMap.containsKey(token)) { replace = (String) resourceMap.get(token); } else { log("Replacement string missing for: " + token, Project.MSG_VERBOSE); replace = startToken + token + endToken; } line = line.substring(0, startIndex) + replace + line.substring(endIndex + endToken.length()); startIndex += replace.length(); | private void translate() throws BuildException { for (int i = 0; i < filesets.size(); i++) { FileSet fs = (FileSet) filesets.elementAt(i); DirectoryScanner ds = fs.getDirectoryScanner(getProject()); String[] srcFiles = ds.getIncludedFiles(); for (int j = 0; j < srcFiles.length; j++) { try { File dest = fileUtils.resolveFile(toDir, srcFiles[j]); //Make sure parent dirs exist, else, create them. try { File destDir = new File(dest.getParent()); if (!destDir.exists()) { destDir.mkdirs(); } } catch (Exception e) { log("Exception occured while trying to check/create " + " parent directory. " + e.getMessage(), Project.MSG_DEBUG); } destLastModified = dest.lastModified(); File src = fileUtils.resolveFile(ds.getBasedir(), srcFiles[j]); srcLastModified = src.lastModified(); //Check to see if dest file has to be recreated boolean needsWork = forceOverwrite || destLastModified < srcLastModified; if (!needsWork) { for (int icounter = 0; icounter < BUNDLE_MAX_ALTERNATIVES; icounter++) { needsWork = (destLastModified < bundleLastModified[icounter]); if (needsWork) { break; } } } if (needsWork) { log("Processing " + srcFiles[j], Project.MSG_DEBUG); FileOutputStream fos = new FileOutputStream(dest); BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos, destEncoding)); FileInputStream fis = new FileInputStream(src); BufferedReader in = new BufferedReader(new InputStreamReader(fis, srcEncoding)); String line; LineTokenizer lineTokenizer = new LineTokenizer(); lineTokenizer.setIncludeDelims(true); line = lineTokenizer.getToken(in); while ((line) != null) { // 2003-02-21 new replace algorithm by tbee ([email protected]) // because it wasn't able to replace something like "@aaa;@bbb;" // is there a startToken // and there is still stuff following the startToken int startIndex = line.indexOf(startToken); while (startIndex >= 0 && (startIndex + startToken.length()) <= line.length()) { // the new value, this needs to be here // because it is required to calculate the next position to search from // at the end of the loop String replace = null; // we found a starttoken, is there an endtoken following? // start at token+tokenlength because start and end // token may be indentical int endIndex = line.indexOf(endToken, startIndex + startToken.length()); if (endIndex < 0) { startIndex += 1; } else { // grab the token String token = line.substring(startIndex + startToken.length(), endIndex); // If there is a white space or = or :, then // it isn't to be treated as a valid key. boolean validToken = true; for (int k = 0; k < token.length() && validToken; k++) { char c = token.charAt(k); if (c == ':' || c == '=' || Character.isSpaceChar(c)) { validToken = false; } } if (!validToken) { startIndex += 1; } else { // find the replace string if (resourceMap.containsKey(token)) { replace = (String) resourceMap.get(token); } else { replace = token; } // generate the new line line = line.substring(0, startIndex) + replace + line.substring(endIndex + endToken.length()); // set start position for next search startIndex += replace.length(); } } // find next starttoken startIndex = line.indexOf(startToken, startIndex); } out.write(line); line = lineTokenizer.getToken(in); } if (in != null) { in.close(); } if (out != null) { out.close(); } } else { log("Skipping " + srcFiles[j] + " as destination file is up to date", Project.MSG_VERBOSE); } } catch (IOException ioe) { throw new BuildException(ioe.getMessage(), getLocation()); } } } } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/fb25c836b47f9a54bc7cb7924e40537e65d00b2b/Translate.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4204,
1435,
1216,
18463,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1390,
2413,
18,
1467,
5621,
277,
27245,
288,
5411,
1387,
694,
2662,
273,
261,
812,
694,
13,
1390,
2413,
18,
2956,
861,
12,
77,
1769,
5411,
8930,
11338,
3780,
273,
2662,
18,
588,
2853,
11338,
12,
588,
4109,
10663,
5411,
514,
8526,
1705,
2697,
273,
3780,
18,
588,
19323,
2697,
5621,
5411,
364,
261,
474,
525,
273,
374,
31,
525,
411,
1705,
2697,
18,
2469,
31,
525,
27245,
288,
7734,
775,
288,
10792,
1387,
1570,
273,
585,
1989,
18,
10828,
812,
12,
869,
1621,
16,
1705,
2697,
63,
78,
19226,
10792,
368,
6464,
3071,
982,
7717,
1005,
16,
469,
16,
752,
2182,
18,
10792,
775,
288,
13491,
1387,
26231,
273,
394,
1387,
12,
10488,
18,
588,
3054,
10663,
13491,
309,
16051,
10488,
1621,
18,
1808,
10756,
288,
18701,
26231,
18,
24816,
8291,
5621,
13491,
289,
10792,
289,
1044,
261,
503,
425,
13,
288,
13491,
613,
2932,
503,
16206,
1323,
8374,
358,
866,
19,
2640,
315,
18701,
397,
315,
982,
1867,
18,
225,
315,
397,
425,
18,
24906,
9334,
18701,
5420,
18,
11210,
67,
9394,
1769,
10792,
289,
10792,
1570,
14747,
273,
1570,
18,
2722,
4575,
5621,
10792,
1387,
1705,
273,
585,
1989,
18,
10828,
812,
12,
2377,
18,
588,
2171,
1214,
9334,
1705,
2697,
63,
78,
19226,
10792,
1705,
14747,
273,
1705,
18,
2722,
4575,
5621,
10792,
368,
1564,
358,
2621,
309,
1570,
585,
711,
358,
506,
283,
4824,
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,
4204,
1435,
1216,
18463,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1390,
2413,
18,
1467,
5621,
277,
27245,
288,
5411,
1387,
694,
2662,
273,
261,
812,
694,
13,
1390,
2413,
18,
2956,
861,
12,
77,
1769,
5411,
8930,
11338,
3780,
273,
2662,
18,
588,
2853,
11338,
12,
588,
4109,
10663,
5411,
514,
8526,
1705,
2697,
273,
3780,
18,
588,
19323,
2697,
5621,
5411,
364,
261,
474,
525,
273,
374,
31,
525,
411,
1705,
2697,
18,
2469,
31,
525,
27245,
288,
7734,
775,
288,
10792,
1387,
1570,
273,
585,
1989,
18,
10828,
812,
12,
869,
1621,
16,
1705,
2697,
63,
78,
19226,
10792,
368,
6464,
3071,
982,
7717,
1005,
16,
469,
16,
752,
2
] |
valArg.compile(comp, Target.pushValue(setArgTypes[0])); | valArg.compile(comp, CheckedTarget.getInstance(language.getLangTypeFor(setArgTypes[0]))); | static void compileSet(Procedure thisProc, ClassType ctype, Expression valArg, Object part, Compilation comp) { CodeAttr code = comp.getCode(); boolean isStatic = thisProc instanceof SlotSet && ((SlotSet) thisProc).isStatic; if (part instanceof gnu.bytecode.Field) { gnu.bytecode.Field field = (gnu.bytecode.Field) part; boolean isStaticField = field.getStaticFlag(); Type ftype = field.getType(); if (isStatic && ! isStaticField) comp.error('e', ("cannot access non-static field `" + field.getName() + "' using `" + thisProc.getName() + '\'')); valArg.compile(comp, Target.pushValue(ftype)); if (isStaticField) code.emitPutStatic(field); else code.emitPutField(field); return; } if (part instanceof gnu.bytecode.Method) { gnu.bytecode.Method method = (gnu.bytecode.Method) part; boolean isStaticMethod = method.getStaticFlag(); if (isStatic && ! isStaticMethod) comp.error('e', "cannot call non-static getter method `" + method.getName() + "' using `" + thisProc.getName() + '\''); Type[] setArgTypes = method.getParameterTypes(); valArg.compile(comp, Target.pushValue(setArgTypes[0])); if (isStaticMethod) code.emitInvokeStatic(method); else if (ctype.isInterface()) code.emitInvokeInterface(method); else code.emitInvokeVirtual(method); return; } } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/443ffb4efdfc6940840d799aa5d245b0f3828deb/SlotSet.java/buggy/gnu/kawa/reflect/SlotSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
4074,
694,
12,
17213,
333,
15417,
16,
1659,
559,
11920,
16,
7682,
5371,
1244,
4117,
16,
1033,
1087,
16,
22416,
1161,
13,
225,
288,
565,
3356,
3843,
981,
273,
1161,
18,
588,
1085,
5621,
565,
1250,
16116,
1377,
273,
333,
15417,
1276,
23195,
694,
597,
14015,
8764,
694,
13,
333,
15417,
2934,
291,
5788,
31,
565,
309,
261,
2680,
1276,
314,
13053,
18,
1637,
16651,
18,
974,
13,
1377,
288,
3639,
314,
13053,
18,
1637,
16651,
18,
974,
652,
273,
261,
1600,
89,
18,
1637,
16651,
18,
974,
13,
1087,
31,
3639,
1250,
16116,
974,
273,
652,
18,
588,
5788,
4678,
5621,
202,
559,
21219,
273,
652,
18,
588,
559,
5621,
3639,
309,
261,
291,
5788,
597,
401,
16116,
974,
13,
1850,
1161,
18,
1636,
2668,
73,
2187,
7566,
12892,
2006,
1661,
17,
3845,
652,
20867,
397,
652,
18,
17994,
1435,
21821,
397,
2491,
1450,
20867,
397,
333,
15417,
18,
17994,
1435,
397,
14118,
6134,
1769,
3639,
1244,
4117,
18,
11100,
12,
2919,
16,
5916,
18,
6206,
620,
12,
74,
723,
10019,
3639,
309,
261,
291,
5788,
974,
13,
1850,
981,
18,
18356,
6426,
5788,
12,
1518,
1769,
540,
469,
1850,
981,
18,
18356,
6426,
974,
12,
1518,
1769,
3639,
327,
31,
1377,
289,
565,
309,
261,
2680,
1276,
314,
13053,
18,
1637,
16651,
18,
1305,
13,
1377,
288,
3639,
314,
13053,
18,
1637,
16651,
18,
1305,
707,
273,
261,
1600,
89,
18,
1637,
16651,
18,
1305,
13,
1087,
31,
3639,
1250,
16116,
1305,
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,
760,
918,
4074,
694,
12,
17213,
333,
15417,
16,
1659,
559,
11920,
16,
7682,
5371,
1244,
4117,
16,
1033,
1087,
16,
22416,
1161,
13,
225,
288,
565,
3356,
3843,
981,
273,
1161,
18,
588,
1085,
5621,
565,
1250,
16116,
1377,
273,
333,
15417,
1276,
23195,
694,
597,
14015,
8764,
694,
13,
333,
15417,
2934,
291,
5788,
31,
565,
309,
261,
2680,
1276,
314,
13053,
18,
1637,
16651,
18,
974,
13,
1377,
288,
3639,
314,
13053,
18,
1637,
16651,
18,
974,
652,
273,
261,
1600,
89,
18,
1637,
16651,
18,
974,
13,
1087,
31,
3639,
1250,
16116,
974,
273,
652,
18,
588,
5788,
4678,
5621,
202,
559,
21219,
273,
652,
18,
588,
559,
5621,
3639,
309,
261,
291,
5788,
2
] |
postAlloc(cell, currentBlock.get(sizeClass), sizeClass, bytes); | postAlloc(cell, currentBlock.get(sizeClass), sizeClass, bytes); | protected final VM_Address allocSlowOnce (boolean isScalar, EXTENT bytes) throws VM_PragmaInline { int sizeClass = getSizeClass(bytes); VM_Address cell = expandSizeClass(sizeClass); if (cell.isZero()) return VM_Address.zero(); cellsInUse[sizeClass]++; freeList.set(sizeClass, getNextCell(cell)); postAlloc(cell, currentBlock.get(sizeClass), sizeClass, bytes); Memory.zeroSmall(cell, bytes); return cell; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/4c2df5f01ad40ef0d15988afe1734bb298745e49/SegregatedFreeList.java/clean/rvm/src/vm/memoryManagers/JMTk/utility/SegregatedFreeList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
8251,
67,
1887,
4767,
28733,
12212,
261,
6494,
11604,
3473,
16,
11112,
2222,
1731,
13,
565,
1216,
8251,
67,
2050,
9454,
10870,
288,
565,
509,
963,
797,
273,
9950,
797,
12,
3890,
1769,
565,
8251,
67,
1887,
2484,
273,
4542,
1225,
797,
12,
1467,
797,
1769,
565,
309,
261,
3855,
18,
291,
7170,
10756,
1377,
327,
8251,
67,
1887,
18,
7124,
5621,
565,
5983,
15435,
63,
1467,
797,
3737,
15,
31,
565,
4843,
682,
18,
542,
12,
1467,
797,
16,
6927,
4020,
12,
3855,
10019,
565,
1603,
8763,
12,
3855,
16,
30610,
18,
588,
12,
1467,
797,
3631,
963,
797,
16,
202,
1377,
1731,
1769,
565,
9251,
18,
7124,
19187,
12,
3855,
16,
1731,
1769,
565,
327,
2484,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
727,
8251,
67,
1887,
4767,
28733,
12212,
261,
6494,
11604,
3473,
16,
11112,
2222,
1731,
13,
565,
1216,
8251,
67,
2050,
9454,
10870,
288,
565,
509,
963,
797,
273,
9950,
797,
12,
3890,
1769,
565,
8251,
67,
1887,
2484,
273,
4542,
1225,
797,
12,
1467,
797,
1769,
565,
309,
261,
3855,
18,
291,
7170,
10756,
1377,
327,
8251,
67,
1887,
18,
7124,
5621,
565,
5983,
15435,
63,
1467,
797,
3737,
15,
31,
565,
4843,
682,
18,
542,
12,
1467,
797,
16,
6927,
4020,
12,
3855,
10019,
565,
1603,
8763,
12,
3855,
16,
30610,
18,
588,
12,
1467,
797,
3631,
963,
797,
16,
202,
1377,
1731,
1769,
565,
9251,
18,
7124,
19187,
12,
3855,
16,
1731,
1769,
565,
2
] |
quickfix.fix41.OrderCancelRequest message = new quickfix.fix41.OrderCancelRequest (new OrigClOrdID(order.getID()), new ClOrdID(id), new Symbol(order.getSymbol()), sideToFIXSide(order.getSide())); | quickfix.fix41.OrderCancelRequest message = new quickfix.fix41.OrderCancelRequest( new OrigClOrdID(order.getID()), new ClOrdID(id), new Symbol(order.getSymbol()), sideToFIXSide(order.getSide())); | public void cancel41(Order order) { String id = order.generateID(); quickfix.fix41.OrderCancelRequest message = new quickfix.fix41.OrderCancelRequest (new OrigClOrdID(order.getID()), new ClOrdID(id), new Symbol(order.getSymbol()), sideToFIXSide(order.getSide())); message.setField(new OrderQty(order.getQuantity())); orderTableModel.addID(order, id); send(message, order.getSessionID()); } | 6257 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6257/b1369a27979caf97c3e3b66213e8103f210c0b86/BanzaiApplication.java/buggy/examples/quickfix/examples/banzai/BanzaiApplication.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3755,
9803,
12,
2448,
1353,
13,
288,
3639,
514,
612,
273,
1353,
18,
7163,
734,
5621,
3639,
9549,
904,
18,
904,
9803,
18,
2448,
6691,
691,
883,
273,
5411,
394,
9549,
904,
18,
904,
9803,
18,
2448,
6691,
691,
5411,
261,
2704,
11147,
2009,
15383,
734,
12,
1019,
18,
588,
734,
1435,
3631,
2398,
394,
3905,
15383,
734,
12,
350,
3631,
2398,
394,
8565,
12,
1019,
18,
588,
5335,
1435,
3631,
2398,
4889,
774,
4563,
8895,
12,
1019,
18,
588,
8895,
1435,
10019,
3639,
883,
18,
542,
974,
12,
2704,
4347,
53,
4098,
12,
1019,
18,
588,
12035,
1435,
10019,
3639,
1353,
1388,
1488,
18,
1289,
734,
12,
1019,
16,
612,
1769,
3639,
1366,
12,
2150,
16,
1353,
18,
588,
2157,
734,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3755,
9803,
12,
2448,
1353,
13,
288,
3639,
514,
612,
273,
1353,
18,
7163,
734,
5621,
3639,
9549,
904,
18,
904,
9803,
18,
2448,
6691,
691,
883,
273,
5411,
394,
9549,
904,
18,
904,
9803,
18,
2448,
6691,
691,
5411,
261,
2704,
11147,
2009,
15383,
734,
12,
1019,
18,
588,
734,
1435,
3631,
2398,
394,
3905,
15383,
734,
12,
350,
3631,
2398,
394,
8565,
12,
1019,
18,
588,
5335,
1435,
3631,
2398,
4889,
774,
4563,
8895,
12,
1019,
18,
588,
8895,
1435,
10019,
3639,
883,
18,
542,
974,
12,
2704,
4347,
53,
4098,
12,
1019,
18,
588,
12035,
1435,
10019,
3639,
1353,
1388,
1488,
18,
1289,
734,
12,
1019,
16,
612,
1769,
3639,
1366,
12,
2150,
2
] |
log.error( e); | log.error(e, e); | public void setRuntimeData (ChannelRuntimeData rd) throws PortalException { runtimeData = rd; // If the user hasn't clicked on a tab, get persisted active tab if (activeTab.equals("none")) activeTab = getActiveTab(); action = runtimeData.getParameter("action"); if (action != null) { // Select tab if (action.equals("selectTab")) activeTab = runtimeData.getParameter("activeTab"); // Set active tab else if (action.equals("setActiveTab")) { try { setActiveTab(activeTab); } catch (Exception e) { log.error( e); action = "error"; errorMessage = errorMessageSetActiveTab; } } // Change tab restrictions else if (action.equals("changePermissions" ) ) { try { String elementId = runtimeData.getParameter("elementID"); String moveAllowed = runtimeData.getParameter("moveAllowed"); String editAllowed = runtimeData.getParameter("editAllowed"); String addChildAllowed = runtimeData.getParameter("addChildAllowed"); String deleteAllowed = runtimeData.getParameter("deleteAllowed"); changeRestrictions( elementId, moveAllowed, editAllowed, addChildAllowed, deleteAllowed ); } catch (Exception e) { log.error(e); action = "error"; errorMessage = errorMessageRenameTab; } } // Rename tab else if (action.equals("renameTab")) { try { String tabId = runtimeData.getParameter("elementID"); String tabName = runtimeData.getParameter("tabName"); renameTab(tabId, tabName); } catch (Exception e) { log.error( e); action = "error"; errorMessage = errorMessageRenameTab; } } // Move tab else if (action.equals("moveTab")) { try { String methodAndID = runtimeData.getParameter("method_ID"); if (methodAndID != null) { String sourceTabId = runtimeData.getParameter("elementID"); int indexOf_ = methodAndID.indexOf("_"); String method = methodAndID.substring(0, indexOf_); // insertBefore or appendAfter String destinationTabId = methodAndID.substring(indexOf_ + 1); moveTab(sourceTabId, method, destinationTabId); } else action = "selectTab"; } catch (Exception e) { log.error( e); action = "error"; errorMessage = errorMessageMoveTab; } } // Add tab else if (action.equals("addTab")) { try { String tabName = runtimeData.getParameter("tabName"); String methodAndID = runtimeData.getParameter("method_ID"); if (methodAndID != null) { int indexOf_ = methodAndID.indexOf("_"); String method = methodAndID.substring(0, indexOf_); // insertBefore or appendAfter String destinationTabId = methodAndID.substring(indexOf_ + 1); addTab(tabName, method, destinationTabId); } else action = "newTab"; } catch (Exception e) { log.error( e); action = "error"; errorMessage = errorMessageAddTab; } } // Delete tab else if (action.equals("deleteTab")) { try { String tabId = runtimeData.getParameter("elementID"); deleteElement(tabId); } catch (Exception e) { log.error( e); action = "error"; errorMessage = errorMessageDeleteTab; } } // Lock tab else if (action.equals("lockTab")) { try { String tabId = runtimeData.getParameter("elementID"); updateTabLock(tabId, true); } catch (Exception e) { log.error( e); action = "error"; errorMessage = errorMessageLockTab; } } // Unlock tab else if (action.equals("unlockTab")) { try { String tabId = runtimeData.getParameter("elementID"); updateTabLock(tabId, false); } catch (Exception e) { log.error( e); action = "error"; errorMessage = errorMessageUnlockTab; } } // Select column else if (action.equals("selectColumn")) elementID = runtimeData.getParameter("elementID"); // Change column width(s) else if (action.equals("columnWidth")) { try { HashMap columnWidths = new HashMap(); Enumeration eParams = runtimeData.getParameterNames(); while (eParams.hasMoreElements()) { String param = (String)eParams.nextElement(); String prefix = "columnWidth_"; if (param.startsWith(prefix)) { String folderId = param.substring(prefix.length()); String newWidth = runtimeData.getParameter(prefix + folderId); columnWidths.put(folderId, newWidth); } } changeColumnWidths(columnWidths); } catch (Exception e) { log.error( e); action = "error"; errorMessage = errorMessageChangeColumnWidths; } } // Move column else if (action.equals("moveColumn")) { String activeTabParam = runtimeData.getParameter("activeTab"); if (activeTabParam != null) activeTab = activeTabParam; } // Move column here else if (action.equals("moveColumnHere")) { try { // Get the source column if this is a one-step move, otherwise we already // have it stored as elementID String sourceId = runtimeData.getParameter("sourceID"); if (sourceId != null) elementID = sourceId; String method = runtimeData.getParameter("method"); String destinationId = runtimeData.getParameter("elementID"); moveColumn(elementID, method, destinationId); } catch (Exception e) { log.error( e); action = "error"; errorMessage = errorMessageMoveColumn; } } // New column else if (action.equals("newColumn")) { try { String method = runtimeData.getParameter("method"); elementID = runtimeData.getParameter("elementID"); String destinationColumnId = elementID; addColumn(method, destinationColumnId); } catch (Exception e) { log.error( e); action = "error"; errorMessage = errorMessageNewColumn; } } // Add column else if (action.equals("addColumn")) { // Currently not implemented... // We need to assign widths to columns. // The action addColumn isn't in the stylesheet yet. } // Delete column else if (action.equals("deleteColumn")) { try { String columnId = runtimeData.getParameter("elementID"); deleteElement(columnId); } catch (Exception e) { log.error( e); action = "error"; errorMessage = errorMessageDeleteColumn; } } // Select channel else if (action.equals("selectChannel")) { elementID = runtimeData.getParameter("elementID"); // Modify channel parameters String subAction = runtimeData.getParameter("subAction"); if (subAction != null && subAction.equals("modifyChannelParams")) { IUserLayoutChannelDescription layoutChannel=(IUserLayoutChannelDescription)ulm.getNode(elementID); String channelPublishId=layoutChannel.getChannelPublishId(); Document channelRegistry = ChannelRegistryManager.getChannelRegistry(staticData.getPerson()); Element channel = (Element)channelRegistry.getElementById("chan" + channelPublishId); List overridableChanParams = getOverridableChannelParams(channelPublishId); context.internalState = new ParametersState(context, this, overridableChanParams, channel); context.internalState.setStaticData(staticData); } } // Move channel else if (action.equals("moveChannel")) { String activeTabParam = runtimeData.getParameter("activeTab"); if (activeTabParam != null) activeTab = activeTabParam; } // Move channel here else if (action.equals("moveChannelHere")) { try { // Get the source channel if this is a one-step move, otherwise we already // have it stored as elementID String sourceId = runtimeData.getParameter("sourceID"); if (sourceId != null) elementID = sourceId; String method = runtimeData.getParameter("method"); String destinationId = runtimeData.getParameter("elementID"); moveChannel(elementID, method, destinationId); // Clear out elementId so the channel doesn't stay highlighted elementID = null; } catch (Exception e) { log.error( e); action = "error"; errorMessage = errorMessageMoveChannel; } } // Delete channel else if (action.equals("deleteChannel")) { try { String channelSubscribeId = runtimeData.getParameter("elementID"); deleteChannel(channelSubscribeId); } catch (Exception e) { log.error( e); action = "error"; errorMessage = errorMessageDeleteChannel; } } // Cancel else if (action.equals("cancel")) { elementID = "none"; } } else action = "none"; } | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/6e312308e9e87d11a0be561c3eb22efb147eec1e/TabColumnPrefsState.java/clean/source/org/jasig/portal/channels/DLMUserPreferences/TabColumnPrefsState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5576,
751,
261,
2909,
5576,
751,
9437,
13,
1216,
25478,
503,
565,
288,
1377,
3099,
751,
273,
9437,
31,
1377,
368,
971,
326,
729,
13342,
1404,
17688,
603,
279,
3246,
16,
336,
14249,
2695,
3246,
1377,
309,
261,
3535,
5661,
18,
14963,
2932,
6102,
6,
3719,
3639,
2695,
5661,
273,
11960,
5661,
5621,
1377,
1301,
273,
3099,
751,
18,
588,
1662,
2932,
1128,
8863,
1377,
309,
261,
1128,
480,
446,
13,
1377,
288,
3639,
368,
6766,
3246,
3639,
309,
261,
1128,
18,
14963,
2932,
4025,
5661,
6,
3719,
1850,
2695,
5661,
273,
3099,
751,
18,
588,
1662,
2932,
3535,
5661,
8863,
3639,
368,
1000,
2695,
3246,
3639,
469,
309,
261,
1128,
18,
14963,
2932,
542,
3896,
5661,
6,
3719,
3639,
288,
1850,
775,
1850,
288,
5411,
20669,
5661,
12,
3535,
5661,
1769,
1850,
289,
1850,
1044,
261,
503,
425,
13,
1850,
288,
5411,
613,
18,
1636,
12,
73,
16,
425,
1769,
5411,
1301,
273,
315,
1636,
14432,
5411,
9324,
273,
9324,
694,
3896,
5661,
31,
1850,
289,
3639,
289,
3639,
368,
7576,
3246,
17499,
3639,
469,
309,
261,
1128,
18,
14963,
2932,
3427,
6521,
6,
262,
262,
3639,
288,
1850,
775,
1850,
288,
5411,
514,
930,
548,
273,
3099,
751,
18,
588,
1662,
2932,
2956,
734,
8863,
5411,
514,
3635,
5042,
273,
3099,
751,
18,
588,
1662,
2932,
8501,
5042,
8863,
5411,
514,
3874,
5042,
273,
3099,
751,
18,
588,
1662,
2932,
4619,
5042,
8863,
5411,
514,
7384,
5042,
273,
3099,
751,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5576,
751,
261,
2909,
5576,
751,
9437,
13,
1216,
25478,
503,
565,
288,
1377,
3099,
751,
273,
9437,
31,
1377,
368,
971,
326,
729,
13342,
1404,
17688,
603,
279,
3246,
16,
336,
14249,
2695,
3246,
1377,
309,
261,
3535,
5661,
18,
14963,
2932,
6102,
6,
3719,
3639,
2695,
5661,
273,
11960,
5661,
5621,
1377,
1301,
273,
3099,
751,
18,
588,
1662,
2932,
1128,
8863,
1377,
309,
261,
1128,
480,
446,
13,
1377,
288,
3639,
368,
6766,
3246,
3639,
309,
261,
1128,
18,
14963,
2932,
4025,
5661,
6,
3719,
1850,
2695,
5661,
273,
3099,
751,
18,
588,
1662,
2932,
3535,
5661,
8863,
3639,
368,
1000,
2695,
3246,
3639,
469,
309,
261,
1128,
18,
14963,
2932,
542,
2
] |
if (poaListener != null) | if (poaListener != null) | public org.omg.PortableServer.POA create_POA( String adapter_name, org.omg.PortableServer.POAManager a_POAManager, org.omg.CORBA.Policy[] policies) throws AdapterAlreadyExists, InvalidPolicy { if (!configured) throw new Error("POA: not configured!"); checkDestructionApparent(); String poa_name = POAUtil.maskStr(adapter_name); /* this implementation works only with a instance of org.jacorb.poa.POAManager */ if (a_POAManager != null && !(a_POAManager instanceof org.jacorb.poa.POAManager)) throw new ApplicationError("error: the POAManager is incompatible with type \"jacorb.poa.POAManager\"!" ); org.omg.CORBA.Policy[] policyList = null; if (policies != null) { // check the policy list for inconstancies short index = verifyPolicyList(policies); if (index != -1) throw new InvalidPolicy(index); // copy the policy list policyList = new org.omg.CORBA.Policy[policies.length]; for (int i=0; i<policies.length; i++) { policyList[i] = policies[i].copy(); } } POA child; synchronized (poaCreationLog) { if ((child = (POA)childs.get(poa_name)) != null && !child.isDestructionApparent()) { throw new AdapterAlreadyExists(); } // wait for completion of a concurrent destruction process if (child != null) { POA aChild; while ((aChild = (POA)childs.get(poa_name)) != null) { try { poaCreationLog.wait(); // notification is in unregisterChild } catch (InterruptedException e) { } // anyone else has won the race if (child != aChild) throw new AdapterAlreadyExists(); } } if (isShutdownInProgress()) throw new org.omg.CORBA.BAD_INV_ORDER(); POAManager aPOAManager = a_POAManager == null ? new POAManager(orb) : (POAManager) a_POAManager; child = new POA(orb, poa_name, this, aPOAManager, policyList); try { child.configure(configuration); } catch (ConfigurationException e) { throw new org.omg.CORBA.INTERNAL(e.getMessage()); } // notify a poa listener try { if (poaListener != null) poaListener.poaCreated(child); } catch (org.omg.CORBA.INTERNAL e) { aPOAManager.poaCreationFailed = true; throw e; } // register the child poa childs.put(poa_name, child); } return child; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/f7c2a446dc90eb1900333b90dedbc8d9350c6db7/POA.java/clean/src/org/jacorb/poa/POA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2358,
18,
362,
75,
18,
2617,
429,
2081,
18,
2419,
37,
752,
67,
2419,
37,
12,
514,
4516,
67,
529,
16,
4766,
5375,
2358,
18,
362,
75,
18,
2617,
429,
2081,
18,
2419,
37,
1318,
279,
67,
2419,
37,
1318,
16,
4766,
5375,
2358,
18,
362,
75,
18,
9428,
12536,
18,
2582,
8526,
8923,
13,
3639,
1216,
14238,
16686,
16,
1962,
2582,
565,
288,
3639,
309,
16051,
16449,
13,
5411,
604,
394,
1068,
2932,
2419,
37,
30,
486,
4351,
4442,
1769,
3639,
866,
6305,
313,
4062,
1294,
2938,
5621,
3639,
514,
8275,
69,
67,
529,
273,
13803,
37,
1304,
18,
4455,
1585,
12,
10204,
67,
529,
1769,
3639,
1748,
333,
4471,
6330,
1338,
598,
279,
791,
434,
2358,
18,
31390,
16640,
18,
1631,
69,
18,
2419,
37,
1318,
1195,
3639,
309,
261,
69,
67,
2419,
37,
1318,
480,
446,
597,
5411,
401,
12,
69,
67,
2419,
37,
1318,
1276,
2358,
18,
31390,
16640,
18,
1631,
69,
18,
2419,
37,
1318,
3719,
5411,
604,
394,
4257,
668,
2932,
1636,
30,
326,
13803,
37,
1318,
353,
24430,
598,
618,
1239,
31390,
16640,
18,
1631,
69,
18,
2419,
37,
1318,
2412,
4442,
11272,
3639,
2358,
18,
362,
75,
18,
9428,
12536,
18,
2582,
8526,
3329,
682,
273,
446,
31,
3639,
309,
261,
17407,
480,
446,
13,
3639,
288,
5411,
368,
866,
326,
3329,
666,
364,
316,
591,
541,
13689,
5411,
3025,
770,
273,
3929,
2582,
682,
12,
17407,
1769,
5411,
309,
261,
1615,
480,
300,
21,
13,
7734,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2358,
18,
362,
75,
18,
2617,
429,
2081,
18,
2419,
37,
752,
67,
2419,
37,
12,
514,
4516,
67,
529,
16,
4766,
5375,
2358,
18,
362,
75,
18,
2617,
429,
2081,
18,
2419,
37,
1318,
279,
67,
2419,
37,
1318,
16,
4766,
5375,
2358,
18,
362,
75,
18,
9428,
12536,
18,
2582,
8526,
8923,
13,
3639,
1216,
14238,
16686,
16,
1962,
2582,
565,
288,
3639,
309,
16051,
16449,
13,
5411,
604,
394,
1068,
2932,
2419,
37,
30,
486,
4351,
4442,
1769,
3639,
866,
6305,
313,
4062,
1294,
2938,
5621,
3639,
514,
8275,
69,
67,
529,
273,
13803,
37,
1304,
18,
4455,
1585,
12,
10204,
67,
529,
1769,
3639,
1748,
333,
4471,
6330,
1338,
598,
279,
791,
434,
2
] |
if (testStyleBit(SHOW_RESTORE_BUTTON)) { restoreItem = new ToolItem(menuTB, SWT.PUSH, 0); Image tbImage = WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_ETOOL_RESTORE_TRIMPART); restoreItem.setImage(tbImage); String menuTip = WorkbenchMessages.StandardSystemToolbar_Restore; restoreItem.setToolTipText(menuTip); restoreItem.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { closeGroup(); } public void widgetDefaultSelected(SelectionEvent e) { } }); } | Image tbImage = WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_ETOOL_NEW_FASTVIEW); menuItem.setImage(tbImage); String menuTip = WorkbenchMessages.FastViewBar_0; menuItem.setToolTipText(menuTip); | protected void createChildControls() { int newSide = getSide(); int orientation = Geometry.isHorizontal(newSide) ? SWT.HORIZONTAL : SWT.VERTICAL; // Create a ControlLayout apropriate for the new orientation CellLayout controlLayout; if (Geometry.isHorizontal(newSide)) { controlLayout = new CellLayout(0) .setMargins(0, 0) .setDefaultRow(Row.growing()) .setDefaultColumn(Row.fixed()) .setColumn(1, Row.growing()); } else { controlLayout = new CellLayout(1) .setMargins(0, 3) .setDefaultColumn(Row.growing()) .setDefaultRow(Row.fixed()) .setRow(1, Row.growing()); } // Set up the composite for the new orientation fvbComposite.setLayout(controlLayout); // Create a toolbar to show an 'Add FastView' menu 'button' menuTB = new ToolBar(fvbComposite, SWT.FLAT | orientation); if (isTrueFastView()) { // Construct an item to act as a 'menu button' (a la the PerspectiveSwitcher) showItem = new ToolItem(menuTB, SWT.PUSH, 0); Image tbImage = WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_ETOOL_NEW_FASTVIEW); showItem.setImage(tbImage); final String menuTip = WorkbenchMessages.FastViewBar_0; showItem.setToolTipText(menuTip); // Add an accessibility name menuTB.getAccessible().addAccessibleListener( new AccessibleAdapter() { public void getName(AccessibleEvent e) { if (e.childID == menuTB.indexOf(showItem)) { e.result = menuTip; } } }); // Bring up the 'Add Fast View' menu on a left -or- right button // click // Right click (context menu) showItem.addListener(SWT.MenuDetect, addMenuListener); // Left Click... showItem.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { Rectangle bb = DragUtil.getDisplayBounds(menuTB); showAddFastViewPopup(new Point(bb.x,bb.y+bb.height)); } public void widgetDefaultSelected(SelectionEvent e) { } }); // Bring up the 'Add Fast View' menu on a left -or- right button click // Right click (context menu) // NOTE: menuTB.addListener(SWT.MenuDetect, addMenuListener); } if (testStyleBit(SHOW_RESTORE_BUTTON)) { // Construct an item to act as a 'menu button' (a la the PerspectiveSwitcher) restoreItem = new ToolItem(menuTB, SWT.PUSH, 0); Image tbImage = WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_ETOOL_RESTORE_TRIMPART); restoreItem.setImage(tbImage); String menuTip = WorkbenchMessages.StandardSystemToolbar_Restore; restoreItem.setToolTipText(menuTip); // Left Click... restoreItem.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { closeGroup(); } public void widgetDefaultSelected(SelectionEvent e) { } }); } // Now that the ToolBar is populated calculate its size... Point size = menuTB.computeSize(SWT.DEFAULT, SWT.DEFAULT, true); menuTB.setBounds(0, 0, size.x, size.y); // try to get the layout correct... toolBarData = new CellData(); toolBarData.align(SWT.FILL, SWT.FILL); menuTB.setLayoutData(toolBarData); // Construct the ToolBar containing the 'Fast' views fastViewBar = new ToolBarManager(SWT.FLAT | SWT.WRAP | orientation); fastViewBar.add(new ShowFastViewContribution(this, window)); fastViewBar.createControl(fvbComposite); // Only show context menus for the 'true' fast view if (isTrueFastView()) getToolBar().addListener(SWT.MenuDetect, menuListener); IDragOverListener fastViewDragTarget = new IDragOverListener() { public IDropTarget drag(Control currentControl, Object draggedObject, Point position, Rectangle dragRectangle) { ToolItem targetItem = getToolItem(position); if (draggedObject instanceof ViewPane) { ViewPane pane = (ViewPane) draggedObject; // Can't drag views between windows if (pane.getWorkbenchWindow() != window) { return null; } List newList = new ArrayList(1); newList.add(draggedObject); return createDropTarget(newList, targetItem); } if (draggedObject instanceof ViewStack) { ViewStack folder = (ViewStack) draggedObject; if (folder.getWorkbenchWindow() != window) { return null; } List viewList = new ArrayList(folder.getItemCount()); LayoutPart[] children = folder.getChildren(); for (int idx = 0; idx < children.length; idx++) { if (!(children[idx] instanceof PartPlaceholder)) { viewList.add(children[idx]); } } return createDropTarget(viewList, targetItem); } return null; } }; toolBarData = new CellData(); toolBarData.align(SWT.FILL, SWT.FILL); getToolBar().setLayoutData(toolBarData); if (isTrueFastView()) { PresentationUtil.addDragListener(getToolBar(), dragListener); DragUtil.addDragTarget(getControl(), fastViewDragTarget); } update(true); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ccf1179ac27a17215a5660b2a9a93612cc79f934/FastViewBar.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
1763,
16795,
1435,
288,
3639,
509,
394,
8895,
273,
1322,
831,
5621,
3639,
509,
9820,
273,
8344,
18,
291,
14457,
12,
2704,
8895,
13,
692,
348,
8588,
18,
44,
20344,
7734,
294,
348,
8588,
18,
21654,
10109,
31,
7734,
368,
1788,
279,
8888,
3744,
513,
1764,
566,
340,
364,
326,
394,
9820,
3639,
8614,
3744,
3325,
3744,
31,
7734,
309,
261,
9823,
18,
291,
14457,
12,
2704,
8895,
3719,
288,
540,
202,
7098,
3744,
273,
394,
8614,
3744,
12,
20,
13,
540,
202,
202,
18,
542,
28528,
12,
20,
16,
374,
13,
540,
202,
202,
18,
542,
1868,
1999,
12,
1999,
18,
75,
492,
310,
10756,
540,
202,
202,
18,
542,
1868,
1494,
12,
1999,
18,
12429,
10756,
540,
202,
202,
18,
542,
1494,
12,
21,
16,
6556,
18,
75,
492,
310,
10663,
3639,
289,
469,
288,
540,
202,
7098,
3744,
273,
394,
8614,
3744,
12,
21,
13,
540,
202,
202,
18,
542,
28528,
12,
20,
16,
890,
13,
540,
202,
202,
18,
542,
1868,
1494,
12,
1999,
18,
75,
492,
310,
10756,
540,
202,
202,
18,
542,
1868,
1999,
12,
1999,
18,
12429,
10756,
540,
202,
202,
18,
542,
1999,
12,
21,
16,
6556,
18,
75,
492,
310,
10663,
3639,
289,
7734,
368,
1000,
731,
326,
9635,
364,
326,
394,
9820,
3639,
10097,
70,
9400,
18,
542,
3744,
12,
7098,
3744,
1769,
3639,
368,
1788,
279,
12748,
358,
2405,
392,
296,
986,
9545,
1767,
11,
3824,
296,
5391,
11,
3639,
3824,
25730,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
1763,
16795,
1435,
288,
3639,
509,
394,
8895,
273,
1322,
831,
5621,
3639,
509,
9820,
273,
8344,
18,
291,
14457,
12,
2704,
8895,
13,
692,
348,
8588,
18,
44,
20344,
7734,
294,
348,
8588,
18,
21654,
10109,
31,
7734,
368,
1788,
279,
8888,
3744,
513,
1764,
566,
340,
364,
326,
394,
9820,
3639,
8614,
3744,
3325,
3744,
31,
7734,
309,
261,
9823,
18,
291,
14457,
12,
2704,
8895,
3719,
288,
540,
202,
7098,
3744,
273,
394,
8614,
3744,
12,
20,
13,
540,
202,
202,
18,
542,
28528,
12,
20,
16,
374,
13,
540,
202,
202,
18,
542,
1868,
1999,
12,
1999,
18,
75,
492,
310,
10756,
540,
202,
202,
18,
542,
1868,
1494,
12,
1999,
2
] |
throw new ProfileActivationException( "Cannot read profiles.xml resource from directory: " + projectDir, e ); | throw new ProfileActivationException( "Cannot read profiles.xml resource from directory: " + projectDir, e ); | private void loadProjectExternalProfiles( ProfileManager profileManager, File projectDir ) throws ProfileActivationException { if ( projectDir != null ) { try { ProfilesRoot root = profilesBuilder.buildProfiles( projectDir ); if ( root != null ) { for ( Iterator it = root.getProfiles().iterator(); it.hasNext(); ) { org.apache.maven.profiles.Profile rawProfile = (org.apache.maven.profiles.Profile) it.next(); profileManager.addProfile( ProfilesConversionUtils.convertFromProfileXmlProfile( rawProfile ) ); } } } catch ( IOException e ) { throw new ProfileActivationException( "Cannot read profiles.xml resource from directory: " + projectDir, e ); } catch ( XmlPullParserException e ) { throw new ProfileActivationException( "Cannot parse profiles.xml resource from directory: " + projectDir, e ); } } } | 47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/d466205274b1a04edc89551db56aa32049ee2b39/DefaultMavenProjectBuilder.java/clean/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1262,
4109,
6841,
12450,
12,
11357,
1318,
3042,
1318,
16,
1387,
1984,
1621,
262,
3639,
1216,
11357,
14857,
503,
565,
288,
3639,
309,
261,
1984,
1621,
480,
446,
262,
3639,
288,
5411,
775,
5411,
288,
7734,
1186,
2354,
2375,
1365,
273,
11788,
1263,
18,
3510,
12450,
12,
1984,
1621,
11272,
7734,
309,
261,
1365,
480,
446,
262,
7734,
288,
10792,
364,
261,
4498,
518,
273,
1365,
18,
588,
12450,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
10792,
288,
13491,
2358,
18,
19211,
18,
81,
7638,
18,
18314,
18,
4029,
1831,
4029,
273,
261,
3341,
18,
19211,
18,
81,
7638,
18,
18314,
18,
4029,
13,
518,
18,
4285,
5621,
13491,
3042,
1318,
18,
1289,
4029,
12,
1186,
2354,
6814,
1989,
18,
6283,
1265,
4029,
4432,
4029,
12,
1831,
4029,
262,
11272,
10792,
289,
7734,
289,
5411,
289,
5411,
1044,
261,
1860,
425,
262,
5411,
288,
7734,
604,
394,
11357,
14857,
503,
12,
315,
4515,
855,
11788,
18,
2902,
1058,
628,
1867,
30,
315,
397,
1984,
1621,
16,
425,
11272,
5411,
289,
5411,
1044,
261,
5714,
9629,
25746,
425,
262,
5411,
288,
7734,
604,
394,
11357,
14857,
503,
12,
315,
4515,
1109,
11788,
18,
2902,
1058,
628,
1867,
30,
315,
397,
1984,
1621,
16,
425,
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,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1262,
4109,
6841,
12450,
12,
11357,
1318,
3042,
1318,
16,
1387,
1984,
1621,
262,
3639,
1216,
11357,
14857,
503,
565,
288,
3639,
309,
261,
1984,
1621,
480,
446,
262,
3639,
288,
5411,
775,
5411,
288,
7734,
1186,
2354,
2375,
1365,
273,
11788,
1263,
18,
3510,
12450,
12,
1984,
1621,
11272,
7734,
309,
261,
1365,
480,
446,
262,
7734,
288,
10792,
364,
261,
4498,
518,
273,
1365,
18,
588,
12450,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
10792,
288,
13491,
2358,
18,
19211,
18,
81,
7638,
18,
18314,
18,
4029,
1831,
4029,
273,
261,
3341,
18,
19211,
18,
81,
7638,
18,
18314,
18,
4029,
13,
518,
18,
4285,
5621,
13491,
3042,
1318,
18,
1289,
4029,
2
] |
final XFormsControl xformsControl = (XFormsControl) eventTarget; | public void executeExternalEvent(PipelineContext pipelineContext, String eventName, String controlId, String otherControlId, String contextString, Element filesElement) { // Get event target object final XFormsEventTarget eventTarget; { final Object eventTargetObject = getObjectById(pipelineContext, controlId); if (!(eventTargetObject instanceof XFormsEventTarget)) { if (XFormsUtils.isExceptionOnInvalidClientControlId()) { throw new OXFException("Event target id '" + controlId + "' is not an XFormsEventTarget."); } else { if (XFormsServer.logger.isDebugEnabled()) { XFormsServer.logger.debug("XForms - ignoring client event with invalid control id: " + controlId); } return; } } eventTarget = (XFormsEventTarget) eventTargetObject; } // Don't allow for events on non-relevant, readonly or xforms:output controls (we accept focus events on // xforms:output though). // This is also a security measures that also ensures that somebody is not able to change values in an instance // by hacking external events. if (eventTarget instanceof XFormsControl) { // Target is a control final XFormsControl xformsControl = (XFormsControl) eventTarget; if (!xformsControl.isRelevant() || (xformsControl.isReadonly() && !(xformsControl instanceof XFormsOutputControl))) { // Controls accept event only if they are relevant and not readonly, except for xforms:output which may be readonly return; } if (!isExplicitlyAllowedExternalEvent(eventName)) { // The event is not explicitly allowed: check for implicitly allowed events if (xformsControl instanceof XFormsOutputControl) { if (allowedXFormsOutputExternalEvents.get(eventName) == null) { return; } } else { if (allowedExternalEvents.get(eventName) == null) { return; } } } } else if (eventTarget instanceof XFormsModelSubmission) { // Target is a submission if (!isExplicitlyAllowedExternalEvent(eventName)) { // The event is not explicitly allowed: check for implicitly allowed events if (allowedXFormsSubmissionExternalEvents.get(eventName) == null) { return; } } } else if (eventTarget instanceof XFormsContainingDocument) { // Target is the containing document // Check for implicitly allowed events if (allowedXFormsContainingDocumentExternalEvents.get(eventName) == null) { return; } } else if (eventTarget instanceof XXFormsDialogControl) { // Target is a dialog // Check for implicitly allowed events if (allowedXXFormsDialogExternalEvents.get(eventName) == null) { return; } } else { // Target is not a control if (!isExplicitlyAllowedExternalEvent(eventName)) { // The event is not explicitly allowed return; } } // Get other event target final XFormsEventTarget otherEventTarget; { final Object otherEventTargetObject = (otherControlId == null) ? null : getObjectById(pipelineContext, otherControlId); if (otherEventTargetObject == null) { otherEventTarget = null; } else if (!(otherEventTargetObject instanceof XFormsEventTarget)) { if (XFormsUtils.isExceptionOnInvalidClientControlId()) { throw new OXFException("Other event target id '" + otherControlId + "' is not an XFormsEventTarget."); } else { if (XFormsServer.logger.isDebugEnabled()) { XFormsServer.logger.debug("XForms - ignoring client event with invalid second control id: " + otherControlId); } return; } } else { otherEventTarget = (XFormsEventTarget) otherEventTargetObject; } } // Handle repeat focus if (controlId.indexOf(XFormsConstants.REPEAT_HIERARCHY_SEPARATOR_1) != -1) { // The event target is in a repeated structure, so make sure it gets repeat focus dispatchEvent(pipelineContext, new XXFormsRepeatFocusEvent(eventTarget)); } // Don't actually dispatch event to xforms:output (but repeat focus may have been dispatched) if (eventTarget instanceof XFormsOutputControl) { return; // NOTE: We always receive DOMFocusIn from the client on xforms:output. Would it make sense to turn this // into a DOMActivate if the control is not read-only?// final XFormsOutputControl xformsOutputControl = (XFormsOutputControl) eventTarget;// if (xformsOutputControl.isReadonly()) ... } // Create event final XFormsEvent xformsEvent = XFormsEventFactory.createEvent(eventName, eventTarget, otherEventTarget, true, true, true, contextString, null, null, filesElement); // Interpret event if (xformsEvent instanceof XXFormsValueChangeWithFocusChangeEvent) { // 4.6.7 Sequence: Value Change // What we want to do here is set the value on the initial controls state, as the value // has already been changed on the client. This means that this event(s) must be the // first to come! final XXFormsValueChangeWithFocusChangeEvent concreteEvent = (XXFormsValueChangeWithFocusChangeEvent) xformsEvent; // 1. xforms-recalculate // 2. xforms-revalidate // 3. xforms-refresh performs reevaluation of UI binding expressions then dispatches // these events according to value changes, model item property changes and validity // changes // [n] xforms-value-changed, [n] xforms-valid or xforms-invalid, [n] xforms-enabled or // xforms-disabled, [n] xforms-optional or xforms-required, [n] xforms-readonly or // xforms-readwrite, [n] xforms-out-of-range or xforms-in-range final String targetControlEffectiveId; { // Set current context to control final XFormsValueControl valueXFormsControl = (XFormsValueControl) concreteEvent.getTargetObject(); targetControlEffectiveId = valueXFormsControl.getEffectiveId(); // Notify the control of the value change final String eventValue = concreteEvent.getNewValue(); valueXFormsControl.setExternalValue(pipelineContext, eventValue); } { // NOTE: Recalculate and revalidate are done with the automatic deferred updates // Handle focus change DOMFocusOut / DOMFocusIn if (concreteEvent.getOtherTargetObject() != null) { final XFormsControl sourceXFormsControl = (XFormsControl) getObjectById(pipelineContext, targetControlEffectiveId); final XFormsControl otherTargetXFormsControl = (XFormsControl) getObjectById(pipelineContext, ((XFormsControl) concreteEvent.getOtherTargetObject()).getEffectiveId()); // We have a focus change (otherwise, the focus is assumed to remain the same) if (sourceXFormsControl != null) dispatchEvent(pipelineContext, new XFormsDOMFocusOutEvent(sourceXFormsControl)); if (otherTargetXFormsControl != null) dispatchEvent(pipelineContext, new XFormsDOMFocusInEvent(otherTargetXFormsControl)); } // NOTE: Refresh is done with the automatic deferred updates } } else { // Dispatch any other allowed event dispatchEvent(pipelineContext, xformsEvent); } } | 52783 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52783/143fa48b17c3962d80ea966a7703cf5f917680be/XFormsContainingDocument.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsContainingDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
6841,
1133,
12,
8798,
1042,
5873,
1042,
16,
514,
7933,
16,
514,
3325,
548,
16,
514,
1308,
3367,
548,
16,
514,
819,
780,
16,
3010,
1390,
1046,
13,
288,
3639,
368,
968,
871,
1018,
733,
3639,
727,
1139,
18529,
1133,
2326,
871,
2326,
31,
3639,
288,
5411,
727,
1033,
871,
2326,
921,
273,
6455,
5132,
12,
14511,
1042,
16,
3325,
548,
1769,
5411,
309,
16051,
12,
2575,
2326,
921,
1276,
1139,
18529,
1133,
2326,
3719,
288,
7734,
309,
261,
60,
18529,
1989,
18,
291,
503,
1398,
1941,
1227,
3367,
548,
10756,
288,
10792,
604,
394,
531,
60,
42,
503,
2932,
1133,
1018,
612,
2119,
397,
3325,
548,
397,
2491,
353,
486,
392,
1139,
18529,
1133,
2326,
1199,
1769,
7734,
289,
469,
288,
10792,
309,
261,
60,
18529,
2081,
18,
4901,
18,
291,
2829,
1526,
10756,
288,
13491,
1139,
18529,
2081,
18,
4901,
18,
4148,
2932,
60,
18529,
300,
14398,
1004,
871,
598,
2057,
3325,
612,
30,
315,
397,
3325,
548,
1769,
10792,
289,
10792,
327,
31,
7734,
289,
5411,
289,
5411,
871,
2326,
273,
261,
60,
18529,
1133,
2326,
13,
871,
2326,
921,
31,
3639,
289,
3639,
368,
7615,
1404,
1699,
364,
2641,
603,
1661,
17,
27719,
16,
17102,
578,
619,
9741,
30,
2844,
11022,
261,
1814,
2791,
7155,
2641,
603,
3639,
368,
619,
9741,
30,
2844,
11376,
2934,
3639,
368,
1220,
353,
2546,
279,
4373,
22692,
716,
2546,
11932,
716,
2690,
3432,
353,
486,
7752,
358,
2549,
924,
316,
392,
791,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
6841,
1133,
12,
8798,
1042,
5873,
1042,
16,
514,
7933,
16,
514,
3325,
548,
16,
514,
1308,
3367,
548,
16,
514,
819,
780,
16,
3010,
1390,
1046,
13,
288,
3639,
368,
968,
871,
1018,
733,
3639,
727,
1139,
18529,
1133,
2326,
871,
2326,
31,
3639,
288,
5411,
727,
1033,
871,
2326,
921,
273,
6455,
5132,
12,
14511,
1042,
16,
3325,
548,
1769,
5411,
309,
16051,
12,
2575,
2326,
921,
1276,
1139,
18529,
1133,
2326,
3719,
288,
7734,
309,
261,
60,
18529,
1989,
18,
291,
503,
1398,
1941,
1227,
3367,
548,
10756,
288,
10792,
604,
394,
531,
60,
42,
503,
2932,
1133,
1018,
612,
2119,
397,
3325,
548,
397,
2491,
353,
486,
392,
1139,
18529,
1133,
2
] |
|
IScopeContext projScope = new ProjectScope(aptProject.getJavaProject().getProject()); IEclipsePreferences projPrefs = projScope.getNode(AptPlugin.PLUGIN_ID); IPreferenceChangeListener projListener = new IPreferenceChangeListener() { public void preferenceChange(PreferenceChangeEvent event) { final String newValue = (String)event.getNewValue(); if (newValue == null) { return; } final String oldValue = (String)event.getOldValue(); if (newValue.equals(oldValue)) { return; } if (AptPreferenceConstants.APT_GENSRCDIR.equals(event.getKey())) { final boolean aptEnabled = AptConfig.isEnabled(_aptProject.getJavaProject()); if( AptPlugin.DEBUG ) AptPlugin.trace("configure generated source directory new value = " + newValue + " old value = " + oldValue + " APT is enabled = " + aptEnabled); if( aptEnabled ) configureGeneratedSourceFolder( newValue, oldValue ); else setGeneratedSourceFolderName(newValue); } else if(AptPreferenceConstants.APT_ENABLED.equals(event.getKey()) ){ if( AptPlugin.DEBUG ){ AptPlugin.trace("Got preference change event for " + AptPreferenceConstants.APT_ENABLED ); } if(newValue.equals(oldValue)){ return; } final boolean isEnabling = Boolean.parseBoolean(newValue); if( AptPlugin.DEBUG ){ if( isEnabling ) AptPlugin.trace("enabling APT for " + _aptProject.getJavaProject().getElementName()); else AptPlugin.trace("diabling APT " + _aptProject.getJavaProject().getElementName()); } if( isEnabling ) configureGeneratedSourceFolder(); else{ final IFolder srcFolder = getGeneratedSourceFolder(); projectClean(true); resetGeneratedSrcFolder(srcFolder, false); } } } }; projPrefs.addPreferenceChangeListener(projListener); IScopeContext wkspScope = new InstanceScope(); IEclipsePreferences wkspPrefs = wkspScope.getNode(AptPlugin.PLUGIN_ID); IPreferenceChangeListener wkspListener = new IPreferenceChangeListener() { public void preferenceChange(PreferenceChangeEvent event) { if (AptPreferenceConstants.APT_GENSRCDIR.equals(event.getKey())) { configureGeneratedSourceFolder( AptConfig.getGenSrcDir(javaProject), null ); } } }; wkspPrefs.addPreferenceChangeListener(wkspListener); | public GeneratedFileManager(final AptProject aptProject) { _aptProject = aptProject; final IJavaProject javaProject = aptProject.getJavaProject(); // register a preference listener so that we can watch for changes // to the gen src dir at the project scope... IScopeContext projScope = new ProjectScope(aptProject.getJavaProject().getProject()); IEclipsePreferences projPrefs = projScope.getNode(AptPlugin.PLUGIN_ID); IPreferenceChangeListener projListener = new IPreferenceChangeListener() { public void preferenceChange(PreferenceChangeEvent event) { final String newValue = (String)event.getNewValue(); if (newValue == null) { // Null is used to indicate this preference has // been removed, as the project has been deleted. // We do nothing return; } final String oldValue = (String)event.getOldValue(); if (newValue.equals(oldValue)) { // No-op -- same config return; } if (AptPreferenceConstants.APT_GENSRCDIR.equals(event.getKey())) { final boolean aptEnabled = AptConfig.isEnabled(_aptProject.getJavaProject()); if( AptPlugin.DEBUG ) AptPlugin.trace("configure generated source directory new value = " + //$NON-NLS-1$ newValue + " old value = " + oldValue + //$NON-NLS-1$ " APT is enabled = " + aptEnabled); //$NON-NLS-1$ // If APT is enabled, // clean up the old cp entry, delete the old folder, // create the new one and update the classpath. if( aptEnabled ) configureGeneratedSourceFolder( newValue, oldValue ); else setGeneratedSourceFolderName(newValue); } else if(AptPreferenceConstants.APT_ENABLED.equals(event.getKey()) ){ if( AptPlugin.DEBUG ){ AptPlugin.trace("Got preference change event for " + AptPreferenceConstants.APT_ENABLED ); //$NON-NLS-1$ } // no-op; if(newValue.equals(oldValue)){ return; } final boolean isEnabling = Boolean.parseBoolean(newValue); if( AptPlugin.DEBUG ){ if( isEnabling ) AptPlugin.trace("enabling APT for " + _aptProject.getJavaProject().getElementName()); //$NON-NLS-1$ else AptPlugin.trace("diabling APT " + _aptProject.getJavaProject().getElementName()); //$NON-NLS-1$ } if( isEnabling ) configureGeneratedSourceFolder(); else{ final IFolder srcFolder = getGeneratedSourceFolder(); projectClean(true); resetGeneratedSrcFolder(srcFolder, false); } } } }; projPrefs.addPreferenceChangeListener(projListener); // ...and at the workspace scope. // Note we check all projects, even those that have project-specific // settings, when the workspace setting changes. For projects with // project-specific settings, the value of the setting won't change // so the request will be ignored. IScopeContext wkspScope = new InstanceScope(); IEclipsePreferences wkspPrefs = wkspScope.getNode(AptPlugin.PLUGIN_ID); IPreferenceChangeListener wkspListener = new IPreferenceChangeListener() { public void preferenceChange(PreferenceChangeEvent event) { if (AptPreferenceConstants.APT_GENSRCDIR.equals(event.getKey())) { configureGeneratedSourceFolder( AptConfig.getGenSrcDir(javaProject), null ); } } }; wkspPrefs.addPreferenceChangeListener(wkspListener); // get generated source dir from config // default value is set in org.eclipse.jdt.apt.core.internal.util.AptCorePreferenceInitializer _generatedSourceFolderName = AptConfig.getString( javaProject, AptPreferenceConstants.APT_GENSRCDIR); // properly initialize the GeneratedFileManager if project path is up-to-date and the generated // source folder is there. final IFolder folder = javaProject.getProject().getFolder(_generatedSourceFolderName); if(folder.exists()){ boolean uptodate = false; try{ uptodate = isProjectClassPathUpToDate(javaProject, null, folder.getFullPath(), null); }catch(JavaModelException e){ e.printStackTrace(); } if( uptodate ) _generatedSourceFolder = folder; } } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/52597fb7db7ddfe8d0d19142d700054ae1d908a1/GeneratedFileManager.java/buggy/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/generatedfile/GeneratedFileManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
11025,
812,
1318,
12,
6385,
432,
337,
4109,
279,
337,
4109,
13,
288,
202,
202,
67,
1657,
4109,
273,
279,
337,
4109,
31,
202,
202,
6385,
467,
5852,
4109,
2252,
4109,
273,
279,
337,
4109,
18,
588,
5852,
4109,
5621,
9506,
202,
759,
1744,
279,
11555,
2991,
1427,
716,
732,
848,
4267,
364,
3478,
3196,
202,
759,
358,
326,
3157,
1705,
1577,
622,
326,
1984,
2146,
2777,
202,
202,
45,
3876,
1042,
10296,
3876,
273,
394,
5420,
3876,
12,
1657,
4109,
18,
588,
5852,
4109,
7675,
588,
4109,
10663,
202,
202,
8732,
71,
10472,
12377,
10296,
1386,
2556,
273,
10296,
3876,
18,
588,
907,
12,
37,
337,
3773,
18,
19415,
67,
734,
1769,
202,
202,
45,
9624,
15744,
10296,
2223,
273,
394,
467,
9624,
15744,
1435,
288,
1082,
202,
482,
918,
11555,
3043,
12,
9624,
20930,
871,
13,
288,
6862,
9506,
202,
6385,
514,
6129,
273,
261,
780,
13,
2575,
18,
588,
1908,
620,
5621,
9506,
202,
430,
261,
2704,
620,
422,
446,
13,
288,
6862,
202,
759,
4112,
353,
1399,
358,
10768,
333,
11555,
711,
6862,
202,
759,
2118,
3723,
16,
487,
326,
1984,
711,
2118,
4282,
18,
6862,
202,
759,
1660,
741,
5083,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
6385,
514,
11144,
273,
261,
780,
13,
2575,
18,
588,
7617,
620,
5621,
9506,
202,
430,
261,
2704,
620,
18,
14963,
12,
1673,
620,
3719,
288,
6862,
202,
759,
2631,
17,
556,
1493,
1967,
642,
6862,
202,
2463,
31,
9506,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
11025,
812,
1318,
12,
6385,
432,
337,
4109,
279,
337,
4109,
13,
288,
202,
202,
67,
1657,
4109,
273,
279,
337,
4109,
31,
202,
202,
6385,
467,
5852,
4109,
2252,
4109,
273,
279,
337,
4109,
18,
588,
5852,
4109,
5621,
9506,
202,
759,
1744,
279,
11555,
2991,
1427,
716,
732,
848,
4267,
364,
3478,
3196,
202,
759,
358,
326,
3157,
1705,
1577,
622,
326,
1984,
2146,
2777,
202,
202,
45,
3876,
1042,
10296,
3876,
273,
394,
5420,
3876,
12,
1657,
4109,
18,
588,
5852,
4109,
7675,
588,
4109,
10663,
202,
202,
8732,
71,
10472,
12377,
10296,
1386,
2556,
273,
10296,
3876,
18,
588,
907,
12,
37,
337,
3773,
18,
19415,
67,
734,
1769,
202,
202,
45,
2
] |
|
} case Token.STRING: i = getSourceString(source, i + 1, srcData); result.append('"'); result.append(ScriptRuntime.escapeString((String)srcData[0])); result.append('"'); | case Token.NUMBER: i = printSourceNumber(source, i + 1, result); | private static void decompile_r(Object encodedSourcesTree, boolean nested, boolean justbody, Object[] srcData, int indent, int indentGap, int caseGap, StringBuffer result) { String source; Object[] childNodes = null; if (encodedSourcesTree == null) { source = null; } else if (encodedSourcesTree instanceof String) { source = (String)encodedSourcesTree; } else { childNodes = (Object[])encodedSourcesTree; source = (String)childNodes[0]; } if (source == null) { return; } int length = source.length(); if (length == 0) { return; } // Spew tokens in source, for debugging. // as TYPE number char if (printSource) { System.err.println("length:" + length); for (int i = 0; i < length; ++i) { // Note that tokenToName will fail unless Context.printTrees // is true. String tokenname = null; if (Token.printNames) { tokenname = Token.name(source.charAt(i)); } if (tokenname == null) { tokenname = "---"; } String pad = tokenname.length() > 7 ? "\t" : "\t\t"; System.err.println (tokenname + pad + (int)source.charAt(i) + "\t'" + ScriptRuntime.escapeString (source.substring(i, i+1)) + "'"); } System.err.println(); } if (!nested) { // add an initial newline to exactly match js. if (!justbody) result.append('\n'); for (int j = 0; j < indent; j++) result.append(' '); } int i = 0; // If the first token is Token.SCRIPT, then we're // decompiling the toplevel script, otherwise it a function // and should start with Token.FUNCTION int token = source.charAt(i); ++i; if (token == Token.FUNCTION) { if (!justbody) { result.append("function "); } else { // Skip past the entire function header pass the next EOL. skipLoop: for (;;) { token = source.charAt(i); ++i; switch (token) { case Token.EOL: break skipLoop; case Token.NAME: // Skip function or argument name i = getSourceString(source, i, null); break; case Token.LP: case Token.COMMA: case Token.RP: break; default: // Bad function header throw new RuntimeException(); } } } } else if (token != Token.SCRIPT) { // Bad source header throw new RuntimeException(); } while (i < length) { switch(source.charAt(i)) { case Token.NAME: case Token.REGEXP: // re-wrapped in '/'s in parser... /* NAMEs are encoded as NAME, (char) length, string... * Note that lookahead for detecting labels depends on * this encoding; change there if this changes. * Also change function-header skipping code above, * used when decompling under decompileFunctionBody. */ i = getSourceString(source, i + 1, srcData); result.append((String)srcData[0]); continue; case Token.NUMBER: { i = getSourceNumber(source, i + 1, srcData); double number = ((Number)srcData[0]).doubleValue(); result.append(ScriptRuntime.numberToString(number, 10)); continue; } case Token.STRING: i = getSourceString(source, i + 1, srcData); result.append('"'); result.append(ScriptRuntime.escapeString((String)srcData[0])); result.append('"'); continue; case Token.PRIMARY: ++i; switch(source.charAt(i)) { case Token.TRUE: result.append("true"); break; case Token.FALSE: result.append("false"); break; case Token.NULL: result.append("null"); break; case Token.THIS: result.append("this"); break; case Token.TYPEOF: result.append("typeof"); break; case Token.VOID: result.append("void"); break; case Token.UNDEFINED: result.append("undefined"); break; } break; case Token.FUNCTION: { /* decompile a FUNCTION token as an escape; call * toString on the nth enclosed nested function, * where n is given by the byte that follows. */ ++i; int functionIndex = source.charAt(i); if (childNodes == null || functionIndex + 1 > childNodes.length) { throw Context.reportRuntimeError(Context.getMessage1 ("msg.no.function.ref.found", new Integer(functionIndex))); } decompile_r(childNodes[functionIndex + 1], true, false, srcData, indent, indentGap, caseGap, result); break; } case Token.COMMA: result.append(", "); break; case Token.LC: if (nextIs(source, length, i, Token.EOL)) indent += indentGap; result.append('{'); break; case Token.RC: /* don't print the closing RC if it closes the * toplevel function and we're called from * decompileFunctionBody. */ if (justbody && !nested && i + 1 == length) break; if (nextIs(source, length, i, Token.EOL)) indent -= indentGap; if (nextIs(source, length, i, Token.WHILE) || nextIs(source, length, i, Token.ELSE)) { indent -= indentGap; result.append("} "); } else result.append('}'); break; case Token.LP: result.append('('); break; case Token.RP: if (nextIs(source, length, i, Token.LC)) result.append(") "); else result.append(')'); break; case Token.LB: result.append('['); break; case Token.RB: result.append(']'); break; case Token.EOL: result.append('\n'); /* add indent if any tokens remain, * less setback if next token is * a label, case or default. */ if (i + 1 < length) { int less = 0; int nextToken = source.charAt(i + 1); if (nextToken == Token.CASE || nextToken == Token.DEFAULT) { less = indentGap - caseGap; } else if (nextToken == Token.RC) { less = indentGap; } /* elaborate check against label... skip past a * following inlined NAME and look for a COLON. * Depends on how NAME is encoded. */ else if (nextToken == Token.NAME) { int afterName = getSourceString(source, i + 2, null); if (source.charAt(afterName) == Token.COLON) less = indentGap; } for (; less < indent; less++) result.append(' '); } break; case Token.DOT: result.append('.'); break; case Token.NEW: result.append("new "); break; case Token.DELPROP: result.append("delete "); break; case Token.IF: result.append("if "); break; case Token.ELSE: result.append("else "); break; case Token.FOR: result.append("for "); break; case Token.IN: result.append(" in "); break; case Token.WITH: result.append("with "); break; case Token.WHILE: result.append("while "); break; case Token.DO: result.append("do "); break; case Token.TRY: result.append("try "); break; case Token.CATCH: result.append("catch "); break; case Token.FINALLY: result.append("finally "); break; case Token.THROW: result.append("throw "); break; case Token.SWITCH: result.append("switch "); break; case Token.BREAK: if (nextIs(source, length, i, Token.NAME)) result.append("break "); else result.append("break"); break; case Token.CONTINUE: if (nextIs(source, length, i, Token.NAME)) result.append("continue "); else result.append("continue"); break; case Token.CASE: result.append("case "); break; case Token.DEFAULT: result.append("default"); break; case Token.RETURN: if (nextIs(source, length, i, Token.SEMI)) result.append("return"); else result.append("return "); break; case Token.VAR: result.append("var "); break; case Token.SEMI: if (nextIs(source, length, i, Token.EOL)) // statement termination result.append(';'); else // separators in FOR result.append("; "); break; case Token.ASSIGN: ++i; switch(source.charAt(i)) { case Token.NOP: result.append(" = "); break; case Token.ADD: result.append(" += "); break; case Token.SUB: result.append(" -= "); break; case Token.MUL: result.append(" *= "); break; case Token.DIV: result.append(" /= "); break; case Token.MOD: result.append(" %= "); break; case Token.BITOR: result.append(" |= "); break; case Token.BITXOR: result.append(" ^= "); break; case Token.BITAND: result.append(" &= "); break; case Token.LSH: result.append(" <<= "); break; case Token.RSH: result.append(" >>= "); break; case Token.URSH: result.append(" >>>= "); break; } break; case Token.HOOK: result.append(" ? "); break; case Token.OBJLIT: // pun OBJLIT to mean colon in objlit property initialization. // this needs to be distinct from COLON in the general case // to distinguish from the colon in a ternary... which needs // different spacing. result.append(':'); break; case Token.COLON: if (nextIs(source, length, i, Token.EOL)) // it's the end of a label result.append(':'); else // it's the middle part of a ternary result.append(" : "); break; case Token.OR: result.append(" || "); break; case Token.AND: result.append(" && "); break; case Token.BITOR: result.append(" | "); break; case Token.BITXOR: result.append(" ^ "); break; case Token.BITAND: result.append(" & "); break; case Token.EQOP: ++i; switch(source.charAt(i)) { case Token.SHEQ: result.append(" === "); break; case Token.SHNE: result.append(" !== "); break; case Token.EQ: result.append(" == "); break; case Token.NE: result.append(" != "); break; } break; case Token.RELOP: ++i; switch(source.charAt(i)) { case Token.LE: result.append(" <= "); break; case Token.LT: result.append(" < "); break; case Token.GE: result.append(" >= "); break; case Token.GT: result.append(" > "); break; case Token.INSTANCEOF: result.append(" instanceof "); break; } break; case Token.SHOP: ++i; switch(source.charAt(i)) { case Token.LSH: result.append(" << "); break; case Token.RSH: result.append(" >> "); break; case Token.URSH: result.append(" >>> "); break; } break; case Token.UNARYOP: ++i; switch(source.charAt(i)) { case Token.TYPEOF: result.append("typeof "); break; case Token.VOID: result.append("void "); break; case Token.NOT: result.append('!'); break; case Token.BITNOT: result.append('~'); break; case Token.ADD: result.append('+'); break; case Token.SUB: result.append('-'); break; } break; case Token.INC: result.append("++"); break; case Token.DEC: result.append("--"); break; case Token.ADD: result.append(" + "); break; case Token.SUB: result.append(" - "); break; case Token.MUL: result.append(" * "); break; case Token.DIV: result.append(" / "); break; case Token.MOD: result.append(" % "); break; default: // If we don't know how to decompile it, raise an exception. throw new RuntimeException(); } ++i; } // add that trailing newline if it's an outermost function. if (!nested && !justbody) result.append('\n'); } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/1c08dda3b8a2df6de8bd446cb70ef3dacc9801b3/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
443,
11100,
67,
86,
12,
921,
3749,
8628,
2471,
16,
4766,
565,
1250,
4764,
16,
1250,
2537,
3432,
16,
4766,
565,
1033,
8526,
1705,
751,
16,
509,
3504,
16,
4766,
565,
509,
3504,
14001,
16,
509,
648,
14001,
16,
4766,
565,
6674,
563,
13,
565,
288,
3639,
514,
1084,
31,
3639,
1033,
8526,
10582,
273,
446,
31,
3639,
309,
261,
10787,
8628,
2471,
422,
446,
13,
288,
5411,
1084,
273,
446,
31,
3639,
289,
469,
309,
261,
10787,
8628,
2471,
1276,
514,
13,
288,
5411,
1084,
273,
261,
780,
13,
10787,
8628,
2471,
31,
3639,
289,
469,
288,
5411,
10582,
273,
261,
921,
63,
5717,
10787,
8628,
2471,
31,
5411,
1084,
273,
261,
780,
13,
3624,
3205,
63,
20,
15533,
3639,
289,
3639,
309,
261,
3168,
422,
446,
13,
288,
327,
31,
289,
3639,
509,
769,
273,
1084,
18,
2469,
5621,
3639,
309,
261,
2469,
422,
374,
13,
288,
327,
31,
289,
3639,
368,
348,
347,
91,
2430,
316,
1084,
16,
364,
10450,
18,
3639,
368,
487,
3463,
1300,
1149,
3639,
309,
261,
1188,
1830,
13,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
2469,
2773,
397,
769,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
769,
31,
965,
77,
13,
288,
7734,
368,
3609,
716,
1147,
774,
461,
903,
2321,
3308,
1772,
18,
1188,
26590,
7734,
368,
353,
638,
18,
7734,
514,
1147,
529,
273,
446,
31,
7734,
309,
261,
1345,
18,
1188,
1557,
13,
288,
10792,
1147,
529,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
443,
11100,
67,
86,
12,
921,
3749,
8628,
2471,
16,
4766,
565,
1250,
4764,
16,
1250,
2537,
3432,
16,
4766,
565,
1033,
8526,
1705,
751,
16,
509,
3504,
16,
4766,
565,
509,
3504,
14001,
16,
509,
648,
14001,
16,
4766,
565,
6674,
563,
13,
565,
288,
3639,
514,
1084,
31,
3639,
1033,
8526,
10582,
273,
446,
31,
3639,
309,
261,
10787,
8628,
2471,
422,
446,
13,
288,
5411,
1084,
273,
446,
31,
3639,
289,
469,
309,
261,
10787,
8628,
2471,
1276,
514,
13,
288,
5411,
1084,
273,
261,
780,
13,
10787,
8628,
2471,
31,
3639,
289,
469,
288,
5411,
10582,
273,
261,
921,
63,
5717,
10787,
8628,
2471,
31,
5411,
1084,
273,
261,
780,
13,
2
] |
private boolean hasImage(WorkbenchWizardElement selectedObject) { | private boolean hasImage(IWizardDescriptor selectedObject) { | private boolean hasImage(WorkbenchWizardElement selectedObject) { if (selectedObject == null) return false; if (selectedObject.getDescriptionImage() != null) return true; return false; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3d694fa5580f66413fa910c2e54a03aaef1cec34/NewWizardNewPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/NewWizardNewPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
711,
2040,
12,
45,
27130,
3187,
3170,
921,
13,
288,
3639,
309,
261,
8109,
921,
422,
446,
13,
5411,
327,
629,
31,
3639,
309,
261,
8109,
921,
18,
588,
3291,
2040,
1435,
480,
446,
13,
5411,
327,
638,
31,
3639,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
711,
2040,
12,
45,
27130,
3187,
3170,
921,
13,
288,
3639,
309,
261,
8109,
921,
422,
446,
13,
5411,
327,
629,
31,
3639,
309,
261,
8109,
921,
18,
588,
3291,
2040,
1435,
480,
446,
13,
5411,
327,
638,
31,
3639,
327,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Interrupter intr = null; try { Deadline t = Deadline.inRandomRange(195, 205); t.later(300); Date start = new Date(); intr = interruptMeIn(2000); while (!t.expired()) { t.sleep(); } long delay = TimerUtil.timeSince(start); if (delay < 300) { fail("sleep(195, 205), slower(300) returned early in " + delay); } if (delay > 700) { fail("sleep(195, 205), slower(300) returned late in " + delay); } intr.cancel(); } catch (InterruptedException e) { } finally { if (intr.did()) { fail("sleep(195, 205) failed to return within 2 seconds"); } } | TimeBase.setSimulated(); Deadline t = Deadline.in(200); t.later(300); assertEquals(500, t.getRemainingTime()); TimeBase.setReal(); | public void testSlower() { Interrupter intr = null; try { Deadline t = Deadline.inRandomRange(195, 205); t.later(300); Date start = new Date(); intr = interruptMeIn(2000); while (!t.expired()) { t.sleep(); } long delay = TimerUtil.timeSince(start); if (delay < 300) { fail("sleep(195, 205), slower(300) returned early in " + delay); } if (delay > 700) { fail("sleep(195, 205), slower(300) returned late in " + delay); } intr.cancel(); } catch (InterruptedException e) { } finally { if (intr.did()) { fail("sleep(195, 205) failed to return within 2 seconds"); } } } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/007beb2510c1c17ed7637981fae3e7e3e365a01b/TestDeadline.java/buggy/test/src/org/lockss/util/TestDeadline.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
55,
8167,
1435,
288,
565,
3094,
4483,
264,
28600,
273,
446,
31,
565,
775,
288,
1377,
23967,
1369,
268,
273,
23967,
1369,
18,
267,
8529,
2655,
12,
31677,
16,
4200,
25,
1769,
1377,
268,
18,
29082,
12,
19249,
1769,
1377,
2167,
787,
273,
394,
2167,
5621,
1377,
28600,
273,
13123,
4667,
382,
12,
17172,
1769,
1377,
1323,
16051,
88,
18,
15820,
10756,
288,
202,
88,
18,
19607,
5621,
1377,
289,
1377,
1525,
4624,
273,
12290,
1304,
18,
957,
9673,
12,
1937,
1769,
1377,
309,
261,
10790,
411,
11631,
13,
288,
202,
6870,
2932,
19607,
12,
31677,
16,
4200,
25,
3631,
27926,
12,
19249,
13,
2106,
11646,
316,
315,
397,
4624,
1769,
1377,
289,
1377,
309,
261,
10790,
405,
2371,
713,
13,
288,
202,
6870,
2932,
19607,
12,
31677,
16,
4200,
25,
3631,
27926,
12,
19249,
13,
2106,
26374,
316,
315,
397,
4624,
1769,
1377,
289,
1377,
28600,
18,
10996,
5621,
565,
289,
1044,
261,
24485,
503,
425,
13,
288,
565,
289,
3095,
288,
1377,
309,
261,
267,
313,
18,
14044,
10756,
288,
202,
6870,
2932,
19607,
12,
31677,
16,
4200,
25,
13,
2535,
358,
327,
3470,
576,
3974,
8863,
1377,
289,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
55,
8167,
1435,
288,
565,
3094,
4483,
264,
28600,
273,
446,
31,
565,
775,
288,
1377,
23967,
1369,
268,
273,
23967,
1369,
18,
267,
8529,
2655,
12,
31677,
16,
4200,
25,
1769,
1377,
268,
18,
29082,
12,
19249,
1769,
1377,
2167,
787,
273,
394,
2167,
5621,
1377,
28600,
273,
13123,
4667,
382,
12,
17172,
1769,
1377,
1323,
16051,
88,
18,
15820,
10756,
288,
202,
88,
18,
19607,
5621,
1377,
289,
1377,
1525,
4624,
273,
12290,
1304,
18,
957,
9673,
12,
1937,
1769,
1377,
309,
261,
10790,
411,
11631,
13,
288,
202,
6870,
2932,
19607,
12,
31677,
16,
4200,
25,
3631,
27926,
12,
19249,
13,
2106,
11646,
316,
315,
397,
4624,
1769,
1377,
289,
1377,
309,
2
] |
ltypes[i] = op.getType().getName().parseForTypeCode(); | VM_TypeReference typ = op.getType(); if (typ.isWordType() || (typ == VM_TypeReference.NULL_TYPE)) { ltypes[i] = WordTypeCode; } else { ltypes[i] = typ.getName().parseForTypeCode(); } | private OPT_Instruction _createOsrBarrier() { LinkedList livevars = new LinkedList(); /* for local variables, we have to use helper to make a register. */ /* ltypes and stypes should be the full length * WARNING: what's the order of DUMMY and LONG? */ int localnum = _localState.length; byte[] ltypes = new byte[localnum]; int num_llocals = 0; for (int i=0, n=_localState.length; i<n; i++) { OPT_Operand op = _localState[i]; if ((op != null) && (op != DUMMY)) { livevars.add(_loadLocalForOSR(op)); num_llocals++; if (op instanceof ReturnAddressOperand) { ltypes[i] = AddressTypeCode; } else { ltypes[i] = op.getType().getName().parseForTypeCode(); } } else { ltypes[i] = VoidTypeCode; } } int stacknum = stack.getSize(); byte[] stypes = new byte[stacknum]; /* the variabel on stack can be used directly ? */ int num_lstacks = 0; for (int i=0, n=stack.getSize(); i<n; i++) { OPT_Operand op = stack.peekAt(i); if ((op != null) && (op != DUMMY)) { if (op.isRegister()) { livevars.add(op.asRegister().copyU2U()); } else { livevars.add(op); } num_lstacks++; if (op instanceof ReturnAddressOperand) { stypes[i] = AddressTypeCode; } else { /* for stack operand, reverse the order for long and double */ byte tcode = op.getType().getName().parseForTypeCode(); if ((tcode == LongTypeCode) || (tcode == DoubleTypeCode)) { stypes[i-1] = tcode; stypes[i] = VoidTypeCode; } else { stypes[i] = op.getType().getName().parseForTypeCode(); } } } else { stypes[i] = VoidTypeCode; } } OPT_Instruction barrier = OsrBarrier.create(OSR_BARRIER, null, // temporarily num_llocals+num_lstacks); for (int i=0, n=livevars.size(); i<n; i++) { OPT_Operand op = (OPT_Operand)livevars.get(i); if (op instanceof ReturnAddressOperand) { int tgtpc = ((ReturnAddressOperand)op).retIndex - gc.method.getOsrPrologueLength(); op = new OPT_IntConstantOperand(tgtpc); } else if (op instanceof OPT_LongConstantOperand) { op = _prepareLongConstant(op); } else if (op instanceof OPT_DoubleConstantOperand) { op = _prepareDoubleConstant(op); } if (VM.VerifyAssertions) VM._assert(op != null); OsrBarrier.setElement(barrier, i, op); } // patch type info operand OPT_OsrTypeInfoOperand typeinfo = new OPT_OsrTypeInfoOperand(ltypes, stypes); OsrBarrier.setTypeInfo(barrier, typeinfo); /* if the current method is for specialization, the bcIndex * has to be adjusted at "OPT_OsrPointConstructor". */ barrier.position = gc.inlineSequence; barrier.bcIndex = instrIndex; return barrier; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/0e298f1bb91aca7821f6d7709c3bdfc43efae59b/OPT_BC2IR.java/clean/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_BC2IR.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
16456,
67,
11983,
389,
2640,
51,
11254,
5190,
10342,
1435,
288,
565,
10688,
8429,
4699,
273,
394,
10688,
5621,
377,
1748,
364,
1191,
3152,
16,
732,
1240,
358,
999,
4222,
358,
1221,
279,
1744,
18,
1195,
565,
1748,
328,
2352,
471,
15453,
1410,
506,
326,
1983,
769,
377,
380,
9744,
30,
4121,
1807,
326,
1353,
434,
463,
2799,
22114,
471,
14011,
35,
377,
1195,
565,
509,
1191,
2107,
273,
389,
3729,
1119,
18,
2469,
31,
565,
1160,
8526,
328,
2352,
273,
394,
1160,
63,
3729,
2107,
15533,
377,
509,
818,
67,
80,
17977,
273,
374,
31,
565,
364,
261,
474,
277,
33,
20,
16,
290,
33,
67,
3729,
1119,
18,
2469,
31,
277,
32,
82,
31,
277,
27245,
288,
1377,
16456,
67,
10265,
1061,
273,
389,
3729,
1119,
63,
77,
15533,
1377,
309,
14015,
556,
480,
446,
13,
597,
261,
556,
480,
463,
2799,
22114,
3719,
288,
3639,
8429,
4699,
18,
1289,
24899,
945,
2042,
1290,
4618,
54,
12,
556,
10019,
3639,
818,
67,
80,
17977,
9904,
31,
540,
309,
261,
556,
1276,
2000,
1887,
10265,
13,
288,
1850,
328,
2352,
63,
77,
65,
273,
5267,
15460,
31,
3639,
289,
469,
288,
1850,
8251,
67,
7534,
3815,
273,
1061,
18,
588,
559,
5621,
309,
261,
12846,
18,
291,
3944,
559,
1435,
747,
261,
12846,
422,
8251,
67,
7534,
18,
8560,
67,
2399,
3719,
288,
328,
2352,
63,
77,
65,
273,
9926,
15460,
31,
289,
469,
288,
328,
2352,
63,
77,
65,
273,
3815,
18,
17994,
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,
16456,
67,
11983,
389,
2640,
51,
11254,
5190,
10342,
1435,
288,
565,
10688,
8429,
4699,
273,
394,
10688,
5621,
377,
1748,
364,
1191,
3152,
16,
732,
1240,
358,
999,
4222,
358,
1221,
279,
1744,
18,
1195,
565,
1748,
328,
2352,
471,
15453,
1410,
506,
326,
1983,
769,
377,
380,
9744,
30,
4121,
1807,
326,
1353,
434,
463,
2799,
22114,
471,
14011,
35,
377,
1195,
565,
509,
1191,
2107,
273,
389,
3729,
1119,
18,
2469,
31,
565,
1160,
8526,
328,
2352,
273,
394,
1160,
63,
3729,
2107,
15533,
377,
509,
818,
67,
80,
17977,
273,
374,
31,
565,
364,
261,
474,
277,
33,
20,
16,
290,
33,
67,
3729,
1119,
18,
2469,
31,
277,
32,
82,
31,
277,
2
] |
if (statement instanceof PsiBreakStatement || | if(statement instanceof PsiBreakStatement || | private static boolean statementMustThrowException( PsiStatement statement) { if (statement == null) { return false; } if (statement instanceof PsiBreakStatement || statement instanceof PsiContinueStatement || statement instanceof PsiAssertStatement || statement instanceof PsiReturnStatement || statement instanceof PsiExpressionStatement || statement instanceof PsiExpressionListStatement || statement instanceof PsiForeachStatement || statement instanceof PsiDeclarationStatement || statement instanceof PsiEmptyStatement) { return false; } else if (statement instanceof PsiThrowStatement) { return true; } else if (statement instanceof PsiForStatement) { return forStatementMustThrowException( (PsiForStatement) statement); } else if (statement instanceof PsiWhileStatement) { return whileStatementMustThrowException( (PsiWhileStatement) statement); } else if (statement instanceof PsiDoWhileStatement) { return doWhileMustThrowException( (PsiDoWhileStatement) statement); } else if (statement instanceof PsiSynchronizedStatement) { final PsiCodeBlock body = ((PsiSynchronizedStatement) statement).getBody(); return blockMustThrowException( body); } else if (statement instanceof PsiBlockStatement) { final PsiCodeBlock codeBlock = ((PsiBlockStatement) statement).getCodeBlock(); return blockMustThrowException( codeBlock); } else if (statement instanceof PsiLabeledStatement) { final PsiLabeledStatement labeledStatement = (PsiLabeledStatement) statement; final PsiStatement statementLabeled = labeledStatement.getStatement(); return statementMustThrowException( statementLabeled); } else if (statement instanceof PsiIfStatement) { return ifStatementMustThrowException( (PsiIfStatement) statement); } else if (statement instanceof PsiTryStatement) { return tryStatementMustThrowException( (PsiTryStatement) statement); } else if (statement instanceof PsiSwitchStatement) { return false; } else // unknown statement type { return false; } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/fc3fc1341db4aa6d26930bf45116ec44c28fc569/InitializationUtils.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/InitializationUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
3021,
10136,
8282,
503,
12,
225,
453,
7722,
3406,
3021,
13,
288,
3639,
309,
261,
11516,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
309,
12,
11516,
1276,
453,
7722,
7634,
3406,
747,
7734,
3021,
1276,
453,
7722,
12378,
3406,
747,
7734,
3021,
1276,
453,
7722,
8213,
3406,
747,
7734,
3021,
1276,
453,
7722,
990,
3406,
747,
7734,
3021,
1276,
453,
7722,
2300,
3406,
747,
7734,
3021,
1276,
453,
7722,
2300,
682,
3406,
747,
7734,
3021,
1276,
453,
7722,
13573,
497,
3406,
747,
7734,
3021,
1276,
453,
7722,
6094,
3406,
747,
7734,
3021,
1276,
453,
7722,
1921,
3406,
13,
288,
5411,
327,
629,
31,
3639,
289,
225,
469,
309,
261,
11516,
1276,
453,
7722,
8282,
3406,
13,
288,
6647,
327,
638,
31,
3639,
289,
225,
469,
309,
261,
11516,
1276,
453,
7722,
1290,
3406,
13,
288,
5411,
327,
364,
3406,
10136,
8282,
503,
12,
261,
52,
7722,
1290,
3406,
13,
3021,
1769,
3639,
289,
469,
309,
261,
11516,
1276,
453,
7722,
15151,
3406,
13,
288,
5411,
327,
1323,
3406,
10136,
8282,
503,
12,
261,
52,
7722,
15151,
3406,
13,
3021,
1769,
3639,
289,
469,
309,
261,
11516,
1276,
453,
7722,
3244,
15151,
3406,
13,
288,
5411,
327,
741,
15151,
10136,
8282,
503,
12,
261,
52,
7722,
3244,
15151,
3406,
13,
3021,
1769,
3639,
289,
469,
309,
261,
11516,
1276,
453,
7722,
55,
15666,
3406,
13,
288,
5411,
727,
453,
7722,
1085,
1768,
1417,
273,
14015,
52,
7722,
55,
15666,
3406,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
3021,
10136,
8282,
503,
12,
225,
453,
7722,
3406,
3021,
13,
288,
3639,
309,
261,
11516,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
309,
12,
11516,
1276,
453,
7722,
7634,
3406,
747,
7734,
3021,
1276,
453,
7722,
12378,
3406,
747,
7734,
3021,
1276,
453,
7722,
8213,
3406,
747,
7734,
3021,
1276,
453,
7722,
990,
3406,
747,
7734,
3021,
1276,
453,
7722,
2300,
3406,
747,
7734,
3021,
1276,
453,
7722,
2300,
682,
3406,
747,
7734,
3021,
1276,
453,
7722,
13573,
497,
3406,
747,
7734,
3021,
1276,
453,
7722,
6094,
3406,
747,
7734,
3021,
1276,
453,
7722,
1921,
3406,
13,
288,
5411,
327,
629,
31,
3639,
289,
225,
469,
309,
261,
11516,
1276,
2
] |
NVPair[] headers, byte[] data, HttpOutputStream stream, boolean allow_ui) | NVPair[] headers, byte[] data, HttpOutputStream stream, boolean allow_ui) | public Request(HTTPConnection con, String method, String req_uri, NVPair[] headers, byte[] data, HttpOutputStream stream, boolean allow_ui) { this.connection = con; this.method = method; setRequestURI(req_uri); setHeaders(headers); this.data = data; this.stream = stream; this.allow_ui = allow_ui; } | 5431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5431/8595afea300d3eb6adffd48b76bd7cb230955f35/Request.java/clean/gallery_remote/HTTPClient/Request.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1567,
12,
3693,
1952,
356,
16,
514,
707,
16,
514,
1111,
67,
1650,
16,
1082,
282,
423,
58,
4154,
8526,
1607,
16,
1160,
8526,
501,
16,
2541,
4632,
1407,
16,
1082,
282,
1250,
1699,
67,
4881,
13,
565,
288,
202,
2211,
18,
4071,
273,
356,
31,
202,
2211,
18,
2039,
377,
273,
707,
31,
202,
542,
691,
3098,
12,
3658,
67,
1650,
1769,
202,
542,
3121,
12,
2485,
1769,
202,
2211,
18,
892,
4202,
273,
501,
31,
202,
2211,
18,
3256,
377,
273,
1407,
31,
202,
2211,
18,
5965,
67,
4881,
282,
273,
1699,
67,
4881,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1567,
12,
3693,
1952,
356,
16,
514,
707,
16,
514,
1111,
67,
1650,
16,
1082,
282,
423,
58,
4154,
8526,
1607,
16,
1160,
8526,
501,
16,
2541,
4632,
1407,
16,
1082,
282,
1250,
1699,
67,
4881,
13,
565,
288,
202,
2211,
18,
4071,
273,
356,
31,
202,
2211,
18,
2039,
377,
273,
707,
31,
202,
542,
691,
3098,
12,
3658,
67,
1650,
1769,
202,
542,
3121,
12,
2485,
1769,
202,
2211,
18,
892,
4202,
273,
501,
31,
202,
2211,
18,
3256,
377,
273,
1407,
31,
202,
2211,
18,
5965,
67,
4881,
282,
273,
1699,
67,
4881,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
jjCheckNAddStates(81, 83); break; case 29: | jjCheckNAddStates(87, 89); break; case 73: | private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 39; 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 40: case 22: jjCheckNAddTwoStates(22, 23); break; case 7: if ((0xf7ffac7000000000L & l) != 0L) { if (kind > 45) kind = 45; jjCheckNAdd(11); } if ((0xa7ffac7000000000L & l) != 0L) jjCheckNAddTwoStates(6, 7); else if (curChar == 62) { if (kind > 43) kind = 43; } break; case 41: if ((0xf7ffac7000000000L & l) != 0L) { if (kind > 45) kind = 45; jjCheckNAdd(11); } if ((0x3ff000000000000L & l) != 0L) { if (kind > 44) kind = 44; jjCheckNAdd(9); } break; case 0: if ((0xf3ffac7000000000L & l) != 0L) { if (kind > 45) kind = 45; jjCheckNAdd(11); } else if (curChar == 46) jjCheckNAdd(16); else if (curChar == 59) jjstateSet[jjnewStateCnt++] = 2; else if (curChar == 35) { if (kind > 9) kind = 9; jjCheckNAdd(1); } if ((0x3ff000000000000L & l) != 0L) { if (kind > 44) kind = 44; jjCheckNAddStates(68, 75); } else if ((0x280000000000L & l) != 0L) jjCheckNAdd(9); else if (curChar == 60) jjCheckNAdd(6); break; case 39: if ((0xf7ffac7000000000L & l) != 0L) { if (kind > 45) kind = 45; jjCheckNAdd(11); } if ((0xa7ffac7000000000L & l) != 0L) jjCheckNAddTwoStates(6, 7); break; case 1: if ((0xffffffffffffdbffL & l) == 0L) break; if (kind > 9) kind = 9; jjCheckNAdd(1); break; case 2: if (curChar != 35) break; if (kind > 10) kind = 10; jjCheckNAdd(3); break; case 3: if ((0xffffffffffffdbffL & l) == 0L) break; if (kind > 10) kind = 10; jjCheckNAdd(3); break; case 4: if (curChar == 59) jjstateSet[jjnewStateCnt++] = 2; break; case 5: if (curChar == 60) jjCheckNAdd(6); break; case 6: if ((0xa7ffac7000000000L & l) != 0L) jjCheckNAddTwoStates(6, 7); break; case 8: if ((0x280000000000L & l) != 0L) jjCheckNAdd(9); break; case 9: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 44) kind = 44; jjCheckNAdd(9); break; case 10: if ((0xf3ffac7000000000L & l) == 0L) break; if (kind > 45) kind = 45; jjCheckNAdd(11); break; case 11: if ((0xf7ffac7000000000L & l) == 0L) break; if (kind > 45) kind = 45; jjCheckNAdd(11); break; case 13: jjAddStates(76, 77); break; case 15: if (curChar == 46) jjCheckNAdd(16); break; case 16: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 46) kind = 46; jjCheckNAddStates(78, 80); break; case 18: if ((0x280000000000L & l) != 0L) jjCheckNAdd(19); break; case 19: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 46) kind = 46; jjCheckNAddTwoStates(19, 20); break; case 24: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 44) kind = 44; jjCheckNAddStates(68, 75); break; case 25: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(25, 26); break; case 26: if (curChar != 46) break; if (kind > 46) kind = 46; jjCheckNAddStates(81, 83); break; case 27: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 46) kind = 46; jjCheckNAddStates(81, 83); break; case 29: if ((0x280000000000L & l) != 0L) jjCheckNAdd(30); break; case 30: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 46) kind = 46; jjCheckNAddTwoStates(30, 20); break; case 31: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(31, 32); break; case 33: if ((0x280000000000L & l) != 0L) jjCheckNAdd(34); break; case 34: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 46) kind = 46; jjCheckNAddTwoStates(34, 20); break; case 35: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(84, 86); break; case 37: if ((0x280000000000L & l) != 0L) jjCheckNAdd(38); break; case 38: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(38, 20); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 40: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddTwoStates(22, 23); else if (curChar == 93) { if (kind > 48) kind = 48; } break; case 7: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 45) kind = 45; jjCheckNAdd(11); } if ((0x7fffffe87fffffeL & l) != 0L) jjCheckNAddTwoStates(6, 7); break; case 41: case 11: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 45) kind = 45; jjCheckNAdd(11); break; case 0: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 45) kind = 45; jjCheckNAdd(11); } else if (curChar == 91) jjCheckNAddTwoStates(22, 23); else if (curChar == 124) jjCheckNAddTwoStates(13, 14); break; case 39: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 45) kind = 45; jjCheckNAdd(11); } if ((0x7fffffe87fffffeL & l) != 0L) jjCheckNAddTwoStates(6, 7); break; case 1: if (kind > 9) kind = 9; jjstateSet[jjnewStateCnt++] = 1; break; case 3: if (kind > 10) kind = 10; jjstateSet[jjnewStateCnt++] = 3; break; case 6: if ((0x7fffffe87fffffeL & l) != 0L) jjCheckNAddTwoStates(6, 7); break; case 10: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 45) kind = 45; jjCheckNAdd(11); break; case 12: if (curChar == 124) jjCheckNAddTwoStates(13, 14); break; case 13: if ((0xefffffffffffffffL & l) != 0L) jjCheckNAddTwoStates(13, 14); break; case 14: if (curChar == 124 && kind > 45) kind = 45; break; case 17: if ((0x2000000020L & l) != 0L) jjAddStates(87, 88); break; case 20: if ((0x5000000050L & l) != 0L && kind > 46) kind = 46; break; case 21: if (curChar == 91) jjCheckNAddTwoStates(22, 23); break; case 22: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddTwoStates(22, 23); break; case 23: if (curChar == 93 && kind > 48) kind = 48; break; case 28: if ((0x2000000020L & l) != 0L) jjAddStates(89, 90); break; case 32: if ((0x2000000020L & l) != 0L) jjAddStates(91, 92); break; case 36: if ((0x2000000020L & l) != 0L) jjAddStates(93, 94); break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 40: case 22: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddTwoStates(22, 23); break; case 1: if ((jjbitVec0[i2] & l2) == 0L) break; if (kind > 9) kind = 9; jjstateSet[jjnewStateCnt++] = 1; break; case 3: if ((jjbitVec0[i2] & l2) == 0L) break; if (kind > 10) kind = 10; jjstateSet[jjnewStateCnt++] = 3; break; case 13: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(76, 77); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 39 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/d1775300ef3c91eaadbc0bf2706207627b5dc993/SoarParserTokenManager.java/buggy/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/parser/SoarParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
21,
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,
16977,
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,
8063,
30,
9079,
648,
11201,
30,
5375,
10684,
1564,
50,
986,
11710,
7629,
12,
3787,
16,
10213,
1769,
5375,
898,
31,
9079,
648,
2371,
30,
5375,
309,
14015,
20,
5841,
27,
74,
11639,
27,
2787,
11706,
48,
473,
328,
13,
480,
374,
48,
13,
5375,
288,
5397,
309,
261,
9224,
405,
12292,
13,
13491,
3846,
273,
12292,
31,
5397,
10684,
1564,
50,
986,
12,
2499,
1769,
5375,
289,
5375,
309,
14015,
20,
6995,
27,
74,
11639,
27,
2787,
11706,
48,
473,
328,
13,
480,
374,
48,
13,
5397,
10684,
1564,
50,
986,
11710,
7629,
12,
26,
16,
2371,
1769,
5375,
469,
309,
261,
1397,
2156,
422,
22684,
13,
5375,
288,
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,
21,
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,
16977,
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
] |
Map properties = message.getProperties(); if (properties != null) { headers.putAll(properties); | msg.setJMSCorrelationID((String) headers.remove(Stomp.Headers.Send.CORRELATION_ID)); Object o = headers.remove(Stomp.Headers.Send.EXPIRATION_TIME); if (o != null) { msg.setJMSExpiration(Long.parseLong((String) o)); | public StompFrame convertMessage(ActiveMQMessage message) throws IOException, JMSException { StompFrame command = new StompFrame(); command.setAction(Stomp.Responses.MESSAGE); HashMap headers = new HashMap(); command.setHeaders(headers); headers.put(Stomp.Headers.Message.DESTINATION, convertDestination(message.getDestination())); headers.put(Stomp.Headers.Message.MESSAGE_ID, message.getJMSMessageID()); headers.put(Stomp.Headers.Message.CORRELATION_ID, message.getJMSCorrelationID()); headers.put(Stomp.Headers.Message.EXPIRATION_TIME, ""+message.getJMSExpiration()); if (message.getJMSRedelivered()) { headers.put(Stomp.Headers.Message.REDELIVERED, "true"); } headers.put(Stomp.Headers.Message.PRORITY, ""+message.getJMSPriority()); headers.put(Stomp.Headers.Message.REPLY_TO, convertDestination(message.getJMSReplyTo())); headers.put(Stomp.Headers.Message.TIMESTAMP, ""+message.getJMSTimestamp()); headers.put(Stomp.Headers.Message.TYPE, message.getJMSType()); // now lets add all the message headers Map properties = message.getProperties(); if (properties != null) { headers.putAll(properties); } if( message.getDataStructureType() == ActiveMQTextMessage.DATA_STRUCTURE_TYPE ) { ActiveMQTextMessage msg = (ActiveMQTextMessage)message.copy(); command.setContent(msg.getText().getBytes("UTF-8")); } else if( message.getDataStructureType() == ActiveMQBytesMessage.DATA_STRUCTURE_TYPE ) { ActiveMQBytesMessage msg = (ActiveMQBytesMessage)message.copy(); byte[] data = new byte[(int)msg.getBodyLength()]; msg.readBytes(data); headers.put(Stomp.Headers.CONTENT_LENGTH, ""+data.length); command.setContent(data); } return command; } | 11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/1f6aa57df62ae72d75a44ad61d859d499f6ca196/ProtocolConverter.java/buggy/activemq-core/src/main/java/org/apache/activemq/transport/stomp2/ProtocolConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
934,
20667,
3219,
1765,
1079,
12,
3896,
9682,
1079,
883,
13,
1216,
1860,
16,
20343,
288,
202,
202,
510,
20667,
3219,
1296,
273,
394,
934,
20667,
3219,
5621,
202,
202,
3076,
18,
542,
1803,
12,
510,
20667,
18,
12222,
18,
8723,
1769,
9506,
202,
8658,
1607,
273,
394,
4317,
5621,
202,
202,
3076,
18,
542,
3121,
12,
2485,
1769,
1082,
3639,
1607,
18,
458,
12,
510,
20667,
18,
3121,
18,
1079,
18,
29451,
16,
1765,
5683,
12,
2150,
18,
588,
5683,
1435,
10019,
3639,
1607,
18,
458,
12,
510,
20667,
18,
3121,
18,
1079,
18,
8723,
67,
734,
16,
883,
18,
588,
46,
3537,
1079,
734,
10663,
3639,
1607,
18,
458,
12,
510,
20667,
18,
3121,
18,
1079,
18,
9428,
27822,
67,
734,
16,
883,
18,
588,
46,
49,
2312,
280,
5488,
734,
10663,
3639,
1607,
18,
458,
12,
510,
20667,
18,
3121,
18,
1079,
18,
18433,
24284,
67,
4684,
16,
1408,
15,
2150,
18,
588,
46,
3537,
12028,
10663,
3639,
309,
261,
2150,
18,
588,
46,
3537,
3715,
292,
1667,
329,
10756,
288,
5411,
1607,
18,
458,
12,
510,
20667,
18,
3121,
18,
1079,
18,
862,
20643,
2204,
2056,
16,
315,
3767,
8863,
3639,
289,
3639,
1607,
18,
458,
12,
510,
20667,
18,
3121,
18,
1079,
18,
52,
2784,
4107,
16,
1408,
15,
2150,
18,
588,
46,
49,
3118,
2959,
10663,
3639,
1607,
18,
458,
12,
510,
20667,
18,
3121,
18,
1079,
18,
862,
23893,
67,
4296,
16,
1765,
5683,
12,
2150,
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,
934,
20667,
3219,
1765,
1079,
12,
3896,
9682,
1079,
883,
13,
1216,
1860,
16,
20343,
288,
202,
202,
510,
20667,
3219,
1296,
273,
394,
934,
20667,
3219,
5621,
202,
202,
3076,
18,
542,
1803,
12,
510,
20667,
18,
12222,
18,
8723,
1769,
9506,
202,
8658,
1607,
273,
394,
4317,
5621,
202,
202,
3076,
18,
542,
3121,
12,
2485,
1769,
1082,
3639,
1607,
18,
458,
12,
510,
20667,
18,
3121,
18,
1079,
18,
29451,
16,
1765,
5683,
12,
2150,
18,
588,
5683,
1435,
10019,
3639,
1607,
18,
458,
12,
510,
20667,
18,
3121,
18,
1079,
18,
8723,
67,
734,
16,
883,
18,
588,
46,
3537,
1079,
734,
10663,
3639,
1607,
18,
458,
12,
510,
20667,
18,
3121,
2
] |
return new String[] { TYPE_NAME }; | return new String[] { TYPE_NAME }; | protected String[] getTypeNames() { return new String[] { TYPE_NAME }; } | 12748 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12748/0d5f2da32438c01e3eb65780f8b3ce95cf079c38/WikiTransfer.java/clean/trunk/src/java/org/outerrim/snippad/ui/swt/dnd/WikiTransfer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
8526,
3130,
1557,
1435,
288,
3639,
327,
394,
514,
8526,
288,
3463,
67,
1985,
289,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
8526,
3130,
1557,
1435,
288,
3639,
327,
394,
514,
8526,
288,
3463,
67,
1985,
289,
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
] |
SelectExpression selectExpr = getSelectExpression(_selectType, sqlPrefix + "." + _sqlColName, "''"); | SelectExpression selectExpr = getSelectExpression(_selectType, sqlPrefix + "." + _sqlColName, "null"); | private void addSelectAttribute(int _index, SelectType _selectType, boolean _isOID, Object _key, Attribute _attr) {//System.out.println("addSelectAttribute="+_index+":"+_key+":"+_attr); ArrayList<SelectExpression> selectExprs = new ArrayList<SelectExpression>(); if (_attr.getTable()!=null) { String sqlPrefix = _attr.getTable().getSqlTable() + _index; _selectType.getTypeTableNames().add(_attr.getTable()); for (String _sqlColName : _attr.getSqlColNames()) { SelectExpression selectExpr = getSelectExpression(_selectType, sqlPrefix + "." + _sqlColName, "''");//System.out.println("selectExprs.add="+selectExpr); selectExprs.add(selectExpr); } } SelExpr2Attr selExpr2Attr = new SelExpr2Attr(_attr, selectExprs);//System.out.println("selectExprs="+selExpr2Attr); if (_isOID) { getAllOIDSelExprMap().put(_key, selExpr2Attr); } else { getAllSelExprMap().put(_key, selExpr2Attr); } } | 55506 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55506/06bc361edb45d6a88c34fa4ebe5d87cd81de0315/AbstractQuery.java/clean/trunk/kernel/src/main/java/org/efaps/db/AbstractQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
12147,
1499,
12,
474,
389,
1615,
16,
6766,
559,
389,
4025,
559,
16,
1250,
389,
291,
12945,
16,
1033,
389,
856,
16,
3601,
389,
1747,
13,
225,
288,
759,
3163,
18,
659,
18,
8222,
2932,
1289,
3391,
1499,
1546,
15,
67,
1615,
9078,
2773,
15,
67,
856,
9078,
2773,
15,
67,
1747,
1769,
1377,
2407,
32,
3391,
2300,
34,
2027,
22947,
273,
394,
2407,
32,
3391,
2300,
34,
5621,
1377,
309,
261,
67,
1747,
18,
588,
1388,
1435,
5,
33,
2011,
13,
225,
288,
3639,
514,
1847,
2244,
273,
389,
1747,
18,
588,
1388,
7675,
588,
5101,
1388,
1435,
397,
389,
1615,
31,
3639,
389,
4025,
559,
18,
588,
559,
1388,
1557,
7675,
1289,
24899,
1747,
18,
588,
1388,
10663,
3639,
364,
261,
780,
389,
4669,
31187,
294,
389,
1747,
18,
588,
5101,
914,
1557,
10756,
225,
288,
1850,
6766,
2300,
2027,
4742,
273,
20182,
2300,
24899,
4025,
559,
16,
1847,
2244,
397,
4585,
397,
389,
4669,
31187,
16,
2491,
4970,
1769,
759,
3163,
18,
659,
18,
8222,
2932,
4025,
22947,
18,
1289,
1546,
15,
4025,
4742,
1769,
1850,
2027,
22947,
18,
1289,
12,
4025,
4742,
1769,
3639,
289,
1377,
289,
1377,
4352,
4742,
22,
3843,
357,
4742,
22,
3843,
273,
394,
4352,
4742,
22,
3843,
24899,
1747,
16,
2027,
22947,
1769,
759,
3163,
18,
659,
18,
8222,
2932,
4025,
22947,
1546,
15,
1786,
4742,
22,
3843,
1769,
1377,
309,
261,
67,
291,
12945,
13,
225,
288,
3639,
5514,
12945,
1877,
4742,
863,
7675,
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,
12147,
1499,
12,
474,
389,
1615,
16,
6766,
559,
389,
4025,
559,
16,
1250,
389,
291,
12945,
16,
1033,
389,
856,
16,
3601,
389,
1747,
13,
225,
288,
759,
3163,
18,
659,
18,
8222,
2932,
1289,
3391,
1499,
1546,
15,
67,
1615,
9078,
2773,
15,
67,
856,
9078,
2773,
15,
67,
1747,
1769,
1377,
2407,
32,
3391,
2300,
34,
2027,
22947,
273,
394,
2407,
32,
3391,
2300,
34,
5621,
1377,
309,
261,
67,
1747,
18,
588,
1388,
1435,
5,
33,
2011,
13,
225,
288,
3639,
514,
1847,
2244,
273,
389,
1747,
18,
588,
1388,
7675,
588,
5101,
1388,
1435,
397,
389,
1615,
31,
3639,
389,
4025,
559,
18,
588,
559,
1388,
1557,
7675,
1289,
24899,
1747,
2
] |
public org.quickfix.field.NoPartyIDs getNoPartyIDs() throws FieldNotFound { org.quickfix.field.NoPartyIDs value = new org.quickfix.field.NoPartyIDs(); | public quickfix.field.NoPartyIDs getNoPartyIDs() throws FieldNotFound { quickfix.field.NoPartyIDs value = new quickfix.field.NoPartyIDs(); | public org.quickfix.field.NoPartyIDs getNoPartyIDs() throws FieldNotFound { org.quickfix.field.NoPartyIDs value = new org.quickfix.field.NoPartyIDs(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderList.java/clean/src/java/src/quickfix/fix43/NewOrderList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
17619,
5103,
336,
2279,
17619,
5103,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
17619,
5103,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
17619,
5103,
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,
2279,
17619,
5103,
336,
2279,
17619,
5103,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
17619,
5103,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
17619,
5103,
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
] |
private String validateDestination(IContainer destination, IResource[] sourceResources) { // if it is a project, see if it is open if (destination.getType() == IResource.PROJECT && !((IProject) destination).isOpen()) return WorkbenchMessages.getString("CopyFilesAndFoldersOperation.destinationAccessError"); //$NON-NLS-1$ for (int i = 0; i < sourceResources.length; i++) { if (!sourceResources[i].equals(destination) && isDescendentOf(destination, sourceResources[i])) { return WorkbenchMessages.getString("CopyFilesAndFoldersOperation.destinationDescendentError"); //$NON-NLS-1$; } } return null; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/55a0765998ffb552f84192bb2b3b6177a5c39ba5/CopyFilesAndFoldersOperation.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
780,
5662,
5683,
12,
45,
2170,
10590,
16,
45,
1420,
8526,
3168,
3805,
15329,
202,
202,
759,
430,
305,
291,
438,
28290,
16,
5946,
430,
305,
291,
3190,
202,
202,
430,
12,
10590,
18,
588,
559,
1435,
631,
45,
1420,
18,
17147,
10,
10,
5,
12443,
45,
4109,
13,
10590,
2934,
291,
3678,
10756,
1082,
202,
2463,
2421,
22144,
5058,
18,
588,
780,
2932,
2951,
2697,
1876,
14885,
2988,
18,
10590,
1862,
668,
8863,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
3168,
3805,
18,
2469,
31,
77,
27245,
95,
1082,
202,
430,
12,
5,
3168,
3805,
63,
77,
8009,
14963,
12,
10590,
13,
10,
10,
291,
18225,
319,
951,
12,
10590,
16,
3168,
3805,
63,
77,
22643,
95,
9506,
202,
2463,
2421,
22144,
5058,
18,
588,
780,
2932,
2951,
2697,
1876,
14885,
2988,
18,
10590,
18225,
319,
668,
8863,
759,
8,
3993,
17,
5106,
17,
21,
8,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
2011,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
780,
5662,
5683,
12,
45,
2170,
10590,
16,
45,
1420,
8526,
3168,
3805,
15329,
202,
202,
759,
430,
305,
291,
438,
28290,
16,
5946,
430,
305,
291,
3190,
202,
202,
430,
12,
10590,
18,
588,
559,
1435,
631,
45,
1420,
18,
17147,
10,
10,
5,
12443,
45,
4109,
13,
10590,
2934,
291,
3678,
10756,
1082,
202,
2463,
2421,
22144,
5058,
18,
588,
780,
2932,
2951,
2697,
1876,
14885,
2988,
18,
10590,
1862,
668,
8863,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
3168,
3805,
18,
2469,
31,
77,
27245,
95,
1082,
202,
430,
12,
5,
3168,
3805,
63,
77,
8009,
14963,
12,
10590,
13,
10,
2
] |
||
if (tag.getTagName().startsWith("aspect:")) { String aspect = tag.getTagName().substring(7); Map refs = (Map) aspectRefsAndCollections.get(aspect); | String tagName = tag.getTagName(); if (tagName.startsWith("aspect:")) { Map refs = (Map) placementRefsAndCollections.get(tagName); | public static void categoriseBasedOnTags(FieldDescriptor fd, String taggedType, DisplayField dispRef, Map miscRefs, ProfileManager pm, String sup, Map aspectRefsAndCollections) { List tags = pm.getTags(null, fd.getClassDescriptor().getUnqualifiedName() + "." + fd.getName(), taggedType, sup); for (Iterator ti = tags.iterator(); ti.hasNext(); ) { Tag tag = (Tag) ti.next(); if (tag.getTagName().startsWith("aspect:")) { String aspect = tag.getTagName().substring(7); Map refs = (Map) aspectRefsAndCollections.get(aspect); if (refs != null) { refs.put(fd.getName(), dispRef); miscRefs.remove(fd.getName()); } } } } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/8901a174b9dca794425b023d0b938dec4ceeb6f5/ObjectDetailsController.java/buggy/intermine/web/main/src/org/intermine/web/results/ObjectDetailsController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
31921,
784,
9802,
1398,
3453,
12,
974,
3187,
5194,
16,
4766,
4202,
514,
12503,
559,
16,
4766,
4202,
9311,
974,
16232,
1957,
16,
4766,
4202,
1635,
20448,
9837,
16,
4766,
4202,
11357,
1318,
7430,
16,
4766,
4202,
514,
1169,
16,
4766,
4202,
1635,
9648,
9837,
1876,
15150,
13,
288,
3639,
987,
2342,
273,
7430,
18,
588,
3453,
12,
2011,
16,
5194,
18,
588,
797,
3187,
7675,
588,
984,
19724,
461,
1435,
397,
4585,
1171,
397,
5194,
18,
17994,
9334,
12503,
559,
16,
1169,
1769,
3639,
364,
261,
3198,
11374,
273,
2342,
18,
9838,
5621,
11374,
18,
5332,
2134,
5621,
262,
288,
5411,
4034,
1047,
273,
261,
1805,
13,
11374,
18,
4285,
5621,
5411,
309,
261,
2692,
18,
588,
8520,
7675,
17514,
1190,
2932,
23579,
2773,
3719,
288,
7734,
514,
9648,
273,
1047,
18,
588,
8520,
7675,
28023,
12,
27,
1769,
7734,
1635,
9047,
273,
261,
863,
13,
9648,
9837,
1876,
15150,
18,
588,
12,
23579,
1769,
7734,
309,
261,
9316,
480,
446,
13,
288,
10792,
9047,
18,
458,
12,
8313,
18,
17994,
9334,
16232,
1957,
1769,
10792,
20448,
9837,
18,
4479,
12,
8313,
18,
17994,
10663,
7734,
289,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
31921,
784,
9802,
1398,
3453,
12,
974,
3187,
5194,
16,
4766,
4202,
514,
12503,
559,
16,
4766,
4202,
9311,
974,
16232,
1957,
16,
4766,
4202,
1635,
20448,
9837,
16,
4766,
4202,
11357,
1318,
7430,
16,
4766,
4202,
514,
1169,
16,
4766,
4202,
1635,
9648,
9837,
1876,
15150,
13,
288,
3639,
987,
2342,
273,
7430,
18,
588,
3453,
12,
2011,
16,
5194,
18,
588,
797,
3187,
7675,
588,
984,
19724,
461,
1435,
397,
4585,
1171,
397,
5194,
18,
17994,
9334,
12503,
559,
16,
1169,
1769,
3639,
364,
261,
3198,
11374,
273,
2342,
18,
9838,
5621,
11374,
18,
5332,
2134,
5621,
262,
288,
5411,
4034,
1047,
273,
261,
1805,
13,
11374,
18,
4285,
5621,
5411,
309,
261,
2
] |
public Object compile(Context cx, Scriptable scope, | public Object compile(Scriptable scope, | public Object compile(Context cx, Scriptable scope, CompilerEnvirons compilerEnv, ScriptOrFnNode scriptOrFn, String encodedSource, boolean returnFunction, SecurityController securityController, Object securityDomain) { OptClassNameHelper nameHelper = (OptClassNameHelper)ClassNameHelper.get(cx); Class[] interfaces = nameHelper.getTargetImplements(); Class superClass = nameHelper.getTargetExtends(); boolean isPrimary = (interfaces == null && superClass == null); String mainClassName = nameHelper.getScriptClassName(isPrimary); byte[] mainClassBytes = compileToClassFile(compilerEnv, mainClassName, scriptOrFn, encodedSource, returnFunction); boolean onlySave = false; ClassRepository repository = nameHelper.getClassRepository(); if (repository != null) { try { if (!repository.storeClass(mainClassName, mainClassBytes, true)) { onlySave = true; } } catch (IOException iox) { throw Context.throwAsScriptRuntimeEx(iox); } if (!isPrimary) { String adapterClassName = nameHelper.getScriptClassName(true); int functionCount = scriptOrFn.getFunctionCount(); ObjToIntMap functionNames = new ObjToIntMap(functionCount); for (int i = 0; i != functionCount; ++i) { FunctionNode ofn = scriptOrFn.getFunctionNode(i); String name = ofn.getFunctionName(); if (name != null && name.length() != 0) { functionNames.put(name, ofn.getParamCount()); } } if (superClass == null) { superClass = ScriptRuntime.ObjectClass; } byte[] classFile = JavaAdapter.createAdapterCode( functionNames, adapterClassName, superClass, interfaces, mainClassName); try { if (!repository.storeClass(adapterClassName, classFile, true)) { onlySave = true; } } catch (IOException iox) { throw Context.throwAsScriptRuntimeEx(iox); } } } if (onlySave) { return null; } Exception e = null; Class result = null; ClassLoader parentLoader = cx.getApplicationClassLoader(); GeneratedClassLoader loader; if (securityController == null) { loader = cx.createClassLoader(parentLoader); } else { loader = securityController.createClassLoader(parentLoader, securityDomain); } try { result = loader.defineClass(mainClassName, mainClassBytes); loader.linkClass(result); } catch (SecurityException x) { e = x; } catch (IllegalArgumentException x) { e = x; } if (e != null) throw new RuntimeException("Malformed optimizer package " + e); if (scriptOrFn.getType() == Token.FUNCTION) { NativeFunction f; try { Constructor ctor = result.getConstructors()[0]; Object[] initArgs = { scope, cx, new Integer(0) }; f = (NativeFunction)ctor.newInstance(initArgs); } catch (Exception ex) { throw new RuntimeException ("Unable to instantiate compiled class:"+ex.toString()); } int ftype = ((FunctionNode)scriptOrFn).getFunctionType(); OptRuntime.initFunction(f, ftype, scope, cx); return f; } else { Script script; try { script = (Script) result.newInstance(); } catch (Exception ex) { throw new RuntimeException ("Unable to instantiate compiled class:"+ex.toString()); } return script; } } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/07a0d45730ffd909a363b3d159cb9b522456cb88/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
4074,
12,
3651,
429,
2146,
16,
12900,
12972,
28248,
87,
5274,
3491,
16,
12900,
7739,
1162,
5372,
907,
2728,
1162,
5372,
16,
12900,
514,
3749,
1830,
16,
12900,
1250,
327,
2083,
16,
12900,
6036,
2933,
4373,
2933,
16,
12900,
1033,
4373,
3748,
13,
565,
288,
3639,
12056,
3834,
2276,
5411,
508,
2276,
273,
261,
6179,
3834,
2276,
13,
3834,
2276,
18,
588,
12,
71,
92,
1769,
3639,
1659,
8526,
7349,
273,
508,
2276,
18,
588,
2326,
17516,
5621,
3639,
1659,
18846,
273,
508,
2276,
18,
588,
2326,
19581,
5621,
3639,
1250,
353,
6793,
273,
261,
15898,
422,
446,
597,
18846,
422,
446,
1769,
3639,
514,
2774,
3834,
273,
508,
2276,
18,
588,
3651,
3834,
12,
291,
6793,
1769,
3639,
1160,
8526,
2774,
797,
2160,
273,
4074,
774,
797,
812,
12,
9576,
3491,
16,
2774,
3834,
16,
4766,
10402,
2728,
1162,
5372,
16,
3749,
1830,
16,
4766,
10402,
327,
2083,
1769,
3639,
1250,
1338,
4755,
273,
629,
31,
3639,
1659,
3305,
3352,
273,
508,
2276,
18,
588,
797,
3305,
5621,
3639,
309,
261,
9071,
480,
446,
13,
288,
5411,
775,
288,
7734,
309,
16051,
9071,
18,
2233,
797,
12,
5254,
3834,
16,
2774,
797,
2160,
16,
4766,
6647,
638,
3719,
7734,
288,
10792,
1338,
4755,
273,
638,
31,
7734,
289,
5411,
289,
1044,
261,
14106,
277,
2409,
13,
288,
7734,
604,
1772,
18,
12849,
1463,
3651,
5576,
424,
12,
1594,
92,
1769,
5411,
289,
5411,
309,
16051,
291,
6793,
13,
288,
7734,
514,
4516,
3834,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
4074,
12,
3651,
429,
2146,
16,
12900,
12972,
28248,
87,
5274,
3491,
16,
12900,
7739,
1162,
5372,
907,
2728,
1162,
5372,
16,
12900,
514,
3749,
1830,
16,
12900,
1250,
327,
2083,
16,
12900,
6036,
2933,
4373,
2933,
16,
12900,
1033,
4373,
3748,
13,
565,
288,
3639,
12056,
3834,
2276,
5411,
508,
2276,
273,
261,
6179,
3834,
2276,
13,
3834,
2276,
18,
588,
12,
71,
92,
1769,
3639,
1659,
8526,
7349,
273,
508,
2276,
18,
588,
2326,
17516,
5621,
3639,
1659,
18846,
273,
508,
2276,
18,
588,
2326,
19581,
5621,
3639,
1250,
353,
6793,
273,
261,
15898,
422,
446,
597,
18846,
422,
446,
1769,
3639,
514,
2774,
3834,
273,
508,
2276,
18,
588,
3651,
3834,
12,
291,
2
] |
public final void set( RunTimeContext _rtc ) | public void set( Chart _cm, Object _oComputation, Series _se, SeriesDefinition _sd ) | public final void set( RunTimeContext _rtc ) { rtc = _rtc; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/6491ad887cb29bead35eb8bdf4e54c9edb5a0a0a/BaseRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
444,
12,
1939,
950,
1042,
389,
3797,
71,
262,
202,
95,
202,
202,
3797,
71,
273,
389,
3797,
71,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
444,
12,
1939,
950,
1042,
389,
3797,
71,
262,
202,
95,
202,
202,
3797,
71,
273,
389,
3797,
71,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.RoundingDirection getRoundingDirection() throws FieldNotFound { org.quickfix.field.RoundingDirection value = new org.quickfix.field.RoundingDirection(); | public quickfix.field.RoundingDirection getRoundingDirection() throws FieldNotFound { quickfix.field.RoundingDirection value = new quickfix.field.RoundingDirection(); | public org.quickfix.field.RoundingDirection getRoundingDirection() throws FieldNotFound { org.quickfix.field.RoundingDirection value = new org.quickfix.field.RoundingDirection(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CrossOrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix44/CrossOrderCancelReplaceRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
8212,
4170,
772,
310,
8212,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
8212,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
8212,
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,
11066,
310,
8212,
4170,
772,
310,
8212,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
8212,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
8212,
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
] |
{"First_Day",new java.lang.Integer(2),}, | {"First_Day",java.lang.Integer.valueOf(2),}, | protected Object[][] getContents() { Object[][] contents = { {"First_Day",new java.lang.Integer(2),}, {"months",new String[]{"Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember","",},}, {"shortMonths",new String[]{"Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nop","Des","",},}, {"weekdays",new String[]{"","Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu",},}, {"shortWeekdays",new String[]{"","Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu",},}, {"Date_SHORT","dd/MM/yy",}, {"Date_MEDIUM","dd/MM/yyyy",}, {"Date_LONG","d MMMM, yyyy",}, {"Date_FULL","EEEE d MMMM, yyyy",}, {"Time_SHORT","H:mm",}, {"Time_MEDIUM","H:mm:ss",}, {"Time_LONG","H:mm:ss",}, {"Time_FULL","H:mm:ss z",}, {"DecimalPatternChars","0#,.;%\u2030E,-",}, {"Currency","\u00a4 #,##0.00;- \u00a4 #,##0.00",}, };return contents;} | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/4cd556f6bcafbcc4bb2142e05523342b18bd2dda/Locale_in.java/clean/modules/luni/src/main/java/org/apache/harmony/luni/internal/locale/Locale_in.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
1033,
63,
6362,
65,
15015,
1435,
288,
202,
921,
63,
6362,
65,
2939,
273,
288,
202,
202,
16711,
3759,
67,
4245,
3113,
2704,
2252,
18,
4936,
18,
4522,
12,
22,
3631,
5779,
202,
202,
16711,
27584,
3113,
2704,
514,
63,
7073,
6,
46,
304,
89,
12954,
15937,
2954,
2848,
89,
12954,
15937,
49,
20731,
15937,
37,
683,
330,
15937,
4667,
77,
15937,
46,
318,
77,
15937,
46,
14826,
15937,
2577,
641,
407,
15937,
1761,
337,
2558,
15937,
8809,
869,
744,
15937,
50,
1306,
81,
744,
15937,
6305,
2558,
15937,
3113,
5779,
5779,
202,
202,
16711,
6620,
19749,
3113,
2704,
514,
63,
7073,
6,
46,
304,
15937,
2954,
70,
15937,
49,
297,
15937,
37,
683,
15937,
4667,
77,
15937,
46,
318,
15937,
46,
332,
15937,
2577,
89,
15937,
5097,
15937,
51,
8629,
15937,
50,
556,
15937,
6305,
15937,
3113,
5779,
5779,
202,
202,
16711,
10741,
9810,
3113,
2704,
514,
63,
7073,
6,
15937,
49,
310,
6891,
15937,
55,
275,
267,
15937,
1877,
345,
69,
15937,
54,
12941,
15937,
47,
301,
291,
15937,
46,
379,
270,
15937,
55,
378,
88,
89,
3113,
5779,
5779,
202,
202,
16711,
6620,
6630,
9810,
3113,
2704,
514,
63,
7073,
6,
15937,
49,
310,
6891,
15937,
55,
275,
267,
15937,
1877,
345,
69,
15937,
54,
12941,
15937,
47,
301,
291,
15937,
46,
379,
270,
15937,
55,
378,
88,
89,
3113,
5779,
5779,
202,
202,
16711,
1626,
67,
15993,
15937,
449,
19,
8206,
19,
6795,
3113,
5779,
202,
202,
16711,
1626,
67,
15971,
2799,
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,
4750,
1033,
63,
6362,
65,
15015,
1435,
288,
202,
921,
63,
6362,
65,
2939,
273,
288,
202,
202,
16711,
3759,
67,
4245,
3113,
2704,
2252,
18,
4936,
18,
4522,
12,
22,
3631,
5779,
202,
202,
16711,
27584,
3113,
2704,
514,
63,
7073,
6,
46,
304,
89,
12954,
15937,
2954,
2848,
89,
12954,
15937,
49,
20731,
15937,
37,
683,
330,
15937,
4667,
77,
15937,
46,
318,
77,
15937,
46,
14826,
15937,
2577,
641,
407,
15937,
1761,
337,
2558,
15937,
8809,
869,
744,
15937,
50,
1306,
81,
744,
15937,
6305,
2558,
15937,
3113,
5779,
5779,
202,
202,
16711,
6620,
19749,
3113,
2704,
514,
63,
7073,
6,
46,
304,
15937,
2954,
70,
15937,
49,
297,
15937,
37,
683,
15937,
4667,
77,
15937,
2
] |
if (!Compute.isAffectedByECM(e, e.getPosition(), eMaster.getPosition())) { | if (!Compute.isAffectedByECM(e, e.getPosition(), eMaster.getPosition()) &&!Compute.isAffectedByECM(eMaster, eMaster.getPosition(), eMaster.getPosition())) { | private void addC3Link(Entity e) { if (e.getPosition() == null) return; if (e.hasC3i()) { for (Enumeration i = game.getEntities(); i.hasMoreElements();) { final Entity fe = (Entity) i.nextElement(); if (fe.getPosition() == null) return; if (e.onSameC3NetworkAs(fe)) { C3Sprites.add(new C3Sprite(e, fe)); } } } else if (e.getC3Master() != null) { Entity eMaster = e.getC3Master(); if (eMaster.getPosition() == null) return; // ECM cuts off the network if (!Compute.isAffectedByECM(e, e.getPosition(), eMaster.getPosition())) { C3Sprites.add(new C3Sprite(e, e.getC3Master())); } } } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/0fec0872cdc61ffd9e9100d3d5b2b01d9228262b/BoardView1.java/clean/megamek/src/megamek/client/ui/swing/BoardView1.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
39,
23,
2098,
12,
1943,
425,
13,
288,
3639,
309,
261,
73,
18,
588,
2555,
1435,
422,
446,
13,
327,
31,
3639,
309,
261,
73,
18,
5332,
39,
23,
77,
10756,
288,
5411,
364,
261,
21847,
277,
273,
7920,
18,
588,
8108,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
7734,
727,
3887,
1656,
273,
261,
1943,
13,
277,
18,
4285,
1046,
5621,
7734,
309,
261,
3030,
18,
588,
2555,
1435,
422,
446,
13,
327,
31,
7734,
309,
261,
73,
18,
265,
8650,
39,
23,
3906,
1463,
12,
3030,
3719,
288,
10792,
385,
23,
3389,
24047,
18,
1289,
12,
2704,
385,
23,
3389,
796,
12,
73,
16,
1656,
10019,
7734,
289,
5411,
289,
3639,
289,
469,
309,
261,
73,
18,
588,
39,
23,
7786,
1435,
480,
446,
13,
288,
5411,
3887,
425,
7786,
273,
425,
18,
588,
39,
23,
7786,
5621,
5411,
309,
261,
73,
7786,
18,
588,
2555,
1435,
422,
446,
13,
327,
31,
5411,
368,
7773,
49,
6391,
87,
3397,
326,
2483,
5411,
309,
16051,
7018,
18,
291,
23775,
858,
7228,
49,
12,
73,
16,
425,
18,
588,
2555,
9334,
425,
7786,
18,
588,
2555,
10756,
597,
5,
7018,
18,
291,
23775,
858,
7228,
49,
12,
73,
7786,
16,
425,
7786,
18,
588,
2555,
9334,
425,
7786,
18,
588,
2555,
1435,
3719,
288,
7734,
385,
23,
3389,
24047,
18,
1289,
12,
2704,
385,
23,
3389,
796,
12,
73,
16,
425,
18,
588,
39,
23,
7786,
1435,
10019,
5411,
289,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
39,
23,
2098,
12,
1943,
425,
13,
288,
3639,
309,
261,
73,
18,
588,
2555,
1435,
422,
446,
13,
327,
31,
3639,
309,
261,
73,
18,
5332,
39,
23,
77,
10756,
288,
5411,
364,
261,
21847,
277,
273,
7920,
18,
588,
8108,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
7734,
727,
3887,
1656,
273,
261,
1943,
13,
277,
18,
4285,
1046,
5621,
7734,
309,
261,
3030,
18,
588,
2555,
1435,
422,
446,
13,
327,
31,
7734,
309,
261,
73,
18,
265,
8650,
39,
23,
3906,
1463,
12,
3030,
3719,
288,
10792,
385,
23,
3389,
24047,
18,
1289,
12,
2704,
385,
23,
3389,
796,
12,
73,
16,
1656,
10019,
7734,
289,
5411,
289,
3639,
2
] |
(action == WPAnswer.LOOKUP ? config.lookupTimeoutMillis : | (action == WPAnswer.LOOKUP ? config.lookupTimeoutMillis : action == WPAnswer.PING ? config.pingTimeoutMillis : | private void send( int action, MessageAddress clientAddr, long clientTime, Map m) { if (m == null || m.isEmpty()) { return; } long now = System.currentTimeMillis(); long timeout = (action == WPAnswer.LOOKUP ? config.lookupTimeoutMillis : config.modifyTimeoutMillis); if (0 < timeout && 0 < graceTime) { long diff = graceTime - now; if (0 < diff && timeout < diff) { timeout = diff; } } long deadline = now + timeout; // tag with optional timeout attribute MessageAddress target = MessageTimeoutUtils.setDeadline( clientAddr, deadline); WPAnswer wpa = new WPAnswer( agentId, target, clientTime, now, USE_SERVER_TIME, action, m); sendOrQueue(wpa); } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/5354808ad0f03d28fe7c9ad0a594809aeb06c26d/ServerTransport.java/clean/core/src/org/cougaar/core/wp/server/ServerTransport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1366,
12,
1377,
509,
1301,
16,
1377,
2350,
1887,
1004,
3178,
16,
1377,
1525,
1004,
950,
16,
1377,
1635,
312,
13,
288,
565,
309,
261,
81,
422,
446,
747,
312,
18,
291,
1921,
10756,
288,
1377,
327,
31,
565,
289,
565,
1525,
2037,
273,
2332,
18,
2972,
28512,
5621,
565,
1525,
2021,
273,
1377,
261,
1128,
422,
10614,
13203,
18,
1502,
31581,
692,
4202,
642,
18,
8664,
2694,
4814,
294,
4202,
642,
18,
17042,
2694,
4814,
1769,
565,
309,
261,
20,
411,
2021,
597,
374,
411,
13658,
950,
13,
288,
1377,
1525,
3122,
273,
13658,
950,
300,
2037,
31,
1377,
309,
261,
20,
411,
3122,
597,
2021,
411,
3122,
13,
288,
3639,
2021,
273,
3122,
31,
1377,
289,
565,
289,
565,
1525,
14096,
273,
2037,
397,
2021,
31,
565,
368,
1047,
598,
3129,
2021,
1566,
565,
2350,
1887,
1018,
273,
4202,
2350,
2694,
1989,
18,
542,
15839,
12,
1850,
1004,
3178,
16,
1850,
14096,
1769,
565,
10614,
13203,
6357,
69,
273,
394,
10614,
13203,
12,
3639,
4040,
548,
16,
3639,
1018,
16,
3639,
1004,
950,
16,
3639,
2037,
16,
3639,
14988,
67,
4370,
67,
4684,
16,
3639,
1301,
16,
3639,
312,
1769,
565,
1366,
1162,
3183,
12,
8612,
69,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1366,
12,
1377,
509,
1301,
16,
1377,
2350,
1887,
1004,
3178,
16,
1377,
1525,
1004,
950,
16,
1377,
1635,
312,
13,
288,
565,
309,
261,
81,
422,
446,
747,
312,
18,
291,
1921,
10756,
288,
1377,
327,
31,
565,
289,
565,
1525,
2037,
273,
2332,
18,
2972,
28512,
5621,
565,
1525,
2021,
273,
1377,
261,
1128,
422,
10614,
13203,
18,
1502,
31581,
692,
4202,
642,
18,
8664,
2694,
4814,
294,
4202,
642,
18,
17042,
2694,
4814,
1769,
565,
309,
261,
20,
411,
2021,
597,
374,
411,
13658,
950,
13,
288,
1377,
1525,
3122,
273,
13658,
950,
300,
2037,
31,
1377,
309,
261,
20,
411,
3122,
597,
2021,
411,
3122,
13,
288,
3639,
2021,
273,
3122,
31,
2
] |
protected void checkPermissions( | public void checkPermissions( | protected void checkPermissions( CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, int permissions) throws CmsSecurityException, CmsLockException, CmsVfsResourceNotFoundException { switch (permissions) { case PERM_FILTERED: throw new CmsVfsResourceNotFoundException(Messages.get().container( Messages.ERR_PERM_FILTERED_1, context.getSitePath(resource))); case PERM_DENIED: throw new CmsPermissionViolationException(Messages.get().container( Messages.ERR_PERM_DENIED_2, context.getSitePath(resource), requiredPermissions.getPermissionString())); case PERM_NOTLOCKED: throw new CmsLockException(Messages.get().container( Messages.ERR_PERM_NOTLOCKED_2, context.getSitePath(resource), context.currentUser().getName())); case PERM_ALLOWED: default: return; } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0a325deda5c054061b5c35a9c0aa5deed3c6eaad/CmsSecurityManager.java/buggy/src/org/opencms/db/CmsSecurityManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
866,
6521,
12,
3639,
2149,
21426,
819,
16,
3639,
7630,
1058,
16,
3639,
2149,
5041,
694,
1931,
6521,
16,
3639,
509,
4371,
13,
1216,
2149,
24918,
16,
2149,
2531,
503,
16,
2149,
25908,
1420,
3990,
288,
3639,
1620,
261,
9612,
13,
288,
5411,
648,
10950,
49,
67,
11126,
2056,
30,
7734,
604,
394,
2149,
25908,
1420,
3990,
12,
5058,
18,
588,
7675,
3782,
12,
10792,
4838,
18,
9712,
67,
3194,
49,
67,
11126,
2056,
67,
21,
16,
10792,
819,
18,
588,
4956,
743,
12,
3146,
3719,
1769,
5411,
648,
10950,
49,
67,
13296,
29229,
30,
7734,
604,
394,
2149,
5041,
27052,
12,
5058,
18,
588,
7675,
3782,
12,
10792,
4838,
18,
9712,
67,
3194,
49,
67,
13296,
29229,
67,
22,
16,
10792,
819,
18,
588,
4956,
743,
12,
3146,
3631,
10792,
1931,
6521,
18,
588,
5041,
780,
1435,
10019,
5411,
648,
10950,
49,
67,
4400,
6589,
2056,
30,
7734,
604,
394,
2149,
2531,
503,
12,
5058,
18,
588,
7675,
3782,
12,
10792,
4838,
18,
9712,
67,
3194,
49,
67,
4400,
6589,
2056,
67,
22,
16,
10792,
819,
18,
588,
4956,
743,
12,
3146,
3631,
10792,
819,
18,
2972,
1299,
7675,
17994,
1435,
10019,
5411,
648,
10950,
49,
67,
16852,
30,
5411,
805,
30,
7734,
327,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
866,
6521,
12,
3639,
2149,
21426,
819,
16,
3639,
7630,
1058,
16,
3639,
2149,
5041,
694,
1931,
6521,
16,
3639,
509,
4371,
13,
1216,
2149,
24918,
16,
2149,
2531,
503,
16,
2149,
25908,
1420,
3990,
288,
3639,
1620,
261,
9612,
13,
288,
5411,
648,
10950,
49,
67,
11126,
2056,
30,
7734,
604,
394,
2149,
25908,
1420,
3990,
12,
5058,
18,
588,
7675,
3782,
12,
10792,
4838,
18,
9712,
67,
3194,
49,
67,
11126,
2056,
67,
21,
16,
10792,
819,
18,
588,
4956,
743,
12,
3146,
3719,
1769,
5411,
648,
10950,
49,
67,
13296,
29229,
30,
7734,
604,
394,
2149,
5041,
27052,
12,
5058,
18,
588,
7675,
3782,
12,
10792,
4838,
18,
9712,
67,
3194,
49,
67,
2
] |
"modificationset"); | "sourcecontrol"); | public void testShouldGetCVSDetail() throws AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException, IOException { PluginDetail cvsDetail = locator.getPluginDetail("cvs", "modificationset"); assertEquals("cvs", cvsDetail.getName()); assertEquals("modificationset", cvsDetail.getType().getName());// assertEquals(PluginType.MODIFICATION_SET, cvsDetail.getType()); assertEquals(6, cvsDetail.getRequiredAttributes().length); } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/4f8524bdb4d3f37fb0ec6b3cac91f64e7c229848/PluginLocatorTest.java/buggy/webtest/net/sourceforge/cruisecontrol/PluginLocatorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
14309,
967,
39,
14640,
6109,
1435,
1216,
3601,
3990,
16,
5411,
5180,
3990,
16,
16622,
503,
16,
28818,
16,
5411,
1860,
288,
3639,
6258,
6109,
276,
6904,
6109,
273,
8871,
18,
588,
3773,
6109,
2932,
71,
6904,
3113,
7734,
315,
3168,
7098,
8863,
3639,
1815,
8867,
2932,
71,
6904,
3113,
276,
6904,
6109,
18,
17994,
10663,
3639,
1815,
8867,
2932,
31064,
542,
3113,
276,
6904,
6109,
18,
588,
559,
7675,
17994,
10663,
759,
3639,
1815,
8867,
12,
3773,
559,
18,
6720,
14865,
67,
4043,
16,
276,
6904,
6109,
18,
588,
559,
10663,
3639,
1815,
8867,
12,
26,
16,
276,
6904,
6109,
18,
588,
3705,
2498,
7675,
2469,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
14309,
967,
39,
14640,
6109,
1435,
1216,
3601,
3990,
16,
5411,
5180,
3990,
16,
16622,
503,
16,
28818,
16,
5411,
1860,
288,
3639,
6258,
6109,
276,
6904,
6109,
273,
8871,
18,
588,
3773,
6109,
2932,
71,
6904,
3113,
7734,
315,
3168,
7098,
8863,
3639,
1815,
8867,
2932,
71,
6904,
3113,
276,
6904,
6109,
18,
17994,
10663,
3639,
1815,
8867,
2932,
31064,
542,
3113,
276,
6904,
6109,
18,
588,
559,
7675,
17994,
10663,
759,
3639,
1815,
8867,
12,
3773,
559,
18,
6720,
14865,
67,
4043,
16,
276,
6904,
6109,
18,
588,
559,
10663,
3639,
1815,
8867,
12,
26,
16,
276,
6904,
6109,
18,
588,
3705,
2498,
7675,
2469,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100
] |
result.data[i] = ((Long) m.map(new Long(data[offset + i]))) .longValue(); | result.data[i] = ((BigInteger) m.map(data[offset + i])); | public Array map(Mapping m) { BitFieldArray result = new BitFieldArray(length, numBits); for (int i = 0; i < length; i++) { result.data[i] = ((Long) m.map(new Long(data[offset + i]))) .longValue(); } return result; } | 57502 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57502/927ade2ec2397ef48ee3d4b21e29c5c9b7eccde2/BitFieldArray.java/clean/trunk/dstools-antlr/src/datascript/runtime/BitFieldArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1510,
852,
12,
3233,
312,
13,
565,
288,
3639,
6539,
974,
1076,
563,
273,
394,
6539,
974,
1076,
12,
2469,
16,
818,
6495,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
769,
31,
277,
27245,
3639,
288,
5411,
563,
18,
892,
63,
77,
65,
273,
14015,
3708,
13,
312,
18,
1458,
12,
2704,
3407,
12,
892,
63,
3348,
397,
277,
65,
20349,
10792,
263,
5748,
620,
5621,
3639,
289,
3639,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1510,
852,
12,
3233,
312,
13,
565,
288,
3639,
6539,
974,
1076,
563,
273,
394,
6539,
974,
1076,
12,
2469,
16,
818,
6495,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
769,
31,
277,
27245,
3639,
288,
5411,
563,
18,
892,
63,
77,
65,
273,
14015,
3708,
13,
312,
18,
1458,
12,
2704,
3407,
12,
892,
63,
3348,
397,
277,
65,
20349,
10792,
263,
5748,
620,
5621,
3639,
289,
3639,
327,
563,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
iCodeTop = addByte(Token.TYPEOFNAME, iCodeTop); | iCodeTop = addIcode(Icode_TYPEOFNAME, iCodeTop); | private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case Token.FUNCTION : { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); FunctionNode fn = scriptOrFn.getFunctionNode(fnIndex); if (fn.itsFunctionType != FunctionNode.FUNCTION_STATEMENT) { // Only function expressions or function expression // statements needs closure code creating new function // object on stack as function statements are initialized // at script/function start iCodeTop = addByte(Token.CLOSURE, iCodeTop); iCodeTop = addIndex(fnIndex, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != Token.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNext(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.LABEL : case Token.LOOP : case Token.DEFAULT : case Token.BLOCK : case Token.VOID : case Token.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.WITH : ++itsWithDepth; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsWithDepth; break; case Token.COMMA : iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; iCodeTop = generateICode(child, iCodeTop); } break; case Token.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(Token.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; ObjArray cases = (ObjArray) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte(Token.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(Token.SHEQ, iCodeTop); itsStackDepth--; Node target = new Node(Token.TARGET); thisCase.addChildAfter(target, first); iCodeTop = addGoto(target, Token.IFEQ, iCodeTop); } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(Token.TARGET); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, Token.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); iCodeTop = addGoto(breakTarget, Token.GOTO, iCodeTop); break; } case Token.TARGET : { markTargetLabel(node, iCodeTop); break; } case Token.EQOP : case Token.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int op = node.getOperation(); if (version == Context.VERSION_1_2) { if (op == Token.EQ) { op = Token.SHEQ; } else if (op == Token.NE) { op = Token.SHNE; } } iCodeTop = addByte(op, iCodeTop); itsStackDepth--; break; } case Token.NEW : case Token.CALL : { int childCount = 0; String functionName = null; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (functionName == null) { int childType = child.getType(); if (childType == Token.NAME || childType == Token.GETPROP) { functionName = lastAddString; } } child = child.getNext(); childCount++; } int callType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); if (callType != Node.NON_SPECIALCALL) { // embed line number and source filename iCodeTop = addByte(Icode_CALLSPECIAL, iCodeTop); iCodeTop = addByte(callType, iCodeTop); iCodeTop = addByte(type == Token.NEW ? 1 : 0, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); } else { iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(functionName, iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == Token.NEW) { childCount -= 1; } else { childCount -= 2; } iCodeTop = addIndex(childCount, iCodeTop); if (childCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = childCount; break; } case Token.NEWLOCAL : case Token.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); break; } case Token.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) { iCodeTop = addByte(Icode_RETSUB, iCodeTop); } else { iCodeTop = addByte(Token.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); break; } case Token.USETEMP : { iCodeTop = addByte(Token.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.IFEQ : case Token.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case Token.GOTO : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, (byte) type, iCodeTop); break; } case Token.JSR : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, Icode_GOSUB, iCodeTop); break; } case Token.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFNE, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(falseJumpStart, iCodeTop); break; } case Token.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFEQ, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); break; } case Token.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) { iCodeTop = addByte(Icode_GETPROTO, iCodeTop); } else if (s.equals("__parent__")) { iCodeTop = addByte(Icode_GETSCOPEPARENT, iCodeTop); } else { badTree(node); } } else { child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.GETPROP, iCodeTop); itsStackDepth--; } break; } case Token.DELPROP : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.ADD : case Token.SUB : case Token.MOD : case Token.DIV : case Token.MUL : case Token.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case Token.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) { iCodeTop = addByte(Token.POS, iCodeTop); } else { badTree(node); } break; } case Token.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getOperation()) { case Token.VOID : iCodeTop = addByte(Token.POP, iCodeTop); iCodeTop = addByte(Token.UNDEFINED, iCodeTop); break; case Token.NOT : { int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFEQ, iCodeTop); iCodeTop = addByte(Token.TRUE, iCodeTop); int beyondJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.GOTO, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); iCodeTop = addByte(Token.FALSE, iCodeTop); resolveForwardGoto(beyondJumpStart, iCodeTop); break; } case Token.BITNOT : iCodeTop = addByte(Token.BITNOT, iCodeTop); break; case Token.TYPEOF : iCodeTop = addByte(Token.TYPEOF, iCodeTop); break; case Token.SUB : iCodeTop = addByte(Token.NEG, iCodeTop); break; case Token.ADD : iCodeTop = addByte(Token.POS, iCodeTop); break; default: badTree(node); break; } break; case Token.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) { iCodeTop = addByte(Icode_SETPROTO, iCodeTop); } else if (s.equals("__parent__")) { iCodeTop = addByte(Icode_SETPARENT, iCodeTop); } else { badTree(node); } } else { child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.SETPROP, iCodeTop); itsStackDepth -= 2; } break; } case Token.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth -= 2; break; case Token.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case Token.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = scriptOrFn.getParamOrVarIndex(name); if (index == -1) { iCodeTop = addByte(Token.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addByte(Token.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_GETPARENT, iCodeTop); break; case Token.GETBASE : case Token.BINDNAME : case Token.NAME : case Token.STRING : iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.INC : case Token.DEC : { int childType = child.getType(); switch (childType) { case Token.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte(Icode_SCOPE, iCodeTop); iCodeTop = addByte(Token.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(type == Token.INC ? Token.PROPINC : Token.PROPDEC, iCodeTop); itsStackDepth--; } else { int i = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(type == Token.INC ? Token.VARINC : Token.VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.GETPROP : case Token.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNext(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == Token.GETPROP) { iCodeTop = addByte(type == Token.INC ? Token.PROPINC : Token.PROPDEC, iCodeTop); } else { iCodeTop = addByte(type == Token.INC ? Token.ELEMINC : Token.ELEMDEC, iCodeTop); } itsStackDepth--; break; } default : { iCodeTop = addByte(type == Token.INC ? Token.NAMEINC : Token.NAMEDEC, iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } } break; } case Token.NUMBER : { double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addByte(Token.ZERO, iCodeTop); } else if (inum == 1) { iCodeTop = addByte(Token.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addByte(Icode_SHORTNUMBER, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addByte(Icode_INTNUMBER, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addByte(Token.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.POP : case Token.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case Token.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case Token.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); break; case Token.NEWSCOPE : iCodeTop = addByte(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.LEAVEWITH : iCodeTop = addByte(type, iCodeTop); break; case Token.TRY : { Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); int tryStart = iCodeTop; int tryEnd = -1; int catchStart = -1; int finallyStart = -1; while (child != null) { boolean generated = false; if (child == catchTarget) { if (child.getType() != Token.TARGET) Context.codeBug(); if (tryEnd >= 0) Context.codeBug(); tryEnd = iCodeTop; catchStart = iCodeTop; markTargetLabel(child, iCodeTop); generated = true; // Catch code has exception object on the stack itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } else if (child == finallyTarget) { if (child.getType() != Token.TARGET) Context.codeBug(); if (tryEnd < 0) { tryEnd = iCodeTop; } finallyStart = iCodeTop; markTargetLabel(child, iCodeTop); generated = true; // Adjust stack for finally code: on the top of the // stack it has either a PC value when called from // GOSUB or exception object to rethrow when called // from exception handler itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) { itsData.itsMaxStack = itsStackDepth; } } if (!generated) { iCodeTop = generateICode(child, iCodeTop); } child = child.getNext(); } itsStackDepth = 0; // [tryStart, tryEnd) contains GOSUB to call finally when it // presents at the end of try code and before return, break // continue that transfer control outside try. // After finally is executed the control will be // transfered back into [tryStart, tryEnd) and exception // handling assumes that the only code executed after // finally returns will be a jump outside try which could not // trigger exceptions. // It does not hold if instruction observer throws during // goto. Currently it may lead to double execution of finally. addExceptionHandler(tryStart, tryEnd, catchStart, finallyStart, itsWithDepth); break; } case Token.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.THROW, iCodeTop); itsStackDepth--; break; case Token.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(Icode_RETUNDEF, iCodeTop); } break; case Token.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte(Icode_SCOPE, iCodeTop); iCodeTop = addByte(Token.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(Token.GETPROP, iCodeTop); itsStackDepth--; } else { int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(Token.BINDNAME); node.setType(Token.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(Token.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } break; } case Token.PRIMARY: iCodeTop = addByte(node.getOperation(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case Token.ENUMNEXT : { iCodeTop = addByte(Token.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.ENUMDONE : // could release the local here?? break; case Token.REGEXP : { int index = node.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addByte(Token.REGEXP, iCodeTop); iCodeTop = addIndex(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } default : badTree(node); break; } return iCodeTop; } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/faf2a30c39fc508f2635416a94f9662c4ae41ad3/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
5411,
648,
3155,
18,
7788,
294,
288,
7734,
509,
2295,
1016,
273,
756,
18,
588,
9895,
1702,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
7734,
4284,
907,
2295,
273,
2728,
1162,
5372,
18,
588,
2083,
907,
12,
4293,
1016,
1769,
7734,
309,
261,
4293,
18,
1282,
2083,
559,
480,
4284,
907,
18,
7788,
67,
28411,
13,
288,
10792,
368,
5098,
445,
8041,
578,
445,
2652,
10792,
368,
6317,
4260,
7213,
981,
4979,
394,
445,
10792,
368,
733,
603,
2110,
487,
445,
6317,
854,
6454,
10792,
368,
622,
2728,
19,
915,
787,
10792,
277,
1085,
3401,
273,
527,
3216,
12,
1345,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
277,
1085,
3401,
273,
26794,
12,
4293,
1016,
16,
277,
1085,
3401,
1769,
10792,
2097,
2624,
6148,
9904,
31,
10792,
309,
261,
1282,
2624,
6148,
405,
2097,
751,
18,
1282,
2747,
2624,
13,
13491,
2097,
751,
18,
1282,
2747,
2624,
273,
2097,
2624,
6148,
31,
7734,
289,
7734,
898,
31,
5411,
289,
5411,
648,
3155,
18,
10885,
294,
7734,
277,
1085,
3401,
273,
1089,
31063,
12,
2159,
16,
277,
1085,
3401,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
309,
261,
3624,
18,
588,
559,
1435,
480,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
5411,
648,
3155,
18,
7788,
294,
288,
7734,
509,
2295,
1016,
273,
756,
18,
588,
9895,
1702,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
7734,
4284,
907,
2295,
273,
2728,
1162,
5372,
18,
588,
2083,
907,
12,
4293,
1016,
1769,
7734,
309,
261,
4293,
18,
1282,
2083,
559,
480,
4284,
907,
18,
7788,
67,
28411,
13,
288,
10792,
368,
5098,
445,
8041,
578,
445,
2652,
10792,
368,
6317,
4260,
7213,
981,
2
] |
ServiceClient sender = new ServiceClient(serviceContext); sender.setCurrentOperationName(operationName); | ServiceClient sender = new ServiceClient(configContext, clientService); sender.engageModule(new QName("addressing")); | public void testEchoXMLASync() throws Exception { OMElement payload = createPayload(); Options options = new Options(); options.setTo(targetEPR); options.setTransportInProtocol(Constants.TRANSPORT_JMS); options.setAction(serviceName.getLocalPart()); options.setSoapAction("echoOMElement"); Callback callback = new Callback() { public void onComplete(AsyncResult result) { try { result.getResponseEnvelope().serialize(XMLOutputFactory.newInstance() .createXMLStreamWriter(System.out)); } catch (XMLStreamException e) { reportError(e); } finally { finish = true; } } public void reportError(Exception e) { log.info(e.getMessage()); finish = true; } }; ServiceClient sender = new ServiceClient(serviceContext); sender.setCurrentOperationName(operationName); sender.setOptions(options); options.setTo(targetEPR); sender.sendReceiveNonblocking(payload, callback); int index = 0; while (!finish) { Thread.sleep(10000); index++; if (index > 10) { throw new AxisFault( "Server was shutdown as the async response take too long to complete"); } } sender.finalizeInvoke(); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/8baa74e67adc60139306df51be4a393501d5b175/JMSEchoRawXMLTest.java/buggy/modules/integration/test/org/apache/axis2/jms/JMSEchoRawXMLTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
19704,
4201,
3033,
1209,
1435,
1216,
1185,
288,
3639,
531,
12310,
2385,
273,
752,
6110,
5621,
3639,
5087,
702,
273,
394,
5087,
5621,
3639,
702,
18,
542,
774,
12,
3299,
41,
8025,
1769,
3639,
702,
18,
542,
6568,
382,
5752,
12,
2918,
18,
8989,
31943,
67,
46,
3537,
1769,
3639,
702,
18,
542,
1803,
12,
15423,
18,
588,
2042,
1988,
10663,
3639,
702,
18,
542,
20601,
1803,
2932,
12946,
51,
12310,
8863,
3639,
8444,
1348,
273,
394,
8444,
1435,
288,
5411,
1071,
918,
25050,
12,
2771,
1253,
563,
13,
288,
7734,
775,
288,
10792,
563,
18,
588,
1064,
10862,
7675,
6288,
12,
4201,
1447,
1733,
18,
2704,
1442,
1435,
18701,
263,
2640,
4201,
29421,
12,
3163,
18,
659,
10019,
7734,
289,
1044,
261,
4201,
1228,
503,
425,
13,
288,
10792,
17887,
12,
73,
1769,
7734,
289,
3095,
288,
10792,
4076,
273,
638,
31,
7734,
289,
5411,
289,
5411,
1071,
918,
17887,
12,
503,
425,
13,
288,
7734,
613,
18,
1376,
12,
73,
18,
24906,
10663,
7734,
4076,
273,
638,
31,
5411,
289,
3639,
289,
31,
3639,
1956,
1227,
5793,
273,
394,
1956,
1227,
12,
3278,
1042,
1769,
3639,
5793,
18,
542,
3935,
2988,
461,
12,
7624,
461,
1769,
3639,
5793,
18,
542,
1320,
12,
2116,
1769,
3639,
702,
18,
542,
774,
12,
3299,
41,
8025,
1769,
3639,
5793,
18,
4661,
11323,
3989,
18926,
12,
7648,
16,
1348,
1769,
3639,
509,
770,
273,
374,
31,
3639,
1323,
16051,
13749,
13,
288,
5411,
4884,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
19704,
4201,
3033,
1209,
1435,
1216,
1185,
288,
3639,
531,
12310,
2385,
273,
752,
6110,
5621,
3639,
5087,
702,
273,
394,
5087,
5621,
3639,
702,
18,
542,
774,
12,
3299,
41,
8025,
1769,
3639,
702,
18,
542,
6568,
382,
5752,
12,
2918,
18,
8989,
31943,
67,
46,
3537,
1769,
3639,
702,
18,
542,
1803,
12,
15423,
18,
588,
2042,
1988,
10663,
3639,
702,
18,
542,
20601,
1803,
2932,
12946,
51,
12310,
8863,
3639,
8444,
1348,
273,
394,
8444,
1435,
288,
5411,
1071,
918,
25050,
12,
2771,
1253,
563,
13,
288,
7734,
775,
288,
10792,
563,
18,
588,
1064,
10862,
7675,
6288,
12,
4201,
1447,
1733,
18,
2704,
1442,
1435,
18701,
263,
2640,
4201,
29421,
12,
2
] |
int preferredSize; int minimumSize; if (m_showGrid) { preferredSize = preferredFieldSize * (m_size + 2); minimumSize = 4 * (m_size + 2); } else { preferredSize = preferredFieldSize * m_size + preferredFieldSize / 2; minimumSize = 4 * m_size + 2; } setPreferredSize(new Dimension(preferredSize, preferredSize)); | setPreferredSize(BoardDrawer.getPreferredSize(preferredFieldSize, m_size, m_showGrid)); int minimumSize = 4 * m_size + 2; | public void setPreferredFieldSize() { int preferredFieldSize = getPreferredFieldSize().width; int preferredSize; int minimumSize; if (m_showGrid) { preferredSize = preferredFieldSize * (m_size + 2); minimumSize = 4 * (m_size + 2); } else { preferredSize = preferredFieldSize * m_size + preferredFieldSize / 2; minimumSize = 4 * m_size + 2; } setPreferredSize(new Dimension(preferredSize, preferredSize)); setMinimumSize(new Dimension(minimumSize, minimumSize)); } | 48906 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48906/f250d6b4d4129dccc845011b5318ae47cc4cb61d/GuiBoard.java/buggy/src/net/sf/gogui/gui/GuiBoard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
31099,
974,
1225,
1435,
3639,
288,
5411,
509,
9119,
974,
1225,
273,
12822,
4193,
974,
1225,
7675,
2819,
31,
5411,
509,
9119,
1225,
31,
5411,
509,
5224,
1225,
31,
5411,
309,
261,
81,
67,
4500,
6313,
13,
5411,
288,
7734,
9119,
1225,
273,
9119,
974,
1225,
380,
261,
81,
67,
1467,
397,
576,
1769,
7734,
5224,
1225,
273,
1059,
380,
261,
81,
67,
1467,
397,
576,
1769,
5411,
289,
5411,
469,
5411,
288,
7734,
9119,
1225,
273,
10792,
9119,
974,
1225,
380,
312,
67,
1467,
397,
9119,
974,
1225,
342,
576,
31,
7734,
5224,
1225,
273,
1059,
380,
312,
67,
1467,
397,
576,
31,
5411,
289,
5411,
31099,
1225,
12,
2704,
13037,
12,
23616,
1225,
16,
9119,
1225,
10019,
5411,
31973,
1225,
12,
2704,
13037,
12,
15903,
1225,
16,
5224,
1225,
10019,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
31099,
974,
1225,
1435,
3639,
288,
5411,
509,
9119,
974,
1225,
273,
12822,
4193,
974,
1225,
7675,
2819,
31,
5411,
509,
9119,
1225,
31,
5411,
509,
5224,
1225,
31,
5411,
309,
261,
81,
67,
4500,
6313,
13,
5411,
288,
7734,
9119,
1225,
273,
9119,
974,
1225,
380,
261,
81,
67,
1467,
397,
576,
1769,
7734,
5224,
1225,
273,
1059,
380,
261,
81,
67,
1467,
397,
576,
1769,
5411,
289,
5411,
469,
5411,
288,
7734,
9119,
1225,
273,
10792,
9119,
974,
1225,
380,
312,
67,
1467,
397,
9119,
974,
1225,
342,
576,
31,
7734,
5224,
1225,
273,
1059,
380,
312,
67,
1467,
397,
576,
31,
5411,
289,
5411,
31099,
1225,
12,
2704,
13037,
12,
23616,
1225,
16,
2
] |
_mngmtLock.writeLock().lock(); | final Date deployDate = new Date(); final DeploymentUnitDir du = new DeploymentUnitDir(deploymentUnitDirectory); du.compile(); du.scan(); DeployDocument dd = du.getDeploymentDescriptor(); final ArrayList<ProcessConfImpl> processes = new ArrayList<ProcessConfImpl>(); Collection<QName> deployed; _rw.writeLock().lock(); | public Collection<QName> deploy(File deploymentUnitDirectory) { __log.info(__msgs.msgDeployStarting(deploymentUnitDirectory)); _mngmtLock.writeLock().lock(); try { DeploymentUnitImpl du = _deploymentManager.createDeploymentUnit(deploymentUnitDirectory); // Checking first that the same process isn't deployed elsewhere for (TDeployment.Process processDD : du.getDeploymentDescriptor().getDeploy().getProcessList()) { if (_deploymentUnits.get(processDD.getName()) != null) { String duName = _deploymentUnits.get(processDD.getName()).getDeployDir().getName(); if (!duName.equals(deploymentUnitDirectory.getName())) throw new BpelEngineException("Process " + processDD.getName() + " is already deployed in " + duName + ""); } } ArrayList<QName> deployed = new ArrayList<QName>(); BpelEngineException failed = null; // Going trough each process declared in the dd for (TDeployment.Process processDD : du.getDeploymentDescriptor().getDeploy().getProcessList()) { // If a type is not specified, assume the process id is also the // type. QName type = processDD.getType() != null ? processDD.getType() : processDD.getName(); OProcess oprocess = du.getProcesses().get(type); if (oprocess == null) throw new BpelEngineException("Could not find the compiled process definition for BPEL" + "type " + type + " when deploying process " + processDD.getName() + " in " + deploymentUnitDirectory); try { deploy(processDD.getName(), du, oprocess, processDD); deployed.add(processDD.getName()); } catch (Throwable e) { String errmsg = __msgs.msgDeployFailed(processDD.getName(), deploymentUnitDirectory); __log.error(errmsg, e); failed = new BpelEngineException(errmsg, e); break; } } // Roll back succesfull deployments if we failed. if (failed != null) { if (!deployed.isEmpty()) { __log.error(__msgs.msgDeployRollback(deploymentUnitDirectory)); for (QName pid : deployed) { try { undeploy(pid); } catch (Throwable t) { __log.fatal("Unexpect error undeploying process " + pid, t); } } } throw failed; } return new HashSet<QName>(du.getProcesses().keySet()); } finally { _mngmtLock.writeLock().unlock(); } } | 45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/baa0a20012d25b6659956b4a896c6f37d34bb4d9/ProcessStoreImpl.java/buggy/bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
32,
13688,
34,
7286,
12,
812,
6314,
2802,
2853,
13,
288,
3639,
1001,
1330,
18,
1376,
12,
972,
27439,
18,
3576,
10015,
11715,
12,
21704,
2802,
2853,
10019,
3639,
727,
2167,
7286,
1626,
273,
394,
2167,
5621,
282,
727,
8587,
2802,
1621,
9978,
273,
394,
8587,
2802,
1621,
12,
21704,
2802,
2853,
1769,
9978,
18,
11100,
5621,
9978,
18,
9871,
5621,
7406,
2519,
6957,
273,
9978,
18,
588,
6733,
3187,
5621,
727,
2407,
32,
2227,
3976,
2828,
34,
8488,
273,
394,
2407,
32,
2227,
3976,
2828,
34,
5621,
2200,
32,
13688,
34,
19357,
31,
225,
389,
21878,
18,
2626,
2531,
7675,
739,
5621,
540,
775,
288,
5411,
8587,
2802,
2828,
9978,
273,
389,
21704,
1318,
18,
2640,
6733,
2802,
12,
21704,
2802,
2853,
1769,
5411,
368,
24471,
1122,
716,
326,
1967,
1207,
5177,
1404,
19357,
25795,
5411,
364,
261,
56,
6733,
18,
2227,
1207,
5698,
294,
9978,
18,
588,
6733,
3187,
7675,
588,
10015,
7675,
588,
2227,
682,
10756,
288,
7734,
309,
261,
67,
21704,
7537,
18,
588,
12,
2567,
5698,
18,
17994,
10756,
480,
446,
13,
288,
10792,
514,
9978,
461,
273,
389,
21704,
7537,
18,
588,
12,
2567,
5698,
18,
17994,
1435,
2934,
588,
10015,
1621,
7675,
17994,
5621,
10792,
309,
16051,
2544,
461,
18,
14963,
12,
21704,
2802,
2853,
18,
17994,
1435,
3719,
13491,
604,
394,
605,
84,
292,
4410,
503,
2932,
2227,
315,
397,
1207,
5698,
18,
17994,
1435,
397,
315,
353,
1818,
19357,
316,
315,
397,
27573,
9978,
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,
377,
1071,
2200,
32,
13688,
34,
7286,
12,
812,
6314,
2802,
2853,
13,
288,
3639,
1001,
1330,
18,
1376,
12,
972,
27439,
18,
3576,
10015,
11715,
12,
21704,
2802,
2853,
10019,
3639,
727,
2167,
7286,
1626,
273,
394,
2167,
5621,
282,
727,
8587,
2802,
1621,
9978,
273,
394,
8587,
2802,
1621,
12,
21704,
2802,
2853,
1769,
9978,
18,
11100,
5621,
9978,
18,
9871,
5621,
7406,
2519,
6957,
273,
9978,
18,
588,
6733,
3187,
5621,
727,
2407,
32,
2227,
3976,
2828,
34,
8488,
273,
394,
2407,
32,
2227,
3976,
2828,
34,
5621,
2200,
32,
13688,
34,
19357,
31,
225,
389,
21878,
18,
2626,
2531,
7675,
739,
5621,
540,
775,
288,
5411,
8587,
2802,
2828,
9978,
273,
389,
21704,
1318,
18,
2
] |
ret_val = processResoultion (obj, handle); | ret_val = processResolution (obj, handle); | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeserializing = true;// DEBUG ("MARKER "); byte marker = this.realInputStream.readByte (); switch (marker) { case TC_BLOCKDATA: case TC_BLOCKDATALONG: readNextBlock (marker); throw new BlockDataException (this.blockDataBytes); case TC_NULL: ret_val = null; break; case TC_REFERENCE: {// DEBUG ("REFERENCE "); Integer oid = new Integer (this.realInputStream.readInt ()); ret_val = ((ObjectIdentityWrapper) this.objectLookupTable.get (oid)).object; break; } case TC_CLASS: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class clazz = osc.forClass (); assignNewHandle (clazz); ret_val = clazz; break; } case TC_CLASSDESC: {// DEBUG ("CLASSDESC NAME "); String name = this.realInputStream.readUTF ();// DEBUG ("UID "); long uid = this.realInputStream.readLong ();// DEBUG ("FLAGS "); byte flags = this.realInputStream.readByte ();// DEBUG ("FIELD COUNT "); short field_count = this.realInputStream.readShort (); ObjectStreamField[] fields = new ObjectStreamField[field_count]; ObjectStreamClass osc = new ObjectStreamClass (name, uid, flags, fields); assignNewHandle (osc); for (int i=0; i < field_count; i++) {// DEBUG ("TYPE CODE "); char type_code = (char)this.realInputStream.readByte ();// DEBUG ("FIELD NAME "); String field_name = this.realInputStream.readUTF (); String class_name; if (type_code == 'L' || type_code == '[') class_name = (String)readObject (); else class_name = String.valueOf (type_code); fields[i] = new ObjectStreamField (field_name, TypeSignature.getClassForEncoding (class_name)); } setBlockDataMode (true); osc.setClass (resolveClass (osc)); setBlockDataMode (false);// DEBUG ("ENDBLOCKDATA "); if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("Data annotated to class was not consumed."); osc.setSuperclass ((ObjectStreamClass)readObject ()); ret_val = osc; break; } case TC_STRING: {// DEBUG ("STRING "); String s = this.realInputStream.readUTF (); ret_val = processResoultion (s, assignNewHandle (s)); break; } case TC_ARRAY: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class componenetType = osc.forClass ().getComponentType ();// DEBUG ("ARRAY LENGTH "); int length = this.realInputStream.readInt (); Object array = Array.newInstance (componenetType, length); int handle = assignNewHandle (array); readArrayElements (array, componenetType); ret_val = processResoultion (array, handle); break; } case TC_OBJECT: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class clazz = osc.forClass (); if (!Serializable.class.isAssignableFrom (clazz)) throw new NotSerializableException (clazz + " is not Serializable, and thus cannot be deserialized."); if (Externalizable.class.isAssignableFrom (clazz)) { Externalizable obj = null; try { obj = (Externalizable)clazz.newInstance (); } catch (InstantiationException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); } catch (IllegalAccessException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because class or zero-argument constructor is not accessible"); } catch (NoSuchMethodError e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because zero-argument constructor is not defined"); } int handle = assignNewHandle (obj); boolean read_from_blocks = ((osc.getFlags () & SC_BLOCK_DATA) != 0); if (read_from_blocks) setBlockDataMode (true); obj.readExternal (this); if (read_from_blocks) setBlockDataMode (false); ret_val = processResoultion (obj, handle); break; } // end if (Externalizable.class.isAssignableFrom (clazz)) // find the first non-serializable, non-abstract // class in clazz's inheritance hierarchy Class first_nonserial = clazz.getSuperclass (); while (Serializable.class.isAssignableFrom (first_nonserial) || Modifier.isAbstract (first_nonserial.getModifiers ())) first_nonserial = first_nonserial.getSuperclass ();// DEBUGln ("Using " + first_nonserial// + " as starting point for constructing " + clazz); Object obj = null; obj = newObject (clazz, first_nonserial); if (obj == null) throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); int handle = assignNewHandle (obj); this.currentObject = obj; ObjectStreamClass[] hierarchy = ObjectStreamClass.getObjectStreamClasses (clazz);// DEBUGln ("Got class hierarchy of depth " + hierarchy.length); boolean has_read; for (int i=0; i < hierarchy.length; i++) { this.currentObjectStreamClass = hierarchy[i];// DEBUGln ("Reading fields of "// + this.currentObjectStreamClass.getName ()); has_read = true; try { this.currentObjectStreamClass.forClass (). getDeclaredMethod ("readObject", readObjectParams); } catch (NoSuchMethodException e) { has_read = false; } // XXX: should initialize fields in classes in the hierarchy // that aren't in the stream // should skip over classes in the stream that aren't in the // real classes hierarchy readFields (obj, this.currentObjectStreamClass.fields, has_read, this.currentObjectStreamClass); if (has_read) {// DEBUG ("ENDBLOCKDATA? "); if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("No end of block data seen for class with readObject (ObjectInputStream) method."); } } this.currentObject = null; this.currentObjectStreamClass = null; ret_val = processResoultion (obj, handle); break; } case TC_RESET: clearHandles (); ret_val = readObject (); break; case TC_EXCEPTION: { Exception e = (Exception)readObject (); clearHandles (); throw new WriteAbortedException ("Exception thrown during writing of stream", e); } default: throw new IOException ("Unknown marker on stream"); } this.isDeserializing = was_deserializing; if (! was_deserializing) { setBlockDataMode (true); if (validators.size () > 0) invokeValidators (); } return ret_val; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/a7d8d64aad0a4f47fadd3357a8ce2418691ab073/ObjectInputStream.java/clean/java/io/ObjectInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1033,
17362,
1832,
1216,
10403,
16,
1860,
225,
288,
565,
309,
261,
2211,
18,
1202,
1676,
1106,
1305,
13,
1377,
327,
17362,
6618,
261,
1769,
565,
1250,
1703,
67,
5489,
24662,
6894,
31,
565,
1033,
325,
67,
1125,
31,
565,
1703,
67,
5489,
24662,
6894,
273,
333,
18,
291,
20765,
6894,
31,
565,
309,
16051,
1703,
67,
5489,
24662,
6894,
13,
1377,
444,
1768,
751,
2309,
261,
5743,
1769,
565,
333,
18,
291,
20765,
6894,
273,
638,
31,
759,
565,
6369,
7566,
25989,
315,
1769,
565,
1160,
5373,
273,
333,
18,
7688,
4348,
18,
896,
3216,
261,
1769,
565,
1620,
261,
11145,
13,
565,
288,
1377,
648,
23718,
67,
11403,
4883,
30,
1377,
648,
23718,
67,
11403,
11102,
1013,
7390,
30,
202,
896,
2134,
1768,
261,
11145,
1769,
202,
12849,
394,
3914,
22480,
261,
2211,
18,
2629,
751,
2160,
1769,
1377,
648,
23718,
67,
8560,
30,
202,
1349,
67,
1125,
273,
446,
31,
202,
8820,
31,
1377,
648,
23718,
67,
14617,
30,
1377,
288,
759,
202,
9394,
7566,
14617,
315,
1769,
202,
4522,
7764,
273,
394,
2144,
261,
2211,
18,
7688,
4348,
18,
896,
1702,
1832,
1769,
202,
1349,
67,
1125,
273,
14015,
921,
4334,
3611,
13,
1082,
282,
333,
18,
1612,
6609,
1388,
18,
588,
261,
839,
13,
2934,
1612,
31,
202,
8820,
31,
1377,
289,
1377,
648,
23718,
67,
5237,
30,
1377,
288,
202,
921,
1228,
797,
31476,
273,
261,
921,
1228,
797,
13,
896,
921,
261,
1769,
202,
797,
4003,
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,
282,
1071,
727,
1033,
17362,
1832,
1216,
10403,
16,
1860,
225,
288,
565,
309,
261,
2211,
18,
1202,
1676,
1106,
1305,
13,
1377,
327,
17362,
6618,
261,
1769,
565,
1250,
1703,
67,
5489,
24662,
6894,
31,
565,
1033,
325,
67,
1125,
31,
565,
1703,
67,
5489,
24662,
6894,
273,
333,
18,
291,
20765,
6894,
31,
565,
309,
16051,
1703,
67,
5489,
24662,
6894,
13,
1377,
444,
1768,
751,
2309,
261,
5743,
1769,
565,
333,
18,
291,
20765,
6894,
273,
638,
31,
759,
565,
6369,
7566,
25989,
315,
1769,
565,
1160,
5373,
273,
333,
18,
7688,
4348,
18,
896,
3216,
261,
1769,
565,
1620,
261,
11145,
13,
565,
288,
1377,
648,
23718,
67,
11403,
4883,
30,
1377,
648,
23718,
67,
2
] |
: treeMax(oRoot)); | : NIL); | static RBNode upperBound(RBNode oRoot, Comparator oComparator, Object oMinKey, Object oMaxKey) { return ((oMaxKey != null) ? treeMaxConstrained(oRoot, oComparator, oMinKey, oMaxKey) : treeMax(oRoot)); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/9c7e7d6b2933dcb4e2109e072adcae0984d47e0b/TreeMap.java/clean/java/util/TreeMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
534,
38,
907,
21663,
12,
19437,
907,
320,
2375,
16,
13359,
320,
5559,
16,
21821,
1033,
320,
2930,
653,
16,
1033,
320,
2747,
653,
13,
225,
288,
565,
327,
14015,
83,
2747,
653,
480,
446,
13,
5411,
692,
2151,
2747,
442,
31142,
12,
83,
2375,
16,
320,
5559,
16,
320,
2930,
653,
16,
320,
2747,
653,
13,
5411,
294,
423,
2627,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
534,
38,
907,
21663,
12,
19437,
907,
320,
2375,
16,
13359,
320,
5559,
16,
21821,
1033,
320,
2930,
653,
16,
1033,
320,
2747,
653,
13,
225,
288,
565,
327,
14015,
83,
2747,
653,
480,
446,
13,
5411,
692,
2151,
2747,
442,
31142,
12,
83,
2375,
16,
320,
5559,
16,
320,
2930,
653,
16,
320,
2747,
653,
13,
5411,
294,
423,
2627,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (state == KNOWN && isInterface()) | if (getState() == KNOWN && isInterface()) | public void setIsClass() throws UnknownTypeException { if (state == KNOWN && isInterface()) throw new UnknownTypeException("Type " + getSignature() + " marked as both class and interface"); state = KNOWN; isInterface = false; } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/30a5f1079ad659fc57405bb8341a695ec938e800/XClassType.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/type/XClassType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15269,
797,
1435,
1216,
9077,
14144,
288,
202,
202,
430,
261,
2019,
422,
1475,
3417,
5665,
597,
21456,
10756,
1082,
202,
12849,
394,
9077,
14144,
2932,
559,
315,
397,
20104,
1435,
397,
9506,
202,
6,
9350,
487,
3937,
667,
471,
1560,
8863,
202,
202,
2019,
273,
1475,
3417,
5665,
31,
202,
202,
291,
1358,
273,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15269,
797,
1435,
1216,
9077,
14144,
288,
202,
202,
430,
261,
2019,
422,
1475,
3417,
5665,
597,
21456,
10756,
1082,
202,
12849,
394,
9077,
14144,
2932,
559,
315,
397,
20104,
1435,
397,
9506,
202,
6,
9350,
487,
3937,
667,
471,
1560,
8863,
202,
202,
2019,
273,
1475,
3417,
5665,
31,
202,
202,
291,
1358,
273,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } | if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, pageContext)) != null) setTabindex(string); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accesskey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAccept((String) evalAttr("accept", getAcceptExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setMaxlength((String) evalAttr("maxlength", getMaxlengthExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSize((String) evalAttr("size", getSizeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/022bd23c954cf673e53731849d562b3c295473f1/ELFileTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELFileTag.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,
856,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
5933,
12443,
780,
13,
5302,
3843,
2932,
9436,
3113,
4506,
4474,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
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,
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,
3639,
289,
3639,
775,
288,
5411,
10851,
2469,
12443,
780,
13,
5302,
3843,
2932,
27875,
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,
856,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
5933,
12443,
780,
13,
5302,
3843,
2932,
9436,
3113,
4506,
4474,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
2
] |
String[] receivers = envelope.getReceivers(); | NameAssociation[] receivers = envelope.getReceivers(); | public void printMessage(Context context, Envelope envelope) throws KOMException { PrintWriter out = context.getOut(); MessageFormatter formatter = context.getMessageFormatter(); Message message = envelope.getMessage(); MessageOccurrence primaryOcc = envelope.getPrimaryOccurrence(); // Clear screen if requested by user // if(context.isFlagSet(0, UserFlags.CLEAR_SCREEN_BEFORE_MESSAGE)) out.print(ANSISequences.CLEAR_DISPLAY); // Could we figure out the local number? // out.print(formatter.format("BasicMessagePrinter.textnumber")); if(primaryOcc != null) out.print(primaryOcc.getLocalnum()); else { // Couldn't find a local number. Use global! // out.print('('); out.print(message.getId()); out.print(')'); } // Print name of author // out.print("; "); out.print(message.getAuthorName()); // Print creation date // out.print("; "); out.println(message.getCreated()); // Print reply info (if any) // Envelope.RelatedMessage replyTo = envelope.getReplyTo(); if(replyTo != null) { if(replyTo.isLocal()) { // Simple case: Original text was in same conference // out.println(formatter.format("BasicMessagePrinter.reply.to.same.conference", new Object[] { new Long(replyTo.getOccurrence().getLocalnum()), replyTo.getAuthorName() } )); } else { // Complex case: Original text was in a different conference // out.println(formatter.format("BasicMessagePrinter.reply.to.different.conference", new Object[] { new Long(replyTo.getOccurrence().getLocalnum()), replyTo.getConferenceName(), replyTo.getAuthorName()})); } } // Print receiver list // int space = formatter.format("BasicMessagePrinter.receiver", "").length(); MessageOccurrence[] occs = envelope.getOccurrences(); String[] receivers = envelope.getReceivers(); String movedFrom = null; int top = receivers.length; for(int idx = 0; idx < top; ++idx) { MessageOccurrence occ = occs[idx]; out.println(formatter.format("BasicMessagePrinter.receiver", receivers[idx])); switch(occ.getKind()) { case MessageManager.ACTION_COPIED: PrintUtils.printRepeated(out, ' ', space); out.println(formatter.format("BasicMessagePrinter.copied", new Object[] { occ.getUserName(), occ.getTimestamp().toString() })); break; case MessageManager.ACTION_MOVED: MessageAttribute[] attributes = envelope.getAttributes(); for(int attrIdx = attributes.length-1; 0 < attrIdx; --attrIdx) { MessageAttribute each = attributes[attrIdx]; if(each.getKind() == MessageManager.ATTR_MOVEDFROM) { movedFrom = new String(each.getValue()); break; } } PrintUtils.printRepeated(out, ' ', space); out.println(formatter.format("BasicMessagePrinter.moved.long", new Object[] { movedFrom, occ.getUserName(), occ.getTimestamp().toString() })); break; } } // Print subject // String subjLine = formatter.format("BasicMessagePrinter.subject", message.getSubject()); out.println(subjLine); PrintUtils.printRepeated(out, '-', subjLine.length()); out.println(); // Print body // WordWrapper ww = context.getWordWrapper(message.getBody()); String line; while((line = ww.nextLine()) != null) out.println(line); out.println(); // Print text footer if requested // if(context.isFlagSet(0, UserFlags.SHOW_TEXT_FOOTER)) out.println(formatter.format("BasicMessagePrinter.footer", new Object[] { new Long(primaryOcc.getLocalnum()), message.getAuthorName() })); // Print list of replies // Envelope.RelatedMessage[] replies = envelope.getReplies(); top = replies.length; for(int idx = 0; idx < top; ++idx) { Envelope.RelatedMessage each = replies[idx]; // Reply in same conference? // if(each.isLocal()) { out.println(formatter.format("BasicMessagePrinter.reply.same.conference", new Object[] { new Long(each.getOccurrence().getLocalnum()), each.getAuthorName() })); } else { out.println(formatter.format("BasicMessagePrinter.reply.different.conference", new Object[] { new Long(each.getOccurrence().getLocalnum()), each.getAuthorName(), each.getConferenceName() })); } } // Print list of "no comments" // MessageAttribute[] attributes = envelope.getAttributes(); for(int idx = 0; idx < attributes.length; ++idx) { MessageAttribute each = attributes[idx]; if(each.getKind() == MessageManager.ATTR_NOCOMMENT) { out.println(formatter.format("BasicMessagePrinter.nocomment", each.getNoCommentUsername())); } } } | 3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/eead440ae84777d2595ffb7c459be4a504f78b19/BasicMessagePrinter.java/buggy/kom/java/nu/rydin/kom/frontend/text/BasicMessagePrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1172,
1079,
12,
1042,
819,
16,
16210,
9045,
13,
202,
202,
15069,
1475,
1872,
503,
202,
95,
202,
202,
5108,
2289,
596,
273,
819,
18,
588,
1182,
5621,
202,
202,
1079,
5074,
4453,
273,
819,
18,
24906,
5074,
5621,
202,
202,
1079,
883,
273,
9045,
18,
24906,
5621,
202,
202,
1079,
24267,
3354,
24269,
273,
9045,
18,
588,
6793,
24267,
5621,
9506,
202,
759,
10121,
5518,
309,
3764,
635,
729,
202,
202,
759,
202,
202,
430,
12,
2472,
18,
291,
4678,
694,
12,
20,
16,
2177,
5094,
18,
23181,
985,
67,
27908,
67,
19152,
67,
8723,
3719,
1082,
202,
659,
18,
1188,
12,
1258,
2320,
21710,
18,
23181,
985,
67,
17463,
1769,
9506,
202,
759,
14312,
732,
7837,
596,
326,
1191,
1300,
35,
202,
202,
759,
202,
202,
659,
18,
1188,
12,
12354,
18,
2139,
2932,
8252,
1079,
12149,
18,
955,
2696,
7923,
1769,
202,
202,
430,
12,
8258,
24269,
480,
446,
13,
1082,
202,
659,
18,
1188,
12,
8258,
24269,
18,
588,
2042,
2107,
10663,
202,
202,
12107,
202,
202,
95,
1082,
202,
759,
14312,
82,
1404,
1104,
279,
1191,
1300,
18,
2672,
2552,
5,
1082,
202,
759,
1082,
202,
659,
18,
1188,
2668,
2668,
1769,
1082,
202,
659,
18,
1188,
12,
2150,
18,
26321,
10663,
1082,
202,
659,
18,
1188,
2668,
2506,
1769,
202,
202,
97,
9506,
202,
759,
3038,
508,
434,
2869,
202,
202,
759,
202,
202,
659,
18,
1188,
2932,
31,
315,
1769,
202,
202,
659,
18,
1188,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1172,
1079,
12,
1042,
819,
16,
16210,
9045,
13,
202,
202,
15069,
1475,
1872,
503,
202,
95,
202,
202,
5108,
2289,
596,
273,
819,
18,
588,
1182,
5621,
202,
202,
1079,
5074,
4453,
273,
819,
18,
24906,
5074,
5621,
202,
202,
1079,
883,
273,
9045,
18,
24906,
5621,
202,
202,
1079,
24267,
3354,
24269,
273,
9045,
18,
588,
6793,
24267,
5621,
9506,
202,
759,
10121,
5518,
309,
3764,
635,
729,
202,
202,
759,
202,
202,
430,
12,
2472,
18,
291,
4678,
694,
12,
20,
16,
2177,
5094,
18,
23181,
985,
67,
27908,
67,
19152,
67,
8723,
3719,
1082,
202,
659,
18,
1188,
12,
1258,
2320,
21710,
18,
23181,
985,
67,
17463,
1769,
9506,
202,
759,
2
] |
} | } | public void keyPressed(KeyEvent arg0) { if (arg0.getKeyCode() == KeyEvent.VK_ENTER) { String filter = ""; //$NON-NLS-1$ JTextField search = (JTextField) arg0.getSource(); if (!filter.equals(search.getText())) { filter = search.getText(); JFritz.setProperty("filter.search", filter); //$NON-NLS-1$ jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } if (search.getText().equals("")){ //$NON-NLS-1$ filter = " "; //$NON-NLS-1$ JFritz.setProperty("filter.search", filter); //$NON-NLS-1$ jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } } } | 7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/c07402cbe8c35153ab5b972b3ec1dc2854b0a959/CallerListPanel.java/buggy/jfritz/src/de/moonflower/jfritz/callerlist/CallerListPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
498,
24624,
12,
653,
1133,
1501,
20,
13,
288,
202,
202,
430,
261,
3175,
20,
18,
588,
653,
1085,
1435,
422,
23737,
18,
58,
47,
67,
12278,
13,
288,
1082,
202,
780,
1034,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
46,
16157,
1623,
273,
261,
46,
16157,
13,
1501,
20,
18,
588,
1830,
5621,
1082,
202,
430,
16051,
2188,
18,
14963,
12,
3072,
18,
588,
1528,
1435,
3719,
288,
9506,
202,
2188,
273,
1623,
18,
588,
1528,
5621,
9506,
202,
46,
42,
583,
94,
18,
542,
1396,
2932,
2188,
18,
3072,
3113,
1034,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
78,
74,
583,
94,
18,
588,
11095,
1098,
7675,
2725,
1586,
5621,
9506,
202,
78,
74,
583,
94,
18,
588,
11095,
1098,
7675,
12179,
1388,
6999,
5033,
5621,
1082,
202,
97,
1082,
202,
430,
261,
3072,
18,
588,
1528,
7675,
14963,
2932,
6,
3719,
95,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2188,
273,
315,
13636,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
46,
42,
583,
94,
18,
542,
1396,
2932,
2188,
18,
3072,
3113,
1034,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
78,
74,
583,
94,
18,
588,
11095,
1098,
7675,
2725,
1586,
5621,
9506,
202,
78,
74,
583,
94,
18,
588,
11095,
1098,
7675,
12179,
1388,
6999,
5033,
5621,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
498,
24624,
12,
653,
1133,
1501,
20,
13,
288,
202,
202,
430,
261,
3175,
20,
18,
588,
653,
1085,
1435,
422,
23737,
18,
58,
47,
67,
12278,
13,
288,
1082,
202,
780,
1034,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
46,
16157,
1623,
273,
261,
46,
16157,
13,
1501,
20,
18,
588,
1830,
5621,
1082,
202,
430,
16051,
2188,
18,
14963,
12,
3072,
18,
588,
1528,
1435,
3719,
288,
9506,
202,
2188,
273,
1623,
18,
588,
1528,
5621,
9506,
202,
46,
42,
583,
94,
18,
542,
1396,
2932,
2188,
18,
3072,
3113,
1034,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
78,
74,
583,
94,
18,
588,
11095,
2
] |
text.addVerifyListener(new VerifyListener() { | verifyListener = new VerifyListener() { | public TextUpdatableValue(Text text, int validatePolicy, int updatePolicy) { this.text = text; if (updatePolicy != SWT.None) { text.addListener(updatePolicy, updateListener); } text.addVerifyListener(new VerifyListener() { public void verifyText(VerifyEvent e) { if (!updating) { String currentText = TextUpdatableValue.this.text.getText(); String newText = currentText.substring(0, e.start) + e.text + currentText.substring(e.end); ChangeEvent changeEvent = fireChangeEvent( ChangeEvent.VERIFY, currentText, newText); if (changeEvent.getVeto()) { e.doit = false; } } } }); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f7836bda1c05bb7aec28e4e0c9bb8ffa7c6d9a62/TextUpdatableValue.java/buggy/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/internal/swt/TextUpdatableValue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3867,
1211,
3404,
429,
620,
12,
1528,
977,
16,
509,
1954,
2582,
16,
509,
1089,
2582,
13,
288,
202,
202,
2211,
18,
955,
273,
977,
31,
202,
202,
430,
261,
2725,
2582,
480,
348,
8588,
18,
7036,
13,
288,
1082,
202,
955,
18,
1289,
2223,
12,
2725,
2582,
16,
1089,
2223,
1769,
202,
202,
97,
202,
202,
955,
18,
1289,
8097,
2223,
12,
2704,
8553,
2223,
1435,
288,
1082,
202,
482,
918,
3929,
1528,
12,
8097,
1133,
425,
13,
288,
9506,
202,
430,
16051,
5533,
1776,
13,
288,
6862,
202,
780,
783,
1528,
273,
3867,
1211,
3404,
429,
620,
18,
2211,
18,
955,
18,
588,
1528,
5621,
6862,
202,
780,
394,
1528,
273,
783,
1528,
18,
28023,
12,
20,
16,
425,
18,
1937,
13,
397,
425,
18,
955,
6862,
1082,
202,
15,
783,
1528,
18,
28023,
12,
73,
18,
409,
1769,
6862,
202,
20930,
2549,
1133,
273,
4452,
20930,
12,
15106,
202,
20930,
18,
23756,
16,
783,
1528,
16,
394,
1528,
1769,
6862,
202,
430,
261,
3427,
1133,
18,
588,
58,
11453,
10756,
288,
25083,
202,
73,
18,
2896,
305,
273,
629,
31,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
202,
202,
22938,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3867,
1211,
3404,
429,
620,
12,
1528,
977,
16,
509,
1954,
2582,
16,
509,
1089,
2582,
13,
288,
202,
202,
2211,
18,
955,
273,
977,
31,
202,
202,
430,
261,
2725,
2582,
480,
348,
8588,
18,
7036,
13,
288,
1082,
202,
955,
18,
1289,
2223,
12,
2725,
2582,
16,
1089,
2223,
1769,
202,
202,
97,
202,
202,
955,
18,
1289,
8097,
2223,
12,
2704,
8553,
2223,
1435,
288,
1082,
202,
482,
918,
3929,
1528,
12,
8097,
1133,
425,
13,
288,
9506,
202,
430,
16051,
5533,
1776,
13,
288,
6862,
202,
780,
783,
1528,
273,
3867,
1211,
3404,
429,
620,
18,
2211,
18,
955,
18,
588,
1528,
5621,
6862,
202,
780,
394,
1528,
273,
783,
1528,
18,
2
] |
ComponentOrientation(int orientation) | private ComponentOrientation(int orientation) | ComponentOrientation(int orientation) { this.orientation = orientation; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/fb0219dcce2e53020800c655562b5f7351b0579b/ComponentOrientation.java/buggy/java/awt/ComponentOrientation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
5435,
14097,
12,
474,
9820,
13,
225,
288,
565,
333,
18,
19235,
273,
9820,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
5435,
14097,
12,
474,
9820,
13,
225,
288,
565,
333,
18,
19235,
273,
9820,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
properties.put(name, Boolean.valueOf(value)); | message.setBooleanProperty(name, value); | public void setBooleanProperty(String name, boolean value) { properties.put(name, Boolean.valueOf(value)); } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/1c16135aeffdc8654133a2cfd4e29e2561335937/MuleEvent.java/clean/mule/src/java/org/mule/impl/MuleEvent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5507,
1396,
12,
780,
508,
16,
1250,
460,
13,
565,
288,
3639,
883,
18,
542,
5507,
1396,
12,
529,
16,
460,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5507,
1396,
12,
780,
508,
16,
1250,
460,
13,
565,
288,
3639,
883,
18,
542,
5507,
1396,
12,
529,
16,
460,
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
] |
PagedTable pt = (PagedTable) session.getAttribute(Constants.RESULTS_TABLE); | PagedTable pt = SessionMethods.getResultsTable(session, request.getParameter("table")); | public ActionForward tab(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); response.setContentType("text/tab-separated-values"); response.setHeader("Content-Disposition ", "inline; filename=results-table.txt"); PagedTable pt = (PagedTable) session.getAttribute(Constants.RESULTS_TABLE); TextFileUtil.writeTabDelimitedTable(response.getOutputStream(), pt.getAllRows(), getOrder(pt), getVisible(pt), pt.getMaxRetrievableIndex() + 1); return null; } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/c6ace8b1f771e7718abe274cf6db61eb4d139807/ExportAction.java/clean/intermine/src/java/org/intermine/web/ExportAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
3246,
12,
1803,
3233,
2874,
16,
11794,
4382,
1204,
646,
16,
11794,
9984,
590,
16,
11794,
12446,
766,
13,
3639,
1216,
1185,
288,
3639,
26166,
1339,
273,
590,
18,
588,
2157,
5621,
3639,
766,
18,
542,
8046,
2932,
955,
19,
7032,
17,
24622,
17,
2372,
8863,
3639,
766,
18,
542,
1864,
2932,
1350,
17,
15087,
3104,
315,
10047,
31,
1544,
33,
4717,
17,
2121,
18,
5830,
8863,
3639,
7724,
329,
1388,
5818,
273,
3877,
4712,
18,
588,
3447,
1388,
12,
3184,
16,
590,
18,
588,
1662,
2932,
2121,
7923,
1769,
3639,
3867,
812,
1304,
18,
2626,
5661,
23531,
329,
1388,
12,
2740,
18,
588,
4632,
9334,
5818,
18,
588,
1595,
4300,
9334,
4766,
5411,
11973,
12,
337,
3631,
31564,
12,
337,
3631,
4766,
5411,
5818,
18,
588,
2747,
3848,
16845,
1016,
1435,
397,
404,
1769,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
3246,
12,
1803,
3233,
2874,
16,
11794,
4382,
1204,
646,
16,
11794,
9984,
590,
16,
11794,
12446,
766,
13,
3639,
1216,
1185,
288,
3639,
26166,
1339,
273,
590,
18,
588,
2157,
5621,
3639,
766,
18,
542,
8046,
2932,
955,
19,
7032,
17,
24622,
17,
2372,
8863,
3639,
766,
18,
542,
1864,
2932,
1350,
17,
15087,
3104,
315,
10047,
31,
1544,
33,
4717,
17,
2121,
18,
5830,
8863,
3639,
7724,
329,
1388,
5818,
273,
3877,
4712,
18,
588,
3447,
1388,
12,
3184,
16,
590,
18,
588,
1662,
2932,
2121,
7923,
1769,
3639,
3867,
812,
1304,
18,
2626,
5661,
23531,
329,
1388,
12,
2740,
18,
588,
4632,
9334,
5818,
18,
588,
1595,
4300,
9334,
4766,
5411,
11973,
2
] |
throws OAIInternalServerError, NoSetHierarchyException, CannotDisseminateFormatException | throws OAIInternalServerError, NoSetHierarchyException, NoItemsMatchException, CannotDisseminateFormatException | public Map listIdentifiers(String from, String until, String set, String metadataPrefix) throws OAIInternalServerError, NoSetHierarchyException, CannotDisseminateFormatException { // We can produce oai_dc and simple DC for all items, so just return IDs Context context = null; // Lists to put results in List headers = new LinkedList(); List identifiers = new LinkedList(); try { context = new Context(); // Get the relevant OAIItemInfo objects to make headers DSpaceObject scope = resolveSet(context, set); List itemInfos = Harvest.harvest(context, scope, from, until, false, true, true); // No items, but we need to know containers and withdrawn items // Build up lists of headers and identifiers Iterator i = itemInfos.iterator(); while (i.hasNext()) { HarvestedItemInfo itemInfo = (HarvestedItemInfo) i.next(); String[] header = getRecordFactory().createHeader(itemInfo); headers.add(header[0]); identifiers.add(header[1]); } } catch (SQLException se) { // Log the error log.warn(LogManager.getHeader(context, "database_error", ""), se); throw new OAIInternalServerError(se.toString()); } finally { if (context != null) { context.abort(); } } // Put results in form needed to return Map results = new HashMap(); results.put("headers", headers.iterator()); results.put("identifiers", identifiers.iterator()); return results; } | 51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/d155b136803da564d48d812c0957097341268893/DSpaceOAICatalog.java/clean/dspace/src/org/dspace/app/oai/DSpaceOAICatalog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1635,
666,
12745,
12,
780,
628,
16,
514,
3180,
16,
514,
444,
16,
514,
1982,
2244,
13,
3639,
1216,
531,
18194,
12371,
16,
2631,
694,
12074,
503,
16,
2631,
3126,
2060,
503,
16,
14143,
1669,
307,
1154,
340,
9291,
565,
288,
3639,
368,
1660,
848,
11402,
320,
10658,
67,
7201,
471,
4143,
21533,
364,
777,
1516,
16,
1427,
2537,
327,
7115,
3639,
1772,
819,
273,
446,
31,
3639,
368,
11592,
358,
1378,
1686,
316,
3639,
987,
1607,
273,
394,
10688,
5621,
3639,
987,
9863,
273,
394,
10688,
5621,
3639,
775,
3639,
288,
5411,
819,
273,
394,
1772,
5621,
5411,
368,
968,
326,
9368,
531,
18194,
1180,
966,
2184,
358,
1221,
1607,
5411,
463,
3819,
921,
2146,
273,
2245,
694,
12,
2472,
16,
444,
1769,
5411,
987,
761,
7655,
273,
670,
297,
26923,
18,
30250,
26923,
12,
2472,
16,
2146,
16,
628,
16,
3180,
16,
7734,
629,
16,
638,
16,
638,
1769,
5411,
368,
2631,
1516,
16,
1496,
732,
1608,
358,
5055,
8475,
471,
598,
9446,
82,
1516,
5411,
368,
3998,
731,
6035,
434,
1607,
471,
9863,
5411,
4498,
277,
273,
761,
7655,
18,
9838,
5621,
5411,
1323,
261,
77,
18,
5332,
2134,
10756,
5411,
288,
7734,
670,
297,
90,
3149,
1180,
966,
761,
966,
273,
261,
44,
297,
90,
3149,
1180,
966,
13,
277,
18,
4285,
5621,
27573,
514,
8526,
1446,
273,
11674,
1733,
7675,
2640,
1864,
12,
1726,
966,
1769,
7734,
1607,
18,
1289,
12,
3374,
63,
20,
19226,
7734,
9863,
18,
1289,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1635,
666,
12745,
12,
780,
628,
16,
514,
3180,
16,
514,
444,
16,
514,
1982,
2244,
13,
3639,
1216,
531,
18194,
12371,
16,
2631,
694,
12074,
503,
16,
2631,
3126,
2060,
503,
16,
14143,
1669,
307,
1154,
340,
9291,
565,
288,
3639,
368,
1660,
848,
11402,
320,
10658,
67,
7201,
471,
4143,
21533,
364,
777,
1516,
16,
1427,
2537,
327,
7115,
3639,
1772,
819,
273,
446,
31,
3639,
368,
11592,
358,
1378,
1686,
316,
3639,
987,
1607,
273,
394,
10688,
5621,
3639,
987,
9863,
273,
394,
10688,
5621,
3639,
775,
3639,
288,
5411,
819,
273,
394,
1772,
5621,
5411,
368,
968,
326,
9368,
531,
18194,
1180,
966,
2184,
358,
1221,
1607,
5411,
463,
3819,
921,
2146,
273,
2
] |
matchGen.stripAttributes(true); matchGen.setMaxLocals(); matchGen.setMaxStack(); matchGen.removeNOPs(); nodeCounterGen.addMethod(matchGen.getMethod()); | nodeCounterGen.addMethod(matchGen); | private void compilePatterns(ClassGenerator classGen, MethodGenerator methodGen) { int current; int field; LocalVariableGen local; MatchGenerator matchGen; NodeCounterGenerator nodeCounterGen; _className = getXSLTC().getHelperClassName(); nodeCounterGen = new NodeCounterGenerator(_className, ClassNames[_level], toString(), ACC_PUBLIC | ACC_SUPER, null, classGen.getStylesheet()); InstructionList il = null; ConstantPoolGen cpg = nodeCounterGen.getConstantPool(); // Add a new instance variable for each var in closure final int closureLen = (_closureVars == null) ? 0 : _closureVars.size(); for (int i = 0; i < closureLen; i++) { VariableBase var = ((VariableRefBase) _closureVars.get(i)).getVariable(); nodeCounterGen.addField(new Field(ACC_PUBLIC, cpg.addUtf8(var.getEscapedName()), cpg.addUtf8(var.getType().toSignature()), null, cpg.getConstantPool())); } // Add a single constructor to the class compileConstructor(nodeCounterGen); /* * Compile method matchesFrom() */ if (_from != null) { il = new InstructionList(); matchGen = new MatchGenerator(ACC_PUBLIC | ACC_FINAL, org.apache.bcel.generic.Type.BOOLEAN, new org.apache.bcel.generic.Type[] { org.apache.bcel.generic.Type.INT, }, new String[] { "node", }, "matchesFrom", _className, il, cpg); compileLocals(nodeCounterGen,matchGen,il); // Translate Pattern il.append(matchGen.loadContextNode()); _from.translate(nodeCounterGen, matchGen); _from.synthesize(nodeCounterGen, matchGen); il.append(IRETURN); matchGen.stripAttributes(true); matchGen.setMaxLocals(); matchGen.setMaxStack(); matchGen.removeNOPs(); nodeCounterGen.addMethod(matchGen.getMethod()); } /* * Compile method matchesCount() */ if (_count != null) { il = new InstructionList(); matchGen = new MatchGenerator(ACC_PUBLIC | ACC_FINAL, org.apache.bcel.generic.Type.BOOLEAN, new org.apache.bcel.generic.Type[] { org.apache.bcel.generic.Type.INT, }, new String[] { "node", }, "matchesCount", _className, il, cpg); compileLocals(nodeCounterGen,matchGen,il); // Translate Pattern il.append(matchGen.loadContextNode()); _count.translate(nodeCounterGen, matchGen); _count.synthesize(nodeCounterGen, matchGen); il.append(IRETURN); matchGen.stripAttributes(true); matchGen.setMaxLocals(); matchGen.setMaxStack(); matchGen.removeNOPs(); nodeCounterGen.addMethod(matchGen.getMethod()); } getXSLTC().dumpClass(nodeCounterGen.getJavaClass()); // Push an instance of the newly created class cpg = classGen.getConstantPool(); il = methodGen.getInstructionList(); final int index = cpg.addMethodref(_className, "<init>", "(" + TRANSLET_INTF_SIG + DOM_INTF_SIG + NODE_ITERATOR_SIG + ")V"); il.append(new NEW(cpg.addClass(_className))); il.append(DUP); il.append(classGen.loadTranslet()); il.append(methodGen.loadDOM()); il.append(methodGen.loadIterator()); il.append(new INVOKESPECIAL(index)); // Initialize closure variables for (int i = 0; i < closureLen; i++) { final VariableRefBase varRef = (VariableRefBase) _closureVars.get(i); final VariableBase var = varRef.getVariable(); final Type varType = var.getType(); // Store variable in new closure il.append(DUP); il.append(var.loadInstruction()); il.append(new PUTFIELD( cpg.addFieldref(_className, var.getEscapedName(), varType.toSignature()))); } } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/04fbeab0e3a7992cdc5a5fe8965298086118e3d8/Number.java/buggy/src/org/apache/xalan/xsltc/compiler/Number.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4074,
11268,
12,
797,
3908,
667,
7642,
16,
6862,
2985,
3908,
707,
7642,
13,
377,
288,
202,
474,
783,
31,
202,
474,
652,
31,
202,
2042,
3092,
7642,
1191,
31,
202,
2060,
3908,
845,
7642,
31,
202,
907,
4789,
3908,
756,
4789,
7642,
31,
202,
67,
12434,
273,
6538,
4559,
15988,
7675,
588,
2276,
3834,
5621,
202,
2159,
4789,
7642,
273,
394,
2029,
4789,
3908,
24899,
12434,
16,
6862,
1082,
225,
1659,
1557,
63,
67,
2815,
6487,
6862,
1082,
225,
1762,
9334,
15106,
225,
18816,
67,
14939,
571,
18816,
67,
13272,
654,
16,
6862,
1082,
225,
446,
16,
6862,
1082,
225,
667,
7642,
18,
588,
24656,
10663,
202,
11983,
682,
14254,
273,
446,
31,
202,
6902,
2864,
7642,
3283,
75,
273,
756,
4789,
7642,
18,
588,
6902,
2864,
5621,
202,
759,
1436,
279,
394,
791,
2190,
364,
1517,
569,
316,
7213,
202,
6385,
509,
7213,
2891,
273,
261,
67,
20823,
5555,
422,
446,
13,
692,
374,
294,
3196,
565,
389,
20823,
5555,
18,
1467,
5621,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
7213,
2891,
31,
277,
27245,
288,
202,
565,
7110,
2171,
569,
273,
3196,
202,
12443,
3092,
1957,
2171,
13,
389,
20823,
5555,
18,
588,
12,
77,
13,
2934,
588,
3092,
5621,
202,
565,
756,
4789,
7642,
18,
1289,
974,
12,
2704,
2286,
12,
31414,
67,
14939,
16,
4405,
202,
4057,
75,
18,
1289,
15230,
28,
12,
1401,
18,
588,
17208,
461,
1435,
3631,
6862,
202,
4057,
75,
18,
1289,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4074,
11268,
12,
797,
3908,
667,
7642,
16,
6862,
2985,
3908,
707,
7642,
13,
377,
288,
202,
474,
783,
31,
202,
474,
652,
31,
202,
2042,
3092,
7642,
1191,
31,
202,
2060,
3908,
845,
7642,
31,
202,
907,
4789,
3908,
756,
4789,
7642,
31,
202,
67,
12434,
273,
6538,
4559,
15988,
7675,
588,
2276,
3834,
5621,
202,
2159,
4789,
7642,
273,
394,
2029,
4789,
3908,
24899,
12434,
16,
6862,
1082,
225,
1659,
1557,
63,
67,
2815,
6487,
6862,
1082,
225,
1762,
9334,
15106,
225,
18816,
67,
14939,
571,
18816,
67,
13272,
654,
16,
6862,
1082,
225,
446,
16,
6862,
1082,
225,
667,
7642,
18,
588,
24656,
10663,
202,
11983,
682,
14254,
273,
446,
31,
202,
6902,
2
] |
} | } | private Map getBackupParams() throws CmsIllegalArgumentException { HttpServletRequest request = getJsp().getRequest(); Map parameterMap = new HashMap(); // get the delete information from the request parameters String paramVersions = request.getParameter("versions"); String paramDate = request.getParameter("date"); // check the submitted values int versions = 0; long timeStamp = 0; boolean useVersions = false; try { versions = Integer.parseInt(paramVersions); useVersions = true; } catch (NumberFormatException e) { // no int value submitted, check date fields try { timeStamp = getCalendarDate(paramDate, false); } catch (ParseException ex) { // no date values submitted, throw exception throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_INVALID_DATE_1, paramDate), ex); } } // set the timeStamp one day to the future to delete versions if (useVersions) { timeStamp = System.currentTimeMillis() + 86400000; } if (DEBUG) { System.err.println("Versions: "+versions+"\nDate: "+timeStamp); } // add the correct values to the parameter map parameterMap.put("timeStamp", String.valueOf(timeStamp)); parameterMap.put("versions", String.valueOf(versions)); if (DEBUG) { System.err.println("Done"); } return parameterMap; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/41dcaa9d1a1b8f8fa6c1dd9a04fc8532eb83ebb7/CmsAdminHistoryClear.java/buggy/src-modules/org/opencms/workplace/tools/history/CmsAdminHistoryClear.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1635,
336,
6248,
1370,
1435,
1216,
2149,
31237,
288,
3639,
9984,
590,
273,
31162,
7675,
588,
691,
5621,
3639,
1635,
1569,
863,
273,
394,
4317,
5621,
1171,
368,
336,
326,
1430,
1779,
628,
326,
590,
1472,
3639,
514,
579,
5940,
273,
590,
18,
588,
1662,
2932,
10169,
8863,
3639,
514,
579,
1626,
273,
590,
18,
588,
1662,
2932,
712,
8863,
13491,
368,
866,
326,
9638,
924,
7734,
509,
5244,
273,
374,
31,
3639,
1525,
18198,
273,
374,
31,
3639,
1250,
999,
5940,
273,
629,
31,
3639,
775,
288,
5411,
5244,
273,
2144,
18,
2670,
1702,
12,
891,
5940,
1769,
5411,
999,
5940,
273,
638,
31,
3639,
289,
1044,
261,
1854,
9291,
425,
13,
288,
5411,
368,
1158,
509,
460,
9638,
16,
866,
1509,
1466,
5411,
775,
288,
7734,
18198,
273,
28623,
1626,
12,
891,
1626,
16,
629,
1769,
5411,
289,
1044,
261,
13047,
431,
13,
288,
7734,
368,
1158,
1509,
924,
9638,
16,
604,
1520,
27573,
604,
394,
2149,
31237,
12,
5058,
18,
588,
7675,
3782,
12,
5058,
18,
9712,
67,
9347,
67,
4594,
67,
21,
16,
579,
1626,
3631,
431,
1769,
5411,
289,
3639,
289,
7734,
368,
444,
326,
18198,
1245,
2548,
358,
326,
3563,
358,
1430,
5244,
3639,
309,
261,
1202,
5940,
13,
288,
5411,
18198,
273,
2332,
18,
2972,
28512,
1435,
397,
19663,
11706,
31,
3639,
289,
7734,
309,
261,
9394,
13,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
5940,
30,
13773,
10169,
9078,
64,
82,
1626,
30,
13773,
957,
8860,
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,
1635,
336,
6248,
1370,
1435,
1216,
2149,
31237,
288,
3639,
9984,
590,
273,
31162,
7675,
588,
691,
5621,
3639,
1635,
1569,
863,
273,
394,
4317,
5621,
1171,
368,
336,
326,
1430,
1779,
628,
326,
590,
1472,
3639,
514,
579,
5940,
273,
590,
18,
588,
1662,
2932,
10169,
8863,
3639,
514,
579,
1626,
273,
590,
18,
588,
1662,
2932,
712,
8863,
13491,
368,
866,
326,
9638,
924,
7734,
509,
5244,
273,
374,
31,
3639,
1525,
18198,
273,
374,
31,
3639,
1250,
999,
5940,
273,
629,
31,
3639,
775,
288,
5411,
5244,
273,
2144,
18,
2670,
1702,
12,
891,
5940,
1769,
5411,
999,
5940,
273,
638,
31,
3639,
289,
1044,
261,
1854,
9291,
425,
13,
288,
5411,
368,
1158,
2
] |
st.close(); | pstmt.close(); | public void testBinaryStream() { //set up conection here Connection c = null; Statement st = null; try { c = DriverManager.getConnection("jdbc:postgresql://localhost/test?compatible=7.1&user=test"); c.setAutoCommit(false); st = c.createStatement(); st.execute("CREATE temp TABLE temp (col oid)"); } catch (SQLException e) { //another issue: when connecting to 7.3 database and this exception occurs because the table already exists, //st.setBinaryStream throws internal error in LargeObjectManager initialisation code fail("table creating error, probably already exists, code=" + e.getErrorCode()); } finally { try{ if (st != null) st.close(); }catch(SQLException ex){}; } PreparedStatement pstmt = null; try { pstmt = c.prepareStatement("INSERT INTO temp VALUES (?)"); //in case of 7.4 server, should block here pstmt.setBinaryStream(1, new ByteArrayInputStream(new byte[]{1, 2, 3, 4, 5}), 5); assertTrue( (pstmt.executeUpdate() == 1) ); pstmt.close(); pstmt = c.prepareStatement("SELECT col FROM temp LIMIT 1"); ResultSet rs = pstmt.executeQuery(); assertTrue("No results from query", rs.next() ); //in case of 7.4 server, should block here InputStream in = rs.getBinaryStream(1); int data; while ((data = in.read()) != -1) System.out.println(data); rs.close(); st.close(); c.createStatement().executeUpdate("DELETE FROM temp"); c.commit(); } catch ( IOException ioex ) { fail( ioex.getMessage() ); } catch (SQLException ex) { fail( ex.getMessage() ); } finally { try { if ( c!=null) c.close(); } catch( SQLException e1){} } } | 45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/b9deede24139f64cb2dc609ca46ae9cfe0b062a9/OID74Test.java/buggy/src/interfaces/jdbc/org/postgresql/test/jdbc2/OID74Test.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5905,
1228,
1435,
202,
95,
202,
202,
759,
542,
731,
356,
794,
2674,
202,
202,
1952,
276,
273,
446,
31,
377,
1082,
4202,
202,
202,
3406,
384,
273,
446,
31,
3639,
202,
202,
698,
3196,
202,
95,
1082,
202,
71,
273,
225,
9396,
1318,
18,
588,
1952,
2932,
24687,
30,
2767,
24330,
2207,
13014,
19,
3813,
35,
10943,
33,
27,
18,
21,
10,
1355,
33,
3813,
8863,
377,
1082,
202,
71,
18,
542,
4965,
5580,
12,
5743,
1769,
1082,
202,
334,
273,
276,
18,
2640,
3406,
5621,
540,
202,
202,
334,
18,
8837,
2932,
9344,
1906,
7567,
1906,
261,
1293,
7764,
2225,
1769,
4202,
202,
202,
97,
1082,
1044,
261,
23116,
425,
13,
3196,
202,
95,
540,
202,
202,
759,
304,
3011,
5672,
30,
1347,
14244,
358,
2371,
18,
23,
2063,
471,
333,
1520,
9938,
2724,
326,
1014,
1818,
1704,
16,
1082,
3639,
368,
334,
18,
542,
5905,
1228,
1216,
2713,
555,
316,
16236,
908,
921,
1318,
2172,
10742,
981,
1082,
3639,
2321,
2932,
2121,
4979,
555,
16,
8656,
1818,
1704,
16,
981,
1546,
397,
425,
18,
588,
12012,
10663,
4202,
202,
202,
97,
202,
202,
23417,
202,
202,
95,
1082,
202,
698,
95,
309,
261,
334,
480,
446,
13,
293,
10589,
18,
4412,
5621,
289,
14683,
12,
23116,
431,
13,
2916,
31,
202,
202,
97,
4202,
9506,
202,
29325,
293,
10589,
273,
446,
31,
377,
202,
202,
698,
3196,
202,
95,
202,
4202,
9506,
202,
84,
10589,
273,
276,
18,
9366,
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,
5905,
1228,
1435,
202,
95,
202,
202,
759,
542,
731,
356,
794,
2674,
202,
202,
1952,
276,
273,
446,
31,
377,
1082,
4202,
202,
202,
3406,
384,
273,
446,
31,
3639,
202,
202,
698,
3196,
202,
95,
1082,
202,
71,
273,
225,
9396,
1318,
18,
588,
1952,
2932,
24687,
30,
2767,
24330,
2207,
13014,
19,
3813,
35,
10943,
33,
27,
18,
21,
10,
1355,
33,
3813,
8863,
377,
1082,
202,
71,
18,
542,
4965,
5580,
12,
5743,
1769,
1082,
202,
334,
273,
276,
18,
2640,
3406,
5621,
540,
202,
202,
334,
18,
8837,
2932,
9344,
1906,
7567,
1906,
261,
1293,
7764,
2225,
1769,
4202,
202,
202,
97,
1082,
1044,
261,
23116,
425,
13,
3196,
2
] |
return new OPT_RegisterOperand(reg, VM_Type.DoubleType); | return new OPT_RegisterOperand(reg, OPT_ClassLoaderProxy.DoubleType); | static final OPT_RegisterOperand D(OPT_Register reg) { return new OPT_RegisterOperand(reg, VM_Type.DoubleType); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/220706ac8e24c4eb9124a4025dcee5f246daa751/OPT_IRTools.java/buggy/rvm/src/vm/compilers/optimizing/ir/util/OPT_IRTools.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
727,
16456,
67,
3996,
10265,
463,
12,
15620,
67,
3996,
960,
13,
288,
565,
327,
394,
16456,
67,
3996,
10265,
12,
1574,
16,
16456,
67,
7805,
3886,
18,
5265,
559,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
727,
16456,
67,
3996,
10265,
463,
12,
15620,
67,
3996,
960,
13,
288,
565,
327,
394,
16456,
67,
3996,
10265,
12,
1574,
16,
16456,
67,
7805,
3886,
18,
5265,
559,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} return cc; | }; return new EtoolsProxyCommand(viewStyleCommand); | public Command getCommand(Request request) { if (!understandsRequest(request)) { return null; } if (request.getType().equals(RequestConstants.REQ_PROPERTY_CHANGE)) { ChangePropertyValueRequest cpvr = (ChangePropertyValueRequest) request; EditPart ep = getHost(); if (ep instanceof IGraphicalEditPart) { View view = (View)((IGraphicalEditPart) ep).getModel(); if (ViewUtil.isPropertySupported(view,cpvr.getPropertyID())) { return new EtoolsProxyCommand( new SetPropertyCommand( new EObjectAdapter(view), cpvr.getPropertyID(), cpvr.getPropertyName(), ((ChangePropertyValueRequest) request).getValue())); } } } else if ( request instanceof ApplyAppearancePropertiesRequest && getHost() instanceof IGraphicalEditPart) { ApplyAppearancePropertiesRequest aapr = (ApplyAppearancePropertiesRequest) request; CompoundCommand cc = new CompoundCommand(APPLY_APPEARANCE_PROPERTIES_UNDO_COMMAND_NAME); Iterator semanticHints = aapr.getSemanticHints().iterator(); IGraphicalEditPart part = (IGraphicalEditPart) getHost(); View view = part.getNotationView(); String semanticHint = ""; //$NON-NLS-1$ if (view!=null) semanticHint = view.getType(); while (semanticHints.hasNext()) { // iterate through all factory hints String hint = (String) semanticHints.next(); // find out the target of the future request IGraphicalEditPart target = hint.equals(semanticHint) ? part : part.getChildBySemanticHint(hint); if (target != null) { Dictionary properties = aapr.getPropertiesFor(hint); Enumeration propertyIDs = properties.keys(); while (propertyIDs.hasMoreElements()) { // iterate through all the properties applicable to this target String propertyID = (String) propertyIDs.nextElement(); // create a request ChangePropertyValueRequest cpvr = new ChangePropertyValueRequest( APPLY_APPEARANCE_PROPERTIES_UNDO_COMMAND_NAME, propertyID, properties.get(propertyID)); Command command = target.getCommand(cpvr); if (command != null) // double check if the property is supported cc.add(command); } } } return cc; } return null; } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/5f2df914b0b51a2c2bdfbf7fbea31b3b6b34bfdd/PropertyHandlerEditPolicy.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/editpolicies/PropertyHandlerEditPolicy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3498,
12856,
12,
691,
590,
13,
288,
202,
202,
430,
16051,
9341,
334,
5708,
691,
12,
2293,
3719,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
430,
261,
2293,
18,
588,
559,
7675,
14963,
12,
691,
2918,
18,
20373,
67,
9900,
67,
14473,
3719,
288,
1082,
202,
3043,
16107,
691,
3283,
18090,
273,
9506,
202,
12,
3043,
16107,
691,
13,
590,
31,
1082,
202,
4666,
1988,
5529,
273,
8580,
5621,
1082,
202,
430,
261,
881,
1276,
467,
4137,
1706,
4666,
1988,
13,
288,
9506,
202,
1767,
1476,
273,
261,
1767,
13,
12443,
3047,
1483,
1706,
4666,
1988,
13,
5529,
2934,
588,
1488,
5621,
9506,
202,
430,
261,
1767,
1304,
18,
291,
1396,
7223,
12,
1945,
16,
4057,
18090,
18,
588,
1396,
734,
1435,
3719,
288,
6862,
202,
2463,
394,
512,
6642,
3886,
2189,
12,
25083,
202,
2704,
1000,
1396,
2189,
12,
6862,
1082,
202,
2704,
8091,
4216,
12,
1945,
3631,
6862,
1082,
202,
4057,
18090,
18,
588,
1396,
734,
9334,
6862,
1082,
202,
4057,
18090,
18,
588,
13073,
9334,
6862,
1082,
202,
12443,
3043,
16107,
691,
13,
590,
2934,
24805,
1435,
10019,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
469,
309,
261,
1082,
202,
2293,
1276,
5534,
1294,
27668,
2297,
691,
9506,
202,
10,
10,
8580,
1435,
1276,
467,
4137,
1706,
4666,
1988,
13,
288,
1082,
202,
7001,
1294,
27668,
2297,
691,
279,
438,
86,
273,
9506,
202,
12,
7001,
1294,
27668,
2297,
691,
13,
590,
31,
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,
3498,
12856,
12,
691,
590,
13,
288,
202,
202,
430,
16051,
9341,
334,
5708,
691,
12,
2293,
3719,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
430,
261,
2293,
18,
588,
559,
7675,
14963,
12,
691,
2918,
18,
20373,
67,
9900,
67,
14473,
3719,
288,
1082,
202,
3043,
16107,
691,
3283,
18090,
273,
9506,
202,
12,
3043,
16107,
691,
13,
590,
31,
1082,
202,
4666,
1988,
5529,
273,
8580,
5621,
1082,
202,
430,
261,
881,
1276,
467,
4137,
1706,
4666,
1988,
13,
288,
9506,
202,
1767,
1476,
273,
261,
1767,
13,
12443,
3047,
1483,
1706,
4666,
1988,
13,
5529,
2934,
588,
1488,
5621,
9506,
202,
430,
261,
1767,
1304,
18,
291,
1396,
7223,
2
] |
options[current++] = "-S"; | public String[] getOptions() { String[] searchOptions = m_SearchAlgorithm.getOptions(); String[] estimatorOptions = m_BayesNetEstimator.getOptions(); String[] options = new String[11 + searchOptions.length + estimatorOptions.length]; int current = 0; options[current++] = "-S"; if (!m_bUseADTree) { options[current++] = "-D"; } options[current++] = "-B"; if (m_otherBayesNet != null) { options[current++] = ((BIFReader) m_otherBayesNet).getFileName(); } options[current++] = "-Q"; options[current++] = "" + getSearchAlgorithm().getClass().getName(); options[current++] = "--"; for (int iOption = 0; iOption < searchOptions.length; iOption++) { options[current++] = searchOptions[iOption]; } options[current++] = "-E"; options[current++] = "" + getEstimator().getClass().getName(); options[current++] = "--"; for (int iOption = 0; iOption < estimatorOptions.length; iOption++) { options[current++] = estimatorOptions[iOption]; } // Fill up rest with empty strings, not nulls! while (current < options.length) { options[current++] = ""; } return options; } // getOptions | 4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/95b18fdda672890adb1eea1a4269e85eb3b8755f/BayesNet.java/clean/branches/book2ndEd-branch/weka/classifiers/bayes/BayesNet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
9849,
1435,
288,
202,
202,
780,
8526,
1623,
1320,
273,
312,
67,
2979,
6801,
18,
588,
1320,
5621,
202,
202,
780,
8526,
14470,
1320,
273,
312,
67,
38,
528,
281,
7308,
31080,
18,
588,
1320,
5621,
3639,
514,
8526,
702,
273,
394,
514,
63,
2499,
397,
1623,
1320,
18,
2469,
397,
14470,
1320,
18,
2469,
15533,
3639,
509,
783,
273,
374,
31,
2868,
309,
16051,
81,
67,
70,
3727,
1880,
2471,
13,
288,
5411,
702,
63,
2972,
9904,
65,
273,
3701,
40,
14432,
3639,
289,
3639,
702,
63,
2972,
9904,
65,
273,
3701,
38,
14432,
3639,
309,
261,
81,
67,
3011,
38,
528,
281,
7308,
480,
446,
13,
288,
5411,
702,
63,
2972,
9904,
65,
273,
14015,
38,
5501,
2514,
13,
312,
67,
3011,
38,
528,
281,
7308,
2934,
588,
4771,
5621,
3639,
289,
3639,
702,
63,
2972,
9904,
65,
273,
3701,
53,
14432,
3639,
702,
63,
2972,
9904,
65,
273,
1408,
397,
15627,
6801,
7675,
588,
797,
7675,
17994,
5621,
202,
202,
2116,
63,
2972,
9904,
65,
273,
5238,
14432,
202,
202,
1884,
261,
474,
277,
1895,
273,
374,
31,
277,
1895,
411,
1623,
1320,
18,
2469,
31,
277,
1895,
27245,
288,
1082,
202,
2116,
63,
2972,
9904,
65,
273,
1623,
1320,
63,
77,
1895,
15533,
202,
202,
97,
3639,
702,
63,
2972,
9904,
65,
273,
3701,
41,
14432,
3639,
702,
63,
2972,
9904,
65,
273,
1408,
397,
4774,
334,
12502,
7675,
588,
797,
7675,
17994,
5621,
202,
202,
2116,
63,
2972,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
9849,
1435,
288,
202,
202,
780,
8526,
1623,
1320,
273,
312,
67,
2979,
6801,
18,
588,
1320,
5621,
202,
202,
780,
8526,
14470,
1320,
273,
312,
67,
38,
528,
281,
7308,
31080,
18,
588,
1320,
5621,
3639,
514,
8526,
702,
273,
394,
514,
63,
2499,
397,
1623,
1320,
18,
2469,
397,
14470,
1320,
18,
2469,
15533,
3639,
509,
783,
273,
374,
31,
2868,
309,
16051,
81,
67,
70,
3727,
1880,
2471,
13,
288,
5411,
702,
63,
2972,
9904,
65,
273,
3701,
40,
14432,
3639,
289,
3639,
702,
63,
2972,
9904,
65,
273,
3701,
38,
14432,
3639,
309,
261,
81,
67,
3011,
38,
528,
281,
7308,
480,
446,
13,
288,
5411,
702,
63,
2972,
9904,
65,
2
] |
|
return super.toString()+"\n"+ " bounds: "+bounds+"\n"+ " x, y, w, h: "+x+" "+y+" "+width+" "+height+"\n"+ " xSrc, ySrc, widthSrc, heightSrc: "+xSrc+" "+ySrc+" "+widthSrc+" "+heightSrc+"\n"+ " usage: "+usage+"\n"+ " dwROP: "+dwROP+"\n"+ " bkg: "+bkg+"\n"+ bmi.toString(); | return super.toString() + "\n" + " bounds: " + bounds + "\n" + " x, y, w, h: " + x + " " + y + " " + width + " " + height + "\n" + " xSrc, ySrc, widthSrc, heightSrc: " + xSrc + " " + ySrc + " " + widthSrc + " " + heightSrc + "\n" + " usage: " + usage + "\n" + " dwROP: " + dwROP + "\n" + " bkg: " + bkg + "\n" + bmi.toString(); | public String toString() { return super.toString()+"\n"+ " bounds: "+bounds+"\n"+ " x, y, w, h: "+x+" "+y+" "+width+" "+height+"\n"+ " xSrc, ySrc, widthSrc, heightSrc: "+xSrc+" "+ySrc+" "+widthSrc+" "+heightSrc+"\n"+ " usage: "+usage+"\n"+ " dwROP: "+dwROP+"\n"+ " bkg: "+bkg+"\n"+ bmi.toString(); } | 57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/de061d5977b00047b242b52aea5bc47538b063c5/StretchDIBits.java/clean/freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/StretchDIBits.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
327,
2240,
18,
10492,
1435,
9078,
64,
82,
6,
15,
5411,
315,
225,
4972,
30,
13773,
10576,
9078,
64,
82,
6,
15,
5411,
315,
225,
619,
16,
677,
16,
341,
16,
366,
30,
13773,
92,
9078,
13773,
93,
9078,
13773,
2819,
9078,
13773,
4210,
9078,
64,
82,
6,
15,
5411,
315,
225,
619,
7740,
16,
677,
7740,
16,
1835,
7740,
16,
2072,
7740,
30,
13773,
92,
7740,
9078,
13773,
93,
7740,
9078,
13773,
2819,
7740,
9078,
13773,
4210,
7740,
9078,
64,
82,
6,
15,
5411,
315,
225,
4084,
30,
13773,
9167,
9078,
64,
82,
6,
15,
5411,
315,
225,
12394,
12578,
30,
13773,
22512,
12578,
9078,
64,
82,
6,
15,
5411,
315,
225,
324,
14931,
30,
13773,
70,
14931,
9078,
64,
82,
6,
15,
5411,
324,
9197,
18,
10492,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
327,
2240,
18,
10492,
1435,
9078,
64,
82,
6,
15,
5411,
315,
225,
4972,
30,
13773,
10576,
9078,
64,
82,
6,
15,
5411,
315,
225,
619,
16,
677,
16,
341,
16,
366,
30,
13773,
92,
9078,
13773,
93,
9078,
13773,
2819,
9078,
13773,
4210,
9078,
64,
82,
6,
15,
5411,
315,
225,
619,
7740,
16,
677,
7740,
16,
1835,
7740,
16,
2072,
7740,
30,
13773,
92,
7740,
9078,
13773,
93,
7740,
9078,
13773,
2819,
7740,
9078,
13773,
4210,
7740,
9078,
64,
82,
6,
15,
5411,
315,
225,
4084,
30,
13773,
9167,
9078,
64,
82,
6,
15,
5411,
315,
225,
12394,
12578,
30,
13773,
22512,
12578,
9078,
64,
82,
6,
15,
5411,
315,
2
] |
/* bug monstrueux : si le même utilisateur essaie de se connecter * deux fois, ça va passer! */ | void doLogin(SessionServeur sess, String mdp) { // modif p.r. au design : on rattache la Session // à l'Utilisateur, sinon ce dernier ne pourra // pas recevoir de messages du Serveur! // ici, on le fait uniquement si le login est valide. Logger.log("UtilisateurServeur", 0, "[login] vérification statut/pass pour "+u.getLogin()); String mot_de_passe = u.getMotDePasse(); StatutLogin statut = u.getStatut(); /* bug monstrueux : si le même utilisateur essaie de se connecter * deux fois, ça va passer! */ if(mdp.equals(mot_de_passe) && statut != StatutLogin.Connecte_Utilisateur && statut != StatutLogin.Banni) { Logger.log("UtilisateurServeur", 0, "[login] login d'Utilisateur accepté : login " +u.getLogin()); sess.resultatLogin(StatutLogin.Connecte_Utilisateur); // la session est valide, on la fixe pour l'Utilisateur this.session = sess; u.setStatut(StatutLogin.Connecte_Utilisateur); Set<Participant> pl = Serveur.participantmanager.getParticipants(); Logger.log("UtilisateurServeur", 2, "[login] envoi de la liste des Participants connectés"); sess.listeParticipants(pl); Logger.log("UtilisateurServeur", 2, "[login] broadcast du login"); Serveur.broadcaster.etatParticipant((Participant) u); } else if (!mdp.equals(mot_de_passe)) { Logger.log("UtilisateurServeur", 0, "[login] login Utilisateur refusé, mauvais mot de passe : login " +u.getLogin()); session.resultatLogin(StatutLogin.Invalide); u.setStatut(StatutLogin.Deconnecte); sess.kaboom(); } else if (statut == StatutLogin.Banni) { Logger.log("UtilisateurServeur", 0, "[login] login d'Utilisateur banni refusé : login " +u.getLogin()); sess.resultatLogin(StatutLogin.Banni); sess.kaboom(); } else if (statut == StatutLogin.Connecte_Utilisateur) { // t'es déjà connecté gaillard, va voir ailleurs Logger.log("UtilisateurServeur", 0, "[login] login refusé pour "+u.getLogin() +" : déjà connecté !"); sess.resultatLogin(StatutLogin.Deja_Connecte); sess.kaboom(); } else { // pas sensé arriver. on ignore... Logger.log("UtilisateurServeur", 0, "[login] cas non-traité de login Utilisateur : login " +u.getLogin()); sess.kaboom(); } } | 57791 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57791/3dbc2d4305a8c9837ab67be3ecf7545fe7f123ae/UtilisateurServeur.java/buggy/src/serveur/UtilisateurServeur.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
741,
5358,
12,
2157,
14350,
295,
8451,
16,
514,
3481,
84,
13,
288,
3639,
368,
681,
430,
293,
18,
86,
18,
20309,
8281,
294,
603,
436,
4558,
807,
7125,
3877,
3639,
368,
225,
132,
259,
328,
11,
1304,
24954,
16,
5367,
265,
5898,
4854,
82,
2453,
1073,
24601,
354,
3639,
368,
14699,
2637,
31238,
443,
2743,
9978,
11115,
295,
5,
3639,
368,
277,
8450,
16,
603,
884,
284,
1540,
3089,
475,
7533,
884,
3925,
4387,
1244,
831,
18,
3639,
4242,
18,
1330,
2932,
1304,
24954,
14350,
295,
3113,
374,
16,
5158,
5819,
65,
331,
132,
107,
86,
1480,
610,
322,
19,
5466,
24601,
13773,
89,
18,
588,
5358,
10663,
3639,
514,
11310,
67,
323,
67,
84,
345,
307,
273,
582,
18,
588,
24749,
758,
52,
345,
307,
5621,
3639,
8269,
322,
5358,
610,
322,
273,
582,
18,
588,
5000,
322,
5621,
3639,
1748,
7934,
6921,
701,
344,
2616,
294,
7533,
884,
312,
132,
108,
3501,
1709,
24954,
18518,
69,
1385,
443,
695,
3077,
264,
540,
380,
443,
2616,
18261,
291,
16,
225,
132,
105,
69,
14162,
1342,
264,
5,
1195,
3639,
309,
12,
1264,
84,
18,
14963,
12,
18313,
67,
323,
67,
84,
345,
307,
13,
597,
610,
322,
480,
8269,
322,
5358,
18,
5215,
73,
67,
1304,
24954,
7734,
597,
610,
322,
480,
8269,
322,
5358,
18,
38,
1072,
77,
13,
288,
5411,
4242,
18,
1330,
2932,
1304,
24954,
14350,
295,
3113,
374,
16,
5158,
5819,
65,
3925,
302,
11,
1304,
24954,
2791,
132,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
741,
5358,
12,
2157,
14350,
295,
8451,
16,
514,
3481,
84,
13,
288,
3639,
368,
681,
430,
293,
18,
86,
18,
20309,
8281,
294,
603,
436,
4558,
807,
7125,
3877,
3639,
368,
225,
132,
259,
328,
11,
1304,
24954,
16,
5367,
265,
5898,
4854,
82,
2453,
1073,
24601,
354,
3639,
368,
14699,
2637,
31238,
443,
2743,
9978,
11115,
295,
5,
3639,
368,
277,
8450,
16,
603,
884,
284,
1540,
3089,
475,
7533,
884,
3925,
4387,
1244,
831,
18,
3639,
4242,
18,
1330,
2932,
1304,
24954,
14350,
295,
3113,
374,
16,
5158,
5819,
65,
331,
132,
107,
86,
1480,
610,
322,
19,
5466,
24601,
13773,
89,
18,
588,
5358,
10663,
3639,
514,
11310,
67,
323,
67,
84,
345,
2
] |
|
String encoding) throws XNIException { | String encoding, Augmentations augs) throws XNIException { | public void startEntity(String name, XMLResourceIdentifier identifier, String encoding) throws XNIException { super.startEntity(name, identifier, encoding); // prepare to look for a TextDecl if external general entity if (!name.equals("[xml]") && fEntityScanner.isExternal()) { setScannerState(SCANNER_STATE_TEXT_DECL); } // call handler if (fDocumentHandler != null && name.equals("[xml]")) { fDocumentHandler.startDocument(fEntityScanner, encoding, fNamespaceContext, null); } } // startEntity(String,identifier,String) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/c142befb61e52fe4cf95c40bd1466d0d99b41900/XMLDocumentScannerImpl.java/clean/src/org/apache/xerces/impl/XMLDocumentScannerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1943,
12,
780,
508,
16,
18701,
3167,
1420,
3004,
2756,
16,
18701,
514,
2688,
16,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
2240,
18,
1937,
1943,
12,
529,
16,
2756,
16,
2688,
1769,
3639,
368,
2911,
358,
2324,
364,
279,
3867,
3456,
309,
3903,
7470,
1522,
3639,
309,
16051,
529,
18,
14963,
2932,
63,
2902,
4279,
13,
597,
284,
1943,
11338,
18,
291,
6841,
10756,
288,
5411,
444,
11338,
1119,
12,
2312,
11489,
654,
67,
7998,
67,
5151,
67,
23956,
1769,
3639,
289,
540,
368,
745,
1838,
3639,
309,
261,
74,
2519,
1503,
480,
446,
597,
508,
18,
14963,
2932,
63,
2902,
4279,
3719,
288,
5411,
284,
2519,
1503,
18,
1937,
2519,
12,
74,
1943,
11338,
16,
2688,
16,
284,
3402,
1042,
16,
446,
1769,
3639,
289,
565,
289,
368,
787,
1943,
12,
780,
16,
5644,
16,
780,
13,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1943,
12,
780,
508,
16,
18701,
3167,
1420,
3004,
2756,
16,
18701,
514,
2688,
16,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
2240,
18,
1937,
1943,
12,
529,
16,
2756,
16,
2688,
1769,
3639,
368,
2911,
358,
2324,
364,
279,
3867,
3456,
309,
3903,
7470,
1522,
3639,
309,
16051,
529,
18,
14963,
2932,
63,
2902,
4279,
13,
597,
284,
1943,
11338,
18,
291,
6841,
10756,
288,
5411,
444,
11338,
1119,
12,
2312,
11489,
654,
67,
7998,
67,
5151,
67,
23956,
1769,
3639,
289,
540,
368,
745,
1838,
3639,
309,
261,
74,
2519,
1503,
480,
446,
597,
508,
18,
14963,
2932,
63,
2902,
4279,
3719,
288,
5411,
284,
2519,
1503,
2
] |
theLayoutPackage.createPackageContents(); | public static ModelPackage init() { if (isInited) return (ModelPackage) EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI); // Obtain or create and register package ModelPackageImpl theModelPackage = (ModelPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(eNS_URI) : new ModelPackageImpl()); isInited = true; // Initialize simple dependencies XMLTypePackageImpl.init(); // Obtain or create and register interdependencies TypePackageImpl theTypePackage = (TypePackageImpl) (EPackage.Registry.INSTANCE.getEPackage(TypePackage.eNS_URI) instanceof TypePackageImpl ? EPackage.Registry.INSTANCE .getEPackage(TypePackage.eNS_URI) : TypePackageImpl.eINSTANCE); ComponentPackageImpl theComponentPackage = (ComponentPackageImpl) (EPackage.Registry.INSTANCE .getEPackage(ComponentPackage.eNS_URI) instanceof ComponentPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(ComponentPackage.eNS_URI) : ComponentPackageImpl.eINSTANCE); AttributePackageImpl theAttributePackage = (AttributePackageImpl) (EPackage.Registry.INSTANCE .getEPackage(AttributePackage.eNS_URI) instanceof AttributePackageImpl ? EPackage.Registry.INSTANCE .getEPackage(AttributePackage.eNS_URI) : AttributePackageImpl.eINSTANCE); DataPackageImpl theDataPackage = (DataPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI) instanceof DataPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(DataPackage.eNS_URI) : DataPackageImpl.eINSTANCE); LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl) (EPackage.Registry.INSTANCE .getEPackage(LayoutPackage.eNS_URI) instanceof LayoutPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(LayoutPackage.eNS_URI) : LayoutPackageImpl.eINSTANCE); // Create package meta-data objects theModelPackage.createPackageContents(); theTypePackage.createPackageContents(); theComponentPackage.createPackageContents(); theAttributePackage.createPackageContents(); theDataPackage.createPackageContents(); theLayoutPackage.createPackageContents(); // Initialize created meta-data theModelPackage.initializePackageContents(); theTypePackage.initializePackageContents(); theComponentPackage.initializePackageContents(); theAttributePackage.initializePackageContents(); theDataPackage.initializePackageContents(); theLayoutPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theModelPackage.freeze(); return theModelPackage; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/869b9dc91ef4dd13d07f589c6394484a744642f0/ModelPackageImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ModelPackageImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3164,
2261,
1208,
1435,
565,
288,
3639,
309,
261,
291,
2570,
329,
13,
5411,
327,
261,
1488,
2261,
13,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
1488,
2261,
18,
73,
3156,
67,
3098,
1769,
3639,
368,
24850,
578,
752,
471,
1744,
2181,
3639,
3164,
2261,
2828,
326,
1488,
2261,
273,
261,
1488,
2261,
2828,
13,
261,
41,
2261,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
73,
3156,
67,
3098,
13,
1276,
3164,
2261,
2828,
692,
10682,
18,
4243,
18,
13341,
5411,
263,
588,
41,
2261,
12,
73,
3156,
67,
3098,
13,
5411,
294,
394,
3164,
2261,
2828,
10663,
3639,
353,
2570,
329,
273,
638,
31,
3639,
368,
9190,
4143,
5030,
3639,
3167,
559,
2261,
2828,
18,
2738,
5621,
3639,
368,
24850,
578,
752,
471,
1744,
1554,
11037,
3639,
1412,
2261,
2828,
326,
559,
2261,
273,
261,
559,
2261,
2828,
13,
261,
41,
2261,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
559,
2261,
18,
73,
3156,
67,
3098,
13,
1276,
1412,
2261,
2828,
692,
10682,
18,
4243,
18,
13341,
5411,
263,
588,
41,
2261,
12,
559,
2261,
18,
73,
3156,
67,
3098,
13,
5411,
294,
1412,
2261,
2828,
18,
73,
13341,
1769,
3639,
5435,
2261,
2828,
326,
1841,
2261,
273,
261,
1841,
2261,
2828,
13,
261,
41,
2261,
18,
4243,
18,
13341,
5411,
263,
588,
41,
2261,
12,
1841,
2261,
18,
73,
3156,
67,
3098,
13,
1276,
5435,
2261,
2828,
692,
10682,
18,
4243,
18,
13341,
5411,
263,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3164,
2261,
1208,
1435,
565,
288,
3639,
309,
261,
291,
2570,
329,
13,
5411,
327,
261,
1488,
2261,
13,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
1488,
2261,
18,
73,
3156,
67,
3098,
1769,
3639,
368,
24850,
578,
752,
471,
1744,
2181,
3639,
3164,
2261,
2828,
326,
1488,
2261,
273,
261,
1488,
2261,
2828,
13,
261,
41,
2261,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
73,
3156,
67,
3098,
13,
1276,
3164,
2261,
2828,
692,
10682,
18,
4243,
18,
13341,
5411,
263,
588,
41,
2261,
12,
73,
3156,
67,
3098,
13,
5411,
294,
394,
3164,
2261,
2828,
10663,
3639,
353,
2570,
329,
273,
638,
31,
3639,
368,
9190,
4143,
5030,
3639,
2
] |
|
final PsiJavaCodeReferenceElement ref = importStatement.getImportReference(); | final PsiJavaCodeReferenceElement ref = importStatement .getImportReference(); | public static boolean hasOnDemandImportConflict(String fqName, PsiJavaFile file) { final PsiImportList imports = file.getImportList(); final PsiImportStatement[] importStatements = imports.getImportStatements(); final int lastDotIndex = fqName.lastIndexOf((int) '.'); final String shortName = fqName.substring(lastDotIndex + 1); final String packageName = fqName.substring(0, lastDotIndex); for(final PsiImportStatement importStatement : importStatements){ if(importStatement.isOnDemand()){ final PsiJavaCodeReferenceElement ref = importStatement.getImportReference(); if(ref == null){ continue; } final String packageText = ref.getText(); if(packageText.equals(packageName)){ continue; } final PsiElement element = ref.resolve(); if(element != null && element instanceof PsiPackage){ final PsiPackage aPackage = (PsiPackage) element; final PsiClass[] classes = aPackage.getClasses(); for(final PsiClass aClass : classes){ final String className = aClass.getName(); if(shortName.equals(className)){ return true; } } } } } return false; } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/52c9158205263bd8992345ac29d9c0e2e4daff86/ImportUtils.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/ImportUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
711,
1398,
25461,
5010,
10732,
12,
780,
8508,
461,
16,
453,
7722,
5852,
812,
585,
13,
288,
3639,
727,
453,
7722,
5010,
682,
10095,
273,
585,
18,
588,
5010,
682,
5621,
3639,
727,
453,
7722,
5010,
3406,
8526,
1930,
14663,
273,
10095,
18,
588,
5010,
14663,
5621,
3639,
727,
509,
1142,
10412,
1016,
273,
8508,
461,
18,
2722,
31985,
12443,
474,
13,
2611,
1769,
3639,
727,
514,
19276,
273,
8508,
461,
18,
28023,
12,
2722,
10412,
1016,
397,
404,
1769,
3639,
727,
514,
9929,
273,
8508,
461,
18,
28023,
12,
20,
16,
1142,
10412,
1016,
1769,
3639,
364,
12,
6385,
453,
7722,
5010,
3406,
1930,
3406,
294,
1930,
14663,
15329,
5411,
309,
12,
5666,
3406,
18,
291,
1398,
25461,
10756,
95,
7734,
727,
453,
7722,
5852,
1085,
2404,
1046,
1278,
273,
1930,
3406,
263,
588,
5010,
2404,
5621,
7734,
309,
12,
1734,
422,
446,
15329,
10792,
1324,
31,
7734,
289,
7734,
727,
514,
2181,
1528,
273,
1278,
18,
588,
1528,
5621,
7734,
309,
12,
5610,
1528,
18,
14963,
12,
5610,
461,
3719,
95,
10792,
1324,
31,
7734,
289,
7734,
727,
453,
7722,
1046,
930,
273,
1278,
18,
10828,
5621,
7734,
309,
12,
2956,
480,
446,
597,
930,
1276,
453,
7722,
2261,
15329,
10792,
727,
453,
7722,
2261,
279,
2261,
273,
261,
52,
7722,
2261,
13,
930,
31,
10792,
727,
453,
7722,
797,
8526,
3318,
273,
279,
2261,
18,
588,
4818,
5621,
10792,
364,
12,
6385,
453,
7722,
797,
20148,
294,
3318,
15329,
13491,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
711,
1398,
25461,
5010,
10732,
12,
780,
8508,
461,
16,
453,
7722,
5852,
812,
585,
13,
288,
3639,
727,
453,
7722,
5010,
682,
10095,
273,
585,
18,
588,
5010,
682,
5621,
3639,
727,
453,
7722,
5010,
3406,
8526,
1930,
14663,
273,
10095,
18,
588,
5010,
14663,
5621,
3639,
727,
509,
1142,
10412,
1016,
273,
8508,
461,
18,
2722,
31985,
12443,
474,
13,
2611,
1769,
3639,
727,
514,
19276,
273,
8508,
461,
18,
28023,
12,
2722,
10412,
1016,
397,
404,
1769,
3639,
727,
514,
9929,
273,
8508,
461,
18,
28023,
12,
20,
16,
1142,
10412,
1016,
1769,
3639,
364,
12,
6385,
453,
7722,
5010,
3406,
1930,
3406,
294,
1930,
14663,
15329,
5411,
309,
12,
5666,
3406,
2
] |
private boolean addVettable(String fileName, String key) { // parse the test doc only if gold doc was parsed OK Document testDoc = getParsedLocale(key,fileName); requested.put(key,""); if (null == testDoc) { doesNotExist.put(key, ""); return false; } return extractMergeData(testDoc,key,false); } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/90d357a7612a0fee1860528005a32007392efc2a/LDMLComparator.java/clean/tools/java/org/unicode/cldr/icu/LDMLComparator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
3238,
1250,
527,
58,
278,
2121,
12,
780,
3968,
16,
514,
498,
13,
377,
288,
540,
368,
1109,
326,
1842,
997,
1338,
309,
20465,
997,
1703,
2707,
7791,
6647,
4319,
1842,
1759,
273,
25406,
3916,
12,
856,
16,
17812,
1769,
540,
3764,
18,
458,
12,
856,
16,
3660,
1769,
540,
309,
261,
2011,
422,
1842,
1759,
13,
540,
288,
2398,
1552,
8418,
18,
458,
12,
856,
16,
1408,
1769,
2398,
327,
629,
31,
540,
289,
540,
327,
2608,
6786,
751,
12,
3813,
1759,
16,
856,
16,
5743,
1769,
377,
289,
6862,
565,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
3238,
1250,
527,
58,
278,
2121,
12,
780,
3968,
16,
514,
498,
13,
377,
288,
540,
368,
1109,
326,
1842,
997,
1338,
309,
20465,
997,
1703,
2707,
7791,
6647,
4319,
1842,
1759,
273,
25406,
3916,
12,
856,
16,
17812,
1769,
540,
3764,
18,
458,
12,
856,
16,
3660,
1769,
540,
309,
261,
2011,
422,
1842,
1759,
13,
540,
288,
2398,
1552,
8418,
18,
458,
12,
856,
16,
1408,
1769,
2398,
327,
629,
31,
540,
289,
540,
327,
2608,
6786,
751,
12,
3813,
1759,
16,
856,
16,
5743,
1769,
377,
289,
6862,
565,
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
] |
||
user = (imcode.server.user.User)done ; | user = (imcode.server.user.UserDomainObject)done ; | public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String host = req.getHeader("host") ; IMCServiceInterface imcref = IMCServiceRMI.getIMCServiceInterfaceByHost(host) ; String start_url = imcref.getStartUrl() ; String servlet_url = Utility.getDomainPref( "servlet_url",host ) ; long time = System.currentTimeMillis() ; imcode.server.user.User user ; String htmlStr = "" ; int meta_id ; String test = "" ; String type = ""; String version = "" ; String plattform = "" ; res.setContentType( "text/html" ); ServletOutputStream out = res.getOutputStream( ); // Get the session HttpSession session = req.getSession( true ); // Does the session indicate this user already logged in? Object done = session.getAttribute( "logon.isDone" ); // marker object user = (imcode.server.user.User)done ; if( done == null ) { // If the user comes from a known IP-address, // log him in directly. String ip = req.getRemoteAddr( ) ; user = ipAssignUser( ip, host ) ; // Valid login. Make a note in the session object. session.setAttribute( "logon.isDone", user ); // just a marker object // get type of browser String value = req.getHeader( "User-Agent" ) ; if ( value == null ) { value = "" ; } session.setAttribute("browser_id",value) ; if( user == null ) { // No logon.isDone means he hasn't logged in. // Save the request URL as the true target and redirect to the login page. session.setAttribute( "login.target", HttpUtils.getRequestURL( req ).toString( ) ); String scheme = req.getScheme( ); String serverName = req.getServerName( ); int p = req.getServerPort( ); String port = (p == 80 || p == 443) ? "" : ":" + p; res.sendRedirect( scheme + "://" + serverName + port + start_url ) ; return ; } StartDoc.incrementSessionCounter(imcref,user,req) ; } // The real purpose of StartDoc: // Note that everything else in this servlet // but this redirect is merely cruft. // Of course, it's necessary cruft... // Find the start-page meta_id = imcref.getSystemData().getStartDocument() ; // ... and redirect to it. // FIXME: Replace with a forward()... String scheme = req.getScheme( ); String serverName = req.getServerName( ); int p = req.getServerPort( ); String port = (p == 80 || p == 443) ? "" : ":" + p; Utility.redirect(req,res,"GetDoc?meta_id="+meta_id) ; return ; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/aac0c3f1fbded79e44eeb9b126b31959f0f22c1d/StartDoc.java/clean/servlets/StartDoc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
202,
780,
1479,
273,
1111,
18,
588,
1864,
2932,
2564,
7923,
274,
202,
3445,
39,
18348,
709,
71,
1734,
273,
6246,
39,
1179,
54,
7492,
18,
588,
3445,
39,
18348,
858,
2594,
12,
2564,
13,
274,
202,
780,
787,
67,
718,
202,
33,
709,
71,
1734,
18,
588,
1685,
1489,
1435,
274,
202,
780,
8100,
67,
718,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
23231,
67,
718,
3113,
2564,
262,
274,
202,
5748,
813,
273,
2332,
18,
2972,
28512,
1435,
274,
202,
381,
710,
18,
3567,
18,
1355,
18,
1299,
729,
274,
202,
780,
1729,
1585,
273,
1408,
274,
202,
474,
2191,
67,
350,
274,
202,
780,
1842,
273,
1408,
274,
202,
780,
618,
273,
1408,
31,
202,
780,
1177,
273,
1408,
274,
202,
780,
886,
4558,
687,
273,
1408,
274,
202,
455,
18,
542,
8046,
12,
315,
955,
19,
2620,
6,
11272,
202,
4745,
4632,
596,
273,
400,
18,
588,
4632,
12,
11272,
202,
759,
968,
326,
1339,
202,
2940,
2157,
1339,
273,
1111,
18,
588,
2157,
12,
638,
11272,
202,
759,
9637,
326,
1339,
10768,
333,
729,
1818,
7545,
316,
35,
202,
921,
2731,
273,
1339,
18,
588,
1499,
12,
315,
1330,
265,
18,
291,
7387,
6,
11272,
225,
368,
5373,
733,
202,
1355,
273,
261,
381,
710,
18,
3567,
18,
1355,
18,
1299,
13,
8734,
274,
202,
430,
12,
2731,
422,
446,
262,
288,
202,
565,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
202,
780,
1479,
273,
1111,
18,
588,
1864,
2932,
2564,
7923,
274,
202,
3445,
39,
18348,
709,
71,
1734,
273,
6246,
39,
1179,
54,
7492,
18,
588,
3445,
39,
18348,
858,
2594,
12,
2564,
13,
274,
202,
780,
787,
67,
718,
202,
33,
709,
71,
1734,
18,
588,
1685,
1489,
1435,
274,
202,
780,
8100,
67,
718,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
23231,
67,
718,
3113,
2564,
262,
274,
202,
5748,
813,
273,
2332,
18,
2972,
28512,
1435,
274,
202,
381,
710,
18,
3567,
18,
1355,
18,
1299,
729,
274,
202,
780,
1729,
1585,
273,
1408,
274,
202,
474,
2
] |
layout.marginWidth = IDialogConstants.HORIZONTAL_MARGIN; | layout.marginWidth = 0; | protected Control createDialogArea(Composite parent) { final Composite composite = (Composite) super.createDialogArea(parent); GridLayout parentLayout = ((GridLayout) composite.getLayout()); parentLayout.numColumns = 4; parentLayout.marginHeight = 0; parentLayout.marginWidth = 0; parentLayout.verticalSpacing = 0; parentLayout.horizontalSpacing = 0; composite.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND)); Control treeControl = createTreeAreaContents(composite); createSash(composite,treeControl); Label versep = new Label(composite, SWT.SEPARATOR | SWT.VERTICAL); GridData verGd = new GridData(GridData.FILL_VERTICAL | GridData.GRAB_VERTICAL); versep.setLayoutData(verGd); versep.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, true)); Composite pageAreaComposite = new Composite(composite, SWT.NONE); pageAreaComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); GridLayout layout = new GridLayout(1, true); layout.marginHeight = 0; layout.marginWidth = IDialogConstants.HORIZONTAL_MARGIN; pageAreaComposite.setLayout(layout); // Build the title area and separator line Composite titleComposite = new Composite(pageAreaComposite, SWT.NONE); layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; layout.verticalSpacing = 0; layout.horizontalSpacing = 0; titleComposite.setLayout(layout); titleComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); createTitleArea(titleComposite); Label separator = new Label(pageAreaComposite, SWT.HORIZONTAL | SWT.SEPARATOR); separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL)); // Build the Page container pageContainer = createPageContainer(pageAreaComposite); pageContainer.setLayoutData(new GridData(GridData.FILL_BOTH)); // Build the separator line Label bottomSeparator = new Label(parent, SWT.HORIZONTAL | SWT.SEPARATOR); bottomSeparator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL)); return composite; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/afd7a740323ffb67576b6821d56f851c6c069f1f/PreferenceDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
202,
6385,
14728,
9635,
273,
261,
9400,
13,
2240,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
202,
6313,
3744,
982,
3744,
273,
14015,
6313,
3744,
13,
9635,
18,
588,
3744,
10663,
202,
202,
2938,
3744,
18,
2107,
3380,
273,
1059,
31,
202,
202,
2938,
3744,
18,
10107,
2686,
273,
374,
31,
202,
202,
2938,
3744,
18,
10107,
2384,
273,
374,
31,
202,
202,
2938,
3744,
18,
17824,
18006,
273,
374,
31,
202,
202,
2938,
3744,
18,
18396,
18006,
273,
374,
31,
9506,
202,
27676,
18,
542,
8199,
12,
2938,
18,
588,
4236,
7675,
588,
3163,
2957,
12,
55,
8588,
18,
10989,
67,
7085,
67,
8720,
20166,
10019,
9506,
202,
3367,
2151,
3367,
273,
752,
2471,
5484,
6323,
12,
27676,
1769,
202,
202,
2640,
55,
961,
12,
27676,
16,
3413,
3367,
1769,
9506,
202,
2224,
1924,
10814,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
4550,
571,
348,
8588,
18,
21654,
10109,
1769,
202,
202,
6313,
751,
1924,
43,
72,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
21654,
10109,
571,
7145,
751,
18,
6997,
2090,
67,
21654,
10109,
1769,
1082,
202,
2476,
84,
18,
542,
3744,
751,
12,
502,
43,
72,
1769,
202,
202,
2476,
84,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
55,
8588,
18,
10066,
16,
348,
8588,
18,
29818,
16,
629,
16,
638,
10019,
9506,
202,
9400,
1363,
5484,
9400,
273,
394,
14728,
12,
27676,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
202,
6385,
14728,
9635,
273,
261,
9400,
13,
2240,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
202,
6313,
3744,
982,
3744,
273,
14015,
6313,
3744,
13,
9635,
18,
588,
3744,
10663,
202,
202,
2938,
3744,
18,
2107,
3380,
273,
1059,
31,
202,
202,
2938,
3744,
18,
10107,
2686,
273,
374,
31,
202,
202,
2938,
3744,
18,
10107,
2384,
273,
374,
31,
202,
202,
2938,
3744,
18,
17824,
18006,
273,
374,
31,
202,
202,
2938,
3744,
18,
18396,
18006,
273,
374,
31,
9506,
202,
27676,
18,
542,
8199,
12,
2938,
18,
588,
4236,
7675,
588,
3163,
2957,
12,
55,
8588,
18,
10989,
67,
7085,
67,
8720,
2
] |
public TA_RetCode T3( int startIdx, int endIdx, double inReal[], int optInTimePeriod, double optInVFactor, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int outIdx, lookbackTotal; int today, i; double k, one_minus_k; double e1, e2, e3, e4, e5, e6; double c1, c2, c3, c4; double tempReal; 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 = 5; else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; if( optInVFactor == (-4e+37) ) optInVFactor = 7.000000e-1; else if( (optInVFactor < 0.000000e+0) || (optInVFactor > 1.000000e+0) ) return TA_RetCode. TA_BAD_PARAM; lookbackTotal = 6 * (optInTimePeriod - 1) + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_T3.ordinal()]) ; if( startIdx <= lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outNbElement.value = 0 ; outBegIdx.value = 0 ; return TA_RetCode. TA_SUCCESS; } outBegIdx.value = startIdx; today = startIdx - lookbackTotal; k = 2.0/(optInTimePeriod+1.0); one_minus_k = 1.0-k; tempReal = inReal[today++]; for( i=optInTimePeriod-1; i > 0 ; i-- ) tempReal += inReal[today++]; e1 = tempReal / optInTimePeriod; tempReal = e1; for( i=optInTimePeriod-1; i > 0 ; i-- ) { e1 = (k*inReal[today++])+(one_minus_k*e1); tempReal += e1; } e2 = tempReal / optInTimePeriod; tempReal = e2; for( i=optInTimePeriod-1; i > 0 ; i-- ) { e1 = (k*inReal[today++])+(one_minus_k*e1); e2 = (k*e1)+(one_minus_k*e2); tempReal += e2; } e3 = tempReal / optInTimePeriod; tempReal = e3; for( i=optInTimePeriod-1; i > 0 ; i-- ) { e1 = (k*inReal[today++])+(one_minus_k*e1); e2 = (k*e1)+(one_minus_k*e2); e3 = (k*e2)+(one_minus_k*e3); tempReal += e3; } e4 = tempReal / optInTimePeriod; tempReal = e4; for( i=optInTimePeriod-1; i > 0 ; i-- ) { e1 = (k*inReal[today++])+(one_minus_k*e1); e2 = (k*e1)+(one_minus_k*e2); e3 = (k*e2)+(one_minus_k*e3); e4 = (k*e3)+(one_minus_k*e4); tempReal += e4; } e5 = tempReal / optInTimePeriod; tempReal = e5; for( i=optInTimePeriod-1; i > 0 ; i-- ) { e1 = (k*inReal[today++])+(one_minus_k*e1); e2 = (k*e1)+(one_minus_k*e2); e3 = (k*e2)+(one_minus_k*e3); e4 = (k*e3)+(one_minus_k*e4); e5 = (k*e4)+(one_minus_k*e5); tempReal += e5; } e6 = tempReal / optInTimePeriod; while( today <= startIdx ) { e1 = (k*inReal[today++])+(one_minus_k*e1); e2 = (k*e1)+(one_minus_k*e2); e3 = (k*e2)+(one_minus_k*e3); e4 = (k*e3)+(one_minus_k*e4); e5 = (k*e4)+(one_minus_k*e5); e6 = (k*e5)+(one_minus_k*e6); } tempReal = optInVFactor * optInVFactor; c1 = -(tempReal * optInVFactor); c2 = 3.0 * (tempReal - c1); c3 = -6.0 * tempReal - 3.0 * (optInVFactor-c1); c4 = 1.0 + 3.0 * optInVFactor - c1 + 3.0 * tempReal; outIdx = 0; outReal[outIdx++] = c1*e6+c2*e5+c3*e4+c4*e3; while( today <= endIdx ) { e1 = (k*inReal[today++])+(one_minus_k*e1); e2 = (k*e1)+(one_minus_k*e2); e3 = (k*e2)+(one_minus_k*e3); e4 = (k*e3)+(one_minus_k*e4); e5 = (k*e4)+(one_minus_k*e5); e6 = (k*e5)+(one_minus_k*e6); outReal[outIdx++] = c1*e6+c2*e5+c3*e4+c4*e3; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;} | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
399,
37,
67,
7055,
1085,
399,
23,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
509,
2153,
382,
26540,
16,
1645,
2153,
382,
58,
6837,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1645,
29205,
8526,
262,
95,
509,
596,
4223,
16,
2324,
823,
5269,
31,
509,
10074,
16,
277,
31,
1645,
417,
16,
1245,
67,
19601,
67,
79,
31,
1645,
425,
21,
16,
425,
22,
16,
425,
23,
16,
425,
24,
16,
425,
25,
16,
425,
26,
31,
1645,
276,
21,
16,
276,
22,
16,
276,
23,
16,
276,
24,
31,
1645,
31497,
31,
309,
12,
27108,
411,
374,
262,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
309,
12,
261,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
309,
12,
261,
474,
13,
3838,
382,
26540,
422,
12,
2144,
18,
6236,
67,
4051,
8623,
2153,
382,
26540,
273,
1381,
31,
469,
309,
12,
14015,
474,
13,
3838,
382,
26540,
411,
576,
13,
747,
14015,
474,
13,
3838,
382,
26540,
405,
25259,
13,
262,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
16234,
67,
8388,
31,
309,
12,
2153,
382,
58,
6837,
422,
19236,
24,
73,
15,
6418,
3719,
2153,
382,
58,
6837,
273,
2371,
18,
9449,
73,
17,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
399,
37,
67,
7055,
1085,
399,
23,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
509,
2153,
382,
26540,
16,
1645,
2153,
382,
58,
6837,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1645,
29205,
8526,
262,
95,
509,
596,
4223,
16,
2324,
823,
5269,
31,
509,
10074,
16,
277,
31,
1645,
417,
16,
1245,
67,
19601,
67,
79,
31,
1645,
425,
21,
16,
425,
22,
16,
425,
23,
16,
425,
24,
16,
425,
25,
16,
425,
26,
31,
1645,
276,
21,
16,
276,
22,
16,
276,
23,
16,
276,
24,
31,
1645,
31497,
31,
309,
12,
27108,
411,
374,
262,
327,
9833,
67,
7055,
1085,
18,
2
] |
||
context.put("contextString", (String) state.getAttribute(STATE_CONTEXT_STRING)); | String contextString = (String) state.getAttribute(STATE_CONTEXT_STRING); context.put("contextString", contextString); | protected String build_list_assignments_context(VelocityPortlet portlet, Context context, RunData data, SessionState state) { context.put("contextString", (String) state.getAttribute(STATE_CONTEXT_STRING)); context.put("user", (User) state.getAttribute(STATE_USER)); context.put("service", AssignmentService.getInstance()); context.put("currentTime", TimeService.newTime()); String sortedBy = (String) state.getAttribute(SORTED_BY); String sortedAsc = (String) state.getAttribute(SORTED_ASC); // clean sort criteria if (sortedBy.equals(SORTED_BY_GROUP_TITLE) || sortedBy.equals(SORTED_BY_GROUP_DESCRIPTION)) { sortedBy = SORTED_BY_DUEDATE; sortedAsc = Boolean.TRUE.toString(); state.setAttribute(SORTED_BY, sortedBy); state.setAttribute(SORTED_ASC, sortedAsc); } context.put("sortedBy", sortedBy); context.put("sortedAsc", sortedAsc); if (state.getAttribute(STATE_SELECTED_VIEW) != null) { context.put("view", state.getAttribute(STATE_SELECTED_VIEW)); } boolean allowAdd = AssignmentService.allowAddAssignment((String) state.getAttribute(STATE_CONTEXT_STRING)); context.put("allowAdd", new Boolean(allowAdd)); boolean allowGrade = AssignmentService.allowGradeSubmission((String) state.getAttribute(STATE_CONTEXT_STRING)); context.put("allowGrade", new Boolean(allowGrade)); boolean allowSubmit = AssignmentService.allowAddSubmission((String) state.getAttribute(STATE_CONTEXT_STRING)); context.put("allowSubmit", new Boolean(allowSubmit)); List assignments = prepPage(state); boolean allowRemove = false; boolean allowRead = false; for (Iterator i = assignments.iterator(); i.hasNext();) { String assignmentReference = ((Assignment) i.next()).getReference(); // see if user allowed to remove at least one assignment allowRemove = AssignmentService.allowRemoveAssignment(assignmentReference); // see if user allowed to read at least one assignment allowRead = AssignmentService.allowGetAssignment(assignmentReference); } context.put("allowRemove", new Boolean(allowRemove)); context.put("allowRead", new Boolean(allowRead)); context.put("assignments", assignments.iterator()); context.put("contextString", state.getAttribute(STATE_CONTEXT_STRING)); add2ndToolbarFields(data, context); // inform the observing courier that we just updated the page... // if there are pending requests to do so they can be cleared justDelivered(state); pagingInfoToContext(state, context); // put site object into context try { // get current site Site site = SiteService.getSite(ToolManager.getCurrentPlacement().getContext()); context.put("site", site); } catch (Exception ignore) { } String template = (String) getContext(data).get("template"); return template + TEMPLATE_LIST_ASSIGNMENTS; } // build_list_assignments_context | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/3ba170f7d959eaabf3024bbd03cf5265445f73a2/AssignmentAction.java/buggy/assignment/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1361,
67,
1098,
67,
24326,
67,
2472,
12,
27522,
18566,
13114,
16,
1772,
819,
16,
1939,
751,
501,
16,
3877,
1119,
919,
13,
202,
95,
202,
202,
2472,
18,
458,
2932,
2472,
780,
3113,
261,
780,
13,
919,
18,
588,
1499,
12,
7998,
67,
13181,
67,
5804,
10019,
202,
202,
2472,
18,
458,
2932,
1355,
3113,
261,
1299,
13,
919,
18,
588,
1499,
12,
7998,
67,
4714,
10019,
202,
202,
2472,
18,
458,
2932,
3278,
3113,
15499,
1179,
18,
588,
1442,
10663,
202,
202,
2472,
18,
458,
2932,
2972,
950,
3113,
2647,
1179,
18,
2704,
950,
10663,
202,
202,
780,
3115,
858,
273,
261,
780,
13,
919,
18,
588,
1499,
12,
55,
11245,
67,
6486,
1769,
202,
202,
780,
3115,
13665,
273,
261,
780,
13,
919,
18,
588,
1499,
12,
55,
11245,
67,
8633,
1769,
202,
202,
759,
2721,
1524,
3582,
202,
202,
430,
261,
10350,
858,
18,
14963,
12,
55,
11245,
67,
6486,
67,
8468,
67,
14123,
13,
747,
3115,
858,
18,
14963,
12,
55,
11245,
67,
6486,
67,
8468,
67,
15911,
3719,
202,
202,
95,
1082,
202,
10350,
858,
273,
348,
11245,
67,
6486,
67,
40,
1821,
4594,
31,
1082,
202,
10350,
13665,
273,
3411,
18,
18724,
18,
10492,
5621,
1082,
202,
2019,
18,
542,
1499,
12,
55,
11245,
67,
6486,
16,
3115,
858,
1769,
1082,
202,
2019,
18,
542,
1499,
12,
55,
11245,
67,
8633,
16,
3115,
13665,
1769,
202,
202,
97,
202,
202,
2472,
18,
458,
2932,
10350,
858,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1361,
67,
1098,
67,
24326,
67,
2472,
12,
27522,
18566,
13114,
16,
1772,
819,
16,
1939,
751,
501,
16,
3877,
1119,
919,
13,
202,
95,
202,
202,
2472,
18,
458,
2932,
2472,
780,
3113,
261,
780,
13,
919,
18,
588,
1499,
12,
7998,
67,
13181,
67,
5804,
10019,
202,
202,
2472,
18,
458,
2932,
1355,
3113,
261,
1299,
13,
919,
18,
588,
1499,
12,
7998,
67,
4714,
10019,
202,
202,
2472,
18,
458,
2932,
3278,
3113,
15499,
1179,
18,
588,
1442,
10663,
202,
202,
2472,
18,
458,
2932,
2972,
950,
3113,
2647,
1179,
18,
2704,
950,
10663,
202,
202,
780,
3115,
858,
273,
261,
780,
13,
919,
18,
588,
1499,
12,
55,
11245,
67,
6486,
2
] |
System.out.println("trying to display " +type+ " " + accessionCode); | System.out.println("SpiceProtocol recieved request to display " +type+ " " + accessionCode); | public String processInput(String str,SPICEFrame spice){ try { String start = str.substring(0,11); System.out.println(start); if ( str.length() > 50){ return SPICE_WHAT; } if (start.equals("SPICE: load")){ // seems to be a SPICE protocol message... String[] split = str.split(" "); if ( split.length != 4) { //logger.info("message does not have right length...") ; return SPICE_WHAT; } String type = split[2]; String accessionCode = split[3]; System.out.println("trying to display " +type+ " " + accessionCode); if ( (type.equals("PDB") ) || (type.equals("UniProt")) ) { spice.load(type,accessionCode); if ( spice instanceof SpiceApplication ){ SpiceApplication parent = (SpiceApplication) spice; parent.setVisible(true); parent.show(); parent.toFront(); parent.requestFocus(); parent.setState(java.awt.Frame.NORMAL); } return SPICE_OK; } else { // what kind of type is this ??? return SPICE_WHAT; } } else { return SPICE_WHAT; } } catch (Exception e) { e.printStackTrace(); return SPICE_ERROR; } // return SPICE_ERROR; } | 52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/03de325639b2077e5af5487217d2ee8707472d74/SpiceProtocol.java/clean/src/org/biojava/spice/server/SpiceProtocol.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1207,
1210,
12,
780,
609,
16,
22694,
1441,
3219,
1694,
1812,
15329,
7734,
775,
288,
5411,
514,
787,
273,
609,
18,
28023,
12,
20,
16,
2499,
1769,
5411,
2332,
18,
659,
18,
8222,
12,
1937,
1769,
5411,
309,
261,
609,
18,
2469,
1435,
405,
6437,
15329,
7734,
327,
20955,
1441,
67,
12557,
789,
31,
5411,
289,
5411,
309,
261,
1937,
18,
14963,
2932,
22694,
1441,
30,
1262,
6,
3719,
95,
7734,
368,
12001,
358,
506,
279,
20955,
1441,
1771,
883,
2777,
7734,
514,
8526,
1416,
273,
609,
18,
4939,
2932,
315,
1769,
7734,
309,
261,
1416,
18,
2469,
480,
1059,
13,
288,
10792,
368,
4901,
18,
1376,
2932,
2150,
1552,
486,
1240,
2145,
769,
7070,
13,
274,
10792,
327,
20955,
1441,
67,
12557,
789,
31,
7734,
289,
7734,
514,
618,
273,
1416,
63,
22,
15533,
7734,
514,
2006,
285,
1085,
273,
1416,
63,
23,
15533,
7734,
2332,
18,
659,
18,
8222,
2932,
3389,
1812,
5752,
1950,
1385,
2155,
590,
358,
2562,
315,
397,
723,
15,
315,
315,
397,
2006,
285,
1085,
1769,
27573,
309,
261,
225,
261,
723,
18,
14963,
2932,
52,
2290,
7923,
565,
262,
747,
15604,
261,
723,
18,
14963,
2932,
984,
77,
21189,
6,
3719,
262,
288,
10792,
1694,
1812,
18,
945,
12,
723,
16,
3860,
285,
1085,
1769,
10792,
309,
261,
1694,
1812,
1276,
5878,
1812,
3208,
262,
95,
13491,
5878,
1812,
3208,
982,
273,
261,
3389,
1812,
3208,
13,
1694,
1812,
31,
13491,
982,
18,
542,
6207,
12,
3767,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1207,
1210,
12,
780,
609,
16,
22694,
1441,
3219,
1694,
1812,
15329,
7734,
775,
288,
5411,
514,
787,
273,
609,
18,
28023,
12,
20,
16,
2499,
1769,
5411,
2332,
18,
659,
18,
8222,
12,
1937,
1769,
5411,
309,
261,
609,
18,
2469,
1435,
405,
6437,
15329,
7734,
327,
20955,
1441,
67,
12557,
789,
31,
5411,
289,
5411,
309,
261,
1937,
18,
14963,
2932,
22694,
1441,
30,
1262,
6,
3719,
95,
7734,
368,
12001,
358,
506,
279,
20955,
1441,
1771,
883,
2777,
7734,
514,
8526,
1416,
273,
609,
18,
4939,
2932,
315,
1769,
7734,
309,
261,
1416,
18,
2469,
480,
1059,
13,
288,
10792,
368,
4901,
18,
1376,
2932,
2150,
1552,
486,
1240,
2145,
769,
7070,
13,
2
] |
private void addnewService(ServiceDescription serviceMetaData) throws AxisFault { try { loadServiceProperties(serviceMetaData); axisConfig.addService(serviceMetaData); serviceMetaData.setFileName(currentArchiveFile.getFile().getAbsolutePath()); ArrayList list = currentArchiveFile.getModules(); for (int i = 0; i < list.size(); i++) { ModuleDescription module = axisConfig.getModule((QName) list.get(i)); if (module != null) { serviceMetaData.engageModule(module, axisConfig); } else { throw new DeploymentException(Messages.getMessage( DeploymentErrorMsgs.IN_VALID_MODUELE_REF, serviceMetaData.getName(). getLocalPart(), ((QName) list.get(i)).getLocalPart())); } } HashMap opeartions = serviceMetaData.getOperations(); Collection opCol = opeartions.values(); for (Iterator iterator = opCol.iterator(); iterator.hasNext();) { OperationDescription opDesc = (OperationDescription) iterator.next(); ArrayList modules = opDesc.getModuleRefs(); for (int i = 0; i < modules.size(); i++) { QName moduleName = (QName) modules.get(i); ModuleDescription module = axisConfig.getModule(moduleName); if (module != null) { opDesc.engageModule(module); } else { throw new DeploymentException(Messages.getMessage( DeploymentErrorMsgs.IN_VALID_MODUELE_REF_BY_OP, opDesc.getName() .getLocalPart(), moduleName.getLocalPart())); } } } ///factory.createChains(serviceMetaData, axisConfig, ); } catch (PhaseException e) { throw new AxisFault(e); }// System.out.println("Adding service = " + serviceMetaData.getName().getLocalPart()); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/3389c598027d995e6c4f7c76b9e3d182cedba072/DeploymentEngine.java/clean/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
1289,
2704,
1179,
12,
1179,
3291,
3278,
6998,
13,
15069,
6558,
7083,
95,
698,
95,
945,
1179,
2297,
12,
3278,
6998,
1769,
4890,
809,
18,
1289,
1179,
12,
3278,
6998,
1769,
3278,
6998,
18,
542,
4771,
12,
2972,
7465,
812,
18,
29925,
7675,
588,
10368,
743,
10663,
19558,
1098,
33,
2972,
7465,
812,
18,
588,
7782,
5621,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
1098,
18,
1467,
5621,
77,
27245,
95,
3120,
3291,
2978,
33,
4890,
809,
18,
588,
3120,
12443,
13688,
13,
1098,
18,
588,
12,
77,
10019,
430,
12,
2978,
5,
33,
2011,
15329,
3278,
6998,
18,
24688,
410,
3120,
12,
2978,
16,
4890,
809,
1769,
97,
12107,
95,
12849,
2704,
6733,
503,
12,
5058,
18,
24906,
12,
6733,
668,
17949,
18,
706,
67,
5063,
67,
6720,
1821,
900,
67,
10771,
16,
3278,
6998,
18,
17994,
7675,
588,
2042,
1988,
9334,
12443,
13688,
13,
1098,
18,
588,
12,
77,
13,
2934,
588,
2042,
1988,
1435,
10019,
9090,
8658,
1306,
485,
1115,
33,
3278,
6998,
18,
588,
9343,
5621,
2532,
556,
914,
33,
1306,
485,
1115,
18,
2372,
5621,
1884,
12,
3198,
9838,
33,
556,
914,
18,
9838,
5621,
9838,
18,
5332,
2134,
5621,
15329,
2988,
3291,
556,
4217,
28657,
2988,
3291,
13,
9838,
18,
4285,
5621,
19558,
6400,
33,
556,
4217,
18,
588,
3120,
9837,
5621,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
6400,
18,
1467,
5621,
77,
27245,
95,
13688,
2978,
461,
28657,
13688,
13,
6400,
18,
588,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
1289,
2704,
1179,
12,
1179,
3291,
3278,
6998,
13,
15069,
6558,
7083,
95,
698,
95,
945,
1179,
2297,
12,
3278,
6998,
1769,
4890,
809,
18,
1289,
1179,
12,
3278,
6998,
1769,
3278,
6998,
18,
542,
4771,
12,
2972,
7465,
812,
18,
29925,
7675,
588,
10368,
743,
10663,
19558,
1098,
33,
2972,
7465,
812,
18,
588,
7782,
5621,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
1098,
18,
1467,
5621,
77,
27245,
95,
3120,
3291,
2978,
33,
4890,
809,
18,
588,
3120,
12443,
13688,
13,
1098,
18,
588,
12,
77,
10019,
430,
12,
2978,
5,
33,
2011,
15329,
3278,
6998,
18,
24688,
410,
3120,
12,
2978,
16,
4890,
809,
1769,
97,
12107,
95,
12849,
2704,
6733,
503,
2
] |
||
int length = buf.length(); | public void unread(char c) { int length = buf.length(); if (c == '\n') { line--; column = ((Integer)lineWidths.get(line)).intValue(); nextCharIsOnANewLine = true; } else { column--; } buf.append(c); } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/870e1da9b41bfdbae259e1fc5f18fc8b76686998/LexerSource.java/buggy/src/org/jruby/lexer/yacc/LexerSource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19541,
12,
3001,
276,
13,
288,
377,
202,
282,
202,
430,
261,
71,
422,
2337,
82,
6134,
288,
377,
202,
202,
1369,
413,
31,
377,
202,
202,
2827,
273,
14015,
4522,
13,
1369,
22407,
18,
588,
12,
1369,
13,
2934,
474,
620,
5621,
377,
202,
202,
4285,
2156,
2520,
1398,
1258,
359,
1670,
273,
638,
31,
377,
202,
97,
469,
288,
377,
202,
202,
2827,
413,
31,
377,
202,
97,
377,
202,
4385,
18,
6923,
12,
71,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19541,
12,
3001,
276,
13,
288,
377,
202,
282,
202,
430,
261,
71,
422,
2337,
82,
6134,
288,
377,
202,
202,
1369,
413,
31,
377,
202,
202,
2827,
273,
14015,
4522,
13,
1369,
22407,
18,
588,
12,
1369,
13,
2934,
474,
620,
5621,
377,
202,
202,
4285,
2156,
2520,
1398,
1258,
359,
1670,
273,
638,
31,
377,
202,
97,
469,
288,
377,
202,
202,
2827,
413,
31,
377,
202,
97,
377,
202,
4385,
18,
6923,
12,
71,
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
] |
|
public BasicBlock allocateBasicBlock() { return cfg.allocate(); } | public BasicBlock allocateBasicBlock() { return cfg.allocate(); } | public BasicBlock allocateBasicBlock() { return cfg.allocate(); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4d50330e1fcf5300f34aa9f669d5e080296f09ea/BetterCFGBuilder2.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/BetterCFGBuilder2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
7651,
1768,
1082,
202,
16247,
8252,
1768,
1435,
202,
95,
327,
2776,
18,
16247,
5621,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
7651,
1768,
1082,
202,
16247,
8252,
1768,
1435,
202,
95,
327,
2776,
18,
16247,
5621,
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
] |
if (newState == STATE_MINIMIZED) { | if (newState == STATE_MAXIMIZED) { | public void setState(int newState) { if (newState == STATE_MINIMIZED) { if ((flags & SWT.MIN) == 0) { return; } } if (newState == STATE_MINIMIZED) { if ((flags & SWT.MAX) == 0) { return; } } PartTabFolder.this.setState(newState); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/629b7d0e328c7988289311e0c716e5674e3b93e9/PartTabFolder.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartTabFolder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
12947,
12,
474,
15907,
13,
288,
540,
202,
430,
261,
2704,
1119,
422,
7442,
67,
6694,
3445,
24131,
13,
288,
540,
202,
202,
430,
14015,
7133,
473,
348,
8588,
18,
6236,
13,
422,
374,
13,
288,
540,
1082,
202,
2463,
31,
540,
202,
202,
97,
540,
202,
97,
540,
202,
430,
261,
2704,
1119,
422,
7442,
67,
6694,
3445,
24131,
13,
288,
540,
202,
202,
430,
14015,
7133,
473,
348,
8588,
18,
6694,
13,
422,
374,
13,
288,
540,
1082,
202,
2463,
31,
540,
202,
202,
97,
540,
202,
97,
5411,
6393,
5661,
3899,
18,
2211,
18,
542,
1119,
12,
2704,
1119,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
12947,
12,
474,
15907,
13,
288,
540,
202,
430,
261,
2704,
1119,
422,
7442,
67,
6694,
3445,
24131,
13,
288,
540,
202,
202,
430,
14015,
7133,
473,
348,
8588,
18,
6236,
13,
422,
374,
13,
288,
540,
1082,
202,
2463,
31,
540,
202,
202,
97,
540,
202,
97,
540,
202,
430,
261,
2704,
1119,
422,
7442,
67,
6694,
3445,
24131,
13,
288,
540,
202,
202,
430,
14015,
7133,
473,
348,
8588,
18,
6694,
13,
422,
374,
13,
288,
540,
1082,
202,
2463,
31,
540,
202,
202,
97,
540,
202,
97,
5411,
6393,
5661,
3899,
18,
2211,
18,
542,
1119,
12,
2704,
1119,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new String("."); | return new String(""); | public String getCatalogSeparator() throws SQLException { return new String("."); } | 11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/65818b6bf0ddf5351586f4bddabfa28d3299c299/DatabaseMetaData.java/clean/src/interfaces/jdbc/postgresql/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1927,
4392,
6581,
1435,
1216,
6483,
225,
288,
377,
327,
394,
514,
2932,
8863,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1927,
4392,
6581,
1435,
1216,
6483,
225,
288,
377,
327,
394,
514,
2932,
8863,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
File dir = new File(pathname); if (!dir.isDirectory()) return; File[] files = listFiles(dir); int num_files = files.length; int mem = 0; int num = 0; | File dir = new File(pathname); if (!dir.isDirectory()) return; File[] files = listFiles(dir); int num_files = files.length; int mem = 0; int num = 0; | public void addDirectory(String pathname) { File dir = new File(pathname); if (!dir.isDirectory()) return; File[] files = listFiles(dir); int num_files = files.length; int mem = 0; int num = 0; for (int i = 0; i < num_files; i++) { File f = files[i]; String name = f.getName(); if ( ( hasExtension(name) ) && (!hasFilter(pathname) ) ) { mem+=f.length(); num++; } } int key = calculateKey(num, mem); _list.add(new Pair(key, dir), key); } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/41422245404c0fad8a30437d75fc29381b02be42/FileScan.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/FileScan.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2853,
12,
780,
9806,
13,
288,
202,
812,
1577,
273,
394,
1387,
12,
28336,
1769,
202,
430,
16051,
1214,
18,
291,
2853,
10756,
202,
565,
327,
31,
202,
812,
8526,
1390,
273,
17852,
12,
1214,
1769,
202,
474,
818,
67,
2354,
273,
1390,
18,
2469,
31,
202,
202,
474,
1663,
273,
374,
31,
202,
474,
818,
273,
374,
31,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
818,
67,
2354,
31,
277,
27245,
288,
202,
565,
1387,
284,
273,
1390,
63,
77,
15533,
202,
565,
514,
508,
273,
284,
18,
17994,
5621,
202,
565,
309,
261,
261,
711,
3625,
12,
529,
13,
262,
1082,
597,
16051,
5332,
1586,
12,
28336,
13,
262,
262,
288,
202,
202,
3917,
15,
33,
74,
18,
2469,
5621,
202,
202,
2107,
9904,
31,
202,
565,
289,
202,
202,
97,
202,
474,
498,
273,
4604,
653,
12,
2107,
16,
1663,
1769,
202,
67,
1098,
18,
1289,
12,
2704,
8599,
12,
856,
16,
1577,
3631,
498,
1769,
202,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2853,
12,
780,
9806,
13,
288,
202,
812,
1577,
273,
394,
1387,
12,
28336,
1769,
202,
430,
16051,
1214,
18,
291,
2853,
10756,
202,
565,
327,
31,
202,
812,
8526,
1390,
273,
17852,
12,
1214,
1769,
202,
474,
818,
67,
2354,
273,
1390,
18,
2469,
31,
202,
202,
474,
1663,
273,
374,
31,
202,
474,
818,
273,
374,
31,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
818,
67,
2354,
31,
277,
27245,
288,
202,
565,
1387,
284,
273,
1390,
63,
77,
15533,
202,
565,
514,
508,
273,
284,
18,
17994,
5621,
202,
565,
309,
261,
261,
711,
3625,
12,
529,
13,
262,
1082,
597,
16051,
5332,
1586,
12,
28336,
13,
262,
262,
2
] |
private static boolean isIndexedListLoopStatement( final PsiForStatement forStatement){ | static boolean isIndexedListLoopStatement( PsiForStatement forStatement){ | private static boolean isIndexedListLoopStatement( final PsiForStatement forStatement){ final PsiStatement initialization = forStatement.getInitialization(); if(!(initialization instanceof PsiDeclarationStatement)){ return false; } final PsiDeclarationStatement declaration = (PsiDeclarationStatement) initialization; if(declaration.getDeclaredElements().length != 1){ return false; } final PsiLocalVariable indexVar = (PsiLocalVariable) declaration .getDeclaredElements()[0]; final PsiExpression initialValue = indexVar.getInitializer(); if(initialValue == null){ return false; } final String initializerText = initialValue.getText(); if(!"0".equals(initializerText)){ return false; } final PsiExpression condition = forStatement.getCondition(); if(!isListSizeComparison(condition, indexVar)){ return false; } final PsiStatement update = forStatement.getUpdate(); if(!isIncrement(update, indexVar)){ return false; } final PsiReferenceExpression collectionReference = getVariableReferenceFromCondition( condition); final PsiStatement body = forStatement.getBody(); if(body == null){ return false; } PsiElement resolved = collectionReference.resolve(); if(!(resolved instanceof PsiVariable)){ return false; } if(!indexVarOnlyUsedAsListIndex((PsiVariable) resolved, indexVar, body)){ return false; } final String collectionName = collectionReference.getText(); return !isVariableAssigned(collectionName, body); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/8629082a2f885120180c8da4e7204776468af6a2/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/ForCanBeForeachInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
353,
15034,
682,
6452,
3406,
12,
5411,
727,
453,
7722,
1290,
3406,
364,
3406,
15329,
3639,
727,
453,
7722,
3406,
10313,
273,
364,
3406,
18,
588,
17701,
5621,
3639,
309,
12,
5,
12,
6769,
1588,
1276,
453,
7722,
6094,
3406,
3719,
95,
5411,
327,
629,
31,
3639,
289,
3639,
727,
453,
7722,
6094,
3406,
8266,
273,
261,
52,
7722,
6094,
3406,
13,
10313,
31,
3639,
309,
12,
22448,
18,
588,
18888,
3471,
7675,
2469,
480,
404,
15329,
5411,
327,
629,
31,
3639,
289,
3639,
727,
453,
7722,
2042,
3092,
770,
1537,
273,
261,
52,
7722,
2042,
3092,
13,
8266,
7734,
263,
588,
18888,
3471,
1435,
63,
20,
15533,
3639,
727,
453,
7722,
2300,
11837,
273,
770,
1537,
18,
588,
14729,
5621,
3639,
309,
12,
6769,
620,
422,
446,
15329,
5411,
327,
629,
31,
3639,
289,
3639,
727,
514,
12562,
1528,
273,
11837,
18,
588,
1528,
5621,
3639,
309,
12,
4442,
20,
9654,
14963,
12,
22181,
1528,
3719,
95,
5411,
327,
629,
31,
3639,
289,
3639,
727,
453,
7722,
2300,
2269,
273,
364,
3406,
18,
588,
3418,
5621,
3639,
309,
12,
5,
291,
682,
1225,
16059,
12,
4175,
16,
770,
1537,
3719,
95,
5411,
327,
629,
31,
3639,
289,
3639,
727,
453,
7722,
3406,
1089,
273,
364,
3406,
18,
588,
1891,
5621,
3639,
309,
12,
5,
291,
10798,
12,
2725,
16,
770,
1537,
3719,
95,
5411,
327,
629,
31,
3639,
289,
3639,
727,
453,
7722,
2404,
2300,
1849,
2404,
273,
13522,
2404,
1265,
3418,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
353,
15034,
682,
6452,
3406,
12,
5411,
727,
453,
7722,
1290,
3406,
364,
3406,
15329,
3639,
727,
453,
7722,
3406,
10313,
273,
364,
3406,
18,
588,
17701,
5621,
3639,
309,
12,
5,
12,
6769,
1588,
1276,
453,
7722,
6094,
3406,
3719,
95,
5411,
327,
629,
31,
3639,
289,
3639,
727,
453,
7722,
6094,
3406,
8266,
273,
261,
52,
7722,
6094,
3406,
13,
10313,
31,
3639,
309,
12,
22448,
18,
588,
18888,
3471,
7675,
2469,
480,
404,
15329,
5411,
327,
629,
31,
3639,
289,
3639,
727,
453,
7722,
2042,
3092,
770,
1537,
273,
261,
52,
7722,
2042,
3092,
13,
8266,
7734,
263,
588,
18888,
3471,
1435,
63,
20,
15533,
3639,
727,
453,
7722,
2300,
11837,
273,
2
] |
Label lblDummyFraction = new Label( this, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalSpan = 2; gd.heightHint = 10; lblDummyFraction.setLayoutData( gd ); } | createPlaceHolder( this, 2 ); | private void placeComponents( ) { // Layout for the content composite GridLayout glContent = new GridLayout( ); glContent.numColumns = 2; glContent.marginHeight = 7; glContent.marginWidth = 7; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 0; // Layout for the details composite slStandardDetails = new StackLayout( ); // Layout for the details composite slAdvancedDetails = new StackLayout( ); this.setLayout( glContent ); Label lblDataType = new Label( this, SWT.NONE ); GridData gdLBLDataType = new GridData( ); lblDataType.setLayoutData( gdLBLDataType ); lblDataType.setText( Messages.getString( "FormatSpecifierComposite.Lbl.DataType" ) ); //$NON-NLS-1$ cmbDataType = new Combo( this, SWT.DROP_DOWN | SWT.READ_ONLY ); GridData gdCMBDataType = new GridData( GridData.FILL_HORIZONTAL ); cmbDataType.setLayoutData( gdCMBDataType ); cmbDataType.addSelectionListener( this ); btnUndefined = new Button( this, SWT.RADIO ); GridData gdBTNUndefined = new GridData( GridData.FILL_HORIZONTAL ); gdBTNUndefined.horizontalSpan = 2; btnUndefined.setLayoutData( gdBTNUndefined ); btnUndefined.setText( Messages.getString( "FormatSpecifierComposite.Lbl.Undefined" ) ); //$NON-NLS-1$ btnUndefined.addSelectionListener( this ); Label lblDummyStandard = new Label( this, SWT.NONE ); GridData gdLBLDummyStandard = new GridData( ); gdLBLDummyStandard.horizontalSpan = 2; gdLBLDummyStandard.heightHint = 10; lblDummyStandard.setLayoutData( gdLBLDummyStandard ); btnStandard = new Button( this, SWT.RADIO ); GridData gdBTNStandard = new GridData( GridData.FILL_HORIZONTAL ); gdBTNStandard.horizontalSpan = 2; btnStandard.setLayoutData( gdBTNStandard ); btnStandard.setText( Messages.getString( "FormatSpecifierComposite.Lbl.Standard" ) ); //$NON-NLS-1$ btnStandard.addSelectionListener( this ); cmpStandardDetails = new Composite( this, SWT.NONE ); GridData gdCMPStandardDetails = new GridData( GridData.FILL_BOTH ); gdCMPStandardDetails.horizontalIndent = 16; gdCMPStandardDetails.horizontalSpan = 2; cmpStandardDetails.setLayoutData( gdCMPStandardDetails ); cmpStandardDetails.setLayout( slStandardDetails ); // Date/Time details Composite cmpStandardDateDetails = new Composite( cmpStandardDetails, SWT.NONE ); { GridLayout glDate = new GridLayout( ); glDate.verticalSpacing = 5; glDate.marginHeight = 0; glDate.marginWidth = 0; cmpStandardDateDetails.setLayout( glDate ); } cpWrapStandardDate = new DateStandardComposite( cmpStandardDateDetails ); // Number details Composite cmpStandardNumberDetails = new Composite( cmpStandardDetails, SWT.NONE ); { GridLayout glNumber = new GridLayout( ); glNumber.verticalSpacing = 5; glNumber.marginHeight = 0; glNumber.marginWidth = 0; cmpStandardNumberDetails.setLayout( glNumber ); } cpWrapStandardNumber = new NumberStandardComposite( cmpStandardNumberDetails ); Label lblDummyAdvanced = new Label( this, SWT.NONE ); GridData gdLBLDummyAdvanced = new GridData( ); gdLBLDummyAdvanced.horizontalSpan = 2; gdLBLDummyAdvanced.heightHint = 10; lblDummyAdvanced.setLayoutData( gdLBLDummyAdvanced ); btnAdvanced = new Button( this, SWT.RADIO ); GridData gdBTNAdvanced = new GridData( GridData.FILL_HORIZONTAL ); gdBTNAdvanced.horizontalSpan = 2; btnAdvanced.setLayoutData( gdBTNAdvanced ); btnAdvanced.setText( Messages.getString( "FormatSpecifierComposite.Lbl.Advanced" ) ); //$NON-NLS-1$ btnAdvanced.addSelectionListener( this ); cmpAdvancedDetails = new Composite( this, SWT.NONE ); GridData gdCMPAdvancedDetails = new GridData( GridData.FILL_BOTH ); gdCMPAdvancedDetails.horizontalIndent = 16; gdCMPAdvancedDetails.horizontalSpan = 2; cmpAdvancedDetails.setLayoutData( gdCMPAdvancedDetails ); cmpAdvancedDetails.setLayout( slAdvancedDetails ); // Date/Time details Composite cmpAdvancedDateDetails = new Composite( cmpAdvancedDetails, SWT.NONE ); { GridLayout glAdvDate = new GridLayout( ); glAdvDate.verticalSpacing = 5; glAdvDate.marginHeight = 0; glAdvDate.marginWidth = 0; cmpAdvancedDateDetails.setLayout( glAdvDate ); } cpWrapAdvancedDate = new DateAdvancedComposite( cmpAdvancedDateDetails ); // Number details Composite cmpAdvancedNumberDetails = new Composite( cmpAdvancedDetails, SWT.NONE ); { GridLayout glAdvNumber = new GridLayout( ); glAdvNumber.verticalSpacing = 5; glAdvNumber.marginHeight = 0; glAdvNumber.marginWidth = 0; cmpAdvancedNumberDetails.setLayout( glAdvNumber ); } cpWrapAdvancedNumber = new NumberAdvancedComposite( cmpAdvancedNumberDetails ); // Fraction Number details Composite Label lblDummyFraction = new Label( this, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalSpan = 2; gd.heightHint = 10; lblDummyFraction.setLayoutData( gd ); } btnFraction = new Button( this, SWT.RADIO ); { GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalSpan = 2; btnFraction.setLayoutData( gd ); btnFraction.setText( Messages.getString( "FormatSpecifierComposite.Lbl.Fraction" ) ); //$NON-NLS-1$ btnFraction.addSelectionListener( this ); } cmpFractionNumberDetails = new Composite( this, SWT.NONE ); { GridData gd = new GridData( GridData.FILL_BOTH ); gd.horizontalIndent = 16; gd.horizontalSpan = 2; cmpFractionNumberDetails.setLayoutData( gd ); cmpFractionNumberDetails.setLayout( new FormLayout( ) ); } cpWrapFractionNumber = new NumberFractionComposite( cmpFractionNumberDetails ); populateLists( ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/a8cbb3bd39fd0de535656d42c24e44059a9ca11b/FormatSpecifierComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3166,
7171,
12,
262,
202,
95,
202,
202,
759,
9995,
364,
326,
913,
9635,
202,
202,
6313,
3744,
5118,
1350,
273,
394,
7145,
3744,
12,
11272,
202,
202,
7043,
1350,
18,
2107,
3380,
273,
576,
31,
202,
202,
7043,
1350,
18,
10107,
2686,
273,
2371,
31,
202,
202,
7043,
1350,
18,
10107,
2384,
273,
2371,
31,
202,
202,
7043,
1350,
18,
18396,
18006,
273,
1381,
31,
202,
202,
7043,
1350,
18,
17824,
18006,
273,
374,
31,
202,
202,
759,
9995,
364,
326,
3189,
9635,
202,
202,
2069,
8336,
3790,
273,
394,
7283,
3744,
12,
11272,
202,
202,
759,
9995,
364,
326,
3189,
9635,
202,
202,
2069,
23618,
3790,
273,
394,
7283,
3744,
12,
11272,
202,
202,
2211,
18,
542,
3744,
12,
5118,
1350,
11272,
202,
202,
2224,
14284,
6273,
273,
394,
5287,
12,
333,
16,
348,
8588,
18,
9826,
11272,
202,
202,
6313,
751,
15551,
12995,
48,
6273,
273,
394,
7145,
751,
12,
11272,
202,
202,
31885,
6273,
18,
542,
3744,
751,
12,
15551,
12995,
48,
6273,
11272,
202,
202,
31885,
6273,
18,
542,
1528,
12,
4838,
18,
588,
780,
12,
315,
1630,
21416,
9400,
18,
48,
3083,
18,
6273,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
71,
1627,
6273,
273,
394,
1286,
1075,
12,
333,
16,
348,
8588,
18,
18768,
67,
12711,
571,
348,
8588,
18,
6949,
67,
10857,
11272,
202,
202,
6313,
751,
15551,
39,
7969,
6273,
273,
394,
7145,
751,
12,
7145,
751,
18,
29818,
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,
3166,
7171,
12,
262,
202,
95,
202,
202,
759,
9995,
364,
326,
913,
9635,
202,
202,
6313,
3744,
5118,
1350,
273,
394,
7145,
3744,
12,
11272,
202,
202,
7043,
1350,
18,
2107,
3380,
273,
576,
31,
202,
202,
7043,
1350,
18,
10107,
2686,
273,
2371,
31,
202,
202,
7043,
1350,
18,
10107,
2384,
273,
2371,
31,
202,
202,
7043,
1350,
18,
18396,
18006,
273,
1381,
31,
202,
202,
7043,
1350,
18,
17824,
18006,
273,
374,
31,
202,
202,
759,
9995,
364,
326,
3189,
9635,
202,
202,
2069,
8336,
3790,
273,
394,
7283,
3744,
12,
11272,
202,
202,
759,
9995,
364,
326,
3189,
9635,
202,
202,
2069,
23618,
3790,
273,
394,
7283,
3744,
12,
11272,
202,
2
] |
( (GanttSeries) series ).getOutline( ) .setStyle( (LineStyle) event.data ); | series.getOutline( ).setStyle( (LineStyle) event.data ); | public void handleEvent( Event event ) { if ( event.widget.equals( gliacGantt ) ) { if ( event.type == GanttLineAttributesComposite.VISIBILITY_CHANGED_EVENT ) { ( (GanttSeries) series ).getConnectionLine( ) .setVisible( ( (Boolean) event.data ).booleanValue( ) ); } else if ( event.type == GanttLineAttributesComposite.STYLE_CHANGED_EVENT ) { ( (GanttSeries) series ).getConnectionLine( ) .setStyle( (LineStyle) event.data ); } else if ( event.type == GanttLineAttributesComposite.WIDTH_CHANGED_EVENT ) { ( (GanttSeries) series ).getConnectionLine( ) .setThickness( ( (Integer) event.data ).intValue( ) ); } else if ( event.type == GanttLineAttributesComposite.COLOR_CHANGED_EVENT ) { ( (GanttSeries) series ).getConnectionLine( ) .setColor( (ColorDefinition) event.data ); } } else if ( event.widget.equals( oliacGantt ) ) { if ( event.type == LineAttributesComposite.VISIBILITY_CHANGED_EVENT ) { ( (GanttSeries) series ).getOutline( ) .setVisible( ( (Boolean) event.data ).booleanValue( ) ); } else if ( event.type == LineAttributesComposite.STYLE_CHANGED_EVENT ) { ( (GanttSeries) series ).getOutline( ) .setStyle( (LineStyle) event.data ); } else if ( event.type == LineAttributesComposite.WIDTH_CHANGED_EVENT ) { ( (GanttSeries) series ).getOutline( ) .setThickness( ( (Integer) event.data ).intValue( ) ); } else if ( event.type == LineAttributesComposite.COLOR_CHANGED_EVENT ) { ( (GanttSeries) series ).getOutline( ) .setColor( (ColorDefinition) event.data ); } } else if ( event.widget.equals( fccFill ) ) { ( (GanttSeries) series ).setOutlineFill( (ColorDefinition) event.data ); } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c14da3b527cef2399a3a605a3129c5e9e98d840f/GanttSeriesAttributeComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/series/GanttSeriesAttributeComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
1133,
12,
2587,
871,
262,
202,
95,
202,
202,
430,
261,
871,
18,
6587,
18,
14963,
12,
314,
549,
1077,
43,
304,
748,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
871,
18,
723,
422,
611,
304,
748,
1670,
2498,
9400,
18,
4136,
30310,
67,
24435,
67,
10454,
262,
1082,
202,
95,
9506,
202,
12,
261,
43,
304,
748,
6485,
13,
4166,
262,
18,
588,
1952,
1670,
12,
262,
25083,
202,
18,
542,
6207,
12,
261,
261,
5507,
13,
871,
18,
892,
262,
18,
6494,
620,
12,
262,
11272,
1082,
202,
97,
1082,
202,
12107,
309,
261,
871,
18,
723,
422,
611,
304,
748,
1670,
2498,
9400,
18,
15066,
67,
24435,
67,
10454,
262,
1082,
202,
95,
9506,
202,
12,
261,
43,
304,
748,
6485,
13,
4166,
262,
18,
588,
1952,
1670,
12,
262,
25083,
202,
18,
542,
2885,
12,
261,
1670,
2885,
13,
871,
18,
892,
11272,
1082,
202,
97,
1082,
202,
12107,
309,
261,
871,
18,
723,
422,
611,
304,
748,
1670,
2498,
9400,
18,
10023,
67,
24435,
67,
10454,
262,
1082,
202,
95,
9506,
202,
12,
261,
43,
304,
748,
6485,
13,
4166,
262,
18,
588,
1952,
1670,
12,
262,
25083,
202,
18,
542,
1315,
19517,
12,
261,
261,
4522,
13,
871,
18,
892,
262,
18,
474,
620,
12,
262,
11272,
1082,
202,
97,
1082,
202,
12107,
309,
261,
871,
18,
723,
422,
611,
304,
748,
1670,
2498,
9400,
18,
10989,
67,
24435,
67,
10454,
262,
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,
918,
1640,
1133,
12,
2587,
871,
262,
202,
95,
202,
202,
430,
261,
871,
18,
6587,
18,
14963,
12,
314,
549,
1077,
43,
304,
748,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
871,
18,
723,
422,
611,
304,
748,
1670,
2498,
9400,
18,
4136,
30310,
67,
24435,
67,
10454,
262,
1082,
202,
95,
9506,
202,
12,
261,
43,
304,
748,
6485,
13,
4166,
262,
18,
588,
1952,
1670,
12,
262,
25083,
202,
18,
542,
6207,
12,
261,
261,
5507,
13,
871,
18,
892,
262,
18,
6494,
620,
12,
262,
11272,
1082,
202,
97,
1082,
202,
12107,
309,
261,
871,
18,
723,
422,
611,
304,
748,
1670,
2498,
9400,
18,
15066,
67,
24435,
67,
10454,
2
] |
return(hexNumberTable[octect] != -1 ); | return( hexNumberTable[octect] != -1 ); | static boolean isHex( byte octect ) { //shall we ignore white space? JEFF?? return(hexNumberTable[octect] != -1 ); } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/883e3640a5fdfbff1ae8c32eabc60743dc590d6c/HexBin.java/buggy/src/org/apache/xerces/utils/HexBin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1250,
353,
7037,
12,
1160,
10844,
386,
262,
288,
3639,
368,
674,
454,
732,
2305,
9578,
3476,
35,
804,
31299,
14646,
3639,
327,
12,
3827,
1854,
1388,
63,
13410,
386,
65,
480,
300,
21,
11272,
377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1250,
353,
7037,
12,
1160,
10844,
386,
262,
288,
3639,
368,
674,
454,
732,
2305,
9578,
3476,
35,
804,
31299,
14646,
3639,
327,
12,
3827,
1854,
1388,
63,
13410,
386,
65,
480,
300,
21,
11272,
377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void read(RandomAccessFile file) | public void read(ByteBuffer byteBuffer) | public void read(RandomAccessFile file) throws TagException, IOException { int size; ID3v22Frame next; if (seek(file) == false) { throw new TagNotFoundException("ID3v2.20 tag not found"); } logger.info("Reading tag from file"); //Read the flags byte flags = file.readByte(); unsynchronization = (flags & MASK_V22_UNSYNCHRONIZATION) != 0; compression = (flags & MASK_V22_COMPRESSION) != 0; //@todo if unsynchronization bit set what do we do //@todo if compression bit set should we ignore // Read the size byte[] buffer = new byte[FIELD_TAG_SIZE_LENGTH]; file.read(buffer, 0, FIELD_TAG_SIZE_LENGTH); size = byteArrayToSize(buffer); long filePointer = file.getFilePointer(); readFrames(file, filePointer, size); } | 40452 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40452/8e6062659057068b4b85fb7b41c567e179db6f7c/ID3v22Tag.java/buggy/src/org/jaudiotagger/tag/id3/ID3v22Tag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
855,
12,
12242,
21734,
13,
3639,
1216,
4034,
503,
16,
1860,
565,
288,
3639,
509,
963,
31,
3639,
1599,
23,
90,
3787,
3219,
1024,
31,
3639,
309,
261,
16508,
12,
768,
13,
422,
629,
13,
3639,
288,
5411,
604,
394,
4034,
3990,
2932,
734,
23,
90,
22,
18,
3462,
1047,
486,
1392,
8863,
3639,
289,
3639,
1194,
18,
1376,
2932,
15714,
1047,
628,
585,
8863,
3639,
368,
1994,
326,
2943,
3639,
1160,
2943,
273,
585,
18,
896,
3216,
5621,
3639,
16804,
2600,
1588,
273,
261,
7133,
473,
23888,
67,
58,
3787,
67,
2124,
7474,
50,
1792,
19359,
25084,
13,
480,
374,
31,
3639,
9154,
273,
261,
7133,
473,
23888,
67,
58,
3787,
67,
4208,
14227,
13,
480,
374,
31,
3639,
23834,
9012,
309,
16804,
2600,
1588,
2831,
444,
4121,
741,
732,
741,
3639,
23834,
9012,
309,
9154,
2831,
444,
1410,
732,
2305,
3639,
368,
2720,
326,
963,
3639,
1160,
8526,
1613,
273,
394,
1160,
63,
6776,
67,
7927,
67,
4574,
67,
7096,
15533,
3639,
585,
18,
896,
12,
4106,
16,
374,
16,
9921,
67,
7927,
67,
4574,
67,
7096,
1769,
3639,
963,
273,
17774,
774,
1225,
12,
4106,
1769,
3639,
1525,
585,
4926,
273,
585,
18,
29925,
4926,
5621,
3639,
855,
15162,
12,
768,
16,
585,
4926,
16,
963,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
855,
12,
12242,
21734,
13,
3639,
1216,
4034,
503,
16,
1860,
565,
288,
3639,
509,
963,
31,
3639,
1599,
23,
90,
3787,
3219,
1024,
31,
3639,
309,
261,
16508,
12,
768,
13,
422,
629,
13,
3639,
288,
5411,
604,
394,
4034,
3990,
2932,
734,
23,
90,
22,
18,
3462,
1047,
486,
1392,
8863,
3639,
289,
3639,
1194,
18,
1376,
2932,
15714,
1047,
628,
585,
8863,
3639,
368,
1994,
326,
2943,
3639,
1160,
2943,
273,
585,
18,
896,
3216,
5621,
3639,
16804,
2600,
1588,
273,
261,
7133,
473,
23888,
67,
58,
3787,
67,
2124,
7474,
50,
1792,
19359,
25084,
13,
480,
374,
31,
3639,
9154,
273,
261,
7133,
473,
23888,
67,
58,
3787,
67,
4208,
14227,
13,
2
] |
public RubyPointer(Object autoResizeObject, int size) { this(new ArrayList(Collections.nCopies(size, autoResizeObject)), 0, true, autoResizeObject); | public RubyPointer() { this(new ArrayList(), 0, true, null); | public RubyPointer(Object autoResizeObject, int size) { this(new ArrayList(Collections.nCopies(size, autoResizeObject)), 0, true, autoResizeObject); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/59743974f1f8d5a50153b05647dac2d75d510976/RubyPointer.java/buggy/org/jruby/util/RubyPointer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4926,
12,
921,
3656,
12182,
921,
16,
509,
963,
13,
288,
3639,
333,
12,
2704,
2407,
12,
15150,
18,
82,
15670,
12,
1467,
16,
3656,
12182,
921,
13,
3631,
374,
16,
638,
16,
3656,
12182,
921,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4926,
12,
921,
3656,
12182,
921,
16,
509,
963,
13,
288,
3639,
333,
12,
2704,
2407,
12,
15150,
18,
82,
15670,
12,
1467,
16,
3656,
12182,
921,
13,
3631,
374,
16,
638,
16,
3656,
12182,
921,
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
] |
FileSystem fileSys = FileSystem.getNamed("local", conf); | FileSystem fileSys = FileSystem.getLocal(conf); | public void testPreadLocalFS() throws IOException { Configuration conf = new Configuration(); FileSystem fileSys = FileSystem.getNamed("local", conf); try { Path file1 = new Path("build/test/data", "preadtest.dat"); writeFile(fileSys, file1); pReadFile(fileSys, file1); cleanupFile(fileSys, file1); } finally { fileSys.close(); } } | 50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/ed2da6b550c672b8d6867b05791a98214d3f9c30/TestPread.java/clean/src/test/org/apache/hadoop/dfs/TestPread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
52,
896,
2042,
4931,
1435,
1216,
1860,
288,
565,
4659,
2195,
273,
394,
4659,
5621,
565,
10931,
585,
12712,
273,
10931,
18,
588,
2042,
12,
3923,
1769,
565,
775,
288,
1377,
2666,
585,
21,
273,
394,
2666,
2932,
3510,
19,
3813,
19,
892,
3113,
315,
84,
896,
3813,
18,
3404,
8863,
1377,
13286,
12,
768,
12712,
16,
585,
21,
1769,
1377,
293,
1994,
812,
12,
768,
12712,
16,
585,
21,
1769,
1377,
6686,
812,
12,
768,
12712,
16,
585,
21,
1769,
565,
289,
3095,
288,
1377,
585,
12712,
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,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1842,
52,
896,
2042,
4931,
1435,
1216,
1860,
288,
565,
4659,
2195,
273,
394,
4659,
5621,
565,
10931,
585,
12712,
273,
10931,
18,
588,
2042,
12,
3923,
1769,
565,
775,
288,
1377,
2666,
585,
21,
273,
394,
2666,
2932,
3510,
19,
3813,
19,
892,
3113,
315,
84,
896,
3813,
18,
3404,
8863,
1377,
13286,
12,
768,
12712,
16,
585,
21,
1769,
1377,
293,
1994,
812,
12,
768,
12712,
16,
585,
21,
1769,
1377,
6686,
812,
12,
768,
12712,
16,
585,
21,
1769,
565,
289,
3095,
288,
1377,
585,
12712,
18,
4412,
5621,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log.debug("Could not load option(ClassNotFound): " + optionName); | log.warn("Could not load option(ClassNotFound): " + optionName); | public static IDSOption buildOption(IDSRuleSignature signature, String optionName, String params, boolean initializeSettingsTime) { boolean flag = false; if(params.charAt(0) == '!') { flag = true; params = params.replaceFirst("!","").trim(); } if(params.charAt(0) == '\"' && params.charAt(params.length()-1) == '\"') params = params.substring(1,params.length()-1); IDSOption option = null; Class optionDefinition; Class[] threeArgsClass = new Class[] { IDSRuleSignature.class, String.class, Boolean.TYPE }; Object[] threeOptionArgs = new Object[] { signature, params, initializeSettingsTime }; Class[] twoArgsClass = new Class[] { IDSRuleSignature.class, String.class }; Object[] twoOptionArgs = new Object[] { signature, params }; Constructor optionConstructor; optionName = optionName.toLowerCase(); char ch = optionName.charAt(0); try { optionName = optionName.replaceFirst(""+ch,""+(char)(ch - 'a' + 'A')); } catch(PatternSyntaxException e) { log.error(e.getMessage()); } try { // First look for a three arg one, then the two arg one (since most don't care about // initializeSettingsTime). optionDefinition = Class.forName("com.metavize.tran.ids.options."+optionName+"Option"); try { optionConstructor = optionDefinition.getConstructor(threeArgsClass); option = (IDSOption) createObject(optionConstructor, threeOptionArgs); } catch (NoSuchMethodException e) { optionConstructor = optionDefinition.getConstructor(twoArgsClass); option = (IDSOption) createObject(optionConstructor, twoOptionArgs); } option.negationFlag = flag; } catch (ClassNotFoundException e) { log.debug("Could not load option(ClassNotFound): " + optionName); } catch (NoSuchMethodException e) { log.debug("Could not load option(NoSuchMethod): ", e); } return option; } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/4255c234ccee9fb730529fe04693f48546613675/IDSOption.java/clean/tran/ids/main/com/metavize/tran/ids/options/IDSOption.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1599,
55,
1895,
1361,
1895,
12,
19516,
2175,
5374,
3372,
16,
514,
21473,
16,
514,
859,
16,
4766,
3639,
1250,
4046,
2628,
950,
13,
288,
1082,
3639,
1250,
2982,
273,
629,
31,
3639,
309,
12,
2010,
18,
3001,
861,
12,
20,
13,
422,
15502,
13,
225,
288,
5411,
2982,
273,
638,
31,
5411,
859,
273,
859,
18,
2079,
3759,
2932,
5,
3113,
3660,
2934,
5290,
5621,
3639,
289,
3639,
309,
12,
2010,
18,
3001,
861,
12,
20,
13,
422,
2337,
5187,
597,
859,
18,
3001,
861,
12,
2010,
18,
2469,
1435,
17,
21,
13,
422,
2337,
5187,
13,
2398,
859,
273,
859,
18,
28023,
12,
21,
16,
2010,
18,
2469,
1435,
17,
21,
1769,
3639,
1599,
55,
1895,
1456,
273,
446,
31,
3639,
1659,
1456,
1852,
31,
3639,
1659,
8526,
8925,
2615,
797,
273,
394,
1659,
8526,
288,
1599,
55,
2175,
5374,
18,
1106,
16,
514,
18,
1106,
16,
3411,
18,
2399,
289,
31,
3639,
1033,
8526,
8925,
1895,
2615,
273,
394,
1033,
8526,
288,
3372,
16,
859,
16,
4046,
2628,
950,
289,
31,
3639,
1659,
8526,
2795,
2615,
797,
273,
394,
1659,
8526,
288,
1599,
55,
2175,
5374,
18,
1106,
16,
514,
18,
1106,
289,
31,
3639,
1033,
8526,
2795,
1895,
2615,
273,
394,
1033,
8526,
288,
3372,
16,
859,
289,
31,
3639,
11417,
1456,
6293,
31,
1875,
3639,
21473,
273,
21473,
18,
869,
5630,
5621,
3639,
1149,
462,
273,
21473,
18,
3001,
861,
12,
20,
1769,
3639,
775,
288,
5411,
21473,
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,
377,
1071,
760,
1599,
55,
1895,
1361,
1895,
12,
19516,
2175,
5374,
3372,
16,
514,
21473,
16,
514,
859,
16,
4766,
3639,
1250,
4046,
2628,
950,
13,
288,
1082,
3639,
1250,
2982,
273,
629,
31,
3639,
309,
12,
2010,
18,
3001,
861,
12,
20,
13,
422,
15502,
13,
225,
288,
5411,
2982,
273,
638,
31,
5411,
859,
273,
859,
18,
2079,
3759,
2932,
5,
3113,
3660,
2934,
5290,
5621,
3639,
289,
3639,
309,
12,
2010,
18,
3001,
861,
12,
20,
13,
422,
2337,
5187,
597,
859,
18,
3001,
861,
12,
2010,
18,
2469,
1435,
17,
21,
13,
422,
2337,
5187,
13,
2398,
859,
273,
859,
18,
28023,
12,
21,
16,
2010,
18,
2469,
1435,
17,
21,
1769,
3639,
1599,
2
] |
return new OrNode(cond1(left, 1), cond1(right, 1)); | return new OrNode(cond(left), cond(right)); | public Node logop(int type, Node left, Node right) { value_expr(left); switch (type) { case Constants.NODE_AND : return new AndNode(cond1(left, 1), cond1(right, 1)); case Constants.NODE_OR : return new OrNode(cond1(left, 1), cond1(right, 1)); default : throw new RuntimeException("[BUG] ParserHelper#logop: Nodetype=" + type); } // return nf.newDefaultNode(type, cond1(left, 1), cond1(right, 1), null); } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/9f6d418b0c7d9027a0d80f0c8a2a854790ba53aa/ParserHelper.java/buggy/org/jruby/parser/ParserHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
613,
556,
12,
474,
618,
16,
2029,
2002,
16,
2029,
2145,
13,
288,
3639,
460,
67,
8638,
12,
4482,
1769,
3639,
1620,
261,
723,
13,
288,
5411,
648,
5245,
18,
8744,
67,
4307,
294,
7734,
327,
394,
7835,
907,
12,
10013,
21,
12,
4482,
16,
404,
3631,
6941,
21,
12,
4083,
16,
404,
10019,
5411,
648,
5245,
18,
8744,
67,
916,
294,
7734,
327,
394,
2965,
907,
12,
10013,
12,
4482,
3631,
6941,
12,
4083,
10019,
5411,
805,
294,
7734,
604,
394,
3235,
2932,
63,
4827,
65,
6783,
2276,
7,
1330,
556,
30,
423,
369,
5872,
1546,
397,
618,
1769,
3639,
289,
3639,
368,
327,
13958,
18,
2704,
1868,
907,
12,
723,
16,
6941,
21,
12,
4482,
16,
404,
3631,
6941,
21,
12,
4083,
16,
404,
3631,
446,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
613,
556,
12,
474,
618,
16,
2029,
2002,
16,
2029,
2145,
13,
288,
3639,
460,
67,
8638,
12,
4482,
1769,
3639,
1620,
261,
723,
13,
288,
5411,
648,
5245,
18,
8744,
67,
4307,
294,
7734,
327,
394,
7835,
907,
12,
10013,
21,
12,
4482,
16,
404,
3631,
6941,
21,
12,
4083,
16,
404,
10019,
5411,
648,
5245,
18,
8744,
67,
916,
294,
7734,
327,
394,
2965,
907,
12,
10013,
12,
4482,
3631,
6941,
12,
4083,
10019,
5411,
805,
294,
7734,
604,
394,
3235,
2932,
63,
4827,
65,
6783,
2276,
7,
1330,
556,
30,
423,
369,
5872,
1546,
397,
618,
1769,
3639,
289,
3639,
368,
327,
13958,
18,
2704,
1868,
907,
12,
723,
16,
6941,
21,
12,
2
] |
if (values.length != mqr.values.length) return false; | if (values.length != mqr.values.length) { return false; } | public boolean equals(Object o) { if (!(o instanceof MarkerQueryResult)) return false; if (o == this) return true; MarkerQueryResult mqr = (MarkerQueryResult) o; if (values.length != mqr.values.length) return false; for (int i = 0; i < values.length; i++) { if (!(values[i].equals(mqr.values[i]))) return false; } return true; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/MarkerQueryResult.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerQueryResult.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
921,
320,
13,
288,
3639,
309,
16051,
12,
83,
1276,
14742,
23583,
3719,
5411,
327,
629,
31,
3639,
309,
261,
83,
422,
333,
13,
5411,
327,
638,
31,
3639,
14742,
23583,
18327,
86,
273,
261,
7078,
23583,
13,
320,
31,
3639,
309,
261,
2372,
18,
2469,
480,
18327,
86,
18,
2372,
18,
2469,
13,
5411,
327,
629,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
924,
18,
2469,
31,
277,
27245,
288,
5411,
309,
16051,
12,
2372,
63,
77,
8009,
14963,
12,
11636,
86,
18,
2372,
63,
77,
65,
20349,
7734,
327,
629,
31,
3639,
289,
3639,
327,
638,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
921,
320,
13,
288,
3639,
309,
16051,
12,
83,
1276,
14742,
23583,
3719,
5411,
327,
629,
31,
3639,
309,
261,
83,
422,
333,
13,
5411,
327,
638,
31,
3639,
14742,
23583,
18327,
86,
273,
261,
7078,
23583,
13,
320,
31,
3639,
309,
261,
2372,
18,
2469,
480,
18327,
86,
18,
2372,
18,
2469,
13,
5411,
327,
629,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
924,
18,
2469,
31,
277,
27245,
288,
5411,
309,
16051,
12,
2372,
63,
77,
8009,
14963,
12,
11636,
86,
18,
2372,
63,
77,
65,
20349,
7734,
327,
629,
31,
3639,
289,
3639,
327,
638,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
summary = CCompletionContributorManager.getDefault().getMatchingFunctions(context, prefix); | summary = CHelpProviderManager.getDefault().getMatchingFunctions(context, prefix); | private void addProposalsFromCompletionContributors(IASTCompletionNode completionNode, List completions) { if(completionNode == null) return; String prefix = completionNode.getCompletionPrefix(); int offset = fCurrentOffset - prefix.length(); int length = prefix.length(); // calling functions should happen only within the context of a code body if( (completionNode.getCompletionContext() != IASTCompletionNode.CompletionKind.SINGLE_NAME_REFERENCE) && (completionNode.getCompletionContext() != IASTCompletionNode.CompletionKind.SINGLE_NAME_REFERENCE)) return; IFunctionSummary[] summary; ICCompletionInvocationContext context = new ICCompletionInvocationContext() { public IProject getProject() { return fCurrentSourceUnit.getCProject().getProject(); } public ITranslationUnit getTranslationUnit() { return fCurrentSourceUnit; } }; summary = CCompletionContributorManager.getDefault().getMatchingFunctions(context, prefix); if(summary == null) { return; } for (int i = 0; i < summary.length; i++) { String fname = summary[i].getName() + "()"; //$NON-NLS-1$ String fdesc = summary[i].getDescription(); IFunctionSummary.IFunctionPrototypeSummary fproto = summary[i].getPrototype(); String fargs = fproto.getArguments(); CCompletionProposal proposal; proposal = new CCompletionProposal(fname, offset, length, CPluginImages.get(CPluginImages.IMG_OBJS_FUNCTION), fproto.getPrototypeString(true), 2, fTextViewer); if(fdesc != null) { proposal.setAdditionalProposalInfo(fdesc); } if(fargs != null && fargs.length() > 0) { proposal.setContextInformation(new ContextInformation(fname, fargs)); } completions.add(proposal); } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/08da96c3923b836a11fdb876d06e779517865c3a/CCompletionProcessor.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
626,
22536,
1265,
11238,
442,
665,
13595,
12,
45,
9053,
11238,
907,
8364,
907,
16,
987,
23738,
13,
288,
202,
202,
430,
12,
11469,
907,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
780,
1633,
273,
8364,
907,
18,
588,
11238,
2244,
5621,
202,
202,
474,
1384,
273,
284,
3935,
2335,
300,
1633,
18,
2469,
5621,
202,
202,
474,
769,
273,
1633,
18,
2469,
5621,
9506,
202,
759,
4440,
4186,
1410,
5865,
1338,
3470,
326,
819,
434,
279,
981,
1417,
202,
202,
430,
12,
565,
261,
11469,
907,
18,
588,
11238,
1042,
1435,
480,
467,
9053,
11238,
907,
18,
11238,
5677,
18,
20184,
67,
1985,
67,
14617,
13,
1082,
202,
10,
10,
261,
11469,
907,
18,
588,
11238,
1042,
1435,
480,
467,
9053,
11238,
907,
18,
11238,
5677,
18,
20184,
67,
1985,
67,
14617,
3719,
1082,
202,
2463,
31,
9506,
202,
45,
2083,
4733,
8526,
4916,
31,
202,
202,
2871,
11238,
9267,
1042,
819,
273,
394,
26899,
11238,
9267,
1042,
1435,
288,
1082,
202,
482,
467,
4109,
11080,
1435,
288,
9506,
202,
2463,
284,
3935,
1830,
2802,
18,
588,
39,
4109,
7675,
588,
4109,
5621,
1082,
202,
97,
1082,
202,
482,
467,
6717,
2802,
23316,
2802,
1435,
288,
9506,
202,
2463,
284,
3935,
1830,
2802,
31,
1082,
202,
97,
1082,
202,
20451,
202,
202,
7687,
273,
385,
11238,
442,
19293,
1318,
18,
588,
1868,
7675,
588,
9517,
7503,
12,
2472,
16,
1633,
1769,
202,
202,
430,
12,
7687,
422,
446,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
626,
22536,
1265,
11238,
442,
665,
13595,
12,
45,
9053,
11238,
907,
8364,
907,
16,
987,
23738,
13,
288,
202,
202,
430,
12,
11469,
907,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
780,
1633,
273,
8364,
907,
18,
588,
11238,
2244,
5621,
202,
202,
474,
1384,
273,
284,
3935,
2335,
300,
1633,
18,
2469,
5621,
202,
202,
474,
769,
273,
1633,
18,
2469,
5621,
9506,
202,
759,
4440,
4186,
1410,
5865,
1338,
3470,
326,
819,
434,
279,
981,
1417,
202,
202,
430,
12,
565,
261,
11469,
907,
18,
588,
11238,
1042,
1435,
480,
467,
9053,
11238,
907,
18,
11238,
5677,
18,
20184,
67,
1985,
67,
14617,
13,
1082,
202,
10,
10,
261,
2
] |
data = new int[seq.size()]; addAll(seq); | data = empty; | public S32Vector(Sequence seq) { data = new int[seq.size()]; addAll(seq); } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/a6832beb1c7e39094e94e80c395d319bdbacd189/S32Vector.java/buggy/gnu/lists/S32Vector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
348,
1578,
5018,
12,
4021,
3833,
13,
225,
288,
565,
501,
273,
394,
509,
63,
5436,
18,
1467,
1435,
15533,
565,
5428,
12,
5436,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
348,
1578,
5018,
12,
4021,
3833,
13,
225,
288,
565,
501,
273,
394,
509,
63,
5436,
18,
1467,
1435,
15533,
565,
5428,
12,
5436,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.