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 |
|---|---|---|---|---|---|---|
String lev = (String)options.get("-d"); if ("DEBUG".equalsIgnoreCase(lev)) { level = "debug"; } else if ("INFO".equalsIgnoreCase(lev)) { level = "info"; } else { level = "warn"; }
|
setLogLevel("debug"); } else if (options.get("-q") != null) { setLogLevel("error");
|
public static void main(String[] args) { String embFile = null; String embResource = null; String className = null; String fontName = null; String ttcName = null; boolean isCid = true; Map options = new java.util.HashMap(); String[] arguments = parseArguments(options, args); //Setup simple logger for this command-line application System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog"); System.setProperty("org.apache.commons.logging.simplelog.showShortLogname", "false"); //Determine log level String level; if (options.get("-d") != null) { String lev = (String)options.get("-d"); if ("DEBUG".equalsIgnoreCase(lev)) { level = "debug"; } else if ("INFO".equalsIgnoreCase(lev)) { level = "info"; } else { level = "warn"; } } else { level = "warn"; } System.setProperty("org.apache.commons.logging.simplelog.defaultlog", level); TTFReader app = new TTFReader(); System.out.println("TTF Reader for Apache FOP " + Fop.getVersion() + "\n"); if (options.get("-enc") != null) { String enc = (String)options.get("-enc"); if ("ansi".equals(enc)) { isCid = false; } } if (options.get("-ttcname") != null) { ttcName = (String)options.get("-ttcname"); } if (options.get("-ef") != null) { embFile = (String)options.get("-ef"); } if (options.get("-er") != null) { embResource = (String)options.get("-er"); } if (options.get("-fn") != null) { fontName = (String)options.get("-fn"); } if (options.get("-cn") != null) { className = (String)options.get("-cn"); } if (arguments.length != 2 || options.get("-h") != null || options.get("-help") != null || options.get("--help") != null) { displayUsage(); } else { try { System.out.println("Parsing font..."); TTFFile ttf = app.loadTTF(arguments[0], ttcName); if (ttf != null) { org.w3c.dom.Document doc = app.constructFontXML(ttf, fontName, className, embResource, embFile, isCid, ttcName); if (isCid) { System.out.println("Creating CID encoded metrics..."); } else { System.out.println("Creating WinAnsi encoded metrics..."); } if (doc != null) { app.writeFontXML(doc, arguments[1]); } if (ttf.isEmbeddable()) { System.out.println("This font contains no embedding license restrictions."); } else { System.out.println("** Note: This font contains license retrictions for\n" + " embedding. This font shouldn't be embedded."); } } System.out.println("\nXML font metrics file successfullly created."); } catch (Exception e) { System.err.println("Error while building XML font metrics file."); e.printStackTrace(System.err); System.exit(-1); } } }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/bc4cc14b3ee86dc496dbf8baa6a44d616cb5112c/TTFReader.java/clean/src/java/org/apache/fop/fonts/apps/TTFReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
514,
31265,
812,
273,
446,
31,
3639,
514,
31265,
1420,
273,
446,
31,
3639,
514,
2658,
273,
446,
31,
3639,
514,
3512,
461,
273,
446,
31,
3639,
514,
3574,
71,
461,
273,
446,
31,
3639,
1250,
353,
19844,
273,
638,
31,
3639,
1635,
702,
273,
394,
2252,
18,
1367,
18,
8658,
5621,
3639,
514,
8526,
1775,
273,
1109,
4628,
12,
2116,
16,
833,
1769,
3639,
368,
7365,
4143,
1194,
364,
333,
1296,
17,
1369,
2521,
3639,
2332,
18,
542,
1396,
2932,
3341,
18,
19211,
18,
6054,
87,
18,
11167,
18,
1343,
3113,
2398,
315,
3341,
18,
19211,
18,
6054,
87,
18,
11167,
18,
11299,
18,
5784,
1343,
8863,
3639,
2332,
18,
542,
1396,
2932,
3341,
18,
19211,
18,
6054,
87,
18,
11167,
18,
9812,
412,
12970,
18,
4500,
4897,
1343,
529,
3113,
2398,
315,
5743,
8863,
10792,
368,
8519,
613,
1801,
3639,
514,
1801,
31,
3639,
309,
261,
2116,
18,
588,
2932,
17,
72,
7923,
480,
446,
13,
288,
5411,
514,
18565,
273,
261,
780,
13,
2116,
18,
588,
2932,
17,
72,
8863,
5411,
309,
7566,
9394,
9654,
14963,
5556,
12,
298,
90,
3719,
288,
7734,
1801,
273,
315,
4148,
14432,
2398,
289,
469,
309,
7566,
5923,
9654,
14963,
5556,
12,
298,
90,
3719,
288,
7734,
1801,
273,
315,
1376,
14432,
5411,
289,
469,
288,
7734,
1801,
273,
315,
8935,
14432,
5411,
289,
3639,
289,
469,
288,
5411,
1801,
273,
315,
8935,
14432,
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,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
514,
31265,
812,
273,
446,
31,
3639,
514,
31265,
1420,
273,
446,
31,
3639,
514,
2658,
273,
446,
31,
3639,
514,
3512,
461,
273,
446,
31,
3639,
514,
3574,
71,
461,
273,
446,
31,
3639,
1250,
353,
19844,
273,
638,
31,
3639,
1635,
702,
273,
394,
2252,
18,
1367,
18,
8658,
5621,
3639,
514,
8526,
1775,
273,
1109,
4628,
12,
2116,
16,
833,
1769,
3639,
368,
7365,
4143,
1194,
364,
333,
1296,
17,
1369,
2521,
3639,
2332,
18,
542,
1396,
2932,
3341,
18,
19211,
18,
6054,
87,
18,
11167,
18,
1343,
3113,
2398,
315,
3341,
18,
19211,
18,
6054,
87,
18,
11167,
18,
11299,
18,
5784,
1343,
2
] |
if( repId.equals( "IDL:org/jacorb/imr/ImplementationRepository:1.0") )
|
if (profile instanceof IIOPProfile)
|
org.omg.IOP.IOR createIOR( String repId, byte[] key, boolean _transient, org.jacorb.poa.POA poa, Hashtable policy_overrides) { // get the host and port of the server String address; int port; //the ImR is a special case if( repId.equals( "IDL:org/jacorb/imr/ImplementationRepository:1.0") ) { address = getIMRAddressForIOR( basicAdapter.getAddress() ); port = getIMRPortForIOR( basicAdapter.getPort() ); } else { address = getServerAddress(); port = getServerPort(); } if( ! _transient && Environment.useImR() && Environment.useImREndpoint() ) { //attempt to override the server IOR address with the ImR address try { getImR (); // set host and port to ImR's values address = getIMRAddressForIOR( imr.getImRHost() ); port = getIMRPortForIOR( imr.getImRPort() ); Debug.output( 2, "New persistent IOR created with ImR at " + address + ":" + port ); } catch (Exception _e) { // host and port values of this ORB as set above are used Debug.output(6, _e); } } //find out GIOP minor version to use. Defaults to 2. int giop_minor = 2; String gm_str = Environment.getProperty( "jacorb.giop_minor_version", "2" ); try { giop_minor = Integer.parseInt( gm_str ); } catch( NumberFormatException nfe ) { throw new Error( "Unable to create int from string >>" + gm_str + "<<. " + "(check property \"jacorb.giop_minor_version\")" ); } // create any components to go in the profiles Vector components_iiop_profile = new Vector(); Vector components_multi_profile = new Vector(); // set the ORB type ID component to JacORB CDROutputStream orbIDComponentDataStream = new CDROutputStream( this ); orbIDComponentDataStream.beginEncapsulatedArray(); orbIDComponentDataStream.write_long( ORBConstants.JACORB_ORB_ID ); TaggedComponent orbIDComponent = new TaggedComponent ( TAG_ORB_TYPE.value, orbIDComponentDataStream.getBufferCopy() ); if( giop_minor > 0 ) { components_iiop_profile.addElement( orbIDComponent ); } else { components_multi_profile.addElement( orbIDComponent ); } //if IORInterceptors are present then invoke them if ((interceptor_manager != null) && interceptor_manager.hasIORInterceptors()) { IORInfoImpl info = new IORInfoImpl ( this, poa, components_iiop_profile, components_multi_profile, policy_overrides ); try { interceptor_manager.getIORIterator().iterate( info ); } catch (Exception e) { Debug.output(2, e); } } //all components for the profiles have to be present by now TaggedProfile tp = null; Vector taggedProfileVector = new Vector(); TaggedComponent[] components = null; CDROutputStream profileDataStream = null; switch( giop_minor ) { case 2 : { //same as IIOP 1.1 } case 1: { //create IIOP 1.1 profile components = new TaggedComponent[ components_iiop_profile.size() ]; components_iiop_profile.copyInto( components ); ProfileBody_1_1 pb1 = new ProfileBody_1_1 ( new org.omg.IIOP.Version( (byte) 1, (byte) giop_minor ), address, (short) port, key, components ); // serialize the profile id 1, leave idx 0 for v.1.0 profile profileDataStream = new CDROutputStream( this ); profileDataStream.beginEncapsulatedArray(); ProfileBody_1_1Helper.write( profileDataStream, pb1 ); tp = new TaggedProfile ( TAG_INTERNET_IOP.value, profileDataStream.getBufferCopy() ); taggedProfileVector.addElement( tp ); // fall through only if we want to be beckwards compatible // with GIOP 1.0 and thus always include an 1.0 profile if( ! always_add_1_0_Profile ) break; } case 0: { // create IIOP 1.0 profile ProfileBody_1_0 pb0 = new ProfileBody_1_0 ( new org.omg.IIOP.Version( (byte) 1, (byte) 0 ), address, (short) port, key ); profileDataStream = new CDROutputStream( this ); profileDataStream.beginEncapsulatedArray(); ProfileBody_1_0Helper.write( profileDataStream, pb0 ); tp = new TaggedProfile ( TAG_INTERNET_IOP.value, profileDataStream.getBufferCopy() ); taggedProfileVector.addElement( tp ); } } // now fill the last IOR profile with components (if any) if( components_multi_profile.size() > 0 ) { components = new TaggedComponent[ components_multi_profile.size() ]; components_multi_profile.copyInto( components ); profileDataStream = new CDROutputStream( this ); profileDataStream.beginEncapsulatedArray(); MultipleComponentProfileHelper.write( profileDataStream, components ); tp = new TaggedProfile ( TAG_MULTIPLE_COMPONENTS.value, profileDataStream.getBufferCopy() ); taggedProfileVector.addElement( tp ); } // copy the profiles into the IOR TaggedProfile[] tps = new TaggedProfile[ taggedProfileVector.size() ]; taggedProfileVector.copyInto( tps ); return new IOR( repId, tps ); }
|
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/bb49263d68017af14a07ff0f94933519ab226b73/ORB.java/buggy/src/org/jacorb/orb/ORB.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2358,
18,
362,
75,
18,
45,
3665,
18,
45,
916,
752,
45,
916,
12,
514,
2071,
548,
16,
1171,
9079,
1160,
8526,
498,
16,
1171,
9079,
1250,
389,
22670,
16,
1171,
9079,
2358,
18,
31390,
16640,
18,
1631,
69,
18,
2419,
37,
8275,
69,
16,
1171,
9079,
18559,
3329,
67,
19775,
13,
565,
288,
3639,
368,
336,
326,
1479,
471,
1756,
434,
326,
1438,
3639,
514,
1758,
31,
3639,
509,
1756,
31,
3639,
368,
5787,
2221,
54,
353,
279,
4582,
648,
3639,
309,
261,
5040,
1276,
23076,
3665,
4029,
13,
3639,
288,
5411,
1758,
273,
336,
3445,
54,
1887,
1290,
45,
916,
12,
5337,
4216,
18,
588,
1887,
1435,
11272,
5411,
1756,
273,
336,
3445,
54,
2617,
1290,
45,
916,
12,
5337,
4216,
18,
588,
2617,
1435,
11272,
3639,
289,
3639,
469,
3639,
288,
5411,
1758,
273,
11543,
1887,
5621,
5411,
1756,
273,
11543,
2617,
5621,
3639,
289,
3639,
309,
12,
401,
389,
22670,
597,
5411,
7518,
18,
1202,
1170,
54,
1435,
597,
5411,
7518,
18,
1202,
1170,
54,
3293,
1435,
262,
3639,
288,
5411,
368,
11764,
358,
3849,
326,
1438,
467,
916,
1758,
598,
326,
2221,
54,
1758,
5411,
775,
5411,
288,
7734,
336,
1170,
54,
261,
1769,
7734,
368,
444,
1479,
471,
1756,
358,
2221,
54,
1807,
924,
7734,
1758,
273,
336,
3445,
54,
1887,
1290,
45,
916,
12,
709,
86,
18,
588,
1170,
54,
2594,
1435,
11272,
7734,
1756,
273,
336,
3445,
54,
2617,
1290,
45,
916,
12,
709,
86,
18,
588,
1170,
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,
2358,
18,
362,
75,
18,
45,
3665,
18,
45,
916,
752,
45,
916,
12,
514,
2071,
548,
16,
1171,
9079,
1160,
8526,
498,
16,
1171,
9079,
1250,
389,
22670,
16,
1171,
9079,
2358,
18,
31390,
16640,
18,
1631,
69,
18,
2419,
37,
8275,
69,
16,
1171,
9079,
18559,
3329,
67,
19775,
13,
565,
288,
3639,
368,
336,
326,
1479,
471,
1756,
434,
326,
1438,
3639,
514,
1758,
31,
3639,
509,
1756,
31,
3639,
368,
5787,
2221,
54,
353,
279,
4582,
648,
3639,
309,
261,
5040,
1276,
23076,
3665,
4029,
13,
3639,
288,
5411,
1758,
273,
336,
3445,
54,
1887,
1290,
45,
916,
12,
5337,
4216,
18,
588,
1887,
1435,
11272,
5411,
1756,
273,
336,
3445,
54,
2617,
1290,
2
] |
if (checkDequeue(2))
|
if (checkDequeue(2))
|
public final Address pop1() { if (checkDequeue(2)) return uncheckedDequeue(); else return Address.zero(); }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4c66aa27cec27f8dd5902baec018ff86d7f49ee2/AddressPairDeque.java/buggy/MMTk/src/org/mmtk/utility/deque/AddressPairDeque.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
5267,
1843,
21,
1435,
288,
377,
309,
261,
1893,
758,
4000,
12,
22,
3719,
1377,
327,
22893,
758,
4000,
5621,
565,
469,
1377,
327,
5267,
18,
7124,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
727,
5267,
1843,
21,
1435,
288,
377,
309,
261,
1893,
758,
4000,
12,
22,
3719,
1377,
327,
22893,
758,
4000,
5621,
565,
469,
1377,
327,
5267,
18,
7124,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (String.valueOf(n));
|
{ return String.valueOf(n); }
|
private String fleshOut(int n) { if (n < 10) return ("0" + n); else return (String.valueOf(n)); }
|
47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/85c7430ba7691f831fafc420459d280408310eb9/DCDate.java/clean/dspace/src/org/dspace/content/DCDate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
284,
1040,
76,
1182,
12,
474,
290,
13,
565,
288,
3639,
309,
261,
82,
411,
1728,
13,
5411,
327,
7566,
20,
6,
397,
290,
1769,
3639,
469,
5411,
288,
327,
514,
18,
1132,
951,
12,
82,
1769,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
284,
1040,
76,
1182,
12,
474,
290,
13,
565,
288,
3639,
309,
261,
82,
411,
1728,
13,
5411,
327,
7566,
20,
6,
397,
290,
1769,
3639,
469,
5411,
288,
327,
514,
18,
1132,
951,
12,
82,
1769,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_postBodyBuffer.append(sanitizeString(a.getDescription()));
|
_postBodyBuffer.append(sanitizeString(a.getDescription(), 30));
|
public void receiveEnd() { _postBodyBuffer.append("<tr class=\"postDetails\">\n"); _postBodyBuffer.append(" <form action=\"viewattachment.jsp\" method=\"GET\">\n"); _postBodyBuffer.append(" <td colspan=\"3\" valign=\"top\" align=\"left\">\n"); _postBodyBuffer.append("<input type=\"hidden\" name=\"").append(ArchiveViewerBean.PARAM_BLOG); _postBodyBuffer.append("\" value=\""); if (_entry != null) _postBodyBuffer.append(Base64.encode(_entry.getURI().getKeyHash().getData())); else _postBodyBuffer.append("unknown"); _postBodyBuffer.append("\" />\n"); _postBodyBuffer.append("<input type=\"hidden\" name=\"").append(ArchiveViewerBean.PARAM_ENTRY); _postBodyBuffer.append("\" value=\""); if (_entry != null) _postBodyBuffer.append(_entry.getURI().getEntryId()); else _postBodyBuffer.append("unknown"); _postBodyBuffer.append("\" />\n"); //_postBodyBuffer.append("<td colspan=\"2\" valign=\"top\" align=\"left\" ").append(getClass("summDetail")).append(" >\n"); if ( (_entry != null) && (_entry.getAttachments() != null) && (_entry.getAttachments().length > 0) ) { _postBodyBuffer.append(getSpan("summDetailAttachment")).append("Attachments:</span> "); _postBodyBuffer.append("<select ").append(getClass("summDetailAttachmentId")).append(" name=\"").append(ArchiveViewerBean.PARAM_ATTACHMENT).append("\">\n"); for (int i = 0; i < _entry.getAttachments().length; i++) { _postBodyBuffer.append("<option value=\"").append(i).append("\">"); Attachment a = _entry.getAttachments()[i]; _postBodyBuffer.append(sanitizeString(a.getName())); if ( (a.getDescription() != null) && (a.getDescription().trim().length() > 0) ) { _postBodyBuffer.append(": "); _postBodyBuffer.append(sanitizeString(a.getDescription())); } _postBodyBuffer.append(" (").append(a.getDataLength()/1024).append("KB"); _postBodyBuffer.append(", type ").append(sanitizeString(a.getMimeType())).append(")</option>\n"); } _postBodyBuffer.append("</select>\n"); _postBodyBuffer.append("<input ").append(getClass("summDetailAttachmentDl")).append(" type=\"submit\" value=\"Download\" name=\"Download\" /><br />\n"); } if (_blogs.size() > 0) { _postBodyBuffer.append(getSpan("summDetailBlog")).append("Blog references:</span>"); for (int i = 0; i < _blogs.size(); i++) { Blog b = (Blog)_blogs.get(i); _postBodyBuffer.append("<a ").append(getClass("summDetailBlogLink")).append(" href=\""); boolean expanded = (_user != null ? _user.getShowExpanded() : false); boolean images = (_user != null ? _user.getShowImages() : false); _postBodyBuffer.append(getPageURL(new Hash(Base64.decode(b.hash)), b.tag, b.entryId, -1, -1, expanded, images)); _postBodyBuffer.append("\">").append(sanitizeString(b.name)).append("</a> "); } _postBodyBuffer.append("<br />\n"); } if (_links.size() > 0) { _postBodyBuffer.append(getSpan("summDetailExternal")).append("External links:</span> "); for (int i = 0; i < _links.size(); i++) { Link l = (Link)_links.get(i); String schema = l.schema; _postBodyBuffer.append("<a "); _postBodyBuffer.append(getClass("summDetailExternalLink")).append(" href=\"externallink.jsp?"); if (l.schema != null) _postBodyBuffer.append("schema=").append(sanitizeURL(l.schema)).append('&'); if (l.location != null) _postBodyBuffer.append("location=").append(sanitizeURL(l.location)).append('&'); _postBodyBuffer.append("\">").append(sanitizeString(l.location)); _postBodyBuffer.append(getSpan("summDetailExternalNet")).append(" (").append(sanitizeString(l.schema)).append(")</span></a> "); } _postBodyBuffer.append("<br />\n"); } if (_addresses.size() > 0) { _postBodyBuffer.append(getSpan("summDetailAddr")).append("Addresses:</span>"); for (int i = 0; i < _addresses.size(); i++) { Address a = (Address)_addresses.get(i); importAddress(a); PetName pn = null; if (_user != null) pn = _user.getPetNameDB().getByLocation(a.location); if (pn != null) { _postBodyBuffer.append(' ').append(getSpan("summDetailAddrKnown")); _postBodyBuffer.append(sanitizeString(pn.getName())).append("</span>"); } else { _postBodyBuffer.append(" <a ").append(getClass("summDetailAddrLink")).append(" href=\"addresses.jsp?"); if (a.schema != null) _postBodyBuffer.append(AddressesServlet.PARAM_NET).append("=").append(sanitizeTagParam(a.schema)).append('&'); if (a.location != null) _postBodyBuffer.append(AddressesServlet.PARAM_LOC).append("=").append(sanitizeTagParam(a.location)).append('&'); if (a.name != null) _postBodyBuffer.append(AddressesServlet.PARAM_NAME).append("=").append(sanitizeTagParam(a.name)).append('&'); if (a.protocol != null) _postBodyBuffer.append(AddressesServlet.PARAM_PROTO).append("=").append(sanitizeTagParam(a.protocol)).append('&'); _postBodyBuffer.append("\">").append(sanitizeString(a.name)).append("</a>"); } } _postBodyBuffer.append("<br />\n"); } if (_archives.size() > 0) { _postBodyBuffer.append(getSpan("summDetailArchive")).append("Archives:</span>"); for (int i = 0; i < _archives.size(); i++) { ArchiveRef a = (ArchiveRef)_archives.get(i); _postBodyBuffer.append(" <a ").append(getClass("summDetailArchiveLink")).append(" href=\"").append(getArchiveURL(null, new SafeURL(a.locationSchema + "://" + a.location))); _postBodyBuffer.append("\">").append(sanitizeString(a.name)).append("</a>"); if (a.description != null) _postBodyBuffer.append(": ").append(getSpan("summDetailArchiveDesc")).append(sanitizeString(a.description)).append("</span>"); if (null == _user.getPetNameDB().getByLocation(a.location)) { _postBodyBuffer.append(" <a ").append(getClass("summDetailArchiveBookmark")).append(" href=\""); _postBodyBuffer.append(getBookmarkURL(sanitizeTagParam(a.name), sanitizeTagParam(a.location), sanitizeTagParam(a.locationSchema), AddressesServlet.PROTO_ARCHIVE)); _postBodyBuffer.append("\">bookmark it</a>"); } } _postBodyBuffer.append("<br />\n"); } if (_entry != null) { List replies = _archive.getIndex().getReplies(_entry.getURI()); if ( (replies != null) && (replies.size() > 0) ) { _postBodyBuffer.append(getSpan("summDetailReplies")).append("Replies:</span> "); for (int i = 0; i < replies.size(); i++) { BlogURI reply = (BlogURI)replies.get(i); _postBodyBuffer.append("<a ").append(getClass("summDetailReplyLink")).append(" href=\""); _postBodyBuffer.append(getPageURL(reply.getKeyHash(), null, reply.getEntryId(), -1, -1, true, _user.getShowImages())); _postBodyBuffer.append("\">"); _postBodyBuffer.append(getSpan("summDetailReplyAuthor")); BlogInfo replyAuthor = _archive.getBlogInfo(reply); if (replyAuthor != null) { _postBodyBuffer.append(sanitizeString(replyAuthor.getProperty(BlogInfo.NAME))); } else { _postBodyBuffer.append(reply.getKeyHash().toBase64().substring(0,16)); } _postBodyBuffer.append("</span> on "); _postBodyBuffer.append(getSpan("summDetailReplyDate")); _postBodyBuffer.append(getEntryDate(reply.getEntryId())); _postBodyBuffer.append("</a></span> "); } _postBodyBuffer.append("<br />"); } } String inReplyTo = (String)_headers.get(HEADER_IN_REPLY_TO); if ( (inReplyTo != null) && (inReplyTo.trim().length() > 0) ) { BlogURI replyURI = new BlogURI(inReplyTo); if (replyURI.getEntryId() > 0) { _postBodyBuffer.append(" <a ").append(getClass("summDetailParent")); _postBodyBuffer.append(" href=\""); _postBodyBuffer.append(getPageURL(replyURI.getKeyHash(), null, replyURI.getEntryId(), 0, 0, true, true)); _postBodyBuffer.append("\">(view parent)</a><br />\n"); } } _postBodyBuffer.append(" </td>\n"); _postBodyBuffer.append(" </form>\n"); _postBodyBuffer.append("</tr>\n"); }
|
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/952bcc696a06cd02073496e94eb387def2264bed/ThreadedHTMLRenderer.java/buggy/apps/syndie/java/src/net/i2p/syndie/sml/ThreadedHTMLRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6798,
1638,
1435,
288,
540,
389,
18031,
1892,
18,
6923,
2932,
32,
313,
667,
5189,
2767,
3790,
28219,
82,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
411,
687,
1301,
5189,
1945,
11461,
18,
24926,
2412,
707,
5189,
3264,
28219,
82,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
411,
4465,
20856,
5189,
23,
2412,
1244,
724,
5189,
3669,
2412,
5689,
5189,
4482,
28219,
82,
8863,
7734,
389,
18031,
1892,
18,
6923,
2932,
32,
2630,
618,
5189,
6345,
2412,
508,
13186,
2934,
6923,
12,
7465,
18415,
3381,
18,
8388,
67,
38,
4842,
1769,
3639,
389,
18031,
1892,
18,
6923,
2932,
2412,
460,
5189,
8863,
3639,
309,
261,
67,
4099,
480,
446,
13,
5411,
389,
18031,
1892,
18,
6923,
12,
2171,
1105,
18,
3015,
24899,
4099,
18,
588,
3098,
7675,
588,
653,
2310,
7675,
588,
751,
1435,
10019,
3639,
469,
5411,
389,
18031,
1892,
18,
6923,
2932,
8172,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
2412,
342,
5333,
82,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
32,
2630,
618,
5189,
6345,
2412,
508,
13186,
2934,
6923,
12,
7465,
18415,
3381,
18,
8388,
67,
19083,
1769,
3639,
389,
18031,
1892,
18,
6923,
2932,
2412,
460,
5189,
8863,
3639,
309,
261,
67,
4099,
480,
446,
13,
2398,
389,
18031,
1892,
18,
6923,
24899,
4099,
18,
588,
3098,
7675,
588,
1622,
548,
10663,
3639,
469,
5411,
389,
18031,
1892,
18,
6923,
2932,
8172,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
2412,
342,
5333,
82,
8863,
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,
6798,
1638,
1435,
288,
540,
389,
18031,
1892,
18,
6923,
2932,
32,
313,
667,
5189,
2767,
3790,
28219,
82,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
411,
687,
1301,
5189,
1945,
11461,
18,
24926,
2412,
707,
5189,
3264,
28219,
82,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
411,
4465,
20856,
5189,
23,
2412,
1244,
724,
5189,
3669,
2412,
5689,
5189,
4482,
28219,
82,
8863,
7734,
389,
18031,
1892,
18,
6923,
2932,
32,
2630,
618,
5189,
6345,
2412,
508,
13186,
2934,
6923,
12,
7465,
18415,
3381,
18,
8388,
67,
38,
4842,
1769,
3639,
389,
18031,
1892,
18,
6923,
2932,
2412,
460,
5189,
8863,
3639,
309,
261,
67,
4099,
480,
446,
13,
5411,
389,
18031,
1892,
2
] |
RegistryConfigIO registryIO = new RegistryConfigIO(spice,uarr);
|
RegistryConfigIO registryIO = new RegistryConfigIO(uarr);
|
public void saveConfiguration() { //System.out.println("saving config"); int pos = tabbedPane.getSelectedIndex(); //System.out.println("active tab: " + pos); // add a new local DAS source ... if ( pos == 1 ) { //System.out.println("adding new local DAS source"); logger.finest("adding new local DAS source"); HashMap formdata = new HashMap(); int formPos = -1 ; for ( int i = 0 ; i < colNames.length; i++) { String col = colNames[i]; if ( col.equals("public") || col.equals("active")) continue ; formPos++ ; Object o = entryFormFields.get(formPos); if ( o instanceof JTextField ) { //JTextField txt = (JTextField)entryFormFields.get(i); JTextField txt = (JTextField)o; String data = txt.getText(); //System.out.println(col + " " + data); formdata.put(col,data); } else if ( o instanceof JList ) { JList l = (JList) o ; Object[] obj = l.getSelectedValues(); String[] data = new String[obj.length]; System.arraycopy(obj,0,(Object[])data,0,obj.length); formdata.put(col,data); } else if ( o instanceof JComboBox) { JComboBox j = (JComboBox) o ; String[] data = new String[1]; data[0] = (String)j.getSelectedItem(); formdata.put(col,data); } } SpiceDasSource sds = new SpiceDasSource(); sds.setRegistered(false); sds.setUrl( (String) formdata.get("url")); sds.setAdminemail( (String) formdata.get("adminemail")); sds.setDescription( (String) formdata.get("description")); String [] coordSys = (String[]) formdata.get("coordinateSystems"); DasCoordinateSystem[] dcss = new DasCoordinateSystem[coordSys.length]; for ( int i = 0 ; i< coordSys.length;i++) { DasCoordinateSystem dcs = DasCoordinateSystem.fromString(coordSys[i]); dcss[i] = dcs; } sds.setCoordinateSystem(dcss); String[] capabs = (String[]) formdata.get("capabilities") ; //String[] split = capabs.split(" "); sds.setCapabilities(capabs); config.addServer(sds,true); updateDasSourceTable() ; //registryIO.saveConfiguration(); } // get PDB files from locally else if ( pos == 2 ) { String e = fileExtensions.getText() ; String[] exts = e.split(" "); config.setPDBFileExtensions(exts); // add a new "pseudo" DAS source SpiceDasSource sds = new SpiceDasSource(); sds.setRegistered(false); sds.setUrl("file://"+pdbDirectory.getText()); sds.setAdminemail("unknown@localhost.org"); sds.setDescription("Access PDB files from local installation. If file not found, retreive from public DAS server"); //String[] coordSys = new String[] { "PDBresnum", }; String[] capabs = new String[] { "structure", }; DasCoordinateSystem dcs = DasCoordinateSystem.fromString(PDBCOORDSYS); DasCoordinateSystem[] dcss = new DasCoordinateSystem[1]; dcss[0] = dcs; sds.setCoordinateSystem(dcss); sds.setCapabilities(capabs); config.addServer(sds,true); updateDasSourceTable(); } else if ( pos == 3 ) { String behave = (String)updateBehaveList.getSelectedItem(); //System.out.println("setting update behaviour to " + behave); logger.finest("setting update behaviour to " + behave); if ( behave.equals("once per day")) behave = "day" ; config.setUpdateBehave(behave); updateDasSourceTable(); } // save overall registry URL registryurl = config.getRegistryUrl(); URL[] uarr = new URL[1]; uarr[0] = registryurl; RegistryConfigIO registryIO = new RegistryConfigIO(spice,uarr); registryIO.setConfiguration(config); registryIO.saveConfiguration(); }
|
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/3050f213143d3dec47baf8e8541633d2139a3619/ConfigGui.java/buggy/src/org/biojava/spice/Config/ConfigGui.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1750,
1435,
288,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
87,
5339,
642,
8863,
3639,
509,
949,
273,
3246,
2992,
8485,
18,
588,
7416,
1016,
5621,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
3535,
3246,
30,
315,
397,
949,
1769,
4766,
565,
368,
527,
279,
394,
1191,
463,
3033,
1084,
1372,
3639,
309,
261,
949,
422,
404,
262,
288,
202,
18701,
368,
3163,
18,
659,
18,
8222,
2932,
3439,
394,
1191,
463,
3033,
1084,
8863,
5411,
1194,
18,
926,
395,
2932,
3439,
394,
1191,
463,
3033,
1084,
8863,
5411,
4317,
30642,
273,
394,
4317,
5621,
5411,
509,
646,
1616,
273,
300,
21,
274,
5411,
364,
261,
509,
277,
273,
374,
274,
277,
411,
645,
1557,
18,
2469,
31,
277,
27245,
288,
7734,
514,
645,
273,
645,
1557,
63,
77,
15533,
7734,
309,
261,
645,
18,
14963,
2932,
482,
7923,
747,
645,
18,
14963,
2932,
3535,
6,
3719,
5397,
1324,
274,
7734,
646,
1616,
9904,
274,
7734,
1033,
320,
273,
1241,
1204,
2314,
18,
588,
12,
687,
1616,
1769,
27573,
309,
261,
320,
1276,
804,
16157,
262,
288,
10792,
368,
46,
16157,
6463,
273,
261,
46,
16157,
13,
4099,
1204,
2314,
18,
588,
12,
77,
1769,
10792,
804,
16157,
6463,
273,
261,
46,
16157,
13,
83,
31,
10792,
514,
501,
273,
6463,
18,
588,
1528,
5621,
10792,
368,
3163,
18,
659,
18,
8222,
12,
1293,
397,
315,
315,
397,
501,
1769,
10792,
30642,
18,
458,
12,
1293,
16,
892,
1769,
7734,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1750,
1435,
288,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
87,
5339,
642,
8863,
3639,
509,
949,
273,
3246,
2992,
8485,
18,
588,
7416,
1016,
5621,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
3535,
3246,
30,
315,
397,
949,
1769,
4766,
565,
368,
527,
279,
394,
1191,
463,
3033,
1084,
1372,
3639,
309,
261,
949,
422,
404,
262,
288,
202,
18701,
368,
3163,
18,
659,
18,
8222,
2932,
3439,
394,
1191,
463,
3033,
1084,
8863,
5411,
1194,
18,
926,
395,
2932,
3439,
394,
1191,
463,
3033,
1084,
8863,
5411,
4317,
30642,
273,
394,
4317,
5621,
5411,
509,
646,
1616,
273,
300,
21,
274,
5411,
364,
261,
509,
277,
273,
374,
274,
277,
411,
2
] |
StyledText previousText = previousText(text); focusOn(previousText,0); e.doit = true;
|
if (e.widget == firstText) return; else { e.doit = false; previousTabAbortTraversal = true; firstText.traverse(SWT.TRAVERSE_TAB_PREVIOUS); return; } } if (previousTabAbortTraversal) { previousTabAbortTraversal = false;
|
public void keyTraversed(TraverseEvent e) { StyledText text = (StyledText)e.widget; switch (e.detail) { case SWT.TRAVERSE_ESCAPE: e.doit = true; break; case SWT.TRAVERSE_TAB_NEXT: // Handle Ctrl-Tab if ((e.stateMask & SWT.CTRL) != 0) { StyledText nextText = nextText(text); focusOn(nextText,0); e.doit = true; return; } // Find the next link in current widget, if applicable // Stop at top of widget StyleRange nextLink = findNextLink(text); if (nextLink == null) { // go to the next widget, focus at beginning StyledText nextText = nextText(text); nextText.setSelection(0); focusOn(nextText,0); } else { // focusOn: allow none tab traversals to align focusOn(text, text.getSelection().x); text.setSelectionRange(nextLink.start, nextLink.length); } e.detail = SWT.TRAVERSE_NONE; e.doit = true; break; case SWT.TRAVERSE_TAB_PREVIOUS: // Handle Ctrl-Shift-Tab if ((e.stateMask & SWT.CTRL) != 0) { StyledText previousText = previousText(text); focusOn(previousText,0); e.doit = true; return; } // Find the previous link in current widget, if applicable // Stop at top of widget also StyleRange previousLink = findPreviousLink(text); if (previousLink == null) { if (text.getSelection().x == 0) { // go to the previous widget, focus at end StyledText previousText = previousText(text); previousText.setSelection(previousText.getCharCount()); previousLink = findPreviousLink(previousText); if (previousLink == null) focusOn(previousText,0); else { focusOn(previousText, previousText.getSelection().x); previousText.setSelectionRange(previousLink.start, previousLink.length); } } else { // stay at top of this widget focusOn(text, 0); } } else { // focusOn: allow none tab traversals to align focusOn(text, text.getSelection().x); text.setSelectionRange(previousLink.start, previousLink.length); } e.detail = SWT.TRAVERSE_NONE; e.doit = true; break; default: break; } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/315d4fef732ebf20829b3ca4669f82abc5210af7/WelcomeEditor.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WelcomeEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
498,
1609,
7548,
12,
29654,
1133,
425,
13,
288,
1082,
202,
24273,
1259,
1528,
977,
273,
261,
24273,
1259,
1528,
13,
73,
18,
6587,
31,
25083,
202,
9610,
261,
73,
18,
8992,
13,
288,
1082,
202,
3593,
348,
8588,
18,
20060,
28489,
67,
24849,
30,
9506,
202,
73,
18,
2896,
305,
273,
638,
31,
9506,
202,
8820,
31,
1082,
202,
3593,
348,
8588,
18,
20060,
28489,
67,
28899,
67,
25539,
30,
9506,
202,
759,
5004,
30715,
17,
5661,
9506,
202,
430,
14015,
73,
18,
2019,
5796,
473,
348,
8588,
18,
23876,
48,
13,
480,
374,
13,
288,
6862,
202,
24273,
1259,
1528,
1024,
1528,
273,
1024,
1528,
12,
955,
1769,
6862,
202,
13923,
1398,
12,
4285,
1528,
16,
20,
1769,
6862,
202,
73,
18,
2896,
305,
273,
638,
31,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
759,
4163,
326,
1024,
1692,
316,
783,
3604,
16,
309,
12008,
9506,
202,
759,
5131,
622,
1760,
434,
3604,
9506,
202,
2885,
2655,
1024,
2098,
273,
19429,
2098,
12,
955,
1769,
9506,
202,
430,
261,
4285,
2098,
422,
446,
13,
288,
6862,
202,
759,
1960,
358,
326,
1024,
3604,
16,
7155,
622,
8435,
6862,
202,
24273,
1259,
1528,
1024,
1528,
273,
1024,
1528,
12,
955,
1769,
6862,
202,
4285,
1528,
18,
542,
6233,
12,
20,
1769,
6862,
202,
13923,
1398,
12,
4285,
1528,
16,
20,
1769,
9506,
202,
97,
9506,
202,
12107,
288,
6862,
202,
759,
7155,
1398,
30,
1699,
6555,
3246,
10704,
1031,
358,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
498,
1609,
7548,
12,
29654,
1133,
425,
13,
288,
1082,
202,
24273,
1259,
1528,
977,
273,
261,
24273,
1259,
1528,
13,
73,
18,
6587,
31,
25083,
202,
9610,
261,
73,
18,
8992,
13,
288,
1082,
202,
3593,
348,
8588,
18,
20060,
28489,
67,
24849,
30,
9506,
202,
73,
18,
2896,
305,
273,
638,
31,
9506,
202,
8820,
31,
1082,
202,
3593,
348,
8588,
18,
20060,
28489,
67,
28899,
67,
25539,
30,
9506,
202,
759,
5004,
30715,
17,
5661,
9506,
202,
430,
14015,
73,
18,
2019,
5796,
473,
348,
8588,
18,
23876,
48,
13,
480,
374,
13,
288,
6862,
202,
24273,
1259,
1528,
1024,
1528,
273,
1024,
1528,
12,
955,
1769,
6862,
202,
13923,
1398,
12,
2
] |
public void callSerially(Runnable r) { eventDispatcher.add(r); }
|
public void callSerially(Runnable r) { eventDispatcher.add(r); }
|
public void callSerially(Runnable r) { eventDispatcher.add(r); }
|
3541 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3541/4c797c68ce6f61a9d37ac7dc3622e936f213b564/Display.java/clean/microemulator/src/javax/microedition/lcdui/Display.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
745,
827,
6261,
12,
20013,
436,
13,
225,
288,
282,
202,
2575,
6681,
18,
1289,
12,
86,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
918,
745,
827,
6261,
12,
20013,
436,
13,
225,
288,
282,
202,
2575,
6681,
18,
1289,
12,
86,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
m_Instances = filter.useFilter(m_Instances, filter);
|
Instances newInstances = filter.useFilter(m_Instances, filter); if (newInstances == null || newInstances.numAttributes() < 1) { throw new Exception("Dataset is empty."); } m_Log.statusMessage("Saving undo information"); addUndoPoint(); m_Instances = newInstances;
|
protected void applyFilter() { if (m_IOThread == null) { m_IOThread = new Thread() { public void run() { try { Filter filter = (Filter) m_FilterEditor.getValue(); if (filter != null) { if (m_Log instanceof TaskLogger) { ((TaskLogger)m_Log).taskStarted(); } m_Log.statusMessage("Saving undo information"); addUndoPoint(); m_Log.statusMessage("Passing dataset through filter " + filter.getClass().getName()); filter.setInputFormat(m_Instances); m_Instances = filter.useFilter(m_Instances, filter); setInstances(m_Instances); if (m_Log instanceof TaskLogger) { ((TaskLogger)m_Log).taskFinished(); } } } catch (Exception ex) { if (m_Log instanceof TaskLogger) { ((TaskLogger)m_Log).taskFinished(); } // Pop up an error optionpane JOptionPane.showMessageDialog(PreprocessPanel.this, "Problem filtering instances:\n" + ex.getMessage(), "Apply Filter", JOptionPane.ERROR_MESSAGE); ex.printStackTrace(); m_Log.logMessage("Problem filtering instances: " + ex.getMessage()); } m_IOThread = null; } }; m_IOThread.setPriority(Thread.MIN_PRIORITY); // UI has most priority m_IOThread.start(); } else { JOptionPane.showMessageDialog(this, "Can't apply filter at this time,\n" + "currently busy with other IO", "Apply Filter", JOptionPane.WARNING_MESSAGE); } }
|
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/fb9f836f6b83d09f0414f640d0a28e09ad663200/PreprocessPanel.java/clean/weka/gui/explorer/PreprocessPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
2230,
1586,
1435,
288,
565,
309,
261,
81,
67,
4294,
3830,
422,
446,
13,
288,
1377,
312,
67,
4294,
3830,
273,
394,
4884,
1435,
288,
202,
482,
918,
1086,
1435,
288,
202,
225,
775,
288,
202,
565,
4008,
1034,
273,
261,
1586,
13,
312,
67,
1586,
6946,
18,
24805,
5621,
202,
565,
309,
261,
2188,
480,
446,
13,
288,
202,
377,
202,
1377,
309,
261,
81,
67,
1343,
1276,
3837,
3328,
13,
288,
202,
202,
12443,
2174,
3328,
13,
81,
67,
1343,
2934,
4146,
9217,
5621,
202,
1377,
289,
202,
1377,
312,
67,
1343,
18,
2327,
1079,
2932,
24660,
15436,
1779,
8863,
202,
1377,
527,
31224,
2148,
5621,
202,
1377,
312,
67,
1343,
18,
2327,
1079,
2932,
6433,
310,
3709,
3059,
1034,
315,
6862,
225,
397,
1034,
18,
588,
797,
7675,
17994,
10663,
202,
1377,
1034,
18,
542,
1210,
1630,
12,
81,
67,
5361,
1769,
202,
1377,
312,
67,
5361,
273,
1034,
18,
1202,
1586,
12,
81,
67,
5361,
16,
1034,
1769,
202,
1377,
444,
5361,
12,
81,
67,
5361,
1769,
202,
1377,
309,
261,
81,
67,
1343,
1276,
3837,
3328,
13,
288,
202,
202,
12443,
2174,
3328,
13,
81,
67,
1343,
2934,
4146,
10577,
5621,
202,
1377,
289,
202,
565,
289,
202,
377,
202,
225,
289,
1044,
261,
503,
431,
13,
288,
1082,
565,
309,
261,
81,
67,
1343,
1276,
3837,
3328,
13,
288,
202,
1377,
14015,
2174,
3328,
13,
81,
67,
1343,
2934,
4146,
10577,
5621,
202,
565,
289,
202,
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,
2230,
1586,
1435,
288,
565,
309,
261,
81,
67,
4294,
3830,
422,
446,
13,
288,
1377,
312,
67,
4294,
3830,
273,
394,
4884,
1435,
288,
202,
482,
918,
1086,
1435,
288,
202,
225,
775,
288,
202,
565,
4008,
1034,
273,
261,
1586,
13,
312,
67,
1586,
6946,
18,
24805,
5621,
202,
565,
309,
261,
2188,
480,
446,
13,
288,
202,
377,
202,
1377,
309,
261,
81,
67,
1343,
1276,
3837,
3328,
13,
288,
202,
202,
12443,
2174,
3328,
13,
81,
67,
1343,
2934,
4146,
9217,
5621,
202,
1377,
289,
202,
1377,
312,
67,
1343,
18,
2327,
1079,
2932,
24660,
15436,
1779,
8863,
202,
1377,
527,
31224,
2148,
5621,
202,
1377,
312,
67,
1343,
18,
2327,
1079,
2
] |
ruby_cref = (NODE)rubyFrame.getCbase();
|
ruby_cref = (NODE)getRubyFrame().getCbase();
|
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(ruby); pushClass(); RubyBlock block = rubyBlock.getTmp(); Frame frame = block.frame; frame.setPrev(rubyFrame); rubyFrame = frame; VALUE old_cref = ruby_cref; ruby_cref = (NODE)rubyFrame.getCbase(); RubyScope oldScope = ruby.rubyScope; ruby.rubyScope = block.scope; rubyBlock.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { dynamicVars = new RubyVarmap(null, null, block.dynamicVars); } else { dynamicVars = block.dynamicVars; } ruby_class = (klass != null) ? klass : block.klass; if (klass == null) { self = (RubyObject)block.self; } NODE node = block.body; if (block.var != null) { // try { if (block.var == NODE.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() != 0) { throw new RubyArgumentException("wrong # of arguments ("+ ((RubyArray)value).length() + " for 0)"); } } else { if (block.var.nd_type() == NODE_MASGN) { massign(self, block.var, value, acheck); } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() == 1) { value = ((RubyArray)value).entry(0); } assign(self, block.var, value, acheck); } } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() == 1) { value = ((RubyArray)value).entry(0); } } rubyIter.push(block.iter); while (true) { try { if (node == null) { result = ruby.getNil(); } else if (node.nd_type() == NODE_CFUNC || node.nd_type() == NODE_IFUNC) { if (value == null) { value = RubyArray.m_newArray(ruby, 0); } result = ((RubyCallbackMethod)node.nd_cfnc()).execute(value, new RubyObject[] {(RubyObject)node.nd_tval(), self}, ruby); } else { result = eval(self, node); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = ruby.getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: rubyIter.pop(); popClass(); RubyVarmap.pop(ruby); rubyBlock.setTmp(block); rubyFrame = rubyFrame.getPrev(); ruby_cref = (NODE)old_cref; // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); ruby.rubyScope = oldScope; /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/f220dcff8a7e427e32a7f1f1bc78f38876b83620/RubyInterpreter.java/buggy/org/jruby/interpreter/RubyInterpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
2824,
20,
12,
54,
10340,
921,
460,
16,
19817,
921,
365,
16,
19817,
3120,
7352,
16,
1250,
279,
1893,
13,
288,
3639,
19817,
921,
563,
273,
22155,
18,
588,
12616,
5621,
7734,
309,
16051,
12,
291,
1768,
6083,
1435,
747,
17646,
1768,
6083,
10756,
747,
261,
27768,
1768,
422,
446,
3719,
288,
5411,
604,
394,
3235,
2932,
23604,
2566,
596,
434,
1203,
8863,
3639,
289,
7734,
19817,
1537,
1458,
18,
6206,
12,
27768,
1769,
3639,
1817,
797,
5621,
3639,
19817,
1768,
1203,
273,
22155,
1768,
18,
588,
9161,
5621,
7734,
8058,
2623,
273,
1203,
18,
3789,
31,
3639,
2623,
18,
542,
9958,
12,
27768,
3219,
1769,
3639,
22155,
3219,
273,
2623,
31,
7734,
5848,
1592,
67,
71,
1734,
273,
22155,
67,
71,
1734,
31,
3639,
22155,
67,
71,
1734,
273,
261,
8744,
13,
588,
54,
10340,
3219,
7675,
588,
39,
1969,
5621,
7734,
19817,
3876,
1592,
3876,
273,
22155,
18,
27768,
3876,
31,
3639,
22155,
18,
27768,
3876,
273,
1203,
18,
4887,
31,
3639,
22155,
1768,
18,
5120,
5621,
7734,
309,
14015,
2629,
18,
7133,
473,
19817,
1768,
18,
11403,
67,
40,
67,
19444,
13,
480,
374,
13,
288,
5411,
5976,
5555,
273,
394,
19817,
1537,
1458,
12,
2011,
16,
446,
16,
1203,
18,
14507,
5555,
1769,
3639,
289,
469,
288,
5411,
5976,
5555,
273,
1203,
18,
14507,
5555,
31,
3639,
289,
7734,
22155,
67,
1106,
273,
261,
22626,
480,
446,
13,
692,
7352,
294,
1203,
18,
22626,
31,
3639,
309,
261,
22626,
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,
921,
2824,
20,
12,
54,
10340,
921,
460,
16,
19817,
921,
365,
16,
19817,
3120,
7352,
16,
1250,
279,
1893,
13,
288,
3639,
19817,
921,
563,
273,
22155,
18,
588,
12616,
5621,
7734,
309,
16051,
12,
291,
1768,
6083,
1435,
747,
17646,
1768,
6083,
10756,
747,
261,
27768,
1768,
422,
446,
3719,
288,
5411,
604,
394,
3235,
2932,
23604,
2566,
596,
434,
1203,
8863,
3639,
289,
7734,
19817,
1537,
1458,
18,
6206,
12,
27768,
1769,
3639,
1817,
797,
5621,
3639,
19817,
1768,
1203,
273,
22155,
1768,
18,
588,
9161,
5621,
7734,
8058,
2623,
273,
1203,
18,
3789,
31,
3639,
2623,
18,
542,
9958,
12,
27768,
3219,
1769,
3639,
22155,
3219,
273,
2623,
31,
7734,
5848,
1592,
2
] |
cmof.reflection.Object object = new cmof.OpaqueExpressionImpl(_22, extent, null, "cmof.OpaqueExpressionImpl", new String[]{"cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("language", "OCL");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _609);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _215);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("body", "self.member->forAll( memb | self.member->excluding(memb)->forAll(other | memb.isDistinguishableFrom(other, self)))");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {});
|
cmof.reflection.Object object = new cmof.ConstraintImpl(_582, extent, null, "cmof.ConstraintImpl", new String[]{"cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _590);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _590);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.Property.subsettingContext.null");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("specification", _45);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("constrainedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {_45});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _590);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("context", _590);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _4);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {_45});
|
private static cmof.reflection.Object getObject38(hub.sam.mof.reflection.ExtentImpl extent) { cmof.reflection.Object object = new cmof.OpaqueExpressionImpl(_22, extent, null, "cmof.OpaqueExpressionImpl", new String[]{"cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("language", "OCL");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _609);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _215);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("body", "self.member->forAll( memb | self.member->excluding(memb)->forAll(other | memb.isDistinguishableFrom(other, self)))");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {}); return object; }
|
11562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11562/de04478dee56227ec288b43e5ca731f9bbd84f7c/CMOF.java/buggy/SimpleMOF2/resources/repository/initial-src/cmof/CMOF.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
5003,
792,
18,
26606,
18,
921,
6455,
7414,
12,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
17639,
2828,
11933,
13,
288,
3639,
5003,
792,
18,
26606,
18,
921,
733,
273,
394,
5003,
792,
18,
5806,
2828,
24899,
8204,
22,
16,
11933,
16,
446,
16,
315,
7670,
792,
18,
5806,
2828,
3113,
394,
514,
63,
7073,
6,
7670,
792,
18,
7604,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
16078,
18,
7604,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
995,
12565,
87,
18,
1046,
3802,
6,
22938,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
4937,
3113,
389,
6162,
20,
1769,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
14422,
3113,
446,
1769,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
8443,
3113,
389,
6162,
20,
1769,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
19724,
461,
3113,
315,
7670,
792,
18,
1396,
18,
1717,
8920,
1042,
18,
2011,
8863,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
31543,
3113,
389,
7950,
1769,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
591,
31142,
1046,
3113,
394,
2252,
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,
760,
5003,
792,
18,
26606,
18,
921,
6455,
7414,
12,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
17639,
2828,
11933,
13,
288,
3639,
5003,
792,
18,
26606,
18,
921,
733,
273,
394,
5003,
792,
18,
5806,
2828,
24899,
8204,
22,
16,
11933,
16,
446,
16,
315,
7670,
792,
18,
5806,
2828,
3113,
394,
514,
63,
7073,
6,
7670,
792,
18,
7604,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
16078,
18,
7604,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
995,
12565,
87,
18,
1046,
3802,
6,
22938,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
4937,
3113,
389,
6162,
20,
2
] |
} else {
|
} else {
|
public void fillForward(int firstRow, int lastRow, int firstColumn, int lastColumn, int shape) { int lengthA = lastColumn - firstColumn +1; int lengthB = lastRow - firstRow +1; int i; fH[firstColumn] = fV[firstColumn] = gapOpen; fD[firstColumn] = 0; if (shape == gapInA) { fV[firstColumn] = 0; } else if ( shape == gapInB) { fH[firstColumn] = 0; } //fill row-by-row. First row is a special case for (i=firstColumn+1; i<=lastColumn; i++) { fD[i] = fV[i] = bigNumber; if (shape == gapInB) { fH[i] = gapExtend*(i-firstColumn); } else { //gapIna or noGap fH[i] = gapOpen + gapExtend*(i-firstColumn); } } int gapOpenOnA; int j; int tmp1H, tmp1D, tmp1V, tmp2H, tmp2D, tmp2V; //reuse the arrays, treating it as the next row in the DP table. Keep one temp variable for each array for (j=firstRow+1; j<=lastRow; j++) { // for each "row" in DP table tmp1H = fH[firstColumn]; tmp1D = fD[firstColumn]; tmp1V = fV[firstColumn]; fD[firstColumn] = fH[firstColumn] = bigNumber; if (shape == gapInA) { fV[firstColumn] = gapExtend*(j-firstRow); } else { //gapInB or noGap fV[firstColumn] = gapOpen + gapExtend*(j-firstRow); } for (i=firstColumn+1; i<=lastColumn; i++) { // for each column tmp2H = fH[i]; tmp2D = fD[i]; tmp2V = fV[i]; gapOpenOnA = gapOpen; if (keepGaps && followsGapSize[i-1]>0) gapOpenOnA = 0; if (isMinimize) { fV[i] = Math.min( fH[i] + gapOpen + gapExtend, Math.min ( fD[i] + gapOpen + gapExtend , fV[i] + gapExtend)); fH[i] = Math.min( fH[i-1] + gapExtend, Math.min ( fD[i-1] + gapOpenOnA + gapExtend, fV[i-1] + gapOpenOnA + gapExtend)); fD[i] = AlignUtil.getCost(subs,A[i-1],B[j-1],alphabetLength) + Math.min( tmp1H, Math.min ( tmp1D , tmp1V)); } else { //maximize fV[i] = Math.max( fH[i] + gapOpen + gapExtend, Math.max ( fD[i] + gapOpen + gapExtend , fV[i] + gapExtend)); fH[i] = Math.max( fH[i-1] + gapExtend, Math.max( fD[i-1] + gapOpenOnA + gapExtend, fV[i-1] + gapOpenOnA + gapExtend)); fD[i] = AlignUtil.getCost(subs,A[i-1],B[j-1],alphabetLength) + Math.max( tmp1H , Math.max( tmp1D, tmp1V )); } tmp1H = tmp2H; tmp1D = tmp2D; tmp1V = tmp2V; } } }
|
56479 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56479/da78339b75db62336a77494a111b24f70c77eb2d/AlignmentHelperLinearSpace.java/clean/Source/mesquite/align/lib/AlignmentHelperLinearSpace.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
8514,
12,
474,
1122,
1999,
16,
509,
1142,
1999,
16,
509,
1122,
1494,
16,
509,
1142,
1494,
16,
509,
2179,
13,
288,
202,
202,
474,
769,
37,
273,
1142,
1494,
300,
1122,
1494,
397,
21,
31,
202,
202,
474,
769,
38,
273,
1142,
1999,
300,
1122,
1999,
397,
21,
31,
202,
202,
474,
277,
31,
25083,
202,
74,
44,
63,
3645,
1494,
65,
273,
284,
58,
63,
3645,
1494,
65,
273,
9300,
3678,
31,
202,
202,
74,
40,
63,
3645,
1494,
65,
273,
374,
31,
9506,
202,
430,
261,
4867,
422,
9300,
382,
37,
13,
288,
1082,
202,
74,
58,
63,
3645,
1494,
65,
273,
374,
31,
202,
202,
97,
469,
309,
261,
2179,
422,
9300,
382,
38,
13,
288,
1082,
202,
74,
44,
63,
3645,
1494,
65,
273,
374,
31,
202,
202,
97,
9506,
202,
759,
5935,
1027,
17,
1637,
17,
492,
18,
5783,
1027,
353,
279,
4582,
648,
4697,
202,
1884,
261,
77,
33,
3645,
1494,
15,
21,
31,
277,
32,
33,
2722,
1494,
31,
277,
27245,
288,
1082,
202,
74,
40,
63,
77,
65,
273,
284,
58,
63,
77,
65,
273,
5446,
1854,
31,
1082,
202,
430,
261,
4867,
422,
9300,
382,
38,
13,
288,
9506,
202,
74,
44,
63,
77,
65,
273,
9300,
16675,
21556,
77,
17,
3645,
1494,
1769,
1082,
202,
97,
469,
288,
368,
14048,
382,
69,
578,
1158,
14001,
9506,
202,
74,
44,
63,
77,
65,
273,
9300,
3678,
397,
9300,
16675,
21556,
77,
17,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
8514,
12,
474,
1122,
1999,
16,
509,
1142,
1999,
16,
509,
1122,
1494,
16,
509,
1142,
1494,
16,
509,
2179,
13,
288,
202,
202,
474,
769,
37,
273,
1142,
1494,
300,
1122,
1494,
397,
21,
31,
202,
202,
474,
769,
38,
273,
1142,
1999,
300,
1122,
1999,
397,
21,
31,
202,
202,
474,
277,
31,
25083,
202,
74,
44,
63,
3645,
1494,
65,
273,
284,
58,
63,
3645,
1494,
65,
273,
9300,
3678,
31,
202,
202,
74,
40,
63,
3645,
1494,
65,
273,
374,
31,
9506,
202,
430,
261,
4867,
422,
9300,
382,
37,
13,
288,
1082,
202,
74,
58,
63,
3645,
1494,
65,
273,
374,
31,
202,
202,
97,
469,
309,
261,
2179,
2
] |
if (jj_3R_41()) return true;
|
if (jj_scan_token(WHITESPACE)) return true;
|
final private boolean jj_3R_28() { if (jj_3R_41()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/e128e4125429834f73621c8aa67036ca877e731e/Parser.java/buggy/src/java/org/apache/velocity/runtime/parser/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
6030,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
20767,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
6030,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
20767,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public synchronized void sfStart() throws SmartFrogException, RemoteException { super.sfStart();
|
public synchronized void sfStart() throws SmartFrogException, RemoteException { super.sfStart();
|
public synchronized void sfStart() throws SmartFrogException, RemoteException { super.sfStart(); // the last act is to inform the root process compound that the // subprocess is now ready for action - only done if not the root try { if (!sfIsRoot()) { ProcessCompound parent = sfLocateParent(); if (parent != null) { parent.sfNotifySubprocessReady(sfProcessName); } } } catch (RemoteException rex) { throw new SmartFrogRuntimeException(MSG_FAILED_TO_CONTACT_PARENT, rex, this); } }
|
4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/d2cf49b1064ba9310d5881745dac48d626db2211/ProcessCompoundImpl.java/clean/core/smartfrog/src/org/smartfrog/sfcore/processcompound/ProcessCompoundImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
9033,
1685,
1435,
1216,
19656,
42,
303,
75,
503,
16,
18361,
288,
565,
2240,
18,
21668,
1685,
5621,
565,
368,
326,
1142,
1328,
353,
358,
13235,
326,
1365,
1207,
11360,
716,
326,
565,
368,
6652,
353,
2037,
5695,
364,
1301,
300,
1338,
2731,
309,
486,
326,
1365,
565,
775,
288,
3639,
309,
16051,
21668,
2520,
2375,
10756,
288,
3639,
4389,
16835,
982,
273,
9033,
1333,
340,
3054,
5621,
3639,
309,
261,
2938,
480,
446,
13,
288,
5411,
982,
18,
21668,
9168,
1676,
2567,
8367,
12,
21668,
2227,
461,
1769,
3639,
289,
3639,
289,
565,
289,
1044,
261,
5169,
503,
28929,
13,
288,
3639,
604,
394,
19656,
42,
303,
75,
11949,
12,
11210,
67,
11965,
67,
4296,
67,
6067,
6526,
67,
14943,
16,
13491,
28929,
16,
333,
1769,
565,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
9033,
1685,
1435,
1216,
19656,
42,
303,
75,
503,
16,
18361,
288,
565,
2240,
18,
21668,
1685,
5621,
565,
368,
326,
1142,
1328,
353,
358,
13235,
326,
1365,
1207,
11360,
716,
326,
565,
368,
6652,
353,
2037,
5695,
364,
1301,
300,
1338,
2731,
309,
486,
326,
1365,
565,
775,
288,
3639,
309,
16051,
21668,
2520,
2375,
10756,
288,
3639,
4389,
16835,
982,
273,
9033,
1333,
340,
3054,
5621,
3639,
309,
261,
2938,
480,
446,
13,
288,
5411,
982,
18,
21668,
9168,
1676,
2567,
8367,
12,
21668,
2227,
461,
1769,
3639,
289,
3639,
289,
565,
289,
1044,
261,
5169,
503,
28929,
13,
288,
3639,
604,
394,
19656,
42,
303,
75,
11949,
12,
11210,
67,
11965,
67,
2
] |
IProjectDescription newDescription = createDescription( project, projectName, newLocation); monitor.worked(50); project.copy(newDescription, IResource.SHALLOW | IResource.FORCE, monitor); monitor.worked(50); } catch (CoreException e) { recordError(e); } finally { monitor.done(); } } }; try { new ProgressMonitorJobsDialog(shell).run(true, true, op); } catch (InterruptedException e) { return false; } catch (InvocationTargetException e) { displayError(NLS.bind(IDEWorkbenchMessages.CopyProjectAction_internalError, e.getTargetException().getMessage())); return false; } return true; }
|
return true; }
|
boolean performCopy(final IProject project, final String projectName, final IPath newLocation) { WorkspaceModifyOperation op = new WorkspaceModifyOperation() { public void execute(IProgressMonitor monitor) { monitor.beginTask(COPY_PROGRESS_TITLE, 100); try { if (monitor.isCanceled()) { throw new OperationCanceledException(); } //Get a copy of the current description and modify it IProjectDescription newDescription = createDescription( project, projectName, newLocation); monitor.worked(50); project.copy(newDescription, IResource.SHALLOW | IResource.FORCE, monitor); monitor.worked(50); } catch (CoreException e) { recordError(e); // log error } finally { monitor.done(); } } }; try { new ProgressMonitorJobsDialog(shell).run(true, true, op); } catch (InterruptedException e) { return false; } catch (InvocationTargetException e) { displayError(NLS.bind(IDEWorkbenchMessages.CopyProjectAction_internalError, e.getTargetException().getMessage())); return false; } return true; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/53cada7d6d0463cdcb3aed320ea380f4aae64087/CopyProjectAction.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyProjectAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
3073,
2951,
12,
6385,
467,
4109,
1984,
16,
727,
514,
17234,
16,
5411,
727,
467,
743,
394,
2735,
13,
288,
3639,
14396,
11047,
2988,
1061,
273,
394,
14396,
11047,
2988,
1435,
288,
5411,
1071,
918,
1836,
12,
45,
5491,
7187,
6438,
13,
288,
7734,
6438,
18,
10086,
2174,
12,
24875,
67,
24022,
67,
14123,
16,
2130,
1769,
7734,
775,
288,
10792,
309,
261,
10259,
18,
291,
23163,
10756,
288,
25083,
202,
12849,
394,
4189,
23163,
503,
5621,
6862,
202,
97,
10792,
368,
967,
279,
1610,
434,
326,
783,
2477,
471,
5612,
518,
10792,
467,
4109,
3291,
394,
3291,
273,
752,
3291,
12,
18701,
1984,
16,
17234,
16,
394,
2735,
1769,
10792,
6438,
18,
1252,
329,
12,
3361,
1769,
10792,
1984,
18,
3530,
12,
2704,
3291,
16,
467,
1420,
18,
2664,
13511,
18701,
571,
467,
1420,
18,
27817,
16,
6438,
1769,
10792,
6438,
18,
1252,
329,
12,
3361,
1769,
7734,
289,
1044,
261,
25341,
425,
13,
288,
10792,
1409,
668,
12,
73,
1769,
368,
613,
555,
7734,
289,
3095,
288,
10792,
6438,
18,
8734,
5621,
7734,
289,
5411,
289,
3639,
289,
31,
3639,
775,
288,
5411,
394,
10980,
7187,
7276,
6353,
12,
10304,
2934,
2681,
12,
3767,
16,
638,
16,
1061,
1769,
3639,
289,
1044,
261,
24485,
503,
425,
13,
288,
5411,
327,
629,
31,
3639,
289,
1044,
261,
9267,
14950,
425,
13,
288,
5411,
2562,
668,
12,
5106,
18,
4376,
12,
10385,
2421,
22144,
5058,
18,
2951,
4109,
1803,
67,
7236,
668,
16,
425,
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,
1250,
3073,
2951,
12,
6385,
467,
4109,
1984,
16,
727,
514,
17234,
16,
5411,
727,
467,
743,
394,
2735,
13,
288,
3639,
14396,
11047,
2988,
1061,
273,
394,
14396,
11047,
2988,
1435,
288,
5411,
1071,
918,
1836,
12,
45,
5491,
7187,
6438,
13,
288,
7734,
6438,
18,
10086,
2174,
12,
24875,
67,
24022,
67,
14123,
16,
2130,
1769,
7734,
775,
288,
10792,
309,
261,
10259,
18,
291,
23163,
10756,
288,
25083,
202,
12849,
394,
4189,
23163,
503,
5621,
6862,
202,
97,
10792,
368,
967,
279,
1610,
434,
326,
783,
2477,
471,
5612,
518,
10792,
467,
4109,
3291,
394,
3291,
273,
752,
3291,
12,
18701,
1984,
16,
17234,
16,
394,
2735,
1769,
10792,
6438,
18,
1252,
329,
12,
3361,
2
] |
else if ( at.getPackage() == null && constructor.getDeclaringClass().getPackage() != null ) {
|
else if ( at.getPackage() == null && klass.getPackage() != null ) {
|
protected boolean accessibleToConstructor(final Class at, final Constructor constructor) { boolean accessible = false; if (Modifier.isPublic(constructor.getModifiers())) { accessible = true; } else if (Modifier.isPrivate(constructor.getModifiers())) { accessible = at.getName().equals(constructor.getName()); } else if ( Modifier.isProtected(constructor.getModifiers()) ) { if ( at.getPackage() == null && constructor.getDeclaringClass().getPackage() == null ) { accessible = true; } else if ( at.getPackage() == null && constructor.getDeclaringClass().getPackage() != null ) { accessible = false; } else if ( at.getPackage() != null && constructor.getDeclaringClass().getPackage() == null ) { accessible = false; } else if ( at.getPackage().equals(constructor.getDeclaringClass().getPackage()) ) { accessible = true; } else { boolean flag = false; Class clazz = at; while ( !flag && clazz != null ) { if (clazz.equals(constructor.getDeclaringClass()) ) { flag = true; break; } if (clazz.equals(Object.class) ) { break; } clazz = clazz.getSuperclass(); } accessible = flag; } } else { if ( at.getPackage() == null && constructor.getDeclaringClass().getPackage() == null ) { accessible = true; } else if ( at.getPackage() == null && constructor.getDeclaringClass().getPackage() != null ) { accessible = false; } else if ( at.getPackage() != null && constructor.getDeclaringClass().getPackage() == null ) { accessible = false; } else if ( at.getPackage().equals(constructor.getDeclaringClass().getPackage()) ) { accessible = true; } } return accessible; }
|
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/860ef6a65d30982bc2e0ba4ace5fbd18013fda30/MetaClass.java/clean/src/main/groovy/lang/MetaClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
1250,
12718,
774,
6293,
12,
6385,
1659,
622,
16,
727,
11417,
3885,
13,
288,
4202,
1250,
12718,
273,
629,
31,
4202,
309,
261,
9829,
18,
291,
4782,
12,
12316,
18,
588,
11948,
1435,
3719,
288,
6647,
12718,
273,
638,
31,
4202,
289,
4202,
469,
309,
261,
9829,
18,
291,
6014,
12,
12316,
18,
588,
11948,
1435,
3719,
288,
6647,
12718,
273,
622,
18,
17994,
7675,
14963,
12,
12316,
18,
17994,
10663,
4202,
289,
4202,
469,
309,
261,
12832,
18,
291,
15933,
12,
12316,
18,
588,
11948,
10756,
262,
288,
6647,
309,
261,
622,
18,
588,
2261,
1435,
422,
446,
597,
3885,
18,
588,
3456,
14682,
7675,
588,
2261,
1435,
422,
446,
262,
288,
9079,
12718,
273,
638,
31,
6647,
289,
6647,
469,
309,
261,
622,
18,
588,
2261,
1435,
422,
446,
597,
7352,
18,
588,
2261,
1435,
480,
446,
262,
288,
9079,
12718,
273,
629,
31,
6647,
289,
6647,
469,
309,
261,
622,
18,
588,
2261,
1435,
480,
446,
597,
3885,
18,
588,
3456,
14682,
7675,
588,
2261,
1435,
422,
446,
262,
288,
9079,
12718,
273,
629,
31,
6647,
289,
6647,
469,
309,
261,
622,
18,
588,
2261,
7675,
14963,
12,
12316,
18,
588,
3456,
14682,
7675,
588,
2261,
10756,
262,
288,
9079,
12718,
273,
638,
31,
6647,
289,
6647,
469,
288,
9079,
1250,
2982,
273,
629,
31,
9079,
1659,
4003,
273,
622,
31,
9079,
1323,
261,
401,
6420,
597,
4003,
480,
446,
262,
288,
10402,
309,
261,
830,
3638,
18,
14963,
12,
12316,
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,
565,
4750,
1250,
12718,
774,
6293,
12,
6385,
1659,
622,
16,
727,
11417,
3885,
13,
288,
4202,
1250,
12718,
273,
629,
31,
4202,
309,
261,
9829,
18,
291,
4782,
12,
12316,
18,
588,
11948,
1435,
3719,
288,
6647,
12718,
273,
638,
31,
4202,
289,
4202,
469,
309,
261,
9829,
18,
291,
6014,
12,
12316,
18,
588,
11948,
1435,
3719,
288,
6647,
12718,
273,
622,
18,
17994,
7675,
14963,
12,
12316,
18,
17994,
10663,
4202,
289,
4202,
469,
309,
261,
12832,
18,
291,
15933,
12,
12316,
18,
588,
11948,
10756,
262,
288,
6647,
309,
261,
622,
18,
588,
2261,
1435,
422,
446,
597,
3885,
18,
588,
3456,
14682,
7675,
588,
2261,
1435,
422,
446,
262,
288,
9079,
12718,
273,
638,
2
] |
b.statements().add(target.newTypeDeclarationStatement(target.newTypeDeclaration())); b.statements().add(target.newVariableDeclarationStatement(target.newVariableDeclarationFragment())); b.statements().add(target.newWhileStatement());
|
TypeDeclaration typeDeclaration = target.newTypeDeclaration(); typeDeclaration.setSourceRange(140, 5); TypeDeclarationStatement typeDeclarationStatement = target.newTypeDeclarationStatement(typeDeclaration); typeDeclarationStatement.setSourceRange(140, 6); b.statements().add(typeDeclarationStatement); VariableDeclarationFragment variableDeclarationFragment2 = target.newVariableDeclarationFragment(); variableDeclarationFragment2.setSourceRange(150, 5); VariableDeclarationStatement variableDeclarationStatement = target.newVariableDeclarationStatement(variableDeclarationFragment2); variableDeclarationStatement.setSourceRange(150, 6); b.statements().add(variableDeclarationStatement); WhileStatement whileStatement = target.newWhileStatement(); whileStatement.setSourceRange(155, 5); b.statements().add(whileStatement);
|
ASTNode oneOfEach(AST target) { CompilationUnit cu = target.newCompilationUnit(); PackageDeclaration pd = target.newPackageDeclaration(); cu.setPackage(pd); ImportDeclaration im = target.newImportDeclaration(); cu.imports().add(im); TypeDeclaration td = target.newTypeDeclaration(); td.setJavadoc(target.newJavadoc()); cu.types().add(td); FieldDeclaration fd = target.newFieldDeclaration(target.newVariableDeclarationFragment()); td.bodyDeclarations().add(fd); Initializer in = target.newInitializer(); td.bodyDeclarations().add(in); MethodDeclaration md = target.newMethodDeclaration(); md.parameters().add(target.newSingleVariableDeclaration()); td.bodyDeclarations().add(md); SimpleName sn1 = target.newSimpleName("one"); SimpleName sn2 =target.newSimpleName("two"); QualifiedName qn = target.newQualifiedName(sn1, sn2); SimpleType st = target.newSimpleType(qn); PrimitiveType pt = target.newPrimitiveType(PrimitiveType.INT); ArrayType at = target.newArrayType(st); md.setReturnType(at); fd.setType(pt); Block b = target.newBlock(); md.setBody(b); // all statements (in alphabetic order of statement type) b.statements().add(target.newAssertStatement()); b.statements().add(target.newBlock()); b.statements().add(target.newBreakStatement()); b.statements().add(target.newContinueStatement()); b.statements().add(target.newConstructorInvocation()); b.statements().add(target.newDoStatement()); b.statements().add(target.newEmptyStatement()); b.statements().add(target.newExpressionStatement(target.newNullLiteral())); b.statements().add(target.newForStatement()); b.statements().add(target.newIfStatement()); b.statements().add(target.newLabeledStatement()); b.statements().add(target.newReturnStatement()); b.statements().add(target.newSuperConstructorInvocation()); SwitchStatement ss = target.newSwitchStatement(); ss.statements().add(target.newSwitchCase()); b.statements().add(ss); b.statements().add(target.newSwitchStatement()); b.statements().add(target.newSwitchCase()); b.statements().add(target.newSynchronizedStatement()); b.statements().add(target.newThrowStatement()); TryStatement tr = target.newTryStatement(); tr.catchClauses().add(target.newCatchClause()); b.statements().add(tr); b.statements().add(target.newTypeDeclarationStatement(target.newTypeDeclaration())); b.statements().add(target.newVariableDeclarationStatement(target.newVariableDeclarationFragment())); b.statements().add(target.newWhileStatement()); // all expressions (in alphabetic order of expressions type) MethodInvocation inv = target.newMethodInvocation(); b.statements().add(target.newExpressionStatement(inv)); List z = inv.arguments(); z.add(target.newArrayAccess()); z.add(target.newArrayCreation()); z.add(target.newArrayInitializer()); z.add(target.newAssignment()); z.add(target.newBooleanLiteral(true)); z.add(target.newCastExpression()); z.add(target.newCharacterLiteral()); ClassInstanceCreation cic = target.newClassInstanceCreation(); cic.setAnonymousClassDeclaration(target.newAnonymousClassDeclaration()); z.add(cic); z.add(target.newConditionalExpression()); z.add(target.newFieldAccess()); z.add(target.newInfixExpression()); z.add(target.newInstanceofExpression()); z.add(target.newMethodInvocation()); z.add(target.newName(new String[]{"a", "b"})); z.add(target.newNullLiteral()); z.add(target.newNumberLiteral("1024")); z.add(target.newParenthesizedExpression()); z.add(target.newPostfixExpression()); z.add(target.newPrefixExpression()); z.add(target.newStringLiteral()); z.add(target.newSuperFieldAccess()); z.add(target.newSuperMethodInvocation()); z.add(target.newThisExpression()); z.add(target.newTypeLiteral()); z.add(target.newVariableDeclarationExpression( target.newVariableDeclarationFragment())); return cu; }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/c031ab550e0c935f0d3bdde7460740acefcf0f31/ASTTest.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
9053,
907,
1245,
951,
3442,
12,
9053,
1018,
13,
288,
202,
202,
19184,
2802,
15985,
273,
1018,
18,
2704,
19184,
2802,
5621,
9506,
202,
2261,
6094,
4863,
273,
1018,
18,
2704,
2261,
6094,
5621,
202,
202,
6319,
18,
542,
2261,
12,
22353,
1769,
9506,
202,
5010,
6094,
709,
273,
1018,
18,
2704,
5010,
6094,
5621,
202,
202,
6319,
18,
21350,
7675,
1289,
12,
381,
1769,
9506,
202,
559,
6094,
6655,
273,
1018,
18,
2704,
559,
6094,
5621,
202,
202,
4465,
18,
542,
24060,
12,
3299,
18,
2704,
24060,
10663,
202,
202,
6319,
18,
2352,
7675,
1289,
12,
4465,
1769,
9506,
202,
974,
6094,
5194,
273,
1875,
202,
3299,
18,
2704,
974,
6094,
12,
3299,
18,
2704,
26547,
7456,
10663,
202,
202,
4465,
18,
3432,
21408,
7675,
1289,
12,
8313,
1769,
6862,
202,
14729,
316,
273,
1018,
18,
2704,
14729,
5621,
202,
202,
4465,
18,
3432,
21408,
7675,
1289,
12,
267,
1769,
6862,
202,
1305,
6094,
3481,
273,
1018,
18,
2704,
1305,
6094,
5621,
202,
202,
1264,
18,
3977,
7675,
1289,
12,
3299,
18,
2704,
5281,
26547,
10663,
202,
202,
4465,
18,
3432,
21408,
7675,
1289,
12,
1264,
1769,
9506,
202,
5784,
461,
4556,
21,
273,
1018,
18,
2704,
5784,
461,
2932,
476,
8863,
202,
202,
5784,
461,
4556,
22,
273,
3299,
18,
2704,
5784,
461,
2932,
15415,
8863,
202,
202,
12345,
31054,
273,
1018,
18,
2704,
12345,
12,
8134,
21,
16,
4556,
22,
1769,
202,
202,
5784,
559,
384,
273,
1018,
18,
2704,
5784,
559,
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,
9053,
907,
1245,
951,
3442,
12,
9053,
1018,
13,
288,
202,
202,
19184,
2802,
15985,
273,
1018,
18,
2704,
19184,
2802,
5621,
9506,
202,
2261,
6094,
4863,
273,
1018,
18,
2704,
2261,
6094,
5621,
202,
202,
6319,
18,
542,
2261,
12,
22353,
1769,
9506,
202,
5010,
6094,
709,
273,
1018,
18,
2704,
5010,
6094,
5621,
202,
202,
6319,
18,
21350,
7675,
1289,
12,
381,
1769,
9506,
202,
559,
6094,
6655,
273,
1018,
18,
2704,
559,
6094,
5621,
202,
202,
4465,
18,
542,
24060,
12,
3299,
18,
2704,
24060,
10663,
202,
202,
6319,
18,
2352,
7675,
1289,
12,
4465,
1769,
9506,
202,
974,
6094,
5194,
273,
1875,
202,
3299,
18,
2704,
974,
6094,
12,
3299,
18,
2704,
26547,
2
] |
private IPath getNewNameFor(IPath originalName, IWorkspace workspace) { int counter = 1; String resourceName = originalName.lastSegment(); IPath leadupSegment = originalName.removeLastSegments(1); while (true) { String nameSegment; if (counter > 1) nameSegment = WorkbenchMessages.format("CopyFilesAndFoldersOperation.copyNameTwoArgs", new Object[] {new Integer(counter), resourceName}); //$NON-NLS-1$ else nameSegment = WorkbenchMessages.format("CopyFilesAndFoldersOperation.copyNameOneArg", new Object[] {resourceName}); //$NON-NLS-1$ IPath pathToTry = leadupSegment.append(nameSegment); if (!workspace.getRoot().exists(pathToTry)) return pathToTry; counter++; } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/bf752ac27dbe2a869d9900197181599a8561dc6a/CopyFilesAndFoldersOperation.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
743,
12654,
461,
1290,
12,
45,
743,
2282,
461,
16,
467,
8241,
6003,
13,
288,
202,
202,
474,
3895,
273,
404,
31,
202,
202,
780,
9546,
273,
2282,
461,
18,
2722,
4131,
5621,
202,
202,
45,
743,
5871,
416,
4131,
273,
2282,
461,
18,
4479,
3024,
7946,
12,
21,
1769,
9506,
202,
17523,
261,
3767,
13,
288,
1082,
202,
780,
508,
4131,
31,
25083,
202,
430,
261,
7476,
405,
404,
13,
9506,
202,
529,
4131,
273,
4147,
22144,
5058,
18,
2139,
2932,
2951,
2697,
1876,
14885,
2988,
18,
3530,
461,
11710,
2615,
3113,
394,
1033,
8526,
288,
2704,
2144,
12,
7476,
3631,
9546,
22938,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
12107,
9506,
202,
529,
4131,
273,
4147,
22144,
5058,
18,
2139,
2932,
2951,
2697,
1876,
14885,
2988,
18,
3530,
461,
3335,
4117,
3113,
394,
1033,
8526,
288,
3146,
461,
22938,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
1082,
202,
45,
743,
12221,
7833,
273,
5871,
416,
4131,
18,
6923,
12,
529,
4131,
1769,
25083,
202,
430,
16051,
14915,
18,
588,
2375,
7675,
1808,
12,
803,
774,
7833,
3719,
9506,
202,
2463,
12221,
7833,
31,
6862,
1082,
202,
7476,
9904,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
743,
12654,
461,
1290,
12,
45,
743,
2282,
461,
16,
467,
8241,
6003,
13,
288,
202,
202,
474,
3895,
273,
404,
31,
202,
202,
780,
9546,
273,
2282,
461,
18,
2722,
4131,
5621,
202,
202,
45,
743,
5871,
416,
4131,
273,
2282,
461,
18,
4479,
3024,
7946,
12,
21,
1769,
9506,
202,
17523,
261,
3767,
13,
288,
1082,
202,
780,
508,
4131,
31,
25083,
202,
430,
261,
7476,
405,
404,
13,
9506,
202,
529,
4131,
273,
4147,
22144,
5058,
18,
2139,
2932,
2951,
2697,
1876,
14885,
2988,
18,
3530,
461,
11710,
2615,
3113,
394,
1033,
8526,
288,
2704,
2144,
12,
7476,
3631,
9546,
22938,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
12107,
9506,
2
] |
||
private ArrayList getListForElement(HTMLElement element)
|
private ArrayList<HTMLElement> getListForElement(HTMLElement element)
|
private ArrayList getListForElement(HTMLElement element) { if (element instanceof WebLink) { return _linkList; } if (element instanceof WebForm) { return _formsList; } if (element instanceof WebImage) { return _imagesList; } if (element instanceof WebApplet) { return _appletList; } if (element instanceof WebTable) { return _tableList; } if (element instanceof WebFrame) { return _frameList; } if (element instanceof BlockElement) { return _blocksList; } return null; }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/58ae99e3de1e22516343ed73dc8f9dea9d8b3823/ParsedHTML.java/clean/wicket-examples/src/test/com/meterware/httpunit/ParsedHTML.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2407,
10033,
1290,
1046,
12,
5062,
11155,
930,
13,
202,
95,
202,
202,
430,
261,
2956,
1276,
2999,
2098,
13,
202,
202,
95,
1082,
202,
2463,
389,
1232,
682,
31,
202,
202,
97,
202,
202,
430,
261,
2956,
1276,
2999,
1204,
13,
202,
202,
95,
1082,
202,
2463,
389,
9741,
682,
31,
202,
202,
97,
202,
202,
430,
261,
2956,
1276,
2999,
2040,
13,
202,
202,
95,
1082,
202,
2463,
389,
7369,
682,
31,
202,
202,
97,
202,
202,
430,
261,
2956,
1276,
2999,
23696,
13,
202,
202,
95,
1082,
202,
2463,
389,
438,
1469,
682,
31,
202,
202,
97,
202,
202,
430,
261,
2956,
1276,
2999,
1388,
13,
202,
202,
95,
1082,
202,
2463,
389,
2121,
682,
31,
202,
202,
97,
202,
202,
430,
261,
2956,
1276,
2999,
3219,
13,
202,
202,
95,
1082,
202,
2463,
389,
3789,
682,
31,
202,
202,
97,
202,
202,
430,
261,
2956,
1276,
3914,
1046,
13,
202,
202,
95,
1082,
202,
2463,
389,
7996,
682,
31,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2407,
10033,
1290,
1046,
12,
5062,
11155,
930,
13,
202,
95,
202,
202,
430,
261,
2956,
1276,
2999,
2098,
13,
202,
202,
95,
1082,
202,
2463,
389,
1232,
682,
31,
202,
202,
97,
202,
202,
430,
261,
2956,
1276,
2999,
1204,
13,
202,
202,
95,
1082,
202,
2463,
389,
9741,
682,
31,
202,
202,
97,
202,
202,
430,
261,
2956,
1276,
2999,
2040,
13,
202,
202,
95,
1082,
202,
2463,
389,
7369,
682,
31,
202,
202,
97,
202,
202,
430,
261,
2956,
1276,
2999,
23696,
13,
202,
202,
95,
1082,
202,
2463,
389,
438,
1469,
682,
31,
202,
202,
97,
202,
202,
430,
261,
2956,
1276,
2999,
1388,
13,
202,
202,
95,
1082,
202,
2463,
389,
2
] |
api.parameter("fov", 80);
|
api.parameter("fov", 80f);
|
public boolean parse(String filename, SunflowAPI api) { try { UI.printInfo(Module.USER, "RA2 - Reading geometry: \"%s\" ...", filename); File file = new File(filename); FileInputStream stream = new FileInputStream(filename); MappedByteBuffer map = stream.getChannel().map(FileChannel.MapMode.READ_ONLY, 0, file.length()); map.order(ByteOrder.LITTLE_ENDIAN); FloatBuffer buffer = map.asFloatBuffer(); float[] data = new float[buffer.capacity()]; for (int i = 0; i < data.length; i++) data[i] = buffer.get(i); stream.close(); api.parameter("points", "point", "vertex", data); int[] triangles = new int[3 * (data.length / 9)]; for (int i = 0; i < triangles.length; i++) triangles[i] = i; // create geo api.parameter("triangles", triangles); api.geometry(filename, new Mesh()); // create shader api.shader(filename + ".shader", new SimpleShader()); // create instance api.parameter("shaders", filename + ".shader"); api.instance(filename + ".instance", filename); } catch (FileNotFoundException e) { e.printStackTrace(); return false; } catch (IOException e) { e.printStackTrace(); return false; } try { filename = filename.replace(".ra2", ".txt"); UI.printInfo(Module.USER, "RA2 - Reading camera : \"%s\" ...", filename); Parser p = new Parser(filename); Point3 eye = new Point3(); eye.x = p.getNextFloat(); eye.y = p.getNextFloat(); eye.z = p.getNextFloat(); Point3 to = new Point3(); to.x = p.getNextFloat(); to.y = p.getNextFloat(); to.z = p.getNextFloat(); Vector3 up = new Vector3(); switch (p.getNextInt()) { case 0: up.set(1, 0, 0); break; case 1: up.set(0, 1, 0); break; case 2: up.set(0, 0, 1); break; default: UI.printWarning(Module.USER, "RA2 - Invalid up vector specification - using Z axis"); up.set(0, 0, 1); break; } api.parameter("eye", eye); api.parameter("target", to); api.parameter("up", up); String name = api.getUniqueName("camera"); api.parameter("fov", 80); api.camera(name, new PinholeLens()); api.parameter("resolutionX", 1024); api.parameter("resolutionY", 1024); api.options(SunflowAPI.DEFAULT_OPTIONS); p.close(); } catch (FileNotFoundException e) { UI.printWarning(Module.USER, "RA2 - Camera file not found"); } catch (IOException e) { e.printStackTrace(); return false; } return true; }
|
51147 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51147/da18205560970d0ef3aff90bb90b9b641fc48681/RA2Parser.java/buggy/src/org/sunflow/core/parser/RA2Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1109,
12,
780,
1544,
16,
31608,
2426,
2557,
1536,
13,
288,
3639,
775,
288,
5411,
6484,
18,
1188,
966,
12,
3120,
18,
4714,
16,
315,
2849,
22,
300,
31941,
5316,
30,
22049,
87,
2412,
1372,
3113,
1544,
1769,
5411,
1387,
585,
273,
394,
1387,
12,
3459,
1769,
5411,
11907,
1407,
273,
394,
11907,
12,
3459,
1769,
5411,
22806,
12242,
852,
273,
1407,
18,
588,
2909,
7675,
1458,
12,
812,
2909,
18,
863,
2309,
18,
6949,
67,
10857,
16,
374,
16,
585,
18,
2469,
10663,
5411,
852,
18,
1019,
12,
3216,
2448,
18,
15716,
56,
900,
67,
30597,
1769,
5411,
5450,
1892,
1613,
273,
852,
18,
345,
4723,
1892,
5621,
5411,
1431,
8526,
501,
273,
394,
1431,
63,
4106,
18,
16017,
1435,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
501,
18,
2469,
31,
277,
27245,
7734,
501,
63,
77,
65,
273,
1613,
18,
588,
12,
77,
1769,
5411,
1407,
18,
4412,
5621,
5411,
1536,
18,
6775,
2932,
4139,
3113,
315,
1153,
3113,
315,
15281,
3113,
501,
1769,
5411,
509,
8526,
19959,
273,
394,
509,
63,
23,
380,
261,
892,
18,
2469,
342,
2468,
13,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
19959,
18,
2469,
31,
277,
27245,
7734,
19959,
63,
77,
65,
273,
277,
31,
5411,
368,
752,
7856,
5411,
1536,
18,
6775,
2932,
16857,
12356,
3113,
19959,
1769,
5411,
1536,
18,
14330,
12,
3459,
16,
394,
24341,
10663,
5411,
368,
752,
16700,
5411,
1536,
18,
674,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1109,
12,
780,
1544,
16,
31608,
2426,
2557,
1536,
13,
288,
3639,
775,
288,
5411,
6484,
18,
1188,
966,
12,
3120,
18,
4714,
16,
315,
2849,
22,
300,
31941,
5316,
30,
22049,
87,
2412,
1372,
3113,
1544,
1769,
5411,
1387,
585,
273,
394,
1387,
12,
3459,
1769,
5411,
11907,
1407,
273,
394,
11907,
12,
3459,
1769,
5411,
22806,
12242,
852,
273,
1407,
18,
588,
2909,
7675,
1458,
12,
812,
2909,
18,
863,
2309,
18,
6949,
67,
10857,
16,
374,
16,
585,
18,
2469,
10663,
5411,
852,
18,
1019,
12,
3216,
2448,
18,
15716,
56,
900,
67,
30597,
1769,
5411,
5450,
1892,
1613,
273,
852,
18,
345,
4723,
1892,
5621,
5411,
1431,
8526,
501,
273,
394,
1431,
2
] |
else if ( FightRequest.DICTIONARY2.getCount( KoLCharacter.getInventory() ) >= 1 )
|
else if ( FightRequest.DICTIONARY2.getCount( inventory ) >= 1 )
|
public static void addDictionary() { if ( FightRequest.DICTIONARY1.getCount( KoLCharacter.getInventory() ) >= 1 ) addDictionary( FightRequest.DICTIONARY1 ); else if ( FightRequest.DICTIONARY2.getCount( KoLCharacter.getInventory() ) >= 1 ) addDictionary( FightRequest.DICTIONARY2 ); }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/e62c220071db475c697de817376ca4486bbcebd6/KoLCharacter.java/buggy/src/net/sourceforge/kolmafia/KoLCharacter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
527,
10905,
1435,
202,
95,
202,
202,
430,
261,
478,
750,
691,
18,
2565,
3106,
6043,
21,
18,
588,
1380,
12,
1475,
83,
48,
7069,
18,
588,
15059,
1435,
262,
1545,
404,
262,
1082,
202,
1289,
10905,
12,
478,
750,
691,
18,
2565,
3106,
6043,
21,
11272,
202,
202,
12107,
309,
261,
478,
750,
691,
18,
2565,
3106,
6043,
22,
18,
588,
1380,
12,
1475,
83,
48,
7069,
18,
588,
15059,
1435,
262,
1545,
404,
262,
1082,
202,
1289,
10905,
12,
478,
750,
691,
18,
2565,
3106,
6043,
22,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
527,
10905,
1435,
202,
95,
202,
202,
430,
261,
478,
750,
691,
18,
2565,
3106,
6043,
21,
18,
588,
1380,
12,
1475,
83,
48,
7069,
18,
588,
15059,
1435,
262,
1545,
404,
262,
1082,
202,
1289,
10905,
12,
478,
750,
691,
18,
2565,
3106,
6043,
21,
11272,
202,
202,
12107,
309,
261,
478,
750,
691,
18,
2565,
3106,
6043,
22,
18,
588,
1380,
12,
1475,
83,
48,
7069,
18,
588,
15059,
1435,
262,
1545,
404,
262,
1082,
202,
1289,
10905,
12,
478,
750,
691,
18,
2565,
3106,
6043,
22,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String ejbLink = ejb.getEjbLink();
|
private EjbLocalReferenceInfo[] buildEjbLocalRefInfos(JndiConsumer item, String referringComponent) throws OpenEJBException { List<EjbLocalReferenceInfo> infos = new ArrayList(); for (EjbLocalRef ejb : item.getEjbLocalRef()) { EjbLocalReferenceInfo info = new EjbLocalReferenceInfo(); info.homeType = ejb.getLocalHome(); info.referenceName = ejb.getEjbRefName(); info.location = new EjbReferenceLocationInfo(); String ejbLink = ejb.getEjbLink(); EnterpriseBeanInfo otherBean = (EnterpriseBeanInfo) beanInfos.get(ejbLink); if (otherBean == null) { String msg = ConfigurationFactory.messages.format("config.noBeanFound", ejb.getEjbRefName(), referringComponent); ConfigurationFactory.logger.fatal(msg); throw new OpenEJBException(msg); } info.location.ejbDeploymentId = otherBean.ejbDeploymentId; infos.add(info); } return infos.toArray(new EjbLocalReferenceInfo[]{}); }
|
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/3b2cfe70abd8415d0e91cf33e899ebf990d3ee88/JndiEncInfoBuilder.java/buggy/openejb3/container/openejb-core/src/main/java/org/apache/openejb/alt/config/JndiEncInfoBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
512,
10649,
2042,
2404,
966,
8526,
1361,
41,
10649,
2042,
1957,
7655,
12,
46,
16564,
5869,
761,
16,
514,
1278,
20245,
1841,
13,
1216,
3502,
22719,
503,
288,
3639,
987,
32,
41,
10649,
2042,
2404,
966,
34,
10626,
273,
394,
2407,
5621,
3639,
364,
261,
41,
10649,
2042,
1957,
18024,
294,
761,
18,
588,
41,
10649,
2042,
1957,
10756,
288,
5411,
512,
10649,
2042,
2404,
966,
1123,
273,
394,
512,
10649,
2042,
2404,
966,
5621,
5411,
1123,
18,
8712,
559,
273,
18024,
18,
588,
2042,
8684,
5621,
5411,
1123,
18,
6180,
461,
273,
18024,
18,
588,
41,
10649,
1957,
461,
5621,
5411,
1123,
18,
3562,
273,
394,
512,
10649,
2404,
2735,
966,
5621,
15604,
26919,
3381,
966,
1308,
3381,
273,
261,
30699,
3381,
966,
13,
3931,
7655,
18,
588,
12,
73,
10649,
2098,
1769,
5411,
309,
261,
3011,
3381,
422,
446,
13,
288,
7734,
514,
1234,
273,
4659,
1733,
18,
6833,
18,
2139,
2932,
1425,
18,
2135,
3381,
2043,
3113,
18024,
18,
588,
41,
10649,
1957,
461,
9334,
1278,
20245,
1841,
1769,
7734,
4659,
1733,
18,
4901,
18,
30709,
12,
3576,
1769,
7734,
604,
394,
3502,
22719,
503,
12,
3576,
1769,
5411,
289,
5411,
1123,
18,
3562,
18,
73,
10649,
6733,
548,
273,
1308,
3381,
18,
73,
10649,
6733,
548,
31,
5411,
10626,
18,
1289,
12,
1376,
1769,
3639,
289,
3639,
327,
10626,
18,
31447,
12,
2704,
512,
10649,
2042,
2404,
966,
8526,
2916,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
512,
10649,
2042,
2404,
966,
8526,
1361,
41,
10649,
2042,
1957,
7655,
12,
46,
16564,
5869,
761,
16,
514,
1278,
20245,
1841,
13,
1216,
3502,
22719,
503,
288,
3639,
987,
32,
41,
10649,
2042,
2404,
966,
34,
10626,
273,
394,
2407,
5621,
3639,
364,
261,
41,
10649,
2042,
1957,
18024,
294,
761,
18,
588,
41,
10649,
2042,
1957,
10756,
288,
5411,
512,
10649,
2042,
2404,
966,
1123,
273,
394,
512,
10649,
2042,
2404,
966,
5621,
5411,
1123,
18,
8712,
559,
273,
18024,
18,
588,
2042,
8684,
5621,
5411,
1123,
18,
6180,
461,
273,
18024,
18,
588,
41,
10649,
1957,
461,
5621,
5411,
1123,
18,
3562,
273,
394,
512,
10649,
2404,
2735,
966,
5621,
15604,
26919,
3381,
966,
2
] |
|
.isDialogCreated(getOriginalRequest().getMethod()) && getRealState() == TransactionState.TERMINATED && transactionRequest.getMethod().equals(Request.ACK) && requestOf != null) {
|
.isDialogCreated(getOriginalRequest().getMethod()) && getRealState() == TransactionState.TERMINATED && transactionRequest.getMethod().equals(Request.ACK) && requestOf != null) {
|
public void processRequest( SIPRequest transactionRequest, MessageChannel sourceChannel) { boolean toTu = false; // Can only process a single request directed to the // transaction at a time. if (this.eventPending ) { synchronized (this.pendingRequests) { if (this.pendingRequests.size() < 4) this.pendingRequests.add (new PendingRequest(transactionRequest,sourceChannel)); } sipStack.putPending(this); return; } try { // If this is the first request for this transaction, if (getRealState() == null) { // Save this request as the one this // transaction is handling setOriginalRequest(transactionRequest); this.setState(TransactionState.TRYING); toTu = true; if (isInviteTransaction() && this.isMapped) { // Has side-effect of setting // state to "Proceeding" sendMessage( transactionRequest.createResponse(100, "Trying")); } // If an invite transaction is ACK'ed while in // the completed state, } else if ( isInviteTransaction() && TransactionState.COMPLETED == getRealState() && transactionRequest.getMethod().equals(Request.ACK)) { this.setState(TransactionState.CONFIRMED); disableRetransmissionTimer(); if (!isReliable()) { if (this.lastResponse != null && this.lastResponse.getStatusCode() == Response.REQUEST_TERMINATED) { // Bug report by Antonis Karydas this.setState(TransactionState.TERMINATED); } else { enableTimeoutTimer(TIMER_I); } } else { this.setState(TransactionState.TERMINATED); } // Application should not Ack in CONFIRMED state // Bug (and fix thereof) reported by Emil Ivov return; // If we receive a retransmission of the original // request, } else if ( transactionRequest.getMethod().equals( getOriginalRequest().getMethod())) { if (TransactionState.PROCEEDING == getRealState() || TransactionState.COMPLETED == getRealState()) { // Resend the last response to // the client if (lastResponse != null) { try { // Send the message to the client super.sendMessage(lastResponse); } catch (IOException e) { this.setState(TransactionState.TERMINATED); throw e; } } } else if ( transactionRequest.getMethod().equals(Request.ACK) && requestOf != null) { // null check bug fix by Emil Ivov // This is passed up to the TU to suppress // retransmission of OK requestOf.processRequest(transactionRequest, this); } return; } // Pass message to the TU if (TransactionState.COMPLETED != getRealState() && TransactionState.TERMINATED != getRealState() && requestOf != null) { if (getOriginalRequest() .getMethod() .equals(transactionRequest.getMethod())) { // Only send original request to TU once! if (toTu) requestOf.processRequest(transactionRequest, this); } else { if (requestOf != null) requestOf.processRequest(transactionRequest, this); } } else { // This seems like a common bug so I am allowing it through! if (((SIPTransactionStack) getSIPStack()) .isDialogCreated(getOriginalRequest().getMethod()) && getRealState() == TransactionState.TERMINATED && transactionRequest.getMethod().equals(Request.ACK) && requestOf != null) { SIPDialog thisDialog = (SIPDialog) this.dialog; thisDialog.ackReceived(transactionRequest); if ( ((SIPTransactionStack) getSIPStack()) .retransmissionFilter ) { if ( ! thisDialog.ackProcessed ) { // Filter out duplicate acks if retransmission filter // is enabled. thisDialog.ackProcessed = true; requestOf.processRequest(transactionRequest, this); } } else { // Duplicate ACKs are seen by the application. if (requestOf != null) requestOf.processRequest(transactionRequest, this); } } else if ( transactionRequest.getMethod().equals(Request.CANCEL)) { if (LogWriter.needsLogging) sipStack.logWriter.logMessage( "Too late to cancel Transaction"); // send OK and just ignore the CANCEL. try { this.sendMessage( transactionRequest.createResponse(Response.OK)); } catch (IOException ex) { // Transaction is already terminated // just ignore the IOException. } } sipStack.logWriter.logMessage( "Dropping request " + getRealState()); } } catch (IOException e) { raiseErrorEvent(SIPTransactionErrorEvent.TRANSPORT_ERROR); } }
|
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/d231d2c6c5ca907b5c90d5737c6ae873878b219f/SIPServerTransaction.java/clean/src/gov/nist/javax/sip/stack/SIPServerTransaction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
691,
12,
565,
348,
2579,
691,
2492,
691,
16,
565,
2350,
2909,
1084,
2909,
13,
288,
3639,
1250,
358,
56,
89,
273,
629,
31,
202,
759,
4480,
1338,
1207,
279,
2202,
590,
20830,
358,
326,
225,
202,
759,
2492,
622,
279,
813,
18,
3639,
309,
261,
2211,
18,
2575,
8579,
262,
288,
202,
377,
3852,
261,
2211,
18,
9561,
6421,
13,
288,
1171,
309,
261,
2211,
18,
9561,
6421,
18,
1467,
1435,
411,
1059,
13,
5397,
333,
18,
9561,
6421,
18,
1289,
5397,
261,
2704,
16034,
691,
12,
7958,
691,
16,
3168,
2909,
10019,
202,
1377,
289,
202,
1377,
10341,
2624,
18,
458,
8579,
12,
2211,
1769,
2868,
327,
31,
3639,
289,
7734,
775,
288,
13491,
368,
971,
333,
353,
326,
1122,
590,
364,
333,
2492,
16,
5411,
309,
261,
588,
6955,
1119,
1435,
422,
446,
13,
288,
7734,
368,
7074,
333,
590,
487,
326,
1245,
333,
7734,
368,
2492,
353,
5057,
7734,
444,
8176,
691,
12,
7958,
691,
1769,
7734,
333,
18,
542,
1119,
12,
3342,
1119,
18,
17805,
1360,
1769,
7734,
358,
56,
89,
273,
638,
31,
7734,
309,
261,
291,
22730,
3342,
1435,
597,
333,
18,
291,
12868,
13,
288,
4766,
3639,
368,
4393,
4889,
17,
13867,
434,
3637,
10792,
368,
919,
358,
315,
626,
5288,
310,
6,
10792,
15399,
12,
10792,
2492,
691,
18,
2640,
1064,
12,
6625,
16,
315,
18038,
7923,
1769,
4766,
565,
289,
7734,
368,
971,
392,
19035,
2492,
353,
26069,
11,
329,
1323,
316,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
691,
12,
565,
348,
2579,
691,
2492,
691,
16,
565,
2350,
2909,
1084,
2909,
13,
288,
3639,
1250,
358,
56,
89,
273,
629,
31,
202,
759,
4480,
1338,
1207,
279,
2202,
590,
20830,
358,
326,
225,
202,
759,
2492,
622,
279,
813,
18,
3639,
309,
261,
2211,
18,
2575,
8579,
262,
288,
202,
377,
3852,
261,
2211,
18,
9561,
6421,
13,
288,
1171,
309,
261,
2211,
18,
9561,
6421,
18,
1467,
1435,
411,
1059,
13,
5397,
333,
18,
9561,
6421,
18,
1289,
5397,
261,
2704,
16034,
691,
12,
7958,
691,
16,
3168,
2909,
10019,
202,
1377,
289,
202,
1377,
10341,
2624,
18,
458,
8579,
12,
2211,
1769,
2868,
327,
31,
3639,
289,
7734,
775,
288,
2
] |
case DIFFERENCE_MINUS: tableItem.setImage(0, IMAGE_MINUS); break;
|
case DIFFERENCE_MINUS: tableItem.setImage(0, IMAGE_MINUS); break;
|
private void buildCommandAssignmentsTable() { tableAssignmentsForCommand.removeAll(); for (Iterator iterator = commandAssignments.iterator(); iterator .hasNext();) { CommandAssignment commandAssignment = (CommandAssignment) iterator .next(); KeySequenceBindingNode.Assignment assignment = commandAssignment.assignment; KeySequence keySequence = commandAssignment.keySequence; String commandString = null; int difference = DIFFERENCE_NONE; if (assignment.hasPreferenceCommandIdInFirstKeyConfiguration || assignment.hasPreferenceCommandIdInInheritedKeyConfiguration) { String preferenceCommandId; if (assignment.hasPreferenceCommandIdInFirstKeyConfiguration) preferenceCommandId = assignment.preferenceCommandIdInFirstKeyConfiguration; else preferenceCommandId = assignment.preferenceCommandIdInInheritedKeyConfiguration; if (assignment.hasPluginCommandIdInFirstKeyConfiguration || assignment.hasPluginCommandIdInInheritedKeyConfiguration) { String pluginCommandId; if (assignment.hasPluginCommandIdInFirstKeyConfiguration) pluginCommandId = assignment.pluginCommandIdInFirstKeyConfiguration; else pluginCommandId = assignment.pluginCommandIdInInheritedKeyConfiguration; if (preferenceCommandId != null) { difference = DIFFERENCE_CHANGE; commandString = /* commandUniqueNamesById.get(preferenceCommandId) */ keySequence.format() + ""; //$NON-NLS-1$ } else { difference = DIFFERENCE_MINUS; commandString = /* "Unassigned" */ keySequence.format(); } if (pluginCommandId != null) commandString += " (was: " //$NON-NLS-1$ + commandUniqueNamesById.get(pluginCommandId) + ")"; //$NON-NLS-1$ else commandString += " (was: " + "Unassigned" + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } else { if (preferenceCommandId != null) { difference = DIFFERENCE_ADD; commandString = /* commandUniqueNamesById.get(preferenceCommandId) */ keySequence.format() + ""; //$NON-NLS-1$ } else { difference = DIFFERENCE_MINUS; commandString = /* "Unassigned" */ keySequence.format(); } } } else { String pluginCommandId; if (assignment.hasPluginCommandIdInFirstKeyConfiguration) pluginCommandId = assignment.pluginCommandIdInFirstKeyConfiguration; else pluginCommandId = assignment.pluginCommandIdInInheritedKeyConfiguration; if (pluginCommandId != null) { difference = DIFFERENCE_NONE; commandString = /* commandUniqueNamesById.get(preferenceCommandId) */ keySequence.format() + ""; //$NON-NLS-1$ } else { difference = DIFFERENCE_MINUS; commandString = /* "Unassigned" */ keySequence.format(); } } TableItem tableItem = new TableItem(tableAssignmentsForCommand, SWT.NULL); switch (difference) { case DIFFERENCE_ADD: tableItem.setImage(0, IMAGE_PLUS); break; case DIFFERENCE_CHANGE: tableItem.setImage(0, IMAGE_CHANGE); break; case DIFFERENCE_MINUS: tableItem.setImage(0, IMAGE_MINUS); break; case DIFFERENCE_NONE: tableItem.setImage(0, IMAGE_BLANK); break; } String contextId = commandAssignment.contextId; if (contextId == null) { // This should never happen. tableItem.setText(1, Util.ZERO_LENGTH_STRING); } else tableItem.setText(1, (String) contextUniqueNamesById .get(contextId)); //$NON-NLS-1$ tableItem.setText(2, commandString); if (difference == DIFFERENCE_MINUS) { tableItem.setForeground(minusColour); } } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/65dfb474a05f19f506a0e1ab79ab3b55b1e5c090/KeysPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/KeysPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1361,
2189,
18628,
1388,
1435,
288,
3639,
1014,
18628,
1290,
2189,
18,
4479,
1595,
5621,
3639,
364,
261,
3198,
2775,
273,
1296,
18628,
18,
9838,
5621,
2775,
7734,
263,
5332,
2134,
5621,
13,
288,
5411,
3498,
7729,
1296,
7729,
273,
261,
2189,
7729,
13,
2775,
10792,
263,
4285,
5621,
5411,
1929,
4021,
5250,
907,
18,
7729,
6661,
273,
1296,
7729,
18,
12960,
31,
5411,
1929,
4021,
498,
4021,
273,
1296,
7729,
18,
856,
4021,
31,
5411,
514,
1296,
780,
273,
446,
31,
5411,
509,
7114,
273,
3690,
9303,
7535,
67,
9826,
31,
5411,
309,
261,
12960,
18,
5332,
9624,
2189,
548,
382,
3759,
653,
1750,
10792,
747,
6661,
18,
5332,
9624,
2189,
548,
382,
29078,
653,
1750,
13,
288,
7734,
514,
11555,
2189,
548,
31,
7734,
309,
261,
12960,
18,
5332,
9624,
2189,
548,
382,
3759,
653,
1750,
13,
10792,
11555,
2189,
548,
273,
6661,
18,
19141,
2189,
548,
382,
3759,
653,
1750,
31,
7734,
469,
10792,
11555,
2189,
548,
273,
6661,
18,
19141,
2189,
548,
382,
29078,
653,
1750,
31,
7734,
309,
261,
12960,
18,
5332,
3773,
2189,
548,
382,
3759,
653,
1750,
13491,
747,
6661,
18,
5332,
3773,
2189,
548,
382,
29078,
653,
1750,
13,
288,
10792,
514,
1909,
2189,
548,
31,
10792,
309,
261,
12960,
18,
5332,
3773,
2189,
548,
382,
3759,
653,
1750,
13,
13491,
1909,
2189,
548,
273,
6661,
18,
4094,
2189,
548,
382,
3759,
653,
1750,
31,
10792,
469,
13491,
1909,
2189,
548,
273,
6661,
18,
4094,
2189,
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,
1361,
2189,
18628,
1388,
1435,
288,
3639,
1014,
18628,
1290,
2189,
18,
4479,
1595,
5621,
3639,
364,
261,
3198,
2775,
273,
1296,
18628,
18,
9838,
5621,
2775,
7734,
263,
5332,
2134,
5621,
13,
288,
5411,
3498,
7729,
1296,
7729,
273,
261,
2189,
7729,
13,
2775,
10792,
263,
4285,
5621,
5411,
1929,
4021,
5250,
907,
18,
7729,
6661,
273,
1296,
7729,
18,
12960,
31,
5411,
1929,
4021,
498,
4021,
273,
1296,
7729,
18,
856,
4021,
31,
5411,
514,
1296,
780,
273,
446,
31,
5411,
509,
7114,
273,
3690,
9303,
7535,
67,
9826,
31,
5411,
309,
261,
12960,
18,
5332,
9624,
2189,
548,
382,
3759,
653,
1750,
10792,
747,
6661,
18,
5332,
9624,
2189,
548,
382,
29078,
653,
2
] |
while (_onFailed.size() > 0) { Job job = (Job)_onFailed.remove(0); getContext().jobQueue().addJob(job);
|
List removed = null; synchronized (_onFailed) { removed = new ArrayList(_onFailed); _onFailed.clear();
|
public void runJob() { // pick some floodfill peers and send out the searches List floodfillPeers = _facade.getFloodfillPeers(); FloodLookupSelector replySelector = new FloodLookupSelector(getContext(), this); ReplyJob onReply = new FloodLookupMatchJob(getContext(), this); Job onTimeout = new FloodLookupTimeoutJob(getContext(), this); OutNetMessage out = getContext().messageRegistry().registerPending(replySelector, onReply, onTimeout, _timeoutMs); for (int i = 0; _lookupsRemaining < CONCURRENT_SEARCHES && i < floodfillPeers.size(); i++) { Hash peer = (Hash)floodfillPeers.get(i); if (peer.equals(getContext().routerHash())) continue; DatabaseLookupMessage dlm = new DatabaseLookupMessage(getContext(), true); TunnelInfo replyTunnel = getContext().tunnelManager().selectInboundTunnel(); TunnelInfo outTunnel = getContext().tunnelManager().selectOutboundTunnel(); if ( (replyTunnel == null) || (outTunnel == null) ) { _dead = true; while (_onFailed.size() > 0) { Job job = (Job)_onFailed.remove(0); getContext().jobQueue().addJob(job); } getContext().messageRegistry().unregisterPending(out); return; } dlm.setFrom(replyTunnel.getPeer(0)); dlm.setMessageExpiration(getContext().clock().now()+10*1000); dlm.setReplyTunnel(replyTunnel.getReceiveTunnelId(0)); dlm.setSearchKey(_key); if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": Floodfill search for " + _key.toBase64() + " to " + peer.toBase64()); getContext().tunnelDispatcher().dispatchOutbound(dlm, outTunnel.getSendTunnelId(0), peer); _lookupsRemaining++; } if (_lookupsRemaining <= 0) { if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": Floodfill search for " + _key.toBase64() + " had no peers to send to"); // no floodfill peers, go to the normal ones getContext().messageRegistry().unregisterPending(out); _facade.searchFull(_key, _onFind, _onFailed, _timeoutMs*FLOOD_SEARCH_TIME_FACTOR, _isLease); } }
|
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/d4970e23c0b3a90af30bc70231c5544288cacffb/FloodfillNetworkDatabaseFacade.java/buggy/router/java/src/net/i2p/router/networkdb/kademlia/FloodfillNetworkDatabaseFacade.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
2278,
1435,
288,
3639,
368,
6002,
2690,
20802,
369,
5935,
10082,
471,
1366,
596,
326,
16662,
3639,
987,
20802,
369,
5935,
14858,
273,
389,
507,
5065,
18,
588,
42,
383,
369,
5935,
14858,
5621,
3639,
478,
383,
369,
6609,
4320,
4332,
4320,
273,
394,
478,
383,
369,
6609,
4320,
12,
29120,
9334,
333,
1769,
3639,
16202,
2278,
603,
7817,
273,
394,
478,
383,
369,
6609,
2060,
2278,
12,
29120,
9334,
333,
1769,
3639,
3956,
603,
2694,
273,
394,
478,
383,
369,
6609,
2694,
2278,
12,
29120,
9334,
333,
1769,
3639,
2976,
7308,
1079,
596,
273,
6474,
7675,
2150,
4243,
7675,
4861,
8579,
12,
10629,
4320,
16,
603,
7817,
16,
603,
2694,
16,
389,
4538,
6947,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
389,
8664,
87,
11429,
411,
3492,
15487,
67,
17251,
3991,
597,
277,
411,
20802,
369,
5935,
14858,
18,
1467,
5621,
277,
27245,
288,
5411,
2474,
4261,
273,
261,
2310,
13,
74,
383,
369,
5935,
14858,
18,
588,
12,
77,
1769,
5411,
309,
261,
12210,
18,
14963,
12,
29120,
7675,
10717,
2310,
1435,
3719,
7734,
1324,
31,
13491,
5130,
6609,
1079,
8910,
81,
273,
394,
5130,
6609,
1079,
12,
29120,
9334,
638,
1769,
5411,
399,
8564,
966,
4332,
20329,
273,
6474,
7675,
19878,
1318,
7675,
4025,
20571,
20329,
5621,
5411,
399,
8564,
966,
596,
20329,
273,
6474,
7675,
19878,
1318,
7675,
4025,
17873,
20329,
5621,
5411,
309,
261,
261,
10629,
20329,
422,
446,
13,
747,
261,
659,
20329,
422,
446,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
2278,
1435,
288,
3639,
368,
6002,
2690,
20802,
369,
5935,
10082,
471,
1366,
596,
326,
16662,
3639,
987,
20802,
369,
5935,
14858,
273,
389,
507,
5065,
18,
588,
42,
383,
369,
5935,
14858,
5621,
3639,
478,
383,
369,
6609,
4320,
4332,
4320,
273,
394,
478,
383,
369,
6609,
4320,
12,
29120,
9334,
333,
1769,
3639,
16202,
2278,
603,
7817,
273,
394,
478,
383,
369,
6609,
2060,
2278,
12,
29120,
9334,
333,
1769,
3639,
3956,
603,
2694,
273,
394,
478,
383,
369,
6609,
2694,
2278,
12,
29120,
9334,
333,
1769,
3639,
2976,
7308,
1079,
596,
273,
6474,
7675,
2150,
4243,
7675,
4861,
8579,
12,
10629,
4320,
16,
603,
7817,
16,
603,
2694,
16,
389,
4538,
6947,
2
] |
String oldExternalType = myExternalType;
|
String oldExternalType = getExternalType();
|
public void setExternalType(String _externalType) { String oldExternalType = myExternalType; myExternalType = (String) _nullIfPrototyped(EOAttribute.EXTERNAL_TYPE, _externalType); firePropertyChange(EOAttribute.EXTERNAL_TYPE, oldExternalType, getExternalType()); }
|
47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/0b3371f9954f17403da5e25363e71350cc422d19/EOAttribute.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/model/EOAttribute.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
6841,
559,
12,
780,
389,
9375,
559,
13,
288,
565,
514,
1592,
6841,
559,
273,
22319,
559,
5621,
565,
3399,
6841,
559,
273,
261,
780,
13,
389,
2011,
2047,
626,
3307,
6140,
12,
41,
51,
1499,
18,
2294,
11702,
67,
2399,
16,
389,
9375,
559,
1769,
565,
4452,
1396,
3043,
12,
41,
51,
1499,
18,
2294,
11702,
67,
2399,
16,
1592,
6841,
559,
16,
22319,
559,
10663,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
6841,
559,
12,
780,
389,
9375,
559,
13,
288,
565,
514,
1592,
6841,
559,
273,
22319,
559,
5621,
565,
3399,
6841,
559,
273,
261,
780,
13,
389,
2011,
2047,
626,
3307,
6140,
12,
41,
51,
1499,
18,
2294,
11702,
67,
2399,
16,
389,
9375,
559,
1769,
565,
4452,
1396,
3043,
12,
41,
51,
1499,
18,
2294,
11702,
67,
2399,
16,
1592,
6841,
559,
16,
22319,
559,
10663,
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
] |
if ( border.noLeft() ) {
|
if (border.noLeft()) {
|
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if ( border.noTop()) { sides -= TOP; } } if ((sides & LEFT) == LEFT) { if ( border.noLeft() ) { sides -= LEFT; } } if ((sides & BOTTOM) == BOTTOM) { if ( border.noBottom()) { sides -= BOTTOM; } } if ((sides & RIGHT) == RIGHT) { if ( border.noRight()) { sides -= RIGHT; } } //Now paint! if ((sides & TOP) == TOP) paintBorderSide(border, g, bounds, sides, TOP, border.topStyle(), xOffset); if ((sides & LEFT) == LEFT) paintBorderSide(border, g, bounds, sides, LEFT, border.leftStyle(), xOffset); if ((sides & BOTTOM) == BOTTOM) paintBorderSide(border, g, bounds, sides, BOTTOM, border.bottomStyle(), xOffset); if ((sides & RIGHT) == RIGHT) paintBorderSide(border, g, bounds, sides, RIGHT, border.rightStyle(), xOffset); }
|
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
12574,
12,
19463,
4972,
16,
509,
22423,
16,
15994,
690,
2885,
2154,
16,
16830,
314,
16,
18018,
1042,
1103,
16,
509,
619,
2335,
13,
288,
3639,
13525,
1396,
694,
5795,
273,
2154,
18,
588,
8107,
12,
5900,
1769,
3639,
309,
14015,
87,
4369,
473,
18680,
13,
422,
18680,
13,
288,
5411,
309,
261,
5795,
18,
2135,
3401,
10756,
288,
7734,
22423,
3947,
18680,
31,
5411,
289,
3639,
289,
3639,
309,
14015,
87,
4369,
473,
9686,
13,
422,
9686,
13,
288,
5411,
309,
261,
8815,
18,
2135,
3910,
10756,
288,
7734,
22423,
3947,
9686,
31,
5411,
289,
3639,
289,
3639,
309,
14015,
87,
4369,
473,
30666,
13,
422,
30666,
13,
288,
5411,
309,
261,
5795,
18,
2135,
10393,
10756,
288,
7734,
22423,
3947,
30666,
31,
5411,
289,
3639,
289,
3639,
309,
14015,
87,
4369,
473,
13135,
13,
422,
13135,
13,
288,
5411,
309,
261,
5795,
18,
2135,
4726,
10756,
288,
7734,
22423,
3947,
13135,
31,
5411,
289,
3639,
289,
3639,
368,
8674,
12574,
5,
3639,
309,
14015,
87,
4369,
473,
18680,
13,
422,
18680,
13,
5411,
12574,
8107,
8895,
12,
8815,
16,
314,
16,
4972,
16,
22423,
16,
18680,
16,
5795,
18,
3669,
2885,
9334,
619,
2335,
1769,
3639,
309,
14015,
87,
4369,
473,
9686,
13,
422,
9686,
13,
5411,
12574,
8107,
8895,
12,
8815,
16,
314,
16,
4972,
16,
22423,
16,
9686,
16,
5795,
18,
4482,
2885,
9334,
619,
2335,
1769,
3639,
309,
14015,
87,
4369,
473,
30666,
13,
422,
30666,
13,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
12574,
12,
19463,
4972,
16,
509,
22423,
16,
15994,
690,
2885,
2154,
16,
16830,
314,
16,
18018,
1042,
1103,
16,
509,
619,
2335,
13,
288,
3639,
13525,
1396,
694,
5795,
273,
2154,
18,
588,
8107,
12,
5900,
1769,
3639,
309,
14015,
87,
4369,
473,
18680,
13,
422,
18680,
13,
288,
5411,
309,
261,
5795,
18,
2135,
3401,
10756,
288,
7734,
22423,
3947,
18680,
31,
5411,
289,
3639,
289,
3639,
309,
14015,
87,
4369,
473,
9686,
13,
422,
9686,
13,
288,
5411,
309,
261,
8815,
18,
2135,
3910,
10756,
288,
7734,
22423,
3947,
9686,
31,
5411,
289,
3639,
289,
3639,
309,
14015,
87,
4369,
473,
30666,
13,
422,
30666,
13,
288,
5411,
309,
261,
5795,
18,
2
] |
mem.setInt(offset + 0x14, (int) rxRing.getAddressAs32()); mem.setInt(offset + 0x18, (int) txRing.getAddressAs32());
|
mem.setInt(offset + 0x14, rxRing.getAddressAs32()); mem.setInt(offset + 0x18, txRing.getAddressAs32());
|
public InitializationBlock32Bit( MemoryResource mem, int offset, short mode, EthernetAddress physicalAddr, long logicalAddr, RxDescriptorRing rxRing, TxDescriptorRing txRing) { this.mem = mem; this.offset = offset; // Populate the initial data structure mem.setShort(offset + 0x00, (short) mode); mem.setByte(offset + 0x02, getEncodedRingLength(rxRing.getLength())); mem.setByte(offset + 0x03, getEncodedRingLength(txRing.getLength())); mem.setByte(offset + 0x04, physicalAddr.get(0)); mem.setByte(offset + 0x05, physicalAddr.get(1)); mem.setByte(offset + 0x06, physicalAddr.get(2)); mem.setByte(offset + 0x07, physicalAddr.get(3)); mem.setByte(offset + 0x08, physicalAddr.get(4)); mem.setByte(offset + 0x09, physicalAddr.get(5)); mem.setInt(offset + 0x0C, (int) (logicalAddr & 0xFFFFFFFF)); mem.setInt(offset + 0x10, (int) ((logicalAddr >> 32) & 0xFFFFFFFF)); mem.setInt(offset + 0x14, (int) rxRing.getAddressAs32()); mem.setInt(offset + 0x18, (int) txRing.getAddressAs32()); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e204bcd94e42168df8116332c5e2f0db99bd1c55/InitializationBlock32Bit.java/buggy/net/src/driver/org/jnode/driver/net/lance/InitializationBlock32Bit.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
26586,
1768,
1578,
5775,
12,
202,
202,
6031,
1420,
1663,
16,
202,
202,
474,
1384,
16,
202,
202,
6620,
1965,
16,
202,
202,
41,
27281,
1887,
11640,
3178,
16,
202,
202,
5748,
6374,
3178,
16,
202,
202,
27741,
3187,
10369,
8581,
10369,
16,
202,
202,
4188,
3187,
10369,
2229,
10369,
13,
288,
202,
202,
2211,
18,
3917,
273,
1663,
31,
202,
202,
2211,
18,
3348,
273,
1384,
31,
202,
202,
759,
22254,
326,
2172,
501,
3695,
202,
202,
3917,
18,
542,
4897,
12,
3348,
397,
374,
92,
713,
16,
261,
6620,
13,
1965,
1769,
202,
202,
3917,
18,
542,
3216,
12,
3348,
397,
374,
92,
3103,
16,
28799,
10369,
1782,
12,
20122,
10369,
18,
588,
1782,
1435,
10019,
202,
202,
3917,
18,
542,
3216,
12,
3348,
397,
374,
92,
4630,
16,
28799,
10369,
1782,
12,
978,
10369,
18,
588,
1782,
1435,
10019,
202,
202,
3917,
18,
542,
3216,
12,
3348,
397,
374,
92,
3028,
16,
11640,
3178,
18,
588,
12,
20,
10019,
202,
202,
3917,
18,
542,
3216,
12,
3348,
397,
374,
92,
6260,
16,
11640,
3178,
18,
588,
12,
21,
10019,
202,
202,
3917,
18,
542,
3216,
12,
3348,
397,
374,
92,
7677,
16,
11640,
3178,
18,
588,
12,
22,
10019,
202,
202,
3917,
18,
542,
3216,
12,
3348,
397,
374,
92,
8642,
16,
11640,
3178,
18,
588,
12,
23,
10019,
202,
202,
3917,
18,
542,
3216,
12,
3348,
397,
374,
92,
6840,
16,
11640,
3178,
18,
588,
12,
24,
10019,
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,
26586,
1768,
1578,
5775,
12,
202,
202,
6031,
1420,
1663,
16,
202,
202,
474,
1384,
16,
202,
202,
6620,
1965,
16,
202,
202,
41,
27281,
1887,
11640,
3178,
16,
202,
202,
5748,
6374,
3178,
16,
202,
202,
27741,
3187,
10369,
8581,
10369,
16,
202,
202,
4188,
3187,
10369,
2229,
10369,
13,
288,
202,
202,
2211,
18,
3917,
273,
1663,
31,
202,
202,
2211,
18,
3348,
273,
1384,
31,
202,
202,
759,
22254,
326,
2172,
501,
3695,
202,
202,
3917,
18,
542,
4897,
12,
3348,
397,
374,
92,
713,
16,
261,
6620,
13,
1965,
1769,
202,
202,
3917,
18,
542,
3216,
12,
3348,
397,
374,
92,
3103,
16,
28799,
10369,
1782,
12,
20122,
10369,
18,
588,
1782,
2
] |
StringBuffer message = new StringBuffer(); message.append( "\nEffective POM, after all profiles are factored in:\n\n" ); message.append( sWriter.toString() ); message.append( "\n\n" );
|
StringBuffer formatted = new StringBuffer(); formatted.append( "\nEffective POMs, after inheritance, interpolation, and profiles are applied:\n\n" ); formatted.append( message.toString() ); formatted.append( "\n" );
|
public void execute() throws MojoExecutionException { StringWriter sWriter = new StringWriter(); MavenXpp3Writer pomWriter = new MavenXpp3Writer(); try { pomWriter.write( sWriter, pom ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot serialize POM to XML.", e ); } if( output != null && output.trim().length() > 0 ) { FileWriter fWriter = null; try { File outFile = new File( output ).getAbsoluteFile(); File dir = outFile.getParentFile(); if( !dir.exists() ) { dir.mkdirs(); } getLog().info( "Writing effective-POM to: " + outFile ); fWriter = new FileWriter( outFile ); fWriter.write( sWriter.toString() ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write effective-POM to output: " + output, e ); } finally { if( fWriter != null ) { try { fWriter.close(); } catch( IOException e ) { getLog().debug( "Cannot close FileWriter to output location: " + output, e ); } } } } else { StringBuffer message = new StringBuffer(); message.append( "\nEffective POM, after all profiles are factored in:\n\n" ); message.append( sWriter.toString() ); message.append( "\n\n" ); getLog().info( message ); } }
|
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/47d9a60537492490741c4fb9b09f5da38debfa46/EffectivePomPlugin.java/clean/maven-plugins/maven-projecthelp-plugin/src/main/java/org/apache/maven/plugins/projecthelp/EffectivePomPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
18780,
565,
288,
3639,
17436,
272,
2289,
273,
394,
17436,
5621,
7734,
17176,
60,
11858,
23,
2289,
21400,
2289,
273,
394,
17176,
60,
11858,
23,
2289,
5621,
7734,
775,
3639,
288,
5411,
21400,
2289,
18,
2626,
12,
272,
2289,
16,
21400,
11272,
3639,
289,
3639,
1044,
261,
1860,
425,
262,
3639,
288,
5411,
604,
394,
18780,
12,
315,
4515,
4472,
453,
1872,
358,
3167,
1199,
16,
425,
11272,
3639,
289,
7734,
309,
12,
876,
480,
446,
597,
876,
18,
5290,
7675,
2469,
1435,
405,
374,
262,
3639,
288,
5411,
24639,
284,
2289,
273,
446,
31,
5411,
775,
5411,
288,
7734,
1387,
21651,
273,
394,
1387,
12,
876,
262,
18,
588,
10368,
812,
5621,
27573,
1387,
1577,
273,
21651,
18,
588,
3054,
812,
5621,
27573,
309,
12,
401,
1214,
18,
1808,
1435,
262,
7734,
288,
10792,
1577,
18,
24816,
8291,
5621,
7734,
289,
27573,
9189,
7675,
1376,
12,
315,
18835,
11448,
17,
52,
1872,
358,
30,
315,
397,
21651,
11272,
27573,
284,
2289,
273,
394,
24639,
12,
21651,
11272,
27573,
284,
2289,
18,
2626,
12,
272,
2289,
18,
10492,
1435,
11272,
5411,
289,
5411,
1044,
261,
1860,
425,
262,
5411,
288,
7734,
604,
394,
18780,
12,
315,
4515,
1045,
11448,
17,
52,
1872,
358,
876,
30,
315,
397,
876,
16,
425,
11272,
5411,
289,
5411,
3095,
5411,
288,
7734,
309,
12,
284,
2289,
480,
446,
262,
7734,
288,
10792,
775,
10792,
288,
13491,
284,
2289,
18,
4412,
5621,
10792,
289,
10792,
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,
3639,
1216,
18780,
565,
288,
3639,
17436,
272,
2289,
273,
394,
17436,
5621,
7734,
17176,
60,
11858,
23,
2289,
21400,
2289,
273,
394,
17176,
60,
11858,
23,
2289,
5621,
7734,
775,
3639,
288,
5411,
21400,
2289,
18,
2626,
12,
272,
2289,
16,
21400,
11272,
3639,
289,
3639,
1044,
261,
1860,
425,
262,
3639,
288,
5411,
604,
394,
18780,
12,
315,
4515,
4472,
453,
1872,
358,
3167,
1199,
16,
425,
11272,
3639,
289,
7734,
309,
12,
876,
480,
446,
597,
876,
18,
5290,
7675,
2469,
1435,
405,
374,
262,
3639,
288,
5411,
24639,
284,
2289,
273,
446,
31,
5411,
775,
5411,
288,
7734,
1387,
21651,
273,
394,
1387,
12,
876,
262,
18,
588,
10368,
812,
2
] |
putValue("SELECTED", new Boolean(
|
putValue("SELECTED", Boolean.valueOf(
|
public ActionVisibilityPrivate(Object o) { super("checkbox.visibility.private-uc", NO_ICON); putValue("SELECTED", new Boolean( Model.getVisibilityKind().getPrivate() .equals(valueOfTarget(o)))); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/4fc03f6e79ccbccc30fd45ccf2f310df233bc700/ActionVisibilityPrivate.java/buggy/src_new/org/argouml/uml/diagram/ui/ActionVisibilityPrivate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
10135,
6014,
12,
921,
320,
13,
288,
3639,
2240,
2932,
12017,
18,
14422,
18,
1152,
17,
5286,
3113,
3741,
67,
21745,
1769,
3639,
1378,
620,
2932,
4803,
2056,
3113,
3411,
18,
1132,
951,
12,
5411,
3164,
18,
588,
10135,
5677,
7675,
588,
6014,
1435,
7734,
263,
14963,
12,
1132,
951,
2326,
12,
83,
3719,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
4382,
10135,
6014,
12,
921,
320,
13,
288,
3639,
2240,
2932,
12017,
18,
14422,
18,
1152,
17,
5286,
3113,
3741,
67,
21745,
1769,
3639,
1378,
620,
2932,
4803,
2056,
3113,
3411,
18,
1132,
951,
12,
5411,
3164,
18,
588,
10135,
5677,
7675,
588,
6014,
1435,
7734,
263,
14963,
12,
1132,
951,
2326,
12,
83,
3719,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
while (true) { String nameSegment;
|
parentShell.getDisplay().syncExec(new Runnable() { public void run() { IInputValidator validator = new IInputValidator() { public String isValid(String string) { if (resource.getName().equals(string)) { return WorkbenchMessages.getString("CopyFilesAndFoldersOperation.nameMustBeDifferent"); } IStatus status = workspace.validateName(string, resource.getType()); if (!status.isOK()) { return status.getMessage(); } if (workspace.getRoot().exists(prefix.append(string))) { return WorkbenchMessages.getString("CopyFilesAndFoldersOperation.nameExists"); } return null; } };
|
private IPath getNewNameFor(IPath originalName, IWorkspace workspace) { int counter = 1; String resourceName = originalName.lastSegment(); IPath leadupSegment = originalName.removeLastSegments(1); while (true) { String nameSegment; if (counter > 1) nameSegment = WorkbenchMessages.format("CopyFilesAndFoldersOperation.copyNameTwoArgs", new Object[] { new Integer(counter), resourceName }); //$NON-NLS-1$ else nameSegment = WorkbenchMessages.format("CopyFilesAndFoldersOperation.copyNameOneArg", new Object[] { resourceName }); //$NON-NLS-1$ IPath pathToTry = leadupSegment.append(nameSegment); if (!workspace.getRoot().exists(pathToTry)) return pathToTry; counter++; } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/01a2e98a8b00302fded52f4afd942004e9397ad9/CopyFilesAndFoldersOperation.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
743,
12654,
461,
1290,
12,
45,
743,
2282,
461,
16,
467,
8241,
6003,
13,
288,
202,
202,
474,
3895,
273,
404,
31,
202,
202,
780,
9546,
273,
2282,
461,
18,
2722,
4131,
5621,
202,
202,
45,
743,
5871,
416,
4131,
273,
2282,
461,
18,
4479,
3024,
7946,
12,
21,
1769,
202,
202,
17523,
261,
3767,
13,
288,
1082,
202,
780,
508,
4131,
31,
1082,
202,
430,
261,
7476,
405,
404,
13,
9506,
202,
529,
4131,
273,
4147,
22144,
5058,
18,
2139,
2932,
2951,
2697,
1876,
14885,
2988,
18,
3530,
461,
11710,
2615,
3113,
394,
1033,
8526,
288,
394,
2144,
12,
7476,
3631,
9546,
15549,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
12107,
9506,
202,
529,
4131,
273,
4147,
22144,
5058,
18,
2139,
2932,
2951,
2697,
1876,
14885,
2988,
18,
3530,
461,
3335,
4117,
3113,
394,
1033,
8526,
288,
9546,
15549,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
45,
743,
12221,
7833,
273,
5871,
416,
4131,
18,
6923,
12,
529,
4131,
1769,
1082,
202,
430,
16051,
14915,
18,
588,
2375,
7675,
1808,
12,
803,
774,
7833,
3719,
9506,
202,
2463,
12221,
7833,
31,
1082,
202,
7476,
9904,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
743,
12654,
461,
1290,
12,
45,
743,
2282,
461,
16,
467,
8241,
6003,
13,
288,
202,
202,
474,
3895,
273,
404,
31,
202,
202,
780,
9546,
273,
2282,
461,
18,
2722,
4131,
5621,
202,
202,
45,
743,
5871,
416,
4131,
273,
2282,
461,
18,
4479,
3024,
7946,
12,
21,
1769,
202,
202,
17523,
261,
3767,
13,
288,
1082,
202,
780,
508,
4131,
31,
1082,
202,
430,
261,
7476,
405,
404,
13,
9506,
202,
529,
4131,
273,
4147,
22144,
5058,
18,
2139,
2932,
2951,
2697,
1876,
14885,
2988,
18,
3530,
461,
11710,
2615,
3113,
394,
1033,
8526,
288,
394,
2144,
12,
7476,
3631,
9546,
15549,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
12107,
9506,
2
] |
log.log( Level.WARNING, e.getMessage( ), e );
|
addException( context, e );
|
public boolean handleFetch( IDataSetInstanceHandle dataSet, IDataRow row ) { try { JSScriptStatus status = handleJS( dataSet.getScriptScope( ), dataSet.getName( ), FETCH, ( ( ScriptDataSetHandle ) dataSetHandle ).getFetch( ) ); if ( status.didRun( ) ) { Object result = status.result( ); if ( result instanceof Boolean ) return ( ( Boolean ) result ).booleanValue( ); else throw new DataException( ResourceConstants.EXPECT_BOOLEAN_RETURN_TYPE, "Fetch" ); } if ( scriptedEventHandler != null ) return scriptedEventHandler .fetch( new DataSetInstance( dataSet ), new DataSetRow( row ) ); } catch ( Exception e ) { log.log( Level.WARNING, e.getMessage( ), e ); } return false; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c0422a1db84842d1e332663c3d4c7e2a8109aca8/ScriptDataSetScriptExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ScriptDataSetScriptExecutor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1640,
5005,
12,
467,
13676,
1442,
3259,
14837,
16,
467,
751,
1999,
1027,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
46,
1260,
9118,
1482,
1267,
273,
1640,
6479,
12,
14837,
18,
588,
3651,
3876,
12,
262,
16,
6862,
202,
892,
694,
18,
17994,
12,
262,
16,
10994,
16,
6862,
202,
12,
261,
7739,
13676,
3259,
262,
14837,
3259,
262,
18,
588,
5005,
12,
262,
11272,
1082,
202,
430,
261,
1267,
18,
14044,
1997,
12,
262,
262,
1082,
202,
95,
9506,
202,
921,
563,
273,
1267,
18,
2088,
12,
11272,
9506,
202,
430,
261,
563,
1276,
3411,
262,
6862,
202,
2463,
261,
261,
3411,
262,
563,
262,
18,
6494,
620,
12,
11272,
9506,
202,
12107,
6862,
202,
12849,
394,
1910,
503,
12,
6862,
1082,
202,
1420,
2918,
18,
2294,
1423,
1268,
67,
17900,
67,
14033,
67,
2399,
16,
315,
5005,
6,
11272,
1082,
202,
97,
1082,
202,
430,
261,
2728,
329,
16402,
480,
446,
262,
9506,
202,
2463,
2728,
329,
16402,
25083,
202,
18,
5754,
12,
394,
14065,
1442,
12,
14837,
262,
16,
394,
14065,
1999,
12,
1027,
262,
11272,
202,
202,
97,
1044,
261,
1185,
425,
262,
202,
202,
95,
1082,
202,
1330,
18,
1330,
12,
4557,
18,
9511,
16,
425,
18,
24906,
12,
262,
16,
425,
11272,
202,
202,
97,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1640,
5005,
12,
467,
13676,
1442,
3259,
14837,
16,
467,
751,
1999,
1027,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
46,
1260,
9118,
1482,
1267,
273,
1640,
6479,
12,
14837,
18,
588,
3651,
3876,
12,
262,
16,
6862,
202,
892,
694,
18,
17994,
12,
262,
16,
10994,
16,
6862,
202,
12,
261,
7739,
13676,
3259,
262,
14837,
3259,
262,
18,
588,
5005,
12,
262,
11272,
1082,
202,
430,
261,
1267,
18,
14044,
1997,
12,
262,
262,
1082,
202,
95,
9506,
202,
921,
563,
273,
1267,
18,
2088,
12,
11272,
9506,
202,
430,
261,
563,
1276,
3411,
262,
6862,
202,
2463,
261,
261,
3411,
262,
563,
262,
18,
6494,
620,
12,
11272,
2
] |
UnitRangeImpl tempRange = ampRange;
|
UnitRangeImpl tempRange = ampRange;
|
public void visibleAmpCalc(TimeRangeConfig timeConfig){ UnitRangeImpl tempRange = ampRange; ampRange = null; this.timeConfig = timeConfig; Iterator e = seismos.iterator(); while(e.hasNext()){ LocalSeismogram current = (LocalSeismogram)e.next(); this.getAmpRange(current, timeConfig.getTimeRange(current)); } if(ampRange == null){ ampRange = tempRange; return; } this.updateAmpSyncListeners(); }
|
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/bf22f44fb8cd0bcf3dd0dec063d5443723f2b940/RMeanAmpConfig.java/clean/src/edu/sc/seis/fissuresUtil/display/RMeanAmpConfig.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6021,
26895,
25779,
12,
950,
2655,
809,
813,
809,
15329,
202,
202,
2802,
2655,
2828,
1906,
2655,
273,
16946,
2655,
31,
202,
931,
2655,
273,
446,
31,
202,
2211,
18,
957,
809,
273,
813,
809,
31,
202,
3198,
425,
273,
695,
6228,
538,
18,
9838,
5621,
202,
17523,
12,
73,
18,
5332,
2134,
10756,
95,
202,
565,
3566,
1761,
6228,
5553,
783,
273,
261,
2042,
1761,
6228,
5553,
13,
73,
18,
4285,
5621,
202,
565,
333,
18,
588,
26895,
2655,
12,
2972,
16,
813,
809,
18,
588,
950,
2655,
12,
2972,
10019,
202,
97,
202,
430,
12,
931,
2655,
422,
446,
15329,
202,
565,
16946,
2655,
273,
1906,
2655,
31,
202,
565,
327,
31,
202,
97,
202,
2211,
18,
2725,
26895,
4047,
5583,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6021,
26895,
25779,
12,
950,
2655,
809,
813,
809,
15329,
202,
202,
2802,
2655,
2828,
1906,
2655,
273,
16946,
2655,
31,
202,
931,
2655,
273,
446,
31,
202,
2211,
18,
957,
809,
273,
813,
809,
31,
202,
3198,
425,
273,
695,
6228,
538,
18,
9838,
5621,
202,
17523,
12,
73,
18,
5332,
2134,
10756,
95,
202,
565,
3566,
1761,
6228,
5553,
783,
273,
261,
2042,
1761,
6228,
5553,
13,
73,
18,
4285,
5621,
202,
565,
333,
18,
588,
26895,
2655,
12,
2972,
16,
813,
809,
18,
588,
950,
2655,
12,
2972,
10019,
202,
97,
202,
430,
12,
931,
2655,
422,
446,
15329,
202,
565,
16946,
2655,
273,
1906,
2655,
31,
202,
565,
327,
31,
202,
97,
2
] |
IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeOR(r1, v2.getRegister()); break; case Item.Kind.LOCAL: os.writeOR(r1, FP, v2.getOffsetToFP()); break; case Item.Kind.CONSTANT: os.writeOR(r1, v2.getValue()); break; } v2.release(eContext); vstack.push(v1);
|
ioperation(X86Operation.OR, true);
|
public final void visit_ior() { //REFACTOR: parametrize the os.write operations to avoid code // duplication //IMPROVE: allow parameter permutation IntItem v2 = vstack.popInt(); IntItem v1 = vstack.popInt(); prepareForOperation(v1, v2); final Register r1 = v1.getRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeOR(r1, v2.getRegister()); break; case Item.Kind.LOCAL: os.writeOR(r1, FP, v2.getOffsetToFP()); break; case Item.Kind.CONSTANT: os.writeOR(r1, v2.getValue()); break; } v2.release(eContext); vstack.push(v1); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d672242345f119107d72572d1e0cbc4bae87fa53/X86BytecodeVisitor.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
9659,
1435,
288,
202,
202,
759,
862,
26835,
30,
579,
16354,
554,
326,
1140,
18,
2626,
5295,
358,
4543,
981,
202,
202,
759,
31201,
202,
202,
759,
3445,
3373,
3412,
30,
1699,
1569,
17440,
202,
202,
1702,
1180,
331,
22,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
1702,
1180,
331,
21,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
9366,
1290,
2988,
12,
90,
21,
16,
331,
22,
1769,
202,
202,
6385,
5433,
436,
21,
273,
331,
21,
18,
588,
3996,
5621,
202,
202,
9610,
261,
90,
22,
18,
588,
5677,
10756,
288,
202,
202,
3593,
4342,
18,
5677,
18,
27511,
30,
1082,
202,
538,
18,
2626,
916,
12,
86,
21,
16,
331,
22,
18,
588,
3996,
10663,
1082,
202,
8820,
31,
202,
202,
3593,
4342,
18,
5677,
18,
14922,
30,
1082,
202,
538,
18,
2626,
916,
12,
86,
21,
16,
28740,
16,
331,
22,
18,
588,
2335,
774,
30246,
10663,
1082,
202,
8820,
31,
202,
202,
3593,
4342,
18,
5677,
18,
25878,
30,
1082,
202,
538,
18,
2626,
916,
12,
86,
21,
16,
331,
22,
18,
24805,
10663,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
90,
22,
18,
9340,
12,
73,
1042,
1769,
202,
202,
90,
3772,
18,
6206,
12,
90,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
9659,
1435,
288,
202,
202,
759,
862,
26835,
30,
579,
16354,
554,
326,
1140,
18,
2626,
5295,
358,
4543,
981,
202,
202,
759,
31201,
202,
202,
759,
3445,
3373,
3412,
30,
1699,
1569,
17440,
202,
202,
1702,
1180,
331,
22,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
1702,
1180,
331,
21,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
9366,
1290,
2988,
12,
90,
21,
16,
331,
22,
1769,
202,
202,
6385,
5433,
436,
21,
273,
331,
21,
18,
588,
3996,
5621,
202,
202,
9610,
261,
90,
22,
18,
588,
5677,
10756,
288,
202,
202,
3593,
4342,
18,
5677,
18,
27511,
30,
1082,
202,
538,
18,
2626,
916,
12,
86,
21,
2
] |
BitSet bytecodeSet = classContext.getBytecodeSet(method); if (!(bytecodeSet.get(Constants.POP) || bytecodeSet.get(Constants.POP2)))
|
if (!prescreen())
|
public void visitCode(Code code) { // Prescreen to find methods with POP or POP2 instructions, // and at least one method invocation BitSet bytecodeSet = classContext.getBytecodeSet(method); if (!(bytecodeSet.get(Constants.POP) || bytecodeSet.get(Constants.POP2))) return; if (!(bytecodeSet.get(Constants.INVOKEINTERFACE) || bytecodeSet.get(Constants.INVOKESPECIAL) || bytecodeSet.get(Constants.INVOKESTATIC) || bytecodeSet.get(Constants.INVOKEVIRTUAL))) return; if (DEBUG) System.out.println("Visiting " + method); reset(); super.visitCode(code); if (DEBUG)System.out.println( "After visit: " + queuedWarningList.size() + " queued warnings"); for (Iterator<QueuedWarning> i = queuedWarningList.iterator(); i.hasNext();) { QueuedWarning qw = i.next();// if (CHECK_CONTROL_FLOW && branchTargetSet.get(qw.popPC))// continue; bugReporter.reportBug(qw.warning); }// if (COUNT_POP_BRANCH_TARGETS) {// for (Iterator<Integer> i = popList.iterator(); i.hasNext();) {// int pc = i.next().intValue();// if (branchTargetSet.get(pc))// ++popIsBranchTarget;// }// } }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/15be9a413c4c943f49b5e62f66753fe7faccf814/MethodReturnCheck.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/MethodReturnCheck.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
1085,
12,
1085,
981,
13,
288,
202,
202,
759,
18346,
8780,
358,
1104,
2590,
598,
26839,
578,
26839,
22,
12509,
16,
202,
202,
759,
471,
622,
4520,
1245,
707,
9495,
202,
202,
5775,
694,
22801,
694,
273,
667,
1042,
18,
588,
858,
16651,
694,
12,
2039,
1769,
202,
202,
430,
16051,
12,
1637,
16651,
694,
18,
588,
12,
2918,
18,
30374,
13,
747,
22801,
694,
18,
588,
12,
2918,
18,
30374,
22,
20349,
1082,
202,
2463,
31,
202,
202,
430,
16051,
12,
1637,
16651,
694,
18,
588,
12,
2918,
18,
706,
17691,
41,
18865,
13,
747,
9506,
202,
1637,
16651,
694,
18,
588,
12,
2918,
18,
706,
17691,
3991,
10106,
6365,
13,
747,
9506,
202,
1637,
16651,
694,
18,
588,
12,
2918,
18,
706,
17691,
11027,
11781,
13,
747,
9506,
202,
1637,
16651,
694,
18,
588,
12,
2918,
18,
706,
17691,
41,
26854,
20349,
1082,
202,
2463,
31,
202,
202,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
10432,
310,
315,
397,
707,
1769,
202,
202,
6208,
5621,
202,
202,
9565,
18,
11658,
1085,
12,
710,
1769,
202,
202,
430,
261,
9394,
13,
3163,
18,
659,
18,
8222,
12,
9506,
202,
6,
4436,
3757,
30,
315,
397,
9506,
202,
19499,
6210,
682,
18,
1467,
1435,
397,
315,
12234,
5599,
8863,
202,
202,
1884,
261,
3198,
32,
21039,
6210,
34,
277,
273,
12234,
6210,
682,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
21039,
6210,
1043,
91,
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,
3757,
1085,
12,
1085,
981,
13,
288,
202,
202,
759,
18346,
8780,
358,
1104,
2590,
598,
26839,
578,
26839,
22,
12509,
16,
202,
202,
759,
471,
622,
4520,
1245,
707,
9495,
202,
202,
5775,
694,
22801,
694,
273,
667,
1042,
18,
588,
858,
16651,
694,
12,
2039,
1769,
202,
202,
430,
16051,
12,
1637,
16651,
694,
18,
588,
12,
2918,
18,
30374,
13,
747,
22801,
694,
18,
588,
12,
2918,
18,
30374,
22,
20349,
1082,
202,
2463,
31,
202,
202,
430,
16051,
12,
1637,
16651,
694,
18,
588,
12,
2918,
18,
706,
17691,
41,
18865,
13,
747,
9506,
202,
1637,
16651,
694,
18,
588,
12,
2918,
18,
706,
17691,
3991,
10106,
6365,
13,
747,
9506,
2
] |
return lines;
|
return lines;
|
List readFile(File file) throws IOException { List lines = new ArrayList(); // read files.tmp into List... BufferedReader in = null; try { in = new BufferedReader(new FileReader(file)); String line; while ((line = in.readLine()) != null) { lines.add(line); } } catch (IOException e) { LOG.debug("Error in reading " + PVCS_TEMP_WORK_FILE + " file of PVCS file listing: " + e); e.printStackTrace(); throw e; } finally { try { if (in != null) { in.close(); } } catch (Exception e) { } } return lines; }
|
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/096318c6716278fe7c714bfce4718fb7f4f4e0f5/PVCS.java/clean/main/src/net/sourceforge/cruisecontrol/sourcecontrols/PVCS.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
987,
10413,
12,
812,
585,
13,
1216,
1860,
288,
202,
682,
2362,
273,
394,
2407,
5621,
3639,
368,
855,
1390,
18,
5645,
1368,
987,
2777,
3639,
10633,
316,
273,
446,
31,
3639,
775,
288,
5411,
316,
273,
394,
10633,
12,
2704,
23010,
12,
768,
10019,
5411,
514,
980,
31,
5411,
1323,
14015,
1369,
273,
316,
18,
896,
1670,
10756,
480,
446,
13,
288,
7734,
2362,
18,
1289,
12,
1369,
1769,
5411,
289,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
2018,
18,
4148,
2932,
668,
316,
6453,
315,
397,
27102,
4596,
67,
10258,
67,
10566,
67,
3776,
397,
10792,
315,
585,
434,
27102,
4596,
585,
11591,
30,
315,
397,
425,
1769,
5411,
425,
18,
1188,
6332,
5621,
5411,
604,
425,
31,
3639,
289,
3095,
288,
5411,
775,
288,
7734,
309,
261,
267,
480,
446,
13,
288,
1082,
565,
316,
18,
4412,
5621,
202,
202,
97,
5411,
289,
1044,
261,
503,
425,
13,
288,
5411,
289,
3639,
289,
202,
2463,
2362,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
987,
10413,
12,
812,
585,
13,
1216,
1860,
288,
202,
682,
2362,
273,
394,
2407,
5621,
3639,
368,
855,
1390,
18,
5645,
1368,
987,
2777,
3639,
10633,
316,
273,
446,
31,
3639,
775,
288,
5411,
316,
273,
394,
10633,
12,
2704,
23010,
12,
768,
10019,
5411,
514,
980,
31,
5411,
1323,
14015,
1369,
273,
316,
18,
896,
1670,
10756,
480,
446,
13,
288,
7734,
2362,
18,
1289,
12,
1369,
1769,
5411,
289,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
2018,
18,
4148,
2932,
668,
316,
6453,
315,
397,
27102,
4596,
67,
10258,
67,
10566,
67,
3776,
397,
10792,
315,
585,
434,
27102,
4596,
585,
11591,
30,
315,
397,
425,
1769,
5411,
425,
18,
1188,
6332,
5621,
2
] |
TemplateQuery template = TemplateHelper.findTemplate(servletContext, userName,
|
TemplateQuery template = TemplateHelper.findTemplate(servletContext, userName,
|
public Serializable create(String templateName, /*String viewName,*/ Integer id, String userName) { if (userName.equals(NO_USERNAME_STRING)) { // the create method can't have a null argument, but null is the signal for // findTemplate() that there is no current user userName = null; } TemplateQuery template = TemplateHelper.findTemplate(servletContext, userName, templateName, TemplateHelper.ALL_TEMPLATE); if (template == null) { throw new IllegalStateException("Could not find template \"" + templateName + "\""); } InterMineObject object; try { object = os.getObjectById(id); } catch (ObjectStoreException e) { throw new RuntimeException("cannot find object for ID: " + id); } return makeInlineTemplateTable(servletContext, template, /*viewName,*/ object); }
|
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/ceda051bb4000958ae9c944aa068daa6f8524491/TemplateHelper.java/buggy/intermine/web/main/src/org/intermine/web/TemplateHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
13687,
752,
12,
780,
15523,
16,
1748,
780,
22244,
16,
5549,
4766,
4202,
2144,
612,
16,
514,
12065,
13,
288,
7734,
309,
261,
1355,
461,
18,
14963,
12,
3417,
67,
21292,
67,
5804,
3719,
288,
10792,
368,
326,
752,
707,
848,
1404,
1240,
279,
446,
1237,
16,
1496,
446,
353,
326,
4277,
364,
10792,
368,
1104,
2283,
1435,
716,
1915,
353,
1158,
783,
729,
10792,
12065,
273,
446,
31,
7734,
289,
7734,
5035,
1138,
1542,
273,
5397,
5035,
2276,
18,
4720,
2283,
12,
23231,
1042,
16,
12065,
16,
4766,
1171,
15523,
16,
5035,
2276,
18,
4685,
67,
12205,
1769,
10792,
309,
261,
3202,
422,
446,
13,
288,
13491,
604,
394,
5477,
2932,
4445,
486,
1104,
1542,
11843,
4766,
7682,
397,
15523,
397,
11143,
1769,
10792,
289,
7734,
5294,
49,
558,
921,
733,
31,
7734,
775,
288,
10792,
733,
273,
1140,
18,
588,
921,
5132,
12,
350,
1769,
7734,
289,
1044,
261,
921,
21151,
425,
13,
288,
10792,
604,
394,
3235,
2932,
12892,
1104,
733,
364,
1599,
30,
315,
397,
612,
1769,
7734,
289,
7734,
327,
1221,
10870,
2283,
1388,
12,
23231,
1042,
16,
1542,
16,
1748,
1945,
461,
16,
5549,
733,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
13687,
752,
12,
780,
15523,
16,
1748,
780,
22244,
16,
5549,
4766,
4202,
2144,
612,
16,
514,
12065,
13,
288,
7734,
309,
261,
1355,
461,
18,
14963,
12,
3417,
67,
21292,
67,
5804,
3719,
288,
10792,
368,
326,
752,
707,
848,
1404,
1240,
279,
446,
1237,
16,
1496,
446,
353,
326,
4277,
364,
10792,
368,
1104,
2283,
1435,
716,
1915,
353,
1158,
783,
729,
10792,
12065,
273,
446,
31,
7734,
289,
7734,
5035,
1138,
1542,
273,
5397,
5035,
2276,
18,
4720,
2283,
12,
23231,
1042,
16,
12065,
16,
4766,
1171,
15523,
16,
5035,
2276,
18,
4685,
67,
12205,
1769,
10792,
309,
261,
3202,
422,
446,
13,
288,
13491,
604,
394,
5477,
2932,
4445,
486,
1104,
1542,
11843,
2
] |
} else if (resourcename.startsWith(" return C_DEFAULT_SITE+resourcename.substring(1);
|
} else if (resourcename.startsWith(" return C_DEFAULT_SITE + resourcename.substring(1);
|
public String getSiteRoot(String resourcename){ if(resourcename.startsWith("///")){ return resourcename.substring(2); } else if (resourcename.startsWith("//")){ return C_DEFAULT_SITE+resourcename.substring(1); } else { return m_siteRoot+resourcename; } }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/5c27bc595df503fc5e3629ec92d99ba38b58a0e9/CmsRequestContext.java/buggy/src/com/opencms/file/CmsRequestContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11021,
2375,
12,
780,
31174,
1069,
15329,
3639,
309,
12,
455,
20989,
1069,
18,
17514,
1190,
2932,
759,
4898,
3719,
95,
5411,
327,
31174,
1069,
18,
28023,
12,
22,
1769,
3639,
289,
469,
309,
261,
455,
20989,
1069,
18,
17514,
1190,
2932,
759,
6,
3719,
95,
5411,
327,
385,
67,
5280,
67,
20609,
15,
455,
20989,
1069,
18,
28023,
12,
21,
1769,
3639,
289,
469,
288,
5411,
327,
312,
67,
4256,
2375,
15,
455,
20989,
1069,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11021,
2375,
12,
780,
31174,
1069,
15329,
3639,
309,
12,
455,
20989,
1069,
18,
17514,
1190,
2932,
759,
4898,
3719,
95,
5411,
327,
31174,
1069,
18,
28023,
12,
22,
1769,
3639,
289,
469,
309,
261,
455,
20989,
1069,
18,
17514,
1190,
2932,
759,
6,
3719,
95,
5411,
327,
385,
67,
5280,
67,
20609,
15,
455,
20989,
1069,
18,
28023,
12,
21,
1769,
3639,
289,
469,
288,
5411,
327,
312,
67,
4256,
2375,
15,
455,
20989,
1069,
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
] |
public boolean select(Object object) { try { // if (element instanceof AbstractTaskContainer) { // AbstractTaskContainer container = (AbstractTaskContainer) // element; // // TODO: get rid of this work-around to look down? // for (ITask task : container.getChildren()) { // if (select(viewer, this, task)) { // return true; // } // } // IMylarElement element = null; if (object instanceof ITask || object instanceof AbstractQueryHit) { ITask task = null; if (object instanceof ITask) { task = (ITask) object; } else if (object instanceof AbstractQueryHit) { task = ((AbstractQueryHit) object).getCorrespondingTask(); } if (task != null) { if (isInteresting(task)) { return true; }// IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(task);// if (!bridge.canFilter(task)) {// return true;// }// String handle = bridge.getHandleIdentifier(task.getHandleIdentifier());// element = MylarPlugin.getContextManager().getActivityHistoryMetaContext().get(handle); } }// if (element != null) {// if (element.getInterest().isPredicted()) {// return false;// } else {// return element.getInterest().getValue() > MylarContextManager.getScalingFactors().getInteresting();// }// } } catch (Throwable t) { MylarStatusHandler.fail(t, "interest filter failed", false); } return false; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/3d8bfc7b41d2ad6019b87cc0e67c4c6596a3465b/TaskListInterestFilter.java/clean/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/ui/TaskListInterestFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2027,
12,
921,
733,
13,
288,
202,
202,
698,
288,
1082,
202,
759,
309,
261,
2956,
1276,
4115,
2174,
2170,
13,
288,
1082,
202,
759,
4115,
2174,
2170,
1478,
273,
261,
7469,
2174,
2170,
13,
1082,
202,
759,
930,
31,
1082,
202,
759,
368,
2660,
30,
336,
10911,
434,
333,
1440,
17,
12716,
358,
2324,
2588,
35,
1082,
202,
759,
364,
261,
1285,
835,
1562,
294,
1478,
18,
588,
4212,
10756,
288,
1082,
202,
759,
309,
261,
4025,
12,
25256,
16,
333,
16,
1562,
3719,
288,
1082,
202,
759,
327,
638,
31,
1082,
202,
759,
289,
1082,
202,
759,
289,
1082,
202,
759,
1082,
202,
3445,
93,
7901,
1046,
930,
273,
446,
31,
1082,
202,
430,
261,
1612,
1276,
467,
2174,
747,
733,
1276,
4115,
1138,
13616,
13,
288,
9506,
202,
1285,
835,
1562,
273,
446,
31,
9506,
202,
430,
261,
1612,
1276,
467,
2174,
13,
288,
6862,
202,
4146,
273,
261,
1285,
835,
13,
733,
31,
9506,
202,
97,
469,
309,
261,
1612,
1276,
4115,
1138,
13616,
13,
288,
6862,
202,
4146,
273,
14015,
7469,
1138,
13616,
13,
733,
2934,
588,
6217,
17863,
310,
2174,
5621,
9506,
202,
97,
9506,
202,
430,
261,
4146,
480,
446,
13,
288,
6862,
202,
430,
261,
291,
2465,
10100,
12,
4146,
3719,
288,
25083,
202,
2463,
638,
31,
6862,
202,
97,
759,
6862,
202,
3445,
93,
7901,
6999,
13691,
10105,
273,
8005,
7901,
3773,
18,
588,
1868,
7675,
588,
6999,
13691,
12,
4146,
1769,
759,
6862,
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,
1250,
2027,
12,
921,
733,
13,
288,
202,
202,
698,
288,
1082,
202,
759,
309,
261,
2956,
1276,
4115,
2174,
2170,
13,
288,
1082,
202,
759,
4115,
2174,
2170,
1478,
273,
261,
7469,
2174,
2170,
13,
1082,
202,
759,
930,
31,
1082,
202,
759,
368,
2660,
30,
336,
10911,
434,
333,
1440,
17,
12716,
358,
2324,
2588,
35,
1082,
202,
759,
364,
261,
1285,
835,
1562,
294,
1478,
18,
588,
4212,
10756,
288,
1082,
202,
759,
309,
261,
4025,
12,
25256,
16,
333,
16,
1562,
3719,
288,
1082,
202,
759,
327,
638,
31,
1082,
202,
759,
289,
1082,
202,
759,
289,
1082,
202,
759,
1082,
202,
3445,
93,
7901,
1046,
930,
273,
446,
31,
1082,
202,
2
] |
||
if(jogl) jarArg += ":jogl.jar";
|
private void generateUnixShellWrapper( File outDir, String filename, String jarArg, String classArg, String exeName ) throws IOException { // Include jogl.jar in the path if this is a JOGL screensaver. if(jogl) jarArg += ":jogl.jar"; File outFile = new File( outDir, filename ); Properties substitute = new Properties(); substitute.setProperty("jar", jarArg); substitute.setProperty("class", classArg); substitute.setProperty("exe", exeName); Utilities.copyFileAndSubstitute(outFile, "/org/jdesktop/jdic/screensaver/autogen/resources/unix/" + "saverbeans.sh.template", substitute, "[[", "]]", false); }
|
4176 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4176/d20ef17f1af829c7bd1148fb4bda28e3d700f387/ForEachScreensaver.java/buggy/src/incubator/screensaver/src/ant/org/jdesktop/jdic/screensaver/autogen/ForEachScreensaver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
18729,
13220,
3611,
12,
1387,
596,
1621,
16,
514,
1544,
16,
540,
514,
7334,
4117,
16,
514,
667,
4117,
16,
514,
15073,
461,
262,
540,
1216,
1860,
565,
288,
3639,
368,
12672,
525,
717,
80,
18,
11930,
316,
326,
589,
309,
333,
353,
279,
804,
51,
11261,
888,
266,
773,
21851,
18,
5397,
1387,
21651,
273,
394,
1387,
12,
596,
1621,
16,
1544,
11272,
3639,
6183,
14811,
273,
394,
6183,
5621,
3639,
14811,
18,
542,
1396,
2932,
11930,
3113,
7334,
4117,
1769,
3639,
14811,
18,
542,
1396,
2932,
1106,
3113,
667,
4117,
1769,
3639,
14811,
18,
542,
1396,
2932,
14880,
3113,
15073,
461,
1769,
3639,
26703,
18,
3530,
812,
1876,
1676,
17207,
12,
659,
812,
16,
2398,
2206,
3341,
19,
78,
31949,
19,
78,
15859,
19,
1017,
266,
773,
21851,
19,
5854,
19409,
19,
4683,
19,
21136,
4898,
397,
5411,
315,
13098,
502,
2196,
634,
18,
674,
18,
3202,
3113,
14811,
16,
5158,
63,
3113,
9850,
65,
3113,
629,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
918,
2103,
18729,
13220,
3611,
12,
1387,
596,
1621,
16,
514,
1544,
16,
540,
514,
7334,
4117,
16,
514,
667,
4117,
16,
514,
15073,
461,
262,
540,
1216,
1860,
565,
288,
3639,
368,
12672,
525,
717,
80,
18,
11930,
316,
326,
589,
309,
333,
353,
279,
804,
51,
11261,
888,
266,
773,
21851,
18,
5397,
1387,
21651,
273,
394,
1387,
12,
596,
1621,
16,
1544,
11272,
3639,
6183,
14811,
273,
394,
6183,
5621,
3639,
14811,
18,
542,
1396,
2932,
11930,
3113,
7334,
4117,
1769,
3639,
14811,
18,
542,
1396,
2932,
1106,
3113,
667,
4117,
1769,
3639,
14811,
18,
542,
1396,
2932,
14880,
3113,
15073,
461,
1769,
3639,
26703,
18,
3530,
812,
1876,
1676,
17207,
12,
659,
812,
2
] |
|
"xmlns", "urn:schemas-microsoft-com:xml-analysis:rowset"});
|
"xmlns", XMLA_NS + ":rowset"});
|
private void discover(Element discover, SAXHandler saxHandler) { String requestType = firstElementCDATA(discover, "RequestType"); if (requestType == null) { throw Util.newError("<RequestType> parameter is required"); } HashMap restrictionsProperties = getRestrictions(discover); Properties propertyProperties = getProperties(discover); final RowsetDefinition rowsetDefinition = RowsetDefinition.getValue(requestType); Rowset rowset = rowsetDefinition.getRowset(restrictionsProperties, propertyProperties); try { saxHandler.startElement("DiscoverResponse", new String[] { "xmlns", "urn:schemas-microsoft-com:xml-analysis"}); saxHandler.startElement("return"); saxHandler.startElement("root", new String[] { "xmlns", "urn:schemas-microsoft-com:xml-analysis:rowset"}); saxHandler.startElement("xsd:schema", new String[] { "xmlns:xsd", "http://www.w3.org/2001/XMLSchema"}); // todo: schema definition saxHandler.endElement(); try { rowset.unparse(saxHandler); } finally { // keep the tags balanced, even if there's an error saxHandler.endElement(); saxHandler.endElement(); saxHandler.endElement(); } } catch (SAXException e) { throw Util.newError(e, "Error while processing '" + requestType + "' discovery request"); } }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/9e0a26e274bcb21b57a8b0b237a47667e49e5864/XmlaMediator.java/clean/src/main/mondrian/xmla/XmlaMediator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10372,
12,
1046,
10372,
16,
10168,
1503,
20319,
1503,
13,
288,
3639,
514,
27179,
273,
1122,
1046,
18375,
12,
2251,
3165,
16,
315,
691,
559,
8863,
3639,
309,
261,
2293,
559,
422,
446,
13,
288,
5411,
604,
3564,
18,
2704,
668,
2932,
32,
691,
559,
34,
1569,
353,
1931,
8863,
3639,
289,
3639,
4317,
17499,
2297,
273,
336,
26175,
12,
2251,
3165,
1769,
3639,
6183,
1272,
2297,
273,
9392,
12,
2251,
3165,
1769,
3639,
727,
6556,
542,
1852,
1027,
542,
1852,
273,
6556,
542,
1852,
18,
24805,
12,
2293,
559,
1769,
3639,
6556,
542,
1027,
542,
273,
1027,
542,
1852,
18,
588,
1999,
542,
12,
23954,
87,
2297,
16,
1272,
2297,
1769,
3639,
775,
288,
5411,
20319,
1503,
18,
1937,
1046,
2932,
26082,
1064,
3113,
394,
514,
8526,
288,
7734,
315,
16741,
3113,
315,
321,
30,
17928,
17,
27739,
17,
832,
30,
2902,
17,
12746,
6,
22938,
5411,
20319,
1503,
18,
1937,
1046,
2932,
2463,
8863,
5411,
20319,
1503,
18,
1937,
1046,
2932,
3085,
3113,
394,
514,
8526,
288,
7734,
315,
16741,
3113,
3167,
37,
67,
3156,
397,
6398,
492,
542,
6,
22938,
5411,
20319,
1503,
18,
1937,
1046,
2932,
19144,
30,
4821,
3113,
394,
514,
8526,
288,
7734,
315,
16741,
30,
19144,
3113,
315,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
6976,
21,
19,
4201,
3078,
6,
22938,
5411,
368,
10621,
30,
1963,
2379,
5411,
20319,
1503,
18,
409,
1046,
5621,
5411,
775,
288,
7734,
1027,
542,
18,
318,
2670,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10372,
12,
1046,
10372,
16,
10168,
1503,
20319,
1503,
13,
288,
3639,
514,
27179,
273,
1122,
1046,
18375,
12,
2251,
3165,
16,
315,
691,
559,
8863,
3639,
309,
261,
2293,
559,
422,
446,
13,
288,
5411,
604,
3564,
18,
2704,
668,
2932,
32,
691,
559,
34,
1569,
353,
1931,
8863,
3639,
289,
3639,
4317,
17499,
2297,
273,
336,
26175,
12,
2251,
3165,
1769,
3639,
6183,
1272,
2297,
273,
9392,
12,
2251,
3165,
1769,
3639,
727,
6556,
542,
1852,
1027,
542,
1852,
273,
6556,
542,
1852,
18,
24805,
12,
2293,
559,
1769,
3639,
6556,
542,
1027,
542,
273,
1027,
542,
1852,
18,
588,
1999,
542,
12,
23954,
87,
2297,
16,
1272,
2297,
1769,
3639,
775,
288,
5411,
2
] |
result = ((RubyProc) proc).call(rubyArgs).toRubyObject();
|
result = ((RubyProc) proc).call(rubyArgs);
|
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { IRubyObject result = getRuntime().getNil(); RubyHash interfaceProcs = (RubyHash) getInstanceVariable("interfaceProcs"); RubyString methodName = RubyString.newString(getRuntime(), method.getName()); IRubyObject proc; IRubyObject rubyMethod; if (!(proc = interfaceProcs.aref(methodName)).isNil()) { IRubyObject[] rubyArgs = JavaUtil.convertJavaArrayToRuby(getRuntime(), args); result = ((RubyProc) proc).call(rubyArgs).toRubyObject(); } else if (!(rubyMethod = method(methodName)).isNil()) { IRubyObject[] rubyArgs = JavaUtil.convertJavaArrayToRuby(getRuntime(), args); result = ((RubyMethod) rubyMethod).call(rubyArgs); } else { IRubyObject[] rubyArgs = new IRubyObject[args.length + 1]; for (int i = 0; i < args.length; i++) { rubyArgs[i + 1] = JavaUtil.convertJavaToRuby(getRuntime(), args[i]); } result = callMethod("send", rubyArgs); } return JavaUtil.convertRubyToJava(getRuntime(), result, method.getReturnType()); }
|
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyJavaIObject.java/buggy/org/jruby/RubyJavaIObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
4356,
12,
921,
2889,
16,
2985,
707,
16,
1033,
8526,
833,
13,
1216,
4206,
288,
3639,
15908,
10340,
921,
563,
273,
18814,
7675,
588,
12616,
5621,
3639,
19817,
2310,
1560,
626,
2143,
273,
261,
54,
10340,
2310,
13,
3694,
3092,
2932,
5831,
626,
2143,
8863,
3639,
19817,
780,
4918,
273,
19817,
780,
18,
2704,
780,
12,
588,
5576,
9334,
707,
18,
17994,
10663,
3639,
15908,
10340,
921,
5418,
31,
3639,
15908,
10340,
921,
22155,
1305,
31,
3639,
309,
16051,
12,
9381,
273,
1560,
626,
2143,
18,
834,
74,
12,
2039,
461,
13,
2934,
291,
12616,
10756,
288,
5411,
15908,
10340,
921,
8526,
22155,
2615,
273,
5110,
1304,
18,
6283,
5852,
1076,
774,
54,
10340,
12,
588,
5576,
9334,
833,
1769,
5411,
563,
273,
14015,
54,
10340,
15417,
13,
5418,
2934,
1991,
12,
27768,
2615,
1769,
3639,
289,
469,
309,
16051,
12,
27768,
1305,
273,
707,
12,
2039,
461,
13,
2934,
291,
12616,
10756,
288,
5411,
15908,
10340,
921,
8526,
22155,
2615,
273,
5110,
1304,
18,
6283,
5852,
1076,
774,
54,
10340,
12,
588,
5576,
9334,
833,
1769,
5411,
563,
273,
14015,
54,
10340,
1305,
13,
22155,
1305,
2934,
1991,
12,
27768,
2615,
1769,
3639,
289,
469,
288,
5411,
15908,
10340,
921,
8526,
22155,
2615,
273,
394,
15908,
10340,
921,
63,
1968,
18,
2469,
397,
404,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
7734,
22155,
2615,
63,
77,
397,
404,
65,
273,
5110,
1304,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
4356,
12,
921,
2889,
16,
2985,
707,
16,
1033,
8526,
833,
13,
1216,
4206,
288,
3639,
15908,
10340,
921,
563,
273,
18814,
7675,
588,
12616,
5621,
3639,
19817,
2310,
1560,
626,
2143,
273,
261,
54,
10340,
2310,
13,
3694,
3092,
2932,
5831,
626,
2143,
8863,
3639,
19817,
780,
4918,
273,
19817,
780,
18,
2704,
780,
12,
588,
5576,
9334,
707,
18,
17994,
10663,
3639,
15908,
10340,
921,
5418,
31,
3639,
15908,
10340,
921,
22155,
1305,
31,
3639,
309,
16051,
12,
9381,
273,
1560,
626,
2143,
18,
834,
74,
12,
2039,
461,
13,
2934,
291,
12616,
10756,
288,
5411,
15908,
10340,
921,
8526,
22155,
2615,
273,
5110,
1304,
18,
6283,
5852,
1076,
774,
54,
10340,
12,
588,
2
] |
public static ILog getLog() {
|
public static ILogger getLog() {
|
public static ILog getLog() { if (log == null) log = getDummyLog(); return log; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c15c908f5e0f49fe11944b9aca9e30cd2eba54a3/Policy.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Policy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
467,
3328,
9189,
1435,
288,
3639,
309,
261,
1330,
422,
446,
13,
5411,
613,
273,
2343,
379,
4811,
1343,
5621,
3639,
327,
613,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
467,
3328,
9189,
1435,
288,
3639,
309,
261,
1330,
422,
446,
13,
5411,
613,
273,
2343,
379,
4811,
1343,
5621,
3639,
327,
613,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return this.isRootVisible() && this.getRowForPath(path) == 0;
|
return isRootVisible() && (getRowForPath(path) == 0);
|
private boolean isRootPath(TreePath path) { return this.isRootVisible() && this.getRowForPath(path) == 0; }
|
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/JDragTree.java/buggy/src/thaw/gui/JDragTree.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
19371,
743,
12,
2471,
743,
589,
13,
202,
95,
202,
202,
2463,
333,
18,
291,
2375,
6207,
1435,
597,
333,
18,
588,
1999,
25589,
12,
803,
13,
422,
374,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
19371,
743,
12,
2471,
743,
589,
13,
202,
95,
202,
202,
2463,
333,
18,
291,
2375,
6207,
1435,
597,
333,
18,
588,
1999,
25589,
12,
803,
13,
422,
374,
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
] |
transformerHandler.getTransformer().setURIResolver(new TransformerURIResolver(XSLTTransformer.this, pipelineContext, INPUT_DATA, true));
|
transformerHandler.getTransformer().setURIResolver(new TransformerURIResolver(XSLTTransformer.this, pipelineContext, INPUT_DATA, URLGenerator.DEFAULT_HANDLE_XINCLUDE));
|
public void readImpl(PipelineContext pipelineContext, ContentHandler contentHandler) { Transformer transformer = null; TransformerHandler transformerHandler = null; try { // Get URI references from cache KeyValidity configKeyValidity = getInputKeyValidity(pipelineContext, INPUT_CONFIG); URIReferences uriReferences = getURIReferences(pipelineContext, configKeyValidity); // Get transformer from cache if (uriReferences != null) { // FIXME: this won't depend on the transformer input. KeyValidity stylesheetKeyValidity = createStyleSheetKeyValidity(pipelineContext, configKeyValidity, uriReferences); if (stylesheetKeyValidity != null) transformer = (Transformer) ObjectCache.instance() .findValid(pipelineContext, stylesheetKeyValidity.key, stylesheetKeyValidity.validity); } // Get transformer attributes if any Map attributes = null; { // Read attributes input only if connected if (getConnectedInputs().get(INPUT_ATTRIBUTES) != null) { // Read input as an attribute Map and cache it attributes = (Map) readCacheInputAsObject(pipelineContext, getInputByName(INPUT_ATTRIBUTES), new CacheableInputReader() { public Object read(PipelineContext context, ProcessorInput input) { Document preferencesDocument = readInputAsDOM4J(context, input); OXFPropertiesSerializer.PropertyStore propertyStore = OXFPropertiesSerializer.createPropertyStore(preferencesDocument); OXFProperties.PropertySet propertySet = propertyStore.getGlobalPropertySet(); return propertySet.getObjectMap(); } }); } } // Create transformer if we did not find one in cache if (transformer == null) { // Get transformer configuration Node config = readCacheInputAsDOM4J(pipelineContext, INPUT_TRANSFORMER); String transformerClass = XPathUtils.selectStringValueNormalize(config, "/config/class"); // Create transformer transformer = createTransformer(pipelineContext, transformerClass, attributes); } // Create transformer handler and set output writer for Saxon StringWriter saxonStringWriter = null; StringErrorListener errorListener = new StringErrorListener(logger); transformerHandler = TransformerUtils.getTransformerHandler(transformer.templates, transformer.transformerClass, attributes); transformerHandler.getTransformer().setURIResolver(new TransformerURIResolver(XSLTTransformer.this, pipelineContext, INPUT_DATA, true)); transformerHandler.getTransformer().setErrorListener(errorListener); String transformerClassName = transformerHandler.getTransformer().getClass().getName(); if (transformerClassName.equals("net.sf.saxon.Controller") || transformerClassName.equals("org.orbeon.saxon.Controller")) { saxonStringWriter = new StringWriter(); Object saxonTransformer = transformerHandler.getTransformer(); Method getMessageEmitter = saxonTransformer.getClass().getMethod("getMessageEmitter", new Class[]{}); Object messageEmitter = getMessageEmitter.invoke(saxonTransformer, new Object[]{}); if (messageEmitter == null) { Method makeMessageEmitter = saxonTransformer.getClass().getMethod("makeMessageEmitter", new Class[]{}); messageEmitter = makeMessageEmitter.invoke(saxonTransformer, new Object[]{}); } Method setWriter = messageEmitter.getClass().getMethod("setWriter", new Class[]{Writer.class}); setWriter.invoke(messageEmitter, new Object[]{saxonStringWriter}); } final LocationData locDat = getLocationData(); final SAXResult sr = new SAXResult(new SimpleForwardingContentHandler(contentHandler) { Locator locator; // Saxon happens to issue such prefix mappings from time to time. Those // cause issues later down the chain, and anyway serialize to incorrect XML // if xmlns:xmlns="..." gets generated. This appears to happen when Saxon // uses the Copy() instruction. It may be that the source is then // incorrect, but we haven't traced this further. It may also simply be a // bug in Saxon. public void startPrefixMapping(String s, String s1) throws SAXException { if ("xmlns".equals(s)) { return; } super.startPrefixMapping(s, s1); } public void setDocumentLocator( final Locator loc ) { locator = loc; } public void startDocument() throws SAXException { if ( ( locator == null || locator.getSystemId() == null ) && locDat != null ) { final Locator loc = new ConstantLocator( locDat ); super.setDocumentLocator( loc ); } super.startDocument(); } }); if ( locDat != null ) { final String sysID = locDat.getSystemID(); sr.setSystemId( sysID ); transformerHandler.setSystemId( sysID ); } transformerHandler.setResult( sr ); // Execute transformation try { if (XSLTTransformer.this.getConnectedInputs().size() > 3) { // When other inputs are connected, they can be read // with the doc() function in XSLT. Reading those // documents might happen before the whole input // document is read, which is not compatible with // our processing model. So in this case, we first // read the data in a SAX store. SAXStore dataSaxStore = new SAXStore(); readInputAsSAX(pipelineContext, INPUT_DATA, dataSaxStore); dataSaxStore.replay(transformerHandler); } else { readInputAsSAX(pipelineContext, INPUT_DATA, transformerHandler); } } finally { // Log message from Saxon if (saxonStringWriter != null) { String message = saxonStringWriter.toString(); if (message.length() > 0) logger.info(message); } } // Check whether some errors were added if (errorListener.hasErrors()) { final List errors = errorListener.getErrors(); if (errors != null) { ValidationException ve = null; for (Iterator i = errors.iterator(); i.hasNext();) { final LocationData currentLocationData = (LocationData) i.next(); if (ve == null) ve = new ValidationException("Errors while executing transformation", currentLocationData); else ve.addLocationData(currentLocationData); } } } } catch (ValidationException e) { throw e; } catch (TransformerException e) { final ExtendedLocationData extendedLocationData = StringErrorListener.getTransformerExceptionLocationData(e, transformer.systemId); throw new ValidationException(e, extendedLocationData); } catch (Exception e) { if (transformer != null && transformer.systemId != null) { throw new ValidationException(e, new LocationData(transformer.systemId, -1, -1)); } else { throw new OXFException(e); } } }
|
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/3fbd0bd00d823a0c55f659e5ff419597d5e2e29c/XSLTTransformer.java/buggy/src/java/org/orbeon/oxf/processor/transformer/xslt/XSLTTransformer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
855,
2828,
12,
8798,
1042,
5873,
1042,
16,
3697,
1503,
913,
1503,
13,
288,
7734,
11519,
8360,
273,
446,
31,
7734,
11519,
1503,
8360,
1503,
273,
446,
31,
7734,
775,
288,
10792,
368,
968,
3699,
5351,
628,
1247,
10792,
1929,
19678,
26796,
19678,
273,
12353,
653,
19678,
12,
14511,
1042,
16,
12943,
67,
7203,
1769,
10792,
3699,
8221,
2003,
8221,
273,
21375,
8221,
12,
14511,
1042,
16,
26796,
19678,
1769,
10792,
368,
968,
8360,
628,
1247,
10792,
309,
261,
1650,
8221,
480,
446,
13,
288,
13491,
368,
9852,
30,
333,
8462,
1404,
2447,
603,
326,
8360,
810,
18,
13491,
1929,
19678,
13820,
653,
19678,
273,
752,
2885,
8229,
653,
19678,
12,
14511,
1042,
16,
26796,
19678,
16,
2003,
8221,
1769,
13491,
309,
261,
19403,
653,
19678,
480,
446,
13,
18701,
8360,
273,
261,
8319,
13,
1033,
1649,
18,
1336,
1435,
4766,
565,
263,
4720,
1556,
12,
14511,
1042,
16,
13820,
653,
19678,
18,
856,
16,
13820,
653,
19678,
18,
877,
560,
1769,
10792,
289,
10792,
368,
968,
8360,
1677,
309,
1281,
10792,
1635,
1677,
273,
446,
31,
10792,
288,
13491,
368,
2720,
1677,
810,
1338,
309,
5840,
13491,
309,
261,
588,
8932,
10059,
7675,
588,
12,
15934,
67,
22308,
13,
480,
446,
13,
288,
18701,
368,
2720,
810,
487,
392,
1566,
1635,
471,
1247,
518,
18701,
1677,
273,
261,
863,
13,
855,
1649,
1210,
1463,
921,
12,
14511,
1042,
16,
12353,
5911,
12,
15934,
67,
22308,
3631,
394,
4379,
429,
1210,
2514,
1435,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
855,
2828,
12,
8798,
1042,
5873,
1042,
16,
3697,
1503,
913,
1503,
13,
288,
7734,
11519,
8360,
273,
446,
31,
7734,
11519,
1503,
8360,
1503,
273,
446,
31,
7734,
775,
288,
10792,
368,
968,
3699,
5351,
628,
1247,
10792,
1929,
19678,
26796,
19678,
273,
12353,
653,
19678,
12,
14511,
1042,
16,
12943,
67,
7203,
1769,
10792,
3699,
8221,
2003,
8221,
273,
21375,
8221,
12,
14511,
1042,
16,
26796,
19678,
1769,
10792,
368,
968,
8360,
628,
1247,
10792,
309,
261,
1650,
8221,
480,
446,
13,
288,
13491,
368,
9852,
30,
333,
8462,
1404,
2447,
603,
326,
8360,
810,
18,
13491,
1929,
19678,
13820,
653,
19678,
273,
752,
2885,
8229,
653,
19678,
12,
14511,
1042,
16,
26796,
19678,
2
] |
if (bugCollection.add(bugInstance)){
|
if (bugCollection.add(bugInstance)) {
|
public void doReportBug(BugInstance bugInstance) { if (bugCollection.add(bugInstance)){ printBug(bugInstance); notifyObservers(bugInstance); } }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/XDocsBugReporter.java/clean/findbugs/src/java/edu/umd/cs/findbugs/XDocsBugReporter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
4820,
19865,
12,
19865,
1442,
7934,
1442,
13,
288,
202,
202,
430,
261,
925,
2532,
18,
1289,
12,
925,
1442,
3719,
95,
1082,
202,
1188,
19865,
12,
925,
1442,
1769,
1082,
202,
12336,
29393,
12,
925,
1442,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
4820,
19865,
12,
19865,
1442,
7934,
1442,
13,
288,
202,
202,
430,
261,
925,
2532,
18,
1289,
12,
925,
1442,
3719,
95,
1082,
202,
1188,
19865,
12,
925,
1442,
1769,
1082,
202,
12336,
29393,
12,
925,
1442,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
JChemPaintModel jcpmodel = jcpPanel.getJChemPaintModel();
|
public void actionPerformed(ActionEvent e) { HashMap atomCoordsMap = new HashMap(); logger.info("Going to performe a clean up..."); if (jcpPanel.getJChemPaintModel() != null) { if (diagramGenerator == null) { diagramGenerator = new StructureDiagramGenerator(); diagramGenerator.setTemplateHandler( new TemplateHandler() ); } JChemPaintModel jcpmodel = jcpPanel.getJChemPaintModel(); Renderer2DModel renderModel = jcpmodel.getRendererModel(); double bondLength = renderModel.getBondLength() / renderModel.getScaleFactor(); diagramGenerator.setBondLength(bondLength * 2.0); // FIXME this extra factor should not be necessary logger.debug("getting ChemModel"); org.openscience.cdk.interfaces.IChemModel model = jcpmodel.getChemModel(); logger.debug("got ChemModel"); org.openscience.cdk.interfaces.IMoleculeSet som = model.getSetOfMolecules(); if (som != null) { logger.debug("no mols in som: ", som.getMoleculeCount()); SetOfMolecules newsom = new SetOfMolecules(); IMolecule[] mols = som.getMolecules(); for (int i = 0; i < mols.length; i++) { IMolecule molecule = mols[i]; IMolecule cleanedMol = relayoutMolecule(mols[i]); newsom.addMolecule(cleanedMol); IAtom[] atoms = molecule.getAtoms(); IAtom[] newAtoms = cleanedMol.getAtoms(); for (int j=0; j<atoms.length; j++) { Point2d oldCoord = atoms[j].getPoint2d(); Point2d newCoord = newAtoms[j].getPoint2d(); if (!oldCoord.equals(newCoord)) { Point2d[] coords = new Point2d[2]; coords[0] = newCoord; coords[1] = oldCoord; atomCoordsMap.put(newAtoms[j], coords); } } } model.setSetOfMolecules(newsom); UndoableEdit edit = new CleanUpEdit(atomCoordsMap); jcpPanel.getUndoSupport().postEdit(edit); } org.openscience.cdk.interfaces.IReactionSet reactionSet = model.getSetOfReactions(); if (reactionSet != null) { SetOfReactions newSet = new SetOfReactions(); // FIXME, this does not preserve reactionset properties! org.openscience.cdk.interfaces.IReaction[] reactions = reactionSet.getReactions(); for (int j = 0; j < reactions.length; j++) { org.openscience.cdk.interfaces.IReaction reaction = reactions[j]; Reaction newReaction = new Reaction(); // FIXME, this does not preserve reaction properties! IMolecule[] reactants = reaction.getReactants().getMolecules(); for (int i = 0; i < reactants.length; i++) { newReaction.addReactant(relayoutMolecule(reactants[i])); } IMolecule[] products = reaction.getProducts().getMolecules(); for (int i = 0; i < products.length; i++) { newReaction.addProduct(relayoutMolecule(products[i])); } newSet.addReaction(newReaction); } model.setSetOfReactions(newSet); } jcpmodel.getRendererModel().setSelectedPart(new AtomContainer()); jcpmodel.fireChange(); jcpPanel.scaleAndCenterMolecule(jcpmodel.getChemModel()); ((DrawingPanel)jcpPanel.getDrawingPanel()).updateRingSetInRenderer(); jcpPanel.repaint(); } }
|
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/43039fed38b35798794393fa49be6be78a5009a6/CleanupAction.java/clean/src/org/openscience/cdk/applications/jchempaint/action/CleanupAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
202,
95,
202,
3639,
4317,
3179,
13089,
863,
273,
394,
4317,
5621,
3639,
1194,
18,
1376,
2932,
5741,
310,
358,
3073,
73,
279,
2721,
731,
7070,
1769,
202,
202,
430,
261,
78,
4057,
5537,
18,
588,
46,
20200,
12699,
1488,
1435,
480,
446,
13,
202,
202,
95,
1082,
202,
430,
261,
12264,
1940,
3908,
422,
446,
13,
288,
7734,
19750,
3908,
273,
394,
13348,
14058,
1940,
3908,
5621,
7734,
19750,
3908,
18,
542,
2283,
1503,
12,
10792,
394,
5035,
1503,
1435,
7734,
11272,
5411,
289,
1082,
202,
46,
20200,
12699,
1488,
525,
4057,
2284,
273,
525,
4057,
5537,
18,
588,
46,
20200,
12699,
1488,
5621,
1082,
202,
6747,
22,
40,
1488,
1743,
1488,
273,
525,
4057,
2284,
18,
588,
6747,
1488,
5621,
1082,
202,
9056,
8427,
1782,
273,
1743,
1488,
18,
588,
9807,
1782,
1435,
342,
1743,
1488,
18,
588,
5587,
6837,
5621,
1082,
202,
12264,
1940,
3908,
18,
542,
9807,
1782,
12,
26425,
1782,
380,
576,
18,
20,
1769,
1082,
202,
759,
9852,
333,
2870,
5578,
1410,
486,
506,
4573,
1082,
202,
4901,
18,
4148,
2932,
588,
1787,
26542,
1488,
8863,
1082,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
45,
20200,
1488,
938,
273,
525,
4057,
2284,
18,
588,
20200,
1488,
5621,
1082,
202,
4901,
18,
4148,
2932,
13212,
26542,
1488,
8863,
1082,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3445,
10545,
694,
4737,
273,
938,
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,
26100,
12,
1803,
1133,
425,
13,
202,
95,
202,
3639,
4317,
3179,
13089,
863,
273,
394,
4317,
5621,
3639,
1194,
18,
1376,
2932,
5741,
310,
358,
3073,
73,
279,
2721,
731,
7070,
1769,
202,
202,
430,
261,
78,
4057,
5537,
18,
588,
46,
20200,
12699,
1488,
1435,
480,
446,
13,
202,
202,
95,
1082,
202,
430,
261,
12264,
1940,
3908,
422,
446,
13,
288,
7734,
19750,
3908,
273,
394,
13348,
14058,
1940,
3908,
5621,
7734,
19750,
3908,
18,
542,
2283,
1503,
12,
10792,
394,
5035,
1503,
1435,
7734,
11272,
5411,
289,
1082,
202,
46,
20200,
12699,
1488,
525,
4057,
2284,
273,
525,
4057,
5537,
18,
588,
46,
20200,
12699,
1488,
5621,
1082,
202,
6747,
22,
2
] |
|
vstack.push(createConst(type, fpv1 + fpv2));
|
vstack.push(createConst(ifac, type, fpv1 + fpv2));
|
final static void add(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, fpv1 + fpv2)); } else { // Prepare stack final FPUStack fpuStack = vstack.fpuStack; final Register reg; reg = prepareForOperation(os, ec, vstack, fpuStack, v2, v1, true); final Item result = fpuStack.getItem(reg); fpuStack.pop(); // Calculate os.writeFADDP(reg); // Push result vstack.push(result); } }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e304bedac9ab86f88bdb27ffd782a9777505c449/FPUHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6385,
760,
918,
527,
12,
7469,
60,
5292,
1228,
1140,
16,
16008,
387,
1042,
6557,
16,
1082,
202,
6466,
2624,
19510,
16,
509,
618,
13,
288,
202,
202,
6385,
4342,
331,
22,
273,
19510,
18,
5120,
12,
723,
1769,
202,
202,
6385,
4342,
331,
21,
273,
19510,
18,
5120,
12,
723,
1769,
202,
202,
430,
261,
90,
21,
18,
291,
6902,
1435,
597,
331,
22,
18,
291,
6902,
10756,
288,
1082,
202,
6385,
1645,
4253,
90,
21,
273,
2812,
52,
620,
12,
90,
21,
1769,
1082,
202,
6385,
1645,
4253,
90,
22,
273,
2812,
52,
620,
12,
90,
22,
1769,
1082,
202,
90,
3772,
18,
6206,
12,
2640,
9661,
12,
723,
16,
4253,
90,
21,
397,
4253,
90,
22,
10019,
202,
202,
97,
469,
288,
1082,
202,
759,
7730,
2110,
1082,
202,
6385,
478,
18061,
2624,
4253,
89,
2624,
273,
19510,
18,
7944,
89,
2624,
31,
1082,
202,
6385,
5433,
960,
31,
1082,
202,
1574,
273,
2911,
1290,
2988,
12,
538,
16,
6557,
16,
19510,
16,
4253,
89,
2624,
16,
331,
22,
16,
331,
21,
16,
638,
1769,
1082,
202,
6385,
4342,
563,
273,
4253,
89,
2624,
18,
588,
1180,
12,
1574,
1769,
1082,
202,
7944,
89,
2624,
18,
5120,
5621,
1082,
202,
759,
9029,
1082,
202,
538,
18,
2626,
42,
8355,
52,
12,
1574,
1769,
1082,
202,
759,
8547,
563,
1082,
202,
90,
3772,
18,
6206,
12,
2088,
1769,
202,
202,
97,
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,
6385,
760,
918,
527,
12,
7469,
60,
5292,
1228,
1140,
16,
16008,
387,
1042,
6557,
16,
1082,
202,
6466,
2624,
19510,
16,
509,
618,
13,
288,
202,
202,
6385,
4342,
331,
22,
273,
19510,
18,
5120,
12,
723,
1769,
202,
202,
6385,
4342,
331,
21,
273,
19510,
18,
5120,
12,
723,
1769,
202,
202,
430,
261,
90,
21,
18,
291,
6902,
1435,
597,
331,
22,
18,
291,
6902,
10756,
288,
1082,
202,
6385,
1645,
4253,
90,
21,
273,
2812,
52,
620,
12,
90,
21,
1769,
1082,
202,
6385,
1645,
4253,
90,
22,
273,
2812,
52,
620,
12,
90,
22,
1769,
1082,
202,
90,
3772,
18,
6206,
12,
2640,
9661,
12,
723,
16,
4253,
90,
21,
397,
4253,
2
] |
context.put(SVGContext.DRAFT_BOUNDS, bounds);
|
context.put(SVGContext.DRAFT_BOUNDS, bounds);
|
private void generateSAX(ContentHandler handler, Map context) { try { handler.startDocument(); AttributesImpl attr = new AttributesImpl(); // add the viewport // with margin // this is important otherwise in most cases // the SVG-Viewer will not show the content String viewport = ""; Bounds bounds = getBounds(); if (header.hasVariable("$PEXTMAX") && header.hasVariable("$PEXTMMIN")) { DXFVariable min = header.getVariable("$PEXTMIN"); DXFVariable max = header.getVariable("$PEXTMAX"); double x = min.getDoubleValue("10"); double y = min.getDoubleValue("20"); double max_y = max.getDoubleValue("20"); double width = max.getDoubleValue("10") - x; double height = max_y - y; double boundsWidth = bounds.getWidth(); //we set a limit here and use the bounds instead if ((width <= (boundsWidth * 2)) && (width > 0)) { viewport = "" + x + " " + ((-1.0) * max_y) + " " + Math.abs(width) + " " + Math.abs(height); } } if (viewport.length() == 0) { viewport = "" + (bounds.getMinimumX() - margin) + " " + ((-1 * bounds.getMaximumY()) - margin) + " " + (bounds.getWidth() + (2 * margin)) + " " + (bounds.getHeight() + (2 * margin)); } SVGUtils.addAttribute(attr, "viewBox", viewport); //set the default namespace SVGUtils.addAttribute(attr, "xmlns", SVGConstants.SVG_NAMESPACE); SVGUtils.startElement(handler, SVGConstants.SVG_ROOT, attr); // the blocks as symbol in the defs-section of SVG attr = new AttributesImpl(); SVGUtils.startElement(handler, SVGConstants.SVG_DEFS, attr); //set the context context.put(SVGContext.DRAFT_BOUNDS, bounds); double dotLength = 0.0; if (bounds.getWidth() > bounds.getHeight()) { dotLength = bounds.getHeight() * SVGConstants.DEFAULT_STROKE_WIDTH_PERCENT; } else { dotLength = bounds.getWidth() * SVGConstants.DEFAULT_STROKE_WIDTH_PERCENT; } context.put(SVGContext.DOT_LENGTH, new Double(dotLength)); Enumeration e = blocks.elements(); while (e.hasMoreElements()) { DXFBlock block = (DXFBlock) e.nextElement(); block.toSAX(handler, context); } //maybe there is a fontdescription available from DXFStyle Iterator i = getDXFStyleIterator(); while (i.hasNext()) { DXFStyle style = (DXFStyle) i.next(); style.toSAX(handler, context); }// i = getDXFHatchPatternIterator();//// while (i.hasNext()) {// DXFHatchPattern pattern = (DXFHatchPattern) i.next();// pattern.toSAX(handler, context);// } SVGUtils.endElement(handler, SVGConstants.SVG_DEFS); // the draft attr = new AttributesImpl(); SVGUtils.addAttribute(attr, "id", "draft"); // the globale coordinate system transformation // note: DXF has the y-axis positiv from bottom to top // SVG has the y-axis positiv from top to bottom SVGUtils.addAttribute(attr, "transform", "matrix(1 0 0 -1 0 0)"); SVGUtils.addAttribute(attr, "stroke-width", "" + SVGConstants.DEFAULT_STROKE_WIDTH_PERCENT + '%'); SVGUtils.startElement(handler, SVGConstants.SVG_GROUP, attr); // the layers as container g-elements e = layers.elements(); while (e.hasMoreElements()) { DXFLayer layer = (DXFLayer) e.nextElement(); layer.toSAX(handler, context); } SVGUtils.endElement(handler, SVGConstants.SVG_GROUP); SVGUtils.endElement(handler, SVGConstants.SVG_ROOT); handler.endDocument(); } catch (SAXException e) { e.printStackTrace(); } }
|
4096 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4096/441cbcf95ce0b247d1739ffaf35bea6e7f6d13c6/DXFDocument.java/buggy/src/java/org/kabeja/dxf/DXFDocument.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
55,
2501,
12,
1350,
1503,
1838,
16,
1635,
819,
13,
288,
3639,
775,
288,
5411,
1838,
18,
1937,
2519,
5621,
5411,
9055,
2828,
1604,
273,
394,
9055,
2828,
5621,
5411,
368,
527,
326,
10482,
5411,
368,
598,
7333,
5411,
368,
333,
353,
10802,
3541,
316,
4486,
6088,
5411,
368,
326,
11281,
17,
18415,
903,
486,
2405,
326,
913,
5411,
514,
10482,
273,
1408,
31,
5411,
20382,
4972,
273,
22107,
5621,
5411,
309,
261,
3374,
18,
5332,
3092,
2932,
8,
1423,
3983,
6694,
7923,
597,
10792,
1446,
18,
5332,
3092,
2932,
8,
1423,
3983,
49,
6236,
6,
3719,
288,
7734,
26634,
42,
3092,
1131,
273,
1446,
18,
588,
3092,
2932,
8,
1423,
3983,
6236,
8863,
7734,
26634,
42,
3092,
943,
273,
1446,
18,
588,
3092,
2932,
8,
1423,
3983,
6694,
8863,
7734,
1645,
619,
273,
1131,
18,
588,
5265,
620,
2932,
2163,
8863,
7734,
1645,
677,
273,
1131,
18,
588,
5265,
620,
2932,
3462,
8863,
7734,
1645,
943,
67,
93,
273,
943,
18,
588,
5265,
620,
2932,
3462,
8863,
7734,
1645,
1835,
273,
943,
18,
588,
5265,
620,
2932,
2163,
7923,
300,
619,
31,
7734,
1645,
2072,
273,
943,
67,
93,
300,
677,
31,
7734,
1645,
4972,
2384,
273,
4972,
18,
588,
2384,
5621,
7734,
368,
1814,
444,
279,
1800,
2674,
471,
999,
326,
4972,
3560,
7734,
309,
14015,
2819,
1648,
261,
10576,
2384,
380,
576,
3719,
597,
261,
2819,
405,
374,
3719,
288,
10792,
10482,
273,
1408,
397,
619,
397,
315,
315,
397,
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,
2103,
55,
2501,
12,
1350,
1503,
1838,
16,
1635,
819,
13,
288,
3639,
775,
288,
5411,
1838,
18,
1937,
2519,
5621,
5411,
9055,
2828,
1604,
273,
394,
9055,
2828,
5621,
5411,
368,
527,
326,
10482,
5411,
368,
598,
7333,
5411,
368,
333,
353,
10802,
3541,
316,
4486,
6088,
5411,
368,
326,
11281,
17,
18415,
903,
486,
2405,
326,
913,
5411,
514,
10482,
273,
1408,
31,
5411,
20382,
4972,
273,
22107,
5621,
5411,
309,
261,
3374,
18,
5332,
3092,
2932,
8,
1423,
3983,
6694,
7923,
597,
10792,
1446,
18,
5332,
3092,
2932,
8,
1423,
3983,
49,
6236,
6,
3719,
288,
7734,
26634,
42,
3092,
1131,
273,
1446,
18,
588,
3092,
2932,
8,
1423,
3983,
6236,
8863,
7734,
2
] |
public void createActions() { if (Configuration.isTrue("xr.use.listeners", true)) { SelectionMouseListener ma = new SelectionMouseListener(); root.panel.view.addMouseListener(ma); root.panel.view.addMouseMotionListener(ma); // XXX Is this necessary? Basically identical code // appears in XHTMLPanel.setupListeners(). HoverListener hl = new HoverListener(root.panel.view); root.panel.view.addMouseListener(hl); root.panel.view.addMouseMotionListener(hl); LinkListener ll = new LinkListener(root.panel.view); root.panel.view.addMouseListener(ll); root.panel.view.addMouseMotionListener(ll); } }
|
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/9a4ed9a276ff3906598aa1c6aa55aeb8a2745a6e/BrowserMenuBar.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserMenuBar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
6100,
1435,
288,
3639,
309,
261,
1750,
18,
291,
5510,
2932,
92,
86,
18,
1202,
18,
16072,
3113,
638,
3719,
288,
5411,
12977,
9186,
2223,
10843,
273,
394,
12977,
9186,
2223,
5621,
5411,
1365,
18,
13916,
18,
1945,
18,
1289,
9186,
2223,
12,
2540,
1769,
5411,
1365,
18,
13916,
18,
1945,
18,
1289,
9186,
29360,
2223,
12,
2540,
1769,
7734,
368,
11329,
2585,
333,
4573,
35,
225,
7651,
1230,
12529,
981,
5411,
368,
14606,
316,
30551,
5537,
18,
8401,
5583,
7675,
5411,
670,
1643,
2223,
16043,
273,
394,
670,
1643,
2223,
12,
3085,
18,
13916,
18,
1945,
1769,
5411,
1365,
18,
13916,
18,
1945,
18,
1289,
9186,
2223,
12,
25356,
1769,
5411,
1365,
18,
13916,
18,
1945,
18,
1289,
9186,
29360,
2223,
12,
25356,
1769,
5411,
4048,
2223,
6579,
273,
394,
4048,
2223,
12,
3085,
18,
13916,
18,
1945,
1769,
5411,
1365,
18,
13916,
18,
1945,
18,
1289,
9186,
2223,
12,
2906,
1769,
5411,
1365,
18,
13916,
18,
1945,
18,
1289,
9186,
29360,
2223,
12,
2906,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
6100,
1435,
288,
3639,
309,
261,
1750,
18,
291,
5510,
2932,
92,
86,
18,
1202,
18,
16072,
3113,
638,
3719,
288,
5411,
12977,
9186,
2223,
10843,
273,
394,
12977,
9186,
2223,
5621,
5411,
1365,
18,
13916,
18,
1945,
18,
1289,
9186,
2223,
12,
2540,
1769,
5411,
1365,
18,
13916,
18,
1945,
18,
1289,
9186,
29360,
2223,
12,
2540,
1769,
7734,
368,
11329,
2585,
333,
4573,
35,
225,
7651,
1230,
12529,
981,
5411,
368,
14606,
316,
30551,
5537,
18,
8401,
5583,
7675,
5411,
670,
1643,
2223,
16043,
273,
394,
670,
1643,
2223,
12,
3085,
18,
13916,
18,
1945,
1769,
5411,
1365,
18,
13916,
18,
1945,
18,
1289,
9186,
2223,
12,
25356,
1769,
5411,
1365,
18,
13916,
2
] |
||
if (!"PASS".equals(result)) {
|
if (!"PASSED".equals(result)) {
|
public static void main(String[] args) throws Exception { int port = DEFAULT_PORT; int timeout= DEFAULT_TIMEOUT; boolean interactive = false; boolean htmlSuite = false; String browserString = null; String startURL = null; String suiteFilePath = null; String resultFilePath = null; for (int i = 0; i < args.length; i++) { String arg = args[i]; if ("-help".equals(arg)) { System.err.println("Usage: java -jar selenium-server.jar [-port nnnn] [-timeout nnnn] [-interactive] [-htmlSuite browserString (e.g. \"*firefox\") startURL (e.g. \"http://www.google.com\") " + "suiteFile (e.g. \"c:\\absolute\\path\\to\\my\\HTMLSuite.html\") resultFile (e.g. \"c:\\absolute\\path\\to\\my\\results.html\"]\n" + "where:\n" + "the argument for timeout is an integer number of seconds before we should give up\n" + "the argument for port is the port number the selenium server should use (default 4444)\n" + "-interactive puts you into interactive mode. See the tutorial for more details"); System.exit(1); } else if ("-port".equals(arg)) { port = Integer.parseInt(args[i + 1]); } else if ("-timeout".equals(arg)) { timeout = Integer.parseInt(args[i + 1]); } else if ("-htmlSuite".equals(arg)) { try { browserString = args[++i]; startURL = args[++i]; suiteFilePath = args[++i]; resultFilePath = args[++i]; } catch (ArrayIndexOutOfBoundsException e) { System.err.println("Not enough command line arguments for -htmlSuite"); System.err.println("-htmlSuite requires you to specify:"); System.err.println("* browserString (e.g. \"*firefox\")"); System.err.println("* startURL (e.g. \"http://www.google.com\")"); System.err.println("* suiteFile (e.g. \"c:\\absolute\\path\\to\\my\\HTMLSuite.html\")"); System.err.println("* resultFile (e.g. \"c:\\absolute\\path\\to\\my\\results.html\")"); System.exit(1); } htmlSuite = true; } else if ("-interactive".equals(arg)) { timeout = Integer.MAX_VALUE; interactive = true; } } if (interactive && htmlSuite) { System.err.println("You can't use -interactive and -htmlSuite on the same line!"); System.exit(1); } SingleEntryAsyncQueue.setTimeout(timeout); final SeleniumServer seleniumProxy = new SeleniumServer(port); Thread jetty = new Thread(new Runnable() { public void run() { try { seleniumProxy.start(); } catch (Exception e) { e.printStackTrace(); } } }); if (interactive) { jetty.setDaemon(true); } jetty.start(); Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { public void run() { try { System.out.println("Shutting down..."); seleniumProxy.stop(); } catch (InterruptedException e) { e.printStackTrace(); } } })); if (htmlSuite) { String result = null; try { File suiteFile = new File(suiteFilePath); seleniumProxy.addNewStaticContent(suiteFile.getParentFile()); String suiteURL = startURL + "/selenium-server/" + suiteFile.getName(); HTMLLauncher launcher = new HTMLLauncher(seleniumProxy); result = launcher.runHTMLSuite(browserString, startURL, suiteURL, new File(resultFilePath), timeout); } catch (Exception e) { e.printStackTrace(); System.exit(1); } if (!"PASS".equals(result)) { System.err.println("Tests failed"); System.exit(1); } else { System.exit(0); } } if (interactive) { AsyncExecute.sleepTight(500); System.out.println("Entering interactive mode... type Selenium commands here (e.g: cmd=open&1=http://www.yahoo.com)"); BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in)); String userInput; while ((userInput = stdIn.readLine()) != null) { if ("quit".equals(userInput)) { System.out.println("Stopping..."); seleniumProxy.stop(); System.exit(0); } final URL url = new URL("http://localhost:" + port + "/selenium-server/driver?" + userInput); Thread t = new Thread(new Runnable() { public void run() { try { System.out.println("---> Requesting " + url.toString()); URLConnection conn = url.openConnection(); conn.connect(); conn.getContent(); } catch (IOException e) { e.printStackTrace(); } } }); t.start(); } } }
|
4718 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4718/cae35506387810a0554490d81a0835223a19df70/SeleniumServer.java/clean/server/src/main/java/org/openqa/selenium/server/SeleniumServer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
3639,
509,
1756,
273,
3331,
67,
6354,
31,
3639,
509,
2021,
33,
3331,
67,
9503,
31,
3639,
1250,
12625,
273,
629,
31,
7734,
1250,
1729,
13587,
273,
629,
31,
3639,
514,
4748,
780,
273,
446,
31,
540,
514,
787,
1785,
273,
446,
31,
3639,
514,
11371,
5598,
273,
446,
31,
3639,
514,
563,
5598,
273,
446,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
514,
1501,
273,
833,
63,
77,
15533,
5411,
309,
7566,
17,
5201,
9654,
14963,
12,
3175,
3719,
288,
7734,
2332,
18,
370,
18,
8222,
2932,
5357,
30,
2252,
300,
11930,
29480,
17,
3567,
18,
11930,
23059,
655,
7761,
9074,
65,
23059,
4538,
7761,
9074,
65,
23059,
24761,
65,
23059,
2620,
13587,
4748,
780,
261,
73,
18,
75,
18,
1239,
14,
12179,
13873,
2412,
13,
787,
1785,
261,
73,
18,
75,
18,
1239,
2505,
2207,
5591,
18,
9536,
18,
832,
2412,
13,
315,
397,
13491,
315,
30676,
812,
261,
73,
18,
75,
18,
1239,
71,
31027,
12547,
1695,
803,
1695,
869,
1695,
4811,
1695,
4870,
13587,
18,
2620,
2412,
13,
563,
812,
261,
73,
18,
75,
18,
1239,
71,
31027,
12547,
1695,
803,
1695,
869,
1695,
4811,
1695,
4717,
18,
2620,
2412,
13944,
82,
6,
397,
13491,
315,
6051,
5581,
82,
6,
397,
13491,
315,
5787,
1237,
364,
2021,
353,
392,
3571,
1300,
434,
3974,
1865,
732,
1410,
8492,
731,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
3639,
509,
1756,
273,
3331,
67,
6354,
31,
3639,
509,
2021,
33,
3331,
67,
9503,
31,
3639,
1250,
12625,
273,
629,
31,
7734,
1250,
1729,
13587,
273,
629,
31,
3639,
514,
4748,
780,
273,
446,
31,
540,
514,
787,
1785,
273,
446,
31,
3639,
514,
11371,
5598,
273,
446,
31,
3639,
514,
563,
5598,
273,
446,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
514,
1501,
273,
833,
63,
77,
15533,
5411,
309,
7566,
17,
5201,
9654,
14963,
12,
3175,
3719,
288,
7734,
2332,
18,
370,
18,
8222,
2932,
5357,
30,
2252,
300,
11930,
29480,
2
] |
textPane = new JTextPane();
|
textPane = new TextEditorPane();
|
public JComponent createInputPanel() { textPane = new JTextPane(); textPane.setPreferredSize(new Dimension(200, 0)); textPane.setBackground(Color.white); textPane.setBorder(null); textPane.setFont(new Font("Courier", Font.PLAIN, 12)); textPane.setText(""); textPane.setEditable(false); JScrollPane textScrollPane = new JScrollPane(textPane); textScrollPane.setWheelScrollingEnabled(true); return textScrollPane; }
|
4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/dc79ce0a7a65ef3f5bf611245e37c5ed763f5add/Debugger.java/clean/src/org/antlr/works/debugger/Debugger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29058,
752,
1210,
5537,
1435,
288,
3639,
977,
8485,
273,
394,
3867,
6946,
8485,
5621,
3639,
977,
8485,
18,
542,
16028,
1225,
12,
2704,
13037,
12,
6976,
16,
374,
10019,
3639,
977,
8485,
18,
542,
8199,
12,
2957,
18,
14739,
1769,
3639,
977,
8485,
18,
542,
8107,
12,
2011,
1769,
3639,
977,
8485,
18,
542,
5711,
12,
2704,
10063,
2932,
39,
24775,
3113,
10063,
18,
26549,
16,
2593,
10019,
3639,
977,
8485,
18,
542,
1528,
2932,
8863,
3639,
977,
8485,
18,
542,
15470,
12,
5743,
1769,
3639,
804,
26360,
977,
26360,
273,
394,
804,
26360,
12,
955,
8485,
1769,
3639,
977,
26360,
18,
542,
59,
11648,
1541,
15742,
1526,
12,
3767,
1769,
3639,
327,
977,
26360,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29058,
752,
1210,
5537,
1435,
288,
3639,
977,
8485,
273,
394,
3867,
6946,
8485,
5621,
3639,
977,
8485,
18,
542,
16028,
1225,
12,
2704,
13037,
12,
6976,
16,
374,
10019,
3639,
977,
8485,
18,
542,
8199,
12,
2957,
18,
14739,
1769,
3639,
977,
8485,
18,
542,
8107,
12,
2011,
1769,
3639,
977,
8485,
18,
542,
5711,
12,
2704,
10063,
2932,
39,
24775,
3113,
10063,
18,
26549,
16,
2593,
10019,
3639,
977,
8485,
18,
542,
1528,
2932,
8863,
3639,
977,
8485,
18,
542,
15470,
12,
5743,
1769,
3639,
804,
26360,
977,
26360,
273,
394,
804,
26360,
12,
955,
8485,
1769,
3639,
977,
26360,
18,
542,
59,
11648,
1541,
15742,
1526,
12,
3767,
1769,
3639,
327,
977,
26360,
31,
2
] |
throw new RuntimeException("OpenGL routine \"" + function + "\" not available");
|
final String message = "OpenGL routine \"" + function + "\" not available"; new Thread(new Runnable() { public void run() { JOptionPane.showMessageDialog(null, message, "Unavailable extension", JOptionPane.ERROR_MESSAGE); runExit(); } }).start(); throw new RuntimeException(message);
|
private void ensurePresent(String function) { if (!canvas.getGL().isFunctionAvailable(function)) { throw new RuntimeException("OpenGL routine \"" + function + "\" not available"); } }
|
8999 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8999/beaca5fa8a64e8b7c5e9452fa9828eb9a217bd2e/VertexArrayRange.java/clean/src/demos/vertexArrayRange/VertexArrayRange.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3387,
6351,
12,
780,
445,
13,
288,
565,
309,
16051,
15424,
18,
588,
11261,
7675,
291,
2083,
5268,
12,
915,
3719,
288,
1377,
727,
514,
883,
273,
315,
3678,
11261,
12245,
11843,
397,
445,
397,
7023,
486,
2319,
14432,
394,
4884,
12,
2704,
10254,
1435,
288,
1071,
918,
1086,
1435,
288,
804,
1895,
8485,
18,
4500,
1079,
6353,
12,
2011,
16,
883,
16,
315,
11333,
2710,
3113,
804,
1895,
8485,
18,
3589,
67,
8723,
1769,
1086,
6767,
5621,
289,
289,
2934,
1937,
5621,
604,
394,
3235,
12,
2150,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
3238,
918,
3387,
6351,
12,
780,
445,
13,
288,
565,
309,
16051,
15424,
18,
588,
11261,
7675,
291,
2083,
5268,
12,
915,
3719,
288,
1377,
727,
514,
883,
273,
315,
3678,
11261,
12245,
11843,
397,
445,
397,
7023,
486,
2319,
14432,
394,
4884,
12,
2704,
10254,
1435,
288,
1071,
918,
1086,
1435,
288,
804,
1895,
8485,
18,
4500,
1079,
6353,
12,
2011,
16,
883,
16,
315,
11333,
2710,
3113,
804,
1895,
8485,
18,
3589,
67,
8723,
1769,
1086,
6767,
5621,
289,
289,
2934,
1937,
5621,
604,
394,
3235,
12,
2150,
1769,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
testDate(cal.getTime());
|
checkDate(cal.getTime());
|
private void testDate() { TimeZone.setDefault(TimeZone.getTimeZone("UTC")); Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); cal.set(Calendar.YEAR, 1970); cal.set(Calendar.MONTH, 0); cal.set(Calendar.DAY_OF_MONTH, 1); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); testDate(cal.getTime()); cal.set(Calendar.SECOND, 1); testDate(cal.getTime()); cal.set(Calendar.YEAR, 1999); cal.set(Calendar.MONTH, 11); cal.set(Calendar.DAY_OF_MONTH, 31); cal.set(Calendar.HOUR_OF_DAY, 23); cal.set(Calendar.MINUTE, 59); cal.set(Calendar.SECOND, 59); testDate(cal.getTime()); cal.set(Calendar.YEAR, 2000); cal.set(Calendar.MONTH, 0); cal.set(Calendar.DAY_OF_MONTH, 1); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); testDate(cal.getTime()); cal.setTimeInMillis(System.currentTimeMillis()); testDate(cal.getTime()); cal.set(Calendar.SECOND, cal.get(Calendar.SECOND)+10); testDate(cal.getTime()); try { cal.set(Calendar.YEAR, 1969); cal.set(Calendar.MONTH, 11); cal.set(Calendar.DAY_OF_MONTH, 31); cal.set(Calendar.HOUR_OF_DAY, 23); cal.set(Calendar.MINUTE, 59); cal.set(Calendar.SECOND, 59); testDate(cal.getTime()); System.err.println("foo! this should fail"); } catch (RuntimeException re) { // should fail on dates prior to the epoch } }
|
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/440cf2c983ceb0ff188b530cda4530213fab0e7e/DataHelperTest.java/clean/core/java/test/net/i2p/data/DataHelperTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1842,
1626,
1435,
288,
3639,
16491,
18,
542,
1868,
12,
16760,
18,
588,
16760,
2932,
11471,
7923,
1769,
3639,
5542,
1443,
273,
5542,
18,
588,
1442,
12,
16760,
18,
588,
16760,
2932,
11471,
7923,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
15137,
16,
5342,
7301,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
13942,
16,
374,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
10339,
67,
3932,
67,
13942,
16,
404,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
21372,
67,
3932,
67,
10339,
16,
374,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
30090,
16,
374,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
16328,
16,
374,
1769,
3639,
866,
1626,
12,
771,
18,
588,
950,
10663,
7734,
1443,
18,
542,
12,
7335,
18,
16328,
16,
404,
1769,
3639,
866,
1626,
12,
771,
18,
588,
950,
10663,
7734,
1443,
18,
542,
12,
7335,
18,
15137,
16,
404,
11984,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
13942,
16,
4648,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
10339,
67,
3932,
67,
13942,
16,
8231,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
21372,
67,
3932,
67,
10339,
16,
10213,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
30090,
16,
14995,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
16328,
16,
14995,
1769,
3639,
866,
1626,
12,
771,
18,
588,
950,
10663,
7734,
1443,
18,
542,
12,
7335,
18,
15137,
16,
16291,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
13942,
16,
374,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1842,
1626,
1435,
288,
3639,
16491,
18,
542,
1868,
12,
16760,
18,
588,
16760,
2932,
11471,
7923,
1769,
3639,
5542,
1443,
273,
5542,
18,
588,
1442,
12,
16760,
18,
588,
16760,
2932,
11471,
7923,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
15137,
16,
5342,
7301,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
13942,
16,
374,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
10339,
67,
3932,
67,
13942,
16,
404,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
21372,
67,
3932,
67,
10339,
16,
374,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
30090,
16,
374,
1769,
3639,
1443,
18,
542,
12,
7335,
18,
16328,
16,
374,
1769,
3639,
866,
1626,
12,
771,
18,
2
] |
public Clazz.jq_InstanceMethod previousInstanceMethod();
|
Clazz.jq_InstanceMethod previousInstanceMethod();
|
public Clazz.jq_InstanceMethod previousInstanceMethod();
|
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/6f181de4aafbe2a9534fc417eee9f0b8d8ae805d/Templates.java/clean/joeq_core/joeq/Util/Templates.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
3905,
3638,
18,
78,
85,
67,
1442,
1305,
2416,
1442,
1305,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
3905,
3638,
18,
78,
85,
67,
1442,
1305,
2416,
1442,
1305,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (c.isVisible()) {c.setBounds(insets.left+32,insets.top+200,224,16);}
|
if (c.isVisible()) { c.setBounds(insets.left + 32, insets.top + 200, 224, 16); }
|
public void layoutContainer(Container parent) { Insets insets = parent.getInsets(); Component c; c = parent.getComponent(0); if (c.isVisible()) {c.setBounds(insets.left+8,insets.top+24,208,24);} c = parent.getComponent(1); if (c.isVisible()) {c.setBounds(insets.left+32,insets.top+56,184,24);} c = parent.getComponent(2); if (c.isVisible()) {c.setBounds(insets.left+32,insets.top+88,184,24);} c = parent.getComponent(3); if (c.isVisible()) {c.setBounds(insets.left+8,insets.top+136,250,24);} c = parent.getComponent(4); if (c.isVisible()) {c.setBounds(insets.left+32,insets.top+168,224,24);} c = parent.getComponent(5); if (c.isVisible()) {c.setBounds(insets.left+32,insets.top+200,224,16);} }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/5ce9b17c12a2b8c491678a62c14ea1084efd627e/FirstFrame.java/buggy/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/FirstFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3511,
2170,
12,
2170,
982,
13,
288,
3639,
22300,
23576,
273,
982,
18,
588,
382,
4424,
5621,
3639,
5435,
276,
31,
3639,
276,
273,
982,
18,
588,
1841,
12,
20,
1769,
3639,
309,
261,
71,
18,
291,
6207,
10756,
288,
71,
18,
542,
5694,
12,
267,
4424,
18,
4482,
15,
28,
16,
267,
4424,
18,
3669,
15,
3247,
16,
26825,
16,
3247,
1769,
97,
3639,
276,
273,
982,
18,
588,
1841,
12,
21,
1769,
3639,
309,
261,
71,
18,
291,
6207,
10756,
288,
71,
18,
542,
5694,
12,
267,
4424,
18,
4482,
15,
1578,
16,
267,
4424,
18,
3669,
15,
4313,
16,
29242,
16,
3247,
1769,
97,
3639,
276,
273,
982,
18,
588,
1841,
12,
22,
1769,
3639,
309,
261,
71,
18,
291,
6207,
10756,
288,
71,
18,
542,
5694,
12,
267,
4424,
18,
4482,
15,
1578,
16,
267,
4424,
18,
3669,
15,
5482,
16,
29242,
16,
3247,
1769,
97,
3639,
276,
273,
982,
18,
588,
1841,
12,
23,
1769,
3639,
309,
261,
71,
18,
291,
6207,
10756,
288,
71,
18,
542,
5694,
12,
267,
4424,
18,
4482,
15,
28,
16,
267,
4424,
18,
3669,
15,
26959,
16,
26520,
16,
3247,
1769,
97,
3639,
276,
273,
982,
18,
588,
1841,
12,
24,
1769,
3639,
309,
261,
71,
18,
291,
6207,
10756,
288,
71,
18,
542,
5694,
12,
267,
4424,
18,
4482,
15,
1578,
16,
267,
4424,
18,
3669,
15,
23329,
16,
23622,
16,
3247,
1769,
97,
3639,
276,
273,
982,
18,
588,
1841,
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,
918,
3511,
2170,
12,
2170,
982,
13,
288,
3639,
22300,
23576,
273,
982,
18,
588,
382,
4424,
5621,
3639,
5435,
276,
31,
3639,
276,
273,
982,
18,
588,
1841,
12,
20,
1769,
3639,
309,
261,
71,
18,
291,
6207,
10756,
288,
71,
18,
542,
5694,
12,
267,
4424,
18,
4482,
15,
28,
16,
267,
4424,
18,
3669,
15,
3247,
16,
26825,
16,
3247,
1769,
97,
3639,
276,
273,
982,
18,
588,
1841,
12,
21,
1769,
3639,
309,
261,
71,
18,
291,
6207,
10756,
288,
71,
18,
542,
5694,
12,
267,
4424,
18,
4482,
15,
1578,
16,
267,
4424,
18,
3669,
15,
4313,
16,
29242,
16,
3247,
1769,
97,
3639,
276,
273,
982,
18,
588,
1841,
12,
22,
2
] |
void layoutPanels(String layout) { boolean touch = true; if (fLayout != null) { if (fLayout.equals(layout)) { return; // nothing to do } fLayout = layout; remove(splitter1); remove(splitter2); } fPanel.remove(splitter1); splitter1 = new JSplitPane(); splitter2 = new JSplitPane(); if (relayout == false) { InvisiblePrefs prefs = InvisiblePrefs.GetMaster(); // read dimensions out of preferences try { int tx, ty, fx, fy; // temporary dimensions fx = prefs.getMultiPaneFolderX(folderX); fy = prefs.getMultiPaneFolderY(folderY); tx = prefs.getMultiPaneThreadX(threadX); ty = prefs.getMultiPaneThreadY(threadY); folderX = fx; folderY = fy; threadX = tx; threadY = ty; // if the try bails, we use default } catch (NumberFormatException nf_ty) { nf_ty.printStackTrace(); } finally { relayout = true; } } else { folderX = FOLDERX; folderY = FOLDERY; threadX = THREADX; threadY = THREADY; } if (layout.equals(UnifiedMessageDisplayManager.STACKED)) { splitter1.setOrientation(JSplitPane.VERTICAL_SPLIT); splitter2.setOrientation(JSplitPane.VERTICAL_SPLIT); splitter1.setTopComponent(fFolders); splitter1.setBottomComponent(splitter2); splitter2.setTopComponent(fThreads); splitter2.setBottomComponent(fMessage); } else if (layout.equals(UnifiedMessageDisplayManager.SPLIT_LEFT)) { splitter1.setOrientation(JSplitPane.HORIZONTAL_SPLIT); splitter2.setOrientation(JSplitPane.VERTICAL_SPLIT); splitter2.setLeftComponent(fFolders); splitter2.setRightComponent(fThreads); splitter1.setTopComponent(splitter2); splitter1.setBottomComponent(fMessage); } else if (layout.equals(UnifiedMessageDisplayManager.SPLIT_RIGHT)) { splitter2.setOrientation(JSplitPane.VERTICAL_SPLIT); splitter1.setOrientation(JSplitPane.HORIZONTAL_SPLIT); splitter2.setLeftComponent(fThreads); splitter2.setRightComponent(fMessage); splitter1.setTopComponent(fFolders); splitter1.setBottomComponent(splitter2); } else { // Default: SPLIT_TOP splitter2.setOrientation(JSplitPane.HORIZONTAL_SPLIT); splitter1.setOrientation(JSplitPane.VERTICAL_SPLIT); splitter2.setLeftComponent(fFolders); splitter2.setRightComponent(fThreads); splitter1.setTopComponent(splitter2); splitter1.setBottomComponent(fMessage); } fFolders.setPreferredSize(new Dimension(folderX, folderY)); fThreads.setPreferredSize(new Dimension(threadX, threadY)); fPanel.add(splitter1, BorderLayout.CENTER); invalidate(); validate(); fLayout = layout; }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/UnifiedMessageDisplayManager.java/buggy/grendel/sources/grendel/ui/UnifiedMessageDisplayManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
3511,
5537,
87,
12,
780,
3511,
13,
288,
565,
1250,
6920,
273,
638,
31,
565,
309,
261,
74,
3744,
480,
446,
13,
288,
1377,
309,
261,
74,
3744,
18,
14963,
12,
6741,
3719,
288,
3639,
327,
31,
368,
5083,
358,
741,
1377,
289,
5411,
284,
3744,
273,
3511,
31,
1377,
1206,
12,
4939,
387,
21,
1769,
1377,
1206,
12,
4939,
387,
22,
1769,
565,
289,
565,
284,
5537,
18,
4479,
12,
4939,
387,
21,
1769,
565,
21553,
21,
273,
394,
804,
5521,
8485,
5621,
565,
21553,
22,
273,
394,
804,
5521,
8485,
5621,
565,
309,
261,
2878,
2012,
422,
629,
13,
288,
1377,
657,
8613,
1386,
2556,
15503,
273,
657,
8613,
1386,
2556,
18,
967,
7786,
5621,
1377,
368,
855,
5769,
596,
434,
12750,
1377,
775,
288,
3639,
509,
2229,
16,
13806,
16,
12661,
16,
28356,
31,
368,
6269,
5769,
3639,
12661,
273,
15503,
18,
588,
5002,
8485,
3899,
60,
12,
5609,
60,
1769,
3639,
28356,
273,
15503,
18,
588,
5002,
8485,
3899,
61,
12,
5609,
61,
1769,
3639,
2229,
273,
15503,
18,
588,
5002,
8485,
3830,
60,
12,
5930,
60,
1769,
3639,
13806,
273,
15503,
18,
588,
5002,
8485,
3830,
61,
12,
5930,
61,
1769,
3639,
3009,
60,
273,
12661,
31,
3639,
3009,
61,
273,
28356,
31,
3639,
2650,
60,
273,
2229,
31,
3639,
2650,
61,
273,
13806,
31,
3639,
368,
309,
326,
775,
324,
15208,
16,
732,
999,
805,
1377,
289,
1044,
261,
1854,
9291,
13958,
67,
4098,
13,
288,
540,
13958,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
3511,
5537,
87,
12,
780,
3511,
13,
288,
565,
1250,
6920,
273,
638,
31,
565,
309,
261,
74,
3744,
480,
446,
13,
288,
1377,
309,
261,
74,
3744,
18,
14963,
12,
6741,
3719,
288,
3639,
327,
31,
368,
5083,
358,
741,
1377,
289,
5411,
284,
3744,
273,
3511,
31,
1377,
1206,
12,
4939,
387,
21,
1769,
1377,
1206,
12,
4939,
387,
22,
1769,
565,
289,
565,
284,
5537,
18,
4479,
12,
4939,
387,
21,
1769,
565,
21553,
21,
273,
394,
804,
5521,
8485,
5621,
565,
21553,
22,
273,
394,
804,
5521,
8485,
5621,
565,
309,
261,
2878,
2012,
422,
629,
13,
288,
1377,
657,
8613,
1386,
2556,
15503,
273,
657,
8613,
1386,
2556,
18,
967,
7786,
5621,
2
] |
||
String ks = uri.toString();
|
String ks = uri.getPath();
|
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { String ks = uri.toString(); if(ks.startsWith("/")) ks = ks.substring(1); FreenetURI key; try { key = new FreenetURI(ks); } catch (MalformedURLException e) { this.writeReply(ctx, 400, "text/html", "Invalid key", "<html><head><title>Invalid key</title></head><body>Expected a freenet key, but got "+HTMLEncoder.encode(ks)+"</body></html>"); return; } try { Logger.minor(this, "Fproxy fetching "+key); FetchResult result = fetch(key); writeReply(ctx, 200, result.getMimeType(), "OK", result.asBucket()); } catch (FetchException e) { String msg = e.getMessage(); String extra = ""; if(e.errorCodes != null) extra = "<pre>"+e.errorCodes.toVerboseString()+"</pre>"; this.writeReply(ctx, 500 /* close enough - FIXME probably should depend on status code */, "text/html", msg, "<html><head><title>"+msg+"</title></head><body>Error: "+HTMLEncoder.encode(msg)+extra+"</body></html>"); } catch (Throwable t) { Logger.error(this, "Caught "+t, t); String msg = "<html><head><title>Internal Error</title></head><body><h1>Internal Error: please report</h1><pre>"; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); t.printStackTrace(pw); pw.flush(); msg = msg + sw.toString() + "</pre></body></html>"; this.writeReply(ctx, 500, "text/html", "Internal Error", msg); } }
|
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/87498e3d0a62ffeb9ade47207b1cab000a6767a5/FproxyToadlet.java/clean/src/freenet/clients/http/FproxyToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1082,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
780,
11654,
273,
2003,
18,
10492,
5621,
202,
202,
430,
12,
7904,
18,
17514,
1190,
2932,
4898,
3719,
1082,
202,
7904,
273,
11654,
18,
28023,
12,
21,
1769,
202,
202,
42,
2842,
278,
3098,
498,
31,
202,
202,
698,
288,
1082,
202,
856,
273,
394,
478,
2842,
278,
3098,
12,
7904,
1769,
202,
202,
97,
1044,
261,
18695,
20160,
425,
13,
288,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
2620,
3113,
315,
1941,
498,
3113,
3532,
2620,
4438,
1978,
4438,
2649,
34,
1941,
498,
1757,
2649,
4695,
1978,
4438,
3432,
34,
6861,
279,
284,
2842,
278,
498,
16,
1496,
2363,
13773,
4870,
7204,
18,
3015,
12,
7904,
13,
9078,
1757,
3432,
4695,
2620,
2984,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
42,
5656,
16191,
13773,
856,
1769,
1082,
202,
5005,
1253,
563,
273,
2158,
12,
856,
1769,
1082,
202,
2626,
7817,
12,
5900,
16,
4044,
16,
563,
18,
588,
16821,
9334,
315,
3141,
3113,
563,
18,
345,
4103,
10663,
202,
202,
97,
1044,
261,
5005,
503,
425,
13,
288,
1082,
202,
780,
1234,
273,
425,
18,
24906,
5621,
1082,
202,
780,
2870,
273,
1408,
31,
1082,
202,
430,
12,
73,
18,
1636,
6295,
480,
446,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1082,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
780,
11654,
273,
2003,
18,
10492,
5621,
202,
202,
430,
12,
7904,
18,
17514,
1190,
2932,
4898,
3719,
1082,
202,
7904,
273,
11654,
18,
28023,
12,
21,
1769,
202,
202,
42,
2842,
278,
3098,
498,
31,
202,
202,
698,
288,
1082,
202,
856,
273,
394,
478,
2842,
278,
3098,
12,
7904,
1769,
202,
202,
97,
1044,
261,
18695,
20160,
425,
13,
288,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
2620,
3113,
315,
1941,
498,
3113,
3532,
2620,
4438,
1978,
4438,
2649,
34,
2
] |
private static String internalCheck(String url) { String noprotocoUrl = removeProtocol(url,getProtocol(url)); String tmp = noprotocoUrl; if (!tmp.startsWith(" tmp = "
|
private static String internalCheck(String url) { String noprotocoUrl = removeProtocol(url, getProtocol(url)); String tmp = noprotocoUrl; if (!tmp.startsWith(" tmp = " } return tmp;
|
private static String internalCheck(String url) { String noprotocoUrl = removeProtocol(url,getProtocol(url)); String tmp = noprotocoUrl; if (!tmp.startsWith("//")) { tmp = "//" + tmp; } return tmp; }
|
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/c171c3550f70b496c1228bbed45f5f8feea45a9c/UrlBuilder.java/clean/src/org/objectweb/proactive/core/util/UrlBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
2713,
1564,
12,
780,
880,
13,
202,
95,
202,
202,
780,
28797,
303,
1391,
83,
1489,
273,
1206,
5752,
12,
718,
16,
588,
5752,
12,
718,
10019,
202,
202,
780,
1853,
273,
28797,
303,
1391,
83,
1489,
31,
565,
309,
16051,
5645,
18,
17514,
1190,
2932,
759,
6,
3719,
288,
1377,
1853,
273,
31828,
397,
1853,
31,
565,
289,
565,
327,
1853,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
2713,
1564,
12,
780,
880,
13,
202,
95,
202,
202,
780,
28797,
303,
1391,
83,
1489,
273,
1206,
5752,
12,
718,
16,
588,
5752,
12,
718,
10019,
202,
202,
780,
1853,
273,
28797,
303,
1391,
83,
1489,
31,
565,
309,
16051,
5645,
18,
17514,
1190,
2932,
759,
6,
3719,
288,
1377,
1853,
273,
31828,
397,
1853,
31,
565,
289,
565,
327,
1853,
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
] |
Legion legion = player.getLegion(i); MasterHex hex = legion.getCurrentHex(); Legion enemy = hex.getEnemyLegion(player); if (enemy == null) continue; Player enemyPlayer = enemy.getPlayer(); int myPV = legion.getPointValue(); int enemyPV = enemy.getPointValue(); boolean myTitan = legion.numCreature(Creature.titan)>0; boolean enemyTitan = enemy.numCreature(Creature.titan)>0; if (myPV * 0.8 > enemyPV)
|
continue; } Player enemyPlayer = enemy.getPlayer(); int myPV = legion.getPointValue(); int enemyPV = enemy.getPointValue(); boolean myTitan = legion.numCreature(Creature.titan) > 0; boolean enemyTitan = enemy.numCreature(Creature.titan) > 0; if (myPV * 0.8 > enemyPV) { enemy.remove(); player.addPoints(enemyPV); if (enemyTitan)
|
public Minimax.GamePosition applyMove(Minimax.Move move) { debugln("applying moves.."); if (move instanceof DiceMove) { debugln("applying dice move"); // apply dice rolling DiceMove dicemove = (DiceMove) move; MasterBoardPosition position = new MasterBoardPosition(dicemove.position); position.activePlayerNum = Math.abs(activePlayerNum); int roll = dicemove.roll; position.game.getActivePlayer().setMovementRoll(roll); return position; } else if (move instanceof PlayerMove) { debugln("applying player move"); PlayerMove playermove = (PlayerMove) move; MasterBoardPosition position = new MasterBoardPosition(playermove.position); // apply the PlayerMove moves for (Iterator it = playermove.moves.entrySet().iterator(); it.hasNext();) { Map.Entry entry = (Map.Entry) it.next(); Legion legion = (Legion) entry.getKey(); MasterHex hex = (MasterHex) entry.getValue(); debugln("applymove: try " + legion + " to " +hex); game.actOnLegion(legion); game.actOnHex(hex); } // advance phases until we reach the next move phase game.advancePhase(); while (game.getPhase() != Game.MOVE) { switch (game.getPhase()) { case Game.FIGHT: { // fake resolution for all fights // TODO: need more accurate fight estimator Player player = game.getActivePlayer(); for (int i = 0; i < player.getNumLegions(); i++) { Legion legion = player.getLegion(i); MasterHex hex = legion.getCurrentHex(); Legion enemy = hex.getEnemyLegion(player); if (enemy == null) continue; Player enemyPlayer = enemy.getPlayer(); int myPV = legion.getPointValue(); int enemyPV = enemy.getPointValue(); boolean myTitan = legion.numCreature(Creature.titan)>0; boolean enemyTitan = enemy.numCreature(Creature.titan)>0; if (myPV * 0.8 > enemyPV) { // i win enemy.remove(); player.addPoints(enemyPV); if (enemyTitan) enemyPlayer.die(player,false); } else if (enemyPV * 0.8 > myPV) { // enemy wins legion.remove(); enemyPlayer.addPoints(myPV); if (myTitan) player.die(enemyPlayer,false); } else { // both groups destroyed legion.remove(); enemy.remove(); } } } break; case Game.SPLIT: { split(game); } break; case Game.MUSTER: { muster(game); } break; } // now advance again until we get to MOVE phase game.advancePhase(); } // set activePlayer negative so that we average over dice rolls position.activePlayerNum = -1 * Math.abs(activePlayerNum); return position; } else throw new RuntimeException("ack! bad move type"); }
|
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/57f0ec43774c40c3a885097fd33cbd0e232f6650/SimpleAI.java/buggy/Colossus/SimpleAI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
5444,
381,
651,
18,
12496,
2555,
2230,
7607,
12,
2930,
381,
651,
18,
7607,
3635,
13,
3639,
288,
5411,
1198,
2370,
2932,
9010,
310,
13934,
838,
8863,
5411,
309,
261,
8501,
1276,
463,
1812,
7607,
13,
5411,
288,
7734,
1198,
2370,
2932,
9010,
310,
302,
1812,
3635,
8863,
7734,
368,
2230,
302,
1812,
21793,
7734,
463,
1812,
7607,
302,
1812,
8501,
273,
261,
40,
1812,
7607,
13,
3635,
31,
7734,
13453,
22233,
2555,
1754,
273,
394,
13453,
22233,
2555,
12,
72,
1812,
8501,
18,
3276,
1769,
7734,
1754,
18,
3535,
12148,
2578,
273,
2361,
18,
5113,
12,
3535,
12148,
2578,
1769,
7734,
509,
5824,
273,
302,
1812,
8501,
18,
2693,
31,
7734,
1754,
18,
13957,
18,
588,
3896,
12148,
7675,
542,
49,
26140,
24194,
12,
2693,
1769,
7734,
327,
1754,
31,
5411,
289,
5411,
469,
309,
261,
8501,
1276,
19185,
7607,
13,
5411,
288,
7734,
1198,
2370,
2932,
9010,
310,
7291,
3635,
8863,
7734,
19185,
7607,
6599,
1035,
841,
273,
261,
12148,
7607,
13,
3635,
31,
7734,
13453,
22233,
2555,
1754,
273,
394,
13453,
22233,
2555,
12,
1601,
1035,
841,
18,
3276,
1769,
7734,
368,
2230,
326,
19185,
7607,
13934,
7734,
364,
261,
3198,
518,
273,
6599,
1035,
841,
18,
81,
10829,
18,
4099,
694,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
7734,
288,
10792,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
518,
18,
4285,
5621,
10792,
17167,
285,
4553,
285,
273,
261,
8329,
285,
13,
1241,
18,
588,
653,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
5444,
381,
651,
18,
12496,
2555,
2230,
7607,
12,
2930,
381,
651,
18,
7607,
3635,
13,
3639,
288,
5411,
1198,
2370,
2932,
9010,
310,
13934,
838,
8863,
5411,
309,
261,
8501,
1276,
463,
1812,
7607,
13,
5411,
288,
7734,
1198,
2370,
2932,
9010,
310,
302,
1812,
3635,
8863,
7734,
368,
2230,
302,
1812,
21793,
7734,
463,
1812,
7607,
302,
1812,
8501,
273,
261,
40,
1812,
7607,
13,
3635,
31,
7734,
13453,
22233,
2555,
1754,
273,
394,
13453,
22233,
2555,
12,
72,
1812,
8501,
18,
3276,
1769,
7734,
1754,
18,
3535,
12148,
2578,
273,
2361,
18,
5113,
12,
3535,
12148,
2578,
1769,
7734,
509,
5824,
273,
302,
1812,
8501,
18,
2693,
31,
7734,
1754,
18,
13957,
18,
588,
2
] |
private boolean isVisibleFrom(PsiMethod method, PsiClass referencingClass){ final PsiClass containingClass = method.getContainingClass(); if(referencingClass.equals(containingClass)) {
|
private static boolean isVisibleFrom(PsiModifierListOwner member, PsiElement referencingLocation){ final PsiClass containingClass = PsiTreeUtil.getParentOfType(member, PsiClass.class); if (containingClass == null) { return false; } final PsiClass referencingClass = PsiTreeUtil.getParentOfType(referencingLocation, PsiClass.class); if (referencingClass == null){ return false; } if(referencingLocation.equals(containingClass)){
|
private boolean isVisibleFrom(PsiMethod method, PsiClass referencingClass){ final PsiClass containingClass = method.getContainingClass(); if(referencingClass.equals(containingClass)) { return true; } if(containingClass == null) { return false; } if(method.hasModifierProperty(PsiModifier.PUBLIC)) { return true; } if(method.hasModifierProperty(PsiModifier.PRIVATE)) { return false; } //if(method.hasModifierProperty(PsiModifier.PROTECTED)) //{ // return referencingClass.isInheritor(containingClass, true) || // ClassUtils.inSamePackage(containingClass, referencingClass); //} return ClassUtils.inSamePackage(containingClass, referencingClass); }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/c0407ff2e96433617e2f28044bd6915d154d1cef/ExpectedTypeUtils.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/ExpectedTypeUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1250,
20453,
1265,
12,
52,
7722,
1305,
707,
16,
453,
7722,
797,
24509,
797,
15329,
5411,
727,
453,
7722,
797,
4191,
797,
273,
707,
18,
588,
24344,
797,
5621,
5411,
309,
12,
266,
586,
15495,
797,
18,
14963,
12,
1213,
3280,
797,
3719,
5411,
288,
7734,
327,
638,
31,
5411,
289,
5411,
309,
12,
1213,
3280,
797,
422,
446,
13,
5411,
288,
7734,
327,
629,
31,
5411,
289,
5411,
309,
12,
2039,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
14939,
3719,
5411,
288,
7734,
327,
638,
31,
5411,
289,
5411,
309,
12,
2039,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
20055,
3719,
5411,
288,
7734,
327,
629,
31,
5411,
289,
5411,
368,
430,
12,
2039,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
3373,
26729,
3719,
5411,
368,
95,
5411,
368,
565,
327,
24509,
797,
18,
291,
382,
1614,
1811,
12,
1213,
3280,
797,
16,
638,
13,
747,
5411,
368,
5411,
26382,
18,
267,
8650,
2261,
12,
1213,
3280,
797,
16,
24509,
797,
1769,
5411,
19363,
5411,
327,
26382,
18,
267,
8650,
2261,
12,
1213,
3280,
797,
16,
24509,
797,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1250,
20453,
1265,
12,
52,
7722,
1305,
707,
16,
453,
7722,
797,
24509,
797,
15329,
5411,
727,
453,
7722,
797,
4191,
797,
273,
707,
18,
588,
24344,
797,
5621,
5411,
309,
12,
266,
586,
15495,
797,
18,
14963,
12,
1213,
3280,
797,
3719,
5411,
288,
7734,
327,
638,
31,
5411,
289,
5411,
309,
12,
1213,
3280,
797,
422,
446,
13,
5411,
288,
7734,
327,
629,
31,
5411,
289,
5411,
309,
12,
2039,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
14939,
3719,
5411,
288,
7734,
327,
638,
31,
5411,
289,
5411,
309,
12,
2039,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
20055,
3719,
5411,
288,
7734,
327,
629,
31,
5411,
289,
5411,
368,
430,
2
] |
temp[0][j] = line_samples[j][i];
|
temp[0][j] = lineSamples[j][i];
|
public void go(String args[]) throws IOException, VisADException, RemoteException { String dir = ""; String slash = System.getProperty("file.separator"); if (args.length > 0) { dir = args[0]; if (!dir.endsWith(slash)) dir = dir + slash; } RealTupleType domain = null; Unit unit = null; String name = null; Set set = null; RealType[] value_types = new RealType[NFILES]; values = new float[NFILES][]; DefaultFamily loader = new DefaultFamily("loader"); for (int i=0; i<NFILES; i++) { Tuple tuple = (Tuple) loader.open(dir + "SPB" + (i+1) + ".PIC"); FieldImpl field = (FieldImpl) tuple.getComponent(0); FlatField ff = (FlatField) field.getSample(0); set = ff.getDomainSet();/*System.out.println("set = " + set);set = Linear2DSet: Length = 393216 Dimension 1: Length = 768 Range = 0.0 to 767.0 Dimension 2: Length = 512 Range = 0.0 to 511.0*/ if (i == 0) { FunctionType func = (FunctionType) ff.getType(); domain = func.getDomain(); element = (RealType) domain.getComponent(0); line = (RealType) domain.getComponent(1); value = (RealType) func.getRange(); unit = value.getDefaultUnit(); name = value.getName(); } value_types[i] = RealType.getRealType(name + (i+1), unit); float[][] temps = ff.getFloats(false); values[i] = temps[0]; // System.out.println("data " + i + " type: " + value_types[i]); } npixels = values[0].length; RealTupleType range = new RealTupleType(value_types); FunctionType big_func = new FunctionType(domain, range); final FlatField big_data = new FlatField(big_func, set); big_data.setSamples(values, false); // RealType value = RealType.getRealType("value"); RealType hue = RealType.getRealType("hue"); RealType HUE = RealType.getRealType("HUE"); RealTupleType new_range = new RealTupleType(value, hue); FunctionType new_func = new FunctionType(domain, new_range); data = new FlatField(new_func, set); data_values = new float[2][npixels]; DataReferenceImpl ref1 = new DataReferenceImpl("ref1"); ref1.setData(data); text = TextType.getTextType("text"); RealType[] time = {RealType.Time}; RealTupleType time_type = new RealTupleType(time); MathType[] mtypes = {element, line, text}; text_tuple = new TupleType(mtypes); FunctionType text_function = new FunctionType(RealType.Time, text_tuple); Set time_set = new Linear1DSet(time_type, 0.0, 1.0, 2); text_field = new FieldImpl(text_function, time_set); DataReferenceImpl text_ref = new DataReferenceImpl("text_ref"); text_ref.setData(text_field); Linear2DSet wedge_set = new Linear2DSet(domain, 0.0, 767.0, 768, 550.0, 570.0, 21); wedge = new FlatField(new_func, wedge_set); wedge_samples = new float[2][768 * 21]; DataReferenceImpl wedge_ref = new DataReferenceImpl("wedge_ref"); wedge_ref.setData(wedge); final DataReferenceImpl xref = new DataReferenceImpl("xref"); // System.out.println("data type: " + new_func); display1 = new DisplayImplJ3D("display1", new TwoDDisplayRendererJ3D()); ScalarMap xmap = new ScalarMap(element, Display.XAxis); display1.addMap(xmap); huexmap = new ScalarMap(HUE, Display.XAxis); display1.addMap(huexmap); ScalarMap ymap = new ScalarMap(line, Display.YAxis); display1.addMap(ymap); ymap.setRange(0.0, 511.0); vmap = new ScalarMap(value, Display.Value); display1.addMap(vmap); hmap = new ScalarMap(hue, Display.Hue); display1.addMap(hmap); ScalarMap textmap = new ScalarMap(text, Display.Text); display1.addMap(textmap); display1.addMap(new ConstantMap(1.0, Display.Saturation)); Control ctrl = textmap.getControl(); if (ctrl != null && ctrl instanceof TextControl) { TextControl text_control = (TextControl) ctrl; text_control.setSize(1.0); text_control.setJustification(TextControl.Justification.CENTER); text_control.setAutoSize(true); } // display1.getGraphicsModeControl().setScaleEnable(true); display1.addReference(ref1); DefaultRendererJ3D renderer = new DefaultRendererJ3D(); display1.addReferences(renderer, xref); renderer.suppressExceptions(true); DefaultRendererJ3D text_renderer = new DefaultRendererJ3D(); display1.addReferences(text_renderer, text_ref); text_renderer.suppressExceptions(true); DefaultRendererJ3D wedge_renderer = new DefaultRendererJ3D(); display1.addReferences(wedge_renderer, wedge_ref); wedge_renderer.suppressExceptions(true); line_ref = new DataReferenceImpl("line"); Gridded2DSet dummy_set = new Gridded2DSet(domain, null, 1); line_ref.setData(dummy_set); display1.addReferences( new RubberBandLineRendererJ3D(element, line), line_ref); final RealType channel = RealType.getRealType("channel"); final RealType point = RealType.getRealType("point"); RealType intensity = RealType.getRealType("intensity"); final FunctionType spectrum_type = new FunctionType(channel, intensity); final FunctionType spectra_type = new FunctionType(point, spectrum_type); final FunctionType line_type = new FunctionType(point, intensity); final FunctionType lines_type = new FunctionType(channel, line_type); final DataReferenceImpl ref2 = new DataReferenceImpl("ref2"); DisplayImplJ3D display2 = new DisplayImplJ3D("display2"); ScalarMap xmap2 = new ScalarMap(channel, Display.XAxis); display2.addMap(xmap2); ScalarMap ymap2 = new ScalarMap(intensity, Display.YAxis); display2.addMap(ymap2); ScalarMap zmap2 = new ScalarMap(point, Display.ZAxis); display2.addMap(zmap2); display2.getGraphicsModeControl().setScaleEnable(true); DefaultRendererJ3D renderer2 = new DefaultRendererJ3D(); display2.addReferences(renderer2, ref2); renderer2.suppressExceptions(true); final RealTupleType fdomain = domain; CellImpl cell = new CellImpl() { public void doAction() throws VisADException, RemoteException { Set cell_set = (Set) line_ref.getData(); if (cell_set == null) return; float[][] samples = cell_set.getSamples(); if (samples == null) return; // System.out.println("box (" + samples[0][0] + ", " + samples[1][0] + // ") to (" + samples[0][1] + ", " + samples[1][1] + ")"); float x1 = samples[0][0]; float y1 = samples[1][0]; float x2 = samples[0][1]; float y2 = samples[1][1]; double dist = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); int nsamp = (int) (dist + 1.0); if (nsamp < 2) nsamp = 2; float[][] ss = new float[2][nsamp]; for (int i=0; i<nsamp; i++) { float a = ((float) i) / (nsamp - 1.0f); ss[0][i] = x1 + a * (x2 - x1); ss[1][i] = y1 + a * (y2 - y1); } Gridded2DSet line = new Gridded2DSet(fdomain, ss, nsamp); xref.setData(line); FlatField line_field = (FlatField) // big_data.resample(line, Data.WEIGHTED_AVERAGE, Data.NO_ERRORS); big_data.resample(line, Data.NEAREST_NEIGHBOR, Data.NO_ERRORS); float[][] line_samples = line_field.getFloats(false); // [NFILES][nsamp] Linear1DSet point_set = new Linear1DSet(point, 0.0, 1.0, nsamp); Integer1DSet channel_set = new Integer1DSet(channel, NFILES); FieldImpl spectra = new FieldImpl(spectra_type, point_set); for (int i=0; i<nsamp; i++) { FlatField spectrum = new FlatField(spectrum_type, channel_set); float[][] temp = new float[1][NFILES]; for (int j=0; j<NFILES; j++) { temp[0][j] = line_samples[j][i]; } spectrum.setSamples(temp, false); spectra.setSample(i, spectrum); } FieldImpl lines = new FieldImpl(lines_type, channel_set); for (int j=0; j<NFILES; j++) { FlatField linex = new FlatField(line_type, point_set); float[][] temp = new float[1][nsamp]; for (int i=0; i<nsamp; i++) { temp[0][i] = line_samples[j][i]; } linex.setSamples(temp, false); lines.setSample(j, linex); } ref2.setData(new Tuple(new Data[] {spectra, lines})); } }; cell.addReference(line_ref); VisADSlider[] value_sliders = new VisADSlider[NFILES]; VisADSlider[] hue_sliders = new VisADSlider[NFILES]; value_refs = new DataReferenceImpl[NFILES]; hue_refs = new DataReferenceImpl[NFILES]; JFrame frame = new JFrame("VisAD MultiLUT"); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) {System.exit(0);} }); // create JPanel in frame JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS)); panel.setAlignmentY(JPanel.TOP_ALIGNMENT); panel.setAlignmentX(JPanel.LEFT_ALIGNMENT); frame.setContentPane(panel); JPanel left = new JPanel(); left.setLayout(new BoxLayout(left, BoxLayout.Y_AXIS)); left.setAlignmentY(JPanel.TOP_ALIGNMENT); left.setAlignmentX(JPanel.LEFT_ALIGNMENT); JPanel center = new JPanel(); center.setLayout(new BoxLayout(center, BoxLayout.Y_AXIS)); center.setAlignmentY(JPanel.TOP_ALIGNMENT); center.setAlignmentX(JPanel.LEFT_ALIGNMENT); JPanel right = new JPanel(); right.setLayout(new BoxLayout(right, BoxLayout.Y_AXIS)); right.setAlignmentY(JPanel.TOP_ALIGNMENT); right.setAlignmentX(JPanel.LEFT_ALIGNMENT); panel.add(left); panel.add(center); panel.add(right); Dimension d = new Dimension(300, 1000); left.setMaximumSize(d); center.setMaximumSize(d); for (int i=0; i<NFILES; i++) { value_refs[i] = new DataReferenceImpl("value" + i); value_refs[i].setData(new Real(1.0)); value_sliders[i] = new VisADSlider("value" + i, -100, 100, 100, 0.01, value_refs[i], RealType.Generic); left.add(value_sliders[i]); hue_refs[i] = new DataReferenceImpl("hue" + i); hue_refs[i].setData(new Real(1.0)); hue_sliders[i] = new VisADSlider("hue" + i, -100, 100, 100, 0.01, hue_refs[i], RealType.Generic); center.add(hue_sliders[i]); } // slider button for setting all value sliders to 0 JButton value_clear = new JButton("Zero values"); value_clear.addActionListener(this); value_clear.setActionCommand("value_clear"); left.add(Box.createVerticalStrut(10)); left.add(value_clear); // slider button for setting all value sliders to 1 JButton value_set = new JButton("One values"); value_set.addActionListener(this); value_set.setActionCommand("value_set"); left.add(value_set); // slider button for setting all hue sliders to 0 JButton hue_clear = new JButton("Zero hues"); hue_clear.addActionListener(this); hue_clear.setActionCommand("hue_clear"); center.add(Box.createVerticalStrut(10)); center.add(hue_clear); // slider button for setting all hue sliders to 1 JButton hue_set = new JButton("One hues"); hue_set.addActionListener(this); hue_set.setActionCommand("hue_set"); center.add(hue_set); // slider button for setting all hue sliders to 0 right.add(display1.getComponent()); right.add(display2.getComponent()); // vmin and vmax labels minmax = new JLabel(" "); left.add(Box.createVerticalStrut(30)); left.add(minmax); // "GO" button for applying computation in sliders JButton compute = new JButton("Compute"); compute.addActionListener(this); compute.setActionCommand("compute"); left.add(Box.createVerticalStrut(10)); left.add(compute); int WIDTH = 1200; int HEIGHT = 1000; Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); frame.setLocation(screenSize.width/2 - WIDTH/2, screenSize.height/2 - HEIGHT/2); frame.setSize(WIDTH, HEIGHT); frame.setVisible(true); doit(); }
|
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/d3560cf43f33592c964cabbb057bed37fea39a07/MultiLUT.java/clean/loci/MultiLUT.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1960,
12,
780,
833,
63,
5717,
540,
1216,
1860,
16,
8077,
1880,
503,
16,
18361,
288,
565,
514,
1577,
273,
1408,
31,
565,
514,
9026,
273,
2332,
18,
588,
1396,
2932,
768,
18,
11287,
8863,
565,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
1377,
1577,
273,
833,
63,
20,
15533,
1377,
309,
16051,
1214,
18,
5839,
1190,
12,
12877,
3719,
1577,
273,
1577,
397,
9026,
31,
565,
289,
565,
15987,
9038,
559,
2461,
273,
446,
31,
565,
8380,
2836,
273,
446,
31,
565,
514,
508,
273,
446,
31,
565,
1000,
444,
273,
446,
31,
565,
15987,
559,
8526,
460,
67,
2352,
273,
394,
15987,
559,
63,
50,
12669,
15533,
565,
924,
273,
394,
1431,
63,
50,
12669,
6362,
15533,
565,
2989,
9203,
4088,
273,
394,
2989,
9203,
2932,
6714,
8863,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
50,
12669,
31,
277,
27245,
288,
1377,
7257,
3193,
273,
261,
9038,
13,
4088,
18,
3190,
12,
1214,
397,
315,
3118,
38,
6,
397,
261,
77,
15,
21,
13,
397,
3552,
20385,
8863,
1377,
2286,
2828,
652,
273,
261,
974,
2828,
13,
3193,
18,
588,
1841,
12,
20,
1769,
1377,
20396,
974,
6875,
273,
261,
16384,
974,
13,
652,
18,
588,
8504,
12,
20,
1769,
1377,
444,
273,
6875,
18,
588,
3748,
694,
5621,
20308,
3163,
18,
659,
18,
8222,
2932,
542,
273,
315,
397,
444,
1769,
542,
273,
13921,
22,
40,
694,
30,
11311,
273,
16977,
1578,
2313,
225,
13037,
404,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1960,
12,
780,
833,
63,
5717,
540,
1216,
1860,
16,
8077,
1880,
503,
16,
18361,
288,
565,
514,
1577,
273,
1408,
31,
565,
514,
9026,
273,
2332,
18,
588,
1396,
2932,
768,
18,
11287,
8863,
565,
309,
261,
1968,
18,
2469,
405,
374,
13,
288,
1377,
1577,
273,
833,
63,
20,
15533,
1377,
309,
16051,
1214,
18,
5839,
1190,
12,
12877,
3719,
1577,
273,
1577,
397,
9026,
31,
565,
289,
565,
15987,
9038,
559,
2461,
273,
446,
31,
565,
8380,
2836,
273,
446,
31,
565,
514,
508,
273,
446,
31,
565,
1000,
444,
273,
446,
31,
565,
15987,
559,
8526,
460,
67,
2352,
273,
394,
15987,
559,
63,
50,
12669,
15533,
565,
924,
273,
394,
1431,
2
] |
id = ++counter;
|
public Continuation () { id = ++counter; }
|
36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/4909f580bf920982e4ee4bcc5111d454e3ca5801/Continuation.java/clean/kawa/lang/Continuation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1816,
23946,
1832,
225,
288,
377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1816,
23946,
1832,
225,
288,
377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
private void handleNewFolder() { IFile file = (IFile) getBuildModel().getUnderlyingResource(); final IProject project = file.getProject(); FolderSelectionDialog dialog = new FolderSelectionDialog(PDEPlugin .getActiveWorkbenchShell(), new WorkbenchLabelProvider(), new JarsNewContentProvider() { }); dialog.setInput(project.getWorkspace()); dialog.addFilter(new ViewerFilter() { public boolean select(Viewer viewer, Object parentElement, Object element) { if (element instanceof IProject) { return ((IProject) element).equals(project); } return element instanceof IFolder; } }); dialog.setAllowMultiple(false); dialog.setTitle(PDEUIMessages.ManifestEditor_JarsSection_dialogTitle); dialog.setMessage(PDEUIMessages.ManifestEditor_JarsSection_dialogMessage); dialog.setValidator(new ISelectionStatusValidator() { public IStatus validate(Object[] selection) { if (selection == null || selection.length != 1 || !(selection[0] instanceof IFolder)) return new Status(IStatus.ERROR, PDEPlugin.getPluginId(), IStatus.ERROR, "", null); //$NON-NLS-1$ String libKey = fCurrentLibrary.getName(); IBuildEntry entry = getBuildModel().getBuild().getEntry(libKey); String folderPath = ((IFolder) selection[0]) .getProjectRelativePath().addTrailingSeparator() .toString(); if (entry != null && entry.contains(folderPath)) return new Status( IStatus.ERROR, PDEPlugin.getPluginId(), IStatus.ERROR, PDEUIMessages.BuildEditor_RuntimeInfoSection_duplicateFolder, null); return new Status(IStatus.OK, PDEPlugin.getPluginId(), IStatus.OK, "", null); //$NON-NLS-1$ } }); if (dialog.open() == Window.OK) { try { IFolder folder = (IFolder) dialog.getFirstResult(); String folderPath = folder.getProjectRelativePath() .addTrailingSeparator().toString(); IBuildModel buildModel = getBuildModel(); String libKey = fCurrentLibrary.getName(); IBuildEntry entry = buildModel.getBuild().getEntry(libKey); fCurrentSelection = new StructuredSelection(folderPath); entry.addToken(folderPath); refreshOutputKeys(); } catch (CoreException e) { PDEPlugin.logException(e); } } }
|
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/8ef0d6ed33a0ada7aa654f23bd5c2b63fd6d7fd6/RuntimeInfoSection.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/RuntimeInfoSection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
4110,
1908,
3899,
1435,
95,
202,
202,
45,
812,
768,
28657,
45,
812,
13,
588,
3116,
1488,
7675,
588,
14655,
6291,
1420,
5621,
202,
202,
6385,
45,
4109,
4406,
33,
768,
18,
588,
4109,
5621,
9506,
202,
3899,
6233,
6353,
12730,
33,
2704,
3899,
6233,
6353,
12,
52,
1639,
3773,
9506,
202,
18,
588,
3896,
2421,
22144,
13220,
9334,
2704,
2421,
22144,
2224,
2249,
9334,
9506,
202,
2704,
46,
5913,
1908,
1350,
2249,
1435,
95,
202,
202,
22938,
9506,
202,
12730,
18,
542,
1210,
12,
4406,
18,
588,
8241,
10663,
202,
202,
12730,
18,
1289,
1586,
12,
2704,
18415,
1586,
1435,
95,
25083,
202,
482,
1075,
29510,
13759,
12,
18415,
25256,
16,
921,
2938,
1046,
16,
6862,
202,
921,
2956,
15329,
9506,
202,
430,
12,
2956,
1336,
792,
45,
4109,
15329,
6862,
202,
2463,
12443,
45,
4109,
13,
2956,
2934,
14963,
12,
4406,
1769,
9506,
202,
97,
9506,
202,
2463,
2956,
1336,
792,
45,
3899,
31,
1082,
202,
97,
202,
202,
22938,
202,
202,
12730,
18,
542,
7009,
8438,
12,
5743,
1769,
202,
202,
12730,
18,
542,
4247,
12,
52,
1639,
57,
3445,
1753,
18,
9121,
6946,
67,
46,
5913,
5285,
67,
12730,
4247,
1769,
202,
202,
12730,
18,
542,
1079,
12,
52,
1639,
57,
3445,
1753,
18,
9121,
6946,
67,
46,
5913,
5285,
67,
12730,
1079,
1769,
9506,
202,
12730,
18,
542,
5126,
12,
2704,
45,
6233,
1482,
5126,
1435,
95,
25083,
202,
482,
45,
1482,
5662,
12,
921,
8526,
10705,
15329,
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,
6459,
4110,
1908,
3899,
1435,
95,
202,
202,
45,
812,
768,
28657,
45,
812,
13,
588,
3116,
1488,
7675,
588,
14655,
6291,
1420,
5621,
202,
202,
6385,
45,
4109,
4406,
33,
768,
18,
588,
4109,
5621,
9506,
202,
3899,
6233,
6353,
12730,
33,
2704,
3899,
6233,
6353,
12,
52,
1639,
3773,
9506,
202,
18,
588,
3896,
2421,
22144,
13220,
9334,
2704,
2421,
22144,
2224,
2249,
9334,
9506,
202,
2704,
46,
5913,
1908,
1350,
2249,
1435,
95,
202,
202,
22938,
9506,
202,
12730,
18,
542,
1210,
12,
4406,
18,
588,
8241,
10663,
202,
202,
12730,
18,
1289,
1586,
12,
2704,
18415,
1586,
1435,
95,
25083,
202,
482,
1075,
29510,
13759,
12,
18415,
25256,
16,
921,
2938,
1046,
2
] |
||
&& startTimeMode == zone.startTimeMode
|
public synchronized boolean equals(Object o) { if (this == o) return true; if (!(o instanceof SimpleTimeZone)) return false; SimpleTimeZone zone = (SimpleTimeZone) o; if (zone.hashCode() != hashCode() || !getID().equals(zone.getID()) || rawOffset != zone.rawOffset || useDaylight != zone.useDaylight) return false; if (!useDaylight) return true; return (startYear == zone.startYear && startMonth == zone.startMonth && startDay == zone.startDay && startDayOfWeek == zone.startDayOfWeek && startTime == zone.startTime && startTimeMode == zone.startTimeMode && endMonth == zone.endMonth && endDay == zone.endDay && endDayOfWeek == zone.endDayOfWeek && endTime == zone.endTime && endTimeMode == zone.endTimeMode); }
|
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/4b21211e31e21322f00f8bb6637fff7f2f740b05/SimpleTimeZone.java/buggy/libjava/java/util/SimpleTimeZone.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
1250,
1606,
12,
921,
320,
13,
225,
288,
565,
309,
261,
2211,
422,
320,
13,
1377,
327,
638,
31,
565,
309,
16051,
12,
83,
1276,
4477,
16760,
3719,
1377,
327,
629,
31,
565,
4477,
16760,
4157,
273,
261,
5784,
16760,
13,
320,
31,
565,
309,
261,
3486,
18,
2816,
1085,
1435,
480,
13374,
1435,
202,
20081,
401,
588,
734,
7675,
14963,
12,
3486,
18,
588,
734,
10756,
202,
20081,
1831,
2335,
480,
4157,
18,
1899,
2335,
747,
999,
4245,
5099,
480,
4157,
18,
1202,
4245,
5099,
13,
1377,
327,
629,
31,
565,
309,
16051,
1202,
4245,
5099,
13,
1377,
327,
638,
31,
565,
327,
261,
1937,
5593,
422,
4157,
18,
1937,
5593,
202,
565,
597,
787,
5445,
422,
4157,
18,
1937,
5445,
202,
565,
597,
787,
4245,
422,
4157,
18,
1937,
4245,
202,
565,
597,
787,
23944,
422,
4157,
18,
1937,
23944,
202,
565,
597,
8657,
422,
4157,
18,
1937,
950,
202,
565,
597,
8657,
2309,
422,
4157,
18,
1937,
950,
2309,
202,
565,
597,
679,
5445,
422,
4157,
18,
409,
5445,
202,
565,
597,
679,
4245,
422,
4157,
18,
409,
4245,
202,
565,
597,
679,
23944,
422,
4157,
18,
409,
23944,
202,
565,
597,
13859,
422,
4157,
18,
409,
950,
202,
565,
597,
13859,
2309,
422,
4157,
18,
409,
950,
2309,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
1250,
1606,
12,
921,
320,
13,
225,
288,
565,
309,
261,
2211,
422,
320,
13,
1377,
327,
638,
31,
565,
309,
16051,
12,
83,
1276,
4477,
16760,
3719,
1377,
327,
629,
31,
565,
4477,
16760,
4157,
273,
261,
5784,
16760,
13,
320,
31,
565,
309,
261,
3486,
18,
2816,
1085,
1435,
480,
13374,
1435,
202,
20081,
401,
588,
734,
7675,
14963,
12,
3486,
18,
588,
734,
10756,
202,
20081,
1831,
2335,
480,
4157,
18,
1899,
2335,
747,
999,
4245,
5099,
480,
4157,
18,
1202,
4245,
5099,
13,
1377,
327,
629,
31,
565,
309,
16051,
1202,
4245,
5099,
13,
1377,
327,
638,
31,
565,
327,
261,
1937,
5593,
422,
4157,
18,
1937,
5593,
202,
565,
597,
787,
2
] |
|
"email-user-added-subject", emailUserAddedSubject); prefs.setValue("email-user-added-body", emailUserAddedBody);
|
PropsUtil.ADMIN_EMAIL_USER_ADDED_SUBJECT, emailUserAddedSubject); prefs.setValue( PropsUtil.ADMIN_EMAIL_USER_ADDED_BODY, emailUserAddedBody);
|
protected void updateEmails( ActionRequest req, PortletPreferences prefs) throws Exception { String tabs3 = ParamUtil.getString(req, "tabs3"); if (tabs3.equals("user-added-email")) { String emailUserAddedEnabled = ParamUtil.getString( req, "emailUserAddedEnabled"); String emailUserAddedSubject = ParamUtil.getString( req, "emailUserAddedSubject"); String emailUserAddedBody = ParamUtil.getString( req, "emailUserAddedBody"); if (Validator.isNull(emailUserAddedSubject)) { SessionErrors.add(req, "emailUserAddedSubject"); } else if (Validator.isNull(emailUserAddedBody)) { SessionErrors.add(req, "emailUserAddedBody"); } else { prefs.setValue( "email-user-added-enabled", emailUserAddedEnabled); prefs.setValue( "email-user-added-subject", emailUserAddedSubject); prefs.setValue("email-user-added-body", emailUserAddedBody); } } else if (tabs3.equals("password-sent-email")) { String emailPasswordSentEnabled = ParamUtil.getString( req, "emailPasswordSentEnabled"); String emailPasswordSentSubject = ParamUtil.getString( req, "emailPasswordSentSubject"); String emailPasswordSentBody = ParamUtil.getString( req, "emailPasswordSentBody"); if (Validator.isNull(emailPasswordSentSubject)) { SessionErrors.add(req, "emailPasswordSentSubject"); } else if (Validator.isNull(emailPasswordSentBody)) { SessionErrors.add(req, "emailPasswordSentBody"); } else { prefs.setValue( "email-password-sent-enabled", emailPasswordSentEnabled); prefs.setValue( "email-password-sent-subject", emailPasswordSentSubject); prefs.setValue( "email-password-sent-body", emailPasswordSentBody); } } else { String emailFromName = ParamUtil.getString(req, "emailFromName"); String emailFromAddress = ParamUtil.getString( req, "emailFromAddress"); if (Validator.isNull(emailFromName)) { SessionErrors.add(req, "emailFromName"); } else if (!Validator.isEmailAddress(emailFromAddress)) { SessionErrors.add(req, "emailFromAddress"); } else { prefs.setValue("email-from-name", emailFromName); prefs.setValue("email-from-address", emailFromAddress); } } }
|
53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/58a5501f2dec858b085420e7613b08c0cdc7f24d/EditUsersAction.java/buggy/portal-ejb/src/com/liferay/portlet/admin/action/EditUsersAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1089,
26614,
12,
1082,
202,
1803,
691,
1111,
16,
21305,
12377,
15503,
13,
202,
202,
15069,
1185,
288,
202,
202,
780,
10920,
23,
273,
3014,
1304,
18,
588,
780,
12,
3658,
16,
315,
16056,
23,
8863,
202,
202,
430,
261,
16056,
23,
18,
14963,
2932,
1355,
17,
9665,
17,
3652,
6,
3719,
288,
1082,
202,
780,
2699,
1299,
8602,
1526,
273,
3014,
1304,
18,
588,
780,
12,
9506,
202,
3658,
16,
315,
3652,
1299,
8602,
1526,
8863,
1082,
202,
780,
2699,
1299,
8602,
6638,
273,
3014,
1304,
18,
588,
780,
12,
9506,
202,
3658,
16,
315,
3652,
1299,
8602,
6638,
8863,
1082,
202,
780,
2699,
1299,
8602,
2250,
273,
3014,
1304,
18,
588,
780,
12,
9506,
202,
3658,
16,
315,
3652,
1299,
8602,
2250,
8863,
1082,
202,
430,
261,
5126,
18,
291,
2041,
12,
3652,
1299,
8602,
6638,
3719,
288,
9506,
202,
2157,
4229,
18,
1289,
12,
3658,
16,
315,
3652,
1299,
8602,
6638,
8863,
1082,
202,
97,
1082,
202,
12107,
309,
261,
5126,
18,
291,
2041,
12,
3652,
1299,
8602,
2250,
3719,
288,
9506,
202,
2157,
4229,
18,
1289,
12,
3658,
16,
315,
3652,
1299,
8602,
2250,
8863,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
1484,
2556,
18,
542,
620,
12,
6862,
202,
6,
3652,
17,
1355,
17,
9665,
17,
5745,
3113,
2699,
1299,
8602,
1526,
1769,
9506,
202,
1484,
2556,
18,
542,
620,
12,
6862,
202,
6,
3652,
17,
1355,
17,
9665,
17,
7857,
3113,
2699,
1299,
8602,
6638,
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,
1089,
26614,
12,
1082,
202,
1803,
691,
1111,
16,
21305,
12377,
15503,
13,
202,
202,
15069,
1185,
288,
202,
202,
780,
10920,
23,
273,
3014,
1304,
18,
588,
780,
12,
3658,
16,
315,
16056,
23,
8863,
202,
202,
430,
261,
16056,
23,
18,
14963,
2932,
1355,
17,
9665,
17,
3652,
6,
3719,
288,
1082,
202,
780,
2699,
1299,
8602,
1526,
273,
3014,
1304,
18,
588,
780,
12,
9506,
202,
3658,
16,
315,
3652,
1299,
8602,
1526,
8863,
1082,
202,
780,
2699,
1299,
8602,
6638,
273,
3014,
1304,
18,
588,
780,
12,
9506,
202,
3658,
16,
315,
3652,
1299,
8602,
6638,
8863,
1082,
202,
780,
2699,
1299,
8602,
2250,
273,
3014,
1304,
18,
588,
780,
12,
2
] |
if (file.startsWith("*")) { log.warn("Cannot perform initial open using alias " + file); } else { file = checkDefault(file); log.info("Attaching " + file); open(file, xpathString, file); fw = (XPathWrapper) my.get(file); }
|
xpfc=open(file, xpathString);
|
public static String getXPathString(String file, String xpathString) { Map my = (Map) filePacks.get(); XPathWrapper fw = (XPathWrapper) (my).get(file); if (fw == null) // First call { if (file.startsWith("*")) { log.warn("Cannot perform initial open using alias " + file); } else { file = checkDefault(file); log.info("Attaching " + file); open(file, xpathString, file); fw = (XPathWrapper) my.get(file); } // TODO improve the error handling if (fw == null) { log.error("XPathWrapper is null!"); return ""; } } return fw.getXPathString(); }
|
50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/64e051a0dc6a92a904002226c9fcad068810b9ab/XPathWrapper.java/clean/src/functions/org/apache/jmeter/functions/XPathWrapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
6538,
743,
780,
12,
780,
585,
16,
514,
6748,
780,
13,
288,
202,
202,
863,
3399,
273,
261,
863,
13,
585,
4420,
87,
18,
588,
5621,
202,
202,
14124,
3611,
7600,
273,
261,
14124,
3611,
13,
261,
4811,
2934,
588,
12,
768,
1769,
202,
202,
430,
261,
11966,
422,
446,
13,
368,
5783,
745,
202,
202,
95,
1082,
202,
430,
261,
768,
18,
17514,
1190,
2932,
7388,
3719,
288,
9506,
202,
1330,
18,
8935,
2932,
4515,
3073,
2172,
1696,
1450,
2308,
315,
397,
585,
1769,
1082,
202,
97,
469,
288,
9506,
202,
768,
273,
866,
1868,
12,
768,
1769,
9506,
202,
1330,
18,
1376,
2932,
4761,
310,
315,
397,
585,
1769,
9506,
202,
3190,
12,
768,
16,
6748,
780,
16,
585,
1769,
9506,
202,
11966,
273,
261,
14124,
3611,
13,
3399,
18,
588,
12,
768,
1769,
1082,
202,
97,
1082,
202,
759,
2660,
21171,
326,
555,
5057,
1082,
202,
430,
261,
11966,
422,
446,
13,
288,
9506,
202,
1330,
18,
1636,
2932,
14124,
3611,
353,
446,
4442,
1769,
9506,
202,
2463,
1408,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
7600,
18,
588,
14124,
780,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
6538,
743,
780,
12,
780,
585,
16,
514,
6748,
780,
13,
288,
202,
202,
863,
3399,
273,
261,
863,
13,
585,
4420,
87,
18,
588,
5621,
202,
202,
14124,
3611,
7600,
273,
261,
14124,
3611,
13,
261,
4811,
2934,
588,
12,
768,
1769,
202,
202,
430,
261,
11966,
422,
446,
13,
368,
5783,
745,
202,
202,
95,
1082,
202,
430,
261,
768,
18,
17514,
1190,
2932,
7388,
3719,
288,
9506,
202,
1330,
18,
8935,
2932,
4515,
3073,
2172,
1696,
1450,
2308,
315,
397,
585,
1769,
1082,
202,
97,
469,
288,
9506,
202,
768,
273,
866,
1868,
12,
768,
1769,
9506,
202,
1330,
18,
1376,
2932,
4761,
310,
315,
397,
585,
1769,
9506,
202,
3190,
2
] |
this.sampleModel = sampleModel; this.dataBuffer = dataBuffer; this.minX = aRegion.x; this.minY = aRegion.y; this.width = aRegion.width; this.height = aRegion.height; this.sampleModelTranslateX = sampleModelTranslate.x; this.sampleModelTranslateY = sampleModelTranslate.y; this.numBands = sampleModel.getNumBands(); this.numDataElements = sampleModel.getNumDataElements(); this.parent = parent;
|
this(sampleModel, sampleModel.createDataBuffer(), origin);
|
protected Raster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent) { this.sampleModel = sampleModel; this.dataBuffer = dataBuffer; this.minX = aRegion.x; this.minY = aRegion.y; this.width = aRegion.width; this.height = aRegion.height; this.sampleModelTranslateX = sampleModelTranslate.x; this.sampleModelTranslateY = sampleModelTranslate.y; this.numBands = sampleModel.getNumBands(); this.numDataElements = sampleModel.getNumDataElements(); this.parent = parent; }
|
25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/51a535c0ebf53d0804b5afd81cb0acf823872599/Raster.java/clean/libjava/java/awt/image/Raster.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
30757,
12,
8504,
1488,
3296,
1488,
16,
1910,
1892,
501,
1892,
16,
1082,
282,
13264,
279,
5165,
16,
1082,
282,
4686,
3296,
1488,
12818,
16,
30757,
982,
13,
225,
288,
565,
333,
18,
6358,
1488,
273,
3296,
1488,
31,
565,
333,
18,
892,
1892,
273,
501,
1892,
31,
565,
333,
18,
1154,
60,
273,
279,
5165,
18,
92,
31,
565,
333,
18,
1154,
61,
273,
279,
5165,
18,
93,
31,
565,
333,
18,
2819,
273,
279,
5165,
18,
2819,
31,
565,
333,
18,
4210,
273,
279,
5165,
18,
4210,
31,
565,
333,
18,
6358,
1488,
12818,
60,
273,
3296,
1488,
12818,
18,
92,
31,
565,
333,
18,
6358,
1488,
12818,
61,
273,
3296,
1488,
12818,
18,
93,
31,
565,
333,
18,
2107,
26554,
273,
3296,
1488,
18,
588,
2578,
26554,
5621,
565,
333,
18,
2107,
751,
3471,
273,
3296,
1488,
18,
588,
2578,
751,
3471,
5621,
565,
333,
18,
2938,
273,
982,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
4750,
30757,
12,
8504,
1488,
3296,
1488,
16,
1910,
1892,
501,
1892,
16,
1082,
282,
13264,
279,
5165,
16,
1082,
282,
4686,
3296,
1488,
12818,
16,
30757,
982,
13,
225,
288,
565,
333,
18,
6358,
1488,
273,
3296,
1488,
31,
565,
333,
18,
892,
1892,
273,
501,
1892,
31,
565,
333,
18,
1154,
60,
273,
279,
5165,
18,
92,
31,
565,
333,
18,
1154,
61,
273,
279,
5165,
18,
93,
31,
565,
333,
18,
2819,
273,
279,
5165,
18,
2819,
31,
565,
333,
18,
4210,
273,
279,
5165,
18,
4210,
31,
565,
333,
18,
6358,
1488,
12818,
60,
273,
3296,
1488,
12818,
18,
92,
31,
565,
333,
18,
6358,
1488,
12818,
61,
273,
3296,
1488,
12818,
18,
93,
2
] |
log.error("InterruptTest.SleeperThread.runSleep(): " + ex);
|
System.err.println("InterruptTest.SleeperThread.runSleep(): " + ex);
|
void runSleep() { try { Thread.sleep(TIMEOUT); } catch(InterruptedException ex) { log.error("InterruptTest.SleeperThread.runSleep(): " + ex); } }
|
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/13de68466e3cf7fde6ee0bde0cee09a33e837e89/InterruptTest.java/buggy/tests/junit/org/jgroups/tests/InterruptTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
1086,
20768,
1435,
288,
5411,
775,
288,
7734,
4884,
18,
19607,
12,
9503,
1769,
5411,
289,
5411,
1044,
12,
24485,
503,
431,
13,
288,
7734,
2332,
18,
370,
18,
8222,
2932,
14126,
4709,
18,
55,
11182,
457,
3830,
18,
2681,
20768,
13332,
315,
397,
431,
1769,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
1086,
20768,
1435,
288,
5411,
775,
288,
7734,
4884,
18,
19607,
12,
9503,
1769,
5411,
289,
5411,
1044,
12,
24485,
503,
431,
13,
288,
7734,
2332,
18,
370,
18,
8222,
2932,
14126,
4709,
18,
55,
11182,
457,
3830,
18,
2681,
20768,
13332,
315,
397,
431,
1769,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
xsp = jj_scanpos; if (jj_3_18()) jj_scanpos = xsp; if (jj_scan_token(SUPER)) return true; if (jj_3R_67()) return true; if (jj_scan_token(SEMICOLON)) return true;
|
while (true) { xsp = jj_scanpos; if (jj_3_2()) { jj_scanpos = xsp; break; } }
|
final private boolean jj_3R_90() { Token xsp; xsp = jj_scanpos; if (jj_3_18()) jj_scanpos = xsp; if (jj_scan_token(SUPER)) return true; if (jj_3R_67()) return true; if (jj_scan_token(SEMICOLON)) return true; return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/1d8de6b34ea0ddb64fc94b478c0950c0d35de605/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,
9349,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
67,
2643,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
13272,
654,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
9599,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
1090,
22972,
1741,
673,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9349,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
67,
2643,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
13272,
654,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
9599,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
1090,
22972,
1741,
673,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
testIfPaused();
|
public void run() { URI webFileUri = this.webFile.getURI(); String webFileHostURI; if (webFileUri.getPort() > 0) { webFileHostURI = webFileUri.getScheme() + HtmlConstants.SCHEME_AND_AUTHORITY_SEPARATOR + webFileUri.getHost() + ":" + webFileUri.getPort(); } else { webFileHostURI = webFileUri.getScheme() + HtmlConstants.SCHEME_AND_AUTHORITY_SEPARATOR + webFileUri.getHost(); } //download the webFile System.out.println("--Downloading: " + webFileHostURI + webFileUri.getPath() + " - depth: " + this.webFile.getDepth()); //filter the links which have not the same host if (webFileHostURI.equals(this.defaultHost)) { boolean downloadedFile = false; try { downloadedFile = download(); } catch (IOException e1) { System.err.println(e1); } if (downloadedFile) { //parsing of the webFile if it is a HTML document if (this.webFile.getContentType().contains(HtmlConstants.TEXT_HTML)) { System.out.println("------parsing: " + this.destDirectory + webFileUri.getPath()); parseHtml(this.webFile); } } else { //error during download, set the progression to (-1) this.webFile.setProgression(-2); //do a fire in the detailledModel int indexInModel = detailledModel.getIndexWebFile(this.webFile); detailledModel.fireTableRowsUpdated(indexInModel, indexInModel); } } else { //it is not the same web site or the same protocol System.err.println(webFileHostURI + " / " + this.defaultHost + ": NOT THE SAME HOST OR THE SAME PROTOCOL"); } this.downloadManager.endDownload(this.webFile); }
|
12675 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12675/b2464f04d0c69fa9e8bb4fd9fe28fca25d0b904d/DownloadAndParseFile.java/buggy/src/fr/umlv/ir2/jhoover/network/DownloadAndParseFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
84,
440,
933,
395,
2047,
28590,
5621,
918,
3813,
2047,
28590,
5621,
1086,
1435,
3813,
2047,
28590,
5621,
288,
202,
202,
3098,
3813,
2047,
28590,
5621,
3311,
812,
57,
583,
395,
2047,
28590,
5621,
273,
3813,
2047,
28590,
5621,
333,
18,
4875,
812,
18,
588,
3098,
5621,
202,
202,
780,
3813,
2047,
28590,
5621,
3311,
812,
2594,
3098,
31,
9506,
202,
2136,
395,
2047,
28590,
5621,
261,
4875,
812,
3006,
18,
588,
2617,
1435,
3813,
2047,
28590,
5621,
405,
3813,
2047,
28590,
5621,
374,
13,
3813,
2047,
28590,
5621,
288,
1082,
202,
4875,
812,
2594,
3098,
3813,
2047,
28590,
5621,
273,
3813,
2047,
28590,
5621,
3311,
812,
3006,
18,
588,
9321,
1435,
3813,
2047,
28590,
5621,
397,
3813,
2047,
28590,
5621,
31588,
18,
22870,
67,
4307,
67,
7131,
14751,
67,
4550,
3813,
2047,
28590,
5621,
397,
3813,
2047,
28590,
5621,
3311,
812,
3006,
18,
588,
2594,
1435,
3813,
2047,
28590,
5621,
397,
3813,
2047,
28590,
5621,
6153,
3813,
2047,
28590,
5621,
397,
3813,
2047,
28590,
5621,
3311,
812,
3006,
18,
588,
2617,
5621,
202,
202,
97,
3813,
2047,
28590,
5621,
415,
542,
395,
2047,
28590,
5621,
288,
1082,
202,
4875,
812,
2594,
3098,
3813,
2047,
28590,
5621,
273,
3813,
2047,
28590,
5621,
3311,
812,
3006,
18,
588,
9321,
1435,
3813,
2047,
28590,
5621,
397,
3813,
2047,
28590,
5621,
31588,
18,
22870,
67,
4307,
67,
7131,
14751,
67,
4550,
3813,
2047,
28590,
5621,
397,
3813,
2047,
28590,
5621,
3311,
812,
3006,
18,
588,
2594,
5621,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
84,
440,
933,
395,
2047,
28590,
5621,
918,
3813,
2047,
28590,
5621,
1086,
1435,
3813,
2047,
28590,
5621,
288,
202,
202,
3098,
3813,
2047,
28590,
5621,
3311,
812,
57,
583,
395,
2047,
28590,
5621,
273,
3813,
2047,
28590,
5621,
333,
18,
4875,
812,
18,
588,
3098,
5621,
202,
202,
780,
3813,
2047,
28590,
5621,
3311,
812,
2594,
3098,
31,
9506,
202,
2136,
395,
2047,
28590,
5621,
261,
4875,
812,
3006,
18,
588,
2617,
1435,
3813,
2047,
28590,
5621,
405,
3813,
2047,
28590,
5621,
374,
13,
3813,
2047,
28590,
5621,
288,
1082,
202,
4875,
812,
2594,
3098,
3813,
2047,
28590,
5621,
273,
3813,
2047,
28590,
5621,
3311,
812,
3006,
18,
588,
9321,
1435,
3813,
2047,
28590,
5621,
397,
2
] |
|
members = new JavaMembers(scope, cl);
|
members = new JavaMembers(cache.scope, cl);
|
static JavaMembers lookupClass(Scriptable scope, Class dynamicType, Class staticType) { JavaMembers members; ClassCache cache = ClassCache.get(scope); Hashtable ct = cache.classTable; Class cl = dynamicType; for (;;) { members = (JavaMembers)ct.get(cl); if (members != null) { return members; } try { members = new JavaMembers(scope, cl); break; } catch (SecurityException e) { // Reflection may fail for objects that are in a restricted // access package (e.g. sun.*). If we get a security // exception, try again with the static type if it is interface. // Otherwise, try superclass if (staticType != null && staticType.isInterface()) { cl = staticType; staticType = null; // try staticType only once } else { Class parent = cl.getSuperclass(); if (parent == null) { if (cl.isInterface()) { // last resort after failed staticType interface parent = ScriptRuntime.ObjectClass; } else { throw e; } } cl = parent; } } } if (cache.isCachingEnabled()) ct.put(cl, members); return members; }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/7f45b35a046c270dcc6c78724db53fd68dd7b3f2/JavaMembers.java/buggy/src/org/mozilla/javascript/JavaMembers.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
5110,
6918,
3689,
797,
12,
3651,
429,
2146,
16,
1659,
5976,
559,
16,
4766,
282,
1659,
760,
559,
13,
565,
288,
3639,
5110,
6918,
4833,
31,
3639,
1659,
1649,
1247,
273,
1659,
1649,
18,
588,
12,
4887,
1769,
3639,
18559,
5691,
273,
1247,
18,
1106,
1388,
31,
3639,
1659,
927,
273,
5976,
559,
31,
3639,
364,
261,
25708,
13,
288,
5411,
4833,
273,
261,
5852,
6918,
13,
299,
18,
588,
12,
830,
1769,
5411,
309,
261,
7640,
480,
446,
13,
288,
7734,
327,
4833,
31,
5411,
289,
5411,
775,
288,
7734,
4833,
273,
394,
5110,
6918,
12,
2493,
18,
4887,
16,
927,
1769,
7734,
898,
31,
5411,
289,
1044,
261,
24918,
425,
13,
288,
7734,
368,
5685,
2026,
2321,
364,
2184,
716,
854,
316,
279,
15693,
7734,
368,
2006,
2181,
261,
73,
18,
75,
18,
13887,
4509,
2934,
225,
971,
732,
336,
279,
4373,
7734,
368,
1520,
16,
775,
3382,
598,
326,
760,
618,
309,
518,
353,
1560,
18,
7734,
368,
5272,
16,
775,
12098,
7734,
309,
261,
3845,
559,
480,
446,
597,
760,
559,
18,
291,
1358,
10756,
288,
10792,
927,
273,
760,
559,
31,
10792,
760,
559,
273,
446,
31,
368,
775,
760,
559,
1338,
3647,
7734,
289,
469,
288,
10792,
1659,
982,
273,
927,
18,
588,
28471,
5621,
10792,
309,
261,
2938,
422,
446,
13,
288,
13491,
309,
261,
830,
18,
291,
1358,
10756,
288,
18701,
368,
1142,
400,
499,
1839,
2535,
760,
559,
1560,
18701,
982,
273,
7739,
5576,
18,
921,
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,
5110,
6918,
3689,
797,
12,
3651,
429,
2146,
16,
1659,
5976,
559,
16,
4766,
282,
1659,
760,
559,
13,
565,
288,
3639,
5110,
6918,
4833,
31,
3639,
1659,
1649,
1247,
273,
1659,
1649,
18,
588,
12,
4887,
1769,
3639,
18559,
5691,
273,
1247,
18,
1106,
1388,
31,
3639,
1659,
927,
273,
5976,
559,
31,
3639,
364,
261,
25708,
13,
288,
5411,
4833,
273,
261,
5852,
6918,
13,
299,
18,
588,
12,
830,
1769,
5411,
309,
261,
7640,
480,
446,
13,
288,
7734,
327,
4833,
31,
5411,
289,
5411,
775,
288,
7734,
4833,
273,
394,
5110,
6918,
12,
2493,
18,
4887,
16,
927,
1769,
7734,
898,
31,
5411,
289,
1044,
261,
24918,
425,
13,
288,
7734,
368,
5685,
2
] |
il.append(new ASTORE(name.getIndex()));
|
name.setStart(il.append(new ASTORE(name.getIndex())));
|
public void translate(ClassGenerator classGen, MethodGenerator methodGen) { final ConstantPoolGen cpg = classGen.getConstantPool(); final InstructionList il = methodGen.getInstructionList(); final LocalVariableGen name = methodGen.addLocalVariable2("name", Util.getJCRefType(STRING_SIG), il.getEnd()); final LocalVariableGen length = methodGen.addLocalVariable2("length", Util.getJCRefType("I"), il.getEnd()); // Get the name of the node to copy and save for later il.append(methodGen.loadDOM()); il.append(methodGen.loadCurrentNode()); il.append(methodGen.loadHandler()); final int cpy = cpg.addInterfaceMethodref(DOM_INTF, "shallowCopy", "(" + NODE_SIG + TRANSLET_OUTPUT_SIG + ")" + STRING_SIG); il.append(new INVOKEINTERFACE(cpy, 3)); il.append(DUP); il.append(new ASTORE(name.getIndex())); final BranchHandle ifBlock1 = il.append(new IFNULL(null)); // Get the length of the node name and save for later il.append(new ALOAD(name.getIndex())); final int lengthMethod = cpg.addMethodref(STRING_CLASS,"length","()I"); il.append(new INVOKEVIRTUAL(lengthMethod)); il.append(new ISTORE(length.getIndex())); // Copy in attribute sets if specified if (_useSets != null) { // If the parent of this element will result in an element being // output then we know that it is safe to copy out the attributes final SyntaxTreeNode parent = getParent(); if ((parent instanceof LiteralElement) || (parent instanceof LiteralElement)) { _useSets.translate(classGen, methodGen); } // If not we have to check to see if the copy will result in an // element being output. else { // check if element; if not skip to translate body il.append(new ILOAD(length.getIndex())); final BranchHandle ifBlock2 = il.append(new IFEQ(null)); // length != 0 -> element -> do attribute sets _useSets.translate(classGen, methodGen); // not an element; root ifBlock2.setTarget(il.append(NOP)); } } // Instantiate body of xsl:copy translateContents(classGen, methodGen); // Call the output handler's endElement() if we copied an element // (The DOM.shallowCopy() method calls startElement().) il.append(new ILOAD(length.getIndex())); final BranchHandle ifBlock3 = il.append(new IFEQ(null)); il.append(methodGen.loadHandler()); il.append(new ALOAD(name.getIndex())); il.append(methodGen.endElement()); final InstructionHandle end = il.append(NOP); ifBlock1.setTarget(end); ifBlock3.setTarget(end); methodGen.removeLocalVariable(name); methodGen.removeLocalVariable(length); }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/480fc3e61f3162d6702ae2271f44b92002675f6f/Copy.java/clean/src/org/apache/xalan/xsltc/compiler/Copy.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,
10551,
2864,
7642,
3283,
75,
273,
667,
7642,
18,
588,
6902,
2864,
5621,
202,
6385,
24605,
682,
14254,
273,
707,
7642,
18,
588,
11983,
682,
5621,
202,
6385,
3566,
3092,
7642,
508,
273,
202,
565,
707,
7642,
18,
1289,
2042,
3092,
22,
2932,
529,
3113,
6862,
202,
1304,
18,
588,
46,
39,
22600,
12,
5804,
67,
18513,
3631,
6862,
202,
330,
18,
588,
1638,
10663,
202,
6385,
3566,
3092,
7642,
769,
273,
202,
565,
707,
7642,
18,
1289,
2042,
3092,
22,
2932,
2469,
3113,
6862,
202,
1304,
18,
588,
46,
39,
22600,
2932,
45,
6,
3631,
6862,
202,
330,
18,
588,
1638,
10663,
202,
759,
968,
326,
508,
434,
326,
756,
358,
1610,
471,
1923,
364,
5137,
202,
330,
18,
6923,
12,
2039,
7642,
18,
945,
8168,
10663,
202,
330,
18,
6923,
12,
2039,
7642,
18,
945,
3935,
907,
10663,
202,
330,
18,
6923,
12,
2039,
7642,
18,
945,
1503,
10663,
202,
6385,
509,
24534,
273,
3283,
75,
18,
1289,
1358,
1305,
1734,
12,
8168,
67,
3217,
42,
16,
6862,
1082,
225,
315,
674,
5965,
2951,
3113,
6862,
1082,
225,
12452,
6862,
1082,
225,
397,
11922,
67,
18513,
6862,
1082,
225,
397,
28093,
15146,
67,
15527,
67,
18513,
6862,
1082,
225,
397,
7310,
397,
9469,
67,
18513,
1769,
225,
202,
330,
18,
6923,
12,
2704,
29666,
18865,
12,
71,
2074,
16,
890,
10019,
202,
330,
18,
6923,
12,
30387,
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,
10551,
2864,
7642,
3283,
75,
273,
667,
7642,
18,
588,
6902,
2864,
5621,
202,
6385,
24605,
682,
14254,
273,
707,
7642,
18,
588,
11983,
682,
5621,
202,
6385,
3566,
3092,
7642,
508,
273,
202,
565,
707,
7642,
18,
1289,
2042,
3092,
22,
2932,
529,
3113,
6862,
202,
1304,
18,
588,
46,
39,
22600,
12,
5804,
67,
18513,
3631,
6862,
202,
330,
18,
588,
1638,
10663,
202,
6385,
3566,
3092,
7642,
769,
273,
202,
565,
707,
7642,
18,
1289,
2042,
3092,
22,
2932,
2469,
3113,
6862,
202,
1304,
18,
588,
46,
39,
22600,
2932,
45,
6,
3631,
6862,
202,
330,
18,
588,
2
] |
ISelection selection = viewer.getSelection(); Object obj = ((IStructuredSelection)selection).getFirstElement(); showMessage("Double-click detected on "+obj.toString());
|
if (currentActivation == null) { currentActivation = contextService .activateContext(MenuContributionHarness.CONTEXT_TEST1_ID); setImageDescriptor(PlatformUI.getWorkbench() .getSharedImages().getImageDescriptor( ISharedImages.IMG_TOOL_UNDO)); } else { contextService.deactivateContext(currentActivation); currentActivation = null; setImageDescriptor(PlatformUI.getWorkbench() .getSharedImages().getImageDescriptor( ISharedImages.IMG_TOOL_REDO)); }
|
public void run() { ISelection selection = viewer.getSelection(); Object obj = ((IStructuredSelection)selection).getFirstElement(); showMessage("Double-click detected on "+obj.toString()); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e8f0a1fd7574026408eaf4f59c4c4d476215dd65/MenuContributionHarness.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/workbenchpart/MenuContributionHarness.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
45,
6233,
4421,
273,
14157,
18,
588,
6233,
5621,
9506,
202,
921,
1081,
273,
14015,
45,
30733,
6233,
13,
10705,
2934,
588,
3759,
1046,
5621,
9506,
202,
4500,
1079,
2932,
5265,
17,
7475,
8316,
603,
13773,
2603,
18,
10492,
10663,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
1086,
1435,
288,
9506,
202,
45,
6233,
4421,
273,
14157,
18,
588,
6233,
5621,
9506,
202,
921,
1081,
273,
14015,
45,
30733,
6233,
13,
10705,
2934,
588,
3759,
1046,
5621,
9506,
202,
4500,
1079,
2932,
5265,
17,
7475,
8316,
603,
13773,
2603,
18,
10492,
10663,
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
] |
catch(Exception cnc)
|
catch (Exception cnc)
|
public void save() throws Exception { String FS = File.separator; String target = null; String shortCutDef = this.replace(); boolean rootUser4All = this.getUserType() == Shortcut.ALL_USERS; boolean create4All = this.getCreateForAll().booleanValue(); // Create The Desktop Shortcuts if ("".equals(this.itsGroupName) && (this.getLinkType() == Shortcut.DESKTOP)) { target = System.getProperty("user.home") + FS + "Desktop" + FS + this.itsName + DESKTOP_EXT; this.itsFileName = target; // write my own ShortCut File writtenDesktopFile = writeShortCut(target, shortCutDef); // If I'm root and this Desktop.ShortCut should be for all other users if (rootUser4All && create4All) { File dest = null; // Create a tempFileName of this ShortCut File tempFile = File.createTempFile(this.getClass().getName(), Long.toString(System .currentTimeMillis()) + ".tmp"); copyTo(writtenDesktopFile, tempFile); Debug.log("Wrote Tempfile: " + tempFile.toString()); String chmod = UnixHelper.getCustomCommand("chmod"); String chown = UnixHelper.getCustomCommand("chown"); String copy = UnixHelper.getCpCommand(); String su = UnixHelper.getSuCommand(); FileExecutor.getExecOutput(new String[] { chmod, "uga+rwx", tempFile.toString()}); // su marc.eppelmann -c "/bin/cp /home/marc.eppelmann/backup.job.out.txt // /home/marc.eppelmann/backup.job.out2.txt" ArrayList users = UnixUsers.getUsersWithValidShellsExistingHomesAndDesktops(); for (int idx = 0; idx < users.size(); idx++) { UnixUser user = ((UnixUser) users.get(idx)); try { // aHomePath = userHomesList[idx]; dest = new File(user.getHome() + FS + "Desktop" + FS + writtenDesktopFile.getName()); // // I'm root and cannot write into Users Home as root; // But I'm Root and I can slip in every users skin :-) // // by# su username // // This works as well // su username -c "cp /tmp/desktopfile $HOME/Desktop/link.desktop" // // copyTo(writtenDesktopFile, dest); Debug.log("Will Copy: " + tempFile.toString() + " to " + dest.toString()); StringBuffer script = new StringBuffer(); script.append(su); script.append(S); script.append(user.getName()); script.append(S); script.append("-c"); script.append(S); script.append('"'); script.append(copy); script.append(S); script.append(tempFile.toString()); script.append(S); script.append(dest.toString()); script.append('"'); Debug.log("Executes: " + script.toString()); String result = ShellScript.execAndDelete(script, File.createTempFile( this.getClass().getName(), Long.toString(System.currentTimeMillis()) + ".sh").toString()); Debug.log("Result: " + result); uninstaller.addRootAsUserFile(dest.toString(), user); /* * FileExecutor.getExecOutput(new String[] { su, user.getName(), "-c", "\"" + * copy + " " + tempFile.toString() + " " + dest.toString() + "\""}); */ Debug.log("Copied: " + tempFile.toString() + " to " + dest.toString()); try { FileExecutor.getExecOutput(new String[] { chown, user.getName(), dest.toString()}); } catch (RuntimeException rexx) { System.out.println("While Chown :" + rexx.getLocalizedMessage()); rexx.printStackTrace(); } } catch (Exception rex) { System.out.println("While Su Copy:" + rex.getLocalizedMessage()); rex.printStackTrace(); /* ignore */ // most distros does not allow root to access any user // home (ls -la /home/user drwx------) // But try it anyway... } } try { tempFile.delete(); } catch (Exception e) { tempFile.deleteOnExit(); } } } // This is - or should be only a Link in the [K?]-Menu else { File kdeHomeShareApplnk = getKdeShareApplnkFolder(this.getUserType()); target = kdeHomeShareApplnk.toString() + FS + this.itsGroupName + FS + this.itsName + DESKTOP_EXT; this.itsFileName = target; writeShortCut(target, shortCutDef); if (rootUser4All) { if (create4All) { // write the icon pixmaps into /usr/share/pixmaps File theIcon = new File( this.getIconLocation() ); File commonIcon = new File( "/usr/share/pixmaps/" + theIcon.getName() ); try { copyTo( theIcon, commonIcon ); uninstaller.addFile(commonIcon.toString()); } catch(Exception cnc) { Debug.log("Could Not Copy: " + theIcon + " to " + commonIcon + "( "+ cnc.getMessage() +" )" ); } // write *.desktop.file into /usr/share/applications String commonTarget = "/usr/share/applications/" + this.itsName + DESKTOP_EXT; this.itsFileName = target; File writtenFile = writeShortCut(commonTarget, shortCutDef); uninstaller.addFile(writtenFile.toString()); } else { // do nothing } } } }
|
58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/82826c717c5d8b34bcecdb5abeaf70c8ee48e50c/Unix_Shortcut.java/clean/izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1435,
1216,
1185,
565,
288,
3639,
514,
9247,
273,
1387,
18,
11287,
31,
3639,
514,
1018,
273,
446,
31,
3639,
514,
3025,
15812,
3262,
273,
333,
18,
2079,
5621,
3639,
1250,
1365,
1299,
24,
1595,
273,
333,
18,
588,
1299,
559,
1435,
422,
7925,
5150,
18,
4685,
67,
30846,
31,
3639,
1250,
752,
24,
1595,
273,
333,
18,
588,
1684,
1290,
1595,
7675,
6494,
620,
5621,
3639,
368,
1788,
1021,
10597,
11869,
7925,
5150,
87,
3639,
309,
261,
3660,
18,
14963,
12,
2211,
18,
1282,
3943,
13,
597,
261,
2211,
18,
588,
2098,
559,
1435,
422,
7925,
5150,
18,
1639,
11129,
10462,
3719,
3639,
288,
5411,
1018,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
8712,
7923,
397,
9247,
397,
315,
27583,
6,
397,
9247,
397,
333,
18,
1282,
461,
10792,
397,
2030,
11129,
10462,
67,
4142,
31,
5411,
333,
18,
1282,
4771,
273,
1018,
31,
5411,
368,
1045,
3399,
4953,
7925,
15812,
5411,
1387,
5941,
27583,
812,
273,
28708,
15812,
12,
3299,
16,
3025,
15812,
3262,
1769,
5411,
368,
971,
467,
17784,
1365,
471,
333,
10597,
11869,
18,
4897,
15812,
1410,
506,
364,
777,
1308,
3677,
5411,
309,
261,
3085,
1299,
24,
1595,
597,
752,
24,
1595,
13,
5411,
288,
7734,
1387,
1570,
273,
446,
31,
7734,
368,
1788,
279,
1906,
4771,
434,
333,
7925,
15812,
7734,
1387,
18286,
273,
1387,
18,
2640,
20181,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
3407,
18,
10492,
12,
3163,
13491,
263,
2972,
28512,
10756,
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,
1923,
1435,
1216,
1185,
565,
288,
3639,
514,
9247,
273,
1387,
18,
11287,
31,
3639,
514,
1018,
273,
446,
31,
3639,
514,
3025,
15812,
3262,
273,
333,
18,
2079,
5621,
3639,
1250,
1365,
1299,
24,
1595,
273,
333,
18,
588,
1299,
559,
1435,
422,
7925,
5150,
18,
4685,
67,
30846,
31,
3639,
1250,
752,
24,
1595,
273,
333,
18,
588,
1684,
1290,
1595,
7675,
6494,
620,
5621,
3639,
368,
1788,
1021,
10597,
11869,
7925,
5150,
87,
3639,
309,
261,
3660,
18,
14963,
12,
2211,
18,
1282,
3943,
13,
597,
261,
2211,
18,
588,
2098,
559,
1435,
422,
7925,
5150,
18,
1639,
11129,
10462,
3719,
3639,
288,
5411,
1018,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
2
] |
private void initializeAll() {
|
public void initializeAll() {
|
private void initializeAll() { // Initialize all buildings. buildings.removeAllElements(); if (bldgByCoords == null) { bldgByCoords = new Hashtable(); } else { bldgByCoords.clear(); } // Walk through the hexes, creating buildings. for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { // Does this hex contain a building? IHex curHex = getHex( x, y ); if ( curHex != null && curHex.containsTerrain( Terrains.BUILDING ) ) { // Yup, but is it a repeat? Coords coords = new Coords(x,y); if ( !bldgByCoords.containsKey(coords) ) { // Nope. Try to create an object for the new building. try { Building bldg = new Building( coords, this ); buildings.addElement( bldg ); // Each building will identify the hexes it covers. Enumeration iter = bldg.getCoords(); while ( iter.hasMoreElements() ) { bldgByCoords.put( iter.nextElement(), bldg ); } } catch ( IllegalArgumentException excep ) { // Log the error and remove the // building from the board. System.err.println( "Unable to create building." ); excep.printStackTrace(); curHex.removeTerrain( Terrains.BUILDING ); } } // End building-is-new } // End hex-has-building } } // Initialize all exits. for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { initializeHex(x, y); } } } // End private void initializeAll()
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/56340719628e2d6a138de880ae03d862cb20fd69/Board.java/buggy/megamek/src/megamek/common/Board.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
1595,
1435,
288,
3639,
368,
9190,
777,
1361,
899,
18,
3639,
1361,
899,
18,
4479,
1595,
3471,
5621,
3639,
309,
261,
70,
1236,
75,
858,
13089,
422,
446,
13,
288,
5411,
324,
1236,
75,
858,
13089,
273,
394,
18559,
5621,
3639,
289,
3639,
469,
288,
5411,
324,
1236,
75,
858,
13089,
18,
8507,
5621,
3639,
289,
3639,
368,
7564,
3059,
326,
3827,
281,
16,
4979,
1361,
899,
18,
3639,
364,
261,
474,
677,
273,
374,
31,
677,
411,
2072,
31,
677,
27245,
288,
5411,
364,
261,
474,
619,
273,
374,
31,
619,
411,
1835,
31,
619,
27245,
288,
7734,
368,
9637,
333,
3827,
912,
279,
10504,
35,
7734,
467,
7037,
662,
7037,
273,
336,
7037,
12,
619,
16,
677,
11272,
7734,
309,
261,
662,
7037,
480,
446,
597,
662,
7037,
18,
12298,
56,
264,
7596,
12,
28991,
354,
2679,
18,
20215,
1360,
262,
262,
288,
10792,
368,
1624,
416,
16,
1496,
353,
518,
279,
7666,
35,
10792,
10320,
87,
6074,
273,
394,
10320,
87,
12,
92,
16,
93,
1769,
10792,
309,
261,
401,
70,
1236,
75,
858,
13089,
18,
12298,
653,
12,
9076,
13,
262,
288,
13491,
368,
423,
1306,
18,
225,
6161,
358,
752,
392,
733,
364,
326,
394,
10504,
18,
13491,
775,
288,
18701,
3998,
310,
324,
1236,
75,
273,
394,
3998,
310,
12,
6074,
16,
333,
11272,
18701,
1361,
899,
18,
1289,
1046,
12,
324,
1236,
75,
11272,
18701,
368,
8315,
10504,
903,
9786,
326,
3827,
281,
518,
25559,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
1595,
1435,
288,
3639,
368,
9190,
777,
1361,
899,
18,
3639,
1361,
899,
18,
4479,
1595,
3471,
5621,
3639,
309,
261,
70,
1236,
75,
858,
13089,
422,
446,
13,
288,
5411,
324,
1236,
75,
858,
13089,
273,
394,
18559,
5621,
3639,
289,
3639,
469,
288,
5411,
324,
1236,
75,
858,
13089,
18,
8507,
5621,
3639,
289,
3639,
368,
7564,
3059,
326,
3827,
281,
16,
4979,
1361,
899,
18,
3639,
364,
261,
474,
677,
273,
374,
31,
677,
411,
2072,
31,
677,
27245,
288,
5411,
364,
261,
474,
619,
273,
374,
31,
619,
411,
1835,
31,
619,
27245,
288,
7734,
368,
9637,
333,
3827,
912,
279,
10504,
35,
7734,
467,
7037,
662,
7037,
273,
336,
7037,
2
] |
private void changeSettings() throws SQLException { for( int i=0; i<tdsPool.size(); i++ ) ((TdsInstance)tdsPool.elementAt(i)).tds
|
private void changeSettings() throws SQLException { for (int i = 0; i < tdsPool.size(); i++) ((TdsInstance) tdsPool.elementAt(i)).tds
|
private void changeSettings() throws SQLException { for( int i=0; i<tdsPool.size(); i++ ) ((TdsInstance)tdsPool.elementAt(i)).tds .changeSettings(autoCommit, transactionIsolationLevel); }
|
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/fb8d83e970f8d6bd9cc0f859d3736d3613730e2b/TdsConnection.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/TdsConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2549,
2628,
1435,
1216,
6483,
565,
288,
3639,
364,
12,
509,
277,
33,
20,
31,
277,
32,
88,
2377,
2864,
18,
1467,
5621,
277,
9904,
262,
5411,
14015,
56,
2377,
1442,
13,
88,
2377,
2864,
18,
2956,
861,
12,
77,
13,
2934,
88,
2377,
7734,
263,
3427,
2628,
12,
6079,
5580,
16,
2492,
22982,
2355,
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,
3238,
918,
2549,
2628,
1435,
1216,
6483,
565,
288,
3639,
364,
12,
509,
277,
33,
20,
31,
277,
32,
88,
2377,
2864,
18,
1467,
5621,
277,
9904,
262,
5411,
14015,
56,
2377,
1442,
13,
88,
2377,
2864,
18,
2956,
861,
12,
77,
13,
2934,
88,
2377,
7734,
263,
3427,
2628,
12,
6079,
5580,
16,
2492,
22982,
2355,
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
] |
vDescriptor Call(vDescriptor a) { return a.IsNull(); }
|
public vDescriptor Call(vDescriptor a) { return a.IsNull(); }
|
vDescriptor Call(vDescriptor a) { return a.IsNull(); }
|
4078 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4078/58752c6d87270380496ccb11c9cc8f5acd1655cd/iOperators.java/clean/jcon/iOperators.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
90,
3187,
3049,
12,
90,
3187,
279,
13,
288,
327,
279,
18,
2520,
2041,
5621,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
90,
3187,
3049,
12,
90,
3187,
279,
13,
288,
327,
279,
18,
2520,
2041,
5621,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (DatatypeValidator)SchemaGrammar.SG_SchemaNS.getGlobalTypeDecl(SchemaSymbols.ATTVAL_STRING);
|
return (XSSimpleType)SchemaGrammar.SG_SchemaNS.getGlobalTypeDecl(SchemaSymbols.ATTVAL_ANYSIMPLETYPE);
|
private DatatypeValidator findDTValidator (Element elm, QName baseTypeStr, int baseRefContext, XSDocumentInfo schemaDoc) { if (baseTypeStr.uri !=null && baseTypeStr.uri.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) && baseTypeStr.localpart.equals(SchemaSymbols.ATTVAL_ANYSIMPLETYPE) && baseRefContext == SchemaSymbols.RESTRICTION) { String base = baseTypeStr.localpart; reportSchemaError("dt-unknown-basetype", new Object[] { DOMUtil.getAttrValue(elm, SchemaSymbols.ATT_NAME), DOMUtil.getAttrValue(elm, SchemaSymbols.ATT_BASE)}); return (DatatypeValidator)SchemaGrammar.SG_SchemaNS.getGlobalTypeDecl(SchemaSymbols.ATTVAL_STRING); } DatatypeValidator baseValidator = null; baseValidator = (DatatypeValidator)fSchemaHandler.getGlobalDecl(schemaDoc, fSchemaHandler.TYPEDECL_TYPE, baseTypeStr); if (baseValidator != null) { if ((baseValidator.getFinalSet() & baseRefContext) != 0) { reportSchemaError("dt-restiction-final",new Object[] { baseTypeStr.rawname} ); } } return baseValidator; }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/5b0cf65d1d2e090172d69189c96c522d6a30ac2c/XSDSimpleTypeTraverser.java/clean/src/org/apache/xerces/impl/xs/traversers/XSDSimpleTypeTraverser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
21168,
5126,
1104,
9081,
5126,
261,
1046,
12531,
16,
16723,
23937,
1585,
16,
509,
1026,
1957,
1042,
16,
1139,
55,
2519,
966,
1963,
1759,
13,
288,
3639,
309,
261,
1969,
559,
1585,
18,
1650,
480,
2011,
597,
225,
23937,
1585,
18,
1650,
18,
14963,
12,
3078,
14821,
18,
3098,
67,
55,
10390,
6799,
14006,
11355,
13,
597,
5411,
23937,
1585,
18,
3729,
2680,
18,
14963,
12,
3078,
14821,
18,
789,
56,
2669,
67,
15409,
31669,
900,
2399,
13,
597,
5411,
1026,
1957,
1042,
422,
4611,
14821,
18,
12030,
2259,
3106,
13,
288,
5411,
514,
1026,
273,
23937,
1585,
18,
3729,
2680,
31,
5411,
2605,
3078,
668,
2932,
7510,
17,
8172,
17,
70,
2759,
388,
3113,
394,
1033,
8526,
288,
4766,
4202,
4703,
1304,
18,
588,
3843,
620,
12,
19597,
16,
4611,
14821,
18,
789,
56,
67,
1985,
3631,
4703,
1304,
18,
588,
3843,
620,
12,
19597,
16,
4611,
14821,
18,
789,
56,
67,
8369,
16869,
1769,
5411,
327,
225,
261,
60,
1260,
2052,
559,
13,
3078,
18576,
18,
30820,
67,
3078,
3156,
18,
588,
5160,
559,
3456,
12,
3078,
14821,
18,
789,
56,
2669,
67,
15409,
31669,
900,
2399,
1769,
3639,
289,
3639,
21168,
5126,
1026,
5126,
273,
446,
31,
3639,
1026,
5126,
273,
261,
20228,
5126,
13,
74,
3078,
1503,
18,
588,
5160,
3456,
12,
4821,
1759,
16,
284,
3078,
1503,
18,
2399,
23956,
67,
2399,
16,
23937,
1585,
1769,
3639,
309,
261,
1969,
5126,
480,
446,
13,
288,
5411,
309,
14015,
1969,
5126,
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,
21168,
5126,
1104,
9081,
5126,
261,
1046,
12531,
16,
16723,
23937,
1585,
16,
509,
1026,
1957,
1042,
16,
1139,
55,
2519,
966,
1963,
1759,
13,
288,
3639,
309,
261,
1969,
559,
1585,
18,
1650,
480,
2011,
597,
225,
23937,
1585,
18,
1650,
18,
14963,
12,
3078,
14821,
18,
3098,
67,
55,
10390,
6799,
14006,
11355,
13,
597,
5411,
23937,
1585,
18,
3729,
2680,
18,
14963,
12,
3078,
14821,
18,
789,
56,
2669,
67,
15409,
31669,
900,
2399,
13,
597,
5411,
1026,
1957,
1042,
422,
4611,
14821,
18,
12030,
2259,
3106,
13,
288,
5411,
514,
1026,
273,
23937,
1585,
18,
3729,
2680,
31,
5411,
2605,
3078,
668,
2932,
7510,
17,
8172,
17,
70,
2759,
388,
3113,
394,
1033,
2
] |
public org.quickfix.field.ClientID getClientID() throws FieldNotFound { org.quickfix.field.ClientID value = new org.quickfix.field.ClientID();
|
public quickfix.field.ClientID getClientID() throws FieldNotFound { quickfix.field.ClientID value = new quickfix.field.ClientID();
|
public org.quickfix.field.ClientID getClientID() throws FieldNotFound { org.quickfix.field.ClientID value = new org.quickfix.field.ClientID(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReject.java/buggy/src/java/src/quickfix/fix41/OrderCancelReject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1227,
734,
7635,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1227,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1227,
734,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1227,
734,
7635,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1227,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1227,
734,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
UndirectedGraph<String,Edge<String>> g = new SimpleGraph<String,Edge<String>>();
|
UndirectedGraph<String,DefaultEdge> g = new SimpleGraph<String,DefaultEdge>();
|
public static Graph createSamplegraph() { UndirectedGraph<String,Edge<String>> g = new SimpleGraph<String,Edge<String>>(); String v1 = "v1"; String v2 = "v2"; String v3 = "v3"; String v4 = "v4"; // add the vertices g.addVertex(v1); g.addVertex(v2); g.addVertex(v3); g.addVertex(v4); // add edges to create a circuit g.addEdge(v1, v2); g.addEdge(v2, v3); g.addEdge(v3, v4); g.addEdge(v4, v1); return g; }
|
4188 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4188/c3e5aa9fad3b9e0927939b2a916ae5049377758b/SimpleTouchgraphApplet.java/clean/src/org/jgrapht/experimental/touchgraph/SimpleTouchgraphApplet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5601,
752,
8504,
4660,
1435,
565,
288,
3639,
1351,
26830,
4137,
32,
780,
16,
1868,
6098,
34,
314,
273,
394,
4477,
4137,
32,
780,
16,
1868,
6098,
34,
5621,
3639,
514,
331,
21,
273,
315,
90,
21,
14432,
3639,
514,
331,
22,
273,
315,
90,
22,
14432,
3639,
514,
331,
23,
273,
315,
90,
23,
14432,
3639,
514,
331,
24,
273,
315,
90,
24,
14432,
3639,
368,
527,
326,
6928,
3639,
314,
18,
1289,
6475,
12,
90,
21,
1769,
3639,
314,
18,
1289,
6475,
12,
90,
22,
1769,
3639,
314,
18,
1289,
6475,
12,
90,
23,
1769,
3639,
314,
18,
1289,
6475,
12,
90,
24,
1769,
3639,
368,
527,
5231,
358,
752,
279,
12937,
3639,
314,
18,
1289,
6098,
12,
90,
21,
16,
331,
22,
1769,
3639,
314,
18,
1289,
6098,
12,
90,
22,
16,
331,
23,
1769,
3639,
314,
18,
1289,
6098,
12,
90,
23,
16,
331,
24,
1769,
3639,
314,
18,
1289,
6098,
12,
90,
24,
16,
331,
21,
1769,
3639,
327,
314,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5601,
752,
8504,
4660,
1435,
565,
288,
3639,
1351,
26830,
4137,
32,
780,
16,
1868,
6098,
34,
314,
273,
394,
4477,
4137,
32,
780,
16,
1868,
6098,
34,
5621,
3639,
514,
331,
21,
273,
315,
90,
21,
14432,
3639,
514,
331,
22,
273,
315,
90,
22,
14432,
3639,
514,
331,
23,
273,
315,
90,
23,
14432,
3639,
514,
331,
24,
273,
315,
90,
24,
14432,
3639,
368,
527,
326,
6928,
3639,
314,
18,
1289,
6475,
12,
90,
21,
1769,
3639,
314,
18,
1289,
6475,
12,
90,
22,
1769,
3639,
314,
18,
1289,
6475,
12,
90,
23,
1769,
3639,
314,
18,
1289,
6475,
12,
90,
24,
1769,
3639,
368,
527,
5231,
358,
752,
279,
12937,
3639,
314,
2
] |
fields[i] = new Field(this, typname, typid, typlen);
|
int typmod = pg_stream.ReceiveIntegerR(4); fields[i] = new Field(this, typname, typid, typlen, typmod);
|
private Field[] ReceiveFields() throws SQLException { int nf = pg_stream.ReceiveIntegerR(2), i; Field[] fields = new Field[nf]; for (i = 0 ; i < nf ; ++i) { String typname = pg_stream.ReceiveString(8192); int typid = pg_stream.ReceiveIntegerR(4); int typlen = pg_stream.ReceiveIntegerR(2); fields[i] = new Field(this, typname, typid, typlen); } return fields; }
|
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/ae2e909b19c28b2768d60b67024ec84ced527147/Connection.java/clean/postgresql/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2286,
8526,
17046,
2314,
1435,
1216,
6483,
565,
288,
202,
474,
13958,
273,
7184,
67,
3256,
18,
11323,
4522,
54,
12,
22,
3631,
277,
31,
202,
974,
8526,
1466,
273,
394,
2286,
63,
82,
74,
15533,
202,
202,
1884,
261,
77,
273,
374,
274,
277,
411,
13958,
274,
965,
77,
13,
202,
565,
288,
202,
202,
780,
3815,
529,
273,
7184,
67,
3256,
18,
11323,
780,
12,
28,
15561,
1769,
202,
202,
474,
3815,
350,
273,
7184,
67,
3256,
18,
11323,
4522,
54,
12,
24,
1769,
202,
202,
474,
13806,
28907,
273,
7184,
67,
3256,
18,
11323,
4522,
54,
12,
22,
1769,
202,
202,
2821,
63,
77,
65,
273,
394,
2286,
12,
2211,
16,
3815,
529,
16,
3815,
350,
16,
13806,
28907,
1769,
202,
565,
289,
202,
2463,
1466,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2286,
8526,
17046,
2314,
1435,
1216,
6483,
565,
288,
202,
474,
13958,
273,
7184,
67,
3256,
18,
11323,
4522,
54,
12,
22,
3631,
277,
31,
202,
974,
8526,
1466,
273,
394,
2286,
63,
82,
74,
15533,
202,
202,
1884,
261,
77,
273,
374,
274,
277,
411,
13958,
274,
965,
77,
13,
202,
565,
288,
202,
202,
780,
3815,
529,
273,
7184,
67,
3256,
18,
11323,
780,
12,
28,
15561,
1769,
202,
202,
474,
3815,
350,
273,
7184,
67,
3256,
18,
11323,
4522,
54,
12,
24,
1769,
202,
202,
474,
13806,
28907,
273,
7184,
67,
3256,
18,
11323,
4522,
54,
12,
22,
1769,
202,
202,
2821,
63,
77,
65,
273,
394,
2286,
12,
2211,
16,
3815,
529,
16,
2
] |
timezones0.put("America/Buenos_Aires", tz); timezones0.put("America/Catamarca", tz);
|
static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT", tz); timezones0.put("Pacific/Apia", tz); timezones0.put("Pacific/Midway", tz); timezones0.put("Pacific/Niue", tz); timezones0.put("Pacific/Pago_Pago", tz); tz = new SimpleTimeZone (-10000 * 3600, "America/Adak", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("America/Adak", tz); tz = new SimpleTimeZone(-10000 * 3600, "HST"); timezones0.put("HST", tz); timezones0.put("Pacific/Fakaofo", tz); timezones0.put("Pacific/Honolulu", tz); timezones0.put("Pacific/Johnston", tz); timezones0.put("Pacific/Rarotonga", tz); timezones0.put("Pacific/Tahiti", tz); tz = new SimpleTimeZone(-9500 * 3600, "Pacific/Marquesas"); timezones0.put("Pacific/Marquesas", tz); tz = new SimpleTimeZone (-9000 * 3600, "AST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("AST", tz); timezones0.put("America/Anchorage", tz); timezones0.put("America/Juneau", tz); timezones0.put("America/Nome", tz); timezones0.put("America/Yakutat", tz); tz = new SimpleTimeZone(-9000 * 3600, "Pacific/Gambier"); timezones0.put("Pacific/Gambier", tz); tz = new SimpleTimeZone (-8000 * 3600, "PST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("PST", tz); timezones0.put("PST8PDT", tz); timezones0.put("America/Dawson", tz); timezones0.put("America/Los_Angeles", tz); timezones0.put("America/Tijuana", tz); timezones0.put("America/Vancouver", tz); timezones0.put("America/Whitehorse", tz); timezones0.put("US/Pacific-New", tz); tz = new SimpleTimeZone(-8000 * 3600, "Pacific/Pitcairn"); timezones0.put("Pacific/Pitcairn", tz); tz = new SimpleTimeZone (-7000 * 3600, "MST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("MST", tz); timezones0.put("MST7MDT", tz); timezones0.put("America/Boise", tz); timezones0.put("America/Chihuahua", tz); timezones0.put("America/Denver", tz); timezones0.put("America/Edmonton", tz); timezones0.put("America/Inuvik", tz); timezones0.put("America/Mazatlan", tz); timezones0.put("America/Shiprock", tz); timezones0.put("America/Yellowknife", tz); tz = new SimpleTimeZone(-7000 * 3600, "MST7"); timezones0.put("MST7", tz); timezones0.put("PNT", tz); timezones0.put("America/Dawson_Creek", tz); timezones0.put("America/Hermosillo", tz); timezones0.put("America/Phoenix", tz); tz = new SimpleTimeZone (-6000 * 3600, "CST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("CST", tz); timezones0.put("CST6CDT", tz); timezones0.put("America/Cambridge_Bay", tz); timezones0.put("America/Cancun", tz); timezones0.put("America/Chicago", tz); timezones0.put("America/Menominee", tz); timezones0.put("America/Merida", tz); timezones0.put("America/Mexico_City", tz); timezones0.put("America/Monterrey", tz); timezones0.put("America/Rainy_River", tz); timezones0.put("America/Winnipeg", tz); tz = new SimpleTimeZone(-6000 * 3600, "America/Belize"); timezones0.put("America/Belize", tz); timezones0.put("America/Costa_Rica", tz); timezones0.put("America/El_Salvador", tz); timezones0.put("America/Guatemala", tz); timezones0.put("America/Managua", tz); timezones0.put("America/Regina", tz); timezones0.put("America/Swift_Current", tz); timezones0.put("America/Tegucigalpa", tz); timezones0.put("Pacific/Galapagos", tz); tz = new SimpleTimeZone (-6000 * 3600, "Pacific/Easter", Calendar.OCTOBER, 9, -Calendar.SUNDAY, 0 * 3600, Calendar.MARCH, 9, -Calendar.SUNDAY, 0 * 3600); timezones0.put("Pacific/Easter", tz); tz = new SimpleTimeZone (-5000 * 3600, "America/Grand_Turk", Calendar.APRIL, 1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Grand_Turk", tz); timezones0.put("America/Havana", tz); tz = new SimpleTimeZone(-5000 * 3600, "EST5"); timezones0.put("EST5", tz); timezones0.put("IET", tz); timezones0.put("America/Bogota", tz); timezones0.put("America/Cayman", tz); timezones0.put("America/Eirunepe", tz); timezones0.put("America/Guayaquil", tz); timezones0.put("America/Indiana/Indianapolis", tz); timezones0.put("America/Indiana/Knox", tz); timezones0.put("America/Indiana/Marengo", tz); timezones0.put("America/Indiana/Vevay", tz); timezones0.put("America/Indianapolis", tz); timezones0.put("America/Iqaluit", tz); timezones0.put("America/Jamaica", tz); timezones0.put("America/Lima", tz); timezones0.put("America/Panama", tz); timezones0.put("America/Pangnirtung", tz); timezones0.put("America/Port-au-Prince", tz); timezones0.put("America/Porto_Acre", tz); timezones0.put("America/Rankin_Inlet", tz); tz = new SimpleTimeZone (-5000 * 3600, "EST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("EST", tz); timezones0.put("EST5EDT", tz); timezones0.put("America/Detroit", tz); timezones0.put("America/Kentucky/Louisville", tz); timezones0.put("America/Kentucky/Monticello", tz); timezones0.put("America/Louisville", tz); timezones0.put("America/Montreal", tz); timezones0.put("America/Nassau", tz); timezones0.put("America/New_York", tz); timezones0.put("America/Nipigon", tz); timezones0.put("America/Thunder_Bay", tz); tz = new SimpleTimeZone(-4000 * 3600, "PRT"); timezones0.put("PRT", tz); timezones0.put("America/Anguilla", tz); timezones0.put("America/Antigua", tz); timezones0.put("America/Aruba", tz); timezones0.put("America/Barbados", tz); timezones0.put("America/Boa_Vista", tz); timezones0.put("America/Caracas", tz); timezones0.put("America/Curacao", tz); timezones0.put("America/Dominica", tz); timezones0.put("America/Grenada", tz); timezones0.put("America/Guadeloupe", tz); timezones0.put("America/Guyana", tz); timezones0.put("America/La_Paz", tz); timezones0.put("America/Manaus", tz); timezones0.put("America/Martinique", tz); timezones0.put("America/Montserrat", tz); timezones0.put("America/Port_of_Spain", tz); timezones0.put("America/Porto_Velho", tz); timezones0.put("America/Puerto_Rico", tz); timezones0.put("America/Santo_Domingo", tz); timezones0.put("America/St_Kitts", tz); timezones0.put("America/St_Lucia", tz); timezones0.put("America/St_Thomas", tz); timezones0.put("America/St_Vincent", tz); timezones0.put("America/Tortola", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Asuncion", Calendar.OCTOBER, 1, Calendar.SUNDAY, 0 * 3600, Calendar.FEBRUARY, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Asuncion", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Cuiaba", Calendar.OCTOBER, 2, Calendar.SUNDAY, 0 * 3600, Calendar.FEBRUARY, 3, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Cuiaba", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Goose_Bay", Calendar.APRIL, 1, Calendar.SUNDAY, 60000, Calendar.OCTOBER, -1, Calendar.SUNDAY, 60000); timezones0.put("America/Goose_Bay", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Glace_Bay", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("America/Glace_Bay", tz); timezones0.put("America/Halifax", tz); timezones0.put("America/Thule", tz); timezones0.put("Atlantic/Bermuda", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Santiago", Calendar.OCTOBER, 9, -Calendar.SUNDAY, 0 * 3600, Calendar.MARCH, 9, -Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Santiago", tz); timezones0.put("Antarctica/Palmer", tz); tz = new SimpleTimeZone (-4000 * 3600, "Atlantic/Stanley", Calendar.SEPTEMBER, 2, Calendar.SUNDAY, 0 * 3600, Calendar.APRIL, 16, -Calendar.SUNDAY, 0 * 3600); timezones0.put("Atlantic/Stanley", tz); tz = new SimpleTimeZone (-3500 * 3600, "CNT", Calendar.APRIL, 1, Calendar.SUNDAY, 60000, Calendar.OCTOBER, -1, Calendar.SUNDAY, 60000); timezones0.put("CNT", tz); timezones0.put("America/St_Johns", tz); tz = new SimpleTimeZone (-3000 * 3600, "America/Araguaina", Calendar.OCTOBER, 2, Calendar.SUNDAY, 0 * 3600, Calendar.FEBRUARY, 3, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Araguaina", tz); timezones0.put("America/Sao_Paulo", tz); tz = new SimpleTimeZone(-3000 * 3600, "AGT"); timezones0.put("AGT", tz); timezones0.put("America/Belem", tz); timezones0.put("America/Buenos_Aires", tz); timezones0.put("America/Catamarca", tz); timezones0.put("America/Cayenne", tz); timezones0.put("America/Cordoba", tz); timezones0.put("America/Fortaleza", tz); timezones0.put("America/Jujuy", tz); timezones0.put("America/Maceio", tz); timezones0.put("America/Mendoza", tz); timezones0.put("America/Montevideo", tz); timezones0.put("America/Paramaribo", tz); timezones0.put("America/Recife", tz); timezones0.put("America/Rosario", tz); tz = new SimpleTimeZone (-3000 * 3600, "America/Godthab", Calendar.MARCH, 30, -Calendar.SATURDAY, 22000 * 3600, Calendar.OCTOBER, 30, -Calendar.SATURDAY, 22000 * 3600); timezones0.put("America/Godthab", tz); tz = new SimpleTimeZone (-3000 * 3600, "America/Miquelon", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("America/Miquelon", tz); tz = new SimpleTimeZone(-2000 * 3600, "America/Noronha"); timezones0.put("America/Noronha", tz); timezones0.put("Atlantic/South_Georgia", tz); tz = new SimpleTimeZone (-1000 * 3600, "America/Scoresbysund", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Scoresbysund", tz); timezones0.put("Atlantic/Azores", tz); tz = new SimpleTimeZone(-1000 * 3600, "Atlantic/Cape_Verde"); timezones0.put("Atlantic/Cape_Verde", tz); timezones0.put("Atlantic/Jan_Mayen", tz); tz = new SimpleTimeZone(0 * 3600, "GMT"); timezones0.put("GMT", tz); timezones0.put("UTC", tz); timezones0.put("Africa/Abidjan", tz); timezones0.put("Africa/Accra", tz); timezones0.put("Africa/Bamako", tz); timezones0.put("Africa/Banjul", tz); timezones0.put("Africa/Bissau", tz); timezones0.put("Africa/Casablanca", tz); timezones0.put("Africa/Conakry", tz); timezones0.put("Africa/Dakar", tz); timezones0.put("Africa/El_Aaiun", tz); timezones0.put("Africa/Freetown", tz); timezones0.put("Africa/Lome", tz); timezones0.put("Africa/Monrovia", tz); timezones0.put("Africa/Nouakchott", tz); timezones0.put("Africa/Ouagadougou", tz); timezones0.put("Africa/Sao_Tome", tz); timezones0.put("Africa/Timbuktu", tz); timezones0.put("Atlantic/Reykjavik", tz); timezones0.put("Atlantic/St_Helena", tz); timezones0.put("Europe/Belfast", tz); timezones0.put("Europe/Dublin", tz); timezones0.put("Europe/London", tz); tz = new SimpleTimeZone (0 * 3600, "WET", Calendar.MARCH, -1, Calendar.SUNDAY, 1000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 1000 * 3600); timezones0.put("WET", tz); timezones0.put("Atlantic/Canary", tz); timezones0.put("Atlantic/Faeroe", tz); timezones0.put("Atlantic/Madeira", tz); timezones0.put("Europe/Lisbon", tz); tz = new SimpleTimeZone(1000 * 3600, "Africa/Algiers"); timezones0.put("Africa/Algiers", tz); timezones0.put("Africa/Bangui", tz); timezones0.put("Africa/Brazzaville", tz); timezones0.put("Africa/Douala", tz); timezones0.put("Africa/Kinshasa", tz); timezones0.put("Africa/Lagos", tz); timezones0.put("Africa/Libreville", tz); timezones0.put("Africa/Luanda", tz); timezones0.put("Africa/Malabo", tz); timezones0.put("Africa/Ndjamena", tz); timezones0.put("Africa/Niamey", tz); timezones0.put("Africa/Porto-Novo", tz); timezones0.put("Africa/Tunis", tz); tz = new SimpleTimeZone (1000 * 3600, "Africa/Windhoek", Calendar.SEPTEMBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Africa/Windhoek", tz); tz = new SimpleTimeZone (1000 * 3600, "CET", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("CET", tz); timezones0.put("CEST", tz); timezones0.put("ECT", tz); timezones0.put("MET", tz); timezones0.put("Africa/Ceuta", tz); timezones0.put("Arctic/Longyearbyen", tz); timezones0.put("Europe/Amsterdam", tz); timezones0.put("Europe/Andorra", tz); timezones0.put("Europe/Belgrade", tz); timezones0.put("Europe/Berlin", tz); timezones0.put("Europe/Bratislava", tz); timezones0.put("Europe/Brussels", tz); timezones0.put("Europe/Budapest", tz); timezones0.put("Europe/Copenhagen", tz); timezones0.put("Europe/Gibraltar", tz); timezones0.put("Europe/Ljubljana", tz); timezones0.put("Europe/Luxembourg", tz); timezones0.put("Europe/Madrid", tz); timezones0.put("Europe/Malta", tz); timezones0.put("Europe/Monaco", tz); timezones0.put("Europe/Oslo", tz); timezones0.put("Europe/Paris", tz); timezones0.put("Europe/Prague", tz); timezones0.put("Europe/Rome", tz); timezones0.put("Europe/San_Marino", tz); timezones0.put("Europe/Sarajevo", tz); timezones0.put("Europe/Skopje", tz); timezones0.put("Europe/Stockholm", tz); timezones0.put("Europe/Tirane", tz); timezones0.put("Europe/Vaduz", tz); timezones0.put("Europe/Vatican", tz); timezones0.put("Europe/Vienna", tz); timezones0.put("Europe/Warsaw", tz); timezones0.put("Europe/Zagreb", tz); timezones0.put("Europe/Zurich", tz); tz = new SimpleTimeZone (2000 * 3600, "ART", Calendar.APRIL, -1, Calendar.FRIDAY, 0 * 3600, Calendar.SEPTEMBER, -1, Calendar.THURSDAY, 23000 * 3600); timezones0.put("ART", tz); timezones0.put("Africa/Cairo", tz); tz = new SimpleTimeZone(2000 * 3600, "CAT"); timezones0.put("CAT", tz); timezones0.put("Africa/Blantyre", tz); timezones0.put("Africa/Bujumbura", tz); timezones0.put("Africa/Gaborone", tz); timezones0.put("Africa/Harare", tz); timezones0.put("Africa/Johannesburg", tz); timezones0.put("Africa/Kigali", tz); timezones0.put("Africa/Lubumbashi", tz); timezones0.put("Africa/Lusaka", tz); timezones0.put("Africa/Maputo", tz); timezones0.put("Africa/Maseru", tz); timezones0.put("Africa/Mbabane", tz); timezones0.put("Africa/Tripoli", tz); timezones0.put("Europe/Riga", tz); timezones0.put("Europe/Tallinn", tz); timezones0.put("Europe/Vilnius", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Amman", Calendar.MARCH, -1, Calendar.THURSDAY, 0 * 3600, Calendar.SEPTEMBER, -1, Calendar.THURSDAY, 0 * 3600); timezones0.put("Asia/Amman", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Beirut", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Beirut", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Damascus", Calendar.APRIL, 1, 0, 0 * 3600, Calendar.OCTOBER, 1, 0, 0 * 3600); timezones0.put("Asia/Damascus", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Gaza", Calendar.APRIL, 3, Calendar.FRIDAY, 0 * 3600, Calendar.OCTOBER, 3, Calendar.FRIDAY, 0 * 3600); timezones0.put("Asia/Gaza", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Jerusalem", Calendar.APRIL, 1, 0, 1000 * 3600, Calendar.OCTOBER, 1, 0, 1000 * 3600); timezones0.put("Asia/Jerusalem", tz); tz = new SimpleTimeZone (2000 * 3600, "EET", Calendar.MARCH, -1, Calendar.SUNDAY, 3000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 3000 * 3600); timezones0.put("EET", tz); timezones0.put("Asia/Istanbul", tz); timezones0.put("Asia/Nicosia", tz); timezones0.put("Europe/Athens", tz); timezones0.put("Europe/Bucharest", tz); timezones0.put("Europe/Chisinau", tz); timezones0.put("Europe/Helsinki", tz); timezones0.put("Europe/Istanbul", tz); timezones0.put("Europe/Kiev", tz); timezones0.put("Europe/Nicosia", tz); timezones0.put("Europe/Simferopol", tz); timezones0.put("Europe/Sofia", tz); timezones0.put("Europe/Uzhgorod", tz); timezones0.put("Europe/Zaporozhye", tz); tz = new SimpleTimeZone (2000 * 3600, "Europe/Kaliningrad", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Europe/Kaliningrad", tz); timezones0.put("Europe/Minsk", tz); tz = new SimpleTimeZone (3000 * 3600, "Asia/Baghdad", Calendar.APRIL, 1, 0, 3000 * 3600, Calendar.OCTOBER, 1, 0, 3000 * 3600); timezones0.put("Asia/Baghdad", tz); tz = new SimpleTimeZone (3000 * 3600, "Europe/Moscow", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Europe/Moscow", tz); timezones0.put("Europe/Tiraspol", tz); tz = new SimpleTimeZone(3000 * 3600, "EAT"); timezones0.put("EAT", tz); timezones0.put("Africa/Addis_Ababa", tz); timezones0.put("Africa/Asmera", tz); timezones0.put("Africa/Dar_es_Salaam", tz); timezones0.put("Africa/Djibouti", tz); timezones0.put("Africa/Kampala", tz); timezones0.put("Africa/Khartoum", tz); timezones0.put("Africa/Mogadishu", tz); timezones0.put("Africa/Nairobi", tz); timezones0.put("Antarctica/Syowa", tz); timezones0.put("Asia/Aden", tz); timezones0.put("Asia/Bahrain", tz); timezones0.put("Asia/Kuwait", tz); timezones0.put("Asia/Qatar", tz); timezones0.put("Asia/Riyadh", tz); timezones0.put("Indian/Antananarivo", tz); timezones0.put("Indian/Comoro", tz); timezones0.put("Indian/Mayotte", tz); tz = new SimpleTimeZone(3500 * 3600, "Asia/Tehran"); timezones0.put("Asia/Tehran", tz); tz = new SimpleTimeZone (4000 * 3600, "Asia/Baku", Calendar.MARCH, -1, Calendar.SUNDAY, 1000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 1000 * 3600); timezones0.put("Asia/Baku", tz); tz = new SimpleTimeZone (4000 * 3600, "Asia/Aqtau", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Aqtau", tz); timezones0.put("Asia/Tbilisi", tz); tz = new SimpleTimeZone (4000 * 3600, "Asia/Yerevan", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Yerevan", tz); timezones0.put("Europe/Samara", tz); tz = new SimpleTimeZone(4000 * 3600, "NET"); timezones0.put("NET", tz); timezones0.put("Asia/Dubai", tz); timezones0.put("Asia/Muscat", tz); timezones0.put("Indian/Mahe", tz); timezones0.put("Indian/Mauritius", tz); timezones0.put("Indian/Reunion", tz); tz = new SimpleTimeZone(4500 * 3600, "Asia/Kabul"); timezones0.put("Asia/Kabul", tz); tz = new SimpleTimeZone (5000 * 3600, "Asia/Aqtobe", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Aqtobe", tz); tz = new SimpleTimeZone (5000 * 3600, "Asia/Bishkek", Calendar.MARCH, -1, Calendar.SUNDAY, 2500 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2500 * 3600); timezones0.put("Asia/Bishkek", tz); tz = new SimpleTimeZone (5000 * 3600, "Asia/Yekaterinburg", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Yekaterinburg", tz); tz = new SimpleTimeZone(5000 * 3600, "PLT"); timezones0.put("PLT", tz); timezones0.put("Asia/Ashgabat", tz); timezones0.put("Asia/Dushanbe", tz); timezones0.put("Asia/Karachi", tz); timezones0.put("Asia/Samarkand", tz); timezones0.put("Asia/Tashkent", tz); timezones0.put("Indian/Chagos", tz); timezones0.put("Indian/Kerguelen", tz); timezones0.put("Indian/Maldives", tz); tz = new SimpleTimeZone(5500 * 3600, "IST"); timezones0.put("IST", tz); timezones0.put("Asia/Calcutta", tz); tz = new SimpleTimeZone(5750 * 3600, "Asia/Katmandu"); timezones0.put("Asia/Katmandu", tz); tz = new SimpleTimeZone(6000 * 3600, "BST"); timezones0.put("BST", tz); timezones0.put("Antarctica/Mawson", tz); timezones0.put("Asia/Colombo", tz); timezones0.put("Asia/Dhaka", tz); timezones0.put("Asia/Thimphu", tz); tz = new SimpleTimeZone (6000 * 3600, "Asia/Almaty", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Almaty", tz); tz = new SimpleTimeZone (6000 * 3600, "Asia/Novosibirsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Novosibirsk", tz); timezones0.put("Asia/Omsk", tz); tz = new SimpleTimeZone(6500 * 3600, "Asia/Rangoon"); timezones0.put("Asia/Rangoon", tz); timezones0.put("Indian/Cocos", tz); tz = new SimpleTimeZone(7000 * 3600, "VST"); timezones0.put("VST", tz); timezones0.put("Antarctica/Davis", tz); timezones0.put("Asia/Bangkok", tz); timezones0.put("Asia/Hovd", tz); timezones0.put("Asia/Jakarta", tz); timezones0.put("Asia/Phnom_Penh", tz); timezones0.put("Asia/Saigon", tz); timezones0.put("Asia/Vientiane", tz); timezones0.put("Indian/Christmas", tz); tz = new SimpleTimeZone (7000 * 3600, "Asia/Krasnoyarsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Krasnoyarsk", tz); tz = new SimpleTimeZone(8000 * 3600, "CTT"); timezones0.put("CTT", tz); timezones0.put("Antarctica/Casey", tz); timezones0.put("Asia/Brunei", tz); timezones0.put("Asia/Chungking", tz); timezones0.put("Asia/Harbin", tz); timezones0.put("Asia/Hong_Kong", tz); timezones0.put("Asia/Kashgar", tz); timezones0.put("Asia/Kuala_Lumpur", tz); timezones0.put("Asia/Kuching", tz); timezones0.put("Asia/Macao", tz); timezones0.put("Asia/Manila", tz); timezones0.put("Asia/Shanghai", tz); timezones0.put("Asia/Singapore", tz); timezones0.put("Asia/Taipei", tz); timezones0.put("Asia/Ujung_Pandang", tz); timezones0.put("Asia/Ulaanbaatar", tz); timezones0.put("Asia/Urumqi", tz); timezones0.put("Australia/Perth", tz); tz = new SimpleTimeZone (8000 * 3600, "Asia/Irkutsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Irkutsk", tz); tz = new SimpleTimeZone(9000 * 3600, "JST"); timezones0.put("JST", tz); timezones0.put("Asia/Dili", tz); timezones0.put("Asia/Jayapura", tz); timezones0.put("Asia/Pyongyang", tz); timezones0.put("Asia/Seoul", tz); timezones0.put("Asia/Tokyo", tz); timezones0.put("Pacific/Palau", tz); tz = new SimpleTimeZone (9000 * 3600, "Asia/Yakutsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Yakutsk", tz); tz = new SimpleTimeZone (9500 * 3600, "Australia/Adelaide", Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Australia/Adelaide", tz); timezones0.put("Australia/Broken_Hill", tz); tz = new SimpleTimeZone(9500 * 3600, "ACT"); timezones0.put("ACT", tz); timezones0.put("Australia/Darwin", tz); tz = new SimpleTimeZone(10000 * 3600, "Antarctica/DumontDUrville"); timezones0.put("Antarctica/DumontDUrville", tz); timezones0.put("Australia/Brisbane", tz); timezones0.put("Australia/Lindeman", tz); timezones0.put("Pacific/Guam", tz); timezones0.put("Pacific/Port_Moresby", tz); timezones0.put("Pacific/Saipan", tz); timezones0.put("Pacific/Truk", tz); timezones0.put("Pacific/Yap", tz); tz = new SimpleTimeZone (10000 * 3600, "Asia/Vladivostok", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Vladivostok", tz); tz = new SimpleTimeZone (10000 * 3600, "Australia/Hobart", Calendar.OCTOBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Australia/Hobart", tz); tz = new SimpleTimeZone (10000 * 3600, "AET", Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("AET", tz); timezones0.put("Australia/Melbourne", tz); timezones0.put("Australia/Sydney", tz); tz = new SimpleTimeZone (10500 * 3600, "Australia/Lord_Howe", Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, 500 * 3600); timezones0.put("Australia/Lord_Howe", tz); tz = new SimpleTimeZone (11000 * 3600, "Asia/Magadan", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Magadan", tz); tz = new SimpleTimeZone(11000 * 3600, "SST"); timezones0.put("SST", tz); timezones0.put("Pacific/Efate", tz); timezones0.put("Pacific/Guadalcanal", tz); timezones0.put("Pacific/Kosrae", tz); timezones0.put("Pacific/Noumea", tz); timezones0.put("Pacific/Ponape", tz); tz = new SimpleTimeZone(11500 * 3600, "Pacific/Norfolk"); timezones0.put("Pacific/Norfolk", tz); tz = new SimpleTimeZone (12000 * 3600, "NST", Calendar.OCTOBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, 3, Calendar.SUNDAY, 2000 * 3600); timezones0.put("NST", tz); timezones0.put("Antarctica/McMurdo", tz); timezones0.put("Antarctica/South_Pole", tz); timezones0.put("Pacific/Auckland", tz); tz = new SimpleTimeZone (12000 * 3600, "Asia/Anadyr", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Anadyr", tz); timezones0.put("Asia/Kamchatka", tz); tz = new SimpleTimeZone(12000 * 3600, "Pacific/Fiji"); timezones0.put("Pacific/Fiji", tz); timezones0.put("Pacific/Funafuti", tz); timezones0.put("Pacific/Kwajalein", tz); timezones0.put("Pacific/Majuro", tz); timezones0.put("Pacific/Nauru", tz); timezones0.put("Pacific/Tarawa", tz); timezones0.put("Pacific/Wake", tz); timezones0.put("Pacific/Wallis", tz); tz = new SimpleTimeZone (12750 * 3600, "Pacific/Chatham", Calendar.OCTOBER, 1, Calendar.SUNDAY, 2750 * 3600, Calendar.MARCH, 3, Calendar.SUNDAY, 2750 * 3600); timezones0.put("Pacific/Chatham", tz); tz = new SimpleTimeZone(13000 * 3600, "Pacific/Enderbury"); timezones0.put("Pacific/Enderbury", tz); timezones0.put("Pacific/Tongatapu", tz); tz = new SimpleTimeZone(14000 * 3600, "Pacific/Kiritimati"); timezones0.put("Pacific/Kiritimati", tz); } return timezones0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/TimeZone.java/clean/core/src/classpath/java/java/util/TimeZone.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
3852,
4317,
25954,
1435,
225,
288,
565,
309,
261,
957,
14203,
20,
422,
446,
13,
4202,
288,
202,
8658,
25954,
273,
394,
4317,
5621,
202,
957,
14203,
20,
273,
25954,
31,
202,
202,
16760,
6016,
31,
202,
202,
759,
11809,
20271,
4374,
635,
8873,
19,
957,
14203,
18,
412,
202,
202,
759,
11329,
300,
9363,
732,
855,
333,
501,
628,
279,
585,
35,
202,
202,
12994,
273,
394,
4477,
16760,
19236,
2499,
3784,
380,
12396,
16,
315,
6068,
8863,
202,
957,
14203,
20,
18,
458,
2932,
6068,
3113,
6016,
1769,
202,
957,
14203,
20,
18,
458,
2932,
52,
1077,
1507,
19,
1294,
1155,
3113,
6016,
1769,
202,
957,
14203,
20,
18,
458,
2932,
52,
1077,
1507,
19,
20711,
1888,
3113,
6016,
1769,
202,
957,
14203,
20,
18,
458,
2932,
52,
1077,
1507,
19,
50,
77,
344,
3113,
6016,
1769,
202,
957,
14203,
20,
18,
458,
2932,
52,
1077,
1507,
19,
10156,
83,
67,
10156,
83,
3113,
6016,
1769,
202,
12994,
273,
394,
4477,
16760,
202,
225,
24927,
23899,
380,
12396,
16,
315,
26393,
19,
1871,
581,
3113,
202,
282,
5542,
18,
2203,
2259,
48,
16,
404,
16,
5542,
18,
55,
5240,
5255,
16,
16291,
380,
12396,
16,
202,
282,
5542,
18,
51,
1268,
5704,
654,
16,
300,
21,
16,
5542,
18,
55,
5240,
5255,
16,
16291,
380,
12396,
1769,
202,
957,
14203,
20,
18,
458,
2932,
26393,
19,
1871,
581,
3113,
6016,
1769,
202,
202,
12994,
273,
394,
4477,
16760,
19236,
23899,
380,
12396,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
3852,
4317,
25954,
1435,
225,
288,
565,
309,
261,
957,
14203,
20,
422,
446,
13,
4202,
288,
202,
8658,
25954,
273,
394,
4317,
5621,
202,
957,
14203,
20,
273,
25954,
31,
202,
202,
16760,
6016,
31,
202,
202,
759,
11809,
20271,
4374,
635,
8873,
19,
957,
14203,
18,
412,
202,
202,
759,
11329,
300,
9363,
732,
855,
333,
501,
628,
279,
585,
35,
202,
202,
12994,
273,
394,
4477,
16760,
19236,
2499,
3784,
380,
12396,
16,
315,
6068,
8863,
202,
957,
14203,
20,
18,
458,
2932,
6068,
3113,
6016,
1769,
202,
957,
14203,
20,
18,
458,
2932,
52,
1077,
1507,
19,
1294,
1155,
3113,
6016,
1769,
202,
957,
14203,
20,
18,
458,
2932,
52,
1077,
1507,
19,
2
] |
|
if (monitor.isCanceled()) throw new OperationCanceledException();
|
} if (monitor.isCanceled()) { throw new OperationCanceledException(); }
|
private IFolder createNewFolder(String folderName, final String linkTargetName) { final IFolder folderHandle = createFolderHandle(folderName); WorkspaceModifyOperation operation = new WorkspaceModifyOperation() { public void execute(IProgressMonitor monitor) throws CoreException { try { monitor.beginTask(IDEWorkbenchMessages.NewFolderDialog_progress, 2000); if (monitor.isCanceled()) throw new OperationCanceledException(); if (linkTargetName == null) folderHandle.create(false, true, monitor); else folderHandle.createLink(new Path(linkTargetName), IResource.ALLOW_MISSING_LOCAL, monitor); if (monitor.isCanceled()) throw new OperationCanceledException(); } finally { monitor.done(); } } }; try { new ProgressMonitorJobsDialog(getShell()) .run(true, true, operation); } catch (InterruptedException exception) { return null; } catch (InvocationTargetException exception) { if (exception.getTargetException() instanceof CoreException) { ErrorDialog.openError(getShell(), IDEWorkbenchMessages.NewFolderDialog_errorTitle, null, // no special message ((CoreException) exception.getTargetException()) .getStatus()); } else { // CoreExceptions are handled above, but unexpected runtime exceptions and errors may still occur. IDEWorkbenchPlugin.log(getClass(), "createNewFolder", exception.getTargetException()); //$NON-NLS-1$ MessageDialog.openError(getShell(), IDEWorkbenchMessages.NewFolderDialog_errorTitle, NLS.bind(IDEWorkbenchMessages.NewFolderDialog_internalError, exception.getTargetException().getMessage())); } return null; } return folderHandle; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/NewFolderDialog.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/NewFolderDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
3899,
15291,
3899,
12,
780,
31814,
16,
5411,
727,
514,
1692,
2326,
461,
13,
288,
3639,
727,
467,
3899,
3009,
3259,
273,
752,
3899,
3259,
12,
5609,
461,
1769,
3639,
14396,
11047,
2988,
1674,
273,
394,
14396,
11047,
2988,
1435,
288,
5411,
1071,
918,
1836,
12,
45,
5491,
7187,
6438,
13,
1216,
30015,
288,
7734,
775,
288,
10792,
6438,
18,
10086,
2174,
12,
10385,
2421,
22144,
5058,
18,
1908,
3899,
6353,
67,
8298,
16,
16291,
1769,
10792,
309,
261,
10259,
18,
291,
23163,
10756,
13491,
604,
394,
4189,
23163,
503,
5621,
10792,
309,
261,
1232,
2326,
461,
422,
446,
13,
13491,
3009,
3259,
18,
2640,
12,
5743,
16,
638,
16,
6438,
1769,
10792,
469,
13491,
3009,
3259,
18,
2640,
2098,
12,
2704,
2666,
12,
1232,
2326,
461,
3631,
27573,
467,
1420,
18,
13511,
67,
19466,
67,
14922,
16,
6438,
1769,
10792,
309,
261,
10259,
18,
291,
23163,
10756,
13491,
604,
394,
4189,
23163,
503,
5621,
7734,
289,
3095,
288,
10792,
6438,
18,
8734,
5621,
7734,
289,
5411,
289,
3639,
289,
31,
3639,
775,
288,
5411,
394,
10980,
7187,
7276,
6353,
12,
588,
13220,
10756,
10792,
263,
2681,
12,
3767,
16,
638,
16,
1674,
1769,
3639,
289,
1044,
261,
24485,
503,
1520,
13,
288,
5411,
327,
446,
31,
3639,
289,
1044,
261,
9267,
14950,
1520,
13,
288,
5411,
309,
261,
4064,
18,
588,
14950,
1435,
1276,
30015,
13,
288,
7734,
1068,
6353,
18,
3190,
668,
12,
588,
13220,
9334,
1599,
41,
2421,
22144,
5058,
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,
467,
3899,
15291,
3899,
12,
780,
31814,
16,
5411,
727,
514,
1692,
2326,
461,
13,
288,
3639,
727,
467,
3899,
3009,
3259,
273,
752,
3899,
3259,
12,
5609,
461,
1769,
3639,
14396,
11047,
2988,
1674,
273,
394,
14396,
11047,
2988,
1435,
288,
5411,
1071,
918,
1836,
12,
45,
5491,
7187,
6438,
13,
1216,
30015,
288,
7734,
775,
288,
10792,
6438,
18,
10086,
2174,
12,
10385,
2421,
22144,
5058,
18,
1908,
3899,
6353,
67,
8298,
16,
16291,
1769,
10792,
309,
261,
10259,
18,
291,
23163,
10756,
13491,
604,
394,
4189,
23163,
503,
5621,
10792,
309,
261,
1232,
2326,
461,
422,
446,
13,
13491,
3009,
3259,
18,
2640,
12,
5743,
16,
638,
16,
6438,
1769,
10792,
469,
13491,
3009,
2
] |
public final void testVerifybyteArray02() throws Exception {
|
public final void testVerifybyteArray02() throws Exception {
|
public final void testVerifybyteArray02() throws Exception { byte sig1[]; byte sig2[]; for (int i = 0; i < signingSigns.length; i++) { signingSigns[i].update(bytes1); verifyingSign.update(bytes1); sig1 = signingSigns[i].sign(); assertTrue("case 1: test failure : i=" + i, verifyingSign.verify(sig1) ); signingSigns[i].update(bytes1); signingSigns[i].update(bytes2); verifyingSign.update(bytes1); verifyingSign.update(bytes2); sig2 = signingSigns[i].sign(); assertTrue("case 2: test failure : i=" + i, verifyingSign.verify(sig2) ); verifyingSign.update(bytes1); verifyingSign.update(bytes2); assertFalse("case 3: test failure : i=" + i, verifyingSign.verify(sig1) ); } }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/3a090ca0d55d2e7ad79b0a1d71e7cd89ede94b7a/SHA1withDSA_SignatureTest.java/buggy/modules/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/SHA1withDSA_SignatureTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
1842,
8097,
7229,
1076,
3103,
1435,
1216,
1185,
288,
540,
1160,
3553,
21,
8526,
31,
3639,
1160,
3553,
22,
8526,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
10611,
2766,
87,
18,
2469,
31,
277,
27245,
288,
7734,
10611,
2766,
87,
63,
77,
8009,
2725,
12,
3890,
21,
1769,
7734,
3929,
310,
2766,
18,
2725,
12,
3890,
21,
1769,
7734,
3553,
21,
273,
10611,
2766,
87,
63,
77,
8009,
2977,
5621,
7734,
1815,
5510,
2932,
3593,
404,
30,
1842,
5166,
294,
277,
1546,
397,
277,
16,
3929,
310,
2766,
18,
8705,
12,
7340,
21,
13,
11272,
7734,
10611,
2766,
87,
63,
77,
8009,
2725,
12,
3890,
21,
1769,
7734,
10611,
2766,
87,
63,
77,
8009,
2725,
12,
3890,
22,
1769,
7734,
3929,
310,
2766,
18,
2725,
12,
3890,
21,
1769,
7734,
3929,
310,
2766,
18,
2725,
12,
3890,
22,
1769,
7734,
3553,
22,
273,
10611,
2766,
87,
63,
77,
8009,
2977,
5621,
7734,
1815,
5510,
2932,
3593,
576,
30,
1842,
5166,
294,
277,
1546,
397,
277,
16,
3929,
310,
2766,
18,
8705,
12,
7340,
22,
13,
11272,
7734,
3929,
310,
2766,
18,
2725,
12,
3890,
21,
1769,
7734,
3929,
310,
2766,
18,
2725,
12,
3890,
22,
1769,
7734,
1815,
8381,
2932,
3593,
890,
30,
1842,
5166,
294,
277,
1546,
397,
277,
16,
3929,
310,
2766,
18,
8705,
12,
7340,
21,
13,
11272,
3639,
289,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
1842,
8097,
7229,
1076,
3103,
1435,
1216,
1185,
288,
540,
1160,
3553,
21,
8526,
31,
3639,
1160,
3553,
22,
8526,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
10611,
2766,
87,
18,
2469,
31,
277,
27245,
288,
7734,
10611,
2766,
87,
63,
77,
8009,
2725,
12,
3890,
21,
1769,
7734,
3929,
310,
2766,
18,
2725,
12,
3890,
21,
1769,
7734,
3553,
21,
273,
10611,
2766,
87,
63,
77,
8009,
2977,
5621,
7734,
1815,
5510,
2932,
3593,
404,
30,
1842,
5166,
294,
277,
1546,
397,
277,
16,
3929,
310,
2766,
18,
8705,
12,
7340,
21,
13,
11272,
7734,
10611,
2766,
87,
63,
77,
8009,
2725,
12,
3890,
21,
1769,
7734,
10611,
2766,
87,
2
] |
if(current == null) { if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; return dr; }
|
if (current == null) { if (!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; return dr; }
|
protected Ext2DirectoryRecord nextDirectoryRecord() { if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; return dr; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
6419,
22,
2853,
2115,
1024,
2853,
2115,
1435,
288,
1082,
202,
430,
12,
2972,
422,
446,
13,
288,
9506,
202,
759,
5332,
2134,
6013,
6838,
326,
1024,
930,
9506,
202,
430,
12,
5,
5332,
2134,
10756,
6862,
202,
12849,
394,
23104,
5621,
1082,
202,
97,
25083,
202,
2482,
22,
2853,
2115,
5081,
273,
783,
31,
1082,
202,
2972,
273,
446,
31,
1082,
202,
2463,
5081,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
6419,
22,
2853,
2115,
1024,
2853,
2115,
1435,
288,
1082,
202,
430,
12,
2972,
422,
446,
13,
288,
9506,
202,
759,
5332,
2134,
6013,
6838,
326,
1024,
930,
9506,
202,
430,
12,
5,
5332,
2134,
10756,
6862,
202,
12849,
394,
23104,
5621,
1082,
202,
97,
25083,
202,
2482,
22,
2853,
2115,
5081,
273,
783,
31,
1082,
202,
2972,
273,
446,
31,
1082,
202,
2463,
5081,
31,
202,
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
] |
DataSetID dsID = new DataSetID( null, 0, "query" );
|
DataSetID parent = new DataSetID( "parent" ); DataSetID dsID = new DataSetID( parent, 0, "query" );
|
public void testGetQueryName( ) { DataSetID dsID = new DataSetID( null, 0, "query" ); assertEquals( "query", dsID.getQueryName( ) ); dsID = new DataSetID( null, 0, "ѯ" ); assertEquals( "ѯ", dsID.getQueryName( ) ); dsID = new DataSetID( null, 0, "~!@#$%^&*()_+?>:" ); assertEquals( "~!@#$%^&*()_+?>:", dsID.getQueryName( ) ); dsID = new DataSetID( null, 0, "~!@#$%^&*()_+?>:" ); assertEquals( "~!@#$%^&*()_+?>:", dsID.getQueryName( ) ); dsID = new DataSetID( null, 0, null ); assertNull( dsID.getQueryName( ) ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/8acf1f98c3278d6ede49a427008512a9b2d6a480/DataSetIDTest.java/clean/testsuites/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/api/DataSetIDTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
1138,
461,
12,
262,
202,
95,
202,
202,
13676,
734,
3780,
734,
273,
394,
14065,
734,
12,
446,
16,
374,
16,
315,
2271,
6,
11272,
202,
202,
11231,
8867,
12,
315,
2271,
3113,
3780,
734,
18,
588,
1138,
461,
12,
262,
11272,
202,
202,
2377,
734,
273,
394,
14065,
734,
12,
446,
16,
374,
16,
315,
146,
112,
6,
11272,
202,
202,
11231,
8867,
12,
315,
146,
112,
3113,
3780,
734,
18,
588,
1138,
461,
12,
262,
11272,
202,
202,
2377,
734,
273,
394,
14065,
734,
12,
446,
16,
374,
16,
19910,
5,
36,
30497,
9,
66,
10,
14,
1435,
67,
15,
35,
34,
2773,
11272,
202,
202,
11231,
8867,
12,
19910,
5,
36,
30497,
9,
66,
10,
14,
1435,
67,
15,
35,
34,
2773,
16,
3780,
734,
18,
588,
1138,
461,
12,
262,
11272,
202,
202,
2377,
734,
273,
394,
14065,
734,
12,
446,
16,
374,
16,
19910,
5,
36,
30497,
9,
66,
10,
14,
1435,
67,
15,
35,
34,
2773,
11272,
202,
202,
11231,
8867,
12,
19910,
5,
36,
30497,
9,
66,
10,
14,
1435,
67,
15,
35,
34,
2773,
16,
3780,
734,
18,
588,
1138,
461,
12,
262,
11272,
202,
202,
2377,
734,
273,
394,
14065,
734,
12,
446,
16,
374,
16,
446,
11272,
202,
202,
11231,
2041,
12,
3780,
734,
18,
588,
1138,
461,
12,
262,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
967,
1138,
461,
12,
262,
202,
95,
202,
202,
13676,
734,
3780,
734,
273,
394,
14065,
734,
12,
446,
16,
374,
16,
315,
2271,
6,
11272,
202,
202,
11231,
8867,
12,
315,
2271,
3113,
3780,
734,
18,
588,
1138,
461,
12,
262,
11272,
202,
202,
2377,
734,
273,
394,
14065,
734,
12,
446,
16,
374,
16,
315,
146,
112,
6,
11272,
202,
202,
11231,
8867,
12,
315,
146,
112,
3113,
3780,
734,
18,
588,
1138,
461,
12,
262,
11272,
202,
202,
2377,
734,
273,
394,
14065,
734,
12,
446,
16,
374,
16,
19910,
5,
36,
30497,
9,
66,
10,
14,
1435,
67,
15,
35,
34,
2773,
11272,
202,
202,
11231,
8867,
12,
19910,
5,
2
] |
if (windowImages == null && product != null) windowImages = ProductProperties.getWindowImages(product);
|
if (windowImages == null && product != null) { windowImages = ProductProperties.getWindowImages(product); }
|
public ImageDescriptor[] getWindowImages() { if (windowImages == null && product != null) windowImages = ProductProperties.getWindowImages(product); return windowImages; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ProductInfo.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ProductInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3421,
3187,
8526,
26156,
8946,
1435,
288,
3639,
309,
261,
5668,
8946,
422,
446,
597,
3017,
480,
446,
13,
5411,
2742,
8946,
273,
8094,
2297,
18,
588,
3829,
8946,
12,
5896,
1769,
3639,
327,
2742,
8946,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3421,
3187,
8526,
26156,
8946,
1435,
288,
3639,
309,
261,
5668,
8946,
422,
446,
597,
3017,
480,
446,
13,
5411,
2742,
8946,
273,
8094,
2297,
18,
588,
3829,
8946,
12,
5896,
1769,
3639,
327,
2742,
8946,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return myStateToReturn;
|
return myState;
|
public int getState() { return myStateToReturn; }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/b97c9e5e3fabd064b57a5435af4a5ca38452ebd4/LayeredLexer.java/clean/openapi/src/com/intellij/lexer/LayeredLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
8997,
1435,
288,
565,
327,
3399,
1119,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
8997,
1435,
288,
565,
327,
3399,
1119,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
engine.say("Thank you very much! Do you have any other weapon for me?");
|
engine.say("Thank you very much! Do you have anything else for me?");
|
private void step_1() { SpeakerNPC npc = npcs.get("Balduin"); // player says hi before starting the quest npc.add(ConversationStates.IDLE, SpeakerNPC.GREETING_MESSAGES, new SpeakerNPC.ChatCondition() { @Override public boolean fire(Player player, SpeakerNPC engine) { return !player.hasQuest("weapons_collector"); } }, ConversationStates.ATTENDING, "Greetings. I am Balduin. Are you interested in weapons? I certainly am, I have been collecting them since I was young. Maybe you can do a #task for me.", null); npc.add(ConversationStates.ATTENDING, SpeakerNPC.QUEST_MESSAGES, new SpeakerNPC.ChatCondition() { @Override public boolean fire(Player player, SpeakerNPC engine) { return !player.hasQuest("weapons_collector"); } }, ConversationStates.QUEST_OFFERED, null, new SpeakerNPC.ChatAction() { @Override public void fire(Player player, String text, SpeakerNPC engine) { if (!player.isQuestCompleted("weapons_collector")) { engine.say("Although I have collected weapons for such a long time, some are still missing in my collection. Do you think you can help me?"); } else { engine.say("My collection is now complete. Thanks again."); engine.setCurrentState(ConversationStates.ATTENDING); } } }); // player is willing to help npc.add(ConversationStates.QUEST_OFFERED, SpeakerNPC.YES_MESSAGES, null, ConversationStates.ATTENDING, null, new SpeakerNPC.ChatAction() { @Override public void fire(Player player, String text, SpeakerNPC engine) { engine.say("If you help me to complete my #collection, I will give you something nice in exchange."); player.setQuest("weapons_collector", ""); } }); // player is not willing to help npc.add(ConversationStates.QUEST_OFFERED, "no", null, ConversationStates.ATTENDING, "Too bad. You were my last hope to complete my collection.", null ); // player asks what exactly is missing npc.add(ConversationStates.ATTENDING, "collection", new SpeakerNPC.ChatCondition() { @Override public boolean fire(Player player, SpeakerNPC engine) { return player.hasQuest("weapons_collector") && !player.isQuestCompleted("weapons_collector"); } }, ConversationStates.QUESTION_1, null, new SpeakerNPC.ChatAction() { @Override public void fire(Player player, String text, SpeakerNPC engine) { List<String> needed = missingWeapons(player, true); engine.say("There are " + needed.size() + " weapons which are still missing in my collection: " + SpeakerNPC.enumerateCollection(needed) + ". Do you have any of them with you?"); } }); // player says he doesn't have required weapons with him npc.add(ConversationStates.QUESTION_1, "no", null, ConversationStates.IDLE, "Come back when you find them. Farewell.", null); // player says he has a required weapon with him npc.add(ConversationStates.QUESTION_1, SpeakerNPC.YES_MESSAGES, null, ConversationStates.QUESTION_1, "Which one?", null); for (String weapon: neededWeapons) { npc.add(ConversationStates.QUESTION_1, weapon, null, ConversationStates.QUESTION_1, null, new SpeakerNPC.ChatAction() { @Override public void fire(Player player, String text, SpeakerNPC engine) { List<String> missing = missingWeapons(player, false); if (missing.contains(text)) { if (player.drop(text)) { // register weapon as done String doneText = player.getQuest("weapons_collector"); player.setQuest("weapons_collector", doneText + ";" + text); // check if the player has brought all weapons missing = missingWeapons(player, true); if (missing.size() > 0) { engine.say("Thank you very much! Do you have any other weapon for me?"); } else { Item iceSword = StendhalRPWorld.get().getRuleManager().getEntityManager().getItem("ice_sword"); player.equip(iceSword, true); player.addXP(1000); engine.say("Yippie! My collection is complete! Thank you very much! Here, take this ice_sword in exchange!"); player.setQuest("weapons_collector", "done"); player.notifyWorldAboutChanges(); } } else { engine.say("I may be old, but I'm not senile! You don't have a " + text + "! What weapon do you really have for me?"); } } else { engine.say("I already have that one. Do you have any other weapon for me?"); } } }); } }
|
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/81b0f3d72482d33d1d9eab93ed20ed2ba6e4476c/WeaponsCollector.java/buggy/src/games/stendhal/server/maps/quests/WeaponsCollector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2235,
67,
21,
1435,
288,
202,
202,
55,
347,
6388,
50,
3513,
1130,
71,
273,
1130,
2143,
18,
588,
2932,
38,
287,
2544,
267,
8863,
9506,
202,
759,
7291,
20185,
10118,
1865,
5023,
326,
225,
456,
202,
202,
82,
2436,
18,
1289,
12,
15717,
7629,
18,
734,
900,
16,
9506,
202,
55,
347,
6388,
50,
3513,
18,
43,
862,
1584,
1360,
67,
26195,
16,
9506,
202,
2704,
348,
347,
6388,
50,
3513,
18,
14163,
3418,
1435,
288,
6862,
202,
36,
6618,
6862,
202,
482,
1250,
4452,
12,
12148,
7291,
16,
348,
347,
6388,
50,
3513,
4073,
13,
288,
25083,
202,
2463,
401,
14872,
18,
5332,
30791,
2932,
1814,
438,
7008,
67,
21356,
8863,
6862,
202,
97,
9506,
202,
5779,
9506,
202,
15717,
7629,
18,
789,
56,
12280,
16,
9506,
202,
6,
43,
9015,
899,
18,
467,
2125,
605,
287,
2544,
267,
18,
12520,
1846,
20506,
316,
732,
438,
7008,
35,
467,
8626,
715,
2125,
16,
467,
1240,
2118,
30160,
2182,
3241,
467,
1703,
677,
465,
75,
18,
14024,
1846,
848,
741,
279,
468,
4146,
364,
1791,
1199,
16,
9506,
202,
2011,
1769,
202,
202,
82,
2436,
18,
1289,
12,
15717,
7629,
18,
789,
56,
12280,
16,
9506,
202,
55,
347,
6388,
50,
3513,
18,
4740,
67,
26195,
16,
9506,
202,
2704,
348,
347,
6388,
50,
3513,
18,
14163,
3418,
1435,
288,
6862,
202,
36,
6618,
6862,
202,
482,
1250,
4452,
12,
12148,
7291,
16,
348,
347,
6388,
50,
3513,
4073,
13,
288,
25083,
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,
2235,
67,
21,
1435,
288,
202,
202,
55,
347,
6388,
50,
3513,
1130,
71,
273,
1130,
2143,
18,
588,
2932,
38,
287,
2544,
267,
8863,
9506,
202,
759,
7291,
20185,
10118,
1865,
5023,
326,
225,
456,
202,
202,
82,
2436,
18,
1289,
12,
15717,
7629,
18,
734,
900,
16,
9506,
202,
55,
347,
6388,
50,
3513,
18,
43,
862,
1584,
1360,
67,
26195,
16,
9506,
202,
2704,
348,
347,
6388,
50,
3513,
18,
14163,
3418,
1435,
288,
6862,
202,
36,
6618,
6862,
202,
482,
1250,
4452,
12,
12148,
7291,
16,
348,
347,
6388,
50,
3513,
4073,
13,
288,
25083,
202,
2463,
401,
14872,
18,
5332,
30791,
2932,
1814,
438,
7008,
67,
21356,
8863,
6862,
202,
2
] |
public void testSynchronizeSeveralFolders() throws Exception { // save what gets synchronized CmsSynchronizeSettings syncSettings = new CmsSynchronizeSettings(); String dest = getTestDataPath("") + "sync2" + File.separator; File destFolder = new File(dest); if (! destFolder.exists()) { destFolder.mkdirs(); } syncSettings.setDestinationPathInRfs(dest); ArrayList sourceList = new ArrayList(); sourceList.add("/folder1/subfolder11/"); sourceList.add("/folder1/subfolder12/"); sourceList.add("/folder2/subfolder21/"); syncSettings.setSourceListInVfs(sourceList); syncSettings.setEnabled(true); try { CmsObject cms = getCmsObject(); echo("Testing synchronization of several folders"); storeResources(cms, "/"); // synchronize everything to the RFS new CmsSynchronize(cms, syncSettings, new CmsShellReport()); Iterator it = syncSettings.getSourceListInVfs().iterator(); List tree = new ArrayList(); // modify resources in the RFS while (it.hasNext()) { String source = (String)it.next(); List subTree = getSubtree(cms, source); tree.addAll(subTree); for (int i = 0, n = subTree.size(); i < n; i++) { CmsResource resource = (CmsResource)subTree.get(i); int type = resource.getTypeId(); if (((type == CmsResourceTypePlain.getStaticTypeId())) || (type == CmsResourceTypeJsp.getStaticTypeId()) || (type == CmsResourceTypeXmlPage.getStaticTypeId())) { // modify date last modified on resource touchResourceInRfs(cms, resource, syncSettings); } } } // sleep 2 seconds to avoid issues with file system timing Thread.sleep(2000); // synchronize everything back to the VFS new CmsSynchronize(cms, syncSettings, new CmsShellReport()); // assert if the synchronization worked fine for (int i = 0, n = tree.size(); i < n; i++) { CmsResource vfsResource = (CmsResource)tree.get(i); int type = vfsResource.getTypeId(); String vfsname = cms.getSitePath(vfsResource); System.out.println("( " + i + " / " + (n-1) + " ) Checking " + vfsname); if (((type == CmsResourceTypePlain.getStaticTypeId())) || (type == CmsResourceTypeJsp.getStaticTypeId()) || (type == CmsResourceTypeXmlPage.getStaticTypeId())) { // assert the resource state assertState(cms, vfsname, I_CmsConstants.C_STATE_CHANGED); // assert the modification date File rfsResource = new File(getRfsPath(cms, vfsResource, syncSettings)); assertDateLastModifiedAfter(cms, vfsname, rfsResource.lastModified()); } else { assertState(cms, vfsname, I_CmsConstants.C_STATE_UNCHANGED); } } } finally { // remove the test data echo("Purging directory " + dest); CmsFileUtil.purgeDirectory(new File(dest)); } }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/6f754ad872cb162fb0d29d167cdd6d159d8112a0/TestSynchronize.java/clean/test/org/opencms/synchronize/TestSynchronize.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
19298,
554,
1761,
502,
287,
14885,
1435,
1216,
1185,
288,
3639,
368,
1923,
4121,
5571,
3852,
3639,
2149,
19298,
554,
2628,
3792,
2628,
273,
394,
2149,
19298,
554,
2628,
5621,
7734,
514,
1570,
273,
29384,
751,
743,
2932,
7923,
397,
315,
8389,
22,
6,
397,
1387,
18,
11287,
31,
3639,
1387,
1570,
3899,
273,
394,
1387,
12,
10488,
1769,
3639,
309,
16051,
1570,
3899,
18,
1808,
10756,
288,
5411,
1570,
3899,
18,
24816,
8291,
5621,
3639,
289,
7734,
3792,
2628,
18,
542,
5683,
743,
382,
54,
2556,
12,
10488,
1769,
3639,
2407,
1084,
682,
273,
394,
2407,
5621,
3639,
1084,
682,
18,
1289,
2932,
19,
5609,
21,
19,
1717,
5609,
2499,
4898,
1769,
3639,
1084,
682,
18,
1289,
2932,
19,
5609,
21,
19,
1717,
5609,
2138,
4898,
1769,
3639,
1084,
682,
18,
1289,
2932,
19,
5609,
22,
19,
1717,
5609,
5340,
4898,
1769,
3639,
3792,
2628,
18,
542,
1830,
682,
382,
25908,
12,
3168,
682,
1769,
3639,
3792,
2628,
18,
542,
1526,
12,
3767,
1769,
7734,
775,
288,
5411,
14371,
6166,
273,
28287,
5621,
5411,
3376,
2932,
22218,
24488,
434,
11392,
9907,
8863,
5411,
1707,
3805,
12,
6851,
16,
4016,
1769,
5411,
368,
16978,
7756,
358,
326,
534,
4931,
5411,
394,
2149,
19298,
554,
12,
6851,
16,
3792,
2628,
16,
394,
2149,
13220,
4820,
10663,
5411,
4498,
518,
273,
3792,
2628,
18,
588,
1830,
682,
382,
25908,
7675,
9838,
5621,
5411,
987,
2151,
273,
394,
2407,
5621,
13491,
368,
5612,
2703,
316,
326,
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,
19298,
554,
1761,
502,
287,
14885,
1435,
1216,
1185,
288,
3639,
368,
1923,
4121,
5571,
3852,
3639,
2149,
19298,
554,
2628,
3792,
2628,
273,
394,
2149,
19298,
554,
2628,
5621,
7734,
514,
1570,
273,
29384,
751,
743,
2932,
7923,
397,
315,
8389,
22,
6,
397,
1387,
18,
11287,
31,
3639,
1387,
1570,
3899,
273,
394,
1387,
12,
10488,
1769,
3639,
309,
16051,
1570,
3899,
18,
1808,
10756,
288,
5411,
1570,
3899,
18,
24816,
8291,
5621,
3639,
289,
7734,
3792,
2628,
18,
542,
5683,
743,
382,
54,
2556,
12,
10488,
1769,
3639,
2407,
1084,
682,
273,
394,
2407,
5621,
3639,
1084,
682,
18,
1289,
2932,
19,
5609,
21,
19,
1717,
5609,
2499,
4898,
1769,
3639,
1084,
2
] |
||
.addClassAndMethod(methodGen, sourceFile); warning.addMethod(XMethodFactory.createXMethod(invokeInstruction, cpg)).describe("METHOD_CALLED");
|
.addClassAndMethod(methodGen, sourceFile) .addSourceLine(methodGen, sourceFile, location.getHandle()) .addMethod(XMethodFactory.createXMethod(invokeInstruction, cpg)).describe("METHOD_CALLED");
|
private void checkUnconditionallyDereferencedParam( Location location, ConstantPoolGen cpg, TypeDataflow typeDataflow, InvokeInstruction invokeInstruction, BitSet nullArgSet, BitSet definitelyNullArgSet) throws DataflowAnalysisException, ClassNotFoundException { // See what methods might be called here TypeFrame typeFrame = typeDataflow.getFactAtLocation(location); Set<JavaClassAndMethod> targetMethodSet = Hierarchy.resolveMethodCallTargets(invokeInstruction, typeFrame, cpg); if (DEBUG_NULLARG) { System.out.println("Possibly called methods: " + targetMethodSet); } // See if any call targets unconditionally dereference one of the null arguments BitSet unconditionallyDereferencedNullArgSet = new BitSet(); List<JavaClassAndMethod> dangerousCallTargetList = new LinkedList<JavaClassAndMethod>(); for (JavaClassAndMethod targetMethod : targetMethodSet) { if (DEBUG_NULLARG) { System.out.println("For target method " + targetMethod); } NonNullParamProperty property = unconditionalDerefParamDatabase.getProperty(targetMethod.toXMethod()); if (property == null) continue; if (DEBUG_NULLARG) { System.out.println("\tUnconditionally dereferenced params: " + property); } BitSet targetUnconditionallyDereferencedNullArgSet = property.getViolatedParamSet(nullArgSet); if (targetUnconditionallyDereferencedNullArgSet.isEmpty()) continue; dangerousCallTargetList.add(targetMethod); unconditionallyDereferencedNullArgSet.or(targetUnconditionallyDereferencedNullArgSet); } if (dangerousCallTargetList.isEmpty()) return; WarningPropertySet propertySet = new WarningPropertySet(); // See if there are any safe targets Set<JavaClassAndMethod> safeCallTargetSet = new HashSet<JavaClassAndMethod>(); safeCallTargetSet.addAll(targetMethodSet); safeCallTargetSet.removeAll(dangerousCallTargetList); if (safeCallTargetSet.isEmpty()) { propertySet.addProperty(NullArgumentWarningProperty.ALL_DANGEROUS_TARGETS); if (dangerousCallTargetList.size() == 1) { propertySet.addProperty(NullArgumentWarningProperty.MONOMORPHIC_CALL_SITE); } } // Call to private method? In theory there should be only one possible target. boolean privateCall = safeCallTargetSet.isEmpty() && dangerousCallTargetList.size() == 1 && dangerousCallTargetList.get(0).getMethod().isPrivate(); MethodGen methodGen = classContext.getMethodGen(method); String sourceFile = classContext.getJavaClass().getSourceFileName(); String bugType; int priority; if (privateCall || invokeInstruction.getOpcode() == Constants.INVOKESTATIC || invokeInstruction.getOpcode() == Constants.INVOKESPECIAL) { bugType = "NP_NULL_PARAM_DEREF_NONVIRTUAL"; priority = HIGH_PRIORITY; } else if (safeCallTargetSet.isEmpty()) { bugType = "NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS"; priority = NORMAL_PRIORITY; } else { bugType = "NP_NULL_PARAM_DEREF"; priority = LOW_PRIORITY; } BugInstance warning = new BugInstance(bugType, priority) .addClassAndMethod(methodGen, sourceFile); warning.addMethod(XMethodFactory.createXMethod(invokeInstruction, cpg)).describe("METHOD_CALLED"); // Check which params might be null addParamAnnotations(definitelyNullArgSet, unconditionallyDereferencedNullArgSet, propertySet, warning); // Add annotations for dangerous method call targets for (JavaClassAndMethod dangerousCallTarget : dangerousCallTargetList) { warning.addMethod(dangerousCallTarget.getJavaClass(), dangerousCallTarget.getMethod()).describe("METHOD_DANGEROUS_TARGET"); } if (REPORT_SAFE_METHOD_TARGETS) { // This is useful to see which other call targets the analysis // considered. for (JavaClassAndMethod safeMethod : safeCallTargetSet) { warning.addMethod(safeMethod.getJavaClass(), safeMethod.getMethod()).describe("METHOD_SAFE_TARGET"); } } decorateWarning(location, propertySet, warning); warning.addSourceLine(methodGen, sourceFile, location.getHandle()); bugReporter.reportBug(warning); }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/617741e913fbb9f782b3014ec6a0172526cc0581/FindNullDeref.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/FindNullDeref.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
866,
984,
4175,
1230,
40,
822,
1134,
72,
786,
12,
1082,
202,
2735,
2117,
16,
1082,
202,
6902,
2864,
7642,
3283,
75,
16,
1082,
202,
559,
751,
2426,
618,
751,
2426,
16,
1082,
202,
10969,
11983,
4356,
11983,
16,
1082,
202,
5775,
694,
446,
4117,
694,
16,
21199,
2217,
25818,
2041,
4117,
694,
13,
1216,
1910,
2426,
9418,
503,
16,
10403,
288,
9506,
202,
759,
2164,
4121,
2590,
4825,
506,
2566,
2674,
202,
202,
559,
3219,
618,
3219,
273,
618,
751,
2426,
18,
588,
9766,
861,
2735,
12,
3562,
1769,
202,
202,
694,
32,
5852,
797,
1876,
1305,
34,
1018,
1305,
694,
273,
670,
6000,
18,
10828,
12592,
9432,
12,
14407,
11983,
16,
618,
3219,
16,
3283,
75,
1769,
202,
202,
430,
261,
9394,
67,
8560,
10973,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
1616,
8781,
2566,
2590,
30,
315,
397,
1018,
1305,
694,
1769,
202,
202,
97,
9506,
202,
759,
2164,
309,
1281,
745,
5774,
6301,
1434,
22913,
27794,
1245,
434,
326,
446,
1775,
202,
202,
5775,
694,
6301,
1434,
22913,
40,
822,
1134,
72,
2041,
4117,
694,
273,
394,
21199,
5621,
202,
202,
682,
32,
5852,
797,
1876,
1305,
34,
27308,
1481,
1477,
2326,
682,
273,
394,
10688,
32,
5852,
797,
1876,
1305,
34,
5621,
202,
202,
1884,
261,
5852,
797,
1876,
1305,
1018,
1305,
294,
1018,
1305,
694,
13,
288,
1082,
202,
430,
261,
9394,
67,
8560,
10973,
13,
288,
9506,
202,
3163,
18,
659,
18,
8222,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
866,
984,
4175,
1230,
40,
822,
1134,
72,
786,
12,
1082,
202,
2735,
2117,
16,
1082,
202,
6902,
2864,
7642,
3283,
75,
16,
1082,
202,
559,
751,
2426,
618,
751,
2426,
16,
1082,
202,
10969,
11983,
4356,
11983,
16,
1082,
202,
5775,
694,
446,
4117,
694,
16,
21199,
2217,
25818,
2041,
4117,
694,
13,
1216,
1910,
2426,
9418,
503,
16,
10403,
288,
9506,
202,
759,
2164,
4121,
2590,
4825,
506,
2566,
2674,
202,
202,
559,
3219,
618,
3219,
273,
618,
751,
2426,
18,
588,
9766,
861,
2735,
12,
3562,
1769,
202,
202,
694,
32,
5852,
797,
1876,
1305,
34,
1018,
1305,
694,
273,
670,
6000,
18,
10828,
12592,
9432,
12,
14407,
11983,
16,
618,
3219,
2
] |
protected Control createContents(Composite parent) { Font font = parent.getFont(); Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); composite.setLayout(layout); composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); composite.setFont(font); initialize(); Label description = createDescriptionLabel(composite); description.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); listViewer = new TableViewer(composite, SWT.TOP | SWT.BORDER | SWT.SINGLE); listViewer.getTable().setFont(font); GridData data = new GridData(GridData.FILL_BOTH); data.grabExcessHorizontalSpace = true; // Only set a height hint if it will not result in a cut off dialog if (DialogUtil.inRegularFontMode(parent)) { data.heightHint = getDefaultFontHeight(listViewer.getTable(), REPOSITORY_LIST_MULTIPLIER); } listViewer.getTable().setLayoutData(data); listViewer.getTable().setFont(font); listViewer.setLabelProvider(new DecoratingLabelProvider(new TaskRepositoryLabelProvider(), PlatformUI .getWorkbench().getDecoratorManager().getLabelDecorator())); listViewer.setContentProvider(new IStructuredContentProvider() { public void inputChanged(Viewer v, Object oldInput, Object newInput) { } public void dispose() { } public Object[] getElements(Object parent) { return TasksUiPlugin.getRepositoryManager().getAllRepositories().toArray(); } }); listViewer.setSorter(new TaskRepositoriesViewSorter()); listViewer.setInput(project.getWorkspace()); TaskRepository repository = TasksUiPlugin.getDefault().getRepositoryForResource(project, true); if (repository != null) { Object[] repositories = new Object[] { repository }; listViewer.setSelection(new StructuredSelection(repositories)); } listViewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { modified = true; } }); final AddRepositoryAction action = new AddRepositoryAction(); Button button = new Button(composite, SWT.NONE); button.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING)); button.setText(AddRepositoryAction.TITLE); button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { action.run(); listViewer.setInput(project.getWorkspace()); } }); return composite; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f89fe1dda5b545f261e0cda2f2d67488966fc13f/ProjectTaskRepositoryPage.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/properties/ProjectTaskRepositoryPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
202,
5711,
3512,
273,
982,
18,
588,
5711,
5621,
202,
202,
9400,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
27676,
18,
542,
3744,
12,
6741,
1769,
202,
202,
27676,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
202,
202,
27676,
18,
542,
5711,
12,
5776,
1769,
202,
202,
11160,
5621,
202,
202,
2224,
2477,
273,
752,
3291,
2224,
12,
27676,
1769,
202,
202,
3384,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
55,
8588,
18,
29818,
16,
348,
8588,
18,
10462,
16,
638,
16,
629,
10019,
202,
202,
1098,
18415,
273,
394,
3555,
18415,
12,
27676,
16,
348,
8588,
18,
10462,
571,
348,
8588,
18,
38,
7954,
571,
348,
8588,
18,
20184,
1769,
202,
202,
1098,
18415,
18,
588,
1388,
7675,
542,
5711,
12,
5776,
1769,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
892,
18,
2752,
70,
424,
614,
14457,
3819,
273,
638,
31,
202,
202,
759,
5098,
444,
279,
2072,
7380,
309,
518,
903,
486,
563,
316,
279,
6391,
3397,
6176,
202,
202,
430,
261,
6353,
1304,
18,
267,
17974,
5711,
2309,
12,
2938,
3719,
288,
1082,
202,
892,
18,
4210,
7002,
273,
4829,
5711,
2686,
12,
1098,
18415,
18,
588,
1388,
9334,
2438,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
202,
5711,
3512,
273,
982,
18,
588,
5711,
5621,
202,
202,
9400,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
27676,
18,
542,
3744,
12,
6741,
1769,
202,
202,
27676,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
202,
202,
27676,
18,
542,
5711,
12,
5776,
1769,
202,
202,
11160,
5621,
202,
202,
2224,
2477,
273,
752,
3291,
2224,
12,
27676,
1769,
202,
202,
3384,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
55,
8588,
18,
29818,
16,
348,
8588,
18,
2
] |
||
log.info( "Found JSecurity session id [" + sessionIdString + "] via " +
|
log.info( "Found JSecurity session id [" + sessionId + "] via " +
|
protected String getSessionIdFromHttpSession( HttpServletRequest request ) { String sessionIdString = null; String sessionKey = getSessionIdHttpSessionKeyName(); HttpSession session = request.getSession( false ); if ( session != null ) { sessionIdString = (String)session.getAttribute( sessionKey ); } if ( sessionIdString != null ) { if ( log.isInfoEnabled() ) { log.info( "Found JSecurity session id [" + sessionIdString + "] via " + "HttpSession key [" + sessionKey + "]"); } } else { if ( log.isDebugEnabled() ) { log.debug( "No JSecurity session id fround in HttpSession via " + "session key [" + sessionKey + "]" ); } } return sessionIdString; }
|
19686 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19686/aa81a44dedf99b3f5bfe8289c2eb9e3d725ce46f/DefaultWebSessionFactory.java/clean/ri/business/src/org/jsecurity/ri/web/support/DefaultWebSessionFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
7183,
548,
1265,
2940,
2157,
12,
9984,
590,
262,
288,
3639,
514,
10338,
780,
273,
446,
31,
3639,
514,
26864,
273,
7183,
548,
2940,
2157,
13987,
5621,
3639,
26166,
1339,
273,
590,
18,
588,
2157,
12,
629,
11272,
3639,
309,
261,
1339,
480,
446,
262,
288,
5411,
10338,
780,
273,
261,
780,
13,
3184,
18,
588,
1499,
12,
26864,
11272,
3639,
289,
3639,
309,
261,
10338,
780,
480,
446,
262,
288,
5411,
309,
261,
613,
18,
291,
966,
1526,
1435,
262,
288,
7734,
613,
18,
1376,
12,
315,
2043,
804,
4368,
1339,
612,
8247,
397,
10338,
397,
9850,
3970,
315,
397,
12900,
315,
2940,
2157,
498,
8247,
397,
26864,
397,
9870,
1769,
5411,
289,
3639,
289,
469,
288,
5411,
309,
261,
613,
18,
291,
2829,
1526,
1435,
262,
288,
7734,
613,
18,
4148,
12,
315,
2279,
804,
4368,
1339,
612,
284,
2260,
316,
26166,
3970,
315,
397,
21821,
315,
3184,
498,
8247,
397,
26864,
397,
9870,
11272,
5411,
289,
3639,
289,
3639,
327,
10338,
780,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
7183,
548,
1265,
2940,
2157,
12,
9984,
590,
262,
288,
3639,
514,
10338,
780,
273,
446,
31,
3639,
514,
26864,
273,
7183,
548,
2940,
2157,
13987,
5621,
3639,
26166,
1339,
273,
590,
18,
588,
2157,
12,
629,
11272,
3639,
309,
261,
1339,
480,
446,
262,
288,
5411,
10338,
780,
273,
261,
780,
13,
3184,
18,
588,
1499,
12,
26864,
11272,
3639,
289,
3639,
309,
261,
10338,
780,
480,
446,
262,
288,
5411,
309,
261,
613,
18,
291,
966,
1526,
1435,
262,
288,
7734,
613,
18,
1376,
12,
315,
2043,
804,
4368,
1339,
612,
8247,
397,
10338,
397,
9850,
3970,
315,
397,
12900,
315,
2940,
2157,
498,
8247,
397,
26864,
397,
9870,
1769,
5411,
289,
3639,
289,
2
] |
if (trace) { log.trace("Inserted " + rows + " rows"); }
|
if (trace) { log.trace("Inserted " + rows + " rows"); }
|
protected void handleBeforePrepare(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //We only need to lock on the adds List refs = new ArrayList(refsToAdd.size()); Iterator iter = refsToAdd.iterator(); while (iter.hasNext()) { ChannelRefPair pair = (ChannelRefPair)iter.next(); refs.add(pair.ref); } orderReferences(refs); List addsToReverse = new ArrayList(); //We insert a tx record and //a row for each ref with + //and update the row for each delivery with "-" PreparedStatement psReference = null; PreparedStatement psInsertMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWrapper wrap = new TransactionWrapper(); try { //get the locks getLocks(refs); conn = ds.getConnection(); //Insert the tx record if (!refsToAdd.isEmpty() || !refsToRemove.isEmpty()) { addTXRecord(conn, tx); } iter = refsToAdd.iterator(); boolean batch = usingBatchUpdates && refsToAdd.size() > 1; boolean messageInsertsInBatch = false; boolean messageUpdatesInBatch = false; if (batch) { psReference = conn.prepareStatement(getSQLStatement("INSERT_MESSAGE_REF")); psInsertMessage = conn.prepareStatement(getSQLStatement("INSERT_MESSAGE")); psUpdateMessage = conn.prepareStatement(getSQLStatement("UPDATE_MESSAGE_CHANNELCOUNT")); } while (iter.hasNext()) { ChannelRefPair pair = (ChannelRefPair) iter.next(); if (!batch) { psReference = conn.prepareStatement(getSQLStatement("INSERT_MESSAGE_REF")); } prepareToAddReference(pair.channelId, pair.ref, tx, psReference); if (batch) { psReference.addBatch(); } else { int rows = psReference.executeUpdate(); if (trace) { log.trace("Inserted " + rows + " rows"); } psReference.close(); psReference = null; } if (!batch) { psInsertMessage = conn.prepareStatement(getSQLStatement("INSERT_MESSAGE")); psUpdateMessage = conn.prepareStatement(getSQLStatement("UPDATE_MESSAGE_CHANNELCOUNT")); } Message m = pair.ref.getMessage(); m.incPersistentChannelCount(); addsToReverse.add(pair.ref); boolean added; if (m.getPersistentChannelCount() == 1) { //First time so persist the message storeMessage(m, psInsertMessage); added = true; } else { //Update message channel count updateMessageChannelCount(m, psUpdateMessage); added = false; } if (batch) { if (added) { psInsertMessage.addBatch(); messageInsertsInBatch = true; } else { psUpdateMessage.addBatch(); messageUpdatesInBatch = true; } } else { if (added) { int rows = psInsertMessage.executeUpdate(); if (trace) { log.trace("Inserted " + rows + " rows"); } } else { int rows = psUpdateMessage.executeUpdate(); if (trace) { log.trace("Updated " + rows + " rows"); } } psInsertMessage.close(); psInsertMessage = null; psUpdateMessage.close(); psUpdateMessage = null; } } if (batch) { int[] rowsReference = psReference.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("INSERT_MESSAGE_REF"), rowsReference, "inserted"); } if (messageInsertsInBatch) { int[] rowsMessage = psInsertMessage.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("INSERT_MESSAGE"), rowsMessage, "inserted"); } } if (messageUpdatesInBatch) { int[] rowsMessage = psUpdateMessage.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("UPDATE_MESSAGE_CHANNELCOUNT"), rowsMessage, "updated"); } } psReference.close(); psReference = null; psInsertMessage.close(); psInsertMessage = null; psUpdateMessage.close(); psUpdateMessage = null; } //Now the removes iter = refsToRemove.iterator(); batch = usingBatchUpdates && refsToRemove.size() > 1; if (batch) { psReference = conn.prepareStatement(getSQLStatement("UPDATE_MESSAGE_REF")); } while (iter.hasNext()) { ChannelRefPair pair = (ChannelRefPair) iter.next(); if (!batch) { psReference = conn.prepareStatement(getSQLStatement("UPDATE_MESSAGE_REF")); } prepareToRemoveReference(pair.channelId, pair.ref, tx, psReference); if (batch) { psReference.addBatch(); } else { int rows = psReference.executeUpdate(); if (trace) { log.trace("updated " + rows + " rows"); } psReference.close(); psReference = null; } } if (batch) { int[] rows = psReference.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("UPDATE_MESSAGE_REF"), rows, "updated"); } psReference.close(); psReference = null; } } catch (Exception e) { wrap.exceptionOccurred(); throw e; } finally { if (psReference != null) { try { psReference.close(); } catch (Throwable t) { } } if (psInsertMessage != null) { try { psInsertMessage.close(); } catch (Throwable t) { } } if (psUpdateMessage != null) { try { psUpdateMessage.close(); } catch (Throwable t) { } } if (conn != null) { try { conn.close(); } catch (Throwable e) { } } try { wrap.end(); } finally { if (wrap.isFailed()) { //reverse any incs this.decPersistentCounts(addsToReverse); } //release the locks this.releaseLocks(refs); } } }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/c76bb6fc248174ae054686357cd08c7ff1cdbb75/JDBCPersistenceManager.java/clean/src/main/org/jboss/messaging/core/plugin/JDBCPersistenceManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
1640,
4649,
7543,
12,
682,
9047,
13786,
16,
987,
9047,
12765,
16,
5947,
2229,
13,
1216,
1185,
282,
288,
1377,
368,
3218,
1338,
1608,
358,
2176,
603,
326,
4831,
1377,
987,
9047,
273,
394,
2407,
12,
9316,
13786,
18,
1467,
10663,
5411,
4498,
1400,
273,
9047,
13786,
18,
9838,
5621,
1377,
1323,
261,
2165,
18,
5332,
2134,
10756,
1377,
288,
540,
5307,
1957,
4154,
3082,
273,
261,
2909,
1957,
4154,
13,
2165,
18,
4285,
5621,
5375,
9047,
18,
1289,
12,
6017,
18,
1734,
1769,
1377,
289,
5411,
1353,
8221,
12,
9316,
1769,
5411,
987,
4831,
774,
12650,
273,
394,
2407,
5621,
5411,
368,
3218,
2243,
279,
2229,
1409,
471,
1377,
368,
69,
1027,
364,
1517,
1278,
598,
397,
1377,
368,
464,
1089,
326,
1027,
364,
1517,
7912,
598,
7514,
5411,
16913,
4250,
2404,
273,
446,
31,
1377,
16913,
4250,
4600,
1079,
273,
446,
31,
1377,
16913,
4250,
1891,
1079,
273,
446,
31,
1377,
4050,
1487,
273,
446,
31,
1377,
5947,
3611,
2193,
273,
394,
5947,
3611,
5621,
5411,
775,
1377,
288,
540,
368,
588,
326,
13046,
540,
336,
19159,
12,
9316,
1769,
5375,
1487,
273,
3780,
18,
588,
1952,
5621,
5375,
368,
4600,
326,
2229,
1409,
540,
309,
16051,
9316,
13786,
18,
291,
1921,
1435,
747,
401,
9316,
12765,
18,
291,
1921,
10756,
540,
288,
5411,
527,
16556,
2115,
12,
4646,
16,
2229,
1769,
540,
289,
5375,
1400,
273,
9047,
13786,
18,
9838,
5621,
5375,
1250,
2581,
273,
1450,
4497,
5121,
597,
9047,
13786,
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,
4750,
918,
1640,
4649,
7543,
12,
682,
9047,
13786,
16,
987,
9047,
12765,
16,
5947,
2229,
13,
1216,
1185,
282,
288,
1377,
368,
3218,
1338,
1608,
358,
2176,
603,
326,
4831,
1377,
987,
9047,
273,
394,
2407,
12,
9316,
13786,
18,
1467,
10663,
5411,
4498,
1400,
273,
9047,
13786,
18,
9838,
5621,
1377,
1323,
261,
2165,
18,
5332,
2134,
10756,
1377,
288,
540,
5307,
1957,
4154,
3082,
273,
261,
2909,
1957,
4154,
13,
2165,
18,
4285,
5621,
5375,
9047,
18,
1289,
12,
6017,
18,
1734,
1769,
1377,
289,
5411,
1353,
8221,
12,
9316,
1769,
5411,
987,
4831,
774,
12650,
273,
394,
2407,
5621,
5411,
368,
3218,
2243,
279,
2229,
1409,
471,
1377,
368,
69,
1027,
364,
1517,
1278,
2
] |
public org.quickfix.field.LegCouponRate getLegCouponRate() throws FieldNotFound { org.quickfix.field.LegCouponRate value = new org.quickfix.field.LegCouponRate();
|
public quickfix.field.LegCouponRate getLegCouponRate() throws FieldNotFound { quickfix.field.LegCouponRate value = new quickfix.field.LegCouponRate();
|
public org.quickfix.field.LegCouponRate getLegCouponRate() throws FieldNotFound { org.quickfix.field.LegCouponRate value = new org.quickfix.field.LegCouponRate(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusRequest.java/clean/src/java/src/quickfix/fix44/QuoteStatusRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
22744,
4727,
336,
8329,
22744,
4727,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
22744,
4727,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
22744,
4727,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
22744,
4727,
336,
8329,
22744,
4727,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
22744,
4727,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
22744,
4727,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
System.out.println(" Mnemonic not supported " + mnem);
|
log.info(" Mnemonic not supported " + mnem);
|
protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : case AID_PF8 : case AID_PF9 : case AID_PF10 : case AID_PF11 : case AID_PF12 : case AID_PF13 : case AID_PF14 : case AID_PF15 : case AID_PF16 : case AID_PF17 : case AID_PF18 : case AID_PF19 : case AID_PF20 : case AID_PF21 : case AID_PF22 : case AID_PF23 : case AID_PF24 : case AID_ROLL_DOWN : case AID_ROLL_UP : case AID_ROLL_LEFT : case AID_ROLL_RIGHT : if (!screenFields.isCanSendAid()) { displayError(ERR_ENTER_NO_ALLOWED); } else sendAid(mnem); simulated = true; break; case AID_HELP : sessionVT.sendHelpRequest(); simulated = true; break; case AID_PRINT : sessionVT.hostPrint(1); simulated = true; break; case BACK_SPACE : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { if (screenFields.getCurrentField().startPos() == lastPos) displayError(ERR_CURSOR_PROTECTED); else { screenFields.getCurrentField().getKeyPos(lastPos); screenFields.getCurrentField().changePos(-1); resetDirty(screenFields.getCurrentField().getCurrentPos()); shiftLeft(screenFields.getCurrentField().getCurrentPos()); updateDirty(); screenFields.setCurrentFieldMDT(); simulated = true; } } else { displayError(ERR_CURSOR_PROTECTED); } break; case BACK_TAB : if (screenFields.getCurrentField() != null && screenFields.isCurrentFieldHighlightedEntry()) { resetDirty(screenFields.getCurrentField().startPos); gotoFieldPrev(); updateDirty(); } else gotoFieldPrev(); if (screenFields.isCurrentFieldContinued()) { do { gotoFieldPrev(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } isInField(lastPos); simulated = true; break; case UP : case MARK_UP : process_XY(lastPos - numCols); simulated = true; break; case DOWN : case MARK_DOWN : process_XY(lastPos + numCols); simulated = true; break; case LEFT : case MARK_LEFT : process_XY(lastPos - 1); simulated = true; break; case RIGHT : case MARK_RIGHT : process_XY(lastPos + 1); simulated = true; break; case NEXTWORD : gotoNextWord(); simulated = true; break; case PREVWORD : gotoPrevWord(); simulated = true; break; case DELETE : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { resetDirty(lastPos); screenFields.getCurrentField().getKeyPos(lastPos); shiftLeft(screenFields.getCurrentFieldPos()); screenFields.setCurrentFieldMDT(); updateDirty(); simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } break; case TAB : if (screenFields.getCurrentField() != null && !screenFields.isCurrentFieldContinued()) { if (screenFields.isCurrentFieldHighlightedEntry()) { resetDirty(screenFields.getCurrentField().startPos); gotoFieldNext(); updateDirty(); } else gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.getCurrentField() != null && (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast())); } isInField(lastPos); simulated = true; break; case EOF : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = endOfField(screenFields.getCurrentField().startPos(),true); if (where > 0) { goto_XY((where / numCols) + 1,(where % numCols) + 1); } simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } resetDirty(lastPos); break; case ERASE_EOF : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = lastPos; resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); if (screenFields.isCurrentFieldContinued()) fieldExit(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); goto_XY(where); simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } break; case ERASE_FIELD : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = lastPos; lastPos = screenFields.getCurrentField().startPos(); resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); if (screenFields.isCurrentFieldContinued()) fieldExit(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); goto_XY(where); simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } break; case INSERT : // we toggle it insertMode = insertMode ? false : true; break; case HOME : // position to the home position set if (lastPos + numCols + 1 != homePos) { goto_XY(homePos - numCols - 1); // now check if we are in a field isInField(lastPos); } else gotoField(1); break; case KEYPAD_0 : simulated = simulateKeyStroke('0'); break; case KEYPAD_1 : simulated = simulateKeyStroke('1'); break; case KEYPAD_2 : simulated = simulateKeyStroke('2'); break; case KEYPAD_3 : simulated = simulateKeyStroke('3'); break; case KEYPAD_4 : simulated = simulateKeyStroke('4'); break; case KEYPAD_5 : simulated = simulateKeyStroke('5'); break; case KEYPAD_6 : simulated = simulateKeyStroke('6'); break; case KEYPAD_7 : simulated = simulateKeyStroke('7'); break; case KEYPAD_8 : simulated = simulateKeyStroke('8'); break; case KEYPAD_9 : simulated = simulateKeyStroke('9'); break; case KEYPAD_PERIOD : simulated = simulateKeyStroke('.'); break; case KEYPAD_COMMA : simulated = simulateKeyStroke(','); break; case KEYPAD_MINUS : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int s = screenFields.getCurrentField().getFieldShift(); if (s == 3 || s == 5 || s == 7) { screen[lastPos].setChar('-'); resetDirty(lastPos); advancePos(); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } simulated = true; updateDirty(); if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } } else { displayError(ERR_FIELD_MINUS); } } else { displayError(ERR_CURSOR_PROTECTED); } break; case FIELD_EXIT : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); if (screenFields.isCurrentFieldContinued()) fieldExit(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); simulated = true; if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } else { displayError(ERR_CURSOR_PROTECTED); } break; case FIELD_PLUS : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { resetDirty(lastPos); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); simulated = true; if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } else { displayError(ERR_CURSOR_PROTECTED); } break; case FIELD_MINUS : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int s = screenFields.getCurrentField().getFieldShift(); if (s == 3 || s == 5 || s == 7) { screen[lastPos].setChar('-'); resetDirty(lastPos); advancePos(); if (fieldExit()) { screenFields.setCurrentFieldMDT(); if (!screenFields.isCurrentFieldContinued()) { gotoFieldNext(); } else { do { gotoFieldNext(); } while (screenFields.isCurrentFieldContinuedMiddle() || screenFields.isCurrentFieldContinuedLast()); } } updateDirty(); simulated = true; if (screenFields.isCurrentFieldAutoEnter()) sendAid(AID_ENTER); } else { displayError(ERR_FIELD_MINUS); } } else { displayError(ERR_CURSOR_PROTECTED); } break; case BOF : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { int where = screenFields.getCurrentField().startPos(); if (where > 0) { goto_XY(where); } simulated = true; } else { displayError(ERR_CURSOR_PROTECTED); } resetDirty(lastPos); break; case SYSREQ : sessionVT.systemRequest(); simulated = true; break; case RESET : if (isStatusErrorCode()) { resetError(); isInField(lastPos); updateDirty(); } else { setPrehelpState(false,isKeyboardLocked(),false); } gui.repaint(); simulated = true; break; case COPY : copyMe(); break; case PASTE : pasteMe(false); break; case ATTN : sessionVT.sendAttentionKey(); simulated = true; break; case DUP_FIELD : if (screenFields.getCurrentField() != null && screenFields.withinCurrentField(lastPos) && !screenFields.isCurrentFieldBypassField()) { if (screenFields.isCurrentFieldDupEnabled()) { resetDirty(lastPos); screenFields.getCurrentField().setFieldChar(lastPos,(char)0x1C); screenFields.setCurrentFieldMDT(); gotoFieldNext(); updateDirty(); simulated = true; } else { displayError(ERR_DUP_KEY_NOT_ALLOWED); } } else { displayError(ERR_CURSOR_PROTECTED); } break; case NEW_LINE : if (screenFields.getSize() > 0) { int startRow = getRow(lastPos) + 1; int startPos = lastPos; boolean isthere = false; if (startRow == getRows()) startRow = 0; goto_XY(++startRow,1); if (!isInField() && screenFields.getCurrentField() != null && !screenFields.isCurrentFieldBypassField()) { while (!isInField() && screenFields.getCurrentField() != null && !screenFields.isCurrentFieldBypassField()) { // lets keep going advancePos(); // Have we looped the screen? if (lastPos == startPos) { // if so then go back to starting point goto_XY(startPos); break; } } } } simulated = true; break; case JUMP_NEXT_SESS : gui.nextSession(); simulated = true; break; case JUMP_PREV_SESS : gui.prevSession(); simulated = true; break; default : System.out.println(" Mnemonic not supported " + mnem); break; } return simulated; }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
1250,
20089,
29668,
20918,
12,
474,
12883,
351,
15329,
1377,
1250,
25036,
273,
629,
31,
1377,
1620,
261,
13607,
351,
13,
288,
540,
648,
432,
734,
67,
23181,
985,
294,
540,
648,
432,
734,
67,
12278,
294,
540,
648,
432,
734,
67,
22026,
21,
294,
540,
648,
432,
734,
67,
22026,
22,
294,
540,
648,
432,
734,
67,
22026,
23,
294,
540,
648,
432,
734,
67,
22026,
24,
294,
540,
648,
432,
734,
67,
22026,
25,
294,
540,
648,
432,
734,
67,
22026,
26,
294,
540,
648,
432,
734,
67,
22026,
27,
294,
540,
648,
432,
734,
67,
22026,
28,
294,
540,
648,
432,
734,
67,
22026,
29,
294,
540,
648,
432,
734,
67,
22026,
2163,
294,
540,
648,
432,
734,
67,
22026,
2499,
294,
540,
648,
432,
734,
67,
22026,
2138,
294,
540,
648,
432,
734,
67,
22026,
3437,
294,
540,
648,
432,
734,
67,
22026,
3461,
294,
540,
648,
432,
734,
67,
22026,
3600,
294,
540,
648,
432,
734,
67,
22026,
2313,
294,
540,
648,
432,
734,
67,
22026,
4033,
294,
540,
648,
432,
734,
67,
22026,
2643,
294,
540,
648,
432,
734,
67,
22026,
3657,
294,
540,
648,
432,
734,
67,
22026,
3462,
294,
540,
648,
432,
734,
67,
22026,
5340,
294,
540,
648,
432,
734,
67,
22026,
3787,
294,
540,
648,
432,
734,
67,
22026,
4366,
294,
540,
648,
432,
734,
67,
22026,
3247,
294,
540,
648,
432,
734,
67,
14555,
67,
12711,
294,
540,
648,
432,
734,
67,
14555,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
1250,
20089,
29668,
20918,
12,
474,
12883,
351,
15329,
1377,
1250,
25036,
273,
629,
31,
1377,
1620,
261,
13607,
351,
13,
288,
540,
648,
432,
734,
67,
23181,
985,
294,
540,
648,
432,
734,
67,
12278,
294,
540,
648,
432,
734,
67,
22026,
21,
294,
540,
648,
432,
734,
67,
22026,
22,
294,
540,
648,
432,
734,
67,
22026,
23,
294,
540,
648,
432,
734,
67,
22026,
24,
294,
540,
648,
432,
734,
67,
22026,
25,
294,
540,
648,
432,
734,
67,
22026,
26,
294,
540,
648,
432,
734,
67,
22026,
27,
294,
540,
648,
432,
734,
67,
22026,
28,
294,
540,
648,
432,
734,
67,
22026,
29,
294,
540,
648,
432,
734,
67,
22026,
2163,
294,
2
] |
if (logStatic.isDebugEnabled()) { logStatic.debug("Client: Unknown directory service type: " + serverType);
|
if (log.isDebugEnabled()) { log.debug("Client: Unknown directory service type: " + serverType);
|
public static CertDirectoryServiceClient getCertDirectoryServiceClientInstance( int serverType, String serverUrl, ServiceBroker sb) { LoggingService logStatic = (LoggingService) sb.getService(null, LoggingService.class, null); CertDirectoryServiceClient ldapClient = null; //log.debug("%%%%%%%%%%%% type found is : "+serverType); switch (serverType) { case TrustedCaPolicy.COUGAAR_OPENLDAP: ldapClient = new OpenLdapCertDirectoryService(serverUrl, sb); break; case TrustedCaPolicy.NETTOOLS: ldapClient = new NetToolsCertDirectoryService(serverUrl, sb); break; default: if (logStatic.isDebugEnabled()) { logStatic.debug("Client: Unknown directory service type: " + serverType); } } return ldapClient; }
|
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/d4e47362039c7c798bc93902ad05faecb8f7bed0/CertDirectoryServiceFactory.java/buggy/securityservices/src/org/cougaar/core/security/crypto/ldap/CertDirectoryServiceFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
11921,
2853,
1179,
1227,
1927,
1051,
2853,
1179,
1227,
1442,
12,
25083,
1377,
509,
1438,
559,
16,
514,
1438,
1489,
16,
1956,
11194,
2393,
13,
225,
288,
565,
10253,
1179,
613,
5788,
273,
261,
7735,
1179,
13,
1377,
2393,
18,
588,
1179,
12,
2011,
16,
1082,
565,
10253,
1179,
18,
1106,
16,
446,
1769,
565,
11921,
2853,
1179,
1227,
8079,
1227,
273,
446,
31,
565,
368,
1330,
18,
4148,
2932,
26764,
26764,
26764,
225,
618,
1392,
353,
294,
13773,
3567,
559,
1769,
565,
1620,
261,
3567,
559,
13,
288,
565,
648,
30645,
23508,
2582,
18,
3865,
57,
25043,
985,
67,
11437,
15496,
30,
1377,
8079,
1227,
273,
394,
3502,
18437,
5461,
2853,
1179,
12,
3567,
1489,
16,
2393,
1769,
1377,
898,
31,
565,
648,
30645,
23508,
2582,
18,
5407,
1470,
51,
1741,
55,
30,
1377,
8079,
1227,
273,
394,
8503,
10348,
5461,
2853,
1179,
12,
3567,
1489,
16,
2393,
1769,
1377,
898,
31,
565,
805,
30,
1377,
309,
261,
1330,
5788,
18,
291,
2829,
1526,
10756,
288,
202,
1330,
5788,
18,
4148,
2932,
1227,
30,
9077,
1867,
1156,
618,
30,
315,
397,
1438,
559,
1769,
1377,
289,
565,
289,
565,
327,
8079,
1227,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
11921,
2853,
1179,
1227,
1927,
1051,
2853,
1179,
1227,
1442,
12,
25083,
1377,
509,
1438,
559,
16,
514,
1438,
1489,
16,
1956,
11194,
2393,
13,
225,
288,
565,
10253,
1179,
613,
5788,
273,
261,
7735,
1179,
13,
1377,
2393,
18,
588,
1179,
12,
2011,
16,
1082,
565,
10253,
1179,
18,
1106,
16,
446,
1769,
565,
11921,
2853,
1179,
1227,
8079,
1227,
273,
446,
31,
565,
368,
1330,
18,
4148,
2932,
26764,
26764,
26764,
225,
618,
1392,
353,
294,
13773,
3567,
559,
1769,
565,
1620,
261,
3567,
559,
13,
288,
565,
648,
30645,
23508,
2582,
18,
3865,
57,
25043,
985,
67,
11437,
15496,
30,
1377,
8079,
1227,
273,
394,
3502,
18437,
5461,
2853,
1179,
12,
3567,
1489,
2
] |
private void rewriteTypeVariable(TypeVariable2 typeCv, CompilationUnitRewrite rewrite) {
|
private static boolean rewriteTypeVariable(TypeVariable2 typeCv, CompilationUnitRewrite rewrite, InferTypeArgumentsTCModel tCModel, boolean leaveUnconstraindRaw) {
|
private void rewriteTypeVariable(TypeVariable2 typeCv, CompilationUnitRewrite rewrite) { ASTNode node= typeCv.getRange().getNode(rewrite.getRoot()); if (node instanceof Name && node.getParent() instanceof Type) { Type originalType= (Type) node.getParent(); // Must rewrite all type arguments in one batch. Do the rewrite when the first one is encountered; skip the others. Object rewritten= originalType.getProperty(REWRITTEN); if (rewritten == REWRITTEN) return; originalType.setProperty(REWRITTEN, REWRITTEN); ArrayList typeArgumentCvs= getTypeArgumentCvs(typeCv); Type[] typeArguments= getTypeArguments(originalType, typeArgumentCvs, rewrite); if (typeArguments == null) return; Type movingType= (Type) rewrite.getASTRewrite().createMoveTarget(originalType); ParameterizedType newType= rewrite.getAST().newParameterizedType(movingType); for (int i= 0; i < typeArguments.length; i++) newType.typeArguments().add(typeArguments[i]); rewrite.getASTRewrite().replace(originalType, newType, rewrite.createGroupDescription(RefactoringCoreMessages.InferTypeArgumentsRefactoring_addTypeArguments)); } //TODO: other node types? }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/1f71505f4bcf7782cdb7e4406b5e13f6ce5ab905/InferTypeArgumentsRefactoring.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsRefactoring.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
10738,
559,
3092,
12,
559,
3092,
22,
618,
39,
90,
16,
22416,
2802,
19618,
10738,
13,
288,
202,
202,
9053,
907,
756,
33,
618,
39,
90,
18,
588,
2655,
7675,
588,
907,
12,
21489,
18,
588,
2375,
10663,
202,
202,
430,
261,
2159,
1276,
1770,
597,
756,
18,
588,
3054,
1435,
1276,
1412,
13,
288,
1082,
202,
559,
2282,
559,
33,
261,
559,
13,
756,
18,
588,
3054,
5621,
25083,
202,
759,
6753,
10738,
777,
618,
1775,
316,
1245,
2581,
18,
2256,
326,
10738,
1347,
326,
1122,
1245,
353,
9919,
31,
2488,
326,
10654,
18,
1082,
202,
921,
26768,
33,
2282,
559,
18,
588,
1396,
12,
862,
7181,
30972,
1157,
1769,
1875,
202,
430,
261,
266,
9748,
422,
2438,
7181,
30972,
1157,
13,
9506,
202,
2463,
31,
1082,
202,
8830,
559,
18,
542,
1396,
12,
862,
7181,
30972,
1157,
16,
2438,
7181,
30972,
1157,
1769,
25083,
202,
19558,
618,
1379,
39,
6904,
33,
3130,
1379,
39,
6904,
12,
723,
39,
90,
1769,
1082,
202,
559,
8526,
618,
4628,
33,
3130,
4628,
12,
8830,
559,
16,
618,
1379,
39,
6904,
16,
10738,
1769,
1082,
202,
430,
261,
723,
4628,
422,
446,
13,
9506,
202,
2463,
31,
25083,
202,
559,
12499,
559,
33,
261,
559,
13,
10738,
18,
588,
37,
3902,
12341,
7675,
2640,
7607,
2326,
12,
8830,
559,
1769,
1082,
202,
1662,
13091,
23319,
33,
10738,
18,
588,
9053,
7675,
2704,
1662,
13091,
12,
81,
13767,
559,
1769,
25083,
202,
1884,
261,
474,
277,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
10738,
559,
3092,
12,
559,
3092,
22,
618,
39,
90,
16,
22416,
2802,
19618,
10738,
13,
288,
202,
202,
9053,
907,
756,
33,
618,
39,
90,
18,
588,
2655,
7675,
588,
907,
12,
21489,
18,
588,
2375,
10663,
202,
202,
430,
261,
2159,
1276,
1770,
597,
756,
18,
588,
3054,
1435,
1276,
1412,
13,
288,
1082,
202,
559,
2282,
559,
33,
261,
559,
13,
756,
18,
588,
3054,
5621,
25083,
202,
759,
6753,
10738,
777,
618,
1775,
316,
1245,
2581,
18,
2256,
326,
10738,
1347,
326,
1122,
1245,
353,
9919,
31,
2488,
326,
10654,
18,
1082,
202,
921,
26768,
33,
2282,
559,
18,
588,
1396,
12,
862,
7181,
30972,
1157,
1769,
1875,
202,
430,
261,
2
] |
server.allRepaintHex(legion.getCurrentHexLabel());
|
void doRecruit(Legion legion, Creature recruit, Creature recruiter) { // TODO Check for recruiter legality. legion.addCreature(recruit, true); MasterHex hex = legion.getCurrentHex(); int numRecruiters = 0; if (recruiter != null) { // Mark the recruiter(s) as visible. numRecruiters = numberOfRecruiterNeeded(recruiter, recruit, hex.getTerrain()); if (numRecruiters >= 1 && numRecruiters <= 3) { legion.revealCreatures(recruiter, numRecruiters); } } Log.event("Legion " + legion.getLongMarkerName() + " in " + hex.getDescription() + " recruits " + recruit.getName() + " with " + (numRecruiters == 0 ? "nothing" : numRecruiters + " " + (numRecruiters > 1 ? recruiter.getPluralName() : recruiter.getName()))); // Recruits are one to a customer. legion.setRecruitName(recruit.getName()); // XXX Handle repaints on client side. server.allRepaintHex(legion.getCurrentHexLabel()); reinforcing = false; }
|
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/ebfcac28d151da496298466aea1930d1ee25f551/Game.java/clean/Colossus/net/sf/colossus/server/Game.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
741,
426,
3353,
14945,
12,
8329,
285,
4553,
285,
16,
5799,
1231,
1950,
8653,
305,
16,
5799,
1231,
1950,
8653,
2165,
13,
565,
288,
3639,
368,
2660,
2073,
364,
1950,
8653,
2165,
4553,
7919,
18,
3639,
4553,
285,
18,
1289,
1996,
1231,
12,
266,
3353,
14945,
16,
638,
1769,
3639,
13453,
7037,
3827,
273,
4553,
285,
18,
588,
3935,
7037,
5621,
3639,
509,
818,
426,
3353,
14945,
414,
273,
374,
31,
3639,
309,
261,
266,
3353,
89,
2165,
480,
446,
13,
3639,
288,
5411,
368,
6622,
326,
1950,
8653,
2165,
12,
87,
13,
487,
6021,
18,
5411,
818,
426,
3353,
14945,
414,
273,
7922,
426,
3353,
89,
2165,
11449,
12,
266,
3353,
89,
2165,
16,
7734,
1950,
8653,
305,
16,
3827,
18,
588,
56,
264,
7596,
10663,
5411,
309,
261,
2107,
426,
3353,
14945,
414,
1545,
404,
597,
818,
426,
3353,
14945,
414,
1648,
890,
13,
5411,
288,
7734,
4553,
285,
18,
266,
24293,
1996,
2790,
12,
266,
3353,
89,
2165,
16,
818,
426,
3353,
14945,
414,
1769,
5411,
289,
3639,
289,
3639,
1827,
18,
2575,
2932,
8329,
285,
315,
397,
4553,
285,
18,
588,
3708,
7078,
461,
1435,
397,
315,
316,
315,
397,
5411,
3827,
18,
588,
3291,
1435,
397,
315,
1950,
8653,
1282,
315,
397,
1950,
8653,
305,
18,
17994,
1435,
397,
5411,
315,
598,
315,
397,
261,
2107,
426,
3353,
14945,
414,
422,
374,
692,
315,
30874,
6,
294,
5411,
818,
426,
3353,
14945,
414,
397,
315,
315,
397,
261,
2107,
426,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
741,
426,
3353,
14945,
12,
8329,
285,
4553,
285,
16,
5799,
1231,
1950,
8653,
305,
16,
5799,
1231,
1950,
8653,
2165,
13,
565,
288,
3639,
368,
2660,
2073,
364,
1950,
8653,
2165,
4553,
7919,
18,
3639,
4553,
285,
18,
1289,
1996,
1231,
12,
266,
3353,
14945,
16,
638,
1769,
3639,
13453,
7037,
3827,
273,
4553,
285,
18,
588,
3935,
7037,
5621,
3639,
509,
818,
426,
3353,
14945,
414,
273,
374,
31,
3639,
309,
261,
266,
3353,
89,
2165,
480,
446,
13,
3639,
288,
5411,
368,
6622,
326,
1950,
8653,
2165,
12,
87,
13,
487,
6021,
18,
5411,
818,
426,
3353,
14945,
414,
273,
7922,
426,
3353,
89,
2165,
11449,
12,
266,
3353,
89,
2165,
16,
7734,
1950,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.