rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
Asserts.isTrue(!member.isNil(), "uninitialized struct");
|
assert !member.isNil() : "uninitialized struct";
|
public IRubyObject get() { String name = getRuntime().getCurrentFrame().getLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { return values[i]; } } throw new NameError(getRuntime(), name + " is not struct member"); }
|
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/RubyStruct.java/clean/src/org/jruby/RubyStruct.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
336,
1435,
288,
3639,
514,
508,
273,
18814,
7675,
588,
3935,
3219,
7675,
588,
3024,
2622,
5621,
3639,
19817,
1076,
3140,
273,
261,
54,
10340,
1076,
13,
3694,
3092,
12,
1106,
951,
9334,
10425,
5990,
972,
8863,
3639,
1815,
401,
5990,
18,
291,
12616,
1435,
294,
315,
318,
13227,
1958,
14432,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3140,
18,
588,
1782,
5621,
277,
27245,
288,
5411,
309,
261,
5990,
18,
4099,
12,
77,
2934,
345,
5335,
7675,
14963,
12,
529,
3719,
288,
7734,
327,
924,
63,
77,
15533,
5411,
289,
3639,
289,
3639,
604,
394,
25473,
12,
588,
5576,
9334,
508,
397,
315,
353,
486,
1958,
3140,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
336,
1435,
288,
3639,
514,
508,
273,
18814,
7675,
588,
3935,
3219,
7675,
588,
3024,
2622,
5621,
3639,
19817,
1076,
3140,
273,
261,
54,
10340,
1076,
13,
3694,
3092,
12,
1106,
951,
9334,
10425,
5990,
972,
8863,
3639,
1815,
401,
5990,
18,
291,
12616,
1435,
294,
315,
318,
13227,
1958,
14432,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3140,
18,
588,
1782,
5621,
277,
27245,
288,
5411,
309,
261,
5990,
18,
4099,
12,
77,
2934,
345,
5335,
7675,
14963,
12,
529,
3719,
288,
7734,
327,
924,
63,
77,
15533,
5411,
289,
3639,
289,
3639,
604,
394,
25473,
12,
588,
5576,
9334,
508,
397,
315,
353,
486,
1958,
3140,
8863,
565,
289,
2
] |
assertEquals( 6, props.getProperties( ).size( ) );
|
assertEquals( 5, props.getProperties( ).size( ) );
|
public void testROMDataSourceToODADataSource( ) throws Exception { openDesign( INPUT_FILE ); OdaDataSourceHandle sourceHandle = (OdaDataSourceHandle) designHandle .findDataSource( "myDataSource1" ); //$NON-NLS-1$ DataSourceDesign sourceDesign = new ModelOdaAdapter( ) .createDataSourceDesign( sourceHandle ); assertEquals( "myDataSource1", sourceDesign.getName( ) ); //$NON-NLS-1$ assertEquals( DATA_SOURCE_EXTENSIONID, sourceDesign.getOdaExtensionId( ) ); assertEquals( "My Data Source One", sourceDesign.getDisplayName( ) ); //$NON-NLS-1$ Properties props = sourceDesign.getPublicProperties( ); assertEquals( 6, props.getProperties( ).size( ) ); assertEquals( "com.mysql.jdbc.Driver", props //$NON-NLS-1$ .findProperty( "odaDriverClass" ).getValue( ) ); //$NON-NLS-1$ assertEquals( "jdbc:mysql://localhost:3306/birt", props //$NON-NLS-1$ .findProperty( "odaURL" ).getValue( ) ); //$NON-NLS-1$ assertNull( props.findProperty( "odaDataSource" ).getValue( ) ); //$NON-NLS-1$ assertNull( props.findProperty( "odaUser" ).getValue( ) ); //$NON-NLS-1$ assertNull( props.findProperty( "odaPassword" ) //$NON-NLS-1$ .getValue( ) ); props = sourceDesign.getPrivateProperties( ); assertEquals( 2, props.getProperties( ).size( ) ); assertEquals( "User", props.findProperty( "odaUser" ).getValue( ) ); //$NON-NLS-1$ //$NON-NLS-2$ assertEquals( "Password", props.findProperty( "odaPassword" ) //$NON-NLS-1$ //$NON-NLS-2$ .getValue( ) ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/9075331a49797cee3346b2845027cb12603706a3/OdaDataSourceAdapterTest.java/buggy/model/org.eclipse.birt.report.model.adapter.oda.tests/test/org/eclipse/birt/report/model/adapter/oda/api/OdaDataSourceAdapterTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3942,
8597,
774,
1212,
37,
8597,
12,
262,
1216,
1185,
202,
95,
202,
202,
3190,
15478,
12,
12943,
67,
3776,
11272,
202,
202,
51,
2414,
8597,
3259,
1084,
3259,
273,
261,
51,
2414,
8597,
3259,
13,
8281,
3259,
9506,
202,
18,
4720,
8597,
12,
315,
4811,
8597,
21,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
8597,
15478,
1084,
15478,
273,
394,
3164,
51,
2414,
4216,
12,
262,
9506,
202,
18,
2640,
8597,
15478,
12,
1084,
3259,
11272,
202,
202,
11231,
8867,
12,
315,
4811,
8597,
21,
3113,
1084,
15478,
18,
17994,
12,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
11231,
8867,
12,
8730,
67,
6537,
67,
12796,
734,
16,
1084,
15478,
18,
588,
51,
2414,
3625,
548,
12,
262,
11272,
202,
202,
11231,
8867,
12,
315,
12062,
1910,
4998,
6942,
3113,
1084,
15478,
18,
588,
20524,
12,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2297,
3458,
273,
1084,
15478,
18,
588,
4782,
2297,
12,
11272,
202,
202,
11231,
8867,
12,
1666,
16,
3458,
18,
588,
2297,
12,
262,
18,
1467,
12,
262,
11272,
202,
202,
11231,
8867,
12,
315,
832,
18,
12527,
18,
24687,
18,
4668,
3113,
3458,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
18,
4720,
1396,
12,
315,
21319,
4668,
797,
6,
262,
18,
24805,
12,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
11231,
8867,
12,
315,
24687,
30,
12527,
2207,
13014,
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,
3942,
8597,
774,
1212,
37,
8597,
12,
262,
1216,
1185,
202,
95,
202,
202,
3190,
15478,
12,
12943,
67,
3776,
11272,
202,
202,
51,
2414,
8597,
3259,
1084,
3259,
273,
261,
51,
2414,
8597,
3259,
13,
8281,
3259,
9506,
202,
18,
4720,
8597,
12,
315,
4811,
8597,
21,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
8597,
15478,
1084,
15478,
273,
394,
3164,
51,
2414,
4216,
12,
262,
9506,
202,
18,
2640,
8597,
15478,
12,
1084,
3259,
11272,
202,
202,
11231,
8867,
12,
315,
4811,
8597,
21,
3113,
1084,
15478,
18,
17994,
12,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
11231,
8867,
12,
8730,
67,
6537,
67,
2
] |
public void eUnset( EStructuralFeature eFeature )
|
public void eUnset( int featureID )
|
public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case ComponentPackage.CURVE_FITTING__LINE_ATTRIBUTES : setLineAttributes( (LineAttributes) null ); return; case ComponentPackage.CURVE_FITTING__LABEL : setLabel( (Label) null ); return; case ComponentPackage.CURVE_FITTING__LABEL_ANCHOR : unsetLabelAnchor( ); return; } eDynamicUnset( eFeature ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/CurveFittingImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/CurveFittingImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
5435,
2261,
18,
7509,
3412,
67,
42,
30972,
1360,
972,
5997,
67,
22308,
294,
9506,
202,
542,
1670,
2498,
12,
261,
1670,
2498,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
5435,
2261,
18,
7509,
3412,
67,
42,
30972,
1360,
972,
13545,
294,
9506,
202,
542,
2224,
12,
261,
2224,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
5435,
2261,
18,
7509,
3412,
67,
42,
30972,
1360,
972,
13545,
67,
20360,
916,
294,
9506,
202,
18579,
2224,
11605,
12,
11272,
9506,
202,
2463,
31,
202,
202,
97,
202,
202,
73,
9791,
13250,
12,
425,
4595,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
5435,
2261,
18,
7509,
3412,
67,
42,
30972,
1360,
972,
5997,
67,
22308,
294,
9506,
202,
542,
1670,
2498,
12,
261,
1670,
2498,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
5435,
2261,
18,
7509,
3412,
67,
42,
30972,
1360,
972,
13545,
294,
9506,
202,
542,
2224,
12,
261,
2224,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
5435,
2261,
18,
7509,
3412,
67,
42,
30972,
1360,
972,
13545,
67,
20360,
916,
294,
9506,
202,
18579,
2224,
11605,
12,
11272,
9506,
2
] |
Object curValue = data[id * ID_MULT + VALUE_SHIFT];
|
Object[] data = ensureIdData(); Object curValue = data[id - 1];
|
protected Object cacheIdValue(int id, Object value) { Object[] data = idMapData; synchronized (this) { Object curValue = data[id * ID_MULT + VALUE_SHIFT]; if (curValue == null) { data[id * ID_MULT + VALUE_SHIFT] = (value != null) ? value : NULL_TAG; } else { value = curValue; } } return value; }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/d5c6a2fda4600410fcf91dde4a3709ea9429783f/IdScriptable.java/clean/src/org/mozilla/javascript/IdScriptable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
21367,
620,
12,
474,
612,
16,
1033,
460,
13,
288,
6647,
1033,
8526,
501,
273,
612,
863,
751,
31,
3639,
3852,
261,
2211,
13,
288,
5411,
1033,
8526,
501,
273,
3387,
548,
751,
5621,
1033,
662,
620,
273,
501,
63,
350,
300,
404,
15533,
5411,
309,
261,
1397,
620,
422,
446,
13,
288,
7734,
501,
63,
350,
380,
1599,
67,
12845,
397,
5848,
67,
23191,
65,
5397,
273,
261,
1132,
480,
446,
13,
692,
460,
294,
3206,
67,
7927,
31,
5411,
289,
5411,
469,
288,
7734,
460,
273,
662,
620,
31,
5411,
289,
3639,
289,
3639,
327,
460,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
21367,
620,
12,
474,
612,
16,
1033,
460,
13,
288,
6647,
1033,
8526,
501,
273,
612,
863,
751,
31,
3639,
3852,
261,
2211,
13,
288,
5411,
1033,
8526,
501,
273,
3387,
548,
751,
5621,
1033,
662,
620,
273,
501,
63,
350,
300,
404,
15533,
5411,
309,
261,
1397,
620,
422,
446,
13,
288,
7734,
501,
63,
350,
380,
1599,
67,
12845,
397,
5848,
67,
23191,
65,
5397,
273,
261,
1132,
480,
446,
13,
692,
460,
294,
3206,
67,
7927,
31,
5411,
289,
5411,
469,
288,
7734,
460,
273,
662,
620,
31,
5411,
289,
3639,
289,
3639,
327,
460,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
currentIssue.setPriority("P3");
|
currentIssue.setPriority(Priority.P3);
|
public static List loadIssues() { List issues = new ArrayList(); Issue currentIssue = null; Description description = null; currentIssue = new Issue(); currentIssue.setId(new Integer(1)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("TASK"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Improve filter performance upon list change"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The current implementation of filtering uses a N*N*M algorithm to re-filter when the list \nchanges, for M changes on a list of size N.\n\nIt is necessary to improve this runtime by using more appropriate data structures inside \nthe AbstractFilterList."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Created an attachment (id=1)\nscreenshot from profiler\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("In creating a test case I found that the filter performance can be really bad in certain situations.\n\nI think this case can be justification for updating the AbstractFilterList to use a SparseList instead of the \ncurrent arraylist hack."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have changed the AbstractFilterList to use SparseList instead of the hack array data structure. The \nresults are impressive in some cases only and not noticable in other cases. This change will cause \nchange events to be orders of magnitude faster, while get() events will be slightly slower.\n\nHere is the results in elapsed time from two tests I ran, before and after the fix:\nCaseInsensitiveFilterListTest\nbefore: 3.9s\nafter: 2.8s\n\nMultipleListenersTest\nbefore: 162.9s\nafter: 19.2s"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(2)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Filter regex fails with special characters"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The current filter code for CaseInsensitiveFilterList fails to work when the filter text \ncontains regular-expression characters such as dot.\n\nFix this to handle special characters as they should be."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Fixed in CVS. Added a method getMatcher() that constructs a matcher using the source \nstring"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(3)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("EventListIterator problem with remove() method"); description = new Description(); description.setWho("ildella"); description.setWhen(null); description.setText("This code doesn't seem to work properly: \n(variable \"songs\" is a BasicEventList)\n\n public int cleanFromMissingFiles() {\n Iterator it = songs.iterator();\n while (it.hasNext()) {\n MP3Song song = (MP3Song) it.next();\n File f = new File(song.getPath());\n if (!f.exists())\n it.remove(); \n }\n }\n\nif there are 2 items to remove, after removing the first, the iterator return\nfalse at the next call to hasNext()\nif, for example, there are 8 items to remove, the hasNext() return false after\nthe 4th remove() calls. \nAnd so on...\n\nthe rest of the code is right, in fact, with this code:\n\n public int cleanFromMissingFiles() {\n List list = new LinkedList();\n list.addAll(songs);\n Iterator it = list.iterator();\n while (it.hasNext()) {\n MP3Song song = (MP3Song) it.next();\n File f = new File(song.getPath());\n if (!f.exists())\n it.remove();\n }\n songs.clear();\n songs.addAll(list);\n }\n\neverything is all right.\n\nhope this can help.\nbye."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This was a defect in my iterator code.\n\nThe iterator contains two indexes - the index of the last item viewed and the index of the \nnext item to view. When a remove occurred, only the last item viewed index was updated. \n\nThe next item to view index needed to be shifted down by one whenever a remove would \ncause the list's indicies to shift down by one."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(4)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Error in setting header value in TableComparatorSelector"); description = new Description(); description.setWho("ildella"); description.setWhen(null); description.setText("Maybe there is a problem in TableComparatorSelector.\n\nI set tableHeader.setReorderingAllowed(true) on a table which has its own\nTableComparatorSelector. \nI move a column. After moving, the index of the column is changed, but the\nmodelIndex remains unchanged. \nThis is wel handled in method mouseClicked with trhis code \n\n int viewColumn = columnModel.getColumnIndexAtX(e.getX()); \n int column = table.convertColumnIndexToModel(viewColumn); \n\nthe last method, which rewrite the table header of all the columns, has the\nfollowing code:\n\n // and set the name of the table header to the current comparator\n for(int c = 0; c < table.getColumnCount(); c++) {\n if(c == column) { \n table.getColumnModel().getColumn(column).setHeaderValue(sortedHeader);\n } else {\n String header = listTable.getTableFormat().getFieldName(c);\n table.getColumnModel().getColumn(c).setHeaderValue(header);\n }\n }\n\nthis method doesn't seem to handle difference between column index and model index.\nIn my app, when I move a column and then click on the header for resorting the\ntable, all the header value happen to move from their position. And this seems\nto be caused by that portion of code wich, I guess, has to use the view index\nand not the model index of the column. \n\nIf I am right, that code has to handle difference between index and model index.\nIf I am wrong, there are different way to handle this thing?"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The problem looks legit. In most of my use of ListTable I use only a single column so \nmultiple columns is not well exercised!\n\nI'll try to reproduce the problem and look into a fix."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've fixed the bug and done preliminary testing to verify that the fix worked."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(5)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Speed up SparseLists"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The SparseListNode's height() method slow. More formally, this method is potentially O(n) \nand it should be optimized to be O(1).\n\nThis is insignificant in small lists but huge in large lists. In my brief profiling I discovered \nthat height() can consume 75% of the access time for large lists."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have tuned SparseLists to use a better height() method. The height is now stored \nin the node and recalculated whenever it may have changed (as a consequence of \ninsert or remove).\n\nThe performance gains are fantastic."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(6)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("INVALID"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("MutationList return \"parent\" source instead of its own"); description = new Description(); description.setWho("ildella"); description.setWhen(null); description.setText("MutationList getRootList was\n \n public EventList getRootList() {\n return source;\n }\n\nas of revision 1.3 on CVS.\n\nIn revision 1.4, it is:\n\n /**\n * For implementing the EventList interface. This returns the root of the\n * source list, or <code>this</code> if this list has no source.\n */\n /*\n public EventList getRootList() {\n if(source == this) return this;\n return source.getRootList();\n }\n\nand this broke all my code and my coomprehension of Glazed Lists.\n\nIs this correct?"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Forgive me for breaking your code. The newest revision in CVS is correct and the previous \nrevision was a bug.\n\nIn your own code when you need the source list, you are supposed to use 'source', which \nis a protected member of the MutationList class. If you change your calls to 'getRootList()' \nwith 'source', your code should continue to work as it is supposed to.\n\n\nHere's why I made the change:\n\nGlazed Lists needs to be thread-safe. Currently I have made every effort to make it totally \nthread-safe. To accomplish thread safety I need to synchronize threads while they are \nperforming updates to the lists. In my original implementation, each list would be coded \nlike this:\n public synchronized void notifyListUpdated()\n public synchronized void get()\nUnfortunately this strategy can fail for thread safety in deadlock because the Swing thread \ncan be doing a get() while the query thread is doing an update. The get() call propagates \nfrom the table to the filter to the sorted list and eventually to the source list, holding all \nthe locks as it works. The notifyListUpdated does the opposite, starting at the source list \nand propagating through the sorted list, the filter and finally the table, attempting to \nacquire locks as it goes also. A deadlock is the inevitable result because the Swing thread \nis waiting for the query thread to release its lock on the source list while the query thread \nwaits on the Swing thread to release its lock on the table.\n\nSo my naive solution failed and I realized that I needed to synchronize all lists with the \nsame lock. The obvious lock to choose is the root list - the absolute source list in the tree. \nThis is the list that all of the other lists depend on.\n\nAs you walk through the code, you will see that I protect against thread problems with\n synchronized(getRootList()) {\n }\n\nBut I still access the parent list with 'source'. For example, the following is cut-and-pasted \nfrom SortedList:\n\n public void setComparator(Comparator comparator) {\n synchronized(getRootList()) {\n // create the sorted list with a simple comparator\n sorted = new IndexedTree(new IndexedTreeNodeComparator(comparator));\n // create a list which knows the offsets of the indexes\n unsorted = new IndexedTree();\n\n // we're done if there's no elements in the source list\n if(source.size() == 0) return;\n\n // add all elements in the source list, in order\n for(int i = 0; i < source.size(); i++) {\n IndexedTreeNode unsortedNode = unsorted.addByNode(i, this);\n insertByUnsortedNode(unsortedNode);\n }\n\n // notification about the big change\n updates.beginAtomicChange();\n updates.appendChange(0, size() - 1, ListChangeBlock.DELETE);\n updates.appendChange(0, size() - 1, ListChangeBlock.INSERT);\n updates.commitAtomicChange();\n }\n }\n\nThe second line is synchronized on getRootList(), but all of the calls to size() are directly \non source.\n\nIn summary\n\nWhenever you are synchronizing, use\n synchronized(getRootList())\nbut for everything else use\n source"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(7)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("CaseInsensitiveFilterList non-\"live\" mode"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("If you have a CaseInsensitiveFilterList with many entries and you filter for \"foo\", then the \nlist will be filtered three times! Because the list is \"live\" it filters once after the user types \n\"f\", another time after they have typed \"fo\" and finally a third time after they have \ncompleted \"foo\".\n\nThis is great when filtering is very fast and the list is short but it leads to unnecessary \nperformance lags when the list is large and filtering isn't as fast.\n\nThe CaseInsensitiveFilterList should have a non-\"live\" mode where the list is only filtered \nafter the user presses the Enter key in the search box. There could also be a \"filter\" \nbutton to activate the filter after the filter text has been entered."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've added some new methods to CaseInsensitiveFilterList:\n\ngetActionListener()\nsetLive(boolean)\n\nThe ActionListener can be used to trigger a refilter on a button press. \nThe list also will always refilter when ENTER is pressed in the filter edit field, whether in live mode or \nnot.\n\nFinally the DocumentListener has been moved to an inner class which is a 'safer' place for it."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(8)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("ListChangeSequence hasNext() fails when there's no next"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("There are two things that happen when a list changes:\n - the ListChangeEvent is populated with the change information\n - the notifyListChanges() method is called on all listeners\n\nSometimes as a consequence of multi-threading, multiple change events are processed in \na single notifyListChanges() methods. When the notifyListChanges() is called on a different \nthread than where the changes were created, that method is required to verify that there \nare changes left to be processed using:\n listChanges.hasNext()\n\nThis is performed by the ListTable because it receives all events on the SwingThread via \nListChangeListenerEventThreadProxy:\n public void notifyListChanges(ListChangeEvent listChanges) {\n ...\n // when all events hae already been processed by clearing the event queue\n if(!listChanges.hasNext()) {\n return;\n ...\n\nUnfortunately the listChanges.hasNext() method is broken, and throws an \nIndexOutOfBoundsException when there are no more changes:\njava.lang.IndexOutOfBoundsException: Index: 43, Size: 43\n at java.util.ArrayList.RangeCheck(ArrayList.java:507)\n at java.util.ArrayList.get(ArrayList.java:324)\n at \ncom.odellengineeringltd.glazedlists.event.ListChangeSequence.getBlockCount(ListChangeSe\nquence.java:181)\n at \ncom.odellengineeringltd.glazedlists.event.ListChangeEvent.hasNext(ListChangeEvent.java:\n124)\n at com.odellengineeringltd.glazedlists.jtable.ListTable.notifyListChanges(ListTable.java:\n158)\n at \ncom.odellengineeringltd.glazedlists.event.ListChangeListenerEventThreadProxy.run(ListCha\nngeListenerEventThreadProxy.java:54)\n at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)\n at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)\n at \njava.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)\n at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:\n151)\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)\n at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The ListChangeEvent now checks with the target ListChangeSequence to verify that it has \nnot already reached the last atomic change in the set.\n\nThis should fix the problem as it has in my preliminary tests."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(9)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("fails to report selection event"); description = new Description(); description.setWho("ildella"); description.setWhen(null); description.setText("The problem is in this code:\n\nclass ListTable \n...\n\n public void notifyListChanges(ListChangeEvent listChanges) {\n // for avoiding extra selection events\n ignoreSelectionEvents = true;\n // when all events hae already been processed by clearing the event queue\n if(!listChanges.hasNext()) {\n return;\n // notify all changes simultaneously\n }\n\nit is needed to add this line\n\n ignoreSelectionEvents = false;\n\nbefore that return. Without that line, it could happen that\nignoreSelectionEvents remains false and selection event are no more propagated."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The bug has been fixed.\n\nThe bug report was very useful in helping me fix this bug quickly!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(10)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("IndexedTree insert and remove are too slow"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The height() method on the IndexedTreeNode is not optimized and prevents the \nIndexedTreeNode from functioning efficiently. The method has O(n) runtime while proper \noptimization should yield O(log n) runtime.\n\nThis is because the height() method does not cache the height of the values at the nodes.\n\nFix the height as done for issue #5 with SparseListNode and the IndexedTree will perform \nmuch more efficiently."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have resolved the speed issue with the IndexedTreeNode.\n\nThis will impact the SortedList and cause it to perform faster sorts!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(11)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Expose prepareRenderer from JTable into ListTable class"); description = new Description(); description.setWho("philblais"); description.setWhen(null); description.setText("I like having the ability to alternate colors on each of the rows of my tables so \nthat they look more like a ledger. Since ListTable creates the JTable object it \nmakes it impossible to use this approach to render this.\n\nI propose to expose this method into ListTable so that it can be overriden if \nnecessary."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("philblais - Glazed Lists already has a place where you can configure your table and \nprepare your renderers as necessary.\n\nYou will have implemented the interface TableFormat which contains a method \nconfigureTable(). This method is called after the JTable has been created and its purpose is \nto allow you to modify the table's renderers to your liking:\n\n /**\n * Allow the record model to customize the table to its liking\n * This method is called after the table is created so that the\n * record can ensure the table behaves appropriately. This may\n * include setting the editors and renderers for the table.\n */\n public void configureTable(JTable table);\n\nPlease call prepareRenderer() from this configureTable method and I hope you will get \nyour desired results.\n\nIf my understanding of your problem is incorrect please explain why calling \nprepareRenderer() from your configureTable() is insufficient and I will make quick \nprogress at getting it working for you.\n\nGood luck with your project!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("On 30-Jan-04, at 10:54 AM, Philippe Blais wrote:\n\nHi,\n\nThe way it now it won't work. The JTable's prepareRenderer method is called\ndynamically with the cell's renderer, the row index and the column index.\nIn my project I use the row index to decide what kind of background I want\nfor all the renderers on the row.\n\nI made a quick and dirty mod to ListTable for now since I couldn't simply\nsubclass it, my mod looks as follows in the constructWidgets method:\n\n--\ntable = new JTable(this)\n{\n public Component prepareRenderer(TableCellRenderer renderer, int\nrowIndex,int colIndex)\n {\n Component c = super.prepareRenderer(renderer, \n rowIndex, colIndex);\n if (rowIndex % 2 == 0 && !isCellSelected(rowIndex,\ncolIndex)){\n if (alternateShadingColor!=null) {\n c.setBackground(alternateShadingColor);\n } else {\n c.setBackground(getBackground());\n }\n } else {\n c.setBackground(getBackground());\n }\n \n return c;\n}\n--\n\nOn simple way to allow extending ListTable for this functionality would be\nto delegate the creation of the table to a protected method of ListTable\nthat can be overridden by whoever wants to extend ListTable.\n\nMy suggestion is to change the \"new JTable(this)\" call to\n\"createTable(this)\" where the method would look like:\n\nprotected JTable createTable(TableModel model) {\n return new JTable(model);\n}\n\nThis way I would have the ability to use my own extended JTable.\n\nThanks,\n\nPhil Blais\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Phil Blais - \n\nI have written a fix for your problem and I hope that you find it sufficient! \n\nBut first, an explanation as to why I have not fixed your problem the way you have \nsuggested. The problem with allowing the user to extend JTable is that it prevents me \nfrom extending JTable in the future.\n\nMy solution involves a custom renderer called StripedTableCellRenderer which I have \nadded to the com.odellengineeringltd.glazedlists.jtable package. In your TableCell class \nyou will need to set each column's renderer to use this StripedTableCellRenderer:\n\npublic void configureTable(JTable table) {\n Color oddColor = new java.awt.Color(234, 234, 234);\n Color evenColor = table.getBackground();\n StripedTableCellRenderer renderer = new StripedTableCellRenderer(oddColor, \nevenColor);\n for(int i = 0; i < getFieldCount(); i++) {\n table.getColumnModel().getColumn(i).setCellRenderer(renderer);\n }\n}\n\nThe StripedTableCellRenderer uses the default renderer from the table so classes like \nBoolean and Number should render correctly.\n\nIt is also possible to specify a base renderer to use. In this case the StripedRenderer will \nuse that renderer to do the initial drawing and then paint its own stripe onto the row.\n\nLet me know if this solution is still insufficient and I will work with you to resolve any \noutstanding problems."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(12)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Problem with ListTable.getSelected() ?"); description = new Description(); description.setWho("ildella"); description.setWhen(null); description.setText("Sometimes I receive this exception that seems to be connected to a problem in\ngetSelected() methods in ListTable.\n\njava.lang.IndexOutOfBoundsException: cannot get from tree of size 14 at 47\n at\ncom.odellengineeringltd.glazedlists.util.IndexedTreeNode.getNodeWithIndex(IndexedTreeNode.java:81)\n at\ncom.odellengineeringltd.glazedlists.util.IndexedTree.getNode(IndexedTree.java:55)\n at com.odellengineeringltd.glazedlists.SortedList.get(SortedList.java:228)\n at\ncom.odellengineeringltd.glazedlists.jtable.ListTable.getSelected(ListTable.java:227)\n at\nnet.della.mcube.outliner.OutlinersBuilder$2.filterMatches(OutlinersBuilder.java:77)\n at\nnet.della.mcube.util.CustomFilteredList.filterMatches(CustomFilteredList.java:38)\n at\ncom.odellengineeringltd.glazedlists.AbstractFilterList.notifyListChanges(AbstractFilterList.java:93)\n at\ncom.odellengineeringltd.glazedlists.event.ListChangeSequence.commitAtomicChange(ListChangeSequence.java:154)\n at net.della.mcube.util.QueryList.refresh(QueryList.java:110)\n at net.della.mcube.util.QueryList$RefreshTask.run(QueryList.java:127)\n at java.util.TimerThread.mainLoop(Timer.java:432)\n at java.util.TimerThread.run(Timer.java:382)"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This problem arises when the table selection is being accessed by a thread which is not \nthe event dispatch thread. When the table selection is being modified by the event \ndispatch thread and a second thread attempts to access the selection, it is natural for the \nsecond thread to see an inconsistent view of the selection. This inconsistent view can \ncause unrelated exceptions to show up in other parts of the system. \n\n\nI have come up with three potential solutions to this problem:\n\n1. Synchronize access to the table selection. The problem with this approach is that typical \naccess to the table selection is done by the event dispatch thread which does not require \nsynchronization. Therefore the synchronization will cause an unnecessary performance hit \nto typical use.\n\n2. Require that all access to the table selection be performed on the event dispatch \nthread. This is how things work currently. But as is demonstrated there are cases where \nother threads such as timer threads need to access the table selection. The work around \nfor this case is to use the SwingUtilities.invokeAndWait() method to schedule the selection \naccess on the event dispatch thread. The biggest problem with this approach is that it adds \ncomplexity to the ListTable class.\n\n3. Attempt to detect if the selection is currently being modified. This can be tested by \nwhether or not the selection has a consistent state. If the state is inconsistent simply \nreturn null as if there was no selection.\n\n\nI am trying to decide between solution two and solution three. Solution 2 will always \nreturn the correct value but it will also always take a long time when called by a thread \nwhich is not the event dispatch thread. Solution 3 will always return immediately but has \nthe potential for returning the wrong value when the selection is being modified.\n\nI will look through and continue to weight the pros and cons of each solution. Please let \nme know if you have any input which may help me make my decision."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have made the getSelected() method safe to call from threads which are not the event \ndispatch thread. To do this I have made the getSelected() method use a helper class which \nwill do the actual selection lookup on the event dispatch thread.\n\nIn implementing this solution I have been thinking that the ListTable class should not be \nconcerned with selection. Unfortunately I cannot remove selection from ListTable without \nbreaking existing code.\n\nIn the interim I am considering making the getSelected() method deprecated with clients \naccessing the SelectionList as an alternative. The problem with this solution is that like \ngetSelected(), the SelectionList is not safe to be used any thread but the event dispatch \nthread.\n\nI will continue to think about this problem. If anyone has any suggestions I am open for \ncomment."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(13)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("INVALID"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("ListChangeSequence grows unbounded"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The ListChangeSequence grows as more and more atomic changes are created. For a long-\nrunning Glazed Lists application the memory usage may become a serious performance \nproblem.\n\nThe ListChangeSequence should null out atomic changes when they are no longer in use \nand shift the array list when it grows too large."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I performed a thorough examination of the memory usage of Glazed Lists and the \napplication does not grow unbounded.\n\nThis can be verified in the code from the following lines that were cut-and-paste from \nListChangeSequence:\n\n // attempt to reclaim some changes for the change pool\n int oldestRequiredChange = atomicChanges.size(); \n for(int e = 0; e < listenerEvents.size(); e++) {\n ListChangeEvent listChangeEvent = (ListChangeEvent)listenerEvents.get(e);\n int eventOldestChange = listChangeEvent.getAtomicChangeCount();\n if(eventOldestChange < oldestRequiredChange) {\n oldestRequiredChange = eventOldestChange;\n }\n }\n // recycle every change that is no longer used\n for(int i = oldestChange; i < oldestRequiredChange; i++) {\n List recycledChanges = (List)atomicChanges.get(i);\n changePool.addAll(recycledChanges);\n atomicChanges.set(i, null);\n }\n // now we have reclaimed all these change objects\n oldestChange = oldestRequiredChange;\n\nI guess that when I was initially entering this bug I had forgotten that I had gotten around \nto adding this optimization. Nevertheless it is good to verify that there are no memory \nleaks when using Glazed Lists. In my simple test, Glazed Lists consumed less than 1000k \nof memory during the first 100,000 changes but consumed no additional memory for the \nfollowing 1,000,000 changes. Therefore I conclude that memory usage does not grow \nunbounded."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(14)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("FEATURE"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("JList support"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Glazed Lists needs to support JList alongside JTable and JComboBox.\n\nIt should be very straightforward to change between JList and JTable in an application:\n * The selection interfaces should be the same\n * The renderers should be the same\n\nFrom Fred at l2fprod.com:\n> I was looking at an equivalent of \"ListTable\"\n> but which would encapsulates a JList. Do you \n> have this on your todo list? I guess it could\n> share code with the ListTable\n\n\nThis functionality should get its own package,\n com.odellengineeringltd.glazedlists.jlist\nPerhaps the class name could be EventJList."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've done some preliminary work on this and I've run into a few snags.\n\nMy first problem is with rendering. I cannot get the preferred width in order to render the cells \nnicely, because the getSize() methods depend on the results of the rendered cells! It also seems \nto be a lot slower than JTable when scrolling through a long list of rendered cells.\n\nOne thing that this has brought me to think about is better naming for some classes. ListTable is \nfine for an event list JTable, but the matching \"ListList\" does not make much sense. My working \nname is \"EventJList\" which I think is a decent naming convention. I am pondering what the \nconsequences would be if I renamed everything in Glazed Lists to make more sense. If I were to \ndo that I would probably also want to change the package names. O'Dell Engineering is now using \na better package prefix of \"ca.odell\" which might in and of itself be worth the costs of migration.\n\nStill I have users and CVS is unfriendly to directory deletes. I'll worry about that later. For now I \nget to think about how to do JLists right."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have implemented EventJList. The class shares the following with ListTable:\n - SelectionListener interface\n - SelectionList / Selection Model\n\nThis class never batches groups of changes like ListTable does. It also does not use a Mutable change \nevent. It may be necessary to create a mutable ListDataEvent if change event creation proves to be a \nbottleneck.\n\nThis class still does not have any extra renderer support. For now if styled rendering is necessary, the \nuse of ListTable is a sufficient work around."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(15)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Inserted items become selected"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I am delighted with the performance, flexibility and ease of use of your platform, which I am \ncurrently evaluating for use in a table intensive application for my employer.\n\nOur application needs to display tabular data which gets notified through JMS. That means, \nultimately, that data arrives via a callback method in out code. I am therefore using a \nBasicEventList as base list, encapsulated in a SortedList and a subclass of AbstractFilterList as a \nmeans of providing the functionality (sorting & filtering by various criteria) that we need.\n\nThe only problem so far arises with keeping selected rows between data insertions.�I set the \nunderlying table selection model to ListSelectionModel.MULTIPLE_INTERVAL_SELECTION (anyway, \nas it is the default value). A thread keeps adding rows to the table, at a rate of 10 per second (to \ntest performance). I have noticed that whenever I select a row, further row insertions may \nmodify the number of selected rows. In particular, if a new row has the same internal index as \nthe currently selected one, it is guaranteed I will end up with two selected rows.\n\nThat seems to be your intended behaviour as per the documentation of the class SelectionList; \nhowever, I tried to modify it in order to suppress this behaviour to no avail. In particular, I \nsuppressed the lines marked inside SelectionList.notifyListChanges():\n// when an element is inserted, it is selected if its index was selected\n} else if(changeType == ListChangeBlock.INSERT) {\n��� // when selected, add the flag and fire a selection event\n��� if(previouslySelected) {\n��� ��� flagList.add(index, Boolean.TRUE); // <--- SUPRESS\n��� ��� updates.appendChange(previousSelectionIndex, ListChangeBlock.INSERT); // <--- SUPRESS\n��� // when not selected, just add the space\n��� } else {\n��� ��� flagList.add(index, null);\n��� }\n\nI tried other changes, including the method SelectionList.valueChanged(). Do you have any \nsuggestion to solve this problem? Is it a bug in your code? In that case, I'd be willing to help and \ncontribute back to your project any bugfixes I develop.�I can also provide you with my testing \ncode, but at this stage it's really simple: the thread inserting fake data rows does so in an \ninvokeLater() block, and uses a java.util.Timer for scheduling data feed.\n\nThe problem does not manifest when I set the table selection model to \nListSelectionModel.SINGLE_SELECTION, by the way.\n\nThank you for your time and for providing the Java Community with such a promising piece of \nwork.\n\nYours\nIv�n Rivera Rodr�guez"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Iv�n -\n\nThe current behaviour is \"as designed\" but I agree that there may be a better way to solve this \nproblem.\n\nThis behaviour is the same as the behaviour of a simple JTable (ie. no Glazed Lists). When JTable \nreceives in insert at some index, say i, then the newly inserted row will be selected only if row i \nwas selected before the insertion. This behaviour has some nice properties: values inserted \nwithin a range of selected values will themselves become selected.\n\nBut I also agree that this behaviour can be problematic. I think the solution is to add an extra \n\"mode\" to the SelectionList. The new mode will be as you describe. Inserted values will never be \nselected until done so explicitly by the user.\n\nDue to constraints at school and at work I will be unable to add this functionality until at least \nFebruary 14th, 2004. In the worst case it will take until February 21st to complete. Hopefully then \nI will get something working that solves this problem!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("According to the J2SE 1.4.1 API for DefaultListSelectionModel:\n\"If the value at index is itself selected and the selection mode is not SINGLE_SELECTION, set all of \nthe newly inserted items as selected. Otherwise leave them unselected. \"\nhttp://java.sun.com/j2se/1.4.1/docs/api/javax/swing/\nDefaultListSelectionModel.html#insertIndexInterval(int,%20int,%20boolean)\n\nI have tested some of the simple ways to solve this problem and I do not think that they will work \nelegantly. The problem is that I need to undo the selection which is added by \nDefaultListSelectionModel. This would be trivial except that the ListSelectionModel fires events that \nalso need to be done and undone.\n\nI am considering changing the Interface of SelectionList, to become a ListSelectionModel and \nEventList simultaneously. This approach is complex but appropriate as the SelectionList already \ntracks the table selection.\n\nI will continue to review my options but for now it looks like implementing ListSelectionModel is my \nbest bet."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have solved the problem by implementing ListSelectionModel. Implementing this class was \ndifficult as the interface specification was not explicit enough for the behaviour in certain cases. I \nthink that the behaviour of my ListSelectionModel should be the same as the J2SE 1.4 \nDefaultListSelectionModel. If you discover a descrepancy, let me know.\n\nThis new ListSelectionModel has a new mode for solving this problem \n\"MULTIPLE_INTERVAL_SELECTION_DEFENSIVE\". The new mode is the default list selection mode. \n\nMy ListSelectionModel is fully capable of switching between different modes and retains the \nappropriate selection when the mode changes. To test this, there is a commented out block of \ncode in ProgrammingLanguageBrowser.java that provides a JComboBox to switch between \ndifferent ListSelectionModel modes.\n\nI hope this fix helps, it took quite a bit of code to make it work - 653 lines!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("From Iv�n Rivera:\n\nThank you very much. I had also some time to work on the issue last Friday and came up with a \nsubclass of javax.swing.DefaultListSelectionModel which undoes the selection, without caring for \nevents generated. I append a copy to this mail for you to examine, as it seems to correct the \n(Swing-default) behaviour.\n\nYou are right about the event handling problem, but it doesn't seem to be causing troubles in my \ntest benchmark. Perhaps it's just a matter of performance. Anyway, your solution is surely more \nelegant. I won't be able to see your code until this night at home, since at work I'm behind an \nextremely restrictive firewall which doesn't even allow SSH tunneling for CVS checkout.\n\nI'm working in some components to enable automatic width adjustment for columns based on \ncontent and column hiding. I hope to be able to contribute the code once I'm done (this week, \nmost likely).\n\nOnce again, thanks for your interest.\n\nYours,\n\nIv�n Rivera"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(16)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("No removeSelectionListener() method in ListTable"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Hi,\n\nat minimum the ListTable has no removeSelectionListener(SelectionListener)\nmethod ...\n\nAny plans to correct this?\n\nCheers,\n\nJoern"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The method had been omitted in error.\n\nI have added it to the latest revision in CVS."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(17)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P1"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Selection concurrency ArrayIndexOutOfBoundsException"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I got the following exception:\n\n[tasks] Interrupting worker thread to run Adding Article\napple.awt.EventQueueExceptionHandler Caught Throwable : \njava.lang.ArrayIndexOutOfBoundsException: Cannot get selection index 0, list size 0\n at \ncom.odellengineeringltd.glazedlists.listselectionmodel.SelectionModelEventList$EventListSelectionMode\nl.isSelectedIndex(SelectionModelEventList.java:505)\n at javax.swing.JTable.isRowSelected(JTable.java:1451)\n at javax.swing.JTable.isCellSelected(JTable.java:1481)\n at javax.swing.JTable.prepareRenderer(JTable.java:3725)\n at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:1149)\n at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1051)\n at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:974)\n at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)\n at javax.swing.JComponent.paintComponent(JComponent.java:541)\n at javax.swing.JComponent.paint(JComponent.java:808)\n at javax.swing.JComponent._paintImmediately(JComponent.java:4695)\n at javax.swing.JComponent.paintImmediately(JComponent.java:4488)\n at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)\n at \njavax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:\n117)\n at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)\n at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)\n at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)\n at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)\n at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)\napple.awt.EventQueueExceptionHandler Caught Throwable : \njava.lang.ArrayIndexOutOfBoundsException: Cannot get selection index 0, list size 0\n at \ncom.odellengineeringltd.glazedlists.listselectionmodel.SelectionModelEventList$EventListSelectionMode\nl.isSelectedIndex(SelectionModelEventList.java:505)\n at javax.swing.JTable.isRowSelected(JTable.java:1451)\n at javax.swing.JTable.isCellSelected(JTable.java:1481)\n at javax.swing.JTable.prepareRenderer(JTable.java:3725)\n at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:1149)\n at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1051)\n at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:974)\n at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)\n at javax.swing.JComponent.paintComponent(JComponent.java:541)\n at javax.swing.JComponent.paint(JComponent.java:808)\n at javax.swing.JComponent.paintChildren(JComponent.java:647)\n at javax.swing.JComponent.paint(JComponent.java:817)\n at javax.swing.JViewport.paint(JViewport.java:774)\n at javax.swing.JComponent.paintChildren(JComponent.java:647)\n at javax.swing.JComponent.paint(JComponent.java:817)\n at javax.swing.JComponent._paintImmediately(JComponent.java:4695)\n at javax.swing.JComponent.paintImmediately(JComponent.java:4488)\n at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)\n at \njavax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:\n117)\n at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)\n at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)\n at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)\n at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)\n at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The lists can get out of sync while changes are pending in the event queue. The ListSelectionModel \nmust not throw an exception because it is possible that the lists are simply out of sync and that when \nthe event queue is processed they will come back into sync.\n\nThis has been fixed so that the SelectionModel does not throw an exception in the possiblility that the \nlists are simply out of sync.\n\nOne unfortunate side effect is that the ListSelectionModel now cannot provide warning as to whether \nthis method is actually being called in error."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(18)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("set(), add(), remove() etc. not implemented"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Glazed Lists does not support remove() on FilterLists. It simply throws an Exception.\n\nGlazed Lists should support remove(). It should also support set().\n\nTo provide protection, there should be a MutationList called ReadOnlyList that throws an exception \nupon a remove() or a set."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The following methods that modify lists should be implemented: set(), add(), remove() and clear().\n\nImplementing these is not straightforward because we want to modify the model indirectly by calling \nthese methods upon the view. Here are some observations:\n\nBasicEventList:\nAlready supports modifying methods.\n\nQueryList:\nNot directly modifyable. Objects created or modified externally can currently be updated via \nnotifyObjectUpdated(). This is appropriate.\n\nSortedList:\nMethods called with an index such as set(index, value) and add(index, value) will have unpredictable \nresults. This is because the modified/inserted objects may be sorted into a different index than that \nspecified. This is acceptable but should be documented.\n\nFilteredList:\nThe add(index, value) method is ambiguous. This is because there may be several filtered-out indicies \nin the source list that will have the same filtered index. I think the best approach is to insert at the \nhighest index that will satisfy the specified index.\nThe add() and set() methods may cause an object to become filtered. This is acceptable but should be \ndocumented.\n\nFreezableList:\nChanges may do different things in different states. This is nonintuitive and could be \ntroublesome. For example, when a list is frozen changes can only applied to a local copy. When the list \nis not frozen changes should propagate to parente lists. Therefore I recommend that changes are only \nallowed in the not frozen state. Otherwise an IllegalStateException should be thrown.\n\nSelectionList:\nThis is not clearly defined. It may be intuitive that remove() either removes the selection or that \nremove() actually removes an element from the source list. But add() can only add an element to the \nsource list because it is unnatural to use add() to perform selection by value and not index. Therefore \nadd() and remove() will modify the source list.\n\nMutationList:\nThis should continue to throw MethodNotSupportedException for mutator methods. It may be desirable \nto make some methods use others such as clear() calling remove() in sequence in order to simplify \nwriting extending classes."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Daniel Bonin and I were discussing modifyable views and we came up with some observations. When \nusing FilterList, SortedList or the like, you can have inconsistent behaviour. For example, the following \ncode wil fail.\n\nlist x = ...\nx.add(0, \"Jesse\");\nassert(\"Jesse\".equals(x.get(0));\n\nThis can fail because the inserted value \"Jesse\" gets filtered out or sorted to a different location.\n\nOur solution: a happy list. The happy list \"fakes\" success as the method directed. It basically keeps \ntrack of local changes to make the changes appear consistent. This can be used with GUIs to allow the \nuser to verify their modifications without losing the filtering and sorting. \n\nThe happy list will be called \"DeltaList\" and it will keep track of both the source list and a set of deltas \nthat have been performed. When an insert at x occurs, the delta list simulates that the insert occured at \nx, even if the insert was sorted or filtered to a different location."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have created a new class \"WritableMutationList\" that provides these services to lists that extend it. It \nrequires that lists implement two additional methods:\n - isWritable() returns true if the list is accepting changes at this time\n - getSourceIndex() gets the index from the source list for the corresponding index in the mutated list\n\nThis requires that there is a 1:1 correspondence between indicies in the mutated list and the indicies in \nthe source list. This will not work for lists that combine source values in the mutated view.\n\nTo complete the fix, I must implement a ReadOnlyList mutated list and a DeltaList. I will also need to do \na bunch of testing to verify that this works."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've added a ReadOnlyList - now all that's left is DeltaList.\n\n...And LOTS of testing!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I added test methods to SortedList and CaseInsensitiveFilterList and have gained confidence in my \nimplementation of the set(), add(), remove(), clear() etc. methods.\n\nThe DeltaList has been moved to a separate issue, issue 24.\nhttps://glazedlists.dev.java.net/issues/show_bug.cgi?id=24"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(19)); currentIssue.setStatus("NEW"); currentIssue.setPriority("P3"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("FEATURE"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Glazed lists on the network"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("As documented in the developer newsgroup, I want to build a model that allows list changes to be \ndistributed across the network.\n\nhttps://glazedlists.dev.java.net/servlets/ReadMsg?list=dev&msgNo=11\nhttps://glazedlists.dev.java.net/servlets/ReadMsg?list=dev&msgNo=12\n\nI will create a descrete event simulation model in order to test out what network strategies are most \neffective. Also I think that this package should be implemented exclusively using the buffered java.nio \npackage if possible."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(20)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P5"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Refactor package and class names"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("These changes make the code easier for new users at the expense of requiring existing users to change \ntheir imports. Therefore the changes should be made very carefully. If possible a tool should be \nreferenced to automatically convert .java files for existing users.\n\nFirst off, com.odellengineeringltd.glazedlists is a mouthful. This should be changed to O'Dell \nEngineering's new standard package, ca.odell.glazedlists.\n\n...glazedlists.listselectionmodel should be renamed to ...glazedlists.selection.\n\nIn ...glazedlists.jtable:\n ListTable should be EventJTable\n SelectionListener should be moved to ...glazedlists.selection\n BasicSelectionListener should be moved to ...glazedlists.selection\n\nFinally the following classes should be verified working or removed:\n...glazedlists.jtextfield.ArrayStringCompleter\n...glazedlists.jtextfield.CompletedField\n...glazedlists.jtextfield.ComponentCaution\n...glazedlists.jtextfield.ListStringCompleter\n...glazedlists.jtextfield.StringCompleter\n...glazedlists.jtextfield.ValidatedField\n...glazedlists.jtable.StyledDocumentEditor\n...glazedlists.jtable.WritableListTable\n...glazedlists.jtable.WritableTableFormat\n...glazedlists.query.QueryListManager\n\nAs I have already said, these changes will ruin Glazed Lists programs. Therefore all Glazed Lists users \nshould be notified before making any changes and copies of the Glazed Lists jar file and source should \nbe permanently archived for users with these packages."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("When I fix this bug I will be breaking compatibility. Other compatibility-breaking changes should all be \nperformed at the exact same time.\n\nAnother compatibility-breaking change is changing the concurrency strategy. The current strategy uses \nsimple global synchronization, where a better solution will use Reader/Writer locks. This will be \nnecessary to resolve Issue 25."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Here's my current ideas on what to do with each class. My goal is to simplify Glazed Lists by removing \neverything that is not essential. \n\nAbstractFilterList - ok\nArrayStringCompleter - remove, this class is not within the scope of the project\nBasicEventList - ok\nBasicSelectionListener - remove, this class is simple in implementation and limited in use\nBoundedMap - remove, this class is no longer used\nCachingList - ok\nCaseInsensitiveFilterList - SubstringFilterList, have case toggle options\nCharacteristicList - rename ?\nComparableComparator - ok\nComparatorChain - ok\nCompletedField - remove, not within scope\nComponentCaution - remove, not within scope\nCompositeList - ok\nDynamicQueryList - replace with a different 'query' list that does not use the Query class, just a \nsetCollection() method\nEmptyQuery - remove\nEventJList - replace with a EventListModel\nEventList - ok\nEventListIterator - ok\nExitOnCloseHandler - remove, not in scope\nFilterable - remove? Filterator only may be a better approach\nFilterator - rename TextFilterator\nFreezableList - ok\nIconComboBoxRenderer - remove, not within scope\nIndexedTree - ok\nIndexedTreeNode - ok\nListChangeBlock - make package-scope, move constants DELETE, INSERT to ListChangeEvent class\nListChangeEvent - ok, add methods to get the source list and target listener\nListChangeListener - ok, change notifyListChanges to listChanged\nListChangeListenerEventThreadProxy - ok\nListChangeListenerWeakReferenceProxy - ok\nListChangeSequence - ok, maybe rename to ListChangeEventHelper or something\nListComboBoxModel - ok\nListStringCompleter - remove, out of scope\nListTable - replace with EventListTableModel\nMutableListDataEvent - ok, make package-scope\nMutableTableModelEvent - ok, make package-scope\nMutationList - rename. the renamed list could be \"DecoratorList\" or something else\nPeriodicQueryList - remove, see DynamicQueryList\nProgrammingLanguageBrowser - ok\nProgrammingLanguageNameComparator - ok\nProgrammingLanguageTableCell - ok\nProgrammingLanguageYearComparator - ok\nQuery - remove, see DynamicQueryList\nQueryList - replace as per DynamicQueryList\nQueryListManager - remove\nReadOnlyList - ok\nReverseComparator - ok\nSelectionList - remove\nSelectionListener - ok? maybe remove due to models, consider more flexible selection events\nSelectionModelEventList - ok\nSelectionNotifier - package private\nSortedList - ok\nSparseList - ok\nStringCompleter - remove\nStripedTableCellRenderer - not really in scope, but keep it anyway\nStyledDocumentEditor - remove\nStyledDocumentRenderer - not really in scope, but keep it anyway, adjust built-in forms\nSubEventList - ok\nTableComparatorChooser - ok\nTableComparatorSelector - remove\nTableFormat - rename um TableColumnFormat maybe? remove configureTable for new model-\napproach\nTaskQueryList - remove, see DynamicQueryList\nUniqueList - ok\nValidatedField - remove\nWritableListTable - replace with methods in TableFormat\nWritableMutationList - remove, replace with more powerful MutationList\nWritableTableFormat - remove\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Some other things I think we should go over for this issue:\n - verify standard copyright header\n - classes should be final\n\nTo reduce the number of visible classes and therefore simplify Glazed Lists:\n - all *List classes should be in the main package\n - no support classes should be public\n - Swing classes in swing package\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Two other things I thought of to verify:\n - imports are clean & straightforward & necessary\n - there is a thread-safety warning in Javadoc for all thread-unsafe classes"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("NEVER AGAIN"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(21)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("SubList not implemented"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("SubList should be implemented. This should be an MutationList on its own, that starts with the initial \nsize and accepts add() and remove() from source list."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Implementing SubList as an EventList in its own right will introduce a subtle problem:\n\nThe SubList should listen to events from its source list and change itself accordingly. But if the SubList \nis to listen for such events, it must be registered as a ListChangeListener of the source list.\n\nBecause the SubList is a ListChangeListener, the source list will always maintain a reference to the \nSubList and the SubList will never go out of scope. Therefore the SubList will never be garbage collected \nand waste memory space.\n\nThe work around is to require EventLists to accept two classes of ListChangeListeners - those that \nshould be garbage collected once they go out of the scope from the caller and those that should not be \ngarbage collected. In effect there should be ListChangeListeners that are stored with weak references \nand those that have regular references.\n\nI would prefer not to change the interface for EventList or ListChangeListener, so it will be tricky to \ndetermine whether to reference a listener with a weak reference or a regular reference. One solution \ncreate a proxy class called \"WeakReferenceListChangeListenerProxy\" that sends changes using a weak \nreference only. This is similar to the SwingThreadProxy already in use in Glazed Lists."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("SubList is added and appears to be working.\n\nI still need to perform a test to ensure it is being garbage collected."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Fixed!\n\nThe SubList and Iterator now respond to events. Therefore they can be used even if the underlying list \nchanges."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(22)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("kevinmaltby"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("CachingList dumps all values whenever the list is changed"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The CachingList will be of growing importance as Glazed Lists are used on the network.\n\nThe current implementation of CachingList dumps the entire cache whenever any changes to the list \noccur. The CachingList should only dump values which have been invalidated."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The current CachingList keeps track of what is in its cache by its list index. When the list is modified, \nthese list indicies may change and therefore it is necessary to invalidate the entire cache.\n\nIn order to fix the CachingList, it will be necessary to change the data structures that support it. This fix \nwill be difficult to build!\n\nI am considering allowing this defect to exist in the 1.0 release as it is only a performance problem and \nnot a behavioural problem."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I'm assigning this to Kevin Maltby - the best coder I know when caching is concerned. Let's hope my \nflattery and his talent are enough to get this bug fixed!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Kevin has pretty much conquered this one. He's going to CVS commit and close this issue real soon.\n\nI have peer-reviewed his code and it's pretty decent. The peer review session was very helpful and \nhopefully we can get a lot of the Glazed Lists code peer reviewed in the future!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("The fix is in. The CachingList now behaves as you would expect."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(23)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("TASK"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Add JUnit Support"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("As Glazed Lists gets bigger in scope it is becoming very urgent to create a set of unit tests.\n\nThere should be a package such as .glazedlists.test that is only compiled if the JUnit libraries are \ndetected on the classpath. If they are, then these test files can be built. They can then be tested with a \n\"test\" target in the project buildfile.\n\nFinally these test classes shall not be included in the library distribution."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have added the framework for JUnit tests within the Glazed Lists package and build file.\n\nNow all I have to do is write the tests!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've gone through the code to select which classes are good candidates for unit tests. Unit tests require \nprogrammatic access so testing Swing stuff will be of marginal value.\n\npackage: .glazedlists\nAbstractFilterList\nBasicEventList\nCaseInsensitiveFilterList\nSortedList\nWritableMutationList\n\npackage: .glazedlists.listselectionmodel\nSelectionModelEventList\n\npackage: .glazedlists.util\nBoundedMap\nCachingList\nEventListIterator\nFreezableList\nIndexedTree\nReadOnlyList\nSparseList\n\nAs of March 18, 2004 I have created tests for the CaseInsensitiveFilterList and the SortedList."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The most basic classes now have tests for them.\n\nSome tests are not appropriate for JUnit, for example, concurrency tests.\n\nRegardless, JUnit support is now in the Glazed Lists project. It is possible to add new tests by simply \ncreating a class that ends with Test.java. In fact, Glazed Lists now requires that classes ending in \nTest.java must be JUnit tests as such classes are NOT included in the distribution jar.\n\nAnyone interested in getting their hands dirty with Glazed Lists should consider adding more tests to \nour test library!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(24)); currentIssue.setStatus("NEW"); currentIssue.setPriority("P5"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("FEATURE"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Add DeltaList for consistency with derivatives of WritableMutationList"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("WritableMutationLists allow modifications to be made to the list that may behave differently than \nexpected. The solution is to implement a DeltaList, which is a mutation list that provides as-expected \nresults when they would not otherwise be possible.\n\nFrom issue 18:\n\nDaniel Bonin and I were discussing modifyable views and we came up with some observations. When \nusing FilterList, SortedList or the like, you can have inconsistent behaviour. For example, the following \ncode wil fail.\n\nlist x = ...\nx.add(0, \"Jesse\");\nassert(\"Jesse\".equals(x.get(0));\n\nThis can fail because the inserted value \"Jesse\" gets filtered out or sorted to a different location.\n\nOur solution: a happy list. The happy list \"fakes\" success as the method directed. It basically keeps \ntrack of local changes to make the changes appear consistent. This can be used with GUIs to allow the \nuser to verify their modifications without losing the filtering and sorting. \n\nThe happy list will be called \"DeltaList\" and it will keep track of both the source list and a set of deltas \nthat have been performed. When an insert at x occurs, the delta list simulates that the insert occured at \nx, even if the insert was sorted or filtered to a different location."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("priority reduced as there is no 'customers' waiting for this feature."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This may be an excellent candidate as something to extend AbstractFilterList."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(25)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("CompositeList not thread-safe"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Glazed Lists' new CompositeList combines multiple event lists into one.\n\nThis class is not thread-safe. In particular, it may be possible to cause a deadlock when one thread is \nreading the CompositeList while another thread is writing a list that the CompositeList is composed of."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug depends on fixing Issue 26. That issue is for adding beefier concurrency constructs to Glazed \nLists."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("After much thought, I have decided my approach to solving this bug.\n\nHere are the things that all solutions must consider:\n1. When one of the source lists change, they call notifyListChanges() while holding the writer lock to \nthat source list.\n2. When a user needs read access to any list including CompositeList, the user acquires a reader lock \nand performs their access. The list must not change during access.\n3. If a thread obtains two locks, it must always obtain the locks in the same order as any other thread \nthat may hold those two locks. Otherwise deadlock is possible as threads may compete for each other's \nlocks.\n\nMy initial idea was as follows:\n - Eliminate the need for locking all source lists for each access\n - When a read is performed, lock the local read lock and the read lock on the source list\n - When a write is performed, lock the local write lock and the write lock of the source list\n - When a source list calls notifyListChanges, use the tryLock() method to attempt to obtain the local \nwrite lock. If it can be obtained propogate the change. If it cannot, return without propogating the \nchange. The thread that currently holds a lock is now responsible for propogating that change.\n\nThis strategy has many advantages. It has a constant time to acquire locks, and it takes advantage of \nthe listEvent's abilities to be read at a later time. Although this avoids deadlock, the problem this \nstrategy is that this does not fulfill requirement 2.\n\nTherefore, I will implement a much simpler and potentially slower strategy:\n - for each lock, present a decorator lock that locks all corresponding locks from the source list\n - obtain the locks in a constant order: by the System.hashCode() value of their source list\n\nThis solution looks good! The only problem I have with it is that the System.hashCode() value could \nchange for an Object over time if it gets moved within memory. I doubt that this will be a problem but it \nis a good thing to keep an eye on."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("My initial implementation is complete, but I still need to add a test class to verify that it is thread safe."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("After implementing my proposed solution, I tested it and discovered that it was\nfailing miserably! The solution has a problem that prevents it from being\nacceptable. The notifying thread must have a write lock on the entire list to\nprevent changes from being made while the listChanged() method is being handled\nby listeners. This is requirement #2 and it is not satisfied by that proposal.\nTherefore the proposal is insufficient.\n\nTherefore I propose a new solution, somewhat of a hybrid between the two.\ni. Read lock on composite list obtains the read locks of all source lists in\narbitrary order\nii. Write lock on composite list is a special ReadWriteLock called\n\"PropagateLock\" plus the read locks of all source lists.\niii. Upon a change notification in the composite list, that thread tests if the\npropagateLock is locked. If it is, it leaves its changes to be propogated by the\nthread that currently owns the propogate lock. If that lock is unlocked, the\nthread takes the propogate lock and then all read locks in arbitrary order. It\nthen concatenates its own changes with any changes left while it was collecting\nlocks. Finally it propagates the concatenated change while holding the propogate\nlock, read locks to all source lists, and the original write lock for one source\nlist.\n\nThis combined lock includes the \"writer lock\" for this list, satisfying\nrequirement #1. \nThe reader lock is a hybrid lock that holds all other read locks, preventing\nchanges while reading. This satisfies requirement #2.\nThe reader locks need not be mutex with one another so that solves part of #3.\nFor writer locks, a thread's 2nd lock is always the propogate lock, and it fails\nif that lock is not available immediately, solving another part of #3. Finally,\nno thread acquires write locks after owning a first read lock, finishing up the\nfinal area of concern for requirement #3."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Yet again, I have presented a solution that failed in practice. Here is the problem with my most recent \nsolution:\n\nSuppose you have two writer threads, A and B that write to source lists Apples and Bananas. There is \nalso a reader thread C that reads the composite list of A and B called \"FruitSalad\".\n\n1. A creates an event in Apples and acquires the write lock to Apples. A = { WL(Apples) }\n2. C wants to read the fruit salad and requests a read lock. By the provided implementation, this causes \nC to obtain read locks to each of the two lists Apples and Bananas in arbitrary order. C aquires the read \nlock to Bananas and requests the read lock to Apples, which blocks because A currently holds that lock. \nC = { RL(Bananas), REQUEST(RL(Apples)) }\n3. B wants to create an event in Bananas and requests the write lock to Bananas. This blocks because C \ncurrently holds that lock. B = { REQUEST(WL(Bananas)) }\n4. A forwards its event to FruitSalad, regarding its change to Apples. A attempts to acquire the read \nlocks to all lists in FruitSalad in order to forward this event. When attempting to acquire the read lock to \nBananas, this request is blocked because there is a waiting request for the write lock to Bananas by B. \nTherefore A = { WL(Apples), REQUEST(RL(Bananas)) }\n\nAs you can see, all of the lists are awaiting requests held by each other and we have a deadlock. This \nsucks! I do not think it is appropriate to change the preferences on the lock orders because doing so \nmay severely limit the original concurrency goals of Glazed Lists.\n\nFor now, I will continue to ponder a better solution. "); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Created an attachment (id=2)\nMy request for help on Usenet\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I was thinking about this problem and I came to a solution. Supporting arbitrary\nsources for CompositeList is not only difficult, it is impossible!\n\nThis is because allowing arbitrary numbers of threads and sources for each list\ncan always lead to potential deadloch situations. For example, suppose we have\nthe following.\nlist A\nlist B\nthread C reading the composite list (A, B) called \"Fruit Salad\"\nthread D reading the composite list (B, A) called \"Fruit Punch\"\nThen C can hold RL(A) while waiting for RL(B) while D is holding RL(B) while\nwaiting for RL(A). You guessed it, deadlock.\n\nIt may be worthwhile to investigate using a lock-aquiring-order to solve this\nproblem partially, but I still think that arbitrary graphs are impossible to\nsupport. I must also note that it is always possible to support arbitrary graphs\nwhen using a global lock. I would very much like to avoid that solution however.\n\nAnyway given my new requirements I have drafted up a new solution! Set writers\nto write change events to a queue, then attempt to obtain the composite list\nlock. Overload the composite list lock to first obtain a base lock, then to\nforward queued changes after all reader lock has been acquired.\n\nOr better, pseudocode:\n\n lock() {\n starlock.lock()\n lock all read locks\n process queue\n }\n unlock() {\n starlock.unlock()\n release all read locks\n }\n tryLock() {\n boolean success = starlock.trylock() \n if(!success) return false;\n lock all read locks\n process queue\n }\n listChanged(list event) {\n add event to queue\n cl.tryLock()\n cl.unlock();\n }\n\nDoes anybody have any comments on this strategy? The biggest new idea is that\nreaders may sometimes be called upon to forward changes when they are acquiring\nthe read lock."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("My solution worked and this issue has been resolved!\n\nHow satisfying!!\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(26)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Replace global lock with reader/writer locks"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The current Glazed Lists uses global locks for all reads and writes. It would higher performance to use a \nreader/writer lock instead.\n\nThe reader/writer lock could be either requested via eventList.getLock().aquireRead() or via \neventList.aquireReadLock(). I think I prefer using getLock(), which returns an object implementing a \nReaderWriterLock interface. That way I can easily swap out the lock implementation."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("We've swapped the global synchronized on root list to global reader writer locks.\n\nWe can now replace that with local locks."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I am marking this problem as \"fixed\" and creating a new issue which covers concurrent mutationlist \nmodifications."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(27)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("kevinmaltby"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("FEATURE"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("UniqueList not implemented"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Glazed Lists needs a UniqueList that can take two lists and show only the unique values."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Kevin Maltby has got a working implementation! What a stallion!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("UniqueLists are now implemented to provide a unique view of a given list."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("Jesse Wilson broke it with the addition of the testUpdateDeleteCollide test \ncase.\n\nThe result of this test was the following Exception...\n\n [junit] Testcase: testUpdateDeleteCollide(com.odellengineeringltd.glazedlist\ns.util.UniqueListTest): Caused an ERROR\n [junit] cannot get from tree of size 1 at 1\n [junit] java.lang.IndexOutOfBoundsException: cannot get from tree of size 1\nat 1\n [junit] at com.odellengineeringltd.glazedlists.util.IndexedTreeNode.getN\nodeWithIndex(IndexedTreeNode.java:81)\n [junit] at com.odellengineeringltd.glazedlists.util.IndexedTree.getNode(\nIndexedTree.java:64)\n [junit] at com.odellengineeringltd.glazedlists.SortedList.get(SortedList\n.java:239)\n [junit] at com.odellengineeringltd.glazedlists.util.UniqueList.get(Uniqu\neList.java:167)\n [junit] at com.odellengineeringltd.glazedlists.util.UniqueList.processIn\nsertEvent(UniqueList.java:259)\n [junit] at com.odellengineeringltd.glazedlists.util.UniqueList.notifyLis\ntChanges(UniqueList.java:209)\n [junit] at com.odellengineeringltd.glazedlists.event.ListChangeSequence.\ncommitAtomicChange(ListChangeSequence.java:134)\n [junit] at com.odellengineeringltd.glazedlists.SortedList.notifyListChan\nges(SortedList.java:146)\n [junit] at com.odellengineeringltd.glazedlists.event.ListChangeSequence.\ncommitAtomicChange(ListChangeSequence.java:134)\n [junit] at com.odellengineeringltd.glazedlists.AbstractFilterList.handle\nFilterChanged(AbstractFilterList.java:187)\n [junit] at com.odellengineeringltd.glazedlists.util.UniqueListTest$IntAr\nrayFilterList.setFilter(UniqueListTest.java:526)\n [junit] at com.odellengineeringltd.glazedlists.util.UniqueListTest.testU\npdateDeleteCollide(UniqueListTest.java:542)"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This is broken because some naive programmer guy didn't do a very good job at implementing \nSortedList. "); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed as a consequence of bug 37 being fixed.\n\nI performed the Unit Tests and all worked perfectly, for 1000 elements filtered 10 times."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(28)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P1"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Lists may fail if the change event indicies are out of order"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Lists that evaluate the values such as SortedList and FilteredList may break if the change event has \nindicies that arrive out of order.\n\nThere should be a test for this added to the unit tests and a fix should be made if the problem is \nlegitimate."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have created a JUnit test that confirms the presense of this bug. That test has been added to CVS.\n\nThe solution as I see it is to add a method in the ListChangeSequence that is called from \ncommitAtomicChanges(). Such a method would examine the list change events and re-order them into \norder of increasing index.\n\nThe reordering could potentially also merge adjacent list change blocks but this is not totally necessary."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The ListChangeSequence now bubble-sorts change blocks when the change is commited.\n\nBubbleSort was used because it only swaps adjacent entries. When two change blocks are swapped, \ntheir indicies must be modified relative to one another. Therefore bubble sort is the simplest sort to \nimplement."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug appears to remain broken:\n\n [junit] Testcase: testIndexOutOfOrder(com.odellengineeringltd.glazedlists.test.IndexOrderTest): \nFAILED\n [junit] expected:<[[I@c05d3b, [I@28f6ee, [I@6bade9, [I@66afb3, [I@9945ce, [I@b5dac4, [I@2d96f2, \n[I@110003, [I@17e4ca, [I@adb1d4, [I@75d6ab, [I@60a26f, [I@484a05, [I@f39b3a, [I@542a75, \n[I@af993e, [I@75e4fc, [I@c62c8, [I@2940b3, [I@56b6b9, [I@f66cff, [I@6de49c, [I@bbf1ca, [I@ff0dde, \n[I@e78fc6, [I@901437, [I@1f6226, [I@64ea66, [I@58f9d3, [I@79a2e7, [I@b60280, [I@5e55ab, \n[I@4a55f2, [I@5093f1, [I@20bf2c, [I@e6f7d2, [I@9836ed, [I@3e0ebb, [I@39443f, [I@afae45, [I@da4b71, \n[I@8f1d7e, [I@d9660d, [I@bb0d0d, [I@55e55f, [I@45c859, [I@64883c, [I@2c1e6b, [I@811c88, \n[I@785d65, [I@3bc257, [I@53f67e, [I@5bdc50, [I@dd3812, [I@8c436b, [I@9e5c73, [I@c791b9, \n[I@3020ad, [I@b15692, [I@aa9f99, [I@d42d08, [I@d86fd3, [I@958bb8, [I@7f4ec, [I@60e128, \n[I@5e1077, [I@8b3364, [I@db05b2, [I@530cf2, [I@76fba0, [I@81ed9e, [I@175422, [I@949f69, \n[I@6dadf9, [I@b8d6f7, [I@290fbc, [I@c80b01, [I@4aa0ce, [I@833eca, [I@8f5824, [I@e3cd51, [I@bc8e1e, \n[I@1671b2, [I@82764b, [I@2452e8, [I@bf3d87, [I@60991f, [I@e4f7c2, [I@45f0e3, [I@c9d92c, [I@d0fafc, \n[I@dc6b5, [I@70bea5, [I@f47396, [I@d0af9b, [I@b8f8eb, [I@de17f4, [I@f6ba0f, [I@313906, [I@96cf11, \n[I@f47bf5, [I@f6438d, [I@cd0888]> but was:<[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, \n18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, \n44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, \n70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, \n96, 97, 98, 99, 100, 101]>\n [junit] junit.framework.AssertionFailedError: expected:<[[I@c05d3b, [I@28f6ee, [I@6bade9, \n[I@66afb3, [I@9945ce, [I@b5dac4, [I@2d96f2, [I@110003, [I@17e4ca, [I@adb1d4, [I@75d6ab, \n[I@60a26f, [I@484a05, [I@f39b3a, [I@542a75, [I@af993e, [I@75e4fc, [I@c62c8, [I@2940b3, [I@56b6b9, \n[I@f66cff, [I@6de49c, [I@bbf1ca, [I@ff0dde, [I@e78fc6, [I@901437, [I@1f6226, [I@64ea66, [I@58f9d3, \n[I@79a2e7, [I@b60280, [I@5e55ab, [I@4a55f2, [I@5093f1, [I@20bf2c, [I@e6f7d2, [I@9836ed, \n[I@3e0ebb, [I@39443f, [I@afae45, [I@da4b71, [I@8f1d7e, [I@d9660d, [I@bb0d0d, [I@55e55f, \n[I@45c859, [I@64883c, [I@2c1e6b, [I@811c88, [I@785d65, [I@3bc257, [I@53f67e, [I@5bdc50, \n[I@dd3812, [I@8c436b, [I@9e5c73, [I@c791b9, [I@3020ad, [I@b15692, [I@aa9f99, [I@d42d08, \n[I@d86fd3, [I@958bb8, [I@7f4ec, [I@60e128, [I@5e1077, [I@8b3364, [I@db05b2, [I@530cf2, [I@76fba0, \n[I@81ed9e, [I@175422, [I@949f69, [I@6dadf9, [I@b8d6f7, [I@290fbc, [I@c80b01, [I@4aa0ce, [I@833eca, \n[I@8f5824, [I@e3cd51, [I@bc8e1e, [I@1671b2, [I@82764b, [I@2452e8, [I@bf3d87, [I@60991f, \n[I@e4f7c2, [I@45f0e3, [I@c9d92c, [I@d0fafc, [I@dc6b5, [I@70bea5, [I@f47396, [I@d0af9b, [I@b8f8eb, \n[I@de17f4, [I@f6ba0f, [I@313906, [I@96cf11, [I@f47bf5, [I@f6438d, [I@cd0888]> but was:<[0, 1, 2, 3, \n4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, \n32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, \n58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, \n84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101]>\n [junit] at \ncom.odellengineeringltd.glazedlists.test.IndexOrderTest.testIndexOutOfOrder(IndexOrderTest.java:85)\n [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\n [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:\n25)\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("The current ordering of events appears to be inverted and thus events appear in \ndecreasing order."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Fixed! Again! This bug has haunted me all day. \n\nThe solution sorts and combines properly, but not necessarily too efficiently. If this proves to be a \nproblem, I'll send the optimization police onto it!\n\nHere's an example of the (poor) runtime. Changes are measured in loop executions.\n [junit] Changed! blocks before: 142, after: 142, changes: 141\n [junit] Changed! blocks before: 204, after: 1, changes: 405\n [junit] Changed! blocks before: 203, after: 88, changes: 9890\n [junit] Changed! blocks before: 306, after: 253, changes: 647\n [junit] Changed! blocks before: 541, after: 40, changes: 5257\n [junit] Changed! blocks before: 514, after: 73, changes: 27433\n [junit] Changed! blocks before: 212, after: 158, changes: 439\n [junit] Changed! blocks before: 626, after: 9, changes: 46633\n [junit] Changed! blocks before: 548, after: 67, changes: 22004\n [junit] Changed! blocks before: 141, after: 141, changes: 140\n [junit] Changed! blocks before: 411, after: 91, changes: 20767\n [junit] Changed! blocks before: 119, after: 119, changes: 118\n [junit] Changed! blocks before: 490, after: 2, changes: 32108\n [junit] Changed! blocks before: 460, after: 81, changes: 24387\n [junit] Changed! blocks before: 121, after: 121, changes: 120\n [junit] Changed! blocks before: 551, after: 81, changes: 24285\n [junit] Changed! blocks before: 219, after: 176, changes: 447\n [junit] Changed! blocks before: 623, after: 68, changes: 53634\n [junit] Changed! blocks before: 572, after: 23, changes: 23838\n [junit] Changed! blocks before: 34, after: 34, changes: 33\n [junit] Changed! blocks before: 41, after: 29, changes: 919\n [junit] Changed! blocks before: 55, after: 55, changes: 54\n [junit] Changed! blocks before: 77, after: 50, changes: 2964\n [junit] Changed! blocks before: 65, after: 1, changes: 127\n [junit] Changed! blocks before: 46, after: 46, changes: 45\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(29)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P4"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("ToString on BasicEventList, MutationList no good"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The toString value on Java Lists is like \"[lemon, orange, apple, banana]\"\nbut on Glazed Lists it is like \"com.odellengineeringltd.glazedlists.BasicEventList@f4d448ce\""); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("The toString value on Glazed Lists is the same as the toString value on Java \nLists now."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(30)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P4"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("TASK"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Verify ListTable changeSizeRepaintAllThreshhold works"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Some users have had problems with the behaviour of Glazed Lists when the \nchangeSizeRepaintAllThreshhold is low.\n\nVerify that the behaviour is:\n - correct\n - faster than using single changes"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've done some research and learned a lot about the behaviour of JTable.\n\nWhen you give JTable a large set of small changes, it has different behaviour depending on what its \nrenderer is doing. If the table rows all have a uniform height, then the JTable is very fast at handling \nsuch a set of changes. If the table rows have nonuniform height, however, the JTable is very slow.\n\nTherefore I am going to make a few small changes:\n - I am going to further document the changeSizeRepaintAllThreshhold and its relationship with the \ntable speed in both the ListTable class and in the performance section of the tutorial\n - I am going to change the default value of changeSizeRepaintAllThreshhold to 250, and add proper \ngetter and setter values. The table performance was intolerable with variable row sizes when there were \nmroe than 250 changes, but may be acceptable below that.\n\nNote that the changeSizeRepaintAllThreshhold is an unwanted hack to work around the poor behaviour \nof JTable in such situations. It has major problems because it forces the table to lose its selection and \nits scrolling."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have changed the behaviour of repaintAllThreshhold to default to Integer.MAX_VALUE. Therefore new \nrepaintAllThreshhold must be set manually to be enabled. This is good because the whole thing is kind \nof an ugly hack to get around the poor behaviour of the JTable's ability to track row height. \n\nI believe the whole problem stems from a poor implementation of SizeSequence in the JVM. I think a \ntree-based structure similar to the one used for SparseList may be more appropriate."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(31)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("More powerful TableComparatorSelector"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Glazed Lists' TableComparatorSelector does not:\n - have chevrons or arrows to indicate sort order\n - allow sorting by multiple columns simultaneously\n\nThese should be implemented by \"beefing-up\" TableComparatorSelector."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've moved this from priority 4 to priority 2 due to demand!\n\nI also got some additional info from the users mailing list.\n\nSource for a tool that does table header stuff well:\nhttp://www.fawcette.com/javapro/2002_08/magazine/columns/visualcomponents/\n\nAlso - the table should support raw-order sort."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have started preliminary work on this.\n\nI have yet to do the header arrows and multiple-column sort, but the new TableComparatorSelector is \nalready much, much better."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've added support for multiple column sort, and arrow icons.\n\nHeader/table sorting is now a FIRST CLASS feature in Glazed Lists.\n\nAll that's left is support for raw sort order. I will enter a new bug for that as the support should be done \nin SortedList."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(32)); currentIssue.setStatus("NEW"); currentIssue.setPriority("P5"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("kevinmaltby"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("CachingList could be more powerful"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("As Kevin and I were working on the CachingList problems today, we came up with some clever new \nideas for a powerful replacement for CachingList:\n\n - background loading. Calls to get() return a default value immediately, then load the actual value in \nthe background. Finally fire a updated() event when the actual value is loaded.\n\n - bulk loading via an API. Create a Caching API for performing BulkLoading. This is not really a \nMutationList because it would require more than an EventList as a source. Bulk loading could be faster \nbut it is definitely a big fat ugly pig to implement.\n\n - footprint that is bounded by max cache size and NOT by the size of the source list. This will be \nnecessary for arbitrarily large source lists on finitely powerful computers.\n\nRegardless of where we go forward with Caching, it will be necessary to find some real-world cases that \nrequire caching before we commit serious time to the problem. Such cases will enable us to have a \nuser's perspective on caching."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(33)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("SortedList raw order support"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("SortedList should support raw order when the current comparator is NULL."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This is now high priority as it is needed for making TableComparatorChooser work better."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Done!\n\nAlthough the SortedList now supports raw-order sort, this is not supported by \nTableComparatorChooser."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(34)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("UniqueList sometimes does not forward events on a DELETE"); description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("UniqueList currently does not forward events on when a DELETE is encountered in \nthe following instance:\n\nThe element being removed is modelled in the unique view and has at least one \nduplicate. This should result in the duplicate being modelled in the unique \nview and an update event being forwarded.\n\nIn some circumstances, such as on a call to clear() on the source list, \nforwarding this event causes the following exception:\n\nChange blocks U.0 and D.0-1 intersect\njava.lang.IllegalStateException: Change blocks U.0 and D.0-1 intersect\nat com.odellengineeringltd.glazedlists.event.ListChangeBlock.requiresSwap\n(ListChangeBlock.java:185)...\n\nThis fix will require altering the current strategy for dealing with change \ncollisions in ListChangeBlock."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("UniqueList now forwards events correctly in all cases when handling DELETE \nevents."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(35)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P5"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("UniqueList needs a means of forwarding non-mandatory change events"); description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("UniqueList needs to provide access to non-mandatory change events for \noverlaying lists which want to listen to them."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This non-critical issue is being marked low-priority until Glazed Lists 1.0 has\nbeen released."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The solution is for UniqueList to use multiple ListEventAssemblers and to allow\nlisteners to choose which ListEventAssembler they subscribe to by overloading\nthe addListEventListener() method."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(36)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P5"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("FEATURE"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("GlazedLists requires a counted, unique view of a given list."); description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("This list type is based on the Bag ADT and is currently unnamed.\n\nThis class will sit on top of a UniqueList, and listen to all change events \nfrom the UniqueList to correctly provide access to not only a view which is \nguaranteed to be unique, but also the number of duplicate values for each \nunique value.\n\nAn example usage would be a list of votes for favourite pop.\n\nSource Unique View Unique, Counted\n------------------------------------------------------\nPepsi | Coke | Coke x 3\nCoke | MountainDew | Mountain Dew\nSprite | Pepsi | Pepsi x 2\nPepsi | Sprite | Sprite\nMountain Dew | |\nCoke | |\nCoke | |\n------------------------------------------------------\n\nClearly this could provide a valuable list view."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("Specified an explicit dependency upon Issue 35."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This non-critical issue is being marked low-priority until Glazed Lists 1.0 has\nbeen released."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This non-critical issue is being marked low-priority until Glazed Lists 1.0 has\nbeen released."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've added the getCount() method which works well and was very easy to\nimplement. Like all reading methods, this method is not thread safe. I think it\nwould be a good idea to comb through the Javadocs before 1.0 and add a standard\nthread safe warning to methods like these.\n\nAlso I attempted to implement listeners for the bag events but I failed because\nsometimes updates are thrown that collide with deletes or inserts. For example,\nif I have a change that deletes multiple instances of a value, the first few\ndeletes will throw updates and the last delete will throw a delete. These\nintersect and the ListEventAssembler complains. So this is on hold for now."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Fixed for now! We may add listeners for change counts later, but that will require some work on \nListEventAssembler.\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(37)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("TASK"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Glazed Lists version 0.8 release"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Glazed Lists version 0.8 is the last release before Glazed Lists undergoes the major API change.\n\nGlazed Lists 0.8 will be a release that should be permanently available on the Glazed Lists webpage for \nexisting users, but such users should be encouraged to migrate to Glazed Lists 0.9.\n\nGlazed Lists v0.8 does not inlcude:\n - the renaming of APIs and classes\n - the new concurrency model\n\nIt depents upon the following issues:\n 33 - SortedList raw order support\n 34 - UniqueList sometimes does not forward events on a DELETE\n 29 - ToString on BasicEventList, MutationList no good\n 30 - Verify ListTable changeSizeRepaintAllThreshhold works"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This issue depends on the outstanding bugs in the 0.8 release. It does not require new features or \nenhancements."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The 0.8 release can't be done until the SortedList is fixed and the UniqueList is finished (and verified)"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Version 0.8 was released on April 15, 2004."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(38)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P4"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("TableComparatorChooser icon can get out of sync"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("When the sorting of a list changes, the TableComparatorChooser fails to respond to this change \nappropriately. The TableComparatorChooser should show the proper icon, even if the sorted list's \ncomparator was selected elsewhere."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("TableComparatorChooser now responds to sorting criteria changing externally."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(39)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Sorting clears selection"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This problem will be very difficult to solve using the current Glazed Lists framework, but it is a valid \nproblem. Sorting clears the selection. \n\nThe only fix I can think of is to add a new type of event alongside INSERT, UPDATE and DELETE which is \ncalled MOVE. I think it is kind of an ugly hack on principal because it will impact all other lists if it is \nimplemented. \n\nI will have to give this one some more thought. Saving selection by value may be one option but that is \nalso rather a big ugly hack."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The \"ideal\" solution looks like it will cause major headaches to the rest of the\nGlazed Lists code. I think we should consider implementing a simpler solution\nthat keeps the selection by value rather than by index. This solution is\nstraightforward to implement and will be immediately useful to Glazed Lists' users."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("After a bunch of thinking I have come to the conclusion that this solution can\nbe implemented without compromising the rest of Glazed Lists.\n\nHere is my idea:\nAdd an extra property to each change event called \"is reorder\". Such events will\nalways contain remove all and insert all events so that they can be processed as\nthey are currently by regular lists. But lists that are reorder-aware can view\nthe reorder property and get an array of reorder indicies. \n\nHaving reorder supported in lists like filter list will improve performance!\nSuppose a sorted list is filtered. Then if that list is resorted, each element\nis currently tested to see if it shall still be filtered. But if the filter list\nsupports reordering, it can use the reorder and not need to refilter."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This solution is mostly implemented! The only thing left is to add support for \nmultiple sorted lists in sequence. This will be necessary for UniqueList \nsupport!\n\nOh boy!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have added support to major classes: SortedList (and UniqueList), AbstractFilterList, & \nEventSelectionModel.\n\nI will also need to add support for minor classes: CachingList, FreezableList, CompositeList. I am \nconsidering adding a method forwardEvent(ListChanges c) to speed up lists like FreezableList that \nsimply propagate changes."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(40)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Sorted List fails upon intensive filtering"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("SortedList fails upon an intensive amount of filtering. The SortedListTest must be updated to catch this \nfailure and the SortedList should also be fixed to remedy the problem.\n\n [junit] FILTER: 4, 5, 1, 6, 2, 3, 2, 8, 1, 3, \n [junit] SORTED: 1, 1, 2, 3, 2, 3, 4, 8, 5, 6,"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I was processing the events in the ListChangeEvent in a manner that was unsafe when there were \ninserts mixed with deletes.\n\nThe SortedList now fires all delete events first, and then goes on to handle the inserts and updates \nlater.\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(41)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("TASK"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Glazed Lists version 0.9 release"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This issue depends upon all issues to be resolved for the 0.9 release.\n\nThese issues include the name refactoring and API stability.\n\nGlazed Lists 0.9 is a release intended to have 100% compatibility with 1.0. This includes:\n - class & package names\n - concurrency strategy\n - event sequence strategy"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This release depends upon the 0.9 issues."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("TO DO, left in this release, off the top of my head:\n* make final classes final\n* determine where EventList iterator/sublist goes\n* tutorial? may defer to 1.0\n* rename main package (ca.odell.glazedlists)\n* port Query stuff to use UniqueList, move package to migrationkit\n* move DEMO out of Javadocs (new demo for 1.0 definitely needed)\n* change TableFormat to not include configureTable() method"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Released!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(42)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Enable concurrent mutation list modifications"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Currently the reader/writer locks lock ALL lists when any mutation list is being modified (ie. re-sorted).\n\nThe reader/writer locks should be changed to only lock dependent lists when such a modification takes \nplace.\n\nThis applies to:\n - AbstractFilterList\n - SortedList\n - UniqueList\n - CachingList\n - and potentially others"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Fixed . . . now the SortedList and AbstractFilterList can sort or filter multiple lists with the same source \nsimultaneously. This uses the new InternalReadWriteLock which delegates locking to a pair of \nReadWriteLocks."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(43)); currentIssue.setStatus("NEW"); currentIssue.setPriority("P5"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Potential deadlock in CachingList"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The CachingList acquires a WriteLock when it may already have a ReadLock.\n\nThis is DANGEROUS! It is possible that two CachingLists may each have readlocks, and contest over a \nwrite lock to their doom!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Simple solution: make CachingList.getReadLock() return the write lock."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(44)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("remove(object), clear() can have unwanted side effects"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Suppose we have a List \"alphabet\" containing \"A\", \"B\", \"C\", \"D\", \"E\", \"F\".\nIf we call alphabet.subList(1, 3).clear(), then the list alphabet should change to \"A\", \"D\", \"E\", \"F\".\nBut Glazed Lists clears the entire list alphabet.\n\nSimilar problems exist upon clearing filtered lists, etc.\n\nThis problem exists in the following List methods:\nclear()\nremove(Object)\nremoveAll(Collection)\nretainAll(Collection)"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Fixed! Hopefully, this doesn't ruin any code in place because the behaviour of SubList etc.\nare now correct. Existing code could possibly depend on the incorrect implementations!\nHopefully that does not prove to be a problem.\n\nThis fix allows us to do cool things, as I will demonstrate:\n\nSuppose we have a list, alphabet composed of { A, B, C, D, E, F, G, H, I, J, K }\nAnd we constructed a transformed list vowels, which filtered alphabet to { A, E, I }\nThen if we do vowels.clear(), we get the following result:\nalphabet becomes: B, C, D, F, G, H, J, K\n\nCool, no? This would be made more powerful with a better example. Perhaps a list of email addresses, \nand a filter list that picks the SPAM or whatever."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(45)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Add write functionality to UniqueList"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The UniqueList should be writable. Some write methods to include:\n\nadd(), remove(), set() . . .\n\nThe most interesting ones to implement will be the remove() methods as they may require removing \nmultiple duplicates from the source list."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have added write support to UniqueList.\n\nThere is an interesting problem posed by supporting writing in UniqueList, as well as writing in other \ncode already implemented via bug 44.\n\nMethods such as clear() on a filter list may call several remove() methods on the underlying source list. \nThese remove() methods fire the event listeners and other lists receive notification for each of many \nremoves within a clear. Such listeners will likely read from their source list to respond to the change, \nand it is possible that this source list is still in the process of changing due to the clear() method. \nTherefore:\n - such methods that call multiple changing methods on their source list must be in a consistent state \nfor each such method call\n - such methods must be implemented in a way that safely handles receiving a change event after each \nsource list modification.\n\nThese multiple source method calling lists are troublesome and it may be worthwhile to find a way to \nbundle a set of methods to invoke on a source list as a group. This is a sophisticated problem and will \nrequire some research. For the time being, guaranteeing consistency and event safety should be \nsufficient."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(46)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P4"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("UniqueList, FilterList fire multiple events for some operations"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("UniqueList.clear(), FilterList.clear(), SubList.clear() all can fire multiple ListEvents when only a single \noperation is performed upon them.\n\nThis can be fixed by causing such lists to not propogate changes until they are all done."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("These lists now only fire one event for the said operations. A new test class\nhas also been added to verify this behaviour."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(47)); currentIssue.setStatus("STARTED"); currentIssue.setPriority("P5"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("kevinmaltby"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Threshhold List"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Suppose we have a list of Objects, each of which has a date created.\n\nIt should be possible to create a filter that filters for where the date created is less than or greater than \na specified threshhold. This should be possible for any criteria that can take a range of values - in \neffect anything that is Comparable.\n\nCurrently this is possible using the AbstractFilterList, but it is not 'smart' enough to know how \nadjustments in the criteria require only a subset of the values to be readjusted. A clever implementation \nof this would use a sorted set, and binary search to find the seperator between those that meet the \ncriteria and those that do not.\n\nI was thinking a \"Date Slider\" Swing widget would be a good prototype of this!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This non-critical issue is being marked low-priority until Glazed Lists 1.0 has\nbeen released."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("assigned issue to myself"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("I've hammered out some code towards the creation of this list that is yet to be \nin cvs, but hopefully by the end of the month this list should be available to \nthe world. My initial implementaion followed the design of UniqueList which \nprovides explicit sorting by wrapping a SortedList.\n\nHowever, during construction it occurred to me that the explicit sorting might \nnot be desirable. My second implementation sorts the list internally to keeps \ncalls to setThreshold() super fast, but does not enforce a particular sort \norder."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("Well after roughly a month out of town, and 4 different versions of the code \nfor this feature, ThresholdList is nearing public release.\n\nWhile keeping the underlying sort order might offer some business value to this \ntransformation, doing so comes with a significant performance penalty. As \nsuch, I have returned to the earlier requirement for this transformation to \nexplicitly sort the list. The sorting is performed internally for performance \nreasons over simply wrapping a SortedList as UniqueList does.\n\nCurrently I am working to clean up the implementation a bit after having Jesse \ncode-review my classes. With any luck this code should be available within 2 \nweeks at the latest."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Kevin's code was 1000x better today than two weeks ago. He's modest, but today's code is really good.\n\nWe have added 3 public classes to the codebase:\n - ThresholdEvaluator interface gets an int from a given Object\n - ThresholdList, sorts and limits a list by a ThresholdEvaluator value\n - ThresholdRangeModelFactory - creates range models for use in a Slider\n\nThis stuff also lends itself to use with ComboBoxes and such!\n\nTo Do:\n - test the heck out of it\n - add Kev's tutorial page to website, revise tutorial\n - integrate into demo\n\nWe're almost done!"); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(48)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Migrationkit's DynamicQueryList fails to forward events"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The Migrationkit's DynamicQueryList class is not forwarding events."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has already been fixed.\n\nThe fix is NOT in the Glazed Lists 0.9 release, but it will be in the next Glazed Lists release. The fix is \nalso available via CVS."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(49)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("TASK"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Tutorial v. 0.9"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Glazed Lists needs a new tutorial. It would be great if this tutorial involved a newer, more exciting and \nmore powerful demo app.\n\nMy current two ideas are:\n - a bugzilla XML browser\n - a Pop3 client\n\nSuch involve lots of lists and could take good advantage of Glazed Lists' ability to transform lists.\n\nThe demo should involve:\n - Multiple-criterea sorting\n - Text Filtering & Custom Filtering\n - UniqueList, UniqueList on a derived list\n - Transformed List\n - JTable, JComboBox & JList\n\nThe demo should not rely on third-party libraries or tools for simplicity."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("progress on this is going very well! I already have a preview of the tutorial\nonline, and a few more steps and it will be done.\n\nTodo: \n1. Concurrency\n2. CompositeList (?)\n3. Performance"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've added Concurrency. \n\nThis tutorial needs to be revamped and sexed up, but I don't feel like doing it! I wonder if we can \nconvince one of our users to do it! ha ha ha."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(50)); currentIssue.setStatus("STARTED"); currentIssue.setPriority("P5"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("SWT Support"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Glazed Lists does not support SWT. This toolkit is growing in importance and Glazed Lists is well suited \nfor this platform.\n\nSome things to consider:\n - I need an SWT 'expert', either by becoming one or by finding a volunteer\n - SWT compilation into the .jar file must be conditional. SWT support should be in source-form only \nand compiled only if SWT classes are available on the user's class path.\n - From my initial research, SWT is not as model-driven as Swing. Although this does not pose a \nproblem it may require a change in approach\n - We need to choose an SWT version to support. 3.0 is coming out soon but I have no idea what the \nactual SWT users in the field are using."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This non-critical issue is being marked low-priority until Glazed Lists 1.0 has\nbeen released."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've added some SWT support to Glazed Lists!\n\nI ported the following classes from Swing to SWT:\n * EventTableModel (now EventTableViewer)\n * TableFormat\n * TextFilterList\n\nYet I still have some issues to resolve:\n * concurrency support in EventTableViewer\n * hitting ENTER in the TextFilterList\n * EventTableViewer handling column widths\n * EventTableViewer handling column alignment\n * EventTableViewer handling Images as cell contents\n * EventTableViewer sorting via clicking on the table's header\n\nSo I have my work cut out for me. SWT is not that tricky to hack on, but it is kind of a pain to get up \nand running.\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Today I added support for EventTableViewer keeping the Selection between ListChanges. The \nimplemented algorithm is simple and reliable but slow. It will be desirable to speed this up to support \nreally big tables!\n\nSWT is becoming a high priority at O'Dell Engineering so I think this bug will receive some well deserved \nattention."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Today I added some support for SWT's checked tables.\n\nThe classes are \"Checkable\" and \"TableCheckFilterList\". There are some limitations, however.\n* TableCheckFilterList inspects the table's check items so there may not be any TransformationLists \nbetween the TableCheckFilterList and the EventTableViewer.\n* Checkable objects may not be shared between tables.\n\nIf I can think of work-arounds or fixes for these limitations, I'll post another update.\n"); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(51)); currentIssue.setStatus("STARTED"); currentIssue.setPriority("P3"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("TASK"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Implement Chunk Transfer Protocol client & servers"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("We have hacked out a basic plan for the initial network protocol for Glazed Lists.\n\nWe are going to use a layered protocol to isolate concerns:\n - \"Chunk Transfer Protocol\" is our base protocol. This is a simplification of HTTP/1.1 with chunked \nencoding. We would like Glazed Lists to work through HTTP proxies and HTTP-aware firewalls so this \nprotocol shall be a subset of HTTP/1.1.\n - \"Update Subscription Protocol\" is an update-push protocol that sits on top of CTP and adds some \napplication-specific features. This will initially consist of update sequencing. Eventual features for this \nare digitally signed updates, peer-to-peer support and NAT evasion.\n - Glazed Lists on the network will specify an encoding for list updates that can be transferred via USP. \n\nAll encodings must have the following properties:\n - well documented to allow for alternative implementations\n - extendible without breaking clients using previous versions\n - language and platform neutral\n - simple!\n\nAll that said, we need to implement the first step, Chunk Transfer Protocol. Here are the interfaces for \nthe initial version of CTP:\n\nCTPServerProtocol\nvoid sendResponse(int code, Map headers) throws CTPException;\nvoid sendChunk(byte[] data) throws CTPException;\nvoid close();\nCTPServerHandler\nvoid receiveGet(CTPServerProtocol source, String uri, Map headers);\nvoid connectionClosed(CTPServerProtocol source, Exception reason);\n\nCTPClientProtocol\nvoid sendGet(String uri, Map headers) throws CTPException;\nvoid close();\nCTPClientHandler\nvoid receiveResponse(CTPClientProtocol source, int code, Map headers);\nvoid receiveChunk(CTPClientProtocol source, byte[] data);\nvoid connectionClosed(CTPClientProtocol source, Exception reason);\n\nIt should be straightforward to create a simple implementation that uses sockets. This design should \nalso hopefully be extendable for use with Java's buffered IO, java.nio."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("About 90% of ChunkedTransferProtocol is implemented.\n\nLeft to do:\n - Buffer sizing, including setting the initial size & max size\n - Handling method calls from other threads\n - Listen port selection\n - Stop() method\n\nMy ChunkedTransferProtocol implementation has the following notes:\n - it starts its own thread that does all the networking via NIO\n - it uses a subset of HTTP that should slip nicely through proxy servers\n - it handles the case where the proxy removes chunking (although no Content-Length)\n - Server and client share the same connection class\n\nHaving come this far, I will leave the remaining four tasks until I have built more of USP on top of CTP. \nUSP is \"Update Subscription Protocol\", I will be creating an issue for tracking its development."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(52)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Support 'nested' change events"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Adding support for nested change events may simplify the code and may even make it more powerful.\n\nCurrently, some classes such as TransformationList implement clear(), removeAll() etc. as a series of \nremove() calls. This fires a series of events when only one event should be fired.\n\nThe solution is to create 'nested' change events such as\nbeginNestedChange()\ncommitNestedChange()\n\nwhich can contain within it many calls to beginChange() / commitChange(), where such commits do not \nactually send the events."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've added support for nested changes.\n\nThe new method is:\nbeginEvent(true), which means \"Begin an event with support for nested changes\"\nas an alternative to \"beginEvent(false) and beginEvent(), which mean \"Begin an\nevent that throws an exception when creating a nested change\".\n\nThis is already in use by clear(), removeAll() and retainAll() in\nTransformationList and replaceAll() in UniqueList. If implementing this in your\ncode, remember that Iterators behaviour will change if they stop receiving\nchange event notification.\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(53)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Protected constructors on final classes"); description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("Both ReadOnlyList and ThreadSafeList have protected constructors. This is most \nlikely in error, particularly because both classes are final. These should be \nmade public (I would do it but my CVS still doesn't want to work at my new \nplace)."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This was an easy fix. We have to get Kevin some CVS access!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(54)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("EventSelectionModel does not support concurrency"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("In implementing EventSelectionModel we made some incorrect assumptions about\nmultithreading. The problem is that although the accessing thead will usually be\nthe event dispatch thread, we must be able to read the model while another\nthread is modifying the source list."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have added concurrency support with an Internal lock."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(55)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("UniqueList events delete indicies that do not exist"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I ran into a problem when coupling EventSelectionModel\nand UniqueList, so I decided to enhance the ConsistencyTestList\nto verify that UniqueList is well behaved.\n\nFrom my tests, the UniqueList can sometimes delete indicies\nthat have not yet been created! For example, on a list of\nsize 5, it might delete at 6 and later on insert at 6 to\nretain size consistency.\n\nI am going to dive into the UniqueList code to attempt to\nfind the problem. Hopefully it is either a mis-reported\nproblem or an easy fix!\n\nTo reproduce, add the following line to the end of the\nUniqueList constructor, and run the JUnit tests.\n addListEventListener(new ca.odell.glazedlists.test.ConsistencyTestList(this,\n\"unique\"));\n\nThe (first of many) exception I received was:\n\n [junit] java.lang.Exception: unique/1 cannot delete at 2, size is: 2\n [junit] at\nca.odell.glazedlists.test.ConsistencyTestList.listChanged(ConsistencyTestList.java:63)\n [junit] at\nca.odell.glazedlists.event.ListEventAssembler.fireEvent(ListEventAssembler.java:248)\n [junit] at\nca.odell.glazedlists.event.ListEventAssembler.commitEvent(ListEventAssembler.java:221)\n [junit] at ca.odell.glazedlists.UniqueList.listChanged(UniqueList.java:152)\n [junit] at\nca.odell.glazedlists.event.ListEventAssembler.fireEvent(ListEventAssembler.java:248)\n [junit] at\nca.odell.glazedlists.event.ListEventAssembler.commitEvent(ListEventAssembler.java:221)\n [junit] at ca.odell.glazedlists.SortedList.listChanged(SortedList.java:174)\n [junit] at\nca.odell.glazedlists.event.ListEventAssembler.fireEvent(ListEventAssembler.java:248)\n [junit] at\nca.odell.glazedlists.event.ListEventAssembler.commitEvent(ListEventAssembler.java:221)\n [junit] at\nca.odell.glazedlists.AbstractFilterList.handleFilterChanged(AbstractFilterList.java:196)\n [junit] at\nca.odell.glazedlists.test.IntArrayFilterList.setFilter(IntArrayFilterList.java:33)\n [junit] at\nca.odell.glazedlists.test.UniqueListTest.testUpdateDeleteCollide(UniqueListTest.java:514)\n [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n [junit] at\nsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\n [junit] at\nsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\n [junit] at java.lang.reflect.Method.invoke(Method.java:582)\n [junit] at junit.framework.TestCase.runTest(TestCase.java:154)\n [junit] at junit.framework.TestCase.runBare(TestCase.java:127)\n [junit] at junit.framework.TestResult$1.protect(TestResult.java:106)\n [junit] at junit.framework.TestResult.runProtected(TestResult.java:124)\n [junit] at junit.framework.TestResult.run(TestResult.java:109)\n [junit] at junit.framework.TestCase.run(TestCase.java:118)\n [junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)\n [junit] at junit.framework.TestSuite.run(TestSuite.java:203)\n [junit] at\norg.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)\n [junit] at\norg.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:524)"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have found the cause of this problem!\n\nThe problem is that UniqueList uses \"delayed inserts\". This means it does not\nadd into to the event list any insert events until all delete and update events\nhave been inserted.\n\nThe problem is that the delete indicies are all offset the insert indicies, and\nthe insert indicies are missing.\n\nHere is a simple example.\nI have a list \"A B\" that I change to \"C\".\n\nThe change event should be \"delete 0-1, insert 0\"\n\nBefore re-ordering, it is currently \"delete 1-2, insert 0\", which is wrong and\nillegal.\n\nThe solution is to keep an offset index that increments with every index, and\nthis value is subtracted from every delete.\n\nNow, all's left is implementation!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("fixed! I would like Kevin to look over my fix to verify that I did the right thing!\n\nPerhaps we could add some more tests to verify that this kind of thing doesn't\nhappen again!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(56)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("UniqueList replaceAll() can clear selection"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The replaceAll() method should use UPDATE events whenever possible.\nCurrently it forwards DELETE/INSERT events that can clear selection.\n\nIn order for UniqueList to completely replace query lists, this functionality is\nabsolutely mandatory."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("After a bunch of thinking I have come to the conclusion that this solution can\nbe implemented without compromising the rest of Glazed Lists.\n\nHere is my idea:\nAdd an extra property to each change event called \"is reorder\". Such events will\nalways contain remove all and insert all events so that they can be processed as\nthey are currently by regular lists. But lists that are reorder-aware can view\nthe reorder property and get an array of reorder indicies. \n\nHaving reorder supported in lists like filter list will improve performance!\nSuppose a sorted list is filtered. Then if that list is resorted, each element\nis currently tested to see if it shall still be filtered. But if the filter list\nsupports reordering, it can use the reorder and not need to refilter."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Whoops! My bad. \n\nThe previous comment is supposed to be on Issue 39."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("From my analysis, this problem may require changing the way the UniqueList\nlistChanged() method is handled. I think that a 2-pass algorithm may remove all\nthe events that are currently not optimized.\n\nPass 1: Update the duplicatesList by inserting a non-duplicate for every\ninserted and updated value, remove all deleted values. Create a working array\ncontaining the previous values for each updated index: either DUPLICATE or\nNON-DUPLICATE\n\nPass 2: Iterate simultaneously through the update event and the previous value\narray. For each index, determine if it is now a DUPLICATE or NON-DUPLICATE and\ncompare that to the previous value. Forward events as necessary."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("As a consequence of much thought on Friday afternoon, this bug is very fixed and \nthe solution is awesome. Much thanks to Kevin for being my brain-storming buddy \non this solution.\n\nHorray!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(57)); currentIssue.setStatus("NEW"); currentIssue.setPriority("P3"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("TASK"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Glazed Lists version 1.0 release"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This issue depends upon all issues to be resolved for the 1.0 release.\n\nGlazed Lists 1.0 is the production-quality and feature-complete release of\nGlazed Lists. There are many issues that must be resolved for this release.\n\n - UniqueList replaceAll() can clear selection\n - CompositeList not thread-safe\n - Glazed lists on the network\n - Tutorial v. 0.9\n\nSome issues would also be 'nice-to-have' for 1.0. In particular:\n - Sorting clears selection (this may require a work-around implementation)\n\nAs of June 25 I am marking all non-1.0 issues as lowest priority. Such issues\nmay be removed at a later date if it is determined that they shall not be\nimplemented."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(58)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("UniqueList and SortedList not optimized for contains and containsAll methods"); description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("Current implementations of both SortedList and UniqueList do not take advantage \nof optimizations available since the lists are in sorted order. Namely, the \ncontains and containsAll methods could boast significant performance \nimprovements if they are optimized."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("Adding this optimization to SortedList is simple. Overload contains with a one \nline method which returns true iff sorted.getNode returns non-null. For \ncontainsAll, simply iterate through the collection and call contains for each \nelement."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("The enhancement for UniqueList must be a little more complex. For a simple and \nreasonably fast implementation, the underlying SortedList's contains and \ncontainsAll methods could be called. However, this produces very odd and \ncounter-intuitive best and worst cases. The best case is to have no duplicates \nin the UniqueList, since no duplicates would be repeatedly compared. This \nimplementation would yield a worst case of having n identical items in the \nUniqueList, or just one element in the compressed view."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("However, these best and worst cases SHOULD be the exact opposite for a \nUniqueList. The above worst case SHOULD require only a single comparison for a \ncall to contains and SHOULD be the best case for searching a UniqueList. \nLikewise, the above best case should be the worst case as it would be the \nlargest possible set to search on.\n\nDue to the fact that the SparseList ADT isn't inherently a sorted set, further \noptimization is a little more tricky. I'm trying to come up with a good way to \ntake advantage of searching only the unique view. Any clever ideas?"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Implementation of this should simply use the public API method \"get(index)\" and\na binary search.\n\nThe following methods should also be implemented:\n indexOf()\n lastIndexOf()\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Fixed! Kevin added binary search methods to both these classes. 50% faster*.\n\n\n*based on 1 test."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(59)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("WORKSFORME"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("read-only access is broken once a ReadOnlyList is decorated by a writable list."); description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("The error is not to be found in ReadOnlyList but as a consequence of layering \nwith ReadOnlyList.\n\nConsider the following:\n\nA BasicEventList containing aribitrary data.\n\nA ReadOnlyList wrapping that data to prevent changes.\n\nA SortedList wrapping the ReadOnlyList to provide a sorted view of that read-\nonly data.\n\nThis will scenario will allow a write operation on the SortedList."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("This problem cannot be replicated with a fresh checkout of the source. I \nimagine my local copy of ReadOnlyList was out of sync due to some testing and \namidst my recent CVS troubles I had forgotten about the change. This issue \nshould be closed."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(60)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("SortedList fires insert & delete instead of updates"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("When updating a range of values in a sorted list, the sorted list sends a \nsequence of delete and insert events instead of update evetns, even if the order \ndoes not change."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I am very close to having a complete solution to this.\n\nThe current potential problems - \n - multiple updates co-existing with non-updated indices\n - updates with multiple copies of the same source value\n - high-performance (the current implementation has some O(n^2) methods)\n\nBut the solution is good and it seems to work. Oh boy!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Upon further research, some discoveries:\n - multiple copies of the same value breaks because of the non-deterministic insert order in \nIndexedTree. I will try to fix this.\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The \"non-deterministic\" insert order from before is a lie - it is actually just \"insert at head\" instead of \nthe preferred \"insert at tail\". This has been changed and now SortedList works with multiple values \nquite well!\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This fix for this issue was very involved and required the addition of two helper classes to SortedList, \nIndicesPendingDeletion, a wrapper around a TreeSet, and IndexNodePair, a union of a node and the \nindex from which it came."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(61)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P5"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("SetEnabled(boolean) on EventSelectionModel"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("It would be great if we could disable changing of the table selection via a\nsetEnabled() method on EventSelectionModel.\n\nI'm not 100% sure this will work well with JTable & JList, but if possible, it\nwould make for a great addition to the JTable's existing functionality."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("EventSelectionModel.setEnabled(false) will now prevent the user from changing the selection.\n\nThe selection can still be changed however. If the list changes, the selection may change. For example, \nif a selected item is deleted, it will no longer be selected!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(62)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P4"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("SortedList indexOf() etc. make multiple tree calls"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The current implementation of SortedList has a faster version of the methods indexOf, lastIndexOf and \ncontains. These methods perform binary searches of the list using the sorted ordering. These \noperations make O(log n) tree calls, each of which as an O(log n) cost. Total cost is O(log n * log n). For \nexample, on a tree of size 1000, this cost is O(100).\n\nThese methods can be made faster by using calls on the sorted tree. Such an implementation will have \na total cost of O(log n). For example, on a tree of size 1000, this cost is O(10).\n\nThe IndexedTree classes may need to be modified for new indexOf methods."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Revised priority, etc. of bug which were wrong."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Kevin implemented the fix, I am merely the reporter. Here is what Kevin had to say:\n\n\nSortedList Changes:\n\n- Fixed flawed comment for lastIndexOf()\n- Changed indexOf(), lastIndexOf(), and contains() so that they now call\n the corresponding method on the sorted tree to cut the cost down to\n one tree call from SortedList giving O(log(n)) runtime.\n- Removed now redundant binary search methods\n- Improved the IndexedTreeNodeComparator inner class to compare both\n standard Objects and IndexedTreeNodes to make this bug fix possible\n \nSortedListTest Changes:\n- Added an additional test to each of the indexOf() lastIndexOf() and contains()\n testcases to test on an empty list.\n \nIndexedTree Changes:\n\n- Added support for indexOf(), lastIndexOf() and contains()\n \nIndexedTreeNode Changes:\n- Implemented support for each of the new methods on the IndexedTree interface.\n\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(63)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P5"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("EventLists don't get garbage collected unless source list is garbage collected.."); description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("With the current system, once an EventList is created it lives until the app \nterminates, or the source list is garbage collected. EventLists need to have \ndefined lifecycle methods, such as dispose() for example, to allow them to be \npicked up by gc() when you no longer need them.\n\nFor most applications the EventLists used to transform a source list will live \nfor the entire lifespan of the source list. However, it is concievable that an \napplication might destroy and create lists on a particular source over time and \nthose should be garbage collected when possible."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("changed priority."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've added a dispose() method to TransformedList.\n\nThe UniqueList overrides this method to manually dispose the SortedList, other chained lists should do \nthis too!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(64)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("WORKSFORME"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Multithreading problem in demo app & tutorial part 6."); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I get the following exception, I am assuming it is due to the issues being loaded before the GUI is \ncompletely constructed.\n\njava.lang.NullPointerException\n at IssuesUserFilter.filterMatches(IssuesUserFilter.java:74)\n at ca.odell.glazedlists.AbstractFilterList.listChanged(AbstractFilterList.java:138)\n at ca.odell.glazedlists.event.ListEventAssembler.fireEvent(ListEventAssembler.java:289)\n at ca.odell.glazedlists.event.ListEventAssembler.commitEvent(ListEventAssembler.java:256)\n at IssuesList.listChanged(IssuesList.java:82)\n at ca.odell.glazedlists.event.ListEventAssembler.fireEvent(ListEventAssembler.java:289)\n at ca.odell.glazedlists.event.ListEventAssembler.commitEvent(ListEventAssembler.java:256)\n at ca.odell.glazedlists.UniqueList.replaceAll(UniqueList.java:514)\n at IssuesList$IssuesRefreshTask.run(IssuesList.java:67)\n at java.util.TimerThread.mainLoop(Timer.java:432)\n at java.util.TimerThread.run(Timer.java:382)\nException in thread \"main\" java.util.ConcurrentModificationException: Cannot begin a new event while \nanother event is in progress\n at ca.odell.glazedlists.event.ListEventAssembler.beginEvent(ListEventAssembler.java:94)\n at ca.odell.glazedlists.event.ListEventAssembler.beginEvent(ListEventAssembler.java:72)\n at ca.odell.glazedlists.AbstractFilterList.handleFilterChanged(AbstractFilterList.java:199)\n at IssuesUserFilter.<init>(IssuesUserFilter.java:52)\n at IssuesBrowser.display(IssuesBrowser.java:43)\n at IssuesBrowser.main(IssuesBrowser.java:81)"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I tried to reproduce this problem and I can't. If anybody else can, could you please send a stack trace? \nThe stack trace provided is from an old revision as IssueUserFilter cannot throw a null pointer exception \non line 74 (as there are no dereferences on 74)."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I couldn't reproduce this problem. It is possible that another bug that has since been fixed was \nconfounding with this one?"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(65)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P1"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("Tutorial part 3 references outdated API"); description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("Part 3 of the Tutorial references the old API for getFilterStrings() on \nTextFilterable."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I have added a new branch of tutorial, tutorial-0.9.1\nhttp://publicobject.com/glazedlists/tutorial-0.9.1/\n\nNote that although tutorial numbers equal Glazed Lists numbers, there may be some Glazed Lists \nreleases that skip a tutorial release. Also, the tutorial could be rewritten by someone a little less \nexperienced who can point out the finer details of Glazed Lists development! As an experienced user I \nthink I glossed over some things too much since they are too familiar to me!\n\nAlso the tutorial has been moved out of CVS and onto the website only. I have added a tutorial zip to \nthe java.net file archives."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(66)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P1"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("issues@glazedlists"); currentIssue.setSubcomponent("www"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("issues@glazedlists"); currentIssue.setShortDescription("SortedList fires empty events on setComparator"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("SortedList fires empty update events on setComparator(). This can throw off the EventTableModel etc.\n\napple.awt.EventQueueExceptionHandler Caught Throwable : \njava.lang.IndexOutOfBoundsException: bitIndex < 0: -1\n at java.util.BitSet.get(BitSet.java:459)\n at javax.swing.DefaultListSelectionModel.clear(DefaultListSelectionModel.java:277)\n at javax.swing.DefaultListSelectionModel.setState(DefaultListSelectionModel.java:489)\n at javax.swing.DefaultListSelectionModel.removeIndexInterval(DefaultListSelectionModel.java:544)\n at javax.swing.JTable.tableRowsDeleted(JTable.java:2971)\n at javax.swing.JTable.tableChanged(JTable.java:2874)\n at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:280)\n at ca.odell.glazedlists.swing.EventTableModel.listChanged(EventTableModel.java:118)\n at ca.odell.glazedlists.event.EventThreadProxy.listChanged(EventThreadProxy.java:44)\n at ca.odell.glazedlists.event.ListEventAssembler.fireEvent(ListEventAssembler.java:289)\n at ca.odell.glazedlists.event.ListEventAssembler.commitEvent(ListEventAssembler.java:256)\n at ca.odell.glazedlists.SortedList.setComparator(SortedList.java:321)\n at \nca.odell.glazedlists.swing.TableComparatorChooser.columnClicked(TableComparatorChooser.java:306)\n at \nca.odell.glazedlists.swing.TableComparatorChooser.mouseClicked(TableComparatorChooser.java:179)\n at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)\n at java.awt.Component.processMouseEvent(Component.java:5103)\n at java.awt.Component.processEvent(Component.java:4897)\n at java.awt.Container.processEvent(Container.java:1569)\n at java.awt.Component.dispatchEventImpl(Component.java:3615)\n at java.awt.Container.dispatchEventImpl(Container.java:1627)\n at java.awt.Component.dispatchEvent(Component.java:3477)\n at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)\n at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3207)\n at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)\n at java.awt.Container.dispatchEventImpl(Container.java:1613)\n at java.awt.Window.dispatchEventImpl(Window.java:1606)\n at java.awt.Component.dispatchEvent(Component.java:3477)\n at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)\n at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)\n at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)\n at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This was an easy fix. The problem stems from when we added support to retain selection through a \nsort as we forgot to support 0-element lists in that case."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(67)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P4"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.1"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("SparseList makes 2 tree calls when 1 will suffice"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("SparseList models a list with some elements filtered out. This is accomplished using a tree whose nodes \ncontain two indices: relative to all elements and relative only to unfiltered elements.\n\nThe getIndex and getCompressedIndex methods are performed in two stages:\n - get the corresponding node\n - get the appropriate index for that node\n\nThis two-stage process can be condensed into one by adding a method to SparseList's nodes to \nperform this operation in one step.\n\nImplementing this performance enhancement will have the following Big-O impact:\n - Currently a getIndex() on a list of size 1000 takes O(10 + 10)\n - After the optimization, on a list of size 1000 this takes O(10)\n\nAlthough this is a very lowlevel optimization, it occurs in a frequently called method. The implementor \nshould record real-world times on getIndex and getCompressedIndex before and after the fix to see if \nthe real-world results compare to the theoretical ones."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Now speedier!\n\nI created a sample program that does repeated gets() from a FilterList.\nOriginally this program took 14 seconds to run.\nAfter the optimization, it takes 8.9 seconds!\n\nAlright! Only problem is that there aren't very many obvious optimizations left!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(68)); currentIssue.setStatus("NEW"); currentIssue.setPriority("P3"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.1"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("file"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("Glazed lists on the filesystem"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Glazed Lists should store and retrieve list data using the filesystem.\n\nThe uses for this are numerous:\n - data caching\n - database style persistence\n\nIt would be desirable for such an implementation to be:\n - really, really easy to use\n - transactionable (preferrably using a supported API such as JTA)\n - very fault tolerant\n\nSee prevalayer for a more general-purpose implementation of this functionality.\n\nJava programmers would love to use an List API to persist data. This could be awesome."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("I was pondering the implementation of this feature and I suddenly remembered an \narticle from an old JDJ. After making use of my JDJ Resource CD, I tracked it \ndown in Volume 8, Issue 11. The article is entitled \"Enabling a File System as \na Transactional Resource\". Some the work we will need to do to implement this \nfeature may have been partially solved in the article. Is it exactly what we \nneed? Probably not, but it's still worth a read.\n\nThe web version for any of you with digital subscriptions to the JDJ or access \nvia the Resource CD is:\n\nhttp://sys-con.com/story/?storyid=37798&DE=1"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("*** Issue 74 has been marked as a duplicate of this issue. ***"); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(69)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.1"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("Build fails on junit"); description = new Description(); description.setWho("pkuzel"); description.setWhen(null); description.setText("Default target excludes *Test classes by there is one not folowing the pattren.\n\ncompile:\n [mkdir] Created dir: /data/cvs/javanet/glazedlists/classes\n [javac] Compiling 82 source files to /data/cvs/javanet/glazedlists/classes\n [javac]\n/data/cvs/javanet/glazedlists/source/ca/odell/glazedlists/test/ThreadedCompositeRunner.java:10:\npackage junit.framework does not exist\n [javac] import junit.framework.*;\n [javac] ^\n [javac] Note: Some input files use or override a deprecated API.\n [javac] Note: Recompile with -deprecation for details.\n [javac] 1 error"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("pkuzel"); description.setWhen(null); description.setText("Created an attachment (id=3)\nA simple patch\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This was a total oversight on my behalf and has now been resolved."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(70)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("INVALID"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.1"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("swing"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("UI does not allow to remove sorting order"); description = new Description(); description.setWho("pkuzel"); description.setWhen(null); description.setText("TableComparatorChooser instals header UI that allow to select sort by mouse\nclicks order but it *cannot* be removed.\n\nExpected behaviour: on third click remove sorting by selected column."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This is the problem that I have not yet solved. The fix is\nfairly straightforward yet I do not know if it is natural.\nYou suggest the expected behavior of a 3rd click removing\nsorting. Although practical, this is not the behavior found\nin native Windows or Mac OS X tables. Mind you, I have\nnot yet seen another implementation of multiple-column\nsorting, so my experience is constrained to single column\nsorting.\n\nDo you think that this would be a worthwhile option to\nbe set on the TableComparatorChooser? I just think that\nbeing the same as Mac and Windows is preferable only\nbecause that will be the behavior that users will be most\nfamiliar with.\n\nLet me know what you think about this, and I will consider\nadding a method or changing the behavior."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Currently we have no compelling reason to change the behaviour. If I am presented with such, this bug \nmay be reopened!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(71)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.1"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("Event API antipatterns"); description = new Description(); description.setWho("pkuzel"); description.setWhen(null); description.setText("ListEventListener:\n\n * <p>It is mandatory that the calling thread has obtained the write lock\n * on the source list. This guarantees the listener can read and write the\n * source list without obtaining any further locks.\n\nAFAIK it's pure antipattern. Commonly any event listener must not alter event\nsource synchronously to avoid:\n - dispatching out of date events to other listeners\n - infinite event loops\n\nListEvent & ListEventAssembler\n\nMy undertanding is that all clients get the same ListEvent object.\nUnfortunatelly ListEvent is mutable and therefore \"consumed\" by the first\nlistener. May be it should be cloned before firing it."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This was a documentation error. Fortunately we do not follow the terrible\npractices as suggested by our own documentation. The documentation has\nbeen corrected and we have made note that the source list shall not be changed\nin the handling of an event.\n\nThe documentation error has been corrected:\n * <p>It is mandatory that the calling thread has obtained the write lock\n * on the source list. This is because the calling thread will have written\n * to the source list to cause this event. This condition guarantees that\n * no writes can occur while the listener is handling this event.\n * It is an error to write to the source list while processing an event.\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(72)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.1"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("TASK"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("Note on issue 71"); description = new Description(); description.setWho("pkuzel"); description.setWhen(null); description.setText("I cannot edit issues. I had to fill next one. This one represents additional\nnote issue #71.\n\nRegarding event source mutability and event firing I can see that your solution\ncould work if EventAssembler fires updated events. I.e. if a listener changes a\nsource list then:\n - all already notified listeners get the event decribing the additional change\n - listener itself gets no event \n - all not yet notified listeners get an event desribing both original change\n and new change (blocks)\n\nIt could be hard to implement. Hopefully unit test could be simple."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Fortunately we do not have to worry about this problem.\n\nListeners are strictly not allowed to modify their source lists in the processing of list events, and that's \nfinal!\n\nFortunately if a listener does not like the contents of a source list, it is free to present and alternate \nview of that list that it likes better. We call these \"TransformationLists\" and they are the basis of this \nproject. \n\nFinally, for good measure:\nDO NOT MODIFY A LIST WHILE PROCESSING AN EVENT THAT IT SENT YOU! IT WILL MEAN BIG TROUBLE \nFOR YOU! PROBABLY A CONCURRENTMODIFICATIONEXCEPTION!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(73)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("ArrayIndexOutOfBoundsException on J2SE 5.0 beta 2"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I got the following Exception upon starting the demo app.\n\ndeathstar:glazedlists$ java -jar glazedlists.jar \nException in thread \"AWT-EventQueue-0\" java.lang.ArrayIndexOutOfBoundsException:\nInvalid range for selection: 0-0, list size is 0\n at\nca.odell.glazedlists.swing.EventSelectionModel$EventListSelectionModel.setSubRangeOfRange(EventSelectionModel.java:420)\n at\nca.odell.glazedlists.swing.EventSelectionModel$EventListSelectionModel.removeSelectionInterval(EventSelectionModel.java:587)\n at javax.swing.JTable.checkLeadAnchor(JTable.java:2963)\n at javax.swing.JTable.tableRowsInserted(JTable.java:3079)\n at javax.swing.JTable.tableChanged(JTable.java:3013)\n at\njavax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:280)\n at ca.odell.glazedlists.swing.EventTableModel.listChanged(EventTableModel.java:118)\n at ca.odell.glazedlists.event.EventThreadProxy.run(EventThreadProxy.java:54)\n at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)\n at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)\n at\njava.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)\n at\njava.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at\njava.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at\njava.awt.EventDispatchThread.run(EventDispatchThread.java:110)"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Easy fix! I hope they fix the Java 5.0 though as this is lame. Currently the lameness is that if -1 is \npassed as an argument to any method, it is either a no-op or a selection clear."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(74)); currentIssue.setStatus("RESOLVED"); currentIssue.setPriority("P3"); currentIssue.setResolution("DUPLICATE"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("1.1"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("file"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("File based list"); description = new Description(); description.setWho("pkuzel"); description.setWhen(null); description.setText("Attached prototype implementation of file bases lists. It can be used as data\nholder (warpped by EventList) for huge lists. Implementation is not effecient on\nlist.remove()."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("pkuzel"); description.setWhen(null); description.setText("Created an attachment (id=4)\nSources\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("See bug #68.\n\nThat implementation will support all that is here, plus persisting a List so that it can be opened up later \nwhen the application is next started. The only problem with that implementation is that it is currently \nvaporware. This will do great for now!\n\n*** This issue has been marked as a duplicate of 68 ***"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("pkuzel"); description.setWhen(null); description.setText("Here I primarily addressed huge lists that does not fit into memory. I planned\nto wrap it into CachedFileList that would keep few last entries in memory and\ninteligently implements iterators to do not flush the cached entries.\n\nIt can be reused for long term persistence but with the same warning as Swing\nused - it's not designed for it and the serialization format can change. I was\ntempting to add a File parametrized contructor but I have resisted because long\nterm persistence introduces data format backward compatability issues (well with\nwrong clients, but it's too easy to code such client if everything seems to\nimplicitly work today). In my applications clients must explicitly iterate over\nlist and store its content.\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The argument to avoid serializing a list for long-term use is compelling.\n\nWhen I get around to implementing issue 68, I will keep this in mind. \nI think a useful approach will be to create a \"Serialator\" class with a method such as \n byte[] toBytes(Object o)\nI could then create a default Serialiator that simply Serializes the Object.\n\nThis will allow users to use the Serializable interface or perhaps something with more longevity. The \nproblem with Serializable and Externalizable is that neither of them interoperate outside of Java very \neasily. By using a Serialator, we enable the user to spend the extra time to create binary representations \nof their data that interop either via files or even via the network. This way we get the best of both \nworlds. \n\nI will be sure to include options such as \"temporary\" for the eventual implementation of #68. And of \ncourse a \"Serialization Warning\" in the Javadoc."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(75)); currentIssue.setStatus("NEW"); currentIssue.setPriority("P2"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.1"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("net"); currentIssue.setIssueType("TASK"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("Implement Resource Block Peer"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Originally I planned to create \"Update Subscription Protocol\" which was a publish/subscribe protocol for \nupdate events. This approach is nice because it is generic, yet I have realized that it is not flexible \nenough for any generic use!\n\nTherefore I suggest \"Block Resource Peer\", which is similar to the proposed Update Subscription \nProtocol, but with a few important differences:\n - clients can query upstream, for methods like get(i)\n - packet interpretation is left up to another class\n\nBlock Resource Peer must perform the following:\n - Crypto. Public key exchange and block signing\n - Blocking. Like chunking, but not at the mercy of proxy servers. Most of the time, 1 packet will \ncontain 1 HTTP chunk, and 1 HTTP chunk will contain 1 block\n\nEventually, I would like to add P2P to Block Resource Peer. This has the following implications:\n - A block from connection X may have been signed from Y which is upstream of X\n - Connections to a resource, rather than a particular host. Resources are replicated\n - Databases of hosts and resources\n\nTo simplify this:\n - Resources are named by their source host, but not available exclusively at that site\n - I shall design a URI for resources, \"glazedlists://host:port/resourcename\" may be a good start\n - Resource handlers should have methods to publish blocks and handle queries\n - Multiple resource publishers and subscribers per Block Resource Peer\n\nI have my work cut out for me. For starters I will design some interfaces and perhaps even draw some \ndiagrams!"); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(76)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P3"); currentIssue.setResolution("WORKSFORME"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("problem in EventListSelectionModel under Java 5"); description = new Description(); description.setWho("ildella"); description.setWhen(null); description.setText("I have another problem with Java5\nThis exception raises up. The same code works perfectly under 1.4.2\nI am testing the CVS version of glazedlists.\n\nException in thread \"AWT-EventQueue-0\" java.lang.ArrayIndexOutOfBoundsException:\nInvalid range for selection: 0-0, list size is 0\n at\nca.odell.glazedlists.swing.EventSelectionModel$EventListSelectionModel.setSubRangeOfRange(EventSelectionModel.java:387)\n at\nca.odell.glazedlists.swing.EventSelectionModel$EventListSelectionModel.removeSelectionInterval(EventSelectionModel.java:548)\n at javax.swing.JTable.checkLeadAnchor(JTable.java:2965)\n at javax.swing.JTable.tableRowsInserted(JTable.java:3081)\n at javax.swing.JTable.tableChanged(JTable.java:3015)\n at\njavax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:280)\n at ca.odell.glazedlists.swing.EventTableModel.listChanged(EventTableModel.java:118)\n at ca.odell.glazedlists.event.EventThreadProxy.run(EventThreadProxy.java:54)\n at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)\n at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)\n at\njava.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)\n at\njava.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)\n at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I could not reproduce this bug. I think it is a duplicate of an earlier bug that has since been fixed.\n\nIn the included exception, the method removeSelectionInterval() calls setSubRangeOfRange() on \nline 548. But in my code from CVS, there is no such method call on line 548. Note that it is very \npossible that the tested system has different newline characters: \"\\n\" or \"\\r\\n\" which can \ncause a discrepancy in line numbers.\n\nI request that the bug's reporter, idella, please update to the latest version from CVS by doing a clean \ncheckout and verify that this bug still exists. Please include steps to reproduce!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(77)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.1"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("swing"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("TableHeader indicator arrows point the wrong way"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Compare table header indicator arrows between Glazed Lists' TableComparatorChooser and native \napps. Glazed Lists' arrows point up when down and vice-versa. This should be verified on other \nplatforms!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This was just a silly missing exclamation mark, as in if(isReverse()) should have been if(!isReverse())\n\nAn embarassing mistake to say the least. How come nobody caught this earlier!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(78)); currentIssue.setStatus("CLOSED"); currentIssue.setPriority("P2"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.1"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("swing"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("EventThreadProxy in wrong package"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The EventThreadProxy class depends on Java Swing. But that class is not in the swing package, rather it \nis in the event package.\n\nThis is a problem for building on VMs that do not support Swing such as GCJ."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("All fixed up, moved to the other package. It should have never been there in the first place.\n\nThis fix is more significant than you might expect for at least one project:\n - For a project at work, we are using Glazed Lists with SWT\n - We are compiling with GCJ\n - GCJ does not support Swing\n - Our project grabs the Glazed Lists source and then dumps the swing/ folder\n - The EventThreadProxy breaks our build, until now we had to delete it explicitly"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This bug has been fixed for two weeks with no problems. I am marking it closed."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(79)); currentIssue.setStatus("RESOLVED"); currentIssue.setPriority("P3"); currentIssue.setResolution("WONTFIX"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.1"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("TransformedList with a virtual entry"); description = new Description(); description.setWho("pkuzel"); description.setWhen(null); description.setText("I found usefull to code a list that adds a virtual entry to own end. This list\nis then used as source for UI component models.\n\nBackground: I have impelemented the logic in list rather than in models bacause\nI share the list source by multiple models and their respective views (form vs\ntable view)."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("pkuzel"); description.setWhen(null); description.setText("Created an attachment (id=5)\nThe source\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I think that this is a good idea and the submitted code is good.\n\nBut there already exists a more general solution in the code called \"CompositeList\".\n\nCompositeList allows you to concatenate EventLists and view them as one. For this problem, this would \nuse CompositeList in the following way:\n - CompositeList of 2 lists A and B\n - A is the EventList of interest\n - B is a BasicEventList with one entry, the 'virtual' entry\nAny action to de-virtualize the last entry would simply be to do A.addAll(B), B.set(0, new VirtualEntry());\n\nAgain, the provided code is good. But I don't see a very compelling reason to include it in the main \nGlazed Lists distribution simply because the provided code solves a rather specific problem. If it were \nmy application code I would keep the VirtualList, perhaps in a util/ package of my project."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(80)); currentIssue.setStatus("NEW"); currentIssue.setPriority("P2"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.2"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("AbstractFilterList.notifyFilterChanged() should have \"tighter\" and \"looser\""); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Suppose I have a TextFilterList where I have filtered out 9000 of 10,000 items.\nIf I edit the filter text to add a new word, it is impossible that any of the hiddne elements will appear \nbecause the filter is getting \"tighter\". By adding a new word, I can only filter-out and not filter-in.\n\nUnfortunately AbstractFilterList does not support the idea of \"tigher\" and \"looser\" and therefore in this \ncase all 10,000 elements will be re-examined when only 1000 will do.\n\nSimilarly if I remove a filter word, it is not possible that existing entries will filter-out, only filter in. This \nis a 'looser' refinement. The AbstractFilterList should only examine the 9000 hidden elements and not \nthe 1000 visible ones.\n\nThis will increase the performance of AbstractFilterList without much additional complexity. It should \nstill support overall changes where the new filter and old filter have no relationship."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(81)); currentIssue.setStatus("NEW"); currentIssue.setPriority("P4"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.2"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("JDBC support in Glazed Lists"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I think that people are using Glazed Lists as an alternative to a traditional database grids.\n\nI have been wondering whether or not it is possible to create a JDBCList that is backed by a SQL query. \nThere's a whole bunch of different problems that this could introduce, but if done right then Glazed \nLists would make a killer database grid.\n\nIt will require some thought and some tweaking to existing classes if we want to build this."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(82)); currentIssue.setStatus("NEW"); currentIssue.setPriority("P5"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.2"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("swing"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("TableComparatorChooser sort arrow indicators not right aligned"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This is the nit-pickiest issue yet. The TableComparatorChooser arrows don't look EXACTLY like the \nnative operating system, but they could.\nhttp://publicobject.com/glazedlists/sortedjtables/\n\nA summary of differences:\n label alignment is not LEFT on Windows\n label alignment is not context-sensitive on Windows or Mac OS X\n arrow alignment is not RIGHT on Mac OS X\n header is not blue for primary column on Mac OS X\n\nThis issue is low priority and should only be done if there's nothing better to do! Don't work on this \nbug!"); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(83)); currentIssue.setStatus("RESOLVED"); currentIssue.setPriority("P5"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.2"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("swing"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("TableComparatorChooser needs icons for new Java l&fs"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Java is getting better Look&Feel support and Glazed Lists should keep up with appropriate icons for the \nTableComparatorChooser.\n\nLook and feels currently supported by TableComparatorChooser:\n - Aqua\n - Metal\n - Windows\n\nLook and feels that need support\n - Ocean (J2SE 1.5+)\n - GTK\n - Windows XP\n\nHere's some screenshots to get started:\nhttp://java.sun.com/developer/technicalArticles/releases/j2se15/"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Created an attachment (id=6)\nSwingSet demo, this is what OCEAN looks like\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Created an attachment (id=7)\nAnother SwingSet demo picture for what OCEAN looks like\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've attached some Ocean screenshots so that I can draw up some triangles for\nthat theme.\n\nAs for XP, I need to find a friend who will lend me their XP box for a few hours\nso I can get some screenshots of its icons.\n\nAs for GTK, the GTK theme does not make this task very easy. The GTK theme is\nskinnable itself, so an icon that looks good for one GTK user might look\nterrible for another GTK user. There might be a standard icon included in such\nskins, but I have no idea how to get at it. Also I would like to note that my\nSun box has the ugliest GTK theme known to man and it would be a crime against\nhumanity to make an icon that matches its theme. I think the \"Blue Curve\" theme\nis where all the GTK kids are at with their Redhat boxes and if I can get a hold\nof that, I'd be able to do a decent enough icon."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've completed the Ocean triangles, you can view them right now at:\nhttp://publicobject.com/glazedlists/sortedjtables/\n\nAs for the others:\n Windows XP - I'm installing XP on a box tomorrow, so I should be able to do icons for it soon.\n GTK - I think my best bet is to copy the set from Evolution 2.0, if I can get that on a machine\n Synth - Not before mentioned skinnable L&F. Obviously I will need code support for this via setIcons() \nor perhaps inspecting the synth XML file or something? I don't know if it supports extensions but that \nwould be really slick. Programmable access will be necessary regardless for canned skins."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The XP skin is now complete.\n\nAll that is left is GTK & Synth. GTK will be deferred until requested, or I get bored and want to draw 'em \nup. Synth will require me to look into how to make synth skins. I haven't yet seen any, so I'm going to \nput that on hold also. When the Synth skins first start popping up, then I'll do some investigation!\n\n"); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(84)); currentIssue.setStatus("NEW"); currentIssue.setPriority("P4"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.2"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("swing"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("TextFilterList optimization via caching results"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Currently TextFilterList does a full-text search on ALL of the Strings returned from getFilterStrings() for \nALL Objects in the list. In many cases this will contain a lot of redundant searches. Suppose we have a \nprogram like mCube where the data is songs. Each song has an album and and an artist and there is a \nlot of duplication among album and artists for names. Currently if I have 25 items all with the artist \n\"Limp Bizkit\", then that string will be searched 25 times on a Glazed Lists filter.\n\nMy idea is to cache the result of a String matching a pattern, so that if that exact same String is found \nagain, then the result can be returned faster than normal.\n\nOf course there are some requirements. Finding a cached String has to be an order of magnitude faster \nthan searching the string itself. \n - the normal hashCode() method on String might not be fast. I think it examines every character. It \nmay cache the result however, in which case a HashSet would be a useful datastructure to start\n - using a Collection of successes and a Collection of failures. For each filter string, we could first \ncheck for its presence in either set before attempting to perform the actual match. After finding a \nmatch or not, the String could be placed in one of the Collections.\n - Collections could be limited in size to only the most popular entries to keep searches fast! This \nwould allow for an O(1)-style filtering in best cases\n\nThis will require experimentation. But it is a FUN problem!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("It is important to note that the chance of collision is much higher when the string is smaller.\nSmaller strings tend to have \"token\" values, wheras long strings will more likely be unique descriptions.\n\nExample: \"P3\", \"jessewilson\", \"ENHANCEMENT\" and \"0.9.2\" are more likely to be repeated than say, this \ndescription. It might be worthwhile to determine a cut-off like 32-characters to differentiate between \nStrings that would be worth caching or not."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(85)); currentIssue.setStatus("RESOLVED"); currentIssue.setPriority("P4"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.2"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("swing"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("Convenience constructors for automatic TableFormats"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Writing a TableFormat is quite a dry experience. It seems like every TableFormat I write is nearly \nidentical and creating them is very mechanical.\n\nTherefore I propose some convenience constructors for EventTableModel that do not require me to \ncreate a boring TableFormat, rather I should be able to specify using Strings how my TableFormat shall \nlook.\n\nFor example, to create an EventTableModel to display Issue objects, this would be a decent constructor:\nList columns = Arrays.asList(new String[] { \"ID\", \"Priority\", \"Description\" });\nList fields = Arrays.asList(new String[] { \"id\", \"priority\", \"shortDescription\" });\nEventTableModel etm = new EventTableModel(myIssuesList, columns, fields);\n\nThe EventTableModel could then use reflection to create a custom TableFormat that fits my needs. In \nthis case, \"ID\" would correspond to a \"getId()\" method in the list objects and \"shortDescription\" would \ncorrespond to a \"getShortDescription()\" method in the list objects. All with simple JavaBeans and \nreflection.\n\nFinally, it might also be desirable to create a TableModel that takes a ResultSet as a parameter and \nexpects objects as either database rows or Lists of row columns.\n\nThe whole idea here is to make it so that we can create applications with less code. Note that if \nimplemented, this would be a very bad thing to feature in a tutorial since it is runtime checked and \nerrors cannot be caught by Mr. Javac."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Done. I sent out a survey to the mailing list on this to see what the best way to expose this functionality \nwould be.\n\nMost users said it would be best simply to provide an alternate constructor to EventTableModel that did \nthe construction of by BeanTableFormat automatcally. So this is how it now works!\n\nThere is a brief caution on the use of this with respect to reflection. It is also dangerous because typos \nin method names will not be checked until runtime."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(86)); currentIssue.setStatus("RESOLVED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.2"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("Convenience constructor for automatic Filterators"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Bug 85 is \"Convenience constructors for automatic TableFormats\". The fix for this was to use reflection \nto do automatic construction of TableFormat objects. \n\nWe could do something very similar for automatic Filterators. Simply inspect the class in use and use all \nof its methods that return a String. This might not have great performance due to some classes which \ndo lookups in such methods, but it would be a great helper for most simple filter classes.\n\nThis is a convenience-type of enhancement. It must be noted in its Javadocs that use of this method \nmay cause a performance hit in some cases."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Fixed. See the new constructor for TextFilterList."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(87)); currentIssue.setStatus("RESOLVED"); currentIssue.setPriority("P5"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.2"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("GlazedLists is inconsistent in what exception is thrown on bounds checking"); description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("Our volatile implementation classes follow suit with ArrayList and other \nmembers of the Collections framework by throwing IndexOutOfBoundsExceptions \nwhen range checking fails. The TransformedList throws \nArrayIndexOutOfBoundsExceptions on range checking failures. As a result any \nlist which overrides a method that takes an index may throw different exception \ntypes depending on its implementation details. A minor inconsistency but worth \nmentioning nonetheless. I haven't checked yet how many classes are affected by \nthis."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("kevinmaltby"); description.setWhen(null); description.setText("A related inconsistency can be found in the volatile IndexedTree ADT (and I \nassume the SparseList ADT) which throws a NullPointerException when a get() is \ncalled on an empty list. ArrayList throws an IndexOutOfBoundsException in that \ncase.\n\nI would agree with anyone who says that this issue is almost a tad on the \nexcessive, but it's still worth mentioning, even at priority 5."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Well I fixed bug 87, albeit perhaps not in the most 'agreeable' way.\n\nHeres the problem with fixing the bug in the IndexedTree class:\n - its used only internally\n - many classes (ie. SortedList) call get() hundreds of times, none of those are ever out-of-bounds\n - high performance is going to be a very important issue for SortedList, so we are going to avoid at all \ncosts slowing that down\n\nSo I fixed it in CachingList instead. The new rule is that IndexedTree will blow up violently if you violate \nits preconditions, so classes that use it should be careful to verify that they are not violating its \npreconditions.\n\nPretty much my strategy is this:\n - create a user-friendly front end (ie. SortedList, CachingList) that does all the necessary due-process \nand range checks\n - create high performance backend (ie. IndexedTree, SparseList) that have strict requirements on \nparameters etc., but do no unnecessary checks or whatever. \n - in that high performance backend, use the assert() keyword to enable appropriate checking when \nnecessary to verify that the code is in fact correct\n\n"); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(88)); currentIssue.setStatus("RESOLVED"); currentIssue.setPriority("P3"); currentIssue.setResolution("INVALID"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.2"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("swing"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("TableFormat may receive null Object"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("TableFormat may be passed a null Object for a list that never contains nulls.\n\nThis happens when an element is deleted on a worker thread, but the EventTableModel has not yet \nbeen notified on the event dispatch thread, and the event dispatch thread is now asking to paint the \ndeleted element.\n\nThe null should simply be rendered as null. The renderers should be tolerable, that is much more \nappropriate than the TableFormat."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I must have forgotten.\n\nThis bug is already fixed. It is NOT necessary to check for null in your TableFormat class."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(89)); currentIssue.setStatus("STARTED"); currentIssue.setPriority("P3"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.2"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("swing"); currentIssue.setIssueType("TASK"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("Validate performance of TextFilterList"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("TextFilterList uses regular expressions to do searching. Is this really faster? This claim must be \nvalidated.\n\nIf regex is not faster, TextFilterList should use an alternative text searching system."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've been doing some thinking on how to speed this stuff up....\n\nRegex uses a DFA to walk through the strings, one character of input at a time. It may not be \nridiculously fast for my purposes.\n\nindexOf works, but it requires a call to toUpperCase(), which is already slower than regex.\n\nA custom solution may be the ultimate solution to this problem. We learned about fast searching \ntechniques in CS 240 at U of W, this might be the best way to go."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've given this some further thought. What we really need is a test program that tests the performance \nof TextFilterList with meaningful real-world data. Therefore I have come up with a strategy.\n\nI will develop a test program that reads test files, runs them through the TextFilterList and times its \nperformance. It will then write the total time to the console. The test program can verify speed AND \ncorrectness.\n\nThe test file is made up of a series of serialized objects.\n 1. A List of Strings, each String a the 'query String' for a separate test\n 2. A List of Integers, each corresponding to the number of results expected from String #1.\n 3. The test data. This is a List of \"test data objects\". For simplicity, a test data object itself is simply an \nArrayList full of Strings.\n\nNow here are some test data that I think would be reasonable:\n - The ID3 data from my entire MP3 collection. Each MP3's gets one ArrayList full of Strings. These \nstrings are short and there's lots of duplication.\n - The entire Mozilla issue database. This is a mix of short and longs strings with lots of duplication.\n - Some articles from a website. This is a single really long String.\n\nBuilding this will take some time, but it will make it possible to implement competing algorithms and to \nsee how they actually will perform in practice."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've run some simple performance tests and the performance is GOOD, but not GREAT.\nFiltering a quarter-million medium elements takes about 7 seconds on my PowerBook 1.3GHz\nFiltering 2500 medium elements takes about 0.2 seconds on my PowerBook\n\nThis sounds good, but the smart people at Google.com filter a hell of a lot more faster. Mind you they \nhave more hardware, but I think we can significantly improve this.\n\nOne new idea - is there a benefit to doing lookups on filter strings upon loading the data to build an \nindex?\n\nHere's the before-mentioned results:\n--- 2 filters of Mozilla.org's bug database of 260,836 takes 14.2s ---\nslackette:glazedlists$ java -Xmx1000000000 -classpath classes/ \nca.odell.glazedlists.swing.test.TextFilterPerformance mozillabugs.tfpt \nReading input\nRead input, 260836 elements\n\nFilter 0: frameset, expect: 327\nFilter 1: java PC @sun.com, expect: 320\n\nRunning... done. Time: 14187ms\n\n--- and 4 filters with my MP3 collection of 2569 takes 0.8s ---\nslackette:glazedlists$ java -classpath classes/ ca.odell.glazedlists.swing.test.TextFilterPerformance \nmp3collection.tfpt \nReading input\nRead input, 5138 elements\n\nFilter 0: Limp, expect: 79\nFilter 1: Bizkit, expect: 79\nFilter 2: file 128 44100, expect: 508\nFilter 3: iTunes Music jessewilson, expect: 2568\n\nRunning... done. Time: 768ms\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've looked at this and apparently regex was NOT a genius idea. It's performance was okay but I have \nalready built a simpler better replacement. The new method \"caseInsensitiveIndexOf()\" is just as fast (in \nmy tests).\n\nFrom here, I think it is time to implement something faster.\nI think I will try the Boyer-Moore algorithm as the next step in my performance quest."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(90)); currentIssue.setStatus("NEW"); currentIssue.setPriority("P5"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.2"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("ENHANCEMENT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("SparseList uses multiple nodes when one will do"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("The innovation of SparseList is that null values do not require a node Object.\n\nThis means that in a list of 10,000, if 3000 elements are null, then only 7000 nodes are required.\n\nIt should also be possible to create a SparseList where sequential non-null values are collapsed into one \n'supernode'. This means that a list of 10,000 where all elements are the same, then only one node will \nbe needed.\n\nThis would be useful to make AbstractFilterList scale better! Currently it uses O(N) to provide filtering \nservices to a list of size N, even if its filtering services are not used. With this strategy, it only requires \nnodes when its filter is in use.\n\nThis will add complexity but should yeild a measurable performance benefit."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(91)); currentIssue.setStatus("RESOLVED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("current"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("EventListIterator falls in a loop"); description = new Description(); description.setWho("ildella"); description.setWhen(null); description.setText("Sometimes my app hangs up, using 100% CPU.\nI have tracked the problem, and found that the loop happens in\nEventListIterator.listChanged() where the first line is\n\nwhile(listChanges.next())\n\nand I think this is the cause of the loop."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Additional comments, emailed from Daniele Dellafiore:\n\nI have submitted issues 91, but I can't add comment on it.\nhttps://glazedlists.dev.java.net/issues/show_bug.cgi?id=91\n\nI have some news, so I will write here.\n\nListChanges.next() method falls in the loop.\nWhen the loop occurs, the first call to next fall in the \"if\" part of the if-else statement.\nBeginning from the second call, the \"else\" part is executed infinitely.\n\nThe call sequence is:\n\nWeakReferenceProxy.listChanged()\n\nin this method is called, within else statement\n\nproxyTarget.listChanged(listChanges);\n\nwhere proxyTarget is a EventListIterator instance, and the loop occurs here, because listChanges.next \nalways returns true.\n\nI do not receive any exceptions, so I do not have a stack trace.\n\n\nIf you want to see the loop in action, you can have a look to CVS code of mcube project: run it and try \nto click on the buttons to sort a table. If you click two times quickly on the same button, you can see \nthat applications start using 100% CPU.\n\nI do not exclude that there could be some issue in my code, but right now I have only figured out the \nloop, not it's cause. Maybe you can help me in understanding what could this cause be.\n\nThanks, bye.\n"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This an excellent bug report led to a very fast fix.\n\nThe problem was that the ListEventAssembler was creating 'reorder' events of size 0. Usually this does \nnot happen because the SortedList does not pass events when its size is 0. But if you have say, an \nEventSelectionModel, it is possible that it will create such events.\n\nThe problem has been solved.\n\nThanks again for the EXCELLENT and HELPFUL bug report."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(92)); currentIssue.setStatus("STARTED"); currentIssue.setPriority("P3"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.3"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("TASK"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("Glazed Lists version 0.9.3 release"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Glazed Lists requires a release before October 25, 2004.\n\nThis should be a polish-release with the following changes:\n - no more migrationkit\n - Javadoc warnings where appropriate (for untested code, unfinished code, concurrency)\n - Demo as WebStart"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've refined the Javadocs for all the public *List classes.\nI've created a migrationkit .jar which is available here:\nhttps://glazedlists.dev.java.net/files/documents/1073/7976/glazedlists-0.8-migrationkit.jar"); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(93)); currentIssue.setStatus("STARTED"); currentIssue.setPriority("P2"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.3"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("Multiple source support"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Glazed Lists does not support EventLists that have multiple sources.\n\nSee thread, \"ArrayIndexOutOfBoundsException\" on the users@ mailing list."); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("I've added support for multiple sources in Glazed Lists!\n\nThis has required one major change to the API.\nEventList now has a method, getPublisher() which returns an EventListPublisher.\n\nThis is so that EventLists can share EventListPublishers if they are chained. The EventListPublisher keeps \ntrack of all listeners and their dependencies. When a change is forwarded, all dependencies are \nmanaged to ensure the change is propagates in a safe sequence.\n\nThere are still some outstanding issues with this implementation, but it is a good start.\nOutstanding issues:\n - no support for events other than ListEvent\n - no support for CompositeList\n\nHopefully I can fix these issues soon!"); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(94)); currentIssue.setStatus("NEW"); currentIssue.setPriority("P5"); currentIssue.setResolution(""); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.3"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("core"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("issues.xml is 104 KB"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Glazed Lists .jar file includes a 104 KB file \"issues.xml\" for the demo applet.\n\nIncluding this file is okay. Including 104 KB is ridiculous.\n\nTrim the file and update it to the latest issue set!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("This is actually only 7KB compressed, but trimming it won't hurt anyway.\n\nAnd updating it is definitely worthwhile."); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; currentIssue = new Issue(); currentIssue.setId(new Integer(95)); currentIssue.setStatus("RESOLVED"); currentIssue.setPriority("P3"); currentIssue.setResolution("FIXED"); currentIssue.setComponent("glazedlists"); currentIssue.setVersion("0.9.3"); currentIssue.setAssignedTo("jessewilson"); currentIssue.setSubcomponent("swing"); currentIssue.setIssueType("DEFECT"); currentIssue.setQAContact("jessewilson"); currentIssue.setShortDescription("TableComparatorChooser breaks when column count changes"); description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("TableComparatorChooser breaks violently with a NullPointerException when the number of columns is \nchanged.\n\nInstead, TableComparatorChooser should simply adjust to the column change.\n\nThe only problem with this is that some columns may have extra comparators set for them. Figuring \nout how to do this correctly may be tricky!"); currentIssue.getDescriptions().add(description); description = null; description = new Description(); description.setWho("jessewilson"); description.setWhen(null); description.setText("Fixed! Additional comparators are thrown out when the TableFormat is changed. This may be a drag, \nbut there are much better ways to turn on and off columns if that is to be desired.\n\nSee the mailing list for sample code that uses the TableColumnModel for this purpose:\nhttps://glazedlists.dev.java.net/servlets/ReadMsg?list=users&msgNo=234"); currentIssue.getDescriptions().add(description); description = null; issues.add(currentIssue); currentIssue = null; return issues; }
|
10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/3f5c1bc8959d4b329dc98cd738a87e40f60ad957/Issue.java/clean/source/ca/odell/glazedlists/demo/Issue.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
987,
1262,
17316,
1435,
288,
3639,
987,
8296,
273,
394,
2407,
5621,
3639,
11820,
783,
12956,
273,
446,
31,
3639,
6507,
2477,
273,
446,
31,
3639,
783,
12956,
273,
394,
11820,
5621,
3639,
783,
12956,
18,
542,
548,
12,
2704,
2144,
12,
21,
10019,
3639,
783,
12956,
18,
542,
1482,
2932,
28475,
8863,
3639,
783,
12956,
18,
542,
8183,
12,
8183,
18,
52,
23,
1769,
3639,
783,
12956,
18,
542,
11098,
2932,
30406,
8863,
3639,
783,
12956,
18,
542,
1841,
2932,
7043,
1561,
329,
9772,
8863,
3639,
783,
12956,
18,
542,
1444,
2932,
2972,
8863,
3639,
783,
12956,
18,
542,
20363,
774,
2932,
78,
281,
307,
91,
330,
816,
8863,
3639,
783,
12956,
18,
542,
1676,
4652,
2932,
5591,
8863,
3639,
783,
12956,
18,
542,
12956,
559,
2932,
15580,
8863,
3639,
783,
12956,
18,
542,
27962,
6567,
2932,
9618,
36,
7043,
1561,
329,
9772,
8863,
3639,
783,
12956,
18,
542,
4897,
3291,
2932,
1170,
685,
537,
1034,
9239,
12318,
666,
2549,
8863,
3639,
2477,
273,
394,
6507,
5621,
3639,
2477,
18,
542,
2888,
83,
2932,
78,
281,
307,
91,
330,
816,
8863,
3639,
2477,
18,
542,
9434,
12,
2011,
1769,
3639,
2477,
18,
542,
1528,
2932,
1986,
783,
4471,
434,
11346,
4692,
279,
423,
14,
50,
14,
49,
4886,
358,
283,
17,
2188,
1347,
326,
666,
521,
82,
6329,
16,
364,
490,
3478,
603,
279,
666,
434,
963,
423,
8403,
82,
64,
82,
7193,
353,
4573,
358,
21171,
333,
3099,
635,
1450,
1898,
5505,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
987,
1262,
17316,
1435,
288,
3639,
987,
8296,
273,
394,
2407,
5621,
3639,
11820,
783,
12956,
273,
446,
31,
3639,
6507,
2477,
273,
446,
31,
3639,
783,
12956,
273,
394,
11820,
5621,
3639,
783,
12956,
18,
542,
548,
12,
2704,
2144,
12,
21,
10019,
3639,
783,
12956,
18,
542,
1482,
2932,
28475,
8863,
3639,
783,
12956,
18,
542,
8183,
12,
8183,
18,
52,
23,
1769,
3639,
783,
12956,
18,
542,
11098,
2932,
30406,
8863,
3639,
783,
12956,
18,
542,
1841,
2932,
7043,
1561,
329,
9772,
8863,
3639,
783,
12956,
18,
542,
1444,
2932,
2972,
8863,
3639,
783,
12956,
18,
542,
20363,
774,
2932,
78,
281,
307,
91,
330,
816,
8863,
3639,
783,
12956,
18,
542,
1676,
2
] |
try { m_activeProperties = CmsPropertyAdvanced.getPropertyMap(getCms().readPropertyObjects(getParamResource(), false)); } catch (CmsException e) { m_activeProperties = new HashMap(); }
|
try { m_activeProperties = CmsPropertyAdvanced.getPropertyMap(getCms().readPropertyObjects( getParamResource(), false)); } catch (CmsException e) { if (OpenCms.getLog(this).isInfoEnabled()) { OpenCms.getLog(this).info(e); } m_activeProperties = new HashMap(); }
|
protected Map getActiveProperties() { // get all used properties for the resource if (m_activeProperties == null) { try { m_activeProperties = CmsPropertyAdvanced.getPropertyMap(getCms().readPropertyObjects(getParamResource(), false)); } catch (CmsException e) { // create an empty list m_activeProperties = new HashMap(); } } return m_activeProperties; }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/c6379369f45ccca2476b93d19fe4066df46f1eed/CmsPropertyCustom.java/clean/src/org/opencms/workplace/CmsPropertyCustom.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1635,
11960,
2297,
1435,
288,
3639,
368,
336,
777,
1399,
1790,
364,
326,
1058,
3639,
309,
261,
81,
67,
3535,
2297,
422,
446,
13,
288,
3639,
775,
288,
5411,
312,
67,
3535,
2297,
273,
18505,
23618,
18,
588,
1396,
863,
12,
588,
4747,
7675,
896,
1396,
4710,
12,
588,
786,
1420,
9334,
629,
10019,
3639,
289,
1044,
261,
4747,
503,
425,
13,
288,
2398,
368,
752,
392,
1008,
666,
5411,
312,
67,
3535,
2297,
273,
394,
4317,
5621,
3639,
289,
3639,
289,
3639,
327,
312,
67,
3535,
2297,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
4750,
1635,
11960,
2297,
1435,
288,
3639,
368,
336,
777,
1399,
1790,
364,
326,
1058,
3639,
309,
261,
81,
67,
3535,
2297,
422,
446,
13,
288,
3639,
775,
288,
5411,
312,
67,
3535,
2297,
273,
18505,
23618,
18,
588,
1396,
863,
12,
588,
4747,
7675,
896,
1396,
4710,
12,
588,
786,
1420,
9334,
629,
10019,
3639,
289,
1044,
261,
4747,
503,
425,
13,
288,
2398,
368,
752,
392,
1008,
666,
5411,
312,
67,
3535,
2297,
273,
394,
4317,
5621,
3639,
289,
3639,
289,
3639,
327,
312,
67,
3535,
2297,
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
] |
if (row < 0 || row >= rows.size()) { return false; } rows.remove(row); curPosition.setLocation(curPosition.x-1, curPosition.y); return true;
|
if (row < 0 || row >= rows.size()) { return false; } rows.remove(row); curPosition.setLocation(curPosition.x-1, curPosition.y); return true;
|
public boolean deleteRow(int row) { if (row < 0 || row >= rows.size()) { return false; } rows.remove(row); //Added by CWE // --currentRow; curPosition.setLocation(curPosition.x-1, curPosition.y); return true; }
|
3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/3ea279bd6c0b89fa89965479584f9df175d9847b/Table.java/clean/itext/src/com/lowagie/text/Table.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1430,
1999,
12,
474,
1027,
13,
288,
202,
430,
261,
492,
411,
374,
747,
1027,
1545,
2595,
18,
1467,
10756,
288,
202,
565,
327,
629,
31,
202,
97,
202,
3870,
18,
4479,
12,
492,
1769,
202,
759,
8602,
635,
385,
6950,
202,
759,
1493,
2972,
1999,
31,
202,
1397,
2555,
18,
542,
2735,
12,
1397,
2555,
18,
92,
17,
21,
16,
662,
2555,
18,
93,
1769,
202,
2463,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
1250,
1430,
1999,
12,
474,
1027,
13,
288,
202,
430,
261,
492,
411,
374,
747,
1027,
1545,
2595,
18,
1467,
10756,
288,
202,
565,
327,
629,
31,
202,
97,
202,
3870,
18,
4479,
12,
492,
1769,
202,
759,
8602,
635,
385,
6950,
202,
759,
1493,
2972,
1999,
31,
202,
1397,
2555,
18,
542,
2735,
12,
1397,
2555,
18,
92,
17,
21,
16,
662,
2555,
18,
93,
1769,
202,
2463,
638,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
getSelectionMapper().lock();
|
boolean wasEnabled = getSelectionMapper().isEnabled(); getSelectionMapper().setEnabled(false); try {
|
public void setModel(TableModel newModel) { // JW: need to look here? is done in tableChanged as well. getSelectionMapper().lock(); super.setModel(newModel); }
|
47551 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47551/b42d7e9d18cebf24ca5fa47013f9be844a0d032f/JXTable.java/buggy/src/java/org/jdesktop/swingx/JXTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19027,
12,
1388,
1488,
394,
1488,
13,
288,
3639,
368,
804,
59,
30,
1608,
358,
2324,
2674,
35,
353,
2731,
316,
1014,
5033,
487,
5492,
18,
540,
1250,
1703,
1526,
273,
23204,
4597,
7675,
291,
1526,
5621,
23204,
4597,
7675,
542,
1526,
12,
5743,
1769,
775,
288,
3639,
2240,
18,
542,
1488,
12,
2704,
1488,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19027,
12,
1388,
1488,
394,
1488,
13,
288,
3639,
368,
804,
59,
30,
1608,
358,
2324,
2674,
35,
353,
2731,
316,
1014,
5033,
487,
5492,
18,
540,
1250,
1703,
1526,
273,
23204,
4597,
7675,
291,
1526,
5621,
23204,
4597,
7675,
542,
1526,
12,
5743,
1769,
775,
288,
3639,
2240,
18,
542,
1488,
12,
2704,
1488,
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
] |
String s = executeExpr("[Time].Dimension.Name"); Assert.assertEquals("Time", s);
|
assertExprReturns("[Time].Dimension.Name", "Time");
|
public void testDimensionHierarchy() { String s = executeExpr("[Time].Dimension.Name"); Assert.assertEquals("Time", s); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/3041f930b5fc4bf6aa3339845b828801c1d8b366/FunctionTest.java/clean/testsrc/main/mondrian/olap/fun/FunctionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
8611,
12074,
1435,
288,
3639,
514,
272,
273,
1836,
4742,
2932,
63,
950,
8009,
8611,
18,
461,
8863,
3639,
5452,
18,
11231,
8867,
2932,
950,
3113,
272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
8611,
12074,
1435,
288,
3639,
514,
272,
273,
1836,
4742,
2932,
63,
950,
8009,
8611,
18,
461,
8863,
3639,
5452,
18,
11231,
8867,
2932,
950,
3113,
272,
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
] |
public org.quickfix.field.PartyID get(org.quickfix.field.PartyID value)
|
public quickfix.field.PartyID get(quickfix.field.PartyID value)
|
public org.quickfix.field.PartyID get(org.quickfix.field.PartyID value) throws FieldNotFound { getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MultilegOrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix44/MultilegOrderCancelReplaceRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
17619,
734,
336,
12,
19525,
904,
18,
1518,
18,
17619,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
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,
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,
1071,
9549,
904,
18,
1518,
18,
17619,
734,
336,
12,
19525,
904,
18,
1518,
18,
17619,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
gnu.java.security.provider.DSAKeyPairGenerator.class.getName());
|
"gnu.java.security.provider.DSAKeyPairGenerator");
|
public Gnu() { super( "GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSASignature.class.getName()); put("Alg.Alias.Signature.DSS", "SHA1withDSA"); put("Alg.Alias.Signature.DSA", "SHA1withDSA"); put("Alg.Alias.Signature.SHAwithDSA", "SHA1withDSA"); put("Alg.Alias.Signature.DSAwithSHA", "SHA1withDSA"); put("Alg.Alias.Signature.DSAwithSHA1", "SHA1withDSA"); put("Alg.Alias.Signature.SHA/DSA", "SHA1withDSA"); put("Alg.Alias.Signature.SHA-1/DSA", "SHA1withDSA"); put("Alg.Alias.Signature.SHA1/DSA", "SHA1withDSA"); put("Alg.Alias.Signature.OID.1.2.840.10040.4.3", "SHA1withDSA"); put("Alg.Alias.Signature.1.2.840.10040.4.3", "SHA1withDSA"); put("Alg.Alias.Signature.1.3.14.3.2.13", "SHA1withDSA"); put("Alg.Alias.Signature.1.3.14.3.2.27", "SHA1withDSA"); // Key Pair Generator put("KeyPairGenerator.DSA", gnu.java.security.provider.DSAKeyPairGenerator.class.getName()); put("Alg.Alias.KeyPairGenerator.OID.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.3.14.3.2.12", "DSA"); // Message Digests put("MessageDigest.SHA", gnu.java.security.provider.SHA.class.getName()); put("MessageDigest.MD5", gnu.java.security.provider.MD5.class.getName()); // Format "Alias", "Actual Name" put("Alg.Alias.MessageDigest.SHA1", "SHA"); put("Alg.Alias.MessageDigest.SHA-1", "SHA"); // Algorithm Parameters put("AlgorithmParameters.DSA", gnu.java.security.provider.DSAParameters.class.getName()); // Algorithm Parameter Generator put("AlgorithmParameterGenerator.DSA", gnu.java.security.provider.DSAParameterGenerator.class.getName()); // SecureRandom put("SecureRandom.SHA1PRNG", gnu.java.security.provider.SHA1PRNG.class.getName()); }
|
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/f0fa0d7593a4096ea9c1b26389ec4bb1431e5631/Gnu.java/clean/libjava/gnu/java/security/provider/Gnu.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
611,
13053,
1435,
225,
288,
565,
2240,
12,
315,
8318,
57,
3113,
404,
18,
20,
16,
315,
8318,
57,
2893,
331,
21,
18,
20,
19981,
9777,
17,
21,
16,
10852,
25,
16,
463,
5233,
8863,
565,
368,
3609,
716,
777,
4471,
667,
1257,
854,
8042,
635,
1450,
565,
368,
1659,
18,
17994,
7675,
12466,
4031,
1347,
732,
760,
715,
1692,
326,
611,
13053,
2893,
565,
368,
732,
6635,
336,
777,
326,
4471,
3318,
18,
565,
368,
9249,
565,
1378,
2932,
5374,
18,
8325,
21,
1918,
19748,
3113,
202,
1600,
89,
18,
6290,
18,
7462,
18,
6778,
18,
19748,
5374,
18,
1106,
18,
17994,
10663,
565,
1378,
2932,
21883,
18,
2936,
18,
5374,
18,
40,
1260,
3113,
315,
8325,
21,
1918,
19748,
8863,
565,
1378,
2932,
21883,
18,
2936,
18,
5374,
18,
19748,
3113,
315,
8325,
21,
1918,
19748,
8863,
565,
1378,
2932,
21883,
18,
2936,
18,
5374,
18,
8325,
1918,
19748,
3113,
315,
8325,
21,
1918,
19748,
8863,
565,
1378,
2932,
21883,
18,
2936,
18,
5374,
18,
19748,
1918,
8325,
3113,
315,
8325,
21,
1918,
19748,
8863,
565,
1378,
2932,
21883,
18,
2936,
18,
5374,
18,
19748,
1918,
8325,
21,
3113,
315,
8325,
21,
1918,
19748,
8863,
565,
1378,
2932,
21883,
18,
2936,
18,
5374,
18,
8325,
19,
19748,
3113,
315,
8325,
21,
1918,
19748,
8863,
565,
1378,
2932,
21883,
18,
2936,
18,
5374,
18,
8325,
17,
21,
19,
19748,
3113,
315,
8325,
21,
1918,
19748,
8863,
565,
1378,
2932,
21883,
18,
2936,
18,
5374,
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,
611,
13053,
1435,
225,
288,
565,
2240,
12,
315,
8318,
57,
3113,
404,
18,
20,
16,
315,
8318,
57,
2893,
331,
21,
18,
20,
19981,
9777,
17,
21,
16,
10852,
25,
16,
463,
5233,
8863,
565,
368,
3609,
716,
777,
4471,
667,
1257,
854,
8042,
635,
1450,
565,
368,
1659,
18,
17994,
7675,
12466,
4031,
1347,
732,
760,
715,
1692,
326,
611,
13053,
2893,
565,
368,
732,
6635,
336,
777,
326,
4471,
3318,
18,
565,
368,
9249,
565,
1378,
2932,
5374,
18,
8325,
21,
1918,
19748,
3113,
202,
1600,
89,
18,
6290,
18,
7462,
18,
6778,
18,
19748,
5374,
18,
1106,
18,
17994,
10663,
565,
1378,
2932,
21883,
18,
2936,
18,
5374,
18,
40,
1260,
3113,
315,
2
] |
public void popupMenuWillBecomeVisible(PopupMenuEvent event);
|
void popupMenuWillBecomeVisible(PopupMenuEvent event);
|
public void popupMenuWillBecomeVisible(PopupMenuEvent event);
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0788b89b7368770a1157f825d60dd8c5a9df183e/PopupMenuListener.java/buggy/core/src/classpath/javax/javax/swing/event/PopupMenuListener.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10431,
4599,
13670,
38,
557,
1742,
6207,
12,
13770,
4599,
1133,
871,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10431,
4599,
13670,
38,
557,
1742,
6207,
12,
13770,
4599,
1133,
871,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protected void createNewGenerator(Language sourceLanguage, Language targetLanguage, File templateModelsDir) { LanguageDescriptor languageDescriptor = sourceLanguage.getLanguageDescriptor(); SModel model = languageDescriptor.getModel(); model.setLoading(true); GeneratorDescriptor generatorDescriptor = new GeneratorDescriptor(model); generatorDescriptor.setGeneratorUID(Generator.generateGeneratorUID(sourceLanguage)); // set target language jetbrains.mps.projectLanguage.Language _targetLanguage = new jetbrains.mps.projectLanguage.Language(model); _targetLanguage.setName(targetLanguage.getNamespace()); generatorDescriptor.setTargetLanguage(_targetLanguage); // add "template models" model root String templateModelNamePrefix = sourceLanguage.getNamespace() + ".generator." + NameUtil.shortNameFromLongName(targetLanguage.getNamespace()) + ".template"; ModelRoot templateModelsRoot = new ModelRoot(model); templateModelsRoot.setPrefix(templateModelNamePrefix); templateModelsRoot.setPath(templateModelsDir.getAbsolutePath()); generatorDescriptor.addModelRoot(templateModelsRoot); // add target language module to module roots ModuleRoot targetLanguageModuleRoot = new ModuleRoot(model); File descriptorFile = targetLanguage.getDescriptorFile(); assert descriptorFile != null; targetLanguageModuleRoot.setPath(descriptorFile.getParentFile().getAbsolutePath()); generatorDescriptor.addModuleRoot(targetLanguageModuleRoot); // add new generator to language languageDescriptor.addGenerator(generatorDescriptor); sourceLanguage.setLanguageDescriptor(languageDescriptor); sourceLanguage.save(); // add <default> templates model (if root is empty) List<Generator> generators = sourceLanguage.getGenerators(); Generator newGenerator = generators.get(generators.size() - 1); boolean alreadyOwnsTemplateModel = false; for (SModelDescriptor modelDescriptor : newGenerator.getOwnModelDescriptors()) { if (SModelStereotype.TEMPLATES.equals(modelDescriptor.getStereotype())) { alreadyOwnsTemplateModel = true; break; } } if (!alreadyOwnsTemplateModel) { SModelDescriptor templateModelDescriptor = newGenerator.createModel( new SModelUID(templateModelNamePrefix, "main", SModelStereotype.TEMPLATES), templateModelsRoot); SModel templateModel = templateModelDescriptor.getSModel(); templateModel.addLanguage(BootstrapLanguages.getInstance().getTLBase()); templateModel.addLanguage(targetLanguage); MappingConfiguration mappingConfiguration = new MappingConfiguration(templateModel); mappingConfiguration.setName("main"); templateModel.addRoot(mappingConfiguration); templateModelDescriptor.save(); } }
|
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/638f3d3d78fbb11ff7043cf69a710f619e9fa196/NewGeneratorDialog.java/buggy/source/jetbrains/mps/ide/NewGeneratorDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
15291,
3908,
12,
3779,
1084,
3779,
16,
9889,
1018,
3779,
16,
1387,
1542,
8430,
1621,
13,
288,
565,
9889,
3187,
2653,
3187,
273,
1084,
3779,
18,
588,
3779,
3187,
5621,
565,
348,
1488,
938,
273,
2653,
3187,
18,
588,
1488,
5621,
565,
938,
18,
542,
10515,
12,
3767,
1769,
565,
10159,
3187,
4456,
3187,
273,
394,
10159,
3187,
12,
2284,
1769,
565,
4456,
3187,
18,
542,
3908,
3060,
12,
3908,
18,
7163,
3908,
3060,
12,
3168,
3779,
10019,
565,
368,
444,
1018,
2653,
565,
525,
278,
15397,
2679,
18,
81,
1121,
18,
4406,
3779,
18,
3779,
389,
3299,
3779,
273,
394,
525,
278,
15397,
2679,
18,
81,
1121,
18,
4406,
3779,
18,
3779,
12,
2284,
1769,
565,
389,
3299,
3779,
18,
542,
461,
12,
3299,
3779,
18,
588,
3402,
10663,
565,
4456,
3187,
18,
542,
2326,
3779,
24899,
3299,
3779,
1769,
565,
368,
527,
315,
3202,
3679,
6,
938,
1365,
565,
514,
1542,
22363,
2244,
273,
1084,
3779,
18,
588,
3402,
1435,
397,
5411,
3552,
8812,
1199,
397,
5411,
1770,
1304,
18,
6620,
461,
1265,
3708,
461,
12,
3299,
3779,
18,
588,
3402,
10756,
397,
5411,
3552,
3202,
14432,
565,
3164,
2375,
1542,
8430,
2375,
273,
394,
3164,
2375,
12,
2284,
1769,
565,
1542,
8430,
2375,
18,
542,
2244,
12,
3202,
22363,
2244,
1769,
565,
1542,
8430,
2375,
18,
542,
743,
12,
3202,
8430,
1621,
18,
588,
10368,
743,
10663,
565,
4456,
3187,
18,
1289,
1488,
2375,
12,
3202,
8430,
2375,
1769,
565,
368,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
15291,
3908,
12,
3779,
1084,
3779,
16,
9889,
1018,
3779,
16,
1387,
1542,
8430,
1621,
13,
288,
565,
9889,
3187,
2653,
3187,
273,
1084,
3779,
18,
588,
3779,
3187,
5621,
565,
348,
1488,
938,
273,
2653,
3187,
18,
588,
1488,
5621,
565,
938,
18,
542,
10515,
12,
3767,
1769,
565,
10159,
3187,
4456,
3187,
273,
394,
10159,
3187,
12,
2284,
1769,
565,
4456,
3187,
18,
542,
3908,
3060,
12,
3908,
18,
7163,
3908,
3060,
12,
3168,
3779,
10019,
565,
368,
444,
1018,
2653,
565,
525,
278,
15397,
2679,
18,
81,
1121,
18,
4406,
3779,
18,
3779,
389,
3299,
3779,
273,
394,
525,
278,
15397,
2679,
18,
81,
1121,
18,
4406,
3779,
18,
3779,
12,
2284,
1769,
2
] |
||
* arg12: closeCleanup
|
private void genScalarAggregateResultSet(ActivationClassBuilder acb, MethodBuilder mb) { /* Generate the (Distinct)ScalarAggregateResultSet: * arg1: childExpress - Expression for childResult * arg2: isInSortedOrder - true if source result set in sorted order * arg3: aggregateItem - entry in saved objects for the aggregates, * arg4: orderItem - entry in saved objects for the ordering * arg5: Activation * arg6: rowAllocator - method to construct rows for fetching * from the sort * arg7: row size * arg8: resultSetNumber * arg9: Whether or not to perform min optimization. * arg12: closeCleanup */ String resultSet = (addDistinctAggregate) ? "getDistinctScalarAggregateResultSet" : "getScalarAggregateResultSet"; mb.push(singleInputRowOptimization); mb.push(costEstimate.rowCount()); mb.push(costEstimate.getEstimatedCost()); closeMethodArgument(acb, mb); mb.callMethod(VMOpcode.INVOKEINTERFACE, (String) null, resultSet, ClassName.NoPutResultSet, 11); }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9e6e461e8a18e9d7ada381c5ec3e7568559831b5/GroupByNode.java/clean/java/engine/org/apache/derby/impl/sql/compile/GroupByNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
202,
6459,
3157,
13639,
11490,
13198,
12,
14857,
797,
1263,
1721,
70,
16,
6862,
6862,
6862,
282,
2985,
1263,
4903,
13,
202,
95,
202,
202,
20308,
6654,
326,
261,
23402,
13,
13639,
11490,
13198,
30,
1082,
380,
202,
3175,
21,
30,
1151,
424,
1028,
300,
5371,
364,
1151,
1253,
1082,
380,
225,
1501,
22,
30,
8048,
11739,
2448,
300,
638,
309,
1084,
563,
444,
316,
3115,
1353,
1082,
380,
225,
1501,
23,
30,
7047,
1180,
300,
1241,
316,
5198,
2184,
364,
326,
29389,
16,
1082,
380,
225,
1501,
24,
30,
1353,
1180,
300,
1241,
316,
5198,
2184,
364,
326,
9543,
1082,
380,
225,
1501,
25,
30,
26015,
1082,
380,
225,
1501,
26,
30,
1027,
21156,
300,
707,
358,
4872,
2595,
364,
16191,
1082,
380,
1082,
202,
2080,
326,
1524,
1082,
380,
225,
1501,
27,
30,
1027,
963,
1082,
380,
225,
1501,
28,
30,
12168,
1854,
1082,
380,
225,
1501,
29,
30,
17403,
578,
486,
358,
3073,
1131,
14850,
18,
1082,
380,
225,
1501,
2138,
30,
1746,
15007,
1082,
1195,
202,
202,
780,
12168,
273,
261,
1289,
23402,
11490,
13,
692,
315,
588,
23402,
13639,
11490,
13198,
6,
294,
315,
588,
13639,
11490,
13198,
14432,
202,
202,
1627,
18,
6206,
12,
7526,
1210,
1999,
13930,
1588,
1769,
202,
202,
1627,
18,
6206,
12,
12398,
13638,
18,
492,
1380,
10663,
202,
202,
1627,
18,
6206,
12,
12398,
13638,
18,
588,
9122,
17275,
8018,
10663,
202,
202,
4412,
1305,
1379,
12,
1077,
70,
16,
4903,
1769,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
202,
6459,
3157,
13639,
11490,
13198,
12,
14857,
797,
1263,
1721,
70,
16,
6862,
6862,
6862,
282,
2985,
1263,
4903,
13,
202,
95,
202,
202,
20308,
6654,
326,
261,
23402,
13,
13639,
11490,
13198,
30,
1082,
380,
202,
3175,
21,
30,
1151,
424,
1028,
300,
5371,
364,
1151,
1253,
1082,
380,
225,
1501,
22,
30,
8048,
11739,
2448,
300,
638,
309,
1084,
563,
444,
316,
3115,
1353,
1082,
380,
225,
1501,
23,
30,
7047,
1180,
300,
1241,
316,
5198,
2184,
364,
326,
29389,
16,
1082,
380,
225,
1501,
24,
30,
1353,
1180,
300,
1241,
316,
5198,
2184,
364,
326,
9543,
1082,
380,
225,
1501,
25,
30,
26015,
1082,
380,
225,
1501,
26,
30,
1027,
21156,
300,
2
] |
|
AST __t380 = _t; AST tmp961_AST_in = (AST)_t;
|
AST __t365 = _t; AST tmp965_AST_in = (AST)_t;
|
public final void definebrowsestate(AST _t) throws RecognitionException { AST definebrowsestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST def = null; AST id = null; AST fi1 = null; AST fi2 = null; AST __t355 = _t; def = _t==ASTNULL ? null :(AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case BROWSE: case PRIVATE: case PUBLIC: case PROTECTED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: case PUBLIC: case PROTECTED: { def_visib(_t); _t = _retTree; break; } case BROWSE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp953_AST_in = (AST)_t; match(_t,BROWSE); _t = _t.getNextSibling(); id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { push(action.defineBrowse(def, id)); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QUERY: { AST __t359 = _t; AST tmp954_AST_in = (AST)_t; match(_t,QUERY); _t = _t.getFirstChild(); AST tmp955_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); _t = __t359; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case CONTEXTHELPID: case DISPLAY: case EXCLUSIVELOCK: case NOLOCK: case NOWAIT: case SHARELOCK: case TOOLTIP: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { _loop361: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCLUSIVELOCK: case NOLOCK: case SHARELOCK: { lockhow(_t); _t = _retTree; break; } case NOWAIT: { AST tmp956_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } default: { break _loop361; } } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISPLAY: { AST __t363 = _t; AST tmp957_AST_in = (AST)_t; match(_t,DISPLAY); _t = _t.getFirstChild(); { _loop370: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { AST __t365 = _t; fi1 = _t==ASTNULL ? null :(AST)_t; match(_t,Form_item); _t = _t.getFirstChild(); { boolean synPredMatched368 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==RECORD_NAME))) { AST __t368 = _t; synPredMatched368 = true; inputState.guessing++; try { { tbl(_t,CQ.INIT); _t = _retTree; } } catch (RecognitionException pe) { synPredMatched368 = false; } _t = __t368;inputState.guessing--; } if ( synPredMatched368 ) { tbl(_t,CQ.INIT); _t = _retTree; } else if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { columnformat(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } } else if ((_t.getType()==SPACE)) { spacephrase(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } if ( inputState.guessing==0 ) { action.formItem(fi1); } _t = __t365; _t = _t.getNextSibling(); } else { break _loop370; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t372 = _t; AST tmp958_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop374: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop374; } } while (true); } _t = __t372; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t363; _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ENABLE: { AST __t376 = _t; AST tmp959_AST_in = (AST)_t; match(_t,ENABLE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ALL: { AST __t378 = _t; AST tmp960_AST_in = (AST)_t; match(_t,ALL); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t380 = _t; AST tmp961_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop382: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop382; } } while (true); } _t = __t380; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t378; _t = _t.getNextSibling(); break; } case 3: case Form_item: { { _loop389: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { AST __t384 = _t; fi2 = _t==ASTNULL ? null :(AST)_t; match(_t,Form_item); _t = _t.getFirstChild(); fld(_t,CQ.SYMBOL); _t = _retTree; if ( inputState.guessing==0 ) { action.formItem(fi2); } { _loop388: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case HELP: { AST __t386 = _t; AST tmp962_AST_in = (AST)_t; match(_t,HELP); _t = _t.getFirstChild(); constant(_t); _t = _retTree; _t = __t386; _t = _t.getNextSibling(); break; } case VALIDATE: { AST __t387 = _t; AST tmp963_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t387; _t = _t.getNextSibling(); break; } case AUTORETURN: { AST tmp964_AST_in = (AST)_t; match(_t,AUTORETURN); _t = _t.getNextSibling(); break; } case DISABLEAUTOZAP: { AST tmp965_AST_in = (AST)_t; match(_t,DISABLEAUTOZAP); _t = _t.getNextSibling(); break; } default: { break _loop388; } } } while (true); } _t = __t384; _t = _t.getNextSibling(); } else { break _loop389; } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } _t = __t376; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case CONTEXTHELPID: case TOOLTIP: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } break; } case EOF: case PERIOD: case CONTEXTHELPID: case TOOLTIP: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { _loop391: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==WITH)) { display_with(_t); _t = _retTree; } else { break _loop391; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case EOF: case PERIOD: case CONTEXTHELPID: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CONTEXTHELPID: { AST __t394 = _t; AST tmp966_AST_in = (AST)_t; match(_t,CONTEXTHELPID); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t394; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.addToSymbolScope(pop()); } _t = __t355; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4426,
70,
3870,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
70,
3870,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
1652,
273,
446,
31,
202,
202,
9053,
612,
273,
446,
31,
202,
202,
9053,
7314,
21,
273,
446,
31,
202,
202,
9053,
7314,
22,
273,
446,
31,
9506,
202,
9053,
1001,
88,
23,
2539,
273,
389,
88,
31,
202,
202,
536,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
12904,
3740,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
12887,
30,
202,
202,
3593,
9777,
5879,
30,
202,
202,
95,
1082,
202,
536,
67,
11574,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
605,
11226,
1090,
30,
202,
202,
3593,
23685,
30,
202,
202,
3593,
17187,
30,
202,
202,
3593,
4629,
26729,
30,
202,
202,
95,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
1886,
30,
202,
202,
95,
1082,
202,
12849,
394,
17114,
24899,
88,
1769,
202,
202,
97,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4426,
70,
3870,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
70,
3870,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
1652,
273,
446,
31,
202,
202,
9053,
612,
273,
446,
31,
202,
202,
9053,
7314,
21,
273,
446,
31,
202,
202,
9053,
7314,
22,
273,
446,
31,
9506,
202,
9053,
1001,
88,
23,
2539,
273,
389,
88,
31,
202,
202,
536,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
12904,
3740,
1769,
202,
202,
67,
88,
2
] |
AST __t2420 = _t; AST tmp1976_AST_in = (AST)_t;
|
AST __t2421 = _t; AST tmp1977_AST_in = (AST)_t;
|
public final void declarecursorstate(AST _t) throws RecognitionException { AST declarecursorstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2418 = _t; AST tmp1972_AST_in = (AST)_t; match(_t,DECLARE); _t = _t.getFirstChild(); AST tmp1973_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); AST tmp1974_AST_in = (AST)_t; match(_t,CURSOR); _t = _t.getNextSibling(); AST tmp1975_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); selectstatea(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FOR: { AST __t2420 = _t; AST tmp1976_AST_in = (AST)_t; match(_t,FOR); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case READ: { AST __t2422 = _t; AST tmp1977_AST_in = (AST)_t; match(_t,READ); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ONLY: { AST tmp1978_AST_in = (AST)_t; match(_t,ONLY); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2422; _t = _t.getNextSibling(); break; } case UPDATE: { AST tmp1979_AST_in = (AST)_t; match(_t,UPDATE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } _t = __t2420; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t2418; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
14196,
9216,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
14196,
9216,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3247,
2643,
273,
389,
88,
31,
202,
202,
9053,
1853,
3657,
9060,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
1639,
15961,
862,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
3657,
9036,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
734,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
9053,
1853,
3657,
5608,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7509,
55,
916,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
9053,
1853,
3657,
5877,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7473,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
4025,
2019,
69,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
14196,
9216,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
14196,
9216,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3247,
2643,
273,
389,
88,
31,
202,
202,
9053,
1853,
3657,
9060,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
1639,
15961,
862,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
3657,
9036,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
734,
1769,
202,
2
] |
((List<? super EReference>)eClass.getEStructuralFeatures()).add(eReference);
|
((List<? super EReference>)_eClass.getEStructuralFeatures()).add(eReference);
|
private void identifyReferences() { Method[] methods = javaClass.getMethods(); for(int i=0; i<methods.length; i++) { final Method method = methods[i]; if (!getRuntimeNamingConventions().isReference(method)) { continue; } LinkSemanticsType linkSemanticsType = null; Class<?> referencedJavaClass = methods[i].getReturnType(); IDomainClass<?> referencedDomainClass = null; boolean couldBeCollection = true; TypeOf associates = null; // let's see if its a 1:m (collection class) if (couldBeCollection) { linkSemanticsType = LinkSemanticsType.lookupBy(referencedJavaClass); if (linkSemanticsType == null) { // no, it's not a List, Set, Map etc. couldBeCollection = false; } } if (couldBeCollection) { associates = method.getAnnotation(TypeOf.class); if (associates == null) { // they've forgotten the @Associates annotation. couldBeCollection = false; } } if (couldBeCollection) { referencedJavaClass = associates.value(); referencedDomainClass = domain.lookup(referencedJavaClass); if (referencedDomainClass == null) { // what they're referencing isn't a domain class couldBeCollection = false; } } if (!couldBeCollection) { // treat as a 1:1 reference referencedDomainClass = domain.lookup(referencedJavaClass); if (referencedDomainClass != null) { // 1:1 linkSemanticsType = LinkSemanticsType.SIMPLE_REF; } } String referenceName = getRuntimeNamingConventions().deriveReferenceName(method); if (this.getEReferenceNamed(referenceName) != null) { continue; } EReference eReference = EcoreFactory.eINSTANCE.createEReference(); EReferenceImpl eReferenceImpl = (EReferenceImpl)eReference; eReference.setEType(referencedDomainClass.getEClass()); // sets EReferenceType eReference.setName(referenceName); linkSemanticsType.setOrderingUniquenessAndMultiplicity(eReference); // TODO: use EAnnotations to specify if qualified and if sorted Container container = method.getAnnotation(Container.class); if (container != null) { eReference.setContainment(true); } Derived derived = method.getAnnotation(Derived.class); if (derived != null) { eReference.setDerived(true); eReference.setTransient(true); eReference.setVolatile(true); } // initially we just catalog the opposite; later we shall look // for them. OppositeOf oppositeOf = method.getAnnotation(OppositeOf.class); if (oppositeOf != null) { emfFacade.putAnnotationDetails( this, referenceAnnotationFor(eReference), StandardProgModelConstants.ANNOTATION_REFERENCE_OPPOSITE_KEY, oppositeOf.value()); } // we determine immutability based on presence of associator/dissociator. eReference.setChangeable(false); // eReference.setUnsettable() // eReference.setDefaultValueLiteral(someDefaultLiteral); // TODO // eReference.setResolveProxies(...); // TODO: this is a little like Hibernate lazy loading. // eReference.setLowerBound( ... set by linkSemanticsType ...); ((List<? super EReference>)eClass.getEStructuralFeatures()).add(eReference); emfFacade.putAnnotationDetails( this, emfFacade.methodNamesAnnotationFor(eReference), StandardProgModelConstants.ANNOTATION_REFERENCE_ACCESSOR_NAME_KEY, method.getName());// if (!getProgrammingModel().isLink(methods[i])) // simple or composite.// continue; // TODO: resolveProxies } }
|
13434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13434/cbb1b7f454f777db77722f2c7490d716b115b9ef/RuntimeDomainClass.java/clean/trunk/workspace/de.berlios.rcpviewer.domain.runtime/src/de/berlios/rcpviewer/progmodel/standard/RuntimeDomainClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
9786,
8221,
1435,
288,
202,
202,
1305,
8526,
2590,
273,
2252,
797,
18,
588,
4712,
5621,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
277,
32,
5163,
18,
2469,
31,
277,
27245,
288,
1082,
202,
6385,
2985,
707,
273,
2590,
63,
77,
15533,
1082,
202,
430,
16051,
588,
5576,
24102,
442,
24862,
7675,
291,
2404,
12,
2039,
3719,
288,
9506,
202,
17143,
31,
1082,
202,
97,
25083,
202,
2098,
13185,
11119,
559,
1692,
13185,
11119,
559,
273,
446,
31,
1082,
202,
797,
12880,
34,
8042,
5852,
797,
273,
2590,
63,
77,
8009,
588,
9102,
5621,
1082,
202,
734,
1530,
797,
12880,
34,
8042,
3748,
797,
273,
446,
31,
1082,
202,
6494,
3377,
1919,
2532,
273,
638,
31,
1082,
202,
559,
951,
2576,
815,
273,
446,
31,
1082,
202,
759,
2231,
1807,
2621,
309,
2097,
279,
404,
30,
81,
261,
5548,
667,
13,
1082,
202,
430,
261,
15195,
1919,
2532,
13,
288,
9506,
202,
1232,
13185,
11119,
559,
273,
4048,
13185,
11119,
559,
18,
8664,
858,
12,
20883,
5852,
797,
1769,
9506,
202,
430,
261,
1232,
13185,
11119,
559,
422,
446,
13,
288,
6862,
202,
759,
1158,
16,
518,
1807,
486,
279,
987,
16,
1000,
16,
1635,
5527,
18,
6862,
202,
15195,
1919,
2532,
273,
629,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
430,
261,
15195,
1919,
2532,
13,
288,
9506,
202,
7836,
815,
273,
707,
18,
588,
3257,
12,
559,
951,
18,
1106,
1769,
9506,
202,
430,
261,
7836,
815,
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,
9786,
8221,
1435,
288,
202,
202,
1305,
8526,
2590,
273,
2252,
797,
18,
588,
4712,
5621,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
277,
32,
5163,
18,
2469,
31,
277,
27245,
288,
1082,
202,
6385,
2985,
707,
273,
2590,
63,
77,
15533,
1082,
202,
430,
16051,
588,
5576,
24102,
442,
24862,
7675,
291,
2404,
12,
2039,
3719,
288,
9506,
202,
17143,
31,
1082,
202,
97,
25083,
202,
2098,
13185,
11119,
559,
1692,
13185,
11119,
559,
273,
446,
31,
1082,
202,
797,
12880,
34,
8042,
5852,
797,
273,
2590,
63,
77,
8009,
588,
9102,
5621,
1082,
202,
734,
1530,
797,
12880,
34,
8042,
3748,
797,
273,
446,
31,
1082,
202,
6494,
3377,
1919,
2532,
2
] |
public static final InputStream openStream(Bundle bundle, IPath file, boolean localized) throws IOException {
|
public static final InputStream openStream(Bundle bundle, IPath file, boolean substituteArgs) throws IOException {
|
public static final InputStream openStream(Bundle bundle, IPath file, boolean localized) throws IOException { URL url = null; if (!localized) { url = findInPlugin(bundle, file); if (url == null) url = findInFragments(bundle, file); } else { url = FindSupport.find(bundle, file); } if (url != null) return url.openStream(); throw new IOException("Cannot find " + file.toString()); //$NON-NLS-1$ }
|
13530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13530/1aed5b8c32ff7e28b613ee9062640fa915b4b2dd/FindSupport.java/buggy/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/FindSupport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
5037,
25900,
12,
3405,
3440,
16,
467,
743,
585,
16,
1250,
13596,
13,
1216,
1860,
288,
202,
202,
1785,
880,
273,
446,
31,
202,
202,
430,
16051,
3729,
1235,
13,
288,
1082,
202,
718,
273,
1104,
382,
3773,
12,
9991,
16,
585,
1769,
1082,
202,
430,
261,
718,
422,
446,
13,
9506,
202,
718,
273,
1104,
382,
27588,
12,
9991,
16,
585,
1769,
202,
202,
97,
469,
288,
1082,
202,
718,
273,
4163,
6289,
18,
4720,
12,
9991,
16,
585,
1769,
202,
202,
97,
202,
202,
430,
261,
718,
480,
446,
13,
1082,
202,
2463,
880,
18,
3190,
1228,
5621,
202,
202,
12849,
394,
1860,
2932,
4515,
1104,
315,
397,
585,
18,
10492,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
760,
727,
5037,
25900,
12,
3405,
3440,
16,
467,
743,
585,
16,
1250,
13596,
13,
1216,
1860,
288,
202,
202,
1785,
880,
273,
446,
31,
202,
202,
430,
16051,
3729,
1235,
13,
288,
1082,
202,
718,
273,
1104,
382,
3773,
12,
9991,
16,
585,
1769,
1082,
202,
430,
261,
718,
422,
446,
13,
9506,
202,
718,
273,
1104,
382,
27588,
12,
9991,
16,
585,
1769,
202,
202,
97,
469,
288,
1082,
202,
718,
273,
4163,
6289,
18,
4720,
12,
9991,
16,
585,
1769,
202,
202,
97,
202,
202,
430,
261,
718,
480,
446,
13,
1082,
202,
2463,
880,
18,
3190,
1228,
5621,
202,
202,
12849,
394,
1860,
2932,
4515,
1104,
315,
397,
585,
18,
10492,
10663,
2
] |
endComponentLifecycle( singleton ); singleton = null;
|
if ( singleton != null ) { endComponentLifecycle( singleton ); singleton = null; }
|
public void dispose() throws Exception { //wait for all the clients to return all the components //Do we do this in a seperate thread? or block the current thread?? //TODO if ( singleton != null ) { endComponentLifecycle( singleton ); singleton = null; } }
|
55908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55908/85ad8cd3084e1d1fb47c9e7adb8fd61c12edc2f9/ClassicSingletonComponentManager.java/clean/plexus-container-new.old/src/main/java/org/codehaus/plexus/component/manager/ClassicSingletonComponentManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15825,
1435,
3639,
1216,
1185,
565,
288,
3639,
368,
7048,
364,
777,
326,
7712,
358,
327,
777,
326,
4085,
3639,
368,
3244,
732,
741,
333,
316,
279,
22282,
340,
2650,
35,
578,
1203,
326,
783,
2650,
14646,
3639,
368,
6241,
3639,
309,
261,
6396,
480,
446,
262,
3639,
288,
5411,
679,
1841,
9977,
12,
6396,
11272,
5411,
6396,
273,
446,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15825,
1435,
3639,
1216,
1185,
565,
288,
3639,
368,
7048,
364,
777,
326,
7712,
358,
327,
777,
326,
4085,
3639,
368,
3244,
732,
741,
333,
316,
279,
22282,
340,
2650,
35,
578,
1203,
326,
783,
2650,
14646,
3639,
368,
6241,
3639,
309,
261,
6396,
480,
446,
262,
3639,
288,
5411,
679,
1841,
9977,
12,
6396,
11272,
5411,
6396,
273,
446,
31,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
WhiteSpace lastWS = processor.getLastWhiteSpace(); int lineStartOffset = getLineStartOffset(offset, lastWS, getText(documentModel));
|
return offset - whiteSpace.getTextRange().getLength() + newWS.length(); } } else { WhiteSpace lastWS = processor.getLastWhiteSpace(); int lineStartOffset = getLineStartOffset(offset, lastWS, getText(documentModel));
|
public int adjustLineIndent(final FormattingModel model, final CodeStyleSettings settings, final CodeStyleSettings.IndentOptions indentOptions, final int offset, final TextRange affectedRange) throws IncorrectOperationException { myIsActive++; try { myIsActive++; try { final FormattingDocumentModel documentModel = model.getDocumentModel(); final Block block = model.getRootBlock(); final FormatProcessor processor = new FormatProcessor(documentModel, block, settings, indentOptions, affectedRange); final LeafBlockWrapper blockAfterOffset = processor.getBlockBefore(offset); if (blockAfterOffset != null) { final WhiteSpace whiteSpace = blockAfterOffset.getWhiteSpace(); boolean wsContainsCaret = whiteSpace.getTextRange().getStartOffset() <= offset && whiteSpace.getTextRange().getEndOffset() > offset; final CharSequence text = getCharSequence(documentModel); int lineStartOffset = getLineStartOffset(offset, whiteSpace, text); processor.setAllWhiteSpacesAreReadOnly(); whiteSpace.setLineFeedsAreReadOnly(true); final IndentInfo indent; if (documentModel.getLineNumber(offset) == documentModel.getLineNumber(whiteSpace.getTextRange().getEndOffset())) { whiteSpace.setReadOnly(false); processor.formatWithoutRealModifications(); indent = new IndentInfo(0, whiteSpace.getIndentOffset(), whiteSpace.getSpaces()); } else { indent = processor.getIndentAt(offset); } final String newWS = whiteSpace.generateWhiteSpace(indentOptions, lineStartOffset, indent); model.replaceWhiteSpace(whiteSpace.getTextRange(), newWS, blockAfterOffset.getTextRange().getLength()); if (wsContainsCaret) { return whiteSpace.getTextRange().getStartOffset() + CharArrayUtil.shiftForward(newWS.toCharArray(), lineStartOffset - whiteSpace.getTextRange().getStartOffset(), " \t"); } else { return offset - whiteSpace.getTextRange().getLength() + newWS.length(); } } else { WhiteSpace lastWS = processor.getLastWhiteSpace(); int lineStartOffset = getLineStartOffset(offset, lastWS, getText(documentModel)); final IndentInfo indent = new IndentInfo(0, 0, 0); final String newWS = lastWS.generateWhiteSpace(indentOptions, lineStartOffset, indent); model.replaceWhiteSpace(lastWS.getTextRange(), newWS, 0); return lastWS.getTextRange().getStartOffset() + CharArrayUtil.shiftForward(newWS.toCharArray(), lineStartOffset - lastWS.getTextRange().getStartOffset(), " \t"); } } finally { myIsActive--; } } finally { myIsActive--; } }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/7e4a7f9dd4997fabed84b53b8f28cda88c3f7c17/FormatterImpl.java/clean/source/com/intellij/newCodeFormatting/impl/FormatterImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
5765,
1670,
7790,
12,
6385,
4077,
1787,
1488,
938,
16,
17311,
727,
3356,
2885,
2628,
1947,
16,
17311,
727,
3356,
2885,
2628,
18,
7790,
1320,
3504,
1320,
16,
17311,
727,
509,
1384,
16,
17311,
727,
3867,
2655,
9844,
2655,
13,
1216,
657,
6746,
10602,
288,
565,
3399,
2520,
3896,
9904,
31,
565,
775,
288,
1377,
3399,
2520,
3896,
9904,
31,
1377,
775,
288,
3639,
727,
4077,
1787,
2519,
1488,
1668,
1488,
273,
938,
18,
588,
2519,
1488,
5621,
3639,
727,
3914,
1203,
273,
938,
18,
588,
2375,
1768,
5621,
3639,
727,
4077,
5164,
6659,
273,
394,
4077,
5164,
12,
5457,
1488,
16,
1203,
16,
1947,
16,
3504,
1320,
16,
9844,
2655,
1769,
3639,
727,
23383,
1768,
3611,
1203,
4436,
2335,
273,
6659,
18,
588,
1768,
4649,
12,
3348,
1769,
3639,
309,
261,
2629,
4436,
2335,
480,
446,
13,
288,
1850,
727,
30233,
3819,
9578,
3819,
273,
1203,
4436,
2335,
18,
588,
23108,
5621,
1850,
1250,
4945,
10846,
39,
20731,
273,
9578,
3819,
18,
588,
1528,
2655,
7675,
588,
1685,
2335,
1435,
1648,
1384,
597,
9578,
3819,
18,
588,
1528,
2655,
7675,
588,
1638,
2335,
1435,
405,
1384,
31,
1850,
727,
9710,
977,
273,
23577,
4021,
12,
5457,
1488,
1769,
1850,
509,
29208,
2335,
273,
9851,
1685,
2335,
12,
3348,
16,
9578,
3819,
16,
977,
1769,
1850,
6659,
18,
542,
1595,
13407,
12077,
4704,
12066,
5621,
1850,
9578,
3819,
18,
542,
1670,
8141,
87,
4704,
12066,
12,
3767,
1769,
1850,
727,
28653,
966,
3504,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
5765,
1670,
7790,
12,
6385,
4077,
1787,
1488,
938,
16,
17311,
727,
3356,
2885,
2628,
1947,
16,
17311,
727,
3356,
2885,
2628,
18,
7790,
1320,
3504,
1320,
16,
17311,
727,
509,
1384,
16,
17311,
727,
3867,
2655,
9844,
2655,
13,
1216,
657,
6746,
10602,
288,
565,
3399,
2520,
3896,
9904,
31,
565,
775,
288,
1377,
3399,
2520,
3896,
9904,
31,
1377,
775,
288,
3639,
727,
4077,
1787,
2519,
1488,
1668,
1488,
273,
938,
18,
588,
2519,
1488,
5621,
3639,
727,
3914,
1203,
273,
938,
18,
588,
2375,
1768,
5621,
3639,
727,
4077,
5164,
6659,
273,
394,
4077,
5164,
12,
5457,
1488,
16,
1203,
16,
1947,
16,
3504,
1320,
16,
9844,
2655,
1769,
3639,
727,
23383,
1768,
2
] |
bc2ir.appendInstruction(Binary.create(INT_SUB, op0, o1, o2));
|
bc2ir.appendInstruction(Binary.create(VM.BuildFor32Addr ? INT_SUB : LONG_SUB, op0, o1, o2));
|
static boolean generatePolymorphicMagic(OPT_BC2IR bc2ir, OPT_GenerationContext gc, VM_MethodReference meth, VM_Atom methodName) { VM_TypeReference [] paramTypes = meth.getParameterTypes(); VM_TypeReference resultType = meth.getReturnType(); if (methodName == VM_MagicNames.wordFromInt || methodName == VM_MagicNames.wordFromIntZeroExtend || methodName == VM_MagicNames.wordFromIntSignExtend) { OPT_RegisterOperand reg = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popInt())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.wordToInt) { // a no-op without even a type-conversion OPT_RegisterOperand reg = gc.temps.makeTempInt(); bc2ir.appendInstruction(Move.create(INT_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.wordToLong) { if (VM.BuildFor32Addr) { // This is a really crappy implementation. // The theory is that this magic isn't going to be used anywhere we // care about performance so we do something stupid here instead of // making a new IR operator that we have to plumb all the way through the compiler. OPT_RegisterOperand reg = gc.temps.makeTempInt(); OPT_RegisterOperand lreg = gc.temps.makeTempLong(); bc2ir.appendInstruction(Move.create(INT_MOVE, reg, bc2ir.popAddress())); bc2ir.appendInstruction(Unary.create(INT_2LONG, lreg, reg.copyD2U())); bc2ir.appendInstruction(Binary.create(LONG_AND, lreg.copyD2D(), lreg.copyD2U(), new OPT_LongConstantOperand(0x00000000ffffffffL))); bc2ir.pushDual(lreg.copyD2U()); } else { // a no-op without even a type-conversion OPT_RegisterOperand reg = gc.temps.makeTempLong(); bc2ir.appendInstruction(Move.create(LONG_MOVE, reg, bc2ir.popAddress())); bc2ir.pushDual(reg.copyD2U()); } } else if (methodName == VM_MagicNames.wordToWord) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.wordToAddress) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.wordToOffset) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.Offset); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.wordToExtent) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.Extent); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.wordAdd) { OPT_Operand o2 = bc2ir.pop(); OPT_Operand o1 = bc2ir.pop(); OPT_RegisterOperand op0 = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Binary.create(INT_ADD, op0, o1, o2)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.wordSub) { OPT_Operand o2 = bc2ir.pop(); OPT_Operand o1 = bc2ir.pop(); OPT_RegisterOperand op0 = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Binary.create(INT_SUB, op0, o1, o2)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.wordDiff) { OPT_Operand o2 = bc2ir.pop(); OPT_Operand o1 = bc2ir.pop(); OPT_RegisterOperand op0 = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Binary.create(INT_SUB, op0, o1, o2)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.wordAnd) { OPT_Operand o2 = bc2ir.pop(); OPT_Operand o1 = bc2ir.pop(); OPT_RegisterOperand op0 = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Binary.create(INT_AND, op0, o1, o2)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.wordOr) { OPT_Operand o2 = bc2ir.pop(); OPT_Operand o1 = bc2ir.pop(); OPT_RegisterOperand op0 = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Binary.create(INT_OR, op0, o1, o2)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.wordXor) { OPT_Operand o2 = bc2ir.pop(); OPT_Operand o1 = bc2ir.pop(); OPT_RegisterOperand op0 = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Binary.create(INT_XOR, op0, o1, o2)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.wordNot) { OPT_Operand o1 = bc2ir.pop(); OPT_RegisterOperand op0 = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Unary.create(INT_NOT, op0, o1)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.wordZero) { OPT_RegisterOperand op0 = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Move.create(INT_MOVE, op0, new OPT_AddressConstantOperand(VM_Address.zero()))); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.wordOne) { OPT_RegisterOperand op0 = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Move.create(INT_MOVE, op0, new OPT_AddressConstantOperand(VM_Address.fromIntZeroExtend(1)))); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.wordMax) { OPT_RegisterOperand op0 = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Move.create(INT_MOVE, op0, new OPT_AddressConstantOperand(VM_Address.max()))); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.wordIsZero) { OPT_RegisterOperand op0 = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Move.create(INT_MOVE, op0, new OPT_AddressConstantOperand(VM_Address.zero()))); OPT_ConditionOperand cond = OPT_ConditionOperand.EQUAL(); cmpHelper(bc2ir,gc,cond, op0); } else if (methodName == VM_MagicNames.wordIsMax) { OPT_RegisterOperand op0 = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Move.create(INT_MOVE, op0, new OPT_AddressConstantOperand(VM_Address.max()))); OPT_ConditionOperand cond = OPT_ConditionOperand.EQUAL(); cmpHelper(bc2ir,gc,cond, op0); } else if (methodName == VM_MagicNames.wordEQ) { OPT_ConditionOperand cond = OPT_ConditionOperand.EQUAL(); cmpHelper(bc2ir,gc,cond,null); } else if (methodName == VM_MagicNames.wordNE) { OPT_ConditionOperand cond = OPT_ConditionOperand.NOT_EQUAL(); cmpHelper(bc2ir,gc,cond,null); } else if (methodName == VM_MagicNames.wordLT) { OPT_ConditionOperand cond = OPT_ConditionOperand.LOWER(); cmpHelper(bc2ir,gc,cond,null); } else if (methodName == VM_MagicNames.wordLE) { OPT_ConditionOperand cond = OPT_ConditionOperand.LOWER_EQUAL(); cmpHelper(bc2ir,gc,cond,null); } else if (methodName == VM_MagicNames.wordGT) { OPT_ConditionOperand cond = OPT_ConditionOperand.HIGHER(); cmpHelper(bc2ir,gc,cond,null); } else if (methodName == VM_MagicNames.wordGE) { OPT_ConditionOperand cond = OPT_ConditionOperand.HIGHER_EQUAL(); cmpHelper(bc2ir,gc,cond,null); } else if (methodName == VM_MagicNames.wordsLT) { OPT_ConditionOperand cond = OPT_ConditionOperand.LESS(); cmpHelper(bc2ir,gc,cond,null); } else if (methodName == VM_MagicNames.wordsLE) { OPT_ConditionOperand cond = OPT_ConditionOperand.LESS_EQUAL(); cmpHelper(bc2ir,gc,cond,null); } else if (methodName == VM_MagicNames.wordsGT) { OPT_ConditionOperand cond = OPT_ConditionOperand.GREATER(); cmpHelper(bc2ir,gc,cond,null); } else if (methodName == VM_MagicNames.wordsGE) { OPT_ConditionOperand cond = OPT_ConditionOperand.GREATER_EQUAL(); cmpHelper(bc2ir,gc,cond,null); } else if (methodName == VM_MagicNames.wordLsh) { OPT_Operand op2 = bc2ir.popInt(); OPT_Operand op1 = bc2ir.popAddress(); OPT_RegisterOperand res = gc.temps.makeTemp(resultType); // VM_TypeReference.Int); bc2ir.appendInstruction(Binary.create(VM.BuildFor32Addr ? INT_SHL : LONG_SHL, res, op1, op2)); bc2ir.push(res.copyD2U()); } else if (methodName == VM_MagicNames.wordRshl) { OPT_Operand op2 = bc2ir.popInt(); OPT_Operand op1 = bc2ir.popAddress(); OPT_RegisterOperand res = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Binary.create(VM.BuildFor32Addr ? INT_USHR : LONG_USHR, res, op1, op2)); bc2ir.push(res.copyD2U()); } else if (methodName == VM_MagicNames.wordRsha) { OPT_Operand op2 = bc2ir.popInt(); OPT_Operand op1 = bc2ir.popAddress(); OPT_RegisterOperand res = gc.temps.makeTemp(resultType); bc2ir.appendInstruction(Binary.create(VM.BuildFor32Addr ? INT_SHR : LONG_SHR, res, op1, op2)); bc2ir.push(res.copyD2U()); } else { return false; } return true; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/f53ddfbc5efeb20c762dfca0baef9276d8123fff/OPT_GenerateMagic.java/buggy/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_GenerateMagic.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1250,
2103,
5850,
21976,
19289,
12,
15620,
67,
16283,
22,
7937,
6533,
22,
481,
16,
4766,
6647,
16456,
67,
13842,
1042,
8859,
16,
4766,
6647,
8251,
67,
1305,
2404,
7917,
16,
8251,
67,
3641,
4918,
13,
288,
565,
8251,
67,
7534,
5378,
21265,
273,
7917,
18,
588,
1662,
2016,
5621,
565,
8251,
67,
7534,
25820,
273,
7917,
18,
588,
9102,
5621,
565,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
1095,
1265,
1702,
747,
3639,
4918,
422,
8251,
67,
19289,
1557,
18,
1095,
1265,
1702,
7170,
16675,
747,
3639,
4918,
422,
8251,
67,
19289,
1557,
18,
1095,
1265,
1702,
2766,
16675,
13,
288,
1377,
16456,
67,
3996,
10265,
960,
273,
8859,
18,
874,
1121,
18,
6540,
7185,
12,
2088,
559,
1769,
1377,
6533,
22,
481,
18,
6923,
11983,
12,
7607,
18,
2640,
12,
10771,
67,
16537,
16,
960,
16,
6533,
22,
481,
18,
5120,
1702,
1435,
10019,
1377,
6533,
22,
481,
18,
6206,
12,
1574,
18,
3530,
40,
22,
57,
10663,
565,
289,
469,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
1095,
17864,
13,
288,
1377,
368,
279,
1158,
17,
556,
2887,
5456,
279,
618,
17,
20990,
1377,
16456,
67,
3996,
10265,
960,
273,
8859,
18,
874,
1121,
18,
6540,
7185,
1702,
5621,
1377,
6533,
22,
481,
18,
6923,
11983,
12,
7607,
18,
2640,
12,
3217,
67,
16537,
16,
960,
16,
6533,
22,
481,
18,
5120,
1887,
1435,
10019,
1377,
6533,
22,
481,
18,
6206,
12,
1574,
18,
3530,
40,
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,
1250,
2103,
5850,
21976,
19289,
12,
15620,
67,
16283,
22,
7937,
6533,
22,
481,
16,
4766,
6647,
16456,
67,
13842,
1042,
8859,
16,
4766,
6647,
8251,
67,
1305,
2404,
7917,
16,
8251,
67,
3641,
4918,
13,
288,
565,
8251,
67,
7534,
5378,
21265,
273,
7917,
18,
588,
1662,
2016,
5621,
565,
8251,
67,
7534,
25820,
273,
7917,
18,
588,
9102,
5621,
565,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
1095,
1265,
1702,
747,
3639,
4918,
422,
8251,
67,
19289,
1557,
18,
1095,
1265,
1702,
7170,
16675,
747,
3639,
4918,
422,
8251,
67,
19289,
1557,
18,
1095,
1265,
1702,
2766,
16675,
13,
288,
1377,
16456,
67,
3996,
10265,
960,
273,
8859,
18,
874,
1121,
18,
2
] |
this.downloadsDir = downloadDir;
|
this.downloadsDir = server.downloadsDir;
|
public TextModeClientInterface(Node n, HighLevelSimpleClient c, File downloadDir, InputStream in, OutputStream out) { this.n = n; this.r = n.random; this.client = c; this.streams = new Hashtable(); this.downloadsDir = downloadDir; this.in = in; this.out = out; }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/0f77d1c3db84068c486f4734003efa30214aea88/TextModeClientInterface.java/buggy/src/freenet/node/TextModeClientInterface.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3867,
2309,
1227,
1358,
12,
907,
290,
16,
15207,
2355,
5784,
1227,
276,
16,
1387,
4224,
1621,
16,
5037,
316,
16,
8962,
596,
13,
288,
377,
202,
2211,
18,
82,
273,
290,
31,
377,
202,
2211,
18,
86,
273,
290,
18,
9188,
31,
377,
202,
2211,
18,
2625,
273,
276,
31,
377,
202,
2211,
18,
16320,
273,
394,
18559,
5621,
377,
202,
2211,
18,
7813,
87,
1621,
273,
1438,
18,
7813,
87,
1621,
31,
377,
202,
2211,
18,
267,
273,
316,
31,
377,
202,
2211,
18,
659,
273,
596,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3867,
2309,
1227,
1358,
12,
907,
290,
16,
15207,
2355,
5784,
1227,
276,
16,
1387,
4224,
1621,
16,
5037,
316,
16,
8962,
596,
13,
288,
377,
202,
2211,
18,
82,
273,
290,
31,
377,
202,
2211,
18,
86,
273,
290,
18,
9188,
31,
377,
202,
2211,
18,
2625,
273,
276,
31,
377,
202,
2211,
18,
16320,
273,
394,
18559,
5621,
377,
202,
2211,
18,
7813,
87,
1621,
273,
1438,
18,
7813,
87,
1621,
31,
377,
202,
2211,
18,
267,
273,
316,
31,
377,
202,
2211,
18,
659,
273,
596,
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
] |
if (jj_3R_150()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_362()) { jj_scanpos = xsp; break; } }
|
if (jj_3R_135()) return true;
|
final private boolean jj_3R_361() { if (jj_3R_150()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_362()) { jj_scanpos = xsp; break; } } return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/055714a475c6a7564445212f5659883fd8cff246/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5718,
21,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
23014,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
54,
67,
5718,
22,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5718,
21,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
23014,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
54,
67,
5718,
22,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
UnicodeSet commonAndInherited = new UnicodeSet("[[:script=common:][:script=inherited:][:alphabetic=false:]]");
|
public void TestThatExemplarsContainAll() { UnicodeSet commonAndInherited = new UnicodeSet("[[:script=common:][:script=inherited:][:alphabetic=false:]]"); // Set counts = new TreeSet(); int totalCount = 0; UnicodeSet localeMissing = new UnicodeSet(); for (Iterator it = locales.iterator(); it.hasNext();) { String locale = (String)it.next(); if (locale.equals("root")) continue; CLDRFile resolved = cldrFactory.make(locale, true); UnicodeSet exemplars = getExemplarSet(resolved,""); if (exemplars.size() == 0) { errln(getLocaleAndName(locale) + " has empty exemplar set"); } exemplars.addAll(getExemplarSet(resolved,"standard")) .addAll(getExemplarSet(resolved,"auxiliary")) .addAll(commonAndInherited); CLDRFile plain = cldrFactory.make(locale, false); int count = 0; localeMissing.clear(); for (Iterator it2 = plain.keySet().iterator(); it2.hasNext();) { String xpath = (String) it2.next(); if (xpath.indexOf("/exemplarCharacters") > 0 || xpath.indexOf("/pattern") > 0) continue; // skip some items. Value pvalue = plain.getValue(xpath); if (skipDraft && pvalue.getFullXPath().indexOf("[@draft=\"true\"") > 0) continue; String value = pvalue.getStringValue(); if (!exemplars.containsAll(value)) { count++; UnicodeSet missing = new UnicodeSet().addAll(value).removeAll(exemplars); localeMissing.addAll(missing); errln(getLocaleAndName(locale) + "\t" + xpath + "/" + value + " contains " + missing + ", not in exemplars"); } } NumberFormat nf = new DecimalFormat("000"); if (count != 0) { totalCount += count; counts.add(nf.format(count) + "\t" + getLocaleAndName(locale) + "\t" + localeMissing); } } for (Iterator it = counts.iterator(); it.hasNext();) { logln(it.next().toString()); } logln("Total Count: " + totalCount); }
|
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/a726776573f4c18a97247dd2ce566111dbe1c18b/CLDRTest.java/buggy/tools/java/org/unicode/cldr/test/CLDRTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7766,
18163,
424,
351,
412,
5913,
22928,
1595,
1435,
288,
202,
202,
759,
3196,
202,
694,
6880,
273,
394,
19461,
5621,
202,
202,
474,
20578,
273,
374,
31,
202,
202,
16532,
694,
2573,
4841,
273,
394,
9633,
694,
5621,
202,
202,
1884,
261,
3198,
518,
273,
6922,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
780,
2573,
273,
261,
780,
13,
305,
18,
4285,
5621,
1082,
202,
430,
261,
6339,
18,
14963,
2932,
3085,
6,
3719,
1324,
31,
1875,
202,
5017,
6331,
812,
4640,
273,
927,
3069,
1733,
18,
6540,
12,
6339,
16,
638,
1769,
1082,
202,
16532,
694,
431,
351,
412,
5913,
273,
26246,
351,
412,
297,
694,
12,
11792,
16,
3660,
1769,
1082,
202,
430,
261,
338,
351,
412,
5913,
18,
1467,
1435,
422,
374,
13,
288,
9506,
202,
370,
2370,
12,
588,
3916,
1876,
461,
12,
6339,
13,
397,
315,
711,
1008,
431,
351,
412,
297,
444,
8863,
1082,
202,
97,
1082,
202,
338,
351,
412,
5913,
18,
1289,
1595,
12,
588,
424,
351,
412,
297,
694,
12,
11792,
10837,
10005,
6,
3719,
1082,
202,
18,
1289,
1595,
12,
588,
424,
351,
412,
297,
694,
12,
11792,
10837,
18196,
20606,
6,
3719,
1082,
202,
18,
1289,
1595,
12,
6054,
1876,
29078,
1769,
1082,
202,
5017,
6331,
812,
7351,
273,
927,
3069,
1733,
18,
6540,
12,
6339,
16,
629,
1769,
1082,
202,
474,
1056,
273,
374,
31,
1082,
202,
6339,
4841,
18,
8507,
5621,
1082,
202,
1884,
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,
7766,
18163,
424,
351,
412,
5913,
22928,
1595,
1435,
288,
202,
202,
759,
3196,
202,
694,
6880,
273,
394,
19461,
5621,
202,
202,
474,
20578,
273,
374,
31,
202,
202,
16532,
694,
2573,
4841,
273,
394,
9633,
694,
5621,
202,
202,
1884,
261,
3198,
518,
273,
6922,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
780,
2573,
273,
261,
780,
13,
305,
18,
4285,
5621,
1082,
202,
430,
261,
6339,
18,
14963,
2932,
3085,
6,
3719,
1324,
31,
1875,
202,
5017,
6331,
812,
4640,
273,
927,
3069,
1733,
18,
6540,
12,
6339,
16,
638,
1769,
1082,
202,
16532,
694,
431,
351,
412,
5913,
273,
26246,
351,
412,
297,
694,
12,
11792,
2
] |
|
ExpressionBuilder eb = new ExpressionBuilder( textEditor.getSelectionText( ) ); eb.setExpressionProvier( new ExpressionProvider( handle ) ); if ( eb.open( ) == OK ) { if ( !eb.getResult( ).equals( "" ) ) { textEditor.insert( eb.getResult( ) ); } }
|
insertFormat( FormatBuilder.DATETIME );
|
public void run( ) { ExpressionBuilder eb = new ExpressionBuilder( textEditor.getSelectionText( ) ); //$NON-NLS-1$ eb.setExpressionProvier( new ExpressionProvider( handle ) ); if ( eb.open( ) == OK ) { if ( !eb.getResult( ).equals( "" ) ) //$NON-NLS-1$ { textEditor.insert( eb.getResult( ) ); } } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/9919375241cd4aa989d714df256d697a372b363a/TextEditor.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/TextEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
918,
1086,
12,
262,
6862,
202,
95,
25083,
202,
2300,
1263,
20371,
273,
394,
5371,
1263,
12,
977,
6946,
18,
588,
6233,
1528,
12,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
24008,
18,
542,
2300,
626,
522,
264,
12,
394,
5371,
2249,
12,
1640,
262,
11272,
25083,
202,
430,
261,
20371,
18,
3190,
12,
262,
422,
7791,
262,
25083,
202,
95,
6862,
1082,
202,
430,
261,
401,
24008,
18,
588,
1253,
12,
262,
18,
14963,
12,
1408,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
1082,
202,
95,
6862,
9506,
202,
955,
6946,
18,
6387,
12,
20371,
18,
588,
1253,
12,
262,
11272,
6862,
1082,
202,
97,
25083,
202,
97,
6862,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
918,
1086,
12,
262,
6862,
202,
95,
25083,
202,
2300,
1263,
20371,
273,
394,
5371,
1263,
12,
977,
6946,
18,
588,
6233,
1528,
12,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
24008,
18,
542,
2300,
626,
522,
264,
12,
394,
5371,
2249,
12,
1640,
262,
11272,
25083,
202,
430,
261,
20371,
18,
3190,
12,
262,
422,
7791,
262,
25083,
202,
95,
6862,
1082,
202,
430,
261,
401,
24008,
18,
588,
1253,
12,
262,
18,
14963,
12,
1408,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
1082,
202,
95,
6862,
9506,
202,
955,
6946,
18,
6387,
12,
20371,
18,
588,
1253,
12,
262,
11272,
6862,
1082,
202,
97,
25083,
202,
97,
2
] |
this.project = project;
|
public void setProject(Project project) { // TODO Auto-generated method stub }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/30d3b5ddfd48ab15f4d2ef5da7fe3b2330d4a29f/FindBugs2.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/FindBugs2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
25323,
12,
4109,
1984,
13,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
25323,
12,
4109,
1984,
13,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
this._writeWrappedLine(key,indent,text,os,",",",");
|
this._writeWrappedLine(key,indent,text,os,",");
|
private void writeWrappedLocationLine(String key, int indent, String text, PrintStream os) throws IOException { this._writeWrappedLine(key,indent,text,os,",",","); }
|
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/674f7f2565f05cab740ca20faf8dce745bfca0a4/GenbankFormat.java/clean/src/org/biojavax/bio/seq/io/GenbankFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
17665,
2735,
1670,
12,
780,
498,
16,
509,
3504,
16,
514,
977,
16,
21677,
1140,
13,
1216,
1860,
288,
3639,
333,
6315,
2626,
17665,
1670,
12,
856,
16,
9355,
16,
955,
16,
538,
16,
3113,
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,
0,
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,
3238,
918,
1045,
17665,
2735,
1670,
12,
780,
498,
16,
509,
3504,
16,
514,
977,
16,
21677,
1140,
13,
1216,
1860,
288,
3639,
333,
6315,
2626,
17665,
1670,
12,
856,
16,
9355,
16,
955,
16,
538,
16,
3113,
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,
-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 CharsetDecoder newDecoder() { return new UTF_16Decoder(this, UTF_16Decoder.LITTLE_ENDIAN);
|
public CharsetDecoder newDecoder () { return new UTF_16Decoder (this, UTF_16Decoder.LITTLE_ENDIAN);
|
public CharsetDecoder newDecoder() { return new UTF_16Decoder(this, UTF_16Decoder.LITTLE_ENDIAN); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8ae362581db96c93e8717373852fc0c5fa2b24ba/UTF_16LE.java/clean/core/src/classpath/gnu/gnu/java/nio/charset/UTF_16LE.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12080,
7975,
394,
7975,
1435,
288,
202,
202,
2463,
394,
6380,
67,
2313,
7975,
12,
2211,
16,
6380,
67,
2313,
7975,
18,
15716,
56,
900,
67,
30597,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12080,
7975,
394,
7975,
1435,
288,
202,
202,
2463,
394,
6380,
67,
2313,
7975,
12,
2211,
16,
6380,
67,
2313,
7975,
18,
15716,
56,
900,
67,
30597,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AggregationManager.instance().flushCachePool();
|
CachePool.instance().flush();
|
private void runParallelQueries(final int threadCount, final int iterationCount, final boolean flush) { int timeoutMs = threadCount * iterationCount * 10 * 1000; // 1 minute per query final int[] executeCount = new int[] {0}; final QueryAndResult[] queries = new QueryAndResult[sampleQueries.length + taglibQueries.length]; System.arraycopy(sampleQueries, 0, queries, 0, sampleQueries.length); System.arraycopy(taglibQueries, 0, queries, sampleQueries.length, taglibQueries.length); TestCaseForker threaded = new TestCaseForker( this, timeoutMs, threadCount, new ChooseRunnable() { public void run(int i) { for (int j = 0; j < iterationCount; j++) { int queryIndex = (i * 2 + j) % queries.length; try { runQueryCheckResult(queries[queryIndex]); if (flush && i == 0) { AggregationManager.instance().flushCachePool(); } executeCount[0]++; } catch (Throwable e) { e.printStackTrace(); throw Util.newInternal( e, "Thread #" + i + " failed while executing query #" + queryIndex); } } } }); threaded.run(); assertEquals(threadCount * iterationCount, executeCount[0]); }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/0b6ecddc2e72f51e21b459ba4c0fabc554c76028/BasicQueryTest.java/clean/src/main/mondrian/test/BasicQueryTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1086,
13056,
9592,
12,
6385,
509,
2650,
1380,
16,
5411,
727,
509,
6532,
1380,
16,
727,
1250,
3663,
13,
288,
202,
202,
474,
2021,
6947,
273,
2650,
1380,
380,
6532,
1380,
380,
1728,
380,
4336,
31,
368,
404,
8044,
1534,
843,
202,
202,
6385,
509,
8526,
1836,
1380,
273,
394,
509,
8526,
288,
20,
20451,
202,
202,
6385,
2770,
1876,
1253,
8526,
6218,
273,
394,
2770,
1876,
1253,
63,
6358,
9592,
18,
2469,
397,
1047,
2941,
9592,
18,
2469,
15533,
202,
202,
3163,
18,
1126,
3530,
12,
6358,
9592,
16,
374,
16,
6218,
16,
374,
16,
3296,
9592,
18,
2469,
1769,
202,
202,
3163,
18,
1126,
3530,
12,
2692,
2941,
9592,
16,
374,
16,
6218,
16,
3296,
9592,
18,
2469,
16,
1047,
2941,
9592,
18,
2469,
1769,
202,
202,
4709,
2449,
22662,
264,
286,
20528,
273,
394,
7766,
2449,
22662,
264,
12,
9506,
202,
2211,
16,
2021,
6947,
16,
2650,
1380,
16,
394,
25593,
20013,
1435,
288,
6862,
202,
482,
918,
1086,
12,
474,
277,
13,
288,
25083,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
6532,
1380,
31,
525,
27245,
288,
6862,
1082,
202,
474,
843,
1016,
273,
261,
77,
380,
576,
397,
525,
13,
738,
6218,
18,
2469,
31,
6862,
1082,
202,
698,
288,
6862,
9506,
202,
2681,
1138,
1564,
1253,
12,
13748,
63,
2271,
1016,
19226,
27573,
309,
261,
11330,
597,
277,
422,
374,
13,
288,
6862,
6862,
202,
1649,
2864,
18,
1336,
7675,
11330,
5621,
27573,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1086,
13056,
9592,
12,
6385,
509,
2650,
1380,
16,
5411,
727,
509,
6532,
1380,
16,
727,
1250,
3663,
13,
288,
202,
202,
474,
2021,
6947,
273,
2650,
1380,
380,
6532,
1380,
380,
1728,
380,
4336,
31,
368,
404,
8044,
1534,
843,
202,
202,
6385,
509,
8526,
1836,
1380,
273,
394,
509,
8526,
288,
20,
20451,
202,
202,
6385,
2770,
1876,
1253,
8526,
6218,
273,
394,
2770,
1876,
1253,
63,
6358,
9592,
18,
2469,
397,
1047,
2941,
9592,
18,
2469,
15533,
202,
202,
3163,
18,
1126,
3530,
12,
6358,
9592,
16,
374,
16,
6218,
16,
374,
16,
3296,
9592,
18,
2469,
1769,
202,
202,
3163,
18,
1126,
3530,
12,
2692,
2941,
9592,
16,
374,
16,
6218,
2
] |
return new Table_new_doc_permission_sets_ex( rs );
|
return new Table_new_doc_permission_sets( rs );
|
public Object mapOneRow( ResultSet rs ) throws SQLException { return new Table_new_doc_permission_sets_ex( rs ); }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/92985c71b38c159d3e33b0a6189f7037c00bd8c7/DatabaseService.java/buggy/server/src/imcode/server/db/DatabaseService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
852,
3335,
1999,
12,
10842,
3597,
262,
1216,
6483,
288,
7734,
327,
394,
3555,
67,
2704,
67,
2434,
67,
9827,
67,
4424,
12,
3597,
11272,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
852,
3335,
1999,
12,
10842,
3597,
262,
1216,
6483,
288,
7734,
327,
394,
3555,
67,
2704,
67,
2434,
67,
9827,
67,
4424,
12,
3597,
11272,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
synPredMatched935 = false;
|
synPredMatched442 = false;
|
protected final void mEXPR_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = EXPR_COMMENT; int _saveIndex; match("(:"); { _loop936: do { boolean synPredMatched935 = false; if (((LA(1)==':') && (_tokenSet_7.member(LA(2))) && (_tokenSet_7.member(LA(3))))) { int _m935 = mark(); synPredMatched935 = true; inputState.guessing++; try { { match(':'); { match(_tokenSet_8); } } } catch (RecognitionException pe) { synPredMatched935 = false; } rewind(_m935); inputState.guessing--; } if ( synPredMatched935 ) { match(':'); } else if ((_tokenSet_9.member(LA(1)))) { mCHAR(false); } else { break _loop936; } } while (true); } match(":)"); if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/722cca774247887cf67fef993c71f848a05e075f/XPathLexer2.java/buggy/src/org/exist/parser/XPathLexer2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
312,
2294,
8025,
67,
12200,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
5675,
8025,
67,
12200,
31,
202,
202,
474,
389,
5688,
1016,
31,
9506,
202,
1916,
2932,
12,
2773,
1769,
202,
202,
95,
202,
202,
67,
6498,
29,
5718,
30,
202,
202,
2896,
288,
1082,
202,
6494,
6194,
10391,
15400,
29,
4763,
273,
629,
31,
1082,
202,
430,
261,
12443,
2534,
12,
21,
13,
18920,
2497,
13,
597,
261,
67,
2316,
694,
67,
27,
18,
5990,
12,
2534,
12,
22,
20349,
597,
261,
67,
2316,
694,
67,
27,
18,
5990,
12,
2534,
12,
23,
3719,
20349,
288,
9506,
202,
474,
389,
81,
29,
4763,
273,
2267,
5621,
9506,
202,
11982,
10391,
15400,
29,
4763,
273,
638,
31,
9506,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
9506,
202,
698,
288,
6862,
202,
95,
6862,
202,
1916,
2668,
2497,
1769,
6862,
202,
95,
6862,
202,
1916,
24899,
2316,
694,
67,
28,
1769,
6862,
202,
97,
6862,
202,
97,
9506,
202,
97,
9506,
202,
14683,
261,
5650,
7909,
503,
2804,
13,
288,
6862,
202,
11982,
10391,
15400,
29,
4763,
273,
629,
31,
9506,
202,
97,
9506,
202,
266,
10094,
24899,
81,
29,
4763,
1769,
9506,
202,
2630,
1119,
18,
20885,
310,
413,
31,
1082,
202,
97,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
312,
2294,
8025,
67,
12200,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
5675,
8025,
67,
12200,
31,
202,
202,
474,
389,
5688,
1016,
31,
9506,
202,
1916,
2932,
12,
2773,
1769,
202,
202,
95,
202,
202,
67,
6498,
29,
5718,
30,
202,
202,
2896,
288,
1082,
202,
6494,
6194,
10391,
15400,
29,
4763,
273,
629,
31,
1082,
202,
430,
261,
12443,
2534,
12,
21,
13,
18920,
2497,
13,
597,
261,
67,
2316,
694,
67,
27,
18,
5990,
2
] |
if (null == sqlResult || 0 == sqlResult.length) {
|
if ( null == sqlResult || 0 == sqlResult.length ) {
|
public CategoryTypeDomainObject getCategoryType( String categoryTypeName ) { String sqlStr = "SELECT category_types.category_type_id, category_types.name, category_types.max_choices\n" + "FROM category_types\n" + "WHERE category_types.name = ?"; String[] sqlResult = service.sqlQuery( sqlStr, new String[]{categoryTypeName} ); if (null == sqlResult || 0 == sqlResult.length) { return null; } else { int categoryTypeId = Integer.parseInt( sqlResult[0] ); String categoryTypeNameFromDb = sqlResult[1]; int categoryTypeMaxChoices = Integer.parseInt( sqlResult[2] ); return new CategoryTypeDomainObject( categoryTypeId, categoryTypeNameFromDb, categoryTypeMaxChoices ); } }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/54567949e7925946b53c3e8da3c43b2ac114b2ed/DocumentMapper.java/buggy/server/src/imcode/server/document/DocumentMapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9856,
559,
3748,
921,
19110,
559,
12,
514,
3150,
7947,
262,
288,
3639,
514,
1847,
1585,
273,
315,
4803,
3150,
67,
2352,
18,
4743,
67,
723,
67,
350,
16,
3150,
67,
2352,
18,
529,
16,
3150,
67,
2352,
18,
1896,
67,
11937,
64,
82,
6,
7734,
397,
315,
11249,
3150,
67,
2352,
64,
82,
6,
7734,
397,
315,
12299,
3150,
67,
2352,
18,
529,
273,
692,
14432,
3639,
514,
8526,
1847,
1253,
273,
1156,
18,
4669,
1138,
12,
1847,
1585,
16,
394,
514,
63,
7073,
4743,
7947,
97,
11272,
3639,
309,
261,
446,
422,
1847,
1253,
747,
374,
422,
1847,
1253,
18,
2469,
262,
288,
5411,
327,
446,
31,
3639,
289,
469,
288,
5411,
509,
3150,
11731,
273,
2144,
18,
2670,
1702,
12,
1847,
1253,
63,
20,
65,
11272,
5411,
514,
3150,
7947,
1265,
4331,
273,
1847,
1253,
63,
21,
15533,
5411,
509,
3150,
559,
2747,
17442,
273,
2144,
18,
2670,
1702,
12,
1847,
1253,
63,
22,
65,
11272,
5411,
327,
394,
9856,
559,
3748,
921,
12,
3150,
11731,
16,
3150,
7947,
1265,
4331,
16,
3150,
559,
2747,
17442,
11272,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9856,
559,
3748,
921,
19110,
559,
12,
514,
3150,
7947,
262,
288,
3639,
514,
1847,
1585,
273,
315,
4803,
3150,
67,
2352,
18,
4743,
67,
723,
67,
350,
16,
3150,
67,
2352,
18,
529,
16,
3150,
67,
2352,
18,
1896,
67,
11937,
64,
82,
6,
7734,
397,
315,
11249,
3150,
67,
2352,
64,
82,
6,
7734,
397,
315,
12299,
3150,
67,
2352,
18,
529,
273,
692,
14432,
3639,
514,
8526,
1847,
1253,
273,
1156,
18,
4669,
1138,
12,
1847,
1585,
16,
394,
514,
63,
7073,
4743,
7947,
97,
11272,
3639,
309,
261,
446,
422,
1847,
1253,
747,
374,
422,
1847,
1253,
18,
2469,
262,
288,
5411,
327,
446,
31,
3639,
289,
469,
288,
5411,
509,
3150,
11731,
2
] |
tabFolder.getControl().setVisible(isVisible); IPresentablePart current = getSite().getSelectedPart(); if (current != null) { current.setVisible(true); } if (isVisible) { layout(true); }
|
public void setVisible(boolean isVisible) { // TODO Auto-generated method stub }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/947362c08342c2be69172786527fe703a723e912/TabbedStackPresentation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/util/TabbedStackPresentation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
16697,
12,
6494,
20453,
13,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
16697,
12,
6494,
20453,
13,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
storedGOTerm, storedPhenotype, storedPhenotypeAnnotation, storedProtein,
|
storedGOTerm, storedProtein,
|
private void createData() throws Exception { osw.flushObjectById(); storedChromosome = (Chromosome) DynamicUtil.createObject(Collections.singleton(Chromosome.class)); storedChromosome.setIdentifier("chr1"); storedGene = (Gene) DynamicUtil.createObject(Collections.singleton(Gene.class)); storedGene.setIdentifier("gene0"); // used by testInsertCollectionField1 storedGene1 = (Gene) DynamicUtil.createObject(Collections.singleton(Gene.class)); storedGene1.setIdentifier("gene1"); storedGene2 = (Gene) DynamicUtil.createObject(Collections.singleton(Gene.class)); storedGene2.setIdentifier("gene2"); storedTranscript = (Transcript) DynamicUtil.createObject(Collections.singleton(Transcript.class)); storedTranscript.setIdentifier("trans0"); // currently the gene reference in Transcript is set before post-processing but the // transcripts reference in Gene isn't set storedTranscript.setGene(storedGene); storedTranscript1 = (Transcript) DynamicUtil.createObject(Collections.singleton(Transcript.class)); storedTranscript1.setIdentifier("trans1"); // currently the gene reference in Transcript is set before post-processing but the // transcripts reference in Gene isn't set storedTranscript2 = (Transcript) DynamicUtil.createObject(Collections.singleton(Transcript.class)); storedTranscript2.setIdentifier("trans2"); // currently the gene reference in Transcript is set before post-processing but the // transcripts reference in Gene isn't set storedTranscript3 = (Transcript) DynamicUtil.createObject(Collections.singleton(Transcript.class)); storedTranscript3.setIdentifier("trans3"); // currently the gene reference in Transcript is set before post-processing but the // transcripts reference in Gene isn't set storedExon = (Exon) DynamicUtil.createObject(Collections.singleton(Exon.class)); storedExon.setIdentifier("exon1"); storedTranscriptRelation = (SimpleRelation) DynamicUtil.createObject(Collections.singleton(SimpleRelation.class)); storedTranscriptRelation.setObject(storedGene); storedTranscriptRelation.setSubject(storedTranscript); storedExonRankedRelation = (RankedRelation) DynamicUtil.createObject(Collections.singleton(RankedRelation.class)); storedExonRankedRelation.setObject(storedTranscript); storedExonRankedRelation.setSubject(storedExon); storedExonRankedRelation.setRank(new Integer(1)); storedExonLocation = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); storedExonLocation.setObject(storedChromosome); storedExonLocation.setSubject(storedExon); storedGeneLocation = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); storedGeneLocation.setObject(storedChromosome); storedGeneLocation.setSubject(storedGene); storedGeneLocation1 = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); storedGeneLocation1.setObject(storedChromosome); storedGeneLocation1.setSubject(storedGene1); storedGeneLocation2 = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); storedGeneLocation2.setObject(storedChromosome); storedGeneLocation2.setSubject(storedGene2); storedTranscriptLocation = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); storedTranscriptLocation.setObject(storedChromosome); storedTranscriptLocation.setSubject(storedTranscript); storedTranscriptLocation1 = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); storedTranscriptLocation1.setObject(storedChromosome); storedTranscriptLocation1.setSubject(storedTranscript1); storedTranscriptLocation2 = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); storedTranscriptLocation2.setObject(storedChromosome); storedTranscriptLocation2.setSubject(storedTranscript2); storedTranscriptLocation3 = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); storedTranscriptLocation3.setObject(storedChromosome); storedTranscriptLocation3.setSubject(storedTranscript3); storedProtein = (Protein) DynamicUtil.createObject(Collections.singleton(Protein.class)); storedProtein.setIdentifier("Protein0"); storedProtein.setGenes(Collections.singleton(storedGene)); storedProtein1 = (Protein) DynamicUtil.createObject(Collections.singleton(Protein.class)); storedProtein1.setIdentifier("Protein1"); storedProtein2 = (Protein) DynamicUtil.createObject(Collections.singleton(Protein.class)); storedProtein2.setIdentifier("Protein1"); storedProtein3 = (Protein) DynamicUtil.createObject(Collections.singleton(Protein.class)); storedProtein3.setIdentifier("Protein3"); storedPhenotypeEvidence = (Evidence) DynamicUtil.createObject(Collections.singleton(Evidence.class)); storedPhenotypeAnnotation = (Annotation) DynamicUtil.createObject(Collections.singleton(Annotation.class)); storedPhenotypeAnnotation.setEvidence(Collections.singleton(storedPhenotypeEvidence)); storedPhenotype = (Phenotype) DynamicUtil.createObject(Collections.singleton(Phenotype.class)); storedPhenotype.setIdentifier("Phenotype1"); storedPhenotypeAnnotation.setProperty(storedPhenotype); storedPhenotypeAnnotation.setSubject(storedGene); storedGOTerm = (GOTerm) DynamicUtil.createObject(Collections.singleton(GOTerm.class)); storedGOTerm.setIdentifier("GOTerm1"); // in gene1 subject collection storedOrthologue1 = (Orthologue) DynamicUtil.createObject(Collections.singleton(Orthologue.class)); storedOrthologue1.setObject(storedGene); // in gene1 objects collection storedOrthologue2 = (Orthologue) DynamicUtil.createObject(Collections.singleton(Orthologue.class)); storedOrthologue2.setSubject(storedGene); // used by testInsertCollectionField1() storedTranscript1.setGene(storedGene1); storedTranscript2.setGene(storedGene1); storedTranscript3.setGene(storedGene2); storedTranscript1.setProtein(storedProtein1); storedTranscript2.setProtein(storedProtein2); storedTranscript3.setProtein(storedProtein3); storedOverlapRelation = (OverlapRelation) DynamicUtil.createObject(Collections.singleton(OverlapRelation.class)); // note: this isn't very consistent because there are no locations for these genes // use for testing insertSymmetricalRelationReferences() storedOverlapRelation.addBioEntities(storedGene1); storedOverlapRelation.addBioEntities(storedGene2); Set toStore = new HashSet(Arrays.asList(new Object[] { storedGene, storedGene1, storedGene2, storedTranscriptRelation, storedExonRankedRelation, storedTranscript, storedTranscript1, storedTranscript2, storedTranscript3, storedExon, storedExonRankedRelation, storedChromosome, storedOrthologue1, storedOrthologue2, storedGOTerm, storedPhenotype, storedPhenotypeAnnotation, storedProtein, storedProtein1, storedProtein2, storedProtein3, storedPhenotypeEvidence, storedOverlapRelation, storedExonRankedRelation, storedExonLocation, storedGeneLocation, storedGeneLocation1, storedGeneLocation2, storedTranscriptLocation, storedTranscriptLocation1, storedTranscriptLocation2, storedTranscriptLocation3, })); Iterator i = toStore.iterator(); osw.beginTransaction(); LOG.info("begun transaction in createData()"); while (i.hasNext()) { InterMineObject object = (InterMineObject) i.next(); osw.store(object); } osw.commitTransaction(); LOG.info("committed transaction in createData()"); }
|
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/98004e448ceb6e457b982cdc6ad4ee70afa2e6a4/CreateReferencesTest.java/clean/bio/postprocess/test/src/org/intermine/bio/postprocess/CreateReferencesTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
751,
1435,
1216,
1185,
288,
3639,
1140,
91,
18,
11330,
921,
5132,
5621,
3639,
4041,
30761,
16958,
273,
261,
30761,
16958,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
30761,
16958,
18,
1106,
10019,
3639,
4041,
30761,
16958,
18,
542,
3004,
2932,
15182,
21,
8863,
3639,
4041,
24442,
273,
261,
24442,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
24442,
18,
1106,
10019,
3639,
4041,
24442,
18,
542,
3004,
2932,
11857,
20,
8863,
3639,
368,
1399,
635,
1842,
4600,
2532,
974,
21,
3639,
4041,
24442,
21,
273,
261,
24442,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
24442,
18,
1106,
10019,
3639,
4041,
24442,
21,
18,
542,
3004,
2932,
11857,
21,
8863,
3639,
4041,
24442,
22,
273,
261,
24442,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
24442,
18,
1106,
10019,
3639,
4041,
24442,
22,
18,
542,
3004,
2932,
11857,
22,
8863,
3639,
4041,
1429,
9118,
273,
5411,
261,
1429,
9118,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
1429,
9118,
18,
1106,
10019,
3639,
4041,
1429,
9118,
18,
542,
3004,
2932,
2338,
20,
8863,
3639,
368,
4551,
326,
7529,
2114,
316,
2604,
9118,
353,
444,
1865,
1603,
17,
10632,
1496,
326,
3639,
368,
906,
28230,
2114,
316,
611,
4009,
5177,
1404,
444,
3639,
4041,
1429,
9118,
18,
542,
24442,
12,
22601,
24442,
1769,
3639,
4041,
1429,
9118,
21,
273,
5411,
261,
1429,
9118,
13,
12208,
1304,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
751,
1435,
1216,
1185,
288,
3639,
1140,
91,
18,
11330,
921,
5132,
5621,
3639,
4041,
30761,
16958,
273,
261,
30761,
16958,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
30761,
16958,
18,
1106,
10019,
3639,
4041,
30761,
16958,
18,
542,
3004,
2932,
15182,
21,
8863,
3639,
4041,
24442,
273,
261,
24442,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
24442,
18,
1106,
10019,
3639,
4041,
24442,
18,
542,
3004,
2932,
11857,
20,
8863,
3639,
368,
1399,
635,
1842,
4600,
2532,
974,
21,
3639,
4041,
24442,
21,
273,
261,
24442,
13,
12208,
1304,
18,
2640,
921,
12,
15150,
18,
24487,
12,
24442,
18,
1106,
10019,
3639,
4041,
24442,
21,
18,
2
] |
tc.setText(fields[i].getColumnHeaderText()); tc.setImage(fields[i].getColumnHeaderImage());
|
IField field = fields[i]; tc.setText(field.getColumnHeaderText()); tc.setImage(field.getColumnHeaderImage());
|
protected void createColumns(final Tree tree) { TableLayout layout = new TableLayout(); tree.setLayout(layout); tree.setHeaderVisible(true); final IField[] fields = getAllFields(); ColumnLayoutData[] columnWidths = getSavedColumnData(); for (int i = 0; i < fields.length; i++) { layout.addColumnData(columnWidths[i]); TreeColumn tc = new TreeColumn(tree, SWT.NONE, i); tc.setText(fields[i].getColumnHeaderText()); tc.setImage(fields[i].getColumnHeaderImage()); tc.setResizable(columnWidths[i].resizable); tc.setMoveable(true); tc.addSelectionListener(getHeaderListener()); tc.setData(fields[i]); } int[] order = restoreColumnOrder(memento); if (order != null && order.length == fields.length) { tree.setColumnOrder(order); } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/21bc0e361b68eda3c81aa02af443915cda88a890/TableView.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
3380,
12,
6385,
4902,
2151,
13,
288,
202,
202,
1388,
3744,
3511,
273,
394,
3555,
3744,
5621,
202,
202,
3413,
18,
542,
3744,
12,
6741,
1769,
202,
202,
3413,
18,
542,
1864,
6207,
12,
3767,
1769,
202,
202,
6385,
467,
974,
8526,
1466,
273,
5514,
2314,
5621,
202,
202,
1494,
3744,
751,
8526,
1057,
22407,
273,
1322,
8158,
1494,
751,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1466,
18,
2469,
31,
277,
27245,
288,
1082,
202,
6741,
18,
1289,
1494,
751,
12,
2827,
22407,
63,
77,
19226,
1082,
202,
2471,
1494,
1715,
273,
394,
4902,
1494,
12,
3413,
16,
348,
8588,
18,
9826,
16,
277,
1769,
1082,
202,
5111,
18,
542,
1528,
12,
2821,
63,
77,
8009,
588,
1494,
1864,
1528,
10663,
1082,
202,
5111,
18,
542,
2040,
12,
2821,
63,
77,
8009,
588,
1494,
1864,
2040,
10663,
1082,
202,
5111,
18,
542,
607,
6934,
12,
2827,
22407,
63,
77,
8009,
455,
6934,
1769,
1082,
202,
5111,
18,
542,
7607,
429,
12,
3767,
1769,
1082,
202,
5111,
18,
1289,
6233,
2223,
12,
588,
1864,
2223,
10663,
1082,
202,
5111,
18,
542,
751,
12,
2821,
63,
77,
19226,
202,
202,
97,
202,
202,
474,
8526,
1353,
273,
5217,
1494,
2448,
12,
81,
820,
83,
1769,
202,
202,
430,
261,
1019,
480,
446,
597,
1353,
18,
2469,
422,
1466,
18,
2469,
13,
288,
1082,
202,
3413,
18,
542,
1494,
2448,
12,
1019,
1769,
202,
202,
97,
202,
97,
2,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
3380,
12,
6385,
4902,
2151,
13,
288,
202,
202,
1388,
3744,
3511,
273,
394,
3555,
3744,
5621,
202,
202,
3413,
18,
542,
3744,
12,
6741,
1769,
202,
202,
3413,
18,
542,
1864,
6207,
12,
3767,
1769,
202,
202,
6385,
467,
974,
8526,
1466,
273,
5514,
2314,
5621,
202,
202,
1494,
3744,
751,
8526,
1057,
22407,
273,
1322,
8158,
1494,
751,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1466,
18,
2469,
31,
277,
27245,
288,
1082,
202,
6741,
18,
1289,
1494,
751,
12,
2827,
22407,
63,
77,
19226,
1082,
202,
2471,
1494,
1715,
273,
394,
4902,
1494,
12,
3413,
16,
348,
8588,
18,
9826,
16,
277,
1769,
1082,
202,
5111,
2
] |
for (int i = 0; i < psiFields.length; i++) {
|
for(int i = 0; i < psiFields.length; i++){
|
private SerialVersionUIDBuilder(PsiClass clazz) { this.clazz = clazz; nonPrivateMethods = new HashSet(); final PsiMethod[] methods = clazz.getMethods(); for (int i = 0; i < methods.length; i++) { final PsiMethod method = methods[i]; if (!method.isConstructor() && !method.hasModifierProperty(PsiModifier.PRIVATE)) { final MemberSignature methodSignature = new MemberSignature(method); nonPrivateMethods.add(methodSignature); } } nonPrivateFields = new HashSet(); final PsiField[] fields = clazz.getFields(); for (int i = 0; i < fields.length; i++) { final PsiField field = fields[i]; if (!field.hasModifierProperty(PsiModifier.PRIVATE) || !(field.hasModifierProperty(PsiModifier.STATIC) | field.hasModifierProperty(PsiModifier.TRANSIENT))) { final MemberSignature fieldSignature = new MemberSignature(field); nonPrivateFields.add(fieldSignature); } } staticInitializers = new ArrayList(); final PsiClassInitializer[] initializers = clazz.getInitializers(); if (initializers.length > 0) { for (int i = 0; i < initializers.length; i++) { final PsiClassInitializer initializer = initializers[i]; final PsiModifierList modifierList = initializer.getModifierList(); if (modifierList.hasModifierProperty(PsiModifier.STATIC)) { final MemberSignature initializerSignature = MemberSignature.getStaticInitializerMemberSignature(); staticInitializers.add(initializerSignature); break; } } } if (staticInitializers.isEmpty()) { final PsiField[] psiFields = clazz.getFields(); for (int i = 0; i < psiFields.length; i++) { final PsiField field = psiFields[i]; if (hasStaticInitializer(field)) { final MemberSignature initializerSignature = MemberSignature.getStaticInitializerMemberSignature(); staticInitializers.add(initializerSignature); break; } } } nonPrivateConstructors = new HashSet(); final PsiMethod[] constructors = clazz.getConstructors(); if (constructors.length == 0 && !clazz.isInterface()) { // generated empty constructor if no constructor is defined in the source final MemberSignature constructorSignature; if (clazz.hasModifierProperty(PsiModifier.PUBLIC)) { constructorSignature = MemberSignature.getPublicConstructor(); } else { constructorSignature = MemberSignature.getPackagePrivateConstructor(); } nonPrivateConstructors.add(constructorSignature); } for (int i = 0; i < constructors.length; i++) { final PsiMethod constructor = constructors[i]; if (!constructor.hasModifierProperty(PsiModifier.PRIVATE)) { final MemberSignature constructorSignature = new MemberSignature(constructor); nonPrivateConstructors.add(constructorSignature); } } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/SerialVersionUIDBuilder.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/fixes/SerialVersionUIDBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
7366,
1444,
3060,
1263,
12,
52,
7722,
797,
4003,
13,
565,
288,
3639,
333,
18,
830,
3638,
273,
4003,
31,
3639,
1661,
6014,
4712,
273,
394,
6847,
5621,
3639,
727,
453,
7722,
1305,
8526,
2590,
273,
4003,
18,
588,
4712,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2590,
18,
2469,
31,
277,
27245,
3639,
288,
5411,
727,
453,
7722,
1305,
707,
273,
2590,
63,
77,
15533,
5411,
309,
16051,
2039,
18,
291,
6293,
1435,
597,
401,
2039,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
20055,
3719,
5411,
288,
7734,
727,
8596,
5374,
707,
5374,
273,
394,
8596,
5374,
12,
2039,
1769,
7734,
1661,
6014,
4712,
18,
1289,
12,
2039,
5374,
1769,
5411,
289,
3639,
289,
3639,
1661,
6014,
2314,
273,
394,
6847,
5621,
3639,
727,
453,
7722,
974,
8526,
1466,
273,
4003,
18,
588,
2314,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1466,
18,
2469,
31,
277,
27245,
3639,
288,
5411,
727,
453,
7722,
974,
652,
273,
1466,
63,
77,
15533,
5411,
309,
16051,
1518,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
20055,
13,
747,
7734,
401,
12,
1518,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
13,
571,
5375,
652,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
28412,
20349,
5411,
288,
7734,
727,
8596,
5374,
652,
5374,
273,
394,
8596,
5374,
12,
1518,
1769,
7734,
1661,
6014,
2314,
18,
1289,
12,
1518,
5374,
1769,
5411,
289,
3639,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
7366,
1444,
3060,
1263,
12,
52,
7722,
797,
4003,
13,
565,
288,
3639,
333,
18,
830,
3638,
273,
4003,
31,
3639,
1661,
6014,
4712,
273,
394,
6847,
5621,
3639,
727,
453,
7722,
1305,
8526,
2590,
273,
4003,
18,
588,
4712,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2590,
18,
2469,
31,
277,
27245,
3639,
288,
5411,
727,
453,
7722,
1305,
707,
273,
2590,
63,
77,
15533,
5411,
309,
16051,
2039,
18,
291,
6293,
1435,
597,
401,
2039,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
20055,
3719,
5411,
288,
7734,
727,
8596,
5374,
707,
5374,
273,
394,
8596,
5374,
12,
2039,
1769,
7734,
1661,
6014,
4712,
18,
1289,
12,
2039,
5374,
1769,
2
] |
int originalSize = size(); if ( !elements.retainAll( c ) ) return false; fireIntervalRemoved( this, 0, originalSize - 1 ); fireIntervalAdded( this, 0, size() - 1 ); return true;
|
return changed;
|
public boolean retainAll( Collection c ) { if ( isEmpty() ) return false; if ( c.isEmpty() ) { clear(); return true; } int originalSize = size(); if ( !elements.retainAll( c ) ) return false; fireIntervalRemoved( this, 0, originalSize - 1 ); fireIntervalAdded( this, 0, size() - 1 ); return true; }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/60c166005332e2b7c4132df1276f70c6f5e9d515/LockableListModel.java/buggy/src/net/java/dev/spellcast/utilities/LockableListModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
15096,
1595,
12,
2200,
276,
262,
202,
95,
202,
202,
430,
261,
2709,
1435,
262,
1082,
202,
2463,
629,
31,
202,
202,
430,
261,
276,
18,
291,
1921,
1435,
262,
202,
202,
95,
1082,
202,
8507,
5621,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
474,
2282,
1225,
273,
963,
5621,
202,
202,
430,
261,
401,
6274,
18,
1349,
530,
1595,
12,
276,
262,
262,
1082,
202,
2463,
629,
31,
202,
202,
12179,
4006,
10026,
12,
333,
16,
374,
16,
2282,
1225,
300,
404,
11272,
202,
202,
12179,
4006,
8602,
12,
333,
16,
374,
16,
963,
1435,
300,
404,
11272,
202,
202,
2463,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
15096,
1595,
12,
2200,
276,
262,
202,
95,
202,
202,
430,
261,
2709,
1435,
262,
1082,
202,
2463,
629,
31,
202,
202,
430,
261,
276,
18,
291,
1921,
1435,
262,
202,
202,
95,
1082,
202,
8507,
5621,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
474,
2282,
1225,
273,
963,
5621,
202,
202,
430,
261,
401,
6274,
18,
1349,
530,
1595,
12,
276,
262,
262,
1082,
202,
2463,
629,
31,
202,
202,
12179,
4006,
10026,
12,
333,
16,
374,
16,
2282,
1225,
300,
404,
11272,
202,
202,
12179,
4006,
8602,
12,
333,
16,
374,
16,
963,
1435,
300,
404,
11272,
202,
202,
2463,
638,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
String linkName = getHelpManager().getGlossary().getUrl() + "?id=" + entry.getId();
|
String url = ServerConfigurationService.getServerUrl(); String linkName = url + getHelpManager().getGlossary().getUrl() + "?id=" + entry.getId();
|
protected String getMarkup(String originalTerm, GlossaryEntry entry) { StringBuffer markup = new StringBuffer(); String linkName = getHelpManager().getGlossary().getUrl() + "?id=" + entry.getId(); markup.append("<a href=\"#\" onclick=\"openNewWindow('" + linkName + "');return false;\""); if (hover) { markup.append(" onMouseover=\"showtip(this,event,'" + replaceQuotes(entry.getDescription()) + "')\" onMouseOut=\"hidetip()\" "); } if (!link) { markup.append(" onClick=\"return false\" "); } markup.append(">" + originalTerm); markup.append("</a>"); return markup.toString(); }
|
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/94d598b46bb6ecead0b547b28a0dc6a798e99d45/GlossaryTag.java/clean/glossary/tool-lib/src/java/org/theospi/portfolio/help/control/GlossaryTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
514,
23232,
416,
12,
780,
2282,
4065,
16,
611,
18536,
1622,
1241,
13,
288,
1377,
6674,
9813,
273,
394,
6674,
5621,
1377,
514,
880,
273,
3224,
1750,
1179,
18,
588,
2081,
1489,
5621,
514,
1692,
461,
273,
880,
397,
336,
6696,
1318,
7675,
588,
43,
18536,
7675,
588,
1489,
1435,
397,
18101,
350,
1546,
397,
1241,
18,
26321,
5621,
1377,
9813,
18,
6923,
2932,
32,
69,
3897,
5189,
7,
2412,
22324,
5189,
3190,
1908,
3829,
22076,
397,
1692,
461,
397,
2491,
1769,
2463,
629,
31,
8530,
1769,
1377,
309,
261,
24969,
13,
288,
540,
9813,
18,
6923,
2932,
21000,
1643,
5189,
4500,
14587,
12,
2211,
16,
2575,
16,
4970,
397,
9079,
1453,
14292,
12,
4099,
18,
588,
3291,
10756,
397,
9079,
2491,
13,
2412,
21000,
1182,
5189,
76,
350,
278,
625,
1435,
2412,
315,
1769,
1377,
289,
1377,
309,
16051,
1232,
13,
288,
540,
9813,
18,
6923,
2932,
18296,
5189,
2463,
629,
2412,
315,
1769,
1377,
289,
1377,
9813,
18,
6923,
2932,
2984,
397,
2282,
4065,
1769,
1377,
9813,
18,
6923,
2932,
1757,
69,
2984,
1769,
1377,
327,
9813,
18,
10492,
5621,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
514,
23232,
416,
12,
780,
2282,
4065,
16,
611,
18536,
1622,
1241,
13,
288,
1377,
6674,
9813,
273,
394,
6674,
5621,
1377,
514,
880,
273,
3224,
1750,
1179,
18,
588,
2081,
1489,
5621,
514,
1692,
461,
273,
880,
397,
336,
6696,
1318,
7675,
588,
43,
18536,
7675,
588,
1489,
1435,
397,
18101,
350,
1546,
397,
1241,
18,
26321,
5621,
1377,
9813,
18,
6923,
2932,
32,
69,
3897,
5189,
7,
2412,
22324,
5189,
3190,
1908,
3829,
22076,
397,
1692,
461,
397,
2491,
1769,
2463,
629,
31,
8530,
1769,
1377,
309,
261,
24969,
13,
288,
540,
9813,
18,
6923,
2932,
21000,
1643,
5189,
4500,
14587,
12,
2211,
16,
2575,
16,
4970,
397,
9079,
1453,
14292,
12,
4099,
18,
588,
2
] |
DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getDefaultSettings());
|
DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getEclipse21Settings());
|
public void test090() { DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getDefaultSettings()); preferences.use_tab = true; preferences.insert_space_after_opening_bracket_in_array_reference = true; preferences.insert_space_before_closing_bracket_in_array_reference = true; DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); runTest(codeFormatter, "test090", "A.java", CodeFormatter.K_STATEMENTS);//$NON-NLS-1$ //$NON-NLS-2$ }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/18d1b818e2c1363e3c9436625e46da37b9994fdc/FormatterRegressionTests.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5908,
20,
1435,
288,
202,
202,
1868,
1085,
5074,
1320,
12750,
273,
394,
2989,
1085,
5074,
1320,
12,
1868,
1085,
5074,
2918,
18,
588,
1868,
2628,
10663,
202,
202,
23219,
18,
1202,
67,
7032,
273,
638,
31,
202,
202,
23219,
18,
6387,
67,
2981,
67,
5205,
67,
3190,
310,
67,
21025,
67,
267,
67,
1126,
67,
6180,
273,
638,
31,
202,
202,
23219,
18,
6387,
67,
2981,
67,
5771,
67,
19506,
67,
21025,
67,
267,
67,
1126,
67,
6180,
273,
638,
31,
202,
202,
1868,
1085,
5074,
981,
5074,
273,
394,
2989,
1085,
5074,
12,
23219,
1769,
202,
202,
2681,
4709,
12,
710,
5074,
16,
315,
3813,
5908,
20,
3113,
315,
37,
18,
6290,
3113,
3356,
5074,
18,
47,
67,
28411,
55,
1769,
759,
8,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
1842,
5908,
20,
1435,
288,
202,
202,
1868,
1085,
5074,
1320,
12750,
273,
394,
2989,
1085,
5074,
1320,
12,
1868,
1085,
5074,
2918,
18,
588,
1868,
2628,
10663,
202,
202,
23219,
18,
1202,
67,
7032,
273,
638,
31,
202,
202,
23219,
18,
6387,
67,
2981,
67,
5205,
67,
3190,
310,
67,
21025,
67,
267,
67,
1126,
67,
6180,
273,
638,
31,
202,
202,
23219,
18,
6387,
67,
2981,
67,
5771,
67,
19506,
67,
21025,
67,
267,
67,
1126,
67,
6180,
273,
638,
31,
202,
202,
1868,
1085,
5074,
981,
5074,
273,
394,
2989,
1085,
5074,
12,
23219,
1769,
202,
202,
2681,
4709,
12,
710,
5074,
16,
315,
3813,
5908,
20,
3113,
315,
37,
18,
6290,
2
] |
"[-busy_sleep] [-yield] [-jg] [-loopback] [-props <channel properties>] [-debug]"); System.out.println("Options -props and -debug are only valid if -jg is used");
|
"[-busy_sleep] [-yield] [-jg] [-loopback] [-props <channel properties>]"); System.out.println("Options -props are only valid if -jg is used");
|
static void help() { System.out.println("SpeedTest [-help] [-num_msgs <num>] [-sleep <sleeptime in msecs between messages>] " + "[-busy_sleep] [-yield] [-jg] [-loopback] [-props <channel properties>] [-debug]"); System.out.println("Options -props and -debug are only valid if -jg is used"); }
|
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/6cf135ab0aec1dba727f94146eb1d03ec797779c/SpeedTest_NIO.java/buggy/tests/other/org/jgroups/tests/SpeedTest_NIO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
2809,
1435,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
16562,
4709,
23059,
5201,
65,
23059,
2107,
67,
27439,
411,
2107,
34,
65,
23059,
19607,
411,
87,
11182,
10650,
316,
18689,
2143,
3086,
2743,
34,
65,
315,
397,
7734,
5158,
17,
9274,
93,
67,
19607,
65,
23059,
23604,
65,
23059,
78,
75,
65,
23059,
6498,
823,
65,
23059,
9693,
411,
4327,
1790,
34,
65,
23059,
4148,
4279,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
1320,
300,
9693,
471,
300,
4148,
854,
1338,
923,
309,
300,
78,
75,
353,
1399,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
2809,
1435,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
16562,
4709,
23059,
5201,
65,
23059,
2107,
67,
27439,
411,
2107,
34,
65,
23059,
19607,
411,
87,
11182,
10650,
316,
18689,
2143,
3086,
2743,
34,
65,
315,
397,
7734,
5158,
17,
9274,
93,
67,
19607,
65,
23059,
23604,
65,
23059,
78,
75,
65,
23059,
6498,
823,
65,
23059,
9693,
411,
4327,
1790,
34,
65,
23059,
4148,
4279,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
1320,
300,
9693,
471,
300,
4148,
854,
1338,
923,
309,
300,
78,
75,
353,
1399,
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
] |
public ButtonModel getModel() { return model; }
|
public ButtonModel getModel() { return model; }
|
public ButtonModel getModel() { return model; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12569,
1488,
7454,
1435,
288,
202,
202,
2463,
938,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12569,
1488,
7454,
1435,
288,
202,
202,
2463,
938,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Operand loc = current_state.pop_R();
|
Operand loc = current_state.pop_P();
|
private void ADDRESShelper(jq_Method m, Invoke oper) { Utf8 name = m.getName(); Quad q; if (name == poke1) { Operand val = current_state.pop_I(); Operand loc = current_state.pop_R(); q = MemStore.create(quad_cfg.getNewQuadID(), MemStore.POKE_1.INSTANCE, loc, val); } else if (name == poke2) { Operand val = current_state.pop_I(); Operand loc = current_state.pop_R(); q = MemStore.create(quad_cfg.getNewQuadID(), MemStore.POKE_2.INSTANCE, loc, val); } else if (name == poke4) { Operand val = current_state.pop_I(); Operand loc = current_state.pop_R(); q = MemStore.create(quad_cfg.getNewQuadID(), MemStore.POKE_4.INSTANCE, loc, val); } else if (name == poke8) { Operand val = current_state.pop_L(); Operand loc = current_state.pop_R(); q = MemStore.create(quad_cfg.getNewQuadID(), MemStore.POKE_8.INSTANCE, loc, val); } else if (name == peek1) { Operand loc = current_state.pop_R(); RegisterOperand res = getStackRegister(jq_Primitive.BYTE); q = MemLoad.create(quad_cfg.getNewQuadID(), MemLoad.PEEK_1.INSTANCE, res, loc); current_state.push_I(res); } else if (name == peek2) { Operand loc = current_state.pop_R(); RegisterOperand res = getStackRegister(jq_Primitive.SHORT); q = MemLoad.create(quad_cfg.getNewQuadID(), MemLoad.PEEK_2.INSTANCE, res, loc); current_state.push_I(res); } else if (name == peek4) { Operand loc = current_state.pop_R(); RegisterOperand res = getStackRegister(jq_Primitive.INT); q = MemLoad.create(quad_cfg.getNewQuadID(), MemLoad.PEEK_4.INSTANCE, res, loc); current_state.push_I(res); } else if (name == peek8) { Operand loc = current_state.pop_R(); RegisterOperand res = getStackRegister(jq_Primitive.LONG); q = MemLoad.create(quad_cfg.getNewQuadID(), MemLoad.PEEK_8.INSTANCE, res, loc); current_state.push_L(res); } else if (name == alloca) { Operand amt = current_state.pop_I(); RegisterOperand res = getStackRegister(jq_Primitive.INT); q = Special.create(quad_cfg.getNewQuadID(), Special.ALLOCA.INSTANCE, res, amt); current_state.push_I(res); } else { // TODO INVOKEhelper(oper, m, m.getReturnType(), false); return; } appendQuad(q); }
|
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/2a1a20bcbeb7238435ed1dea053348b54ede1317/BytecodeToQuad.java/clean/joeq_core/joeq/Compiler/Quad/BytecodeToQuad.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
11689,
10203,
4759,
12,
78,
85,
67,
1305,
312,
16,
14373,
2255,
13,
288,
3639,
587,
6632,
28,
508,
273,
312,
18,
17994,
5621,
3639,
27258,
1043,
31,
3639,
309,
261,
529,
422,
293,
3056,
21,
13,
288,
5411,
7692,
464,
1244,
273,
783,
67,
2019,
18,
5120,
67,
45,
5621,
5411,
7692,
464,
1515,
273,
783,
67,
2019,
18,
5120,
67,
52,
5621,
5411,
1043,
273,
5890,
2257,
18,
2640,
12,
21733,
67,
7066,
18,
588,
1908,
24483,
734,
9334,
5890,
2257,
18,
2419,
6859,
67,
21,
18,
13341,
16,
1515,
16,
1244,
1769,
3639,
289,
469,
309,
261,
529,
422,
293,
3056,
22,
13,
288,
5411,
7692,
464,
1244,
273,
783,
67,
2019,
18,
5120,
67,
45,
5621,
5411,
7692,
464,
1515,
273,
783,
67,
2019,
18,
5120,
67,
52,
5621,
5411,
1043,
273,
5890,
2257,
18,
2640,
12,
21733,
67,
7066,
18,
588,
1908,
24483,
734,
9334,
5890,
2257,
18,
2419,
6859,
67,
22,
18,
13341,
16,
1515,
16,
1244,
1769,
3639,
289,
469,
309,
261,
529,
422,
293,
3056,
24,
13,
288,
5411,
7692,
464,
1244,
273,
783,
67,
2019,
18,
5120,
67,
45,
5621,
5411,
7692,
464,
1515,
273,
783,
67,
2019,
18,
5120,
67,
52,
5621,
5411,
1043,
273,
5890,
2257,
18,
2640,
12,
21733,
67,
7066,
18,
588,
1908,
24483,
734,
9334,
5890,
2257,
18,
2419,
6859,
67,
24,
18,
13341,
16,
1515,
16,
1244,
1769,
3639,
289,
469,
309,
261,
529,
422,
293,
3056,
28,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
11689,
10203,
4759,
12,
78,
85,
67,
1305,
312,
16,
14373,
2255,
13,
288,
3639,
587,
6632,
28,
508,
273,
312,
18,
17994,
5621,
3639,
27258,
1043,
31,
3639,
309,
261,
529,
422,
293,
3056,
21,
13,
288,
5411,
7692,
464,
1244,
273,
783,
67,
2019,
18,
5120,
67,
45,
5621,
5411,
7692,
464,
1515,
273,
783,
67,
2019,
18,
5120,
67,
52,
5621,
5411,
1043,
273,
5890,
2257,
18,
2640,
12,
21733,
67,
7066,
18,
588,
1908,
24483,
734,
9334,
5890,
2257,
18,
2419,
6859,
67,
21,
18,
13341,
16,
1515,
16,
1244,
1769,
3639,
289,
469,
309,
261,
529,
422,
293,
3056,
22,
13,
288,
5411,
7692,
464,
1244,
273,
783,
67,
2019,
18,
2
] |
result.append(RubyString.newString(getRuby(), "}")); return result;
|
sb.append("}"); return RubyString.newString(ruby, sb.toString());
|
public RubyString inspect() { //FIXME this two strings should be built only once, at leas only once //per instance no matter how many calls to inspect and maybe better once //per ruby interpreter. //Benoit final RubyString sep = RubyString.newString(getRuby(), ", "); final RubyString arrow = RubyString.newString(getRuby(), "=>"); RubyString result = RubyString.newString(getRuby(), "{"); valueMap.foreach(new RubyMapMethod() { boolean firstEntry = true; public int execute(Object key, Object value, Object arg) { RubyString str = RubyString.stringValue((RubyObject) arg); if (!firstEntry) { str.append(sep); } str.append(((RubyObject) key).funcall("inspect")); str.append(arrow); str.append(((RubyObject) value).funcall("inspect")); firstEntry = false; return RubyMapMethod.CONTINUE; } }, result); result.append(RubyString.newString(getRuby(), "}")); return result; }
|
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/6f48980923c4b06bac2890165c858310895f9a14/RubyHash.java/buggy/org/jruby/RubyHash.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
780,
5334,
1435,
288,
3639,
368,
25810,
333,
2795,
2064,
1410,
506,
6650,
1338,
3647,
16,
622,
884,
345,
1338,
3647,
202,
202,
759,
457,
791,
1158,
15177,
3661,
4906,
4097,
358,
5334,
471,
6944,
7844,
3647,
202,
202,
759,
457,
22155,
16048,
18,
202,
202,
759,
38,
5764,
305,
3639,
727,
19817,
780,
5478,
273,
19817,
780,
18,
2704,
780,
12,
588,
54,
10340,
9334,
3104,
315,
1769,
3639,
727,
19817,
780,
12274,
273,
19817,
780,
18,
2704,
780,
12,
588,
54,
10340,
9334,
29199,
2984,
1769,
3639,
19817,
780,
563,
273,
19817,
780,
18,
2704,
780,
12,
588,
54,
10340,
9334,
4144,
8863,
3639,
460,
863,
18,
25055,
12,
2704,
19817,
863,
1305,
1435,
288,
5411,
1250,
1122,
1622,
273,
638,
31,
5411,
1071,
509,
1836,
12,
921,
498,
16,
1033,
460,
16,
1033,
1501,
13,
288,
7734,
19817,
780,
609,
273,
19817,
780,
18,
1080,
620,
12443,
54,
10340,
921,
13,
1501,
1769,
7734,
309,
16051,
3645,
1622,
13,
288,
10792,
609,
18,
6923,
12,
10814,
1769,
7734,
289,
7734,
609,
18,
6923,
12443,
12,
54,
10340,
921,
13,
498,
2934,
644,
454,
2932,
12009,
7923,
1769,
7734,
609,
18,
6923,
12,
7815,
1769,
7734,
609,
18,
6923,
12443,
12,
54,
10340,
921,
13,
460,
2934,
644,
454,
2932,
12009,
7923,
1769,
7734,
1122,
1622,
273,
629,
31,
7734,
327,
19817,
863,
1305,
18,
6067,
26725,
31,
5411,
289,
3639,
19879,
563,
1769,
3639,
563,
18,
6923,
12,
54,
10340,
780,
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,
19817,
780,
5334,
1435,
288,
3639,
368,
25810,
333,
2795,
2064,
1410,
506,
6650,
1338,
3647,
16,
622,
884,
345,
1338,
3647,
202,
202,
759,
457,
791,
1158,
15177,
3661,
4906,
4097,
358,
5334,
471,
6944,
7844,
3647,
202,
202,
759,
457,
22155,
16048,
18,
202,
202,
759,
38,
5764,
305,
3639,
727,
19817,
780,
5478,
273,
19817,
780,
18,
2704,
780,
12,
588,
54,
10340,
9334,
3104,
315,
1769,
3639,
727,
19817,
780,
12274,
273,
19817,
780,
18,
2704,
780,
12,
588,
54,
10340,
9334,
29199,
2984,
1769,
3639,
19817,
780,
563,
273,
19817,
780,
18,
2704,
780,
12,
588,
54,
10340,
9334,
4144,
8863,
3639,
460,
863,
18,
25055,
12,
2704,
19817,
863,
1305,
1435,
2
] |
filter = new HistoryTextField("filter");
|
filter = new HistoryTextField("search.filter");
|
private JPanel createMultiFilePanel() { JPanel multifile = new JPanel(); GridBagLayout layout = new GridBagLayout(); multifile.setLayout(layout); GridBagConstraints cons = new GridBagConstraints(); cons.gridy = cons.gridwidth = cons.gridheight = 1; cons.anchor = GridBagConstraints.WEST; cons.fill = GridBagConstraints.HORIZONTAL; filter = new HistoryTextField("filter"); cons.insets = new Insets(0,0,3,0); JLabel label = new JLabel(jEdit.getProperty("search.filterField"), SwingConstants.RIGHT); label.setBorder(new EmptyBorder(0,0,0,12)); label.setDisplayedMnemonic(jEdit.getProperty("search.filterField.mnemonic") .charAt(0)); label.setLabelFor(filter); cons.weightx = 0.0f; layout.setConstraints(label,cons); multifile.add(label); cons.insets = new Insets(0,0,3,6); cons.weightx = 1.0f; layout.setConstraints(filter,cons); multifile.add(filter); cons.gridy++; directory = new HistoryTextField("directory"); label = new JLabel(jEdit.getProperty("search.directoryField"), SwingConstants.RIGHT); label.setBorder(new EmptyBorder(0,0,0,12)); label.setDisplayedMnemonic(jEdit.getProperty("search.directoryField.mnemonic") .charAt(0)); label.setLabelFor(directory); cons.insets = new Insets(0,0,3,0); cons.weightx = 0.0f; layout.setConstraints(label,cons); multifile.add(label); cons.insets = new Insets(0,0,3,6); cons.weightx = 1.0f; cons.gridwidth = 2; layout.setConstraints(directory,cons); multifile.add(directory); choose = new JButton(jEdit.getProperty("search.choose")); choose.setMnemonic(jEdit.getProperty("search.choose.mnemonic") .charAt(0)); cons.insets = new Insets(0,0,3,0); cons.weightx = 0.0f; cons.gridwidth = 1; layout.setConstraints(choose,cons); multifile.add(choose); choose.addActionListener(new MultiFileActionHandler()); cons.insets = new Insets(0,0,0,0); cons.gridy++; cons.gridwidth = 4; searchSubDirectories = new JCheckBox(jEdit.getProperty( "search.subdirs")); searchSubDirectories.setMnemonic(jEdit.getProperty("search.subdirs.mnemonic") .charAt(0)); layout.setConstraints(searchSubDirectories,cons); multifile.add(searchSubDirectories); return multifile; }
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/b6a35b532581fcffd775742d537c8047950d4dfd/SearchDialog.java/clean/org/gjt/sp/jedit/search/SearchDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
24048,
752,
5002,
812,
5537,
1435,
202,
95,
202,
202,
46,
5537,
1778,
430,
398,
273,
394,
24048,
5621,
202,
202,
6313,
5013,
3744,
3511,
273,
394,
7145,
5013,
3744,
5621,
202,
202,
5421,
430,
398,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
6852,
1959,
273,
394,
13075,
5621,
202,
202,
8559,
18,
5222,
93,
273,
1959,
18,
5222,
2819,
273,
1959,
18,
5222,
4210,
273,
404,
31,
202,
202,
8559,
18,
16215,
273,
13075,
18,
31285,
31,
202,
202,
8559,
18,
5935,
273,
13075,
18,
44,
20344,
31,
202,
202,
2188,
273,
394,
16058,
16157,
2932,
2188,
8863,
202,
202,
8559,
18,
267,
4424,
273,
394,
22300,
12,
20,
16,
20,
16,
23,
16,
20,
1769,
202,
202,
46,
2224,
1433,
273,
394,
21403,
12,
78,
4666,
18,
588,
1396,
2932,
3072,
18,
2188,
974,
6,
3631,
1082,
202,
6050,
310,
2918,
18,
11847,
1769,
202,
202,
1925,
18,
542,
8107,
12,
2704,
8953,
8107,
12,
20,
16,
20,
16,
20,
16,
2138,
10019,
202,
202,
1925,
18,
542,
4236,
329,
29668,
20918,
12,
78,
4666,
18,
588,
1396,
2932,
3072,
18,
2188,
974,
18,
13607,
20918,
7923,
1082,
202,
18,
3001,
861,
12,
20,
10019,
202,
202,
1925,
18,
542,
2224,
1290,
12,
2188,
1769,
202,
202,
8559,
18,
4865,
92,
273,
374,
18,
20,
74,
31,
202,
202,
6741,
18,
542,
4878,
12,
1925,
16,
8559,
1769,
202,
202,
5421,
430,
398,
18,
1289,
12,
1925,
1769,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
24048,
752,
5002,
812,
5537,
1435,
202,
95,
202,
202,
46,
5537,
1778,
430,
398,
273,
394,
24048,
5621,
202,
202,
6313,
5013,
3744,
3511,
273,
394,
7145,
5013,
3744,
5621,
202,
202,
5421,
430,
398,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
6852,
1959,
273,
394,
13075,
5621,
202,
202,
8559,
18,
5222,
93,
273,
1959,
18,
5222,
2819,
273,
1959,
18,
5222,
4210,
273,
404,
31,
202,
202,
8559,
18,
16215,
273,
13075,
18,
31285,
31,
202,
202,
8559,
18,
5935,
273,
13075,
18,
44,
20344,
31,
202,
202,
2188,
273,
394,
16058,
16157,
2932,
2188,
8863,
202,
202,
8559,
18,
267,
4424,
273,
394,
22300,
12,
20,
16,
20,
16,
23,
2
] |
private Object js_parseInt(Context cx, Object[] args) {
|
private Object js_parseInt(Object[] args) {
|
private Object js_parseInt(Context cx, Object[] args) { String s = ScriptRuntime.toString(args, 0); int radix = ScriptRuntime.toInt32(args, 1); int len = s.length(); if (len == 0) return ScriptRuntime.NaNobj; boolean negative = false; int start = 0; char c; do { c = s.charAt(start); if (!Character.isWhitespace(c)) break; start++; } while (start < len); if (c == '+' || (negative = (c == '-'))) start++; final int NO_RADIX = -1; if (radix == 0) { radix = NO_RADIX; } else if (radix < 2 || radix > 36) { return ScriptRuntime.NaNobj; } else if (radix == 16 && len - start > 1 && s.charAt(start) == '0') { c = s.charAt(start+1); if (c == 'x' || c == 'X') start += 2; } if (radix == NO_RADIX) { radix = 10; if (len - start > 1 && s.charAt(start) == '0') { c = s.charAt(start+1); if (c == 'x' || c == 'X') { radix = 16; start += 2; } else if ('0' <= c && c <= '9') { radix = 8; start++; } } } double d = ScriptRuntime.stringToNumber(s, start, radix); return new Double(negative ? -d : d); }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/0b056816ae240bd12d40a9a4926520fc5cf9299b/NativeGlobal.java/clean/src/org/mozilla/javascript/NativeGlobal.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3828,
67,
2670,
1702,
12,
921,
8526,
833,
13,
288,
3639,
514,
272,
273,
7739,
5576,
18,
10492,
12,
1968,
16,
374,
1769,
3639,
509,
19015,
273,
7739,
5576,
18,
869,
1702,
1578,
12,
1968,
16,
404,
1769,
3639,
509,
562,
273,
272,
18,
2469,
5621,
3639,
309,
261,
1897,
422,
374,
13,
5411,
327,
7739,
5576,
18,
24101,
2279,
441,
31,
3639,
1250,
6092,
273,
629,
31,
3639,
509,
787,
273,
374,
31,
3639,
1149,
276,
31,
3639,
741,
288,
5411,
276,
273,
272,
18,
3001,
861,
12,
1937,
1769,
5411,
309,
16051,
7069,
18,
291,
9431,
12,
71,
3719,
7734,
898,
31,
5411,
787,
9904,
31,
3639,
289,
1323,
261,
1937,
411,
562,
1769,
3639,
309,
261,
71,
422,
10058,
747,
261,
13258,
273,
261,
71,
422,
4014,
20349,
5411,
787,
9904,
31,
3639,
727,
509,
3741,
67,
28829,
12507,
273,
300,
21,
31,
3639,
309,
261,
6012,
697,
422,
374,
13,
288,
5411,
19015,
273,
3741,
67,
28829,
12507,
31,
3639,
289,
469,
309,
261,
6012,
697,
411,
576,
747,
19015,
405,
6580,
13,
288,
5411,
327,
7739,
5576,
18,
24101,
2279,
441,
31,
3639,
289,
469,
309,
261,
6012,
697,
422,
2872,
597,
562,
300,
787,
405,
404,
597,
272,
18,
3001,
861,
12,
1937,
13,
422,
296,
20,
6134,
288,
5411,
276,
273,
272,
18,
3001,
861,
12,
1937,
15,
21,
1769,
5411,
309,
261,
71,
422,
296,
92,
11,
747,
276,
422,
296,
60,
6134,
7734,
787,
1011,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3828,
67,
2670,
1702,
12,
921,
8526,
833,
13,
288,
3639,
514,
272,
273,
7739,
5576,
18,
10492,
12,
1968,
16,
374,
1769,
3639,
509,
19015,
273,
7739,
5576,
18,
869,
1702,
1578,
12,
1968,
16,
404,
1769,
3639,
509,
562,
273,
272,
18,
2469,
5621,
3639,
309,
261,
1897,
422,
374,
13,
5411,
327,
7739,
5576,
18,
24101,
2279,
441,
31,
3639,
1250,
6092,
273,
629,
31,
3639,
509,
787,
273,
374,
31,
3639,
1149,
276,
31,
3639,
741,
288,
5411,
276,
273,
272,
18,
3001,
861,
12,
1937,
1769,
5411,
309,
16051,
7069,
18,
291,
9431,
12,
71,
3719,
7734,
898,
31,
5411,
787,
9904,
31,
3639,
289,
1323,
261,
1937,
411,
562,
1769,
2
] |
if (m_variable.equals(resolvedElement)) { m_used = true;
|
if(variable.equals(resolvedElement)){ used = true;
|
public void visitReferenceExpression(PsiReferenceExpression ref) { super.visitReferenceExpression(ref); final PsiElement resolvedElement = ref.resolve(); if (m_variable.equals(resolvedElement)) { m_used = true; } }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ForLoopThatDoesntUseLoopVariableInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/ForLoopThatDoesntUseLoopVariableInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
2404,
2300,
12,
52,
7722,
2404,
2300,
1278,
13,
288,
5411,
2240,
18,
11658,
2404,
2300,
12,
1734,
1769,
5411,
727,
453,
7722,
1046,
4640,
1046,
273,
1278,
18,
10828,
5621,
5411,
309,
261,
81,
67,
6105,
18,
14963,
12,
11792,
1046,
3719,
288,
7734,
312,
67,
3668,
273,
638,
31,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
2404,
2300,
12,
52,
7722,
2404,
2300,
1278,
13,
288,
5411,
2240,
18,
11658,
2404,
2300,
12,
1734,
1769,
5411,
727,
453,
7722,
1046,
4640,
1046,
273,
1278,
18,
10828,
5621,
5411,
309,
261,
81,
67,
6105,
18,
14963,
12,
11792,
1046,
3719,
288,
7734,
312,
67,
3668,
273,
638,
31,
5411,
289,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
new ErrorListDialog( jEdit.getFirstView(), jEdit.getProperty("plugin-error.title"), caption,pluginErrors,true); pluginErrors.removeAllElements();
|
try { int line = Integer.parseInt(marker.substring(6)); pos = buffer.getLineStartOffset(line - 1); } catch(Exception e) { return; }
|
public void run() { new ErrorListDialog( jEdit.getFirstView(), jEdit.getProperty("plugin-error.title"), caption,pluginErrors,true); pluginErrors.removeAllElements(); }
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/13168fa7577466c5b01ad958d75ece97ed20b547/jEdit.java/clean/org/gjt/sp/jedit/jEdit.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
9506,
202,
95,
6862,
202,
2704,
19767,
6353,
12,
25083,
202,
78,
4666,
18,
588,
3759,
1767,
9334,
25083,
202,
78,
4666,
18,
588,
1396,
2932,
4094,
17,
1636,
18,
2649,
6,
3631,
25083,
202,
15386,
16,
4094,
4229,
16,
3767,
1769,
6862,
202,
4094,
4229,
18,
4479,
1595,
3471,
5621,
9506,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
9506,
202,
95,
6862,
202,
2704,
19767,
6353,
12,
25083,
202,
78,
4666,
18,
588,
3759,
1767,
9334,
25083,
202,
78,
4666,
18,
588,
1396,
2932,
4094,
17,
1636,
18,
2649,
6,
3631,
25083,
202,
15386,
16,
4094,
4229,
16,
3767,
1769,
6862,
202,
4094,
4229,
18,
4479,
1595,
3471,
5621,
9506,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else if (element instanceof Otherwise) if (otherwise == null)
|
} else if (element instanceof Otherwise) { if (otherwise == null) {
|
public void translate(ClassGenerator classGen, MethodGenerator methodGen) { final Vector whenElements = new Vector(); Otherwise otherwise = null; Enumeration elements = elements(); while (elements.hasMoreElements()) { Object element = elements.nextElement(); if (element instanceof When) whenElements.addElement(element); else if (element instanceof Otherwise) if (otherwise == null) otherwise = (Otherwise)element; else System.err.println("Only one Otherwise element allowed in Choose"); else System.err.println("Only When|Otherwise elements allowed in Choose"); } if (whenElements.size() > 0) { InstructionList il = methodGen.getInstructionList(); // next element will hold a handle to the beginning of next // When/Otherwise if test on current When fails BranchHandle nextElement = null; Vector exitHandles = new Vector(); InstructionHandle exit = null; Enumeration whens = whenElements.elements(); while (whens.hasMoreElements()) { final When when = (When)whens.nextElement(); final Expression test = when.getTest(); if (nextElement != null) nextElement.setTarget(il.append(NOP)); test.translateDesynthesized(classGen, methodGen); if ((test instanceof FunctionCall) && !(test instanceof ElementAvailableCall) && !(test instanceof ContainsCall)) test._falseList.add(il.append(new IFEQ(null))); // remember end of condition InstructionHandle truec = il.getEnd(); when.translateContents(classGen, methodGen); // goto exit after executing the body of when exitHandles.addElement(il.append(new GOTO(null))); if (whens.hasMoreElements() || otherwise != null) { nextElement = il.append(new GOTO(null)); test.backPatchFalseList(nextElement); } else test.backPatchFalseList(exit = il.append(NOP)); test.backPatchTrueList(truec.getNext()); } if (otherwise != null) { nextElement.setTarget(il.append(NOP)); otherwise.translateContents(classGen, methodGen); exit = il.append(NOP); } // now that end is known set targets of exit gotos Enumeration exitGotos = exitHandles.elements(); while (exitGotos.hasMoreElements()) { BranchHandle gotoExit = (BranchHandle)exitGotos.nextElement(); gotoExit.setTarget(exit); } } else System.err.println("At least one When element required in Choose"); }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/f2b35c498dc058f4df47d5aadce27a5bdaf41711/Choose.java/buggy/src/org/apache/xalan/xsltc/compiler/Choose.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4204,
12,
797,
3908,
667,
7642,
16,
2985,
3908,
707,
7642,
13,
288,
202,
6385,
5589,
1347,
3471,
273,
394,
5589,
5621,
202,
8290,
2460,
3541,
273,
446,
31,
202,
21847,
2186,
273,
2186,
5621,
202,
17523,
261,
6274,
18,
5332,
7417,
3471,
10756,
288,
202,
565,
1033,
930,
273,
2186,
18,
4285,
1046,
5621,
202,
565,
309,
261,
2956,
1276,
5203,
13,
202,
202,
13723,
3471,
18,
1289,
1046,
12,
2956,
1769,
202,
565,
469,
309,
261,
2956,
1276,
5272,
13,
202,
202,
430,
261,
29778,
422,
446,
13,
1082,
565,
3541,
273,
261,
8290,
2460,
13,
2956,
31,
202,
202,
12107,
1082,
565,
2332,
18,
370,
18,
8222,
2932,
3386,
1245,
5272,
930,
2935,
316,
25593,
8863,
202,
565,
469,
202,
202,
3163,
18,
370,
18,
8222,
2932,
3386,
5203,
96,
8290,
2460,
2186,
2935,
316,
25593,
8863,
202,
97,
202,
430,
261,
13723,
3471,
18,
1467,
1435,
405,
374,
13,
288,
202,
565,
24605,
682,
14254,
273,
707,
7642,
18,
588,
11983,
682,
5621,
202,
565,
368,
1024,
930,
903,
6887,
279,
1640,
358,
326,
8435,
434,
1024,
202,
565,
368,
5203,
19,
8290,
2460,
309,
1842,
603,
783,
5203,
6684,
202,
565,
15449,
3259,
14512,
273,
446,
31,
202,
565,
5589,
2427,
8788,
273,
394,
5589,
5621,
202,
565,
24605,
3259,
2427,
273,
446,
31,
202,
565,
13864,
600,
773,
273,
1347,
3471,
18,
6274,
5621,
202,
565,
1323,
261,
3350,
773,
18,
5332,
7417,
3471,
10756,
288,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4204,
12,
797,
3908,
667,
7642,
16,
2985,
3908,
707,
7642,
13,
288,
202,
6385,
5589,
1347,
3471,
273,
394,
5589,
5621,
202,
8290,
2460,
3541,
273,
446,
31,
202,
21847,
2186,
273,
2186,
5621,
202,
17523,
261,
6274,
18,
5332,
7417,
3471,
10756,
288,
202,
565,
1033,
930,
273,
2186,
18,
4285,
1046,
5621,
202,
565,
309,
261,
2956,
1276,
5203,
13,
202,
202,
13723,
3471,
18,
1289,
1046,
12,
2956,
1769,
202,
565,
469,
309,
261,
2956,
1276,
5272,
13,
202,
202,
430,
261,
29778,
422,
446,
13,
1082,
565,
3541,
273,
261,
8290,
2460,
13,
2956,
31,
202,
202,
12107,
1082,
565,
2332,
18,
370,
18,
8222,
2932,
3386,
1245,
5272,
930,
2935,
2
] |
System.err.println("WARNING: Pause requested while executing runAndExec()");
|
if(STDERR_DIAG) System.err.println("WARNING: Pause requested while executing runAndExec()");
|
public static int executeAndExec(UnixRuntime r) { for(;;) { for(;;) { if(r.execute()) break; System.err.println("WARNING: Pause requested while executing runAndExec()"); } if(r.state != EXECED) return r.exitStatus(); r = r.execedRuntime; } }
|
4600 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4600/ba59dfdff778e2a1b0dbe38b19534a8e775f4a4b/UnixRuntime.java/buggy/src/org/ibex/nestedvm/UnixRuntime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
1836,
1876,
1905,
12,
18729,
5576,
436,
13,
288,
377,
202,
565,
364,
12,
25708,
13,
288,
5411,
364,
12,
25708,
13,
288,
7734,
309,
12,
86,
18,
8837,
10756,
898,
31,
7734,
309,
12,
882,
25617,
67,
2565,
1781,
13,
2332,
18,
370,
18,
8222,
2932,
9511,
30,
31357,
3764,
1323,
11274,
1086,
1876,
1905,
1435,
8863,
5411,
289,
5411,
309,
12,
86,
18,
2019,
480,
5675,
41,
23552,
13,
327,
436,
18,
8593,
1482,
5621,
5411,
436,
273,
436,
18,
14880,
3263,
5576,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
1836,
1876,
1905,
12,
18729,
5576,
436,
13,
288,
377,
202,
565,
364,
12,
25708,
13,
288,
5411,
364,
12,
25708,
13,
288,
7734,
309,
12,
86,
18,
8837,
10756,
898,
31,
7734,
309,
12,
882,
25617,
67,
2565,
1781,
13,
2332,
18,
370,
18,
8222,
2932,
9511,
30,
31357,
3764,
1323,
11274,
1086,
1876,
1905,
1435,
8863,
5411,
289,
5411,
309,
12,
86,
18,
2019,
480,
5675,
41,
23552,
13,
327,
436,
18,
8593,
1482,
5621,
5411,
436,
273,
436,
18,
14880,
3263,
5576,
31,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
bugCategoryDescriptionBundle = ResourceBundle.getBundle("edu.umd.cs.findbugs.BugCategoryDescriptions");
|
categoryDescriptionMap = new HashMap<String, String>();
|
private I18N() { annotationDescriptionBundle = ResourceBundle.getBundle("edu.umd.cs.findbugs.FindBugsAnnotationDescriptions"); bugCategoryDescriptionBundle = ResourceBundle.getBundle("edu.umd.cs.findbugs.BugCategoryDescriptions"); userDesignationBundle = ResourceBundle.getBundle("edu.umd.cs.findbugs.UserDesignations"); bugPatternMap = new HashMap<String, BugPattern>(); bugCodeMap = new HashMap<String, BugCode>(); }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/cda55a02bab1a47c1256b76f6ef7e5ddcc91b9a6/I18N.java/clean/findbugs/src/java/edu/umd/cs/findbugs/I18N.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
2643,
50,
1435,
288,
202,
202,
11495,
3291,
3405,
273,
19198,
18,
588,
3405,
2932,
28049,
18,
379,
72,
18,
2143,
18,
4720,
19381,
18,
3125,
31559,
3257,
16844,
8863,
202,
202,
925,
4457,
3291,
3405,
273,
19198,
18,
588,
3405,
2932,
28049,
18,
379,
72,
18,
2143,
18,
4720,
19381,
18,
19865,
4457,
16844,
8863,
202,
202,
1355,
15478,
367,
3405,
273,
19198,
18,
588,
3405,
2932,
28049,
18,
379,
72,
18,
2143,
18,
4720,
19381,
18,
1299,
15478,
1012,
8863,
202,
202,
925,
3234,
863,
273,
394,
4317,
32,
780,
16,
16907,
3234,
34,
5621,
202,
202,
925,
1085,
863,
273,
394,
4317,
32,
780,
16,
16907,
1085,
34,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
2643,
50,
1435,
288,
202,
202,
11495,
3291,
3405,
273,
19198,
18,
588,
3405,
2932,
28049,
18,
379,
72,
18,
2143,
18,
4720,
19381,
18,
3125,
31559,
3257,
16844,
8863,
202,
202,
925,
4457,
3291,
3405,
273,
19198,
18,
588,
3405,
2932,
28049,
18,
379,
72,
18,
2143,
18,
4720,
19381,
18,
19865,
4457,
16844,
8863,
202,
202,
1355,
15478,
367,
3405,
273,
19198,
18,
588,
3405,
2932,
28049,
18,
379,
72,
18,
2143,
18,
4720,
19381,
18,
1299,
15478,
1012,
8863,
202,
202,
925,
3234,
863,
273,
394,
4317,
32,
780,
16,
16907,
3234,
34,
5621,
202,
202,
925,
1085,
863,
273,
394,
4317,
32,
780,
16,
16907,
1085,
34,
5621,
202,
97,
2,
-100
] |
public synchronized void completedBlock() {
|
public synchronized void completedBlock(boolean dontNotify) { Logger.minor(this, "Completed block ("+dontNotify+")");
|
public synchronized void completedBlock() { successfulBlocks++; notifyClients(); }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/9c514d14b203e8119e76eb0ed41907d8ccfcea57/ClientRequest.java/buggy/src/freenet/client/async/ClientRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
5951,
1768,
1435,
288,
202,
202,
18418,
6450,
9904,
31,
202,
202,
12336,
12300,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
5951,
1768,
1435,
288,
202,
202,
18418,
6450,
9904,
31,
202,
202,
12336,
12300,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int superId = cache.getClassId(interfaceName);
|
final int superId = cache.getClassId(interfaceName);
|
private void buildSubclassDependencies(final int qName, int targetClassId) throws CacheCorruptedException { final Cache cache = getCache(); final int superQName = cache.getSuperQualifiedName(targetClassId); if (superQName != Cache.UNKNOWN) { int superClassId = cache.getClassId(superQName); if (superClassId != Cache.UNKNOWN) { cache.addSubclass(superClassId, qName); buildSubclassDependencies(qName, superClassId); } } int[] interfaces = cache.getSuperInterfaces(targetClassId); for (final int interfaceName : interfaces) { int superId = cache.getClassId(interfaceName); if (superId != Cache.UNKNOWN) { cache.addSubclass(superId, qName); buildSubclassDependencies(qName, superId); } } }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/7b1074744cec86754f2ea660e13d17d40b557940/DependencyCache.java/buggy/compiler/impl/com/intellij/compiler/make/DependencyCache.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1361,
1676,
1106,
8053,
12,
6385,
509,
22914,
16,
509,
14563,
548,
13,
1216,
4379,
22701,
329,
503,
288,
565,
727,
4379,
1247,
273,
8577,
5621,
565,
727,
509,
2240,
13688,
273,
1247,
18,
588,
8051,
12345,
12,
3299,
797,
548,
1769,
565,
309,
261,
9565,
13688,
480,
4379,
18,
14737,
13,
288,
1377,
509,
18846,
548,
273,
1247,
18,
588,
797,
548,
12,
9565,
13688,
1769,
1377,
309,
261,
9565,
797,
548,
480,
4379,
18,
14737,
13,
288,
3639,
1247,
18,
1289,
1676,
1106,
12,
9565,
797,
548,
16,
22914,
1769,
3639,
1361,
1676,
1106,
8053,
12,
85,
461,
16,
18846,
548,
1769,
1377,
289,
565,
289,
565,
509,
8526,
7349,
273,
1247,
18,
588,
8051,
10273,
12,
3299,
797,
548,
1769,
565,
364,
261,
6385,
509,
24088,
294,
7349,
13,
288,
1377,
727,
509,
2240,
548,
273,
1247,
18,
588,
797,
548,
12,
5831,
461,
1769,
1377,
309,
261,
9565,
548,
480,
4379,
18,
14737,
13,
288,
3639,
1247,
18,
1289,
1676,
1106,
12,
9565,
548,
16,
22914,
1769,
3639,
1361,
1676,
1106,
8053,
12,
85,
461,
16,
2240,
548,
1769,
1377,
289,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1361,
1676,
1106,
8053,
12,
6385,
509,
22914,
16,
509,
14563,
548,
13,
1216,
4379,
22701,
329,
503,
288,
565,
727,
4379,
1247,
273,
8577,
5621,
565,
727,
509,
2240,
13688,
273,
1247,
18,
588,
8051,
12345,
12,
3299,
797,
548,
1769,
565,
309,
261,
9565,
13688,
480,
4379,
18,
14737,
13,
288,
1377,
509,
18846,
548,
273,
1247,
18,
588,
797,
548,
12,
9565,
13688,
1769,
1377,
309,
261,
9565,
797,
548,
480,
4379,
18,
14737,
13,
288,
3639,
1247,
18,
1289,
1676,
1106,
12,
9565,
797,
548,
16,
22914,
1769,
3639,
1361,
1676,
1106,
8053,
12,
85,
461,
16,
18846,
548,
1769,
1377,
289,
565,
289,
565,
509,
8526,
7349,
273,
1247,
18,
588,
2
] |
log.warn( "No platform element description column found for " + platform );
|
log.debug( "No platform element description column found for " + platform );
|
private String determinePlatformDescriptionColumn( GeoPlatform platform ) { Collection<String> columnNames = platform.getColumnNames(); int index = 0; for ( String string : columnNames ) { if ( GeoConstants.likelyProbeDescription( string ) ) { log.info( string + " appears to indicate the probe descriptions in column " + index + " for platform " + platform ); return string; } index++; } log.warn( "No platform element description column found for " + platform ); return null; }
|
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/9a3d781de6f0679371df630218f4f6cd87d06917/GeoConverter.java/clean/gemma-core/src/main/java/ubic/gemma/loader/expression/geo/GeoConverter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
4199,
8201,
3291,
1494,
12,
9385,
8201,
4072,
262,
288,
3639,
2200,
32,
780,
34,
19975,
273,
4072,
18,
588,
20718,
5621,
3639,
509,
770,
273,
374,
31,
3639,
364,
261,
514,
533,
294,
19975,
262,
288,
5411,
309,
261,
9385,
2918,
18,
24178,
21042,
3291,
12,
533,
262,
262,
288,
7734,
613,
18,
1376,
12,
533,
397,
315,
14606,
358,
10768,
326,
225,
10695,
15550,
316,
1057,
315,
397,
770,
397,
315,
364,
4072,
315,
13491,
397,
4072,
11272,
7734,
327,
533,
31,
5411,
289,
5411,
770,
9904,
31,
3639,
289,
3639,
613,
18,
4148,
12,
315,
2279,
4072,
930,
2477,
1057,
1392,
364,
315,
397,
4072,
11272,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
4199,
8201,
3291,
1494,
12,
9385,
8201,
4072,
262,
288,
3639,
2200,
32,
780,
34,
19975,
273,
4072,
18,
588,
20718,
5621,
3639,
509,
770,
273,
374,
31,
3639,
364,
261,
514,
533,
294,
19975,
262,
288,
5411,
309,
261,
9385,
2918,
18,
24178,
21042,
3291,
12,
533,
262,
262,
288,
7734,
613,
18,
1376,
12,
533,
397,
315,
14606,
358,
10768,
326,
225,
10695,
15550,
316,
1057,
315,
397,
770,
397,
315,
364,
4072,
315,
13491,
397,
4072,
11272,
7734,
327,
533,
31,
5411,
289,
5411,
770,
9904,
31,
3639,
289,
3639,
613,
18,
4148,
12,
315,
2279,
4072,
930,
2477,
1057,
1392,
364,
315,
397,
4072,
11272,
3639,
327,
446,
31,
565,
289,
2,
-100
] |
glRotation.numColumns = 3;
|
private void createRotationPanel( ) { GridLayout glRotation = new GridLayout( ); glRotation.verticalSpacing = 2; glRotation.marginHeight = 2; glRotation.marginWidth = 2; glRotation.numColumns = 3; grpRotation = new Group( cmpContent, SWT.NONE ); GridData gdGRPRotation = new GridData( GridData.FILL_BOTH ); gdGRPRotation.horizontalSpan = 6; gdGRPRotation.verticalSpan = 3; gdGRPRotation.heightHint = 180; grpRotation.setLayoutData( gdGRPRotation ); grpRotation.setLayout( glRotation ); grpRotation.setText( Messages.getString( "FontDefinitionDialog.Lbl.Rotation" ) ); //$NON-NLS-1$ ascRotation = new AngleSelectorComposite( grpRotation, SWT.BORDER, ChartUIUtil.getFontRotation( fdCurrent ), Display.getCurrent( ).getSystemColor( SWT.COLOR_WHITE ) ); GridData gdASCRotation = new GridData( GridData.FILL_BOTH ); gdASCRotation.horizontalSpan = 1; gdASCRotation.verticalSpan = 3; ascRotation.setLayoutData( gdASCRotation ); ascRotation.setAngleChangeListener( this ); iscRotation = new IntegerSpinControl( grpRotation, SWT.NONE, ChartUIUtil.getFontRotation( fdCurrent ) ); GridData gdISCRotation = new GridData( GridData.FILL_HORIZONTAL ); gdISCRotation.horizontalSpan = 2; iscRotation.setLayoutData( gdISCRotation ); iscRotation.setMinimum( -90 ); iscRotation.setMaximum( 90 ); iscRotation.setIncrement( 1 ); iscRotation.addListener( this ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/a769c95667dd11c0218d8ea7d48a98220acf6dd8/FontDefinitionDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontDefinitionDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
14032,
5537,
12,
262,
202,
95,
202,
202,
6313,
3744,
5118,
14032,
273,
394,
7145,
3744,
12,
11272,
202,
202,
7043,
14032,
18,
17824,
18006,
273,
576,
31,
202,
202,
7043,
14032,
18,
10107,
2686,
273,
576,
31,
202,
202,
7043,
14032,
18,
10107,
2384,
273,
576,
31,
202,
202,
7043,
14032,
18,
2107,
3380,
273,
890,
31,
202,
202,
17532,
14032,
273,
394,
3756,
12,
9411,
1350,
16,
348,
8588,
18,
9826,
11272,
202,
202,
6313,
751,
15551,
6997,
8025,
352,
367,
273,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
38,
18307,
11272,
202,
202,
19016,
6997,
8025,
352,
367,
18,
18396,
6952,
273,
1666,
31,
202,
202,
19016,
6997,
8025,
352,
367,
18,
17824,
6952,
273,
890,
31,
202,
202,
19016,
6997,
8025,
352,
367,
18,
4210,
7002,
273,
9259,
31,
202,
202,
17532,
14032,
18,
542,
3744,
751,
12,
15551,
6997,
8025,
352,
367,
11272,
202,
202,
17532,
14032,
18,
542,
3744,
12,
5118,
14032,
11272,
202,
202,
17532,
14032,
18,
542,
1528,
12,
4838,
18,
588,
780,
12,
315,
5711,
1852,
6353,
18,
48,
3083,
18,
14032,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
3691,
14032,
273,
394,
24154,
4320,
9400,
12,
14295,
14032,
16,
9506,
202,
55,
8588,
18,
38,
7954,
16,
9506,
202,
7984,
5370,
1304,
18,
588,
5711,
14032,
12,
5194,
3935,
262,
16,
9506,
202,
4236,
18,
588,
3935,
12,
262,
18,
588,
3163,
2957,
12,
348,
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,
752,
14032,
5537,
12,
262,
202,
95,
202,
202,
6313,
3744,
5118,
14032,
273,
394,
7145,
3744,
12,
11272,
202,
202,
7043,
14032,
18,
17824,
18006,
273,
576,
31,
202,
202,
7043,
14032,
18,
10107,
2686,
273,
576,
31,
202,
202,
7043,
14032,
18,
10107,
2384,
273,
576,
31,
202,
202,
7043,
14032,
18,
2107,
3380,
273,
890,
31,
202,
202,
17532,
14032,
273,
394,
3756,
12,
9411,
1350,
16,
348,
8588,
18,
9826,
11272,
202,
202,
6313,
751,
15551,
6997,
8025,
352,
367,
273,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
38,
18307,
11272,
202,
202,
19016,
6997,
8025,
352,
367,
18,
18396,
6952,
273,
1666,
31,
202,
202,
19016,
6997,
8025,
2
] |
|
} } return new Object[0]; }
|
} } return new Object[0]; }
|
protected Object[] getRawChildren(Object parentElementOrTreePath) { Object parent; TreePath path; if (parentElementOrTreePath instanceof TreePath) { path = (TreePath) parentElementOrTreePath; parent = path.getLastSegment(); } else { parent = parentElementOrTreePath; path = null; } if (parent != null) { if (equals(parent, getRoot())) { return super.getRawChildren(parent); } IContentProvider cp = getContentProvider(); if (cp instanceof ITreePathContentProvider) { ITreePathContentProvider tpcp = (ITreePathContentProvider) cp; if (path == null) { // A path was not provided so try and find one Widget w = findItem(parent); if (w instanceof Item) { Item item = (Item) w; path = getTreePathFromItem(item); } if (path == null) { path = new TreePath(new Object[] { parent }); } } Object[] result = tpcp.getChildren(path); if (result != null) { return result; } } else if (cp instanceof ITreeContentProvider) { ITreeContentProvider tcp = (ITreeContentProvider) cp; Object[] result = tcp.getChildren(parent); if (result != null) { return result; } } } return new Object[0]; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/7dea322b00f8363f209617dc36ba0b47497db00d/AbstractTreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
8526,
10547,
4212,
12,
921,
30363,
1162,
2471,
743,
13,
288,
377,
202,
921,
982,
31,
377,
202,
2471,
743,
589,
31,
377,
202,
430,
261,
2938,
1046,
1162,
2471,
743,
1276,
4902,
743,
13,
288,
1082,
202,
803,
273,
261,
2471,
743,
13,
30363,
1162,
2471,
743,
31,
1082,
202,
2938,
273,
589,
18,
588,
3024,
4131,
5621,
202,
202,
97,
469,
288,
1082,
202,
2938,
273,
30363,
1162,
2471,
743,
31,
1082,
202,
803,
273,
446,
31,
202,
202,
97,
3639,
309,
261,
2938,
480,
446,
13,
288,
5411,
309,
261,
14963,
12,
2938,
16,
7656,
1435,
3719,
288,
9506,
202,
2463,
2240,
18,
588,
4809,
4212,
12,
2938,
1769,
1082,
202,
97,
5411,
467,
1350,
2249,
3283,
273,
5154,
2249,
5621,
2398,
309,
261,
4057,
1276,
467,
2471,
743,
1350,
2249,
13,
288,
377,
1082,
202,
1285,
992,
743,
1350,
2249,
268,
2436,
84,
273,
261,
1285,
992,
743,
1350,
2249,
13,
3283,
31,
377,
1082,
202,
430,
261,
803,
422,
446,
13,
288,
377,
9506,
202,
759,
432,
589,
1703,
486,
2112,
1427,
775,
471,
1104,
1245,
377,
9506,
202,
4609,
341,
273,
1104,
1180,
12,
2938,
1769,
377,
9506,
202,
430,
261,
91,
1276,
4342,
13,
288,
377,
6862,
202,
1180,
761,
273,
261,
1180,
13,
341,
31,
377,
6862,
202,
803,
273,
15867,
743,
1265,
1180,
12,
1726,
1769,
377,
9506,
202,
97,
377,
9506,
202,
430,
261,
803,
422,
446,
13,
288,
377,
6862,
202,
803,
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,
4750,
1033,
8526,
10547,
4212,
12,
921,
30363,
1162,
2471,
743,
13,
288,
377,
202,
921,
982,
31,
377,
202,
2471,
743,
589,
31,
377,
202,
430,
261,
2938,
1046,
1162,
2471,
743,
1276,
4902,
743,
13,
288,
1082,
202,
803,
273,
261,
2471,
743,
13,
30363,
1162,
2471,
743,
31,
1082,
202,
2938,
273,
589,
18,
588,
3024,
4131,
5621,
202,
202,
97,
469,
288,
1082,
202,
2938,
273,
30363,
1162,
2471,
743,
31,
1082,
202,
803,
273,
446,
31,
202,
202,
97,
3639,
309,
261,
2938,
480,
446,
13,
288,
5411,
309,
261,
14963,
12,
2938,
16,
7656,
1435,
3719,
288,
9506,
202,
2463,
2240,
18,
588,
4809,
4212,
12,
2938,
1769,
1082,
202,
97,
5411,
2
] |
public String pageURL(HttpServletRequest request, String page) { StringBuffer sb = new StringBuffer(); ModuleConfig moduleConfig = ModuleUtils.getInstance().getModuleConfig(request); String pagePattern = moduleConfig.getControllerConfig().getPagePattern(); if (pagePattern == null) { sb.append(moduleConfig.getPrefix()); sb.append(page); } else { boolean dollar = false; for (int i = 0; i < pagePattern.length(); i++) { char ch = pagePattern.charAt(i); if (dollar) { switch (ch) { case 'M' : sb.append(moduleConfig.getPrefix()); break; case 'P' : sb.append(page); break; case '$' : sb.append('$'); break; default : ; // Silently swallow } dollar = false; continue; } else if (ch == '$') { dollar = true; } else { sb.append(ch); } } } return sb.toString(); }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/ebb20c4a2662be87e84c7757232a8dc5562bcfb0/TagUtils.java/clean/src/share/org/apache/struts/taglib/TagUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1363,
1785,
12,
2940,
18572,
590,
16,
514,
1363,
13,
288,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
5924,
809,
1605,
809,
273,
5924,
1989,
18,
588,
1442,
7675,
588,
3120,
809,
12,
2293,
1769,
3639,
514,
1363,
3234,
273,
1605,
809,
18,
588,
2933,
809,
7675,
588,
1964,
3234,
5621,
7734,
309,
261,
2433,
3234,
422,
446,
13,
288,
5411,
2393,
18,
6923,
12,
2978,
809,
18,
588,
2244,
10663,
5411,
2393,
18,
6923,
12,
2433,
1769,
10792,
289,
469,
288,
5411,
1250,
302,
25442,
273,
629,
31,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1363,
3234,
18,
2469,
5621,
277,
27245,
288,
7734,
1149,
462,
273,
1363,
3234,
18,
3001,
861,
12,
77,
1769,
7734,
309,
261,
72,
25442,
13,
288,
10792,
1620,
261,
343,
13,
288,
13491,
648,
296,
49,
11,
294,
18701,
2393,
18,
6923,
12,
2978,
809,
18,
588,
2244,
10663,
18701,
898,
31,
13491,
648,
296,
52,
11,
294,
18701,
2393,
18,
6923,
12,
2433,
1769,
18701,
898,
31,
13491,
648,
11874,
294,
18701,
2393,
18,
6923,
2668,
8,
8284,
18701,
898,
31,
13491,
805,
294,
18701,
274,
368,
348,
8125,
715,
1352,
5965,
10792,
289,
10792,
302,
25442,
273,
629,
31,
10792,
1324,
31,
4766,
565,
289,
469,
309,
261,
343,
422,
3365,
6134,
288,
10792,
302,
25442,
273,
638,
31,
4766,
565,
289,
469,
288,
10792,
2393,
18,
6923,
12,
343,
1769,
7734,
289,
5411,
289,
3639,
289,
7734,
327,
2393,
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,
514,
1363,
1785,
12,
2940,
18572,
590,
16,
514,
1363,
13,
288,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
5924,
809,
1605,
809,
273,
5924,
1989,
18,
588,
1442,
7675,
588,
3120,
809,
12,
2293,
1769,
3639,
514,
1363,
3234,
273,
1605,
809,
18,
588,
2933,
809,
7675,
588,
1964,
3234,
5621,
7734,
309,
261,
2433,
3234,
422,
446,
13,
288,
5411,
2393,
18,
6923,
12,
2978,
809,
18,
588,
2244,
10663,
5411,
2393,
18,
6923,
12,
2433,
1769,
10792,
289,
469,
288,
5411,
1250,
302,
25442,
273,
629,
31,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1363,
3234,
18,
2469,
5621,
277,
27245,
288,
7734,
1149,
462,
273,
1363,
3234,
18,
3001,
2
] |
||
updateBtn.setText(TVBrowser.mLocalizer.msg("button.stop", "Stop")); updateBtn.setIcon(new ImageIcon("imgs/Stop24.gif"));
|
int toolbarStyle = mHorizontalToolBar.getToolbarStyle(); if ((toolbarStyle & util.ui.Toolbar.TEXT) == util.ui.Toolbar.TEXT) { updateBtn.setText(TVBrowser.mLocalizer.msg("button.stop", "Stop")); } if ((toolbarStyle & util.ui.Toolbar.ICON) == util.ui.Toolbar.ICON) { updateBtn.setIcon(new ImageIcon("imgs/Stop24.gif")); }
|
private void onDownloadStart() { JButton updateBtn=mHorizontalToolBar.getUpdateBtn(); if (updateBtn != null) { updateBtn.setText(TVBrowser.mLocalizer.msg("button.stop", "Stop")); updateBtn.setIcon(new ImageIcon("imgs/Stop24.gif")); } updateMenuItem.setText(mLocalizer.msg("menuitem.stopUpdate", "Stop update...")); }
|
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/93490b8a94d3d1530e44ab93682bba6a259963e5/MainFrame.java/buggy/tvbrowser/src/tvbrowser/ui/mainframe/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
603,
7109,
1685,
1435,
288,
565,
28804,
1089,
20541,
33,
81,
14457,
6364,
5190,
18,
588,
1891,
20541,
5621,
565,
309,
261,
2725,
20541,
480,
446,
13,
288,
1377,
1089,
20541,
18,
542,
1528,
12,
15579,
9132,
18,
81,
2042,
1824,
18,
3576,
2932,
5391,
18,
5681,
3113,
315,
4947,
7923,
1769,
1377,
1089,
20541,
18,
542,
5554,
12,
2704,
3421,
5554,
2932,
381,
564,
19,
4947,
3247,
18,
13905,
7923,
1769,
565,
289,
565,
1089,
12958,
18,
542,
1528,
12,
81,
2042,
1824,
18,
3576,
2932,
5414,
1726,
18,
5681,
1891,
3113,
315,
4947,
1089,
7070,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
603,
7109,
1685,
1435,
288,
565,
28804,
1089,
20541,
33,
81,
14457,
6364,
5190,
18,
588,
1891,
20541,
5621,
565,
309,
261,
2725,
20541,
480,
446,
13,
288,
1377,
1089,
20541,
18,
542,
1528,
12,
15579,
9132,
18,
81,
2042,
1824,
18,
3576,
2932,
5391,
18,
5681,
3113,
315,
4947,
7923,
1769,
1377,
1089,
20541,
18,
542,
5554,
12,
2704,
3421,
5554,
2932,
381,
564,
19,
4947,
3247,
18,
13905,
7923,
1769,
565,
289,
565,
1089,
12958,
18,
542,
1528,
12,
81,
2042,
1824,
18,
3576,
2932,
5414,
1726,
18,
5681,
1891,
3113,
315,
4947,
1089,
7070,
10019,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
startEditing(editPath, EDIT);
|
startEditing(editPath, EDIT);
|
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { Rectangle bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExpandControl(path, click.x, click.y); boolean isLeaf = isLeaf(row); TreeCellRenderer tcr = getCellRenderer(); Icon icon; if (isLeaf) icon = UIManager.getIcon("Tree.leafIcon"); else if (tree.isExpanded(path)) icon = UIManager.getIcon("Tree.openIcon"); else icon = UIManager.getIcon("Tree.closedIcon"); if (tcr instanceof DefaultTreeCellRenderer) { Icon tmp = ((DefaultTreeCellRenderer) tcr).getIcon(); if (tmp != null) icon = tmp; } // add gap*2 for the space before and after the text if (icon != null) bounds.width += icon.getIconWidth() + gap * 2; boolean inBounds = bounds.contains(click.x, click.y); if ((inBounds || cntlClick) && tree.isVisible(path)) { if (inBounds) { TreePath currentLead = tree.getLeadSelectionPath(); if (currentLead != null && currentLead.equals(path) && e.getClickCount() == 1 && tree.isEditable()) { // Schedule the editing session. final TreePath editPath = path; if (startEditTimer != null) startEditTimer.stop(); startEditTimer = new Timer(WAIT_TILL_EDITING, new ActionListener() { public void actionPerformed( ActionEvent e) { startEditing(editPath, EDIT); } }); startEditTimer.setRepeats(false); startEditTimer.start(); } else { selectPath(tree, path); if (e.getClickCount() == 2 && ! isLeaf(row)) toggleExpandState(path); } } if (cntlClick) { handleExpandControlClick(path, click.x, click.y); if (cellEditor != null) cellEditor.cancelCellEditing(); tree.scrollPathToVisible(path); } else if (tree.isEditable()) startEditing(path, e); } } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8e6a933c7311b8af73a149d26777089b7dc8bd68/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
13,
565,
288,
1377,
368,
5502,
7644,
4682,
3755,
87,
326,
2416,
7336,
3874,
1301,
16,
27183,
1377,
368,
635,
326,
2202,
4682,
603,
326,
3170,
756,
18,
1377,
309,
261,
1937,
4666,
6777,
480,
446,
13,
3639,
288,
1850,
787,
4666,
6777,
18,
5681,
5621,
1850,
787,
4666,
6777,
273,
446,
31,
3639,
289,
5411,
4686,
4682,
273,
425,
18,
588,
2148,
5621,
1377,
4902,
743,
589,
273,
1927,
383,
7781,
743,
1290,
2735,
12,
3413,
16,
4682,
18,
92,
16,
4682,
18,
93,
1769,
1377,
309,
261,
803,
480,
446,
13,
3639,
288,
1850,
13264,
4972,
273,
4339,
5694,
12,
3413,
16,
589,
1769,
1850,
509,
1027,
273,
11835,
25589,
12,
3413,
16,
589,
1769,
1850,
1250,
7599,
80,
6563,
273,
353,
2735,
382,
12271,
3367,
12,
803,
16,
4682,
18,
92,
16,
4682,
18,
93,
1769,
1850,
1250,
31356,
273,
31356,
12,
492,
1769,
10792,
4902,
4020,
6747,
1715,
86,
273,
16458,
6747,
5621,
1850,
16011,
4126,
31,
1850,
309,
261,
291,
9858,
13,
5411,
4126,
273,
6484,
1318,
18,
588,
5554,
2932,
2471,
18,
12070,
5554,
8863,
1850,
469,
309,
261,
3413,
18,
291,
17957,
12,
803,
3719,
5411,
4126,
273,
6484,
1318,
18,
588,
5554,
2932,
2471,
18,
3190,
5554,
8863,
1850,
469,
5411,
4126,
273,
6484,
1318,
18,
588,
5554,
2932,
2471,
18,
12204,
5554,
8863,
10792,
309,
261,
88,
3353,
1276,
2989,
2471,
4020,
6747,
13,
5411,
288,
2398,
16011,
1853,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
13,
565,
288,
1377,
368,
5502,
7644,
4682,
3755,
87,
326,
2416,
7336,
3874,
1301,
16,
27183,
1377,
368,
635,
326,
2202,
4682,
603,
326,
3170,
756,
18,
1377,
309,
261,
1937,
4666,
6777,
480,
446,
13,
3639,
288,
1850,
787,
4666,
6777,
18,
5681,
5621,
1850,
787,
4666,
6777,
273,
446,
31,
3639,
289,
5411,
4686,
4682,
273,
425,
18,
588,
2148,
5621,
1377,
4902,
743,
589,
273,
1927,
383,
7781,
743,
1290,
2735,
12,
3413,
16,
4682,
18,
92,
16,
4682,
18,
93,
1769,
1377,
309,
261,
803,
480,
446,
13,
3639,
288,
1850,
13264,
4972,
273,
4339,
5694,
12,
3413,
16,
589,
1769,
1850,
509,
1027,
273,
2
] |
return state == 0;
|
return state == 0 || state == __XmlLexer.TAG || state == __XmlLexer.END_TAG;
|
protected boolean isHtmlTagState(int state) { return state == 0; }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/8ac3630875d0edaefc2edc01e0a66dcfa5217523/XHtmlHighlightingLexer.java/buggy/source/com/intellij/lexer/XHtmlHighlightingLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
353,
4353,
1805,
1119,
12,
474,
919,
13,
288,
565,
327,
919,
422,
374,
747,
919,
422,
1001,
4432,
13356,
18,
7927,
747,
919,
422,
1001,
4432,
13356,
18,
4415,
67,
7927,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
353,
4353,
1805,
1119,
12,
474,
919,
13,
288,
565,
327,
919,
422,
374,
747,
919,
422,
1001,
4432,
13356,
18,
7927,
747,
919,
422,
1001,
4432,
13356,
18,
4415,
67,
7927,
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
] |
public boolean hasURIs() {
|
public synchronized boolean hasURIs() {
|
public boolean hasURIs() { return hasURIs; }
|
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/a6a9cc01004d94d4bdefc0b76c0bdb1962187369/SplitFileInserterSegment.java/buggy/src/freenet/client/async/SplitFileInserterSegment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
711,
1099,
2520,
1435,
288,
202,
202,
2463,
711,
1099,
2520,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
711,
1099,
2520,
1435,
288,
202,
202,
2463,
711,
1099,
2520,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void copyAccessControlEntries(CmsDbContext dbc, CmsResource source, CmsResource destination) throws CmsException {
|
public void copyAccessControlEntries( CmsDbContext dbc, CmsResource source, CmsResource destination, boolean updateLastModifiedInfo) throws CmsException {
|
public void copyAccessControlEntries(CmsDbContext dbc, CmsResource source, CmsResource destination) throws CmsException { // get the entries to copy ListIterator aceList = m_userDriver.readAccessControlEntries( dbc, dbc.currentProject(), source.getResourceId(), false).listIterator(); // remove the current entries from the destination m_userDriver.removeAccessControlEntries(dbc, dbc.currentProject(), destination.getResourceId()); // now write the new entries while (aceList.hasNext()) { CmsAccessControlEntry ace = (CmsAccessControlEntry)aceList.next(); m_userDriver.createAccessControlEntry( dbc, dbc.currentProject(), destination.getResourceId(), ace.getPrincipal(), ace.getPermissions().getAllowedPermissions(), ace.getPermissions().getDeniedPermissions(), ace.getFlags()); } // update the "last modified" information touch( dbc, destination, CmsResource.TOUCH_DATE_UNCHANGED, CmsResource.TOUCH_DATE_UNCHANGED, CmsResource.TOUCH_DATE_UNCHANGED); // clear the cache clearAccessControlListCache(); // fire a resource modification event OpenCms.fireCmsEvent(new CmsEvent(I_CmsEventListener.EVENT_RESOURCE_MODIFIED, Collections.singletonMap( "resource", destination))); }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0a325deda5c054061b5c35a9c0aa5deed3c6eaad/CmsDriverManager.java/buggy/src/org/opencms/db/CmsDriverManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1610,
16541,
5400,
12,
4747,
4331,
1042,
9881,
16,
7630,
1084,
16,
7630,
2929,
13,
565,
1216,
11228,
288,
3639,
368,
336,
326,
3222,
358,
1610,
3639,
987,
3198,
18082,
682,
273,
312,
67,
1355,
4668,
18,
896,
16541,
5400,
12,
5411,
9881,
16,
5411,
9881,
18,
2972,
4109,
9334,
5411,
1084,
18,
588,
17790,
9334,
5411,
629,
2934,
1098,
3198,
5621,
3639,
368,
1206,
326,
783,
3222,
628,
326,
2929,
3639,
312,
67,
1355,
4668,
18,
4479,
16541,
5400,
12,
9137,
16,
9881,
18,
2972,
4109,
9334,
2929,
18,
588,
17790,
10663,
3639,
368,
2037,
1045,
326,
394,
3222,
3639,
1323,
261,
623,
682,
18,
5332,
2134,
10756,
288,
5411,
2149,
16541,
1622,
18082,
273,
261,
4747,
16541,
1622,
13,
623,
682,
18,
4285,
5621,
5411,
312,
67,
1355,
4668,
18,
2640,
16541,
1622,
12,
7734,
9881,
16,
7734,
9881,
18,
2972,
4109,
9334,
7734,
2929,
18,
588,
17790,
9334,
7734,
18082,
18,
588,
9155,
9334,
7734,
18082,
18,
588,
6521,
7675,
588,
5042,
6521,
9334,
7734,
18082,
18,
588,
6521,
7675,
588,
10410,
6521,
9334,
7734,
18082,
18,
588,
5094,
10663,
3639,
289,
3639,
368,
1089,
326,
315,
2722,
4358,
6,
1779,
3639,
6920,
12,
5411,
9881,
16,
5411,
2929,
16,
5411,
7630,
18,
4296,
57,
1792,
67,
4594,
67,
2124,
24435,
16,
5411,
7630,
18,
4296,
57,
1792,
67,
4594,
67,
2124,
24435,
16,
5411,
7630,
18,
4296,
57,
1792,
67,
4594,
67,
2124,
24435,
1769,
3639,
368,
2424,
326,
1247,
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,
1610,
16541,
5400,
12,
4747,
4331,
1042,
9881,
16,
7630,
1084,
16,
7630,
2929,
13,
565,
1216,
11228,
288,
3639,
368,
336,
326,
3222,
358,
1610,
3639,
987,
3198,
18082,
682,
273,
312,
67,
1355,
4668,
18,
896,
16541,
5400,
12,
5411,
9881,
16,
5411,
9881,
18,
2972,
4109,
9334,
5411,
1084,
18,
588,
17790,
9334,
5411,
629,
2934,
1098,
3198,
5621,
3639,
368,
1206,
326,
783,
3222,
628,
326,
2929,
3639,
312,
67,
1355,
4668,
18,
4479,
16541,
5400,
12,
9137,
16,
9881,
18,
2972,
4109,
9334,
2929,
18,
588,
17790,
10663,
3639,
368,
2037,
1045,
326,
394,
3222,
3639,
1323,
261,
623,
682,
18,
5332,
2134,
10756,
288,
5411,
2149,
16541,
1622,
18082,
273,
2
] |
} catch (Exception e) {
|
} catch (Exception e) {
|
public ArrayList getHistory(Date lastBuild, Date now, long quietPeriod) { //(PENDING) buildHistoryCommand, execHistoryCommand //call vss, write output to intermediate file try { String[] cmdArray = {"ss.exe", "history", _ssDir, "-R", "-Vd" + formatDateForVSS(now) + "~" + formatDateForVSS(lastBuild), "-Y" + _login, "-I-N", "-O" + VSS_TEMP_FILE}; Process p = Runtime.getRuntime().exec(cmdArray); p.waitFor(); BufferedReader br = new BufferedReader(new FileReader( new File(VSS_TEMP_FILE))); String s = br.readLine(); while (s != null) { if (s.startsWith("***** ")) { ArrayList a = new ArrayList(); a.add(s); s = br.readLine(); while (s != null && !s.startsWith("***** ")) { a.add(s); s = br.readLine(); } handleEntry(a); } else { s = br.readLine(); } } br.close(); (new File(VSS_TEMP_FILE)).delete(); } catch (Exception e) { e.printStackTrace(); } if (_property != null && _modifications.size() > 0) { getAntTask().getProject().setProperty(_property, "true"); } return _modifications; }
|
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/86625ac777a87ac329b0b06b4378dce3485d322d/VssElement.java/buggy/main/src/net/sourceforge/cruisecontrol/element/VssElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2407,
336,
5623,
12,
1626,
1142,
3116,
16,
2167,
2037,
16,
1525,
10902,
5027,
13,
288,
3639,
368,
12,
25691,
13,
1361,
5623,
2189,
16,
1196,
5623,
2189,
202,
202,
759,
1991,
331,
1049,
16,
1045,
876,
358,
12110,
585,
202,
202,
698,
288,
1082,
202,
780,
8526,
1797,
1076,
273,
12528,
1049,
18,
14880,
3113,
315,
8189,
3113,
389,
1049,
1621,
16,
3701,
54,
3113,
3701,
58,
72,
6,
397,
6862,
202,
2139,
1626,
1290,
58,
1260,
12,
3338,
13,
397,
31964,
397,
29341,
1290,
58,
1260,
12,
2722,
3116,
3631,
5397,
3701,
61,
6,
397,
389,
5819,
16,
3701,
45,
17,
50,
3113,
3701,
51,
6,
397,
776,
1260,
67,
10258,
67,
3776,
20451,
1082,
202,
2227,
293,
273,
2509,
18,
588,
5576,
7675,
4177,
12,
4172,
1076,
1769,
1082,
202,
84,
18,
7048,
1290,
5621,
1082,
202,
17947,
2514,
5186,
273,
394,
10633,
12,
2704,
23010,
12,
2398,
394,
1387,
12,
58,
1260,
67,
10258,
67,
3776,
3719,
1769,
1082,
202,
780,
272,
273,
5186,
18,
896,
1670,
5621,
1082,
202,
17523,
261,
87,
480,
446,
13,
288,
9506,
202,
430,
261,
87,
18,
17514,
1190,
2932,
23490,
315,
3719,
288,
6862,
202,
19558,
279,
273,
394,
2407,
5621,
6862,
202,
69,
18,
1289,
12,
87,
1769,
6862,
202,
87,
273,
5186,
18,
896,
1670,
5621,
6862,
202,
17523,
261,
87,
480,
446,
597,
401,
87,
18,
17514,
1190,
2932,
23490,
315,
3719,
288,
25083,
202,
69,
18,
1289,
12,
87,
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,
2407,
336,
5623,
12,
1626,
1142,
3116,
16,
2167,
2037,
16,
1525,
10902,
5027,
13,
288,
3639,
368,
12,
25691,
13,
1361,
5623,
2189,
16,
1196,
5623,
2189,
202,
202,
759,
1991,
331,
1049,
16,
1045,
876,
358,
12110,
585,
202,
202,
698,
288,
1082,
202,
780,
8526,
1797,
1076,
273,
12528,
1049,
18,
14880,
3113,
315,
8189,
3113,
389,
1049,
1621,
16,
3701,
54,
3113,
3701,
58,
72,
6,
397,
6862,
202,
2139,
1626,
1290,
58,
1260,
12,
3338,
13,
397,
31964,
397,
29341,
1290,
58,
1260,
12,
2722,
3116,
3631,
5397,
3701,
61,
6,
397,
389,
5819,
16,
3701,
45,
17,
50,
3113,
3701,
51,
6,
397,
776,
1260,
67,
10258,
67,
3776,
20451,
2
] |
HashMap xqInputMap = new HashMap();
|
Map xqInputMap = new HashMap();
|
public void testExecute() throws Exception{ LocalWorker protworker = new ProteinGBSeqWorker(); Map inputMap = new HashMap(); DataThingAdapter inAdapter = new DataThingAdapter(inputMap); inAdapter.putString("id","NP_000050"); Map outputMap = protworker.execute(inputMap); DataThingAdapter outAdapter = new DataThingAdapter(outputMap); String results = outAdapter.getString("outputText"); System.out.println(results); LocalWorker worker = new XQueryWorker(); HashMap xqInputMap = new HashMap(); DataThingAdapter xqInAdapter = new DataThingAdapter(xqInputMap); inAdapter.putString("script","//GBReference"); inAdapter.putString("inputdocText",results); Map xqOutput = worker.execute(xqInputMap); DataThingAdapter xqOutAdapter = new DataThingAdapter(xqOutput); String xqResults = outAdapter.getString("outputText"); assertNotNull("The results were null", xqResults); System.out.println(xqResults); this.writeFile("test_xquery.xml", xqResults); }
|
7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/7b96d89277c0beebb7a242f2ae4065dfa5b0e2f9/XQueryWorkerTest.java/clean/trunk/taverna1.0/contrib/test/src/net/sourceforge/taverna/scuflworkers/xml/XQueryWorkerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5289,
1435,
1216,
1185,
95,
3639,
3566,
6671,
11121,
10124,
273,
394,
1186,
10297,
5887,
6926,
6671,
5621,
7734,
1635,
810,
863,
273,
394,
4317,
5621,
3639,
1910,
10193,
4216,
316,
4216,
273,
394,
1910,
10193,
4216,
12,
2630,
863,
1769,
3639,
316,
4216,
18,
458,
780,
2932,
350,
15937,
23430,
67,
2787,
3361,
8863,
7734,
1635,
876,
863,
273,
11121,
10124,
18,
8837,
12,
2630,
863,
1769,
3639,
1910,
10193,
4216,
596,
4216,
273,
394,
1910,
10193,
4216,
12,
2844,
863,
1769,
9079,
514,
1686,
273,
596,
4216,
18,
588,
780,
2932,
2844,
1528,
8863,
2868,
2332,
18,
659,
18,
8222,
12,
4717,
1769,
7734,
3566,
6671,
4322,
273,
394,
1139,
1138,
6671,
5621,
3639,
1635,
619,
85,
1210,
863,
273,
394,
4317,
5621,
3639,
1910,
10193,
4216,
619,
85,
382,
4216,
273,
394,
1910,
10193,
4216,
12,
92,
85,
1210,
863,
1769,
7734,
316,
4216,
18,
458,
780,
2932,
4263,
15937,
759,
5887,
2404,
8863,
3639,
316,
4216,
18,
458,
780,
2932,
2630,
2434,
1528,
3113,
4717,
1769,
7734,
1635,
619,
85,
1447,
273,
4322,
18,
8837,
12,
92,
85,
1210,
863,
1769,
3639,
1910,
10193,
4216,
619,
85,
1182,
4216,
273,
394,
1910,
10193,
4216,
12,
92,
85,
1447,
1769,
7734,
514,
619,
85,
3447,
273,
596,
4216,
18,
588,
780,
2932,
2844,
1528,
8863,
3639,
25395,
2932,
1986,
1686,
4591,
446,
3113,
619,
85,
3447,
1769,
3639,
2332,
18,
659,
18,
8222,
12,
92,
85,
3447,
1769,
7734,
333,
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,
5289,
1435,
1216,
1185,
95,
3639,
3566,
6671,
11121,
10124,
273,
394,
1186,
10297,
5887,
6926,
6671,
5621,
7734,
1635,
810,
863,
273,
394,
4317,
5621,
3639,
1910,
10193,
4216,
316,
4216,
273,
394,
1910,
10193,
4216,
12,
2630,
863,
1769,
3639,
316,
4216,
18,
458,
780,
2932,
350,
15937,
23430,
67,
2787,
3361,
8863,
7734,
1635,
876,
863,
273,
11121,
10124,
18,
8837,
12,
2630,
863,
1769,
3639,
1910,
10193,
4216,
596,
4216,
273,
394,
1910,
10193,
4216,
12,
2844,
863,
1769,
9079,
514,
1686,
273,
596,
4216,
18,
588,
780,
2932,
2844,
1528,
8863,
2868,
2332,
18,
659,
18,
8222,
12,
4717,
1769,
7734,
3566,
6671,
4322,
273,
394,
1139,
1138,
6671,
5621,
2
] |
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination) throws JBossJMSException
|
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector) throws JMSException
|
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination) throws JBossJMSException { // look-up destination DestinationManager dm = serverPeer.getDestinationManager(); AbstractDestination destination = null; try { destination = dm.getDestination(jmsDestination); } catch(Exception e) { throw new JBossJMSException("Cannot map destination " + jmsDestination, e); } // create the MessageConsumer dynamic proxy String stackName = "ConsumerStack"; AdviceStack stack = AspectManager.instance().getAdviceStack(stackName); // TODO why do I need to the advisor to create the interceptor stack? Interceptor[] interceptors = stack.createInterceptors(serverPeer.getSessionAdvisor(), null); JMSConsumerInvocationHandler h = new JMSConsumerInvocationHandler(interceptors); String consumerID = generateConsumerID(); SimpleMetaData metadata = new SimpleMetaData(); metadata.addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, serverPeer.getConsumerAdvisor().getName(), PayloadKey.AS_IS); metadata.addMetaData(InvokerInterceptor.REMOTING, InvokerInterceptor.INVOKER_LOCATOR, serverPeer.getLocator(), PayloadKey.AS_IS); metadata.addMetaData(InvokerInterceptor.REMOTING, InvokerInterceptor.SUBSYSTEM, "JMS", PayloadKey.AS_IS); // TODO: Is this really necessary? Can't I just use the consumerID? metadata.addMetaData(JMSAdvisor.JMS, JMSAdvisor.CLIENT_ID, connectionEndpoint.getClientID(), PayloadKey.AS_IS); metadata.addMetaData(JMSAdvisor.JMS, JMSAdvisor.SESSION_ID, sessionID, PayloadKey.AS_IS); metadata.addMetaData(JMSAdvisor.JMS, JMSAdvisor.CONSUMER_ID, consumerID, PayloadKey.AS_IS); h.getMetaData().mergeIn(metadata); // TODO ClassLoader loader = getClass().getClassLoader(); Class[] interfaces = new Class[] { ConsumerDelegate.class, AcknowledgmentHandler.class }; ConsumerDelegate delegate = (ConsumerDelegate)Proxy.newProxyInstance(loader, interfaces, h); if (callbackHandler == null) { throw new JBossJMSException("null callback handler"); } // create the Consumer endpoint and register it with this SessionDelegate instance ServerConsumerDelegate scd = new ServerConsumerDelegate(consumerID, destination, callbackHandler, this); putConsumerDelegate(consumerID, scd); log.debug("created consumer endpoint (destination=" + jmsDestination + ")"); return delegate; }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/c02fe0abfa86eceacf6101f304bc185026342c82/ServerSessionDelegate.java/clean/src/main/org/jboss/jms/server/endpoint/ServerSessionDelegate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
9326,
9586,
752,
5869,
9586,
12,
5683,
23007,
5683,
13,
540,
1216,
804,
38,
8464,
46,
3537,
503,
282,
288,
1377,
368,
2324,
17,
416,
2929,
1377,
10691,
1318,
9113,
273,
1438,
6813,
18,
588,
5683,
1318,
5621,
1377,
4115,
5683,
2929,
273,
446,
31,
1377,
775,
1377,
288,
540,
2929,
273,
9113,
18,
588,
5683,
12,
78,
959,
5683,
1769,
1377,
289,
1377,
1044,
12,
503,
425,
13,
1377,
288,
540,
604,
394,
804,
38,
8464,
46,
3537,
503,
2932,
4515,
852,
2929,
315,
397,
23007,
5683,
16,
425,
1769,
1377,
289,
1377,
368,
752,
326,
2350,
5869,
5976,
2889,
1377,
514,
2110,
461,
273,
315,
5869,
2624,
14432,
1377,
4052,
633,
2624,
2110,
273,
2970,
1181,
1318,
18,
1336,
7675,
588,
1871,
633,
2624,
12,
3772,
461,
1769,
1377,
368,
2660,
11598,
741,
467,
1608,
358,
326,
1261,
10227,
358,
752,
326,
13810,
2110,
35,
1377,
23499,
8526,
18496,
273,
2110,
18,
2640,
20540,
12,
3567,
6813,
18,
588,
2157,
28087,
9334,
446,
1769,
1377,
13270,
5869,
9267,
1503,
366,
273,
394,
13270,
5869,
9267,
1503,
12,
27481,
1383,
1769,
1377,
514,
4765,
734,
273,
2103,
5869,
734,
5621,
1377,
4477,
6998,
1982,
273,
394,
4477,
6998,
5621,
1377,
1982,
18,
1289,
6998,
12,
6681,
18,
2565,
3118,
5858,
654,
16,
16710,
18,
12945,
16,
1438,
6813,
18,
588,
5869,
28087,
7675,
17994,
9334,
11320,
653,
18,
3033,
67,
5127,
1769,
1377,
1982,
18,
1289,
6998,
12,
24455,
10281,
18,
862,
49,
1974,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
9326,
9586,
752,
5869,
9586,
12,
5683,
23007,
5683,
13,
540,
1216,
804,
38,
8464,
46,
3537,
503,
282,
288,
1377,
368,
2324,
17,
416,
2929,
1377,
10691,
1318,
9113,
273,
1438,
6813,
18,
588,
5683,
1318,
5621,
1377,
4115,
5683,
2929,
273,
446,
31,
1377,
775,
1377,
288,
540,
2929,
273,
9113,
18,
588,
5683,
12,
78,
959,
5683,
1769,
1377,
289,
1377,
1044,
12,
503,
425,
13,
1377,
288,
540,
604,
394,
804,
38,
8464,
46,
3537,
503,
2932,
4515,
852,
2929,
315,
397,
23007,
5683,
16,
425,
1769,
1377,
289,
1377,
368,
752,
326,
2350,
5869,
5976,
2889,
1377,
514,
2110,
461,
273,
315,
5869,
2624,
14432,
1377,
4052,
633,
2624,
2110,
273,
2970,
2
] |
((MatchPattern2)newMatchPat).setNext(matchPat); m_patternTable.put(target, newMatchPat); /*
|
public void setTemplate(ElemTemplate template) { int pos = 0; if(null == m_firstTemplate) { m_firstTemplate = template; } else { ElemTemplateElement next = m_firstTemplate; while(null != next) { if(null == next.m_nextSibling) { next.m_nextSibling = template; template.m_nextSibling = null; // just to play it safe. break; } pos++; next = next.m_nextSibling; } } if(null != template.getName()) { m_namedTemplates.put(template.getName(), template); } if(null != template.getMatch()) { Vector strings = template.getMatch().getTargetElementStrings(); if(null != strings) { int nTargets = strings.size(); for(int stringIndex = 0; stringIndex < nTargets; stringIndex++) { String target = (String)strings.elementAt(stringIndex); Object newMatchPat = new MatchPattern2(template.getMatch().getPatternString(), template.getMatch(), template, pos, target, m_stylesheet); // See if there's already one there Object val = m_patternTable.get(target); if(null == val) { // System.out.println("putting: "+target); m_patternTable.put(target, newMatchPat); } else { // find the tail of the list MatchPattern2 matchPat = (MatchPattern2)val; ((MatchPattern2)newMatchPat).setNext(matchPat); m_patternTable.put(target, newMatchPat); /* MatchPattern2 next; while((next = matchPat.getNext()) != null) { matchPat = next; } // System.out.println("appending: "+target+" to "+matchPat.getPattern()); matchPat.setNext((MatchPattern2)newMatchPat); */ } } } } }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/4997f42cce0ddea6d8f0225a48d55beba0b66368/TemplateList.java/buggy/src/org/apache/xalan/templates/TemplateList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
21334,
12,
7498,
2283,
1542,
13,
225,
288,
565,
509,
949,
273,
374,
31,
565,
309,
12,
2011,
422,
312,
67,
3645,
2283,
13,
565,
288,
1377,
312,
67,
3645,
2283,
273,
1542,
31,
565,
289,
565,
469,
565,
288,
1377,
10223,
2283,
1046,
1024,
273,
312,
67,
3645,
2283,
31,
1377,
1323,
12,
2011,
480,
1024,
13,
1377,
288,
3639,
309,
12,
2011,
422,
1024,
18,
81,
67,
4285,
10291,
13,
3639,
288,
1850,
1024,
18,
81,
67,
4285,
10291,
273,
1542,
31,
1850,
1542,
18,
81,
67,
4285,
10291,
273,
446,
31,
368,
2537,
358,
6599,
518,
4183,
18,
1850,
898,
31,
3639,
289,
3639,
949,
9904,
31,
3639,
1024,
273,
1024,
18,
81,
67,
4285,
10291,
31,
1377,
289,
565,
289,
565,
309,
12,
2011,
480,
1542,
18,
17994,
10756,
565,
288,
1377,
312,
67,
13188,
8218,
18,
458,
12,
3202,
18,
17994,
9334,
1542,
1769,
565,
289,
565,
309,
12,
2011,
480,
1542,
18,
588,
2060,
10756,
565,
288,
1377,
5589,
2064,
273,
1542,
18,
588,
2060,
7675,
588,
2326,
1046,
7957,
5621,
1377,
309,
12,
2011,
480,
2064,
13,
1377,
288,
3639,
509,
290,
9432,
273,
2064,
18,
1467,
5621,
3639,
364,
12,
474,
533,
1016,
273,
374,
31,
533,
1016,
411,
290,
9432,
31,
533,
1016,
27245,
3639,
288,
1850,
514,
1018,
273,
261,
780,
13,
10219,
18,
2956,
861,
12,
1080,
1016,
1769,
1850,
1033,
394,
2060,
22834,
273,
394,
4639,
3234,
22,
12,
3202,
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,
282,
1071,
918,
21334,
12,
7498,
2283,
1542,
13,
225,
288,
565,
509,
949,
273,
374,
31,
565,
309,
12,
2011,
422,
312,
67,
3645,
2283,
13,
565,
288,
1377,
312,
67,
3645,
2283,
273,
1542,
31,
565,
289,
565,
469,
565,
288,
1377,
10223,
2283,
1046,
1024,
273,
312,
67,
3645,
2283,
31,
1377,
1323,
12,
2011,
480,
1024,
13,
1377,
288,
3639,
309,
12,
2011,
422,
1024,
18,
81,
67,
4285,
10291,
13,
3639,
288,
1850,
1024,
18,
81,
67,
4285,
10291,
273,
1542,
31,
1850,
1542,
18,
81,
67,
4285,
10291,
273,
446,
31,
368,
2537,
358,
6599,
518,
4183,
18,
1850,
898,
31,
3639,
289,
3639,
949,
9904,
31,
3639,
1024,
273,
1024,
18,
81,
2
] |
|
void writeLineToContent(PdfLine line, PdfContentByte text, PdfContentByte graphics, Object currentValues[]) throws DocumentException { PdfFont currentFont = (PdfFont)(currentValues[0]); float lastBaseFactor = ((Float)(currentValues[1])).floatValue(); PdfChunk chunk; int numberOfSpaces; int lineLen; boolean isJustified; float hangingCorrection = 0; numberOfSpaces = line.numberOfSpaces(); lineLen = line.toString().length(); // does the line need to be justified? isJustified = line.hasToBeJustified() && (numberOfSpaces != 0 || lineLen > 1); if (isJustified) { if (line.isNewlineSplit() && line.widthLeft() >= (lastBaseFactor * (ratio * numberOfSpaces + lineLen - 1))) { text.setWordSpacing(ratio * lastBaseFactor); text.setCharacterSpacing(lastBaseFactor); } else { float width = line.widthLeft(); PdfChunk last = line.getChunk(line.size() - 1); if (last != null) { String s = last.toString(); char c; if (s.length() > 0 && hangingPunctuation.indexOf((c = s.charAt(s.length() - 1))) >= 0) { float oldWidth = width; width += last.font().width(c) * 0.4f; hangingCorrection = width - oldWidth; } } float baseFactor = width / (ratio * numberOfSpaces + lineLen - 1); text.setWordSpacing(ratio * baseFactor); text.setCharacterSpacing(baseFactor); lastBaseFactor = baseFactor; } } int lastChunkStroke = line.getLastStrokeChunk(); int chunkStrokeIdx = 0; float xMarker = text.getXTLM(); float baseXMarker = xMarker; float yMarker = text.getYTLM(); boolean imageWasPresent = false; // looping over all the chunks in 1 line for (Iterator j = line.iterator(); j.hasNext(); ) { chunk = (PdfChunk) j.next(); if (chunk.font().compareTo(currentFont) != 0) { currentFont = chunk.font(); text.setFontAndSize(currentFont.getFont(), currentFont.size()); } Color color = chunk.color(); float rise = 0; Float fr = (Float)chunk.getAttribute(Chunk.SUBSUPSCRIPT); if (fr != null) rise = fr.floatValue(); if (color != null) text.setRGBColorFill(color.getRed(), color.getGreen(), color.getBlue()); if (rise != 0) text.setTextRise(rise); if (chunk.isImage()) { imageWasPresent = true; } // If it is a CJK chunk we will have to simulate the // space adjustment. else if (isJustified && numberOfSpaces > 0 && chunk.isCJKEncoding()) { String s = chunk.toString(); int idx = s.indexOf(' '); if (idx < 0) text.showText(chunk); else { float spaceCorrection = - ratio * lastBaseFactor * 1000f / chunk.font.size(); PdfTextArray textArray = new PdfTextArray(new PdfString(s.substring(0, idx), chunk.getEncoding())); int lastIdx = idx; while ((idx = s.indexOf(' ', lastIdx + 1)) >= 0) { textArray.add(new PdfNumber(spaceCorrection)); textArray.add(new PdfString(s.substring(lastIdx, idx), chunk.getEncoding())); lastIdx = idx; } textArray.add(new PdfNumber(spaceCorrection)); textArray.add(new PdfString(s.substring(lastIdx), chunk.getEncoding())); text.showText(textArray); } } else text.showText(chunk); if (rise != 0) text.setTextRise(0); if (color != null) text.resetRGBColorFill(); if (chunkStrokeIdx <= lastChunkStroke) { boolean isStroked = (chunk.isAttribute(Chunk.STRIKETHRU) || chunk.isAttribute(Chunk.UNDERLINE)); float width; float endSpacing = 0; if (isJustified) { width = chunk.getWidthCorrected(lastBaseFactor, ratio * lastBaseFactor); } else width = chunk.width(); if (chunk.isStroked()) { PdfChunk nextChunk = line.getChunk(chunkStrokeIdx + 1); if (isStroked) { graphics.setLineWidth(chunk.font().size() / 15); if (color != null) graphics.setRGBColorStroke(color.getRed(), color.getGreen(), color.getBlue()); } float shift = chunk.font().size() / 3; if (chunk.isAttribute(Chunk.STRIKETHRU)) { float subtract = lastBaseFactor; if (nextChunk != null && nextChunk.isAttribute(Chunk.STRIKETHRU)) subtract = 0; if (nextChunk == null) subtract += hangingCorrection; graphics.moveTo(xMarker, yMarker + shift); graphics.lineTo(xMarker + width - subtract, yMarker + shift); graphics.stroke(); } if (chunk.isAttribute(Chunk.UNDERLINE)) { float subtract = lastBaseFactor; if (nextChunk != null && nextChunk.isAttribute(Chunk.UNDERLINE)) subtract = 0; if (nextChunk == null) subtract += hangingCorrection; graphics.moveTo(xMarker, yMarker - shift); graphics.lineTo(xMarker + width - subtract, yMarker - shift); graphics.stroke(); } if (chunk.isAttribute(Chunk.LINK)) { float subtract = lastBaseFactor; if (nextChunk != null && nextChunk.isAttribute(Chunk.LINK)) subtract = 0; if (nextChunk == null) subtract += hangingCorrection; annotations.add(new PdfAnnotation(xMarker, yMarker, xMarker + width - subtract, yMarker + chunk.font().size(), (PdfAction)chunk.getAttribute(Chunk.LINK))); } if (chunk.isAttribute(Chunk.REMOTEGOTO)) { float subtract = lastBaseFactor; if (nextChunk != null && nextChunk.isAttribute(Chunk.REMOTEGOTO)) subtract = 0; if (nextChunk == null) subtract += hangingCorrection; Object obj[] = (Object[])chunk.getAttribute(Chunk.REMOTEGOTO); String filename = (String)obj[0]; if (obj[1] instanceof String) remoteGoto(filename, (String)obj[1], xMarker, yMarker, xMarker + width - subtract, yMarker + chunk.font().size()); else remoteGoto(filename, ((Integer)obj[1]).intValue(), xMarker, yMarker, xMarker + width - subtract, yMarker + chunk.font().size()); } if (chunk.isAttribute(Chunk.LOCALGOTO)) { float subtract = lastBaseFactor; if (nextChunk != null && nextChunk.isAttribute(Chunk.LOCALGOTO)) subtract = 0; if (nextChunk == null) subtract += hangingCorrection; localGoto((String)chunk.getAttribute(Chunk.LOCALGOTO), xMarker, yMarker, xMarker + width - subtract, yMarker + chunk.font().size()); } if (chunk.isAttribute(Chunk.LOCALDESTINATION)) { float subtract = lastBaseFactor; if (nextChunk != null && nextChunk.isAttribute(Chunk.LOCALDESTINATION)) subtract = 0; if (nextChunk == null) subtract += hangingCorrection; localDestination((String)chunk.getAttribute(Chunk.LOCALDESTINATION), new PdfDestination(PdfDestination.XYZ, xMarker, yMarker + chunk.font().size(), 0)); } if (chunk.isAttribute(Chunk.GENERICTAG)) { float subtract = lastBaseFactor; if (nextChunk != null && nextChunk.isAttribute(Chunk.GENERICTAG)) subtract = 0; if (nextChunk == null) subtract += hangingCorrection; Rectangle rect = new Rectangle(xMarker, yMarker, xMarker + width - subtract, yMarker + chunk.font().size()); PdfPageEvent pev = writer.getPageEvent(); if (pev != null) pev.onGenericTag(writer, this, rect, (String)chunk.getAttribute(Chunk.GENERICTAG)); } if (chunk.isImage()) { Image image = chunk.getImage(); float matrix[] = image.matrix(); matrix[Image.CX] = xMarker + chunk.getImageOffsetX() - matrix[Image.CX]; matrix[Image.CY] = yMarker + chunk.getImageOffsetY() - matrix[Image.CY]; graphics.addImage(image, matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]); text.setTextMatrix(xMarker + lastBaseFactor + image.scaledWidth(), yMarker); } if (isStroked) { graphics.setLineWidth(chunk.font().size() / 15); if (color != null) graphics.resetRGBColorStroke(); } } xMarker += width; ++chunkStrokeIdx; } } if (isJustified) { text.setWordSpacing(0); text.setCharacterSpacing(0); } if (imageWasPresent) text.setTextMatrix(baseXMarker, yMarker); currentValues[0] = currentFont; currentValues[1] = new Float(lastBaseFactor); }
|
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/57f3b7461acee82684c0e028473d49bed56a6b35/PdfDocument.java/clean/itext/src/com/lowagie/text/pdf/PdfDocument.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
18360,
774,
1350,
12,
18562,
1670,
980,
16,
9989,
1350,
3216,
977,
16,
9989,
1350,
3216,
17313,
16,
1033,
783,
1972,
63,
5717,
225,
1216,
4319,
503,
288,
3639,
9989,
5711,
783,
5711,
273,
261,
18562,
5711,
21433,
2972,
1972,
63,
20,
19226,
3639,
1431,
1142,
2171,
6837,
273,
14015,
4723,
21433,
2972,
1972,
63,
21,
5717,
2934,
5659,
620,
5621,
3639,
9989,
5579,
2441,
31,
3639,
509,
7922,
12077,
31,
3639,
509,
980,
2891,
31,
3639,
1250,
353,
19642,
939,
31,
3639,
1431,
366,
18183,
20884,
273,
374,
31,
7734,
7922,
12077,
273,
980,
18,
2696,
951,
12077,
5621,
3639,
980,
2891,
273,
980,
18,
10492,
7675,
2469,
5621,
3639,
368,
1552,
326,
980,
1608,
358,
506,
2537,
939,
35,
3639,
353,
19642,
939,
273,
980,
18,
5332,
15360,
19642,
939,
1435,
597,
261,
2696,
951,
12077,
480,
374,
747,
980,
2891,
405,
404,
1769,
3639,
309,
261,
291,
19642,
939,
13,
288,
5411,
309,
261,
1369,
18,
291,
26754,
5521,
1435,
597,
980,
18,
2819,
3910,
1435,
1545,
261,
2722,
2171,
6837,
380,
261,
9847,
380,
7922,
12077,
397,
980,
2891,
300,
404,
20349,
288,
7734,
977,
18,
542,
3944,
18006,
12,
9847,
380,
1142,
2171,
6837,
1769,
7734,
977,
18,
542,
7069,
18006,
12,
2722,
2171,
6837,
1769,
5411,
289,
5411,
469,
288,
7734,
1431,
1835,
273,
980,
18,
2819,
3910,
5621,
7734,
9989,
5579,
1142,
273,
980,
18,
588,
5579,
12,
1369,
18,
1467,
1435,
300,
404,
1769,
7734,
309,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
18360,
774,
1350,
12,
18562,
1670,
980,
16,
9989,
1350,
3216,
977,
16,
9989,
1350,
3216,
17313,
16,
1033,
783,
1972,
63,
5717,
225,
1216,
4319,
503,
288,
3639,
9989,
5711,
783,
5711,
273,
261,
18562,
5711,
21433,
2972,
1972,
63,
20,
19226,
3639,
1431,
1142,
2171,
6837,
273,
14015,
4723,
21433,
2972,
1972,
63,
21,
5717,
2934,
5659,
620,
5621,
3639,
9989,
5579,
2441,
31,
3639,
509,
7922,
12077,
31,
3639,
509,
980,
2891,
31,
3639,
1250,
353,
19642,
939,
31,
3639,
1431,
366,
18183,
20884,
273,
374,
31,
7734,
7922,
12077,
273,
980,
18,
2696,
951,
12077,
5621,
3639,
980,
2891,
273,
980,
18,
10492,
7675,
2469,
5621,
3639,
368,
1552,
326,
980,
1608,
358,
2
] |
||
if (testProject == null) { IWorkspace workspace = ResourcesPlugin.getWorkspace(); testProject = workspace.getRoot().getProject("AdaptedTestProject"); testProject.create(null); testProject.open(null); } }
|
if (testProject == null) { IWorkspace workspace = ResourcesPlugin.getWorkspace(); testProject = workspace.getRoot().getProject("AdaptedTestProject"); testProject.create(null); testProject.open(null); } }
|
protected void createTestProject() throws CoreException { if (testProject == null) { IWorkspace workspace = ResourcesPlugin.getWorkspace(); testProject = workspace.getRoot().getProject("AdaptedTestProject"); testProject.create(null); testProject.open(null); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/7946b6460d44217ceadf6c1b4e0462e195d53d80/AdaptableDecoratorTestCase.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/adaptable/AdaptableDecoratorTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
4709,
4109,
1435,
1216,
30015,
288,
3639,
309,
261,
3813,
4109,
422,
446,
13,
288,
5411,
467,
8241,
6003,
273,
8128,
3773,
18,
588,
8241,
5621,
5411,
1842,
4109,
273,
6003,
18,
588,
2375,
7675,
588,
4109,
2932,
13716,
329,
4709,
4109,
8863,
5411,
1842,
4109,
18,
2640,
12,
2011,
1769,
5411,
1842,
4109,
18,
3190,
12,
2011,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
752,
4709,
4109,
1435,
1216,
30015,
288,
3639,
309,
261,
3813,
4109,
422,
446,
13,
288,
5411,
467,
8241,
6003,
273,
8128,
3773,
18,
588,
8241,
5621,
5411,
1842,
4109,
273,
6003,
18,
588,
2375,
7675,
588,
4109,
2932,
13716,
329,
4709,
4109,
8863,
5411,
1842,
4109,
18,
2640,
12,
2011,
1769,
5411,
1842,
4109,
18,
3190,
12,
2011,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
.setModifiedStatus(true);
|
.getMartBuilder().showStackTrace(t);
|
public void run() { // Recalculate the schema diagram this key appears // in, as // the table components will have changed size, and // some // relations may have disappeared. SchemaTabSet.this.recalculateSchemaDiagram(key .getTable().getSchema()); // The same may have happened in the all-schemas // diagram if // this key had any external relations, or belonged // to a // table which had external relations on some other // key. SchemaTabSet.this.recalculateOverviewDiagram(); // This may have caused new dimensions or subclass // tables to // appear in datasets referring to tables in this // schema, so // we need to recalculate all dataset // org.biomart.builder.view.gui.diagrams just // in case. SchemaTabSet.this.martTab.getDataSetTabSet() .recalculateAllDataSetDiagrams(); // Set the dataset tabset status to modified. SchemaTabSet.this.martTab.getMartTabSet() .setModifiedStatus(true); }
|
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/c76d481210454f27e1173655b5a81de5e759e689/SchemaTabSet.java/clean/src/java/org/biomart/builder/view/gui/SchemaTabSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
9944,
202,
482,
918,
1086,
1435,
288,
6862,
1082,
202,
759,
868,
11162,
326,
1963,
19750,
333,
498,
14606,
6862,
1082,
202,
759,
316,
16,
487,
6862,
1082,
202,
759,
326,
1014,
4085,
903,
1240,
3550,
963,
16,
471,
6862,
1082,
202,
759,
2690,
6862,
1082,
202,
759,
7467,
2026,
1240,
1015,
438,
347,
2258,
18,
6862,
1082,
202,
3078,
5661,
694,
18,
2211,
18,
266,
11162,
3078,
14058,
1940,
12,
856,
6862,
6862,
202,
18,
588,
1388,
7675,
588,
3078,
10663,
6862,
1082,
202,
759,
1021,
1967,
2026,
1240,
17497,
316,
326,
777,
17,
17928,
6862,
1082,
202,
759,
19750,
309,
6862,
1082,
202,
759,
333,
498,
9323,
1281,
3903,
7467,
16,
578,
10957,
329,
6862,
1082,
202,
759,
358,
279,
6862,
1082,
202,
759,
1014,
1492,
9323,
3903,
7467,
603,
2690,
1308,
6862,
1082,
202,
759,
498,
18,
6862,
1082,
202,
3078,
5661,
694,
18,
2211,
18,
266,
11162,
26648,
14058,
1940,
5621,
6862,
1082,
202,
759,
1220,
2026,
1240,
15848,
394,
5769,
578,
10177,
6862,
1082,
202,
759,
4606,
358,
6862,
1082,
202,
759,
9788,
316,
11109,
1278,
20245,
358,
4606,
316,
333,
6862,
1082,
202,
759,
1963,
16,
1427,
6862,
1082,
202,
759,
732,
1608,
358,
26657,
777,
3709,
6862,
1082,
202,
759,
2358,
18,
13266,
362,
485,
18,
9574,
18,
1945,
18,
20292,
18,
12264,
31454,
2537,
6862,
1082,
202,
759,
316,
648,
18,
6862,
1082,
202,
3078,
5661,
694,
18,
2211,
18,
81,
485,
5661,
18,
588,
13676,
5661,
694,
1435,
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,
9944,
202,
482,
918,
1086,
1435,
288,
6862,
1082,
202,
759,
868,
11162,
326,
1963,
19750,
333,
498,
14606,
6862,
1082,
202,
759,
316,
16,
487,
6862,
1082,
202,
759,
326,
1014,
4085,
903,
1240,
3550,
963,
16,
471,
6862,
1082,
202,
759,
2690,
6862,
1082,
202,
759,
7467,
2026,
1240,
1015,
438,
347,
2258,
18,
6862,
1082,
202,
3078,
5661,
694,
18,
2211,
18,
266,
11162,
3078,
14058,
1940,
12,
856,
6862,
6862,
202,
18,
588,
1388,
7675,
588,
3078,
10663,
6862,
1082,
202,
759,
1021,
1967,
2026,
1240,
17497,
316,
326,
777,
17,
17928,
6862,
1082,
202,
759,
19750,
309,
6862,
1082,
202,
759,
333,
498,
9323,
1281,
3903,
7467,
16,
578,
10957,
329,
6862,
1082,
202,
2
] |
} else {
|
} else {
|
protected RecordFormat getRecordFormat(UMOEndpointURI endpointUri) throws Exception { String recordDescriptor = (String) endpointUri.getParams().get(DQConnector.RECORD_DESCRIPTOR_PROPERTY); if (recordDescriptor == null) { if (connector.getFormat() == null) { throw new IllegalArgumentException("Property " + DQConnector.RECORD_DESCRIPTOR_PROPERTY + " must be set on the endpoint"); } else { if (logger.isDebugEnabled()) { logger.debug("Defaulting to connector format: " + connector.getRecordFormat()); } return connector.getFormat(); } } if (logger.isDebugEnabled()) { logger.debug("Using endpoint-specific format: " + connector.getRecordFormat()); } return DQMessageUtils.getRecordFormat(recordDescriptor, connector.getSystem()); }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/0632c01e1930bb5d0e32626047c1db796c95a60f/DQMessageDispatcher.java/clean/providers/dq/src/java/org/mule/providers/dq/DQMessageDispatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5059,
1630,
11674,
1630,
12,
2799,
51,
3293,
3098,
2494,
3006,
13,
1216,
1185,
565,
288,
3639,
514,
1409,
3187,
273,
261,
780,
13,
2494,
3006,
18,
588,
1370,
7675,
588,
12,
40,
53,
7487,
18,
22261,
67,
1639,
27689,
67,
9900,
1769,
3639,
309,
261,
3366,
3187,
422,
446,
13,
288,
5411,
309,
261,
23159,
18,
588,
1630,
1435,
422,
446,
13,
288,
7734,
604,
394,
2754,
2932,
1396,
315,
397,
463,
53,
7487,
18,
22261,
67,
1639,
27689,
67,
9900,
13491,
397,
315,
1297,
506,
444,
603,
326,
2494,
8863,
5411,
289,
469,
288,
7734,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
10792,
1194,
18,
4148,
2932,
1868,
310,
358,
8703,
740,
30,
315,
397,
8703,
18,
588,
2115,
1630,
10663,
7734,
289,
7734,
327,
8703,
18,
588,
1630,
5621,
5411,
289,
3639,
289,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
7736,
2494,
17,
12524,
740,
30,
315,
397,
8703,
18,
588,
2115,
1630,
10663,
3639,
289,
3639,
327,
463,
53,
1079,
1989,
18,
588,
2115,
1630,
12,
3366,
3187,
16,
8703,
18,
588,
3163,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5059,
1630,
11674,
1630,
12,
2799,
51,
3293,
3098,
2494,
3006,
13,
1216,
1185,
565,
288,
3639,
514,
1409,
3187,
273,
261,
780,
13,
2494,
3006,
18,
588,
1370,
7675,
588,
12,
40,
53,
7487,
18,
22261,
67,
1639,
27689,
67,
9900,
1769,
3639,
309,
261,
3366,
3187,
422,
446,
13,
288,
5411,
309,
261,
23159,
18,
588,
1630,
1435,
422,
446,
13,
288,
7734,
604,
394,
2754,
2932,
1396,
315,
397,
463,
53,
7487,
18,
22261,
67,
1639,
27689,
67,
9900,
13491,
397,
315,
1297,
506,
444,
603,
326,
2494,
8863,
5411,
289,
469,
288,
7734,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
10792,
1194,
18,
4148,
2932,
1868,
310,
358,
8703,
740,
30,
2
] |
super(); this.type = type; this.value = value; }
|
super(); this.type = type; this.value = value; }
|
public Token(int type, String value) { super(); this.type = type; this.value = value; }
|
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/04bd484f2b9d7bbbdfd2dcd0536120f4fd8e5b12/SessionSettings.java/clean/src/quickfix/SessionSettings.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
3155,
12,
474,
618,
16,
514,
460,
13,
288,
9506,
202,
9565,
5621,
9506,
202,
2211,
18,
723,
273,
618,
31,
9506,
202,
2211,
18,
1132,
273,
460,
31,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1875,
202,
482,
3155,
12,
474,
618,
16,
514,
460,
13,
288,
9506,
202,
9565,
5621,
9506,
202,
2211,
18,
723,
273,
618,
31,
9506,
202,
2211,
18,
1132,
273,
460,
31,
1082,
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
] |
log.error("Exception in convertPageAttributes: " + e.getMessage() + "- page attributes ignored"); attrib=new RtfAttributes();
|
log.error("Exception in convertPageAttributes: " + e.getMessage() + "- page attributes ignored"); attrib = new RtfAttributes();
|
static RtfAttributes convertPageAttributes(PropertyList props, PropertyList defProps) { RtfAttributes attrib = null; try { Property p; if (defProps != null) { attrib = convertPageAttributes(defProps, null); } else { attrib = new RtfAttributes(); } if ((p = props.get("page-width")) != null) { Float f = new Float(p.getLength().getValue() / 1000f); attrib.set(RtfPage.PAGE_WIDTH, (int)FoUnitsConverter.getInstance().convertToTwips(f.toString() + "pt")); } if ((p = props.get("page-height")) != null) { Float f = new Float(p.getLength().getValue() / 1000f); attrib.set(RtfPage.PAGE_HEIGHT, (int)FoUnitsConverter.getInstance().convertToTwips(f.toString() + "pt")); } if ((p = props.get("margin-top")) != null) { Float f = new Float(p.getLength().getValue() / 1000f); attrib.set(RtfPage.MARGIN_TOP, (int)FoUnitsConverter.getInstance().convertToTwips(f.toString() + "pt")); } if ((p = props.get("margin-bottom")) != null) { Float f = new Float(p.getLength().getValue() / 1000f); attrib.set(RtfPage.MARGIN_BOTTOM, (int)FoUnitsConverter.getInstance().convertToTwips(f.toString() + "pt")); } if ((p = props.get("margin-left")) != null) { Float f = new Float(p.getLength().getValue() / 1000f); attrib.set(RtfPage.MARGIN_LEFT, (int)FoUnitsConverter.getInstance().convertToTwips(f.toString() + "pt")); } if ((p = props.get("margin-right")) != null) { Float f = new Float(p.getLength().getValue() / 1000f); attrib.set(RtfPage.MARGIN_RIGHT, (int)FoUnitsConverter.getInstance().convertToTwips(f.toString() + "pt")); } } catch (FOPException e) { log.error("Exception in convertPageAttributes: " + e.getMessage() + "- page attributes ignored"); attrib=new RtfAttributes(); } return attrib; }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/549cb124e2f9301a409e0eaf1c37b7002cd2b838/PageAttributesConverter.java/buggy/src/java/org/apache/fop/render/rtf/PageAttributesConverter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
24958,
2498,
1765,
1964,
2498,
12,
1396,
682,
3458,
16,
4276,
682,
1652,
5047,
13,
288,
3639,
24958,
2498,
5885,
273,
446,
31,
3639,
775,
288,
5411,
4276,
293,
31,
5411,
309,
261,
536,
5047,
480,
446,
13,
288,
7734,
5885,
273,
1765,
1964,
2498,
12,
536,
5047,
16,
446,
1769,
5411,
289,
469,
288,
7734,
5885,
273,
394,
24958,
2498,
5621,
5411,
289,
5411,
309,
14015,
84,
273,
3458,
18,
588,
2932,
2433,
17,
2819,
6,
3719,
480,
446,
13,
288,
7734,
5450,
284,
273,
394,
5450,
12,
84,
18,
588,
1782,
7675,
24805,
1435,
342,
4336,
74,
1769,
7734,
5885,
18,
542,
12,
54,
6632,
1964,
18,
11219,
67,
10023,
16,
10792,
261,
474,
13,
42,
83,
7537,
5072,
18,
588,
1442,
7675,
6283,
774,
23539,
7146,
12,
74,
18,
10492,
1435,
397,
315,
337,
7923,
1769,
5411,
289,
5411,
309,
14015,
84,
273,
3458,
18,
588,
2932,
2433,
17,
4210,
6,
3719,
480,
446,
13,
288,
7734,
5450,
284,
273,
394,
5450,
12,
84,
18,
588,
1782,
7675,
24805,
1435,
342,
4336,
74,
1769,
7734,
5885,
18,
542,
12,
54,
6632,
1964,
18,
11219,
67,
14595,
16,
10792,
261,
474,
13,
42,
83,
7537,
5072,
18,
588,
1442,
7675,
6283,
774,
23539,
7146,
12,
74,
18,
10492,
1435,
397,
315,
337,
7923,
1769,
5411,
289,
5411,
309,
14015,
84,
273,
3458,
18,
588,
2932,
10107,
17,
3669,
6,
3719,
480,
446,
13,
288,
7734,
5450,
284,
273,
394,
5450,
12,
84,
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,
760,
24958,
2498,
1765,
1964,
2498,
12,
1396,
682,
3458,
16,
4276,
682,
1652,
5047,
13,
288,
3639,
24958,
2498,
5885,
273,
446,
31,
3639,
775,
288,
5411,
4276,
293,
31,
5411,
309,
261,
536,
5047,
480,
446,
13,
288,
7734,
5885,
273,
1765,
1964,
2498,
12,
536,
5047,
16,
446,
1769,
5411,
289,
469,
288,
7734,
5885,
273,
394,
24958,
2498,
5621,
5411,
289,
5411,
309,
14015,
84,
273,
3458,
18,
588,
2932,
2433,
17,
2819,
6,
3719,
480,
446,
13,
288,
7734,
5450,
284,
273,
394,
5450,
12,
84,
18,
588,
1782,
7675,
24805,
1435,
342,
4336,
74,
1769,
7734,
5885,
18,
542,
12,
54,
6632,
1964,
18,
11219,
67,
10023,
16,
10792,
261,
474,
13,
2
] |
return (XSNotationDecl)fGlobalNotationDecls.get(declName);
|
return(XSNotationDecl)fGlobalNotationDecls.get(declName);
|
public final XSNotationDecl getNotationDecl(String declName) { return (XSNotationDecl)fGlobalNotationDecls.get(declName); }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/4b01142cc37cb03a4b40a1d07569328af4773755/SchemaGrammar.java/buggy/src/org/apache/xerces/impl/v2/SchemaGrammar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1139,
55,
14818,
3456,
336,
14818,
3456,
12,
780,
3496,
461,
13,
288,
3639,
327,
12,
60,
55,
14818,
3456,
13,
74,
5160,
14818,
1799,
3251,
18,
588,
12,
8840,
461,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1139,
55,
14818,
3456,
336,
14818,
3456,
12,
780,
3496,
461,
13,
288,
3639,
327,
12,
60,
55,
14818,
3456,
13,
74,
5160,
14818,
1799,
3251,
18,
588,
12,
8840,
461,
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
] |
assertEquals("[janvier, fvrier, mars, avril, mai, juin," + " juillet, aot, septembre, octobre, novembre, dcembre, ]",
|
assertEquals("[janvier, f" + I18nTest.EA + "vrier, mars, avril, mai, juin," + " juillet, ao" + I18nTest.UC + "t, septembre, octobre, novembre, d" + I18nTest.EA + "cembre, ]",
|
public void testFrenchLocale() { Format.FormatLocale fr = Format.createLocale(Locale.FRANCE); assertEquals("#,##0.00 ", fr.currencyFormat); assertEquals("", fr.currencySymbol); assertEquals("/", fr.dateSeparator); assertEquals( "[, dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi]", Arrays.asList(fr.daysOfWeekLong).toString()); assertEquals( "[, dim., lun., mar., mer., jeu., ven., sam.]", Arrays.asList(fr.daysOfWeekShort).toString()); assertEquals("[janvier, fvrier, mars, avril, mai, juin," + " juillet, aot, septembre, octobre, novembre, dcembre, ]", Arrays.asList(fr.monthsLong).toString()); assertEquals("[janv., fvr., mars, avr., mai, juin," + " juil., aot, sept., oct., nov., dc., ]", Arrays.asList(fr.monthsShort).toString()); assertEquals(',', fr.decimalPlaceholder); assertEquals('\u00a0', fr.thousandSeparator); assertEquals(":", fr.timeSeparator); }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/83c522a99f23ccf743863e707a3c3c86b40fe531/FormatTest.java/clean/testsrc/main/mondrian/util/FormatTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
42,
26728,
3916,
1435,
288,
3639,
4077,
18,
1630,
3916,
3812,
273,
4077,
18,
2640,
3916,
12,
3916,
18,
9981,
4722,
1769,
3639,
1815,
8867,
2932,
7,
16,
1189,
20,
18,
713,
3104,
3812,
18,
7095,
1630,
1769,
3639,
1815,
8867,
2932,
3113,
3812,
18,
7095,
5335,
1769,
3639,
1815,
8867,
2932,
19,
3113,
3812,
18,
712,
6581,
1769,
3639,
1815,
8867,
12,
5411,
5158,
16,
2464,
304,
18706,
16,
328,
1074,
77,
16,
312,
1060,
77,
16,
4045,
20610,
77,
16,
30356,
1100,
77,
16,
331,
409,
1118,
77,
16,
272,
2808,
77,
65,
3113,
5411,
5647,
18,
345,
682,
12,
4840,
18,
9810,
12250,
3708,
2934,
10492,
10663,
3639,
1815,
8867,
12,
5411,
5158,
16,
2464,
12990,
26769,
12990,
21282,
12990,
4045,
12990,
30356,
89,
12990,
331,
275,
12990,
16260,
18,
65,
3113,
5411,
5647,
18,
345,
682,
12,
4840,
18,
9810,
12250,
4897,
2934,
10492,
10663,
3639,
1815,
8867,
2932,
63,
78,
304,
522,
264,
16,
10097,
10342,
16,
312,
5913,
16,
1712,
86,
330,
16,
312,
10658,
16,
31259,
267,
10837,
397,
5411,
315,
31259,
737,
278,
16,
279,
352,
16,
695,
337,
351,
6073,
16,
10844,
947,
266,
16,
1158,
90,
351,
6073,
16,
302,
311,
1627,
266,
16,
308,
3113,
5411,
5647,
18,
345,
682,
12,
4840,
18,
27584,
3708,
2934,
10492,
10663,
3639,
1815,
8867,
2932,
63,
78,
304,
90,
12990,
10097,
86,
12990,
312,
5913,
16,
1712,
86,
12990,
312,
10658,
16,
31259,
267,
10837,
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,
42,
26728,
3916,
1435,
288,
3639,
4077,
18,
1630,
3916,
3812,
273,
4077,
18,
2640,
3916,
12,
3916,
18,
9981,
4722,
1769,
3639,
1815,
8867,
2932,
7,
16,
1189,
20,
18,
713,
3104,
3812,
18,
7095,
1630,
1769,
3639,
1815,
8867,
2932,
3113,
3812,
18,
7095,
5335,
1769,
3639,
1815,
8867,
2932,
19,
3113,
3812,
18,
712,
6581,
1769,
3639,
1815,
8867,
12,
5411,
5158,
16,
2464,
304,
18706,
16,
328,
1074,
77,
16,
312,
1060,
77,
16,
4045,
20610,
77,
16,
30356,
1100,
77,
16,
331,
409,
1118,
77,
16,
272,
2808,
77,
65,
3113,
5411,
5647,
18,
345,
682,
12,
4840,
18,
9810,
12250,
3708,
2934,
10492,
10663,
3639,
1815,
8867,
12,
5411,
2
] |
if (pos > 2 && re.charAt(pos - 2) == '(' && re.charAt(pos - 1) == '?') {
|
if (pos > 2 && re.charAt(pos - 2) == '(' && re.charAt(pos - 1) == '?') {
|
public String unextend(String re) { boolean inClass = false; int len = re.length(); StringBuffer sbuf = new StringBuffer(len); int pos = 0; char c; while (pos < len) { c = re.charAt(pos); if (c == '\\' && ++pos < len) { sbuf.append('\\').append(re.charAt(pos)); } else if (c == '[' && ++pos < len) { sbuf.append(c); inClass = true; if ((c = re.charAt(pos)) == ']') { sbuf.append(c); } } else if (c == ']') { sbuf.append(c); inClass = false; } else if (c == '#') { if (pos > 2 && re.charAt(pos - 2) == '(' && re.charAt(pos - 1) == '?') { sbuf.append(c); } else { pos++; for (; pos < len && re.charAt(pos) != '\n' && re.charAt(pos) != '\r'; pos++); } } else if (inClass || !Character.isWhitespace(c)) { sbuf.append(c); } pos++; } return sbuf.toString(); }
|
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/c5da2c6076b449b5de3adb26549527bf497ec10c/IRegexpAdapter.java/buggy/src/org/jruby/runtime/regexp/IRegexpAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
640,
14313,
12,
780,
283,
13,
288,
3639,
1250,
316,
797,
273,
629,
31,
3639,
509,
562,
273,
283,
18,
2469,
5621,
3639,
6674,
2393,
696,
273,
394,
6674,
12,
1897,
1769,
3639,
509,
949,
273,
374,
31,
3639,
1149,
276,
31,
3639,
1323,
261,
917,
411,
562,
13,
288,
5411,
276,
273,
283,
18,
3001,
861,
12,
917,
1769,
5411,
309,
261,
71,
422,
5282,
597,
965,
917,
411,
562,
13,
288,
7734,
2393,
696,
18,
6923,
2668,
10471,
2934,
6923,
12,
266,
18,
3001,
861,
12,
917,
10019,
5411,
289,
469,
309,
261,
71,
422,
8375,
597,
965,
917,
411,
562,
13,
288,
7734,
2393,
696,
18,
6923,
12,
71,
1769,
7734,
316,
797,
273,
638,
31,
7734,
309,
14015,
71,
273,
283,
18,
3001,
861,
12,
917,
3719,
422,
8641,
13,
288,
10792,
2393,
696,
18,
6923,
12,
71,
1769,
7734,
289,
5411,
289,
469,
309,
261,
71,
422,
8641,
13,
288,
7734,
2393,
696,
18,
6923,
12,
71,
1769,
7734,
316,
797,
273,
629,
31,
5411,
289,
469,
309,
261,
71,
422,
2946,
6134,
288,
7734,
309,
261,
917,
405,
576,
10792,
597,
283,
18,
3001,
861,
12,
917,
300,
576,
13,
422,
7321,
10792,
597,
283,
18,
3001,
861,
12,
917,
300,
404,
13,
422,
6787,
13,
288,
10792,
2393,
696,
18,
6923,
12,
71,
1769,
7734,
289,
469,
288,
10792,
949,
9904,
31,
10792,
364,
261,
31,
13491,
949,
411,
562,
18701,
597,
283,
18,
3001,
861,
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,
514,
640,
14313,
12,
780,
283,
13,
288,
3639,
1250,
316,
797,
273,
629,
31,
3639,
509,
562,
273,
283,
18,
2469,
5621,
3639,
6674,
2393,
696,
273,
394,
6674,
12,
1897,
1769,
3639,
509,
949,
273,
374,
31,
3639,
1149,
276,
31,
3639,
1323,
261,
917,
411,
562,
13,
288,
5411,
276,
273,
283,
18,
3001,
861,
12,
917,
1769,
5411,
309,
261,
71,
422,
5282,
597,
965,
917,
411,
562,
13,
288,
7734,
2393,
696,
18,
6923,
2668,
10471,
2934,
6923,
12,
266,
18,
3001,
861,
12,
917,
10019,
5411,
289,
469,
309,
261,
71,
422,
8375,
597,
965,
917,
411,
562,
13,
288,
7734,
2393,
696,
18,
6923,
12,
71,
1769,
7734,
316,
797,
2
] |
mCustomUnitsField.setEnabled(enable_custom);
|
mCustomUnitsEditor.setEnabled(enable_custom);
|
public void setConfig(ConfigContext ctx, ConfigElement elt) { if ( elt.getDefinition().getToken().equals("position_transform_filter") ) { mContext = ctx; mElement = elt; PropertyDefinition prop_def = mElement.getDefinition().getPropertyDefinition("device_units"); Map dev_unit_map = prop_def.getEnums(); elt.addConfigElementListener(new ElementListener()); mSensorUnitsChooser = new PropertyEditorPanel(ctx, elt.getProperty("device_units", 0), elt.getDefinition().getPropertyDefinition("device_units"), elt, 0, Color.white); // Set up the custom units field. mCustomUnitsField.setText(elt.getProperty("custom_scale", 0).toString()); boolean enable_custom = ((Number) elt.getProperty("device_units", 0)).floatValue() == 0.0; mCustomUnitsField.setEnabled(enable_custom); mTrackerXPosField.setValue(elt.getProperty("pre_translate", 0)); mTrackerYPosField.setValue(elt.getProperty("pre_translate", 1)); mTrackerZPosField.setValue(elt.getProperty("pre_translate", 2)); double x_rot = ((Number) elt.getProperty("pre_rotation", 0)).doubleValue(); double y_rot = ((Number) elt.getProperty("pre_rotation", 1)).doubleValue(); double z_rot = ((Number) elt.getProperty("pre_rotation", 2)).doubleValue(); mTrackerXRotSpinner.setValue(new Double(x_rot)); mTrackerYRotSpinner.setValue(new Double(y_rot)); mTrackerZRotSpinner.setValue(new Double(z_rot)); // This is slow, but I don't think that there is a better way to do // it. int i; for ( i = 0; i < mCoordFrames.length; ++i ) { if ( mCoordFrames[i].getXRot() == x_rot && mCoordFrames[i].getYRot() == y_rot && mCoordFrames[i].getZRot() == z_rot ) { mTrackerCoordChooser.setSelectedIndex(i); break; } } System.out.println("[TrackerTransformPanel.setConfig()] i == " + i); System.out.println("[TrackerTransformPanel.setConfig()] mCoordFrames.length == " + mCoordFrames.length); // If the search through mCoordFrames turned up no match, then we // will enable the manual rotation editing just to be friendly. if ( i == mCoordFrames.length ) { mTrackerManualRotButton.setSelected(true); } try { jbInit(); } catch(Exception ex) { ex.printStackTrace(); } // The change listener should be added after the spinners are fully // set up. mTrackerXRotSpinner.addChangeListener(this); mTrackerYRotSpinner.addChangeListener(this); mTrackerZRotSpinner.addChangeListener(this); } else { throw new IllegalArgumentException("Cannot handle config element " + "of type '" + elt.getDefinition().getToken() + "'"); } }
|
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/020c421e82dddaec4050dafdcc51328460d240e3/TransmitterTransformPanel.java/buggy/modules/vrjuggler/vrjconfig/commoneditors/org/vrjuggler/vrjconfig/commoneditors/TransmitterTransformPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
15517,
12,
809,
1042,
1103,
16,
1903,
1046,
11572,
13,
282,
288,
1377,
309,
261,
11572,
18,
588,
1852,
7675,
588,
1345,
7675,
14963,
2932,
3276,
67,
6547,
67,
2188,
7923,
262,
1377,
288,
540,
312,
1042,
273,
1103,
31,
540,
312,
1046,
273,
11572,
31,
540,
4276,
1852,
2270,
67,
536,
273,
5411,
312,
1046,
18,
588,
1852,
7675,
588,
1396,
1852,
2932,
5964,
67,
7705,
8863,
540,
1635,
4461,
67,
4873,
67,
1458,
273,
2270,
67,
536,
18,
588,
3572,
87,
5621,
540,
11572,
18,
1289,
809,
1046,
2223,
12,
2704,
3010,
2223,
10663,
540,
312,
22294,
7537,
17324,
273,
5411,
394,
4276,
6946,
5537,
12,
5900,
16,
11572,
18,
588,
1396,
2932,
5964,
67,
7705,
3113,
374,
3631,
4766,
565,
11572,
18,
588,
1852,
7675,
588,
1396,
1852,
2932,
5964,
67,
7705,
6,
3631,
4766,
565,
11572,
16,
374,
16,
5563,
18,
14739,
1769,
540,
368,
1000,
731,
326,
1679,
4971,
652,
18,
540,
312,
3802,
7537,
974,
18,
542,
1528,
12,
20224,
18,
588,
1396,
2932,
3662,
67,
5864,
3113,
374,
2934,
10492,
10663,
540,
1250,
4237,
67,
3662,
273,
5411,
14015,
1854,
13,
11572,
18,
588,
1396,
2932,
5964,
67,
7705,
3113,
374,
13,
2934,
5659,
620,
1435,
422,
374,
18,
20,
31,
540,
312,
3802,
7537,
6946,
18,
542,
1526,
12,
7589,
67,
3662,
1769,
540,
312,
8135,
60,
1616,
974,
18,
542,
620,
12,
20224,
18,
588,
1396,
2932,
1484,
67,
13929,
3113,
374,
10019,
540,
312,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
15517,
12,
809,
1042,
1103,
16,
1903,
1046,
11572,
13,
282,
288,
1377,
309,
261,
11572,
18,
588,
1852,
7675,
588,
1345,
7675,
14963,
2932,
3276,
67,
6547,
67,
2188,
7923,
262,
1377,
288,
540,
312,
1042,
273,
1103,
31,
540,
312,
1046,
273,
11572,
31,
540,
4276,
1852,
2270,
67,
536,
273,
5411,
312,
1046,
18,
588,
1852,
7675,
588,
1396,
1852,
2932,
5964,
67,
7705,
8863,
540,
1635,
4461,
67,
4873,
67,
1458,
273,
2270,
67,
536,
18,
588,
3572,
87,
5621,
540,
11572,
18,
1289,
809,
1046,
2223,
12,
2704,
3010,
2223,
10663,
540,
312,
22294,
7537,
17324,
273,
5411,
394,
4276,
6946,
5537,
12,
5900,
16,
11572,
18,
588,
1396,
2932,
5964,
2
] |
PreferenceManager.getClientPreferences().setLastPlayerName(name);
|
PreferenceManager.getClientPreferences().setLastPlayerName(playerName);
|
public void actionPerformed(ActionEvent e) { if (!e.getActionCommand().equals("cancel")) { //$NON-NLS-1$ try { name = yourNameF.getText(); serverAddr = serverAddrF.getText(); port = Integer.decode(portF.getText().trim()).intValue(); } catch (NumberFormatException ex) { System.err.println(ex.getMessage()); } // update settings PreferenceManager.getClientPreferences().setLastPlayerName(name); PreferenceManager.getClientPreferences().setLastConnectAddr(serverAddr); PreferenceManager.getClientPreferences().setLastConnectPort(port); } setVisible(false); }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/3e2c07c4b3a334f50ff43404d895908863bcff1e/MegaMekGUI.java/buggy/megamek/src/megamek/client/ui/swing/MegaMekGUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
309,
16051,
73,
18,
588,
1803,
2189,
7675,
14963,
2932,
10996,
6,
3719,
288,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
775,
288,
7734,
508,
273,
3433,
461,
42,
18,
588,
1528,
5621,
7734,
1438,
3178,
273,
1438,
3178,
42,
18,
588,
1528,
5621,
7734,
1756,
273,
2144,
18,
3922,
12,
655,
42,
18,
588,
1528,
7675,
5290,
1435,
2934,
474,
620,
5621,
5411,
289,
1044,
261,
1854,
9291,
431,
13,
288,
7734,
2332,
18,
370,
18,
8222,
12,
338,
18,
24906,
10663,
5411,
289,
5411,
368,
1089,
1947,
5411,
29125,
1318,
18,
588,
1227,
12377,
7675,
542,
3024,
12148,
461,
12,
14872,
461,
1769,
5411,
29125,
1318,
18,
588,
1227,
12377,
7675,
542,
3024,
5215,
3178,
12,
3567,
3178,
1769,
5411,
29125,
1318,
18,
588,
1227,
12377,
7675,
542,
3024,
5215,
2617,
12,
655,
1769,
3639,
289,
3639,
16697,
12,
5743,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
309,
16051,
73,
18,
588,
1803,
2189,
7675,
14963,
2932,
10996,
6,
3719,
288,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
775,
288,
7734,
508,
273,
3433,
461,
42,
18,
588,
1528,
5621,
7734,
1438,
3178,
273,
1438,
3178,
42,
18,
588,
1528,
5621,
7734,
1756,
273,
2144,
18,
3922,
12,
655,
42,
18,
588,
1528,
7675,
5290,
1435,
2934,
474,
620,
5621,
5411,
289,
1044,
261,
1854,
9291,
431,
13,
288,
7734,
2332,
18,
370,
18,
8222,
12,
338,
18,
24906,
10663,
5411,
289,
5411,
368,
1089,
1947,
5411,
29125,
1318,
18,
588,
1227,
12377,
7675,
542,
3024,
12148,
461,
12,
14872,
461,
1769,
5411,
29125,
2
] |
public void defineMethod(String name, Arity arity, String java_name) { assert name != null; assert arity != null; assert java_name != null; Visibility visibility = name.equals("initialize") ? Visibility.PRIVATE : Visibility.PUBLIC; addMethod(name, new ReflectedMethod(this, builtinClass, java_name, arity, visibility));
|
public void defineMethod(String name, Arity arity) { defineMethod(name, arity, name);
|
public void defineMethod(String name, Arity arity, String java_name) { assert name != null; assert arity != null; assert java_name != null; Visibility visibility = name.equals("initialize") ? Visibility.PRIVATE : Visibility.PUBLIC; addMethod(name, new ReflectedMethod(this, builtinClass, java_name, arity, visibility)); }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/a1b8fc1d456e3d5c6e01579b88773383068aa85c/AbstractMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/AbstractMetaClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4426,
1305,
12,
780,
508,
16,
1201,
560,
19353,
16,
514,
2252,
67,
529,
13,
288,
202,
202,
11231,
508,
480,
446,
31,
202,
202,
11231,
19353,
480,
446,
31,
202,
202,
11231,
2252,
67,
529,
480,
446,
31,
202,
202,
10135,
9478,
273,
508,
18,
14963,
2932,
11160,
7923,
692,
27791,
18,
20055,
9506,
202,
30,
27791,
18,
14939,
31,
202,
202,
1289,
1305,
12,
529,
16,
394,
17906,
329,
1305,
12,
2211,
16,
15273,
797,
16,
2252,
67,
529,
16,
9506,
202,
20498,
16,
9478,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4426,
1305,
12,
780,
508,
16,
1201,
560,
19353,
16,
514,
2252,
67,
529,
13,
288,
202,
202,
11231,
508,
480,
446,
31,
202,
202,
11231,
19353,
480,
446,
31,
202,
202,
11231,
2252,
67,
529,
480,
446,
31,
202,
202,
10135,
9478,
273,
508,
18,
14963,
2932,
11160,
7923,
692,
27791,
18,
20055,
9506,
202,
30,
27791,
18,
14939,
31,
202,
202,
1289,
1305,
12,
529,
16,
394,
17906,
329,
1305,
12,
2211,
16,
15273,
797,
16,
2252,
67,
529,
16,
9506,
202,
20498,
16,
9478,
10019,
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
] |
public void removeGroup(GroupInfo group) { }
|
public void removeGroup(GroupInfo group) { }
|
private FinishedJobs() { listener = new IJobProgressManagerListener() { public void addJob(JobInfo info) { checkForDuplicates(info); } public void addGroup(GroupInfo info) { checkForDuplicates(info); } public void refreshJobInfo(JobInfo info) { checkTasks(info); } public void refreshGroup(GroupInfo info) { } public void refreshAll() { } public void removeJob(JobInfo info) { if (keep(info)) { checkForDuplicates(info); add(info); } } public void removeGroup(GroupInfo group) { } public boolean showsDebug() { return false; } }; ProgressManager.getInstance().addListener(listener); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/61a3852dd97cae660315c88e82302cd4c0301d5d/FinishedJobs.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/FinishedJobs.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
29745,
7276,
1435,
288,
3639,
2991,
273,
394,
467,
2278,
5491,
1318,
2223,
1435,
288,
5411,
1071,
918,
527,
2278,
12,
2278,
966,
1123,
13,
288,
7734,
13855,
23897,
12,
1376,
1769,
5411,
289,
5411,
1071,
918,
18899,
12,
1114,
966,
1123,
13,
288,
7734,
13855,
23897,
12,
1376,
1769,
5411,
289,
5411,
1071,
918,
4460,
2278,
966,
12,
2278,
966,
1123,
13,
288,
7734,
866,
6685,
12,
1376,
1769,
5411,
289,
5411,
1071,
918,
4460,
1114,
12,
1114,
966,
1123,
13,
288,
5411,
289,
5411,
1071,
918,
4460,
1595,
1435,
288,
5411,
289,
5411,
1071,
918,
1206,
2278,
12,
2278,
966,
1123,
13,
288,
7734,
309,
261,
10102,
12,
1376,
3719,
288,
10792,
13855,
23897,
12,
1376,
1769,
10792,
527,
12,
1376,
1769,
7734,
289,
5411,
289,
5411,
1071,
918,
1206,
1114,
12,
1114,
966,
1041,
13,
288,
5411,
289,
5411,
1071,
1250,
17975,
2829,
1435,
288,
7734,
327,
629,
31,
5411,
289,
3639,
289,
31,
3639,
10980,
1318,
18,
588,
1442,
7675,
1289,
2223,
12,
12757,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
29745,
7276,
1435,
288,
3639,
2991,
273,
394,
467,
2278,
5491,
1318,
2223,
1435,
288,
5411,
1071,
918,
527,
2278,
12,
2278,
966,
1123,
13,
288,
7734,
13855,
23897,
12,
1376,
1769,
5411,
289,
5411,
1071,
918,
18899,
12,
1114,
966,
1123,
13,
288,
7734,
13855,
23897,
12,
1376,
1769,
5411,
289,
5411,
1071,
918,
4460,
2278,
966,
12,
2278,
966,
1123,
13,
288,
7734,
866,
6685,
12,
1376,
1769,
5411,
289,
5411,
1071,
918,
4460,
1114,
12,
1114,
966,
1123,
13,
288,
5411,
289,
5411,
1071,
918,
4460,
1595,
1435,
288,
5411,
289,
5411,
1071,
918,
1206,
2278,
12,
2278,
966,
1123,
13,
288,
7734,
309,
261,
10102,
12,
1376,
3719,
288,
10792,
13855,
23897,
12,
2
] |
return getButton(IDialogConstants.CANCEL_ID); }
|
return getButton(IDialogConstants.CANCEL_ID); }
|
protected Button getCancelButton() { return getButton(IDialogConstants.CANCEL_ID); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/428d5c79264b25bd2a774407a6202b1bb1e628e5/Dialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
12569,
12006,
2183,
3616,
1435,
288,
3639,
327,
2882,
2644,
12,
734,
3529,
2918,
18,
25268,
67,
734,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
12569,
12006,
2183,
3616,
1435,
288,
3639,
327,
2882,
2644,
12,
734,
3529,
2918,
18,
25268,
67,
734,
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
] |
List<OpenDefinitionsDocument> docs = _model.getDefinitionsDocuments();
|
List<OpenDefinitionsDocument> docs = _model.getOpenDefinitionsDocuments();
|
public void run() { hideDebugger(); _removeThreadLocationHighlight(); // Ensure all doc breakpoints are gone List<OpenDefinitionsDocument> docs = _model.getDefinitionsDocuments(); for (OpenDefinitionsDocument doc: docs) { doc.removeFromDebugger(); } }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/1b9869851f567b7b6474eabaac96584b4771f5f3/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
1850,
6853,
24113,
5621,
1850,
389,
4479,
3830,
2735,
16205,
5621,
1850,
368,
7693,
777,
997,
23416,
854,
22296,
1850,
987,
32,
3678,
7130,
2519,
34,
3270,
273,
389,
2284,
18,
588,
3678,
7130,
12922,
5621,
1850,
364,
261,
3678,
7130,
2519,
997,
30,
3270,
13,
288,
997,
18,
4479,
1265,
24113,
5621,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
1850,
6853,
24113,
5621,
1850,
389,
4479,
3830,
2735,
16205,
5621,
1850,
368,
7693,
777,
997,
23416,
854,
22296,
1850,
987,
32,
3678,
7130,
2519,
34,
3270,
273,
389,
2284,
18,
588,
3678,
7130,
12922,
5621,
1850,
364,
261,
3678,
7130,
2519,
997,
30,
3270,
13,
288,
997,
18,
4479,
1265,
24113,
5621,
289,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( request instanceof KoLAdventure || (request instanceof KoLRequest && !((KoLRequest)request).isDelayExempt()) )
|
if ( request instanceof KoLAdventure || !(request instanceof KoLRequest) || !((KoLRequest)request).isDelayExempt() )
|
private static void execute( Runnable request, int repeatCount ) { if ( KoLmafia.refusesContinue() ) return; if ( request == null ) return; KoLmafia.forceContinue(); Request runner = new Request( request, repeatCount ); try { if ( request instanceof KoLAdventure || (request instanceof KoLRequest && !((KoLRequest)request).isDelayExempt()) ) { pendingRequests.add( runner ); if ( isRunningRequest ) return; if ( SwingUtilities.isEventDispatchThread() ) Worker.post( queueHandler ); else queueHandler.run(); } else { if ( SwingUtilities.isEventDispatchThread() ) ConcurrentWorker.post( runner ); else runner.run(); } } catch ( Exception e ) { StaticEntity.printStackTrace( e ); } }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/12845cb142669852827a7660f580e66521094759/RequestThread.java/clean/src/net/sourceforge/kolmafia/RequestThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1836,
12,
10254,
590,
16,
509,
7666,
1380,
262,
202,
95,
202,
202,
430,
261,
1475,
83,
48,
81,
1727,
1155,
18,
1734,
6117,
12378,
1435,
262,
1082,
202,
2463,
31,
202,
202,
430,
261,
590,
422,
446,
262,
1082,
202,
2463,
31,
202,
202,
47,
83,
48,
81,
1727,
1155,
18,
5734,
12378,
5621,
202,
202,
691,
8419,
273,
394,
1567,
12,
590,
16,
7666,
1380,
11272,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
261,
590,
1276,
1475,
83,
48,
1871,
616,
594,
747,
261,
2293,
1276,
1475,
83,
48,
691,
597,
401,
12443,
47,
83,
48,
691,
13,
2293,
2934,
291,
6763,
424,
5744,
10756,
262,
1082,
202,
95,
9506,
202,
9561,
6421,
18,
1289,
12,
8419,
11272,
9506,
202,
430,
261,
19858,
691,
262,
6862,
202,
2463,
31,
9506,
202,
430,
261,
26145,
11864,
18,
291,
1133,
5325,
3830,
1435,
262,
6862,
202,
6671,
18,
2767,
12,
2389,
1503,
11272,
9506,
202,
12107,
6862,
202,
4000,
1503,
18,
2681,
5621,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
430,
261,
26145,
11864,
18,
291,
1133,
5325,
3830,
1435,
262,
6862,
202,
18521,
6671,
18,
2767,
12,
8419,
11272,
9506,
202,
12107,
6862,
202,
18156,
18,
2681,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
14683,
261,
1185,
425,
262,
202,
202,
95,
1082,
202,
5788,
1943,
18,
1188,
6332,
12,
425,
11272,
202,
202,
97,
202,
97,
2,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1836,
12,
10254,
590,
16,
509,
7666,
1380,
262,
202,
95,
202,
202,
430,
261,
1475,
83,
48,
81,
1727,
1155,
18,
1734,
6117,
12378,
1435,
262,
1082,
202,
2463,
31,
202,
202,
430,
261,
590,
422,
446,
262,
1082,
202,
2463,
31,
202,
202,
47,
83,
48,
81,
1727,
1155,
18,
5734,
12378,
5621,
202,
202,
691,
8419,
273,
394,
1567,
12,
590,
16,
7666,
1380,
11272,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
261,
590,
1276,
1475,
83,
48,
1871,
616,
594,
747,
261,
2293,
1276,
1475,
83,
48,
691,
597,
401,
12443,
47,
83,
48,
691,
13,
2293,
2934,
291,
6763,
424,
5744,
10756,
262,
1082,
202,
95,
9506,
2
] |
if (jj_scan_token(IDENTIFIER)) return true;
|
final private boolean jj_3R_86() { if (jj_scan_token(IDENTIFIER)) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3_19()) { jj_scanpos = xsp; break; } } return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/b068fe5a79db07a544f081402e946a51a0f553c2/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5292,
1435,
288,
4202,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
67,
3657,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5292,
1435,
288,
4202,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
67,
3657,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
Iterator targetIterator = buildElement.getChildren("target").iterator(); while (targetIterator.hasNext()) { Element targetElement = (Element) targetIterator.next(); if (targetElement.getAttributeValue("name").equals("init")) { assertTrue(true); } }
|
int initCount = getInitCount(buildElement); assertEquals(1, initCount);
|
public void testBuild() throws Exception { AntBuilder builder = new AntBuilder(); builder.setBuildFile("build.xml"); builder.setTarget("init"); HashMap buildProperties = new HashMap(); Element buildElement = builder.build(buildProperties); Iterator targetIterator = buildElement.getChildren("target").iterator(); while (targetIterator.hasNext()) { Element targetElement = (Element) targetIterator.next(); if (targetElement.getAttributeValue("name").equals("init")) { assertTrue(true); } } }
|
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/f6e911e410ca34575563ff65d085346cb2a477db/AntBuilderTest.java/buggy/main/test/net/sourceforge/cruisecontrol/builders/AntBuilderTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3116,
1435,
1216,
1185,
288,
3639,
18830,
1263,
2089,
273,
394,
18830,
1263,
5621,
3639,
2089,
18,
542,
3116,
812,
2932,
3510,
18,
2902,
8863,
3639,
2089,
18,
542,
2326,
2932,
2738,
8863,
3639,
4317,
1361,
2297,
273,
394,
4317,
5621,
3639,
3010,
1361,
1046,
273,
2089,
18,
3510,
12,
3510,
2297,
1769,
3639,
4498,
1018,
3198,
273,
1361,
1046,
18,
588,
4212,
2932,
3299,
20387,
9838,
5621,
3639,
1323,
261,
3299,
3198,
18,
5332,
2134,
10756,
288,
5411,
3010,
1018,
1046,
273,
261,
1046,
13,
1018,
3198,
18,
4285,
5621,
5411,
309,
261,
3299,
1046,
18,
588,
14942,
2932,
529,
20387,
14963,
2932,
2738,
6,
3719,
288,
7734,
1815,
5510,
12,
3767,
1769,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3116,
1435,
1216,
1185,
288,
3639,
18830,
1263,
2089,
273,
394,
18830,
1263,
5621,
3639,
2089,
18,
542,
3116,
812,
2932,
3510,
18,
2902,
8863,
3639,
2089,
18,
542,
2326,
2932,
2738,
8863,
3639,
4317,
1361,
2297,
273,
394,
4317,
5621,
3639,
3010,
1361,
1046,
273,
2089,
18,
3510,
12,
3510,
2297,
1769,
3639,
4498,
1018,
3198,
273,
1361,
1046,
18,
588,
4212,
2932,
3299,
20387,
9838,
5621,
3639,
1323,
261,
3299,
3198,
18,
5332,
2134,
10756,
288,
5411,
3010,
1018,
1046,
273,
261,
1046,
13,
1018,
3198,
18,
4285,
5621,
5411,
309,
261,
3299,
1046,
18,
588,
14942,
2932,
529,
20387,
14963,
2932,
2738,
6,
3719,
288,
7734,
1815,
5510,
12,
3767,
1769,
5411,
2
] |
c = ValueHandler.loadClass(className, codebase, null);
|
if( r < repository_ids.length-1 ) continue; else throw new org.omg.CORBA.MARSHAL ("No factory found for: " + repository_ids[0] );
|
private java.io.Serializable read_untyped_value (final String repository_id, final int index, final String codebase) { java.io.Serializable result; if (repository_id.equals("IDL:omg.org/CORBA/WStringValue:1.0")) // special handling of strings, according to spec result = read_wstring(); else if (repository_id.startsWith ("IDL:")) { org.omg.CORBA.portable.ValueFactory factory = ((org.omg.CORBA_2_3.ORB)orb).lookup_value_factory (repository_id); if (factory == null) throw new org.omg.CORBA.MARSHAL ("could not find value factory for " + repository_id); else { currentValueIndex = index; result = factory.read_value (this); } } else // RMI { // Load the value's class, using the context class loader // of the current thread if possible. Here's Francisco // Reverbel's <reverbel@ime.usp.br> explanation of why // this is needed in JBoss: // "It seems that ValueHandler.loadClass() uses the thread // context classloader only after it looks for other // classloaders in the call stack (weird). In some // situations (when EJBs are undeployed and then // redeployed) it finds in the call stack a classloader // used for an undeployed EJB. A value of class Foo is // then unmarshalled with type // classloaderOfEJB1:Foo, when the expected type is // classloaderOfEJB2:Foo. I am getting ClassCastExceptions is this // situation. // Explicitly using the thread context class loader in the // first place solves the problem." String className = org.jacorb.ir.RepositoryID.className (repository_id); Class c = null; ClassLoader ctxcl = Thread.currentThread().getContextClassLoader(); try { if (ctxcl != null) { try { c = ctxcl.loadClass(className); } catch (ClassNotFoundException cnfe) { c = ValueHandler.loadClass(className, codebase, null); } } else { c = ValueHandler.loadClass(className, codebase, null); } } catch (ClassNotFoundException e) { throw new org.omg.CORBA.MARSHAL ("class not found: " + className); } result = ValueHandler.readValue(this, index, c, repository_id, null); } valueMap.put (new Integer (index), result); return result; }
|
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/f25633d19b7861362f36c276c63853cf974f9a02/CDRInputStream.java/buggy/src/org/jacorb/orb/CDRInputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2252,
18,
1594,
18,
21682,
855,
67,
10032,
6140,
67,
1132,
261,
6385,
514,
3352,
67,
350,
16,
4766,
5397,
727,
509,
770,
16,
4766,
8227,
727,
514,
17574,
13,
565,
288,
3639,
2252,
18,
1594,
18,
21682,
563,
31,
3639,
309,
261,
9071,
67,
350,
18,
14963,
2932,
734,
48,
30,
362,
75,
18,
3341,
19,
9428,
12536,
19,
59,
19733,
30,
21,
18,
20,
6,
3719,
5411,
368,
4582,
5057,
434,
2064,
16,
4888,
358,
857,
6647,
563,
273,
855,
67,
91,
1080,
5621,
3639,
469,
309,
261,
9071,
67,
350,
18,
17514,
1190,
7566,
734,
48,
2773,
3719,
540,
288,
5411,
2358,
18,
362,
75,
18,
9428,
12536,
18,
655,
429,
18,
620,
1733,
3272,
273,
7734,
14015,
3341,
18,
362,
75,
18,
9428,
12536,
67,
22,
67,
23,
18,
916,
38,
13,
16640,
2934,
8664,
67,
1132,
67,
6848,
261,
9071,
67,
350,
1769,
5411,
309,
261,
6848,
422,
446,
13,
7734,
604,
394,
2358,
18,
362,
75,
18,
9428,
12536,
18,
19772,
2664,
1013,
5397,
7566,
15195,
486,
1104,
460,
3272,
364,
315,
397,
3352,
67,
350,
1769,
5411,
469,
5411,
288,
7734,
14794,
1016,
273,
770,
31,
7734,
563,
273,
3272,
18,
896,
67,
1132,
261,
2211,
1769,
5411,
289,
3639,
289,
3639,
469,
368,
534,
7492,
3639,
288,
5411,
368,
4444,
326,
460,
1807,
667,
16,
1450,
326,
819,
667,
4088,
5411,
368,
434,
326,
783,
2650,
309,
3323,
18,
225,
13743,
1807,
478,
2450,
71,
291,
2894,
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,
2252,
18,
1594,
18,
21682,
855,
67,
10032,
6140,
67,
1132,
261,
6385,
514,
3352,
67,
350,
16,
4766,
5397,
727,
509,
770,
16,
4766,
8227,
727,
514,
17574,
13,
565,
288,
3639,
2252,
18,
1594,
18,
21682,
563,
31,
3639,
309,
261,
9071,
67,
350,
18,
14963,
2932,
734,
48,
30,
362,
75,
18,
3341,
19,
9428,
12536,
19,
59,
19733,
30,
21,
18,
20,
6,
3719,
5411,
368,
4582,
5057,
434,
2064,
16,
4888,
358,
857,
6647,
563,
273,
855,
67,
91,
1080,
5621,
3639,
469,
309,
261,
9071,
67,
350,
18,
17514,
1190,
7566,
734,
48,
2773,
3719,
540,
288,
5411,
2358,
18,
362,
75,
18,
9428,
12536,
18,
655,
429,
18,
620,
1733,
2
] |
elements));
|
elements));
|
public void run() { decoratorManager.labelProviderChanged( new LabelProviderChangedEvent( decoratorManager, elements)); resultCache.clear(); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/36635d65957184bfdf9d15cd76bba782eb294001/DecorationScheduler.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/DecorationScheduler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
6862,
202,
19142,
1318,
18,
1925,
2249,
5033,
12,
25083,
202,
2704,
5287,
2249,
27553,
12,
6862,
1082,
202,
19142,
1318,
16,
6862,
1082,
202,
6274,
10019,
6862,
25083,
202,
2088,
1649,
18,
8507,
5621,
9506,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
6862,
202,
19142,
1318,
18,
1925,
2249,
5033,
12,
25083,
202,
2704,
5287,
2249,
27553,
12,
6862,
1082,
202,
19142,
1318,
16,
6862,
1082,
202,
6274,
10019,
6862,
25083,
202,
2088,
1649,
18,
8507,
5621,
9506,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
editor.doSave(null);
|
if (editor.isSaveAsAllowed() && editor.isDirty()) editor.doSave(null);
|
public void run() { if (!editor.getSite().getPage().isPartVisible(editor)) { return; } else { editor.doSave(null); // HACK: to avoid losing data editor.setInput(editor.getEditorInput()); // HACK: should be a better way }// ISourceViewer sourceViewer = editor.getViewer();// if (sourceViewer instanceof ProjectionViewer) {// ProjectionViewer pv = (ProjectionViewer) sourceViewer;// if (pv.canDoOperation(ProjectionViewer.TOGGLE)) pv.doOperation(ProjectionViewer.TOGGLE);// } }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/ffff4aa26d9d731c1c75045adc620de111500e9d/ActiveFoldingListener.java/buggy/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/java/ui/editor/ActiveFoldingListener.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
288,
5397,
309,
16051,
9177,
18,
588,
4956,
7675,
588,
1964,
7675,
291,
1988,
6207,
12,
9177,
3719,
288,
5397,
202,
2463,
31,
10792,
289,
469,
288,
5397,
202,
430,
261,
9177,
18,
291,
4755,
1463,
5042,
1435,
597,
4858,
18,
291,
10785,
10756,
4858,
18,
2896,
4755,
12,
2011,
1769,
368,
670,
3649,
30,
358,
4543,
437,
2470,
501,
5397,
202,
9177,
18,
542,
1210,
12,
9177,
18,
588,
6946,
1210,
10663,
368,
670,
3649,
30,
1410,
506,
279,
7844,
4031,
10792,
289,
759,
10792,
467,
1830,
18415,
1084,
18415,
273,
4858,
18,
588,
18415,
5621,
759,
10792,
309,
261,
3168,
18415,
1276,
21288,
18415,
13,
288,
759,
13491,
21288,
18415,
9770,
273,
261,
14789,
18415,
13,
1084,
18415,
31,
759,
13491,
309,
261,
25224,
18,
4169,
3244,
2988,
12,
14789,
18415,
18,
4296,
19491,
900,
3719,
9770,
18,
2896,
2988,
12,
14789,
18415,
18,
4296,
19491,
900,
1769,
759,
10792,
289,
1171,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
288,
5397,
309,
16051,
9177,
18,
588,
4956,
7675,
588,
1964,
7675,
291,
1988,
6207,
12,
9177,
3719,
288,
5397,
202,
2463,
31,
10792,
289,
469,
288,
5397,
202,
430,
261,
9177,
18,
291,
4755,
1463,
5042,
1435,
597,
4858,
18,
291,
10785,
10756,
4858,
18,
2896,
4755,
12,
2011,
1769,
368,
670,
3649,
30,
358,
4543,
437,
2470,
501,
5397,
202,
9177,
18,
542,
1210,
12,
9177,
18,
588,
6946,
1210,
10663,
368,
670,
3649,
30,
1410,
506,
279,
7844,
4031,
10792,
289,
759,
10792,
467,
1830,
18415,
1084,
18415,
273,
4858,
18,
588,
18415,
5621,
759,
10792,
309,
261,
3168,
18415,
1276,
21288,
18415,
13,
288,
759,
13491,
21288,
18415,
9770,
273,
2
] |
planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos);
|
planes .setScreenCharAndAttr(lastPos, (char) right, colorAttr, false); if (gui) { planes.setUseGUI(lastPos, GUI_RIGHT); } setDirty(lastPos);
|
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
|
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/caf3d80f5859ebce4d72dbe0ddd1d32b417462c4/Screen5250.java/clean/src/org/tn5250j/framework/tn5250/Screen5250.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
3829,
12,
474,
3598,
16,
509,
1835,
16,
509,
618,
16,
1250,
13238,
16,
1082,
202,
474,
6921,
83,
3843,
16,
509,
2036,
3843,
16,
509,
7493,
16,
509,
3854,
16,
509,
8896,
16,
509,
2002,
16,
1082,
202,
474,
2145,
16,
509,
6579,
16,
509,
5469,
16,
509,
12226,
13,
288,
202,
202,
474,
276,
273,
25440,
12,
2722,
1616,
1769,
202,
202,
474,
341,
273,
374,
31,
202,
202,
2819,
9904,
31,
202,
202,
91,
273,
1835,
31,
202,
202,
759,
444,
7676,
1566,
1160,
759,
202,
202,
9252,
63,
2722,
1616,
8009,
542,
2156,
1876,
3843,
12,
2738,
2156,
16,
1208,
3843,
16,
638,
1769,
202,
202,
7088,
281,
18,
542,
7956,
2156,
1876,
3843,
12,
2722,
1616,
16,
1208,
2156,
16,
1208,
3843,
16,
638,
1769,
202,
202,
542,
10785,
12,
2722,
1616,
1769,
202,
202,
361,
5882,
1616,
5621,
202,
202,
759,
444,
3854,
2002,
759,
202,
202,
9252,
63,
2722,
1616,
8009,
542,
2156,
1876,
3843,
12443,
3001,
13,
7493,
16,
2036,
3843,
16,
629,
1769,
202,
202,
7088,
281,
18,
542,
7956,
2156,
1876,
3843,
12,
2722,
1616,
16,
261,
3001,
13,
7493,
16,
2036,
3843,
16,
629,
1769,
202,
202,
430,
261,
20292,
13,
288,
759,
1082,
202,
9252,
63,
2722,
1616,
8009,
542,
3727,
43,
5370,
12,
31725,
67,
10066,
1769,
1082,
202,
7088,
281,
18,
542,
3727,
43,
5370,
12,
2722,
1616,
16,
29290,
67,
10066,
1769,
202,
202,
97,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
3829,
12,
474,
3598,
16,
509,
1835,
16,
509,
618,
16,
1250,
13238,
16,
1082,
202,
474,
6921,
83,
3843,
16,
509,
2036,
3843,
16,
509,
7493,
16,
509,
3854,
16,
509,
8896,
16,
509,
2002,
16,
1082,
202,
474,
2145,
16,
509,
6579,
16,
509,
5469,
16,
509,
12226,
13,
288,
202,
202,
474,
276,
273,
25440,
12,
2722,
1616,
1769,
202,
202,
474,
341,
273,
374,
31,
202,
202,
2819,
9904,
31,
202,
202,
91,
273,
1835,
31,
202,
202,
759,
444,
7676,
1566,
1160,
759,
202,
202,
9252,
63,
2722,
1616,
8009,
542,
2156,
1876,
3843,
12,
2738,
2156,
16,
1208,
3843,
16,
638,
1769,
202,
202,
7088,
281,
18,
542,
2
] |
"test.reader.TestAnnotations$Simple", Target.class
|
"test.TestAnnotations$Simple", Target.class
|
public void testClassAnn3() { Annotation annotation = Annotations.getAnnotation( "test.reader.TestAnnotations$Simple", Target.class ); Class type = annotation.annotationType(); assertEquals(TestAnnotations.Simple.class, type); TestAnnotations.Simple ann = (TestAnnotations.Simple)annotation; assertEquals("foo", ann.val()); assertEquals("bar", ann.s()); }
|
7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/af3675164f695f16f6edcb881d06c431bb8b196b/AnnotationReaderTest.java/clean/backport175/src/test/reader/test/reader/AnnotationReaderTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
797,
14694,
23,
1435,
288,
3639,
6090,
3204,
273,
14395,
18,
588,
3257,
12,
7734,
315,
3813,
18,
4709,
5655,
8,
5784,
3113,
5916,
18,
1106,
3639,
11272,
3639,
1659,
618,
273,
3204,
18,
11495,
559,
5621,
3639,
1815,
8867,
12,
4709,
5655,
18,
5784,
18,
1106,
16,
618,
1769,
3639,
7766,
5655,
18,
5784,
8226,
273,
261,
4709,
5655,
18,
5784,
13,
11495,
31,
3639,
1815,
8867,
2932,
11351,
3113,
8226,
18,
1125,
10663,
3639,
1815,
8867,
2932,
3215,
3113,
8226,
18,
87,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
797,
14694,
23,
1435,
288,
3639,
6090,
3204,
273,
14395,
18,
588,
3257,
12,
7734,
315,
3813,
18,
4709,
5655,
8,
5784,
3113,
5916,
18,
1106,
3639,
11272,
3639,
1659,
618,
273,
3204,
18,
11495,
559,
5621,
3639,
1815,
8867,
12,
4709,
5655,
18,
5784,
18,
1106,
16,
618,
1769,
3639,
7766,
5655,
18,
5784,
8226,
273,
261,
4709,
5655,
18,
5784,
13,
11495,
31,
3639,
1815,
8867,
2932,
11351,
3113,
8226,
18,
1125,
10663,
3639,
1815,
8867,
2932,
3215,
3113,
8226,
18,
87,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
xformsControls.rebuildCurrentControlsState(pipelineContext); currentControlsState.visitControlInfoFollowRepeats(pipelineContext, xformsControls, new XFormsControls.ControlInfoVisitorListener() { public void startVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) controlInfo; final String repeatId = repeatControlInfo.getOriginalId(); if (nestedRepeatIdsMap.get(repeatId) != null) { final List repeatNodeSet = xformsControls.getCurrentNodeset(); if (repeatNodeSet != null && repeatNodeSet.size() > 0) { int newIndex = repeatControlInfo.getStartIndex(); if (newIndex < 1) newIndex = 1; if (newIndex > repeatNodeSet.size()) newIndex = repeatNodeSet.size(); currentControlsState.updateRepeatIndex(repeatId, newIndex); } } } } public void endVisitControl(XFormsControls.ControlInfo controlInfo) { } });
|
adjustRepeatIndexes(pipelineContext, xformsControls, nestedRepeatIdsMap);
|
public static void executeSetindexAction(final PipelineContext pipelineContext, final XFormsContainingDocument containingDocument, final String repeatId, final String indexString) { if ("NaN".equals(indexString)) { // "If the index evaluates to NaN the action has no effect." } else { final XFormsControls xformsControls = containingDocument.getXFormsControls(); // Rebuild ControlsState if needed as we are going to make some changes if (xformsControls.getCurrentControlsState() == xformsControls.getInitialControlsState()) xformsControls.rebuildCurrentControlsState(pipelineContext); final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); final int index = Integer.parseInt(indexString); final Map repeatIdToRepeatControlInfo = currentControlsState.getRepeatIdToRepeatControlInfo(); final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) repeatIdToRepeatControlInfo.get(repeatId); if (index <= 0) { // "If the selected index is 0 or less, an xforms-scroll-first event is dispatched // and the index is set to 1." containingDocument.dispatchEvent(pipelineContext, new XFormsScrollFirstEvent(repeatControlInfo)); currentControlsState.updateRepeatIndex(repeatId, 1); } else { final List children = repeatControlInfo.getChildren(); if (children != null && index > children.size()) { // "If the selected index is greater than the index of the last repeat // item, an xforms-scroll-last event is dispatched and the index is set to // that of the last item." containingDocument.dispatchEvent(pipelineContext, new XFormsScrollLastEvent(repeatControlInfo)); currentControlsState.updateRepeatIndex(repeatId, children.size()); } else { // Otherwise just set the index currentControlsState.updateRepeatIndex(repeatId, index); } } // "The indexes for inner nested repeat collections are re-initialized to startindex." { // First step: set all children indexes to 0 final List nestedRepeatIds = currentControlsState.getNestedRepeatIds(xformsControls, repeatId); final Map nestedRepeatIdsMap = new HashMap(); if (nestedRepeatIds != null) { for (Iterator i = nestedRepeatIds.iterator(); i.hasNext();) { final String currentRepeatId = (String) i.next(); nestedRepeatIdsMap.put(currentRepeatId, ""); currentControlsState.updateRepeatIndex(currentRepeatId, 0); } } // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); // Second step: update non-empty repeat indexes to the appropriate value currentControlsState.visitControlInfoFollowRepeats(pipelineContext, xformsControls, new XFormsControls.ControlInfoVisitorListener() { public void startVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { // Found an xforms:repeat final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) controlInfo; final String repeatId = repeatControlInfo.getOriginalId(); if (nestedRepeatIdsMap.get(repeatId) != null) { // Found nested repeat id to update final List repeatNodeSet = xformsControls.getCurrentNodeset(); if (repeatNodeSet != null && repeatNodeSet.size() > 0) { int newIndex = repeatControlInfo.getStartIndex(); if (newIndex < 1) newIndex = 1; if (newIndex > repeatNodeSet.size()) newIndex = repeatNodeSet.size(); currentControlsState.updateRepeatIndex(repeatId, newIndex); } } } } public void endVisitControl(XFormsControls.ControlInfo controlInfo) { } }); } // Adjust controls ids that could have gone out of bounds adjustRepeatIndexes(pipelineContext, xformsControls); } // TODO: "The implementation data structures for tracking computational dependencies are // rebuilt or updated as a result of this action." for (Iterator i = containingDocument.getModels().iterator(); i.hasNext();) { XFormsModel currentModel = (XFormsModel) i.next(); currentModel.applyComputedExpressionBinds(pipelineContext); //containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(currentModel, true)); } }
|
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/fedf9c6e89ac7805c8f9d6c2e0a7c44094259d0f/XFormsActionInterpreter.java/buggy/src/java/org/orbeon/oxf/xforms/action/XFormsActionInterpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1836,
694,
1615,
1803,
12,
6385,
13671,
1042,
5873,
1042,
16,
727,
1139,
18529,
24344,
2519,
4191,
2519,
16,
727,
514,
7666,
548,
16,
727,
514,
770,
780,
13,
288,
3639,
309,
7566,
21172,
9654,
14963,
12,
1615,
780,
3719,
288,
5411,
368,
315,
2047,
326,
770,
20996,
358,
10180,
326,
1301,
711,
1158,
5426,
1199,
3639,
289,
469,
288,
5411,
727,
1139,
18529,
16795,
619,
9741,
16795,
273,
4191,
2519,
18,
588,
60,
18529,
16795,
5621,
5411,
368,
868,
3510,
8888,
87,
1119,
309,
3577,
487,
732,
854,
8554,
358,
1221,
2690,
3478,
5411,
309,
261,
92,
9741,
16795,
18,
588,
3935,
16795,
1119,
1435,
422,
619,
9741,
16795,
18,
588,
4435,
16795,
1119,
10756,
7734,
619,
9741,
16795,
18,
266,
3510,
3935,
16795,
1119,
12,
14511,
1042,
1769,
5411,
727,
1139,
18529,
16795,
18,
16795,
1119,
783,
16795,
1119,
273,
619,
9741,
16795,
18,
588,
3935,
16795,
1119,
5621,
5411,
727,
509,
770,
273,
2144,
18,
2670,
1702,
12,
1615,
780,
1769,
5411,
727,
1635,
7666,
28803,
16750,
3367,
966,
273,
783,
16795,
1119,
18,
588,
16750,
28803,
16750,
3367,
966,
5621,
5411,
727,
1139,
18529,
16795,
18,
16750,
3367,
966,
7666,
3367,
966,
273,
261,
60,
18529,
16795,
18,
16750,
3367,
966,
13,
7666,
28803,
16750,
3367,
966,
18,
588,
12,
9374,
548,
1769,
5411,
309,
261,
1615,
1648,
374,
13,
288,
7734,
368,
315,
2047,
326,
3170,
770,
353,
374,
578,
5242,
16,
392,
619,
9741,
17,
12033,
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,
377,
1071,
760,
918,
1836,
694,
1615,
1803,
12,
6385,
13671,
1042,
5873,
1042,
16,
727,
1139,
18529,
24344,
2519,
4191,
2519,
16,
727,
514,
7666,
548,
16,
727,
514,
770,
780,
13,
288,
3639,
309,
7566,
21172,
9654,
14963,
12,
1615,
780,
3719,
288,
5411,
368,
315,
2047,
326,
770,
20996,
358,
10180,
326,
1301,
711,
1158,
5426,
1199,
3639,
289,
469,
288,
5411,
727,
1139,
18529,
16795,
619,
9741,
16795,
273,
4191,
2519,
18,
588,
60,
18529,
16795,
5621,
5411,
368,
868,
3510,
8888,
87,
1119,
309,
3577,
487,
732,
854,
8554,
358,
1221,
2690,
3478,
5411,
309,
261,
92,
9741,
16795,
18,
588,
3935,
16795,
1119,
1435,
422,
619,
9741,
16795,
18,
588,
4435,
16795,
1119,
2
] |
log("<move todir=\""+srcDir+"\" overwrite=\""+replace+"\">",
|
log("<move todir=\"" + srcDir + "\" overwrite=\"" + replace + "\">",
|
public void execute() throws BuildException { // first off, make sure that we've got a from and to extension if (fromExtension == null || toExtension == null || srcDir == null) { throw new BuildException( "srcDir, fromExtension and toExtension " + "attributes must be set!" ); } log("DEPRECATED - The renameext task is deprecated. Use move instead.", Project.MSG_WARN); log("Replace this with:", Project.MSG_INFO); log("<move todir=\""+srcDir+"\" overwrite=\""+replace+"\">", Project.MSG_INFO); log(" <fileset dir=\""+srcDir+"\" />", Project.MSG_INFO); log(" <mapper type=\"glob\"", Project.MSG_INFO); log(" from=\"*"+fromExtension+"\"", Project.MSG_INFO); log(" to=\"*"+toExtension+"\" />", Project.MSG_INFO); log("</move>", Project.MSG_INFO); log("using the same patterns on <fileset> as you\'ve used here", Project.MSG_INFO); Move move = (Move)project.createTask("move"); move.setOwningTarget(target); move.setTaskName(getTaskName()); move.setLocation(getLocation()); move.setTodir(srcDir); move.setOverwrite(replace); fileset.setDir(srcDir); move.addFileset(fileset); Mapper me = move.createMapper(); me.setType(globType); me.setFrom("*"+fromExtension); me.setTo("*"+toExtension); move.execute(); }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/RenameExtensions.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/RenameExtensions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
368,
1122,
3397,
16,
1221,
3071,
716,
732,
8081,
2363,
279,
628,
471,
358,
2710,
3639,
309,
261,
2080,
3625,
422,
446,
747,
358,
3625,
422,
446,
747,
30585,
422,
446,
13,
288,
5411,
604,
394,
18463,
12,
315,
4816,
1621,
16,
628,
3625,
471,
358,
3625,
315,
397,
4766,
1377,
315,
4350,
1297,
506,
444,
4442,
11272,
3639,
289,
3639,
613,
2932,
17575,
300,
1021,
6472,
408,
1562,
353,
6849,
18,
225,
2672,
3635,
3560,
1199,
16,
5411,
5420,
18,
11210,
67,
27999,
1769,
3639,
613,
2932,
5729,
333,
598,
2773,
16,
5420,
18,
11210,
67,
5923,
1769,
3639,
613,
2932,
32,
8501,
358,
1214,
13186,
397,
30585,
397,
7023,
6156,
13186,
397,
1453,
397,
7023,
2984,
16,
2398,
5420,
18,
11210,
67,
5923,
1769,
3639,
613,
2932,
225,
411,
2354,
278,
1577,
13186,
15,
4816,
1621,
9078,
2412,
28505,
16,
5420,
18,
11210,
67,
5923,
1769,
3639,
613,
2932,
225,
411,
13919,
618,
5189,
10581,
2412,
3113,
5420,
18,
11210,
67,
5923,
1769,
3639,
613,
2932,
1850,
628,
5189,
7388,
15,
2080,
3625,
9078,
2412,
3113,
5420,
18,
11210,
67,
5923,
1769,
3639,
613,
2932,
1850,
358,
5189,
7388,
15,
869,
3625,
9078,
2412,
28505,
16,
5420,
18,
11210,
67,
5923,
1769,
3639,
613,
2932,
1757,
8501,
2984,
16,
5420,
18,
11210,
67,
5923,
1769,
3639,
613,
2932,
9940,
326,
1967,
6884,
603,
411,
2354,
278,
34,
487,
1846,
3730,
537,
1399,
2674,
3113,
2398,
5420,
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,
1435,
1216,
18463,
288,
3639,
368,
1122,
3397,
16,
1221,
3071,
716,
732,
8081,
2363,
279,
628,
471,
358,
2710,
3639,
309,
261,
2080,
3625,
422,
446,
747,
358,
3625,
422,
446,
747,
30585,
422,
446,
13,
288,
5411,
604,
394,
18463,
12,
315,
4816,
1621,
16,
628,
3625,
471,
358,
3625,
315,
397,
4766,
1377,
315,
4350,
1297,
506,
444,
4442,
11272,
3639,
289,
3639,
613,
2932,
17575,
300,
1021,
6472,
408,
1562,
353,
6849,
18,
225,
2672,
3635,
3560,
1199,
16,
5411,
5420,
18,
11210,
67,
27999,
1769,
3639,
613,
2932,
5729,
333,
598,
2773,
16,
5420,
18,
11210,
67,
5923,
1769,
3639,
613,
2932,
32,
8501,
358,
1214,
13186,
397,
30585,
397,
2
] |
return true;
|
public boolean createProject() { IProject newProject = getProjectHandle(); String projectTemplateID = this.getProjectTemplateID(); IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation( new WOProjectCreator( newProject, projectTemplateID, getLocationPath(), getImportPath())); try { getContainer().run(false, false, op); } catch (InvocationTargetException e) { WOLipsPlugin.handleException( getShell(), e.getTargetException(), null); return false; } catch (InterruptedException e) { //WOLipsUtils.handleException(getShell(), e, null); return false; } IResource fileToOpen = ProjectHelper.getProjectSourceFolder(newProject).getFile( new Path("Application.java")); if (fileToOpen != null) { elementToOpen = fileToOpen; } return true; }
|
47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/dfd92ce82129a5cfd776d51dadbf123d5138fd65/WOApplicationCreationPage.java/clean/src/wolips/java/org/objectstyle/wolips/wizards/WOApplicationCreationPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
752,
4109,
1435,
288,
202,
202,
45,
4109,
394,
4109,
273,
11080,
3259,
5621,
202,
202,
780,
1984,
2283,
734,
273,
333,
18,
588,
4109,
2283,
734,
5621,
202,
202,
45,
20013,
1190,
5491,
1061,
273,
1082,
202,
2704,
14396,
11047,
15608,
1776,
2988,
12,
9506,
202,
2704,
678,
51,
4109,
10636,
12,
6862,
202,
2704,
4109,
16,
6862,
202,
4406,
2283,
734,
16,
6862,
202,
588,
2735,
743,
9334,
6862,
202,
588,
5010,
743,
1435,
10019,
202,
202,
698,
288,
1082,
202,
588,
2170,
7675,
2681,
12,
5743,
16,
629,
16,
1061,
1769,
202,
202,
97,
1044,
261,
9267,
14950,
425,
13,
288,
1082,
202,
59,
1741,
7146,
3773,
18,
4110,
503,
12,
9506,
202,
588,
13220,
9334,
9506,
202,
73,
18,
588,
14950,
9334,
9506,
202,
2011,
1769,
1082,
202,
2463,
629,
31,
202,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
1082,
202,
759,
59,
1741,
7146,
1989,
18,
4110,
503,
12,
588,
13220,
9334,
425,
16,
446,
1769,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
45,
1420,
31044,
3678,
273,
1082,
202,
4109,
2276,
18,
588,
4109,
1830,
3899,
12,
2704,
4109,
2934,
29925,
12,
9506,
202,
2704,
2666,
2932,
3208,
18,
6290,
7923,
1769,
202,
202,
430,
261,
768,
774,
3678,
480,
446,
13,
288,
1082,
202,
2956,
774,
3678,
273,
31044,
3678,
31,
202,
202,
97,
202,
202,
2463,
638,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
752,
4109,
1435,
288,
202,
202,
45,
4109,
394,
4109,
273,
11080,
3259,
5621,
202,
202,
780,
1984,
2283,
734,
273,
333,
18,
588,
4109,
2283,
734,
5621,
202,
202,
45,
20013,
1190,
5491,
1061,
273,
1082,
202,
2704,
14396,
11047,
15608,
1776,
2988,
12,
9506,
202,
2704,
678,
51,
4109,
10636,
12,
6862,
202,
2704,
4109,
16,
6862,
202,
4406,
2283,
734,
16,
6862,
202,
588,
2735,
743,
9334,
6862,
202,
588,
5010,
743,
1435,
10019,
202,
202,
698,
288,
1082,
202,
588,
2170,
7675,
2681,
12,
5743,
16,
629,
16,
1061,
1769,
202,
202,
97,
1044,
261,
9267,
14950,
425,
13,
288,
1082,
202,
59,
1741,
7146,
3773,
18,
4110,
503,
12,
9506,
2
] |
|
destMapper = mapper.getImplementation();
|
destMapper = mapper;
|
public void execute() throws BuildException { //validation logic final boolean hasFileset = filesets.size() > 0; final boolean hasJar = jar != null; final boolean hasSignedJar = signedjar != null; final boolean hasDestDir = destDir != null; final boolean hasMapper = mapper != null; if (!hasJar && !hasFileset) { throw new BuildException(ERROR_NO_SOURCE); } if (null == alias) { throw new BuildException(ERROR_NO_ALIAS); } if (null == storepass) { throw new BuildException(ERROR_NO_STOREPASS); } if (hasDestDir && hasSignedJar) { throw new BuildException(ERROR_TODIR_AND_SIGNEDJAR); } if (hasFileset && hasSignedJar) { throw new BuildException(ERROR_SIGNEDJAR_AND_FILESETS); } //this isnt strictly needed, but by being fussy now, //we can change implementation details later if (!hasDestDir && hasMapper) { throw new BuildException(ERROR_MAPPER_WITHOUT_DEST); } //init processing logic; this is retained through our execution(s) redirector = createRedirector(); //special case single jar handling with signedjar attribute set if (hasJar && hasSignedJar) { // single jar processing signOneJar(jar, signedjar); //return here. return; } //the rest of the method treats single jar like //a nested fileset with one file if (hasJar) { //we create a fileset with the source file. //this lets us combine our logic for handling output directories, //mapping etc. FileSet sourceJar = new FileSet(); sourceJar.setFile(jar); sourceJar.setDir(jar.getParentFile()); addFileset(sourceJar); } //set up our mapping policy FileNameMapper destMapper; if (hasMapper) { destMapper = mapper.getImplementation(); } else { //no mapper? use the identity policy destMapper = new IdentityMapper(); } //at this point the filesets are set up with lists of files, //and the mapper is ready to map from source dirs to dest files //now we iterate through every JAR giving source and dest names // deal with the filesets for (int i = 0; i < filesets.size(); i++) { FileSet fs = (FileSet) filesets.elementAt(i); //get all included files in a fileset DirectoryScanner ds = fs.getDirectoryScanner(getProject()); String[] jarFiles = ds.getIncludedFiles(); File baseDir = fs.getDir(getProject()); //calculate our destination directory; it is either the destDir //attribute, or the base dir of the fileset (for in situ updates) File toDir = hasDestDir ? destDir : baseDir; //loop through all jars in the fileset for (int j = 0; j < jarFiles.length; j++) { String jarFile = jarFiles[j]; //determine the destination filename via the mapper String[] destFilenames = destMapper.mapFileName(jarFile); if (destFilenames == null || destFilenames.length != 1) { //we only like simple mappers. throw new BuildException(ERROR_BAD_MAP + jarFile); } File destFile = new File(toDir, destFilenames[0]); File jarSource = new File(baseDir, jarFile); signOneJar(jarSource, destFile); } } }
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/abf8e1ecce416dcab3188dc852413059d836648d/SignJar.java/clean/src/main/org/apache/tools/ant/taskdefs/SignJar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
368,
8685,
4058,
3639,
727,
1250,
711,
2697,
278,
273,
1390,
2413,
18,
1467,
1435,
405,
374,
31,
3639,
727,
1250,
711,
10813,
273,
7334,
480,
446,
31,
3639,
727,
1250,
711,
12294,
10813,
273,
6726,
11930,
480,
446,
31,
3639,
727,
1250,
711,
9378,
1621,
273,
26231,
480,
446,
31,
3639,
727,
1250,
711,
4597,
273,
5815,
480,
446,
31,
3639,
309,
16051,
5332,
10813,
597,
401,
5332,
2697,
278,
13,
288,
5411,
604,
394,
18463,
12,
3589,
67,
3417,
67,
6537,
1769,
3639,
289,
3639,
309,
261,
2011,
422,
2308,
13,
288,
5411,
604,
394,
18463,
12,
3589,
67,
3417,
67,
23784,
1769,
3639,
289,
3639,
309,
261,
2011,
422,
1707,
5466,
13,
288,
5411,
604,
394,
18463,
12,
3589,
67,
3417,
67,
13651,
10884,
1769,
3639,
289,
3639,
309,
261,
5332,
9378,
1621,
597,
711,
12294,
10813,
13,
288,
5411,
604,
394,
18463,
12,
3589,
67,
56,
1212,
7937,
67,
4307,
67,
21049,
46,
985,
1769,
3639,
289,
3639,
309,
261,
5332,
2697,
278,
597,
711,
12294,
10813,
13,
288,
5411,
604,
394,
18463,
12,
3589,
67,
21049,
46,
985,
67,
4307,
67,
3776,
28092,
1769,
3639,
289,
3639,
368,
2211,
353,
496,
23457,
3577,
16,
1496,
635,
3832,
284,
5567,
93,
2037,
16,
3639,
368,
1814,
848,
2549,
4471,
3189,
5137,
3639,
309,
16051,
5332,
9378,
1621,
597,
711,
4597,
13,
288,
5411,
604,
394,
18463,
12,
3589,
67,
8352,
3194,
67,
9147,
5069,
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,
1435,
1216,
18463,
288,
3639,
368,
8685,
4058,
3639,
727,
1250,
711,
2697,
278,
273,
1390,
2413,
18,
1467,
1435,
405,
374,
31,
3639,
727,
1250,
711,
10813,
273,
7334,
480,
446,
31,
3639,
727,
1250,
711,
12294,
10813,
273,
6726,
11930,
480,
446,
31,
3639,
727,
1250,
711,
9378,
1621,
273,
26231,
480,
446,
31,
3639,
727,
1250,
711,
4597,
273,
5815,
480,
446,
31,
3639,
309,
16051,
5332,
10813,
597,
401,
5332,
2697,
278,
13,
288,
5411,
604,
394,
18463,
12,
3589,
67,
3417,
67,
6537,
1769,
3639,
289,
3639,
309,
261,
2011,
422,
2308,
13,
288,
5411,
604,
394,
18463,
12,
3589,
67,
3417,
67,
23784,
1769,
3639,
289,
3639,
309,
261,
2
] |
assertTrue(((IASTDeclarationStatement) ((IASTCompoundStatement) ((IASTFunctionDefinition) parse( "void f() { int (*p) [2]; }", ParserLanguage.CPP).getDeclarations()[0]).getBody()).getStatements()[0]).getDeclaration() instanceof IASTSimpleDeclaration);
|
StringBuffer buffer = new StringBuffer(); buffer.append("void f() { \n"); buffer.append(" int ( *p ) [2]; \n"); buffer.append(" (&p)[0] = 1; \n"); buffer.append("} \n"); IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); CPPNameCollector col = new CPPNameCollector(); CPPVisitor.visitTranslationUnit(tu, col); assertEquals(col.size(), 3); IVariable p = (IVariable) col.getName(1).resolveBinding(); assertTrue(p.getType() instanceof IPointerType); assertTrue(((IPointerType) p.getType()).getType() instanceof IArrayType); IArrayType at = (IArrayType) ((IPointerType) p.getType()).getType(); assertTrue(at.getType() instanceof IBasicType); assertInstances(col, p, 2);
|
public void testBug84250() throws Exception { assertTrue(((IASTDeclarationStatement) ((IASTCompoundStatement) ((IASTFunctionDefinition) parse( "void f() { int (*p) [2]; }", ParserLanguage.CPP).getDeclarations()[0]).getBody()).getStatements()[0]).getDeclaration() instanceof IASTSimpleDeclaration); //$NON-NLS-1$ }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/675667f94dfe592e0ed1c2deb85620042cffcc1a/AST2CPPTests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
19865,
5193,
26520,
1435,
1216,
1185,
288,
1377,
1815,
5510,
12443,
12,
45,
9053,
6094,
3406,
13,
14015,
45,
9053,
16835,
3406,
13,
14015,
45,
9053,
2083,
1852,
13,
1109,
12,
5411,
315,
6459,
284,
1435,
288,
509,
261,
14,
84,
13,
306,
22,
15533,
289,
3113,
6783,
3779,
18,
4258,
52,
2934,
588,
21408,
1435,
63,
20,
65,
2934,
588,
2250,
1435,
2934,
588,
14663,
1435,
63,
20,
65,
2934,
588,
6094,
1435,
1276,
467,
9053,
5784,
6094,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
1071,
918,
1842,
19865,
5193,
26520,
1435,
1216,
1185,
288,
1377,
1815,
5510,
12443,
12,
45,
9053,
6094,
3406,
13,
14015,
45,
9053,
16835,
3406,
13,
14015,
45,
9053,
2083,
1852,
13,
1109,
12,
5411,
315,
6459,
284,
1435,
288,
509,
261,
14,
84,
13,
306,
22,
15533,
289,
3113,
6783,
3779,
18,
4258,
52,
2934,
588,
21408,
1435,
63,
20,
65,
2934,
588,
2250,
1435,
2934,
588,
14663,
1435,
63,
20,
65,
2934,
588,
6094,
1435,
1276,
467,
9053,
5784,
6094,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
result.append(key("editor.xmlcontent.optionalelement"));
|
result.append(key("editor.widget.optionalelement"));
|
protected String createDialogRowHtml(CmsWidgetDialogParameter base) { StringBuffer result = new StringBuffer(256); List sequence = (List)getParameters().get(base.getName()); int count = sequence.size(); // check if value is optional or multiple boolean addValue = false; if (count < base.getMaxOccurs()) { addValue = true; } boolean removeValue = false; if (count > base.getMinOccurs()) { removeValue = true; } // check if value is present boolean disabledElement = false; if (count < 1) { // no parameter with the value present, but also not optional: use base as parameter sequence = new ArrayList(); sequence.add(base); count = 1; if (base.getMinOccurs() == 0) { disabledElement = true; } } // loop through multiple elements for (int j = 0; j < count; j++) { // get the parameter and the widget CmsWidgetDialogParameter p = (CmsWidgetDialogParameter)sequence.get(j); I_CmsWidget widget = p.getWidget(); // check for an error in this row if (p.hasError()) { // show error message result.append("<tr><td></td><td><img src=\""); result.append(getSkinUri()).append("editors/xmlcontent/"); result.append("error.gif"); result.append("\" border=\"0\" alt=\"\"></td><td class=\"xmlTdError\">"); Throwable t = p.getError(); while (t != null) { result.append(t.getLocalizedMessage()); t = t.getCause(); if (t != null) { result.append("<br>"); } } result.append("</td><td colspan=\"2\"></td></tr>\n"); } // create label and help bubble cells result.append("<tr>"); result.append("<td class=\"xmlLabel"); if (disabledElement) { // element is disabled, mark it with css result.append("Disabled"); } result.append("\">"); result.append(key(A_CmsWidget.getLabelKey(p), p.getName())); if (count > 1) { result.append(" [").append(p.getIndex() + 1).append("]"); } result.append(": </td>"); if (p.getIndex() == 0) { // show help bubble only on first element of each content definition result.append(widgetHelpBubble(p)); } else { // create empty cell for all following elements result.append(dialogHorizontalSpacer(16)); } // append individual widget html cell if element is enabled if (!disabledElement) { // this is a simple type, display widget result.append(widget.getDialogWidget(getCms(), this, p)); } else { // disabled element, show message for optional element result.append("<td class=\"xmlTdDisabled maxwidth\">"); result.append(key("editor.xmlcontent.optionalelement")); result.append("</td>"); } // append add and remove element buttons if required result.append(dialogHorizontalSpacer(5)); result.append("<td>"); if (addValue || removeValue) { result.append("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>"); if (!addValue) { result.append(dialogHorizontalSpacer(24)); } else { result.append("<td><table class=\"editorbuttonbackground\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>"); result.append(buildAddElement(base.getName(), p.getIndex(), addValue)); } if (removeValue) { if (!addValue) { result.append("<td><table class=\"editorbuttonbackground\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>"); } result.append(buildRemoveElement(base.getName(), p.getIndex(), removeValue)); } result.append("</tr></table></td>"); result.append("</tr></table>"); } result.append("</td>"); // close row result.append("</tr>\n"); } return result.toString(); }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/a3dfba6bca4d83348003e0dbde21b7a517a561b2/CmsWidgetDialog.java/clean/src/org/opencms/workplace/CmsWidgetDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
752,
6353,
1999,
4353,
12,
4747,
4609,
6353,
1662,
1026,
13,
288,
3639,
6674,
563,
273,
394,
6674,
12,
5034,
1769,
3639,
987,
3102,
273,
261,
682,
13,
588,
2402,
7675,
588,
12,
1969,
18,
17994,
10663,
3639,
509,
1056,
273,
3102,
18,
1467,
5621,
3639,
368,
866,
309,
460,
353,
3129,
578,
3229,
3639,
1250,
17663,
273,
629,
31,
3639,
309,
261,
1883,
411,
1026,
18,
588,
2747,
31084,
10756,
288,
5411,
17663,
273,
638,
31,
3639,
289,
3639,
1250,
1206,
620,
273,
629,
31,
3639,
309,
261,
1883,
405,
1026,
18,
588,
2930,
31084,
10756,
288,
5411,
1206,
620,
273,
638,
31,
3639,
289,
3639,
368,
866,
309,
460,
353,
3430,
3639,
1250,
5673,
1046,
273,
629,
31,
3639,
309,
261,
1883,
411,
404,
13,
288,
5411,
368,
1158,
1569,
598,
326,
460,
3430,
16,
1496,
2546,
486,
3129,
30,
999,
1026,
487,
1569,
5411,
3102,
273,
394,
2407,
5621,
5411,
3102,
18,
1289,
12,
1969,
1769,
5411,
1056,
273,
404,
31,
5411,
309,
261,
1969,
18,
588,
2930,
31084,
1435,
422,
374,
13,
288,
7734,
5673,
1046,
273,
638,
31,
5411,
289,
3639,
289,
3639,
368,
2798,
3059,
3229,
2186,
3639,
364,
261,
474,
525,
273,
374,
31,
525,
411,
1056,
31,
525,
27245,
288,
5411,
368,
336,
326,
1569,
471,
326,
3604,
5411,
2149,
4609,
6353,
1662,
293,
273,
261,
4747,
4609,
6353,
1662,
13,
6178,
18,
588,
12,
78,
1769,
5411,
467,
67,
4747,
4609,
3604,
273,
293,
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,
4750,
514,
752,
6353,
1999,
4353,
12,
4747,
4609,
6353,
1662,
1026,
13,
288,
3639,
6674,
563,
273,
394,
6674,
12,
5034,
1769,
3639,
987,
3102,
273,
261,
682,
13,
588,
2402,
7675,
588,
12,
1969,
18,
17994,
10663,
3639,
509,
1056,
273,
3102,
18,
1467,
5621,
3639,
368,
866,
309,
460,
353,
3129,
578,
3229,
3639,
1250,
17663,
273,
629,
31,
3639,
309,
261,
1883,
411,
1026,
18,
588,
2747,
31084,
10756,
288,
5411,
17663,
273,
638,
31,
3639,
289,
3639,
1250,
1206,
620,
273,
629,
31,
3639,
309,
261,
1883,
405,
1026,
18,
588,
2930,
31084,
10756,
288,
5411,
1206,
620,
273,
638,
31,
3639,
289,
3639,
368,
866,
309,
460,
353,
3430,
3639,
1250,
5673,
2
] |
invokable2.matchesInvocation.setExpected(invocation); invokable2.matchesResult = false; invokable2.invokeInvocation.setExpectNothing();
|
invokable2.matchesInvocation.setExpected(invocation); invokable2.matchesResult = false; invokable2.invokeInvocation.setExpectNothing();
|
public void testSearchesForMatchInLIFOOrder() throws Throwable { invokable1.matchesInvocation.setExpected(invocation); invokable1.matchesResult = true; invokable1.invokeInvocation.setExpected(invocation); invokable1.invokeResult = "one"; invokable2.matchesInvocation.setExpected(invocation); invokable2.matchesResult = false; invokable2.invokeInvocation.setExpectNothing(); dispatcher.add(invokable1); dispatcher.add(invokable2); assertEquals("Should be invokable1", "one", dispatcher.dispatch(invocation)); verifyInvokables(); }
|
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/LIFOInvocationDispatcherTest.java/clean/jmock/core/src/test/jmock/core/LIFOInvocationDispatcherTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
16294,
1290,
2060,
382,
2053,
3313,
2448,
1435,
1216,
4206,
288,
202,
202,
5768,
601,
429,
21,
18,
8436,
9267,
18,
542,
6861,
12,
5768,
4431,
1769,
202,
202,
5768,
601,
429,
21,
18,
8436,
1253,
273,
638,
31,
202,
202,
5768,
601,
429,
21,
18,
14407,
9267,
18,
542,
6861,
12,
5768,
4431,
1769,
202,
202,
5768,
601,
429,
21,
18,
14407,
1253,
273,
315,
476,
14432,
202,
202,
5768,
601,
429,
22,
18,
8436,
9267,
18,
542,
6861,
12,
5768,
4431,
1769,
202,
202,
5768,
601,
429,
22,
18,
8436,
1253,
273,
629,
31,
202,
202,
5768,
601,
429,
22,
18,
14407,
9267,
18,
542,
11988,
23814,
5621,
202,
202,
18495,
18,
1289,
12,
5768,
601,
429,
21,
1769,
202,
202,
18495,
18,
1289,
12,
5768,
601,
429,
22,
1769,
202,
202,
11231,
8867,
2932,
14309,
506,
5770,
429,
21,
3113,
315,
476,
3113,
7393,
18,
10739,
12,
5768,
4431,
10019,
202,
202,
8705,
11354,
1538,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
16294,
1290,
2060,
382,
2053,
3313,
2448,
1435,
1216,
4206,
288,
202,
202,
5768,
601,
429,
21,
18,
8436,
9267,
18,
542,
6861,
12,
5768,
4431,
1769,
202,
202,
5768,
601,
429,
21,
18,
8436,
1253,
273,
638,
31,
202,
202,
5768,
601,
429,
21,
18,
14407,
9267,
18,
542,
6861,
12,
5768,
4431,
1769,
202,
202,
5768,
601,
429,
21,
18,
14407,
1253,
273,
315,
476,
14432,
202,
202,
5768,
601,
429,
22,
18,
8436,
9267,
18,
542,
6861,
12,
5768,
4431,
1769,
202,
202,
5768,
601,
429,
22,
18,
8436,
1253,
273,
629,
31,
202,
202,
5768,
601,
429,
22,
18,
14407,
9267,
18,
542,
11988,
23814,
5621,
202,
202,
18495,
18,
2
] |
RubyArray newArgs = RubyArray.newArray(recv.getRuntime(), args);
|
RubyArray newArgs = recv.getRuntime().newArray(args);
|
public static IRubyObject sprintf(IRubyObject recv, IRubyObject[] args) { if (args.length == 0) { throw new ArgumentError(recv.getRuntime(), "sprintf must have at least one argument"); } RubyString str = RubyString.stringValue(args[0]); RubyArray newArgs = RubyArray.newArray(recv.getRuntime(), args); newArgs.shift(); return str.format(newArgs); }
|
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
2005,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
604,
394,
9236,
12,
18334,
18,
588,
5576,
9334,
315,
87,
1461,
1297,
1240,
622,
4520,
1245,
1237,
8863,
3639,
289,
3639,
19817,
780,
609,
273,
19817,
780,
18,
1080,
620,
12,
1968,
63,
20,
19226,
3639,
19817,
1076,
394,
2615,
273,
10665,
18,
588,
5576,
7675,
2704,
1076,
12,
1968,
1769,
3639,
394,
2615,
18,
4012,
5621,
3639,
327,
609,
18,
2139,
12,
2704,
2615,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
2005,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
604,
394,
9236,
12,
18334,
18,
588,
5576,
9334,
315,
87,
1461,
1297,
1240,
622,
4520,
1245,
1237,
8863,
3639,
289,
3639,
19817,
780,
609,
273,
19817,
780,
18,
1080,
620,
12,
1968,
63,
20,
19226,
3639,
19817,
1076,
394,
2615,
273,
10665,
18,
588,
5576,
7675,
2704,
1076,
12,
1968,
1769,
3639,
394,
2615,
18,
4012,
5621,
3639,
327,
609,
18,
2139,
12,
2704,
2615,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void fatal(Object message) {
|
public void fatal(Object message) {
|
public void fatal(Object message) { log(FATAL, message, null); }
|
46463 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46463/96769faec3ab62f18300a49b416f1c5e2f108496/Logger.java/clean/src/main/org/testng/log4testng/Logger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
10081,
12,
921,
883,
13,
288,
565,
613,
12,
29891,
16,
883,
16,
446,
1769,
225,
289,
225,
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,
282,
1071,
918,
10081,
12,
921,
883,
13,
288,
565,
613,
12,
29891,
16,
883,
16,
446,
1769,
225,
289,
225,
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
] |
.getPreviewHeader( datasetName );
|
.getPreviewHeader( );
|
private void switchDataTable( String datasetName ) { // Add data header String[] header = getWizardContext( ).getDataServiceProvider( ) .getPreviewHeader( datasetName ); tablePreview.setColumns( header ); refreshTableColor( ); // Add data value List dataList = getWizardContext( ).getDataServiceProvider( ) .getPreviewData( datasetName ); for ( Iterator iterator = dataList.iterator( ); iterator.hasNext( ); ) { String[] dataRow = (String[]) iterator.next( ); for ( int i = 0; i < dataRow.length; i++ ) { tablePreview.addEntry( dataRow[i], i ); } } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/045bc4ce195669416f37e161d70de5340277fa0f/TaskSelectData.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1620,
21237,
12,
514,
3709,
461,
262,
202,
95,
202,
202,
759,
1436,
501,
1446,
202,
202,
780,
8526,
1446,
273,
13876,
13412,
1042,
12,
262,
18,
588,
751,
16300,
12,
262,
9506,
202,
18,
588,
11124,
1864,
12,
3709,
461,
11272,
202,
202,
2121,
11124,
18,
542,
3380,
12,
1446,
11272,
202,
202,
9144,
1388,
2957,
12,
11272,
202,
202,
759,
1436,
501,
460,
202,
202,
682,
501,
682,
273,
13876,
13412,
1042,
12,
262,
18,
588,
751,
16300,
12,
262,
9506,
202,
18,
588,
11124,
751,
12,
3709,
461,
11272,
202,
202,
1884,
261,
4498,
2775,
273,
501,
682,
18,
9838,
12,
11272,
2775,
18,
5332,
2134,
12,
11272,
262,
202,
202,
95,
1082,
202,
780,
8526,
31659,
273,
261,
780,
63,
5717,
2775,
18,
4285,
12,
11272,
1082,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
31659,
18,
2469,
31,
277,
9904,
262,
1082,
202,
95,
9506,
202,
2121,
11124,
18,
1289,
1622,
12,
31659,
63,
77,
6487,
277,
11272,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1620,
21237,
12,
514,
3709,
461,
262,
202,
95,
202,
202,
759,
1436,
501,
1446,
202,
202,
780,
8526,
1446,
273,
13876,
13412,
1042,
12,
262,
18,
588,
751,
16300,
12,
262,
9506,
202,
18,
588,
11124,
1864,
12,
3709,
461,
11272,
202,
202,
2121,
11124,
18,
542,
3380,
12,
1446,
11272,
202,
202,
9144,
1388,
2957,
12,
11272,
202,
202,
759,
1436,
501,
460,
202,
202,
682,
501,
682,
273,
13876,
13412,
1042,
12,
262,
18,
588,
751,
16300,
12,
262,
9506,
202,
18,
588,
11124,
751,
12,
3709,
461,
11272,
202,
202,
1884,
261,
4498,
2775,
273,
501,
682,
18,
9838,
12,
11272,
2775,
18,
5332,
2134,
12,
11272,
262,
202,
202,
95,
2
] |
TraceDotGraph.dumpGraph(initList, partitioner.io, "inittraces.dot", true); TraceDotGraph.dumpGraph(schedule, partitioner.io, "steadyforrest.dot", true);
|
TraceDotGraph.dumpGraph(scheduler.getInitSchedule(), partitioner.io, "inittraces.dot", true); TraceDotGraph.dumpGraph(scheduler.getSchedule(), partitioner.io, "steadyforrest.dot", true);
|
public static void run(SIRStream str, JInterfaceDeclaration[] interfaces, SIRInterfaceTable[] interfaceTables, SIRStructure[] structs) { structures = structs; //first of all enable altcodegen by default KjcOptions.altcodegen = true; int rawRows = -1; int rawColumns = -1; //set number of columns/rows rawRows = KjcOptions.raw; if(KjcOptions.rawcol>-1) rawColumns = KjcOptions.rawcol; else rawColumns = KjcOptions.raw; //create the RawChip RawChip rawChip = new RawChip(rawColumns, rawRows); // move field initializations into init function FieldInitMover.moveStreamInitialAssignments(str); // propagate constants and unroll loop System.out.println("Running Constant Prop and Unroll..."); ConstantProp.propagateAndUnroll(str); System.out.println("Done Constant Prop and Unroll..."); // add initPath functions EnqueueToInitPath.doInitPath(str); // construct stream hierarchy from SIRInitStatements ConstructSIRTree.doit(str); //VarDecl Raise to move array assignments up new VarDeclRaiser().raiseVars(str); // do constant propagation on fields if (KjcOptions.nofieldprop) { } else { System.out.println("Running Constant Field Propagation..."); FieldProp.doPropagate(str); System.out.println("Done Constant Field Propagation..."); } Lifter.liftAggressiveSync(str); StreamItDot.printGraph(str, "before-partition.dot"); // str = Partitioner.doit(str, 32); //VarDecl Raise to move array assignments up new VarDeclRaiser().raiseVars(str); //VarDecl Raise to move peek index up so //constant prop propagates the peek buffer index new VarDeclRaiser().raiseVars(str); //this must be run now, other pass rely on it... RenameAll.renameOverAllFilters(str); //SIRPrinter printer1 = new SIRPrinter(); //IterFactory.createFactory().createIter(str).accept(printer1); //printer1.close(); //Linear Analysis LinearAnalyzer lfa=null; if(KjcOptions.linearanalysis||KjcOptions.linearpartition) { System.out.println("Running linear analysis... "); lfa=LinearAnalyzer.findLinearFilters(str,KjcOptions.debug,false); System.out.println("Done with linear analysis."); LinearDot.printGraph(str,"linear.dot",lfa); LinearDotSimple.printGraph(str,"linear-simple.dot",lfa,null); } //get the execution counts from the scheduler HashMap[] executionCounts=SIRScheduler.getExecutionCounts(str); //flatten the graph by running (super?) synch removal FlattenGraph.flattenGraph(str,lfa,executionCounts); UnflatFilter[] topNodes=FlattenGraph.getTopLevelNodes(); System.out.println("Top Nodes:"); for(int i=0;i<topNodes.length;i++) System.out.println(topNodes[i]); Trace[] traces=null; Trace[] traceGraph=null; //used if REAL //get the work estimation WorkEstimate work = WorkEstimate.getWorkEstimate(str); SimplePartitioner partitioner = new SimplePartitioner(topNodes,executionCounts,lfa, work, rawChip); traceGraph = partitioner.partition(); System.out.println("UnPrunnedTraces: "+traceGraph.length); partitioner.dumpGraph("traces.dot"); /*System.gc(); System.out.println("MEM: "+(Runtime.getRuntime().totalMemory()-Runtime.getRuntime().freeMemory()));*/ StreaMITMain.clearParams(); FlattenGraph.clear(); AutoCloner.clear(); SIRContainer.destroy(); UnflatEdge.clear(); str=null; interfaces=null; interfaceTables=null; structs=null; structures=null; lfa=null; executionCounts=null; topNodes=null; System.gc(); //----------------------- This Is The Line ----------------------- //No Structure, No SIRStreams, Old Stuff Restricted Past This Point //Violators Will Be Garbage Collected LinkedList schedule = (new SimpleScheduler(partitioner, rawChip)).schedule(); SchedulePrimePump.doit(schedule); //mgordon's stuff assert !KjcOptions.magicdram : "Magic DRAM support is not working"; List initList = InitSchedule.getInitSchedule(partitioner.topTraces); TraceDotGraph.dumpGraph(schedule, partitioner.io, "preDRAMsteady.dot", false); //assign the buffers not assigned by Jasp to drams BufferDRAMAssignment.run(schedule, rawChip, partitioner.io); //communicate the addresses for the off-chip buffers if (!KjcOptions.magicdram) { //so right now, this pass does not communicate addresses //but it generates the declarations of the buffers //on the corresponding tile. CommunicateAddrs.doit(rawChip); } TraceDotGraph.dumpGraph(initList, partitioner.io, "inittraces.dot", true); TraceDotGraph.dumpGraph(schedule, partitioner.io, "steadyforrest.dot", true); //create the raw execution code and switch code for the initialization phase System.out.println("Creating Initialization Stage"); Rawify.run(initList.iterator(), rawChip, true); //create the raw execution code and switch for the steady-state System.out.println("Creating Steady-State Stage"); Rawify.run(schedule.iterator(), rawChip, false); //dump the layout LayoutDot.dumpLayout(rawChip, "layout.dot"); //generate the switch code assembly files... GenerateSwitchCode.run(rawChip); //generate the compute code from the SIR GenerateComputeCode.run(rawChip); //generate the magic dram code if enabled if (KjcOptions.magicdram) { MagicDram.GenerateCode(rawChip); } Makefile.generate(rawChip); //generate the bc file depending on if we have number gathering enabled if (KjcOptions.numbers > 0) BCFile.generate(rawChip, NumberGathering.doit(rawChip, partitioner.io)); else BCFile.generate(rawChip, null); }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/f3e6fa0c2f21a718d9a924191a6aa2dc181ba73f/SpaceTimeBackend.java/buggy/streams/src/at/dms/kjc/spacetime/SpaceTimeBackend.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1086,
12,
2320,
54,
1228,
609,
16,
9506,
282,
804,
1358,
6094,
8526,
4697,
282,
7349,
16,
9506,
282,
5705,
54,
1358,
1388,
8526,
9506,
282,
1560,
6905,
16,
9506,
282,
5705,
54,
6999,
8526,
9506,
282,
8179,
13,
288,
202,
27979,
273,
8179,
31,
202,
202,
759,
3645,
434,
777,
4237,
3770,
710,
4507,
635,
805,
202,
47,
78,
71,
1320,
18,
2390,
710,
4507,
273,
638,
31,
202,
474,
1831,
4300,
273,
300,
21,
31,
202,
474,
1831,
3380,
273,
300,
21,
31,
202,
759,
542,
1300,
434,
2168,
19,
3870,
202,
1899,
4300,
273,
1475,
78,
71,
1320,
18,
1899,
31,
202,
430,
12,
47,
78,
71,
1320,
18,
1899,
1293,
34,
17,
21,
13,
202,
565,
1831,
3380,
273,
1475,
78,
71,
1320,
18,
1899,
1293,
31,
202,
12107,
202,
565,
1831,
3380,
273,
1475,
78,
71,
1320,
18,
1899,
31,
202,
759,
2640,
326,
6576,
782,
625,
202,
4809,
782,
625,
1831,
782,
625,
273,
394,
6576,
782,
625,
12,
1899,
3380,
16,
1831,
4300,
1769,
202,
759,
3635,
652,
2172,
7089,
1368,
1208,
445,
202,
974,
2570,
49,
1643,
18,
8501,
1228,
4435,
18628,
12,
701,
1769,
1082,
202,
759,
13551,
6810,
471,
640,
2693,
2798,
202,
3163,
18,
659,
18,
8222,
2932,
7051,
10551,
10484,
471,
1351,
2693,
7070,
1769,
202,
6902,
4658,
18,
5986,
346,
340,
1876,
984,
2693,
12,
701,
1769,
202,
3163,
18,
659,
18,
8222,
2932,
7387,
10551,
10484,
471,
1351,
2693,
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,
1086,
12,
2320,
54,
1228,
609,
16,
9506,
282,
804,
1358,
6094,
8526,
4697,
282,
7349,
16,
9506,
282,
5705,
54,
1358,
1388,
8526,
9506,
282,
1560,
6905,
16,
9506,
282,
5705,
54,
6999,
8526,
9506,
282,
8179,
13,
288,
202,
27979,
273,
8179,
31,
202,
202,
759,
3645,
434,
777,
4237,
3770,
710,
4507,
635,
805,
202,
47,
78,
71,
1320,
18,
2390,
710,
4507,
273,
638,
31,
202,
474,
1831,
4300,
273,
300,
21,
31,
202,
474,
1831,
3380,
273,
300,
21,
31,
202,
759,
542,
1300,
434,
2168,
19,
3870,
202,
1899,
4300,
273,
1475,
78,
71,
1320,
18,
1899,
31,
202,
430,
12,
47,
78,
71,
1320,
18,
1899,
1293,
34,
2
] |
temp = temp + 13;
|
temp += 13;
|
public String process (ProcessingClient client) { if (client.getNumFields () < 1) { return (""); } char [] password = client.getFieldContents (0).toCharArray (); char [] result = new char [password.length]; int temp; for (int i = 0; i < password.length; i++) { temp = password [i] - 57; if (i > 0) { temp = temp + password [i - 1]; } if ((temp % 3) == 0) { temp = temp + 13; } if (temp < 0) { temp = temp + 193; } result [i] = (char)temp; } return (new String (result)); }
|
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/PWDEncryptor.java/buggy/src/lib/com/izforge/izpack/sample/PWDEncryptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1207,
261,
7798,
1227,
1004,
13,
225,
288,
565,
309,
261,
2625,
18,
588,
2578,
2314,
1832,
411,
404,
13,
565,
288,
1377,
327,
261,
3660,
1769,
565,
289,
3639,
1149,
5378,
2201,
273,
1004,
18,
588,
974,
6323,
261,
20,
2934,
869,
15936,
261,
1769,
565,
1149,
5378,
563,
282,
273,
394,
1149,
306,
3664,
18,
2469,
15533,
565,
509,
225,
1906,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2201,
18,
2469,
31,
277,
27245,
565,
288,
1377,
1906,
273,
2201,
306,
77,
65,
300,
15981,
31,
1377,
309,
261,
77,
405,
374,
13,
1377,
288,
3639,
1906,
273,
1906,
397,
2201,
306,
77,
300,
404,
15533,
1377,
289,
1377,
309,
14015,
5814,
738,
890,
13,
422,
374,
13,
1377,
288,
3639,
1906,
1011,
5958,
31,
1377,
289,
1377,
309,
261,
5814,
411,
374,
13,
1377,
288,
3639,
1906,
273,
1906,
397,
5342,
23,
31,
1377,
289,
1850,
563,
306,
77,
65,
273,
261,
3001,
13,
5814,
31,
565,
289,
565,
327,
261,
2704,
514,
261,
2088,
10019,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1207,
261,
7798,
1227,
1004,
13,
225,
288,
565,
309,
261,
2625,
18,
588,
2578,
2314,
1832,
411,
404,
13,
565,
288,
1377,
327,
261,
3660,
1769,
565,
289,
3639,
1149,
5378,
2201,
273,
1004,
18,
588,
974,
6323,
261,
20,
2934,
869,
15936,
261,
1769,
565,
1149,
5378,
563,
282,
273,
394,
1149,
306,
3664,
18,
2469,
15533,
565,
509,
225,
1906,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2201,
18,
2469,
31,
277,
27245,
565,
288,
1377,
1906,
273,
2201,
306,
77,
65,
300,
15981,
31,
1377,
309,
261,
77,
405,
374,
13,
1377,
288,
3639,
1906,
273,
1906,
397,
2201,
306,
77,
300,
404,
15533,
1377,
289,
1377,
309,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.