rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
public void contextDestroyed(ServletContextEvent arg0) { | public void contextDestroyed(ServletContextEvent sce) { | public void contextDestroyed(ServletContextEvent arg0) { // Does nothing } | 47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/1ea2830cd6fa94de7199a14aef58e99a40937d03/TextFilterListener.java/clean/src/main/java/org/osaf/cosmo/jackrabbit/query/TextFilterListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
819,
28414,
12,
4745,
1042,
1133,
272,
311,
13,
288,
3639,
368,
9637,
5083,
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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Debug.error("ScenarioGraphicLoader: problem with location file: " + | Debug.error("ScenarioGraphicLoader: problem finding the location file: " + | public synchronized ScenarioGraphicList createData() { ScenarioGraphicList list = new ScenarioGraphicList(); Hashtable library = new Hashtable(); // Create location data if (locationFile != null && nameIndex != -1) { Debug.message("scenario", "Reading location file..."); try { CSVFile locations = new CSVFile(locationFile); locations.loadData(); Iterator records = locations.iterator(); while (records.hasNext()) { String name = null; String icon = null; Vector record = (Vector) records.next(); name = (String)record.elementAt(nameIndex); if (iconIndex != -1) { icon = (String)record.elementAt(iconIndex); } if (name != null) { ScenarioPoint location = new ScenarioPoint(name, icon); location.setShowName(showNames); drawingAttributes.setTo(location); library.put(name.intern(), location); list.add(location); } else { Debug.error("ScenaroGraphicLoader: no name to use to create location: " + name); } } } catch (MalformedURLException murle) { Debug.error("ScenarioGraphicLoader: problem with location file: " + locationFile); return list; } catch (ArrayIndexOutOfBoundsException aioobe) { Debug.error("ScenarioGraphicLoader: problem parsing location file: " + locationFile); } catch (NullPointerException npe) { Debug.error("ScenarioGraphicLoader (" + getName() + ") null pointer exception, most likely a problem finding the organization data file"); } } else { Debug.error("ScenarioGraphicLoader(" + getName() + "): Location file (" + locationFile + ") not configured."); return list; } // OK, got the locations built up, need to fill up the scenario // Create location data if (activityFile != null && activityNameIndex != -1 && latIndex != -1 && lonIndex != -1 && timeIndex != -1) { Debug.message("scenario", "Reading activity file..."); try { CSVFile activities = new CSVFile(activityFile); activities.loadData(); // numbers as strings == false Iterator records = activities.iterator(); while (records.hasNext()) { String name = null; float lat; float lon; long time; Vector record = (Vector) records.next(); name = record.elementAt(activityNameIndex).toString().intern(); try { lat = ((Double)record.elementAt(latIndex)).floatValue(); lon = ((Double)record.elementAt(lonIndex)).floatValue(); // parse time from string, ending up with // milliseconds from time epoch. String timeString = (String)record.elementAt(timeIndex); timeDate = timeFormat.parse(timeString); time = timeDate.getTime(); if (time < startTime) { startTime = time; } if (time > endTime) { endTime = time; } dataBounds.add((double)lon, (double)lat); if (name != null) { ScenarioPoint point = (ScenarioPoint)library.get(name); if (point != null) { TimeStamp ts = new TimeStamp(lat, lon, time); point.addTimeStamp(ts); } else { Debug.error("SenaroGraphicLoader: ScenarioPoint not found for " + name + ", entry: " + record); } } else { Debug.error("SenaroGraphicLoader: no name to use to create activity point: " + name); } } catch (ClassCastException cce) { Object obj0 = record.elementAt(activityNameIndex); Object obj1 = record.elementAt(latIndex); Object obj2 = record.elementAt(lonIndex); Object obj3 = record.elementAt(timeIndex); Debug.error( "ScenarioGraphicLoader(" + getName() + ") has problem with indexes in activity file for " + obj0 + " (" + obj0.getClass().getName() + ")" + ":\n\tlat index = " + latIndex + ", value = " + obj1 + " (" + obj1.getClass().getName() + ")\n\t lon index = " + lonIndex + ", value = " + obj2 + " (" + obj2.getClass().getName() + ")\n\t time index = " + timeIndex + ", value = " + obj3 + " (" + obj3.getClass().getName() + ")"); } catch (ParseException pe) { Debug.output("ScenarioGraphicLoader(" + getName() + ") has problem with time format. " + pe.getMessage()); } } } catch (MalformedURLException murle) { Debug.error("ScenarioGraphicLoader: problem with activity file: " + activityFile); return list; } catch (NullPointerException npe) { Debug.error("ScenarioGraphicLoader (" + getName() + ") null pointer exception, most likely a problem finding the activites data file"); } } else { Debug.error("ScenarioGraphicLoader(" + getName() + "): Activity file (" + activityFile + ") not configured."); return list; } this.time = startTime; Debug.message("scenario", "Reading files OK"); return list; } | 3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/96b1bb77f22226b8ff30eac5a3196e7150e17ac1/ScenarioGraphicLoader.java/buggy/src/openmap/com/bbn/openmap/graphicLoader/scenario/ScenarioGraphicLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
2850,
7754,
29459,
682,
752,
751,
1435,
288,
3639,
2850,
7754,
29459,
682,
666,
273,
394,
2850,
7754,
29459,
682,
5621,
3639,
18559,
5313,
273,
394,
18559,
5621,
3639,
368,
1788,
2117,
501,
3639,
309,
261,
3562,
812,
480,
446,
597,
5411,
508,
1016,
480,
300,
21,
13,
288,
5411,
4015,
18,
2150,
2932,
26405,
3113,
315,
15714,
2117,
585,
7070,
1769,
5411,
775,
288,
7734,
10381,
812,
7838,
273,
394,
10381,
812,
12,
3562,
812,
1769,
7734,
7838,
18,
945,
751,
5621,
7734,
4498,
3853,
273,
7838,
18,
9838,
5621,
7734,
1323,
261,
7094,
18,
5332,
2134,
10756,
288,
10792,
514,
508,
273,
446,
31,
10792,
514,
4126,
273,
446,
31,
10792,
5589,
1409,
273,
261,
5018,
13,
3853,
18,
4285,
5621,
10792,
508,
273,
261,
780,
13,
3366,
18,
2956,
861,
12,
529,
1016,
1769,
10792,
309,
261,
3950,
1016,
480,
300,
21,
13,
288,
13491,
4126,
273,
261,
780,
13,
3366,
18,
2956,
861,
12,
3950,
1016,
1769,
10792,
289,
10792,
309,
261,
529,
480,
446,
13,
288,
13491,
2850,
7754,
2148,
2117,
273,
394,
2850,
7754,
2148,
12,
529,
16,
4126,
1769,
13491,
2117,
18,
542,
5706,
461,
12,
4500,
1557,
1769,
13491,
16327,
2498,
18,
542,
774,
12,
3562,
1769,
13491,
5313,
18,
458,
12,
529,
18,
267,
798,
9334,
2117,
1769,
13491,
666,
18,
1289,
12,
3562,
1769,
10792,
289,
469,
288,
13491,
4015,
18,
1636,
2932,
1541,
6804,
83,
29459,
2886,
30,
1158,
508,
358,
999,
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,
377,
1071,
3852,
2850,
7754,
29459,
682,
752,
751,
1435,
288,
3639,
2850,
7754,
29459,
682,
666,
273,
394,
2850,
7754,
29459,
682,
5621,
3639,
18559,
5313,
273,
394,
18559,
5621,
3639,
368,
1788,
2117,
501,
3639,
309,
261,
3562,
812,
480,
446,
597,
5411,
508,
1016,
480,
300,
21,
13,
288,
5411,
4015,
18,
2150,
2932,
26405,
3113,
315,
15714,
2117,
585,
7070,
1769,
5411,
775,
288,
7734,
10381,
812,
7838,
273,
394,
10381,
812,
12,
3562,
812,
1769,
7734,
7838,
18,
945,
751,
5621,
7734,
4498,
3853,
273,
7838,
18,
9838,
5621,
7734,
1323,
261,
7094,
18,
5332,
2134,
10756,
288,
10792,
514,
508,
273,
446,
31,
10792,
514,
4126,
273,
446,
31,
10792,
5589,
1409,
273,
2
] |
mipmapLevel, | private static TextureData newTextureDataImpl(File file, int mipmapLevel, int internalFormat, int pixelFormat, String fileSuffix) throws IOException { for (Iterator iter = textureProviders.iterator(); iter.hasNext(); ) { TextureProvider provider = (TextureProvider) iter.next(); TextureData data = provider.newTextureData(file, mipmapLevel, internalFormat, pixelFormat, fileSuffix); if (data != null) { return data; } } return null; } | 47282 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47282/a295d66a868c897b71104f3dd4c94601c7463840/TextureIO.java/clean/src/classes/com/sun/opengl/utils/TextureIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
28582,
751,
394,
10967,
751,
2828,
12,
812,
585,
16,
4766,
7734,
509,
4766,
7734,
509,
2713,
1630,
16,
4766,
7734,
509,
4957,
1630,
16,
4766,
7734,
514,
585,
5791,
13,
1216,
1860,
288,
565,
364,
261,
3198,
1400,
273,
11428,
10672,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
262,
288,
1377,
28582,
2249,
2893,
273,
261,
10967,
2249,
13,
1400,
18,
4285,
5621,
1377,
28582,
751,
501,
273,
2893,
18,
2704,
10967,
751,
12,
768,
16,
28524,
4766,
2713,
1630,
16,
4766,
1171,
4957,
1630,
16,
4766,
1171,
585,
5791,
1769,
1377,
309,
261,
892,
480,
446,
13,
288,
3639,
327,
501,
31,
1377,
289,
565,
289,
565,
327,
446,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
760,
28582,
751,
394,
10967,
751,
2828,
12,
812,
585,
16,
4766,
7734,
509,
4766,
7734,
509,
2713,
1630,
16,
4766,
7734,
509,
4957,
1630,
16,
4766,
7734,
514,
585,
5791,
13,
1216,
1860,
288,
565,
364,
261,
3198,
1400,
273,
11428,
10672,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
262,
288,
1377,
28582,
2249,
2893,
273,
261,
10967,
2249,
13,
1400,
18,
4285,
5621,
1377,
28582,
751,
501,
273,
2893,
18,
2704,
10967,
751,
12,
768,
16,
28524,
4766,
2713,
1630,
16,
4766,
1171,
4957,
1630,
16,
4766,
1171,
585,
5791,
1769,
1377,
309,
261,
892,
480,
446,
13,
288,
3639,
327,
501,
31,
1377,
289,
565,
289,
565,
327,
446,
31,
225,
289,
2,
-100
] |
|
@NotNull @Validate(Integer.class) Set ids, Map options) | @NotNull @Validate(Long.class) Set ids, Map options) | public Map getCollectionCount(@NotNull String type, @NotNull String property, @NotNull @Validate(Integer.class) Set ids, Map options) { Map results = new HashMap(); String alphaNumeric = "^\\w+$"; String alphaNumericDotted = "^\\w[.\\w]+$"; // TODO annotations if (!type.matches(alphaNumericDotted)) { throw new IllegalArgumentException("Type argument to getCollectionCount may ONLY be alpha-numeric with dots ("+alphaNumericDotted+")"); } if (!property.matches(alphaNumeric)) { throw new IllegalArgumentException("Property argument to getCollectionCount may ONLY be alpha-numeric ("+alphaNumeric+")"); } if (iQuery.checkType(type)) { throw new IllegalArgumentException(type+"."+property+" is an unknown type."); } if (iQuery.checkProperty(type,property)) { throw new IllegalArgumentException(type+"."+property+" is an unknown property on type "+type); } String query = "select size(table."+property+") from "+type+" table where table.id = ?"; // FIXME: optimize by doing new list(id,size(table.property)) ... group by id for (Iterator iter = ids.iterator(); iter.hasNext();) { Integer id = (Integer) iter.next(); Integer count = (Integer) iQuery.queryUnique(query,new Object[]{id}); results.put(id,count); } return results; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1635,
12075,
1380,
26964,
5962,
514,
618,
16,
632,
5962,
514,
1272,
16,
2398,
632,
5962,
632,
4270,
12,
3708,
18,
1106,
13,
1000,
3258,
16,
1635,
702,
13,
565,
288,
7734,
1635,
1686,
273,
394,
4317,
5621,
3639,
514,
4190,
9902,
273,
15017,
1695,
91,
15,
12911,
31,
3639,
514,
4190,
9902,
10412,
2344,
273,
15017,
1695,
91,
63,
18,
1695,
91,
3737,
12911,
31,
368,
2660,
5617,
7734,
309,
16051,
723,
18,
8436,
12,
5429,
9902,
10412,
2344,
3719,
3639,
288,
5411,
604,
394,
2754,
2932,
559,
1237,
358,
12075,
1380,
2026,
20747,
506,
4190,
17,
5246,
598,
19522,
7566,
15,
5429,
9902,
10412,
2344,
9078,
2225,
1769,
3639,
289,
7734,
309,
16051,
4468,
18,
8436,
12,
5429,
9902,
3719,
3639,
288,
5411,
604,
394,
2754,
2932,
1396,
1237,
358,
12075,
1380,
2026,
20747,
506,
4190,
17,
5246,
7566,
15,
5429,
9902,
9078,
2225,
1769,
3639,
289,
13491,
309,
261,
77,
1138,
18,
1893,
559,
12,
723,
3719,
540,
288,
5411,
604,
394,
2754,
12,
723,
9078,
1199,
15,
4468,
9078,
353,
392,
5917,
618,
1199,
1769,
3639,
289,
7734,
309,
261,
77,
1138,
18,
1893,
1396,
12,
723,
16,
4468,
3719,
3639,
288,
5411,
604,
394,
2754,
12,
723,
9078,
1199,
15,
4468,
9078,
353,
392,
5917,
1272,
603,
618,
13773,
723,
1769,
3639,
289,
7734,
514,
843,
273,
315,
4025,
963,
12,
2121,
1199,
15,
4468,
15,
7923,
628,
13773,
723,
9078,
1014,
1625,
1014,
18,
350,
273,
692,
14432,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1635,
12075,
1380,
26964,
5962,
514,
618,
16,
632,
5962,
514,
1272,
16,
2398,
632,
5962,
632,
4270,
12,
3708,
18,
1106,
13,
1000,
3258,
16,
1635,
702,
13,
565,
288,
7734,
1635,
1686,
273,
394,
4317,
5621,
3639,
514,
4190,
9902,
273,
15017,
1695,
91,
15,
12911,
31,
3639,
514,
4190,
9902,
10412,
2344,
273,
15017,
1695,
91,
63,
18,
1695,
91,
3737,
12911,
31,
368,
2660,
5617,
7734,
309,
16051,
723,
18,
8436,
12,
5429,
9902,
10412,
2344,
3719,
3639,
288,
5411,
604,
394,
2754,
2932,
559,
1237,
358,
12075,
1380,
2026,
20747,
506,
4190,
17,
5246,
598,
19522,
7566,
15,
5429,
9902,
10412,
2344,
9078,
2225,
1769,
3639,
289,
7734,
309,
16051,
4468,
18,
2
] |
} | } | public void resetLastActionCount() { lastAction = null; lastActionCount = 0; } | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/e558666642895259956d98b00ac352973beb1d14/InputHandler.java/buggy/org/gjt/sp/jedit/gui/InputHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2715,
3024,
1803,
1380,
1435,
202,
95,
202,
202,
2722,
1803,
273,
446,
31,
202,
202,
2722,
1803,
1380,
273,
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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
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_t = __t359; | _t = __t363; | public final void accumulatestate(AST _t) throws RecognitionException { AST accumulatestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t359 = _t; AST tmp246_AST_in = (AST)_t; match(_t,ACCUMULATE); _t = _t.getFirstChild(); { _loop361: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { display_item(_t); _t = _retTree; } else { break _loop361; } } while (true); } state_end(_t); _t = _retTree; _t = __t359; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
8822,
270,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
8822,
270,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
4763,
29,
273,
389,
88,
31,
202,
202,
9053,
1853,
3247,
26,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
31414,
2799,
1506,
1777,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
67,
6498,
5718,
21,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
430,
14015,
67,
88,
18,
588,
559,
1435,
631,
1204,
67,
1726,
3719,
288,
9506,
202,
5417,
67,
1726,
24899,
88,
1769,
9506,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
8820,
389,
6498,
5718,
21,
31,
1082,
202,
97,
6862,
202,
97,
1323,
261,
3767,
1769,
202,
202,
97,
202,
202,
2019,
67,
409,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
67,
88,
273,
1001,
88,
4763,
29,
31,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
67,
1349,
2471,
273,
389,
88,
31,
202,
97,
2,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
8822,
270,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
8822,
270,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
4763,
29,
273,
389,
88,
31,
202,
202,
9053,
1853,
3247,
26,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
31414,
2799,
1506,
1777,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
67,
6498,
5718,
21,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
2
] |
if (selectedFileName != null) setDestinationValue(selectedFileName); } | if (selectedFileName != null) setDestinationValue(selectedFileName); } | protected void handleDestinationBrowseButtonPressed() { FileDialog dialog = new FileDialog(getContainer().getShell(), SWT.SAVE); dialog.setText(PreferencesMessages .getString("WizardPreferencesExportPage1.saveAs")); //$NON-NLS-1$ dialog.setFilterPath(getDestinationValue()); dialog.setFilterExtensions(new String[] { "*.epf" }); //$NON-NLS-1$ String selectedFileName = dialog.open(); if (selectedFileName != null) setDestinationValue(selectedFileName); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/07624c67770db65cb83e43199aa059a496edb575/WizardPreferencesPage.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
5683,
27304,
3616,
24624,
1435,
288,
202,
202,
812,
6353,
6176,
273,
394,
1387,
6353,
12,
588,
2170,
7675,
588,
13220,
9334,
348,
8588,
18,
25242,
1769,
202,
202,
12730,
18,
542,
1528,
12,
12377,
5058,
9506,
202,
18,
588,
780,
2932,
27130,
12377,
6144,
1964,
21,
18,
5688,
1463,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
12730,
18,
542,
1586,
743,
12,
588,
5683,
620,
10663,
202,
202,
12730,
18,
542,
1586,
7513,
12,
2704,
514,
8526,
288,
315,
11146,
881,
74,
6,
15549,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
780,
3170,
4771,
273,
6176,
18,
3190,
5621,
202,
202,
430,
261,
8109,
4771,
480,
446,
13,
1082,
202,
542,
5683,
620,
12,
8109,
4771,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
5683,
27304,
3616,
24624,
1435,
288,
202,
202,
812,
6353,
6176,
273,
394,
1387,
6353,
12,
588,
2170,
7675,
588,
13220,
9334,
348,
8588,
18,
25242,
1769,
202,
202,
12730,
18,
542,
1528,
12,
12377,
5058,
9506,
202,
18,
588,
780,
2932,
27130,
12377,
6144,
1964,
21,
18,
5688,
1463,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
12730,
18,
542,
1586,
743,
12,
588,
5683,
620,
10663,
202,
202,
12730,
18,
542,
1586,
7513,
12,
2704,
514,
8526,
288,
315,
11146,
881,
74,
6,
15549,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
780,
3170,
4771,
273,
6176,
18,
3190,
5621,
202,
202,
430,
261,
8109,
4771,
480,
446,
2
] |
JavaType mappedType = typeToJavaType(cArgType, true, machDesc); | JavaType mappedType = typeToJavaType(cArgType, true, curMachDesc); | private MethodBinding bindFunction(FunctionSymbol sym, JavaType containingType, Type containingCType) { MethodBinding binding = new MethodBinding(sym, containingType, containingCType); binding.setRenamedMethodName(cfg.getJavaMethodRename(sym.getName())); if (cfg.returnsString(binding.getName())) { PointerType prt = sym.getReturnType().asPointer(); if (prt == null || prt.getTargetType().asInt() == null || prt.getTargetType().getSize(machDesc) != 1) { throw new RuntimeException( "Cannot apply ReturnsString configuration directive to \"" + sym + "\". ReturnsString requires native method to have return type \"char *\""); } binding.setJavaReturnType(javaType(java.lang.String.class)); } else { binding.setJavaReturnType(typeToJavaType(sym.getReturnType(), false, machDesc)); } // List of the indices of the arguments in this function that should be // converted from byte[] to String List stringArgIndices = cfg.stringArguments(binding.getName()); for (int i = 0; i < sym.getNumArguments(); i++) { Type cArgType = sym.getArgumentType(i); JavaType mappedType = typeToJavaType(cArgType, true, machDesc); //System.out.println("C arg type -> \"" + cArgType + "\"" ); //System.out.println(" Java -> \"" + mappedType + "\"" ); // Take into account any ArgumentIsString configuration directives that apply if (stringArgIndices != null && stringArgIndices.contains(new Integer(i))) { //System.out.println("Forcing conversion of " + binding.getName() + " arg #" + i + " from byte[] to String "); if (mappedType.isCVoidPointerType() || mappedType.isCCharPointerType() || (mappedType.isArray() && mappedType.getJavaClass() == ArrayTypes.byteBufferArrayClass)) { // convert mapped type from void* and byte[] to String, or ByteBuffer[] to String[] if (mappedType.getJavaClass() == ArrayTypes.byteBufferArrayClass) { mappedType = javaType(ArrayTypes.stringArrayClass); } else { mappedType = javaType(String.class); } } else { throw new RuntimeException( "Cannot apply ArgumentIsString configuration directive to " + "argument " + i + " of \"" + sym + "\": argument type is not " + "a \"void*\", \"char *\", or \"char**\" equivalent"); } } binding.addJavaArgumentType(mappedType); //System.out.println("During binding of [" + sym + "], added mapping from C type: " + cArgType + " to Java type: " + mappedType); } //System.err.println("---> " + binding); //System.err.println(" ---> " + binding.getCSymbol()); return binding; } | 47282 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47282/875a3de8f54704604d006badf0f0747347319025/JavaEmitter.java/buggy/src/classes/com/sun/gluegen/JavaEmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
2985,
5250,
1993,
2083,
12,
2083,
5335,
5382,
16,
19694,
5110,
559,
4191,
559,
16,
19694,
1412,
4191,
39,
559,
13,
288,
565,
2985,
5250,
5085,
273,
394,
2985,
5250,
12,
8117,
16,
4191,
559,
16,
4191,
39,
559,
1769,
3639,
5085,
18,
542,
16290,
2808,
11666,
12,
7066,
18,
588,
5852,
1305,
16019,
12,
8117,
18,
17994,
1435,
10019,
3639,
309,
261,
7066,
18,
6154,
780,
12,
7374,
18,
17994,
1435,
3719,
288,
1377,
7107,
559,
20976,
273,
5382,
18,
588,
9102,
7675,
345,
4926,
5621,
1377,
309,
261,
683,
88,
422,
446,
747,
1850,
20976,
18,
588,
2326,
559,
7675,
345,
1702,
1435,
422,
446,
747,
1850,
20976,
18,
588,
2326,
559,
7675,
588,
1225,
12,
81,
497,
4217,
13,
480,
404,
13,
288,
3639,
604,
394,
3235,
12,
1850,
315,
4515,
2230,
2860,
780,
1664,
8655,
358,
11843,
397,
5382,
397,
1850,
7023,
18,
2860,
780,
4991,
6448,
707,
358,
1240,
327,
618,
1239,
3001,
380,
8530,
1769,
1377,
289,
1377,
5085,
18,
542,
5852,
9102,
12,
6290,
559,
12,
6290,
18,
4936,
18,
780,
18,
1106,
10019,
565,
289,
469,
288,
1377,
5085,
18,
542,
5852,
9102,
12,
723,
774,
31819,
12,
8117,
18,
588,
9102,
9334,
629,
16,
25046,
4217,
10019,
565,
289,
565,
368,
987,
434,
326,
4295,
434,
326,
1775,
316,
333,
445,
716,
1410,
506,
565,
368,
5970,
628,
1160,
8526,
358,
514,
565,
987,
533,
4117,
8776,
273,
2776,
18,
1080,
4628,
12,
7374,
18,
17994,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
2985,
5250,
1993,
2083,
12,
2083,
5335,
5382,
16,
19694,
5110,
559,
4191,
559,
16,
19694,
1412,
4191,
39,
559,
13,
288,
565,
2985,
5250,
5085,
273,
394,
2985,
5250,
12,
8117,
16,
4191,
559,
16,
4191,
39,
559,
1769,
3639,
5085,
18,
542,
16290,
2808,
11666,
12,
7066,
18,
588,
5852,
1305,
16019,
12,
8117,
18,
17994,
1435,
10019,
3639,
309,
261,
7066,
18,
6154,
780,
12,
7374,
18,
17994,
1435,
3719,
288,
1377,
7107,
559,
20976,
273,
5382,
18,
588,
9102,
7675,
345,
4926,
5621,
1377,
309,
261,
683,
88,
422,
446,
747,
1850,
20976,
18,
588,
2326,
559,
7675,
345,
1702,
1435,
422,
446,
747,
1850,
20976,
18,
588,
2326,
559,
7675,
588,
1225,
2
] |
if (x == null || x.equals("")) { if (y == null || y.equals("")) { return ""; } else { return y; } } else if (y == null || y.equals("")) { return x; } else { return x + ", " + y; } } | if (x == null || x.equals("")) { if (y == null || y.equals("")) { return ""; } else { return y; } } else if (y == null || y.equals("")) { return x; } else { return x + ", " + y; } } | private static String addLists(String x, String y) { if (x == null || x.equals("")) { if (y == null || y.equals("")) { return ""; } else { return y; } } else if (y == null || y.equals("")) { return x; } else { return x + ", " + y; } } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/XmlFileTask.java/clean/src/main/mondrian/resource/XmlFileTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
527,
7432,
12,
780,
619,
16,
514,
677,
13,
288,
202,
202,
430,
261,
92,
422,
446,
747,
619,
18,
14963,
2932,
6,
3719,
288,
1082,
202,
430,
261,
93,
422,
446,
747,
677,
18,
14963,
2932,
6,
3719,
288,
9506,
202,
2463,
1408,
31,
1082,
202,
97,
469,
288,
9506,
202,
2463,
677,
31,
1082,
202,
97,
202,
202,
97,
469,
309,
261,
93,
422,
446,
747,
677,
18,
14963,
2932,
6,
3719,
288,
1082,
202,
2463,
619,
31,
202,
202,
97,
469,
288,
1082,
202,
2463,
619,
397,
3104,
315,
397,
677,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
527,
7432,
12,
780,
619,
16,
514,
677,
13,
288,
202,
202,
430,
261,
92,
422,
446,
747,
619,
18,
14963,
2932,
6,
3719,
288,
1082,
202,
430,
261,
93,
422,
446,
747,
677,
18,
14963,
2932,
6,
3719,
288,
9506,
202,
2463,
1408,
31,
1082,
202,
97,
469,
288,
9506,
202,
2463,
677,
31,
1082,
202,
97,
202,
202,
97,
469,
309,
261,
93,
422,
446,
747,
677,
18,
14963,
2932,
6,
3719,
288,
1082,
202,
2463,
619,
31,
202,
202,
97,
469,
288,
1082,
202,
2463,
619,
397,
3104,
315,
397,
677,
31,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
boolean enable = !ICDTLaunchConfigurationConstants.DEBUGGER_MODE_CORE.equals( configuration.getAttribute( ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_START_MODE, "" ) ); | boolean enable = !ICDTLaunchConfigurationConstants.DEBUGGER_MODE_CORE.equals( configuration.getAttribute( ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_START_MODE, "" ) ); | protected void initializeButtons( ILaunchConfiguration configuration ) { try { boolean enable = !ICDTLaunchConfigurationConstants.DEBUGGER_MODE_CORE.equals( configuration.getAttribute( ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_START_MODE, "" ) ); if ( fAutoSoLibButton != null ) fAutoSoLibButton.setEnabled( enable ); if ( fStopOnSolibEventsButton != null ) fStopOnSolibEventsButton.setEnabled( enable ); } catch( CoreException e ) { } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/ea9c35588917a0214a5924a0d7080932ed7fc249/GDBSolibBlock.java/clean/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBSolibBlock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4046,
14388,
12,
467,
9569,
1750,
1664,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
6494,
4237,
273,
401,
2871,
40,
5967,
4760,
1750,
2918,
18,
9394,
3101,
67,
7038,
67,
15715,
18,
14963,
12,
1664,
18,
588,
1499,
12,
467,
10160,
5967,
4760,
1750,
2918,
18,
12043,
67,
9394,
3101,
67,
7570,
67,
7038,
16,
1408,
262,
11272,
1082,
202,
430,
261,
284,
4965,
10225,
5664,
3616,
480,
446,
262,
9506,
202,
74,
4965,
10225,
5664,
3616,
18,
542,
1526,
12,
4237,
11272,
1082,
202,
430,
261,
284,
4947,
1398,
20608,
495,
3783,
3616,
480,
446,
262,
9506,
202,
74,
4947,
1398,
20608,
495,
3783,
3616,
18,
542,
1526,
12,
4237,
11272,
202,
202,
97,
202,
202,
14683,
12,
30015,
425,
262,
202,
202,
95,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4046,
14388,
12,
467,
9569,
1750,
1664,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
6494,
4237,
273,
401,
2871,
40,
5967,
4760,
1750,
2918,
18,
9394,
3101,
67,
7038,
67,
15715,
18,
14963,
12,
1664,
18,
588,
1499,
12,
467,
10160,
5967,
4760,
1750,
2918,
18,
12043,
67,
9394,
3101,
67,
7570,
67,
7038,
16,
1408,
262,
11272,
1082,
202,
430,
261,
284,
4965,
10225,
5664,
3616,
480,
446,
262,
9506,
202,
74,
4965,
10225,
5664,
3616,
18,
542,
1526,
12,
4237,
11272,
1082,
202,
430,
261,
284,
4947,
1398,
20608,
495,
3783,
3616,
480,
446,
262,
9506,
202,
74,
4947,
1398,
20608,
495,
3783,
3616,
18,
542,
1526,
12,
4237,
2
] |
IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2801, IEJBValidationContext.ERROR, bean, this); | IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2801, IEJBValidationContext.ERROR, bean, this); | public void validateEJBNameElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { if (bean == null) { return; } String name = bean.getName(); if ((name == null) || (name.equals(""))) { //$NON-NLS-1$ IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2801, IEJBValidationContext.ERROR, bean, this); vc.addMessage(message); } if(bean.isContainerManagedEntity() && bean.getVersionID() >= J2EEVersionConstants.EJB_2_0_ID) { if(!ValidationRuleUtility.isValidJavaIdentifier(name)) { IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2813, IEJBValidationContext.WARNING, bean, this); vc.addMessage(message); } // p. 466 // "The name for an entity bean with cmp-version 2.x must conform // to the lexical rules for an NMTOKEN. The name for an entity bean with // cmp-version 2.x must not be a reserved literal in EJB QL. if(ValidationRuleUtility.isReservedWord(name)) { IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2859, IEJBValidationContext.INFO, bean, this); vc.addMessage(message); } } } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/18a2a3b489fef7cefb688b690beaeaf64c4480fd/EnterpriseBean20VRule.java/buggy/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EnterpriseBean20VRule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1954,
22719,
461,
1046,
12,
8732,
8877,
4354,
1042,
12802,
16,
12157,
10813,
18024,
10813,
16,
26919,
3381,
3931,
13,
288,
202,
202,
430,
261,
14496,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
780,
508,
273,
3931,
18,
17994,
5621,
202,
202,
430,
14015,
529,
422,
446,
13,
747,
261,
529,
18,
14963,
2932,
6,
20349,
288,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
45,
1079,
883,
273,
2350,
6497,
18,
588,
6497,
7675,
24906,
12,
4227,
16,
467,
1079,
2244,
41,
10649,
3462,
2918,
18,
1792,
47,
46,
6030,
1611,
16,
10897,
8877,
4354,
1042,
18,
3589,
16,
3931,
16,
333,
1769,
1082,
202,
4227,
18,
1289,
1079,
12,
2150,
1769,
202,
202,
97,
9506,
202,
430,
12,
14496,
18,
291,
2170,
10055,
1943,
1435,
597,
3931,
18,
588,
1444,
734,
1435,
1545,
804,
22,
9383,
1444,
2918,
18,
22719,
67,
22,
67,
20,
67,
734,
13,
288,
6862,
202,
430,
12,
5,
4354,
2175,
6497,
18,
26810,
5852,
3004,
12,
529,
3719,
288,
9506,
202,
45,
1079,
883,
273,
2350,
6497,
18,
588,
6497,
7675,
24906,
12,
4227,
16,
467,
1079,
2244,
41,
10649,
3462,
2918,
18,
1792,
47,
46,
6030,
3437,
16,
10897,
8877,
4354,
1042,
18,
9511,
16,
3931,
16,
333,
1769,
9506,
202,
4227,
18,
1289,
1079,
12,
2150,
1769,
1082,
202,
97,
9506,
202,
759,
293,
18,
1059,
6028,
1082,
202,
759,
315,
1986,
508,
364,
392,
1522,
3931,
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,
1954,
22719,
461,
1046,
12,
8732,
8877,
4354,
1042,
12802,
16,
12157,
10813,
18024,
10813,
16,
26919,
3381,
3931,
13,
288,
202,
202,
430,
261,
14496,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
780,
508,
273,
3931,
18,
17994,
5621,
202,
202,
430,
14015,
529,
422,
446,
13,
747,
261,
529,
18,
14963,
2932,
6,
20349,
288,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
45,
1079,
883,
273,
2350,
6497,
18,
588,
6497,
7675,
24906,
12,
4227,
16,
467,
1079,
2244,
41,
10649,
3462,
2918,
18,
1792,
47,
46,
6030,
1611,
16,
10897,
8877,
4354,
1042,
18,
3589,
16,
3931,
16,
333,
1769,
1082,
202,
4227,
18,
2
] |
super.write(b, off, len); written = written+len; | out.write(b, off, len); written += len; | public synchronized void write(byte b[], int off, int len) throws IOException { super.write(b, off, len); written = written+len;} | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/95d260b512472e38ee918e1baed66dc4a74bb560/DataOutputStream.java/clean/libraries/javalib/java/io/DataOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3852,
918,
1045,
12,
7229,
324,
63,
6487,
509,
3397,
16,
509,
562,
13,
1216,
1860,
288,
202,
9565,
18,
2626,
12,
70,
16,
3397,
16,
562,
1769,
202,
9748,
273,
5941,
15,
1897,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3852,
918,
1045,
12,
7229,
324,
63,
6487,
509,
3397,
16,
509,
562,
13,
1216,
1860,
288,
202,
9565,
18,
2626,
12,
70,
16,
3397,
16,
562,
1769,
202,
9748,
273,
5941,
15,
1897,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
out = new LineWriter(new FileWriter(impliedDotFile)); | out = new LineWriter(new FileOutputStream(impliedDotFile)); | public static void main(String[] argv) { try { List args = new ArrayList(Arrays.asList(argv)); // can't mod the original if (args.size() == 0 || args.remove("-h") || args.remove("-?") || args.remove("?") || args.remove("/?")) { dumpUsage(null, false, false); System.exit(1); } if (args.remove("-help")) { dumpUsage(null, true, false); System.exit(1); } if (args.remove("-dbhelp")) { dumpUsage(null, true, true); System.exit(1); } long start = System.currentTimeMillis(); long startGraphingDetails = start; long startSummarizing = start; // allow '=' in param specs args = fixupArgs(args); final boolean generateHtml = !args.remove("-nohtml"); final boolean includeImpliedConstraints = !args.remove("-noimplied"); String outputDirName = getParam(args, "-o", true, false); // quoting command-line arguments sometimes leaves the trailing " if (outputDirName.endsWith("\"")) outputDirName = outputDirName.substring(0, outputDirName.length() - 1); File outputDir = new File(outputDirName).getCanonicalFile(); if (!outputDir.isDirectory()) { if (!outputDir.mkdir()) { System.err.println("Failed to create directory '" + outputDir + "'"); System.exit(2); } } if (generateHtml) { new File(outputDir, "tables").mkdir(); new File(outputDir, "graphs/summary").mkdirs(); } String dbType = getParam(args, "-t", false, false); if (dbType == null) dbType = "ora"; StringBuffer propertiesLoadedFrom = new StringBuffer(); Properties properties = getDbProperties(dbType, propertiesLoadedFrom); String user = getParam(args, "-u", true, false); String password = getParam(args, "-p", false, false); String schema = null; try { schema = getParam(args, "-s", false, true); } catch (Exception schemaNotSpecified) { } String classpath = getParam(args, "-cp", false, false); String css = getParam(args, "-css", false, false); if (css == null) css = "schemaSpy.css"; int maxDbThreads = getMaxDbThreads(args, properties); if (!args.remove("-nologo")) { // nasty hack, but passing this info everywhere churns my stomach System.setProperty("sourceforgelogo", "true"); } Pattern exclusions; String exclude = getParam(args, "-i", false, false); if (exclude != null) { exclusions = Pattern.compile(exclude); } else { exclusions = Pattern.compile("[^.]"); // match nothing } ConnectionURLBuilder urlBuilder = null; try { urlBuilder = new ConnectionURLBuilder(dbType, args, properties); } catch (IllegalArgumentException badParam) { System.err.println(badParam.getMessage()); System.exit(1); } String dbName = urlBuilder.getDbName(); if (args.size() != 0) { System.out.print("Warning: Unrecognized option(s):"); for (Iterator iter = args.iterator(); iter.hasNext(); ) { System.out.print(" " + iter.next()); } System.out.println(); } if (generateHtml) StyleSheet.init(new BufferedReader(getStyleSheet(css))); String driverClass = properties.getProperty("driver"); String driverPath = properties.getProperty("driverPath"); if (classpath != null) driverPath = classpath + File.pathSeparator + driverPath; Connection connection = getConnection(user, password, urlBuilder.getConnectionURL(), driverClass, driverPath, propertiesLoadedFrom.toString()); DatabaseMetaData meta = connection.getMetaData(); if (schema == null && meta.supportsSchemasInTableDefinitions()) { schema = user; } if (generateHtml) { System.out.println("Connected to " + meta.getDatabaseProductName() + " - " + meta.getDatabaseProductVersion()); System.out.println(); System.out.print("Gathering schema details"); } // // create the spy // SchemaSpy spy = new SchemaSpy(connection, meta, dbName, schema, properties, maxDbThreads); Database db = spy.getDatabase(); LineWriter out; Collection tables = new ArrayList(db.getTables()); tables.addAll(db.getViews()); if (tables.isEmpty()) { dumpNoTablesMessage(schema, user, meta); System.exit(2); }// DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();// DocumentBuilder builder = factory.newDocumentBuilder();// Document document = builder.newDocument();// Element schemaNode = document.createElement("schema");// document.appendChild(schemaNode);// if (schema != null)// DOMUtil.appendAttribute(schemaNode, "name", schema);// DOMUtil.appendAttribute(schemaNode, "databaseType", db.getDatabaseProduct()); if (generateHtml) { startSummarizing = System.currentTimeMillis(); System.out.println("(" + (startSummarizing - start) / 1000 + "sec)"); System.out.print("Writing/graphing summary"); System.out.print("."); File graphsDir = new File(outputDir, "graphs/summary"); String dotBaseFilespec = "relationships"; out = new LineWriter(new FileWriter(new File(graphsDir, dotBaseFilespec + ".real.compact.dot"))); WriteStats stats = new WriteStats(exclusions, includeImpliedConstraints); DotFormatter.getInstance().writeRealRelationships(tables, true, stats, out); boolean hasRelationships = stats.getNumTablesWritten() > 0 || stats.getNumViewsWritten() > 0; stats = new WriteStats(stats); out.close(); if (hasRelationships) { System.out.print("."); out = new LineWriter(new FileWriter(new File(graphsDir, dotBaseFilespec + ".real.large.dot"))); DotFormatter.getInstance().writeRealRelationships(tables, false, stats, out); stats = new WriteStats(stats); out.close(); } // getting implied constraints has a side-effect of associating the parent/child tables, so don't do it // here unless they want that behavior List impliedConstraints = null; if (includeImpliedConstraints) impliedConstraints = DBAnalyzer.getImpliedConstraints(tables); else impliedConstraints = new ArrayList(); List orphans = DBAnalyzer.getOrphans(tables); boolean hasOrphans = !orphans.isEmpty() && Dot.getInstance().isValid(); if (hasRelationships) { System.out.print("."); File impliedDotFile = new File(graphsDir, dotBaseFilespec + ".implied.compact.dot"); out = new LineWriter(new FileWriter(impliedDotFile)); stats = new WriteStats(exclusions, includeImpliedConstraints); DotFormatter.getInstance().writeAllRelationships(tables, true, stats, out); boolean hasImplied = stats.wroteImplied(); Set excludedColumns = stats.getExcludedColumns(); stats = new WriteStats(stats); out.close(); if (hasImplied) { impliedDotFile = new File(graphsDir, dotBaseFilespec + ".implied.large.dot"); out = new LineWriter(new FileWriter(impliedDotFile)); DotFormatter.getInstance().writeAllRelationships(tables, false, stats, out); stats = new WriteStats(stats); out.close(); } else { impliedDotFile.delete(); } out = new LineWriter(new FileWriter(new File(outputDir, dotBaseFilespec + ".html"))); hasRelationships = HtmlGraphFormatter.getInstance().write(db, graphsDir, dotBaseFilespec, hasOrphans, hasImplied, excludedColumns, out); out.close(); } System.out.print("."); dotBaseFilespec = "utilities"; out = new LineWriter(new FileWriter(new File(outputDir, dotBaseFilespec + ".html"))); HtmlGraphFormatter.getInstance().writeOrphans(db, orphans, hasRelationships, graphsDir, out); stats = new WriteStats(stats); out.close(); System.out.print("."); out = new LineWriter(new FileWriter(new File(outputDir, "index.html")), 64 * 1024); HtmlMainIndexFormatter.getInstance().write(db, tables, hasRelationships, hasOrphans, out); stats = new WriteStats(stats); out.close(); System.out.print("."); List constraints = DBAnalyzer.getForeignKeyConstraints(tables); out = new LineWriter(new FileWriter(new File(outputDir, "constraints.html")), 256 * 1024); HtmlConstraintIndexFormatter constraintIndexFormatter = HtmlConstraintIndexFormatter.getInstance(); constraintIndexFormatter.write(db, constraints, tables, hasRelationships, hasOrphans, out); stats = new WriteStats(stats); out.close(); System.out.print("."); out = new LineWriter(new FileWriter(new File(outputDir, "anomalies.html")), 16 * 1024); HtmlAnomaliesFormatter.getInstance().write(db, tables, impliedConstraints, hasRelationships, hasOrphans, out); stats = new WriteStats(stats); out.close(); System.out.print("."); out = new LineWriter(new FileWriter(new File(outputDir, "columns.html")), 16 * 1024); HtmlColumnsFormatter.getInstance().write(db, tables, hasRelationships, hasOrphans, out); stats = new WriteStats(stats); out.close(); startGraphingDetails = System.currentTimeMillis(); System.out.println("(" + (startGraphingDetails - startSummarizing) / 1000 + "sec)"); System.out.print("Writing/graphing results"); HtmlTableFormatter tableFormatter = HtmlTableFormatter.getInstance(); for (Iterator iter = tables.iterator(); iter.hasNext(); ) { System.out.print('.'); Table table = (Table)iter.next(); out = new LineWriter(new FileWriter(new File(outputDir, "tables/" + table.getName() + ".html")), 24 * 1024); tableFormatter.write(db, table, hasRelationships, hasOrphans, outputDir, stats, out); stats = new WriteStats(stats); out.close();// XmlTableFormatter.getInstance().appendTable(schemaNode, table, outputDir); } out = new LineWriter(new FileWriter(new File(outputDir, "schemaSpy.css"))); StyleSheet.getInstance().write(out); out.close(); out = new LineWriter(new FileWriter(new File(outputDir, "schemaSpy.js"))); JavaScriptFormatter.getInstance().write(out); out.close(); }// out = new LineWriter(new FileWriter(new File(outputDir, "schemaSpy.xml")), 24 * 1024);// document.getDocumentElement().normalize();// DOMUtil.printDOM(document, out);// out.close(); List recursiveConstraints = new ArrayList(); // side effect is that the RI relationships get trashed // also populates the recursiveConstraints collection List orderedTables = spy.sortTablesByRI(recursiveConstraints); out = new LineWriter(new FileWriter(new File(outputDir, "insertionOrder.txt")), 16 * 1024); TextFormatter.getInstance().write(db, orderedTables, false, out); out.close(); out = new LineWriter(new FileWriter(new File(outputDir, "deletionOrder.txt")), 16 * 1024); Collections.reverse(orderedTables); TextFormatter.getInstance().write(db, orderedTables, false, out); out.close(); /* we'll eventually want to put this functionality back in with a * database independent implementation File constraintsFile = new File(outputDir, "removeRecursiveConstraints.sql"); constraintsFile.delete(); if (!recursiveConstraints.isEmpty()) { out = new LineWriter(new FileWriter(constraintsFile), 4 * 1024); writeRemoveRecursiveConstraintsSql(recursiveConstraints, schema, out); out.close(); } constraintsFile = new File(outputDir, "restoreRecursiveConstraints.sql"); constraintsFile.delete(); if (!recursiveConstraints.isEmpty()) { out = new LineWriter(new FileWriter(constraintsFile), 4 * 1024); writeRestoreRecursiveConstraintsSql(recursiveConstraints, schema, out); out.close(); } */ if (generateHtml) { long end = System.currentTimeMillis(); System.out.println("(" + (end - startGraphingDetails) / 1000 + "sec)"); System.out.println("Wrote relationship details of " + tables.size() + " tables/views to directory '" + new File(outputDirName) + "' in " + (end - start) / 1000 + " seconds."); System.out.println("Start with " + new File(outputDirName, "index.html")); } } catch (Exception exc) { System.err.println(); exc.printStackTrace(); } } | 49072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49072/a75d0134d8ff720e2fd347527018dd7ed7698d92/Main.java/clean/src/net/sourceforge/schemaspy/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
5261,
13,
288,
3639,
775,
288,
5411,
987,
833,
273,
394,
2407,
12,
12726,
18,
345,
682,
12,
19485,
10019,
368,
848,
1404,
681,
326,
2282,
5411,
309,
261,
1968,
18,
1467,
1435,
422,
374,
747,
833,
18,
4479,
2932,
17,
76,
7923,
747,
833,
18,
4479,
2932,
17,
7225,
13,
747,
833,
18,
4479,
2932,
7225,
13,
747,
833,
18,
4479,
2932,
19,
7225,
3719,
288,
7734,
4657,
5357,
12,
2011,
16,
629,
16,
629,
1769,
7734,
2332,
18,
8593,
12,
21,
1769,
5411,
289,
5411,
309,
261,
1968,
18,
4479,
2932,
17,
5201,
6,
3719,
288,
7734,
4657,
5357,
12,
2011,
16,
638,
16,
629,
1769,
7734,
2332,
18,
8593,
12,
21,
1769,
5411,
289,
5411,
309,
261,
1968,
18,
4479,
2932,
17,
1966,
5201,
6,
3719,
288,
7734,
4657,
5357,
12,
2011,
16,
638,
16,
638,
1769,
7734,
2332,
18,
8593,
12,
21,
1769,
5411,
289,
5411,
1525,
787,
273,
2332,
18,
2972,
28512,
5621,
5411,
1525,
787,
4137,
310,
3790,
273,
787,
31,
5411,
1525,
787,
3495,
3684,
6894,
273,
787,
31,
5411,
368,
1699,
5214,
316,
579,
10607,
5411,
833,
273,
2917,
416,
2615,
12,
1968,
1769,
5411,
727,
1250,
2103,
4353,
273,
401,
1968,
18,
4479,
2932,
17,
2135,
2620,
8863,
5411,
727,
1250,
2341,
2828,
2092,
4878,
273,
401,
1968,
18,
4479,
2932,
17,
2135,
381,
3110,
8863,
5411,
514,
21412,
461,
273,
9027,
12,
1968,
16,
3701,
83,
3113,
638,
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,
377,
1071,
760,
918,
2774,
12,
780,
8526,
5261,
13,
288,
3639,
775,
288,
5411,
987,
833,
273,
394,
2407,
12,
12726,
18,
345,
682,
12,
19485,
10019,
368,
848,
1404,
681,
326,
2282,
5411,
309,
261,
1968,
18,
1467,
1435,
422,
374,
747,
833,
18,
4479,
2932,
17,
76,
7923,
747,
833,
18,
4479,
2932,
17,
7225,
13,
747,
833,
18,
4479,
2932,
7225,
13,
747,
833,
18,
4479,
2932,
19,
7225,
3719,
288,
7734,
4657,
5357,
12,
2011,
16,
629,
16,
629,
1769,
7734,
2332,
18,
8593,
12,
21,
1769,
5411,
289,
5411,
309,
261,
1968,
18,
4479,
2932,
17,
5201,
6,
3719,
288,
7734,
4657,
5357,
12,
2011,
16,
638,
16,
629,
1769,
7734,
2332,
18,
2
] |
protected ObservableSet(Realm realm, Set wrappedSet, Object elementType) { super(realm); this.wrappedSet = wrappedSet; this.elementType = elementType; | protected ObservableSet(Set wrappedSet, Object elementType) { this(Realm.getDefault(), wrappedSet, elementType); | protected ObservableSet(Realm realm, Set wrappedSet, Object elementType) { super(realm); this.wrappedSet = wrappedSet; this.elementType = elementType; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/6aecdb31231a8602dbf72944625703c440949c78/ObservableSet.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/set/ObservableSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4310,
694,
12,
22545,
11319,
16,
1000,
5805,
694,
16,
1033,
21427,
13,
288,
202,
202,
9565,
12,
24056,
1769,
202,
202,
2211,
18,
18704,
694,
273,
5805,
694,
31,
202,
202,
2211,
18,
2956,
559,
273,
21427,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4310,
694,
12,
22545,
11319,
16,
1000,
5805,
694,
16,
1033,
21427,
13,
288,
202,
202,
9565,
12,
24056,
1769,
202,
202,
2211,
18,
18704,
694,
273,
5805,
694,
31,
202,
202,
2211,
18,
2956,
559,
273,
21427,
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
] |
RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_plus(other); } return bigNorm(getRuby(), getValue().add(bigIntValue(other))); } | RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_plus(other); } return bigNorm(getRuby(), getValue().add(bigIntValue(other))); } | public RubyNumeric op_plus(RubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_plus(other); } return bigNorm(getRuby(), getValue().add(bigIntValue(other))); } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/1cc89bd397c0f049e6fa3045916fd6d9a3cdada8/RubyBignum.java/buggy/org/jruby/RubyBignum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
10103,
12,
54,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
54,
10340,
9334,
16097,
620,
1435,
2934,
556,
67,
10103,
12,
3011,
1769,
3639,
289,
3639,
327,
5446,
14624,
12,
588,
54,
10340,
9334,
2366,
7675,
1289,
12,
14002,
1702,
620,
12,
3011,
3719,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
10103,
12,
54,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
54,
10340,
9334,
16097,
620,
1435,
2934,
556,
67,
10103,
12,
3011,
1769,
3639,
289,
3639,
327,
5446,
14624,
12,
588,
54,
10340,
9334,
2366,
7675,
1289,
12,
14002,
1702,
620,
12,
3011,
3719,
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
] |
servant.removeCodomainMap(mapCtx); | servant.setActive(w, active); | public void doCall() { servant.removeCodomainMap(mapCtx); } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/de5b83ecccd54946c2125525e83cea40c4c4dd36/RenderingControlProxy.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
741,
1477,
1435,
288,
4697,
202,
550,
7445,
18,
4479,
29633,
1530,
863,
12,
1458,
6442,
1769,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
741,
1477,
1435,
288,
4697,
202,
550,
7445,
18,
4479,
29633,
1530,
863,
12,
1458,
6442,
1769,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
bug = BugzillaRepositoryUtil.getBug(hit.getServer(), hit.getId()); | bug = BugzillaRepositoryUtil.getBug(hit.getRepository(), hit.getId()); | public BugReport getBug() throws MalformedURLException, LoginException, IOException { if (bug == null) { // get the bug report bug = BugzillaRepositoryUtil.getBug(hit.getServer(), hit.getId()); } return bug; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b380ea052e535a9796ce74a73e94c971859b45d0/BugzillaReportNode.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaReportNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16907,
4820,
2882,
637,
1435,
1216,
20710,
16,
11744,
503,
16,
1860,
288,
202,
202,
430,
261,
925,
422,
446,
13,
288,
1082,
202,
759,
336,
326,
7934,
2605,
1082,
202,
925,
273,
16907,
15990,
3305,
1304,
18,
588,
19865,
12,
15989,
18,
588,
2081,
9334,
6800,
18,
26321,
10663,
202,
202,
97,
202,
202,
2463,
7934,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16907,
4820,
2882,
637,
1435,
1216,
20710,
16,
11744,
503,
16,
1860,
288,
202,
202,
430,
261,
925,
422,
446,
13,
288,
1082,
202,
759,
336,
326,
7934,
2605,
1082,
202,
925,
273,
16907,
15990,
3305,
1304,
18,
588,
19865,
12,
15989,
18,
588,
2081,
9334,
6800,
18,
26321,
10663,
202,
202,
97,
202,
202,
2463,
7934,
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
] |
return Argo.localize("UMLMenu", "dialog.title.add-associated-usecases"); } | return Argo.localize("UMLMenu", "dialog.title.add-associated-usecases"); } | protected String getAddDialogTitle() { return Argo.localize("UMLMenu", "dialog.title.add-associated-usecases"); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/UMLUseCaseAssociationListModel.java/clean/src_new/org/argouml/uml/ui/behavior/use_cases/UMLUseCaseAssociationListModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
336,
986,
6353,
4247,
1435,
288,
202,
202,
2463,
1201,
3240,
18,
3729,
554,
2932,
57,
1495,
4599,
3113,
315,
12730,
18,
2649,
18,
1289,
17,
28441,
17,
1202,
22186,
8863,
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,
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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Picture p = mAlbum.getPicture( index ); | Picture p = getCurrentAlbum().getPicture( index ); | public Component getListCellRendererComponent( JList list, Object value, int index, boolean selected, boolean hasFocus ) { super.getListCellRendererComponent( list, value, index, selected, hasFocus ); if (value != null && index != -1) { Picture p = mAlbum.getPicture( index ); File f = p.getSource(); if ( GalleryRemote.getInstance().properties.getShowThumbnails() ) { ImageIcon icon = getThumbnail( p ); setIcon( icon ); setIconTextGap( 4 + GalleryRemote.getInstance().properties.getThumbnailSize().width - icon.getIconWidth() ); } StringBuffer text = new StringBuffer(); text.append("<html><p>"); text.append(f.getName()); if ( GalleryRemote.getInstance().properties.getShowPath() ) { text.append(" [").append(f.getParent()).append("]</p>"); } if (p.getCaption() != null) { text.append("<p><font color=\"gray\">").append(p.getEscapedCaption()).append("</font></p>"); } text.append("</html>"); //Log.log(Log.TRACE, MODULE, text.toString()); setText( text.toString() ); } else { setText("dummy"); } return this; } | 9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/d38b36bd8d592825505f09f643524173c9dfac53/MainFrame.java/buggy/com/gallery/GalleryRemote/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
5435,
10033,
4020,
6747,
1841,
12,
9506,
202,
46,
682,
666,
16,
1033,
460,
16,
509,
770,
16,
9506,
202,
6494,
3170,
16,
1250,
711,
9233,
262,
288,
1082,
202,
9565,
18,
588,
682,
4020,
6747,
1841,
12,
666,
16,
460,
16,
770,
16,
3170,
16,
711,
9233,
11272,
1082,
202,
430,
261,
1132,
480,
446,
597,
770,
480,
300,
21,
13,
288,
9506,
202,
24061,
293,
273,
312,
30330,
18,
588,
24061,
12,
770,
11272,
9506,
202,
812,
284,
273,
293,
18,
588,
1830,
5621,
9506,
202,
430,
261,
31398,
5169,
18,
588,
1442,
7675,
4738,
18,
588,
5706,
16270,
87,
1435,
262,
288,
6862,
202,
2040,
5554,
4126,
273,
336,
16270,
12,
293,
11272,
6862,
202,
542,
5554,
12,
4126,
11272,
6862,
202,
542,
5554,
1528,
14001,
12,
1059,
397,
31398,
5169,
18,
588,
1442,
7675,
4738,
18,
588,
16270,
1225,
7675,
2819,
300,
4126,
18,
588,
5554,
2384,
1435,
11272,
9506,
202,
97,
9506,
202,
780,
1892,
977,
273,
394,
6674,
5621,
9506,
202,
955,
18,
6923,
2932,
32,
2620,
4438,
84,
2984,
1769,
9506,
202,
955,
18,
6923,
12,
74,
18,
17994,
10663,
9506,
202,
430,
261,
31398,
5169,
18,
588,
1442,
7675,
4738,
18,
588,
5706,
743,
1435,
262,
288,
6862,
202,
955,
18,
6923,
2932,
8247,
2934,
6923,
12,
74,
18,
588,
3054,
1435,
2934,
6923,
2932,
65,
1757,
84,
2984,
1769,
9506,
202,
97,
9506,
202,
430,
261,
84,
18,
588,
21158,
1435,
480,
446,
13,
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,
3196,
202,
482,
5435,
10033,
4020,
6747,
1841,
12,
9506,
202,
46,
682,
666,
16,
1033,
460,
16,
509,
770,
16,
9506,
202,
6494,
3170,
16,
1250,
711,
9233,
262,
288,
1082,
202,
9565,
18,
588,
682,
4020,
6747,
1841,
12,
666,
16,
460,
16,
770,
16,
3170,
16,
711,
9233,
11272,
1082,
202,
430,
261,
1132,
480,
446,
597,
770,
480,
300,
21,
13,
288,
9506,
202,
24061,
293,
273,
312,
30330,
18,
588,
24061,
12,
770,
11272,
9506,
202,
812,
284,
273,
293,
18,
588,
1830,
5621,
9506,
202,
430,
261,
31398,
5169,
18,
588,
1442,
7675,
4738,
18,
588,
5706,
16270,
87,
1435,
262,
288,
6862,
202,
2040,
5554,
4126,
273,
336,
16270,
12,
293,
11272,
2
] |
Rectangle2D glyphBounds = tempLogicalBounds[i].getBounds2D(); | Rectangle2D glyphBounds = tempLogicalBounds[i].getBounds2D(); | private void computeGlyphLogicalBounds() { GVTLineMetrics lineMetrics = gvtFont.getLineMetrics("By", awtGlyphVector.getFontRenderContext()); float ascent = lineMetrics.getAscent() * scaleFactor; float descent = lineMetrics.getDescent() * scaleFactor; Shape[] tempLogicalBounds = new Shape[getNumGlyphs()]; boolean[] rotated = new boolean[getNumGlyphs()]; double maxWidth = -1; double maxHeight = -1; for (int i = 0; i < getNumGlyphs(); i++) { if (glyphVisible[i]) { AffineTransform glyphTransform = getGlyphTransform(i); if (glyphTransform == null) { GVTGlyphMetrics glyphMetrics = getGlyphMetrics(i); float glyphX = (float)(getGlyphPosition(i).getX()); float glyphY = (float)getGlyphPosition(i).getY() - ascent; float glyphWidth = glyphMetrics.getHorizontalAdvance(); float glyphHeight = glyphMetrics.getVerticalAdvance(); tempLogicalBounds[i] = new Rectangle2D.Double(glyphX, glyphY, glyphWidth, glyphHeight); if (glyphWidth > maxWidth) maxWidth = glyphWidth; if (glyphHeight > maxHeight) maxHeight = glyphHeight; rotated[i] = false; } else { // the glyph is transformed Shape glyphOutline = awtGlyphVector.getGlyphOutline(i); Rectangle2D glyphBounds = glyphOutline.getBounds2D(); // store three corner points so we can determine whether the glyph is rotated Point2D p1 = new Point2D.Double(glyphBounds.getMinX(), glyphBounds.getMinY()); Point2D p2 = new Point2D.Double(glyphBounds.getMaxX(), glyphBounds.getMinY()); Point2D p3 = new Point2D.Double(glyphBounds.getMinX(), glyphBounds.getMaxY()); AffineTransform tr = AffineTransform.getTranslateInstance(getGlyphPosition(i).getX(), getGlyphPosition(i).getY()); tr.concatenate(glyphTransform); tr.scale(scaleFactor, scaleFactor); tempLogicalBounds[i] = tr.createTransformedShape(glyphBounds); Point2D tp1 = new Point2D.Double(); Point2D tp2 = new Point2D.Double(); Point2D tp3 = new Point2D.Double(); tr.transform(p1, tp1); tr.transform(p2, tp2); tr.transform(p3, tp3); if ((Math.abs(tp1.getX() - tp2.getX()) < 0.001 || Math.abs(tp1.getX() - tp3.getX()) < 0.001) && (Math.abs(tp1.getY() - tp2.getY()) < 0.001 || Math.abs(tp1.getY() - tp3.getY()) < 0.001)) { rotated[i] = false; } else { rotated[i] = true; } if (glyphBounds.isEmpty()) { if (i > 0) { // can't tell if rotated or not, make it the same as the // previous glyph rotated[i] = rotated[i-1]; } else { rotated[i] = true; } } Rectangle2D rectBounds = tempLogicalBounds[i].getBounds2D(); if (rectBounds.getWidth() > maxWidth) maxWidth = rectBounds.getWidth(); if (rectBounds.getHeight() > maxHeight) maxHeight = rectBounds.getHeight(); } } else { // the glyph is not drawn tempLogicalBounds[i] = null; } } // if appropriate, join adjacent glyph logical bounds GeneralPath logicalBoundsPath = new GeneralPath(); for (int i = 0; i < getNumGlyphs(); i++) { if (tempLogicalBounds[i] != null) { logicalBoundsPath.append(tempLogicalBounds[i], false); } } Rectangle2D fullBounds = logicalBoundsPath.getBounds2D(); if (fullBounds.getHeight() < maxHeight*1.5) { // make all glyphs tops and bottoms the same as the full bounds for (int i = 0; i < getNumGlyphs(); i++) { // first make sure that the glyph logical bounds are not rotated if (!rotated[i] && tempLogicalBounds[i] != null) { Rectangle2D glyphBounds = tempLogicalBounds[i].getBounds2D(); double x = glyphBounds.getMinX(); double width = glyphBounds.getWidth(); if (i < getNumGlyphs()-1 && tempLogicalBounds[i+1] != null) { // make this glyph extend to the start of the next one Rectangle2D nextGlyphBounds = tempLogicalBounds[i+1].getBounds2D(); if (nextGlyphBounds.getX() > x) { // going left to right width = nextGlyphBounds.getX() - x; } else { double newGlyphX = nextGlyphBounds.getX() + nextGlyphBounds.getWidth(); width += (x - newGlyphX); x = newGlyphX; } } tempLogicalBounds[i] = new Rectangle2D.Double(x, fullBounds.getMinY(), width, fullBounds.getHeight()); } } } if (fullBounds.getWidth() < maxWidth*1.5) { // make all glyphs left and right edges the same as the full bounds for (int i = 0; i < getNumGlyphs(); i++) { // first make sure that the glyph logical bounds are not rotated if (!rotated[i] && tempLogicalBounds[i] != null) { Rectangle2D glyphBounds = tempLogicalBounds[i].getBounds2D(); double y = glyphBounds.getMinY(); double height = glyphBounds.getHeight(); if (i < getNumGlyphs()-1 && tempLogicalBounds[i+1] != null) { // make this glyph extend to the start of the next one Rectangle2D nextGlyphBounds = tempLogicalBounds[i+1].getBounds2D(); if (nextGlyphBounds.getY() > y) { // going top to bottom height = nextGlyphBounds.getY() - y; } else { double newGlyphY = nextGlyphBounds.getY() + nextGlyphBounds.getHeight(); height += (y - newGlyphY); y = newGlyphY; } } tempLogicalBounds[i] = new Rectangle2D.Double(fullBounds.getMinX(), y, fullBounds.getWidth(), height); } } } for (int i = 0; i < getNumGlyphs(); i++) { glyphLogicalBounds[i] = tempLogicalBounds[i]; } } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/32fa5d6f134dbc7519ade5bde79d3c0386deef5e/AWTGVTGlyphVector.java/buggy/sources/org/apache/batik/gvt/font/AWTGVTGlyphVector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3671,
15141,
17955,
5694,
1435,
288,
3639,
611,
58,
56,
1670,
5653,
980,
5653,
273,
11404,
88,
5711,
18,
588,
1670,
5653,
2932,
858,
3113,
8237,
15141,
5018,
18,
588,
5711,
3420,
1042,
10663,
3639,
1431,
487,
2998,
273,
980,
5653,
18,
588,
13665,
319,
1435,
380,
3159,
6837,
31,
3639,
1431,
3044,
319,
273,
980,
5653,
18,
588,
4217,
319,
1435,
380,
3159,
6837,
31,
3639,
12383,
8526,
1906,
17955,
5694,
273,
394,
12383,
63,
588,
2578,
25399,
1435,
15533,
3639,
1250,
8526,
22864,
273,
394,
1250,
63,
588,
2578,
25399,
1435,
15533,
3639,
1645,
17681,
273,
300,
21,
31,
3639,
1645,
23185,
273,
300,
21,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
11187,
25399,
5621,
277,
27245,
288,
5411,
309,
261,
19426,
6207,
63,
77,
5717,
288,
7734,
23906,
558,
4059,
9440,
4059,
273,
7162,
6451,
4059,
12,
77,
1769,
7734,
309,
261,
19426,
4059,
422,
446,
13,
288,
10792,
611,
58,
56,
15141,
5653,
9440,
5653,
273,
7162,
6451,
5653,
12,
77,
1769,
10792,
1431,
9440,
60,
273,
261,
5659,
21433,
588,
15141,
2555,
12,
77,
2934,
588,
60,
10663,
10792,
1431,
9440,
61,
273,
225,
261,
5659,
13,
588,
15141,
2555,
12,
77,
2934,
588,
61,
1435,
300,
487,
2998,
31,
10792,
1431,
9440,
2384,
273,
9440,
5653,
18,
588,
14457,
1871,
5882,
5621,
10792,
1431,
9440,
2686,
273,
9440,
5653,
18,
588,
15704,
1871,
5882,
5621,
10792,
1906,
17955,
5694,
63,
77,
65,
273,
394,
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,
3671,
15141,
17955,
5694,
1435,
288,
3639,
611,
58,
56,
1670,
5653,
980,
5653,
273,
11404,
88,
5711,
18,
588,
1670,
5653,
2932,
858,
3113,
8237,
15141,
5018,
18,
588,
5711,
3420,
1042,
10663,
3639,
1431,
487,
2998,
273,
980,
5653,
18,
588,
13665,
319,
1435,
380,
3159,
6837,
31,
3639,
1431,
3044,
319,
273,
980,
5653,
18,
588,
4217,
319,
1435,
380,
3159,
6837,
31,
3639,
12383,
8526,
1906,
17955,
5694,
273,
394,
12383,
63,
588,
2578,
25399,
1435,
15533,
3639,
1250,
8526,
22864,
273,
394,
1250,
63,
588,
2578,
25399,
1435,
15533,
3639,
1645,
17681,
273,
300,
21,
31,
3639,
1645,
23185,
273,
300,
21,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
2
] |
String[] phoneString = { (String) fieldValues.get(homePhoneFieldName), (String) fieldValues.get(workPhoneFieldName), (String) fieldValues.get(mobilePhoneFieldName), (String) fieldValues.get(faxPhoneFieldName)}; String[] phoneTypeString = { (String) fieldValues.get(homePhoneMenuName), (String) fieldValues.get(workPhoneMenuName), (String) fieldValues.get(mobilePhoneMenuName), (String) fieldValues.get(faxPhoneMenuName)}; | String[] phoneString = {(String) fieldValues.get(homePhoneFieldName), (String) fieldValues.get(workPhoneFieldName), (String) fieldValues.get(mobilePhoneFieldName), (String) fieldValues.get(faxPhoneFieldName)}; String[] phoneTypeString = {(String) fieldValues.get(homePhoneMenuName), (String) fieldValues.get(workPhoneMenuName), (String) fieldValues.get(mobilePhoneMenuName), (String) fieldValues.get(faxPhoneMenuName)}; | public boolean store(IWContext iwc) { try { GroupBusiness groupBiz = getGroupBusiness(getEventIWContext()); Group group = groupBiz.getGroupByGroupID(getGroupId()); if (getGroupId() > -1) { String[] phoneString = { (String) fieldValues.get(homePhoneFieldName), (String) fieldValues.get(workPhoneFieldName), (String) fieldValues.get(mobilePhoneFieldName), (String) fieldValues.get(faxPhoneFieldName)}; String[] phoneTypeString = { (String) fieldValues.get(homePhoneMenuName), (String) fieldValues.get(workPhoneMenuName), (String) fieldValues.get(mobilePhoneMenuName), (String) fieldValues.get(faxPhoneMenuName)}; for (int i = 0; i < phoneString.length; i++) { if (phoneString[i] != null && phoneString[i].length() > 0) { getGroupBusiness(iwc).updateGroupPhone(group, Integer.parseInt(phoneTypeString[i]), phoneString[i]); } } if ((String) fieldValues.get(emailFieldName) != null && ((String) fieldValues.get(emailFieldName)).length() > 0) { getGroupBusiness(iwc).updateGroupMail(group, (String) fieldValues.get(emailFieldName)); } } if ((String) fieldValues.get(homepageFieldName) != null && ((String) fieldValues.get(homepageFieldName)).length() > 0) { group.setHomePageURL((String) fieldValues.get(homepageFieldName)); } } catch (Exception e) { e.printStackTrace(System.err); throw new RuntimeException("update group exception"); } return true; } | 57353 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57353/3d3a9f8444e1b2e2c1c4c7d5e71a685e7f0aa419/GroupOfficeContactTab.java/buggy/src/java/is/idega/idegaweb/member/presentation/GroupOfficeContactTab.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1707,
12,
45,
59,
1042,
25522,
71,
13,
288,
202,
202,
698,
288,
1082,
202,
1114,
13423,
1041,
38,
452,
273,
11751,
13423,
12,
588,
1133,
45,
59,
1042,
10663,
1082,
202,
1114,
1041,
273,
1041,
38,
452,
18,
588,
26257,
30876,
12,
588,
8722,
10663,
1082,
202,
430,
261,
588,
8722,
1435,
405,
300,
21,
13,
288,
9506,
202,
780,
8526,
7353,
780,
273,
6862,
202,
95,
25083,
202,
12,
780,
13,
24976,
18,
588,
12,
8712,
9451,
7287,
3631,
25083,
202,
12,
780,
13,
24976,
18,
588,
12,
1252,
9451,
7287,
3631,
25083,
202,
12,
780,
13,
24976,
18,
588,
12,
18386,
9451,
7287,
3631,
25083,
202,
12,
780,
13,
24976,
18,
588,
12,
507,
92,
9451,
7287,
16869,
31,
9506,
202,
780,
8526,
7353,
559,
780,
273,
6862,
202,
95,
25083,
202,
12,
780,
13,
24976,
18,
588,
12,
8712,
9451,
4599,
461,
3631,
25083,
202,
12,
780,
13,
24976,
18,
588,
12,
1252,
9451,
4599,
461,
3631,
25083,
202,
12,
780,
13,
24976,
18,
588,
12,
18386,
9451,
4599,
461,
3631,
25083,
202,
12,
780,
13,
24976,
18,
588,
12,
507,
92,
9451,
4599,
461,
16869,
31,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
7353,
780,
18,
2469,
31,
277,
27245,
288,
6862,
202,
430,
261,
10540,
780,
63,
77,
65,
480,
446,
597,
7353,
780,
63,
77,
8009,
2469,
1435,
405,
374,
13,
288,
25083,
202,
588,
1114,
13423,
12,
22315,
71,
2934,
2725,
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,
1707,
12,
45,
59,
1042,
25522,
71,
13,
288,
202,
202,
698,
288,
1082,
202,
1114,
13423,
1041,
38,
452,
273,
11751,
13423,
12,
588,
1133,
45,
59,
1042,
10663,
1082,
202,
1114,
1041,
273,
1041,
38,
452,
18,
588,
26257,
30876,
12,
588,
8722,
10663,
1082,
202,
430,
261,
588,
8722,
1435,
405,
300,
21,
13,
288,
9506,
202,
780,
8526,
7353,
780,
273,
6862,
202,
95,
25083,
202,
12,
780,
13,
24976,
18,
588,
12,
8712,
9451,
7287,
3631,
25083,
202,
12,
780,
13,
24976,
18,
588,
12,
1252,
9451,
7287,
3631,
25083,
202,
12,
780,
13,
24976,
18,
588,
12,
18386,
9451,
7287,
3631,
25083,
202,
12,
780,
13,
24976,
18,
588,
2
] |
set(parameterIndex, Long.toString(x)); | bind(parameterIndex, "'"+Long.toString(x)+"'", PG_INT8); | public void setLong(int parameterIndex, long x) throws SQLException { set(parameterIndex, Long.toString(x)); } | 45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/2232172e447db0224c4ececd148ddf6d6e1e5c84/AbstractJdbc1Statement.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
3708,
12,
474,
25412,
16,
1525,
619,
13,
1216,
6483,
202,
95,
202,
202,
542,
12,
6775,
1016,
16,
3407,
18,
10492,
12,
92,
10019,
202,
97,
2,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
3708,
12,
474,
25412,
16,
1525,
619,
13,
1216,
6483,
202,
95,
202,
202,
542,
12,
6775,
1016,
16,
3407,
18,
10492,
12,
92,
10019,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 m_launcherFrame; } | { return m_launcherFrame; } | public LauncherFrame getLauncherFrame() { return m_launcherFrame; } | 8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/56d6044f3c26ae582283532b1c4dbc9b76c22921/GameTypePanel.java/clean/src/games/strategy/engine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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14643,
264,
3219,
9014,
4760,
264,
3219,
1435,
225,
288,
565,
327,
312,
67,
20738,
264,
3219,
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
] |
if(test.indexOf(":") != -1 && (test.length() == 4 || test.length() == 5)) | if (test.indexOf(":") != -1 && (test.length() == 4 || test.length() == 5)) | protected void updateTimeButtons() { Object[] keys = mAvailableActions.keySet().toArray(); ArrayList availableTimeActions = new ArrayList(); for(int i = 0; i < keys.length; i++) { Action action = (Action)mAvailableActions.get(keys[i]); String test = action.getValue(Action.NAME).toString(); if(test.indexOf(":") != -1 && (test.length() == 4 || test.length() == 5)) availableTimeActions.add(keys[i].toString()); } String scrollTo = MainFrame.mLocalizer.msg("menuinfo.scrollTo", "Scroll to") + ": "; // create Time Buttons int[] array = Settings.propTimeButtons.getIntArray(); Action timeButtonAction; for (int i = 0; i < array.length; i++) { int hour = array[i] / 60; final int scrollTime = array[i]; String time = String.valueOf(array[i] % 60); if (time.length() == 1) time = hour + ":0" + time; else time = hour + ":" + time; if(availableTimeActions.contains(new String("#scrollTo" + time))) { availableTimeActions.remove(new String("#scrollTo" + time)); continue; } timeButtonAction = createAction(time, "#scrollTo" + time, scrollTo + time, IconLoader.getInstance() .getIconFromTheme("actions", "go-down", 16), IconLoader.getInstance().getIconFromTheme("actions", "go-down", 22), ToolBar.BUTTON_ACTION, new ActionListener() { public void actionPerformed(ActionEvent e) { MainFrame.getInstance().scrollToTime(scrollTime); } }); mAvailableActions.put("#scrollTo" + time, timeButtonAction); } Iterator it = availableTimeActions.iterator(); while(it.hasNext()) { Action action = (Action)mAvailableActions.remove(it.next()); if(mVisibleActions.contains(action)) mVisibleActions.remove(action); } } | 9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/82613e27f32a4b89f61783e56b109e05d99cb088/DefaultToolBarModel.java/clean/tvbrowser/src/tvbrowser/ui/mainframe/toolbar/DefaultToolBarModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1089,
950,
14388,
1435,
288,
565,
1033,
8526,
1311,
273,
312,
5268,
6100,
18,
856,
694,
7675,
31447,
5621,
565,
2407,
2319,
950,
6100,
273,
394,
2407,
5621,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
1311,
18,
2469,
31,
277,
27245,
288,
1377,
4382,
1301,
273,
261,
1803,
13,
81,
5268,
6100,
18,
588,
12,
2452,
63,
77,
19226,
4202,
514,
1842,
273,
1301,
18,
24805,
12,
1803,
18,
1985,
2934,
10492,
5621,
5411,
309,
261,
3813,
18,
31806,
2932,
2773,
13,
480,
300,
21,
597,
261,
3813,
18,
2469,
1435,
422,
1059,
747,
1842,
18,
2469,
1435,
422,
1381,
3719,
3639,
2319,
950,
6100,
18,
1289,
12,
2452,
63,
77,
8009,
10492,
10663,
565,
289,
3639,
514,
5532,
774,
273,
12740,
3219,
18,
81,
2042,
1824,
18,
3576,
2932,
5414,
1376,
18,
12033,
774,
3113,
315,
6806,
358,
7923,
397,
6398,
13636,
565,
368,
752,
2647,
12569,
87,
565,
509,
8526,
526,
273,
8709,
18,
5986,
950,
14388,
18,
588,
1702,
1076,
5621,
565,
4382,
813,
3616,
1803,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
526,
18,
2469,
31,
277,
27245,
288,
1377,
509,
6126,
273,
526,
63,
77,
65,
342,
4752,
31,
1377,
727,
509,
5532,
950,
273,
526,
63,
77,
15533,
1377,
514,
813,
273,
514,
18,
1132,
951,
12,
1126,
63,
77,
65,
738,
4752,
1769,
1377,
309,
261,
957,
18,
2469,
1435,
422,
404,
13,
3639,
813,
273,
6126,
397,
6398,
20,
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,
1089,
950,
14388,
1435,
288,
565,
1033,
8526,
1311,
273,
312,
5268,
6100,
18,
856,
694,
7675,
31447,
5621,
565,
2407,
2319,
950,
6100,
273,
394,
2407,
5621,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
1311,
18,
2469,
31,
277,
27245,
288,
1377,
4382,
1301,
273,
261,
1803,
13,
81,
5268,
6100,
18,
588,
12,
2452,
63,
77,
19226,
4202,
514,
1842,
273,
1301,
18,
24805,
12,
1803,
18,
1985,
2934,
10492,
5621,
5411,
309,
261,
3813,
18,
31806,
2932,
2773,
13,
480,
300,
21,
597,
261,
3813,
18,
2469,
1435,
422,
1059,
747,
1842,
18,
2469,
1435,
422,
1381,
3719,
3639,
2319,
950,
6100,
18,
1289,
12,
2452,
63,
77,
8009,
10492,
2
] |
if (node == NULL) return EMPTYSTRING; | if ((node == NULL) || (node > _treeNodeLimit)) return EMPTYSTRING; | public String getNodeValue(final int node) { if (node == NULL) return EMPTYSTRING; switch(_type[node]) { case ROOT: return getNodeValue(_offsetOrChild[node]); case TEXT: case COMMENT: case PROCESSING_INSTRUCTION: return makeStringValue(node); default: if (node < _firstAttributeNode) return getElementValue(node); // element string value else return makeStringValue(node); // attribute value } } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/9407e2a16f2ba6b2b5350f6d3a28cbeefd2a4f78/DOMImpl.java/buggy/src/org/apache/xalan/xsltc/dom/DOMImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
28587,
12,
6385,
509,
756,
13,
288,
202,
430,
261,
2159,
422,
3206,
13,
327,
8984,
5804,
31,
202,
9610,
24899,
723,
63,
2159,
5717,
288,
202,
3593,
11011,
30,
202,
565,
327,
28587,
24899,
3348,
1162,
1763,
63,
2159,
19226,
202,
3593,
9204,
30,
202,
3593,
19400,
30,
202,
3593,
20647,
1360,
67,
706,
3902,
27035,
30,
202,
565,
327,
1221,
19733,
12,
2159,
1769,
202,
1886,
30,
202,
565,
309,
261,
2159,
411,
389,
3645,
1499,
907,
13,
202,
202,
2463,
7426,
620,
12,
2159,
1769,
368,
930,
533,
460,
202,
565,
469,
202,
202,
2463,
1221,
19733,
12,
2159,
1769,
368,
1566,
460,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
28587,
12,
6385,
509,
756,
13,
288,
202,
430,
261,
2159,
422,
3206,
13,
327,
8984,
5804,
31,
202,
9610,
24899,
723,
63,
2159,
5717,
288,
202,
3593,
11011,
30,
202,
565,
327,
28587,
24899,
3348,
1162,
1763,
63,
2159,
19226,
202,
3593,
9204,
30,
202,
3593,
19400,
30,
202,
3593,
20647,
1360,
67,
706,
3902,
27035,
30,
202,
565,
327,
1221,
19733,
12,
2159,
1769,
202,
1886,
30,
202,
565,
309,
261,
2159,
411,
389,
3645,
1499,
907,
13,
202,
202,
2463,
7426,
620,
12,
2159,
1769,
368,
930,
533,
460,
202,
565,
469,
202,
202,
2463,
1221,
19733,
12,
2159,
1769,
368,
1566,
460,
202,
97,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
/*if (_model.getDebugManager() != null) { try { _debugPanel = new DebugPanel(_model, this); } catch(NoClassDefFoundError e) { _debugPanel = null; } } else { _debugPanel = null; }*/ | private void _setUpTabs() { _outputPane = new OutputPane(_model); _errorPanel = new CompilerErrorPanel(_model, this); _interactionsPane = new InteractionsPane(_model); _findReplace = new FindReplaceDialog(this, _model); // Try to create debug panel (see if JSwat is around) /*if (_model.getDebugManager() != null) { try { _debugPanel = new DebugPanel(_model, this); } catch(NoClassDefFoundError e) { // Don't use the debugger _debugPanel = null; } } else { _debugPanel = null; }*/ final JScrollPane outputScroll = new JScrollPane(_outputPane); _junitPanel = new JUnitPanel(_model, this); _tabbedPane = new JTabbedPane(); if (CodeStatus.DEVELOPMENT) { _tabbedPane.addChangeListener(new ChangeListener () { public void stateChanged(ChangeEvent e) { if (_tabbedPane.getSelectedComponent() == outputScroll) { outputScroll.revalidate(); outputScroll.repaint(); } } }); } _tabbedPane.add("Interactions", new BorderlessScrollPane(_interactionsPane)); _tabbedPane.add("Console", outputScroll); _tabs = new LinkedList(); _tabs.addLast(_errorPanel); _tabs.addLast(_junitPanel); _tabs.addLast(_findReplace); // Show compiler output pane by default showTab(_errorPanel); _tabbedPane.setSelectedIndex(0); // Select interactions pane when interactions tab is selected _tabbedPane.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { if (_tabbedPane.getSelectedIndex() == INTERACTIONS_TAB) { _interactionsPane.requestFocus(); } } }); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/9252a1853f289706bd8613c5b3a7e1dae6638ae1/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
389,
542,
1211,
17348,
1435,
288,
565,
389,
2844,
8485,
273,
394,
3633,
8485,
24899,
2284,
1769,
565,
389,
1636,
5537,
273,
394,
12972,
668,
5537,
24899,
2284,
16,
333,
1769,
565,
389,
2761,
4905,
8485,
273,
394,
5294,
4905,
8485,
24899,
2284,
1769,
565,
389,
4720,
5729,
273,
394,
4163,
5729,
6353,
12,
2211,
16,
389,
2284,
1769,
565,
368,
6161,
358,
752,
1198,
6594,
261,
5946,
309,
804,
6050,
270,
353,
6740,
13,
565,
1748,
430,
261,
67,
2284,
18,
588,
2829,
1318,
1435,
480,
446,
13,
288,
1377,
775,
288,
3639,
389,
4148,
5537,
273,
394,
4015,
5537,
24899,
2284,
16,
333,
1769,
1377,
289,
1377,
1044,
12,
2279,
797,
3262,
2043,
668,
425,
13,
288,
3639,
368,
7615,
1404,
999,
326,
19977,
3639,
389,
4148,
5537,
273,
446,
31,
1377,
289,
565,
289,
469,
288,
1377,
389,
4148,
5537,
273,
446,
31,
565,
289,
5549,
565,
727,
804,
26360,
876,
6806,
273,
394,
804,
26360,
24899,
2844,
8485,
1769,
565,
389,
78,
4873,
5537,
273,
394,
804,
2802,
5537,
24899,
2284,
16,
333,
1769,
565,
389,
7032,
2992,
8485,
273,
394,
804,
5661,
2992,
8485,
5621,
565,
309,
261,
1085,
1482,
18,
31771,
52,
3212,
13,
288,
1377,
389,
7032,
2992,
8485,
18,
1289,
15744,
12,
2704,
7576,
2223,
1832,
288,
3639,
1071,
918,
919,
5033,
12,
20930,
425,
13,
288,
1850,
309,
261,
67,
7032,
2992,
8485,
18,
588,
7416,
1841,
1435,
422,
876,
6806,
13,
288,
5411,
876,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
389,
542,
1211,
17348,
1435,
288,
565,
389,
2844,
8485,
273,
394,
3633,
8485,
24899,
2284,
1769,
565,
389,
1636,
5537,
273,
394,
12972,
668,
5537,
24899,
2284,
16,
333,
1769,
565,
389,
2761,
4905,
8485,
273,
394,
5294,
4905,
8485,
24899,
2284,
1769,
565,
389,
4720,
5729,
273,
394,
4163,
5729,
6353,
12,
2211,
16,
389,
2284,
1769,
565,
368,
6161,
358,
752,
1198,
6594,
261,
5946,
309,
804,
6050,
270,
353,
6740,
13,
565,
1748,
430,
261,
67,
2284,
18,
588,
2829,
1318,
1435,
480,
446,
13,
288,
1377,
775,
288,
3639,
389,
4148,
5537,
273,
394,
4015,
5537,
24899,
2284,
16,
333,
1769,
1377,
289,
1377,
1044,
12,
2279,
797,
3262,
2043,
668,
2
] |
|
Reference ref; | public void run() { while(true) { Reference ref; try { ref = queue.remove(); // System.err.println("Cleaned: " + ref); } catch (InterruptedException ie) { continue; } if (ref instanceof ReferenceCleared) { ReferenceCleared rc = (ReferenceCleared)ref; rc.cleared(); } } } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/555f41e6ae7a83b0c6d2fd5b62c683f132f9e778/CleanerThread.java/buggy/sources/org/apache/batik/util/CleanerThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
1323,
12,
3767,
13,
288,
15604,
775,
288,
7734,
1278,
273,
2389,
18,
4479,
5621,
7734,
368,
2332,
18,
370,
18,
8222,
2932,
7605,
329,
30,
315,
397,
1278,
1769,
5411,
289,
1044,
261,
24485,
503,
9228,
13,
288,
7734,
1324,
31,
5411,
289,
5411,
309,
261,
1734,
1276,
6268,
4756,
2258,
13,
288,
7734,
6268,
4756,
2258,
4519,
273,
261,
2404,
4756,
2258,
13,
1734,
31,
7734,
4519,
18,
2131,
2258,
5621,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
775,
288,
7734,
1278,
273,
2389,
18,
4479,
5621,
7734,
368,
2332,
18,
370,
18,
8222,
2932,
7605,
329,
30,
315,
397,
1278,
1769,
5411,
289,
1044,
261,
24485,
503,
9228,
13,
288,
7734,
1324,
31,
5411,
289,
5411,
309,
261,
1734,
1276,
6268,
4756,
2258,
13,
288,
7734,
6268,
4756,
2258,
4519,
273,
261,
2404,
4756,
2258,
13,
1734,
31,
7734,
4519,
18,
2131,
2258,
5621,
5411,
289,
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
] |
|
return -1; | System.err.println("lastModified"); return System.currentTimeMillis(); | protected long getLastModified(HttpServletRequest request) { AbstractExternalizeManager extMgr; try { extMgr = getExternalizeManager(request); } catch (Exception e) { return -1; } String pathInfo = request.getPathInfo(); //System.err.println("LAST MODIFIED: " + pathInfo); if (extMgr != null && pathInfo != null && pathInfo.length() > 1) { String identifier = pathInfo.substring(1); ExternalizedResource info = extMgr.getExternalizedResource(identifier); if (info != null) { //System.err.println(" **>" + info.getLastModified()); return info.getLastModified(); } } return -1; } | 3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/219945c939279377792798b2a84b90d4e451cf78/WingServlet.java/clean/wings/src/org/wings/session/WingServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1525,
27068,
12,
2940,
18572,
590,
13,
288,
3639,
4115,
6841,
554,
1318,
1110,
9455,
31,
3639,
775,
288,
5411,
1110,
9455,
273,
22319,
554,
1318,
12,
2293,
1769,
3639,
289,
3639,
1044,
261,
503,
425,
13,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
2722,
4575,
8863,
327,
2332,
18,
2972,
28512,
5621,
3639,
289,
3639,
514,
17058,
273,
590,
18,
588,
743,
966,
5621,
3639,
368,
3163,
18,
370,
18,
8222,
2932,
14378,
8663,
13519,
30,
315,
397,
17058,
1769,
3639,
309,
261,
408,
9455,
480,
446,
597,
17058,
480,
446,
597,
17058,
18,
2469,
1435,
405,
404,
13,
288,
5411,
514,
2756,
273,
17058,
18,
28023,
12,
21,
1769,
5411,
11352,
1235,
1420,
1123,
273,
1110,
9455,
18,
588,
6841,
1235,
1420,
12,
5644,
1769,
5411,
309,
261,
1376,
480,
446,
13,
288,
7734,
368,
3163,
18,
370,
18,
8222,
2932,
225,
2826,
2984,
397,
1123,
18,
588,
14747,
10663,
7734,
327,
1123,
18,
588,
14747,
5621,
5411,
289,
3639,
289,
3639,
2332,
18,
370,
18,
8222,
2932,
2722,
4575,
8863,
327,
2332,
18,
2972,
28512,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1525,
27068,
12,
2940,
18572,
590,
13,
288,
3639,
4115,
6841,
554,
1318,
1110,
9455,
31,
3639,
775,
288,
5411,
1110,
9455,
273,
22319,
554,
1318,
12,
2293,
1769,
3639,
289,
3639,
1044,
261,
503,
425,
13,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
2722,
4575,
8863,
327,
2332,
18,
2972,
28512,
5621,
3639,
289,
3639,
514,
17058,
273,
590,
18,
588,
743,
966,
5621,
3639,
368,
3163,
18,
370,
18,
8222,
2932,
14378,
8663,
13519,
30,
315,
397,
17058,
1769,
3639,
309,
261,
408,
9455,
480,
446,
597,
17058,
480,
446,
597,
17058,
18,
2469,
1435,
405,
404,
13,
288,
5411,
514,
2756,
273,
17058,
18,
28023,
12,
21,
1769,
5411,
11352,
1235,
1420,
1123,
2
] |
public void setTo(JID to) { setTo(to.toString()); | public void setTo(String to) { element.addAttribute("to", to); | public void setTo(JID to) { setTo(to.toString()); } | 8076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8076/103f02e5da18a913a9f4fab3518b65ae15b36472/Packet.java/buggy/source/java/org/xmpp/packet/Packet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19892,
12,
46,
734,
358,
13,
288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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19892,
12,
46,
734,
358,
13,
288,
3639,
19892,
12,
869,
18,
10492,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
attachment = new ReportAttachment(); | attachment = new RepositoryAttachment(attributeFactory); | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { characters = new StringBuffer(); BugzillaReportElement tag = BugzillaReportElement.UNKNOWN; try { tag = BugzillaReportElement.valueOf(localName.trim().toUpperCase()); } catch (RuntimeException e) { if (e instanceof IllegalArgumentException) { // ignore unrecognized tags return; } throw e; } switch (tag) { case BUGZILLA: // Note: here we can get the bugzilla version if necessary break; case BUG: if (attributes != null && (attributes.getValue("error") != null)) { errorMessage = attributes.getValue("error"); } break; case LONG_DESC: comment = new Comment(report, commentNum++); break; case ATTACHMENT: attachment = new ReportAttachment(); if (attributes != null && (attributes.getValue(BugzillaReportElement.IS_OBSOLETE.getKeyString()) != null)) { attachment.addAttribute(BugzillaReportElement.IS_OBSOLETE, new RepositoryTaskAttribute( BugzillaReportElement.IS_OBSOLETE)); } break; } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d6adf902ecafbef942349464348e4435750dd099/SaxBugReportContentHandler.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxBugReportContentHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13591,
12,
780,
2003,
16,
514,
11927,
16,
514,
22914,
16,
9055,
1677,
13,
1216,
14366,
288,
202,
202,
20558,
273,
394,
6674,
5621,
202,
202,
19865,
15990,
4820,
1046,
1047,
273,
16907,
15990,
4820,
1046,
18,
14737,
31,
202,
202,
698,
288,
1082,
202,
2692,
273,
16907,
15990,
4820,
1046,
18,
1132,
951,
12,
3729,
461,
18,
5290,
7675,
869,
8915,
10663,
202,
202,
97,
1044,
261,
11949,
425,
13,
288,
1082,
202,
430,
261,
73,
1276,
2754,
13,
288,
9506,
202,
759,
2305,
28333,
2342,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
12849,
425,
31,
202,
202,
97,
202,
202,
9610,
261,
2692,
13,
288,
202,
202,
3593,
10937,
43,
62,
2627,
2534,
30,
1082,
202,
759,
3609,
30,
2674,
732,
848,
336,
326,
7934,
15990,
1177,
309,
4573,
1082,
202,
8820,
31,
202,
202,
3593,
10937,
43,
30,
1082,
202,
430,
261,
4350,
480,
446,
597,
261,
4350,
18,
24805,
2932,
1636,
7923,
480,
446,
3719,
288,
9506,
202,
1636,
1079,
273,
1677,
18,
24805,
2932,
1636,
8863,
1082,
202,
97,
1082,
202,
8820,
31,
202,
202,
3593,
14011,
67,
10964,
30,
1082,
202,
3469,
273,
394,
9821,
12,
6006,
16,
2879,
2578,
9904,
1769,
1082,
202,
8820,
31,
202,
202,
3593,
7907,
18133,
3212,
30,
1082,
202,
11461,
273,
394,
8706,
6803,
5621,
1082,
202,
430,
261,
4350,
480,
446,
597,
261,
4350,
18,
24805,
12,
19865,
15990,
4820,
1046,
18,
5127,
67,
5704,
3584,
4311,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13591,
12,
780,
2003,
16,
514,
11927,
16,
514,
22914,
16,
9055,
1677,
13,
1216,
14366,
288,
202,
202,
20558,
273,
394,
6674,
5621,
202,
202,
19865,
15990,
4820,
1046,
1047,
273,
16907,
15990,
4820,
1046,
18,
14737,
31,
202,
202,
698,
288,
1082,
202,
2692,
273,
16907,
15990,
4820,
1046,
18,
1132,
951,
12,
3729,
461,
18,
5290,
7675,
869,
8915,
10663,
202,
202,
97,
1044,
261,
11949,
425,
13,
288,
1082,
202,
430,
261,
73,
1276,
2754,
13,
288,
9506,
202,
759,
2305,
28333,
2342,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
12849,
425,
31,
202,
202,
97,
202,
202,
9610,
261,
2692,
13,
288,
202,
202,
3593,
10937,
43,
62,
2
] |
public static ToHitData toHit(IGame game, int attackerId, Targetable target, Mounted club) { final Entity ae = game.getEntity(attackerId); if (ae == null || target == null) { throw new IllegalArgumentException("Attacker or target not valid"); } if (club == null) { throw new IllegalArgumentException("Club is null"); } if (club.getType() == null) { throw new IllegalArgumentException("Club type is null"); } String impossible = toHitIsImpossible(game, ae, target); if(impossible != null) { return new ToHitData(ToHitData.IMPOSSIBLE, impossible); } if (!(ae instanceof Mech)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Non-mechs can't club"); } if (ae.entityIsQuad()) { return new ToHitData(ToHitData.IMPOSSIBLE, "Attacker is a quad"); } IHex attHex = game.getBoard().getHex(ae.getPosition()); IHex targHex = game.getBoard().getHex(target.getPosition()); final int attackerElevation = ae.getElevation() + attHex.getElevation(); final int attackerHeight = attackerElevation + ae.height(); final int targetElevation = target.getElevation() + targHex.getElevation(); final int targetHeight = targetElevation + target.getHeight(); final boolean bothArms = (club.getType().hasFlag(MiscType.F_CLUB) && ((MiscType)club.getType()).hasSubType(MiscType.S_CLUB)); final boolean hasClaws = ( ((BipedMech)ae).hasClaw(Mech.LOC_RARM) || ((BipedMech)ae).hasClaw(Mech.LOC_LARM) ); final boolean shield = ((MiscType)club.getType()).isShield(); ToHitData toHit; if (bothArms) { if (ae.isLocationBad(Mech.LOC_RARM) || ae.isLocationBad(Mech.LOC_LARM)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Arm missing"); } if (ae.weaponFiredFrom(Mech.LOC_RARM) || ae.weaponFiredFrom(Mech.LOC_LARM)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Weapons fired from arm this turn"); } if (!ae.hasWorkingSystem(Mech.ACTUATOR_SHOULDER, Mech.LOC_RARM) || !ae.hasWorkingSystem(Mech.ACTUATOR_SHOULDER, Mech.LOC_LARM)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Shoulder actuator destroyed"); } if ( (!ae.hasWorkingSystem(Mech.ACTUATOR_HAND, Mech.LOC_RARM) || !ae.hasWorkingSystem(Mech.ACTUATOR_HAND, Mech.LOC_LARM)) && !hasClaws) { return new ToHitData(ToHitData.IMPOSSIBLE, "Hand actuator destroyed"); } } else if (shield) { if (!ae.hasPassiveShield(club.getLocation())) { return new ToHitData(ToHitData.IMPOSSIBLE, "Shield not in passive mode"); } } else { if (ae.isLocationBad(club.getLocation())) { return new ToHitData(ToHitData.IMPOSSIBLE, "Arm missing"); } if (ae.weaponFiredFrom(club.getLocation())) { return new ToHitData(ToHitData.IMPOSSIBLE, "Weapons fired from arm this turn"); } if (!ae.hasWorkingSystem(Mech.ACTUATOR_SHOULDER, club.getLocation())) { return new ToHitData(ToHitData.IMPOSSIBLE, "Shoulder actuator destroyed"); } if (!ae.hasWorkingSystem(Mech.ACTUATOR_HAND, club.getLocation()) && !hasClaws) { return new ToHitData(ToHitData.IMPOSSIBLE, "Hand actuator destroyed"); } } if (!shield && ae.getBadCriticals(CriticalSlot.TYPE_EQUIPMENT, ae.getEquipmentNum(club), club.getLocation()) > 0) { return new ToHitData(ToHitData.IMPOSSIBLE, "Club is damaged"); } int targetMaxElevation = attackerHeight; if(target instanceof VTOL) { targetMaxElevation ++; } if (targetHeight < attackerElevation || targetElevation > targetMaxElevation) { return new ToHitData(ToHitData.IMPOSSIBLE, "Target elevation not in range"); } int clubArc = bothArms ? Compute.ARC_FORWARD : (club.getLocation() == Mech.LOC_LARM ? Compute.ARC_LEFTARM : Compute.ARC_RIGHTARM); if ( !Compute.isInArc( ae.getPosition(), ae.getSecondaryFacing(), target.getPosition(), clubArc ) ) { return new ToHitData(ToHitData.IMPOSSIBLE, "Target not in arc"); } if (ae.isProne()) { return new ToHitData(ToHitData.IMPOSSIBLE, "Attacker is prone"); } if ( target.getTargetType() == Targetable.TYPE_BUILDING || target instanceof GunEmplacement ) { return new ToHitData( ToHitData.AUTOMATIC_SUCCESS, "Targeting adjacent building." ); } int base = 4; if ( game.getOptions().booleanOption("maxtech_physical_BTH") ) { base = ae.getCrew().getPiloting() - 1; } if (((MiscType)club.getType()).hasSubType(MiscType.S_SWORD)) { base -= 1; } else if ((((MiscType)club.getType()).hasSubType(MiscType.S_DUAL_SAW)) || (((MiscType)club.getType()).hasSubType(MiscType.S_CHAINSAW))) { base += 1; } else if ((((MiscType)club.getType()).hasSubType(MiscType.S_MACE_THB)) || (((MiscType)club.getType()).hasSubType(MiscType.S_MACE)) || (((MiscType)club.getType()).hasSubType(MiscType.S_BACKHOE))) { base += 2; } else if (((MiscType)club.getType()).hasSubType(MiscType.S_PILE_DRIVER)) { base += 3; } else if (((MiscType)club.getType()).hasSubType(MiscType.S_SHIELD_LARGE)) { base -= 3; } else if (((MiscType)club.getType()).hasSubType(MiscType.S_SHIELD_MEDIUM)) { base -= 2; } else if (((MiscType)club.getType()).hasSubType(MiscType.S_SHIELD_SMALL)) { base -= 1; } toHit = new ToHitData(base, "base"); setCommonModifiers(toHit, game, ae, target); if (bothArms) { if (!ae.hasWorkingSystem(Mech.ACTUATOR_UPPER_ARM, Mech.LOC_RARM)) { toHit.addModifier(2, "Upper arm actuator destroyed"); } if (!ae.hasWorkingSystem(Mech.ACTUATOR_UPPER_ARM, Mech.LOC_LARM)) { toHit.addModifier(2, "Upper arm actuator destroyed"); } if (!ae.hasWorkingSystem(Mech.ACTUATOR_LOWER_ARM, Mech.LOC_RARM)) { toHit.addModifier(2, "Lower arm actuator missing or destroyed"); } if (!ae.hasWorkingSystem(Mech.ACTUATOR_LOWER_ARM, Mech.LOC_LARM)) { toHit.addModifier(2, "Lower arm actuator missing or destroyed"); } if (hasClaws) { toHit.addModifier(2, "Mek has claws"); } } else { if (!ae.hasWorkingSystem(Mech.ACTUATOR_UPPER_ARM, club.getLocation())) { toHit.addModifier(2, "Upper arm actuator destroyed"); } if (!ae.hasWorkingSystem(Mech.ACTUATOR_LOWER_ARM, club.getLocation())) { toHit.addModifier(2, "Lower arm actuator missing or destroyed"); } if (hasClaws) { toHit.addModifier(2, "Mek has claws"); } } if (attackerElevation == targetElevation) { if (shield) toHit.setHitTable(ToHitData.HIT_PUNCH); else toHit.setHitTable(ToHitData.HIT_NORMAL); } else if (attackerElevation < targetElevation) { if (target.getHeight() == 0) { if (shield ) toHit.setHitTable(ToHitData.HIT_PUNCH); else toHit.setHitTable(ToHitData.HIT_NORMAL); } else { toHit.setHitTable(ToHitData.HIT_KICK); } } else { toHit.setHitTable(ToHitData.HIT_PUNCH); } toHit.setSideTable(Compute.targetSideTable(ae,target)); return toHit; | public ToHitData toHit(IGame game) { return toHit(game, getEntityId(), game.getTarget(getTargetType(), getTargetId()), getClub()); | public static ToHitData toHit(IGame game, int attackerId, Targetable target, Mounted club) { final Entity ae = game.getEntity(attackerId); // arguments legal? if (ae == null || target == null) { throw new IllegalArgumentException("Attacker or target not valid"); } if (club == null) { throw new IllegalArgumentException("Club is null"); } if (club.getType() == null) { throw new IllegalArgumentException("Club type is null"); } String impossible = toHitIsImpossible(game, ae, target); if(impossible != null) { return new ToHitData(ToHitData.IMPOSSIBLE, impossible); } // non-mechs can't club if (!(ae instanceof Mech)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Non-mechs can't club"); } //Quads can't club if (ae.entityIsQuad()) { return new ToHitData(ToHitData.IMPOSSIBLE, "Attacker is a quad"); } IHex attHex = game.getBoard().getHex(ae.getPosition()); IHex targHex = game.getBoard().getHex(target.getPosition()); final int attackerElevation = ae.getElevation() + attHex.getElevation(); final int attackerHeight = attackerElevation + ae.height(); final int targetElevation = target.getElevation() + targHex.getElevation(); final int targetHeight = targetElevation + target.getHeight(); final boolean bothArms = (club.getType().hasFlag(MiscType.F_CLUB) && ((MiscType)club.getType()).hasSubType(MiscType.S_CLUB)); final boolean hasClaws = ( ((BipedMech)ae).hasClaw(Mech.LOC_RARM) || ((BipedMech)ae).hasClaw(Mech.LOC_LARM) ); final boolean shield = ((MiscType)club.getType()).isShield(); ToHitData toHit; if (bothArms) { // check if both arms are present & operational if (ae.isLocationBad(Mech.LOC_RARM) || ae.isLocationBad(Mech.LOC_LARM)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Arm missing"); } // check if attacker has fired arm-mounted weapons if (ae.weaponFiredFrom(Mech.LOC_RARM) || ae.weaponFiredFrom(Mech.LOC_LARM)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Weapons fired from arm this turn"); } // need shoulder and hand actuators if (!ae.hasWorkingSystem(Mech.ACTUATOR_SHOULDER, Mech.LOC_RARM) || !ae.hasWorkingSystem(Mech.ACTUATOR_SHOULDER, Mech.LOC_LARM)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Shoulder actuator destroyed"); } if ( (!ae.hasWorkingSystem(Mech.ACTUATOR_HAND, Mech.LOC_RARM) || !ae.hasWorkingSystem(Mech.ACTUATOR_HAND, Mech.LOC_LARM)) && !hasClaws) { return new ToHitData(ToHitData.IMPOSSIBLE, "Hand actuator destroyed"); } } else if (shield) { if (!ae.hasPassiveShield(club.getLocation())) { return new ToHitData(ToHitData.IMPOSSIBLE, "Shield not in passive mode"); } } else { // check if arm is present if (ae.isLocationBad(club.getLocation())) { return new ToHitData(ToHitData.IMPOSSIBLE, "Arm missing"); } // check if attacker has fired arm-mounted weapons if (ae.weaponFiredFrom(club.getLocation())) { return new ToHitData(ToHitData.IMPOSSIBLE, "Weapons fired from arm this turn"); } // need shoulder and hand actuators if (!ae.hasWorkingSystem(Mech.ACTUATOR_SHOULDER, club.getLocation())) { return new ToHitData(ToHitData.IMPOSSIBLE, "Shoulder actuator destroyed"); } if (!ae.hasWorkingSystem(Mech.ACTUATOR_HAND, club.getLocation()) && !hasClaws) { return new ToHitData(ToHitData.IMPOSSIBLE, "Hand actuator destroyed"); } } // club must not be damaged if (!shield && ae.getBadCriticals(CriticalSlot.TYPE_EQUIPMENT, ae.getEquipmentNum(club), club.getLocation()) > 0) { return new ToHitData(ToHitData.IMPOSSIBLE, "Club is damaged"); } // check elevation (target must be within one level, except for VTOL) int targetMaxElevation = attackerHeight; if(target instanceof VTOL) { targetMaxElevation ++; } if (targetHeight < attackerElevation || targetElevation > targetMaxElevation) { return new ToHitData(ToHitData.IMPOSSIBLE, "Target elevation not in range"); } // check facing int clubArc = bothArms ? Compute.ARC_FORWARD : (club.getLocation() == Mech.LOC_LARM ? Compute.ARC_LEFTARM : Compute.ARC_RIGHTARM); if ( !Compute.isInArc( ae.getPosition(), ae.getSecondaryFacing(), target.getPosition(), clubArc ) ) { return new ToHitData(ToHitData.IMPOSSIBLE, "Target not in arc"); } // can't club while prone if (ae.isProne()) { return new ToHitData(ToHitData.IMPOSSIBLE, "Attacker is prone"); } // Attacks against adjacent buildings automatically hit. if ( target.getTargetType() == Targetable.TYPE_BUILDING || target instanceof GunEmplacement ) { return new ToHitData( ToHitData.AUTOMATIC_SUCCESS, "Targeting adjacent building." ); } //Set the base BTH int base = 4; if ( game.getOptions().booleanOption("maxtech_physical_BTH") ) { base = ae.getCrew().getPiloting() - 1; } // Various versions of physical weapons have different base bonuses and penalties. if (((MiscType)club.getType()).hasSubType(MiscType.S_SWORD)) { base -= 1; } else if ((((MiscType)club.getType()).hasSubType(MiscType.S_DUAL_SAW)) || (((MiscType)club.getType()).hasSubType(MiscType.S_CHAINSAW))) { base += 1; } else if ((((MiscType)club.getType()).hasSubType(MiscType.S_MACE_THB)) || (((MiscType)club.getType()).hasSubType(MiscType.S_MACE)) || (((MiscType)club.getType()).hasSubType(MiscType.S_BACKHOE))) { base += 2; } else if (((MiscType)club.getType()).hasSubType(MiscType.S_PILE_DRIVER)) { base += 3; } else if (((MiscType)club.getType()).hasSubType(MiscType.S_SHIELD_LARGE)) { base -= 3; } else if (((MiscType)club.getType()).hasSubType(MiscType.S_SHIELD_MEDIUM)) { base -= 2; } else if (((MiscType)club.getType()).hasSubType(MiscType.S_SHIELD_SMALL)) { base -= 1; } toHit = new ToHitData(base, "base"); setCommonModifiers(toHit, game, ae, target); // damaged or missing actuators if (bothArms) { if (!ae.hasWorkingSystem(Mech.ACTUATOR_UPPER_ARM, Mech.LOC_RARM)) { toHit.addModifier(2, "Upper arm actuator destroyed"); } if (!ae.hasWorkingSystem(Mech.ACTUATOR_UPPER_ARM, Mech.LOC_LARM)) { toHit.addModifier(2, "Upper arm actuator destroyed"); } if (!ae.hasWorkingSystem(Mech.ACTUATOR_LOWER_ARM, Mech.LOC_RARM)) { toHit.addModifier(2, "Lower arm actuator missing or destroyed"); } if (!ae.hasWorkingSystem(Mech.ACTUATOR_LOWER_ARM, Mech.LOC_LARM)) { toHit.addModifier(2, "Lower arm actuator missing or destroyed"); } if (hasClaws) { toHit.addModifier(2, "Mek has claws"); } } else { if (!ae.hasWorkingSystem(Mech.ACTUATOR_UPPER_ARM, club.getLocation())) { toHit.addModifier(2, "Upper arm actuator destroyed"); } if (!ae.hasWorkingSystem(Mech.ACTUATOR_LOWER_ARM, club.getLocation())) { toHit.addModifier(2, "Lower arm actuator missing or destroyed"); } //Rules state +2 bth if your using a club with claws. if (hasClaws) { toHit.addModifier(2, "Mek has claws"); } } // elevation if (attackerElevation == targetElevation) { if (shield) toHit.setHitTable(ToHitData.HIT_PUNCH); else toHit.setHitTable(ToHitData.HIT_NORMAL); } else if (attackerElevation < targetElevation) { if (target.getHeight() == 0) { if (shield ) toHit.setHitTable(ToHitData.HIT_PUNCH); else toHit.setHitTable(ToHitData.HIT_NORMAL); } else { toHit.setHitTable(ToHitData.HIT_KICK); } } else { toHit.setHitTable(ToHitData.HIT_PUNCH); } // factor in target side toHit.setSideTable(Compute.targetSideTable(ae,target)); // done! return toHit; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/9e5c8530da3d1aaa4a48b9b7c6c56bf003fe518b/ClubAttackAction.java/buggy/megamek/src/megamek/common/actions/ClubAttackAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2974,
13616,
751,
358,
13616,
12,
3047,
339,
7920,
16,
509,
13843,
264,
548,
16,
5916,
429,
1018,
16,
13076,
329,
927,
373,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
4558,
484,
264,
548,
1769,
3639,
368,
1775,
19286,
35,
3639,
309,
261,
8906,
422,
446,
747,
1018,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
3075,
484,
264,
578,
1018,
486,
923,
8863,
3639,
289,
3639,
309,
261,
830,
373,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
2009,
373,
353,
446,
8863,
3639,
289,
3639,
309,
261,
830,
373,
18,
588,
559,
1435,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
2009,
373,
618,
353,
446,
8863,
3639,
289,
3639,
514,
23343,
273,
358,
13616,
2520,
1170,
12708,
12,
13957,
16,
14221,
16,
1018,
1769,
3639,
309,
12,
381,
12708,
480,
446,
13,
288,
5411,
327,
394,
2974,
13616,
751,
12,
774,
13616,
751,
18,
3445,
2419,
1260,
13450,
900,
16,
23343,
1769,
3639,
289,
3639,
368,
1661,
17,
3501,
343,
87,
848,
1404,
927,
373,
3639,
309,
16051,
12,
8906,
1276,
7499,
343,
3719,
288,
5411,
327,
394,
2974,
13616,
751,
12,
774,
13616,
751,
18,
3445,
2419,
1260,
13450,
900,
16,
315,
3989,
17,
3501,
343,
87,
848,
1404,
927,
373,
8863,
3639,
289,
3639,
368,
928,
17318,
848,
1404,
927,
373,
3639,
309,
261,
8906,
18,
1096,
2520,
24483,
10756,
288,
5411,
327,
394,
2974,
13616,
751,
12,
774,
13616,
751,
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,
2974,
13616,
751,
358,
13616,
12,
3047,
339,
7920,
16,
509,
13843,
264,
548,
16,
5916,
429,
1018,
16,
13076,
329,
927,
373,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
4558,
484,
264,
548,
1769,
3639,
368,
1775,
19286,
35,
3639,
309,
261,
8906,
422,
446,
747,
1018,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
3075,
484,
264,
578,
1018,
486,
923,
8863,
3639,
289,
3639,
309,
261,
830,
373,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
2009,
373,
353,
446,
8863,
3639,
289,
3639,
309,
261,
830,
373,
18,
588,
559,
1435,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
2009,
373,
618,
353,
446,
2
] |
if (fMethod.getDeclaringType().isInterface()){ | if (! fMethod.isConstructor() && fMethod.getDeclaringType().isInterface()){ | public RefactoringStatus checkActivation(IProgressMonitor pm) throws JavaModelException { IMethod orig= (IMethod)WorkingCopyUtil.getOriginal(fMethod); if (orig == null || ! orig.exists()) return RefactoringStatus.createFatalErrorStatus("The selected method has been deleted from '" + fMethod.getCompilationUnit().getElementName()+ "'."); fMethod= orig; RefactoringStatus result= Checks.checkIfCuBroken(fMethod); if (result.hasFatalError()) return result; if (MethodChecks.isVirtual(fMethod)){ result.merge(MethodChecks.checkIfComesFromInterface(getMethod(), new SubProgressMonitor(pm, 1))); if (result.hasFatalError()) return result; result.merge(MethodChecks.checkIfOverridesAnother(getMethod(), new SubProgressMonitor(pm, 1))); if (result.hasFatalError()) return result; } if (fMethod.getDeclaringType().isInterface()){ result.merge(MethodChecks.checkIfOverridesAnother(getMethod(), new SubProgressMonitor(pm, 1))); if (result.hasFatalError()) return result; } return result; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/60755fb2f4047fdb67f321c49fb537c0abb0b55a/ReorderParametersRefactoring.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ReorderParametersRefactoring.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
868,
3493,
6053,
1482,
866,
14857,
12,
45,
5491,
7187,
7430,
13,
1216,
5110,
1488,
503,
288,
202,
202,
45,
1305,
1647,
33,
261,
45,
1305,
13,
14836,
2951,
1304,
18,
588,
8176,
12,
74,
1305,
1769,
202,
202,
430,
261,
4949,
422,
446,
747,
401,
1647,
18,
1808,
10756,
1082,
202,
2463,
868,
3493,
6053,
1482,
18,
2640,
19593,
668,
1482,
2932,
1986,
3170,
707,
711,
2118,
4282,
628,
2119,
397,
284,
1305,
18,
588,
19184,
2802,
7675,
21336,
461,
1435,
15,
30156,
1769,
202,
202,
74,
1305,
33,
1647,
31,
25083,
202,
426,
3493,
6053,
1482,
563,
33,
13074,
18,
1893,
2047,
39,
89,
29559,
12,
74,
1305,
1769,
202,
202,
430,
261,
2088,
18,
5332,
19593,
668,
10756,
1082,
202,
2463,
563,
31,
202,
202,
430,
261,
1305,
4081,
18,
291,
6466,
12,
74,
1305,
3719,
95,
1082,
202,
2088,
18,
2702,
12,
1305,
4081,
18,
1893,
2047,
799,
281,
1265,
1358,
12,
588,
1305,
9334,
394,
2592,
5491,
7187,
12,
7755,
16,
404,
3719,
1769,
1082,
202,
430,
261,
2088,
18,
5332,
19593,
668,
10756,
9506,
202,
2463,
563,
31,
6862,
1082,
202,
2088,
18,
2702,
12,
1305,
4081,
18,
1893,
2047,
13084,
37,
24413,
12,
588,
1305,
9334,
394,
2592,
5491,
7187,
12,
7755,
16,
404,
3719,
1769,
1082,
202,
430,
261,
2088,
18,
5332,
19593,
668,
10756,
9506,
202,
2463,
563,
31,
6862,
202,
97,
3196,
202,
430,
261,
74,
1305,
18,
588,
3456,
5968,
559,
7675,
291,
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,
868,
3493,
6053,
1482,
866,
14857,
12,
45,
5491,
7187,
7430,
13,
1216,
5110,
1488,
503,
288,
202,
202,
45,
1305,
1647,
33,
261,
45,
1305,
13,
14836,
2951,
1304,
18,
588,
8176,
12,
74,
1305,
1769,
202,
202,
430,
261,
4949,
422,
446,
747,
401,
1647,
18,
1808,
10756,
1082,
202,
2463,
868,
3493,
6053,
1482,
18,
2640,
19593,
668,
1482,
2932,
1986,
3170,
707,
711,
2118,
4282,
628,
2119,
397,
284,
1305,
18,
588,
19184,
2802,
7675,
21336,
461,
1435,
15,
30156,
1769,
202,
202,
74,
1305,
33,
1647,
31,
25083,
202,
426,
3493,
6053,
1482,
563,
33,
13074,
18,
1893,
2047,
39,
89,
29559,
12,
74,
1305,
1769,
202,
202,
430,
261,
2088,
2
] |
{ ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkShadow(); Color shadow = MetalLookAndFeel.getControlShadow(); Color light = MetalLookAndFeel.getControlHighlight(); Color middle = MetalLookAndFeel.getControl(); if (c.isEnabled()) { g.setColor(darkShadow); g.drawRect(x, y, w - 2, h - 2); if (!bmodel.isPressed()) { g.setColor(light); g.drawRect(x + 1, y + 1, w - 2, h - 2); g.setColor(middle); g.drawLine(x + 1, y + h - 2, x + 1, y + h - 2); g.drawLine(x + w - 2, y + 1, x + w - 2, y + 1); } else { g.setColor(light); g.drawLine(x + w - 1, y + 1, x + w - 1, y + h - 1); g.drawLine(x + 1, y + h - 1, x + w - 1, y + h - 1); g.setColor(middle); g.drawLine(x + 1, y + 1, x + w - 2, y + 1); g.drawLine(x + 1, y + 1, x + 1, y + h - 2); g.setColor(shadow); g.drawRect(x + 1, y + h - 2, 0, 0); g.drawRect(x + w - 2, y + 1, 0, 0); } } else { g.setColor(MetalLookAndFeel.getInactiveControlTextColor()); g.drawRect(x, y, w - 2, h - 2); } | paintDefaultButtonBorder(c, g, x, y, w, h); | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { // With the OceanTheme the button border is painted entirely different. // However, I couldn't figure out how this is determined besides checking // for instanceof OceanTheme. The button painting is definitely not // influenced by a UI default property and it is definitely performed // by the same Border class. if (MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme) paintOceanButtonBorder(c, g, x, y, w, h); else { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkShadow(); Color shadow = MetalLookAndFeel.getControlShadow(); Color light = MetalLookAndFeel.getControlHighlight(); Color middle = MetalLookAndFeel.getControl(); if (c.isEnabled()) { // draw dark border g.setColor(darkShadow); g.drawRect(x, y, w - 2, h - 2); if (!bmodel.isPressed()) { // draw light border g.setColor(light); g.drawRect(x + 1, y + 1, w - 2, h - 2); // draw crossing pixels of both borders g.setColor(middle); g.drawLine(x + 1, y + h - 2, x + 1, y + h - 2); g.drawLine(x + w - 2, y + 1, x + w - 2, y + 1); } else { // draw light border g.setColor(light); g.drawLine(x + w - 1, y + 1, x + w - 1, y + h - 1); g.drawLine(x + 1, y + h - 1, x + w - 1, y + h - 1); // draw shadow border g.setColor(middle); g.drawLine(x + 1, y + 1, x + w - 2, y + 1); g.drawLine(x + 1, y + 1, x + 1, y + h - 2); // draw crossing pixels of both borders g.setColor(shadow); g.drawRect(x + 1, y + h - 2, 0, 0); g.drawRect(x + w - 2, y + 1, 0, 0); } } else { // draw disabled border g.setColor(MetalLookAndFeel.getInactiveControlTextColor()); g.drawRect(x, y, w - 2, h - 2); } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/MetalBorders.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalBorders.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
8107,
12,
1841,
276,
16,
16830,
314,
16,
509,
619,
16,
509,
677,
16,
509,
341,
16,
18701,
509,
366,
13,
565,
288,
1377,
368,
3423,
326,
531,
31393,
8335,
326,
3568,
5795,
353,
12574,
329,
21658,
3775,
18,
1377,
368,
10724,
16,
467,
17991,
1404,
7837,
596,
3661,
333,
353,
11383,
324,
281,
4369,
6728,
1377,
368,
364,
1276,
531,
31393,
8335,
18,
1021,
3568,
12574,
310,
353,
2217,
25818,
486,
1377,
368,
13947,
23209,
72,
635,
279,
6484,
805,
1272,
471,
518,
353,
2217,
25818,
9591,
1377,
368,
635,
326,
1967,
13525,
667,
18,
1377,
309,
261,
26365,
9794,
1876,
2954,
292,
18,
588,
3935,
8335,
1435,
1276,
531,
31393,
8335,
13,
3639,
12574,
51,
31393,
3616,
8107,
12,
71,
16,
314,
16,
619,
16,
677,
16,
341,
16,
366,
1769,
1377,
469,
3639,
288,
1377,
12569,
1488,
324,
2284,
273,
446,
31,
5411,
309,
261,
71,
1276,
4115,
3616,
13,
3639,
324,
2284,
273,
14015,
7469,
3616,
13,
276,
2934,
588,
1488,
5621,
1377,
5563,
23433,
12957,
273,
21604,
287,
9794,
1876,
2954,
292,
18,
588,
3367,
40,
1313,
12957,
5621,
1377,
5563,
10510,
273,
21604,
287,
9794,
1876,
2954,
292,
18,
588,
3367,
12957,
5621,
1850,
5563,
9052,
273,
21604,
287,
9794,
1876,
2954,
292,
18,
588,
3367,
16205,
5621,
1377,
5563,
7689,
273,
21604,
287,
9794,
1876,
2954,
292,
18,
588,
3367,
5621,
1377,
309,
261,
71,
18,
291,
1526,
10756,
1377,
288,
3639,
368,
3724,
23433,
5795,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
8107,
12,
1841,
276,
16,
16830,
314,
16,
509,
619,
16,
509,
677,
16,
509,
341,
16,
18701,
509,
366,
13,
565,
288,
1377,
368,
3423,
326,
531,
31393,
8335,
326,
3568,
5795,
353,
12574,
329,
21658,
3775,
18,
1377,
368,
10724,
16,
467,
17991,
1404,
7837,
596,
3661,
333,
353,
11383,
324,
281,
4369,
6728,
1377,
368,
364,
1276,
531,
31393,
8335,
18,
1021,
3568,
12574,
310,
353,
2217,
25818,
486,
1377,
368,
13947,
23209,
72,
635,
279,
6484,
805,
1272,
471,
518,
353,
2217,
25818,
9591,
1377,
368,
635,
326,
1967,
13525,
667,
18,
1377,
309,
261,
26365,
9794,
1876,
2954,
292,
18,
588,
3935,
8335,
1435,
1276,
531,
31393,
8335,
13,
3639,
2
] |
newArray.append(aref(new IRubyObject[] {args[i]})); | IRubyObject o = aref(new IRubyObject[] {args[i]}); if (args[i] instanceof RubyRange) { if (o instanceof RubyArray) { for (Iterator j = ((RubyArray) o).getList().iterator(); j.hasNext();) { newArray.append((IRubyObject) j.next()); } } } else { newArray.append(o); } | public IRubyObject values_at(IRubyObject[] args) { RubyArray newArray = getRuntime().newArray(); for (int i = 0; i < args.length; i++) { newArray.append(aref(new IRubyObject[] {args[i]})); } return newArray; } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/0493e2e7e2224d8d24a2559a6955a926c489fac7/RubyArray.java/clean/src/org/jruby/RubyArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
924,
67,
270,
12,
7937,
10340,
921,
8526,
833,
13,
288,
377,
202,
54,
10340,
1076,
11653,
273,
18814,
7675,
2704,
1076,
5621,
377,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
377,
202,
202,
7937,
10340,
921,
320,
273,
854,
74,
12,
2704,
15908,
10340,
921,
8526,
288,
1968,
63,
77,
18322,
1769,
309,
261,
1968,
63,
77,
65,
1276,
19817,
2655,
13,
288,
309,
261,
83,
1276,
19817,
1076,
13,
288,
364,
261,
3198,
525,
273,
14015,
54,
10340,
1076,
13,
320,
2934,
588,
682,
7675,
9838,
5621,
525,
18,
5332,
2134,
5621,
13,
288,
11653,
18,
6923,
12443,
7937,
10340,
921,
13,
525,
18,
4285,
10663,
289,
289,
289,
469,
288,
11653,
18,
6923,
12,
83,
1769,
289,
377,
202,
97,
377,
202,
377,
202,
2463,
11653,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
924,
67,
270,
12,
7937,
10340,
921,
8526,
833,
13,
288,
377,
202,
54,
10340,
1076,
11653,
273,
18814,
7675,
2704,
1076,
5621,
377,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
377,
202,
202,
7937,
10340,
921,
320,
273,
854,
74,
12,
2704,
15908,
10340,
921,
8526,
288,
1968,
63,
77,
18322,
1769,
309,
261,
1968,
63,
77,
65,
1276,
19817,
2655,
13,
288,
309,
261,
83,
1276,
19817,
1076,
13,
288,
364,
261,
3198,
525,
273,
14015,
54,
10340,
1076,
13,
320,
2934,
588,
682,
7675,
9838,
5621,
525,
18,
5332,
2134,
5621,
13,
288,
11653,
18,
6923,
12443,
7937,
10340,
921,
13,
2
] |
if (varChild_lVal == COM.CHILDID_SELF) event.childID = ACC.CHILDID_SELF; else if (control instanceof Tree) event.childID = varChild_lVal; else event.childID = varChild_lVal - 1; | event.childID = osToChildID(varChild_lVal); | int get_accChild(int varChild_vt, int varChild_reserved1, int varChild_lVal, int varChild_reserved2, int ppdispChild) { if (iaccessible == null) return COM.CO_E_OBJNOTCONNECTED; if ((varChild_vt & 0xFFFF) != COM.VT_I4) return COM.E_INVALIDARG; if (accessibleControlListeners.size() == 0) { int code = iaccessible.get_accChild(varChild_vt, varChild_reserved1, varChild_lVal, varChild_reserved2, ppdispChild); if (code == COM.E_INVALIDARG) code = COM.S_FALSE; // proxy doesn't know about app childID return code; } AccessibleControlEvent event = new AccessibleControlEvent(this); if (varChild_lVal == COM.CHILDID_SELF) event.childID = ACC.CHILDID_SELF; else if (control instanceof Tree) event.childID = varChild_lVal; // Tree item childIDs are pointers else event.childID = varChild_lVal - 1; // All other childIDs are 1-based indices for (int i = 0; i < accessibleControlListeners.size(); i++) { AccessibleControlListener listener = (AccessibleControlListener) accessibleControlListeners.elementAt(i); listener.getChild(event); } Accessible accessible = event.accessible; if (accessible != null) { COM.MoveMemory(ppdispChild, new int[] { accessible.objIAccessible.getAddress() }, 4); return COM.S_OK; } return COM.S_FALSE; } | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/a29ead267e20209d48db539a375ce453914d2d9b/Accessible.java/clean/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
336,
67,
8981,
1763,
12,
474,
569,
1763,
67,
11734,
16,
509,
569,
1763,
67,
18898,
21,
16,
509,
569,
1763,
67,
80,
3053,
16,
509,
569,
1763,
67,
18898,
22,
16,
509,
8228,
25453,
1763,
13,
288,
202,
202,
430,
261,
1155,
850,
1523,
422,
446,
13,
327,
5423,
18,
3865,
67,
41,
67,
24547,
4400,
29011,
31,
202,
202,
430,
14015,
1401,
1763,
67,
11734,
473,
374,
21718,
13,
480,
5423,
18,
58,
56,
67,
45,
24,
13,
327,
5423,
18,
41,
67,
9347,
10973,
31,
202,
202,
430,
261,
26037,
3367,
5583,
18,
1467,
1435,
422,
374,
13,
288,
1082,
202,
474,
981,
273,
277,
26037,
18,
588,
67,
8981,
1763,
12,
1401,
1763,
67,
11734,
16,
569,
1763,
67,
18898,
21,
16,
569,
1763,
67,
80,
3053,
16,
569,
1763,
67,
18898,
22,
16,
8228,
25453,
1763,
1769,
1082,
202,
430,
261,
710,
422,
5423,
18,
41,
67,
9347,
10973,
13,
981,
273,
5423,
18,
55,
67,
21053,
31,
368,
2889,
3302,
1404,
5055,
2973,
595,
1151,
734,
1082,
202,
2463,
981,
31,
202,
202,
97,
202,
202,
10451,
3367,
1133,
871,
273,
394,
5016,
1523,
3367,
1133,
12,
2211,
1769,
202,
202,
430,
261,
1401,
1763,
67,
80,
3053,
422,
5423,
18,
27043,
734,
67,
26280,
13,
871,
18,
3624,
734,
273,
18816,
18,
27043,
734,
67,
26280,
31,
202,
202,
12107,
309,
261,
7098,
1276,
4902,
13,
871,
18,
3624,
734,
273,
569,
1763,
67,
80,
3053,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
336,
67,
8981,
1763,
12,
474,
569,
1763,
67,
11734,
16,
509,
569,
1763,
67,
18898,
21,
16,
509,
569,
1763,
67,
80,
3053,
16,
509,
569,
1763,
67,
18898,
22,
16,
509,
8228,
25453,
1763,
13,
288,
202,
202,
430,
261,
1155,
850,
1523,
422,
446,
13,
327,
5423,
18,
3865,
67,
41,
67,
24547,
4400,
29011,
31,
202,
202,
430,
14015,
1401,
1763,
67,
11734,
473,
374,
21718,
13,
480,
5423,
18,
58,
56,
67,
45,
24,
13,
327,
5423,
18,
41,
67,
9347,
10973,
31,
202,
202,
430,
261,
26037,
3367,
5583,
18,
1467,
1435,
422,
374,
13,
288,
1082,
202,
474,
981,
273,
277,
26037,
18,
588,
67,
8981,
1763,
12,
1401,
2
] |
break; | return EOL; | public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } retry: for (;;) { // Eat whitespace, possibly sensitive to newlines. for (;;) { c = getChar(); if (c == EOF_CHAR) { return EOF; } else if (c == '\n') { flags &= ~TSF_DIRTYLINE; if ((flags & TSF_NEWLINES) != 0) { break; } } else if (!isJSSpace(c)) { if (c != '-') { flags |= TSF_DIRTYLINE; } break; } } // identifier/keyword/instanceof? // watch out for starting with a <backslash> boolean identifierStart; boolean isUnicodeEscapeStart = false; if (c == '\\') { c = getChar(); if (c == 'u') { identifierStart = true; isUnicodeEscapeStart = true; stringBufferTop = 0; } else { identifierStart = false; ungetChar(c); c = '\\'; } } else { identifierStart = Character.isJavaIdentifierStart((char)c); if (identifierStart) { stringBufferTop = 0; addToString(c); } } if (identifierStart) { boolean containsEscape = isUnicodeEscapeStart; for (;;) { if (isUnicodeEscapeStart) { // strictly speaking we should probably push-back // all the bad characters if the <backslash>uXXXX // sequence is malformed. But since there isn't a // correct context(is there?) for a bad Unicode // escape sequence in an identifier, we can report // an error here. int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = getChar(); escapeVal = (escapeVal << 4) | xDigitToInt(c); // Next check takes care about c < 0 and bad escape if (escapeVal < 0) { break; } } if (escapeVal < 0) { reportSyntaxError("msg.invalid.escape", null); return ERROR; } addToString(escapeVal); isUnicodeEscapeStart = false; } else { c = getChar(); if (c == '\\') { c = getChar(); if (c == 'u') { isUnicodeEscapeStart = true; containsEscape = true; } else { reportSyntaxError("msg.illegal.character", null); return ERROR; } } else { if (c == EOF_CHAR || !Character.isJavaIdentifierPart((char)c)) { break; } addToString(c); } } } ungetChar(c); String str = getStringFromBuffer(); if (!containsEscape) { // OPT we shouldn't have to make a string (object!) to // check if it's a keyword. // Return the corresponding token if it's a keyword int result = stringToKeyword(str); if (result != EOF) { if (result != RESERVED) { return result; } else if (!Context.getContext().hasFeature( Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER)) { return result; } else { // If implementation permits to use future reserved // keywords in violation with the EcmaScript standard, // treat it as name but issue warning Object[] errArgs = { str }; reportSyntaxWarning("msg.reserved.keyword", errArgs); } } } this.string = (String)allStrings.intern(str); return NAME; } // is it a number? if (isDigit(c) || (c == '.' && isDigit(peekChar()))) { stringBufferTop = 0; int base = 10; if (c == '0') { c = getChar(); if (c == 'x' || c == 'X') { base = 16; c = getChar(); } else if (isDigit(c)) { base = 8; } else { addToString('0'); } } if (base == 16) { while (0 <= xDigitToInt(c)) { addToString(c); c = getChar(); } } else { while ('0' <= c && c <= '9') { /* * We permit 08 and 09 as decimal numbers, which * makes our behavior a superset of the ECMA * numeric grammar. We might not always be so * permissive, so we warn about it. */ if (base == 8 && c >= '8') { Object[] errArgs = { c == '8' ? "8" : "9" }; reportSyntaxWarning("msg.bad.octal.literal", errArgs); base = 10; } addToString(c); c = getChar(); } } boolean isInteger = true; if (base == 10 && (c == '.' || c == 'e' || c == 'E')) { isInteger = false; if (c == '.') { do { addToString(c); c = getChar(); } while (isDigit(c)); } if (c == 'e' || c == 'E') { addToString(c); c = getChar(); if (c == '+' || c == '-') { addToString(c); c = getChar(); } if (!isDigit(c)) { reportSyntaxError("msg.missing.exponent", null); return ERROR; } do { addToString(c); c = getChar(); } while (isDigit(c)); } } ungetChar(c); String numString = getStringFromBuffer(); double dval; if (base == 10 && !isInteger) { try { // Use Java conversion to number from string... dval = (Double.valueOf(numString)).doubleValue(); } catch (NumberFormatException ex) { Object[] errArgs = { ex.getMessage() }; reportSyntaxError("msg.caught.nfe", errArgs); return ERROR; } } else { dval = ScriptRuntime.stringToNumber(numString, 0, base); } this.number = dval; return NUMBER; } // is it a string? if (c == '"' || c == '\'') { // We attempt to accumulate a string the fast way, by // building it directly out of the reader. But if there // are any escaped characters in the string, we revert to // building it out of a StringBuffer. int quoteChar = c; stringBufferTop = 0; c = getChar(); strLoop: while (c != quoteChar) { if (c == '\n' || c == EOF_CHAR) { ungetChar(c); reportSyntaxError("msg.unterminated.string.lit", null); return ERROR; } if (c == '\\') { // We've hit an escaped character int escapeVal; c = getChar(); switch (c) { case 'b': c = '\b'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break; case 'r': c = '\r'; break; case 't': c = '\t'; break; // \v a late addition to the ECMA spec, // it is not in Java, so use 0xb case 'v': c = 0xb; break; case 'u': // Get 4 hex digits; if the u escape is not // followed by 4 hex digits, use 'u' + the // literal character sequence that follows. int escapeStart = stringBufferTop; addToString('u'); escapeVal = 0; for (int i = 0; i != 4; ++i) { c = getChar(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { continue strLoop; } addToString(c); } // prepare for replace of stored 'u' sequence // by escape value stringBufferTop = escapeStart; c = escapeVal; break; case 'x': // Get 2 hex digits, defaulting to 'x'+literal // sequence, as above. c = getChar(); escapeVal = xDigitToInt(c); if (escapeVal < 0) { addToString('x'); continue strLoop; } else { int c1 = c; c = getChar(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { addToString('x'); addToString(c1); continue strLoop; } else { // got 2 hex digits c = escapeVal; } } break; default: if ('0' <= c && c < '8') { int val = c - '0'; c = getChar(); if ('0' <= c && c < '8') { val = 8 * val + c - '0'; c = getChar(); if ('0' <= c && c < '8' && val <= 037) { // c is 3rd char of octal sequence only // if the resulting val <= 0377 val = 8 * val + c - '0'; c = getChar(); } } ungetChar(c); c = val; } } } addToString(c); c = getChar(); } String str = getStringFromBuffer(); this.string = (String)allStrings.intern(str); return STRING; } switch (c) { case '\n': return EOL; case ';': return SEMI; case '[': return LB; case ']': return RB; case '{': return LC; case '}': return RC; case '(': return LP; case ')': return RP; case ',': return COMMA; case '?': return HOOK; case ':': return COLON; case '.': return DOT; case '|': if (matchChar('|')) { return OR; } else if (matchChar('=')) { this.op = BITOR; return ASSIGN; } else { return BITOR; } case '^': if (matchChar('=')) { this.op = BITXOR; return ASSIGN; } else { return BITXOR; } case '&': if (matchChar('&')) { return AND; } else if (matchChar('=')) { this.op = BITAND; return ASSIGN; } else { return BITAND; } case '=': if (matchChar('=')) { if (matchChar('=')) this.op = SHEQ; else this.op = EQ; return EQOP; } else { this.op = NOP; return ASSIGN; } case '!': if (matchChar('=')) { if (matchChar('=')) this.op = SHNE; else this.op = NE; return EQOP; } else { this.op = NOT; return UNARYOP; } case '<': /* NB:treat HTML begin-comment as comment-till-eol */ if (matchChar('!')) { if (matchChar('-')) { if (matchChar('-')) { skipLine(); continue retry; } ungetChar('-'); } ungetChar('!'); } if (matchChar('<')) { if (matchChar('=')) { this.op = LSH; return ASSIGN; } else { this.op = LSH; return SHOP; } } else { if (matchChar('=')) { this.op = LE; return RELOP; } else { this.op = LT; return RELOP; } } case '>': if (matchChar('>')) { if (matchChar('>')) { if (matchChar('=')) { this.op = URSH; return ASSIGN; } else { this.op = URSH; return SHOP; } } else { if (matchChar('=')) { this.op = RSH; return ASSIGN; } else { this.op = RSH; return SHOP; } } } else { if (matchChar('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } } case '*': if (matchChar('=')) { this.op = MUL; return ASSIGN; } else { return MUL; } case '/': // is it a // comment? if (matchChar('/')) { skipLine(); continue retry; } if (matchChar('*')) { boolean lookForSlash = false; for (;;) { c = getChar(); if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } else if (c == '*') { lookForSlash = true; } else if (c == '/') { if (lookForSlash) { continue retry; } } else { lookForSlash = false; } } } // is it a regexp? if ((flags & TSF_REGEXP) != 0) { stringBufferTop = 0; while ((c = getChar()) != '/') { if (c == '\n' || c == EOF_CHAR) { ungetChar(c); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { addToString(c); c = getChar(); } addToString(c); } int reEnd = stringBufferTop; while (true) { if (matchChar('g')) addToString('g'); else if (matchChar('i')) addToString('i'); else if (matchChar('m')) addToString('m'); else break; } if (isAlpha(peekChar())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = new String(stringBuffer, 0, reEnd); this.regExpFlags = new String(stringBuffer, reEnd, stringBufferTop - reEnd); return REGEXP; } if (matchChar('=')) { this.op = DIV; return ASSIGN; } else { return DIV; } case '%': this.op = MOD; if (matchChar('=')) { return ASSIGN; } else { return MOD; } case '~': this.op = BITNOT; return UNARYOP; case '+': if (matchChar('=')) { this.op = ADD; return ASSIGN; } else if (matchChar('+')) { return INC; } else { return ADD; } case '-': if (matchChar('=')) { this.op = SUB; c = ASSIGN; } else if (matchChar('-')) { if (0 == (flags & TSF_DIRTYLINE)) { // treat HTML end-comment after possible whitespace // after line start as comment-utill-eol if (matchChar('>')) { skipLine(); continue retry; } } c = DEC; } else { c = SUB; } flags |= TSF_DIRTYLINE; return c; default: reportSyntaxError("msg.illegal.character", null); return ERROR; } } } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/56c3f65ac92dbd3ff9f471a1829280e95bd7ddf4/TokenStream.java/buggy/js/rhino/src/org/mozilla/javascript/TokenStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9162,
1435,
1216,
1860,
288,
3639,
509,
276,
31,
3639,
1147,
2135,
9904,
31,
3639,
368,
2073,
364,
18543,
17,
823,
1147,
3639,
309,
261,
2211,
18,
6206,
823,
1345,
480,
6431,
13,
288,
5411,
509,
563,
273,
333,
18,
6206,
823,
1345,
31,
5411,
333,
18,
6206,
823,
1345,
273,
6431,
31,
5411,
327,
563,
31,
3639,
289,
565,
3300,
30,
3639,
364,
261,
25708,
13,
288,
5411,
368,
512,
270,
7983,
16,
10016,
16692,
358,
19181,
18,
5411,
364,
261,
25708,
13,
288,
7734,
276,
273,
23577,
5621,
7734,
309,
261,
71,
422,
6431,
67,
7305,
13,
288,
10792,
327,
6431,
31,
7734,
289,
469,
309,
261,
71,
422,
2337,
82,
6134,
288,
10792,
2943,
12058,
4871,
8047,
42,
67,
4537,
5538,
5997,
31,
10792,
309,
14015,
7133,
473,
15508,
42,
67,
12917,
5997,
55,
13,
480,
374,
13,
288,
13491,
327,
19995,
31,
10792,
289,
7734,
289,
469,
309,
16051,
291,
46,
1260,
909,
12,
71,
3719,
288,
10792,
309,
261,
71,
480,
4014,
13,
288,
13491,
2943,
5626,
15508,
42,
67,
4537,
5538,
5997,
31,
10792,
289,
10792,
327,
19995,
31,
7734,
289,
5411,
289,
5411,
368,
2756,
19,
11041,
19,
1336,
792,
35,
5411,
368,
4267,
596,
364,
5023,
598,
279,
411,
823,
12877,
34,
5411,
1250,
2756,
1685,
31,
5411,
1250,
353,
16532,
8448,
1685,
273,
629,
31,
5411,
309,
261,
71,
422,
5282,
13,
288,
7734,
276,
273,
23577,
5621,
7734,
309,
261,
71,
422,
296,
89,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9162,
1435,
1216,
1860,
288,
3639,
509,
276,
31,
3639,
1147,
2135,
9904,
31,
3639,
368,
2073,
364,
18543,
17,
823,
1147,
3639,
309,
261,
2211,
18,
6206,
823,
1345,
480,
6431,
13,
288,
5411,
509,
563,
273,
333,
18,
6206,
823,
1345,
31,
5411,
333,
18,
6206,
823,
1345,
273,
6431,
31,
5411,
327,
563,
31,
3639,
289,
565,
3300,
30,
3639,
364,
261,
25708,
13,
288,
5411,
368,
512,
270,
7983,
16,
10016,
16692,
358,
19181,
18,
5411,
364,
261,
25708,
13,
288,
7734,
276,
273,
23577,
5621,
7734,
309,
261,
71,
422,
6431,
67,
7305,
13,
288,
10792,
327,
6431,
31,
7734,
289,
469,
309,
261,
71,
422,
2337,
82,
6134,
288,
10792,
2
] |
public void expander() throws RecognitionException { String name = null; String config=null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:277:17: ( 'expander' (name= dotted_name )? ( ';' )? opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:277:17: 'expander' (name= dotted_name )? ( ';' )? opt_eol { match(input,18,FOLLOW_18_in_expander240); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:277:28: (name= dotted_name )? int alt7=2; int LA7_0 = input.LA(1); if ( LA7_0==ID ) { alt7=1; } else if ( LA7_0==-1||LA7_0==EOL||LA7_0==15||(LA7_0>=17 && LA7_0<=20)||LA7_0==26||LA7_0==28 ) { alt7=2; } else { NoViableAltException nvae = new NoViableAltException("277:28: (name= dotted_name )?", 7, 0, input); throw nvae; } switch (alt7) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:277:29: name= dotted_name { following.push(FOLLOW_dotted_name_in_expander245); name=dotted_name(); following.pop(); } break; } // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:277:48: ( ';' )? int alt8=2; int LA8_0 = input.LA(1); if ( LA8_0==15 ) { alt8=1; } else if ( LA8_0==-1||LA8_0==EOL||(LA8_0>=17 && LA8_0<=20)||LA8_0==26||LA8_0==28 ) { alt8=2; } else { NoViableAltException nvae = new NoViableAltException("277:48: ( \';\' )?", 8, 0, input); throw nvae; } switch (alt8) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:277:48: ';' { match(input,15,FOLLOW_15_in_expander249); } break; } following.push(FOLLOW_opt_eol_in_expander252); opt_eol(); following.pop(); if (expanderResolver == null) throw new IllegalArgumentException("Unable to use expander. Make sure a expander or dsl config is being passed to the parser. [ExpanderResolver was not set]."); if ( expander != null ) throw new IllegalArgumentException( "Only one 'expander' statement per file is allowed" ); expander = expanderResolver.get( name, config ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/297a1e0ef2967d8b4f7be9c022102a5a56e97489/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4542,
264,
1435,
1216,
9539,
288,
6647,
514,
508,
273,
446,
31,
1171,
202,
202,
780,
642,
33,
2011,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
22,
4700,
30,
4033,
30,
261,
296,
12320,
264,
11,
261,
529,
33,
20965,
67,
529,
7851,
261,
7554,
7851,
2153,
67,
30951,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
22,
4700,
30,
4033,
30,
296,
12320,
264,
11,
261,
529,
33,
20965,
67,
529,
7851,
261,
7554,
7851,
2153,
67,
30951,
5411,
288,
5411,
845,
12,
2630,
16,
2643,
16,
29890,
67,
2643,
67,
267,
67,
12320,
264,
28784,
1769,
2398,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
22,
4700,
30,
6030,
30,
261,
529,
33,
20965,
67,
529,
7851,
5411,
509,
3770,
27,
33,
22,
31,
5411,
509,
2928,
27,
67,
20,
273,
810,
18,
2534,
12,
21,
1769,
5411,
309,
261,
2928,
27,
67,
20,
631,
734,
262,
288,
7734,
3770,
27,
33,
21,
31,
5411,
289,
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,
918,
4542,
264,
1435,
1216,
9539,
288,
6647,
514,
508,
273,
446,
31,
1171,
202,
202,
780,
642,
33,
2011,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
22,
4700,
30,
4033,
30,
261,
296,
12320,
264,
11,
261,
529,
33,
20965,
67,
529,
7851,
261,
7554,
7851,
2153,
67,
30951,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
2
] |
||
double devSX = Math.sqrt(sx*sx + shy*shy); double devSY = Math.sqrt(sy*sy + shx*shx); | public RenderedImage createRendering(RenderContext renderContext){ // Get user space to device space transform AffineTransform usr2dev = renderContext.getTransform(); if(usr2dev == null){ usr2dev = new AffineTransform(); } // As per specification, a value of zero for the // x-axis or y-axis causes the filter to produce // nothing. // The processing is done as follows: // + if the x resolution is zero, this is a no-op // else compute the x scale. // + if the y resolution is zero, this is a no-op // else compute the y resolution from the x scale // and compute the corresponding y scale. // + if the y or x scale is less than one, insert // an AffineRable. // Else, return the source as is. float filterResolutionX = this.filterResolutionX; float filterResolutionY = this.filterResolutionY; // System.out.println("FilterResRable: " + filterResolutionX + "x" + // filterResolutionY); // Find out the renderable area Rectangle2D imageRect = getBounds2D(); Rectangle devRect; devRect = usr2dev.createTransformedShape(imageRect).getBounds(); if(filterResolutionX > 1) { // Now, compare the devRect with the filter // resolution hints float scaleX = 1; float scaleY = 1; if(filterResolutionX < devRect.width){ scaleX = filterResolutionX / (float)devRect.width; } if(filterResolutionY != 0){ if(filterResolutionY < 0){ filterResolutionY = scaleX*(float)devRect.height; } if(filterResolutionY < devRect.height) { scaleY = filterResolutionY / (float)devRect.height; } // Only resample if either scaleX or scaleY is // smaller than 1 RenderableImage localSource = getSource(); RenderContext localRenderContext = renderContext; if((scaleX < 1) || (scaleY < 1)){ // System.out.println("filterRes X " + filterResolutionX + // " Y : " + filterResolutionY); scaleX = scaleX < scaleY ? scaleX : scaleY; scaleY = scaleX; // // Create a rendering that will be less than // or equal to filterResolutionX by filterResolutionY. // AffineTransform newUsr2Dev = AffineTransform.getScaleInstance(scaleX, scaleY); newUsr2Dev.concatenate(usr2dev); // This splits out the scale so we know how much to pad // in user space so we have a pixel surround in device // space for the affine. double sx = newUsr2Dev.getScaleX(); double sy = newUsr2Dev.getScaleY(); double shx = newUsr2Dev.getShearX(); double shy = newUsr2Dev.getShearY(); // The Scale is roughly the "hypotonose" of the // matrix vectors. double devSX = Math.sqrt(sx*sx + shy*shy); double devSY = Math.sqrt(sy*sy + shx*shx); // // Create a new RenderingContext // RenderContext newRenderContext = (RenderContext)renderContext.clone(); newRenderContext.setTransform(newUsr2Dev); Shape aoi = renderContext.getAreaOfInterest(); if (aoi == null) aoi = getBounds2D(); // // We need to grow the area of interest by a few // pixels in device space so the AffineRed can // interpolate at the edges.. // Rectangle2D newAOI = aoi.getBounds2D(); newAOI = new Rectangle2D.Double (newAOI.getX()-1/devSX, newAOI.getY()-1/devSY, newAOI.getWidth()+2/devSX, newAOI.getHeight()+2/devSY); newRenderContext.setAreaOfInterest(newAOI); // // Now, use an AffineRable that will apply the // resampling // AffineTransform resampleTxf = AffineTransform.getScaleInstance(1/scaleX, 1/scaleY); RenderedImage result = null; result = localSource.createRendering(newRenderContext); // org.ImageDisplay.showImage("AT: " + newUsr2Dev, result); if (result != null) result = new AffineRed (GraphicsUtil.wrap(result), resampleTxf, renderContext.getRenderingHints()); return result; } return localSource.createRendering(localRenderContext); } } return null; } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/4a4a1ca3f7e19e5a5e3bf63d73ec840e6eff093f/FilterResRable8Bit.java/buggy/sources/org/apache/batik/ext/awt/image/renderable/FilterResRable8Bit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6987,
329,
2040,
752,
14261,
12,
3420,
1042,
28678,
15329,
3639,
368,
968,
729,
3476,
358,
2346,
3476,
2510,
3639,
23906,
558,
4059,
16575,
22,
5206,
273,
28678,
18,
588,
4059,
5621,
3639,
309,
12,
13640,
22,
5206,
422,
446,
15329,
5411,
16575,
22,
5206,
273,
394,
23906,
558,
4059,
5621,
3639,
289,
7734,
368,
2970,
1534,
7490,
16,
279,
460,
434,
3634,
364,
326,
540,
368,
619,
17,
4890,
578,
677,
17,
4890,
14119,
326,
1034,
358,
11402,
3639,
368,
5083,
18,
3639,
368,
1021,
4929,
353,
2731,
487,
13040,
30,
3639,
368,
397,
309,
326,
619,
7861,
353,
3634,
16,
333,
353,
279,
1158,
17,
556,
3639,
368,
282,
469,
3671,
326,
619,
3159,
18,
3639,
368,
397,
309,
326,
677,
7861,
353,
3634,
16,
333,
353,
279,
1158,
17,
556,
3639,
368,
282,
469,
3671,
326,
677,
7861,
628,
326,
619,
3159,
3639,
368,
282,
471,
3671,
326,
4656,
677,
3159,
18,
3639,
368,
397,
309,
326,
677,
578,
619,
3159,
353,
5242,
2353,
1245,
16,
2243,
540,
368,
282,
392,
23906,
558,
54,
429,
18,
3639,
368,
282,
16289,
16,
327,
326,
1084,
487,
353,
18,
3639,
1431,
1034,
11098,
60,
273,
333,
18,
2188,
11098,
60,
31,
3639,
1431,
1034,
11098,
61,
273,
333,
18,
2188,
11098,
61,
31,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
1586,
607,
54,
429,
30,
315,
397,
1034,
11098,
60,
397,
315,
92,
6,
397,
3639,
368,
10792,
1034,
11098,
61,
1769,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6987,
329,
2040,
752,
14261,
12,
3420,
1042,
28678,
15329,
3639,
368,
968,
729,
3476,
358,
2346,
3476,
2510,
3639,
23906,
558,
4059,
16575,
22,
5206,
273,
28678,
18,
588,
4059,
5621,
3639,
309,
12,
13640,
22,
5206,
422,
446,
15329,
5411,
16575,
22,
5206,
273,
394,
23906,
558,
4059,
5621,
3639,
289,
7734,
368,
2970,
1534,
7490,
16,
279,
460,
434,
3634,
364,
326,
540,
368,
619,
17,
4890,
578,
677,
17,
4890,
14119,
326,
1034,
358,
11402,
3639,
368,
5083,
18,
3639,
368,
1021,
4929,
353,
2731,
487,
13040,
30,
3639,
368,
397,
309,
326,
619,
7861,
353,
3634,
16,
333,
353,
279,
1158,
17,
556,
3639,
368,
282,
469,
3671,
326,
619,
3159,
18,
2
] |
|
new ImageIcon(getClass().getResource("images/biffUnknown.gif")); | new ImageIcon("ui/images/biffUnknown.gif"); | public BiffIcon() { if (fIconUnknown == null) { fIconUnknown = new ImageIcon(getClass().getResource("images/biffUnknown.gif")); fIconNew = new ImageIcon(getClass().getResource("images/biffNew.gif")); fIconNone = new ImageIcon(getClass().getResource("images/biffNone.gif")); } setText(null); // Necessary for icon size to be used for preferred size setBiffState(MailDrop.UNKNOWN); fThread = BiffThread.Get(); fThread.addChangeListener(this); setBiffState(fThread.getBiffState()); } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/BiffIcon.java/buggy/grendel/sources/grendel/ui/BiffIcon.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
605,
3048,
5554,
1435,
288,
565,
309,
261,
74,
5554,
4874,
422,
446,
13,
288,
1377,
284,
5554,
4874,
273,
3639,
394,
3421,
5554,
2932,
4881,
19,
7369,
19,
70,
3048,
4874,
18,
13905,
8863,
1377,
284,
5554,
1908,
273,
3639,
394,
3421,
5554,
12,
588,
797,
7675,
588,
1420,
2932,
7369,
19,
70,
3048,
1908,
18,
13905,
7923,
1769,
1377,
284,
5554,
7036,
273,
3639,
394,
3421,
5554,
12,
588,
797,
7675,
588,
1420,
2932,
7369,
19,
70,
3048,
7036,
18,
13905,
7923,
1769,
565,
289,
565,
7883,
12,
2011,
1769,
368,
423,
4128,
364,
4126,
963,
358,
506,
1399,
364,
9119,
963,
565,
15268,
3048,
1119,
12,
6759,
7544,
18,
14737,
1769,
565,
284,
3830,
273,
605,
3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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
605,
3048,
5554,
1435,
288,
565,
309,
261,
74,
5554,
4874,
422,
446,
13,
288,
1377,
284,
5554,
4874,
273,
3639,
394,
3421,
5554,
2932,
4881,
19,
7369,
19,
70,
3048,
4874,
18,
13905,
8863,
1377,
284,
5554,
1908,
273,
3639,
394,
3421,
5554,
12,
588,
797,
7675,
588,
1420,
2932,
7369,
19,
70,
3048,
1908,
18,
13905,
7923,
1769,
1377,
284,
5554,
7036,
273,
3639,
394,
3421,
5554,
12,
588,
797,
7675,
588,
1420,
2932,
7369,
19,
70,
3048,
7036,
18,
13905,
7923,
1769,
565,
289,
565,
7883,
12,
2011,
1769,
368,
423,
4128,
364,
4126,
963,
358,
506,
1399,
364,
9119,
963,
565,
15268,
3048,
1119,
12,
6759,
7544,
18,
14737,
1769,
565,
284,
3830,
2
] |
private static void generateCtor(ClassFileWriter cfw, String adapterName, Class superClass) { cfw.startMethod("<init>", "(Lorg/mozilla/javascript/Scriptable;)V", ClassFileWriter.ACC_PUBLIC); // Invoke base class constructor cfw.add(ByteCode.ALOAD_0); // this cfw.add(ByteCode.INVOKESPECIAL, superClass.getName().replace('.', '/'), "<init>", "()", "V"); // Save parameter in instance variable "self" cfw.add(ByteCode.ALOAD_0); // this cfw.add(ByteCode.ALOAD_1); // first arg cfw.add(ByteCode.PUTFIELD, adapterName, "self", "Lorg/mozilla/javascript/Scriptable;"); // Set the prototype of the js object to be a LiveConnect // wapper of the generated class's object cfw.add(ByteCode.ALOAD_1); // first arg cfw.add(ByteCode.ALOAD_0); // this cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/ScriptRuntime", "setAdapterProto", "(Lorg/mozilla/javascript/Scriptable;" + "Ljava/lang/Object;)", "V"); cfw.add(ByteCode.RETURN); cfw.stopMethod((short)20, null); // TODO: magic number "20" } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/9a0f128be44e151cb511e8f524bcf6e360ad5635/JavaAdapter.java/buggy/js/rhino/org/mozilla/javascript/JavaAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2103,
27425,
12,
797,
812,
2289,
6080,
91,
16,
514,
4516,
461,
16,
4766,
1377,
1659,
18846,
13,
377,
288,
3639,
6080,
91,
18,
1937,
1305,
2932,
32,
2738,
2984,
16,
7682,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
30943,
58,
3113,
13491,
30614,
2289,
18,
31414,
67,
14939,
1769,
7734,
368,
14373,
1026,
667,
3885,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
1013,
51,
1880,
67,
20,
1769,
225,
368,
333,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
706,
17691,
3991,
10106,
6365,
16,
7734,
18846,
18,
17994,
7675,
2079,
2668,
1093,
16,
2023,
3631,
1171,
3532,
2738,
2984,
16,
25605,
3113,
315,
58,
8863,
7734,
368,
7074,
1569,
316,
791,
2190,
315,
2890,
6,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
1013,
51,
1880,
67,
20,
1769,
225,
368,
333,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
1013,
51,
1880,
67,
21,
1769,
225,
368,
1122,
1501,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
4762,
6776,
16,
4516,
461,
16,
315,
2890,
3113,
1171,
315,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
1769,
3639,
368,
1000,
326,
4409,
434,
326,
3828,
733,
358,
506,
279,
21559,
5215,
540,
368,
341,
438,
457,
434,
326,
4374,
667,
1807,
733,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
1013,
51,
1880,
67,
21,
1769,
225,
368,
1122,
1501,
3639,
6080,
91,
18,
1289,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2103,
27425,
12,
797,
812,
2289,
6080,
91,
16,
514,
4516,
461,
16,
4766,
1377,
1659,
18846,
13,
377,
288,
3639,
6080,
91,
18,
1937,
1305,
2932,
32,
2738,
2984,
16,
7682,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
30943,
58,
3113,
13491,
30614,
2289,
18,
31414,
67,
14939,
1769,
7734,
368,
14373,
1026,
667,
3885,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
1013,
51,
1880,
67,
20,
1769,
225,
368,
333,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
706,
17691,
3991,
10106,
6365,
16,
7734,
18846,
18,
17994,
7675,
2079,
2668,
1093,
16,
2023,
3631,
1171,
3532,
2738,
2984,
16,
25605,
3113,
315,
58,
8863,
7734,
2
] |
||
catch(Exception e) { if(myLogger.isLoggable(Logger.WARNING)) myLogger.log(Logger.WARNING,"Link failure!"); return false; } finally { impl.releaseAgentDescriptor(agentID); | else { throw new NotFoundException("Agent agentID not found"); | private boolean transferIdentity(AID agentID, Location src, Location dest) throws IMTPException, NotFoundException { //log("Transferring identity of agent "+agentID+" from "+src.getName()+" to "+dest.getName(), 2); if(myLogger.isLoggable(Logger.INFO)) myLogger.log(Logger.INFO,"Transferring identity of agent "+agentID+" from "+src.getName()+" to "+dest.getName()); MainContainer impl = myContainer.getMain(); if(impl != null) { AgentDescriptor ad = impl.acquireAgentDescriptor(agentID); if (ad != null) { try { AgentMobilitySlice srcSlice = (AgentMobilitySlice)getSlice(src.getName()); AgentMobilitySlice destSlice = (AgentMobilitySlice)getSlice(dest.getName()); boolean srcReady = false; boolean destReady = false; try { srcReady = srcSlice.prepare(); } catch(IMTPException imtpe) { srcSlice = (AgentMobilitySlice)getFreshSlice(src.getName()); srcReady = srcSlice.prepare(); } //log("Source "+src.getName()+" "+srcReady, 2); if(myLogger.isLoggable(Logger.INFO)) myLogger.log(Logger.INFO,"Source "+src.getName()+" "+srcReady); try { destReady = destSlice.prepare(); } catch(IMTPException imtpe) { destSlice = (AgentMobilitySlice)getFreshSlice(dest.getName()); destReady = destSlice.prepare(); } //log("Destination "+dest.getName()+" "+destReady, 2); if(myLogger.isLoggable(Logger.INFO)) myLogger.log(Logger.INFO,"Destination "+dest.getName()+" "+destReady); if(srcReady && destReady) { // Commit transaction impl.movedAgent(agentID, (ContainerID)src, (ContainerID)dest); return true; } else { // Problems on a participant slice: abort transaction return false; } } catch(Exception e) { // Link failure: abort transaction //log("Link failure!", 2); if(myLogger.isLoggable(Logger.WARNING)) myLogger.log(Logger.WARNING,"Link failure!"); return false; } finally { impl.releaseAgentDescriptor(agentID); } } else { throw new NotFoundException("Agent agentID not found"); } } else { // Do nothing for now, but could also use another slice as transaction coordinator... //log("Not a main!", 2); if(myLogger.isLoggable(Logger.WARNING)) myLogger.log(Logger.WARNING,"Not a main!"); return false; } } | 5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/46dba8df2358fb752e8d0a7cd2a512d0a633dbd6/AgentMobilityService.java/buggy/src/jade/core/mobility/AgentMobilityService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
7412,
4334,
12,
37,
734,
4040,
734,
16,
7050,
1705,
16,
7050,
1570,
13,
1216,
467,
14636,
503,
16,
12323,
288,
202,
202,
759,
1330,
2932,
1429,
74,
20245,
4215,
434,
4040,
13773,
5629,
734,
9078,
628,
13773,
4816,
18,
17994,
1435,
9078,
358,
13773,
10488,
18,
17994,
9334,
576,
1769,
7734,
309,
12,
4811,
3328,
18,
291,
1343,
8455,
12,
3328,
18,
5923,
3719,
10402,
3399,
3328,
18,
1330,
12,
3328,
18,
5923,
10837,
1429,
74,
20245,
4215,
434,
4040,
13773,
5629,
734,
9078,
628,
13773,
4816,
18,
17994,
1435,
9078,
358,
13773,
10488,
18,
17994,
10663,
565,
12740,
2170,
9380,
273,
3399,
2170,
18,
588,
6376,
5621,
565,
309,
12,
11299,
480,
446,
13,
288,
1082,
202,
3630,
3187,
1261,
273,
9380,
18,
1077,
1039,
3630,
3187,
12,
5629,
734,
1769,
1082,
202,
430,
261,
361,
480,
446,
13,
288,
9506,
202,
698,
288,
9506,
565,
8669,
49,
947,
1889,
5959,
1705,
5959,
273,
261,
3630,
49,
947,
1889,
5959,
13,
588,
5959,
12,
4816,
18,
17994,
10663,
9506,
565,
8669,
49,
947,
1889,
5959,
1570,
5959,
273,
261,
3630,
49,
947,
1889,
5959,
13,
588,
5959,
12,
10488,
18,
17994,
10663,
9506,
565,
1250,
1705,
8367,
273,
629,
31,
9506,
565,
1250,
1570,
8367,
273,
629,
31,
9506,
565,
775,
288,
25083,
202,
4816,
8367,
273,
1705,
5959,
18,
9366,
5621,
9506,
565,
289,
9506,
565,
1044,
12,
3445,
11130,
503,
20384,
347,
13,
288,
25083,
202,
4816,
5959,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
7412,
4334,
12,
37,
734,
4040,
734,
16,
7050,
1705,
16,
7050,
1570,
13,
1216,
467,
14636,
503,
16,
12323,
288,
202,
202,
759,
1330,
2932,
1429,
74,
20245,
4215,
434,
4040,
13773,
5629,
734,
9078,
628,
13773,
4816,
18,
17994,
1435,
9078,
358,
13773,
10488,
18,
17994,
9334,
576,
1769,
7734,
309,
12,
4811,
3328,
18,
291,
1343,
8455,
12,
3328,
18,
5923,
3719,
10402,
3399,
3328,
18,
1330,
12,
3328,
18,
5923,
10837,
1429,
74,
20245,
4215,
434,
4040,
13773,
5629,
734,
9078,
628,
13773,
4816,
18,
17994,
1435,
9078,
358,
13773,
10488,
18,
17994,
10663,
565,
12740,
2170,
9380,
273,
3399,
2170,
18,
588,
6376,
5621,
565,
309,
12,
11299,
480,
446,
2
] |
return (GeronimoMessageListener[])getMessageListener(); | return (GeronimoMessageListener[]) getMessageListener(); | public GeronimoMessageListener[] getGeronimoMessageListener() { return (GeronimoMessageListener[])getMessageListener(); } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/aee780fd2f220ae6864db486839f571cb0932649/GeronimoMessageAdapter.java/buggy/modules/core/src/java/org/apache/geronimo/deployment/model/geronimo/connector/GeronimoMessageAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
611,
264,
265,
381,
83,
1079,
2223,
8526,
7162,
264,
265,
381,
83,
1079,
2223,
1435,
288,
3639,
327,
261,
43,
264,
265,
381,
83,
1079,
2223,
63,
5717,
2381,
2223,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
611,
264,
265,
381,
83,
1079,
2223,
8526,
7162,
264,
265,
381,
83,
1079,
2223,
1435,
288,
3639,
327,
261,
43,
264,
265,
381,
83,
1079,
2223,
63,
5717,
2381,
2223,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void setParentsForAllPushOptionOptions(DatasetView d) throws ConfigurationException { | public void setParentsForAllPushOptionOptions(DatasetView d) throws ConfigurationException { | public void setParentsForAllPushOptionOptions(DatasetView d) throws ConfigurationException { setParentsForAllPushOptionOptions(d, getOptions()); } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/16a9b4a2f910dae8967a02428e2bfad83cc46e96/FilterDescription.java/buggy/src/java/org/ensembl/mart/lib/config/FilterDescription.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12548,
28388,
1595,
7621,
1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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12548,
28388,
1595,
7621,
1895,
1320,
12,
10656,
1767,
302,
13,
202,
202,
15069,
22196,
288,
202,
202,
542,
13733,
1290,
1595,
7621,
1895,
1320,
12,
72,
16,
9849,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
NavigatorContentExtension[] resultInstances = findRelevantContentExtensions(anElement); | NavigatorContentExtension[] resultInstances = findContentExtensionsByTriggerPoint(anElement); | public ITreeContentProvider[] findParentContentProviders(Object anElement) { NavigatorContentExtension[] resultInstances = findRelevantContentExtensions(anElement); return extractContentProviders(resultInstances); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1869fb0f66846c5ed765b0677f0e3907b2d6a068/NavigatorContentService.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/internal/NavigatorContentService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
2471,
1350,
2249,
8526,
1104,
3054,
1350,
10672,
12,
921,
392,
1046,
13,
288,
202,
202,
22817,
1350,
3625,
8526,
563,
5361,
273,
1104,
17018,
7445,
1350,
7513,
12,
304,
1046,
1769,
202,
202,
2463,
2608,
1350,
10672,
12,
2088,
5361,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
2471,
1350,
2249,
8526,
1104,
3054,
1350,
10672,
12,
921,
392,
1046,
13,
288,
202,
202,
22817,
1350,
3625,
8526,
563,
5361,
273,
1104,
17018,
7445,
1350,
7513,
12,
304,
1046,
1769,
202,
202,
2463,
2608,
1350,
10672,
12,
2088,
5361,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void __delitem__(String key) { __delitem__(new PyString(key)); | public void __delitem__(PyObject key) { throw Py.AttributeError("__delitem__"); | public void __delitem__(String key) { __delitem__(new PyString(key)); } | 6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/00be5cae3adac1a66f2dbada82636559618608f7/PyObject.java/buggy/org/python/core/PyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1001,
3771,
1726,
972,
12,
780,
498,
13,
288,
202,
565,
1001,
3771,
1726,
972,
12,
2704,
4707,
780,
12,
856,
10019,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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202,
565,
1001,
3771,
1726,
972,
12,
2704,
4707,
780,
12,
856,
10019,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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(ext.equals("js")) { | if (ext.equals("js")) { | void init() { setJMenuBar(menubar = new Menubar(this)); toolBar = new JToolBar(); JButton button; JButton breakButton, goButton, stepIntoButton, stepOverButton, stepOutButton; String [] toolTips = {"Break (Pause)", "Go (F5)", "Step Into (F11)", "Step Over (F7)", "Step Out (F8)"}; int count = 0; button = breakButton = new JButton("Break"); JButton focusButton = button; button.setToolTipText("Break"); button.setActionCommand("Break"); button.addActionListener(menubar); button.setEnabled(true); button.setToolTipText(toolTips[count++]); button = goButton = new JButton("Go"); button.setToolTipText("Go"); button.setActionCommand("Go"); button.addActionListener(menubar); button.setEnabled(false); button.setToolTipText(toolTips[count++]); button = stepIntoButton = new JButton("Step Into"); button.setToolTipText("Step Into"); button.setActionCommand("Step Into"); button.addActionListener(menubar); button.setEnabled(false); button.setToolTipText(toolTips[count++]); button = stepOverButton = new JButton("Step Over"); button.setToolTipText("Step Over"); button.setActionCommand("Step Over"); button.setEnabled(false); button.addActionListener(menubar); button.setToolTipText(toolTips[count++]); button = stepOutButton = new JButton("Step Out"); button.setToolTipText("Step Out"); button.setActionCommand("Step Out"); button.setEnabled(false); button.addActionListener(menubar); button.setToolTipText(toolTips[count++]); Dimension dim = stepOverButton.getPreferredSize(); breakButton.setPreferredSize(dim); breakButton.setMinimumSize(dim); breakButton.setMaximumSize(dim); breakButton.setSize(dim); goButton.setPreferredSize(dim); goButton.setMinimumSize(dim); goButton.setMaximumSize(dim); stepIntoButton.setPreferredSize(dim); stepIntoButton.setMinimumSize(dim); stepIntoButton.setMaximumSize(dim); stepOverButton.setPreferredSize(dim); stepOverButton.setMinimumSize(dim); stepOverButton.setMaximumSize(dim); stepOutButton.setPreferredSize(dim); stepOutButton.setMinimumSize(dim); stepOutButton.setMaximumSize(dim); toolBar.add(breakButton); toolBar.add(goButton); toolBar.add(stepIntoButton); toolBar.add(stepOverButton); toolBar.add(stepOutButton); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); getContentPane().add(toolBar, BorderLayout.NORTH); getContentPane().add(contentPane, BorderLayout.CENTER); desk = new JDesktopPane(); desk.setPreferredSize(new Dimension(600, 300)); desk.setMinimumSize(new Dimension(150, 50)); desk.add(console = new JSInternalConsole("JavaScript Console")); context = new ContextWindow(this); context.setPreferredSize(new Dimension(600, 120)); context.setMinimumSize(new Dimension(50, 50)); split1 = new JSplitPane(JSplitPane.VERTICAL_SPLIT, desk, context); split1.setOneTouchExpandable(true); Main.setResizeWeight(split1, 0.66); contentPane.add(split1, BorderLayout.CENTER); statusBar = new JLabel(); statusBar.setText("Thread: "); contentPane.add(statusBar, BorderLayout.SOUTH); dlg = new JFileChooser(); javax.swing.filechooser.FileFilter filter = new javax.swing.filechooser.FileFilter() { public boolean accept(File f) { if(f.isDirectory()) { return true; } String n = f.getName(); int i = n.lastIndexOf('.'); if(i > 0 && i < n.length() -1) { String ext = n.substring(i + 1).toLowerCase(); if(ext.equals("js")) { return true; } } return false; } public String getDescription() { return "JavaScript Files (*.js)"; } }; dlg.addChoosableFileFilter(filter); final Main self = this; addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { self.Exit(); } }); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1208,
1435,
288,
3639,
444,
46,
4599,
5190,
12,
27617,
373,
297,
273,
394,
490,
275,
373,
297,
12,
2211,
10019,
3639,
5226,
5190,
273,
394,
804,
6364,
5190,
5621,
3639,
28804,
3568,
31,
3639,
28804,
898,
3616,
16,
1960,
3616,
16,
2235,
5952,
3616,
16,
5411,
2235,
4851,
3616,
16,
2235,
1182,
3616,
31,
3639,
514,
5378,
5226,
56,
7146,
273,
12528,
7634,
261,
19205,
2225,
16,
17311,
315,
5741,
261,
42,
25,
2225,
16,
17311,
315,
4160,
657,
869,
261,
42,
2499,
2225,
16,
17311,
315,
4160,
10752,
261,
42,
27,
2225,
16,
17311,
315,
4160,
2976,
261,
42,
28,
2225,
20451,
3639,
509,
1056,
273,
374,
31,
3639,
3568,
273,
898,
3616,
273,
394,
28804,
2932,
7634,
8863,
3639,
28804,
7155,
3616,
273,
3568,
31,
3639,
3568,
18,
542,
29250,
1528,
2932,
7634,
8863,
3639,
3568,
18,
542,
1803,
2189,
2932,
7634,
8863,
3639,
3568,
18,
1289,
1803,
2223,
12,
27617,
373,
297,
1769,
3639,
3568,
18,
542,
1526,
12,
3767,
1769,
3639,
3568,
18,
542,
29250,
1528,
12,
6738,
56,
7146,
63,
1883,
9904,
19226,
3639,
3568,
273,
1960,
3616,
273,
394,
28804,
2932,
5741,
8863,
3639,
3568,
18,
542,
29250,
1528,
2932,
5741,
8863,
3639,
3568,
18,
542,
1803,
2189,
2932,
5741,
8863,
3639,
3568,
18,
1289,
1803,
2223,
12,
27617,
373,
297,
1769,
3639,
3568,
18,
542,
1526,
12,
5743,
1769,
3639,
3568,
18,
542,
29250,
1528,
12,
6738,
56,
7146,
63,
1883,
9904,
19226,
3639,
3568,
273,
2235,
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,
1208,
1435,
288,
3639,
444,
46,
4599,
5190,
12,
27617,
373,
297,
273,
394,
490,
275,
373,
297,
12,
2211,
10019,
3639,
5226,
5190,
273,
394,
804,
6364,
5190,
5621,
3639,
28804,
3568,
31,
3639,
28804,
898,
3616,
16,
1960,
3616,
16,
2235,
5952,
3616,
16,
5411,
2235,
4851,
3616,
16,
2235,
1182,
3616,
31,
3639,
514,
5378,
5226,
56,
7146,
273,
12528,
7634,
261,
19205,
2225,
16,
17311,
315,
5741,
261,
42,
25,
2225,
16,
17311,
315,
4160,
657,
869,
261,
42,
2499,
2225,
16,
17311,
315,
4160,
10752,
261,
42,
27,
2225,
16,
17311,
315,
4160,
2976,
261,
42,
28,
2225,
20451,
3639,
509,
1056,
273,
374,
31,
3639,
3568,
273,
898,
3616,
273,
394,
2
] |
if (!isMsgType(msgType)) { throw new FieldException(SessionRejectReason.INVALID_MSGTYPE); } } | if (!isMsgType(msgType)) { throw new FieldException(SessionRejectReason.INVALID_MSGTYPE); } } | private void checkMsgType(String msgType) { if (!isMsgType(msgType)) { throw new FieldException(SessionRejectReason.INVALID_MSGTYPE); } } | 6257 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6257/47d1964ddafa7f6ee47d33846c3320c71d9e789f/DataDictionary.java/clean/src/quickfix/DataDictionary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
3332,
559,
12,
780,
1234,
559,
13,
288,
3639,
309,
16051,
291,
3332,
559,
12,
3576,
559,
3719,
288,
5411,
604,
394,
2286,
503,
12,
2157,
21705,
8385,
18,
9347,
67,
11210,
2399,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
12,
780,
1234,
559,
13,
288,
3639,
309,
16051,
291,
3332,
559,
12,
3576,
559,
3719,
288,
5411,
604,
394,
2286,
503,
12,
2157,
21705,
8385,
18,
9347,
67,
11210,
2399,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 isSet(org.quickfix.field.AllocAccount field) | public boolean isSet(quickfix.field.AllocAccount field) | public boolean isSet(org.quickfix.field.AllocAccount field) { return isSetField(field); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderMultileg.java/buggy/src/java/src/quickfix/fix43/NewOrderMultileg.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
8763,
3032,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
8763,
3032,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} else if (!student.hasAnyStudentCurricularPlans()) { final ActionMessages actionMessages = new ActionMessages(); actionMessages.add("error.student.curricularPlan.nonExistent", new ActionMessage("error.student.curricularPlan.nonExistent")); saveMessages(request, actionMessages); | public ActionForward prepare(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) { final Person person = SessionUtils.getUserView(request).getPerson(); final Student student = person.getStudentByUsername(); if (student.getStudentCurricularPlansCount() > 1) { request.setAttribute("student", student); request.setAttribute("studentCurricularPlans", student.getStudentCurricularPlans()); if (student.getActiveStudentCurricularPlan().getEnrolmentsExecutionYears().isEmpty()) { final ActionMessages actionMessages = new ActionMessages(); actionMessages.add("message.no.enrolments", new ActionMessage("message.no.enrolments")); saveMessages(request, actionMessages); } else { request.setAttribute("executionYears", student.getActiveStudentCurricularPlan().getEnrolmentsExecutionYears()); } } else if (!student.hasAnyStudentCurricularPlans()) { final ActionMessages actionMessages = new ActionMessages(); actionMessages.add("error.student.curricularPlan.nonExistent", new ActionMessage("error.student.curricularPlan.nonExistent")); saveMessages(request, actionMessages); } return mapping.findForward("createDocumentRequests"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/c6db24c01d9099fb93ee69dabe2d6cdfc14877f4/DocumentRequestDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/student/administrativeOfficeServices/DocumentRequestDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
2911,
12,
1803,
3233,
2874,
16,
4382,
1204,
1301,
1204,
16,
9984,
590,
16,
12446,
766,
13,
288,
3639,
727,
11573,
6175,
273,
3877,
1989,
18,
588,
1299,
1767,
12,
2293,
2934,
588,
8346,
5621,
3639,
727,
934,
1100,
319,
18110,
273,
6175,
18,
588,
19943,
319,
858,
8575,
5621,
7734,
309,
261,
26240,
18,
588,
19943,
319,
2408,
1512,
2490,
22846,
1380,
1435,
405,
404,
13,
288,
5411,
590,
18,
542,
1499,
2932,
26240,
3113,
18110,
1769,
5411,
590,
18,
542,
1499,
2932,
26240,
2408,
1512,
2490,
22846,
3113,
18110,
18,
588,
19943,
319,
2408,
1512,
2490,
22846,
10663,
13491,
309,
261,
26240,
18,
588,
3896,
19943,
319,
2408,
1512,
2490,
5365,
7675,
588,
664,
922,
1346,
3210,
21945,
7675,
291,
1921,
10756,
288,
7734,
727,
4382,
5058,
1301,
5058,
273,
394,
4382,
5058,
5621,
7734,
1301,
5058,
18,
1289,
2932,
2150,
18,
2135,
18,
12401,
1346,
3113,
394,
4382,
1079,
2932,
2150,
18,
2135,
18,
12401,
1346,
7923,
1769,
7734,
1923,
5058,
12,
2293,
16,
1301,
5058,
1769,
5411,
289,
469,
288,
7734,
590,
18,
542,
1499,
2932,
16414,
21945,
3113,
18110,
18,
588,
3896,
19943,
319,
2408,
1512,
2490,
5365,
7675,
588,
664,
922,
1346,
3210,
21945,
10663,
7734,
289,
3639,
289,
469,
309,
16051,
26240,
18,
5332,
2961,
19943,
319,
2408,
1512,
2490,
22846,
10756,
288,
5411,
727,
4382,
5058,
1301,
5058,
273,
394,
4382,
5058,
5621,
5411,
1301,
5058,
18,
1289,
2932,
1636,
18,
26240,
18,
1397,
1512,
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,
4382,
8514,
2911,
12,
1803,
3233,
2874,
16,
4382,
1204,
1301,
1204,
16,
9984,
590,
16,
12446,
766,
13,
288,
3639,
727,
11573,
6175,
273,
3877,
1989,
18,
588,
1299,
1767,
12,
2293,
2934,
588,
8346,
5621,
3639,
727,
934,
1100,
319,
18110,
273,
6175,
18,
588,
19943,
319,
858,
8575,
5621,
7734,
309,
261,
26240,
18,
588,
19943,
319,
2408,
1512,
2490,
22846,
1380,
1435,
405,
404,
13,
288,
5411,
590,
18,
542,
1499,
2932,
26240,
3113,
18110,
1769,
5411,
590,
18,
542,
1499,
2932,
26240,
2408,
1512,
2490,
22846,
3113,
18110,
18,
588,
19943,
319,
2408,
1512,
2490,
22846,
10663,
13491,
309,
261,
26240,
18,
588,
3896,
19943,
319,
2408,
1512,
2490,
5365,
7675,
588,
2
] |
|
if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.margin == null) { box.margin = box.getContent().getStyle().getMarginWidth(); } | if (box.margin == null) { box.margin = c.getCurrentStyle().getMarginWidth(); | public static Border getMargin(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.margin == null) { box.margin = box.getContent().getStyle().getMarginWidth(); } } return box.margin; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e65470765b9501b251ba6faf1734b383bb9b1578/DefaultLayout.java/clean/src/java/org/xhtmlrenderer/layout/DefaultLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
13525,
2108,
5243,
12,
1042,
276,
16,
8549,
3919,
13,
288,
3639,
309,
261,
3744,
1304,
18,
291,
1768,
1162,
10870,
1046,
3514,
12,
71,
16,
3919,
3719,
288,
5411,
309,
261,
2147,
18,
10107,
422,
446,
13,
288,
7734,
3919,
18,
10107,
273,
3919,
18,
588,
1350,
7675,
588,
2885,
7675,
588,
9524,
2384,
5621,
5411,
289,
3639,
289,
3639,
327,
3919,
18,
10107,
31,
565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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
13525,
2108,
5243,
12,
1042,
276,
16,
8549,
3919,
13,
288,
3639,
309,
261,
3744,
1304,
18,
291,
1768,
1162,
10870,
1046,
3514,
12,
71,
16,
3919,
3719,
288,
5411,
309,
261,
2147,
18,
10107,
422,
446,
13,
288,
7734,
3919,
18,
10107,
273,
3919,
18,
588,
1350,
7675,
588,
2885,
7675,
588,
9524,
2384,
5621,
5411,
289,
3639,
289,
3639,
327,
3919,
18,
10107,
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
] |
SortedBag bag3 = decorateBag(emptyBag, null); | SortedBag bag3 = decorateBag(new TreeBag(), null); | public void testDecorate() { SortedBag bag = decorateBag(emptyBag, stringClass); try { SortedBag bag3 = decorateBag(emptyBag, null); fail("Expecting IllegalArgumentException for null predicate"); } catch (IllegalArgumentException e) {} try { SortedBag bag4 = decorateBag(nullBag, stringClass); fail("Expecting IllegalArgumentException for null bag"); } catch (IllegalArgumentException e) {} } | 55609 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55609/ae60862fd63c00004799e02ca5f1c930e1752970/TestTypedSortedBag.java/clean/src/test/org/apache/commons/collections/bag/TestTypedSortedBag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
7859,
340,
1435,
288,
3639,
13717,
5013,
13189,
273,
15752,
5013,
12,
5531,
5013,
16,
533,
797,
1769,
3639,
775,
288,
5411,
13717,
5013,
13189,
23,
273,
15752,
5013,
12,
2704,
4902,
5013,
9334,
446,
1769,
5411,
2321,
2932,
24439,
2754,
364,
446,
5641,
8863,
3639,
289,
1044,
261,
31237,
425,
13,
2618,
3639,
775,
288,
5411,
13717,
5013,
13189,
24,
273,
15752,
5013,
12,
2011,
5013,
16,
533,
797,
1769,
5411,
2321,
2932,
24439,
2754,
364,
446,
13189,
8863,
3639,
289,
1044,
261,
31237,
425,
13,
2618,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
7859,
340,
1435,
288,
3639,
13717,
5013,
13189,
273,
15752,
5013,
12,
5531,
5013,
16,
533,
797,
1769,
3639,
775,
288,
5411,
13717,
5013,
13189,
23,
273,
15752,
5013,
12,
2704,
4902,
5013,
9334,
446,
1769,
5411,
2321,
2932,
24439,
2754,
364,
446,
5641,
8863,
3639,
289,
1044,
261,
31237,
425,
13,
2618,
3639,
775,
288,
5411,
13717,
5013,
13189,
24,
273,
15752,
5013,
12,
2011,
5013,
16,
533,
797,
1769,
5411,
2321,
2932,
24439,
2754,
364,
446,
13189,
8863,
3639,
289,
1044,
261,
31237,
425,
13,
2618,
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
] |
version = Version.read_version(din); | version = Version.read_version(istream); | public void read(java.io.InputStream istream) throws MARSHAL { try { DataInputStream din = new DataInputStream(istream); byte[] xMagic = new byte[ MAGIC.length ]; din.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) throw new MARSHAL("Not a GIOP message"); version = Version.read_version(din); flags = (byte) din.read(); /** TODO implement support for the little endian. */ if (!isBigEndian()) throw new MARSHAL("Little endian unsupported."); message_type = (byte) din.read(); message_size = din.readInt(); } catch (IOException ex) { throw new MARSHAL(ex.toString()); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/MessageHeader.java/buggy/core/src/classpath/gnu/gnu/CORBA/GIOP/MessageHeader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
855,
12,
6290,
18,
1594,
18,
4348,
277,
3256,
13,
5411,
1216,
490,
985,
2664,
1013,
225,
288,
565,
775,
1377,
288,
3639,
29382,
302,
267,
273,
394,
29382,
12,
376,
793,
1769,
3639,
1160,
8526,
619,
19289,
273,
394,
1160,
63,
490,
22247,
18,
2469,
308,
31,
3639,
302,
267,
18,
896,
12,
92,
19289,
1769,
3639,
309,
16051,
12726,
18,
14963,
12,
92,
19289,
16,
490,
22247,
3719,
1850,
604,
394,
490,
985,
2664,
1013,
2932,
1248,
279,
611,
45,
3665,
883,
8863,
3639,
1177,
273,
4049,
18,
896,
67,
1589,
12,
376,
793,
1769,
3639,
2943,
273,
261,
7229,
13,
302,
267,
18,
896,
5621,
3639,
1783,
2660,
2348,
2865,
364,
326,
12720,
14759,
18,
1195,
3639,
309,
16051,
291,
9901,
7583,
10756,
1850,
604,
394,
490,
985,
2664,
1013,
2932,
48,
7188,
14759,
13248,
1199,
1769,
3639,
883,
67,
723,
273,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
855,
12,
6290,
18,
1594,
18,
4348,
277,
3256,
13,
5411,
1216,
490,
985,
2664,
1013,
225,
288,
565,
775,
1377,
288,
3639,
29382,
302,
267,
273,
394,
29382,
12,
376,
793,
1769,
3639,
1160,
8526,
619,
19289,
273,
394,
1160,
63,
490,
22247,
18,
2469,
308,
31,
3639,
302,
267,
18,
896,
12,
92,
19289,
1769,
3639,
309,
16051,
12726,
18,
14963,
12,
92,
19289,
16,
490,
22247,
3719,
1850,
604,
394,
490,
985,
2664,
1013,
2932,
1248,
279,
611,
45,
3665,
883,
8863,
3639,
1177,
273,
4049,
18,
896,
67,
1589,
12,
376,
793,
1769,
3639,
2943,
273,
261,
7229,
13,
302,
267,
18,
896,
5621,
3639,
1783,
2660,
2348,
2865,
364,
326,
12720,
2
] |
comment = new Comment(report, commentNum++); | comment = new Comment(attributeFactory, report, commentNum++); | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { characters = new StringBuffer(); BugzillaReportElement tag = BugzillaReportElement.UNKNOWN; try { tag = BugzillaReportElement.valueOf(localName.trim().toUpperCase()); } catch (RuntimeException e) { if (e instanceof IllegalArgumentException) { // ignore unrecognized tags return; } throw e; } switch (tag) { case BUGZILLA: // Note: here we can get the bugzilla version if necessary break; case BUG: if (attributes != null && (attributes.getValue("error") != null)) { errorMessage = attributes.getValue("error"); } break; case LONG_DESC: comment = new Comment(report, commentNum++); break; case ATTACHMENT: attachment = new ReportAttachment(); if (attributes != null && (attributes.getValue(BugzillaReportElement.IS_OBSOLETE.getKeyString()) != null)) { attachment.addAttribute(BugzillaReportElement.IS_OBSOLETE, new RepositoryTaskAttribute( BugzillaReportElement.IS_OBSOLETE)); } break; } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d6adf902ecafbef942349464348e4435750dd099/SaxBugReportContentHandler.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxBugReportContentHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13591,
12,
780,
2003,
16,
514,
11927,
16,
514,
22914,
16,
9055,
1677,
13,
1216,
14366,
288,
202,
202,
20558,
273,
394,
6674,
5621,
202,
202,
19865,
15990,
4820,
1046,
1047,
273,
16907,
15990,
4820,
1046,
18,
14737,
31,
202,
202,
698,
288,
1082,
202,
2692,
273,
16907,
15990,
4820,
1046,
18,
1132,
951,
12,
3729,
461,
18,
5290,
7675,
869,
8915,
10663,
202,
202,
97,
1044,
261,
11949,
425,
13,
288,
1082,
202,
430,
261,
73,
1276,
2754,
13,
288,
9506,
202,
759,
2305,
28333,
2342,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
12849,
425,
31,
202,
202,
97,
202,
202,
9610,
261,
2692,
13,
288,
202,
202,
3593,
10937,
43,
62,
2627,
2534,
30,
1082,
202,
759,
3609,
30,
2674,
732,
848,
336,
326,
7934,
15990,
1177,
309,
4573,
1082,
202,
8820,
31,
202,
202,
3593,
10937,
43,
30,
1082,
202,
430,
261,
4350,
480,
446,
597,
261,
4350,
18,
24805,
2932,
1636,
7923,
480,
446,
3719,
288,
9506,
202,
1636,
1079,
273,
1677,
18,
24805,
2932,
1636,
8863,
1082,
202,
97,
1082,
202,
8820,
31,
202,
202,
3593,
14011,
67,
10964,
30,
1082,
202,
3469,
273,
394,
9821,
12,
6006,
16,
2879,
2578,
9904,
1769,
1082,
202,
8820,
31,
202,
202,
3593,
7907,
18133,
3212,
30,
1082,
202,
11461,
273,
394,
8706,
6803,
5621,
1082,
202,
430,
261,
4350,
480,
446,
597,
261,
4350,
18,
24805,
12,
19865,
15990,
4820,
1046,
18,
5127,
67,
5704,
3584,
4311,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13591,
12,
780,
2003,
16,
514,
11927,
16,
514,
22914,
16,
9055,
1677,
13,
1216,
14366,
288,
202,
202,
20558,
273,
394,
6674,
5621,
202,
202,
19865,
15990,
4820,
1046,
1047,
273,
16907,
15990,
4820,
1046,
18,
14737,
31,
202,
202,
698,
288,
1082,
202,
2692,
273,
16907,
15990,
4820,
1046,
18,
1132,
951,
12,
3729,
461,
18,
5290,
7675,
869,
8915,
10663,
202,
202,
97,
1044,
261,
11949,
425,
13,
288,
1082,
202,
430,
261,
73,
1276,
2754,
13,
288,
9506,
202,
759,
2305,
28333,
2342,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
12849,
425,
31,
202,
202,
97,
202,
202,
9610,
261,
2692,
13,
288,
202,
202,
3593,
10937,
43,
62,
2
] |
if (mName.equals(ICalTok.RRULE.toString()) || mName.equals(ICalTok.EXRULE.toString())) sw.write(mValue); else sw.write(escape(mValue)); | if (mValue != null) { if (mName.equals(ICalTok.RRULE.toString()) || mName.equals(ICalTok.EXRULE.toString())) sw.write(mValue); else sw.write(escape(mValue)); } | public void toICalendar(Writer w) throws IOException { StringWriter sw = new StringWriter(); sw.write(escape(mName)); for (ZParameter param: mParameters) param.toICalendar(sw); sw.write(':'); if (mName.equals(ICalTok.RRULE.toString()) || mName.equals(ICalTok.EXRULE.toString())) sw.write(mValue); else sw.write(escape(mValue)); // Write with folding. String rawval = sw.toString(); int len = rawval.length(); for (int i = 0; i < len; i += CHARS_PER_FOLDED_LINE) { int upto = Math.min(i + CHARS_PER_FOLDED_LINE, len); String segment = rawval.substring(i, upto); if (i > 0) { w.write(LINE_BREAK); w.write(' '); } w.write(segment); } w.write(LINE_BREAK); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/d2bb4f39fb971bbc73c0ecff01cbd6d1962c353b/ZCalendar.java/clean/ZimbraServer/src/java/com/zimbra/cs/mailbox/calendar/ZCalendar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
358,
2871,
287,
2843,
12,
2289,
341,
13,
1216,
1860,
288,
5411,
17436,
1352,
273,
394,
17436,
5621,
13491,
1352,
18,
2626,
12,
6939,
12,
81,
461,
10019,
5411,
364,
261,
62,
1662,
579,
30,
312,
2402,
13,
7734,
579,
18,
869,
2871,
287,
2843,
12,
5328,
1769,
5411,
1352,
18,
2626,
2668,
2497,
1769,
5411,
309,
261,
81,
461,
18,
14963,
12,
2871,
287,
20477,
18,
54,
14920,
18,
10492,
10756,
747,
7734,
312,
461,
18,
14963,
12,
2871,
287,
20477,
18,
2294,
14920,
18,
10492,
1435,
3719,
2398,
202,
5328,
18,
2626,
12,
81,
620,
1769,
5411,
469,
202,
5411,
1352,
18,
2626,
12,
6939,
12,
81,
620,
10019,
5411,
368,
2598,
598,
11590,
310,
18,
5411,
514,
1831,
1125,
273,
1352,
18,
10492,
5621,
5411,
509,
562,
273,
1831,
1125,
18,
2469,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
1011,
12090,
55,
67,
3194,
67,
42,
1741,
7660,
67,
5997,
13,
288,
7734,
509,
582,
21910,
273,
2361,
18,
1154,
12,
77,
397,
12090,
55,
67,
3194,
67,
42,
1741,
7660,
67,
5997,
16,
562,
1769,
7734,
514,
3267,
273,
1831,
1125,
18,
28023,
12,
77,
16,
582,
21910,
1769,
7734,
309,
261,
77,
405,
374,
13,
288,
10792,
341,
18,
2626,
12,
5997,
67,
27960,
1769,
10792,
341,
18,
2626,
2668,
28005,
7734,
289,
7734,
341,
18,
2626,
12,
9273,
1769,
5411,
289,
5411,
341,
18,
2626,
12,
5997,
67,
27960,
1769,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
358,
2871,
287,
2843,
12,
2289,
341,
13,
1216,
1860,
288,
5411,
17436,
1352,
273,
394,
17436,
5621,
13491,
1352,
18,
2626,
12,
6939,
12,
81,
461,
10019,
5411,
364,
261,
62,
1662,
579,
30,
312,
2402,
13,
7734,
579,
18,
869,
2871,
287,
2843,
12,
5328,
1769,
5411,
1352,
18,
2626,
2668,
2497,
1769,
5411,
309,
261,
81,
461,
18,
14963,
12,
2871,
287,
20477,
18,
54,
14920,
18,
10492,
10756,
747,
7734,
312,
461,
18,
14963,
12,
2871,
287,
20477,
18,
2294,
14920,
18,
10492,
1435,
3719,
2398,
202,
5328,
18,
2626,
12,
81,
620,
1769,
5411,
469,
202,
5411,
1352,
18,
2626,
12,
6939,
12,
81,
620,
10019,
5411,
368,
2598,
598,
11590,
2
] |
lblForeground.setText("Color:"); | lblForeground.setText(Messages.getString("FontDefinitionDialog.Lbl.Color")); | private void placeComponents() { GridLayout glContent = new GridLayout(); glContent.verticalSpacing = 5; glContent.horizontalSpacing = 5; glContent.marginHeight = 7; glContent.marginWidth = 7; glContent.numColumns = 9; cmpContent = new Composite(shell, SWT.NONE); cmpContent.setLayout(glContent); Label lblFont = new Label(cmpContent, SWT.NONE); GridData gdLFont = new GridData(); gdLFont.heightHint = 22; lblFont.setLayoutData(gdLFont); lblFont.setText("Font:"); cmbFontNames = new Combo(cmpContent, SWT.DROP_DOWN | SWT.READ_ONLY); GridData gdCMBFontNames = new GridData(GridData.FILL_HORIZONTAL); gdCMBFontNames.horizontalSpan = 8; cmbFontNames.setLayoutData(gdCMBFontNames); cmbFontNames.addSelectionListener(this); Label lblSize = new Label(cmpContent, SWT.NONE); GridData gdLSize = new GridData(); gdLSize.heightHint = 22; lblSize.setLayoutData(gdLSize); lblSize.setText("Size:"); iscFontSizes = new IntegerSpinControl(cmpContent, SWT.NONE, (int) fdCurrent.getSize()); GridData gdISCFontSizes = new GridData(GridData.FILL_HORIZONTAL); gdISCFontSizes.horizontalSpan = 3; iscFontSizes.setLayoutData(gdISCFontSizes); iscFontSizes.setMinimum(MIN_FONT_SIZE); iscFontSizes.setMaximum(MAX_FONT_SIZE); iscFontSizes.addListener(this); Label lblForeground = new Label(cmpContent, SWT.NONE); GridData gdLForeground = new GridData(); gdLForeground.horizontalSpan = 2; lblForeground.setLayoutData(gdLForeground); lblForeground.setText("Color:"); fccColor = new FillChooserComposite(cmpContent, SWT.NONE, cdCurrent, false, false); GridData gdFCCColor = new GridData(GridData.FILL_HORIZONTAL); gdFCCColor.horizontalSpan = 3; fccColor.setLayoutData(gdFCCColor); fccColor.addListener(this); Label lblStyle = new Label(cmpContent, SWT.NONE); GridData gdLStyle = new GridData(); gdLStyle.heightHint = 22; // gdLStyle.horizontalSpan = 2; lblStyle.setLayoutData(gdLStyle); lblStyle.setText("Style:"); btnBold = new Button(cmpContent, SWT.TOGGLE); GridData gdBBold = new GridData(GridData.FILL_HORIZONTAL); btnBold.setLayoutData(gdBBold); // TODO: This should be an image btnBold.setText("B"); btnBold.addSelectionListener(this); btnBold.setSelection(fdCurrent.isBold()); btnItalic = new Button(cmpContent, SWT.TOGGLE); GridData gdBItalic = new GridData(GridData.FILL_HORIZONTAL); btnItalic.setLayoutData(gdBItalic); // TODO: This should be an image btnItalic.setText("I"); btnItalic.addSelectionListener(this); btnItalic.setSelection(fdCurrent.isItalic()); btnUnderline = new Button(cmpContent, SWT.TOGGLE); GridData gdBUnderline = new GridData(GridData.FILL_HORIZONTAL); btnUnderline.setLayoutData(gdBUnderline); // TODO: This should be an image btnUnderline.setText("U"); btnUnderline.addSelectionListener(this); btnUnderline.setSelection(fdCurrent.isUnderline()); Label lblFormat = new Label(cmpContent, SWT.NONE); GridData gdLFormat = new GridData(GridData.VERTICAL_ALIGN_FILL); gdLFormat.horizontalSpan = 2; gdLFormat.verticalSpan = 2; lblFormat.setLayoutData(gdLFormat); lblFormat.setText("Format:"); cbStrikethru = new Button(cmpContent, SWT.CHECK); GridData gdCBStrikethru = new GridData(GridData.FILL_HORIZONTAL); gdCBStrikethru.horizontalSpan = 2; gdCBStrikethru.heightHint = 20; cbStrikethru.setLayoutData(gdCBStrikethru); cbStrikethru.addSelectionListener(this); cbStrikethru.setText("Strikethrough"); cbStrikethru.setSelection(fdCurrent.isStrikethrough()); Label lblDummy1 = new Label(cmpContent, SWT.NONE); GridData gdLDummy1 = new GridData(); gdLDummy1.horizontalSpan = 6; lblDummy1.setLayoutData(gdLDummy1); cbWrap = new Button(cmpContent, SWT.CHECK); GridData gdCBWrap = new GridData(GridData.FILL_HORIZONTAL); gdCBWrap.horizontalSpan = 2; gdCBWrap.heightHint = 20; cbWrap.setLayoutData(gdCBWrap); cbWrap.addSelectionListener(this); cbWrap.setText("Wrap"); cbWrap.setSelection(fdCurrent.isWordWrap()); createRotationPanel(); createAlignmentPanel(); FillLayout flPreview = new FillLayout(); flPreview.marginHeight = 2; flPreview.marginWidth = 3; grpPreview = new Group(cmpContent, SWT.NONE); grpPreview.setText("Preview"); GridData gdGRPPreview = new GridData(GridData.FILL_BOTH); gdGRPPreview.horizontalSpan = 9; grpPreview.setLayoutData(gdGRPPreview); grpPreview.setLayout(flPreview); fcPreview = new FontCanvas(grpPreview, SWT.NONE, fdCurrent, cdCurrent, true, true, true); createButtonPanel(); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/7793e94b4d7fab5891f226c6c937e37d85bebad8/FontDefinitionDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontDefinitionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3166,
7171,
1435,
565,
288,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
17824,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
18396,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
10107,
2686,
273,
2371,
31,
3639,
5118,
1350,
18,
10107,
2384,
273,
2371,
31,
3639,
5118,
1350,
18,
2107,
3380,
273,
2468,
31,
3639,
9411,
1350,
273,
394,
14728,
12,
10304,
16,
348,
8588,
18,
9826,
1769,
3639,
9411,
1350,
18,
542,
3744,
12,
7043,
1350,
1769,
3639,
5287,
14284,
5711,
273,
394,
5287,
12,
9625,
1350,
16,
348,
8588,
18,
9826,
1769,
3639,
7145,
751,
15551,
48,
5711,
273,
394,
7145,
751,
5621,
3639,
15551,
48,
5711,
18,
4210,
7002,
273,
11201,
31,
3639,
14284,
5711,
18,
542,
3744,
751,
12,
19016,
48,
5711,
1769,
3639,
14284,
5711,
18,
542,
1528,
2932,
5711,
2773,
1769,
3639,
276,
1627,
5711,
1557,
273,
394,
1286,
1075,
12,
9625,
1350,
16,
348,
8588,
18,
18768,
67,
12711,
571,
348,
8588,
18,
6949,
67,
10857,
1769,
3639,
7145,
751,
15551,
39,
7969,
5711,
1557,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
1769,
3639,
15551,
39,
7969,
5711,
1557,
18,
18396,
6952,
273,
1725,
31,
3639,
276,
1627,
5711,
1557,
18,
542,
3744,
751,
12,
19016,
39,
7969,
5711,
1557,
1769,
3639,
276,
1627,
5711,
1557,
18,
1289,
6233,
2223,
12,
2211,
1769,
3639,
5287,
14284,
1225,
273,
394,
5287,
12,
9625,
1350,
16,
348,
8588,
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,
3166,
7171,
1435,
565,
288,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
17824,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
18396,
18006,
273,
1381,
31,
3639,
5118,
1350,
18,
10107,
2686,
273,
2371,
31,
3639,
5118,
1350,
18,
10107,
2384,
273,
2371,
31,
3639,
5118,
1350,
18,
2107,
3380,
273,
2468,
31,
3639,
9411,
1350,
273,
394,
14728,
12,
10304,
16,
348,
8588,
18,
9826,
1769,
3639,
9411,
1350,
18,
542,
3744,
12,
7043,
1350,
1769,
3639,
5287,
14284,
5711,
273,
394,
5287,
12,
9625,
1350,
16,
348,
8588,
18,
9826,
1769,
3639,
7145,
751,
15551,
48,
5711,
273,
394,
7145,
751,
5621,
3639,
15551,
48,
5711,
18,
2
] |
final PsiStatement statementLabeled = labeledStatement.getStatement(); return statementMustAssignVariableOrFail(field, statementLabeled, checkedMethods); } else if (statement instanceof PsiIfStatement) { return ifStatementMustAssignVariableOrFail(field, (PsiIfStatement) statement, checkedMethods); } else if (statement instanceof PsiTryStatement) { return tryStatementMustAssignVariableOrFail(field, (PsiTryStatement) statement, checkedMethods); } else if (statement instanceof PsiSwitchStatement) { | final PsiStatement statementLabeled = labeledStatement .getStatement(); return statementMustAssignVariableOrFail(field, statementLabeled, checkedMethods); } else if(statement instanceof PsiIfStatement){ return ifStatementMustAssignVariableOrFail(field, (PsiIfStatement) statement, checkedMethods); } else if(statement instanceof PsiTryStatement){ return tryStatementMustAssignVariableOrFail(field, (PsiTryStatement) statement, checkedMethods); } else if(statement instanceof PsiSwitchStatement){ | private static boolean statementMustAssignVariableOrFail(@NotNull PsiVariable field, PsiStatement statement, Set<MethodSignature> checkedMethods) { if (statement == null) { return false; } if(statementMustThrowException(statement)) { return true; } if (statement instanceof PsiBreakStatement || statement instanceof PsiContinueStatement || statement instanceof PsiAssertStatement || statement instanceof PsiEmptyStatement) { return false; } else if (statement instanceof PsiReturnStatement) { final PsiReturnStatement returnStatement = (PsiReturnStatement) statement; final PsiExpression returnValue = returnStatement.getReturnValue(); return expressionMustAssignVariableOrFail(field, returnValue, checkedMethods); } else if (statement instanceof PsiThrowStatement) { final PsiThrowStatement throwStatement = (PsiThrowStatement) statement; final PsiExpression exception = throwStatement.getException(); return expressionMustAssignVariableOrFail(field, exception, checkedMethods); } else if (statement instanceof PsiExpressionListStatement) { final PsiExpressionListStatement list = (PsiExpressionListStatement) statement; final PsiExpressionList expressionList = list.getExpressionList(); final PsiExpression[] expressions = expressionList.getExpressions(); for(final PsiExpression expression : expressions){ if(expressionMustAssignVariableOrFail(field, expression, checkedMethods)){ return true; } } return false; } else if (statement instanceof PsiExpressionStatement) { final PsiExpressionStatement expressionStatement = (PsiExpressionStatement) statement; final PsiExpression expression = expressionStatement.getExpression(); return expressionMustAssignVariableOrFail(field, expression, checkedMethods); } else if (statement instanceof PsiDeclarationStatement) { return declarationStatementMustAssignVariableOrFail(field, (PsiDeclarationStatement) statement, checkedMethods); } else if (statement instanceof PsiForStatement) { return forStatementMustAssignVariableOrFail(field, (PsiForStatement) statement, checkedMethods); } else if (statement instanceof PsiForeachStatement) { return foreachStatementMustAssignVariableOrFail(field, (PsiForeachStatement) statement); } else if (statement instanceof PsiWhileStatement) { return whileStatementMustAssignVariableOrFail(field, (PsiWhileStatement) statement, checkedMethods); } else if (statement instanceof PsiDoWhileStatement) { return doWhileMustAssignVariableOrFail(field, (PsiDoWhileStatement) statement, checkedMethods); } else if (statement instanceof PsiSynchronizedStatement) { final PsiCodeBlock body = ((PsiSynchronizedStatement) statement).getBody(); return cachingblockMustAssignVariableOrFail(field, body, checkedMethods); } else if (statement instanceof PsiBlockStatement) { final PsiCodeBlock codeBlock = ((PsiBlockStatement) statement).getCodeBlock(); return cachingblockMustAssignVariableOrFail(field, codeBlock, checkedMethods); } else if (statement instanceof PsiLabeledStatement) { final PsiLabeledStatement labeledStatement = (PsiLabeledStatement) statement; final PsiStatement statementLabeled = labeledStatement.getStatement(); return statementMustAssignVariableOrFail(field, statementLabeled, checkedMethods); } else if (statement instanceof PsiIfStatement) { return ifStatementMustAssignVariableOrFail(field, (PsiIfStatement) statement, checkedMethods); } else if (statement instanceof PsiTryStatement) { return tryStatementMustAssignVariableOrFail(field, (PsiTryStatement) statement, checkedMethods); } else if (statement instanceof PsiSwitchStatement) { return false; } else // unknown statement type { return false; } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/fc3fc1341db4aa6d26930bf45116ec44c28fc569/InitializationUtils.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/InitializationUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
3021,
10136,
4910,
3092,
18492,
26964,
5962,
453,
7722,
3092,
652,
16,
453,
7722,
3406,
3021,
16,
1000,
32,
1305,
5374,
34,
5950,
4712,
13,
288,
3639,
309,
261,
11516,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
309,
12,
11516,
10136,
8282,
503,
12,
11516,
3719,
3639,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
261,
11516,
1276,
453,
7722,
7634,
3406,
747,
7734,
3021,
1276,
453,
7722,
12378,
3406,
747,
7734,
3021,
1276,
453,
7722,
8213,
3406,
747,
7734,
3021,
1276,
453,
7722,
1921,
3406,
13,
288,
5411,
327,
629,
31,
3639,
289,
469,
309,
261,
11516,
1276,
453,
7722,
990,
3406,
13,
288,
5411,
727,
453,
7722,
990,
3406,
327,
3406,
273,
261,
52,
7722,
990,
3406,
13,
3021,
31,
5411,
727,
453,
7722,
2300,
7750,
273,
327,
3406,
18,
588,
19092,
5621,
5411,
327,
2652,
10136,
4910,
3092,
18492,
12,
1518,
16,
7750,
16,
5950,
4712,
1769,
3639,
289,
469,
309,
261,
11516,
1276,
453,
7722,
8282,
3406,
13,
288,
5411,
727,
453,
7722,
8282,
3406,
604,
3406,
273,
261,
52,
7722,
8282,
3406,
13,
3021,
31,
5411,
727,
453,
7722,
2300,
1520,
273,
604,
3406,
18,
588,
503,
5621,
5411,
327,
2652,
10136,
4910,
3092,
18492,
12,
1518,
16,
1520,
16,
5950,
4712,
1769,
3639,
289,
469,
309,
261,
11516,
1276,
453,
7722,
2300,
682,
3406,
13,
288,
5411,
727,
453,
7722,
2300,
682,
3406,
666,
273,
261,
52,
7722,
2300,
682,
3406,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
3021,
10136,
4910,
3092,
18492,
26964,
5962,
453,
7722,
3092,
652,
16,
453,
7722,
3406,
3021,
16,
1000,
32,
1305,
5374,
34,
5950,
4712,
13,
288,
3639,
309,
261,
11516,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
309,
12,
11516,
10136,
8282,
503,
12,
11516,
3719,
3639,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
261,
11516,
1276,
453,
7722,
7634,
3406,
747,
7734,
3021,
1276,
453,
7722,
12378,
3406,
747,
7734,
3021,
1276,
453,
7722,
8213,
3406,
747,
7734,
3021,
1276,
453,
7722,
1921,
3406,
13,
288,
5411,
327,
629,
31,
3639,
289,
469,
309,
261,
11516,
1276,
453,
7722,
990,
3406,
13,
288,
5411,
727,
453,
7722,
990,
2
] |
String value = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_DATAREFERENCE + i); | String value = CmsImport.getChildElementTextValue( dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_DATAREFERENCE + i); | protected CmsMasterDataSet getMasterDataSet(int subId, Element masterElement) throws CmsException { String datasetfile = null, username = null, groupname = null, accessFlags = null, publicationDate = null, purgeDate = null, creationDate = null, flags = null, feedId = null, feedReference = null, feedFilename = null, title = null, master_id = null; CmsMasterDataSet newDataset = new CmsMasterDataSet(); // get the file with the dataset of the master datasetfile = ((Element) masterElement.selectNodes("./" + CmsExportModuledata.C_EXPORT_TAG_MASTER_DATASET).get(0)).getTextTrim(); Document datasetXml = CmsImportVersion1.getXmlDocument(getFileInputStream(datasetfile)); Element dataset = (Element) datasetXml.getRootElement().selectNodes("./" + CmsExportModuledata.C_EXPORT_TAG_MASTER_DATASET).get(0); // get the information from the dataset and add it to the dataset // first add the subid newDataset.m_subId = subId; master_id = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_ID); if (master_id != null) { newDataset.m_masterId = new CmsUUID(master_id); } else { newDataset.m_masterId = CmsUUID.getNullUUID(); } // get the id of the user or set the owner to the current user username = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_USER); CmsUUID userId = null; try { if ((username != null) && !("".equals(username.trim()))) { userId = m_cms.readUser(username).getId(); } } catch (Exception e) { // userId will be current user userId = m_cms.getRequestContext().currentUser().getId(); } newDataset.m_userId = userId; // get the id of the group or set the group to the current user groupname = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_GROUP); CmsUUID groupId = CmsUUID.getNullUUID(); try { if ((groupname != null) && !("".equals(groupname.trim()))) { groupId = m_cms.readGroup(groupname).getId(); } } catch (Exception e) { try { groupId = m_cms.readGroup(OpenCms.getDefaultUsers().getGroupUsers()).getId(); } catch (Exception e2) { // ignore } } newDataset.m_groupId = groupId; // set the accessflags or the default flags accessFlags = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_ACCESSFLAGS); try { newDataset.m_accessFlags = Integer.parseInt(accessFlags); } catch (Exception e) { newDataset.m_accessFlags = com.opencms.core.I_CmsConstants.C_ACCESS_DEFAULT_FLAGS; } // set the publication date publicationDate = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_PUBLICATIONDATE); try { newDataset.m_publicationDate = convertDate(publicationDate); } catch (Exception e) { // ignore } // set the purge date purgeDate = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_PURGEDATE); try { newDataset.m_purgeDate = convertDate(purgeDate); } catch (Exception e) { // ignore } // set the creation date if possible try { creationDate = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_CREATEDATE); newDataset.m_dateCreated = convertDate(creationDate); } catch (Exception e) { // ignore } // set the flags flags = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_FLAGS); try { newDataset.m_flags = Integer.parseInt(flags); } catch (Exception e) { // ignore } // set the feedid feedId = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_FEEDID); try { newDataset.m_feedId = Integer.parseInt(feedId); } catch (Exception e) { // ignore } // set the feedreference feedReference = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_FEEDREFERENCE); try { newDataset.m_feedReference = Integer.parseInt(feedReference); } catch (Exception e) { // ignore } // set the feedfilenam feedFilename = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_FEEDFILENAME); newDataset.m_feedFilename = feedFilename; // set the masters title title = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_TITLE); newDataset.m_title = title; // set the values of data_big for (int i = 0; i < newDataset.m_dataBig.length; i++) { String filename = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_DATABIG + i); String value = new String(); if (filename != null && !"".equals(filename.trim())) { // get the value from the file value = new String(getFileBytes(filename)); } newDataset.m_dataBig[i] = value; } // get the values of data_medium for (int i = 0; i < newDataset.m_dataMedium.length; i++) { String filename = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_DATAMEDIUM + i); String value = new String(); if (filename != null && !"".equals(filename.trim())) { // get the value from the file value = new String(getFileBytes(filename)); } newDataset.m_dataMedium[i] = value; } // get the values of data_small for (int i = 0; i < newDataset.m_dataSmall.length; i++) { String filename = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_DATASMALL + i); String value = new String(); if (filename != null && !"".equals(filename.trim())) { // get the value from the file value = new String(getFileBytes(filename)); } newDataset.m_dataSmall[i] = value; } // get the values of data_int for (int i = 0; i < newDataset.m_dataInt.length; i++) { String value = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_DATAINT + i); try { newDataset.m_dataInt[i] = new Integer(value).intValue(); } catch (Exception e) { newDataset.m_dataInt[i] = 0; } } // get the values of data_reference for (int i = 0; i < newDataset.m_dataReference.length; i++) { String value = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_DATAREFERENCE + i); try { newDataset.m_dataReference[i] = new Integer(value).intValue(); } catch (Exception e) { newDataset.m_dataReference[i] = 0; } } // get the values of data_date for (int i = 0; i < newDataset.m_dataDate.length; i++) { String value = CmsImport.getChildElementTextValue(dataset, CmsExportModuledata.C_EXPORT_TAG_MASTER_DATADATE + i); try { newDataset.m_dataDate[i] = convertDate(value); } catch (Exception e) { newDataset.m_dataDate[i] = 0; } } return newDataset; } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/88860f55b9c735c7dd01b24ea1419cb95dc77799/CmsImportModuledata.java/buggy/src-modules/com/opencms/legacy/CmsImportModuledata.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2149,
7786,
13676,
27607,
13676,
12,
474,
720,
548,
16,
3010,
4171,
1046,
13,
1216,
11228,
288,
3639,
514,
3709,
768,
273,
446,
16,
2718,
273,
446,
16,
25329,
273,
446,
16,
2006,
5094,
273,
446,
16,
2398,
20574,
1626,
273,
446,
16,
11668,
1626,
273,
446,
16,
6710,
1626,
273,
446,
16,
2943,
273,
446,
16,
2398,
4746,
548,
273,
446,
16,
4746,
2404,
273,
446,
16,
4746,
5359,
273,
446,
16,
2077,
273,
446,
16,
5411,
4171,
67,
350,
273,
446,
31,
10792,
2149,
7786,
13676,
394,
10656,
273,
394,
2149,
7786,
13676,
5621,
3639,
368,
336,
326,
585,
598,
326,
3709,
434,
326,
4171,
3639,
3709,
768,
273,
14015,
1046,
13,
4171,
1046,
18,
4025,
3205,
2932,
18,
4898,
397,
2149,
6144,
3120,
892,
18,
39,
67,
31275,
67,
7927,
67,
28045,
67,
4883,
4043,
2934,
588,
12,
20,
13,
2934,
588,
1528,
14795,
5621,
9079,
4319,
3709,
4432,
273,
2149,
5010,
1444,
21,
18,
588,
4432,
2519,
12,
29925,
4348,
12,
8682,
768,
10019,
3639,
3010,
3709,
273,
261,
1046,
13,
3709,
4432,
18,
588,
2375,
1046,
7675,
4025,
3205,
2932,
18,
4898,
397,
2149,
6144,
3120,
892,
18,
39,
67,
31275,
67,
7927,
67,
28045,
67,
4883,
4043,
2934,
588,
12,
20,
1769,
7734,
368,
336,
326,
1779,
628,
326,
3709,
471,
527,
518,
358,
326,
3709,
3639,
368,
1122,
527,
326,
720,
350,
3639,
394,
10656,
18,
81,
67,
1717,
548,
273,
720,
548,
31,
13491,
4171,
67,
350,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2149,
7786,
13676,
27607,
13676,
12,
474,
720,
548,
16,
3010,
4171,
1046,
13,
1216,
11228,
288,
3639,
514,
3709,
768,
273,
446,
16,
2718,
273,
446,
16,
25329,
273,
446,
16,
2006,
5094,
273,
446,
16,
2398,
20574,
1626,
273,
446,
16,
11668,
1626,
273,
446,
16,
6710,
1626,
273,
446,
16,
2943,
273,
446,
16,
2398,
4746,
548,
273,
446,
16,
4746,
2404,
273,
446,
16,
4746,
5359,
273,
446,
16,
2077,
273,
446,
16,
5411,
4171,
67,
350,
273,
446,
31,
10792,
2149,
7786,
13676,
394,
10656,
273,
394,
2149,
7786,
13676,
5621,
3639,
368,
336,
326,
585,
598,
326,
3709,
434,
326,
4171,
3639,
3709,
768,
273,
14015,
1046,
13,
4171,
1046,
18,
2
] |
+ siblingNumber | + S | public String makeTreeNodeId(int level, TreeNode parent, int siblingNumber) { return "TREENODE_LEVEL" + Constants.DELIMITER + level + Constants.DELIMITER + "PARENTNODEID" + Constants.DELIMITER + "[" + (parent == null ? "NOPARENTID" : parent.getId()) + "]" + Constants.DELIMITER + "SIBLINGNUMBER" + Constants.DELIMITER + siblingNumber + Constants.DELIMITER + "ID"; } | 5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/eb28eb7a536f6911851c1420be30d88ad043ad97/Fixtures.java/buggy/signet/test/edu/internet2/middleware/signet/test/Fixtures.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1221,
12513,
548,
12,
474,
1801,
16,
20270,
982,
16,
509,
10841,
1854,
13,
225,
288,
565,
327,
377,
202,
6,
56,
15878,
2712,
67,
10398,
6,
4202,
397,
5245,
18,
19722,
1377,
397,
1801,
1377,
397,
5245,
18,
19722,
1377,
397,
315,
14943,
8744,
734,
6,
1377,
397,
5245,
18,
19722,
1377,
397,
13626,
1377,
397,
261,
2938,
422,
446,
692,
315,
3417,
14943,
734,
6,
294,
982,
18,
26321,
10756,
1377,
397,
9870,
1377,
397,
5245,
18,
19722,
1377,
397,
315,
9894,
26789,
9931,
6,
1377,
397,
5245,
18,
19722,
1377,
397,
348,
1377,
397,
5245,
18,
19722,
1377,
397,
315,
734,
14432,
225,
289,
2,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1221,
12513,
548,
12,
474,
1801,
16,
20270,
982,
16,
509,
10841,
1854,
13,
225,
288,
565,
327,
377,
202,
6,
56,
15878,
2712,
67,
10398,
6,
4202,
397,
5245,
18,
19722,
1377,
397,
1801,
1377,
397,
5245,
18,
19722,
1377,
397,
315,
14943,
8744,
734,
6,
1377,
397,
5245,
18,
19722,
1377,
397,
13626,
1377,
397,
261,
2938,
422,
446,
692,
315,
3417,
14943,
734,
6,
294,
982,
18,
26321,
10756,
1377,
397,
9870,
1377,
397,
5245,
18,
19722,
1377,
397,
315,
9894,
26789,
9931,
6,
1377,
397,
5245,
18,
19722,
1377,
397,
348,
1377,
397,
5245,
18,
19722,
1377,
397,
315,
734,
14432,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
IMCServiceInterface imcref = ApplicationServer.getIMCServiceInterface(); | ImcmsServices imcref = Imcms.getServices(); | public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { // Lets get the standard parameters and validate them MetaInfo.Parameters params = MetaInfo.getParameters( req ); //if (super.assertNoEmptyStringsInPropertyValues(req, res, params) == false) return ; // Lets get an user object imcode.server.user.UserDomainObject user = super.getUserObj( req ); if ( user == null ) return; int testMetaId = params.getMetaId(); if ( !isUserAuthorized( res, testMetaId, user, req ) ) { return; } String action = req.getParameter( "action" ); if ( action == null ) { //OBS FIXA FELMEDELANDENA String header = "ChatManager servlet. "; ChatError err = new ChatError( req, res, header, 3 ); log( header + err.getErrorMsg() ); return; } else if ( action.equalsIgnoreCase( "NEW" ) ) { //log("Lets add a chat"); HttpSession session = req.getSession( false ); if ( session != null ) { // log("Ok nu stter vi metavrdena"); setSessionAttributes( session, params ); } req.setAttribute( "action", "NEW" ); RequestDispatcher myDispatcher; myDispatcher = req.getRequestDispatcher( "/servlet/ChatCreator" ); myDispatcher.forward( req, res ); return; } else if ( action.equalsIgnoreCase( "VIEW" ) ) { // Lets store the standard metavalues in his session object HttpSession session = req.getSession( false ); if ( session != null ) {// lets check if user is active in an other chat, if so then log him out ChatMember theChatMember = (ChatMember)session.getAttribute( "theChatMember" ); if ( theChatMember != null ) { ChatSystemMessage systemMessage = new ChatSystemMessage( theChatMember, ChatSystemMessage.USER_TIMEDOUT_MSG ); IMCServiceInterface imcref = ApplicationServer.getIMCServiceInterface(); logOutMember( theChatMember, systemMessage, imcref ); } // log("Ok nu stter vi metavrdena"); setSessionAttributes( session, params ); } req.setAttribute( "login_type", "login" ); RequestDispatcher myDispatcher; myDispatcher = req.getRequestDispatcher( "/servlet/ChatLogin" ); myDispatcher.forward( req, res ); return; } else if ( action.equalsIgnoreCase( "CHANGE" ) ) { req.setAttribute( "metadata", "meta" ); RequestDispatcher myDispatcher; myDispatcher = req.getRequestDispatcher( "ChangeExternalDoc2" ); myDispatcher.forward( req, res ); return; } // End if } // End doGet | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/d060a6873350aa2972f54c354321cf3756f50e6f/ChatManager.java/clean/server/src/com/imcode/imcms/servlet/chat/ChatManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
336,
326,
4529,
1472,
471,
1954,
2182,
3639,
6565,
966,
18,
2402,
859,
273,
6565,
966,
18,
588,
2402,
12,
1111,
11272,
3639,
368,
430,
261,
9565,
18,
11231,
2279,
1921,
7957,
382,
1396,
1972,
12,
3658,
16,
400,
16,
859,
13,
422,
629,
13,
327,
274,
3639,
368,
511,
2413,
336,
392,
729,
733,
3639,
709,
710,
18,
3567,
18,
1355,
18,
1299,
3748,
921,
729,
273,
2240,
18,
588,
1299,
2675,
12,
1111,
11272,
3639,
309,
261,
729,
422,
446,
262,
327,
31,
3639,
509,
1842,
2781,
548,
273,
859,
18,
588,
2781,
548,
5621,
3639,
309,
261,
401,
291,
1299,
15341,
12,
400,
16,
1842,
2781,
548,
16,
729,
16,
1111,
262,
262,
288,
5411,
327,
31,
3639,
289,
3639,
514,
1301,
273,
1111,
18,
588,
1662,
12,
315,
1128,
6,
11272,
3639,
309,
261,
1301,
422,
446,
262,
288,
5411,
368,
5704,
55,
8563,
37,
478,
2247,
958,
24733,
4307,
1157,
37,
5411,
514,
1446,
273,
315,
14163,
1318,
8100,
18,
13636,
5411,
16903,
668,
393,
273,
394,
16903,
668,
12,
1111,
16,
400,
16,
1446,
16,
890,
11272,
5411,
613,
12,
1446,
397,
393,
18,
588,
668,
3332,
1435,
11272,
5411,
327,
31,
3639,
289,
469,
309,
261,
1301,
18,
14963,
5556,
12,
315,
12917,
6,
262,
262,
288,
5411,
368,
1330,
2932,
48,
2413,
527,
279,
7916,
8863,
5411,
26166,
1339,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
336,
326,
4529,
1472,
471,
1954,
2182,
3639,
6565,
966,
18,
2402,
859,
273,
6565,
966,
18,
588,
2402,
12,
1111,
11272,
3639,
368,
430,
261,
9565,
18,
11231,
2279,
1921,
7957,
382,
1396,
1972,
12,
3658,
16,
400,
16,
859,
13,
422,
629,
13,
327,
274,
3639,
368,
511,
2413,
336,
392,
729,
733,
3639,
709,
710,
18,
3567,
18,
1355,
18,
1299,
3748,
921,
729,
273,
2240,
18,
588,
1299,
2675,
12,
1111,
11272,
3639,
309,
261,
729,
422,
446,
262,
327,
31,
3639,
509,
1842,
2781,
548,
273,
859,
18,
588,
2781,
548,
5621,
3639,
309,
2
] |
if (x == 0 || y == 0 || x == end || y == end) data.setPixel(x + xoffset, y + yoffset, 1); else data.setPixel(x + xoffset, y + yoffset, 2); | if (x == 0 || y == 0 || x == end || y == end) { data.setPixel(x + xoffset, y + yoffset, 1); } else { data.setPixel(x + xoffset, y + yoffset, 2); } | private ImageData createColorImage(Control w, RGB color) { GC gc = new GC(w); FontMetrics fm = gc.getFontMetrics(); int size = fm.getAscent(); gc.dispose(); int indent = 6; int extent = DEFAULT_EXTENT; if (w instanceof Table) extent = ((Table) w).getItemHeight() - 1; else if (w instanceof Tree) extent = ((Tree) w).getItemHeight() - 1; else if (w instanceof TableTree) extent = ((TableTree) w).getItemHeight() - 1; if (size > extent) size = extent; int width = indent + size; int height = extent; int xoffset = indent; int yoffset = (height - size) / 2; RGB black = new RGB(0, 0, 0); PaletteData dataPalette = new PaletteData(new RGB[] { black, black, color }); ImageData data = new ImageData(width, height, 4, dataPalette); data.transparentPixel = 0; int end = size - 1; for (int y = 0; y < size; y++) { for (int x = 0; x < size; x++) { if (x == 0 || y == 0 || x == end || y == end) data.setPixel(x + xoffset, y + yoffset, 1); else data.setPixel(x + xoffset, y + yoffset, 2); } } return data; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/391f2606b4ea2c1fb5052d938ca90877ee7631f6/ColorCellEditor.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ColorCellEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3421,
751,
752,
2957,
2040,
12,
3367,
341,
16,
11510,
2036,
13,
288,
3639,
15085,
8859,
273,
394,
15085,
12,
91,
1769,
3639,
10063,
5653,
10940,
273,
8859,
18,
588,
5711,
5653,
5621,
3639,
509,
963,
273,
10940,
18,
588,
13665,
319,
5621,
3639,
8859,
18,
2251,
4150,
5621,
3639,
509,
3504,
273,
1666,
31,
3639,
509,
11933,
273,
3331,
67,
4142,
2222,
31,
3639,
309,
261,
91,
1276,
3555,
13,
5411,
11933,
273,
14015,
1388,
13,
341,
2934,
588,
1180,
2686,
1435,
300,
404,
31,
3639,
469,
309,
261,
91,
1276,
4902,
13,
5411,
11933,
273,
14015,
2471,
13,
341,
2934,
588,
1180,
2686,
1435,
300,
404,
31,
3639,
469,
309,
261,
91,
1276,
3555,
2471,
13,
5411,
11933,
273,
14015,
1388,
2471,
13,
341,
2934,
588,
1180,
2686,
1435,
300,
404,
31,
3639,
309,
261,
1467,
405,
11933,
13,
5411,
963,
273,
11933,
31,
3639,
509,
1835,
273,
3504,
397,
963,
31,
3639,
509,
2072,
273,
11933,
31,
3639,
509,
619,
3348,
273,
3504,
31,
3639,
509,
677,
3348,
273,
261,
4210,
300,
963,
13,
342,
576,
31,
3639,
11510,
7721,
273,
394,
11510,
12,
20,
16,
374,
16,
374,
1769,
3639,
453,
8786,
751,
501,
25863,
273,
394,
453,
8786,
751,
12,
2704,
11510,
8526,
288,
7721,
16,
7721,
16,
7734,
2036,
15549,
3639,
3421,
751,
501,
273,
394,
3421,
751,
12,
2819,
16,
2072,
16,
1059,
16,
501,
25863,
1769,
3639,
501,
18,
26516,
9037,
273,
374,
31,
3639,
509,
679,
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,
3421,
751,
752,
2957,
2040,
12,
3367,
341,
16,
11510,
2036,
13,
288,
3639,
15085,
8859,
273,
394,
15085,
12,
91,
1769,
3639,
10063,
5653,
10940,
273,
8859,
18,
588,
5711,
5653,
5621,
3639,
509,
963,
273,
10940,
18,
588,
13665,
319,
5621,
3639,
8859,
18,
2251,
4150,
5621,
3639,
509,
3504,
273,
1666,
31,
3639,
509,
11933,
273,
3331,
67,
4142,
2222,
31,
3639,
309,
261,
91,
1276,
3555,
13,
5411,
11933,
273,
14015,
1388,
13,
341,
2934,
588,
1180,
2686,
1435,
300,
404,
31,
3639,
469,
309,
261,
91,
1276,
4902,
13,
5411,
11933,
273,
14015,
2471,
13,
341,
2934,
588,
1180,
2686,
1435,
300,
404,
31,
3639,
469,
309,
261,
91,
1276,
3555,
2471,
2
] |
public TA_RetCode MEDPRICE( int startIdx, int endIdx, double inHigh[], double inLow[], MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int outIdx, i; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; outIdx = 0; for( i=startIdx; i <= endIdx; i++ ) { outReal[outIdx++] = (inHigh[i]+inLow[i])/2.0; } outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode. TA_SUCCESS;} | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
25773,
7698,
1441,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
9056,
659,
6955,
63,
5717,
95,
474,
659,
4223,
16,
77,
31,
430,
12,
1937,
4223,
32,
20,
13,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
430,
12443,
409,
4223,
32,
20,
14047,
96,
12,
409,
4223,
32,
1937,
4223,
3719,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
659,
4223,
33,
20,
31,
1884,
12,
77,
33,
1937,
4223,
31,
77,
32,
33,
409,
4223,
31,
77,
27245,
95,
659,
6955,
63,
659,
4223,
9904,
65,
28657,
267,
8573,
63,
77,
3737,
267,
10520,
63,
77,
5717,
19,
22,
18,
20,
31,
97,
659,
22816,
1046,
18,
1132,
33,
659,
4223,
31,
659,
24059,
4223,
18,
1132,
33,
1937,
4223,
31,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
12778,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
25773,
7698,
1441,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
9056,
659,
6955,
63,
5717,
95,
474,
659,
4223,
16,
77,
31,
430,
12,
1937,
4223,
32,
20,
13,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
430,
12443,
409,
4223,
32,
20,
14047,
96,
12,
409,
4223,
32,
1937,
4223,
3719,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
659,
4223,
33,
20,
31,
1884,
12,
77,
33,
1937,
2
] |
||
for (int i = 0; i < virtualProviders.length; i++) { if (virtualProviders[i].hasItemState(id)) { return virtualProviders[i].getItemState(id); } } | public ItemState getItemState(ItemId id) throws NoSuchItemStateException, ItemStateException { // check if there is a virtual state for the specified item for (int i = 0; i < virtualProviders.length; i++) { if (virtualProviders[i].hasItemState(id)) { return virtualProviders[i].getItemState(id); } } // first check if the specified item has been transiently removed if (transientStateMgr.hasItemStateInAttic(id)) { /** * check if there's new transient state for the specified item * (e.g. if a property with name 'x' has been removed and a new * property with same name has been created); * this will throw a NoSuchItemStateException if there's no new * transient state */ return transientStateMgr.getItemState(id); } // check if there's transient state for the specified item if (transientStateMgr.hasItemState(id)) { return transientStateMgr.getItemState(id); } // check if there's persistent state for the specified item if (persistentStateMgr.hasItemState(id)) { return persistentStateMgr.getItemState(id); } throw new NoSuchItemStateException(id.toString()); } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/cc14ab987cea8d4ad557b4084ab5ad5b28be918b/SessionItemStateManager.java/buggy/src/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4342,
1119,
8143,
1119,
12,
17673,
612,
13,
5411,
1216,
5823,
1180,
5060,
16,
4342,
5060,
288,
3639,
368,
866,
309,
1915,
353,
279,
5024,
919,
364,
326,
1269,
761,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5024,
10672,
18,
2469,
31,
277,
27245,
288,
5411,
309,
261,
12384,
10672,
63,
77,
8009,
5332,
1180,
1119,
12,
350,
3719,
288,
7734,
327,
5024,
10672,
63,
77,
8009,
588,
1180,
1119,
12,
350,
1769,
5411,
289,
3639,
289,
3639,
368,
1122,
866,
309,
326,
1269,
761,
711,
2118,
12315,
715,
3723,
3639,
309,
261,
22670,
1119,
9455,
18,
5332,
1180,
1119,
382,
3075,
335,
12,
350,
3719,
288,
5411,
1783,
2398,
380,
866,
309,
1915,
1807,
394,
12315,
919,
364,
326,
1269,
761,
2398,
380,
261,
73,
18,
75,
18,
309,
279,
1272,
598,
508,
296,
92,
11,
711,
2118,
3723,
471,
279,
394,
2398,
380,
1272,
598,
1967,
508,
711,
2118,
2522,
1769,
2398,
380,
333,
903,
604,
279,
5823,
1180,
5060,
309,
1915,
1807,
1158,
394,
2398,
380,
12315,
919,
2398,
1195,
5411,
327,
12315,
1119,
9455,
18,
588,
1180,
1119,
12,
350,
1769,
3639,
289,
3639,
368,
866,
309,
1915,
1807,
12315,
919,
364,
326,
1269,
761,
3639,
309,
261,
22670,
1119,
9455,
18,
5332,
1180,
1119,
12,
350,
3719,
288,
5411,
327,
12315,
1119,
9455,
18,
588,
1180,
1119,
12,
350,
1769,
3639,
289,
3639,
368,
866,
309,
1915,
1807,
9195,
919,
364,
326,
1269,
761,
3639,
309,
261,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4342,
1119,
8143,
1119,
12,
17673,
612,
13,
5411,
1216,
5823,
1180,
5060,
16,
4342,
5060,
288,
3639,
368,
866,
309,
1915,
353,
279,
5024,
919,
364,
326,
1269,
761,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5024,
10672,
18,
2469,
31,
277,
27245,
288,
5411,
309,
261,
12384,
10672,
63,
77,
8009,
5332,
1180,
1119,
12,
350,
3719,
288,
7734,
327,
5024,
10672,
63,
77,
8009,
588,
1180,
1119,
12,
350,
1769,
5411,
289,
3639,
289,
3639,
368,
1122,
866,
309,
326,
1269,
761,
711,
2118,
12315,
715,
3723,
3639,
309,
261,
22670,
1119,
9455,
18,
5332,
1180,
1119,
382,
3075,
335,
12,
350,
3719,
288,
5411,
1783,
2398,
380,
866,
309,
1915,
2
] |
|
theComponentPackage.createPackageContents(); | theDataPackage.createPackageContents(); | public static TypePackage init() { if (isInited) return (TypePackage)EPackage.Registry.INSTANCE.getEPackage(TypePackage.eNS_URI); // Obtain or create and register package TypePackageImpl theTypePackage = (TypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof TypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new TypePackageImpl()); isInited = true; // Initialize simple dependencies XMLTypePackageImpl.init(); // Obtain or create and register interdependencies AttributePackageImpl theAttributePackage = (AttributePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AttributePackage.eNS_URI) instanceof AttributePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AttributePackage.eNS_URI) : AttributePackageImpl.eINSTANCE); ComponentPackageImpl theComponentPackage = (ComponentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI) instanceof ComponentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI) : ComponentPackageImpl.eINSTANCE); LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(LayoutPackage.eNS_URI) instanceof LayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(LayoutPackage.eNS_URI) : LayoutPackageImpl.eINSTANCE); DataPackageImpl theDataPackage = (DataPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI) instanceof DataPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI) : DataPackageImpl.eINSTANCE); ModelPackageImpl theModelPackage = (ModelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI) : ModelPackageImpl.eINSTANCE); // Create package meta-data objects theTypePackage.createPackageContents(); theAttributePackage.createPackageContents(); theComponentPackage.createPackageContents(); theLayoutPackage.createPackageContents(); theDataPackage.createPackageContents(); theModelPackage.createPackageContents(); // Initialize created meta-data theTypePackage.initializePackageContents(); theAttributePackage.initializePackageContents(); theComponentPackage.initializePackageContents(); theLayoutPackage.initializePackageContents(); theDataPackage.initializePackageContents(); theModelPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theTypePackage.freeze(); return theTypePackage; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/TypePackageImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/TypePackageImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1412,
2261,
1208,
1435,
565,
288,
3639,
309,
261,
291,
2570,
329,
13,
327,
261,
559,
2261,
13,
41,
2261,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
559,
2261,
18,
73,
3156,
67,
3098,
1769,
3639,
368,
24850,
578,
752,
471,
1744,
2181,
3639,
1412,
2261,
2828,
326,
559,
2261,
273,
261,
559,
2261,
2828,
21433,
41,
2261,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
73,
3156,
67,
3098,
13,
1276,
1412,
2261,
2828,
692,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
73,
3156,
67,
3098,
13,
294,
394,
1412,
2261,
2828,
10663,
3639,
353,
2570,
329,
273,
638,
31,
3639,
368,
9190,
4143,
5030,
3639,
3167,
559,
2261,
2828,
18,
2738,
5621,
3639,
368,
24850,
578,
752,
471,
1744,
1554,
11037,
3639,
3601,
2261,
2828,
326,
1499,
2261,
273,
261,
1499,
2261,
2828,
21433,
41,
2261,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
1499,
2261,
18,
73,
3156,
67,
3098,
13,
1276,
3601,
2261,
2828,
692,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
1499,
2261,
18,
73,
3156,
67,
3098,
13,
294,
3601,
2261,
2828,
18,
73,
13341,
1769,
3639,
5435,
2261,
2828,
326,
1841,
2261,
273,
261,
1841,
2261,
2828,
21433,
41,
2261,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
1841,
2261,
18,
73,
3156,
67,
3098,
13,
1276,
5435,
2261,
2828,
692,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
1841,
2261,
18,
73,
3156,
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,
1412,
2261,
1208,
1435,
565,
288,
3639,
309,
261,
291,
2570,
329,
13,
327,
261,
559,
2261,
13,
41,
2261,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
559,
2261,
18,
73,
3156,
67,
3098,
1769,
3639,
368,
24850,
578,
752,
471,
1744,
2181,
3639,
1412,
2261,
2828,
326,
559,
2261,
273,
261,
559,
2261,
2828,
21433,
41,
2261,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
73,
3156,
67,
3098,
13,
1276,
1412,
2261,
2828,
692,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
73,
3156,
67,
3098,
13,
294,
394,
1412,
2261,
2828,
10663,
3639,
353,
2570,
329,
273,
638,
31,
3639,
368,
9190,
4143,
5030,
3639,
3167,
559,
2261,
2
] |
void check(String object, int right) throws SQLException { | void check(Object object, int right) throws SQLException { | void check(String object, int right) throws SQLException { uUser.check(object, right); } | 49087 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49087/06a84b6609c132cbe9732546d6ee94682675eaf5/Session.java/buggy/base-one/trunk/src/org/hsqldb/Session.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
866,
12,
921,
733,
16,
509,
2145,
13,
1216,
6483,
288,
3639,
582,
1299,
18,
1893,
12,
1612,
16,
2145,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
866,
12,
921,
733,
16,
509,
2145,
13,
1216,
6483,
288,
3639,
582,
1299,
18,
1893,
12,
1612,
16,
2145,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} else if (isOneway(messageInfo) && handlerResult) { | } else if (isOneway(messageInfo)) { | protected SOAPMessage doSend(MessageInfo messageInfo) { //change from LogicalEPTFactory to ContactInfoBase - should be changed back when we have things working EPTFactory contactInfo = messageInfo.getEPTFactory(); SOAPXMLEncoder encoder = (SOAPXMLEncoder) contactInfo.getEncoder(messageInfo); SOAPMessage sm = null; boolean handlerResult = true; boolean isRequestResponse = (messageInfo.getMEP() == MessageStruct.REQUEST_RESPONSE_MEP); try { if (messageInfo.getMetaData(DispatchContext.DISPATCH_MESSAGE_MODE) == Service.Mode.MESSAGE) { sm = (SOAPMessage) messageInfo.getData()[0]; // Ensure supplied message is encoded according to conneg FastInfosetUtil.ensureCorrectEncoding(messageInfo, sm); } SOAPHandlerContext handlerContext = null; InternalMessage im = encoder.toInternalMessage(messageInfo); HandlerChainCaller caller = getHandlerChainCaller(messageInfo); if (caller.hasHandlers()) { im = preHandlerOutboundHook(sm, im); handlerContext = new SOAPHandlerContext(messageInfo, im, sm); encoder.setAttachmentsMap(messageInfo, im); updateMessageContext(messageInfo, handlerContext); try { JAXWSAttachmentMarshaller am = MessageInfoUtil.getAttachmentMarshaller(messageInfo); boolean isXopped = false; //there are handlers so disable Xop encoding if enabled, so that they dont // see xop:Include reference if ((am != null) && am.isXOPPackage()) { isXopped = am.isXOPPackage(); am.setXOPPackage(false); } handlerResult = callHandlersOnRequest(handlerContext); // now put back the old value if ((am != null)) { am.setXOPPackage(isXopped); } } catch (ProtocolException pe) { handlerResult = false; if (MessageContextUtil.ignoreFaultInMessage( handlerContext.getMessageContext())) { // ignore fault in this case and use exception throw new WebServiceException(pe); } } sm = handlerContext.getSOAPMessage(); postHandlerOutboundHook(messageInfo, handlerContext, sm); if (sm == null) { sm = encoder.toSOAPMessage(handlerContext.getInternalMessage(), messageInfo); } // the only case where no message is sent if (isRequestResponse && !handlerResult) { SOAPXMLDecoder decoder = (SOAPXMLDecoder) contactInfo.getDecoder(messageInfo); im = decoder.toInternalMessage(sm, messageInfo); decoder.toMessageInfo(im, messageInfo); return sm; } } // Setting encoder here is necessary for calls to getBindingId() messageInfo.setEncoder(encoder); SystemHandlerDelegate systemHandlerDelegate = ((com.sun.xml.ws.spi.runtime.Binding) getBinding(messageInfo)). getSystemHandlerDelegate(); if (systemHandlerDelegate != null) { if (handlerContext == null) { handlerContext = new SOAPHandlerContext(messageInfo, im, sm); updateMessageContext(messageInfo, handlerContext); } encoder.setAttachmentsMap(messageInfo, im); //already used im, we can set that to null if ((sm != null) && (im != null)) handlerContext.setInternalMessage(null); handlerContext.getMessageContext().put( MessageContext.MESSAGE_OUTBOUND_PROPERTY, Boolean.TRUE); handlerContext.getBindingId(); handlerResult = systemHandlerDelegate.processRequest( handlerContext.getSHDSOAPMessageContext()); sm = handlerContext.getSOAPMessage(); } if (sm == null) sm = encoder.toSOAPMessage(im, messageInfo); Map<String, Object> context = processMetadata(messageInfo, sm);/* // set the MIME headers on connection headers Map<String, List<String>> ch = new HashMap<String, List<String>>(); for (Iterator iter = sm.getMimeHeaders().getAllHeaders(); iter.hasNext();) { List<String> h = new ArrayList<String>(); MimeHeader mh = (MimeHeader) iter.next(); h.clear(); h.add(mh.getValue()); ch.put(mh.getName(), h); } */ setConnection(messageInfo, context); //((WSConnection) messageInfo.getConnection()).setHeaders(ch); if (!isAsync(messageInfo)) { WSConnection connection = (WSConnection) messageInfo.getConnection(); logRequestMessage(sm, messageInfo); SOAPConnectionUtil.sendResponse(connection, sm); } // if handlerResult is false, the receive has already happened if (isRequestResponse && handlerResult) { receive(messageInfo); } else if (isOneway(messageInfo) && handlerResult) { checkReturnStatus(messageInfo); } } catch (WebServiceException wse) { setResponseType(wse, messageInfo); messageInfo.setResponse(wse); } catch (Throwable e) { WebServiceException wse = new WebServiceException(e); setResponseType(wse, messageInfo); messageInfo.setResponse(wse); } return sm; } | 9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/fbd8fde23bc48f3ba11d856015696d0b4c787f3e/SOAPMessageDispatcher.java/buggy/jaxws-ri/rt/src/com/sun/xml/ws/protocol/soap/client/SOAPMessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
16434,
1079,
741,
3826,
12,
1079,
966,
883,
966,
13,
288,
3639,
368,
3427,
628,
17085,
41,
1856,
1733,
358,
13329,
966,
2171,
300,
1410,
506,
3550,
1473,
1347,
732,
1240,
9198,
5960,
3639,
512,
1856,
1733,
5388,
966,
273,
883,
966,
18,
588,
41,
1856,
1733,
5621,
3639,
16434,
4201,
7204,
7261,
273,
261,
27952,
4201,
7204,
13,
5388,
966,
18,
588,
7204,
12,
2150,
966,
1769,
3639,
16434,
1079,
3029,
273,
446,
31,
3639,
1250,
1838,
1253,
273,
638,
31,
3639,
1250,
353,
691,
1064,
273,
261,
2150,
966,
18,
588,
958,
52,
1435,
422,
2350,
3823,
18,
5519,
67,
14508,
67,
958,
52,
1769,
3639,
775,
288,
5411,
309,
261,
2150,
966,
18,
588,
6998,
12,
5325,
1042,
18,
2565,
3118,
5858,
67,
8723,
67,
7038,
13,
422,
1956,
18,
2309,
18,
8723,
13,
288,
7734,
3029,
273,
261,
27952,
1079,
13,
883,
966,
18,
588,
751,
1435,
63,
20,
15533,
7734,
368,
7693,
4580,
883,
353,
3749,
4888,
358,
1487,
1332,
7734,
9545,
7655,
278,
1304,
18,
15735,
16147,
4705,
12,
2150,
966,
16,
3029,
1769,
5411,
289,
5411,
16434,
1503,
1042,
1838,
1042,
273,
446,
31,
5411,
3186,
1079,
709,
273,
7261,
18,
869,
3061,
1079,
12,
2150,
966,
1769,
5411,
4663,
3893,
11095,
4894,
273,
18945,
3893,
11095,
12,
2150,
966,
1769,
5411,
309,
261,
16140,
18,
5332,
6919,
10756,
288,
7734,
709,
273,
675,
1503,
17873,
5394,
12,
4808,
16,
709,
1769,
7734,
1838,
1042,
273,
394,
16434,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
16434,
1079,
741,
3826,
12,
1079,
966,
883,
966,
13,
288,
3639,
368,
3427,
628,
17085,
41,
1856,
1733,
358,
13329,
966,
2171,
300,
1410,
506,
3550,
1473,
1347,
732,
1240,
9198,
5960,
3639,
512,
1856,
1733,
5388,
966,
273,
883,
966,
18,
588,
41,
1856,
1733,
5621,
3639,
16434,
4201,
7204,
7261,
273,
261,
27952,
4201,
7204,
13,
5388,
966,
18,
588,
7204,
12,
2150,
966,
1769,
3639,
16434,
1079,
3029,
273,
446,
31,
3639,
1250,
1838,
1253,
273,
638,
31,
3639,
1250,
353,
691,
1064,
273,
261,
2150,
966,
18,
588,
958,
52,
1435,
422,
2350,
3823,
18,
5519,
67,
14508,
67,
958,
52,
1769,
3639,
775,
288,
5411,
309,
261,
2150,
966,
18,
588,
2
] |
Display display = PlatformUI.createDisplay(); | Display display = createDisplay(); | public Object run(Object args) throws Exception { // create and startup the display for the workbench Display display = PlatformUI.createDisplay(); try { Shell shell = new Shell(display, SWT.ON_TOP); if (!checkJavaRuntimeVersion(shell)) { Platform.endSplash(); return EXIT_OK; } try { if (!checkInstanceLocation(shell)) { Platform.endSplash(); return EXIT_OK; } } finally { if (shell != null) shell.dispose(); } // create the workbench with this advisor and run it until it exits // N.B. createWorkbench remembers the advisor, and also registers // the workbench globally so that all UI plug-ins can find it using // PlatformUI.getWorkbench() or AbstractUIPlugin.getWorkbench() int returnCode = PlatformUI.createAndRunWorkbench(display, new IDEWorkbenchAdvisor()); // the workbench doesn't support relaunch yet (bug 61809) so // for now restart is used, and exit data properties are checked // here to substitute in the relaunch return code if needed if (returnCode != PlatformUI.RETURN_RESTART) return EXIT_OK; // if the exit code property has been set to the relaunch code, then // return that code now, otherwise this is a normal restart return EXIT_RELAUNCH.equals(Integer.getInteger(PROP_EXIT_CODE)) ? EXIT_RELAUNCH : EXIT_RESTART; } finally { if (display != null) display.dispose(); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/21086b812be7e3fe1ea7cbac3964998220564723/IDEApplication.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEApplication.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
1086,
12,
921,
833,
13,
1216,
1185,
288,
202,
202,
759,
752,
471,
11850,
326,
2562,
364,
326,
1440,
22144,
202,
202,
4236,
2562,
273,
11810,
5370,
18,
2640,
4236,
5621,
202,
202,
698,
288,
1082,
202,
13220,
5972,
273,
394,
19433,
12,
5417,
16,
348,
8588,
18,
673,
67,
10462,
1769,
1082,
202,
430,
16051,
1893,
5852,
5576,
1444,
12,
10304,
3719,
288,
9506,
202,
8201,
18,
409,
16881,
961,
5621,
9506,
202,
2463,
28407,
67,
3141,
31,
1082,
202,
97,
1082,
202,
698,
288,
9506,
202,
430,
16051,
1893,
1442,
2735,
12,
10304,
3719,
288,
6862,
202,
8201,
18,
409,
16881,
961,
5621,
6862,
202,
2463,
28407,
67,
3141,
31,
9506,
202,
97,
1082,
202,
97,
3095,
288,
9506,
202,
430,
261,
10304,
480,
446,
13,
6862,
202,
10304,
18,
2251,
4150,
5621,
1082,
202,
97,
1082,
202,
759,
752,
326,
1440,
22144,
598,
333,
1261,
10227,
471,
1086,
518,
3180,
518,
19526,
1082,
202,
759,
423,
18,
38,
18,
752,
2421,
22144,
849,
351,
2210,
326,
1261,
10227,
16,
471,
2546,
10285,
1082,
202,
759,
326,
1440,
22144,
25654,
1427,
716,
777,
6484,
15852,
17,
2679,
848,
1104,
518,
1450,
1082,
202,
759,
11810,
5370,
18,
588,
2421,
22144,
1435,
578,
4115,
5370,
3773,
18,
588,
2421,
22144,
1435,
1082,
202,
474,
24558,
273,
11810,
5370,
18,
2640,
1876,
1997,
2421,
22144,
12,
5417,
16,
6862,
202,
2704,
1599,
41,
2421,
22144,
28087,
10663,
1082,
202,
759,
326,
1440,
22144,
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,
1033,
1086,
12,
921,
833,
13,
1216,
1185,
288,
202,
202,
759,
752,
471,
11850,
326,
2562,
364,
326,
1440,
22144,
202,
202,
4236,
2562,
273,
11810,
5370,
18,
2640,
4236,
5621,
202,
202,
698,
288,
1082,
202,
13220,
5972,
273,
394,
19433,
12,
5417,
16,
348,
8588,
18,
673,
67,
10462,
1769,
1082,
202,
430,
16051,
1893,
5852,
5576,
1444,
12,
10304,
3719,
288,
9506,
202,
8201,
18,
409,
16881,
961,
5621,
9506,
202,
2463,
28407,
67,
3141,
31,
1082,
202,
97,
1082,
202,
698,
288,
9506,
202,
430,
16051,
1893,
1442,
2735,
12,
10304,
3719,
288,
6862,
202,
8201,
18,
409,
16881,
961,
5621,
6862,
202,
2463,
28407,
67,
3141,
31,
9506,
202,
97,
2
] |
System.out.println("Rename failed " + srcs[i]); | throw new IOException("Rename failed " + srcs[i]); | public void rename(String srcf, String dstf) throws IOException { Path [] srcs = fs.globPaths( new Path(srcf) ); Path dst = new Path(dstf); if( srcs.length > 1 && !fs.isDirectory(dst)) { throw new IOException( "When moving multiple files, " + "destination should be a directory." ); } for( int i=0; i<srcs.length; i++ ) { if (fs.rename(srcs[i], dst)) { System.out.println("Renamed " + srcs[i] + " to " + dstf); } else { System.out.println("Rename failed " + srcs[i]); } } } | 53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/4da477ae9ed8190f1d92cd94320b1b102038dbcd/DFSShell.java/clean/src/java/org/apache/hadoop/dfs/DFSShell.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6472,
12,
780,
1705,
74,
16,
514,
3046,
74,
13,
1216,
1860,
288,
1377,
2666,
5378,
28403,
273,
2662,
18,
10581,
4466,
12,
394,
2666,
12,
4816,
74,
13,
11272,
1377,
2666,
3046,
273,
394,
2666,
12,
11057,
74,
1769,
1377,
309,
12,
28403,
18,
2469,
405,
404,
597,
401,
2556,
18,
291,
2853,
12,
11057,
3719,
288,
3639,
604,
394,
1860,
12,
315,
9434,
12499,
3229,
1390,
16,
315,
2398,
397,
315,
10590,
1410,
506,
279,
1867,
1199,
11272,
1377,
289,
1377,
364,
12,
509,
277,
33,
20,
31,
277,
32,
4816,
87,
18,
2469,
31,
277,
9904,
262,
288,
3639,
309,
261,
2556,
18,
18539,
12,
4816,
87,
63,
77,
6487,
3046,
3719,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
16290,
2808,
315,
397,
28403,
63,
77,
65,
397,
315,
358,
315,
397,
3046,
74,
1769,
3639,
289,
469,
288,
5411,
604,
394,
1860,
2932,
16019,
2535,
315,
397,
28403,
63,
77,
19226,
3639,
289,
1377,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
11057,
74,
1769,
1377,
309,
12,
28403,
18,
2469,
405,
404,
597,
401,
2556,
18,
291,
2853,
12,
11057,
3719,
288,
3639,
604,
394,
1860,
12,
315,
9434,
12499,
3229,
1390,
16,
315,
2398,
397,
315,
10590,
1410,
506,
279,
1867,
1199,
11272,
1377,
289,
1377,
364,
12,
509,
277,
33,
20,
31,
277,
32,
4816,
87,
18,
2469,
31,
277,
9904,
262,
288,
3639,
309,
261,
2556,
18,
18539,
12,
4816,
87,
63,
77,
6487,
3046,
3719,
288,
2
] |
while (Character.isDigit(ch) || (Character.toLowerCase(ch) >= 'a' && Character.toLowerCase(ch) <= 'f')) { token.append(ch); nextCh(); | while (Character.isDigit(ch) || (Character.toLowerCase(ch) >= 'a' && Character.toLowerCase(ch) <= 'f')) { token.append(ch); nextCh(); | int nextToken(StringBuffer token) { int sy = sy_end; token.setLength(0); while (Character.isWhitespace(ch)) nextCh(); tokenStart = s-1; switch (ch) { case '\'': case '"': { char term = ch; nextCh(); do { while (ch != term && ch != EOF) { token.append(ch); nextCh(); } if (ch == EOF) break; nextCh(); if (ch != term) break; token.append(ch); nextCh(); } while (true); sy = (term == '"')? sy_ident: sy_string; } break; case '[': { while (ch != ']' && ch != EOF) { token.append(ch); nextCh(); } if (ch == ']') nextCh(); sy = sy_ident; } break; case '<': { token.append(ch); nextCh(); if (ch == '>' || ch == '=') { token.append(ch); nextCh(); } sy = sy_operator; } break; case '>': { token.append(ch); nextCh(); if (ch == '=') { token.append(ch); nextCh(); } sy = sy_operator; } break; case '!': { token.append(ch); nextCh(); if (ch == '<' || ch == '>' || ch == '=') { token.append(ch); nextCh(); } sy = sy_operator; } break; case '+': case '-': case '/': case '*': case '=': case '%': case '^': case '~': case '&': case '|': { token.append(ch); nextCh(); sy = sy_operator; } break; case ',': { sy = sy_comma; } break; case EOF: { sy = sy_end; } break; default: if (Character.isLetter(ch) || ch == '@' || ch == '#' || ch == '_') { while (Character.isLetterOrDigit(ch) || ch == '@' || ch == '#' || ch == '_' || ch == '$') { token.append(ch); nextCh(); } // Need to do proper lookup here String tst = token.toString().toLowerCase(); if (tst.equals("select") || tst.equals("from") || tst.equals("where")) { sy = sy_sqlword; } else { sy = sy_ident; } } else if (Character.isDigit(ch)) { token.append(ch); nextCh(); if (Character.toLowerCase(ch) == 'x' && token.charAt(0) == '0'){ token.append(ch); while (Character.isDigit(ch) || (Character.toLowerCase(ch) >= 'a' && Character.toLowerCase(ch) <= 'f')) { token.append(ch); nextCh(); } sy = sy_binary; } else { while (Character.isDigit(ch)) { token.append(ch); nextCh(); } if (ch == '.') { token.append(ch); nextCh(); while (Character.isDigit(ch)) { token.append(ch); nextCh(); } } if (Character.toLowerCase(ch) == 'e') { token.append(ch); nextCh(); if (ch == '-' || ch == '+') { token.append(ch); nextCh(); } while (Character.isDigit(ch)) { token.append(ch); nextCh(); } } sy = sy_number; } } else { token.append(ch); nextCh(); sy = sy_misc; } break; } return sy; } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/a1860a9e8b5bd3a4746f73dee3bfb600f564b4e2/SQLParser.java/buggy/src/main/net/sourceforge/jtds/jdbc/SQLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
9617,
12,
780,
1892,
1147,
13,
565,
288,
3639,
509,
1393,
273,
1393,
67,
409,
31,
3639,
1147,
18,
542,
1782,
12,
20,
1769,
3639,
1323,
261,
7069,
18,
291,
9431,
12,
343,
3719,
1024,
782,
5621,
3639,
1147,
1685,
273,
272,
17,
21,
31,
3639,
1620,
261,
343,
13,
288,
5411,
648,
14118,
4278,
5411,
648,
2119,
4278,
7734,
288,
10792,
1149,
2481,
273,
462,
31,
1024,
782,
5621,
10792,
741,
288,
13491,
1323,
261,
343,
480,
2481,
597,
462,
480,
6431,
13,
288,
18701,
1147,
18,
6923,
12,
343,
1769,
1024,
782,
5621,
13491,
289,
13491,
309,
261,
343,
422,
6431,
13,
898,
31,
21821,
1024,
782,
5621,
13491,
309,
261,
343,
480,
2481,
13,
898,
31,
21821,
1147,
18,
6923,
12,
343,
1769,
1024,
782,
5621,
10792,
289,
1323,
261,
3767,
1769,
10792,
1393,
273,
261,
6408,
422,
4754,
9945,
1393,
67,
6392,
30,
1393,
67,
1080,
31,
7734,
289,
7734,
898,
31,
5411,
648,
8375,
30,
7734,
288,
10792,
1323,
261,
343,
480,
8641,
597,
462,
480,
6431,
13,
288,
13491,
1147,
18,
6923,
12,
343,
1769,
1024,
782,
5621,
10792,
289,
10792,
309,
261,
343,
422,
8641,
13,
1024,
782,
5621,
10792,
1393,
273,
1393,
67,
6392,
31,
7734,
289,
7734,
898,
31,
5411,
648,
2368,
4278,
7734,
288,
10792,
1147,
18,
6923,
12,
343,
1769,
1024,
782,
5621,
10792,
309,
261,
343,
422,
7481,
747,
462,
422,
5214,
13,
288,
13491,
1147,
18,
6923,
12,
343,
1769,
1024,
782,
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,
509,
9617,
12,
780,
1892,
1147,
13,
565,
288,
3639,
509,
1393,
273,
1393,
67,
409,
31,
3639,
1147,
18,
542,
1782,
12,
20,
1769,
3639,
1323,
261,
7069,
18,
291,
9431,
12,
343,
3719,
1024,
782,
5621,
3639,
1147,
1685,
273,
272,
17,
21,
31,
3639,
1620,
261,
343,
13,
288,
5411,
648,
14118,
4278,
5411,
648,
2119,
4278,
7734,
288,
10792,
1149,
2481,
273,
462,
31,
1024,
782,
5621,
10792,
741,
288,
13491,
1323,
261,
343,
480,
2481,
597,
462,
480,
6431,
13,
288,
18701,
1147,
18,
6923,
12,
343,
1769,
1024,
782,
5621,
13491,
289,
13491,
309,
261,
343,
422,
6431,
13,
898,
31,
21821,
1024,
782,
5621,
13491,
309,
261,
343,
480,
2481,
13,
2
] |
public synchronized void documentChanged(DocumentEvent e) { Document document = e.getDocument(); if(myLexer instanceof JspHighlightLexer && myEditor != null && myEditor.getProject() != null){ final PsiDocumentManager instance = PsiDocumentManager.getInstance(myEditor.getProject()); final PsiFile psiFile = instance.getPsiFile(document); if(psiFile instanceof JspFile) ((JspHighlightLexer)myLexer).setBaseFile((JspFile)psiFile); } if(mySegments.getSegmentCount() == 0) { setText(document.getCharsSequence()); return; } CharSequence text = document.getCharsSequence(); int oldStartOffset = e.getOffset(); final int oldStartIndex = mySegments.findSegmentIndex(oldStartOffset); int startIndex = oldStartIndex; int data; do { data = mySegments.getSegmentData(startIndex); if (isInitialState(data)|| startIndex == 0) break; startIndex--; } while (true); int startOffset = mySegments.getSegmentStart(startIndex); int newEndOffset = e.getOffset() + e.getNewLength(); myLexer.start(CharArrayUtil.fromSequence(text), startOffset, text.length(), myInitialState); SegmentArrayWithData insertSegments = new SegmentArrayWithData(); int oldEndIndex = -1; int insertSegmentCount = 0; int repaintEnd = -1; int lastTokenStart = -1; while (myLexer.getTokenType() != null) { if (startIndex >= oldStartIndex) break; int tokenStart = myLexer.getTokenStart(); if (tokenStart == lastTokenStart) { throw new IllegalStateException("Error while updating lexer: " + e + " document text: " + e.getDocument().getText()); } int tokenEnd = myLexer.getTokenEnd(); int lexerState = myLexer.getState(); data = packData(myLexer.getTokenType(), lexerState); if (mySegments.getSegmentStart(startIndex) != tokenStart || mySegments.getSegmentEnd(startIndex) != tokenEnd || mySegments.getSegmentData(startIndex) != data) { break; } startIndex++; myLexer.advance(); lastTokenStart = tokenStart; } startOffset = mySegments.getSegmentStart(startIndex); while(myLexer.getTokenType() != null) { int tokenStart = myLexer.getTokenStart(); if (tokenStart == lastTokenStart) { throw new IllegalStateException("Error while updating lexer: " + e + " document text: " + e.getDocument().getText()); } lastTokenStart = tokenStart; int tokenEnd = myLexer.getTokenEnd(); int lexerState = myLexer.getState(); data = packData(myLexer.getTokenType(), lexerState); if(tokenStart >= newEndOffset && lexerState == myInitialState) { int shiftedTokenStart = tokenStart - e.getNewLength() + e.getOldLength(); int index = mySegments.findSegmentIndex(shiftedTokenStart); if (mySegments.getSegmentStart(index) == shiftedTokenStart && mySegments.getSegmentData(index) == data) { repaintEnd = tokenStart; oldEndIndex = index; break; } } insertSegments.setElementAt(insertSegmentCount, tokenStart, tokenEnd, data); insertSegmentCount++; myLexer.advance(); } final int shift = e.getNewLength() - e.getOldLength(); if (repaintEnd > 0) { while (insertSegmentCount > 0 && oldEndIndex > 0) { if (!segmentsEqual(mySegments, oldEndIndex - 1, insertSegments, insertSegmentCount - 1, shift)) { break; } insertSegmentCount--; oldEndIndex--; repaintEnd = insertSegments.getSegmentStart(insertSegmentCount); insertSegments.remove(insertSegmentCount, insertSegmentCount + 1); } } if(repaintEnd == -1) { repaintEnd = text.length(); } if (oldEndIndex < 0){ oldEndIndex = mySegments.getSegmentCount(); } mySegments.shiftSegments(oldEndIndex, shift); mySegments.remove(startIndex, oldEndIndex); mySegments.insert(insertSegments, startIndex); int lastDocOffset = e.getDocument().getTextLength(); checkUpdateCorrect(lastDocOffset); if (insertSegmentCount == 0 || oldEndIndex == startIndex + 1 && insertSegmentCount == 1 && data == mySegments.getSegmentData(startIndex)) { return; } ((EditorEx) myEditor).repaint(startOffset, repaintEnd); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/0b0d0a1436249df13d747a760e032b658d695aff/LexerEditorHighlighter.java/clean/source/com/intellij/openapi/editor/ex/util/LexerEditorHighlighter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3852,
918,
1668,
5033,
12,
2519,
1133,
425,
13,
288,
2519,
1668,
273,
425,
18,
588,
2519,
5621,
430,
12,
4811,
13356,
1276,
19300,
16205,
13356,
597,
3399,
6946,
480,
446,
597,
3399,
6946,
18,
588,
4109,
1435,
480,
446,
15329,
6385,
453,
7722,
2519,
1318,
791,
273,
453,
7722,
2519,
1318,
18,
588,
1442,
12,
4811,
6946,
18,
588,
4109,
10663,
6385,
453,
7722,
812,
23921,
812,
273,
791,
18,
588,
52,
7722,
812,
12,
5457,
1769,
430,
12,
24275,
812,
1276,
19300,
812,
13,
14015,
21796,
16205,
13356,
13,
4811,
13356,
2934,
542,
2171,
812,
12443,
21796,
812,
13,
24275,
812,
1769,
97,
430,
12,
4811,
7946,
18,
588,
4131,
1380,
1435,
422,
374,
13,
288,
542,
1528,
12,
5457,
18,
588,
7803,
4021,
10663,
2463,
31,
97,
2156,
4021,
977,
273,
1668,
18,
588,
7803,
4021,
5621,
474,
1592,
1685,
2335,
273,
425,
18,
588,
2335,
5621,
6385,
509,
1592,
16792,
273,
3399,
7946,
18,
4720,
4131,
1016,
12,
1673,
1685,
2335,
1769,
474,
10588,
273,
1592,
16792,
31,
474,
501,
31,
2896,
288,
892,
273,
3399,
7946,
18,
588,
4131,
751,
12,
1937,
1016,
1769,
430,
261,
291,
4435,
1119,
12,
892,
14047,
96,
10588,
422,
374,
13,
898,
31,
1937,
1016,
413,
31,
97,
17523,
261,
3767,
1769,
474,
18245,
273,
3399,
7946,
18,
588,
4131,
1685,
12,
1937,
1016,
1769,
474,
394,
1638,
2335,
273,
425,
18,
588,
2335,
1435,
397,
425,
18,
588,
1908,
1782,
5621,
4811,
13356,
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,
1071,
3852,
918,
1668,
5033,
12,
2519,
1133,
425,
13,
288,
2519,
1668,
273,
425,
18,
588,
2519,
5621,
430,
12,
4811,
13356,
1276,
19300,
16205,
13356,
597,
3399,
6946,
480,
446,
597,
3399,
6946,
18,
588,
4109,
1435,
480,
446,
15329,
6385,
453,
7722,
2519,
1318,
791,
273,
453,
7722,
2519,
1318,
18,
588,
1442,
12,
4811,
6946,
18,
588,
4109,
10663,
6385,
453,
7722,
812,
23921,
812,
273,
791,
18,
588,
52,
7722,
812,
12,
5457,
1769,
430,
12,
24275,
812,
1276,
19300,
812,
13,
14015,
21796,
16205,
13356,
13,
4811,
13356,
2934,
542,
2171,
812,
12443,
21796,
812,
13,
24275,
812,
1769,
97,
430,
12,
4811,
7946,
18,
588,
4131,
1380,
1435,
422,
374,
13,
288,
2
] |
||
char c = iterator.next(); | char c = iterator.current(); iterator.next(); | public int next() { startPosition = iterator.getIndex(); char c = iterator.next(); if (c == CharacterIterator.DONE) { kind = EOF; } else if (Character.isJavaIdentifierStart(c)) { boolean couldBeKeyword = false; if (Character.isLowerCase(c)) { buf.append(c); couldBeKeyword = true; } while (true) { c = iterator.current(); if (!Character.isJavaIdentifierPart(c)) break; c = iterator.next(); if (couldBeKeyword) { if (!Character.isLowerCase(c) || buf.length() >= MAX_KEYWORD_LENGTH) couldBeKeyword = false; else buf.append(c); } } kind = NORMAL_TEXT; if (couldBeKeyword) { if (KEYWORDS.contains(buf.toString())) kind = KEYWORD; buf.setLength(0); } } else if (c == '/') { char c2 = iterator.current(); if (c2 == '/') { while (true) { c2 = iterator.next(); if (c2 == '\n' || c2 == '\r') break; } kind = COMMENT; return kind; } else if (c2 == '*') { scanComment: while (true) { c2 = iterator.next(); if (c2 == '*') { do { c2 = iterator.next(); if (c2 == '/') break scanComment; } while(c2 == '*'); } } kind = JAVADOC; return kind; } } else if (c == '"') { kind = QUOTE; while (true) { char c2 = iterator.next(); if (c2 == '"' || c2 == '\n' || c2 == '\r') break; if (c2 == '\\') { c2 = iterator.next(); if (c2 == '\n' || c2 == '\r') break; } } } else kind = NORMAL_TEXT; // System.out.println(kind + " " + startPosition + "-" + iterator.getIndex()); return kind; } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/bf8ba79faa8700d501a5d2c5f7fe7b33dc9564bf/JavaScanner.java/buggy/findbugs/src/java5/edu/umd/cs/findbugs/sourceViewer/JavaScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
1024,
1435,
288,
202,
202,
1937,
2555,
273,
2775,
18,
588,
1016,
5621,
202,
202,
3001,
276,
273,
2775,
18,
4285,
5621,
202,
202,
430,
261,
71,
422,
6577,
3198,
18,
26875,
13,
288,
1082,
202,
9224,
273,
6431,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
7069,
18,
291,
5852,
3004,
1685,
12,
71,
3719,
288,
1082,
202,
6494,
3377,
1919,
8736,
273,
629,
31,
1082,
202,
430,
261,
7069,
18,
291,
5630,
12,
71,
3719,
288,
9506,
202,
4385,
18,
6923,
12,
71,
1769,
9506,
202,
15195,
1919,
8736,
273,
638,
31,
1082,
202,
97,
1082,
202,
17523,
261,
3767,
13,
288,
9506,
202,
71,
273,
2775,
18,
2972,
5621,
9506,
202,
430,
16051,
7069,
18,
291,
5852,
3004,
1988,
12,
71,
3719,
6862,
202,
8820,
31,
9506,
202,
71,
273,
2775,
18,
4285,
5621,
9506,
202,
430,
261,
15195,
1919,
8736,
13,
288,
6862,
202,
430,
16051,
7069,
18,
291,
5630,
12,
71,
13,
6862,
1082,
202,
20081,
1681,
18,
2469,
1435,
1545,
4552,
67,
28813,
67,
7096,
13,
25083,
202,
15195,
1919,
8736,
273,
629,
31,
6862,
202,
12107,
25083,
202,
4385,
18,
6923,
12,
71,
1769,
9506,
202,
97,
1082,
202,
97,
1082,
202,
9224,
273,
16362,
67,
5151,
31,
1082,
202,
430,
261,
15195,
1919,
8736,
13,
288,
9506,
202,
430,
261,
3297,
23287,
18,
12298,
12,
4385,
18,
10492,
1435,
3719,
6862,
202,
9224,
273,
30191,
31,
9506,
202,
4385,
18,
542,
1782,
12,
20,
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,
509,
1024,
1435,
288,
202,
202,
1937,
2555,
273,
2775,
18,
588,
1016,
5621,
202,
202,
3001,
276,
273,
2775,
18,
4285,
5621,
202,
202,
430,
261,
71,
422,
6577,
3198,
18,
26875,
13,
288,
1082,
202,
9224,
273,
6431,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
7069,
18,
291,
5852,
3004,
1685,
12,
71,
3719,
288,
1082,
202,
6494,
3377,
1919,
8736,
273,
629,
31,
1082,
202,
430,
261,
7069,
18,
291,
5630,
12,
71,
3719,
288,
9506,
202,
4385,
18,
6923,
12,
71,
1769,
9506,
202,
15195,
1919,
8736,
273,
638,
31,
1082,
202,
97,
1082,
202,
17523,
261,
3767,
13,
288,
9506,
202,
71,
273,
2775,
18,
2972,
5621,
9506,
202,
2
] |
TextUtils.createTabs(getTextPane()); | getTextPane().setTabSize(AWPrefs.getEditorTabSize()); | public void applyFont() { getTextPane().setFont(new Font(AWPrefs.getEditorFont(), Font.PLAIN, AWPrefs.getEditorFontSize())); TextUtils.createTabs(getTextPane()); } | 4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/7d10fc62dd364c5d7d612bfc98500e0202fd7f02/CEditorText.java/buggy/src/org/antlr/works/components/text/CEditorText.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2230,
5711,
1435,
288,
3639,
6701,
8485,
7675,
542,
5711,
12,
2704,
10063,
12,
12999,
1386,
2556,
18,
588,
6946,
5711,
9334,
10063,
18,
26549,
16,
13228,
1386,
2556,
18,
588,
6946,
22688,
1435,
10019,
3639,
6701,
8485,
7675,
542,
5661,
1225,
12,
12999,
1386,
2556,
18,
588,
6946,
5661,
1225,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2230,
5711,
1435,
288,
3639,
6701,
8485,
7675,
542,
5711,
12,
2704,
10063,
12,
12999,
1386,
2556,
18,
588,
6946,
5711,
9334,
10063,
18,
26549,
16,
13228,
1386,
2556,
18,
588,
6946,
22688,
1435,
10019,
3639,
6701,
8485,
7675,
542,
5661,
1225,
12,
12999,
1386,
2556,
18,
588,
6946,
5661,
1225,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void acceptDrop (int dropAction) | public void acceptDrop(int dropAction) | public void acceptDrop (int dropAction) { context.acceptDrop (dropAction); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/53983e95556bf4b775130b06570aa2ea08d85628/DropTargetDropEvent.java/clean/core/src/classpath/java/java/awt/dnd/DropTargetDropEvent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2791,
7544,
12,
474,
3640,
1803,
13,
225,
288,
565,
819,
18,
9436,
7544,
261,
7285,
1803,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2791,
7544,
12,
474,
3640,
1803,
13,
225,
288,
565,
819,
18,
9436,
7544,
261,
7285,
1803,
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
] |
prefix = qname.substring(0, colon1); | prefix = qname.substring(0, colon1); if( namespaceURI == null || ( prefix.equals("xml") && !namespaceURI.equals(NamespaceContext.XML_URI) )){ String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "NAMESPACE_ERR", null); throw new DOMException(DOMException.NAMESPACE_ERR, msg); } | private void setName(String namespaceURI, String qname) { String prefix; // DOM Level 3: namespace URI is never empty string. this.namespaceURI = namespaceURI; if (namespaceURI != null) { this.namespaceURI = (namespaceURI.length() == 0) ? null : namespaceURI; } int colon1 = qname.indexOf(':'); int colon2 = qname.lastIndexOf(':'); ownerDocument().checkNamespaceWF(qname, colon1, colon2); if (colon1 < 0) { // there is no prefix localName = qname; ownerDocument().checkQName(null, localName); if (qname.equals("xmlns") && (namespaceURI == null || !namespaceURI.equals(NamespaceContext.XMLNS_URI)) || (namespaceURI!=null && namespaceURI.equals(NamespaceContext.XMLNS_URI) && !qname.equals("xmlns"))) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "NAMESPACE_ERR", null); throw new DOMException(DOMException.NAMESPACE_ERR, msg); } } else { prefix = qname.substring(0, colon1); localName = qname.substring(colon2 + 1); ownerDocument().checkQName(prefix, localName); ownerDocument().checkDOMNSErr(prefix, namespaceURI); } } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/39ac0bdc9afef35f1a8d3690dc4e1ea1f4b0b78c/ElementNSImpl.java/clean/src/org/apache/xerces/dom/ElementNSImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6788,
12,
780,
19421,
16,
514,
12621,
13,
288,
202,
202,
780,
1633,
31,
202,
202,
759,
4703,
4557,
890,
30,
1981,
3699,
353,
5903,
1008,
533,
18,
202,
202,
2211,
18,
4937,
3098,
273,
19421,
31,
202,
202,
430,
261,
4937,
3098,
480,
446,
13,
288,
1082,
202,
2211,
18,
4937,
3098,
273,
9506,
202,
12,
4937,
3098,
18,
2469,
1435,
422,
374,
13,
692,
446,
294,
19421,
31,
202,
202,
97,
202,
202,
474,
13336,
21,
273,
12621,
18,
31806,
2668,
2497,
1769,
202,
202,
474,
13336,
22,
273,
12621,
18,
2722,
31985,
2668,
2497,
1769,
202,
202,
8443,
2519,
7675,
1893,
3402,
59,
42,
12,
85,
529,
16,
13336,
21,
16,
13336,
22,
1769,
202,
202,
430,
261,
22667,
21,
411,
374,
13,
288,
1082,
202,
759,
1915,
353,
1158,
1633,
1082,
202,
3729,
461,
273,
12621,
31,
1082,
202,
8443,
2519,
7675,
1893,
13688,
12,
2011,
16,
11927,
1769,
1082,
202,
430,
261,
85,
529,
18,
14963,
2932,
16741,
7923,
9506,
202,
10,
10,
261,
4937,
3098,
422,
446,
6862,
202,
20081,
401,
4937,
3098,
18,
14963,
12,
3402,
1042,
18,
4201,
3156,
67,
3098,
3719,
9506,
202,
20081,
261,
4937,
3098,
5,
33,
2011,
597,
19421,
18,
14963,
12,
3402,
1042,
18,
4201,
3156,
67,
3098,
13,
6862,
202,
10,
10,
401,
85,
529,
18,
14963,
2932,
16741,
6,
20349,
288,
9506,
202,
780,
1234,
273,
6862,
202,
8168,
1079,
5074,
18,
2139,
1079,
12,
25083,
202,
8168,
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,
6788,
12,
780,
19421,
16,
514,
12621,
13,
288,
202,
202,
780,
1633,
31,
202,
202,
759,
4703,
4557,
890,
30,
1981,
3699,
353,
5903,
1008,
533,
18,
202,
202,
2211,
18,
4937,
3098,
273,
19421,
31,
202,
202,
430,
261,
4937,
3098,
480,
446,
13,
288,
1082,
202,
2211,
18,
4937,
3098,
273,
9506,
202,
12,
4937,
3098,
18,
2469,
1435,
422,
374,
13,
692,
446,
294,
19421,
31,
202,
202,
97,
202,
202,
474,
13336,
21,
273,
12621,
18,
31806,
2668,
2497,
1769,
202,
202,
474,
13336,
22,
273,
12621,
18,
2722,
31985,
2668,
2497,
1769,
202,
202,
8443,
2519,
7675,
1893,
3402,
59,
42,
12,
85,
529,
16,
13336,
21,
16,
13336,
2
] |
repeatBody(); | if (hasMoreResultSets) { if (hasNext) { repeatBody(); } | public void start(String uri, String localname, String qName, Attributes attributes) throws SAXException { addAllDefaultElementHandlers(); // Optional result sets count final int allowedResultSetCount; { final String resultSetsAttribute = attributes.getValue("result-sets"); allowedResultSetCount = (resultSetsAttribute == null) ? 1 : (resultSetsAttribute.equals(UNBOUNDED) ? -1 : Integer.parseInt(resultSetsAttribute)); } final SQLProcessorInterpreterContext interpreterContext = getInterpreterContext(); try { final PreparedStatement stmt = interpreterContext.getStatement(0); final boolean hasNext = !getInterpreterContext().isEmptyResultSet(); if (SQLProcessor.logger.isDebugEnabled()) SQLProcessor.logger.debug("Preparing to execute result set: hasNext = " + hasNext + ", statement = " + interpreterContext.getStatementString()); if (hasNext) { // There is a current non-empty result-set if (stmt != null) { int currentCount = 0; do { if (SQLProcessor.logger.isDebugEnabled()) SQLProcessor.logger.debug("Executing result set: currentCount = " + currentCount); // NOTE: Initially, a result set has already been made available repeatBody(); // One more result set has been processed currentCount++; // Try to go to next result set final boolean hasMoreResultSets = setResultSetInfo(interpreterContext, stmt, stmt.getMoreResults()); if (!hasMoreResultSets || (allowedResultSetCount != -1 && currentCount >= allowedResultSetCount)) { // We have processed all the result sets we can process break; } } while (true); } } else if (stmt != null) { // Prepare result set info for the next potential result-set interrpeter setResultSetInfo(interpreterContext, stmt, stmt.getMoreResults()); } } catch (SQLException e) { throw new ValidationException(e, new LocationData(getDocumentLocator())); } } | 51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/79138155da6d7ec8199b3f3589e2ffb223af2568/ResultSetInterpreter.java/buggy/src/java/org/orbeon/oxf/processor/sql/interpreters/ResultSetInterpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
12,
780,
2003,
16,
514,
1191,
529,
16,
514,
22914,
16,
9055,
1677,
13,
1216,
14366,
288,
3639,
5428,
1868,
1046,
6919,
5621,
3639,
368,
4055,
563,
1678,
1056,
3639,
727,
509,
2935,
13198,
1380,
31,
3639,
288,
5411,
727,
514,
563,
2785,
1499,
273,
1677,
18,
24805,
2932,
2088,
17,
4424,
8863,
5411,
2935,
13198,
1380,
273,
261,
2088,
2785,
1499,
422,
446,
13,
692,
404,
294,
261,
2088,
2785,
1499,
18,
14963,
12,
2124,
5315,
2124,
7660,
13,
692,
300,
21,
294,
2144,
18,
2670,
1702,
12,
2088,
2785,
1499,
10019,
3639,
289,
3639,
727,
3063,
5164,
30010,
1042,
16048,
1042,
273,
336,
30010,
1042,
5621,
3639,
775,
288,
5411,
727,
16913,
3480,
273,
16048,
1042,
18,
588,
3406,
12,
20,
1769,
5411,
727,
1250,
4564,
273,
401,
588,
30010,
1042,
7675,
291,
1921,
13198,
5621,
5411,
309,
261,
3997,
5164,
18,
4901,
18,
291,
2829,
1526,
10756,
7734,
3063,
5164,
18,
4901,
18,
4148,
2932,
1386,
12583,
358,
1836,
563,
444,
30,
4564,
273,
315,
397,
4564,
397,
3104,
3021,
273,
315,
397,
16048,
1042,
18,
588,
3406,
780,
10663,
5411,
309,
261,
5332,
2134,
13,
288,
7734,
368,
6149,
353,
279,
783,
1661,
17,
5531,
563,
17,
542,
7734,
309,
261,
10589,
480,
446,
13,
288,
10792,
509,
783,
1380,
273,
374,
31,
10792,
741,
288,
13491,
309,
261,
3997,
5164,
18,
4901,
18,
291,
2829,
1526,
10756,
18701,
3063,
5164,
18,
4901,
18,
4148,
2932,
22134,
563,
444,
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,
787,
12,
780,
2003,
16,
514,
1191,
529,
16,
514,
22914,
16,
9055,
1677,
13,
1216,
14366,
288,
3639,
5428,
1868,
1046,
6919,
5621,
3639,
368,
4055,
563,
1678,
1056,
3639,
727,
509,
2935,
13198,
1380,
31,
3639,
288,
5411,
727,
514,
563,
2785,
1499,
273,
1677,
18,
24805,
2932,
2088,
17,
4424,
8863,
5411,
2935,
13198,
1380,
273,
261,
2088,
2785,
1499,
422,
446,
13,
692,
404,
294,
261,
2088,
2785,
1499,
18,
14963,
12,
2124,
5315,
2124,
7660,
13,
692,
300,
21,
294,
2144,
18,
2670,
1702,
12,
2088,
2785,
1499,
10019,
3639,
289,
3639,
727,
3063,
5164,
30010,
1042,
16048,
1042,
273,
336,
30010,
1042,
5621,
3639,
775,
288,
5411,
727,
16913,
3480,
2
] |
if(domainClass.getMappedBy().equalsIgnoreCase( GrailsDomainClass.GORM )) { this.domainClasses.add(domainClass); } return this; } | if(domainClass.getMappedBy().equalsIgnoreCase( GrailsDomainClass.GORM )) { this.domainClasses.add(domainClass); } return this; } | public GrailsDomainConfiguration addDomainClass( GrailsDomainClass domainClass ) { if(domainClass.getMappedBy().equalsIgnoreCase( GrailsDomainClass.GORM )) { this.domainClasses.add(domainClass); } return this; } | 50129 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50129/903f4b388a57a464f9d14176ea5d25485de66436/DefaultGrailsDomainConfiguration.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/DefaultGrailsDomainConfiguration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10812,
14573,
3748,
1750,
527,
3748,
797,
12,
10812,
14573,
3748,
797,
2461,
797,
262,
288,
202,
202,
430,
12,
4308,
797,
18,
588,
12868,
858,
7675,
14963,
5556,
12,
10812,
14573,
3748,
797,
18,
43,
3466,
8623,
288,
1082,
202,
2211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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10812,
14573,
3748,
1750,
527,
3748,
797,
12,
10812,
14573,
3748,
797,
2461,
797,
262,
288,
202,
202,
430,
12,
4308,
797,
18,
588,
12868,
858,
7675,
14963,
5556,
12,
10812,
14573,
3748,
797,
18,
43,
3466,
8623,
288,
1082,
202,
2211,
18,
4308,
4818,
18,
1289,
12,
4308,
797,
1769,
202,
202,
97,
25083,
202,
2463,
333,
31,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
debugLog("new: " + messageId); | infoLog("new: " + messageId); | private String convertToSml(SyndEntry e) { String subject; // Calculate messageId, and check if we have got the message already String feedHash = sha1(urlToLoad); String itemHash = sha1(e.getTitle() + e.getDescription()); Date d = e.getPublishedDate(); String time; if(d!=null) time = "" + d.getTime(); else time = "" + new Date().getTime(); String outputFileName = outputDir + "/" + messageNumber; String messageId = feedHash + ":" + itemHash + ":" + time + ":" + outputFileName; // Check if we already have this if (existsInHistory(messageId)) return null; debugLog("new: " + messageId); try { String sml=""; subject=e.getTitle(); List cats = e.getCategories(); Iterator iter = cats.iterator(); String tags = feedTag; while (iter.hasNext()) { SyndCategory c = (SyndCategory) iter.next(); debugLog("Name: "+c.getName()); debugLog("uri:"+c.getTaxonomyUri()); String tag=c.getName(); tag=tag.replaceAll("[^a-zA-z.-_:]","_"); tags += "\t" + feedTag + "." + tag; } SyndContent content; List l = e.getContents(); if(l!=null) { debugLog("There is content"); iter = l.iterator(); while(iter.hasNext()) { content = (SyndContent)iter.next(); String c = content.getValue(); debugLog("Content: "+c); sml += htmlToSml(c); sml += "\n"; } } String source=e.getUri(); if(source.indexOf("http")<0) source=baseUrl+source; sml += "[link schema=\"web\" location=\""+source+"\"]source[/link]\n"; if(pushToSyndie) { debugLog("user.blog: "+user.getBlogStr()); debugLog("user.id: "+bm.getNextBlogEntry(user)); debugLog("subject: "+subject); debugLog("tags: "+tags); debugLog("sml: "+sml); debugLog(""); BlogURI uri = bm.createBlogEntry( user, false, subject, tags, null, sml, fileNames, fileStreams, fileTypes); if(uri==null) { debugLog("pushToSyndie failure."); return null; } else debugLog("pushToSyndie success, uri: "+uri.toString()); } else { FileOutputStream fos; fos = new FileOutputStream(messagePath); sml=subject + "\nTags: " + tags + "\n\n" + sml; fos.write(sml.getBytes()); if (pushScript != null) { if (!execPushScript(""+messageNumber, time)) { debugLog("################## push failed"); } else { debugLog("push success"); } } } messageNumber++; return messageId; } catch (FileNotFoundException e1) { e1.printStackTrace(); } catch (IOException e2) { e2.printStackTrace(); } return null; } | 3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/9050d7c218bc5eb51eb7cbd68bc0b214bcf9614b/Sucker.java/clean/apps/syndie/java/src/net/i2p/syndie/Sucker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
8137,
55,
781,
12,
10503,
72,
1622,
425,
13,
288,
3639,
514,
3221,
31,
7734,
368,
9029,
19090,
16,
471,
866,
309,
732,
1240,
2363,
326,
883,
1818,
3639,
514,
4746,
2310,
273,
6056,
21,
12,
718,
26883,
1769,
3639,
514,
761,
2310,
273,
6056,
21,
12,
73,
18,
588,
4247,
1435,
397,
425,
18,
588,
3291,
10663,
3639,
2167,
302,
273,
425,
18,
588,
16451,
1626,
5621,
3639,
514,
813,
31,
3639,
309,
12,
72,
5,
33,
2011,
13,
5411,
813,
273,
1408,
397,
302,
18,
588,
950,
5621,
3639,
469,
5411,
813,
273,
1408,
397,
394,
2167,
7675,
588,
950,
5621,
3639,
514,
876,
4771,
273,
21412,
397,
4016,
397,
883,
1854,
31,
3639,
514,
19090,
273,
4746,
2310,
397,
6153,
397,
761,
2310,
397,
6153,
397,
813,
397,
6153,
397,
876,
4771,
31,
3639,
368,
2073,
309,
732,
1818,
1240,
333,
3639,
309,
261,
1808,
382,
5623,
12,
2150,
548,
3719,
5411,
327,
446,
31,
7734,
1123,
1343,
2932,
2704,
30,
315,
397,
19090,
1769,
10792,
775,
288,
5411,
514,
272,
781,
1546,
14432,
5411,
3221,
33,
73,
18,
588,
4247,
5621,
5411,
987,
27525,
273,
425,
18,
588,
10487,
5621,
5411,
4498,
1400,
273,
27525,
18,
9838,
5621,
5411,
514,
2342,
273,
4746,
1805,
31,
5411,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
7734,
16091,
72,
4457,
276,
273,
261,
10503,
72,
4457,
13,
1400,
18,
4285,
5621,
7734,
1198,
1343,
2932,
461,
30,
13773,
71,
18,
17994,
10663,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
8137,
55,
781,
12,
10503,
72,
1622,
425,
13,
288,
3639,
514,
3221,
31,
7734,
368,
9029,
19090,
16,
471,
866,
309,
732,
1240,
2363,
326,
883,
1818,
3639,
514,
4746,
2310,
273,
6056,
21,
12,
718,
26883,
1769,
3639,
514,
761,
2310,
273,
6056,
21,
12,
73,
18,
588,
4247,
1435,
397,
425,
18,
588,
3291,
10663,
3639,
2167,
302,
273,
425,
18,
588,
16451,
1626,
5621,
3639,
514,
813,
31,
3639,
309,
12,
72,
5,
33,
2011,
13,
5411,
813,
273,
1408,
397,
302,
18,
588,
950,
5621,
3639,
469,
5411,
813,
273,
1408,
397,
394,
2167,
7675,
588,
950,
5621,
3639,
514,
876,
4771,
273,
21412,
397,
4016,
397,
883,
1854,
31,
3639,
2
] |
nodeList.add(listNode2); | nodeList.add(listNode3); | ArrayList new30() { ArrayList nodeList = new ArrayList(); ArrayList nodeArrayList1 = (ArrayList) pop(); TypedLinkedList listNode2 = new TypedLinkedList(); { PKeyvalDecl pkeyvaldeclNode1; pkeyvaldeclNode1 = (PKeyvalDecl)nodeArrayList1.get(0); if(pkeyvaldeclNode1 != null) { listNode2.add(pkeyvaldeclNode1); } } nodeList.add(listNode2); return nodeList; } | 50059 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50059/a343b73e05abe516d42c4d6672f63a8325be4a98/Parser.java/clean/sub/source/net/sourceforge/texlipse/bibparser/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2407,
394,
5082,
1435,
565,
288,
3639,
2407,
10198,
273,
394,
2407,
5621,
3639,
2407,
756,
19558,
21,
273,
261,
19558,
13,
1843,
5621,
3639,
13833,
13174,
682,
666,
907,
22,
273,
394,
13833,
13174,
682,
5621,
3639,
288,
3639,
453,
653,
1125,
3456,
19291,
1125,
8840,
907,
21,
31,
3639,
19291,
1125,
8840,
907,
21,
273,
261,
52,
653,
1125,
3456,
13,
2159,
19558,
21,
18,
588,
12,
20,
1769,
202,
430,
12,
84,
856,
1125,
8840,
907,
21,
480,
446,
13,
202,
95,
202,
225,
666,
907,
22,
18,
1289,
12,
84,
856,
1125,
8840,
907,
21,
1769,
202,
97,
3639,
289,
202,
2159,
682,
18,
1289,
12,
1098,
907,
23,
1769,
3639,
327,
10198,
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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,
907,
22,
273,
394,
13833,
13174,
682,
5621,
3639,
288,
3639,
453,
653,
1125,
3456,
19291,
1125,
8840,
907,
21,
31,
3639,
19291,
1125,
8840,
907,
21,
273,
261,
52,
653,
1125,
3456,
13,
2159,
19558,
21,
18,
588,
12,
20,
1769,
202,
430,
12,
84,
856,
1125,
8840,
907,
21,
480,
446,
13,
202,
95,
202,
225,
666,
907,
22,
18,
1289,
12,
84,
856,
1125,
8840,
907,
21,
1769,
202,
97,
3639,
289,
202,
2159,
682,
18,
1289,
12,
1098,
907,
23,
1769,
3639,
327,
10198,
31,
2
] |
private void createLabel( Composite parent, String content, int width ) | private void createLabel( Composite parent, String content ) | private void createLabel( Composite parent, String content, int width ) { Label label = new Label( parent, SWT.NONE ); if ( content != null ) { label.setText( content ); } setLabelLayoutData( label, width ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/31a80f48beb9d599facbdada555a36a918b898f1/ParameterDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
2224,
12,
14728,
982,
16,
514,
913,
16,
509,
1835,
262,
202,
95,
202,
202,
2224,
1433,
273,
394,
5287,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
430,
261,
913,
480,
446,
262,
202,
202,
95,
1082,
202,
1925,
18,
542,
1528,
12,
913,
11272,
202,
202,
97,
202,
202,
542,
2224,
3744,
751,
12,
1433,
16,
1835,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
2224,
12,
14728,
982,
16,
514,
913,
16,
509,
1835,
262,
202,
95,
202,
202,
2224,
1433,
273,
394,
5287,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
430,
261,
913,
480,
446,
262,
202,
202,
95,
1082,
202,
1925,
18,
542,
1528,
12,
913,
11272,
202,
202,
97,
202,
202,
542,
2224,
3744,
751,
12,
1433,
16,
1835,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
num = getDecimalValue(c, state); | num = getDecimalValue(c, state, 0xFFFF, "msg.overlarge.backref"); | parseTerm(CompilerState state) { char[] src = state.cpbegin; char c = src[state.cp++]; int nDigits = 2; int parenBaseCount = state.parenCount; int num, tmp; RENode term; int termStart; int ocp = state.cp; switch (c) { /* assertions and atoms */ case '^': state.result = new RENode(REOP_BOL); state.progLength++; return true; case '$': state.result = new RENode(REOP_EOL); state.progLength++; return true; case '\\': if (state.cp < state.cpend) { c = src[state.cp++]; switch (c) { /* assertion escapes */ case 'b' : state.result = new RENode(REOP_WBDRY); state.progLength++; return true; case 'B': state.result = new RENode(REOP_WNONBDRY); state.progLength++; return true; /* Decimal escape */ case '0':/* * Under 'strict' ECMA 3, we interpret \0 as NUL and don't accept octal. * However, (XXX and since Rhino doesn't have a 'strict' mode) we'll just * behave the old way for compatibility reasons. * (see http://bugzilla.mozilla.org/show_bug.cgi?id=141078) * */ /* octal escape */ num = 0; while (state.cp < state.cpend) { c = src[state.cp]; if ((c >= '0') && (c <= '7')) { state.cp++; tmp = 8 * num + (c - '0'); if (tmp > 0377) break; num = tmp; } else break; } c = (char)(num); doFlat(state, c); break; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': termStart = state.cp - 1; num = getDecimalValue(c, state); /* * n > 9 and > count of parentheses, * then treat as octal instead. */ if ((num > 9) && (num > state.parenCount)) { state.cp = termStart; num = 0; while (state.cp < state.cpend) { c = src[state.cp]; if ((c >= '0') && (c <= '7')) { state.cp++; tmp = 8 * num + (c - '0'); if (tmp > 0377) break; num = tmp; } else break; } c = (char)(num); doFlat(state, c); break; } /* otherwise, it's a back-reference */ state.result = new RENode(REOP_BACKREF); state.result.parenIndex = num - 1; state.progLength += 3; break; /* Control escape */ case 'f': c = 0xC; doFlat(state, c); break; case 'n': c = 0xA; doFlat(state, c); break; case 'r': c = 0xD; doFlat(state, c); break; case 't': c = 0x9; doFlat(state, c); break; case 'v': c = 0xB; doFlat(state, c); break; /* Control letter */ case 'c': if (((state.cp + 1) < state.cpend) && Character.isLetter(src[state.cp + 1])) c = (char)(src[state.cp++] & 0x1F); else { /* back off to accepting the original '\' as a literal */ --state.cp; c = '\\'; } doFlat(state, c); break; /* UnicodeEscapeSequence */ case 'u': nDigits += 2; // fall thru... /* HexEscapeSequence */ case 'x': { int n = 0; int i; for (i = 0; (i < nDigits) && (state.cp < state.cpend); i++) { int digit; c = src[state.cp++]; if (!isHex(c)) { /* * back off to accepting the original * 'u' or 'x' as a literal */ state.cp -= (i + 2); n = src[state.cp++]; break; } n = (n << 4) | unHex(c); } c = (char)(n); } doFlat(state, c); break; /* Character class escapes */ case 'd': state.result = new RENode(REOP_DIGIT); state.progLength++; break; case 'D': state.result = new RENode(REOP_NONDIGIT); state.progLength++; break; case 's': state.result = new RENode(REOP_SPACE); state.progLength++; break; case 'S': state.result = new RENode(REOP_NONSPACE); state.progLength++; break; case 'w': state.result = new RENode(REOP_ALNUM); state.progLength++; break; case 'W': state.result = new RENode(REOP_NONALNUM); state.progLength++; break; /* IdentityEscape */ default: state.result = new RENode(REOP_FLAT); state.result.chr = c; state.result.length = 1; state.result.flatIndex = state.cp - 1; state.progLength += 3; break; } break; } else { /* a trailing '\' is an error */ reportError("msg.trail.backslash", ""); return false; } case '(': { RENode result = null; termStart = state.cp; if (state.cp + 1 < state.cpend && src[state.cp] == '?' && ((c = src[state.cp + 1]) == '=' || c == '!' || c == ':')) { state.cp += 2; if (c == '=') { result = new RENode(REOP_ASSERT); /* ASSERT, <next>, ... ASSERTTEST */ state.progLength += 4; } else if (c == '!') { result = new RENode(REOP_ASSERT_NOT); /* ASSERTNOT, <next>, ... ASSERTNOTTEST */ state.progLength += 4; } } else { result = new RENode(REOP_LPAREN); /* LPAREN, <index>, ... RPAREN, <index> */ state.progLength += 6; result.parenIndex = state.parenCount++; } ++state.parenNesting; if (!parseDisjunction(state)) return false; if (state.cp == state.cpend || src[state.cp] != ')') { reportError("msg.unterm.paren", ""); return false; } ++state.cp; --state.parenNesting; if (result != null) { result.kid = state.result; state.result = result; } break; } case ')': reportError("msg.re.unmatched.right.paren", ""); return false; case '[': state.result = new RENode(REOP_CLASS); termStart = state.cp; state.result.startIndex = termStart; while (true) { if (state.cp == state.cpend) { reportError("msg.unterm.class", ""); return false; } if (src[state.cp] == '\\') state.cp++; else { if (src[state.cp] == ']') { state.result.kidlen = state.cp - termStart; break; } } state.cp++; } state.result.index = state.classCount++; /* * Call calculateBitmapSize now as we want any errors it finds * to be reported during the parse phase, not at execution. */ if (!calculateBitmapSize(state, state.result, src, termStart, state.cp++)) return false; state.progLength += 3; /* CLASS, <index> */ break; case '.': state.result = new RENode(REOP_DOT); state.progLength++; break; case '*': case '+': case '?': reportError("msg.bad.quant", String.valueOf(src[state.cp - 1])); return false; case '{': /* Treat left-curly in a non-quantifier context as an error only * if it's followed immediately by a decimal digit. * This is an Perl extension. */ if ((state.cp != state.cpend) && isDigit(src[state.cp])) { reportError("msg.bad.quant", String.valueOf(src[state.cp - 1])); return false; } // fall thru... default: state.result = new RENode(REOP_FLAT); state.result.chr = c; state.result.length = 1; state.result.flatIndex = state.cp - 1; state.progLength += 3; break; } term = state.result; boolean hasQ = false; if (state.cp < state.cpend) { switch (src[state.cp]) { case '+': state.result = new RENode(REOP_QUANT); state.result.min = 1; state.result.max = -1; /* <PLUS>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 8; hasQ = true; break; case '*': state.result = new RENode(REOP_QUANT); state.result.min = 0; state.result.max = -1; /* <STAR>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 8; hasQ = true; break; case '?': state.result = new RENode(REOP_QUANT); state.result.min = 0; state.result.max = 1; /* <OPT>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 8; hasQ = true; break; case '{': { int min = 0; int max = -1; int errIndex = state.cp++; c = src[state.cp]; if (isDigit(c)) { ++state.cp; min = getDecimalValue(c, state); c = src[state.cp]; } else { /* For Perl etc. compatibility, if a curly is not * followed by a proper digit, back off from it * being a quantifier, and chew it up as a literal * atom next time instead. */ --state.cp; return true; } state.result = new RENode(REOP_QUANT); if ((min >> 16) != 0) { reportError("msg.overlarge.max", String.valueOf(src[state.cp])); return false; } if (c == ',') { c = src[++state.cp]; if (isDigit(c)) { ++state.cp; max = getDecimalValue(c, state); c = src[state.cp]; if ((max >> 16) != 0) { reportError("msg.overlarge.max", String.valueOf(src[state.cp])); return false; } if (min > max) { reportError("msg.max.lt.min", String.valueOf(src[state.cp])); return false; } } if (max == 0) { reportError("msg.zero.quant", String.valueOf(src[state.cp])); return false; } } else { max = min; } state.result.min = min; state.result.max = max; /* QUANT, <min>, <max>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 12; if (c == '}') { hasQ = true; break; } else { reportError("msg.unterm.quant", String.valueOf(src[state.cp])); return false; } } } } if (!hasQ) return true; ++state.cp; state.result.kid = term; state.result.parenIndex = parenBaseCount; state.result.parenCount = state.parenCount - parenBaseCount; if ((state.cp < state.cpend) && (src[state.cp] == '?')) { ++state.cp; state.result.greedy = false; } else state.result.greedy = true; return true; } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/497a0f766cc99c8e45495dadad51256e065545d1/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1109,
4065,
12,
9213,
1119,
919,
13,
565,
288,
3639,
1149,
8526,
1705,
273,
919,
18,
4057,
10086,
31,
3639,
1149,
276,
273,
1705,
63,
2019,
18,
4057,
9904,
15533,
3639,
509,
290,
9537,
273,
576,
31,
3639,
509,
22146,
2171,
1380,
273,
919,
18,
13012,
1380,
31,
3639,
509,
818,
16,
1853,
31,
3639,
2438,
907,
2481,
31,
3639,
509,
2481,
1685,
31,
3639,
509,
320,
4057,
273,
919,
18,
4057,
31,
3639,
1620,
261,
71,
13,
288,
3639,
1748,
7820,
471,
9006,
1195,
3639,
648,
10731,
4278,
5411,
919,
18,
2088,
273,
394,
2438,
907,
12,
862,
3665,
67,
38,
1741,
1769,
5411,
919,
18,
14654,
1782,
9904,
31,
5411,
327,
638,
31,
3639,
648,
3365,
4278,
5411,
919,
18,
2088,
273,
394,
2438,
907,
12,
862,
3665,
67,
5842,
1769,
5411,
919,
18,
14654,
1782,
9904,
31,
5411,
327,
638,
31,
3639,
648,
3718,
4278,
5411,
309,
261,
2019,
18,
4057,
411,
919,
18,
71,
1302,
13,
288,
7734,
276,
273,
1705,
63,
2019,
18,
4057,
9904,
15533,
7734,
1620,
261,
71,
13,
288,
7734,
1748,
11240,
23802,
1195,
7734,
648,
296,
70,
11,
294,
10792,
919,
18,
2088,
273,
394,
2438,
907,
12,
862,
3665,
67,
59,
38,
6331,
61,
1769,
10792,
919,
18,
14654,
1782,
9904,
31,
10792,
327,
638,
31,
7734,
648,
296,
38,
4278,
10792,
919,
18,
2088,
273,
394,
2438,
907,
12,
862,
3665,
67,
59,
3993,
38,
6331,
61,
1769,
10792,
919,
18,
14654,
1782,
9904,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1109,
4065,
12,
9213,
1119,
919,
13,
565,
288,
3639,
1149,
8526,
1705,
273,
919,
18,
4057,
10086,
31,
3639,
1149,
276,
273,
1705,
63,
2019,
18,
4057,
9904,
15533,
3639,
509,
290,
9537,
273,
576,
31,
3639,
509,
22146,
2171,
1380,
273,
919,
18,
13012,
1380,
31,
3639,
509,
818,
16,
1853,
31,
3639,
2438,
907,
2481,
31,
3639,
509,
2481,
1685,
31,
3639,
509,
320,
4057,
273,
919,
18,
4057,
31,
3639,
1620,
261,
71,
13,
288,
3639,
1748,
7820,
471,
9006,
1195,
3639,
648,
10731,
4278,
5411,
919,
18,
2088,
273,
394,
2438,
907,
12,
862,
3665,
67,
38,
1741,
1769,
5411,
919,
18,
14654,
1782,
9904,
31,
5411,
327,
638,
31,
3639,
648,
3365,
2
] |
else if ( !Artifact.SCOPE_TEST.equals( artifact.getScope() ) && !Artifact.SCOPE_PROVIDED.equals( artifact.getScope() ) ) | else if ( !Artifact.SCOPE_PROVIDED.equals( artifact.getScope() ) ) | public void buildWebapp( MavenProject project ) throws IOException { getLog().info( "Assembling webapp " + project.getArtifactId() + " in " + webappDirectory ); File libDirectory = new File( webappDirectory, WEB_INF + "/lib" ); File tldDirectory = new File( webappDirectory, WEB_INF + "/tld" ); File webappClassesDirectory = new File( webappDirectory, WEB_INF + "/classes" ); File classesDirectory = new File( this.classesDirectory ); if ( classesDirectory.exists() ) { FileUtils.copyDirectoryStructure( classesDirectory, webappClassesDirectory ); } Set artifacts = project.getArtifacts(); for ( Iterator iter = artifacts.iterator(); iter.hasNext(); ) { Artifact artifact = (Artifact) iter.next(); // TODO: scope handler // TODO: use classpath instead // Include runtime and compile time libraries // [jc, 21-June]: handle TLDs as a special-case. if ( "tld".equals( artifact.getType() ) ) { FileUtils.copyFileToDirectory( artifact.getFile(), tldDirectory ); } // [jc, 21-June]: filter POMs out of the /lib copy process. else if ( "pom".equals( artifact.getType() ) ) { // don't mess with these...they'd only be here for inclusion of dependencies. } // [jc, 21-June]: I'm removing ( "jar".equals( artifact.getType() ) ) from consideration here // we'll handle anything that's NOT a POM or a TLD as a binary library to go in /lib else if ( !Artifact.SCOPE_TEST.equals( artifact.getScope() ) && !Artifact.SCOPE_PROVIDED.equals( artifact.getScope() ) ) { FileUtils.copyFileToDirectory( artifact.getFile(), libDirectory ); } } } | 47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/fd3e9fe9e29b5a6d361320f8a629a28803c4436b/WarMojo.java/clean/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1361,
4079,
2910,
12,
17176,
4109,
1984,
262,
3639,
1216,
1860,
565,
288,
3639,
9189,
7675,
1376,
12,
315,
1463,
5747,
2456,
28945,
315,
397,
1984,
18,
588,
7581,
548,
1435,
397,
315,
316,
315,
397,
28945,
2853,
11272,
3639,
1387,
2561,
2853,
273,
394,
1387,
12,
28945,
2853,
16,
19877,
67,
19212,
397,
2206,
2941,
6,
11272,
3639,
1387,
23373,
2853,
273,
394,
1387,
12,
28945,
2853,
16,
19877,
67,
19212,
397,
2206,
88,
1236,
6,
11272,
3639,
1387,
28945,
4818,
2853,
273,
394,
1387,
12,
28945,
2853,
16,
19877,
67,
19212,
397,
2206,
4701,
6,
11272,
3639,
1387,
3318,
2853,
273,
394,
1387,
12,
333,
18,
4701,
2853,
11272,
3639,
309,
261,
3318,
2853,
18,
1808,
1435,
262,
3639,
288,
5411,
13779,
18,
3530,
2853,
6999,
12,
3318,
2853,
16,
28945,
4818,
2853,
11272,
3639,
289,
3639,
1000,
16259,
273,
1984,
18,
588,
16981,
5621,
3639,
364,
261,
4498,
1400,
273,
16259,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
262,
3639,
288,
5411,
14022,
6462,
273,
261,
7581,
13,
1400,
18,
4285,
5621,
5411,
368,
2660,
30,
2146,
1838,
5411,
368,
2660,
30,
999,
10006,
3560,
5411,
368,
12672,
3099,
471,
4074,
813,
14732,
13491,
368,
306,
78,
71,
16,
9035,
17,
46,
7556,
14542,
1640,
399,
12069,
87,
487,
279,
4582,
17,
3593,
18,
5411,
309,
261,
315,
88,
1236,
9654,
14963,
12,
6462,
18,
588,
559,
1435,
262,
262,
5411,
288,
7734,
13779,
18,
3530,
812,
774,
2853,
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,
1361,
4079,
2910,
12,
17176,
4109,
1984,
262,
3639,
1216,
1860,
565,
288,
3639,
9189,
7675,
1376,
12,
315,
1463,
5747,
2456,
28945,
315,
397,
1984,
18,
588,
7581,
548,
1435,
397,
315,
316,
315,
397,
28945,
2853,
11272,
3639,
1387,
2561,
2853,
273,
394,
1387,
12,
28945,
2853,
16,
19877,
67,
19212,
397,
2206,
2941,
6,
11272,
3639,
1387,
23373,
2853,
273,
394,
1387,
12,
28945,
2853,
16,
19877,
67,
19212,
397,
2206,
88,
1236,
6,
11272,
3639,
1387,
28945,
4818,
2853,
273,
394,
1387,
12,
28945,
2853,
16,
19877,
67,
19212,
397,
2206,
4701,
6,
11272,
3639,
1387,
3318,
2853,
273,
394,
1387,
12,
333,
18,
4701,
2853,
11272,
3639,
309,
261,
3318,
2853,
2
] |
}); | temp.doLayout(); temp.repaint(); temp.invalidate(); temp.validate(); } }); } else { remove_button.setEnabled(false); } | private void addEmbeddedElement(Object value, PropertyDefinition prop_def, int row) { // Embedded Element // Adding a List EmbeddedElementPanel editor_list = new EmbeddedElementPanel((ConfigElement)value, mColor); ((TableLayout)this.getLayout()).insertRow(row, TableLayout.PREFERRED); TableLayoutConstraints c = new TableLayoutConstraints(0, row, 1, row, TableLayout.FULL, TableLayout.FULL); this.add(editor_list, c); if(prop_def.isVariable()) { JButton remove_button = new JButton(); remove_button.setIcon(mRemoveIcon); remove_button.setMargin(new Insets(0,0,0,0)); remove_button.setBorderPainted(false); remove_button.setFocusPainted(false); remove_button.setContentAreaFilled(false); final ConfigElement temp_elm = mConfigElement; final Object temp_value = value; final String temp_string = prop_def.getToken(); remove_button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { System.out.println("1"); PropertyComponent temp = (PropertyComponent)((Component)evt.getSource()).getParent(); temp_elm.removeProperty(temp_string, temp_value); if(temp.getLayout() instanceof TableLayout) { System.out.println("2"); TableLayout tl = (TableLayout)temp.getLayout(); // Get the row that this panel is in. TableLayoutConstraints tlc = tl.getConstraints((Component)evt.getSource()); int row = tlc.row1; temp.remove((Component)evt.getSource()); tl.deleteRow(row); } temp.doLayout(); temp.repaint(); temp.invalidate(); temp.validate(); } }); TableLayoutConstraints c4 = new TableLayoutConstraints(2, row, 2, row, TableLayout.LEFT, TableLayout.TOP); add(remove_button, c4); } this.refresh(); editor_list.refresh(); } | 49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/815e5c52b6fdf3a84f4f766ad8a5b269097f084b/PropertySheet.java/clean/modules/jackal/editors/org/vrjuggler/jccl/editors/PropertySheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
527,
14980,
1046,
12,
921,
460,
16,
4276,
1852,
2270,
67,
536,
16,
509,
1027,
13,
282,
288,
1377,
368,
21829,
3010,
1377,
368,
21240,
279,
987,
1377,
21829,
1046,
5537,
4858,
67,
1098,
273,
394,
21829,
1046,
5537,
12443,
809,
1046,
13,
1132,
16,
312,
2957,
1769,
5411,
14015,
1388,
3744,
13,
2211,
18,
588,
3744,
1435,
2934,
6387,
1999,
12,
492,
16,
3555,
3744,
18,
3670,
17356,
1769,
5411,
3555,
3744,
4878,
276,
273,
394,
3555,
3744,
4878,
12,
20,
16,
1027,
16,
404,
16,
1027,
16,
3555,
3744,
18,
18111,
16,
3555,
3744,
18,
18111,
1769,
1377,
333,
18,
1289,
12,
9177,
67,
1098,
16,
276,
1769,
5411,
309,
12,
5986,
67,
536,
18,
291,
3092,
10756,
1377,
288,
540,
28804,
1206,
67,
5391,
273,
394,
28804,
5621,
540,
1206,
67,
5391,
18,
542,
5554,
12,
81,
3288,
5554,
1769,
540,
1206,
67,
5391,
18,
542,
9524,
12,
2704,
22300,
12,
20,
16,
20,
16,
20,
16,
20,
10019,
540,
1206,
67,
5391,
18,
542,
8107,
12699,
329,
12,
5743,
1769,
540,
1206,
67,
5391,
18,
542,
9233,
12699,
329,
12,
5743,
1769,
540,
1206,
67,
5391,
18,
542,
1350,
5484,
29754,
12,
5743,
1769,
5397,
727,
1903,
1046,
1906,
67,
19597,
273,
312,
809,
1046,
31,
5411,
727,
1033,
1906,
67,
1132,
273,
460,
31,
5411,
727,
514,
1906,
67,
1080,
273,
2270,
67,
536,
18,
588,
1345,
5621,
13491,
1206,
67,
5391,
18,
1289,
1803,
2223,
12,
2704,
25962,
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,
3238,
918,
527,
14980,
1046,
12,
921,
460,
16,
4276,
1852,
2270,
67,
536,
16,
509,
1027,
13,
282,
288,
1377,
368,
21829,
3010,
1377,
368,
21240,
279,
987,
1377,
21829,
1046,
5537,
4858,
67,
1098,
273,
394,
21829,
1046,
5537,
12443,
809,
1046,
13,
1132,
16,
312,
2957,
1769,
5411,
14015,
1388,
3744,
13,
2211,
18,
588,
3744,
1435,
2934,
6387,
1999,
12,
492,
16,
3555,
3744,
18,
3670,
17356,
1769,
5411,
3555,
3744,
4878,
276,
273,
394,
3555,
3744,
4878,
12,
20,
16,
1027,
16,
404,
16,
1027,
16,
3555,
3744,
18,
18111,
16,
3555,
3744,
18,
18111,
1769,
1377,
333,
18,
1289,
12,
9177,
67,
1098,
16,
276,
1769,
5411,
309,
12,
5986,
67,
536,
2
] |
boolean newIndexerValue = optionPage.getIndexerValue(); | boolean newIndexerValue = optionPage.getIndexerValue(); boolean newIndexerProblemsValue = optionPage.getIndexerProblemsValue(); | public boolean performOk() { boolean newIndexerValue = optionPage.getIndexerValue(); if (oldIndexerValue != newIndexerValue){ //persist new value IProject tempProject = getProject(); optionPage.persistIndexerValue(tempProject); //if indexer is now on send a index all request if (newIndexerValue) CCorePlugin.getDefault().getCoreModel().getIndexManager().indexAll(tempProject); } return true; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/4b1ecbf65bb678389b4b1c10e9689458753d9194/IndexerOptionPropertyPage.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/IndexerOptionPropertyPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
8809,
1435,
288,
1082,
202,
6494,
394,
20877,
620,
273,
1456,
1964,
18,
588,
20877,
620,
5621,
6862,
202,
430,
261,
1673,
20877,
620,
480,
394,
20877,
620,
15329,
1082,
202,
759,
19251,
394,
460,
1082,
202,
45,
4109,
1906,
4109,
273,
11080,
5621,
1082,
202,
3482,
1964,
18,
19251,
20877,
620,
12,
5814,
4109,
1769,
6862,
202,
759,
430,
12635,
353,
2037,
603,
1366,
279,
770,
777,
590,
1875,
202,
430,
261,
2704,
20877,
620,
13,
9506,
202,
39,
4670,
3773,
18,
588,
1868,
7675,
588,
4670,
1488,
7675,
588,
1016,
1318,
7675,
1615,
1595,
12,
5814,
4109,
1769,
6862,
6862,
202,
97,
9506,
202,
2463,
638,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
8809,
1435,
288,
1082,
202,
6494,
394,
20877,
620,
273,
1456,
1964,
18,
588,
20877,
620,
5621,
6862,
202,
430,
261,
1673,
20877,
620,
480,
394,
20877,
620,
15329,
1082,
202,
759,
19251,
394,
460,
1082,
202,
45,
4109,
1906,
4109,
273,
11080,
5621,
1082,
202,
3482,
1964,
18,
19251,
20877,
620,
12,
5814,
4109,
1769,
6862,
202,
759,
430,
12635,
353,
2037,
603,
1366,
279,
770,
777,
590,
1875,
202,
430,
261,
2704,
20877,
620,
13,
9506,
202,
39,
4670,
3773,
18,
588,
1868,
7675,
588,
4670,
1488,
7675,
588,
1016,
1318,
7675,
1615,
1595,
12,
5814,
4109,
1769,
6862,
6862,
202,
97,
9506,
202,
2463,
638,
31,
202,
97,
2,
-100,
-100,
-100
] |
showPageFlippingAbortDialog(); selectCurrentPageAgain(); | handleError(); | public void run() { Object data = event.item.getData(); if (data instanceof IPreferenceNode) { if (!isCurrentPageValid()) { showPageFlippingAbortDialog(); selectCurrentPageAgain(); } else if (!showPage((IPreferenceNode) data)) { // Page flipping wasn't successful showPageFlippingAbortDialog(); selectCurrentPageAgain(); } else { // Everything went well currentTreeItem = (TreeItem) event.item; } // Keep focus in tree. See bugs 2692, 2621, and 6775. tree.setFocus(); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/15c9e41b785818b84c42cba3259622d8138d9995/PreferenceDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
918,
1086,
1435,
288,
25083,
202,
921,
501,
273,
871,
18,
1726,
18,
588,
751,
5621,
25083,
202,
430,
261,
892,
1276,
467,
9624,
907,
13,
288,
6862,
1082,
202,
430,
16051,
291,
3935,
1964,
1556,
10756,
288,
6862,
9506,
202,
4500,
1964,
28535,
1382,
13572,
6353,
5621,
6862,
9506,
202,
4025,
3935,
1964,
23530,
5621,
6862,
1082,
202,
97,
469,
309,
16051,
4500,
1964,
12443,
45,
9624,
907,
13,
501,
3719,
288,
6862,
9506,
202,
759,
3460,
9668,
1382,
14487,
1404,
6873,
6862,
9506,
202,
4500,
1964,
28535,
1382,
13572,
6353,
5621,
6862,
9506,
202,
4025,
3935,
1964,
23530,
5621,
6862,
1082,
202,
97,
469,
288,
6862,
9506,
202,
759,
26553,
16343,
5492,
6862,
9506,
202,
2972,
2471,
1180,
273,
261,
2471,
1180,
13,
871,
18,
1726,
31,
6862,
1082,
202,
97,
6862,
1082,
202,
759,
10498,
7155,
316,
2151,
18,
225,
2164,
22398,
576,
8148,
22,
16,
10659,
5340,
16,
471,
1666,
27714,
18,
6862,
1082,
202,
3413,
18,
542,
9233,
5621,
25083,
202,
97,
6862,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
918,
1086,
1435,
288,
25083,
202,
921,
501,
273,
871,
18,
1726,
18,
588,
751,
5621,
25083,
202,
430,
261,
892,
1276,
467,
9624,
907,
13,
288,
6862,
1082,
202,
430,
16051,
291,
3935,
1964,
1556,
10756,
288,
6862,
9506,
202,
4500,
1964,
28535,
1382,
13572,
6353,
5621,
6862,
9506,
202,
4025,
3935,
1964,
23530,
5621,
6862,
1082,
202,
97,
469,
309,
16051,
4500,
1964,
12443,
45,
9624,
907,
13,
501,
3719,
288,
6862,
9506,
202,
759,
3460,
9668,
1382,
14487,
1404,
6873,
6862,
9506,
202,
4500,
1964,
28535,
1382,
13572,
6353,
5621,
6862,
9506,
202,
4025,
3935,
1964,
23530,
5621,
6862,
1082,
202,
97,
469,
288,
6862,
9506,
202,
759,
26553,
16343,
5492,
6862,
9506,
2
] |
_t = __t1985; | _t = __t1986; | public final void inputfromstate(AST _t) throws RecognitionException { AST inputfromstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1985 = _t; AST tmp2018_AST_in = (AST)_t; match(_t,INPUT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case STREAM: { stream_name(_t); _t = _retTree; break; } case FROM: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2019_AST_in = (AST)_t; match(_t,FROM); _t = _t.getNextSibling(); io_phrase(_t); _t = _retTree; state_end(_t); _t = _retTree; _t = __t1985; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
810,
2080,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
810,
2080,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3657,
7140,
273,
389,
88,
31,
202,
202,
9053,
1853,
21849,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
15934,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
19917,
30,
202,
202,
95,
1082,
202,
3256,
67,
529,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
4571,
30,
202,
202,
95,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
1886,
30,
202,
202,
95,
1082,
202,
12849,
394,
17114,
24899,
88,
1769,
202,
202,
97,
202,
202,
97,
202,
202,
97,
202,
202,
9053,
1853,
6734,
29,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
11249,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
1594,
67,
9429,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
2019,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
810,
2080,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
810,
2080,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3657,
7140,
273,
389,
88,
31,
202,
202,
9053,
1853,
21849,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
15934,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
2
] |
log.trace("service state was set successfully (" + service_state.size() + " entries"); | log.trace("service state was set successfully (" + service_state.size() + " entries)"); | public void fetchServiceInformation() throws Exception { while(true) { Address coord=getCoordinator(), local_address=channel != null? channel.getLocalAddress() : null; boolean is_coord=coord != null && local_address != null && local_address.equals(coord); if(is_coord) { if(log.isTraceEnabled()) log.trace("I'm coordinator, will not fetch service state information"); break; } ServiceInfo si=new ServiceInfo(ServiceInfo.STATE_REQ, null, null, null); MuxHeader hdr=new MuxHeader(si); Message state_req=new Message(coord, null, null); state_req.putHeader(NAME, hdr); service_state_promise.reset(); channel.send(state_req); try { byte[] state=(byte[])service_state_promise.getResultWithTimeout(2000); if(state != null) { Map new_state=(Map)Util.objectFromByteBuffer(state); synchronized(service_state) { service_state.clear(); service_state.putAll(new_state); } if(log.isTraceEnabled()) log.trace("service state was set successfully (" + service_state.size() + " entries"); } else { if(log.isWarnEnabled()) log.warn("received service state was null"); } break; } catch(TimeoutException e) { if(log.isTraceEnabled()) log.trace("timed out waiting for service state from " + coord + ", retrying"); } } } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/6d35abae263ab7b7f0769fc10c655764ce762d4c/Multiplexer.java/clean/src/org/jgroups/mux/Multiplexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2158,
1179,
5369,
1435,
1216,
1185,
288,
3639,
1323,
12,
3767,
13,
288,
5411,
5267,
2745,
33,
588,
25307,
9334,
1191,
67,
2867,
33,
4327,
480,
446,
35,
1904,
18,
588,
2042,
1887,
1435,
294,
446,
31,
5411,
1250,
353,
67,
5732,
33,
5732,
480,
446,
597,
1191,
67,
2867,
480,
446,
597,
1191,
67,
2867,
18,
14963,
12,
5732,
1769,
5411,
309,
12,
291,
67,
5732,
13,
288,
7734,
309,
12,
1330,
18,
291,
3448,
1526,
10756,
10792,
613,
18,
5129,
2932,
45,
17784,
24794,
16,
903,
486,
2158,
1156,
919,
1779,
8863,
7734,
898,
31,
5411,
289,
5411,
1956,
966,
7533,
33,
2704,
1956,
966,
12,
1179,
966,
18,
7998,
67,
20373,
16,
446,
16,
446,
16,
446,
1769,
5411,
29408,
1864,
7723,
33,
2704,
29408,
1864,
12,
7722,
1769,
5411,
2350,
919,
67,
3658,
33,
2704,
2350,
12,
5732,
16,
446,
16,
446,
1769,
5411,
919,
67,
3658,
18,
458,
1864,
12,
1985,
16,
7723,
1769,
5411,
1156,
67,
2019,
67,
20837,
18,
6208,
5621,
5411,
1904,
18,
4661,
12,
2019,
67,
3658,
1769,
5411,
775,
288,
7734,
1160,
8526,
919,
28657,
7229,
63,
5717,
3278,
67,
2019,
67,
20837,
18,
588,
1253,
1190,
2694,
12,
17172,
1769,
7734,
309,
12,
2019,
480,
446,
13,
288,
10792,
1635,
394,
67,
2019,
28657,
863,
13,
1304,
18,
1612,
1265,
12242,
12,
2019,
1769,
10792,
3852,
12,
3278,
67,
2019,
13,
288,
13491,
1156,
67,
2019,
18,
8507,
5621,
13491,
1156,
67,
2019,
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,
2158,
1179,
5369,
1435,
1216,
1185,
288,
3639,
1323,
12,
3767,
13,
288,
5411,
5267,
2745,
33,
588,
25307,
9334,
1191,
67,
2867,
33,
4327,
480,
446,
35,
1904,
18,
588,
2042,
1887,
1435,
294,
446,
31,
5411,
1250,
353,
67,
5732,
33,
5732,
480,
446,
597,
1191,
67,
2867,
480,
446,
597,
1191,
67,
2867,
18,
14963,
12,
5732,
1769,
5411,
309,
12,
291,
67,
5732,
13,
288,
7734,
309,
12,
1330,
18,
291,
3448,
1526,
10756,
10792,
613,
18,
5129,
2932,
45,
17784,
24794,
16,
903,
486,
2158,
1156,
919,
1779,
8863,
7734,
898,
31,
5411,
289,
5411,
1956,
966,
7533,
33,
2704,
1956,
966,
12,
1179,
966,
18,
7998,
67,
20373,
16,
446,
2
] |
protected CoderResult encodeLoop (CharBuffer in, ByteBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() if (needsByteOrderMark) { if (out.remaining () < 2) return CoderResult.OVERFLOW; put (out, BYTE_ORDER_MARK); needsByteOrderMark = false; } int inPos = in.position (); try { while (in.hasRemaining ()) { char c = in.get (); if (0xD800 <= c && c <= 0xDFFF) { // c is a surrogate // make sure c is a high surrogate if (c > 0xDBFF) return CoderResult.malformedForLength (1); if (in.remaining () < 1) return CoderResult.UNDERFLOW; char d = in.get (); // make sure d is a low surrogate if (d < 0xDC00 || d > 0xDFFF) return CoderResult.malformedForLength (1); put (out, c); put (out, d); inPos += 2; } else { if (out.remaining () < 2) return CoderResult.OVERFLOW; put (out, c); inPos++; } } return CoderResult.UNDERFLOW; } finally { in.position (inPos); } } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/92038d25ca011c85e26640a575247dacb269ccc7/UTF_16Encoder.java/clean/libraries/javalib/gnu/java/nio/charset/UTF_16Encoder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
39,
5350,
1253,
3015,
6452,
12,
2156,
1892,
267,
16,
12242,
659,
15329,
759,
6241,
30,
13930,
452,
546,
291,
267,
451,
557,
448,
267,
18,
5332,
1076,
1435,
19,
659,
18,
5332,
1076,
1435,
430,
12,
20600,
3216,
2448,
3882,
15329,
430,
12,
659,
18,
17956,
1435,
32,
22,
13,
2463,
39,
5350,
1253,
18,
12959,
17430,
31,
458,
12,
659,
16,
15377,
67,
7954,
67,
12693,
1769,
20600,
3216,
2448,
3882,
33,
5743,
31,
97,
474,
267,
1616,
33,
267,
18,
3276,
5621,
698,
95,
17523,
12,
267,
18,
5332,
11429,
10756,
95,
3001,
71,
33,
267,
18,
588,
5621,
430,
12,
20,
17593,
17374,
32,
33,
71,
10,
10,
71,
32,
33,
20,
17593,
2246,
42,
15329,
759,
71,
291,
345,
295,
15283,
759,
81,
3223,
594,
71,
291,
69,
8766,
10050,
15283,
430,
12,
71,
34,
20,
92,
2290,
2246,
13,
2463,
39,
5350,
1253,
18,
81,
8246,
1290,
1782,
12,
21,
1769,
430,
12,
267,
18,
17956,
1435,
32,
21,
13,
2463,
39,
5350,
1253,
18,
31625,
17430,
31,
343,
1060,
33,
267,
18,
588,
5621,
759,
81,
3223,
594,
2251,
287,
543,
10050,
15283,
430,
12,
72,
32,
20,
92,
5528,
713,
20081,
72,
34,
20,
17593,
2246,
42,
13,
2463,
39,
5350,
1253,
18,
81,
8246,
1290,
1782,
12,
21,
1769,
458,
12,
659,
16,
71,
1769,
458,
12,
659,
16,
72,
1769,
267,
1616,
15,
33,
22,
31,
97,
12107,
95,
430,
12,
659,
18,
17956,
1435,
32,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
39,
5350,
1253,
3015,
6452,
12,
2156,
1892,
267,
16,
12242,
659,
15329,
759,
6241,
30,
13930,
452,
546,
291,
267,
451,
557,
448,
267,
18,
5332,
1076,
1435,
19,
659,
18,
5332,
1076,
1435,
430,
12,
20600,
3216,
2448,
3882,
15329,
430,
12,
659,
18,
17956,
1435,
32,
22,
13,
2463,
39,
5350,
1253,
18,
12959,
17430,
31,
458,
12,
659,
16,
15377,
67,
7954,
67,
12693,
1769,
20600,
3216,
2448,
3882,
33,
5743,
31,
97,
474,
267,
1616,
33,
267,
18,
3276,
5621,
698,
95,
17523,
12,
267,
18,
5332,
11429,
10756,
95,
3001,
71,
33,
267,
18,
588,
5621,
430,
12,
20,
17593,
17374,
32,
33,
71,
10,
10,
71,
32,
33,
20,
17593,
2246,
2
] |
||
String path = ""; if (aMozBinDirectory != null) { path = aMozBinDirectory + File.separator; } System.load(path + System.mapLibraryName("javaxpcomglue")); | registerJavaXPCOMMethods(aMozBinDirectory); | public nsIServiceManager initXPCOM(File aMozBinDirectory, IAppFileLocProvider aAppFileLocProvider) { // load JNI library String path = ""; if (aMozBinDirectory != null) { path = aMozBinDirectory + File.separator; } System.load(path + System.mapLibraryName("javaxpcomglue")); return initXPCOMNative(aMozBinDirectory, aAppFileLocProvider); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/18020ea13b14108435c19a95a4429ab48d865ecb/XPCOMImpl.java/clean/extensions/java/xpcom/src/org/mozilla/xpcom/internal/XPCOMImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3153,
45,
1179,
1318,
1208,
60,
3513,
1872,
12,
812,
279,
49,
11142,
9913,
2853,
16,
1850,
467,
3371,
812,
1333,
2249,
279,
3371,
812,
1333,
2249,
13,
288,
565,
368,
1262,
804,
50,
45,
5313,
565,
514,
589,
273,
1408,
31,
565,
309,
261,
69,
49,
11142,
9913,
2853,
480,
446,
13,
288,
1377,
589,
273,
279,
49,
11142,
9913,
2853,
397,
1387,
18,
11287,
31,
565,
289,
565,
2332,
18,
945,
12,
803,
397,
2332,
18,
1458,
9313,
461,
2932,
28384,
84,
832,
7043,
344,
7923,
1769,
565,
327,
1208,
60,
3513,
1872,
9220,
12,
69,
49,
11142,
9913,
2853,
16,
279,
3371,
812,
1333,
2249,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3153,
45,
1179,
1318,
1208,
60,
3513,
1872,
12,
812,
279,
49,
11142,
9913,
2853,
16,
1850,
467,
3371,
812,
1333,
2249,
279,
3371,
812,
1333,
2249,
13,
288,
565,
368,
1262,
804,
50,
45,
5313,
565,
514,
589,
273,
1408,
31,
565,
309,
261,
69,
49,
11142,
9913,
2853,
480,
446,
13,
288,
1377,
589,
273,
279,
49,
11142,
9913,
2853,
397,
1387,
18,
11287,
31,
565,
289,
565,
2332,
18,
945,
12,
803,
397,
2332,
18,
1458,
9313,
461,
2932,
28384,
84,
832,
7043,
344,
7923,
1769,
565,
327,
1208,
60,
3513,
1872,
9220,
12,
69,
49,
11142,
9913,
2853,
16,
279,
3371,
812,
1333,
2249,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void startClient() { System.out.println("Client"); ClientOptions options = new ClientOptions("Client", PORT, "127.0.0.1"); options.show(); options.waitForOptions(); options.dispose(); String name = options.getName(); int port = options.getPort(); String address = options.getAddress(); ClientMessenger messenger = null; try { messenger = new ClientMessenger(address, port, name, new GameObjectStreamFactory(m_data)); } catch(Exception e) { JOptionPane.showMessageDialog(null, e.getMessage()); startClient(); return; } ChatFrame chatFrame = new ChatFrame(messenger); chatFrame.show(); IGameLoader loader = m_data.getGameLoader(); ClientStartup startup = new ClientStartup(loader, m_data, messenger); startup.setVisible(true); startup.waitForPlayers(); startup.dispose(); Map playerMapping = startup.getLocalPlayerMapping(); Set playerSet = loader.createPlayers(playerMapping); ClientGame clientGame = new ClientGame(m_data, playerSet, messenger, messenger.getServerNode()); chatFrame.getChat().showTranscript(clientGame.getTranscript()); m_data.getGameLoader().startGame(clientGame, playerSet); messenger.send(new ClientReady(), messenger.getServerNode()); } | 8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/65dc97c8bd1d73da6a21d79d5ad468e6bb971a9b/GameRunner.java/buggy/src/games/strategy/engine/framework/GameRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
1227,
1435,
202,
95,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1227,
8863,
9506,
202,
1227,
1320,
702,
273,
394,
2445,
1320,
2932,
1227,
3113,
20987,
16,
315,
14260,
18,
20,
18,
20,
18,
21,
8863,
202,
202,
2116,
18,
4500,
5621,
202,
202,
2116,
18,
7048,
1290,
1320,
5621,
202,
202,
2116,
18,
2251,
4150,
5621,
9506,
202,
780,
508,
273,
702,
18,
17994,
5621,
202,
202,
474,
1756,
273,
702,
18,
588,
2617,
5621,
202,
202,
780,
1758,
273,
702,
18,
588,
1887,
5621,
9506,
202,
1227,
29329,
31086,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
81,
18912,
273,
394,
2445,
29329,
12,
2867,
16,
1756,
16,
508,
16,
394,
14121,
921,
1228,
1733,
12,
81,
67,
892,
10019,
202,
202,
97,
1044,
12,
503,
425,
13,
202,
202,
95,
1082,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
12,
2011,
16,
425,
18,
24906,
10663,
1082,
202,
1937,
1227,
5621,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
14163,
3219,
7916,
3219,
273,
394,
16903,
3219,
12,
81,
18912,
1769,
9506,
202,
10880,
3219,
18,
4500,
5621,
9506,
202,
3047,
339,
2886,
4088,
273,
312,
67,
892,
18,
588,
12496,
2886,
5621,
9506,
202,
1227,
22178,
11850,
273,
394,
2445,
22178,
12,
6714,
16,
312,
67,
892,
16,
31086,
1769,
202,
202,
23939,
18,
542,
6207,
12,
3767,
1769,
9506,
202,
23939,
18,
7048,
1290,
1749,
3907,
5621,
202,
202,
23939,
18,
2251,
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,
787,
1227,
1435,
202,
95,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1227,
8863,
9506,
202,
1227,
1320,
702,
273,
394,
2445,
1320,
2932,
1227,
3113,
20987,
16,
315,
14260,
18,
20,
18,
20,
18,
21,
8863,
202,
202,
2116,
18,
4500,
5621,
202,
202,
2116,
18,
7048,
1290,
1320,
5621,
202,
202,
2116,
18,
2251,
4150,
5621,
9506,
202,
780,
508,
273,
702,
18,
17994,
5621,
202,
202,
474,
1756,
273,
702,
18,
588,
2617,
5621,
202,
202,
780,
1758,
273,
702,
18,
588,
1887,
5621,
9506,
202,
1227,
29329,
31086,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
81,
18912,
273,
394,
2445,
29329,
12,
2867,
16,
1756,
16,
2
] |
||
public boolean isFFirstMerged() { return fFirstMerged.isSet(field_1_rgf); } | 509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/79d06dc2b5e839d92f501b1ff8ea15e53d646732/TCAbstractType.java/clean/src/scratchpad/src/org/apache/poi/hdf/model/hdftypes/definitions/TCAbstractType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
2246,
920,
19043,
1435,
565,
288,
3639,
327,
284,
3759,
19043,
18,
291,
694,
12,
1518,
67,
21,
67,
26876,
74,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
2246,
920,
19043,
1435,
565,
288,
3639,
327,
284,
3759,
19043,
18,
291,
694,
12,
1518,
67,
21,
67,
26876,
74,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
return false; | Component parent = getParent(); boolean retVal = false; if (parent instanceof JViewport) { JViewport viewport = (JViewport) parent; Dimension pref = getPreferredSize(); if (viewport.getSize().height > pref.height) retVal = true; if ((getLayoutOrientation() == VERTICAL_WRAP) && (getVisibleRowCount() <= 0)) retVal = true; } return retVal; | public boolean getScrollableTracksViewportHeight() { return false; } | 27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/7878167de36c868f3f4b0f507094bb155efbb199/JList.java/clean/libjava/javax/swing/JList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
11971,
30453,
22138,
22743,
2686,
1435,
225,
288,
565,
5435,
982,
273,
5089,
5621,
1250,
12197,
273,
629,
31,
309,
261,
2938,
1276,
804,
22743,
13,
288,
804,
22743,
10482,
273,
261,
46,
22743,
13,
982,
31,
13037,
11307,
273,
12822,
4193,
1225,
5621,
309,
261,
28852,
18,
588,
1225,
7675,
4210,
405,
11307,
18,
4210,
13,
12197,
273,
638,
31,
309,
14015,
588,
3744,
14097,
1435,
422,
29109,
67,
27664,
13,
597,
261,
588,
6207,
26359,
1435,
1648,
374,
3719,
12197,
273,
638,
31,
289,
327,
12197,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
11971,
30453,
22138,
22743,
2686,
1435,
225,
288,
565,
5435,
982,
273,
5089,
5621,
1250,
12197,
273,
629,
31,
309,
261,
2938,
1276,
804,
22743,
13,
288,
804,
22743,
10482,
273,
261,
46,
22743,
13,
982,
31,
13037,
11307,
273,
12822,
4193,
1225,
5621,
309,
261,
28852,
18,
588,
1225,
7675,
4210,
405,
11307,
18,
4210,
13,
12197,
273,
638,
31,
309,
14015,
588,
3744,
14097,
1435,
422,
29109,
67,
27664,
13,
597,
261,
588,
6207,
26359,
1435,
1648,
374,
3719,
12197,
273,
638,
31,
289,
327,
12197,
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
] |
int firstLine = textArea.getFirstPhysicalLine(); int lastLine = textArea.getLastPhysicalLine(); | int _firstLine = textArea.getFirstPhysicalLine(); int _lastLine = textArea.getLastPhysicalLine(); | public void transactionComplete(Buffer buffer) { if(textArea.getDisplayManager() == DisplayManager.this) { if(delayedUpdate) { if(delayedMultilineUpdate) { textArea.invalidateScreenLineRange( textArea.chunkCache .getScreenLineOfOffset( delayedUpdateStart,0), textArea.getVisibleLines()); delayedMultilineUpdate = false; } else { textArea.invalidateLineRange( delayedUpdateStart, delayedUpdateEnd); } int firstLine = textArea.getFirstPhysicalLine(); int lastLine = textArea.getLastPhysicalLine(); int line = delayedUpdateStart; if(!isLineVisible(line)) line = getNextVisibleLine(line); while(line != -1 && line <= delayedUpdateEnd) { if(line < firstLine || line > lastLine) { getScreenLineCount(line); } line = getNextVisibleLine(line); } _notifyScreenLineChanges(); } textArea._finishCaretUpdate(); } delayedUpdate = false; } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/7d4c1f2074306678cb112e5d3b833070ea55c36b/DisplayManager.java/buggy/org/gjt/sp/jedit/textarea/DisplayManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
2492,
6322,
12,
1892,
1613,
13,
202,
202,
95,
1082,
202,
430,
12,
955,
5484,
18,
588,
4236,
1318,
1435,
422,
9311,
1318,
18,
2211,
13,
1082,
202,
95,
9506,
202,
430,
12,
10790,
329,
1891,
13,
9506,
202,
95,
6862,
202,
430,
12,
10790,
329,
5049,
12554,
1891,
13,
6862,
202,
95,
25083,
202,
955,
5484,
18,
5387,
340,
7956,
1670,
2655,
12,
6862,
1082,
202,
955,
5484,
18,
6551,
1649,
6862,
1082,
202,
18,
588,
7956,
1670,
951,
2335,
12,
6862,
1082,
202,
10790,
329,
1891,
1685,
16,
20,
3631,
6862,
1082,
202,
955,
5484,
18,
588,
6207,
5763,
10663,
25083,
202,
10790,
329,
5049,
12554,
1891,
273,
629,
31,
6862,
202,
97,
6862,
202,
12107,
6862,
202,
95,
25083,
202,
955,
5484,
18,
5387,
340,
1670,
2655,
12,
6862,
1082,
202,
10790,
329,
1891,
1685,
16,
6862,
1082,
202,
10790,
329,
1891,
1638,
1769,
6862,
202,
97,
6862,
202,
474,
24415,
273,
977,
5484,
18,
588,
3759,
18136,
1670,
5621,
6862,
202,
474,
31661,
273,
977,
5484,
18,
588,
3024,
18136,
1670,
5621,
6862,
202,
474,
980,
273,
15278,
1891,
1685,
31,
6862,
202,
430,
12,
5,
291,
1670,
6207,
12,
1369,
3719,
25083,
202,
1369,
273,
6927,
6207,
1670,
12,
1369,
1769,
6862,
202,
17523,
12,
1369,
480,
300,
21,
597,
980,
1648,
15278,
1891,
1638,
13,
6862,
202,
95,
25083,
202,
430,
12,
1369,
411,
24415,
6862,
1082,
202,
20081,
980,
405,
31661,
13,
25083,
202,
95,
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,
3196,
202,
482,
918,
2492,
6322,
12,
1892,
1613,
13,
202,
202,
95,
1082,
202,
430,
12,
955,
5484,
18,
588,
4236,
1318,
1435,
422,
9311,
1318,
18,
2211,
13,
1082,
202,
95,
9506,
202,
430,
12,
10790,
329,
1891,
13,
9506,
202,
95,
6862,
202,
430,
12,
10790,
329,
5049,
12554,
1891,
13,
6862,
202,
95,
25083,
202,
955,
5484,
18,
5387,
340,
7956,
1670,
2655,
12,
6862,
1082,
202,
955,
5484,
18,
6551,
1649,
6862,
1082,
202,
18,
588,
7956,
1670,
951,
2335,
12,
6862,
1082,
202,
10790,
329,
1891,
1685,
16,
20,
3631,
6862,
1082,
202,
955,
5484,
18,
588,
6207,
5763,
10663,
25083,
202,
10790,
329,
5049,
12554,
1891,
273,
629,
31,
6862,
202,
97,
2
] |
public void testBug36769(){ boolean testPassed = false; try{ Writer code = new StringWriter(); code.write("template <class A, B> cls<A, C>::operator op &() const {}\n"); code.write("template <class A, B> cls<A, C>::cls() {}\n"); code.write("template <class A, B> cls<A, C>::~cls() {}\n"); | public void testBug36769() throws Exception { Writer code = new StringWriter(); code.write("template <class A, B> cls<A, C>::operator op &() const {}\n"); code.write("template <class A, B> cls<A, C>::cls() {}\n"); code.write("template <class A, B> cls<A, C>::~cls() {}\n"); | public void testBug36769(){ boolean testPassed = false; try{ Writer code = new StringWriter(); code.write("template <class A, B> cls<A, C>::operator op &() const {}\n"); code.write("template <class A, B> cls<A, C>::cls() {}\n"); code.write("template <class A, B> cls<A, C>::~cls() {}\n"); TranslationUnit tu = parse( code.toString()); testPassed = true; } catch( Throwable e ){ if( ! (e instanceof ParserException)) fail( "Unexpected Error: " + e.getMessage() ); } if( testPassed ) fail( "The expected error did not occur."); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/fcd010f569236801f1aded20abe270579381da56/ACEFailedTest.java/clean/core/org.eclipse.cdt.ui.tests/failures/org/eclipse/cdt/core/parser/failedTests/ACEFailedTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
19865,
5718,
6669,
29,
1435,
95,
202,
202,
6494,
1842,
22530,
273,
629,
31,
202,
202,
698,
95,
1082,
202,
2289,
981,
273,
394,
17436,
5621,
1082,
202,
710,
18,
2626,
2932,
3202,
411,
1106,
432,
16,
605,
34,
2028,
32,
37,
16,
385,
34,
2866,
9497,
1061,
473,
1435,
1866,
21164,
82,
8863,
1082,
202,
710,
18,
2626,
2932,
3202,
411,
1106,
432,
16,
605,
34,
2028,
32,
37,
16,
385,
34,
2866,
6429,
1435,
21164,
82,
8863,
1082,
202,
710,
18,
2626,
2932,
3202,
411,
1106,
432,
16,
605,
34,
2028,
32,
37,
16,
385,
34,
2866,
98,
6429,
1435,
21164,
82,
8863,
25083,
202,
6717,
2802,
28325,
273,
1109,
12,
981,
18,
10492,
10663,
1082,
202,
3813,
22530,
273,
638,
31,
202,
202,
97,
1044,
12,
4206,
425,
262,
95,
1082,
202,
430,
12,
401,
261,
73,
1276,
27990,
3719,
9506,
202,
6870,
12,
315,
7762,
1068,
30,
315,
397,
425,
18,
24906,
1435,
11272,
202,
202,
97,
202,
202,
430,
12,
1842,
22530,
262,
1082,
202,
6870,
12,
315,
1986,
2665,
555,
5061,
486,
3334,
1199,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
19865,
5718,
6669,
29,
1435,
95,
202,
202,
6494,
1842,
22530,
273,
629,
31,
202,
202,
698,
95,
1082,
202,
2289,
981,
273,
394,
17436,
5621,
1082,
202,
710,
18,
2626,
2932,
3202,
411,
1106,
432,
16,
605,
34,
2028,
32,
37,
16,
385,
34,
2866,
9497,
1061,
473,
1435,
1866,
21164,
82,
8863,
1082,
202,
710,
18,
2626,
2932,
3202,
411,
1106,
432,
16,
605,
34,
2028,
32,
37,
16,
385,
34,
2866,
6429,
1435,
21164,
82,
8863,
1082,
202,
710,
18,
2626,
2932,
3202,
411,
1106,
432,
16,
605,
34,
2028,
32,
37,
16,
385,
34,
2866,
98,
6429,
1435,
21164,
82,
8863,
25083,
202,
6717,
2802,
28325,
273,
1109,
12,
981,
2
] |
return (Segment) segment.addNew(new MondrianSegment()); } | return (Segment) segment.addNew(new MondrianSegment()); } | public Segment createSegment() throws OLAPException { return (Segment) segment.addNew(new MondrianSegment()); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/MondrianEdgeView.java/buggy/src/main/mondrian/jolap/MondrianEdgeView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10807,
752,
4131,
1435,
1216,
531,
48,
2203,
503,
288,
202,
202,
2463,
261,
4131,
13,
3267,
18,
1289,
1908,
12,
2704,
490,
1434,
566,
304,
4131,
10663,
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,
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131,
1435,
1216,
531,
48,
2203,
503,
288,
202,
202,
2463,
261,
4131,
13,
3267,
18,
1289,
1908,
12,
2704,
490,
1434,
566,
304,
4131,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ViewSashContainer mainLayout) { | ViewSashContainer mainLayout, Perspective perspective) { | public PerspectiveHelper(WorkbenchPage workbenchPage, ViewSashContainer mainLayout) { this.page = workbenchPage; this.mainLayout = mainLayout; // Determine if reparenting is allowed by checking if some arbitrary // Composite supports reparenting. This is used to determine if // detached views should be enabled. this.detachable = false; Composite client = workbenchPage.getClientComposite(); if (client != null) { Composite testChild = new Composite(client, SWT.NONE); this.detachable = testChild.isReparentable(); testChild.dispose(); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f6ab0d6f9de401e0c1adadb524f47fd9c160d98f/PerspectiveHelper.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
453,
414,
16772,
2276,
12,
2421,
22144,
1964,
1440,
22144,
1964,
16,
5411,
4441,
55,
961,
2170,
2774,
3744,
16,
453,
414,
16772,
26651,
13,
288,
3639,
333,
18,
2433,
273,
1440,
22144,
1964,
31,
3639,
333,
18,
5254,
3744,
273,
2774,
3744,
31,
3639,
368,
10229,
309,
2071,
817,
310,
353,
2935,
635,
6728,
309,
2690,
11078,
3639,
368,
14728,
6146,
2071,
817,
310,
18,
1220,
353,
1399,
358,
4199,
309,
3639,
368,
22037,
7361,
1410,
506,
3696,
18,
3639,
333,
18,
8238,
497,
429,
273,
629,
31,
3639,
14728,
1004,
273,
1440,
22144,
1964,
18,
588,
1227,
9400,
5621,
3639,
309,
261,
2625,
480,
446,
13,
288,
5411,
14728,
1842,
1763,
273,
394,
14728,
12,
2625,
16,
348,
8588,
18,
9826,
1769,
5411,
333,
18,
8238,
497,
429,
273,
1842,
1763,
18,
291,
426,
2938,
429,
5621,
5411,
1842,
1763,
18,
2251,
4150,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
453,
414,
16772,
2276,
12,
2421,
22144,
1964,
1440,
22144,
1964,
16,
5411,
4441,
55,
961,
2170,
2774,
3744,
16,
453,
414,
16772,
26651,
13,
288,
3639,
333,
18,
2433,
273,
1440,
22144,
1964,
31,
3639,
333,
18,
5254,
3744,
273,
2774,
3744,
31,
3639,
368,
10229,
309,
2071,
817,
310,
353,
2935,
635,
6728,
309,
2690,
11078,
3639,
368,
14728,
6146,
2071,
817,
310,
18,
1220,
353,
1399,
358,
4199,
309,
3639,
368,
22037,
7361,
1410,
506,
3696,
18,
3639,
333,
18,
8238,
497,
429,
273,
629,
31,
3639,
14728,
1004,
273,
1440,
22144,
1964,
18,
588,
1227,
9400,
5621,
3639,
309,
261,
2625,
480,
446,
13,
288,
5411,
14728,
1842,
1763,
273,
394,
14728,
12,
2
] |
results.put(nameDeclaration, usages); | results.put(decl, usages); | public void applyTo(Object o) { NameDeclaration nameDeclaration = (NameDeclaration)o; List usages = (List)decls.get(nameDeclaration); if (!usages.isEmpty()) { if (lookingForUsed) { results.put(nameDeclaration, usages); } } else { if (!lookingForUsed) { results.put(nameDeclaration, usages); } } } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/9a940e0cc57577c730a54adf2582612581cb05af/VariableUsageFinderFunction.java/clean/pmd/src/net/sourceforge/pmd/symboltable/VariableUsageFinderFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
28681,
12,
921,
320,
13,
288,
3639,
1770,
6094,
508,
6094,
273,
261,
461,
6094,
13,
83,
31,
3639,
987,
584,
1023,
273,
261,
682,
13,
323,
6429,
18,
588,
12,
529,
6094,
1769,
3639,
309,
16051,
407,
1023,
18,
291,
1921,
10756,
288,
5411,
309,
261,
7330,
310,
1290,
6668,
13,
288,
7734,
1686,
18,
458,
12,
8840,
16,
584,
1023,
1769,
5411,
289,
3639,
289,
469,
288,
5411,
309,
16051,
7330,
310,
1290,
6668,
13,
288,
7734,
1686,
18,
458,
12,
8840,
16,
584,
1023,
1769,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
918,
28681,
12,
921,
320,
13,
288,
3639,
1770,
6094,
508,
6094,
273,
261,
461,
6094,
13,
83,
31,
3639,
987,
584,
1023,
273,
261,
682,
13,
323,
6429,
18,
588,
12,
529,
6094,
1769,
3639,
309,
16051,
407,
1023,
18,
291,
1921,
10756,
288,
5411,
309,
261,
7330,
310,
1290,
6668,
13,
288,
7734,
1686,
18,
458,
12,
8840,
16,
584,
1023,
1769,
5411,
289,
3639,
289,
469,
288,
5411,
309,
16051,
7330,
310,
1290,
6668,
13,
288,
7734,
1686,
18,
458,
12,
8840,
16,
584,
1023,
1769,
5411,
289,
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
] |
private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name); if (constant == null) { if (getRuntime().getLoadService().autoload(name) != null) { continue; } } if (constant != null) { if (exclude && p == objectClass && this != objectClass) { getRuntime().getWarnings().warn("toplevel constant " + name + " referenced by " + getName() + "::" + name); } return constant; } p = p.getSuperClass(); } if (!exclude && !retryForModule && getClass().equals(RubyModule.class)) { retryForModule = true; p = getRuntime().getObject(); continue retry; } break; } return callMethod(getRuntime().getCurrentContext(), "const_missing", RubySymbol.newSymbol(getRuntime(), name)); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/buggy/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15908,
10340,
921,
24337,
2857,
12,
780,
508,
16,
1250,
4433,
13,
288,
3639,
15908,
10340,
921,
23992,
273,
18814,
7675,
588,
921,
5621,
3639,
1250,
3300,
1290,
3120,
273,
629,
31,
3639,
19817,
3120,
293,
273,
333,
31,
3639,
3300,
30,
1323,
261,
3767,
13,
288,
2398,
1323,
261,
84,
480,
446,
13,
288,
7734,
15908,
10340,
921,
5381,
273,
293,
18,
588,
6902,
861,
12,
529,
1769,
18701,
309,
261,
14384,
422,
446,
13,
288,
10792,
309,
261,
588,
5576,
7675,
588,
2563,
1179,
7675,
19832,
12,
529,
13,
480,
446,
13,
288,
13491,
1324,
31,
10792,
289,
7734,
289,
7734,
309,
261,
14384,
480,
446,
13,
288,
10792,
309,
261,
10157,
597,
293,
422,
23992,
597,
333,
480,
23992,
13,
288,
13491,
18814,
7675,
588,
4312,
7675,
8935,
2932,
3669,
2815,
5381,
315,
397,
508,
397,
4766,
315,
8042,
635,
315,
397,
1723,
1435,
397,
31120,
397,
508,
1769,
10792,
289,
27573,
327,
5381,
31,
7734,
289,
7734,
293,
273,
293,
18,
588,
8051,
797,
5621,
5411,
289,
13491,
309,
16051,
10157,
597,
401,
9620,
1290,
3120,
597,
2900,
7675,
14963,
12,
54,
10340,
3120,
18,
1106,
3719,
288,
7734,
3300,
1290,
3120,
273,
638,
31,
7734,
293,
273,
18814,
7675,
588,
921,
5621,
7734,
1324,
3300,
31,
5411,
289,
13491,
898,
31,
3639,
289,
7734,
327,
745,
1305,
12,
588,
5576,
7675,
588,
3935,
1042,
9334,
315,
10248,
67,
7337,
3113,
19817,
5335,
18,
2704,
5335,
12,
588,
5576,
9334,
508,
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,
15908,
10340,
921,
24337,
2857,
12,
780,
508,
16,
1250,
4433,
13,
288,
3639,
15908,
10340,
921,
23992,
273,
18814,
7675,
588,
921,
5621,
3639,
1250,
3300,
1290,
3120,
273,
629,
31,
3639,
19817,
3120,
293,
273,
333,
31,
3639,
3300,
30,
1323,
261,
3767,
13,
288,
2398,
1323,
261,
84,
480,
446,
13,
288,
7734,
15908,
10340,
921,
5381,
273,
293,
18,
588,
6902,
861,
12,
529,
1769,
18701,
309,
261,
14384,
422,
446,
13,
288,
10792,
309,
261,
588,
5576,
7675,
588,
2563,
1179,
7675,
19832,
12,
529,
13,
480,
446,
13,
288,
13491,
1324,
31,
10792,
289,
7734,
289,
7734,
309,
261,
14384,
480,
446,
13,
288,
10792,
309,
261,
10157,
597,
293,
422,
2
] |
||
System.out.close(); System.err.close(); | originalErrStream.close(); shutdownErrLogStream.close(); | public static void main(String[] args) throws Exception { hostName = TestUtil.getHostName(); if (hostName.equals("localhost")) NETWORKSERVER_PORT = 20000; else NETWORKSERVER_PORT = 1527; // Load harness properties. ij.getPropertyArg(args); // "runTest()" is going to try to connect to the database through // the server at port NETWORKSERVER_PORT. Thus, we have to // start the server on that port before calling runTest. // Except when we are using a remote server, then we assume the port is 1527, // and we assume the server has been started already try { TestUtil.loadDriver(); } catch (Exception e) { e.printStackTrace(); } if (hostName.equals("localhost")) { // Start the NetworkServer on another thread networkServer = new NetworkServerControl(InetAddress.getByName("localhost"),NETWORKSERVER_PORT); networkServer.start(null); // Wait for the NetworkServer to start. if (!isServerStarted(networkServer, 60)) System.exit(-1); } // Now, go ahead and run the test. try { dataSourcePermissions_net tester = new dataSourcePermissions_net(); tester.setProperties(); tester.runTest(); if (TestUtil.isDerbyNetClientFramework()) tester.testClientDataSourceProperties(); new dataSourcePermissions_net().cleanUp(); } catch (Exception e) { // if we catch an exception of some sort, we need to make sure to // close our streams before returning; otherwise, we can get // hangs in the harness. SO, catching all exceptions here keeps // us from exiting before closing the necessary streams. System.out.println("FAIL - Exiting due to unexpected error: " + e.getMessage()); e.printStackTrace(); } // Shutdown the server. if (hostName.equals("localhost")) { networkServer.shutdown(); // how do we do this with the new api? //networkServer.join(); Thread.sleep(5000); } System.out.println("Completed dataSourcePermissions_net"); System.out.close(); System.err.close(); } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/c73df2b05a9c69582b2dbe75cddaf479a2b6ecae/dataSourcePermissions_net.java/clean/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/dataSourcePermissions_net.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
202,
202,
2564,
461,
273,
7766,
1304,
18,
588,
20946,
5621,
202,
202,
430,
261,
2564,
461,
18,
14963,
2932,
13014,
6,
3719,
1082,
202,
28047,
4370,
67,
6354,
273,
576,
2787,
31,
202,
202,
12107,
1082,
202,
28047,
4370,
67,
6354,
273,
4711,
5324,
31,
9506,
202,
759,
4444,
366,
1303,
403,
1790,
18,
202,
202,
8302,
18,
588,
1396,
4117,
12,
1968,
1769,
202,
202,
759,
315,
2681,
4709,
10031,
353,
8554,
358,
775,
358,
3077,
358,
326,
2063,
3059,
202,
202,
759,
326,
1438,
622,
1756,
15351,
10566,
4370,
67,
6354,
18,
225,
22073,
16,
732,
1240,
358,
202,
202,
759,
787,
326,
1438,
603,
716,
1756,
1865,
4440,
1086,
4709,
18,
202,
202,
759,
25209,
1347,
732,
854,
1450,
279,
2632,
1438,
16,
1508,
732,
6750,
326,
1756,
353,
4711,
5324,
16,
202,
202,
759,
471,
732,
6750,
326,
1438,
711,
2118,
5746,
1818,
202,
202,
698,
288,
1082,
202,
4709,
1304,
18,
945,
4668,
5621,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
73,
18,
1188,
6332,
5621,
202,
202,
97,
202,
202,
430,
261,
2564,
461,
18,
14963,
2932,
13014,
6,
3719,
202,
202,
95,
1082,
202,
759,
3603,
326,
5128,
2081,
603,
4042,
2650,
1082,
202,
5185,
2081,
273,
394,
5128,
2081,
3367,
12,
382,
278,
1887,
18,
588,
5911,
2932,
13014,
6,
3631,
28047,
4370,
67,
6354,
1769,
1082,
202,
5185,
2081,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
202,
202,
2564,
461,
273,
7766,
1304,
18,
588,
20946,
5621,
202,
202,
430,
261,
2564,
461,
18,
14963,
2932,
13014,
6,
3719,
1082,
202,
28047,
4370,
67,
6354,
273,
576,
2787,
31,
202,
202,
12107,
1082,
202,
28047,
4370,
67,
6354,
273,
4711,
5324,
31,
9506,
202,
759,
4444,
366,
1303,
403,
1790,
18,
202,
202,
8302,
18,
588,
1396,
4117,
12,
1968,
1769,
202,
202,
759,
315,
2681,
4709,
10031,
353,
8554,
358,
775,
358,
3077,
358,
326,
2063,
3059,
202,
202,
759,
326,
1438,
622,
1756,
15351,
10566,
4370,
67,
6354,
18,
225,
22073,
16,
732,
1240,
358,
202,
202,
759,
787,
2
] |
.addClass(lhsType_.getSignature()).describe("CLASS_REFTYPE") .addClass(rhsType_.getSignature()).describe("CLASS_REFTYPE") .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) | .addType(originalLhsType.getSignature()) .addType(originalRhsType.getSignature()) .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) | private void checkEqualsComparison( Location location, JavaClass jclass, MethodGen methodGen, TypeDataflow typeDataflow) throws DataflowAnalysisException { InstructionHandle handle = location.getHandle(); String sourceFile = jclass.getSourceFileName(); TypeFrame frame = typeDataflow.getFactAtLocation(location); if (frame.getStackDepth() < 2) throw new DataflowAnalysisException("Stack underflow", methodGen, handle); int numSlots = frame.getNumSlots(); Type lhsType_ = frame.getValue(numSlots - 2); Type rhsType_ = frame.getValue(numSlots - 1); // Ignore top and bottom values if (lhsType_.getType() == T_TOP || lhsType_.getType() == T_BOTTOM || rhsType_.getType() == T_TOP || rhsType_.getType() == T_BOTTOM) return; if (!(lhsType_ instanceof ReferenceType) || !(rhsType_ instanceof ReferenceType)) { if (rhsType_.getType() == T_NULL) { boolean isTestCase = false; Method method = methodGen.getMethod(); if (method.getName().startsWith("test") && method.isPublic() && method.getSignature().equals("()V") || methodGen.getClassName().endsWith("Test")) isTestCase = true; // A literal null value was passed directly to equals(). if (!isTestCase) bugReporter.reportBug(new BugInstance(this, "EC_NULL_ARG", NORMAL_PRIORITY) .addClassAndMethod(methodGen, sourceFile) .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle())); } else if (lhsType_.getType() == T_NULL) { // Hmm...in this case, equals() is being invoked on // a literal null value. This is really the // purview of FindNullDeref. So, we'll just do nothing. } else { bugReporter.logError("equals() used to compare non-object type(s) " + lhsType_ + " and " + rhsType_ + " in " + SignatureConverter.convertMethodSignature(methodGen) + " at " + location.getHandle()); } return; } if (lhsType_ instanceof ArrayType && rhsType_ instanceof ArrayType) { bugReporter.reportBug(new BugInstance(this, "EC_BAD_ARRAY_COMPARE", NORMAL_PRIORITY) .addClassAndMethod(methodGen, sourceFile) .addClass(lhsType_.getSignature()).describe("CLASS_REFTYPE") .addClass(rhsType_.getSignature()).describe("CLASS_REFTYPE") .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) ); do { lhsType_ = ((ArrayType)lhsType_).getElementType(); rhsType_ = ((ArrayType)rhsType_).getElementType(); } while (lhsType_ instanceof ArrayType && rhsType_ instanceof ArrayType); } if (lhsType_ instanceof ArrayType) { int priority = HIGH_PRIORITY; if (rhsType_.equals(ObjectType.OBJECT)) priority = LOW_PRIORITY; bugReporter.reportBug(new BugInstance(this, "EC_ARRAY_AND_NONARRAY", priority) .addClassAndMethod(methodGen, sourceFile) .addClass(lhsType_.getSignature()).describe("CLASS_REFTYPE") .addClass(rhsType_.getSignature()).describe("CLASS_REFTYPE") .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) ); } if (rhsType_ instanceof ArrayType) { int priority = HIGH_PRIORITY; if (lhsType_.equals(ObjectType.OBJECT)) priority = LOW_PRIORITY; bugReporter.reportBug(new BugInstance(this, "EC_ARRAY_AND_NONARRAY", priority) .addClassAndMethod(methodGen, sourceFile) .addClass(rhsType_.getSignature()).describe("CLASS_REFTYPE") .addClass(lhsType_.getSignature()).describe("CLASS_REFTYPE") .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) ); } if (lhsType_.equals(rhsType_)) return; // For now, ignore the case where either reference is not // of an object type. (It could be either an array or null.) if (!(lhsType_ instanceof ObjectType) || !(rhsType_ instanceof ObjectType)) return; ObjectType lhsType = (ObjectType) lhsType_; ObjectType rhsType = (ObjectType) rhsType_; int priority = LOW_PRIORITY + 1; String bugType = "EC_UNRELATED_TYPES"; // See if the types are related by inheritance. try { if (!Hierarchy.isSubtype(lhsType, rhsType) && !Hierarchy.isSubtype(rhsType, lhsType)) { AnalysisContext analysisContext = AnalysisContext.currentAnalysisContext(); // Look up the classes JavaClass lhsClass = analysisContext.lookupClass(lhsType.getClassName()); JavaClass rhsClass = analysisContext.lookupClass(rhsType.getClassName()); if (!lhsClass.isInterface() && !rhsClass.isInterface()) { // Both are class types, and therefore there is no possible way // the compared objects can have the same runtime type. priority = HIGH_PRIORITY; } else { /* if (DEBUG) { System.out.println("Subtypes of " + lhsClass.getClassName() + " are " + classSetToString(analysisContext.getSubtypes().getTransitiveSubtypes(lhsClass))); System.out.println("Subtypes of " + rhsClass.getClassName() + " are " + classSetToString(analysisContext.getSubtypes().getTransitiveSubtypes(rhsClass))); } */ // Look up the common subtypes of the two types. If the // intersection does not contain at least one instantiable class, // then issue a warning of the appropriate type. Set<JavaClass> commonSubtypes = analysisContext.getSubtypes().getTransitiveCommonSubtypes(lhsClass, rhsClass); if (!containsAtLeastOneInstantiableClass(commonSubtypes)) { priority = HIGH_PRIORITY; bugType = (lhsClass.isInterface() && rhsClass.isInterface()) ? "EC_UNRELATED_INTERFACES" : "EC_UNRELATED_CLASS_AND_INTERFACE"; } } } } catch (ClassNotFoundException e) { bugReporter.reportMissingClass(e); return; } if (methodGen.getName().startsWith("test") && methodGen.getSignature().equals("()V")) { try { if (Hierarchy.isSubtype(methodGen.getClassName(), "junit.framework.TestCase")) priority+=2; } catch (ClassNotFoundException e) { priority+=2; } } if (priority <= LOW_PRIORITY) { bugReporter.reportBug(new BugInstance(this, bugType, priority) .addClassAndMethod(methodGen, sourceFile) .addClass(lhsType.getClassName()).describe("CLASS_REFTYPE") .addClass(rhsType.getClassName()).describe("CLASS_REFTYPE") .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) ); } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/2f8b77f480b729ea472b34ed4fbc483b72cc8b46/FindRefComparison.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindRefComparison.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
866,
8867,
16059,
12,
1082,
202,
2735,
2117,
16,
1082,
202,
5852,
797,
525,
1106,
16,
1082,
202,
1305,
7642,
707,
7642,
16,
1082,
202,
559,
751,
2426,
618,
751,
2426,
13,
1216,
1910,
2426,
9418,
503,
288,
202,
202,
11983,
3259,
1640,
273,
2117,
18,
588,
3259,
5621,
202,
202,
780,
16338,
273,
525,
1106,
18,
588,
1830,
4771,
5621,
202,
202,
559,
3219,
2623,
273,
618,
751,
2426,
18,
588,
9766,
861,
2735,
12,
3562,
1769,
202,
202,
430,
261,
3789,
18,
588,
2624,
6148,
1435,
411,
576,
13,
1082,
202,
12849,
394,
1910,
2426,
9418,
503,
2932,
2624,
3613,
2426,
3113,
707,
7642,
16,
1640,
1769,
202,
202,
474,
818,
16266,
273,
2623,
18,
588,
2578,
16266,
5621,
202,
202,
559,
8499,
559,
67,
273,
2623,
18,
24805,
12,
2107,
16266,
300,
576,
1769,
202,
202,
559,
7711,
559,
67,
273,
2623,
18,
24805,
12,
2107,
16266,
300,
404,
1769,
1082,
202,
759,
8049,
1760,
471,
5469,
924,
202,
202,
430,
261,
80,
4487,
559,
27799,
588,
559,
1435,
422,
399,
67,
10462,
747,
8499,
559,
27799,
588,
559,
1435,
422,
399,
67,
28891,
1082,
3639,
747,
7711,
559,
27799,
588,
559,
1435,
422,
399,
67,
10462,
747,
7711,
559,
27799,
588,
559,
1435,
422,
399,
67,
28891,
13,
1082,
202,
2463,
31,
202,
202,
430,
16051,
12,
80,
4487,
559,
67,
1276,
6268,
559,
13,
747,
401,
12,
86,
4487,
559,
67,
1276,
6268,
559,
3719,
288,
1082,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
866,
8867,
16059,
12,
1082,
202,
2735,
2117,
16,
1082,
202,
5852,
797,
525,
1106,
16,
1082,
202,
1305,
7642,
707,
7642,
16,
1082,
202,
559,
751,
2426,
618,
751,
2426,
13,
1216,
1910,
2426,
9418,
503,
288,
202,
202,
11983,
3259,
1640,
273,
2117,
18,
588,
3259,
5621,
202,
202,
780,
16338,
273,
525,
1106,
18,
588,
1830,
4771,
5621,
202,
202,
559,
3219,
2623,
273,
618,
751,
2426,
18,
588,
9766,
861,
2735,
12,
3562,
1769,
202,
202,
430,
261,
3789,
18,
588,
2624,
6148,
1435,
411,
576,
13,
1082,
202,
12849,
394,
1910,
2426,
9418,
503,
2932,
2624,
3613,
2426,
3113,
707,
7642,
16,
1640,
1769,
202,
202,
474,
818,
16266,
273,
2
] |
RepositoryConfigurationFactory factory = RepositoryConfigurationFactory.getInstance(); | RepositoryConfigurationFactory factory = new RepositoryConfigurationFactory(); | public void testEclipseRDFProductConfig() throws Exception { RepositoryConfigurationFactory factory = RepositoryConfigurationFactory.getInstance(); TaskRepository repository = new TaskRepository(BugzillaPlugin.REPOSITORY_KIND, IBugzillaConstants.ECLIPSE_BUGZILLA_URL); RepositoryConfiguration config = factory.getConfiguration(repository.getUrl(), null, repository.getUserName(), repository.getPassword(), null); assertNotNull(config); assertEquals("2.20.1", config.getInstallVersion()); assertEquals(7, config.getStatusValues().size()); assertEquals(8, config.getResolutions().size()); assertEquals(6, config.getPlatforms().size()); assertEquals(28, config.getOSs().size()); assertEquals(5, config.getPriorities().size()); assertEquals(7, config.getSeverities().size()); assertEquals(53, config.getProducts().size()); assertEquals(4, config.getOpenStatusValues().size()); assertEquals(10, config.getComponents("Mylar").size()); assertEquals(21, config.getKeywords().size()); // assertEquals(10, config.getComponents("Hyades").size()); // assertEquals(1, config.getTargetMilestones("TestProduct").size()); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/24469f8f139dabc60654018ab057291e5f25633b/BugzillaConfigurationTest.java/buggy/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
23057,
10472,
30137,
4133,
809,
1435,
1216,
1185,
288,
202,
202,
3305,
1750,
1733,
3272,
273,
6281,
1750,
1733,
18,
588,
1442,
5621,
202,
202,
2174,
3305,
3352,
273,
394,
3837,
3305,
12,
19865,
15990,
3773,
18,
862,
30986,
67,
47,
2356,
16,
467,
19865,
15990,
2918,
18,
7228,
2053,
52,
1090,
67,
4827,
62,
2627,
2534,
67,
1785,
1769,
202,
202,
3305,
1750,
642,
273,
3272,
18,
588,
1750,
12,
9071,
18,
588,
1489,
9334,
446,
16,
3352,
18,
588,
15296,
9334,
3352,
18,
588,
3913,
9334,
446,
1769,
202,
202,
11231,
5962,
12,
1425,
1769,
202,
202,
11231,
8867,
2932,
22,
18,
3462,
18,
21,
3113,
642,
18,
588,
6410,
1444,
10663,
202,
202,
11231,
8867,
12,
27,
16,
642,
18,
588,
1482,
1972,
7675,
1467,
10663,
202,
202,
11231,
8867,
12,
28,
16,
642,
18,
588,
2903,
6170,
7675,
1467,
10663,
202,
202,
11231,
8867,
12,
26,
16,
642,
18,
588,
8201,
87,
7675,
1467,
10663,
202,
202,
11231,
8867,
12,
6030,
16,
642,
18,
588,
4618,
87,
7675,
1467,
10663,
202,
202,
11231,
8867,
12,
25,
16,
642,
18,
588,
25355,
1961,
7675,
1467,
10663,
202,
202,
11231,
8867,
12,
27,
16,
642,
18,
588,
1761,
502,
1961,
7675,
1467,
10663,
202,
202,
11231,
8867,
12,
8643,
16,
642,
18,
588,
13344,
7675,
1467,
10663,
202,
202,
11231,
8867,
12,
24,
16,
642,
18,
588,
3678,
1482,
1972,
7675,
1467,
10663,
202,
202,
11231,
8867,
12,
2163,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
23057,
10472,
30137,
4133,
809,
1435,
1216,
1185,
288,
202,
202,
3305,
1750,
1733,
3272,
273,
6281,
1750,
1733,
18,
588,
1442,
5621,
202,
202,
2174,
3305,
3352,
273,
394,
3837,
3305,
12,
19865,
15990,
3773,
18,
862,
30986,
67,
47,
2356,
16,
467,
19865,
15990,
2918,
18,
7228,
2053,
52,
1090,
67,
4827,
62,
2627,
2534,
67,
1785,
1769,
202,
202,
3305,
1750,
642,
273,
3272,
18,
588,
1750,
12,
9071,
18,
588,
1489,
9334,
446,
16,
3352,
18,
588,
15296,
9334,
3352,
18,
588,
3913,
9334,
446,
1769,
202,
202,
11231,
5962,
12,
1425,
1769,
202,
202,
11231,
8867,
2932,
22,
18,
3462,
18,
21,
3113,
642,
18,
588,
6410,
1444,
10663,
2
] |
public void configure(Configuration cfg) { | protected void configure(Configuration cfg) { | public void configure(Configuration cfg) { setBaseURL(FopFactory.getBaseURLfromConfig(cfg, "base")); if (cfg.getChild("target-resolution", false) != null) { this.targetResolution = cfg.getChild("target-resolution").getValueAsFloat( DEFAULT_TARGET_RESOLUTION); log.info("Target resolution set to: " + targetResolution + "dpi (px2mm=" + getTargetPixelUnitToMillimeter() + ")"); } } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/fb3a04efdccd87f197d0502a8be1348e06481306/FOUserAgent.java/buggy/src/java/org/apache/fop/apps/FOUserAgent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
5068,
12,
1750,
2776,
13,
288,
3639,
26435,
1785,
12,
42,
556,
1733,
18,
588,
29064,
2080,
809,
12,
7066,
16,
315,
1969,
7923,
1769,
3639,
309,
261,
7066,
18,
588,
1763,
2932,
3299,
17,
19182,
3113,
629,
13,
480,
446,
13,
288,
5411,
333,
18,
3299,
11098,
1171,
273,
2776,
18,
588,
1763,
2932,
3299,
17,
19182,
20387,
24805,
1463,
4723,
12,
13491,
3331,
67,
16374,
67,
17978,
13269,
1769,
5411,
613,
18,
1376,
2932,
2326,
7861,
444,
358,
30,
315,
397,
1018,
11098,
5397,
397,
315,
72,
7259,
261,
4430,
22,
7020,
1546,
397,
8571,
9037,
2802,
774,
49,
737,
28051,
1435,
397,
7310,
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,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0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
5068,
12,
1750,
2776,
13,
288,
3639,
26435,
1785,
12,
42,
556,
1733,
18,
588,
29064,
2080,
809,
12,
7066,
16,
315,
1969,
7923,
1769,
3639,
309,
261,
7066,
18,
588,
1763,
2932,
3299,
17,
19182,
3113,
629,
13,
480,
446,
13,
288,
5411,
333,
18,
3299,
11098,
1171,
273,
2776,
18,
588,
1763,
2932,
3299,
17,
19182,
20387,
24805,
1463,
4723,
12,
13491,
3331,
67,
16374,
67,
17978,
13269,
1769,
5411,
613,
18,
1376,
2932,
2326,
7861,
444,
358,
30,
315,
397,
1018,
11098,
5397,
397,
315,
72,
7259,
261,
4430,
22,
7020,
1546,
397,
8571,
9037,
2802,
774,
49,
737,
28051,
1435,
397,
7310,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits