rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
sequence | attention_mask
sequence | labels
sequence |
---|---|---|---|---|---|---|
pref.putBoolean(SHOWADVANCEDSETTINGS, showAdvancedSettingsBox.isSelected()); | PreferencesEntry.SHOWADVANCEDSETTINGS.setValue(getController(), showAdvancedSettingsBox.isSelected()); | public void save() { Preferences pref = getController().getPreferences(); // Write properties into core writeTrigger.triggerCommit(); // Set locale if (languageChooser.getSelectedItem() instanceof Locale) { Locale locale = (Locale) languageChooser.getSelectedItem(); // Check if we need to restart needsRestart |= !Util.equals(locale.getLanguage(), Translation .getActiveLocale().getLanguage()); // Save settings Translation.saveLocalSetting(locale); } else { // Remove setting Translation.saveLocalSetting(null); } // Set folder base String folderbase = (String) localBaseHolder.getValue(); ConfigurationEntry.FOLDER_BASEDIR.setValue(getController(), folderbase); // Store ui theme if (UIManager.getLookAndFeel() instanceof PlasticXPLookAndFeel) { PlasticTheme theme = PlasticXPLookAndFeel.getPlasticTheme(); pref.put("uitheme", theme.getClass().getName()); if (!Util.equals(theme, oldTheme)) { // FIXME: Themechange does not repaint SimpleInternalFrames. // thus restart required needsRestart = true; } } // Nickname if (!StringUtils.isBlank(nickField.getText())) { getController().changeNick(nickField.getText(), false); } // setAdvanced pref.putBoolean(SHOWADVANCEDSETTINGS, showAdvancedSettingsBox.isSelected()); } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/4990d958eaf34a7653f68f1002faf36b3aaa862b/GeneralSettingsTab.java/clean/src/main/de/dal33t/powerfolder/ui/preferences/GeneralSettingsTab.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1435,
288,
3639,
28310,
11307,
273,
13455,
7675,
588,
12377,
5621,
3639,
368,
2598,
1790,
1368,
2922,
3639,
1045,
6518,
18,
10668,
5580,
5621,
3639,
368,
1000,
2573,
3639,
309,
261,
4923,
17324,
18,
588,
7416,
1180,
1435,
1276,
6458,
13,
288,
5411,
6458,
2573,
273,
261,
3916,
13,
2653,
17324,
18,
588,
7416,
1180,
5621,
5411,
368,
2073,
309,
732,
1608,
358,
7870,
5411,
4260,
15057,
5626,
401,
1304,
18,
14963,
12,
6339,
18,
588,
3779,
9334,
17427,
7734,
263,
588,
3896,
3916,
7675,
588,
3779,
10663,
5411,
368,
7074,
1947,
5411,
17427,
18,
5688,
2042,
5568,
12,
6339,
1769,
3639,
289,
469,
288,
5411,
368,
3581,
3637,
5411,
17427,
18,
5688,
2042,
5568,
12,
2011,
1769,
540,
289,
7734,
368,
1000,
3009,
1026,
3639,
514,
3009,
1969,
273,
261,
780,
13,
1191,
2171,
6064,
18,
24805,
5621,
3639,
4659,
1622,
18,
17357,
67,
8369,
4537,
18,
542,
620,
12,
588,
2933,
9334,
3009,
1969,
1769,
3639,
368,
4994,
5915,
5006,
3639,
309,
261,
5370,
1318,
18,
588,
9794,
1876,
2954,
292,
1435,
1276,
453,
6948,
60,
6253,
1184,
1876,
2954,
292,
13,
288,
5411,
453,
6948,
8335,
5006,
273,
453,
6948,
60,
6253,
1184,
1876,
2954,
292,
18,
588,
1749,
8160,
8335,
5621,
5411,
11307,
18,
458,
2932,
89,
483,
4698,
3113,
5006,
18,
588,
797,
7675,
17994,
10663,
5411,
309,
16051,
1304,
18,
14963,
12,
7997,
16,
1592,
8335,
3719,
288,
7734,
368,
9852,
30,
19745,
3427,
1552,
486,
24962,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1435,
288,
3639,
28310,
11307,
273,
13455,
7675,
588,
12377,
5621,
3639,
368,
2598,
1790,
1368,
2922,
3639,
1045,
6518,
18,
10668,
5580,
5621,
3639,
368,
1000,
2573,
3639,
309,
261,
4923,
17324,
18,
588,
7416,
1180,
1435,
1276,
6458,
13,
288,
5411,
6458,
2573,
273,
261,
3916,
13,
2653,
17324,
18,
588,
7416,
1180,
5621,
5411,
368,
2073,
309,
732,
1608,
358,
7870,
5411,
4260,
15057,
5626,
401,
1304,
18,
14963,
12,
6339,
18,
588,
3779,
9334,
17427,
7734,
263,
588,
3896,
3916,
7675,
588,
3779,
10663,
5411,
368,
7074,
1947,
5411,
17427,
18,
5688,
2042,
5568,
12,
6339,
1769,
3639,
289,
469,
288,
5411,
368,
3581,
3637,
5411,
17427,
18,
5688,
2042,
5568,
2
] |
throw new ParseException( "Content-Type not application/msword: "+contentType); | return new ParseStatus(ParseStatus.FAILED, ParseStatus.FAILED_INVALID_FORMAT, "Content-Type not application/msword: " + contentType).getEmptyParse(); | public Parse getParse(Content content) throws ParseException { // check that contentType is one we can handle String contentType = content.getContentType(); if (contentType != null && !contentType.startsWith("application/msword")) throw new ParseException( "Content-Type not application/msword: "+contentType); String text = null; String title = null; Properties properties = null; try { byte[] raw = content.getContent(); String contentLength = content.get("Content-Length"); if (contentLength != null && raw.length != Integer.parseInt(contentLength)) { throw new ParseException("Content truncated at "+raw.length +" bytes. Parser can't handle incomplete msword file."); } WordExtractor extractor = new WordExtractor(); // collect text text = extractor.extractText(new ByteArrayInputStream(raw)); // collect meta info properties = extractor.extractProperties(new ByteArrayInputStream(raw)); extractor = null; } catch (ParseException e) { throw e; } catch (FastSavedException e) { throw new ParseException(e); } catch (PasswordProtectedException e) { throw new ParseException(e); } catch (Exception e) { // run time exception throw new ParseException("Can't be handled as msword document. "+e); } finally { // nothing so far } // collect meta data Properties metadata = new Properties(); metadata.putAll(content.getMetadata()); // copy through if(properties != null) { title = properties.getProperty("Title"); properties.remove("Title"); metadata.putAll(properties); } if (text == null) text = ""; if (title == null) title = ""; // collect outlink Outlink[] outlinks = new Outlink[0]; ParseData parseData = new ParseData(title, outlinks, metadata); return new ParseImpl(text, parseData); // any filter? //return HtmlParseFilters.filter(content, parse, root); } | 57484 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57484/29bea6a24ea978596c3c1880a520b24bdeb2252d/MSWordParser.java/clean/src/plugin/parse-msword/src/java/org/apache/nutch/parse/msword/MSWordParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2884,
336,
3201,
12,
1350,
913,
13,
1216,
10616,
288,
565,
368,
866,
716,
5064,
353,
1245,
732,
848,
1640,
565,
514,
5064,
273,
913,
18,
588,
8046,
5621,
565,
309,
261,
22194,
480,
446,
597,
401,
22194,
18,
17514,
1190,
2932,
3685,
19,
959,
1095,
6,
3719,
1377,
604,
394,
10616,
12,
3639,
315,
1350,
17,
559,
486,
2521,
19,
959,
1095,
30,
13773,
22194,
1769,
565,
514,
977,
273,
446,
31,
565,
514,
2077,
273,
446,
31,
565,
6183,
1790,
273,
446,
31,
565,
775,
288,
1377,
1160,
8526,
1831,
273,
913,
18,
588,
1350,
5621,
1377,
514,
17117,
273,
913,
18,
588,
2932,
1350,
17,
1782,
8863,
1377,
309,
261,
1745,
1782,
480,
446,
5411,
597,
1831,
18,
2469,
480,
2144,
18,
2670,
1702,
12,
1745,
1782,
3719,
288,
1850,
604,
394,
10616,
2932,
1350,
15282,
622,
13773,
1899,
18,
2469,
5411,
397,
6,
1731,
18,
6783,
848,
1404,
1640,
14715,
4086,
1095,
585,
1199,
1769,
1377,
289,
1377,
9926,
10958,
14031,
273,
394,
9926,
10958,
5621,
1377,
368,
3274,
977,
1377,
977,
273,
14031,
18,
8004,
1528,
12,
2704,
16180,
12,
1899,
10019,
1377,
368,
3274,
2191,
1123,
1377,
1790,
273,
14031,
18,
8004,
2297,
12,
2704,
16180,
12,
1899,
10019,
1377,
14031,
273,
446,
31,
565,
289,
1044,
261,
13047,
425,
13,
288,
1377,
604,
425,
31,
565,
289,
1044,
261,
12305,
16776,
503,
425,
13,
288,
1377,
604,
394,
10616,
12,
73,
1769,
565,
289,
1044,
261,
3913,
15933,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2884,
336,
3201,
12,
1350,
913,
13,
1216,
10616,
288,
565,
368,
866,
716,
5064,
353,
1245,
732,
848,
1640,
565,
514,
5064,
273,
913,
18,
588,
8046,
5621,
565,
309,
261,
22194,
480,
446,
597,
401,
22194,
18,
17514,
1190,
2932,
3685,
19,
959,
1095,
6,
3719,
1377,
604,
394,
10616,
12,
3639,
315,
1350,
17,
559,
486,
2521,
19,
959,
1095,
30,
13773,
22194,
1769,
565,
514,
977,
273,
446,
31,
565,
514,
2077,
273,
446,
31,
565,
6183,
1790,
273,
446,
31,
565,
775,
288,
1377,
1160,
8526,
1831,
273,
913,
18,
588,
1350,
5621,
1377,
514,
17117,
273,
913,
18,
588,
2932,
1350,
17,
1782,
8863,
1377,
309,
261,
1745,
1782,
480,
446,
2
] |
gcpG = new GCPoint(Convert.toDouble(parts[2]), Convert.toDouble(parts[3])); | gcpG = new GCPoint(Convert.toDouble(parts[3]), Convert.toDouble(parts[2])); | public boolean importMap(){ Extractor ext; String rawFileName = new String(); FileChooser fc = new FileChooser(FileChooser.DIRECTORY_SELECT, File.getProgramDirectory()); fc.addMask("*.png"); fc.setTitle((String)lr.get(4100,"Select Directory:")); if(fc.execute() != fc.IDCANCEL){ File inDir = fc.getChosenFile(); File dir = new File(mapsPath); File mapFile; if (!dir.exists()) { dir.createDir(); } try{ //User selected a map, but maybe there are more png(s) //copy all of them! //at the same time try to find associated .map files! //These are georeference files targeted for OziExplorer. //So lets check if we have more than 1 png file: String[] files; String line = new String(); InputStream in; OutputStream out; FileReader inMap; byte[] buf; int len; String[] parts; files = inDir.list("*.png", File.LIST_FILES_ONLY); InfoBox inf = new InfoBox("Info", (String)lr.get(4109,"Loading maps...")); inf.show(); Vm.showWait(true); for(int i = 0; i<files.length;i++){ inf.setInfo((String)lr.get(4110,"Loading:")+ " " + files[i]); //Copy the file //Vm.debug("Copy: " + inDir.getFullPath() + "/" +files[i]); //Vm.debug("to: " + mapsPath + files[i]); in = new FileInputStream(inDir.getFullPath() + "/" +files[i]); out = new FileOutputStream(mapsPath + files[i]); buf = new byte[1024]; while ((len = in.read(buf)) > 0) { out.write(buf, 0, len); } in.close(); out.close(); //Check for a .map file ext = new Extractor(files[i], "", ".", 0, true); rawFileName = ext.findNext(); mapFile = new File(inDir.getFullPath() + "/" + rawFileName + ".map"); if(mapFile.exists()){ GCPoint gcp1 = new GCPoint(); GCPoint gcp2 = new GCPoint(); GCPoint gcp3 = new GCPoint(); GCPoint gcp4 = new GCPoint(); GCPoint gcpG = new GCPoint(); //Vm.debug("Found file: " + inDir.getFullPath() + "/" + rawFileName + ".map"); inMap = new FileReader(inDir.getFullPath() + "/" + rawFileName + ".map"); while((line = inMap.readLine()) != null){ if(line.equals("MMPNUM,4")){ line = inMap.readLine(); parts = mString.split(line, ','); gcp1.bitMapX = Convert.toInt(parts[2]); gcp1.bitMapY = Convert.toInt(parts[3]); line = inMap.readLine(); parts = mString.split(line, ','); gcp2.bitMapX = Convert.toInt(parts[2]); gcp2.bitMapY = Convert.toInt(parts[3]); line = inMap.readLine(); parts = mString.split(line, ','); gcp3.bitMapX = Convert.toInt(parts[2]); gcp3.bitMapY = Convert.toInt(parts[3]); imageWidth = gcp3.bitMapX; imageHeight = gcp3.bitMapY; line = inMap.readLine(); parts = mString.split(line, ','); gcp4.bitMapX = Convert.toInt(parts[2]); gcp4.bitMapY = Convert.toInt(parts[3]); line = inMap.readLine(); parts = mString.split(line, ','); gcpG = new GCPoint(Convert.toDouble(parts[2]), Convert.toDouble(parts[3])); gcpG.bitMapX = gcp1.bitMapX; gcpG.bitMapY = gcp1.bitMapY; addGCP(gcpG); line = inMap.readLine(); parts = mString.split(line, ','); gcpG = new GCPoint(Convert.toDouble(parts[2]), Convert.toDouble(parts[3])); gcpG.bitMapX = gcp2.bitMapX; gcpG.bitMapY = gcp2.bitMapY; addGCP(gcpG); line = inMap.readLine(); parts = mString.split(line, ','); gcpG = new GCPoint(Convert.toDouble(parts[2]), Convert.toDouble(parts[3])); gcpG.bitMapX = gcp3.bitMapX; gcpG.bitMapY = gcp3.bitMapY; addGCP(gcpG); line = inMap.readLine(); parts = mString.split(line, ','); gcpG = new GCPoint(Convert.toDouble(parts[2]), Convert.toDouble(parts[3])); gcpG.bitMapX = gcp4.bitMapX; gcpG.bitMapY = gcp4.bitMapY; addGCP(gcpG); evalGCP(); //Vm.debug("Saving .map file to: " + mapsPath + "/" + rawFileName + ".wfl"); saveWFL(mapsPath + "/" + rawFileName + ".wfl"); } } inMap.close(); } } inf.close(0); Vm.showWait(false); return true; }catch(Exception ex){ Vm.debug("Error:" + ex.toString()); } } return false; } | 51026 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51026/39c46900ebba19c68621cdca63912a2190b0f811/Map.java/buggy/src/CacheWolf/Map.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1930,
863,
1435,
95,
202,
202,
10958,
1110,
31,
202,
202,
780,
1831,
4771,
273,
394,
514,
5621,
202,
202,
812,
17324,
8036,
273,
394,
1387,
17324,
12,
812,
17324,
18,
17229,
67,
4803,
16,
1387,
18,
588,
9459,
2853,
10663,
202,
202,
7142,
18,
1289,
5796,
2932,
11146,
6446,
8863,
202,
202,
7142,
18,
542,
4247,
12443,
780,
13,
10826,
18,
588,
12,
24,
6625,
10837,
3391,
8930,
2773,
10019,
202,
202,
430,
12,
7142,
18,
8837,
1435,
480,
8036,
18,
734,
25268,
15329,
1082,
202,
812,
316,
1621,
273,
8036,
18,
588,
782,
8918,
812,
5621,
1082,
202,
812,
1577,
273,
394,
1387,
12,
10711,
743,
1769,
1082,
202,
812,
852,
812,
31,
1082,
202,
430,
16051,
1214,
18,
1808,
10756,
288,
9506,
202,
1214,
18,
2640,
1621,
5621,
1082,
202,
97,
1082,
202,
698,
95,
9506,
202,
759,
1299,
3170,
279,
852,
16,
1496,
6944,
1915,
854,
1898,
14476,
12,
87,
13,
9506,
202,
759,
3530,
777,
434,
2182,
5,
9506,
202,
759,
270,
326,
1967,
813,
775,
358,
1104,
3627,
263,
1458,
1390,
5,
9506,
202,
759,
29690,
854,
8244,
479,
1134,
1390,
20715,
364,
531,
94,
77,
20938,
18,
9506,
202,
759,
10225,
14557,
866,
309,
732,
1240,
1898,
2353,
404,
14476,
585,
30,
9506,
202,
780,
8526,
1390,
31,
9506,
202,
780,
980,
273,
394,
514,
5621,
9506,
202,
4348,
316,
31,
9506,
202,
4632,
596,
31,
9506,
202,
812,
2514,
316,
863,
31,
9506,
202,
7229,
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,
1930,
863,
1435,
95,
202,
202,
10958,
1110,
31,
202,
202,
780,
1831,
4771,
273,
394,
514,
5621,
202,
202,
812,
17324,
8036,
273,
394,
1387,
17324,
12,
812,
17324,
18,
17229,
67,
4803,
16,
1387,
18,
588,
9459,
2853,
10663,
202,
202,
7142,
18,
1289,
5796,
2932,
11146,
6446,
8863,
202,
202,
7142,
18,
542,
4247,
12443,
780,
13,
10826,
18,
588,
12,
24,
6625,
10837,
3391,
8930,
2773,
10019,
202,
202,
430,
12,
7142,
18,
8837,
1435,
480,
8036,
18,
734,
25268,
15329,
1082,
202,
812,
316,
1621,
273,
8036,
18,
588,
782,
8918,
812,
5621,
1082,
202,
812,
1577,
273,
394,
1387,
12,
10711,
743,
1769,
1082,
202,
812,
852,
812,
31,
2
] |
IMethod primaryCandidate= JavaModelUtil.findMethod(getGetterName(field, EMPTY), new String[0], false, field.getDeclaringType()); | IMethod primaryCandidate= JavaModelUtil.findMethod(getGetterName(field, EMPTY, true), new String[0], false, field.getDeclaringType()); | public static IMethod getGetter(IField field) throws JavaModelException{ IMethod primaryCandidate= JavaModelUtil.findMethod(getGetterName(field, EMPTY), new String[0], false, field.getDeclaringType()); if (! JavaModelUtil.isBoolean(field) || (primaryCandidate != null && primaryCandidate.exists())) return primaryCandidate; //bug 30906 describes why we need to look for other alternatives here String secondCandidateName= getGetterName(field.getJavaProject(), field.getElementName(), field.getFlags(), false, EMPTY); return JavaModelUtil.findMethod(secondCandidateName, new String[0], false, field.getDeclaringType()); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/b4da61a3d57255f6e89b5cd1698b70f088958e3a/GetterSetterUtil.java/buggy/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GetterSetterUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
1305,
336,
8461,
12,
45,
974,
652,
13,
1216,
5110,
1488,
503,
95,
202,
202,
45,
1305,
3354,
11910,
33,
5110,
1488,
1304,
18,
4720,
1305,
12,
588,
8461,
461,
12,
1518,
16,
8984,
3631,
394,
514,
63,
20,
6487,
629,
16,
652,
18,
588,
3456,
5968,
559,
10663,
202,
202,
430,
16051,
5110,
1488,
1304,
18,
291,
5507,
12,
1518,
13,
747,
261,
8258,
11910,
480,
446,
597,
3354,
11910,
18,
1808,
1435,
3719,
1082,
202,
2463,
3354,
11910,
31,
202,
202,
759,
925,
5196,
29,
7677,
19605,
11598,
732,
1608,
358,
2324,
364,
1308,
20699,
2674,
202,
202,
780,
2205,
11910,
461,
33,
336,
8461,
461,
12,
1518,
18,
588,
5852,
4109,
9334,
652,
18,
21336,
461,
9334,
652,
18,
588,
5094,
9334,
629,
16,
8984,
1769,
202,
202,
2463,
5110,
1488,
1304,
18,
4720,
1305,
12,
8538,
11910,
461,
16,
394,
514,
63,
20,
6487,
629,
16,
652,
18,
588,
3456,
5968,
559,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
1305,
336,
8461,
12,
45,
974,
652,
13,
1216,
5110,
1488,
503,
95,
202,
202,
45,
1305,
3354,
11910,
33,
5110,
1488,
1304,
18,
4720,
1305,
12,
588,
8461,
461,
12,
1518,
16,
8984,
3631,
394,
514,
63,
20,
6487,
629,
16,
652,
18,
588,
3456,
5968,
559,
10663,
202,
202,
430,
16051,
5110,
1488,
1304,
18,
291,
5507,
12,
1518,
13,
747,
261,
8258,
11910,
480,
446,
597,
3354,
11910,
18,
1808,
1435,
3719,
1082,
202,
2463,
3354,
11910,
31,
202,
202,
759,
925,
5196,
29,
7677,
19605,
11598,
732,
1608,
358,
2324,
364,
1308,
20699,
2674,
202,
202,
780,
2205,
11910,
461,
33,
336,
8461,
461,
12,
1518,
18,
588,
5852,
4109,
2
] |
MylarTaskListPlugin.setCurrentPriorityLevel(Task.PriorityLevel.P4); PRIORITY_FILTER.displayPrioritiesAbove(PRIORITY_LEVELS[3]); | MylarTaskListPlugin.setCurrentPriorityLevel(Task.PriorityLevel.P2); PRIORITY_FILTER.displayPrioritiesAbove(PRIORITY_LEVELS[1]); | public void run() { MylarTaskListPlugin.setCurrentPriorityLevel(Task.PriorityLevel.P4); PRIORITY_FILTER.displayPrioritiesAbove(PRIORITY_LEVELS[3]); getViewer().refresh(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/6740590a4c4acd414bc94a9174b5cca97c99d56b/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
6862,
202,
12062,
7901,
2174,
682,
3773,
18,
542,
3935,
8183,
2355,
12,
2174,
18,
8183,
2355,
18,
52,
24,
1769,
6862,
202,
19804,
67,
11126,
18,
5417,
25355,
1961,
25477,
12,
19804,
67,
10398,
55,
63,
23,
19226,
6862,
202,
588,
18415,
7675,
9144,
5621,
9506,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
6862,
202,
12062,
7901,
2174,
682,
3773,
18,
542,
3935,
8183,
2355,
12,
2174,
18,
8183,
2355,
18,
52,
24,
1769,
6862,
202,
19804,
67,
11126,
18,
5417,
25355,
1961,
25477,
12,
19804,
67,
10398,
55,
63,
23,
19226,
6862,
202,
588,
18415,
7675,
9144,
5621,
9506,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (isInitNameChar(content.charAt(0))) { for (int i = 1; i < len; i++) { if (!isNameChar(content.charAt(i))) { seenErr = true; break; } } } else { seenErr = true; } | seenErr = !XMLCharacterProperties.validName(content); | protected static void validateToken(String tokenType, String content) throws InvalidDatatypeValueException { int len; if (content == null || (len = content.length()) == 0) { throw new InvalidDatatypeValueException("The length of the content must be greater than 0"); } boolean seenErr = false; if (tokenType == SPECIAL_TOKEN_NMTOKEN) { // PATTERN "\\c+" for (int i = 0; i < len; i++) { if (!isNameChar(content.charAt(i))) { seenErr = true; break; } } } else if (tokenType == SPECIAL_TOKEN_NAME || tokenType == SPECIAL_TOKEN_IDNAME || tokenType == SPECIAL_TOKEN_IDREFNAME) { // PATTERN "\\i\\c*" if (isInitNameChar(content.charAt(0))) { for (int i = 1; i < len; i++) { if (!isNameChar(content.charAt(i))) { seenErr = true; break; } } } else { seenErr = true; } } else if (tokenType == SPECIAL_TOKEN_NCNAME || tokenType == SPECIAL_TOKEN_IDNCNAME || tokenType == SPECIAL_TOKEN_IDREFNCNAME || tokenType == SPECIAL_TOKEN_ENTITY) { // PATTERN "[\\i-[:]][\\c-[:]]*" if (isNCInitNameChar(content.charAt(0))) { for (int i = 1; i < len; i++) { if (!isNCNameChar(content.charAt(i))) { seenErr = true; break; } } } else { seenErr = true; } } if (seenErr) { throw new InvalidDatatypeValueException("Value '"+content+"' is not a valid " + tokenType); } } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/8426e76c1efaf189a0a808a432c7029bbddbca04/AbstractStringValidator.java/buggy/src/org/apache/xerces/validators/datatype/AbstractStringValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
918,
1954,
1345,
12,
780,
22302,
16,
514,
913,
13,
1216,
1962,
20228,
9738,
288,
3639,
509,
562,
31,
3639,
309,
261,
1745,
422,
446,
747,
261,
1897,
273,
913,
18,
2469,
10756,
422,
374,
13,
288,
5411,
604,
394,
1962,
20228,
9738,
2932,
1986,
769,
434,
326,
913,
1297,
506,
6802,
2353,
374,
8863,
3639,
289,
3639,
1250,
5881,
2524,
273,
629,
31,
3639,
309,
261,
2316,
559,
422,
22872,
6365,
67,
8412,
67,
50,
6152,
6239,
13,
288,
5411,
368,
20146,
8422,
71,
9078,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
7734,
309,
16051,
291,
461,
2156,
12,
1745,
18,
3001,
861,
12,
77,
20349,
288,
10792,
5881,
2524,
273,
638,
31,
10792,
898,
31,
7734,
289,
5411,
289,
3639,
289,
469,
309,
261,
2316,
559,
422,
22872,
6365,
67,
8412,
67,
1985,
747,
10402,
22302,
422,
22872,
6365,
67,
8412,
67,
734,
1985,
747,
10402,
22302,
422,
22872,
6365,
67,
8412,
67,
734,
10771,
1985,
13,
288,
5411,
368,
20146,
8422,
77,
1695,
71,
7388,
5411,
309,
261,
291,
2570,
461,
2156,
12,
1745,
18,
3001,
861,
12,
20,
20349,
288,
7734,
364,
261,
474,
277,
273,
404,
31,
277,
411,
562,
31,
277,
27245,
288,
10792,
309,
16051,
291,
461,
2156,
12,
1745,
18,
3001,
861,
12,
77,
20349,
288,
13491,
5881,
2524,
273,
638,
31,
13491,
898,
31,
10792,
289,
7734,
289,
5411,
289,
469,
288,
7734,
5881,
2524,
273,
638,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
918,
1954,
1345,
12,
780,
22302,
16,
514,
913,
13,
1216,
1962,
20228,
9738,
288,
3639,
509,
562,
31,
3639,
309,
261,
1745,
422,
446,
747,
261,
1897,
273,
913,
18,
2469,
10756,
422,
374,
13,
288,
5411,
604,
394,
1962,
20228,
9738,
2932,
1986,
769,
434,
326,
913,
1297,
506,
6802,
2353,
374,
8863,
3639,
289,
3639,
1250,
5881,
2524,
273,
629,
31,
3639,
309,
261,
2316,
559,
422,
22872,
6365,
67,
8412,
67,
50,
6152,
6239,
13,
288,
5411,
368,
20146,
8422,
71,
9078,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
7734,
309,
16051,
291,
461,
2156,
12,
1745,
18,
3001,
861,
12,
77,
20349,
288,
2
] |
if ( ( factory == null && cssRule.getType() == CSSRule.STYLE_RULE ) || | if ( /*( factory == null && cssRule.getType() == CSSRule.STYLE_RULE ) ||*/ | public static Iterator fromCSSPropertyDecl( CSSRule cssRule, CSSStyleDeclaration style, String propName, int sequence ) { // HACK: special cases for RuleNormalizer...need to work this out cleanly PropertyFactory factory = (PropertyFactory)PRP_FACTORIES.get( propName ); if ( ( factory == null && cssRule.getType() == CSSRule.STYLE_RULE ) || propName.indexOf( "color" ) >= 0 && !propName.equals( "border" ) ) { RULE_NORMALIZER.normalize( (CSSStyleRule)cssRule ); style = ( (CSSStyleRule)cssRule ).getStyle(); } List list = new ArrayList(); switch ( style.getPropertyCSSValue( propName ).getCssValueType() ) { case CSSValue.CSS_PRIMITIVE_VALUE: if ( factory == null ) { XRProperty prop = new XRPropertyImpl( style, propName, sequence ); list.add( prop ); } else { Iterator iter = factory.explodeProperties( style, propName, sequence ); while ( iter.hasNext() ) { list.add( iter.next() ); } } break; case CSSValue.CSS_VALUE_LIST: if ( factory == null ) { XRProperty prop = new XRPropertyImpl( style, propName, sequence ); list.add( prop ); // HACK--right now, BP is allowed to not have a factory if ( !propName.equals( CSSName.BACKGROUND_POSITION ) && !propName.equals( CSSName.FONT_FAMILY ) ) { System.err.println( "! Property '" + propName + "' was assigned multiple values but no factory is assigned to it." ); } } else { Iterator iter = factory.explodeProperties( style, propName, sequence ); while ( iter.hasNext() ) { list.add( iter.next() ); } } break; default: System.err.println( "Property '" + propName + "' is neither primitive nor value list, can't handle." ); break; } return list.iterator(); } | 8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/303478cb2d50ec8a2e30b215b0e54607a0ae9a68/XRPropertyImpl.java/clean/src/java/org/xhtmlrenderer/css/impl/XRPropertyImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
4498,
628,
10276,
1396,
3456,
12,
6765,
2175,
3747,
2175,
16,
6765,
2885,
6094,
2154,
16,
514,
9994,
16,
509,
3102,
262,
288,
3639,
368,
670,
3649,
30,
4582,
6088,
364,
6781,
16132,
2777,
14891,
358,
1440,
333,
596,
2721,
715,
3639,
4276,
1733,
3272,
273,
261,
1396,
1733,
13,
8025,
52,
67,
26835,
8805,
18,
588,
12,
9994,
11272,
3639,
309,
261,
1748,
12,
3272,
422,
446,
597,
3747,
2175,
18,
588,
559,
1435,
422,
6765,
2175,
18,
15066,
67,
14920,
262,
747,
5549,
7734,
9994,
18,
31806,
12,
315,
3266,
6,
262,
1545,
374,
597,
401,
5986,
461,
18,
14963,
12,
315,
8815,
6,
262,
262,
288,
5411,
12651,
67,
15480,
6867,
654,
18,
12237,
12,
261,
10276,
2885,
2175,
13,
5212,
2175,
11272,
5411,
2154,
273,
261,
261,
10276,
2885,
2175,
13,
5212,
2175,
262,
18,
588,
2885,
5621,
3639,
289,
3639,
987,
666,
273,
394,
2407,
5621,
3639,
1620,
261,
2154,
18,
588,
1396,
10276,
620,
12,
9994,
262,
18,
588,
7359,
17930,
1435,
262,
288,
5411,
648,
6765,
620,
18,
10276,
67,
7698,
6068,
5354,
67,
4051,
30,
7734,
309,
261,
3272,
422,
446,
262,
288,
10792,
1139,
54,
1396,
2270,
273,
394,
1139,
54,
1396,
2828,
12,
2154,
16,
9994,
16,
3102,
11272,
10792,
666,
18,
1289,
12,
2270,
11272,
7734,
289,
469,
288,
10792,
4498,
1400,
273,
3272,
18,
2749,
2034,
2297,
12,
2154,
16,
9994,
16,
3102,
11272,
10792,
1323,
261,
1400,
18,
5332,
2134,
1435,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
4498,
628,
10276,
1396,
3456,
12,
6765,
2175,
3747,
2175,
16,
6765,
2885,
6094,
2154,
16,
514,
9994,
16,
509,
3102,
262,
288,
3639,
368,
670,
3649,
30,
4582,
6088,
364,
6781,
16132,
2777,
14891,
358,
1440,
333,
596,
2721,
715,
3639,
4276,
1733,
3272,
273,
261,
1396,
1733,
13,
8025,
52,
67,
26835,
8805,
18,
588,
12,
9994,
11272,
3639,
309,
261,
1748,
12,
3272,
422,
446,
597,
3747,
2175,
18,
588,
559,
1435,
422,
6765,
2175,
18,
15066,
67,
14920,
262,
747,
5549,
7734,
9994,
18,
31806,
12,
315,
3266,
6,
262,
1545,
374,
597,
401,
5986,
461,
18,
14963,
12,
315,
8815,
6,
262,
262,
288,
5411,
12651,
67,
15480,
6867,
654,
18,
2
] |
add(new CharGenerator("Hello World2!")); add(new SplitJoin() | this.add(new CharGenerator("Hello World2!")); this.add(new SplitJoin() | public void init() { add(new CharGenerator("Hello World2!")); add(new SplitJoin() { public void init() { setSplitter(ROUND_ROBIN ()); add(new Identity (Character.TYPE)); add(new Identity (Character.TYPE)); setJoiner (ROUND_ROBIN ()); } }); add (new Pipeline () { public void init () { add (new Pipeline () { public void init () { add (new SplitJoin () { public void init () { setSplitter (WEIGHTED_ROUND_ROBIN (2, 1, 4, 2)); add (new Filter () { Channel input = new Channel(Character.TYPE, 1); Channel output = new Channel (Character.TYPE, 2); public void initIO () { streamInput = input; streamOutput = output; } public void work() { input.popChar (); output.pushChar (input.popChar ()); } }); add (new Filter () { Channel input = new Channel(Character.TYPE, 1); Channel output = new Channel (Character.TYPE, 8); public void initIO () { streamInput = input; streamOutput = output; } public void work() { char c = input.popChar (); output.pushChar (c); output.pushChar (c); output.pushChar (c); output.pushChar (c); output.pushChar (c); output.pushChar (c); output.pushChar (c); output.pushChar (c); } }); add (new Identity (Character.TYPE)); add(new CharPrinter()); setJoiner (WEIGHTED_ROUND_ROBIN (1, 2, 1, 0)); } }); } }); } }); add (new CharPrinter ()); } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/1537aac832f399becfeb312d0251fb8431191491/HelloWorld2.java/clean/streams/apps/tests/hello-splits/HelloWorld2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
1435,
565,
288,
3639,
527,
12,
2704,
3703,
3908,
2932,
18601,
21820,
22,
4442,
10019,
3639,
527,
12,
2704,
5385,
4572,
1435,
3639,
288,
5411,
1071,
918,
1208,
1435,
5411,
288,
7734,
444,
26738,
12,
15092,
67,
1457,
12615,
1832,
1769,
7734,
527,
12,
2704,
7808,
261,
7069,
18,
2399,
10019,
7734,
527,
12,
2704,
7808,
261,
7069,
18,
2399,
10019,
7734,
444,
4572,
264,
261,
15092,
67,
1457,
12615,
1832,
1769,
5411,
289,
3639,
15549,
3639,
527,
261,
2704,
13671,
1832,
3639,
288,
5411,
1071,
918,
1208,
1832,
5411,
288,
7734,
527,
261,
2704,
13671,
1832,
7734,
288,
10792,
1071,
918,
1208,
1832,
10792,
288,
13491,
527,
261,
2704,
5385,
4572,
1832,
13491,
288,
18701,
1071,
918,
1208,
1832,
18701,
288,
27573,
444,
26738,
261,
6950,
16055,
6404,
67,
15092,
67,
1457,
12615,
261,
22,
16,
404,
16,
1059,
16,
576,
10019,
27573,
527,
261,
2704,
4008,
1832,
27573,
288,
4766,
565,
5307,
810,
273,
394,
5307,
12,
7069,
18,
2399,
16,
404,
1769,
4766,
565,
5307,
876,
273,
394,
5307,
261,
7069,
18,
2399,
16,
576,
1769,
4766,
565,
1071,
918,
1208,
4294,
1832,
4766,
565,
288,
4766,
3639,
1407,
1210,
273,
810,
31,
4766,
3639,
1407,
1447,
273,
876,
31,
4766,
565,
289,
4766,
565,
1071,
918,
1440,
1435,
4766,
565,
288,
4766,
4202,
810,
18,
5120,
2156,
261,
1769,
4766,
4202,
876,
18,
6206,
2156,
261,
2630,
18,
5120,
2156,
1832,
1769,
4766,
565,
289,
27573,
15549,
27573,
527,
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,
1208,
1435,
565,
288,
3639,
527,
12,
2704,
3703,
3908,
2932,
18601,
21820,
22,
4442,
10019,
3639,
527,
12,
2704,
5385,
4572,
1435,
3639,
288,
5411,
1071,
918,
1208,
1435,
5411,
288,
7734,
444,
26738,
12,
15092,
67,
1457,
12615,
1832,
1769,
7734,
527,
12,
2704,
7808,
261,
7069,
18,
2399,
10019,
7734,
527,
12,
2704,
7808,
261,
7069,
18,
2399,
10019,
7734,
444,
4572,
264,
261,
15092,
67,
1457,
12615,
1832,
1769,
5411,
289,
3639,
15549,
3639,
527,
261,
2704,
13671,
1832,
3639,
288,
5411,
1071,
918,
1208,
1832,
5411,
288,
7734,
527,
261,
2704,
13671,
1832,
7734,
288,
10792,
1071,
918,
1208,
1832,
10792,
288,
13491,
527,
261,
2704,
5385,
4572,
1832,
13491,
288,
2
] |
Bundle b = m_context.installBundle(tabBundle); b.start(); System.out.println(msg+" Bundle started"); | Bundle b = m_context.installBundle(tabBundle); b.start(); System.out.println(" - Bundle started: \""+name.toString()+"\" - "+tabBundle); | public void propertyChange(PropertyChangeEvent event) { if (event.getPropertyName().equals(Plugin.PLUGIN_ADDED)) { Plugin cp=(Plugin) event.getNewValue(); this.add(cp.getName(), cp.getGUI()); System.out.println("Add gui \""+cp.getName()+"\" into NodePanel"/*+" :: "+cp.getGUI()*/); this.a.addPropertyChangeListener(cp); this.pluginList.put(cp.pluginLocation(), cp); }else if(event.getPropertyName().equals(Plugin.PLUGIN_REMOVED)) { Plugin cp = (Plugin) event.getNewValue(); this.remove(cp.getGUI()); this.a.removePropertyChangeListener(cp); // this.pluginList.remove(cp.pluginLocation()); }else if(event.getPropertyName().equals(Plugin.EMPTY_NODE)) { System.out.println("******* Debug No node selected"); this.clean(); }else if (event.getPropertyName().equals(Plugin.NEW_NODE_SELECTED)) { //System.out.println("Event NEW_NODE_SELECTED"); /* Update the tabs (Plugin) in the JTabbedPane (NodePanel) */ MBeanServerConnection mbsc = (MBeanServerConnection)event.getNewValue(); try { this.clean(); Set ons = mbsc.queryNames( null, null ); String msg=""; for( Iterator i=ons.iterator(); i.hasNext(); ) { ObjectName name = ( ObjectName )i.next(); msg="Queried name: "+name.toString(); if ( "TabUI".equals(name.getDomain()) ) { msg+=" New tab: "+name.toString(); /* Get the plugin implementation via a bundle */ String tabBundle = (String) mbsc.getAttribute(name, "BundleName"); msg+=" Bundle name for current Plugin: "+tabBundle; if (tabBundle!=null){ Plugin p = (Plugin) this.pluginList.get(tabBundle); if (p == null){ Bundle b = m_context.installBundle(tabBundle); b.start(); System.out.println(msg+" Bundle started"); //Thread.sleep(5000); }else{ System.out.println(msg+" Register service plugin: " + p); p.registerServicePlugin(); }// ServiceReference[] sr = b.getRegisteredServices();// System.out.println(sr);// Plugin p;// for (int j=0 ; j < sr.length ; j++) {// p=(Plugin)m_context.getService(sr[j]);// this.add(p.getName(), p.getGUI());// this.a.addPropertyChangeListener(p);// }// System.out.println("Delegation for this");// printcl = this.getClass().getClassLoader();// while (printcl != null) {// System.out.println(printcl);// printcl = printcl.getParent();// }// System.out.println("{bootstrap loader}");// System.out.println(""); /* Get the tab object */// Object tabObj = mbsc.getAttribute(name, "Tab");// // System.out.println("Delegation for tabObj: " + tabObj);// printcl = tabObj.getClass().getClassLoader();// while (printcl != null) {// System.out.println(printcl);// printcl = printcl.getParent();// }// System.out.println("{bootstrap loader}");// System.out.println(""); // System.out.println("tabObj.getName(): " + ((fr.inria.ares.managedelements.testprobe.tab.TestProbeTabUI) tabObj).getName()); /* Cast the tab */ // Plugin tab = (Plugin)tabObj; /* register the tab on the JTabbedPane */// this.add(tab.getName(), tab.getGUI()); }else{ System.out.println(msg+" No "+tabBundle+" property defined. I cannot install "+tabBundle+" tab"); } } } a.firePropertyChangedEvent(Plugin.NEW_NODE_READY, null, mbsc); a.firePropertyChangedEvent(Plugin.PLUGIN_ACTIVATED, null, this.getComponentAt(0).getName()); } catch (MBeanException e) { System.err.println("MBeanException : "+e);// } catch (MalformedObjectNameException e) {// System.err.println(e); } catch (AttributeNotFoundException e) { System.err.println("AttributeNotFoundException : "+e); } catch (InstanceNotFoundException e) { System.err.println("InstanceNotFoundException : "+e); } catch (ReflectionException e) { System.err.println("ReflectionException : "+e); } catch (IOException e) { System.err.println("IOException : "+e); } catch (BundleException e) { System.err.println("BundleException : "+e); } catch (Exception e) { System.err.println("Exception : "+e); }// } catch (java.lang.InterruptedException e) {// System.err.println(e);// } } } | 45948 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45948/ba1be79cba7fef5ae7fca4aac5fd530bdea243f5/NodePanel.java/buggy/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1272,
3043,
12,
1396,
20930,
871,
13,
288,
565,
309,
261,
2575,
18,
588,
13073,
7675,
14963,
12,
3773,
18,
19415,
67,
1880,
7660,
3719,
288,
1377,
6258,
3283,
28657,
3773,
13,
871,
18,
588,
1908,
620,
5621,
1377,
333,
18,
1289,
12,
4057,
18,
17994,
9334,
3283,
18,
588,
43,
5370,
10663,
1377,
2332,
18,
659,
18,
8222,
2932,
986,
13238,
11843,
15,
4057,
18,
17994,
1435,
9078,
2412,
1368,
2029,
5537,
6,
20308,
9078,
493,
13773,
4057,
18,
588,
43,
5370,
1435,
5549,
1769,
5411,
333,
18,
69,
18,
1289,
1396,
15744,
12,
4057,
1769,
1377,
333,
18,
4094,
682,
18,
458,
12,
4057,
18,
4094,
2735,
9334,
3283,
1769,
377,
289,
12107,
309,
12,
2575,
18,
588,
13073,
7675,
14963,
12,
3773,
18,
19415,
67,
11122,
12135,
3719,
288,
1377,
6258,
3283,
273,
261,
3773,
13,
871,
18,
588,
1908,
620,
5621,
1377,
333,
18,
4479,
12,
4057,
18,
588,
43,
5370,
10663,
1377,
333,
18,
69,
18,
4479,
1396,
15744,
12,
4057,
1769,
1377,
368,
202,
2211,
18,
4094,
682,
18,
4479,
12,
4057,
18,
4094,
2735,
10663,
565,
289,
12107,
309,
12,
2575,
18,
588,
13073,
7675,
14963,
12,
3773,
18,
13625,
67,
8744,
3719,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
27243,
4015,
2631,
756,
3170,
8863,
1377,
333,
18,
6200,
5621,
565,
289,
12107,
309,
261,
2575,
18,
588,
13073,
7675,
14963,
12,
3773,
18,
12917,
67,
8744,
67,
4803,
2056,
3719,
288,
1377,
368,
3163,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1272,
3043,
12,
1396,
20930,
871,
13,
288,
565,
309,
261,
2575,
18,
588,
13073,
7675,
14963,
12,
3773,
18,
19415,
67,
1880,
7660,
3719,
288,
1377,
6258,
3283,
28657,
3773,
13,
871,
18,
588,
1908,
620,
5621,
1377,
333,
18,
1289,
12,
4057,
18,
17994,
9334,
3283,
18,
588,
43,
5370,
10663,
1377,
2332,
18,
659,
18,
8222,
2932,
986,
13238,
11843,
15,
4057,
18,
17994,
1435,
9078,
2412,
1368,
2029,
5537,
6,
20308,
9078,
493,
13773,
4057,
18,
588,
43,
5370,
1435,
5549,
1769,
5411,
333,
18,
69,
18,
1289,
1396,
15744,
12,
4057,
1769,
1377,
333,
18,
4094,
682,
18,
458,
12,
4057,
18,
4094,
2735,
9334,
3283,
1769,
377,
289,
12107,
309,
2
] |
String[] files = PluginUtils.findSources( sourceDir, "**/*.mmld" ); | ClassLoader oldCl = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(MarmaladeMojoDescriptorExtractor.class.getClassLoader()); String[] files = PluginUtils.findSources( sourceDir, "**/*.mmld" ); | public Set execute( String sourceDir, MavenProject project ) throws Exception { String[] files = PluginUtils.findSources( sourceDir, "**/*.mmld" ); Set descriptors = new HashSet(); File dir = new File( sourceDir ); for ( int i = 0; i < files.length; i++ ) { String file = files[i]; Map context = new TreeMap(); context.put( MarmaladeMojoExecutionDirectives.SCRIPT_BASEPATH_INVAR, sourceDir ); File scriptFile = new File( dir, file ); context = LazyMansAccess.executeFromFile( scriptFile, context ); MojoDescriptor descriptor = (MojoDescriptor) context.get( MarmaladeMojoExecutionDirectives.METADATA_OUTVAR ); descriptor.setImplementation( file ); descriptors.add( descriptor ); } return descriptors; } | 11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/95d01ff57237629f48cc62e515ebc75aff870cc6/MarmaladeMojoDescriptorExtractor.java/clean/maven-plugin-tools/maven-plugin-tools-marmalade/src/main/java/org/apache/maven/tools/plugin/extractor/marmalade/MarmaladeMojoDescriptorExtractor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1000,
1836,
12,
514,
26844,
16,
17176,
4109,
1984,
262,
1216,
1185,
565,
288,
3639,
9403,
1592,
2009,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
5621,
775,
288,
4884,
18,
2972,
3830,
7675,
542,
1042,
7805,
12,
49,
4610,
287,
2486,
49,
10007,
3187,
10958,
18,
1106,
18,
588,
7805,
10663,
225,
514,
8526,
1390,
273,
6258,
1989,
18,
4720,
8628,
12,
26844,
16,
28078,
30987,
81,
781,
72,
6,
11272,
3639,
1000,
14215,
273,
394,
6847,
5621,
3639,
1387,
1577,
273,
394,
1387,
12,
26844,
11272,
3639,
364,
261,
509,
277,
273,
374,
31,
277,
411,
1390,
18,
2469,
31,
277,
9904,
262,
3639,
288,
5411,
514,
585,
273,
1390,
63,
77,
15533,
5411,
1635,
819,
273,
394,
16381,
5621,
5411,
819,
18,
458,
12,
490,
4610,
287,
2486,
49,
10007,
3210,
25343,
18,
10885,
67,
8369,
4211,
67,
706,
7716,
16,
26844,
11272,
5411,
1387,
2728,
812,
273,
394,
1387,
12,
1577,
16,
585,
11272,
5411,
819,
273,
12805,
49,
634,
1862,
18,
8837,
13087,
12,
2728,
812,
16,
819,
11272,
5411,
15931,
3187,
4950,
273,
261,
49,
10007,
3187,
13,
819,
18,
588,
12,
490,
4610,
287,
2486,
49,
10007,
3210,
25343,
18,
22746,
67,
5069,
7716,
11272,
5411,
4950,
18,
542,
13621,
12,
585,
11272,
5411,
14215,
18,
1289,
12,
4950,
11272,
3639,
289,
3639,
327,
14215,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1000,
1836,
12,
514,
26844,
16,
17176,
4109,
1984,
262,
1216,
1185,
565,
288,
3639,
9403,
1592,
2009,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
5621,
775,
288,
4884,
18,
2972,
3830,
7675,
542,
1042,
7805,
12,
49,
4610,
287,
2486,
49,
10007,
3187,
10958,
18,
1106,
18,
588,
7805,
10663,
225,
514,
8526,
1390,
273,
6258,
1989,
18,
4720,
8628,
12,
26844,
16,
28078,
30987,
81,
781,
72,
6,
11272,
3639,
1000,
14215,
273,
394,
6847,
5621,
3639,
1387,
1577,
273,
394,
1387,
12,
26844,
11272,
3639,
364,
261,
509,
277,
273,
374,
31,
277,
411,
1390,
18,
2469,
31,
277,
9904,
262,
3639,
288,
5411,
514,
585,
273,
1390,
63,
77,
15533,
5411,
1635,
2
] |
public SimpleCycleBasis (UndirectedGraph graph) { this.cycles = new ArrayList(); this.edgeList = new ArrayList(); | public SimpleCycleBasis (List cycles, List edgeList, UndirectedGraph graph) { this.edgeList = edgeList; this.cycles = cycles; | public SimpleCycleBasis (UndirectedGraph graph) { this.cycles = new ArrayList(); this.edgeList = new ArrayList(); this.graph = graph; createMinimalCycleBase(); } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/377171c5907bab11cc813de19845b0f9ae108f55/SimpleCycleBasis.java/buggy/src/org/openscience/cdk/ringsearch/cyclebasis/SimpleCycleBasis.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4477,
13279,
11494,
291,
261,
984,
26830,
4137,
2667,
13,
288,
202,
202,
2211,
18,
23976,
273,
394,
2407,
5621,
202,
202,
2211,
18,
7126,
682,
273,
394,
2407,
5621,
202,
202,
2211,
18,
4660,
273,
2667,
31,
9506,
202,
2640,
2930,
2840,
13279,
2171,
5621,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4477,
13279,
11494,
291,
261,
984,
26830,
4137,
2667,
13,
288,
202,
202,
2211,
18,
23976,
273,
394,
2407,
5621,
202,
202,
2211,
18,
7126,
682,
273,
394,
2407,
5621,
202,
202,
2211,
18,
4660,
273,
2667,
31,
9506,
202,
2640,
2930,
2840,
13279,
2171,
5621,
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
] |
public void cancelTimer(MessageAddress node) { | private void cancelTimer(MessageAddress node) { | public void cancelTimer(MessageAddress node) { Timer theMaskingTimer = (Timer) nodeTimerMap.get(node); theMaskingTimer.cancel(); nodeTimerMap.remove(node); } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/08e9bdbce8d4cae387f03013c4fda7a925fce848/TrafficMaskingGeneratorAspect.java/buggy/core/src/org/cougaar/core/mts/TrafficMaskingGeneratorAspect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3755,
6777,
12,
1079,
1887,
756,
13,
288,
565,
12290,
326,
5796,
310,
6777,
273,
261,
6777,
13,
756,
6777,
863,
18,
588,
12,
2159,
1769,
565,
326,
5796,
310,
6777,
18,
10996,
5621,
565,
756,
6777,
863,
18,
4479,
12,
2159,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
3238,
918,
3755,
6777,
12,
1079,
1887,
756,
13,
288,
565,
12290,
326,
5796,
310,
6777,
273,
261,
6777,
13,
756,
6777,
863,
18,
588,
12,
2159,
1769,
565,
326,
5796,
310,
6777,
18,
10996,
5621,
565,
756,
6777,
863,
18,
4479,
12,
2159,
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
] |
readyToRun = false; blackboard.closeTransaction(); primed = true; | readyToRun = false; } catch (Throwable t) { System.err.println("Error: Uncaught exception in "+this+": "+t); t.printStackTrace(); } finally { blackboard.closeTransaction(); primed = true; } | protected void precycle() { blackboard.openTransaction(); setupSubscriptions(); // run execute here so subscriptions don't miss out on the first // batch in their subscription addedLists execute(); readyToRun = false; // don't need to run execute again blackboard.closeTransaction(); primed = true; } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/baf5f99723f9a67c04d9aceb95c9c025ae9033c8/ComponentPlugin.java/buggy/core/src/org/cougaar/core/plugin/ComponentPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
675,
13946,
1435,
288,
565,
7721,
3752,
18,
3190,
3342,
5621,
565,
3875,
15440,
5621,
3639,
368,
1086,
1836,
2674,
1427,
11912,
2727,
1404,
12543,
596,
603,
326,
1122,
565,
368,
2581,
316,
3675,
4915,
3096,
7432,
565,
1836,
5621,
3639,
5695,
774,
1997,
273,
629,
31,
225,
368,
2727,
1404,
1608,
358,
1086,
1836,
3382,
565,
7721,
3752,
18,
4412,
3342,
5621,
565,
15610,
329,
273,
638,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
675,
13946,
1435,
288,
565,
7721,
3752,
18,
3190,
3342,
5621,
565,
3875,
15440,
5621,
3639,
368,
1086,
1836,
2674,
1427,
11912,
2727,
1404,
12543,
596,
603,
326,
1122,
565,
368,
2581,
316,
3675,
4915,
3096,
7432,
565,
1836,
5621,
3639,
5695,
774,
1997,
273,
629,
31,
225,
368,
2727,
1404,
1608,
358,
1086,
1836,
3382,
565,
7721,
3752,
18,
4412,
3342,
5621,
565,
15610,
329,
273,
638,
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
] |
log.debug(fullName); | getLogger().debug(fullName); | protected final boolean checkTTC(FontFileReader in, String name) throws IOException { String tag = in.readTTFString(4); if ("ttcf".equals(tag)) { // This is a TrueType Collection in.skip(4); // Read directory offsets int numDirectories = (int)in.readTTFULong(); // int numDirectories=in.readTTFUShort(); long[] dirOffsets = new long[numDirectories]; for (int i = 0; i < numDirectories; i++) { dirOffsets[i] = in.readTTFULong(); } log.debug("This is a TrueType collection file with" + numDirectories + " fonts"); log.debug("Containing the following fonts: "); // Read all the directories and name tables to check // If the font exists - this is a bit ugly, but... boolean found = false; // Iterate through all name tables even if font // Is found, just to show all the names long dirTabOffset = 0; for (int i = 0; (i < numDirectories); i++) { in.seek_set(dirOffsets[i]); readDirTabs(in); readName(in); if (fullName.equals(name)) { found = true; dirTabOffset = dirOffsets[i]; log.debug("* " + fullName); } else { log.debug(fullName); } // Reset names notice = ""; fullName = ""; familyName = ""; fontName = ""; subFamilyName = ""; } in.seek_set(dirTabOffset); return found; } else { in.seek_set(0); return true; } } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/2e2226dd0dd6733fdab0c36331723114a46eddd8/TTFFile.java/buggy/src/org/apache/fop/fonts/TTFFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
1250,
866,
1470,
39,
12,
5711,
812,
2514,
316,
16,
514,
508,
13,
1216,
1860,
288,
3639,
514,
1047,
273,
316,
18,
896,
1470,
42,
780,
12,
24,
1769,
3639,
309,
7566,
748,
8522,
9654,
14963,
12,
2692,
3719,
288,
5411,
368,
1220,
353,
279,
1053,
559,
2200,
5411,
316,
18,
7457,
12,
24,
1769,
5411,
368,
2720,
1867,
8738,
5411,
509,
818,
13071,
273,
261,
474,
13,
267,
18,
896,
1470,
42,
1506,
932,
5621,
5411,
368,
509,
818,
13071,
33,
267,
18,
896,
1470,
42,
57,
4897,
5621,
5411,
1525,
8526,
1577,
13830,
273,
394,
1525,
63,
2107,
13071,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
818,
13071,
31,
277,
27245,
288,
7734,
1577,
13830,
63,
77,
65,
273,
316,
18,
896,
1470,
42,
1506,
932,
5621,
5411,
289,
5411,
613,
18,
4148,
2932,
2503,
353,
279,
1053,
559,
1849,
585,
598,
6,
4766,
282,
397,
818,
13071,
397,
315,
16450,
8863,
5411,
613,
18,
4148,
2932,
24344,
326,
3751,
16450,
30,
315,
1769,
5411,
368,
2720,
777,
326,
6402,
471,
508,
4606,
358,
866,
5411,
368,
971,
326,
3512,
1704,
300,
333,
353,
279,
2831,
26920,
16,
1496,
2777,
5411,
1250,
1392,
273,
629,
31,
5411,
368,
11436,
3059,
777,
508,
4606,
5456,
309,
3512,
5411,
368,
2585,
1392,
16,
2537,
358,
2405,
777,
326,
1257,
5411,
1525,
1577,
5661,
2335,
273,
374,
31,
5411,
364,
261,
474,
277,
273,
374,
31,
261,
77,
411,
818,
13071,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
1250,
866,
1470,
39,
12,
5711,
812,
2514,
316,
16,
514,
508,
13,
1216,
1860,
288,
3639,
514,
1047,
273,
316,
18,
896,
1470,
42,
780,
12,
24,
1769,
3639,
309,
7566,
748,
8522,
9654,
14963,
12,
2692,
3719,
288,
5411,
368,
1220,
353,
279,
1053,
559,
2200,
5411,
316,
18,
7457,
12,
24,
1769,
5411,
368,
2720,
1867,
8738,
5411,
509,
818,
13071,
273,
261,
474,
13,
267,
18,
896,
1470,
42,
1506,
932,
5621,
5411,
368,
509,
818,
13071,
33,
267,
18,
896,
1470,
42,
57,
4897,
5621,
5411,
1525,
8526,
1577,
13830,
273,
394,
1525,
63,
2107,
13071,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
818,
13071,
31,
277,
2
] |
return false; | return otherValue.equals(myValue); | public boolean equal(org.omg.CORBA.Any any) { if (any == null) { throw new BAD_PARAM ("Null passed to Any equal operation"); } if (!typeCode.equal (any.type())) { return false; } int kind = originalType().kind().value(); switch (kind) { case TCKind._tk_null: case TCKind._tk_void: return true; case TCKind._tk_short: return extract_short() == any.extract_short(); case TCKind._tk_long: return extract_long() == any.extract_long(); case TCKind._tk_longlong: return extract_longlong() == any.extract_longlong(); case TCKind._tk_ushort: return extract_ushort() == any.extract_ushort(); case TCKind._tk_ulong: return extract_ulong() == any.extract_ulong(); case TCKind._tk_ulonglong: return extract_ulonglong() == any.extract_ulonglong(); case TCKind._tk_float: return extract_float() == any.extract_float(); case TCKind._tk_double: return extract_double() == any.extract_double(); case TCKind._tk_fixed: return extract_fixed().equals( any.extract_fixed() ); case TCKind._tk_boolean: return extract_boolean() == any.extract_boolean(); case TCKind._tk_char: return extract_char() == any.extract_char(); case TCKind._tk_wchar: return extract_wchar() == any.extract_wchar(); case TCKind._tk_octet: return extract_octet() == any.extract_octet(); case TCKind._tk_any: return extract_any().equals( any.extract_any() ); case TCKind._tk_TypeCode: return extract_TypeCode().equal( any.extract_TypeCode() ); case TCKind._tk_Principal: throw new org.omg.CORBA.NO_IMPLEMENT ("Principal deprecated"); case TCKind._tk_objref: return extract_Object().equals( any.extract_Object() ); case TCKind._tk_string: return extract_string().equals( any.extract_string() ); case TCKind._tk_wstring: return extract_wstring().equals( any.extract_wstring() ); case TCKind._tk_array: case TCKind._tk_sequence: case TCKind._tk_struct: case TCKind._tk_except: case TCKind._tk_enum: case TCKind._tk_union: case TCKind._tk_value: case TCKind._tk_value_box: { CDROutputStream out1, out2; if( !( orb instanceof org.jacorb.orb.ORB )) { out1 = new CDROutputStream(); out2 = new CDROutputStream(); } else { out1 = new CDROutputStream(orb); out2 = new CDROutputStream(orb); } write_value( out1 ); any.write_value( out2 ); if( out1.size() != out2.size() ) { return false; } return Arrays.equals( out1.getBufferCopy(), out2.getBufferCopy()); } default: throw new BAD_TYPECODE("Cannot compare anys with TypeCode kind " + kind); } } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/dcd731487996f10323f454bdda69836e266fc67f/Any.java/buggy/src/org/jacorb/orb/Any.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
3959,
12,
3341,
18,
362,
75,
18,
9428,
12536,
18,
2961,
1281,
13,
565,
288,
3639,
309,
261,
2273,
422,
446,
13,
3639,
288,
6647,
604,
394,
16467,
67,
8388,
7566,
2041,
2275,
358,
5502,
3959,
1674,
8863,
3639,
289,
3639,
309,
16051,
723,
1085,
18,
9729,
261,
2273,
18,
723,
1435,
3719,
3639,
288,
7734,
327,
1308,
620,
18,
14963,
12,
4811,
620,
1769,
3639,
289,
3639,
509,
3846,
273,
2282,
559,
7675,
9224,
7675,
1132,
5621,
3639,
1620,
261,
9224,
13,
3639,
288,
5411,
648,
399,
3507,
728,
6315,
16099,
67,
2011,
30,
5411,
648,
399,
3507,
728,
6315,
16099,
67,
6459,
30,
7734,
327,
638,
31,
5411,
648,
399,
3507,
728,
6315,
16099,
67,
6620,
30,
7734,
327,
2608,
67,
6620,
1435,
422,
1281,
18,
8004,
67,
6620,
5621,
5411,
648,
399,
3507,
728,
6315,
16099,
67,
5748,
30,
7734,
327,
2608,
67,
5748,
1435,
422,
1281,
18,
8004,
67,
5748,
5621,
5411,
648,
399,
3507,
728,
6315,
16099,
67,
5748,
5748,
30,
7734,
327,
2608,
67,
5748,
5748,
1435,
422,
1281,
18,
8004,
67,
5748,
5748,
5621,
5411,
648,
399,
3507,
728,
6315,
16099,
67,
1218,
499,
30,
7734,
327,
2608,
67,
1218,
499,
1435,
422,
1281,
18,
8004,
67,
1218,
499,
5621,
5411,
648,
399,
3507,
728,
6315,
16099,
67,
332,
932,
30,
7734,
327,
2608,
67,
332,
932,
1435,
422,
1281,
18,
8004,
67,
332,
932,
5621,
5411,
648,
399,
3507,
728,
6315,
16099,
67,
332,
932,
5748,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
3959,
12,
3341,
18,
362,
75,
18,
9428,
12536,
18,
2961,
1281,
13,
565,
288,
3639,
309,
261,
2273,
422,
446,
13,
3639,
288,
6647,
604,
394,
16467,
67,
8388,
7566,
2041,
2275,
358,
5502,
3959,
1674,
8863,
3639,
289,
3639,
309,
16051,
723,
1085,
18,
9729,
261,
2273,
18,
723,
1435,
3719,
3639,
288,
7734,
327,
1308,
620,
18,
14963,
12,
4811,
620,
1769,
3639,
289,
3639,
509,
3846,
273,
2282,
559,
7675,
9224,
7675,
1132,
5621,
3639,
1620,
261,
9224,
13,
3639,
288,
5411,
648,
399,
3507,
728,
6315,
16099,
67,
2011,
30,
5411,
648,
399,
3507,
728,
6315,
16099,
67,
6459,
30,
7734,
327,
638,
31,
5411,
648,
399,
3507,
728,
6315,
16099,
2
] |
} | } | public byte [] getSourceBytes(){ byte [] result = null; myFactory.throwExceptionIfNotInitialized(); String HTMLContent = new String(); String currURL = getCurrentURL(); System.out.println("\nThe Current URL is -- " + currURL); try { URL aURL = new URL(currURL); URLConnection connection = aURL.openConnection(); connection.connect(); BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream())); boolean more = true; while (more) { String line = in.readLine(); if (line == null) more = false; else { HTMLContent = HTMLContent + line; } } } catch (Throwable e) { System.out.println("Error occurred while establishing connection -- \n ERROR - " + e); } result = HTMLContent.getBytes(); return result;} | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/afee19ff581e3d13844917014bf035cd25e515ae/CurrentPageImpl.java/buggy/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1160,
5378,
7889,
2160,
1435,
95,
565,
1160,
5378,
563,
273,
446,
31,
565,
3399,
1733,
18,
12849,
503,
10288,
11459,
5621,
5411,
514,
3982,
1350,
273,
394,
514,
5621,
565,
514,
4306,
1785,
273,
5175,
1785,
5621,
565,
2332,
18,
659,
18,
8222,
31458,
82,
1986,
6562,
1976,
353,
1493,
315,
397,
4306,
1785,
1769,
565,
775,
288,
3639,
1976,
279,
1785,
273,
394,
1976,
12,
17016,
1785,
1769,
3639,
1976,
1952,
1459,
273,
279,
1785,
18,
3190,
1952,
5621,
3639,
1459,
18,
3612,
5621,
3639,
10633,
316,
273,
394,
10633,
12,
2704,
15322,
12,
4071,
18,
588,
4348,
1435,
10019,
3639,
1250,
1898,
273,
638,
31,
3639,
1323,
261,
10161,
13,
5411,
288,
7734,
514,
980,
273,
316,
18,
896,
1670,
5621,
7734,
309,
261,
1369,
422,
446,
13,
1898,
273,
629,
31,
7734,
469,
10792,
288,
13491,
3982,
1350,
273,
3982,
1350,
397,
980,
31,
10792,
289,
5411,
289,
565,
289,
565,
1044,
261,
15155,
425,
13,
225,
202,
95,
3639,
2332,
18,
659,
18,
8222,
2932,
668,
7841,
1323,
18312,
310,
1459,
1493,
521,
82,
5475,
300,
315,
397,
425,
1769,
225,
202,
97,
565,
563,
273,
3982,
1350,
18,
588,
2160,
5621,
565,
327,
563,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1160,
5378,
7889,
2160,
1435,
95,
565,
1160,
5378,
563,
273,
446,
31,
565,
3399,
1733,
18,
12849,
503,
10288,
11459,
5621,
5411,
514,
3982,
1350,
273,
394,
514,
5621,
565,
514,
4306,
1785,
273,
5175,
1785,
5621,
565,
2332,
18,
659,
18,
8222,
31458,
82,
1986,
6562,
1976,
353,
1493,
315,
397,
4306,
1785,
1769,
565,
775,
288,
3639,
1976,
279,
1785,
273,
394,
1976,
12,
17016,
1785,
1769,
3639,
1976,
1952,
1459,
273,
279,
1785,
18,
3190,
1952,
5621,
3639,
1459,
18,
3612,
5621,
3639,
10633,
316,
273,
394,
10633,
12,
2704,
15322,
12,
4071,
18,
588,
4348,
1435,
10019,
3639,
1250,
1898,
273,
638,
31,
3639,
1323,
261,
10161,
13,
5411,
288,
7734,
514,
980,
2
] |
String value = randomValueForSetter(); | String value = "\"" + randomValueForDbUnit() + "\""; | public String formSetterWithValue() throws XDocletException { XMethod method = super.getCurrentMethod(); XMethod setter = method.getMutator(); String value = randomValueForSetter(); if (setter.getPropertyType().getType().isA("java.util.Date")) { value = "\"" + getDate(new Date(), uiDatePattern) + "\""; } rootClassName = classNameLower(); return rootClassName + "Form." + curprefix + setter.getName() + "(" + value + ");"; } | 3521 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3521/1596a9e2151b45f8d8b68dc66bbab6cc9bfd0ea4/MethodExTagsHandler.java/clean/extras/appgen/src/org/example/antbook/xdoclet/MethodExTagsHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
646,
8465,
1190,
620,
1435,
1216,
1139,
1759,
1810,
503,
288,
3639,
1139,
1305,
707,
273,
2240,
18,
588,
3935,
1305,
5621,
3639,
1139,
1305,
7794,
273,
707,
18,
588,
28410,
5621,
3639,
514,
460,
273,
11143,
397,
2744,
620,
1290,
4331,
2802,
1435,
397,
11143,
31,
3639,
309,
261,
18062,
18,
588,
22802,
7675,
588,
559,
7675,
291,
37,
2932,
6290,
18,
1367,
18,
1626,
6,
3719,
288,
5411,
460,
273,
11143,
397,
10713,
12,
2704,
2167,
9334,
5915,
1626,
3234,
13,
397,
11143,
31,
3639,
289,
3639,
1365,
3834,
273,
2658,
4070,
5621,
3639,
327,
1365,
3834,
397,
315,
1204,
1199,
397,
662,
3239,
397,
7794,
18,
17994,
1435,
397,
12452,
397,
460,
397,
315,
12171,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
646,
8465,
1190,
620,
1435,
1216,
1139,
1759,
1810,
503,
288,
3639,
1139,
1305,
707,
273,
2240,
18,
588,
3935,
1305,
5621,
3639,
1139,
1305,
7794,
273,
707,
18,
588,
28410,
5621,
3639,
514,
460,
273,
11143,
397,
2744,
620,
1290,
4331,
2802,
1435,
397,
11143,
31,
3639,
309,
261,
18062,
18,
588,
22802,
7675,
588,
559,
7675,
291,
37,
2932,
6290,
18,
1367,
18,
1626,
6,
3719,
288,
5411,
460,
273,
11143,
397,
10713,
12,
2704,
2167,
9334,
5915,
1626,
3234,
13,
397,
11143,
31,
3639,
289,
3639,
1365,
3834,
273,
2658,
4070,
5621,
3639,
327,
1365,
3834,
397,
315,
1204,
1199,
397,
662,
3239,
397,
7794,
18,
17994,
1435,
397,
12452,
397,
460,
397,
2
] |
fErrorHandler.handleError(error); | fErrorHandler.getErrorHandler().handleError(error); | XMLInputSource dom2xmlInputSource (LSInput is) { // need to wrap the LSInput with an XMLInputSource XMLInputSource xis = null; // check whether there is a Reader // according to DOM, we need to treat such reader as "UTF-16". if (is.getCharacterStream () != null) { xis = new XMLInputSource (is.getPublicId (), is.getSystemId (), is.getBaseURI (), is.getCharacterStream (), "UTF-16"); } // check whether there is an InputStream else if (is.getByteStream () != null) { xis = new XMLInputSource (is.getPublicId (), is.getSystemId (), is.getBaseURI (), is.getByteStream (), is.getEncoding ()); } // if there is a string data, use a StringReader // according to DOM, we need to treat such data as "UTF-16". else if (is.getStringData () != null && is.getStringData().length() > 0) { xis = new XMLInputSource (is.getPublicId (), is.getSystemId (), is.getBaseURI (), new StringReader (is.getStringData ()), "UTF-16"); } // otherwise, just use the public/system/base Ids else if ((is.getSystemId() != null && is.getSystemId().length() > 0) || (is.getPublicId() != null && is.getPublicId().length() > 0)) { xis = new XMLInputSource (is.getPublicId (), is.getSystemId (), is.getBaseURI ()); } else { // all inputs are null if (fErrorHandler != null) { DOMErrorImpl error = new DOMErrorImpl(); error.fType = "no-input-specified"; error.fMessage = "no-input-specified"; error.fSeverity = DOMError.SEVERITY_FATAL_ERROR; fErrorHandler.handleError(error); } throw new LSException(LSException.PARSE_ERR, "no-input-specified"); } return xis; } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/057f39ad905b6f8c6a6864e0591a9ba69d0ea78c/DOMParserImpl.java/buggy/src/org/apache/xerces/parsers/DOMParserImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3167,
1210,
1830,
4092,
22,
2902,
1210,
1830,
261,
3045,
1210,
353,
13,
288,
3639,
368,
1608,
358,
2193,
326,
29204,
1210,
598,
392,
3167,
1210,
1830,
3639,
3167,
1210,
1830,
619,
291,
273,
446,
31,
3639,
368,
866,
2856,
1915,
353,
279,
5393,
3639,
368,
4888,
358,
4703,
16,
732,
1608,
358,
10116,
4123,
2949,
487,
315,
5159,
17,
2313,
9654,
3639,
309,
261,
291,
18,
588,
7069,
1228,
1832,
480,
446,
13,
288,
5411,
619,
291,
273,
394,
3167,
1210,
1830,
261,
291,
18,
588,
4782,
548,
1832,
16,
353,
18,
588,
3163,
548,
1832,
16,
5411,
353,
18,
588,
2171,
3098,
1832,
16,
353,
18,
588,
7069,
1228,
1832,
16,
5411,
315,
5159,
17,
2313,
8863,
3639,
289,
3639,
368,
866,
2856,
1915,
353,
392,
5037,
3639,
469,
309,
261,
291,
18,
588,
3216,
1228,
1832,
480,
446,
13,
288,
5411,
619,
291,
273,
394,
3167,
1210,
1830,
261,
291,
18,
588,
4782,
548,
1832,
16,
353,
18,
588,
3163,
548,
1832,
16,
5411,
353,
18,
588,
2171,
3098,
1832,
16,
353,
18,
588,
3216,
1228,
1832,
16,
5411,
353,
18,
588,
4705,
1832,
1769,
3639,
289,
3639,
368,
309,
1915,
353,
279,
533,
501,
16,
999,
279,
26227,
3639,
368,
4888,
358,
4703,
16,
732,
1608,
358,
10116,
4123,
501,
487,
315,
5159,
17,
2313,
9654,
3639,
469,
309,
261,
291,
18,
588,
780,
751,
1832,
480,
446,
597,
353,
18,
588,
780,
751,
7675,
2469,
1435,
405,
374,
13,
288,
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,
3167,
1210,
1830,
4092,
22,
2902,
1210,
1830,
261,
3045,
1210,
353,
13,
288,
3639,
368,
1608,
358,
2193,
326,
29204,
1210,
598,
392,
3167,
1210,
1830,
3639,
3167,
1210,
1830,
619,
291,
273,
446,
31,
3639,
368,
866,
2856,
1915,
353,
279,
5393,
3639,
368,
4888,
358,
4703,
16,
732,
1608,
358,
10116,
4123,
2949,
487,
315,
5159,
17,
2313,
9654,
3639,
309,
261,
291,
18,
588,
7069,
1228,
1832,
480,
446,
13,
288,
5411,
619,
291,
273,
394,
3167,
1210,
1830,
261,
291,
18,
588,
4782,
548,
1832,
16,
353,
18,
588,
3163,
548,
1832,
16,
5411,
353,
18,
588,
2171,
3098,
1832,
16,
353,
18,
588,
7069,
1228,
1832,
16,
5411,
315,
5159,
17,
2313,
2
] |
tooltip.setVisible(false); ListIterator li = actionList.listIterator(0); ActionListener al; while (li.hasNext()) { al = (ActionListener) li.next(); al.actionPerformed(new ActionEvent(e.getSource(), ActionEvent.ACTION_PERFORMED, "PressAction", e.getWhen(), 0)); } | if(tooltip != null) tooltip.setVisible(false); SwingUtilities.invokeLater(new Runnable(){ public void run() { Thread actionThread = new Thread(new Runnable(){ public void run() { ListIterator li = actionList.listIterator(0); while (li.hasNext()) { ActionListener al; al = (ActionListener) li.next(); al.actionPerformed(new ActionEvent(GnomeTrayIconService.this, ActionEvent.ACTION_PERFORMED, "PressAction", e.getWhen(), 0)); } } }); actionThread.start(); } }); | void mousePressed(MouseEvent e) { if (menu != null) { if (e.isPopupTrigger()) { tooltip.setVisible(false); Dimension d = menu.getPreferredSize(); Dimension s = Toolkit.getDefaultToolkit().getScreenSize(); Point p = e.getPoint(); SwingUtilities.convertPointToScreen(p, (Component) e.getSource()); p.x = p.x + d.width > s.width ? p.x - d.width : p.x; p.y = p.y + d.height > s.height ? p.y - d.height : p.y; SwingUtilities.convertPointFromScreen(p, popupMenuParent); menu.show(popupMenuParent, p.x, p.y); } else { tooltip.setVisible(false); ListIterator li = actionList.listIterator(0); ActionListener al; while (li.hasNext()) { al = (ActionListener) li.next(); al.actionPerformed(new ActionEvent(e.getSource(), ActionEvent.ACTION_PERFORMED, "PressAction", e.getWhen(), 0)); } } } } | 4416 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4416/f2a6ecf973acf6bbc0afbdbdec2eb8eec0112ce4/GnomeTrayIconService.java/buggy/src/jdic/src/unix/classes/org/jdesktop/jdic/tray/internal/impl/GnomeTrayIconService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
7644,
24624,
12,
9186,
1133,
425,
13,
288,
3639,
309,
261,
5414,
480,
446,
13,
288,
5411,
309,
261,
73,
18,
291,
13770,
6518,
10756,
288,
7734,
11915,
18,
542,
6207,
12,
5743,
1769,
7734,
13037,
302,
273,
3824,
18,
588,
16028,
1225,
5621,
7734,
13037,
272,
273,
13288,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
7956,
1225,
5621,
7734,
4686,
293,
273,
425,
18,
588,
2148,
5621,
7734,
26145,
11864,
18,
6283,
2148,
774,
7956,
12,
84,
16,
261,
1841,
13,
425,
18,
588,
1830,
10663,
7734,
293,
18,
92,
273,
293,
18,
92,
397,
302,
18,
2819,
405,
272,
18,
2819,
692,
293,
18,
92,
300,
302,
18,
2819,
294,
293,
18,
92,
31,
7734,
293,
18,
93,
273,
293,
18,
93,
397,
302,
18,
4210,
405,
272,
18,
4210,
692,
293,
18,
93,
300,
302,
18,
4210,
294,
293,
18,
93,
31,
7734,
26145,
11864,
18,
6283,
2148,
1265,
7956,
12,
84,
16,
10431,
4599,
3054,
1769,
7734,
3824,
18,
4500,
12,
16086,
4599,
3054,
16,
293,
18,
92,
16,
293,
18,
93,
1769,
5411,
289,
469,
288,
7734,
11915,
18,
542,
6207,
12,
5743,
1769,
7734,
987,
3198,
4501,
273,
1301,
682,
18,
1098,
3198,
12,
20,
1769,
7734,
25962,
524,
31,
7734,
1323,
261,
549,
18,
5332,
2134,
10756,
288,
10792,
524,
273,
261,
1803,
2223,
13,
4501,
18,
4285,
5621,
10792,
524,
18,
1128,
13889,
12,
2704,
19641,
12,
73,
18,
588,
1830,
9334,
27573,
19641,
18,
12249,
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,
7644,
24624,
12,
9186,
1133,
425,
13,
288,
3639,
309,
261,
5414,
480,
446,
13,
288,
5411,
309,
261,
73,
18,
291,
13770,
6518,
10756,
288,
7734,
11915,
18,
542,
6207,
12,
5743,
1769,
7734,
13037,
302,
273,
3824,
18,
588,
16028,
1225,
5621,
7734,
13037,
272,
273,
13288,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
7956,
1225,
5621,
7734,
4686,
293,
273,
425,
18,
588,
2148,
5621,
7734,
26145,
11864,
18,
6283,
2148,
774,
7956,
12,
84,
16,
261,
1841,
13,
425,
18,
588,
1830,
10663,
7734,
293,
18,
92,
273,
293,
18,
92,
397,
302,
18,
2819,
405,
272,
18,
2819,
692,
293,
18,
92,
300,
302,
18,
2819,
294,
293,
18,
92,
31,
2
] |
boolean reverse) { int fill = points.length; for (int i = 0; i < points.length / 2; i++) { if (!reverse) { shape[index++] = x + points[2 * i]; shape[index++] = y + points[2 * i + 1]; } else { shape[index + fill - 2 - 2 * i] = x + points[2 * i]; shape[index + fill - 1 - 2 * i] = y + points[2 * i + 1]; } } if (reverse) { index += fill; } return index; } | boolean reverse) { int fill = points.length; for (int i = 0; i < points.length / 2; i++) { if (!reverse) { shape[index++] = x + points[2 * i]; shape[index++] = y + points[2 * i + 1]; } else { shape[index + fill - 2 - 2 * i] = x + points[2 * i]; shape[index + fill - 1 - 2 * i] = y + points[2 * i + 1]; } } if (reverse) { index += fill; } return index; } | private int fillShape(int[] shape, int[] points, int index, int x, int y, boolean reverse) { int fill = points.length; for (int i = 0; i < points.length / 2; i++) { if (!reverse) { shape[index++] = x + points[2 * i]; shape[index++] = y + points[2 * i + 1]; } else { shape[index + fill - 2 - 2 * i] = x + points[2 * i]; shape[index + fill - 1 - 2 * i] = y + points[2 * i + 1]; } } if (reverse) { index += fill; } return index; } | 13822 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13822/1b18c4111a9bdd6d059092d4cb5971693a9544b2/IntroLaunchBar.java/clean/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
3636,
8500,
12,
474,
8526,
2179,
16,
509,
8526,
3143,
16,
509,
770,
16,
509,
619,
16,
509,
677,
16,
1082,
202,
6494,
4219,
13,
288,
202,
202,
474,
3636,
273,
3143,
18,
2469,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3143,
18,
2469,
342,
576,
31,
277,
27245,
288,
1082,
202,
430,
16051,
9845,
13,
288,
9506,
202,
4867,
63,
1615,
9904,
65,
273,
619,
397,
3143,
63,
22,
380,
277,
15533,
9506,
202,
4867,
63,
1615,
9904,
65,
273,
677,
397,
3143,
63,
22,
380,
277,
397,
404,
15533,
1082,
202,
97,
469,
288,
9506,
202,
4867,
63,
1615,
397,
3636,
300,
576,
300,
576,
380,
277,
65,
273,
619,
397,
3143,
63,
22,
380,
277,
15533,
9506,
202,
4867,
63,
1615,
397,
3636,
300,
404,
300,
576,
380,
277,
65,
273,
677,
397,
3143,
63,
22,
380,
277,
397,
404,
15533,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
261,
9845,
13,
288,
1082,
202,
1615,
1011,
3636,
31,
202,
202,
97,
202,
202,
2463,
770,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
3636,
8500,
12,
474,
8526,
2179,
16,
509,
8526,
3143,
16,
509,
770,
16,
509,
619,
16,
509,
677,
16,
1082,
202,
6494,
4219,
13,
288,
202,
202,
474,
3636,
273,
3143,
18,
2469,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3143,
18,
2469,
342,
576,
31,
277,
27245,
288,
1082,
202,
430,
16051,
9845,
13,
288,
9506,
202,
4867,
63,
1615,
9904,
65,
273,
619,
397,
3143,
63,
22,
380,
277,
15533,
9506,
202,
4867,
63,
1615,
9904,
65,
273,
677,
397,
3143,
63,
22,
380,
277,
397,
404,
15533,
1082,
202,
97,
469,
288,
9506,
202,
4867,
63,
1615,
397,
3636,
300,
576,
300,
576,
380,
277,
65,
2
] |
log.error("***** Draw.run(): received invalid draw command " + comm.mode); | System.err.println("***** Draw.run(): received invalid draw command " + comm.mode); | public void mainLoop() { Object tmp; Message msg=null; DrawCommand comm; boolean fl=true; while(fl) { try { tmp=channel.receive(0); if(tmp == null) continue; if(tmp instanceof View) { View v=(View)tmp; if(v instanceof MergeView) System.out.println("** MergeView=" + v); else System.out.println("** View=" + v); member_size=v.size(); if(mainFrame != null) setTitle(); continue; } if(tmp instanceof ExitEvent) { System.out.println("-- Draw.main(): received EXIT, waiting for ChannelReconnected callback"); setTitle(" Draw Demo - shunned "); break; } if(!(tmp instanceof Message)) continue; msg=(Message)tmp; comm=null; Object obj=msg.getObject(); if(obj instanceof DrawCommand) comm=(DrawCommand)obj; else if(obj instanceof Message) { System.out.println("*** Draw.run(): message is " + Util.printMessage((Message)obj)); Util.dumpStack(false); continue; } else { if(obj != null) System.out.println("*** Draw.run(): obj is " + obj.getClass() + ", hdrs are" + msg.printObjectHeaders()); else System.out.println("*** Draw.run(): hdrs are " + msg.printObjectHeaders()); Util.dumpStack(false); continue; } switch(comm.mode) { case DrawCommand.DRAW: if(panel != null) panel.drawPoint(comm); break; case DrawCommand.CLEAR: clearPanel(); continue; default: log.error("***** Draw.run(): received invalid draw command " + comm.mode); break; } } catch(ChannelNotConnectedException not) { log.error("Draw: " + not); break; } catch(ChannelClosedException closed) { break; } catch(Exception e) { log.error(e); continue; } } } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/13de68466e3cf7fde6ee0bde0cee09a33e837e89/Draw.java/buggy/src/org/jgroups/demos/Draw.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2774,
6452,
1435,
288,
3639,
1033,
4202,
1853,
31,
3639,
2350,
1377,
1234,
33,
2011,
31,
3639,
10184,
2189,
225,
1543,
31,
3639,
1250,
1377,
1183,
33,
3767,
31,
3639,
1323,
12,
2242,
13,
288,
5411,
775,
288,
7734,
1853,
33,
4327,
18,
18149,
12,
20,
1769,
7734,
309,
12,
5645,
422,
446,
13,
1324,
31,
7734,
309,
12,
5645,
1276,
4441,
13,
288,
10792,
4441,
331,
28657,
1767,
13,
5645,
31,
10792,
309,
12,
90,
1276,
8964,
1767,
13,
13491,
2332,
18,
659,
18,
8222,
2932,
636,
8964,
1767,
1546,
397,
331,
1769,
10792,
469,
13491,
2332,
18,
659,
18,
8222,
2932,
636,
4441,
1546,
397,
331,
1769,
10792,
3140,
67,
1467,
33,
90,
18,
1467,
5621,
10792,
309,
12,
5254,
3219,
480,
446,
13,
13491,
14109,
5621,
10792,
1324,
31,
7734,
289,
7734,
309,
12,
5645,
1276,
9500,
1133,
13,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
413,
10184,
18,
5254,
13332,
5079,
28407,
16,
7336,
364,
5307,
426,
8537,
1348,
8863,
10792,
14109,
2932,
10184,
27744,
83,
300,
699,
318,
11748,
315,
1769,
10792,
898,
31,
7734,
289,
7734,
309,
12,
5,
12,
5645,
1276,
2350,
3719,
10792,
1324,
31,
7734,
1234,
28657,
1079,
13,
5645,
31,
7734,
1543,
33,
2011,
31,
7734,
1033,
1081,
33,
3576,
18,
588,
921,
5621,
7734,
309,
12,
2603,
1276,
10184,
2189,
13,
10792,
1543,
28657,
6493,
2189,
13,
2603,
31,
7734,
469,
309,
12,
2603,
1276,
2350,
13,
288,
10792,
2332,
18,
659,
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,
2774,
6452,
1435,
288,
3639,
1033,
4202,
1853,
31,
3639,
2350,
1377,
1234,
33,
2011,
31,
3639,
10184,
2189,
225,
1543,
31,
3639,
1250,
1377,
1183,
33,
3767,
31,
3639,
1323,
12,
2242,
13,
288,
5411,
775,
288,
7734,
1853,
33,
4327,
18,
18149,
12,
20,
1769,
7734,
309,
12,
5645,
422,
446,
13,
1324,
31,
7734,
309,
12,
5645,
1276,
4441,
13,
288,
10792,
4441,
331,
28657,
1767,
13,
5645,
31,
10792,
309,
12,
90,
1276,
8964,
1767,
13,
13491,
2332,
18,
659,
18,
8222,
2932,
636,
8964,
1767,
1546,
397,
331,
1769,
10792,
469,
13491,
2332,
18,
659,
18,
8222,
2932,
636,
4441,
1546,
397,
331,
1769,
10792,
3140,
67,
1467,
33,
90,
18,
2
] |
Node testNode2Session2 = (Node) session2.getItem(testNode2Session1.getPath()); | try { Node testNode2Session2 = (Node) session2.getItem(testNode2Session1.getPath()); | public void testRefreshBooleanTrue() throws RepositoryException { // get default workspace test root node using superuser session Node defaultRootNode = (Node) superuser.getItem(testRootNode.getPath()); // create a node Node testNode1Session1 = defaultRootNode.addNode(nodeName1, testNodeType); // create a second node Node testNode2Session1 = defaultRootNode.addNode(nodeName2, testNodeType); // save the new nodes defaultRootNode.save(); // add child node to test node 1 using session 1 testNode1Session1.addNode(nodeName2, testNodeType); // get session 2 Session session2 = helper.getReadWriteSession(); // get the second node Node testNode2Session2 = (Node) session2.getItem(testNode2Session1.getPath()); // adds a child node testNode2Session2.addNode(nodeName3, testNodeType); // save the changes session2.save(); // call refresh on session 1 defaultRootNode.refresh(true); // check if session 1 flag has been cleared assertTrue("Session should still have pending changes recorded after Node.refresh(true)!", superuser.hasPendingChanges()); // check if added child node for node 1 by session 1 is still there assertTrue("Node Modifications are lost after Node.refresh(true)", testNode1Session1.hasNodes()); // check if added child node for node 2 by session 2 has become visible in session 1 assertTrue("Node modified by a different session has not been updated after Node.refresh(true)", testNode2Session1.hasNodes()); } | 49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/5ccda17da27a5f4b68cd1402b8d936c724c7aa46/NodeTest.java/buggy/src/test/org/apache/jackrabbit/test/api/NodeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
8323,
5507,
5510,
1435,
1216,
13367,
288,
3639,
368,
336,
805,
6003,
1842,
1365,
756,
1450,
2240,
1355,
1339,
3639,
2029,
805,
29658,
273,
261,
907,
13,
2240,
1355,
18,
588,
1180,
12,
3813,
29658,
18,
588,
743,
10663,
3639,
368,
752,
279,
756,
3639,
2029,
1842,
907,
21,
2157,
21,
273,
805,
29658,
18,
1289,
907,
12,
2159,
461,
21,
16,
1842,
15101,
1769,
3639,
368,
752,
279,
2205,
756,
3639,
2029,
1842,
907,
22,
2157,
21,
273,
805,
29658,
18,
1289,
907,
12,
2159,
461,
22,
16,
1842,
15101,
1769,
3639,
368,
1923,
326,
394,
2199,
3639,
805,
29658,
18,
5688,
5621,
3639,
368,
527,
1151,
756,
358,
1842,
756,
404,
1450,
1339,
404,
3639,
1842,
907,
21,
2157,
21,
18,
1289,
907,
12,
2159,
461,
22,
16,
1842,
15101,
1769,
3639,
368,
336,
1339,
576,
3639,
3877,
1339,
22,
273,
4222,
18,
588,
1994,
3067,
2157,
5621,
3639,
368,
336,
326,
2205,
756,
4202,
775,
288,
225,
2029,
1842,
907,
22,
2157,
22,
273,
261,
907,
13,
1339,
22,
18,
588,
1180,
12,
3813,
907,
22,
2157,
21,
18,
588,
743,
10663,
3639,
368,
4831,
279,
1151,
756,
3639,
1842,
907,
22,
2157,
22,
18,
1289,
907,
12,
2159,
461,
23,
16,
1842,
15101,
1769,
3639,
368,
1923,
326,
3478,
3639,
1339,
22,
18,
5688,
5621,
3639,
368,
745,
4460,
603,
1339,
404,
3639,
805,
29658,
18,
9144,
12,
3767,
1769,
3639,
368,
866,
309,
1339,
404,
2982,
711,
2118,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
8323,
5507,
5510,
1435,
1216,
13367,
288,
3639,
368,
336,
805,
6003,
1842,
1365,
756,
1450,
2240,
1355,
1339,
3639,
2029,
805,
29658,
273,
261,
907,
13,
2240,
1355,
18,
588,
1180,
12,
3813,
29658,
18,
588,
743,
10663,
3639,
368,
752,
279,
756,
3639,
2029,
1842,
907,
21,
2157,
21,
273,
805,
29658,
18,
1289,
907,
12,
2159,
461,
21,
16,
1842,
15101,
1769,
3639,
368,
752,
279,
2205,
756,
3639,
2029,
1842,
907,
22,
2157,
21,
273,
805,
29658,
18,
1289,
907,
12,
2159,
461,
22,
16,
1842,
15101,
1769,
3639,
368,
1923,
326,
394,
2199,
3639,
805,
29658,
18,
5688,
5621,
3639,
368,
527,
1151,
756,
358,
1842,
756,
404,
1450,
1339,
2
] |
SocketAppender(String host, int port) { this.port = port; this.address = getAddressByName(host); this.remoteHost = host; connect(address, port); | public SocketAppender() { | SocketAppender(String host, int port) { this.port = port; this.address = getAddressByName(host); this.remoteHost = host; connect(address, port); } | 45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/1134214910cde23075dafa03ee90fde97a5223c7/SocketAppender.java/buggy/src/java/org/apache/log4j/net/SocketAppender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
8758,
17302,
12,
780,
1479,
16,
509,
1756,
13,
288,
377,
333,
18,
655,
273,
1756,
31,
565,
333,
18,
2867,
273,
14808,
5911,
12,
2564,
1769,
565,
333,
18,
7222,
2594,
273,
1479,
31,
565,
3077,
12,
2867,
16,
1756,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
8758,
17302,
12,
780,
1479,
16,
509,
1756,
13,
288,
377,
333,
18,
655,
273,
1756,
31,
565,
333,
18,
2867,
273,
14808,
5911,
12,
2564,
1769,
565,
333,
18,
7222,
2594,
273,
1479,
31,
565,
3077,
12,
2867,
16,
1756,
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
] |
catch (InvocationTargetException e) { if (e.getTargetException() instanceof CoreException) throw (CoreException) e.getTargetException(); if (e.getTargetException() instanceof RuntimeException) throw (RuntimeException) e.getTargetException(); if (e.getTargetException() instanceof Error) throw (Error) e.getTargetException(); e.getTargetException().printStackTrace(); } } | protected void execute(IProgressMonitor monitor) throws CoreException, InterruptedException { try { content.run(monitor); } catch (InvocationTargetException e) { if (e.getTargetException() instanceof CoreException) throw (CoreException) e.getTargetException(); if (e.getTargetException() instanceof RuntimeException) throw (RuntimeException) e.getTargetException(); if (e.getTargetException() instanceof Error) throw (Error) e.getTargetException(); e.getTargetException().printStackTrace(); }} | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/7b50a348ec9564b04f52eb73450ed9b2ffddff74/WorkspaceModifyDelegatingOperation.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
1836,
12,
45,
5491,
7187,
6438,
13,
1216,
30015,
16,
7558,
288,
202,
698,
288,
202,
202,
1745,
18,
2681,
12,
10259,
1769,
202,
97,
202,
14683,
261,
9267,
14950,
425,
13,
288,
202,
202,
430,
261,
73,
18,
588,
14950,
1435,
1276,
30015,
13,
1082,
202,
12849,
261,
25341,
13,
425,
18,
588,
14950,
5621,
202,
202,
430,
261,
73,
18,
588,
14950,
1435,
1276,
3235,
13,
1082,
202,
12849,
261,
11949,
13,
425,
18,
588,
14950,
5621,
202,
202,
430,
261,
73,
18,
588,
14950,
1435,
1276,
1068,
13,
1082,
202,
12849,
261,
668,
13,
425,
18,
588,
14950,
5621,
202,
202,
73,
18,
588,
14950,
7675,
1188,
6332,
5621,
202,
9090,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
1836,
12,
45,
5491,
7187,
6438,
13,
1216,
30015,
16,
7558,
288,
202,
698,
288,
202,
202,
1745,
18,
2681,
12,
10259,
1769,
202,
97,
202,
14683,
261,
9267,
14950,
425,
13,
288,
202,
202,
430,
261,
73,
18,
588,
14950,
1435,
1276,
30015,
13,
1082,
202,
12849,
261,
25341,
13,
425,
18,
588,
14950,
5621,
202,
202,
430,
261,
73,
18,
588,
14950,
1435,
1276,
3235,
13,
1082,
202,
12849,
261,
11949,
13,
425,
18,
588,
14950,
5621,
202,
202,
430,
261,
73,
18,
588,
14950,
1435,
1276,
1068,
13,
1082,
202,
12849,
261,
668,
13,
425,
18,
588,
14950,
5621,
202,
202,
73,
18,
588,
14950,
7675,
1188,
6332,
5621,
202,
9090,
2,
-100,
-100,
-100
] |
|
this.clipboard = clipboard; } | this.clipboard = clipboard; } | void setClipboard(Clipboard clipboard) { this.clipboard = clipboard; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/cd30df30dfb88f9bda2fa203f31e3dd26ff697b7/ActionCopyMarker.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionCopyMarker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
11440,
3169,
3752,
12,
15339,
3752,
20304,
13,
288,
3639,
333,
18,
14161,
3752,
273,
20304,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
11440,
3169,
3752,
12,
15339,
3752,
20304,
13,
288,
3639,
333,
18,
14161,
3752,
273,
20304,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AspectJPreferences.setAJDTPrefConfigDone(true); | public void testWithOutJarSwitch3() throws Exception { AspectJPreferences.setAJDTPrefConfigDone(true); IProject projectY = Utils.getPredefinedProject("project.java.Y", true); projectY.build(IncrementalProjectBuilder.FULL_BUILD, null); ProjectDependenciesUtils.waitForJobsToComplete(projectY); IProject projectX = Utils.getPredefinedProject("project.java.X", true); projectX.build(IncrementalProjectBuilder.FULL_BUILD, null); ProjectDependenciesUtils.waitForJobsToComplete(projectX); // sanity check: at this point there should be no error markers, both // projects should build as they're both java projects, project X should // should have a project dependency on project Y assertFalse("project Y should build with no errors", ProjectDependenciesUtils.projectIsMarkedWithError(projectY,null)); assertFalse("project X should build with no errors", ProjectDependenciesUtils.projectIsMarkedWithError(projectX,null)); assertTrue("project X should have a project dependency on project Y", ProjectDependenciesUtils.projectHasProjectDependency(projectX, projectY)); assertFalse("project Y should not be an AJ project", projectY.hasNature(AspectJUIPlugin.ID_NATURE)); assertFalse("project X should not be an AJ project", projectX.hasNature(AspectJUIPlugin.ID_NATURE)); // convert project Y to be an AJ project and check setup is correct AJDTUtils.addAspectJNature(projectY); ProjectDependenciesUtils.waitForJobsToComplete(projectY); assertFalse("project Y should build with no errors", ProjectDependenciesUtils.projectIsMarkedWithError(projectY,null)); assertFalse("project X should build with no errors", ProjectDependenciesUtils.projectIsMarkedWithError(projectX,null)); assertTrue("project X should still have a project dependency on project Y", ProjectDependenciesUtils.projectHasProjectDependency(projectX, projectY)); assertFalse("project X should NOT have a class folder dependency on project Y", ProjectDependenciesUtils.projectHasClassFolderDependency(projectX,projectY)); // set project Y to send output to jar file mainWork.jar // setup the outjar String outJar = ProjectDependenciesUtils.setupOutJar("firstJar.jar",projectY); projectY.setPersistentProperty(BuildOptionsAdapter.OUTPUTJAR, outJar); ProjectDependenciesUtils.waitForJobsToComplete(projectY); assertFalse("Output jar should NOT exist! (path=" + outJar + ")",new File(outJar).exists()); // build the project so it picks up the outjar and sends // output there BlockingProgressMonitor monitor = new BlockingProgressMonitor(); monitor.reset(); projectY.build(IncrementalProjectBuilder.FULL_BUILD,"org.eclipse.ajdt.ui.ajbuilder", null, monitor); monitor.waitForCompletion(); ProjectDependenciesUtils.waitForJobsToComplete(projectY); assertTrue("Output jar should exist! (path=" + outJar + ")",new File(outJar).exists()); assertFalse("project Y should build with no errors", ProjectDependenciesUtils.projectIsMarkedWithError(projectY,null)); assertFalse("project X should build with no errors", ProjectDependenciesUtils.projectIsMarkedWithError(projectX,null)); assertTrue("project X should have project Y's outjar on it's classpath", ProjectDependenciesUtils.projectHasOutJarOnClasspath(projectX,projectY, outJar)); assertTrue("project X should have a project dependency on project Y", ProjectDependenciesUtils.projectHasProjectDependency(projectX, projectY)); assertFalse("project X should not have a class folder dependency on project Y", ProjectDependenciesUtils.projectHasClassFolderDependency(projectX,projectY)); // set project Y to send output to jar file newJar.jar // setup the outjar String outJar2 = ProjectDependenciesUtils.setupOutJar("newJar.jar",projectY); projectY.setPersistentProperty(BuildOptionsAdapter.OUTPUTJAR, outJar2); ProjectDependenciesUtils.waitForJobsToComplete(projectY); assertFalse("Output jar should NOT exist! (path=" + outJar2 + ")",new File(outJar2).exists()); // build the project so it picks up the outjar and sends // output there monitor.reset(); projectY.build(IncrementalProjectBuilder.FULL_BUILD,"org.eclipse.ajdt.ui.ajbuilder", null, monitor); monitor.waitForCompletion(); ProjectDependenciesUtils.waitForJobsToComplete(projectY); assertTrue("Output jar should exist! (path=" + outJar2 + ")",new File(outJar2).exists()); assertFalse("project Y should build with no errors", ProjectDependenciesUtils.projectIsMarkedWithError(projectY,null)); assertFalse("project X should build with no errors", ProjectDependenciesUtils.projectIsMarkedWithError(projectX,null)); assertTrue("project X should have project Y's NEW outjar on it's classpath", ProjectDependenciesUtils.projectHasOutJarOnClasspath(projectX,projectY, outJar2)); assertFalse("project X should NOT have project Y's old outjar on it's classpath", ProjectDependenciesUtils.projectHasOutJarOnClasspath(projectX,projectY, outJar)); assertTrue("project X should have a project dependency on project Y", ProjectDependenciesUtils.projectHasProjectDependency(projectX, projectY)); assertFalse("project X should not have a class folder dependency on project Y", ProjectDependenciesUtils.projectHasClassFolderDependency(projectX,projectY)); StringBuffer sb = new StringBuffer(outJar); IPath path = new Path(sb.substring(sb.lastIndexOf(projectY.getName()))); IResource jarFile = projectY.getWorkspace().getRoot().findMember(path.makeAbsolute()); monitor.reset(); jarFile.delete(true,monitor); monitor.waitForCompletion(); ProjectDependenciesUtils.waitForJobsToComplete(projectY); assertFalse("Output jar should NOT exist! (path=" + outJar + ")",new File(outJar).exists()); projectY.setPersistentProperty(BuildOptionsAdapter.OUTPUTJAR, ""); ProjectDependenciesUtils.waitForJobsToComplete(projectY); monitor.reset(); projectY.build(IncrementalProjectBuilder.FULL_BUILD,"org.eclipse.ajdt.ui.ajbuilder", null, monitor); monitor.waitForCompletion(); ProjectDependenciesUtils.waitForJobsToComplete(projectY); StringBuffer sb2 = new StringBuffer(outJar2); IPath path2 = new Path(sb2.substring(sb2.lastIndexOf(projectY.getName()))); IResource jarFile2 = projectY.getWorkspace().getRoot().findMember(path2.makeAbsolute()); monitor.reset(); jarFile2.delete(true,monitor); monitor.waitForCompletion(); ProjectDependenciesUtils.waitForJobsToComplete(projectY); assertFalse("Second Output jar should NOT exist! (path=" + outJar2 + ")" ,new File(outJar2).exists()); projectX.build(IncrementalProjectBuilder.FULL_BUILD, null); ProjectDependenciesUtils.waitForJobsToComplete(projectX); assertFalse("project X should build with no errors", ProjectDependenciesUtils.projectIsMarkedWithError(projectX,null)); assertFalse("project X should not have outjar on classpath", ProjectDependenciesUtils.projectHasOutJarOnClasspath(projectX,projectY,outJar2)); // reset projects to their original state: AJDTUtils.removeAspectJNature(projectY); ProjectDependenciesUtils.waitForJobsToComplete(projectY); projectY.build(IncrementalProjectBuilder.FULL_BUILD, null); ProjectDependenciesUtils.waitForJobsToComplete(projectY); assertFalse("project Y should build with no errors", ProjectDependenciesUtils.projectIsMarkedWithError(projectY,null)); assertFalse("project X should build with no errors", ProjectDependenciesUtils.projectIsMarkedWithError(projectX,null)); assertTrue("project X should have a project dependency on project Y", ProjectDependenciesUtils.projectHasProjectDependency(projectX, projectY)); assertFalse("project Y should not be an AJ project", projectY.hasNature(AspectJUIPlugin.ID_NATURE)); assertFalse("project X should not be an AJ project", projectX.hasNature(AspectJUIPlugin.ID_NATURE)); // close all the projects so that they don't hang around and hold // up the build for other tests monitor.reset(); projectX.close(monitor); monitor.waitForCompletion(); monitor.reset(); projectY.close(monitor); monitor.waitForCompletion(); AspectJPreferences.setAJDTPrefConfigDone(false); } | 13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/1de3a7ddee14a9331ea7bdbd6a2e8b21cdc4019d/ProjectDependenciesWithJarFilesTest.java/clean/org.eclipse.ajdt.ui.tests/src/org/eclipse/ajdt/internal/builder/ProjectDependenciesWithJarFilesTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1190,
1182,
10813,
10200,
23,
1435,
1216,
1185,
288,
202,
202,
17468,
46,
12377,
18,
542,
37,
46,
9081,
23218,
809,
7387,
12,
3767,
1769,
202,
202,
45,
4109,
1984,
61,
273,
6091,
18,
588,
1386,
2178,
4109,
2932,
4406,
18,
6290,
18,
61,
3113,
638,
1769,
202,
202,
4406,
61,
18,
3510,
12,
10798,
287,
4109,
1263,
18,
18111,
67,
20215,
16,
446,
1769,
202,
202,
4109,
8053,
1989,
18,
7048,
1290,
7276,
774,
6322,
12,
4406,
61,
1769,
202,
202,
45,
4109,
1984,
60,
273,
6091,
18,
588,
1386,
2178,
4109,
2932,
4406,
18,
6290,
18,
60,
3113,
638,
1769,
202,
202,
4406,
60,
18,
3510,
12,
10798,
287,
4109,
1263,
18,
18111,
67,
20215,
16,
446,
1769,
202,
202,
4109,
8053,
1989,
18,
7048,
1290,
7276,
774,
6322,
12,
4406,
60,
1769,
202,
202,
759,
16267,
866,
30,
622,
333,
1634,
1915,
1410,
506,
1158,
555,
11754,
16,
3937,
3196,
202,
759,
10137,
1410,
1361,
487,
2898,
4565,
3937,
2252,
10137,
16,
1984,
1139,
1410,
202,
202,
759,
1410,
1240,
279,
1984,
4904,
603,
1984,
1624,
202,
202,
11231,
8381,
2932,
4406,
1624,
1410,
1361,
598,
1158,
1334,
3113,
9506,
202,
4109,
8053,
1989,
18,
4406,
2520,
21486,
25104,
12,
4406,
61,
16,
2011,
10019,
202,
202,
11231,
8381,
2932,
4406,
1139,
1410,
1361,
598,
1158,
1334,
3113,
9506,
202,
4109,
8053,
1989,
18,
4406,
2520,
21486,
25104,
12,
4406,
60,
16,
2011,
10019,
202,
202,
11231,
5510,
2932,
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,
1190,
1182,
10813,
10200,
23,
1435,
1216,
1185,
288,
202,
202,
17468,
46,
12377,
18,
542,
37,
46,
9081,
23218,
809,
7387,
12,
3767,
1769,
202,
202,
45,
4109,
1984,
61,
273,
6091,
18,
588,
1386,
2178,
4109,
2932,
4406,
18,
6290,
18,
61,
3113,
638,
1769,
202,
202,
4406,
61,
18,
3510,
12,
10798,
287,
4109,
1263,
18,
18111,
67,
20215,
16,
446,
1769,
202,
202,
4109,
8053,
1989,
18,
7048,
1290,
7276,
774,
6322,
12,
4406,
61,
1769,
202,
202,
45,
4109,
1984,
60,
273,
6091,
18,
588,
1386,
2178,
4109,
2932,
4406,
18,
6290,
18,
60,
3113,
638,
1769,
202,
202,
4406,
60,
18,
3510,
12,
10798,
287,
4109,
1263,
18,
2
] |
|
String keyPass = props.getProperty(prop, ""); | String keyPass = Preferences.getPreference(prop, ""); | private void configureHTTPClient(Properties props) { HTTPClientFactory factory = HTTPClientFactory.getInstance(); String prop = null; String value; int colon; try { // FIXME for some reason, we get "" instead of null for value, // and do not use our default value??? prop = "WebScarab.httpProxy"; value = props.getProperty(prop, ":80"); colon = value.indexOf(":"); factory.setHttpProxy(value.substring(0,colon), Integer.parseInt(value.substring(colon+1))); prop = "WebScarab.httpsProxy"; value = props.getProperty(prop, ":80"); colon = value.indexOf(":"); factory.setHttpsProxy(value.substring(0,colon), Integer.parseInt(value.substring(colon+1))); prop = "WebScarab.noProxy"; value = props.getProperty(prop, ""); factory.setNoProxy(value.split(" *, *")); prop = "WebScarab.clientCertificateFile"; String file = props.getProperty(prop, ""); prop = "WebScarab.keyStorePassword"; String keystorePass = props.getProperty(prop, ""); prop = "WebScarab.keyPassword"; String keyPass = props.getProperty(prop, ""); factory.setClientCertificateFile(file, keystorePass, keyPass); } catch (NumberFormatException nfe) { _logger.warning("Error parsing property " + prop + ": " + nfe); } catch (Exception e) { _logger.warning("Error configuring the HTTPClient property " + prop + ": " + e); } } | 31053 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31053/a5906aa3ab3214cfaa5b20624c4421944b454f3c/Framework.java/clean/src/org/owasp/webscarab/plugin/Framework.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5068,
26211,
12,
2297,
3458,
13,
288,
3639,
22946,
1733,
3272,
273,
22946,
1733,
18,
588,
1442,
5621,
3639,
514,
2270,
273,
446,
31,
3639,
514,
460,
31,
3639,
509,
13336,
31,
3639,
775,
288,
540,
202,
759,
9852,
364,
2690,
3971,
16,
732,
336,
1408,
3560,
434,
446,
364,
460,
16,
540,
202,
759,
471,
741,
486,
999,
3134,
805,
460,
14646,
35,
5411,
2270,
273,
315,
4079,
1541,
297,
378,
18,
2505,
3886,
14432,
5411,
460,
273,
3458,
18,
588,
1396,
12,
5986,
16,
6398,
3672,
8863,
5411,
13336,
273,
460,
18,
31806,
2932,
2773,
1769,
5411,
3272,
18,
542,
2940,
3886,
12,
1132,
18,
28023,
12,
20,
16,
22667,
3631,
2144,
18,
2670,
1702,
12,
1132,
18,
28023,
12,
22667,
15,
21,
3719,
1769,
13491,
2270,
273,
315,
4079,
1541,
297,
378,
18,
4528,
3886,
14432,
5411,
460,
273,
3458,
18,
588,
1396,
12,
5986,
16,
6398,
3672,
8863,
5411,
13336,
273,
460,
18,
31806,
2932,
2773,
1769,
5411,
3272,
18,
542,
22077,
3886,
12,
1132,
18,
28023,
12,
20,
16,
22667,
3631,
2144,
18,
2670,
1702,
12,
1132,
18,
28023,
12,
22667,
15,
21,
3719,
1769,
13491,
2270,
273,
315,
4079,
1541,
297,
378,
18,
2135,
3886,
14432,
5411,
460,
273,
3458,
18,
588,
1396,
12,
5986,
16,
1408,
1769,
5411,
3272,
18,
542,
2279,
3886,
12,
1132,
18,
4939,
2932,
380,
16,
380,
7923,
1769,
13491,
2270,
273,
315,
4079,
1541,
297,
378,
18,
2625,
4719,
812,
14432,
5411,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5068,
26211,
12,
2297,
3458,
13,
288,
3639,
22946,
1733,
3272,
273,
22946,
1733,
18,
588,
1442,
5621,
3639,
514,
2270,
273,
446,
31,
3639,
514,
460,
31,
3639,
509,
13336,
31,
3639,
775,
288,
540,
202,
759,
9852,
364,
2690,
3971,
16,
732,
336,
1408,
3560,
434,
446,
364,
460,
16,
540,
202,
759,
471,
741,
486,
999,
3134,
805,
460,
14646,
35,
5411,
2270,
273,
315,
4079,
1541,
297,
378,
18,
2505,
3886,
14432,
5411,
460,
273,
3458,
18,
588,
1396,
12,
5986,
16,
6398,
3672,
8863,
5411,
13336,
273,
460,
18,
31806,
2932,
2773,
1769,
5411,
3272,
18,
542,
2940,
3886,
12,
1132,
18,
28023,
12,
20,
16,
22667,
3631,
2144,
18,
2670,
2
] |
rewrite.markAsReplaced(ifStatement.getElseStatement(), newElseBlock); | rewrite.markAsReplaced(ifStatement.getElseStatement(), newElseBlock, null); | public void testIfStatementReplaceElse3() throws Exception { IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null); StringBuffer buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class E {\n"); buf.append(" public void foo() {\n"); buf.append(" if (i == 0)\n"); buf.append(" System.beep();\n"); buf.append(" else\n"); buf.append(" hoo(11);\n"); buf.append(" if (i == 0) {\n"); buf.append(" System.beep();\n"); buf.append(" } else\n"); buf.append(" hoo(11);\n"); buf.append(" if (i == 0)\n"); buf.append(" System.beep();\n"); buf.append(" else {\n"); buf.append(" hoo(11);\n"); buf.append(" }\n"); buf.append(" if (i == 0) {\n"); buf.append(" System.beep();\n"); buf.append(" } else {\n"); buf.append(" hoo(11);\n"); buf.append(" }\n"); buf.append(" }\n"); buf.append("}\n"); ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null); CompilationUnit astRoot= createAST(cu); NewASTRewrite rewrite= new NewASTRewrite(astRoot.getAST()); AST ast= astRoot.getAST(); assertTrue("Parse errors", (astRoot.getFlags() & ASTNode.MALFORMED) == 0); TypeDeclaration type= findTypeDeclaration(astRoot, "E"); MethodDeclaration methodDecl= findMethodDeclaration(type, "foo"); Block block= methodDecl.getBody(); List statements= block.statements(); assertTrue("Number of statements not 4", statements.size() == 4); { // replace then statement by block , replace else with if statement (no block) IfStatement ifStatement= (IfStatement) statements.get(0); ASTNode statement= ifStatement.getThenStatement(); Block newBody= ast.newBlock(); ASTNode newStatement= rewrite.createMovePlaceholder(statement); newBody.statements().add(newStatement); rewrite.markAsReplaced(statement, newBody); IfStatement newElseBlock= ast.newIfStatement(); newElseBlock.setExpression(ast.newBooleanLiteral(true)); Statement newBody2= (Statement) rewrite.createMovePlaceholder(ifStatement.getElseStatement()); newElseBlock.setThenStatement(newBody2); rewrite.markAsReplaced(ifStatement.getElseStatement(), newElseBlock); } { // replace then statement by block, replace else with if statement (no block) IfStatement ifStatement= (IfStatement) statements.get(1); Block body= (Block) ifStatement.getThenStatement(); ASTNode statement= (ASTNode) body.statements().get(0); ASTNode newBody= rewrite.createMovePlaceholder(statement); rewrite.markAsReplaced(body, newBody); IfStatement newElseBlock= ast.newIfStatement(); newElseBlock.setExpression(ast.newBooleanLiteral(true)); Statement newBody2= (Statement) rewrite.createMovePlaceholder(ifStatement.getElseStatement()); newElseBlock.setThenStatement(newBody2); rewrite.markAsReplaced(ifStatement.getElseStatement(), newElseBlock); } { // replace then block by statement, replace else with if statement (block) IfStatement ifStatement= (IfStatement) statements.get(2); ASTNode statement= ifStatement.getThenStatement(); Block newBody= ast.newBlock(); ASTNode newStatement= rewrite.createMovePlaceholder(statement); newBody.statements().add(newStatement); rewrite.markAsReplaced(statement, newBody); IfStatement newElseBlock= ast.newIfStatement(); newElseBlock.setExpression(ast.newBooleanLiteral(true)); Statement newBody2= (Statement) rewrite.createMovePlaceholder(ifStatement.getElseStatement()); newElseBlock.setThenStatement(newBody2); rewrite.markAsReplaced(ifStatement.getElseStatement(), newElseBlock); } { // replace then block by statement, replace else with if statement (block) IfStatement ifStatement= (IfStatement) statements.get(3); Block body= (Block) ifStatement.getThenStatement(); ASTNode statement= (ASTNode) body.statements().get(0); ASTNode newBody= rewrite.createMovePlaceholder(statement); rewrite.markAsReplaced(body, newBody); IfStatement newElseBlock= ast.newIfStatement(); newElseBlock.setExpression(ast.newBooleanLiteral(true)); Statement newBody2= (Statement) rewrite.createMovePlaceholder(ifStatement.getElseStatement()); newElseBlock.setThenStatement(newBody2); rewrite.markAsReplaced(ifStatement.getElseStatement(), newElseBlock); } String preview= evaluateRewrite(cu, rewrite); buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class E {\n"); buf.append(" public void foo() {\n"); buf.append(" if (i == 0) {\n"); buf.append(" System.beep();\n"); buf.append(" } else if (true)\n"); buf.append(" hoo(11);\n"); buf.append(" if (i == 0)\n"); buf.append(" System.beep();\n"); buf.append(" else if (true)\n"); buf.append(" hoo(11);\n"); buf.append(" if (i == 0) {\n"); buf.append(" System.beep();\n"); buf.append(" } else if (true) {\n"); buf.append(" hoo(11);\n"); buf.append(" }\n"); buf.append(" if (i == 0)\n"); buf.append(" System.beep();\n"); buf.append(" else if (true) {\n"); buf.append(" hoo(11);\n"); buf.append(" }\n"); buf.append(" }\n"); buf.append("}\n"); assertEqualString(preview, buf.toString()); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/57e3aa581b2bf9d9c15ee310aa69c71cec638595/ASTRewritingStatementsTest.java/clean/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2047,
3406,
5729,
12427,
23,
1435,
1216,
1185,
288,
202,
202,
45,
2261,
7456,
2298,
21,
33,
284,
1830,
3899,
18,
2640,
2261,
7456,
2932,
3813,
21,
3113,
629,
16,
446,
1769,
202,
202,
780,
1892,
1681,
33,
394,
6674,
5621,
202,
202,
4385,
18,
6923,
2932,
5610,
1842,
21,
9747,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
482,
667,
512,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
565,
1071,
918,
8431,
1435,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
3639,
309,
261,
77,
422,
374,
5153,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
5411,
2332,
18,
2196,
881,
5621,
64,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
3639,
469,
64,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
5411,
366,
5161,
12,
2499,
20472,
82,
8863,
6862,
202,
4385,
18,
6923,
2932,
3639,
309,
261,
77,
422,
374,
13,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
5411,
2332,
18,
2196,
881,
5621,
64,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
3639,
289,
469,
64,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
5411,
366,
5161,
12,
2499,
20472,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
3639,
309,
261,
77,
422,
374,
5153,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
5411,
2332,
18,
2196,
881,
5621,
64,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
3639,
469,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
5411,
366,
5161,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2047,
3406,
5729,
12427,
23,
1435,
1216,
1185,
288,
202,
202,
45,
2261,
7456,
2298,
21,
33,
284,
1830,
3899,
18,
2640,
2261,
7456,
2932,
3813,
21,
3113,
629,
16,
446,
1769,
202,
202,
780,
1892,
1681,
33,
394,
6674,
5621,
202,
202,
4385,
18,
6923,
2932,
5610,
1842,
21,
9747,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
482,
667,
512,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
565,
1071,
918,
8431,
1435,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
3639,
309,
261,
77,
422,
374,
5153,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
5411,
2332,
18,
2196,
881,
5621,
64,
82,
8863,
202,
202,
4385,
18,
6923,
2
] |
if (directoryNames == null) directoryNames = new String[0]; | if (directoryNames == null) { directoryNames = new String[0]; } | protected void internalSaveWidgetValues() { // update directory names history IDialogSettings settings = getDialogSettings(); if (settings != null) { String[] directoryNames = settings .getArray(STORE_DESTINATION_NAMES_ID); if (directoryNames == null) directoryNames = new String[0]; directoryNames = addToHistory(directoryNames, getDestinationValue()); settings.put(STORE_DESTINATION_NAMES_ID, directoryNames); settings.put(STORE_CREATE_STRUCTURE_ID, createDirectoryStructureButton.getSelection()); settings.put(STORE_COMPRESS_CONTENTS_ID, compressContentsCheckbox .getSelection()); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/WizardArchiveFileResourceExportPage1.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardArchiveFileResourceExportPage1.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2713,
4755,
4609,
1972,
1435,
288,
3639,
368,
1089,
1867,
1257,
4927,
3639,
1599,
3529,
2628,
1947,
273,
31774,
2628,
5621,
3639,
309,
261,
4272,
480,
446,
13,
288,
5411,
514,
8526,
1867,
1557,
273,
1947,
10792,
263,
588,
1076,
12,
13651,
67,
29451,
67,
16257,
67,
734,
1769,
5411,
309,
261,
5149,
1557,
422,
446,
13,
7734,
1867,
1557,
273,
394,
514,
63,
20,
15533,
5411,
1867,
1557,
273,
9604,
5623,
12,
5149,
1557,
16,
17611,
620,
10663,
5411,
1947,
18,
458,
12,
13651,
67,
29451,
67,
16257,
67,
734,
16,
1867,
1557,
1769,
5411,
1947,
18,
458,
12,
13651,
67,
9344,
67,
13915,
4830,
67,
734,
16,
10792,
28430,
6999,
3616,
18,
588,
6233,
10663,
5411,
1947,
18,
458,
12,
13651,
67,
4208,
22526,
67,
9689,
55,
67,
734,
16,
8099,
6323,
21272,
10792,
263,
588,
6233,
10663,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
918,
2713,
4755,
4609,
1972,
1435,
288,
3639,
368,
1089,
1867,
1257,
4927,
3639,
1599,
3529,
2628,
1947,
273,
31774,
2628,
5621,
3639,
309,
261,
4272,
480,
446,
13,
288,
5411,
514,
8526,
1867,
1557,
273,
1947,
10792,
263,
588,
1076,
12,
13651,
67,
29451,
67,
16257,
67,
734,
1769,
5411,
309,
261,
5149,
1557,
422,
446,
13,
7734,
1867,
1557,
273,
394,
514,
63,
20,
15533,
5411,
1867,
1557,
273,
9604,
5623,
12,
5149,
1557,
16,
17611,
620,
10663,
5411,
1947,
18,
458,
12,
13651,
67,
29451,
67,
16257,
67,
734,
16,
1867,
1557,
1769,
5411,
1947,
18,
458,
12,
13651,
67,
9344,
67,
13915,
4830,
67,
734,
16,
10792,
28430,
6999,
3616,
18,
588,
6233,
2
] |
if (TDEBUG) trace(IN, "blockDecrypt("+in+", "+inOffset+", "+sessionKey+")"); | if (TDEBUG) trace(IN, "blockDecrypt("+in+", "+inOffset+", "+sessionKey+ ')'); | blockDecrypt (byte[] in, byte[] result, int inOffset, Object sessionKey) {if (TDEBUG) trace(IN, "blockDecrypt("+in+", "+inOffset+", "+sessionKey+")"); Object[] sk = (Object[]) sessionKey; // extract S-box and session key int[] sBox = (int[]) sk[0]; int[] sKey = (int[]) sk[1];if (TDEBUG && (debuglevel > 6)) System.out.println("CT="+toString(in, inOffset, BLOCK_SIZE)); int x2 = (in[inOffset++] & 0xFF) | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 24; int x3 = (in[inOffset++] & 0xFF) | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 24; int x0 = (in[inOffset++] & 0xFF) | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 24; int x1 = (in[inOffset++] & 0xFF) | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 24; x2 ^= sKey[OUTPUT_WHITEN ]; x3 ^= sKey[OUTPUT_WHITEN + 1]; x0 ^= sKey[OUTPUT_WHITEN + 2]; x1 ^= sKey[OUTPUT_WHITEN + 3];if (TDEBUG && (debuglevel > 6)) System.out.println("CTw="+intToString(x2)+intToString(x3)+intToString(x0)+intToString(x1)); int k = ROUND_SUBKEYS + 2*ROUNDS - 1; int t0, t1; for (int R = 0; R < ROUNDS; R += 2) { t0 = Fe32_0( sBox, x2 ); t1 = Fe32_3( sBox, x3 ); x1 ^= t0 + 2*t1 + sKey[k--]; x1 = x1 >>> 1 | x1 << 31; x0 = x0 << 1 | x0 >>> 31; x0 ^= t0 + t1 + sKey[k--];if (TDEBUG && (debuglevel > 6)) System.out.println("PT"+(ROUNDS-R)+"="+intToString(x2)+intToString(x3)+intToString(x0)+intToString(x1)); t0 = Fe32_0( sBox, x0 ); t1 = Fe32_3( sBox, x1 ); x3 ^= t0 + 2*t1 + sKey[k--]; x3 = x3 >>> 1 | x3 << 31; x2 = x2 << 1 | x2 >>> 31; x2 ^= t0 + t1 + sKey[k--];if (TDEBUG && (debuglevel > 6)) System.out.println("PT"+(ROUNDS-R-1)+"="+intToString(x2)+intToString(x3)+intToString(x0)+intToString(x1)); } x0 ^= sKey[INPUT_WHITEN ]; x1 ^= sKey[INPUT_WHITEN + 1]; x2 ^= sKey[INPUT_WHITEN + 2]; x3 ^= sKey[INPUT_WHITEN + 3];if (TDEBUG && (debuglevel > 6)) System.out.println("PTw="+intToString(x2)+intToString(x3)+intToString(x0)+intToString(x1)); result[0] = (byte) x0; result[1] = (byte)(x0 >>> 8); result[2] = (byte)(x0 >>> 16); result[3] = (byte)(x0 >>> 24); result[4] = (byte) x1; result[5] = (byte)(x1 >>> 8); result[6] = (byte)(x1 >>> 16); result[7] = (byte)(x1 >>> 24); result[8] = (byte) x2; result[9] = (byte)(x2 >>> 8); result[10] = (byte)(x2 >>> 16); result[11] = (byte)(x2 >>> 24); result[12] = (byte) x3; result[13] = (byte)(x3 >>> 8); result[14] = (byte)(x3 >>> 16); result[15] = (byte)(x3 >>> 24);if (TDEBUG && (debuglevel > 6)) {System.out.println("PT="+toString(result));System.out.println();}if (TDEBUG) trace(OUT, "blockDecrypt()"); } | 45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/62fd59041864b4ed1f43adc676de6bfb5ea977f3/Twofish_Algorithm.java/clean/src/freenet/crypt/ciphers/Twofish_Algorithm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1203,
17306,
261,
7229,
8526,
316,
16,
1160,
8526,
563,
16,
509,
316,
2335,
16,
1033,
26864,
13,
288,
430,
261,
56,
9394,
13,
2606,
12,
706,
16,
315,
2629,
17306,
2932,
15,
267,
15,
3113,
13773,
267,
2335,
15,
3113,
13773,
3184,
653,
15,
5777,
1769,
1377,
1033,
8526,
4343,
273,
261,
921,
63,
5717,
26864,
31,
368,
2608,
348,
17,
2147,
471,
1339,
498,
1377,
509,
8526,
272,
3514,
273,
261,
474,
63,
5717,
4343,
63,
20,
15533,
1377,
509,
8526,
15447,
273,
261,
474,
63,
5717,
4343,
63,
21,
15533,
430,
261,
56,
9394,
597,
261,
4148,
2815,
405,
1666,
3719,
2332,
18,
659,
18,
8222,
2932,
1268,
1546,
15,
10492,
12,
267,
16,
316,
2335,
16,
14073,
67,
4574,
10019,
1377,
509,
619,
22,
273,
261,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
4202,
571,
9079,
261,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
2296,
225,
1725,
571,
9079,
261,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
2296,
2872,
571,
9079,
261,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
2296,
4248,
31,
1377,
509,
619,
23,
273,
261,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
4202,
571,
9079,
261,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
2296,
225,
1725,
571,
9079,
261,
267,
63,
267,
2335,
9904,
65,
473,
374,
6356,
13,
2296,
2872,
571,
9079,
261,
267,
63,
267,
2335,
9904,
65,
473,
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,
1203,
17306,
261,
7229,
8526,
316,
16,
1160,
8526,
563,
16,
509,
316,
2335,
16,
1033,
26864,
13,
288,
430,
261,
56,
9394,
13,
2606,
12,
706,
16,
315,
2629,
17306,
2932,
15,
267,
15,
3113,
13773,
267,
2335,
15,
3113,
13773,
3184,
653,
15,
5777,
1769,
1377,
1033,
8526,
4343,
273,
261,
921,
63,
5717,
26864,
31,
368,
2608,
348,
17,
2147,
471,
1339,
498,
1377,
509,
8526,
272,
3514,
273,
261,
474,
63,
5717,
4343,
63,
20,
15533,
1377,
509,
8526,
15447,
273,
261,
474,
63,
5717,
4343,
63,
21,
15533,
430,
261,
56,
9394,
597,
261,
4148,
2815,
405,
1666,
3719,
2332,
18,
659,
18,
8222,
2932,
1268,
1546,
15,
10492,
12,
267,
16,
316,
2
] |
setOnclick((String) evalAttr("onclick", getOnclick(), | setOnclick((String) evalAttr("onclick", getOnclickExpr(), | private void evaluateExpressions() throws JspException { try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setMultiple((String) evalAttr("multiple", getMultiple(), String.class)); } catch (NullAttributeException ex) { setMultiple(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setSize((String) evalAttr("size", getSize(), String.class)); } catch (NullAttributeException ex) { setSize(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/ELSelectTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELSelectTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
653,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
8853,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
15034,
12443,
12,
5507,
13,
5302,
3843,
2932,
19626,
3113,
8088,
329,
4742,
9334,
4766,
6647,
3411,
18,
1106,
13,
2934,
15604,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
15034,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8438,
12443,
780,
13,
5302,
3843,
2932,
9622,
3113,
30226,
2444,
9334,
4766,
1850,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
8438,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
529,
3113,
1723,
9334,
514,
18,
1106,
10019,
3639,
289,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
653,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
2
] |
public ASTNode processRange(ASTNode element, int startOffset, int endOffset) { FileType fileType = myHelper.getFileType(); if (useNewFormatter(fileType)) { PseudoTextBuilder pseudoTextBuilder = ((LanguageFileType)fileType).getLanguage().getFormatter(); if (pseudoTextBuilder == null) { return element; } else { final long start = System.currentTimeMillis(); try { PseudoText pseudoText = pseudoTextBuilder.build(myHelper.getProject(), mySettings, SourceTreeToPsiMap.treeElementToPsi(element)); GeneralCodeFormatter.createSimpleInstance(pseudoText, mySettings, fileType, startOffset, endOffset).format(); } catch (Exception e) { LOG.error(e); } //System.out.println("Time to reformat: " + (System.currentTimeMillis() - start)); formatComments(element, startOffset, endOffset); return element; } } final TextRange range = element.getTextRange(); final int elementStartOffset = range.getStartOffset(); return processRange(element, new int[]{startOffset - elementStartOffset, endOffset - elementStartOffset}); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/684e19353819557fb6e0c3dcd127af4d3a5851d8/CodeFormatterFacade.java/buggy/source/com/intellij/psi/impl/source/codeStyle/CodeFormatterFacade.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9053,
907,
2567,
2655,
12,
9053,
907,
2956,
16,
474,
1937,
2335,
16,
474,
409,
2335,
15329,
28941,
768,
559,
33,
4811,
2276,
18,
588,
28941,
5621,
430,
12,
1202,
1908,
5074,
12,
768,
559,
3719,
95,
26716,
1528,
1263,
26023,
1528,
1263,
33,
12443,
3779,
28941,
13,
768,
559,
2934,
588,
3779,
7675,
588,
5074,
5621,
430,
12,
26023,
1528,
1263,
631,
2011,
15329,
2463,
2956,
31,
97,
12107,
95,
926,
454,
932,
1937,
33,
3163,
18,
2972,
28512,
5621,
698,
95,
26716,
1528,
26023,
1528,
33,
26023,
1528,
1263,
18,
3510,
12,
4811,
2276,
18,
588,
4109,
9334,
4811,
2628,
16,
1830,
2471,
774,
52,
7722,
863,
18,
3413,
1046,
774,
52,
7722,
12,
2956,
10019,
12580,
1085,
5074,
18,
2640,
5784,
1442,
12,
26023,
1528,
16,
4811,
2628,
16,
768,
559,
16,
1937,
2335,
16,
409,
2335,
2934,
2139,
5621,
97,
14683,
12,
503,
73,
15329,
4842,
18,
1636,
12,
73,
1769,
97,
759,
3163,
18,
659,
18,
8222,
2932,
10178,
278,
479,
2139,
2773,
15,
12,
3163,
18,
2972,
28512,
1435,
17,
1937,
10019,
2139,
9051,
12,
2956,
16,
1937,
2335,
16,
409,
2335,
1769,
2463,
2956,
31,
9090,
6385,
1528,
54,
11455,
726,
33,
2956,
18,
588,
1528,
2655,
5621,
6385,
474,
2956,
1685,
2335,
33,
3676,
18,
588,
1685,
2335,
5621,
2463,
2567,
2655,
12,
2956,
16,
2704,
474,
63,
7073,
1937,
2335,
17,
2956,
1685,
2335,
16,
409,
2335,
17,
2956,
1685,
2335,
22938,
97,
2,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9053,
907,
2567,
2655,
12,
9053,
907,
2956,
16,
474,
1937,
2335,
16,
474,
409,
2335,
15329,
28941,
768,
559,
33,
4811,
2276,
18,
588,
28941,
5621,
430,
12,
1202,
1908,
5074,
12,
768,
559,
3719,
95,
26716,
1528,
1263,
26023,
1528,
1263,
33,
12443,
3779,
28941,
13,
768,
559,
2934,
588,
3779,
7675,
588,
5074,
5621,
430,
12,
26023,
1528,
1263,
631,
2011,
15329,
2463,
2956,
31,
97,
12107,
95,
926,
454,
932,
1937,
33,
3163,
18,
2972,
28512,
5621,
698,
95,
26716,
1528,
26023,
1528,
33,
26023,
1528,
1263,
18,
3510,
12,
4811,
2276,
18,
588,
4109,
9334,
4811,
2628,
16,
1830,
2471,
774,
52,
7722,
863,
18,
3413,
1046,
774,
52,
7722,
12,
2956,
10019,
2
] |
||
Utilities.invokeAndWait(new SRunnable() { | if (! projDocs.isEmpty()) Utilities.invokeAndWait(new SRunnable() { | private File[] _loadProject(ProjectFileIR ir, File projectFile) throws IOException { final DocFile[] srcFiles = ir.getSourceFiles(); final DocFile[] auxFiles = ir.getAuxiliaryFiles(); final File buildDir = ir.getBuildDirectory(); final File workDir = ir.getWorkingDirectory(); final File mainClass = ir.getMainClass(); final File[] projectClassPaths = ir.getClassPaths(); final File createJarFile = ir.getCreateJarFile(); int createJarFlags = ir.getCreateJarFlags(); final String projfilepath = projectFile.getCanonicalPath(); final List<OpenDefinitionsDocument> oldProjDocs = getProjectDocuments(); final FileGroupingState oldState = _state; // Utilities.showDebug("openProject called with file " + projectFile); // Sets up the filters that cause documents to load in differentnsections of the tree. The names of these // sections are set from the methods such as getSourceBinTitle(). Changing this changes what is considered // source, aux, and external. List<Pair<String, INavigatorItemFilter<OpenDefinitionsDocument>>> l = new LinkedList<Pair<String, INavigatorItemFilter<OpenDefinitionsDocument>>>(); l.add(new Pair<String, INavigatorItemFilter<OpenDefinitionsDocument>>(getSourceBinTitle(), new INavigatorItemFilter<OpenDefinitionsDocument>() { public boolean accept(OpenDefinitionsDocument n) { return n.isInProjectPath(); } })); l.add(new Pair<String, INavigatorItemFilter<OpenDefinitionsDocument>>(getAuxiliaryBinTitle(), new INavigatorItemFilter<OpenDefinitionsDocument>() { public boolean accept(OpenDefinitionsDocument n) { return n.isAuxiliaryFile(); } })); l.add(new Pair<String, INavigatorItemFilter<OpenDefinitionsDocument>>(getExternalBinTitle(), new INavigatorItemFilter<OpenDefinitionsDocument>() { public boolean accept(OpenDefinitionsDocument d) { return !(d.inProject() || d.isAuxiliaryFile()) || d.isUntitled(); } })); IDocumentNavigator<OpenDefinitionsDocument> newNav = new AWTContainerNavigatorFactory<OpenDefinitionsDocument>().makeTreeNavigator(projfilepath, getDocumentNavigator(), l); setDocumentNavigator(newNav); synchronized(_auxiliaryFiles) { _auxiliaryFiles.clear(); for (File file: auxFiles) { _auxiliaryFiles.add(file); } } ClassPathVector extraClassPaths = new ClassPathVector(); for (File f : projectClassPaths) { extraClassPaths.add(f); } setFileGroupingState(makeProjectFileGroupingState(mainClass, buildDir, workDir, projectFile, srcFiles, extraClassPaths, createJarFile, createJarFlags)); resetInteractions(getWorkingDirectory()); // Shut down debugger and reset interactions pane in new working directory ArrayList<File> projFiles = new ArrayList<File>(); File active = null; for (DocFile f: srcFiles) { File file = f; if (f.lastModified() > f.getSavedModDate()) file = new File(f.getPath()); if (f.isActive() && active == null) active = file; else projFiles.add(file); } for (DocFile f: auxFiles) { File file = f; if (f.lastModified() > f.getSavedModDate()) file = new File(f.getPath()); if (f.isActive() && active == null) active = file; else projFiles.add(file); } // Insert active file as last file on list. if (active != null) projFiles.add(active); // Utilities.showDebug("Project files are: " + projFiles); final List<OpenDefinitionsDocument> projDocs = getProjectDocuments(); // opened documents in the project source tree // Keep all nonproject files open other than a new file (untitled). External files in the previous // project may become project files in the new project and must be closed while external files in the // previous project that are still external to the new project should be kept open (except for a new file). Utilities.invokeAndWait(new SRunnable() { public void run() { for (OpenDefinitionsDocument d: projDocs) { if (oldState.inProject(d.file())) closeFile(d); else { try { final String path = fixPathForNavigator(d.getFile().getCanonicalPath()); _documentNavigator.refreshDocument(d, path); // this operation must run in event thread } catch(IOException e) { /* Do nothing; findbugs signals a bug unless this catch clause spans more than two lines */ } } } } });// Utilities.showDebug("Preparing to refresh navigator GUI"); // call on the GUI to finish up by opening the files and making necessary gui component changes final File[] filesToOpen = projFiles.toArray(new File[projFiles.size()]); _notifier.projectOpened(projectFile, new FileOpenSelector() { public File[] getFiles() { return filesToOpen; } }); if (_documentNavigator instanceof JTreeSortNavigator) { ((JTreeSortNavigator<?>)_documentNavigator).collapsePaths(ir.getCollapsedPaths()); } return srcFiles; // Unnecessarily returns src files in keeping with the previous interface. } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/4e9024f79382344df7a15499ea8826062a420a5f/AbstractGlobalModel.java/clean/drjava/src/edu/rice/cs/drjava/model/AbstractGlobalModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1387,
8526,
389,
945,
4109,
12,
4109,
812,
7937,
9482,
16,
1387,
1984,
812,
13,
1216,
1860,
288,
3639,
727,
3521,
812,
8526,
1705,
2697,
273,
9482,
18,
588,
1830,
2697,
5621,
565,
727,
3521,
812,
8526,
9397,
2697,
273,
9482,
18,
588,
21981,
20606,
2697,
5621,
565,
727,
1387,
1361,
1621,
273,
9482,
18,
588,
3116,
2853,
5621,
565,
727,
1387,
1440,
1621,
273,
9482,
18,
588,
14836,
2853,
5621,
565,
727,
1387,
2774,
797,
273,
9482,
18,
588,
6376,
797,
5621,
565,
727,
1387,
8526,
1984,
797,
4466,
273,
9482,
18,
588,
797,
4466,
5621,
565,
727,
1387,
752,
10813,
812,
225,
273,
9482,
18,
588,
1684,
10813,
812,
5621,
565,
509,
752,
10813,
5094,
273,
9482,
18,
588,
1684,
10813,
5094,
5621,
3639,
727,
514,
10296,
10561,
273,
1984,
812,
18,
588,
15512,
743,
5621,
3639,
727,
987,
32,
3678,
7130,
2519,
34,
1592,
626,
78,
12656,
273,
11080,
12922,
5621,
565,
727,
1387,
21014,
1119,
26440,
273,
389,
2019,
31,
565,
368,
565,
26703,
18,
4500,
2829,
2932,
3190,
4109,
2566,
598,
585,
315,
397,
1984,
812,
1769,
3639,
368,
11511,
731,
326,
3415,
716,
4620,
7429,
358,
1262,
316,
3775,
82,
11657,
434,
326,
2151,
18,
225,
1021,
1257,
434,
4259,
377,
368,
7178,
854,
444,
628,
326,
2590,
4123,
487,
7889,
9913,
4247,
7675,
225,
1680,
18183,
333,
3478,
4121,
353,
7399,
377,
368,
1084,
16,
9397,
16,
471,
3903,
18,
3639,
987,
32,
4154,
32,
780,
16,
2120,
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,
1387,
8526,
389,
945,
4109,
12,
4109,
812,
7937,
9482,
16,
1387,
1984,
812,
13,
1216,
1860,
288,
3639,
727,
3521,
812,
8526,
1705,
2697,
273,
9482,
18,
588,
1830,
2697,
5621,
565,
727,
3521,
812,
8526,
9397,
2697,
273,
9482,
18,
588,
21981,
20606,
2697,
5621,
565,
727,
1387,
1361,
1621,
273,
9482,
18,
588,
3116,
2853,
5621,
565,
727,
1387,
1440,
1621,
273,
9482,
18,
588,
14836,
2853,
5621,
565,
727,
1387,
2774,
797,
273,
9482,
18,
588,
6376,
797,
5621,
565,
727,
1387,
8526,
1984,
797,
4466,
273,
9482,
18,
588,
797,
4466,
5621,
565,
727,
1387,
752,
10813,
812,
225,
273,
9482,
18,
588,
1684,
10813,
812,
5621,
565,
509,
752,
10813,
5094,
2
] |
case Token.REF_CALL : | private static void dumpICode(InterpreterData idata) { if (!Token.printICode) { return; } int iCodeLength = idata.itsICodeTop; byte iCode[] = idata.itsICode; String[] strings = idata.itsStringTable; PrintStream out = System.out; out.println("ICode dump, for " + idata.itsName + ", length = " + iCodeLength); out.println("MaxStack = " + idata.itsMaxStack); int indexReg = 0; for (int pc = 0; pc < iCodeLength; ) { out.flush(); out.print(" [" + pc + "] "); int token = iCode[pc]; int icodeLength = bytecodeSpan(token); String tname = bytecodeName(token); int old_pc = pc; ++pc; switch (token) { default: if (icodeLength != 1) Kit.codeBug(); out.println(tname); break; case Icode_GOSUB : case Token.GOTO : case Token.IFEQ : case Token.IFNE : case Icode_IFEQ_POP : case Icode_LEAVEDQ : { int newPC = pc + getShort(iCode, pc) - 1; out.println(tname + " " + newPC); pc += 2; break; } case Icode_VAR_INC_DEC : case Icode_NAME_INC_DEC : case Icode_PROP_INC_DEC : case Icode_ELEM_INC_DEC : case Icode_REF_INC_DEC: { int incrDecrType = iCode[pc]; out.println(tname + " " + incrDecrType); ++pc; break; } case Icode_CALLSPECIAL : { int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int line = getShort(iCode, pc+2); out.println(tname+" "+callType+" "+isNew+" "+indexReg+" "+line); pc += 4; break; } case Token.REGEXP : out.println(tname+" "+idata.itsRegExpLiterals[indexReg]); break; case Token.OBJECTLIT : case Icode_SPARE_ARRAYLIT : out.println(tname+" "+idata.literalIds[indexReg]); break; case Icode_CLOSURE_EXPR : case Icode_CLOSURE_STMT : out.println(tname+" "+idata.itsNestedFunctions[indexReg]); break; case Token.CALL : case Token.NEW : case Token.REF_CALL : out.println(tname+' '+indexReg); pc += 2; break; case Token.THROW : { int line = getShort(iCode, pc); out.println(tname + " : " + line); pc += 2; break; } case Icode_SHORTNUMBER : { int value = getShort(iCode, pc); out.println(tname + " " + value); pc += 2; break; } case Icode_INTNUMBER : { int value = getInt(iCode, pc); out.println(tname + " " + value); pc += 4; break; } case Token.NUMBER : { double value = idata.itsDoubleTable[indexReg]; out.println(tname + " " + value); pc += 2; break; } case Icode_LINE : { int line = getShort(iCode, pc); out.println(tname + " : " + line); pc += 2; break; } case Icode_REG_STR1: { String str = strings[0xFF & iCode[pc]]; out.println(tname + " \"" + str + '"'); ++pc; break; } case Icode_REG_STR2: { String str = strings[getIndex(iCode, pc)]; out.println(tname + " \"" + str + '"'); pc += 2; break; } case Icode_REG_STR4: { String str = strings[getInt(iCode, pc)]; out.println(tname + " \"" + str + '"'); pc += 4; break; } case Icode_REG_IND1: { indexReg = 0xFF & iCode[pc]; out.println(tname+" "+indexReg); ++pc; break; } case Icode_REG_IND2: { indexReg = getIndex(iCode, pc); out.println(tname+" "+indexReg); pc += 2; break; } case Icode_REG_IND4: { indexReg = getInt(iCode, pc); out.println(tname+" "+indexReg); pc += 4; break; } case Icode_GETVAR1: case Icode_SETVAR1: indexReg = iCode[pc]; out.println(tname+" "+indexReg); ++pc; break; } if (old_pc + icodeLength != pc) Kit.codeBug(); } int[] table = idata.itsExceptionTable; if (table != null) { out.println("Exception handlers: " +table.length / EXCEPTION_SLOT_SIZE); for (int i = 0; i != table.length; i += EXCEPTION_SLOT_SIZE) { int tryStart = table[i + EXCEPTION_TRY_START_SLOT]; int tryEnd = table[i + EXCEPTION_TRY_END_SLOT]; int catchStart = table[i + EXCEPTION_CATCH_SLOT]; int finallyStart = table[i + EXCEPTION_FINALLY_SLOT]; int withDepth = table[i + EXCEPTION_WITH_DEPTH_SLOT]; int exceptionLocal = table[i + EXCEPTION_LOCAL_SLOT]; out.println(" tryStart="+tryStart+" tryEnd="+tryEnd +" catchStart="+catchStart +" finallyStart="+finallyStart +" withDepth="+withDepth +" exceptionLocal="+exceptionLocal); } } out.flush(); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/455f6bfb19128ad0a276b4b3c1f15ede63a2041d/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4657,
45,
1085,
12,
30010,
751,
612,
396,
13,
565,
288,
3639,
309,
16051,
1345,
18,
1188,
45,
1085,
13,
288,
5411,
327,
31,
3639,
289,
3639,
509,
277,
1085,
1782,
273,
612,
396,
18,
1282,
45,
1085,
3401,
31,
3639,
1160,
277,
1085,
8526,
273,
612,
396,
18,
1282,
45,
1085,
31,
3639,
514,
8526,
2064,
273,
612,
396,
18,
1282,
780,
1388,
31,
3639,
21677,
596,
273,
2332,
18,
659,
31,
3639,
596,
18,
8222,
2932,
45,
1085,
4657,
16,
364,
315,
397,
612,
396,
18,
1282,
461,
10792,
397,
3104,
769,
273,
315,
397,
277,
1085,
1782,
1769,
3639,
596,
18,
8222,
2932,
2747,
2624,
273,
315,
397,
612,
396,
18,
1282,
2747,
2624,
1769,
3639,
509,
770,
1617,
273,
374,
31,
3639,
364,
261,
474,
6125,
273,
374,
31,
6125,
411,
277,
1085,
1782,
31,
262,
288,
5411,
596,
18,
11330,
5621,
5411,
596,
18,
1188,
2932,
8247,
397,
6125,
397,
9850,
315,
1769,
5411,
509,
1147,
273,
277,
1085,
63,
2436,
15533,
5411,
509,
277,
710,
1782,
273,
22801,
6952,
12,
2316,
1769,
5411,
514,
27829,
273,
22801,
461,
12,
2316,
1769,
5411,
509,
1592,
67,
2436,
273,
6125,
31,
5411,
965,
2436,
31,
5411,
1620,
261,
2316,
13,
288,
2868,
805,
30,
7734,
309,
261,
3487,
1782,
480,
404,
13,
1475,
305,
18,
710,
19865,
5621,
7734,
596,
18,
8222,
12,
88,
529,
1769,
7734,
898,
31,
2868,
648,
467,
710,
67,
43,
4618,
3457,
294,
2868,
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,
4657,
45,
1085,
12,
30010,
751,
612,
396,
13,
565,
288,
3639,
309,
16051,
1345,
18,
1188,
45,
1085,
13,
288,
5411,
327,
31,
3639,
289,
3639,
509,
277,
1085,
1782,
273,
612,
396,
18,
1282,
45,
1085,
3401,
31,
3639,
1160,
277,
1085,
8526,
273,
612,
396,
18,
1282,
45,
1085,
31,
3639,
514,
8526,
2064,
273,
612,
396,
18,
1282,
780,
1388,
31,
3639,
21677,
596,
273,
2332,
18,
659,
31,
3639,
596,
18,
8222,
2932,
45,
1085,
4657,
16,
364,
315,
397,
612,
396,
18,
1282,
461,
10792,
397,
3104,
769,
273,
315,
397,
277,
1085,
1782,
1769,
3639,
596,
18,
8222,
2932,
2747,
2624,
273,
315,
397,
612,
396,
18,
1282,
2
] |
|
while (termDocs.next()) { retArray[termDocs.doc()] = termval; | while (termDocs.next ()) { retArray[termDocs.doc ()] = termval; | static ScoreDocLookupComparator comparator (final IndexReader reader, final TermEnum enumerator, final String field) throws IOException { return new ScoreDocLookupComparator () { protected final float[] fieldOrder = generateSortIndex(); protected final float[] generateSortIndex() throws IOException { float[] retArray = new float[reader.maxDoc()]; TermDocs termDocs = reader.termDocs (); try { do { Term term = enumerator.term(); if (term.field() != field) break; float termval = Float.parseFloat (term.text()); termDocs.seek (enumerator); while (termDocs.next()) { retArray[termDocs.doc()] = termval; } } while (enumerator.next()); } finally { termDocs.close(); } return retArray; } public final int compare (final ScoreDoc i, final ScoreDoc j) { final float fi = fieldOrder[i.doc]; final float fj = fieldOrder[j.doc]; if (fi < fj) return -1; if (fi > fj) return 1; return 0; } public final int compareReverse (final ScoreDoc i, final ScoreDoc j) { final float fi = fieldOrder[i.doc]; final float fj = fieldOrder[j.doc]; if (fi > fj) return -1; if (fi < fj) return 1; return 0; } public final boolean sizeMatches (final int n) { return fieldOrder.length == n; } public Object sortValue (final ScoreDoc i) { return new Float (fieldOrder[i.doc]); } public int sortType() { return SortField.FLOAT; } }; } | 1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/60f1d192c7fe49cba55432569ed988099f4de5e4/FloatSortedHitQueue.java/buggy/src/java/org/apache/lucene/search/FloatSortedHitQueue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
20671,
1759,
6609,
5559,
8862,
261,
6385,
3340,
2514,
2949,
16,
727,
6820,
3572,
24679,
16,
727,
514,
652,
13,
202,
15069,
1860,
288,
202,
202,
2463,
394,
20671,
1759,
6609,
5559,
1832,
288,
1082,
202,
1117,
727,
1431,
8526,
652,
2448,
273,
2103,
4416,
1016,
5621,
1082,
202,
1117,
727,
1431,
8526,
2103,
4416,
1016,
1435,
1082,
202,
15069,
1860,
288,
9506,
202,
5659,
8526,
325,
1076,
273,
394,
1431,
63,
10530,
18,
1896,
1759,
1435,
15533,
9506,
202,
4065,
12656,
2481,
12656,
273,
2949,
18,
6408,
12656,
261,
1769,
9506,
202,
698,
288,
6862,
202,
2896,
288,
25083,
202,
4065,
2481,
273,
24679,
18,
6408,
5621,
25083,
202,
430,
261,
6408,
18,
1518,
1435,
480,
652,
13,
898,
31,
25083,
202,
5659,
2481,
1125,
273,
5450,
18,
2670,
4723,
261,
6408,
18,
955,
10663,
25083,
202,
6408,
12656,
18,
16508,
261,
7924,
7385,
1769,
25083,
202,
17523,
261,
6408,
12656,
18,
4285,
10756,
288,
6862,
1082,
202,
1349,
1076,
63,
6408,
12656,
18,
2434,
1435,
65,
273,
2481,
1125,
31,
25083,
202,
97,
6862,
202,
97,
1323,
261,
7924,
7385,
18,
4285,
10663,
9506,
202,
97,
3095,
288,
6862,
202,
6408,
12656,
18,
4412,
5621,
9506,
202,
97,
9506,
202,
2463,
325,
1076,
31,
1082,
202,
97,
1082,
202,
482,
727,
509,
3400,
261,
6385,
20671,
1759,
277,
16,
727,
20671,
1759,
525,
13,
288,
9506,
202,
6385,
1431,
7314,
273,
652,
2448,
63,
77,
18,
2434,
15533,
9506,
202,
6385,
1431,
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,
3845,
20671,
1759,
6609,
5559,
8862,
261,
6385,
3340,
2514,
2949,
16,
727,
6820,
3572,
24679,
16,
727,
514,
652,
13,
202,
15069,
1860,
288,
202,
202,
2463,
394,
20671,
1759,
6609,
5559,
1832,
288,
1082,
202,
1117,
727,
1431,
8526,
652,
2448,
273,
2103,
4416,
1016,
5621,
1082,
202,
1117,
727,
1431,
8526,
2103,
4416,
1016,
1435,
1082,
202,
15069,
1860,
288,
9506,
202,
5659,
8526,
325,
1076,
273,
394,
1431,
63,
10530,
18,
1896,
1759,
1435,
15533,
9506,
202,
4065,
12656,
2481,
12656,
273,
2949,
18,
6408,
12656,
261,
1769,
9506,
202,
698,
288,
6862,
202,
2896,
288,
25083,
202,
4065,
2481,
273,
24679,
18,
6408,
5621,
25083,
202,
430,
261,
6408,
18,
1518,
1435,
2
] |
decorator.addListener(WorkbenchPlugin.getDefault().getDecoratorManager()); | decorator.addListener( WorkbenchPlugin.getDefault().getDecoratorManager()); | protected ILabelDecorator internalGetDecorator() throws CoreException { if (labelProviderCreationFailed) return null; final CoreException[] exceptions = new CoreException[1]; if (decorator == null) { Platform.run(new SafeRunnable(WorkbenchMessages.format("DecoratorManager.ErrorActivatingDecorator", new String[] { getName()})) { //$NON-NLS-1$ public void run() { try { decorator = (ILabelDecorator) WorkbenchPlugin.createExtension( definingElement, WizardsRegistryReader.ATT_CLASS); decorator.addListener(WorkbenchPlugin.getDefault().getDecoratorManager()); } catch (CoreException exception) { exceptions[0] = exception; } } }); } else return decorator; if (decorator == null) { this.labelProviderCreationFailed = true; setEnabled(false); } if (exceptions[0] != null) throw exceptions[0]; return decorator; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/271b6be5e51f33ef04581c15caa1b63347dc0f14/FullDecoratorDefinition.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/FullDecoratorDefinition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
2224,
10361,
2713,
967,
10361,
1435,
1216,
30015,
288,
202,
202,
430,
261,
1925,
2249,
9906,
2925,
13,
1082,
202,
2463,
446,
31,
202,
202,
6385,
30015,
8526,
4798,
273,
394,
30015,
63,
21,
15533,
202,
202,
430,
261,
19142,
422,
446,
13,
288,
1082,
202,
8201,
18,
2681,
12,
2704,
14060,
20013,
12,
2421,
22144,
5058,
18,
2139,
2932,
10361,
1318,
18,
668,
12241,
1776,
10361,
3113,
394,
514,
8526,
288,
1723,
17767,
3719,
288,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
482,
918,
1086,
1435,
288,
6862,
202,
698,
288,
25083,
202,
19142,
273,
6862,
1082,
202,
12,
45,
2224,
10361,
13,
4147,
22144,
3773,
18,
2640,
3625,
12,
6862,
9506,
202,
5649,
310,
1046,
16,
6862,
9506,
202,
27130,
87,
4243,
2514,
18,
789,
56,
67,
5237,
1769,
25083,
202,
19142,
18,
1289,
2223,
12,
2421,
22144,
3773,
18,
588,
1868,
7675,
588,
10361,
1318,
10663,
6862,
202,
97,
1044,
261,
25341,
1520,
13,
288,
25083,
202,
11855,
63,
20,
65,
273,
1520,
31,
6862,
202,
97,
9506,
202,
97,
1082,
202,
22938,
202,
202,
97,
202,
202,
12107,
1082,
202,
2463,
7367,
31,
202,
202,
430,
261,
19142,
422,
446,
13,
288,
1082,
202,
2211,
18,
1925,
2249,
9906,
2925,
273,
638,
31,
1082,
202,
542,
1526,
12,
5743,
1769,
202,
202,
97,
202,
202,
430,
261,
11855,
63,
20,
65,
480,
446,
13,
1082,
202,
12849,
4798,
63,
20,
15533,
202,
202,
2463,
7367,
31,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
2224,
10361,
2713,
967,
10361,
1435,
1216,
30015,
288,
202,
202,
430,
261,
1925,
2249,
9906,
2925,
13,
1082,
202,
2463,
446,
31,
202,
202,
6385,
30015,
8526,
4798,
273,
394,
30015,
63,
21,
15533,
202,
202,
430,
261,
19142,
422,
446,
13,
288,
1082,
202,
8201,
18,
2681,
12,
2704,
14060,
20013,
12,
2421,
22144,
5058,
18,
2139,
2932,
10361,
1318,
18,
668,
12241,
1776,
10361,
3113,
394,
514,
8526,
288,
1723,
17767,
3719,
288,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
482,
918,
1086,
1435,
288,
6862,
202,
698,
288,
25083,
202,
19142,
273,
6862,
1082,
202,
12,
45,
2224,
10361,
13,
4147,
22144,
3773,
18,
2640,
3625,
12,
6862,
9506,
2
] |
if (!isUseServantManager()) throw new WrongPolicy(); | if (!isUseServantManager()) throw new WrongPolicy(); | public void set_servant_manager(org.omg.PortableServer.ServantManager servant_manager) throws WrongPolicy { // Debug.output(Debug.POA | Debug.DEBUG1, "Poa.set_servant_manager <" + // _getQualifiedName() + ">." ); checkDestructionApparent (); if (!isUseServantManager()) throw new WrongPolicy(); if (servantManager != null) throw new org.omg.CORBA.BAD_INV_ORDER(); /* not spec. */ if( isRetain() && !(servant_manager instanceof org.omg.PortableServer.ServantActivator)) throw new WrongPolicy(); if (!isRetain() && !(servant_manager instanceof org.omg.PortableServer.ServantLocator)) throw new WrongPolicy(); servantManager = servant_manager; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/a74dc4ac69615c8e503cb9145c3594f1702d4c75/POA.java/buggy/src/org/jacorb/poa/POA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
67,
550,
7445,
67,
4181,
12,
3341,
18,
362,
75,
18,
2617,
429,
2081,
18,
827,
7445,
1318,
703,
7445,
67,
4181,
13,
540,
1216,
24668,
2582,
377,
288,
3639,
368,
3639,
4015,
18,
2844,
12,
2829,
18,
2419,
37,
571,
4015,
18,
9394,
21,
16,
315,
52,
11867,
18,
542,
67,
550,
7445,
67,
4181,
411,
6,
397,
3639,
368,
6647,
389,
588,
12345,
1435,
397,
14402,
1199,
11272,
3639,
866,
6305,
313,
4062,
1294,
2938,
261,
1769,
3639,
309,
16051,
291,
3727,
827,
7445,
1318,
10756,
2398,
604,
394,
24668,
2582,
5621,
5411,
309,
261,
550,
7445,
1318,
480,
446,
13,
2398,
604,
394,
2358,
18,
362,
75,
18,
9428,
12536,
18,
16234,
67,
706,
58,
67,
7954,
5621,
3639,
1748,
486,
857,
18,
1195,
540,
309,
12,
353,
7055,
530,
1435,
597,
2398,
401,
12,
550,
7445,
67,
4181,
1276,
2358,
18,
362,
75,
18,
2617,
429,
2081,
18,
827,
7445,
12241,
639,
3719,
2398,
604,
394,
24668,
2582,
5621,
3639,
309,
16051,
291,
7055,
530,
1435,
597,
2398,
401,
12,
550,
7445,
67,
4181,
1276,
2358,
18,
362,
75,
18,
2617,
429,
2081,
18,
827,
7445,
5786,
3719,
2398,
604,
394,
24668,
2582,
5621,
3639,
703,
7445,
1318,
273,
703,
7445,
67,
4181,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
67,
550,
7445,
67,
4181,
12,
3341,
18,
362,
75,
18,
2617,
429,
2081,
18,
827,
7445,
1318,
703,
7445,
67,
4181,
13,
540,
1216,
24668,
2582,
377,
288,
3639,
368,
3639,
4015,
18,
2844,
12,
2829,
18,
2419,
37,
571,
4015,
18,
9394,
21,
16,
315,
52,
11867,
18,
542,
67,
550,
7445,
67,
4181,
411,
6,
397,
3639,
368,
6647,
389,
588,
12345,
1435,
397,
14402,
1199,
11272,
3639,
866,
6305,
313,
4062,
1294,
2938,
261,
1769,
3639,
309,
16051,
291,
3727,
827,
7445,
1318,
10756,
2398,
604,
394,
24668,
2582,
5621,
5411,
309,
261,
550,
7445,
1318,
480,
446,
13,
2398,
604,
394,
2358,
18,
362,
75,
18,
9428,
12536,
18,
16234,
2
] |
Currency newCurrency = (Currency) cache.get(currencyCode); if (newCurrency == null) | /* Attempt to get the currency from the cache */ String code = (String) countryMap.get(country); if (code == null) | public static Currency getInstance(String currencyCode) { Locale[] allLocales; /* * Throw a null pointer exception explicitly if currencyCode is null. * One is not thrown otherwise. It results in an IllegalArgumentException. */ if (currencyCode == null) { throw new NullPointerException("The supplied currency code is null."); } Currency newCurrency = (Currency) cache.get(currencyCode); if (newCurrency == null) { /* Get all locales */ allLocales = Locale.getAvailableLocales(); /* Loop through each locale, looking for the code */ for (int i = 0;i < allLocales.length; i++) { try { Currency testCurrency = getInstance (allLocales[i]); if (testCurrency != null && testCurrency.getCurrencyCode().equals(currencyCode)) { return testCurrency; } } catch (IllegalArgumentException exception) { /* Ignore locales without valid countries */ } } /* * If we get this far, the code is not supported by any of * our locales. */ throw new IllegalArgumentException("The currency code, " + currencyCode + ", is not supported."); } else { return newCurrency; } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/53b78dd1e4587254262f4618d2aa7551de8e0cbf/Currency.java/buggy/core/src/classpath/java/java/util/Currency.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
13078,
3694,
12,
780,
26390,
13,
225,
288,
565,
6458,
8526,
777,
13310,
31,
3639,
1748,
1377,
380,
3743,
279,
446,
4407,
1520,
8122,
309,
26390,
353,
446,
18,
377,
380,
6942,
353,
486,
6718,
3541,
18,
225,
2597,
1686,
316,
392,
2754,
18,
1377,
1195,
565,
309,
261,
7095,
1085,
422,
446,
13,
1377,
288,
3639,
604,
394,
10108,
2932,
1986,
4580,
5462,
981,
353,
446,
1199,
1769,
1377,
289,
565,
13078,
394,
7623,
273,
261,
7623,
13,
1247,
18,
588,
12,
7095,
1085,
1769,
565,
309,
261,
2704,
7623,
422,
446,
13,
1377,
288,
202,
20308,
968,
777,
6922,
1195,
202,
454,
13310,
273,
6458,
18,
588,
5268,
13310,
5621,
202,
20308,
9720,
3059,
1517,
2573,
16,
7849,
364,
326,
981,
1195,
565,
364,
261,
474,
277,
273,
374,
31,
77,
411,
777,
13310,
18,
2469,
31,
277,
27245,
1377,
288,
202,
565,
775,
202,
1377,
288,
202,
7623,
1842,
7623,
273,
3694,
261,
454,
13310,
63,
77,
19226,
202,
202,
430,
261,
3813,
7623,
480,
446,
597,
202,
565,
1842,
7623,
18,
588,
28976,
7675,
14963,
12,
7095,
1085,
3719,
1082,
225,
288,
202,
225,
327,
1842,
7623,
31,
1377,
289,
202,
1377,
289,
202,
565,
1044,
261,
31237,
1520,
13,
202,
1377,
288,
202,
202,
20308,
8049,
6922,
2887,
923,
17603,
1195,
202,
1377,
289,
202,
225,
289,
565,
1748,
1377,
380,
971,
732,
336,
333,
10247,
16,
326,
981,
353,
486,
3260,
635,
1281,
434,
377,
380,
3134,
6922,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
13078,
3694,
12,
780,
26390,
13,
225,
288,
565,
6458,
8526,
777,
13310,
31,
3639,
1748,
1377,
380,
3743,
279,
446,
4407,
1520,
8122,
309,
26390,
353,
446,
18,
377,
380,
6942,
353,
486,
6718,
3541,
18,
225,
2597,
1686,
316,
392,
2754,
18,
1377,
1195,
565,
309,
261,
7095,
1085,
422,
446,
13,
1377,
288,
3639,
604,
394,
10108,
2932,
1986,
4580,
5462,
981,
353,
446,
1199,
1769,
1377,
289,
565,
13078,
394,
7623,
273,
261,
7623,
13,
1247,
18,
588,
12,
7095,
1085,
1769,
565,
309,
261,
2704,
7623,
422,
446,
13,
1377,
288,
202,
20308,
968,
777,
6922,
1195,
202,
454,
13310,
273,
6458,
18,
588,
5268,
13310,
5621,
202,
20308,
9720,
3059,
2
] |
artifactList = repoSearcher.search( qry ); | artifactList = repoSearchLayer.searchAdvanced( qry ); | public void testSearchSingle() throws Exception { createTestIndex(); RepositoryIndexingFactory factory = (RepositoryIndexingFactory) lookup( RepositoryIndexingFactory.ROLE ); PomRepositoryIndex indexer = factory.createPomRepositoryIndex( indexPath, repository ); RepositoryIndexSearcher repoSearcher = factory.createDefaultRepositoryIndexSearcher( indexer ); // search version Query qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_VERSION, "1.0" ); List artifactList = repoSearcher.search( qry ); //assertEquals( 1, artifactList.size() ); for ( Iterator iter = artifactList.iterator(); iter.hasNext(); ) { Artifact artifact = (Artifact) iter.next(); assertEquals( "1.0", artifact.getVersion() ); } // search group id qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_GROUPID, "org.apache.maven" ); artifactList = repoSearcher.search( qry ); assertEquals( 2, artifactList.size() ); Iterator artifacts = artifactList.iterator(); if ( artifacts.hasNext() ) { Artifact artifact = (Artifact) artifacts.next(); assertEquals( "org.apache.maven", artifact.getGroupId() ); } // search artifact id qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_ARTIFACTID, "maven-artifact" ); artifactList = repoSearcher.search( qry ); assertEquals( 1, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); assertEquals( "maven-artifact", artifact.getArtifactId() ); } // search version qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_VERSION, "2" ); artifactList = repoSearcher.search( qry ); assertEquals( 2, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); assertTrue( artifact.getVersion().indexOf( "2" ) != -1 ); } // search packaging qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_PACKAGING, "jar" ); artifactList = repoSearcher.search( qry ); assertEquals( 3, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); assertEquals( "jar", artifact.getType() ); } //search license url qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_LICENSE_URLS, "http://www.apache.org/licenses/LICENSE-2.0.txt" ); artifactList = repoSearcher.search( qry ); assertEquals( 2, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); License license = (License) getPom( artifact ).getLicenses().get( 0 ); assertEquals( "http://www.apache.org/licenses/LICENSE-2.0.txt", license.getUrl() ); } //search dependencies qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_DEPENDENCIES, "org.codehaus.plexus:plexus-utils:1.0.5" ); artifactList = repoSearcher.search( qry ); assertEquals( 2, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); Iterator dependencies = getPom( artifact ).getDependencies().iterator(); boolean depFound = false; while ( dependencies.hasNext() ) { Dependency dep = (Dependency) dependencies.next(); if ( "org.codehaus.plexus:plexus-utils:1.0.5".equals( dep.getGroupId() + ":" + dep.getArtifactId() + ":" + dep.getVersion() ) ) { depFound = true; break; } } assertTrue( "Searched dependency not found.", depFound ); } //search build plugin qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_PLUGINS_BUILD, "org.codehaus.modello:modello-maven-plugin:2.0" ); artifactList = repoSearcher.search( qry ); assertEquals( 1, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); Iterator plugins = getPom( artifact ).getBuild().getPlugins().iterator(); boolean found = false; while ( plugins.hasNext() ) { Plugin plugin = (Plugin) plugins.next(); if ( "org.codehaus.modello:modello-maven-plugin:2.0".equals( plugin.getKey() + ":" + plugin.getVersion() ) ) { found = true; break; } } assertTrue( "Searched plugin not found.", found ); } //search reporting plugin qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_PLUGINS_REPORT, "org.apache.maven.plugins:maven-checkstyle-plugin:2.0" ); artifactList = repoSearcher.search( qry ); assertEquals( 1, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); Iterator plugins = getPom( artifact ).getReporting().getPlugins().iterator(); boolean found = false; while ( plugins.hasNext() ) { ReportPlugin plugin = (ReportPlugin) plugins.next(); if ( "org.apache.maven.plugins:maven-checkstyle-plugin:2.0".equals( plugin.getKey() + ":" + plugin.getVersion() ) ) { found = true; break; } } assertTrue( "Searched report plugin not found.", found ); } // search sha1 checksum Artifact artifact = getArtifact( "org.apache.maven", "maven-model", "2.0" ); artifact.setFile( new File( repository.getBasedir(), repository.pathOf( artifact ) ) ); String sha1 = digester.createChecksum( artifact.getFile(), Digester.SHA1 ); qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_SHA1, sha1.trim() ); artifactList = repoSearcher.search( qry ); assertEquals( 1, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact2 = (Artifact) artifacts.next(); String sha1Tmp = digester.createChecksum( getPomFile( artifact2 ), Digester.SHA1 ); assertEquals( sha1, sha1Tmp ); } // search md5 checksum String md5 = digester.createChecksum( getPomFile( artifact ), Digester.MD5 ); qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_MD5, md5.trim() ); artifactList = repoSearcher.search( qry ); assertEquals( 1, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact2 = (Artifact) artifacts.next(); String md5Tmp = digester.createChecksum( getPomFile( artifact2 ), Digester.MD5 ); assertEquals( md5, md5Tmp ); } indexer.close(); } | 28441 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28441/edd8a998aa6006fddaf4d4a404bbdd6ddfd246d7/PomRepositoryIndexingTest.java/clean/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/PomRepositoryIndexingTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2979,
5281,
1435,
3639,
1216,
1185,
565,
288,
3639,
752,
4709,
1016,
5621,
3639,
6281,
24465,
1733,
3272,
273,
261,
3305,
24465,
1733,
13,
3689,
12,
6281,
24465,
1733,
18,
16256,
11272,
3639,
453,
362,
3305,
1016,
12635,
273,
3272,
18,
2640,
52,
362,
3305,
1016,
12,
770,
743,
16,
3352,
11272,
3639,
6281,
1016,
2979,
264,
3538,
2979,
264,
273,
3272,
18,
2640,
1868,
3305,
1016,
2979,
264,
12,
12635,
11272,
3639,
368,
1623,
1177,
3639,
2770,
16788,
273,
394,
10326,
12812,
1138,
12,
453,
362,
3305,
1016,
18,
42,
12069,
67,
5757,
16,
315,
21,
18,
20,
6,
11272,
3639,
987,
6462,
682,
273,
3538,
2979,
4576,
18,
3072,
23618,
12,
16788,
11272,
3639,
368,
11231,
8867,
12,
404,
16,
6462,
682,
18,
1467,
1435,
11272,
3639,
364,
261,
4498,
1400,
273,
6462,
682,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
262,
3639,
288,
5411,
14022,
6462,
273,
261,
7581,
13,
1400,
18,
4285,
5621,
5411,
1815,
8867,
12,
315,
21,
18,
20,
3113,
6462,
18,
588,
1444,
1435,
11272,
3639,
289,
3639,
368,
1623,
1041,
612,
3639,
16788,
273,
394,
10326,
12812,
1138,
12,
453,
362,
3305,
1016,
18,
42,
12069,
67,
8468,
734,
16,
315,
3341,
18,
19211,
18,
81,
7638,
6,
11272,
3639,
6462,
682,
273,
3538,
2979,
4576,
18,
3072,
23618,
12,
16788,
11272,
3639,
1815,
8867,
12,
576,
16,
6462,
682,
18,
1467,
1435,
11272,
3639,
4498,
16259,
273,
6462,
682,
18,
9838,
5621,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2979,
5281,
1435,
3639,
1216,
1185,
565,
288,
3639,
752,
4709,
1016,
5621,
3639,
6281,
24465,
1733,
3272,
273,
261,
3305,
24465,
1733,
13,
3689,
12,
6281,
24465,
1733,
18,
16256,
11272,
3639,
453,
362,
3305,
1016,
12635,
273,
3272,
18,
2640,
52,
362,
3305,
1016,
12,
770,
743,
16,
3352,
11272,
3639,
6281,
1016,
2979,
264,
3538,
2979,
264,
273,
3272,
18,
2640,
1868,
3305,
1016,
2979,
264,
12,
12635,
11272,
3639,
368,
1623,
1177,
3639,
2770,
16788,
273,
394,
10326,
12812,
1138,
12,
453,
362,
3305,
1016,
18,
42,
12069,
67,
5757,
16,
315,
21,
18,
20,
6,
11272,
3639,
987,
6462,
682,
273,
3538,
2979,
4576,
18,
3072,
23618,
12,
16788,
11272,
2
] |
throw new ArgumentError(runtime, "wrong number of arguments"); | throw runtime.newArgumentError("wrong number of arguments"); | public static IRubyObject raise(IRubyObject recv, IRubyObject[] args) { // FIXME special case in ruby // recv.checkArgumentCount(args, 0, 2); Ruby runtime = recv.getRuntime(); RubyString string = null; RubyException excptn = null; switch (args.length) { case 0 : IRubyObject defaultException = runtime.getGlobalVariables().get("$!"); if (defaultException.isNil()) { throw new RaiseException(runtime, runtime.getExceptions().getRuntimeError(), "", false); } throw new RaiseException((RubyException) defaultException); case 1 : if (args[0] instanceof RubyException) { throw new RaiseException((RubyException) args[0]); } else if (args[0] instanceof RubyClass) { throw new RaiseException(RubyException.newInstance((RubyClass)args[0], new IRubyObject[0])); } throw new RaiseException(RubyException.newInstance(runtime.getExceptions().getRuntimeError(), args)); case 2 : if (args[0] == runtime.getClasses().getExceptionClass()) { throw new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } string = (RubyString) args[1]; excptn = RubyException.newException(runtime, (RubyClass)args[0], string.getValue()); throw new RaiseException(excptn); case 3: if (args[0] == runtime.getClasses().getExceptionClass()) { throw new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } string = (RubyString) args[1]; excptn = RubyException.newException(runtime, (RubyClass)args[0], string.getValue()); excptn.set_backtrace(args[2]); throw new RaiseException(excptn); default : throw new ArgumentError(runtime, "wrong number of arguments"); } } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
1002,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
368,
9852,
225,
4582,
648,
316,
22155,
3639,
368,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
576,
1769,
540,
19817,
3099,
273,
10665,
18,
588,
5576,
5621,
3639,
19817,
780,
533,
273,
446,
31,
3639,
19817,
503,
3533,
337,
82,
273,
446,
31,
7734,
1620,
261,
1968,
18,
2469,
13,
288,
3639,
648,
374,
294,
5411,
15908,
10340,
921,
805,
503,
273,
3099,
18,
588,
5160,
6158,
7675,
588,
2932,
8,
4442,
1769,
5411,
309,
261,
1886,
503,
18,
291,
12616,
10756,
288,
7734,
604,
394,
20539,
503,
12,
9448,
16,
3099,
18,
588,
11416,
7675,
588,
5576,
668,
9334,
23453,
629,
1769,
5411,
289,
5411,
604,
394,
20539,
503,
12443,
54,
10340,
503,
13,
805,
503,
1769,
3639,
648,
404,
294,
5411,
309,
261,
1968,
63,
20,
65,
1276,
19817,
503,
13,
288,
7734,
604,
394,
20539,
503,
12443,
54,
10340,
503,
13,
833,
63,
20,
19226,
5411,
289,
469,
309,
261,
1968,
63,
20,
65,
1276,
19817,
797,
13,
288,
2398,
202,
12849,
394,
20539,
503,
12,
54,
10340,
503,
18,
2704,
1442,
12443,
54,
10340,
797,
13,
1968,
63,
20,
6487,
394,
15908,
10340,
921,
63,
20,
5717,
1769,
5411,
289,
5411,
604,
394,
20539,
503,
12,
54,
10340,
503,
18,
2704,
1442,
12,
9448,
18,
588,
11416,
7675,
588,
5576,
668,
9334,
833,
10019,
3639,
648,
576,
294,
5411,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
1002,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
368,
9852,
225,
4582,
648,
316,
22155,
3639,
368,
10665,
18,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
576,
1769,
540,
19817,
3099,
273,
10665,
18,
588,
5576,
5621,
3639,
19817,
780,
533,
273,
446,
31,
3639,
19817,
503,
3533,
337,
82,
273,
446,
31,
7734,
1620,
261,
1968,
18,
2469,
13,
288,
3639,
648,
374,
294,
5411,
15908,
10340,
921,
805,
503,
273,
3099,
18,
588,
5160,
6158,
7675,
588,
2932,
8,
4442,
1769,
5411,
309,
261,
1886,
503,
18,
291,
12616,
10756,
288,
7734,
604,
394,
20539,
503,
12,
9448,
16,
3099,
18,
588,
11416,
2
] |
int _m488 = mark(); synPredMatched488 = true; | int _m489 = mark(); synPredMatched489 = true; | public final void mNEXT_TOKEN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = NEXT_TOKEN; int _saveIndex; Token ncname=null; switch ( LA(1)) { case '{': { mLCURLY(false); if ( inputState.guessing==0 ) { inElementContent= false; inAttributeContent= false; _ttype = LCURLY; } break; } case '}': { mRCURLY(false); if ( inputState.guessing==0 ) { _ttype = RCURLY; } break; } default: boolean synPredMatched472 = false; if (((LA(1)=='(') && (LA(2)==':') && (LA(3)==':') && (LA(4)=='p'))) { int _m472 = mark(); synPredMatched472 = true; inputState.guessing++; try { { match("(::"); } } catch (RecognitionException pe) { synPredMatched472 = false; } rewind(_m472); inputState.guessing--; } if ( synPredMatched472 ) { mPRAGMA(false); if ( inputState.guessing==0 ) { _ttype = Token.SKIP; } } else if ((LA(1)=='(') && (LA(2)==':') && (_tokenSet_6.member(LA(3))) && (_tokenSet_6.member(LA(4)))) { mEXPR_COMMENT(false); if ( inputState.guessing==0 ) { _ttype = Token.SKIP; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='-')) { mXML_COMMENT(false); if ( inputState.guessing==0 ) { String data = new String(text.getBuffer(),_begin,text.length()-_begin); parseLinefeeds(data); _ttype = XML_COMMENT; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='[')) { mXML_CDATA(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA; } } else { boolean synPredMatched486 = false; if (((_tokenSet_19.member(LA(1))) && (_tokenSet_20.member(LA(2))) && (_tokenSet_21.member(LA(3))) && (true))) { int _m486 = mark(); synPredMatched486 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); { switch ( LA(1)) { case '.': { match('.'); { if ((_tokenSet_2.member(LA(1)))) { mINTEGER_LITERAL(false); } else if ((LA(1)=='E'||LA(1)=='e')) { } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } break; } case 'E': case 'e': { break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched486 = false; } rewind(_m486); inputState.guessing--; } if ( synPredMatched486 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else if ((LA(1)=='-') && (LA(2)=='-') && (LA(3)=='>') && (true)) { mXML_COMMENT_END(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT_END; } } else if ((LA(1)==']') && (LA(2)==']') && (LA(3)=='>') && (true)) { mXML_CDATA_END(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA_END; } } else { boolean synPredMatched470 = false; if (((LA(1)=='<') && (LA(2)=='?'))) { int _m470 = mark(); synPredMatched470 = true; inputState.guessing++; try { { mXML_PI_START(false); } } catch (RecognitionException pe) { synPredMatched470 = false; } rewind(_m470); inputState.guessing--; } if ( synPredMatched470 ) { mXML_PI(false); if ( inputState.guessing==0 ) { _ttype = XML_PI; } } else if ((LA(1)=='<') && (LA(2)=='/')) { mEND_TAG_START(false); if ( inputState.guessing==0 ) { inElementContent= false; wsExplicit= false; _ttype = END_TAG_START; } } else if ((LA(1)=='<') && (LA(2)=='=')) { mLTEQ(false); if ( inputState.guessing==0 ) { _ttype = LTEQ; } } else if (((LA(1)=='"'||LA(1)=='\'') && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe')) && (true) && (true))&&( parseStringLiterals )) { mSTRING_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = STRING_LITERAL; } } else { boolean synPredMatched474 = false; if ((((LA(1)=='.') && (LA(2)=='.') && (true) && (true))&&( !(inAttributeContent || inElementContent) ))) { int _m474 = mark(); synPredMatched474 = true; inputState.guessing++; try { { match('.'); match('.'); } } catch (RecognitionException pe) { synPredMatched474 = false; } rewind(_m474); inputState.guessing--; } if ( synPredMatched474 ) { mPARENT(false); if ( inputState.guessing==0 ) { _ttype = PARENT; } } else if (((LA(1)=='/') && (LA(2)=='/') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mDSLASH(false); if ( inputState.guessing==0 ) { _ttype = DSLASH; } } else if (((LA(1)=='|') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mOREQ(false); if ( inputState.guessing==0 ) { _ttype = OREQ; } } else if (((LA(1)=='&') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mANDEQ(false); if ( inputState.guessing==0 ) { _ttype = ANDEQ; } } else if (((LA(1)=='!') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mNEQ(false); if ( inputState.guessing==0 ) { _ttype = NEQ; } } else if (((LA(1)=='>') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mGTEQ(false); if ( inputState.guessing==0 ) { _ttype = GTEQ; } } else if ((LA(1)=='?') && (LA(2)=='>') && (true) && (true)) { mXML_PI_END(false); if ( inputState.guessing==0 ) { _ttype = XML_PI_END; } } else if ((LA(1)=='<') && (true)) { mLT(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LT; } } else if (((_tokenSet_13.member(LA(1))) && (true) && (true) && (true))&&( inAttributeContent && attrDelimChar == '"' )) { mQUOT_ATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = QUOT_ATTRIBUTE_CONTENT; } } else if (((_tokenSet_14.member(LA(1))) && (true) && (true) && (true))&&( inAttributeContent && attrDelimChar == '\'' )) { mAPOS_ATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = APOS_ATTRIBUTE_CONTENT; } } else if (((LA(1)=='"') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mQUOT(false); if ( inputState.guessing==0 ) { _ttype = QUOT; } } else if (((LA(1)=='\'') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mAPOS(false); if ( inputState.guessing==0 ) { _ttype = APOS; System.out.println("APOS"); } } else if (((_tokenSet_22.member(LA(1))) && (true) && (true) && (true))&&( inElementContent )) { mELEMENT_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ELEMENT_CONTENT; } } else if ((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' ') && (true) && (true) && (true)) { mWS(false); if ( inputState.guessing==0 ) { if (wsExplicit) { _ttype = WS; text.setLength(_begin); text.append("WS"); } else _ttype = Token.SKIP; } } else if ((_tokenSet_23.member(LA(1))) && (true) && (true) && (true)) { mNCNAME(true); ncname=_returnToken; if ( inputState.guessing==0 ) { _ttype = ncname.getType(); } } else { boolean synPredMatched477 = false; if (((_tokenSet_19.member(LA(1))) && (true) && (true) && (true))) { int _m477 = mark(); synPredMatched477 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched477 = false; } rewind(_m477); inputState.guessing--; } if ( synPredMatched477 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched479 = false; if (((_tokenSet_19.member(LA(1))) && (true) && (true) && (true))) { int _m479 = mark(); synPredMatched479 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); } } catch (RecognitionException pe) { synPredMatched479 = false; } rewind(_m479); inputState.guessing--; } if ( synPredMatched479 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched481 = false; if (((LA(1)=='.') && (true) && (true) && (true))) { int _m481 = mark(); synPredMatched481 = true; inputState.guessing++; try { { match('.'); } } catch (RecognitionException pe) { synPredMatched481 = false; } rewind(_m481); inputState.guessing--; } if ( synPredMatched481 ) { mSELF(false); if ( inputState.guessing==0 ) { _ttype = SELF; } } else { boolean synPredMatched488 = false; if (((_tokenSet_19.member(LA(1))) && (true) && (true) && (true))) { int _m488 = mark(); synPredMatched488 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); match('.'); } } catch (RecognitionException pe) { synPredMatched488 = false; } rewind(_m488); inputState.guessing--; } if ( synPredMatched488 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else if ((_tokenSet_2.member(LA(1))) && (true) && (true) && (true)) { mINTEGER_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = INTEGER_LITERAL; } } else if ((LA(1)=='/') && (true) && (true) && (true)) { mSLASH(false); if ( inputState.guessing==0 ) { _ttype = SLASH; } } else if ((LA(1)==':') && (true) && (true) && (true)) { mCOLON(false); if ( inputState.guessing==0 ) { _ttype = COLON; } } else if ((LA(1)==',') && (true) && (true) && (true)) { mCOMMA(false); if ( inputState.guessing==0 ) { _ttype = COMMA; } } else if ((LA(1)==';') && (true) && (true) && (true)) { mSEMICOLON(false); if ( inputState.guessing==0 ) { _ttype = SEMICOLON; } } else if ((LA(1)=='*') && (true) && (true) && (true)) { mSTAR(false); if ( inputState.guessing==0 ) { _ttype = STAR; } } else if ((LA(1)=='?') && (true) && (true) && (true)) { mQUESTION(false); if ( inputState.guessing==0 ) { _ttype = QUESTION; } } else if ((LA(1)=='+') && (true) && (true) && (true)) { mPLUS(false); if ( inputState.guessing==0 ) { _ttype = PLUS; } } else if ((LA(1)=='-') && (true) && (true) && (true)) { mMINUS(false); if ( inputState.guessing==0 ) { _ttype = MINUS; } } else if ((LA(1)=='[') && (true) && (true) && (true)) { mLPPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPPAREN; } } else if ((LA(1)==']') && (true) && (true) && (true)) { mRPPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPPAREN; } } else if ((LA(1)=='(') && (true) && (true) && (true)) { mLPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPAREN; } } else if ((LA(1)==')') && (true) && (true) && (true)) { mRPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPAREN; } } else if ((LA(1)=='|') && (true) && (true) && (true)) { mUNION(false); if ( inputState.guessing==0 ) { _ttype = UNION; } } else if ((LA(1)=='@') && (true) && (true) && (true)) { mAT(false); if ( inputState.guessing==0 ) { _ttype = AT; } } else if ((LA(1)=='$') && (true) && (true) && (true)) { mDOLLAR(false); if ( inputState.guessing==0 ) { _ttype = DOLLAR; } } else if ((LA(1)=='=') && (true) && (true) && (true)) { mEQ(false); if ( inputState.guessing==0 ) { _ttype = EQ; } } else if ((LA(1)=='>') && (true) && (true) && (true)) { mGT(false); if ( inputState.guessing==0 ) { _ttype = GT; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/10544e5ec103a411822c6180ed81ef38eab15de8/XQueryLexer.java/clean/src/org/exist/xquery/parser/XQueryLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
202,
202,
1345,
8194,
529,
33,
2011,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
25083,
202,
267,
1046,
1350,
33,
629,
31,
25083,
202,
267,
1499,
1350,
33,
629,
31,
25083,
202,
67,
88,
723,
273,
511,
26314,
31,
6862,
9506,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
9571,
30,
202,
202,
95,
1082,
202,
81,
11529,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
67,
88,
723,
273,
534,
26314,
31,
1082,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
1886,
30,
1082,
202,
6494,
6194,
10391,
15400,
24,
9060,
273,
629,
31,
1082,
202,
430,
261,
12443,
2534,
12,
21,
13,
18920,
2668,
13,
597,
261,
2534,
12,
22,
13,
18920,
2497,
13,
597,
261,
2534,
12,
23,
13,
18920,
2497,
13,
597,
261,
2534,
12,
24,
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,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
202,
202,
1345,
8194,
529,
33,
2011,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
25083,
202,
267,
1046,
1350,
33,
629,
2
] |
updateDescription(); } | updateDescription(); } | public void widgetDefaultSelected(SelectionEvent e) { updateDescription(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/901694a204e2e98a8a01b05f67351a3c900227dc/WizardPreferencesPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
3604,
1868,
7416,
12,
6233,
1133,
425,
13,
288,
7734,
1089,
3291,
5621,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
3604,
1868,
7416,
12,
6233,
1133,
425,
13,
288,
7734,
1089,
3291,
5621,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
query = new FuzzyQuery(new Term("field", "student"), FuzzyQuery.defaultMinSimilarity, 1); hits = searcher.search(query); assertEquals(1, hits.length()); query = new FuzzyQuery(new Term("field", "stellent"), FuzzyQuery.defaultMinSimilarity, 1); hits = searcher.search(query); assertEquals(1, hits.length()); query = new FuzzyQuery(new Term("field", "student"), FuzzyQuery.defaultMinSimilarity, 2); hits = searcher.search(query); assertEquals(0, hits.length()); query = new FuzzyQuery(new Term("field", "stellent"), FuzzyQuery.defaultMinSimilarity, 2); hits = searcher.search(query); assertEquals(0, hits.length()); | public void testFuzzinessLong() throws Exception { RAMDirectory directory = new RAMDirectory(); IndexWriter writer = new IndexWriter(directory, new WhitespaceAnalyzer(), true); addDoc("aaaaaaa", writer); addDoc("segment", writer); writer.optimize(); writer.close(); IndexSearcher searcher = new IndexSearcher(directory); FuzzyQuery query; // not similar enough: query = new FuzzyQuery(new Term("field", "xxxxx")); Hits hits = searcher.search(query); assertEquals(0, hits.length()); // edit distance to "aaaaaaa" = 3, this matches because the string is longer than // in testDefaultFuzziness so a bigger difference is allowed: query = new FuzzyQuery(new Term("field", "aaaaccc")); hits = searcher.search(query); assertEquals(1, hits.length()); assertEquals(hits.doc(0).get("field"), ("aaaaaaa")); // no match, more than half of the characters is wrong: query = new FuzzyQuery(new Term("field", "aaacccc")); hits = searcher.search(query); assertEquals(0, hits.length()); // "student" and "stellent" are indeed similar to "segment" by default: query = new FuzzyQuery(new Term("field", "student")); hits = searcher.search(query); assertEquals(1, hits.length()); query = new FuzzyQuery(new Term("field", "stellent")); hits = searcher.search(query); assertEquals(1, hits.length()); // "student" doesn't match anymore thanks to increased minimum similarity: query = new FuzzyQuery(new Term("field", "student"), 0.6f); hits = searcher.search(query); assertEquals(0, hits.length()); try { query = new FuzzyQuery(new Term("field", "student"), 1.1f); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) { // expecting exception } try { query = new FuzzyQuery(new Term("field", "student"), -0.1f); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) { // expecting exception } searcher.close(); directory.close(); } | 1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/a433e2c1de45521ddf0b5f08eeab69fb279aff15/TestFuzzyQuery.java/buggy/src/test/org/apache/lucene/search/TestFuzzyQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
843,
273,
394,
478,
13903,
1138,
12,
2704,
6820,
2932,
1518,
3113,
315,
26240,
6,
3631,
478,
13903,
1138,
18,
1886,
2930,
16891,
560,
16,
404,
1769,
11076,
273,
27349,
18,
3072,
12,
2271,
1769,
1815,
8867,
12,
21,
16,
11076,
18,
2469,
10663,
843,
273,
394,
478,
13903,
1138,
12,
2704,
6820,
2932,
1518,
3113,
315,
334,
1165,
319,
6,
3631,
478,
13903,
1138,
18,
1886,
2930,
16891,
560,
16,
404,
1769,
11076,
273,
27349,
18,
3072,
12,
2271,
1769,
1815,
8867,
12,
21,
16,
11076,
18,
2469,
10663,
843,
273,
394,
478,
13903,
1138,
12,
2704,
6820,
2932,
1518,
3113,
315,
26240,
6,
3631,
478,
13903,
1138,
18,
1886,
2930,
16891,
560,
16,
576,
1769,
11076,
273,
27349,
18,
3072,
12,
2271,
1769,
1815,
8867,
12,
20,
16,
11076,
18,
2469,
10663,
843,
273,
394,
478,
13903,
1138,
12,
2704,
6820,
2932,
1518,
3113,
315,
334,
1165,
319,
6,
3631,
478,
13903,
1138,
18,
1886,
2930,
16891,
560,
16,
576,
1769,
11076,
273,
27349,
18,
3072,
12,
2271,
1769,
1815,
8867,
12,
20,
16,
11076,
18,
2469,
10663,
565,
843,
273,
394,
478,
13903,
1138,
12,
2704,
6820,
2932,
1518,
3113,
315,
26240,
6,
3631,
478,
13903,
1138,
18,
1886,
2930,
16891,
560,
16,
404,
1769,
11076,
273,
27349,
18,
3072,
12,
2271,
1769,
1815,
8867,
12,
21,
16,
11076,
18,
2469,
10663,
843,
273,
394,
478,
13903,
1138,
12,
2704,
6820,
2932,
1518,
3113,
315,
334,
1165,
319,
6,
3631,
478,
13903,
1138,
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,
843,
273,
394,
478,
13903,
1138,
12,
2704,
6820,
2932,
1518,
3113,
315,
26240,
6,
3631,
478,
13903,
1138,
18,
1886,
2930,
16891,
560,
16,
404,
1769,
11076,
273,
27349,
18,
3072,
12,
2271,
1769,
1815,
8867,
12,
21,
16,
11076,
18,
2469,
10663,
843,
273,
394,
478,
13903,
1138,
12,
2704,
6820,
2932,
1518,
3113,
315,
334,
1165,
319,
6,
3631,
478,
13903,
1138,
18,
1886,
2930,
16891,
560,
16,
404,
1769,
11076,
273,
27349,
18,
3072,
12,
2271,
1769,
1815,
8867,
12,
21,
16,
11076,
18,
2469,
10663,
843,
273,
394,
478,
13903,
1138,
12,
2704,
6820,
2932,
1518,
3113,
315,
26240,
6,
3631,
478,
13903,
1138,
18,
1886,
2930,
16891,
560,
16,
576,
1769,
11076,
2
] |
|
+ " and coGene.products.id=coBs2gp.geneProduct.id " | + " and coGene.products.id=coBs2gp.geneProduct.id " | protected Object handleGetCoexpressedGenes( Gene gene, Collection ees, Integer stringency ) throws Exception { Gene givenG = gene; long id = givenG.getId(); String p2pClassName; if (TaxonUtility.isHuman(givenG.getTaxon())) p2pClassName = "HumanProbeCoExpressionImpl"; else if (TaxonUtility.isMouse(givenG.getTaxon())) p2pClassName = "MouseProbeCoExpressionImpl"; else if (TaxonUtility.isRat(givenG.getTaxon())) p2pClassName = "RatProbeCoExpressionImpl"; else //must be other p2pClassName = "OtherProbeCoExpressionImpl"; Map<Long,CoexpressionValueObject> geneMap = new HashMap<Long,CoexpressionValueObject>(); Map<Long,ExpressionExperimentValueObject> eeMap = new HashMap<Long,ExpressionExperimentValueObject>(); String queryStringFirstVector = // return values "select coGene.id, coGene.name, coGene.officialName,p2pc.firstVector.expressionExperiment.id, p2pc.firstVector.expressionExperiment.shortName, p2pc.firstVector.expressionExperiment.name" // source tables + " from GeneImpl as gene, BioSequence2GeneProductImpl as bs2gp, CompositeSequenceImpl as compositeSequence," // join table + p2pClassName + " as p2pc," // target tables + " GeneImpl as coGene,BioSequence2GeneProductImpl as coBs2gp, CompositeSequenceImpl as coCompositeSequence" + " where gene.products.id=bs2gp.geneProduct.id " + " and compositeSequence.biologicalCharacteristic=bs2gp.bioSequence " + " and compositeSequence.designElementDataVectors.id=p2pc.firstVector.id " + " and coCompositeSequence.designElementDataVectors.id=p2pc.secondVector.id " + " and coCompositeSequence.biologicalCharacteristic=coBs2gp.bioSequence " + " and coGene.products.id=coBs2gp.geneProduct.id " + " and gene.id = :id and coGene.taxon.id = :taxonId"; String queryStringSecondVector = // return values "select coGene.id, coGene.name, coGene.officialName,p2pc.secondVector.expressionExperiment.id, p2pc.secondVector.expressionExperiment.shortName, p2pc.secondVector.expressionExperiment.name " // source tables + "from GeneImpl as gene, BioSequence2GeneProductImpl as bs2gp, CompositeSequenceImpl as compositeSequence," // join table + p2pClassName + " as p2pc," // target tables + "GeneImpl as coGene,BioSequence2GeneProductImpl as coBs2gp, CompositeSequenceImpl as coCompositeSequence" + " where gene.products.id=bs2gp.geneProduct.id " + " and compositeSequence.biologicalCharacteristic=bs2gp.bioSequence " + " and compositeSequence.designElementDataVectors.id=p2pc.secondVector.id " + " and coCompositeSequence.designElementDataVectors.id=p2pc.firstVector.id " + " and coCompositeSequence.biologicalCharacteristic=coBs2gp.bioSequence " + " and coGene.products.id=coBs2gp.geneProduct.id " + " and gene.id = :id and coGene.taxon.id = :taxonId"; // OPTIONAL joins // if there are expressionExperiment arguments Collection<Long> eeIds = new ArrayList<Long>(); CoexpressionCollectionValueObject coexpressions = new CoexpressionCollectionValueObject(); if (ees.size() > 0) { queryStringFirstVector += " and p2pc.firstVector.expressionExperiment.id in (:ees) "; queryStringSecondVector += " and p2pc.secondVector.expressionExperiment.id in (:ees) "; for ( Iterator iter = ees.iterator(); iter.hasNext(); ) { ExpressionExperiment e = ( ExpressionExperiment ) iter.next(); eeIds.add( e.getId() ); } } try { // do query joining coexpressed genes through the firstVector to the secondVector org.hibernate.Query queryObject = super.getSession( false ).createQuery( queryStringFirstVector ); queryObject.setLong( "id", id ); // this is to make the query faster by narrowing down the gene join queryObject.setLong( "taxonId", gene.getTaxon().getId() ); if (ees.size() > 0) { queryObject.setParameterList( "ees", eeIds ); }// queryObject.setInteger( "stringency", stringency ); // put genes in the geneSet ScrollableResults scroll = queryObject.scroll(ScrollMode.FORWARD_ONLY); while (scroll.next()) { CoexpressionValueObject vo; Long geneId = scroll.getLong( 0 ); // check to see if geneId is already in the geneMap if (geneMap.containsKey( geneId )) { vo = geneMap.get( geneId ); } else { vo = new CoexpressionValueObject(); vo.setGeneId( geneId ); vo.setGeneName( scroll.getString( 1 ) ); vo.setGeneOfficialName( scroll.getString( 2 ) ); geneMap.put(geneId,vo); } // add the expression experiment ExpressionExperimentValueObject eeVo = new ExpressionExperimentValueObject(); eeVo.setId( scroll.getLong( 3 ).toString() ); eeVo.setShortName( scroll.getString( 4 ) ); eeVo.setName( scroll.getString( 5 ) ); vo.addExpressionExperimentValueObject( eeVo ); } // do query joining coexpressed genes through the secondVector to the firstVector queryObject = super.getSession( false ).createQuery( queryStringSecondVector ); queryObject.setLong( "id", id ); // this is to make the query faster by narrowing down the gene join queryObject.setLong( "taxonId", gene.getTaxon().getId() ); if (ees.size() > 0) { queryObject.setParameterList( "ees", eeIds ); } // put genes in the geneSet scroll = queryObject.scroll(ScrollMode.FORWARD_ONLY); while (scroll.next()) { CoexpressionValueObject vo; Long geneId = scroll.getLong( 0 ); // check to see if geneId is already in the geneMap if (geneMap.containsKey( geneId )) { vo = geneMap.get( geneId ); } else { vo = new CoexpressionValueObject(); vo.setGeneId( geneId ); vo.setGeneName( scroll.getString( 1 ) ); vo.setGeneOfficialName( scroll.getString( 2 ) ); geneMap.put(geneId,vo); } // add the expression experiment ExpressionExperimentValueObject eeVo = new ExpressionExperimentValueObject(); eeVo.setId( scroll.getLong( 3 ).toString() ); eeVo.setShortName( scroll.getString( 4 ) ); eeVo.setName( scroll.getString( 5 ) ); vo.addExpressionExperimentValueObject( eeVo ); } // add count of original matches to coexpression data coexpressions.setLinkCount( geneMap.size() ); // parse out stringency failures Set keys = geneMap.keySet(); for ( Object object : keys ) { Long key = (Long) object; if (geneMap.get( key ).getExpressionExperimentValueObjects().size() >= stringency) { // add in coexpressions that match stringency coexpressions.getCoexpressionData().add( geneMap.get( key ) ); // add in expression experiments that match stringency Collection eeVos = geneMap.get( key ).getExpressionExperimentValueObjects(); for ( Object o : eeVos ) { ExpressionExperimentValueObject ee = (ExpressionExperimentValueObject) o; eeMap.put( Long.parseLong(ee.getId()), ee ); } } } // add count of pruned matches to coexpression data coexpressions.setStringencyLinkCount( coexpressions.getCoexpressionData().size() ); // add the distinct set of expression experiments involved // in the query to coexpression data coexpressions.setExpressionExperiments( eeMap.values() ); } catch ( org.hibernate.HibernateException ex ) { throw super.convertHibernateAccessException( ex ); } return coexpressions; } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/71d023ff940a83104d33a0ec7a241d4b25474a37/GeneDaoImpl.java/clean/gemma-mda/src/main/java/ubic/gemma/model/genome/GeneDaoImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
1640,
967,
4249,
2749,
4638,
7642,
281,
12,
611,
4009,
7529,
16,
2200,
425,
281,
16,
2144,
533,
2075,
262,
1216,
1185,
288,
3639,
611,
4009,
864,
43,
273,
7529,
31,
3639,
1525,
612,
273,
864,
43,
18,
26321,
5621,
7734,
514,
293,
22,
84,
3834,
31,
3639,
309,
261,
7731,
265,
6497,
18,
291,
28201,
12,
10822,
43,
18,
588,
7731,
265,
1435,
3719,
5411,
293,
22,
84,
3834,
273,
315,
28201,
21042,
4249,
2300,
2828,
14432,
3639,
469,
309,
261,
7731,
265,
6497,
18,
291,
9186,
12,
10822,
43,
18,
588,
7731,
265,
1435,
3719,
5411,
293,
22,
84,
3834,
273,
315,
9186,
21042,
4249,
2300,
2828,
14432,
9079,
469,
309,
261,
7731,
265,
6497,
18,
291,
29635,
12,
10822,
43,
18,
588,
7731,
265,
1435,
3719,
5411,
293,
22,
84,
3834,
273,
315,
29635,
21042,
4249,
2300,
2828,
14432,
7734,
469,
368,
11926,
506,
1308,
5411,
293,
22,
84,
3834,
273,
315,
8290,
21042,
4249,
2300,
2828,
14432,
7734,
1635,
32,
3708,
16,
4249,
8692,
620,
921,
34,
7529,
863,
273,
394,
4317,
32,
3708,
16,
4249,
8692,
620,
921,
34,
5621,
3639,
1635,
32,
3708,
16,
2300,
22338,
620,
921,
34,
14657,
863,
273,
394,
4317,
32,
3708,
16,
2300,
22338,
620,
921,
34,
5621,
7734,
514,
11337,
3759,
5018,
273,
5411,
368,
327,
924,
5411,
315,
4025,
1825,
24442,
18,
350,
16,
1825,
24442,
18,
529,
16,
1825,
24442,
18,
3674,
22354,
461,
16,
84,
22,
2436,
18,
3645,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
1640,
967,
4249,
2749,
4638,
7642,
281,
12,
611,
4009,
7529,
16,
2200,
425,
281,
16,
2144,
533,
2075,
262,
1216,
1185,
288,
3639,
611,
4009,
864,
43,
273,
7529,
31,
3639,
1525,
612,
273,
864,
43,
18,
26321,
5621,
7734,
514,
293,
22,
84,
3834,
31,
3639,
309,
261,
7731,
265,
6497,
18,
291,
28201,
12,
10822,
43,
18,
588,
7731,
265,
1435,
3719,
5411,
293,
22,
84,
3834,
273,
315,
28201,
21042,
4249,
2300,
2828,
14432,
3639,
469,
309,
261,
7731,
265,
6497,
18,
291,
9186,
12,
10822,
43,
18,
588,
7731,
265,
1435,
3719,
5411,
293,
22,
84,
3834,
273,
315,
9186,
21042,
4249,
2300,
2828,
14432,
9079,
469,
309,
261,
7731,
265,
2
] |
table.getCell( 4, 1 ).getContent( ).add( data ); | table.getCell( GroupHandle.FOOTER_SLOT, 1, 1, 1 ).getContent( ).add( data ); | public void testBoundColumnWithGroup( ) throws Exception { createDesign( ); TableHandle table = designHandle.getElementFactory( ).newTableItem( "table1", 3 ); //$NON-NLS-1$ designHandle.getBody( ).add( table ); TableGroupHandle group = designHandle.getElementFactory( ) .newTableGroup( ); group.getFooter( ).add( designHandle.getElementFactory( ).newTableRow( 3 ) ); table.getGroups( ).add( group ); group = designHandle.getElementFactory( ).newTableGroup( ); group.getFooter( ).add( designHandle.getElementFactory( ).newTableRow( 3 ) ); table.getGroups( ).add( group ); DataItemHandle data = designHandle.getElementFactory( ).newDataItem( "data1" ); //$NON-NLS-1$ data.setValueExpr( "row[\"valueData\"]" ); //$NON-NLS-1$ table.getCell( 3, 1 ).getContent( ).add( data ); data = designHandle.getElementFactory( ).newDataItem( "data1" ); //$NON-NLS-1$ data.setValueExpr( "row[\"valueData\"]" ); //$NON-NLS-1$ table.getCell( 4, 1 ).getContent( ).add( data ); saveAs( "CompatibleExpression_out_2.xml" ); //$NON-NLS-1$ assertTrue( compareTextFile( "CompatibleExpression_golden_2.xml", //$NON-NLS-1$ "CompatibleExpression_out_2.xml" ) ); //$NON-NLS-1$ } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/de4e32d64d24337e8801521456bb895f21408aa9/APICompatibleTest.java/clean/model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/APICompatibleTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3499,
1494,
1190,
1114,
12,
262,
1216,
1185,
202,
95,
202,
202,
2640,
15478,
12,
11272,
202,
202,
1388,
3259,
1014,
273,
8281,
3259,
18,
21336,
1733,
12,
262,
18,
2704,
1388,
1180,
12,
9506,
202,
6,
2121,
21,
3113,
890,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
16934,
3259,
18,
588,
2250,
12,
262,
18,
1289,
12,
1014,
11272,
202,
202,
1388,
1114,
3259,
1041,
273,
8281,
3259,
18,
21336,
1733,
12,
262,
9506,
202,
18,
2704,
1388,
1114,
12,
11272,
202,
202,
1655,
18,
588,
13787,
12,
262,
18,
1289,
12,
9506,
202,
16934,
3259,
18,
21336,
1733,
12,
262,
18,
2704,
30650,
12,
890,
262,
11272,
202,
202,
2121,
18,
588,
3621,
12,
262,
18,
1289,
12,
1041,
11272,
202,
202,
1655,
273,
8281,
3259,
18,
21336,
1733,
12,
262,
18,
2704,
1388,
1114,
12,
11272,
202,
202,
1655,
18,
588,
13787,
12,
262,
18,
1289,
12,
9506,
202,
16934,
3259,
18,
21336,
1733,
12,
262,
18,
2704,
30650,
12,
890,
262,
11272,
202,
202,
2121,
18,
588,
3621,
12,
262,
18,
1289,
12,
1041,
11272,
202,
202,
29903,
3259,
501,
273,
8281,
3259,
18,
21336,
1733,
12,
262,
18,
2704,
29903,
12,
9506,
202,
6,
892,
21,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
892,
18,
542,
620,
4742,
12,
315,
492,
63,
2412,
1132,
751,
2412,
4279,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2121,
18,
588,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3499,
1494,
1190,
1114,
12,
262,
1216,
1185,
202,
95,
202,
202,
2640,
15478,
12,
11272,
202,
202,
1388,
3259,
1014,
273,
8281,
3259,
18,
21336,
1733,
12,
262,
18,
2704,
1388,
1180,
12,
9506,
202,
6,
2121,
21,
3113,
890,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
16934,
3259,
18,
588,
2250,
12,
262,
18,
1289,
12,
1014,
11272,
202,
202,
1388,
1114,
3259,
1041,
273,
8281,
3259,
18,
21336,
1733,
12,
262,
9506,
202,
18,
2704,
1388,
1114,
12,
11272,
202,
202,
1655,
18,
588,
13787,
12,
262,
18,
1289,
12,
9506,
202,
16934,
3259,
18,
21336,
1733,
12,
262,
18,
2704,
30650,
12,
890,
262,
11272,
202,
202,
2
] |
public static Object getProperty(Map props, Object key, Object defaultValue) { | public static Object getProperty(Map props, Object key, Object defaultValue) { | public static Object getProperty(Map props, Object key, Object defaultValue) { if (props == null) { return defaultValue; } Object temp = props.get(key); if (temp == null) { temp = defaultValue; } return temp; } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/5c7badd7924d8f30223c81136f63117d913be921/PropertiesHelper.java/clean/src/java/org/mule/util/PropertiesHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3911,
12,
863,
3458,
16,
1033,
498,
16,
1033,
4593,
13,
288,
3639,
309,
261,
9693,
422,
446,
13,
288,
5411,
327,
4593,
31,
3639,
289,
3639,
1033,
1906,
273,
3458,
18,
588,
12,
856,
1769,
3639,
309,
261,
5814,
422,
446,
13,
288,
5411,
1906,
273,
4593,
31,
3639,
289,
3639,
327,
1906,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3911,
12,
863,
3458,
16,
1033,
498,
16,
1033,
4593,
13,
288,
3639,
309,
261,
9693,
422,
446,
13,
288,
5411,
327,
4593,
31,
3639,
289,
3639,
1033,
1906,
273,
3458,
18,
588,
12,
856,
1769,
3639,
309,
261,
5814,
422,
446,
13,
288,
5411,
1906,
273,
4593,
31,
3639,
289,
3639,
327,
1906,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void finish() { } | public void finish() { } | public void finish() { } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/AnalysisRun.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/AnalysisRun.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
4076,
1435,
288,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
4076,
1435,
288,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( ( sNewSubType.equalsIgnoreCase( "Stacked" ) || sNewSubType.equalsIgnoreCase( "Percent Stacked" ) ) ) | if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) | private Chart getConvertedChart( Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); ChartDimension oldDimension = currentChart.getDimension( ); if ( ( currentChart instanceof ChartWithAxes ) ) { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) // Original // chart is // of this type // (LineChart) { if ( !currentChart.getSubType( ).equals( sNewSubType ) ) // Original // chart // is // of // the // required // subtype { currentChart.setSubType( sNewSubType ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( "Percent Stacked" ) ) //$NON-NLS-1$ { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); if ( ( sNewSubType.equalsIgnoreCase( "Stacked" ) || sNewSubType //$NON-NLS-1$ .equalsIgnoreCase( "Percent Stacked" ) ) ) //$NON-NLS-1$ { series.setStacked( true ); } else { series.setStacked( false ); } } } } } else if ( currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) || currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) || currentChart.getType( ).equals( StockChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( ScatterChart.TYPE_LITERAL ) ) { if ( !currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) ) //$NON-NLS-1$ { currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ) ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).setType( AxisType.TEXT_LITERAL ); } currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( "Percent Stacked" ) ) //$NON-NLS-1$ { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); if ( ( sNewSubType.equalsIgnoreCase( "Stacked" ) || sNewSubType.equalsIgnoreCase( "Percent Stacked" ) ) ) //$NON-NLS-1$ //$NON-NLS-2$ { series.setStacked( true ); } else { series.setStacked( false ); } ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } } else { return null; } ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); } else { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setType( AxisType.TEXT_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( helperModel.getSampleData( ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getType( ).equals( PieChart.TYPE_LITERAL ) || helperModel.getType( ).equals( MeterChart.TYPE_LITERAL ) ) { // Clear existing series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy base series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) .get( 0 ) ); // Clear existing series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy orthogonal series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .addAll( ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeriesDefinitions( ) ); // Update the base series Series series = ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); // Clear existing series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .clear( ); // Add converted series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .add( series ); // Update the orthogonal series EList seriesdefinitions = ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); if ( ( sNewSubType.equalsIgnoreCase( "Stacked" ) || sNewSubType.equalsIgnoreCase( "Percent Stacked" ) ) ) //$NON-NLS-1$ //$NON-NLS-2$ { series.setStacked( true ); } else { series.setStacked( false ); } // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } else { return null; } currentChart.getLegend( ).setItemType( LegendItemType.SERIES_LITERAL ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); } if ( currentChart instanceof ChartWithAxes && !( (ChartWithAxes) currentChart ).getOrientation( ) .equals( newOrientation ) ) { ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); } if ( !currentChart.getDimension( ) .equals( getDimensionFor( sNewDimension ) ) ) { currentChart.setDimension( getDimensionFor( sNewDimension ) ); } if ( sNewDimension.equals( THREE_DIMENSION_TYPE ) && getDimensionFor( sNewDimension ) != oldDimension ) { ( (ChartWithAxes) currentChart ).setRotation( Rotation3DImpl.create( new Angle3D[]{ Angle3DImpl.create( -20, 45, 0 ) } ) ); ( (ChartWithAxes) currentChart ).setUnitSpacing( 50 ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .clear( ); Axis zAxisAncillary = AxisImpl.create( Axis.ANCILLARY_BASE ); zAxisAncillary.setTitlePosition( Position.BELOW_LITERAL ); zAxisAncillary.getTitle( ) .getCaption( ) .setValue( Messages.getString( "ChartWithAxesImpl.Z_Axis.title" ) ); //$NON-NLS-1$ zAxisAncillary.getTitle( ).setVisible( true ); zAxisAncillary.setPrimaryAxis( true ); zAxisAncillary.setLabelPosition( Position.BELOW_LITERAL ); zAxisAncillary.setOrientation( Orientation.HORIZONTAL_LITERAL ); zAxisAncillary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); zAxisAncillary.getOrigin( ) .setValue( NumberDataElementImpl.create( 0 ) ); zAxisAncillary.getTitle( ).setVisible( false ); zAxisAncillary.setType( AxisType.TEXT_LITERAL ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .add( zAxisAncillary ); SeriesDefinition sdZ = SeriesDefinitionImpl.create( ); sdZ.getSeriesPalette( ).update( 0 ); sdZ.getSeries( ).add( SeriesImpl.create( ) ); zAxisAncillary.getSeriesDefinitions( ).add( sdZ ); if ( currentChart.getSampleData( ) .getAncillarySampleData( ) .isEmpty( ) ) { BaseSampleData sdAncillary = DataFactory.eINSTANCE.createBaseSampleData( ); sdAncillary.setDataSetRepresentation( "Series 1" ); //$NON-NLS-1$ currentChart.getSampleData( ) .getAncillarySampleData( ) .add( sdAncillary ); } } return currentChart; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/ae5c99c975d28a2277f3b75baa2207ddf1c0d0ae/LineChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
14097,
394,
14097,
16,
514,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
512,
3644,
1304,
18,
3530,
12,
783,
7984,
11272,
202,
202,
7984,
8611,
1592,
8611,
273,
783,
7984,
18,
588,
8611,
12,
11272,
202,
202,
430,
261,
261,
783,
7984,
1276,
14804,
1190,
26494,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
783,
7984,
18,
588,
559,
12,
262,
18,
14963,
12,
3463,
67,
23225,
262,
262,
368,
19225,
1082,
202,
759,
4980,
353,
1082,
202,
759,
434,
333,
618,
1082,
202,
759,
261,
1670,
7984,
13,
1082,
202,
95,
9506,
202,
430,
261,
401,
2972,
7984,
18,
588,
30511,
12,
262,
18,
14963,
12,
272,
1908,
30511,
262,
262,
368,
19225,
9506,
202,
759,
4980,
9506,
202,
759,
353,
9506,
202,
759,
434,
9506,
202,
759,
326,
9506,
202,
759,
1931,
9506,
202,
759,
12308,
9506,
202,
95,
6862,
202,
2972,
7984,
18,
542,
30511,
12,
272,
1908,
30511,
11272,
6862,
202,
41,
682,
6515,
273,
261,
261,
6558,
13,
261,
261,
7984,
1190,
26494,
13,
783,
7984,
262,
18,
588,
26494,
12,
262,
6862,
1082,
202,
18,
588,
12,
374,
262,
262,
18,
588,
19233,
26494,
12,
11272,
6862,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
6515,
18,
1467,
12,
11272,
277,
9904,
262,
6862,
202,
95,
25083,
202,
430,
261,
272,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
14097,
394,
14097,
16,
514,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
512,
3644,
1304,
18,
3530,
12,
783,
7984,
11272,
202,
202,
7984,
8611,
1592,
8611,
273,
783,
7984,
18,
588,
8611,
12,
11272,
202,
202,
430,
261,
261,
783,
7984,
1276,
14804,
1190,
26494,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
783,
7984,
18,
588,
559,
12,
262,
18,
14963,
12,
3463,
67,
23225,
262,
262,
368,
19225,
1082,
202,
759,
4980,
353,
1082,
202,
759,
434,
333,
618,
1082,
202,
759,
261,
1670,
7984,
13,
1082,
202,
2
] |
public Context createSubcontext( Name name ) throws NamingException | public Context createSubcontext( String name ) throws NamingException | public Context createSubcontext( Name name ) throws NamingException { /* * Start building the server side attributes to be added directly to * the backend. * * The RDN from name can be a multivalued RDN based on more than one * attribute using the '+' AVA concatenator in a name component. Right * now this code will bomb out because we presume single valued RDNs. * * TODO Add multivalued RDN handling code */ Attributes attributes = new LockableAttributesImpl(); LdapName target = buildTarget( name ); String rdn = name.get( name.size() - 1 ); String rdnAttribute = NamespaceTools.getRdnAttribute( rdn ); String rdnValue = NamespaceTools.getRdnValue( rdn ); /* * TODO Add code within the interceptor service managing operational * attributes the ability to add the target user provided DN to the * attributes before normalization. The result should have ths same * affect as the following line within the interceptor. * * attributes.put( BootstrapSchema.DN_ATTR, target.toString() ); */ attributes.put( rdnAttribute, rdnValue ); attributes.put( JavaLdapSupport.OBJECTCLASS_ATTR, JavaLdapSupport.JCONTAINER_ATTR ); attributes.put( JavaLdapSupport.OBJECTCLASS_ATTR, JavaLdapSupport.TOP_ATTR ); /* * Add the new context to the server which as a side effect adds * operational attributes to the attributes refering instance which * can them be used to initialize a new EveLdapContext. Remember * we need to copy over the controls as well to propagate the complete * environment besides whats in the hashtable for env. */ nexusProxy.add( target.toString(), target, attributes ); EveLdapContext ctx = new EveLdapContext( principal, nexusProxy, env, target ); Control [] controls = ( Control [] ) ( ( EveLdapContext ) this ).getRequestControls().clone(); ctx.setRequestControls( controls ); return ctx; } | 17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/0132d1f6fc999a40038ffa4e9d000e622b4e44d4/EveContext.java/buggy/jndi-provider/src/java/org/apache/eve/jndi/EveContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1772,
752,
1676,
2472,
12,
514,
508,
262,
1216,
26890,
565,
288,
3639,
1748,
1850,
380,
3603,
10504,
326,
1438,
4889,
1677,
358,
506,
3096,
5122,
358,
540,
380,
326,
4221,
18,
540,
380,
1850,
380,
1021,
534,
8609,
628,
508,
848,
506,
279,
1778,
427,
15730,
534,
8609,
2511,
603,
1898,
2353,
1245,
540,
380,
1566,
1450,
326,
10058,
15068,
37,
8311,
639,
316,
279,
508,
1794,
18,
225,
13009,
540,
380,
2037,
333,
981,
903,
324,
16659,
596,
2724,
732,
4075,
2066,
2202,
31037,
534,
8609,
87,
18,
540,
380,
1850,
380,
2660,
1436,
1778,
427,
15730,
534,
8609,
5057,
981,
1850,
1195,
3639,
9055,
1677,
273,
394,
3488,
429,
2498,
2828,
5621,
3639,
18053,
461,
1018,
273,
1361,
2326,
12,
508,
11272,
3639,
514,
436,
5176,
273,
508,
18,
588,
12,
508,
18,
1467,
1435,
300,
404,
11272,
3639,
514,
436,
5176,
1499,
273,
6005,
10348,
18,
588,
54,
5176,
1499,
12,
436,
5176,
11272,
3639,
514,
436,
5176,
620,
273,
6005,
10348,
18,
588,
54,
5176,
620,
12,
436,
5176,
11272,
3639,
1748,
1850,
380,
2660,
1436,
981,
3470,
326,
13810,
1156,
30632,
1674,
287,
540,
380,
1677,
326,
7123,
358,
527,
326,
1018,
729,
2112,
18001,
358,
326,
1850,
380,
1677,
1865,
13728,
18,
225,
1021,
563,
1410,
1240,
286,
87,
1967,
540,
380,
13418,
487,
326,
3751,
980,
3470,
326,
13810,
18,
540,
380,
1850,
380,
1677,
18,
458,
12,
11830,
3078,
18,
8609,
67,
12043,
16,
1018,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1772,
752,
1676,
2472,
12,
514,
508,
262,
1216,
26890,
565,
288,
3639,
1748,
1850,
380,
3603,
10504,
326,
1438,
4889,
1677,
358,
506,
3096,
5122,
358,
540,
380,
326,
4221,
18,
540,
380,
1850,
380,
1021,
534,
8609,
628,
508,
848,
506,
279,
1778,
427,
15730,
534,
8609,
2511,
603,
1898,
2353,
1245,
540,
380,
1566,
1450,
326,
10058,
15068,
37,
8311,
639,
316,
279,
508,
1794,
18,
225,
13009,
540,
380,
2037,
333,
981,
903,
324,
16659,
596,
2724,
732,
4075,
2066,
2202,
31037,
534,
8609,
87,
18,
540,
380,
1850,
380,
2660,
1436,
1778,
427,
15730,
534,
8609,
5057,
981,
1850,
1195,
3639,
9055,
1677,
273,
394,
3488,
429,
2498,
2828,
5621,
3639,
18053,
2
] |
otherMock.stubs().method("hello").id(priorCall); mock.stubs().method("goodbye").after(otherMock, priorCall); | otherMock.stubs().method("hello").id(priorCall); mock.stubs().method("goodbye").after(otherMock, priorCall); | public void testDetectsUnexpectedOrderOverDifferentMocks() { String otherMockName = "otherMock"; String priorCall = "HELLO-CALL-ID"; Mock otherMock = mock(ExampleInterface.class, otherMockName); otherMock.stubs().method("hello").id(priorCall); mock.stubs().method("goodbye").after(otherMock, priorCall); try { proxy.goodbye(); fail("expected DynamicMockError"); } catch (DynamicMockError ex) { assertTrue("error message should contain id of prior call", ex.getMessage().indexOf(priorCall) >= 0); assertTrue("error message should contain name of mock receiving prior call", ex.getMessage().indexOf(otherMockName) >= 0); } } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/OrderedInvocationsAcceptanceTest.java/buggy/jmock/core/acceptance-tests/atest/jmock/OrderedInvocationsAcceptanceTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
12081,
87,
7762,
2448,
4851,
26270,
9865,
87,
1435,
288,
202,
202,
780,
1308,
9865,
461,
273,
315,
3011,
9865,
14432,
202,
202,
780,
6432,
1477,
273,
315,
20264,
1502,
17,
13730,
17,
734,
14432,
202,
202,
9865,
1308,
9865,
273,
5416,
12,
10908,
1358,
18,
1106,
16,
1308,
9865,
461,
1769,
202,
202,
3011,
9865,
18,
31960,
7675,
2039,
2932,
23711,
20387,
350,
12,
17927,
1477,
1769,
202,
202,
22851,
18,
31960,
7675,
2039,
2932,
19747,
1637,
73,
20387,
5205,
12,
3011,
9865,
16,
6432,
1477,
1769,
202,
202,
698,
288,
1082,
202,
5656,
18,
19747,
1637,
73,
5621,
1082,
202,
6870,
2932,
3825,
12208,
9865,
668,
8863,
202,
202,
97,
202,
202,
14683,
261,
9791,
9865,
668,
431,
13,
288,
1082,
202,
11231,
5510,
2932,
1636,
883,
1410,
912,
612,
434,
6432,
745,
3113,
9506,
6647,
431,
18,
24906,
7675,
31806,
12,
17927,
1477,
13,
1545,
374,
1769,
1082,
202,
11231,
5510,
2932,
1636,
883,
1410,
912,
508,
434,
5416,
15847,
6432,
745,
3113,
9506,
6647,
431,
18,
24906,
7675,
31806,
12,
3011,
9865,
461,
13,
1545,
374,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
12081,
87,
7762,
2448,
4851,
26270,
9865,
87,
1435,
288,
202,
202,
780,
1308,
9865,
461,
273,
315,
3011,
9865,
14432,
202,
202,
780,
6432,
1477,
273,
315,
20264,
1502,
17,
13730,
17,
734,
14432,
202,
202,
9865,
1308,
9865,
273,
5416,
12,
10908,
1358,
18,
1106,
16,
1308,
9865,
461,
1769,
202,
202,
3011,
9865,
18,
31960,
7675,
2039,
2932,
23711,
20387,
350,
12,
17927,
1477,
1769,
202,
202,
22851,
18,
31960,
7675,
2039,
2932,
19747,
1637,
73,
20387,
5205,
12,
3011,
9865,
16,
6432,
1477,
1769,
202,
202,
698,
288,
1082,
202,
5656,
18,
19747,
1637,
73,
5621,
1082,
202,
6870,
2932,
3825,
12208,
9865,
668,
8863,
202,
202,
97,
202,
202,
2
] |
return RubyFixnum.zero(runtime); | return RubyFixnum.zero(getRuntime()); | public RubyFixnum op_cmp(IRubyObject other) { long millis = getTimeInMillis(); if (other instanceof RubyFloat || other instanceof RubyBignum) { double time = millis / 1000.0; double time_other = ((RubyNumeric) other).getDoubleValue(); if (time > time_other) { return RubyFixnum.one(runtime); } else if (time < time_other) { return RubyFixnum.minus_one(runtime); } else { return RubyFixnum.zero(runtime); } } long millis_other = (other instanceof RubyTime) ? ((RubyTime) other).getTimeInMillis() : RubyNumeric.num2long(other) * 1000; if (millis > millis_other) { return RubyFixnum.one(runtime); } else if (millis < millis_other) { return RubyFixnum.minus_one(runtime); } else { return RubyFixnum.zero(runtime); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyTime.java/clean/src/org/jruby/RubyTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
1061,
67,
9625,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
1525,
14833,
273,
6135,
16620,
5621,
3639,
309,
261,
3011,
1276,
19817,
4723,
747,
1308,
1276,
19817,
38,
724,
379,
13,
288,
5411,
1645,
813,
273,
14833,
342,
4336,
18,
20,
31,
5411,
1645,
813,
67,
3011,
273,
14015,
54,
10340,
9902,
13,
1308,
2934,
588,
5265,
620,
5621,
5411,
309,
261,
957,
405,
813,
67,
3011,
13,
288,
7734,
327,
19817,
8585,
2107,
18,
476,
12,
9448,
1769,
5411,
289,
469,
309,
261,
957,
411,
813,
67,
3011,
13,
288,
7734,
327,
19817,
8585,
2107,
18,
19601,
67,
476,
12,
9448,
1769,
5411,
289,
469,
288,
7734,
327,
19817,
8585,
2107,
18,
7124,
12,
588,
5576,
10663,
5411,
289,
3639,
289,
202,
202,
5748,
14833,
67,
3011,
273,
261,
3011,
1276,
19817,
950,
13,
692,
14015,
54,
10340,
950,
13,
1308,
2934,
588,
950,
16620,
1435,
294,
19817,
9902,
18,
2107,
22,
5748,
12,
3011,
13,
380,
4336,
31,
202,
202,
430,
261,
81,
3503,
405,
14833,
67,
3011,
13,
288,
1082,
565,
327,
19817,
8585,
2107,
18,
476,
12,
9448,
1769,
202,
202,
97,
469,
309,
261,
81,
3503,
411,
14833,
67,
3011,
13,
288,
1082,
565,
327,
19817,
8585,
2107,
18,
19601,
67,
476,
12,
9448,
1769,
202,
202,
97,
469,
288,
1082,
565,
327,
19817,
8585,
2107,
18,
7124,
12,
9448,
1769,
202,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
1061,
67,
9625,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
1525,
14833,
273,
6135,
16620,
5621,
3639,
309,
261,
3011,
1276,
19817,
4723,
747,
1308,
1276,
19817,
38,
724,
379,
13,
288,
5411,
1645,
813,
273,
14833,
342,
4336,
18,
20,
31,
5411,
1645,
813,
67,
3011,
273,
14015,
54,
10340,
9902,
13,
1308,
2934,
588,
5265,
620,
5621,
5411,
309,
261,
957,
405,
813,
67,
3011,
13,
288,
7734,
327,
19817,
8585,
2107,
18,
476,
12,
9448,
1769,
5411,
289,
469,
309,
261,
957,
411,
813,
67,
3011,
13,
288,
7734,
327,
19817,
8585,
2107,
18,
19601,
67,
476,
12,
9448,
1769,
5411,
289,
469,
288,
7734,
327,
19817,
8585,
2107,
18,
2
] |
public boolean performFinish() { queryPage.getQueryDialog().okPressed(); final BugzillaRepositoryQuery queryCategory = new BugzillaRepositoryQuery( repository.getUrl(), queryPage.getQueryDialog().getUrl(), queryPage.getQueryDialog().getName(), queryPage.getQueryDialog().getMaxHits(), MylarTaskListPlugin.getTaskListManager().getTaskList()); if (queryPage.getQueryDialog().isCustom()) { queryCategory.setCustomQuery(true); } // else {// queryCategory = new BugzillaCustomRepositoryQuery(// repository.getUrl().toExternalForm(), // queryPage.getQueryDialog().getName(), // queryPage.getQueryDialog().getUrl(), // queryPage.getQueryDialog().getMaxHits());// } MylarTaskListPlugin.getTaskListManager().getTaskList().addQuery(queryCategory); boolean offline = MylarTaskListPlugin.getMylarCorePrefs().getBoolean(TaskListPreferenceConstants.WORK_OFFLINE); if (!offline) { WorkspaceModifyOperation op = new WorkspaceModifyOperation() { protected void execute(IProgressMonitor monitor) throws CoreException { monitor.beginTask("Executing query", 50); try { AbstractRepositoryConnector client = MylarTaskListPlugin.getRepositoryManager().getRepositoryConnector(BugzillaPlugin.REPOSITORY_KIND); client.synchronize(queryCategory, null);// if (TaskListView.getDefault() != null) {// TaskListView.getDefault().getViewer().refresh();// }// queryCategory.refreshBugs(new SubProgressMonitor(monitor, 50)); } finally { monitor.done(); } } }; try { getContainer().run(true, false, op); } catch (Exception e) { MylarStatusHandler.log(e, "There was a problem executing the query refresh"); } }// if (TaskListView.getDefault() != null) {// TaskListView.getDefault().getViewer().refresh();// } return true; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/36f9c08d02fadb543a4958543b208eb8fbe9398f/NewBugzillaQueryWizard.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/NewBugzillaQueryWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
11641,
1435,
288,
202,
202,
2271,
1964,
18,
588,
1138,
6353,
7675,
601,
24624,
5621,
202,
202,
6385,
16907,
15990,
3305,
1138,
843,
4457,
273,
394,
16907,
15990,
3305,
1138,
12,
9506,
202,
9071,
18,
588,
1489,
9334,
4697,
202,
2271,
1964,
18,
588,
1138,
6353,
7675,
588,
1489,
9334,
4697,
202,
2271,
1964,
18,
588,
1138,
6353,
7675,
17994,
9334,
4697,
202,
2271,
1964,
18,
588,
1138,
6353,
7675,
588,
2747,
20950,
9334,
4697,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
10663,
202,
202,
430,
261,
2271,
1964,
18,
588,
1138,
6353,
7675,
291,
3802,
10756,
288,
1082,
202,
2271,
4457,
18,
542,
3802,
1138,
12,
3767,
1769,
202,
202,
97,
368,
202,
202,
12107,
288,
759,
1082,
202,
2271,
4457,
273,
394,
16907,
15990,
3802,
3305,
1138,
12,
759,
6862,
202,
9071,
18,
588,
1489,
7675,
869,
6841,
1204,
9334,
368,
6862,
202,
2271,
1964,
18,
588,
1138,
6353,
7675,
17994,
9334,
368,
6862,
202,
2271,
1964,
18,
588,
1138,
6353,
7675,
588,
1489,
9334,
368,
6862,
202,
2271,
1964,
18,
588,
1138,
6353,
7675,
588,
2747,
20950,
10663,
759,
202,
202,
97,
202,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
7675,
1289,
1138,
12,
2271,
4457,
1769,
202,
202,
6494,
13493,
273,
8005,
7901,
2174,
682,
3773,
18,
588,
12062,
7901,
4670,
1386,
2556,
7675,
588,
5507,
12,
2174,
682,
9624,
2918,
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,
1250,
3073,
11641,
1435,
288,
202,
202,
2271,
1964,
18,
588,
1138,
6353,
7675,
601,
24624,
5621,
202,
202,
6385,
16907,
15990,
3305,
1138,
843,
4457,
273,
394,
16907,
15990,
3305,
1138,
12,
9506,
202,
9071,
18,
588,
1489,
9334,
4697,
202,
2271,
1964,
18,
588,
1138,
6353,
7675,
588,
1489,
9334,
4697,
202,
2271,
1964,
18,
588,
1138,
6353,
7675,
17994,
9334,
4697,
202,
2271,
1964,
18,
588,
1138,
6353,
7675,
588,
2747,
20950,
9334,
4697,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
10663,
202,
202,
430,
261,
2271,
1964,
18,
588,
1138,
6353,
7675,
291,
3802,
10756,
288,
1082,
202,
2271,
4457,
18,
542,
3802,
1138,
2
] |
||
System.err.println("DOM: status URL load - " + | System.err.println(prefix + " :status URL load - " + | public void statusURLLoad(String url, String message, Document doc) { if (debug) System.err.println("DOM: status URL load - " + url.toString() + " (" + message + ")"); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/d5d632bf9df2e7c37640ec01b53cc4d876888be9/TestDocLoadListener.java/clean/java/dom/tests/src/TestDocLoadListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1267,
1785,
2563,
12,
780,
880,
16,
514,
883,
16,
4319,
997,
13,
288,
565,
309,
261,
4148,
13,
1377,
2332,
18,
370,
18,
8222,
12,
3239,
397,
315,
294,
2327,
1976,
1262,
300,
315,
397,
4697,
880,
18,
10492,
1435,
397,
315,
7566,
397,
9506,
883,
397,
7310,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1267,
1785,
2563,
12,
780,
880,
16,
514,
883,
16,
4319,
997,
13,
288,
565,
309,
261,
4148,
13,
1377,
2332,
18,
370,
18,
8222,
12,
3239,
397,
315,
294,
2327,
1976,
1262,
300,
315,
397,
4697,
880,
18,
10492,
1435,
397,
315,
7566,
397,
9506,
883,
397,
7310,
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
] |
log(aBrace.getLineNo(), aBrace.getColumnNo(), "'{' should be on a new line."); | log(aBrace.getLineNo(), aBrace.getColumnNo(), "line.new", "{"); | private void checkLCurly(int aStartLine, MyCommonAST aBrace, LeftCurlyOption aOption) { verifyWSAroundBegin(aBrace.getLineNo(), aBrace.getColumnNo() + 1, aBrace.getText()); final String braceLine = mLines[aBrace.getLineNo() - 1]; // calculate the previous line length without trailing whitespace. Need // to handle the case where there is no previous line, cause the line // being check is the first line in the file. final int prevLineLen = (aBrace.getLineNo() == 1) ? mConfig.getMaxLineLength() : Utils.lengthMinusTrailingWhitespace( mLines[aBrace.getLineNo() - 2]); // Check for being told to ignore, or have '{}' which is a special case if ((aOption == LeftCurlyOption.IGNORE) || ((braceLine.length() > (aBrace.getColumnNo() + 1)) && (braceLine.charAt(aBrace.getColumnNo() + 1) == '}'))) { // ignore } else if (aOption == LeftCurlyOption.NL) { if (!Utils.whitespaceBefore(aBrace.getColumnNo(), braceLine)) { log(aBrace.getLineNo(), aBrace.getColumnNo(), "'{' should be on a new line."); } } else if (aOption == LeftCurlyOption.EOL) { if (Utils.whitespaceBefore(aBrace.getColumnNo(), braceLine) && ((prevLineLen + 2) <= mConfig.getMaxLineLength())) { log(aBrace.getLineNo(), aBrace.getColumnNo(), "'{' should be on the previous line."); } } else if (aOption == LeftCurlyOption.NLOW) { if (aStartLine == aBrace.getLineNo()) { // all ok as on the same line } else if ((aStartLine + 1) == aBrace.getLineNo()) { if (!Utils.whitespaceBefore(aBrace.getColumnNo(), braceLine)) { log(aBrace.getLineNo(), aBrace.getColumnNo(), "'{' should be on a new line."); } else if ((prevLineLen + 2) <= mConfig.getMaxLineLength()) { log(aBrace.getLineNo(), aBrace.getColumnNo(), "'{' should be on the previous line."); } } else if (!Utils.whitespaceBefore(aBrace.getColumnNo(), braceLine)) { log(aBrace.getLineNo(), aBrace.getColumnNo(), "'{' should be on a new line."); } } } | 50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/513205d86a53fb1b65da8613563fa177bd5f4882/Verifier.java/clean/src/checkstyle/com/puppycrawl/tools/checkstyle/Verifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
48,
30043,
12,
474,
279,
1685,
1670,
16,
11794,
8005,
6517,
9053,
279,
21965,
16,
11794,
13338,
30043,
1895,
279,
1895,
13,
565,
288,
3639,
3929,
2651,
30022,
8149,
12,
69,
21965,
18,
588,
1670,
2279,
9334,
18701,
279,
21965,
18,
588,
1494,
2279,
1435,
397,
404,
16,
18701,
279,
21965,
18,
588,
1528,
10663,
3639,
727,
514,
22500,
1670,
273,
312,
5763,
63,
69,
21965,
18,
588,
1670,
2279,
1435,
300,
404,
15533,
3639,
368,
4604,
326,
2416,
980,
769,
2887,
7341,
7983,
18,
12324,
3639,
368,
358,
1640,
326,
648,
1625,
1915,
353,
1158,
2416,
980,
16,
4620,
326,
980,
3639,
368,
3832,
866,
353,
326,
1122,
980,
316,
326,
585,
18,
3639,
727,
509,
2807,
1670,
2891,
273,
261,
69,
21965,
18,
588,
1670,
2279,
1435,
422,
404,
13,
5411,
692,
312,
809,
18,
588,
2747,
1670,
1782,
1435,
5411,
294,
6091,
18,
2469,
18434,
16808,
9431,
12,
7734,
312,
5763,
63,
69,
21965,
18,
588,
1670,
2279,
1435,
300,
576,
19226,
3639,
368,
2073,
364,
3832,
268,
1673,
358,
2305,
16,
578,
1240,
7485,
1492,
353,
279,
4582,
648,
3639,
309,
14015,
69,
1895,
422,
13338,
30043,
1895,
18,
20118,
13,
5411,
747,
14015,
70,
9963,
1670,
18,
2469,
1435,
405,
261,
69,
21965,
18,
588,
1494,
2279,
1435,
397,
404,
3719,
7734,
597,
261,
70,
9963,
1670,
18,
3001,
861,
12,
69,
21965,
18,
588,
1494,
2279,
1435,
397,
404,
13,
422,
9571,
20349,
3639,
288,
5411,
368,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
48,
30043,
12,
474,
279,
1685,
1670,
16,
11794,
8005,
6517,
9053,
279,
21965,
16,
11794,
13338,
30043,
1895,
279,
1895,
13,
565,
288,
3639,
3929,
2651,
30022,
8149,
12,
69,
21965,
18,
588,
1670,
2279,
9334,
18701,
279,
21965,
18,
588,
1494,
2279,
1435,
397,
404,
16,
18701,
279,
21965,
18,
588,
1528,
10663,
3639,
727,
514,
22500,
1670,
273,
312,
5763,
63,
69,
21965,
18,
588,
1670,
2279,
1435,
300,
404,
15533,
3639,
368,
4604,
326,
2416,
980,
769,
2887,
7341,
7983,
18,
12324,
3639,
368,
358,
1640,
326,
648,
1625,
1915,
353,
1158,
2416,
980,
16,
4620,
326,
980,
3639,
368,
3832,
866,
353,
326,
1122,
980,
316,
326,
585,
18,
3639,
2
] |
public void writeUTF(String str) throws IOException { throw new IOException("not required"); } | public void writeUTF(String str) throws IOException { throw new IOException("not required"); } | public void writeUTF(String str) throws IOException { throw new IOException("not required");} | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/84d120cc49d42a79bfbc68fe36429395bdef90fd/UnicastRemoteCall.java/buggy/libjava/gnu/java/rmi/server/UnicastRemoteCall.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1045,
5159,
12,
780,
609,
13,
1216,
1860,
288,
202,
12849,
394,
1860,
2932,
902,
1931,
8863,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1045,
5159,
12,
780,
609,
13,
1216,
1860,
288,
202,
12849,
394,
1860,
2932,
902,
1931,
8863,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return getPresentation().getControl().getBounds(); | Rectangle bounds = getClientArea(); if (site.getState() == IStackPresentationSite.STATE_MAXIMIZED) { return bounds; } boolean horizontal = Geometry.isHorizontal(side); int available = Geometry.getDimension(bounds, !horizontal); return Geometry.getExtrudedEdge(bounds, Math.min(FastViewPane.this.size, available), side); | private Rectangle getBounds() { return getPresentation().getControl().getBounds(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1334a76d3033f5c80020f1a0c5c45fe244eebfad/FastViewPane.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
13264,
22107,
1435,
288,
202,
202,
2463,
1689,
1581,
367,
7675,
588,
3367,
7675,
588,
5694,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
13264,
22107,
1435,
288,
202,
202,
2463,
1689,
1581,
367,
7675,
588,
3367,
7675,
588,
5694,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ResultSet result = ExecSQL("select typname from pg_type where oid = " + oid); if (((AbstractJdbc1ResultSet)result).getColumnCount() != 1 || ((AbstractJdbc1ResultSet)result).getTupleCount() != 1) throw new PSQLException("postgresql.unexpected"); result.next(); String pgType = result.getString(1); | String pgType; if (oid == 0) { pgType = "opaque"; } else { String sql; if (haveMinimumServerVersion("7.3")) { sql = "SELECT typname FROM pg_catalog.pg_type WHERE oid = " +oid; } else { sql = "SELECT typname FROM pg_type WHERE oid = " +oid; } ResultSet result = ExecSQL(sql); if (((AbstractJdbc1ResultSet)result).getColumnCount() != 1 || ((AbstractJdbc1ResultSet)result).getTupleCount() != 1) { throw new PSQLException("postgresql.unexpected"); } result.next(); pgType = result.getString(1); result.close(); } | public int getSQLType(int oid) throws SQLException { Integer sqlType = (Integer)sqlTypeCache.get(new Integer(oid)); // it's not in the cache, so perform a query, and add the result to the cache if (sqlType == null) { ResultSet result = ExecSQL("select typname from pg_type where oid = " + oid); if (((AbstractJdbc1ResultSet)result).getColumnCount() != 1 || ((AbstractJdbc1ResultSet)result).getTupleCount() != 1) throw new PSQLException("postgresql.unexpected"); result.next(); String pgType = result.getString(1); Integer iOid = new Integer(oid); sqlType = new Integer(getSQLType(result.getString(1))); sqlTypeCache.put(iOid, sqlType); pgTypeCache.put(iOid, pgType); result.close(); } return sqlType.intValue(); } | 47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/7c553901d7ab010ad1cb5bf44f9ca2fdae83909a/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
21708,
559,
12,
474,
7764,
13,
1216,
6483,
202,
95,
202,
202,
4522,
1847,
559,
273,
261,
4522,
13,
4669,
559,
1649,
18,
588,
12,
2704,
2144,
12,
839,
10019,
202,
202,
759,
518,
1807,
486,
316,
326,
1247,
16,
1427,
3073,
279,
843,
16,
471,
527,
326,
563,
358,
326,
1247,
202,
202,
430,
261,
4669,
559,
422,
446,
13,
202,
202,
95,
1082,
202,
13198,
563,
273,
3889,
3997,
2932,
4025,
3815,
529,
628,
7184,
67,
723,
1625,
7764,
273,
315,
397,
7764,
1769,
1082,
202,
430,
261,
12443,
7469,
25316,
21,
13198,
13,
2088,
2934,
588,
1494,
1380,
1435,
480,
404,
747,
14015,
7469,
25316,
21,
13198,
13,
2088,
2934,
588,
9038,
1380,
1435,
480,
404,
13,
9506,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
21248,
8863,
1082,
202,
2088,
18,
4285,
5621,
1082,
202,
780,
7184,
559,
273,
563,
18,
588,
780,
12,
21,
1769,
1082,
202,
4522,
277,
19105,
273,
394,
2144,
12,
839,
1769,
1082,
202,
4669,
559,
273,
394,
2144,
12,
588,
3997,
559,
12,
2088,
18,
588,
780,
12,
21,
3719,
1769,
1082,
202,
4669,
559,
1649,
18,
458,
12,
77,
19105,
16,
1847,
559,
1769,
1082,
202,
8365,
559,
1649,
18,
458,
12,
77,
19105,
16,
7184,
559,
1769,
1082,
202,
2088,
18,
4412,
5621,
202,
202,
97,
202,
202,
2463,
1847,
559,
18,
474,
620,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
21708,
559,
12,
474,
7764,
13,
1216,
6483,
202,
95,
202,
202,
4522,
1847,
559,
273,
261,
4522,
13,
4669,
559,
1649,
18,
588,
12,
2704,
2144,
12,
839,
10019,
202,
202,
759,
518,
1807,
486,
316,
326,
1247,
16,
1427,
3073,
279,
843,
16,
471,
527,
326,
563,
358,
326,
1247,
202,
202,
430,
261,
4669,
559,
422,
446,
13,
202,
202,
95,
1082,
202,
13198,
563,
273,
3889,
3997,
2932,
4025,
3815,
529,
628,
7184,
67,
723,
1625,
7764,
273,
315,
397,
7764,
1769,
1082,
202,
430,
261,
12443,
7469,
25316,
21,
13198,
13,
2088,
2934,
588,
1494,
1380,
1435,
480,
404,
747,
14015,
7469,
25316,
21,
13198,
13,
2088,
2934,
588,
9038,
2
] |
e.printStackTrace(); | ImViewerAgent.getRegistry().getLogger().error(this, e.getMessage()); | private void writeImage(BufferedImage image, String n) { UserNotifier un = ImViewerAgent.getRegistry().getUserNotifier(); n += "."+format; File f = new File(n); try { if (format.equals(TIFFFilter.TIF)) { Encoder encoder = new TIFFEncoder(Factory.createImage(image), new DataOutputStream(new FileOutputStream(f))); WriterImage.saveImage(encoder); } else WriterImage.saveImage(f, image, format); un.notifyInfo("Image Saved", saveMessage); setClosed(true); } catch (Exception e) { e.printStackTrace(); f.delete(); un.notifyError("Save image failure", "Unable to save the image", e); } } | 13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/5aacd98a1cfb2219e218c87eed17b5a0f0e9738a/ImgSaver.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
2040,
12,
17947,
2040,
1316,
16,
514,
290,
13,
565,
288,
3639,
2177,
14889,
640,
273,
2221,
18415,
3630,
18,
588,
4243,
7675,
588,
1299,
14889,
5621,
3639,
290,
1011,
4585,
15,
2139,
31,
3639,
1387,
284,
273,
394,
1387,
12,
82,
1769,
3639,
775,
288,
5411,
309,
261,
2139,
18,
14963,
12,
56,
16962,
1586,
18,
56,
5501,
3719,
288,
7734,
13554,
7261,
273,
394,
27491,
7204,
12,
1733,
18,
2640,
2040,
12,
2730,
3631,
7682,
394,
28680,
12,
2704,
12942,
12,
74,
3719,
1769,
7734,
5497,
2040,
18,
5688,
2040,
12,
16480,
1769,
5411,
289,
469,
5497,
2040,
18,
5688,
2040,
12,
74,
16,
1316,
16,
740,
1769,
5411,
640,
18,
12336,
966,
2932,
2040,
348,
8158,
3113,
1923,
1079,
1769,
5411,
444,
7395,
12,
3767,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
2221,
18415,
3630,
18,
588,
4243,
7675,
588,
3328,
7675,
1636,
12,
2211,
16,
425,
18,
24906,
10663,
5411,
284,
18,
3733,
5621,
5411,
640,
18,
12336,
668,
2932,
4755,
1316,
5166,
3113,
315,
3370,
358,
1923,
326,
1316,
3113,
425,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
918,
1045,
2040,
12,
17947,
2040,
1316,
16,
514,
290,
13,
565,
288,
3639,
2177,
14889,
640,
273,
2221,
18415,
3630,
18,
588,
4243,
7675,
588,
1299,
14889,
5621,
3639,
290,
1011,
4585,
15,
2139,
31,
3639,
1387,
284,
273,
394,
1387,
12,
82,
1769,
3639,
775,
288,
5411,
309,
261,
2139,
18,
14963,
12,
56,
16962,
1586,
18,
56,
5501,
3719,
288,
7734,
13554,
7261,
273,
394,
27491,
7204,
12,
1733,
18,
2640,
2040,
12,
2730,
3631,
7682,
394,
28680,
12,
2704,
12942,
12,
74,
3719,
1769,
7734,
5497,
2040,
18,
5688,
2040,
12,
16480,
1769,
5411,
289,
469,
5497,
2040,
18,
5688,
2040,
12,
74,
16,
1316,
16,
740,
1769,
5411,
640,
18,
12336,
966,
2
] |
depth);} | depth); } | public void parse(boolean NS) throws EncodingException, EOFException, EntityException, ParseException { // define internal variables ns = NS; int temp_offset = 0, length1 = 0, length2 = 0, increment = 1; int depth = -1, attr_count = 0, ch = 0, ch_temp = 0; int prev_ch = 0, prev2_ch = 0, parser_state = STATE_DOC_START; //boolean has_amp = false; boolean is_ns = false; encoding = FORMAT_UTF8; boolean main_loop = true, hasDTD = false, hasDecl = false, docEnd = false, firstLT = true; char char_temp; //holds the ' or " indicating start of attr val boolean must_utf_8 = false; boolean BOM_detected = false; //long[] tag_stack = new long[256]; //long[] attr_name_array = new long[512]; // 512 attributes limit //ASCII UTF-8 UTF-16 UTF-16BE UTF-16LE ISO-8859-1 // //int[] scratch_buffer = new int[10]; // first check first several bytes BOM to determine if encoding is UTF16 if (XMLDoc[offset] == -2) { increment = 2; if (XMLDoc[offset + 1] == -1) { offset += 2; encoding = FORMAT_UTF_16BE; BOM_detected = true; r = new UTF16BEReader(); //increment = 2; } else throw new EncodingException("Unknown Character encoding: not UTF-16LE"); } else if (XMLDoc[offset] == -1) { increment = 2; if (XMLDoc[offset + 1] == -2) { offset += 2; //increment = 2; encoding = FORMAT_UTF_16LE; BOM_detected = true; r = new UTF16LEReader(); } else throw new EncodingException("Unknown Character encoding: not UTF-16LE"); } else if (XMLDoc[offset] == -17){ if (XMLDoc[offset+1] == -69 && XMLDoc[offset+2]==-65){ offset +=3; must_utf_8= true; } else throw new EncodingException("Unknown Character encoding: not UTF-8"); } else if (XMLDoc[offset]==0){ if (XMLDoc[offset+1] == 0x3c && XMLDoc[offset+2] == 0 && XMLDoc[offset+3] == 0x3f){ encoding = FORMAT_UTF_16BE; increment = 2; r = new UTF16BEReader(); } else throw new EncodingException("Unknown Character encoding: not UTF-16BE"); } else if (XMLDoc[offset]==0x3c){ if (XMLDoc[offset+1] == 0 && XMLDoc[offset+2] == 0x3f && XMLDoc[offset+3] == 0){ increment = 2; encoding = FORMAT_UTF_16LE; r = new UTF16LEReader(); } } // check for max file size exception if (encoding < FORMAT_UTF_16BE) { if ((offset + docLen) >= 1L << 30) throw new ParseException("Other error: file size too large "); } else { if ((offset - 2 + docLen) >= 1L << 31) throw new ParseException("Other error: file size too large "); } // enter the main finite state machine try { while (main_loop) { switch (parser_state) { case STATE_DOC_START : if (r.getChar() == '<') { temp_offset = offset; // xml decl has to be right after the start of the document if (r.skipChar('?') && (r.skipChar('x') || r.skipChar('X')) && (r.skipChar('m') || r.skipChar('M')) && (r.skipChar('l') || r.skipChar('L'))) { if (r.skipChar(' ') || r.skipChar('\t') || r.skipChar('\n') || r.skipChar('\r')) { ch = getCharAfterS(); temp_offset = offset; parser_state = STATE_DEC_ATTR_NAME; break; } else if (r.skipChar('?')) throw new ParseException( "Error in XML decl: premature ending" + formatLineNumber()); } offset = temp_offset; parser_state = STATE_LT_SEEN; break; } throw new ParseException( "Other Error: XML not starting properly" + formatLineNumber()); case STATE_DOC_END : docEnd = true; ch = getCharAfterS(); // eof exception should be thrown here for premature ending if (ch == '<') { if (r.skipChar('?')) { // processing instruction after end tag of root element temp_offset = offset; parser_state = STATE_END_PI; break; } else if ( r.skipChar('!') && r.skipChar('-') && r.skipChar('-')) { // comments allowed after the end tag of the root element temp_offset = offset; parser_state = STATE_END_COMMENT; break; } } throw new ParseException( "Other Error: XML not terminated properly" + formatLineNumber()); case STATE_LT_SEEN : //if (depth < -1) // throw new ParseException("Other Errors: Invalid depth"); temp_offset = offset; ch = r.getChar(); if (XMLChar.isNameStartChar(ch)) { //temp_offset = offset; //length1++; depth++; //if (ch == ':') // length2 = 0; parser_state = STATE_START_TAG; } else { switch (ch) { case '/' : parser_state = STATE_END_TAG; break; case '?' : temp_offset = offset; ch = r.getChar(); if (XMLChar.isNameStartChar(ch)) { //temp_offset = offset; if ((ch == 'x' || ch == 'X') && (r.skipChar('m') || r.skipChar('M')) && (r.skipChar('l') || r.skipChar('L'))) { ch = r.getChar(); if (ch == '?' || XMLChar.isSpaceChar(ch)) throw new ParseException( "Error in PI: [xX][mM][lL] not a valid PI targetname" + formatLineNumber()); offset = getPrevOffset(); } parser_state = STATE_PI_TAG; break; } throw new ParseException( "Other Error: First char after <? invalid" + formatLineNumber()); case '!' : // three possibility (comment, CDATA, DOCTYPE) ch = r.getChar(); switch (ch) { case '-' : if (r.skipChar('-')) { temp_offset = offset; parser_state = STATE_COMMENT; break; } else throw new ParseException( "Error in comment: Invalid char sequence to start a comment" + formatLineNumber()); case '[' : if (r.skipChar('C') && r.skipChar('D') && r.skipChar('A') && r.skipChar('T') && r.skipChar('A') && r.skipChar('[') && (depth != -1)) { temp_offset = offset; parser_state = STATE_CDATA; break; } else { if (depth == -1) throw new ParseException( "Error in CDATA: Wrong place for CDATA" + formatLineNumber()); throw new ParseException( "Error in CDATA: Invalid char sequence for CDATA" + formatLineNumber()); } case 'D' : if (r.skipChar('O') && r.skipChar('C') && r.skipChar('T') && r.skipChar('Y') && r.skipChar('P') && r.skipChar('E') && (depth == -1) && !hasDTD) { hasDTD = true; temp_offset = offset; parser_state = STATE_DOCTYPE; break; } else { if (hasDTD == true) throw new ParseException( "Error for DOCTYPE: Only DOCTYPE allowed" + formatLineNumber()); if (depth != -1) throw new ParseException( "Error for DOCTYPE: DTD at wrong place" + formatLineNumber()); throw new ParseException( "Error for DOCTYPE: Invalid char sequence for DOCTYPE" + formatLineNumber()); } default : throw new ParseException( "Other Error: Unrecognized char after <!" + formatLineNumber()); } break; default : throw new ParseException( "Other Error: Invalid char after <" + formatLineNumber()); } } break; case STATE_START_TAG : //name space is handled by while (true) { ch = r.getChar(); if (XMLChar.isNameChar(ch)) { if (ch == ':') { length2 = offset - temp_offset - increment; } } else break; } length1 = offset - temp_offset - increment; if (depth > MAX_DEPTH) { throw new ParseException( "Other Error: Depth exceeds MAX_DEPTH" + formatLineNumber()); } //writeVTD(offset, TOKEN_STARTING_TAG, length2:length1, depth) long x = ((long) length1 << 32) + temp_offset; tag_stack[depth] = x; // System.out.println( // " " + (temp_offset) + " " + length2 + ":" + length1 + " startingTag " + depth); if (depth > VTDDepth) VTDDepth = depth; if (encoding < FORMAT_UTF_16BE){ if (length2>MAX_PREFIX_LENGTH || length1 > MAX_QNAME_LENGTH) throw new ParseException( "Token Length Error: Starting tag prefix or qname length too long" + formatLineNumber()); writeVTD( (temp_offset), (length2 << 11) | length1, TOKEN_STARTING_TAG, depth);} else{ if (length2>(MAX_PREFIX_LENGTH<<1) || (length1 > MAX_QNAME_LENGTH<<1)) throw new ParseException( "Token Length Error: Starting tag prefix or qname length too long" + formatLineNumber()); writeVTD( (temp_offset) >> 1, (length2 << 10) | (length1 >> 1), TOKEN_STARTING_TAG, depth); } //offset += length1; length2 = 0; if (XMLChar.isSpaceChar(ch)) { ch = getCharAfterS(); if (XMLChar.isNameStartChar(ch)) { // seen an attribute here temp_offset = getPrevOffset(); parser_state = STATE_ATTR_NAME; break; } } if (ch == '/') { depth--; ch = r.getChar(); } if (ch == '>') { if (depth != -1) { temp_offset = offset; ch = getCharAfterSe(); // consume WSs if (ch == '<') { parser_state = STATE_LT_SEEN; if (r.skipChar('/')) { length1 = offset - temp_offset - 2 * increment; if (length1 > 0) { if (encoding < FORMAT_UTF_16BE) writeVTD( (temp_offset), length1, TOKEN_CHARACTER_DATA, depth); else writeVTD( (temp_offset) >> 1, (length1 >> 1), TOKEN_CHARACTER_DATA, depth); //offset += length1; } parser_state = STATE_END_TAG; break; } } else if (XMLChar.isContentChar(ch)) { //temp_offset = offset; parser_state = STATE_TEXT; } else if (ch == '&') { //has_amp = true; //temp_offset = offset; entityIdentifier(); parser_state = STATE_TEXT; } else throw new ParseException( "Error in text content: Invalid char" + formatLineNumber()); } else { parser_state = STATE_DOC_END; } break; } throw new ParseException( "Starting tag Error: Invalid char in starting tag" + formatLineNumber()); case STATE_END_TAG : temp_offset = offset; while (true) { ch = r.getChar(); if (!XMLChar.isNameChar(ch)) { break; } } length1 = offset - temp_offset - increment; int sos = (int) tag_stack[depth]; int sl = (int) (tag_stack[depth] >> 32); if (sl == length1) { for (int i = 0; i < length1; i++) { if (XMLDoc[sos + i] != XMLDoc[temp_offset + i]) throw new ParseException( "Ending tag error: Start/ending tag mismatch" + formatLineNumber()); // System.out.println( // " " + (char) XMLDoc[sos + i] + "<==> " + (char) XMLDoc[temp_offset + i]); } } else throw new ParseException( "Ending tag error: Start/ending tag mismatch, length different" + formatLineNumber()); //System.out.println(" " + temp_offset + " " + length1 + " ending tag " + depth); //writeVTD(temp_offset, length1, TOKEN_ENDING_TAG, depth); depth--; if (XMLChar.isSpaceChar(ch)) { ch = getCharAfterS(); } if (ch == '>') { if (depth != -1) { temp_offset = offset; ch = getCharAfterS(); if (ch == '<') parser_state = STATE_LT_SEEN; else if (XMLChar.isContentChar(ch)) { parser_state = STATE_TEXT; } else if (ch == '&') { //has_amp = true; entityIdentifier(); parser_state = STATE_TEXT; } else throw new ParseException( "Other Error: Invalid char in xml" + formatLineNumber()); } else parser_state = STATE_DOC_END; break; } else throw new ParseException( "Other Error: Invalid char in ending tag" + formatLineNumber()); case STATE_UNRECORDED_TEXT : break; case STATE_PI_TAG : while (true) { ch = r.getChar(); if (!XMLChar.isNameChar(ch)) break; } length1 = offset - temp_offset - increment; /*System.out.println( ((char) XMLDoc[temp_offset]) + " " + (temp_offset) + " " + length1 + " PI Target " + depth); */ if (encoding < FORMAT_UTF_16BE){ if (length1 > MAX_TOKEN_LENGTH) throw new ParseException("Token Length Error:" +" PI name too long (>0xfffff)" + formatLineNumber()); writeVTD( (temp_offset), length1, TOKEN_PI_NAME, depth); } else{ if (length1 > (MAX_TOKEN_LENGTH<<1)) throw new ParseException("Token Length Error:" +" PI name too long (>0xfffff)" + formatLineNumber()); writeVTD( (temp_offset) >> 1, (length1 >> 1), TOKEN_PI_NAME, depth); } //length1 = 0; temp_offset = offset; if (XMLChar.isSpaceChar(ch)) { ch = r.getChar(); } if (ch == '?') { if (r.skipChar('>')) { temp_offset = offset; ch = getCharAfterSe(); if (ch == '<') { parser_state = STATE_LT_SEEN; } else if (XMLChar.isContentChar(ch)) { parser_state = STATE_TEXT; } else if (ch == '&') { //has_amp = true; entityIdentifier(); parser_state = STATE_TEXT; } else throw new ParseException( "Error in text content: Invalid char" + formatLineNumber()); break; } else throw new ParseException( "Error in PI: invalid termination sequence" + formatLineNumber()); } parser_state = STATE_PI_VAL; break; //throw new ParseException("Error in PI: Invalid char"); case STATE_PI_VAL : //temp_offset = offset; while (true) { if (XMLChar.isValidChar(ch)) { //System.out.println(""+(char)ch); if (ch == '?') if (r.skipChar('>')) { break; } else throw new ParseException( "Error in PI: invalid termination sequence for PI" + formatLineNumber()); } else throw new ParseException( "Errors in PI: Invalid char in PI val" + formatLineNumber()); ch = r.getChar(); } length1 = offset - temp_offset - 2 * increment; /*System.out.println( ((char) XMLDoc[temp_offset]) + " " + (temp_offset) + " " + length1 + " PI val " + depth);*/ if (encoding < FORMAT_UTF_16BE){ if (length1 > MAX_TOKEN_LENGTH) throw new ParseException("Token Length Error:" +" PI val too long (>0xfffff)" + formatLineNumber()); writeVTD(temp_offset, length1, TOKEN_PI_VAL, depth); } else{ if (length1 > (MAX_TOKEN_LENGTH<<1)) throw new ParseException("Token Length Error:" +" PI val too long (>0xfffff)" + formatLineNumber()); writeVTD( temp_offset >> 1, length1 >> 1, TOKEN_PI_VAL, depth); } //length1 = 0; temp_offset = offset; ch = getCharAfterSe(); if (ch == '<') { parser_state = STATE_LT_SEEN; } else if (XMLChar.isContentChar(ch)) { //temp_offset = offset; parser_state = STATE_TEXT; } else if (ch == '&') { //has_amp = true; //temp_offset = offset; entityIdentifier(); parser_state = STATE_TEXT; } else throw new ParseException( "Error in text content: Invalid char" + formatLineNumber()); break; case STATE_DEC_ATTR_NAME : if (ch == 'v' && r.skipChar('e') && r.skipChar('r') && r.skipChar('s') && r.skipChar('i') && r.skipChar('o') && r.skipChar('n')) { ch = getCharAfterS(); if (ch == '=') { /*System.out.println( " " + (temp_offset - 1) + " " + 7 + " dec attr name version " + depth);*/ if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset - 1, 7, TOKEN_DEC_ATTR_NAME, depth); else writeVTD( (temp_offset - 2) >> 1, 7, TOKEN_DEC_ATTR_NAME, depth); } else throw new ParseException( "XML decl error: Invalid char" + formatLineNumber()); } else throw new ParseException( "XML decl error: should be version" + formatLineNumber()); ch_temp = getCharAfterS(); if (ch_temp != '\'' && ch_temp != '"') throw new ParseException( "XML decl error: Invalid char to start attr name" + formatLineNumber()); temp_offset = offset; // support 1.0 or 1.1 if (r.skipChar('1') && r.skipChar('.') && (r.skipChar('0') || r.skipChar('1'))) { /*System.out.println( " " + temp_offset + " " + 3 + " dec attr val (version)" + depth);*/ if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, 3, TOKEN_DEC_ATTR_VAL, depth); else writeVTD( temp_offset >> 1, 3, TOKEN_DEC_ATTR_VAL, depth); } else throw new ParseException( "XML decl error: Invalid version(other than 1.0 or 1.1) detected" + formatLineNumber()); if (!r.skipChar(ch_temp)) throw new ParseException( "XML decl error: version not terminated properly" + formatLineNumber()); ch = r.getChar(); //? space or e if (XMLChar.isSpaceChar(ch)) { ch = getCharAfterS(); temp_offset = offset - increment; if (ch == 'e') { if (r.skipChar('n') && r.skipChar('c') && r.skipChar('o') && r.skipChar('d') && r.skipChar('i') && r.skipChar('n') && r.skipChar('g')) { ch = r.getChar(); if (XMLChar.isSpaceChar(ch)) ch = getCharAfterS(); if (ch == '=') { /*System.out.println( " " + (temp_offset) + " " + 8 + " dec attr name (encoding) " + depth);*/ if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, 8, TOKEN_DEC_ATTR_NAME, depth); else writeVTD( temp_offset >> 1, 8, TOKEN_DEC_ATTR_NAME, depth); } else throw new ParseException( "XML decl error: Invalid char" + formatLineNumber()); ch_temp = getCharAfterS(); if (ch_temp != '"' && ch_temp != '\'') throw new ParseException( "XML decl error: Invalid char to start attr name" + formatLineNumber()); temp_offset = offset; ch = r.getChar(); switch (ch) { case 'a' : case 'A' : if ((r.skipChar('s') || r.skipChar('S')) && (r.skipChar('c') || r.skipChar('C')) && (r.skipChar('i') || r.skipChar('I')) && (r.skipChar('i') || r.skipChar('I')) && r.skipChar(ch_temp)) { if (encoding != FORMAT_UTF_16LE && encoding != FORMAT_UTF_16BE) { if (must_utf_8) throw new EncodingException("Can't switch from UTF-8" + formatLineNumber()); encoding = FORMAT_ASCII; r = new ASCIIReader(); /*System.out.println( " " + (temp_offset) + " " + 5 + " dec attr val (encoding) " + depth);*/ if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, 5, TOKEN_DEC_ATTR_VAL, depth); else writeVTD( temp_offset >> 1, 5, TOKEN_DEC_ATTR_VAL, depth); break; } else throw new ParseException( "XML decl error: Can't switch encoding to ASCII" + formatLineNumber()); } throw new ParseException( "XML decl error: Invalid Encoding" + formatLineNumber()); case 'i' : case 'I' : if ((r.skipChar('s') || r.skipChar('S')) && (r.skipChar('o') || r.skipChar('O')) && r.skipChar('-') && r.skipChar('8') && r.skipChar('8') && r.skipChar('5') && r.skipChar('9') && r.skipChar('-') && r.skipChar('1') && r.skipChar(ch_temp)) { if (encoding != FORMAT_UTF_16LE && encoding != FORMAT_UTF_16BE) { if (must_utf_8) throw new EncodingException("Can't switch from UTF-8" + formatLineNumber()); encoding = FORMAT_ISO_8859; r = new ISO8859Reader(); /*System.out.println( " " + (temp_offset) + " " + 10 + " dec attr val (encoding) " + depth);*/ if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, 10, TOKEN_DEC_ATTR_VAL, depth); else writeVTD( temp_offset >> 1, 10, TOKEN_DEC_ATTR_VAL, depth); break; } else throw new ParseException( "XML decl error: Can't switch encoding to ISO-8859" + formatLineNumber()); } throw new ParseException( "XML decl error: Invalid Encoding" + formatLineNumber()); case 'u' : case 'U' : if ((r.skipChar('s') || r.skipChar('S'))) if (r.skipChar('-') && (r.skipChar('a') || r.skipChar('A')) && (r.skipChar('s') || r.skipChar('S')) && (r.skipChar('c') || r.skipChar('C')) && (r.skipChar('i') || r.skipChar('I')) && (r.skipChar('i') || r.skipChar('I')) && r.skipChar(ch_temp)) { if (encoding != FORMAT_UTF_16LE && encoding != FORMAT_UTF_16BE) { if (must_utf_8) throw new EncodingException("Can't switch from UTF-8" + formatLineNumber()); encoding = FORMAT_ASCII; r = new ASCIIReader(); //System.out.println( // " " + (temp_offset) + " " + 5 + " dec attr val (encoding) " + depth); if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, 5, TOKEN_DEC_ATTR_VAL, depth); else writeVTD( temp_offset >> 1, 5, TOKEN_DEC_ATTR_VAL, depth); break; } else throw new ParseException( "XML decl error: Can't switch encoding to US-ASCII" + formatLineNumber()); } else throw new ParseException( "XML decl error: Invalid Encoding" + formatLineNumber()); if ((r.skipChar('t') || r.skipChar('T')) && (r.skipChar('f') || r.skipChar('F')) && r.skipChar('-')) { if (r.skipChar('8') && r.skipChar(ch_temp)) { if (encoding != FORMAT_UTF_16LE && encoding != FORMAT_UTF_16BE) { //encoding = FORMAT_UTF8; /*System.out.println( " " + (temp_offset) + " " + 5 + " dec attr val (encoding) " + depth);*/ if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, 5, TOKEN_DEC_ATTR_VAL, depth); else writeVTD( temp_offset >> 1, 5, TOKEN_DEC_ATTR_VAL, depth); break; } else throw new ParseException( "XML decl error: Can't switch encoding to UTF-8" + formatLineNumber()); } if (r.skipChar('1') && r.skipChar('6')) { if (r.skipChar(ch_temp)) { if (encoding == FORMAT_UTF_16LE || encoding == FORMAT_UTF_16BE) { if (!BOM_detected) throw new EncodingException("BOM not detected for UTF-16" + formatLineNumber()); /*System.out.println( " " + (temp_offset) + " " + 6 + " dec attr val (encoding) " + depth);*/ if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, 6, TOKEN_DEC_ATTR_VAL, depth); else writeVTD( temp_offset >> 1, 6, TOKEN_DEC_ATTR_VAL, depth); break; } throw new ParseException( "XML decl error: Can't switch encoding to UTF-16" + formatLineNumber()); } else if ( (r.skipChar('l') || r.skipChar('L')) && (r.skipChar('e') || r.skipChar( 'E')) && r.skipChar( ch_temp)) { if (encoding == FORMAT_UTF_16LE) { /*System.out.println( " " + (temp_offset) + " " + 7 + " dec attr val (encoding) " + depth);*/ if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, 7, TOKEN_DEC_ATTR_VAL, depth); else writeVTD( temp_offset >> 1, 7, TOKEN_DEC_ATTR_VAL, depth); break; } throw new ParseException( "XML del error: Can't switch encoding to UTF-16LE" + formatLineNumber()); } else if ( (r.skipChar('b') || r.skipChar('B')) && (r.skipChar('e') || r.skipChar( 'E')) && r.skipChar( ch_temp)) { if (encoding == FORMAT_UTF_16BE) { /*System.out.println( " " + (temp_offset) + " " + 7 + " dec attr val (encoding) " + depth);*/ if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, 7, TOKEN_DEC_ATTR_VAL, depth); else writeVTD( temp_offset >> 1, 7, TOKEN_DEC_ATTR_VAL, depth); break; } throw new ParseException( "XML del error: Can't swtich encoding to UTF-16BE" + formatLineNumber()); } throw new ParseException( "XML decl error: Invalid encoding" + formatLineNumber()); } } default : throw new ParseException( "XML decl Error: invalid encoding" + formatLineNumber()); } ch = r.getChar(); if (XMLChar.isSpaceChar(ch)) ch = getCharAfterS(); temp_offset = offset - increment; } else throw new ParseException( "XML decl Error: Invalid char" + formatLineNumber()); } if (ch == 's') { if (r.skipChar('t') && r.skipChar('a') && r.skipChar('n') && r.skipChar('d') && r.skipChar('a') && r.skipChar('l') && r.skipChar('o') && r.skipChar('n') && r.skipChar('e')) { ch = getCharAfterS(); if (ch != '=') throw new ParseException( "XML decl error: Invalid char" + formatLineNumber()); /*System.out.println( " " + temp_offset + " " + 3 + " dec attr name (standalone) " + depth);*/ if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, 10, TOKEN_DEC_ATTR_NAME, depth); else writeVTD( temp_offset >> 1, 10, TOKEN_DEC_ATTR_NAME, depth); ch_temp = getCharAfterS(); temp_offset = offset; if (ch_temp != '"' && ch_temp != '\'') throw new ParseException( "XML decl error: Invalid char to start attr name" + formatLineNumber()); ch = r.getChar(); if (ch == 'y') { if (r.skipChar('e') && r.skipChar('s') && r.skipChar(ch_temp)) { /*System.out.println( " " + (temp_offset) + " " + 3 + " dec attr val (standalone) " + depth);*/ if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, 3, TOKEN_DEC_ATTR_VAL, depth); else writeVTD( temp_offset >> 1, 3, TOKEN_DEC_ATTR_VAL, depth); } else throw new ParseException( "XML decl error: invalid val for standalone" + formatLineNumber()); } else if (ch == 'n') { if (r.skipChar('o') && r.skipChar(ch_temp)) { /*System.out.println( " " + (temp_offset) + " " + 2 + " dec attr val (standalone)" + depth);*/ if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, 2, TOKEN_DEC_ATTR_VAL, depth); else writeVTD( temp_offset >> 1, 2, TOKEN_DEC_ATTR_VAL, depth); } else throw new ParseException( "XML decl error: invalid val for standalone" + formatLineNumber()); } else throw new ParseException( "XML decl error: invalid val for standalone" + formatLineNumber()); } else throw new ParseException( "XML decl error" + formatLineNumber()); ch = r.getChar(); if (XMLChar.isSpaceChar(ch)) ch = getCharAfterS(); } } if (ch == '?' && r.skipChar('>')) { temp_offset = offset; ch = getCharAfterS(); if (ch == '<') { parser_state = STATE_LT_SEEN; } else throw new ParseException( "Other Error: Invalid Char in XML" + formatLineNumber()); } else throw new ParseException( "XML decl Error: Invalid termination sequence" + formatLineNumber()); break; case STATE_COMMENT : while (true) { ch = r.getChar(); if (XMLChar.isValidChar(ch)) { if (ch == '-' && r.skipChar('-')) { length1 = offset - temp_offset - 2 * increment; break; } } else throw new ParseException( "Error in comment: Invalid Char" + formatLineNumber()); } if (r.getChar() == '>') { //System.out.println(" " + (temp_offset) + " " + length1 + " comment " + depth); if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, length1, TOKEN_COMMENT, depth); else writeVTD( temp_offset >> 1, length1 >> 1, TOKEN_COMMENT, depth); //length1 = 0; temp_offset = offset; ch = getCharAfterSe(); if (ch == '<') { parser_state = STATE_LT_SEEN; } else if (XMLChar.isContentChar(ch)) { //temp_offset = offset; parser_state = STATE_TEXT; } else if (ch == '&') { //has_amp = true; //temp_offset = offset; entityIdentifier(); parser_state = STATE_TEXT; } else throw new ParseException( "Error in text content: Invalid char" + formatLineNumber()); break; } else throw new ParseException( "Error in comment: Invalid terminating sequence" + formatLineNumber()); case STATE_CDATA : while (true) { ch = r.getChar(); if (XMLChar.isValidChar(ch)) { if (ch == ']' && r.skipChar(']')) { while (r.skipChar(']')); if (r.skipChar('>')) { break; } else throw new ParseException( "Error in CDATA: Invalid termination sequence" + formatLineNumber()); } } else throw new ParseException( "Error in CDATA: Invalid Char" + formatLineNumber()); } length1 = offset - temp_offset - 3 * increment; if (encoding < FORMAT_UTF_16BE){ writeVTD( temp_offset, length1, TOKEN_CDATA_VAL, depth); } else { writeVTD( temp_offset >> 1, length1 >> 1, TOKEN_CDATA_VAL, depth); } //System.out.println(" " + (temp_offset) + " " + length1 + " CDATA " + depth); ch = getCharAfterSe(); if (ch == '<') { parser_state = STATE_LT_SEEN; } else if (XMLChar.isContentChar(ch)) { temp_offset = offset; parser_state = STATE_TEXT; } else if (ch == '&') { //has_amp = true; temp_offset = offset; entityIdentifier(); parser_state = STATE_TEXT; //temp_offset = offset; } else throw new ParseException("Other Error: Invalid char in xml"); break; case STATE_DOCTYPE : int z = 1; while (true) { ch = r.getChar(); if (XMLChar.isValidChar(ch)) { if (ch == '>') z--; else if (ch == '<') z++; if (z == 0) break; } else throw new ParseException( "Error in DOCTYPE: Invalid char" + formatLineNumber()); } length1 = offset - temp_offset - increment; /*System.out.println( " " + (temp_offset) + " " + length1 + " DOCTYPE val " + depth);*/ if (encoding < FORMAT_UTF_16BE){ if (length1 > MAX_TOKEN_LENGTH) throw new ParseException("Token Length Error:" +" DTD val too long (>0xfffff)" + formatLineNumber()); writeVTD( temp_offset, length1, TOKEN_DTD_VAL, depth); } else{ if (length1 > (MAX_TOKEN_LENGTH<<1)) throw new ParseException("Token Length Error:" +" DTD val too long (>0xfffff)" + formatLineNumber()); writeVTD( temp_offset >> 1, length1 >> 1, TOKEN_DTD_VAL, depth); } ch = getCharAfterS(); if (ch == '<') { parser_state = STATE_LT_SEEN; } else throw new ParseException( "Other Error: Invalid char in xml" + formatLineNumber()); break; case STATE_TEXT : if (depth == -1) throw new ParseException( "Error in text content: Char data at the wrong place" + formatLineNumber()); while (true) { ch = r.getChar(); if (XMLChar.isContentChar(ch)) { } else if (ch == '&') { //has_amp = true; if (!XMLChar.isValidChar(entityIdentifier())) throw new ParseException( "Error in text content: Invalid char in text content " + formatLineNumber()); //parser_state = STATE_TEXT; } else if (ch == '<') { break; } else if (ch == ']') { if (r.skipChar(']')) { while (r.skipChar(']')) { } if (r.skipChar('>')) throw new ParseException( "Error in text content: ]]> in text content" + formatLineNumber()); } } else throw new ParseException( "Error in text content: Invalid char in text content " + formatLineNumber()); } length1 = offset - increment - temp_offset; if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, length1, TOKEN_CHARACTER_DATA, depth); else writeVTD( temp_offset >> 1, length1 >> 1, TOKEN_CHARACTER_DATA, depth); //has_amp = true; parser_state = STATE_LT_SEEN; break; case STATE_ATTR_NAME : if (ch == 'x') { if (r.skipChar('m') && r.skipChar('l') && r.skipChar('n') && r.skipChar('s')) { ch = r.getChar(); if (ch == '=' || XMLChar.isSpaceChar(ch) || ch == ':') { is_ns = true; //break; } } } while (true) { if (XMLChar.isNameChar(ch)) { if (ch == ':') { length2 = offset - temp_offset - increment; } ch = r.getChar(); } else break; } length1 = getPrevOffset() - temp_offset; // check for uniqueness here boolean unique = true; boolean unequal; for (int i = 0; i < attr_count; i++) { unequal = false; int prevLen = (int) attr_name_array[i]; if (length1 == prevLen) { int prevOffset = (int) (attr_name_array[i] >> 32); for (int j = 0; j < prevLen; j++) { if (XMLDoc[prevOffset + j] != XMLDoc[temp_offset + j]) { unequal = true; break; } } } else unequal = true; unique = unique && unequal; } if (!unique && attr_count != 0) throw new ParseException( "Error in attr: Attr name not unique" + formatLineNumber()); unique = true; if (attr_count < attr_name_array.length) { //System.out.println("attr_count is "+ attr_count); //System.out.println("attr_name_array.length is " +attr_name_array.length); attr_name_array[attr_count] = ((long) (temp_offset) << 32) + length1; attr_count++; } else // grow the attr_name_array by 16 { long[] temp_array = attr_name_array; System.out.println( "size increase from " + temp_array.length + " to " + (attr_count + 16)); attr_name_array = new long[attr_count + ATTR_NAME_ARRAY_SIZE]; for (int i = 0; i < attr_count; i++) { attr_name_array[i] = temp_array[i]; } attr_name_array[attr_count] = ((long) (temp_offset) << 32) + length1; attr_count++; } // after checking, write VTD if (is_ns) { if (encoding < FORMAT_UTF_16BE){ if (length2>MAX_PREFIX_LENGTH || length1 > MAX_QNAME_LENGTH) throw new ParseException( "Token Length Error: Attr ns prefix or qname length too long" + formatLineNumber()); writeVTD( temp_offset, (length2 << 11) | length1, TOKEN_ATTR_NS, depth); } else{ if (length2>(MAX_PREFIX_LENGTH << 1) || length1 > (MAX_QNAME_LENGTH <<1)) throw new ParseException( "Token Length Error: Attr ns prefix or qname length too long" + formatLineNumber()); writeVTD( temp_offset >> 1, (length2 << 10) | (length1 >> 1), TOKEN_ATTR_NS, depth); } is_ns = false; } else { if (encoding < FORMAT_UTF_16BE){ if (length2>MAX_PREFIX_LENGTH || length1 > MAX_QNAME_LENGTH) throw new ParseException( "Token Length Error: attr name prefix or qname length too long" + formatLineNumber()); writeVTD( temp_offset, (length2 << 11) | length1, TOKEN_ATTR_NAME, depth); } else{ if (length2>(MAX_PREFIX_LENGTH<<1) || length1 > (MAX_QNAME_LENGTH<<1)) throw new ParseException( "Token Length Error: Attr name prefix or qname length too long" + formatLineNumber()); writeVTD( temp_offset >> 1, (length2 << 10) | (length1 >> 1), TOKEN_ATTR_NAME, depth); } } /*System.out.println( " " + temp_offset + " " + length2 + ":" + length1 + " attr name " + depth);*/ length2 = 0; if (XMLChar.isSpaceChar(ch)) { ch = getCharAfterS(); } if (ch != '=') throw new ParseException( "Error in attr: invalid char" + formatLineNumber()); ch_temp = getCharAfterS(); if (ch_temp != '"' && ch_temp != '\'') throw new ParseException( "Error in attr: invalid char (should be ' or \" )" + formatLineNumber()); temp_offset = offset; parser_state = STATE_ATTR_VAL; break; case STATE_ATTR_VAL : while (true) { ch = r.getChar(); if (XMLChar.isValidChar(ch) && ch != '<') { if (ch == ch_temp) break; if (ch == '&') { // as in vtd spec, we mark attr val with entities if (!XMLChar .isValidChar(entityIdentifier())) { throw new ParseException( "Error in attr: Invalid XML char" + formatLineNumber()); } } } else throw new ParseException( "Error in attr: Invalid XML char" + formatLineNumber()); } length1 = offset - temp_offset - increment; if (encoding < FORMAT_UTF_16BE){ if (length1 > MAX_TOKEN_LENGTH) throw new ParseException("Token Length Error:" +" Attr val too long (>0xfffff)" + formatLineNumber()); writeVTD( temp_offset, length1, TOKEN_ATTR_VAL, depth); } else{ if (length1 > MAX_TOKEN_LENGTH <<1) throw new ParseException("Token Length Error:" +" Attr val too long (>0xfffff)" + formatLineNumber()); writeVTD( temp_offset >> 1, length1 >> 1, TOKEN_ATTR_VAL, depth); } //System.out.println(" " + temp_offset + " " + length1 + " attr val " + depth); //has_amp = false; //length1 = 0; ch = r.getChar(); if (XMLChar.isSpaceChar(ch)) { ch = getCharAfterS(); if (XMLChar.isNameStartChar(ch)) { temp_offset = offset - increment; parser_state = STATE_ATTR_NAME; break; } } if (ch == '/') { depth--; ch = r.getChar(); } if (ch == '>') { attr_count = 0; if (depth != -1) { temp_offset = offset; ch = getCharAfterSe(); if (ch == '<') { parser_state = STATE_LT_SEEN; } else if (XMLChar.isContentChar(ch)) { //temp_offset = offset; parser_state = STATE_TEXT; } else if (ch == '&') { //has_amp = true; //temp_offset = offset; entityIdentifier(); parser_state = STATE_TEXT; } else throw new ParseException( "Error in text content: Invalid char" + formatLineNumber()); } else { parser_state = STATE_DOC_END; } break; } throw new ParseException( "Starting tag Error: Invalid char in starting tag" + formatLineNumber()); case STATE_END_PI : ch = r.getChar(); if (XMLChar.isNameStartChar(ch)) { if ((ch == 'x' || ch == 'X') && (r.skipChar('m') || r.skipChar('M')) && (r.skipChar('l') && r.skipChar('L'))) { //temp_offset = offset; ch = r.getChar(); if (XMLChar.isSpaceChar(ch) || ch == '?') throw new ParseException( "Error in PI: [xX][mM][lL] not a valid PI target" + formatLineNumber()); //offset = temp_offset; } while (true) { //ch = getChar(); if (!XMLChar.isNameChar(ch)) { break; } ch = r.getChar(); } length1 = offset - temp_offset - increment; /*System.out.println( "" + (char) XMLDoc[temp_offset] + " " + (temp_offset) + " " + length1 + " PI Target " + depth);*/ if (encoding < FORMAT_UTF_16BE){ if (length1 > MAX_TOKEN_LENGTH) throw new ParseException("Token Length Error:" +"PI name too long (>0xfffff)" + formatLineNumber()); writeVTD( temp_offset, length1, TOKEN_PI_NAME, depth); } else{ if (length1 > (MAX_TOKEN_LENGTH<<1)) throw new ParseException("Token Length Error:" +"PI name too long (>0xfffff)" + formatLineNumber()); writeVTD( temp_offset >> 1, length1 >> 1, TOKEN_PI_NAME, depth); } //length1 = 0; temp_offset = offset; if (XMLChar.isSpaceChar(ch)) { ch = getCharAfterS(); while (true) { if (XMLChar.isValidChar(ch)) { if (ch == '?') if (r.skipChar('>')) { parser_state = STATE_DOC_END; break; } else throw new ParseException( "Error in PI: invalid termination sequence" + formatLineNumber()); } else throw new ParseException( "Error in PI: Invalid char in PI val" + formatLineNumber()); ch = r.getChar(); } length1 = offset - temp_offset - 2 * increment; if (encoding < FORMAT_UTF_16BE){ if (length1 > MAX_TOKEN_LENGTH) throw new ParseException("Token Length Error:" +"PI val too long (>0xfffff)" + formatLineNumber()); writeVTD( temp_offset, length1, TOKEN_PI_VAL, depth); } else{ if (length1 > (MAX_TOKEN_LENGTH<<1)) throw new ParseException("Token Length Error:" +"PI val too long (>0xfffff)" + formatLineNumber()); writeVTD( temp_offset >> 1, length1 >> 1, TOKEN_PI_VAL, depth); } //System.out.println(" " + temp_offset + " " + length1 + " PI val " + depth); } else { if ((ch == '?') && r.skipChar('>')) { parser_state = STATE_DOC_END; } else throw new ParseException( "Error in PI: invalid termination sequence" + formatLineNumber()); } //parser_state = STATE_DOC_END; } else throw new ParseException("Error in PI: invalid char in PI target" +formatLineNumber()); break; case STATE_END_COMMENT : while (true) { ch = r.getChar(); if (XMLChar.isValidChar(ch)) { if (ch == '-' && r.skipChar('-')) { length1 = offset - temp_offset - 2 * increment; break; } } else throw new ParseException( "Error in comment: Invalid Char" + formatLineNumber()); } if (r.getChar() == '>') { //System.out.println(" " + temp_offset + " " + length1 + " comment " + depth); if (encoding < FORMAT_UTF_16BE) writeVTD( temp_offset, length1, TOKEN_COMMENT, depth); else writeVTD( temp_offset >> 1, length1 >> 1, TOKEN_COMMENT, depth); //length1 = 0; parser_state = STATE_DOC_END; break; } throw new ParseException( "Error in comment: '-->' expected" + formatLineNumber()); default : throw new ParseException( "Other error: invalid parser state" +formatLineNumber()); } } } catch (EOFException e) { if (parser_state != STATE_DOC_END) throw e; } } | 3680 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3680/b398d55c30402df8a8de6650255b1399d4c8067b/VTDGen1.java/clean/com/ximpleware/VTDGen1.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1109,
12,
6494,
11472,
13,
202,
202,
15069,
13400,
503,
16,
30051,
16,
3887,
503,
16,
10616,
288,
202,
202,
759,
4426,
2713,
3152,
1082,
202,
2387,
273,
11472,
31,
202,
202,
474,
1906,
67,
3348,
273,
374,
16,
769,
21,
273,
374,
16,
769,
22,
273,
374,
16,
5504,
273,
404,
31,
202,
202,
474,
3598,
273,
300,
21,
16,
1604,
67,
1883,
273,
374,
16,
462,
273,
374,
16,
462,
67,
5814,
273,
374,
31,
202,
202,
474,
2807,
67,
343,
273,
374,
16,
2807,
22,
67,
343,
273,
374,
16,
2082,
67,
2019,
273,
7442,
67,
19693,
67,
7570,
31,
202,
202,
759,
6494,
711,
67,
931,
273,
629,
31,
3196,
202,
6494,
353,
67,
2387,
273,
629,
31,
202,
202,
5999,
273,
10449,
67,
5159,
28,
31,
202,
202,
6494,
2774,
67,
6498,
273,
638,
16,
1082,
202,
5332,
25728,
273,
629,
16,
1082,
202,
5332,
3456,
273,
629,
16,
1082,
202,
2434,
1638,
273,
629,
16,
1082,
202,
3645,
12050,
273,
638,
31,
202,
202,
3001,
1149,
67,
5814,
31,
368,
21056,
87,
326,
296,
578,
315,
11193,
787,
434,
1604,
1244,
202,
202,
6494,
1297,
67,
3158,
67,
28,
273,
629,
31,
202,
202,
6494,
25408,
67,
8238,
828,
273,
629,
31,
202,
202,
759,
5748,
8526,
1047,
67,
3772,
273,
394,
1525,
63,
5034,
15533,
202,
202,
759,
5748,
8526,
1604,
67,
529,
67,
1126,
273,
394,
1525,
63,
13757,
15533,
368,
13908,
1677,
1800,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1109,
12,
6494,
11472,
13,
202,
202,
15069,
13400,
503,
16,
30051,
16,
3887,
503,
16,
10616,
288,
202,
202,
759,
4426,
2713,
3152,
1082,
202,
2387,
273,
11472,
31,
202,
202,
474,
1906,
67,
3348,
273,
374,
16,
769,
21,
273,
374,
16,
769,
22,
273,
374,
16,
5504,
273,
404,
31,
202,
202,
474,
3598,
273,
300,
21,
16,
1604,
67,
1883,
273,
374,
16,
462,
273,
374,
16,
462,
67,
5814,
273,
374,
31,
202,
202,
474,
2807,
67,
343,
273,
374,
16,
2807,
22,
67,
343,
273,
374,
16,
2082,
67,
2019,
273,
7442,
67,
19693,
67,
7570,
31,
202,
202,
759,
6494,
711,
67,
931,
273,
629,
31,
3196,
202,
2
] |
public static Object getNamedPlugin(Class intfc, String name) throws PluginInstantiationException { try { String iname = intfc.getName(); configureNamedPlugin(iname); String key = iname + SEP + name; String cname = (String)namedPluginClasses.get(key); if (cname == null) log.warn("Cannot find named plugin for interface="+iname+", name=\""+name+"\""); else { Class pluginClass = Class.forName(cname); if (cacheMe(pluginClass)) { String nkey = pluginClass.getName() + SEP + name; Object cached = namedInstanceCache.get(nkey); if (cached == null) { cached = pluginClass.newInstance(); if (cached instanceof SelfNamedPlugin) ((SelfNamedPlugin)cached).setPluginInstanceName(name); namedInstanceCache.put(nkey, cached); } return cached; } else { Object result = pluginClass.newInstance(); if (result instanceof SelfNamedPlugin) ((SelfNamedPlugin)result).setPluginInstanceName(name); } } } catch (ClassNotFoundException e) { throw new PluginInstantiationException("Cannot load plugin class!",e); } catch (InstantiationException e) { throw new PluginInstantiationException(e); } catch (IllegalAccessException e) { throw new PluginInstantiationException(e); } return null; } | 47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/8cf0447063158ac73720ac9b14bede8703c61f25/PluginManager.java/buggy/dspace/src/org/dspace/core/PluginManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
921,
588,
7604,
3773,
12,
797,
474,
7142,
16,
780,
529,
13,
15069,
3773,
10675,
7072,
503,
95,
698,
95,
780,
267,
339,
33,
474,
7142,
18,
17994,
5621,
14895,
7604,
3773,
12,
267,
339,
1769,
780,
856,
33,
267,
339,
15,
28610,
15,
529,
31,
780,
71,
529,
28657,
780,
13,
13188,
3773,
4818,
18,
588,
12,
856,
1769,
430,
12,
71,
529,
631,
2011,
13,
1330,
18,
8935,
2932,
4515,
4720,
13188,
4094,
1884,
5831,
1546,
15,
267,
339,
15,
3113,
529,
13186,
15,
529,
9078,
8530,
1769,
12107,
95,
797,
4094,
797,
33,
797,
18,
1884,
461,
12,
71,
529,
1769,
430,
12,
2493,
4667,
12,
4094,
797,
3719,
95,
780,
82,
856,
33,
4094,
797,
18,
17994,
1435,
15,
28610,
15,
529,
31,
921,
7097,
33,
13188,
1442,
1649,
18,
588,
12,
82,
856,
1769,
430,
12,
7097,
631,
2011,
15329,
7097,
33,
4094,
797,
18,
2704,
1442,
5621,
430,
12,
7097,
1336,
792,
10084,
7604,
3773,
13,
12443,
10084,
7604,
3773,
13,
7097,
2934,
542,
3773,
22520,
12,
529,
1769,
13188,
1442,
1649,
18,
458,
12,
82,
856,
16,
7097,
1769,
97,
2463,
7097,
31,
97,
12107,
95,
921,
2088,
33,
4094,
797,
18,
2704,
1442,
5621,
430,
12,
2088,
1336,
792,
10084,
7604,
3773,
13,
12443,
10084,
7604,
3773,
13,
2088,
2934,
542,
3773,
22520,
12,
529,
1769,
9090,
97,
14683,
12,
797,
3990,
73,
15329,
12849,
2704,
3773,
10675,
7072,
503,
2932,
4515,
945,
4094,
1106,
5,
3113,
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,
3845,
921,
588,
7604,
3773,
12,
797,
474,
7142,
16,
780,
529,
13,
15069,
3773,
10675,
7072,
503,
95,
698,
95,
780,
267,
339,
33,
474,
7142,
18,
17994,
5621,
14895,
7604,
3773,
12,
267,
339,
1769,
780,
856,
33,
267,
339,
15,
28610,
15,
529,
31,
780,
71,
529,
28657,
780,
13,
13188,
3773,
4818,
18,
588,
12,
856,
1769,
430,
12,
71,
529,
631,
2011,
13,
1330,
18,
8935,
2932,
4515,
4720,
13188,
4094,
1884,
5831,
1546,
15,
267,
339,
15,
3113,
529,
13186,
15,
529,
9078,
8530,
1769,
12107,
95,
797,
4094,
797,
33,
797,
18,
1884,
461,
12,
71,
529,
1769,
430,
12,
2493,
4667,
12,
4094,
797,
3719,
95,
780,
82,
856,
33,
2
] |
||
jjmatchedKind = 18; return jjMoveStringLiteralDfa1_6(0x28000L); | jjmatchedKind = 15; return jjMoveStringLiteralDfa1_6(0x5000L); | private final int jjMoveStringLiteralDfa0_6(){ switch(curChar) { case 35: jjmatchedKind = 18; return jjMoveStringLiteralDfa1_6(0x28000L); case 42: return jjMoveStringLiteralDfa1_6(0x1000000L); default : return jjMoveNfa_6(3, 0); }} | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/89173502837b4d67a69cd30d0b93cf47ed84c8cc/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
20,
67,
26,
1435,
95,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
13191,
30,
540,
10684,
11073,
5677,
273,
6549,
31,
540,
327,
10684,
7607,
28565,
40,
507,
21,
67,
26,
12,
20,
92,
6030,
3784,
48,
1769,
1377,
648,
14856,
30,
540,
327,
10684,
7607,
28565,
40,
507,
21,
67,
26,
12,
20,
92,
21,
9449,
48,
1769,
1377,
805,
294,
540,
327,
10684,
7607,
50,
507,
67,
26,
12,
23,
16,
374,
1769,
282,
10523,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
20,
67,
26,
1435,
95,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
13191,
30,
540,
10684,
11073,
5677,
273,
6549,
31,
540,
327,
10684,
7607,
28565,
40,
507,
21,
67,
26,
12,
20,
92,
6030,
3784,
48,
1769,
1377,
648,
14856,
30,
540,
327,
10684,
7607,
28565,
40,
507,
21,
67,
26,
12,
20,
92,
21,
9449,
48,
1769,
1377,
805,
294,
540,
327,
10684,
7607,
50,
507,
67,
26,
12,
23,
16,
374,
1769,
282,
10523,
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
] |
String organism = null; | public boolean readRichSequence(BufferedReader reader, SymbolTokenization symParser, RichSeqIOListener rlistener, Namespace ns) throws IllegalSymbolException, IOException, ParseException { String line; boolean hasAnotherSequence = true; //boolean hasInternalWhitespace = false; rlistener.startSequence(); if (ns==null) ns=RichObjectFactory.getDefaultNamespace(); rlistener.setNamespace(ns); // Get an ordered list of key->value pairs in array-tuples String sectionKey = null; NCBITaxon tax = null; String organism = null; String accession = null; int xrefCount = 0; do { List section = this.readSection(reader); sectionKey = ((String[])section.get(0))[0]; if(sectionKey == null){ throw new ParseException("Section key was null. Accession:"+ accession == null ? "Not set" : accession); } // process section-by-section if (sectionKey.equals(LOCUS_TAG)) { // entryname dataclass; moltype; sequencelength AA. String loc = ((String[])section.get(0))[1]; Matcher m = lp.matcher(loc); if (m.matches()) { rlistener.setName(m.group(2)); rlistener.setDivision(m.group(3)); rlistener.addSequenceProperty(Terms.getDataClassTerm(),m.group(4)); rlistener.addSequenceProperty(Terms.getMolTypeTerm(),m.group(5)); } else { throw new ParseException("Bad ID line found: "+loc); } } else if (sectionKey.equals(DEFINITION_TAG)) { String val = ((String[])section.get(0))[1]; if (val.endsWith(".")) val = val.substring(0, val.length()-1); // chomp dot rlistener.setDescription(val); } else if (sectionKey.equals(SOURCE_TAG)) { // use SOURCE_TAG and TAXON_TAG values String sciname = null; String comname = null; List synonym = new ArrayList(); int taxid = 0; for (int i = 0; i < section.size(); i++) { String tag = ((String[])section.get(i))[0]; String value = ((String[])section.get(i))[1].trim(); if (tag.equals(SOURCE_TAG)) { if (value.endsWith(".")) value = value.substring(0,value.length()-1); // chomp trailing dot String[] parts = value.split("\\("); sciname = parts[0].trim(); if (parts.length>1) { comname = parts[1].trim(); if (comname.endsWith(")")) comname = comname.substring(0,comname.length()-1); // chomp trailing bracket if (parts.length>2) { // synonyms for (int j = 2 ; j < parts.length; j++) { String syn = parts[j].trim(); if (syn.endsWith(")")) syn = syn.substring(0,syn.length()-1); // chomp trailing bracket synonym.add(syn); } } } } else if (tag.equals(TAXON_TAG)) { String[] parts = value.split(";"); for (int j = 0; j < parts.length; j++) { String[] bits = parts[j].split("="); if (bits[0].equals("NCBI_TaxID")) { String[] morebits = bits[1].split(","); taxid = Integer.parseInt(morebits[0].trim()); } } } else if (tag.equals(ORGANELLE_TAG)) { if (value.endsWith(".")) value = value.substring(0,value.length()-1); // chomp trailing dot String[] parts = value.split(";"); for (int j = 0; j < parts.length; j++) { parts[j]=parts[j].trim(); rlistener.addSequenceProperty(Terms.getOrganelleTerm(),parts[j]); } } } // Set the Taxon tax = (NCBITaxon)RichObjectFactory.getObject(SimpleNCBITaxon.class, new Object[]{new Integer(taxid)}); rlistener.setTaxon(tax); try { if (sciname!=null) tax.addName(NCBITaxon.SCIENTIFIC,sciname); if (comname!=null) tax.addName(NCBITaxon.COMMON,comname); for (Iterator j = synonym.iterator(); j.hasNext(); ) tax.addName(NCBITaxon.SYNONYM, (String)j.next()); } catch (ChangeVetoException e) { throw new ParseException(e); } } else if (sectionKey.equals(DATE_TAG)) { String chunk = ((String[])section.get(0))[1]; Matcher dm = dp.matcher(chunk); if (dm.matches()) { String date = dm.group(1).trim(); String type = dm.group(2).trim(); String rel = dm.group(3); if (rel!=null) rel = rel.trim(); if (type.startsWith("integrated into UniProtKB")) { String dbname = type.split("/")[1]; rlistener.addSequenceProperty(Terms.getDateCreatedTerm(), date); rlistener.addSequenceProperty(Terms.getUniProtDBNameTerm(), dbname); } else if (type.equalsIgnoreCase("sequence version")) { if (rel==null) throw new ParseException("Version missing for "+type); rlistener.addSequenceProperty(Terms.getDateUpdatedTerm(), date); rlistener.addSequenceProperty(Terms.getRelUpdatedTerm(), rel); } else if (type.equalsIgnoreCase("entry version")) { if (rel==null) throw new ParseException("Version missing for "+type); rlistener.addSequenceProperty(Terms.getDateAnnotatedTerm(), date); rlistener.addSequenceProperty(Terms.getRelAnnotatedTerm(), rel); } else throw new ParseException("Bad date type found: "+type); } else throw new ParseException("Bad date line found: "+chunk); } else if (sectionKey.equals(ACCESSION_TAG)) { // if multiple accessions, store only first as accession, // and store rest in annotation String[] accs = ((String[])section.get(0))[1].split(";"); accession = accs[0].trim(); rlistener.setAccession(accession); for (int i = 1; i < accs.length; i++) { rlistener.addSequenceProperty(Terms.getAdditionalAccessionTerm(),accs[i].trim()); } } else if (sectionKey.equals(KEYWORDS_TAG)) { String val = ((String[])section.get(0))[1]; if (val.endsWith(".")) val = val.substring(0, val.length()-1); // chomp dot String[] kws = val.split(";"); for (int i = 0; i < kws.length; i++) { String kw = kws[i].trim(); if (kw.length()==0) continue; rlistener.addSequenceProperty(Terms.getKeywordTerm(), kw); } } else if (sectionKey.equals(GENE_TAG)) { String[] genes = ((String[])section.get(0))[1].split("\\s+(or|and)\\s+"); for (int geneID = 0; geneID < genes.length; geneID++) { String[] parts = genes[geneID].split(";"); for (int j = 0; j < parts.length; j++) { String[] moreparts = parts[j].split("="); String[] values = moreparts[1].split(","); // nasty hack - we really should have notes on the gene object itself... if such a thing existed... if (moreparts[0].trim().equals(Terms.GENENAME_KEY)) rlistener.addSequenceProperty(Terms.getGeneNameTerm(),geneID+":"+values[0].trim()); else if (moreparts[0].trim().equals(Terms.GENESYNONYM_KEY)) { for (int k = 0; k < values.length; k++) rlistener.addSequenceProperty(Terms.getGeneSynonymTerm(),geneID+":"+values[k].trim()); } else if (moreparts[0].trim().equals(Terms.ORDLOCNAME_KEY)) { for (int k = 0; k < values.length; k++) rlistener.addSequenceProperty(Terms.getOrderedLocusNameTerm(),geneID+":"+values[k].trim()); } else if (moreparts[0].trim().equals(Terms.ORFNAME_KEY)) { for (int k = 0; k < values.length; k++) rlistener.addSequenceProperty(Terms.getORFNameTerm(),geneID+":"+values[k].trim()); } } } } else if (sectionKey.equals(DATABASE_XREF_TAG)) { // database_identifier; primary_identifier; secondary_identifier.... String val = ((String[])section.get(0))[1]; if (val.endsWith(".")) val = val.substring(0, val.length()-1); // chomp dot String[] parts = val.split(";"); // construct a DBXREF out of the dbname part[0] and accession part[1] String dbname = parts[0].trim(); String acc = parts[1].trim(); CrossRef crossRef = (CrossRef)RichObjectFactory.getObject(SimpleCrossRef.class,new Object[]{dbname,acc,new Integer(0)}); // assign remaining bits of info as additional accession annotations for (int j = 2; j < parts.length; j++) { ComparableTerm t = (ComparableTerm)Terms.getAdditionalAccessionTerm(); Note note = new SimpleNote(t,parts[j].trim(),j); try { ((RichAnnotation)crossRef.getAnnotation()).addNote(note); } catch (ChangeVetoException ce) { ParseException pe = new ParseException("Could not annotate additional accession terms"); pe.initCause(ce); throw pe; } } RankedCrossRef rcrossRef = new SimpleRankedCrossRef(crossRef, ++xrefCount); rlistener.setRankedCrossRef(rcrossRef); } else if (sectionKey.equals(REFERENCE_TAG) && !this.getElideReferences()) { // first line of section has rank and location String refrank = ((String[])section.get(0))[1]; int ref_rank = Integer.parseInt(refrank.substring(1,refrank.length()-1)); // rest can be in any order String authors = null; String consortium = null; String title = null; String locator = null; String pubmed = null; String medline = null; String doi = null; String remark = null; Integer rstart = null; Integer rend = null; for (int i = 1; i < section.size(); i++) { String key = ((String[])section.get(i))[0]; String val = ((String[])section.get(i))[1]; //System.err.println(key+": "+val); if (key.equals(AUTHORS_TAG)) { if (val.endsWith(";")) val = val.trim().substring(0, val.length()-1); // chomp semicolon authors = val; } if (key.equals(CONSORTIUM_TAG)) { if (val.endsWith(";")) val = val.trim().substring(0, val.length()-1); // chomp semicolon consortium = val; } if (key.equals(TITLE_TAG)) { if (val.endsWith(";")) val = val.trim().substring(0, val.length()-1); // chomp semicolon if (val.endsWith("\"")) val = val.trim().substring(1, val.length()-2); // chomp quotes title = val; } if (key.equals(LOCATION_TAG)) { if (val.endsWith(".")) val = val.trim().substring(0, val.length()-1); // chomp dot locator = val; } if (key.equals(REFERENCE_XREF_TAG)) { // database_identifier=primary_identifier; String[] refs = val.split(";"); for (int j = 0 ; j < refs.length; j++) { if (refs[j].trim().length()==0) continue; String[] parts = refs[j].split("="); String db = parts[0]; String ref = parts[1]; if (db.equalsIgnoreCase(Terms.PUBMED_KEY)) pubmed = ref; else if (db.equalsIgnoreCase(Terms.MEDLINE_KEY)) medline = ref; else if (db.equalsIgnoreCase(Terms.DOI_KEY)) doi = ref; } } if (key.equals(RP_LINE_TAG)) { remark = val; if (val.endsWith(".")) val = val.substring(0, val.length()-1); // chomp dot // Try to use it to find the location of the reference, if we have one. Matcher m = rppat.matcher(val); if (m.matches()) { rstart = Integer.valueOf(m.group(1)); rend = Integer.valueOf(m.group(2)); } } if (key.equals(RC_LINE_TAG)) { // Split into key=value pairs separated by semicolons and terminated with semicolon. String[] parts = val.split(";"); for (int j = 0; j < parts.length; j++) { String[] subparts = parts[j].split("="); // get term for first section String termName = subparts[0].trim(); Term t; if (termName.equalsIgnoreCase(Terms.SPECIES_KEY)) t = Terms.getSpeciesTerm(); else if (termName.equalsIgnoreCase(Terms.STRAIN_KEY)) t = Terms.getStrainTerm(); else if (termName.equalsIgnoreCase(Terms.TISSUE_KEY)) t = Terms.getTissueTerm(); else if (termName.equalsIgnoreCase(Terms.TRANSPOSON_KEY)) t = Terms.getTransposonTerm(); else if (termName.equalsIgnoreCase(Terms.PLASMID_KEY)) t = Terms.getPlasmidTerm(); else throw new ParseException("Invalid RC term found: "+termName); // assign notes using term and rank:second section as value // nasty hack - we really should have notes on the reference itself. rlistener.addSequenceProperty(t, ref_rank+":"+subparts[1].trim()); } } } // create the pubmed crossref and assign to the bioentry CrossRef pcr = null; if (pubmed!=null) { pcr = (CrossRef)RichObjectFactory.getObject(SimpleCrossRef.class,new Object[]{Terms.PUBMED_KEY, pubmed, new Integer(0)}); RankedCrossRef rpcr = new SimpleRankedCrossRef(pcr, 0); rlistener.setRankedCrossRef(rpcr); } // create the medline crossref and assign to the bioentry CrossRef mcr = null; if (medline!=null) { mcr = (CrossRef)RichObjectFactory.getObject(SimpleCrossRef.class,new Object[]{Terms.MEDLINE_KEY, medline, new Integer(0)}); RankedCrossRef rmcr = new SimpleRankedCrossRef(mcr, 0); rlistener.setRankedCrossRef(rmcr); } // create the doi crossref and assign to the bioentry CrossRef dcr = null; if (doi!=null) { dcr = (CrossRef)RichObjectFactory.getObject(SimpleCrossRef.class,new Object[]{Terms.DOI_KEY, doi, new Integer(0)}); RankedCrossRef rdcr = new SimpleRankedCrossRef(dcr, 0); rlistener.setRankedCrossRef(rdcr); } // create the docref object try { List auths = null; if(authors != null) auths = DocRefAuthor.Tools.parseAuthorString(authors); if (consortium!=null){ if(auths == null) auths = new ArrayList(); auths.add(new SimpleDocRefAuthor(consortium,true,false)); } DocRef dr = (DocRef)RichObjectFactory.getObject(SimpleDocRef.class,new Object[]{auths,locator}); if (title!=null) dr.setTitle(title); // assign either the pubmed or medline to the docref - medline gets priority, then pubmed, then doi if (mcr!=null) dr.setCrossref(mcr); else if (pcr!=null) dr.setCrossref(pcr); else if (dcr!=null) dr.setCrossref(dcr); // assign the remarks if (!this.getElideComments()) dr.setRemark(remark); // assign the docref to the bioentry RankedDocRef rdr = new SimpleRankedDocRef(dr,rstart,rend,ref_rank); rlistener.setRankedDocRef(rdr); } catch (ChangeVetoException e) { throw new ParseException(e); } } else if (sectionKey.equals(COMMENT_TAG) && !this.getElideComments()) { // Set up some comments String val = ((String[])section.get(0))[1]; if (UniProtCommentParser.isParseable(val)) rlistener.setComment(val); else { // copyright message rlistener.addSequenceProperty(Terms.getCopyrightTerm(), val); } } else if (sectionKey.equals(FEATURE_TAG) && !this.getElideFeatures()) { // starting from second line of input, start a new feature whenever we come across // a key that does not start with / boolean seenAFeature = false; for (int i = 1 ; i < section.size(); i++) { String key = ((String[])section.get(i))[0]; String val = ((String[])section.get(i))[1]; val = val.trim(); if (val.endsWith(".")) val = val.substring(0,val.length()-1); // chomp dot if (key.startsWith("/")) { key = key.substring(1); // strip leading slash if (key.equals("FTId")) rlistener.addFeatureProperty(Terms.getFTIdTerm(),val); else { // should never happen - but here just in case rlistener.addFeatureProperty(RichObjectFactory.getDefaultOntology().getOrCreateTerm(key),val); } } else { // new feature! // end previous feature if (seenAFeature) rlistener.endFeature(); // start next one, with lots of lovely info in it RichFeature.Template templ = new RichFeature.Template(); templ.annotation = new SimpleRichAnnotation(); templ.sourceTerm = Terms.getUniProtTerm(); templ.typeTerm = RichObjectFactory.getDefaultOntology().getOrCreateTerm(key); templ.featureRelationshipSet = new TreeSet(); templ.rankedCrossRefs = new TreeSet(); String desc = null; String status = null; val = val.replaceAll("\n", " "); // Nasty hack but we have to do this, sadly. Matcher m = fp.matcher(val); if (m.matches()) { String loc = m.group(1); desc = m.group(3); templ.location = UniProtLocationParser.parseLocation(loc); } else { System.err.println("XX"+val+"XX"); throw new ParseException("Bad feature value: "+val); } rlistener.startFeature(templ); if (desc!=null) rlistener.addFeatureProperty(Terms.getFeatureDescTerm(),desc); seenAFeature = true; } } if (seenAFeature) rlistener.endFeature(); } else if (sectionKey.equals(START_SEQUENCE_TAG) && !this.getElideSymbols()) { StringBuffer seq = new StringBuffer(); for (int i = 0 ; i < section.size(); i++) seq.append(((String[])section.get(i))[1]); try { SymbolList sl = new SimpleSymbolList(symParser, seq.toString().replaceAll("\\s+","").replaceAll("[\\.|~]","-")); rlistener.addSymbols(symParser.getAlphabet(), (Symbol[])(sl.toList().toArray(new Symbol[0])), 0, sl.length()); } catch (Exception e) { throw new ParseException(e); } } } while (!sectionKey.equals(END_SEQUENCE_TAG)); // Allows us to tolerate trailing whitespace without // thinking that there is another Sequence to follow while (true) { reader.mark(1); int c = reader.read(); if (c == -1) { hasAnotherSequence = false; break; } if (Character.isWhitespace((char) c)) { //hasInternalWhitespace = true; continue; } //if (hasInternalWhitespace) //System.err.println("Warning: whitespace found between sequence entries"); reader.reset(); break; } // Finish up. rlistener.endSequence(); return hasAnotherSequence; } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/05b36241610b2e40a85168dccc182f8d5f51e4de/UniProtFormat.java/clean/src/org/biojavax/bio/seq/io/UniProtFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
855,
22591,
4021,
12,
17947,
2514,
2949,
16,
5411,
8565,
1345,
1588,
5382,
2678,
16,
5411,
534,
1354,
6926,
4294,
2223,
436,
12757,
16,
5411,
6005,
3153,
13,
5411,
1216,
2141,
5335,
503,
16,
1860,
16,
10616,
288,
7734,
514,
980,
31,
3639,
1250,
711,
37,
24413,
4021,
273,
638,
31,
3639,
368,
6494,
711,
3061,
9431,
273,
629,
31,
7734,
436,
12757,
18,
1937,
4021,
5621,
7734,
309,
261,
2387,
631,
2011,
13,
3153,
33,
22591,
921,
1733,
18,
588,
1868,
3402,
5621,
3639,
436,
12757,
18,
542,
3402,
12,
2387,
1769,
7734,
368,
968,
392,
5901,
666,
434,
498,
2122,
1132,
5574,
316,
526,
17,
17705,
3639,
514,
2442,
653,
273,
446,
31,
3639,
423,
8876,
1285,
651,
265,
5320,
273,
446,
31,
9079,
514,
2006,
285,
273,
446,
31,
3639,
509,
15187,
1380,
273,
374,
31,
3639,
741,
288,
5411,
987,
2442,
273,
333,
18,
896,
5285,
12,
10530,
1769,
5411,
2442,
653,
273,
14015,
780,
63,
5717,
3464,
18,
588,
12,
20,
3719,
63,
20,
15533,
5411,
309,
12,
3464,
653,
422,
446,
15329,
7734,
604,
394,
10616,
2932,
5285,
498,
1703,
446,
18,
5016,
285,
2773,
15,
13491,
2006,
285,
422,
446,
692,
315,
1248,
444,
6,
294,
2006,
285,
1769,
5411,
289,
5411,
368,
1207,
2442,
17,
1637,
17,
3464,
5411,
309,
261,
3464,
653,
18,
14963,
12,
29450,
3378,
67,
7927,
3719,
288,
7734,
368,
1241,
529,
225,
501,
1106,
31,
12629,
723,
31,
26401,
1331,
292,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
855,
22591,
4021,
12,
17947,
2514,
2949,
16,
5411,
8565,
1345,
1588,
5382,
2678,
16,
5411,
534,
1354,
6926,
4294,
2223,
436,
12757,
16,
5411,
6005,
3153,
13,
5411,
1216,
2141,
5335,
503,
16,
1860,
16,
10616,
288,
7734,
514,
980,
31,
3639,
1250,
711,
37,
24413,
4021,
273,
638,
31,
3639,
368,
6494,
711,
3061,
9431,
273,
629,
31,
7734,
436,
12757,
18,
1937,
4021,
5621,
7734,
309,
261,
2387,
631,
2011,
13,
3153,
33,
22591,
921,
1733,
18,
588,
1868,
3402,
5621,
3639,
436,
12757,
18,
542,
3402,
12,
2387,
1769,
7734,
368,
968,
392,
5901,
666,
434,
498,
2122,
1132,
5574,
316,
526,
17,
17705,
3639,
514,
2442,
653,
273,
446,
31,
3639,
2
] |
|
iterateNodeSet(documentWrapper, xpathEvaluator, modelBind, new NodeHandler() { | final XPathEvaluator xpathEvaluator = new XPathEvaluator(documentWrapper); StandaloneContext context = (StandaloneContext) xpathEvaluator.getStaticContext(); for (Iterator j = modelBind.getNamespaceMap().keySet().iterator(); j.hasNext();) { String prefix = (String) j.next(); context.declareNamespace(prefix, (String) modelBind.getNamespaceMap().get(prefix)); } iterateNodeSet(documentWrapper, modelBind, new NodeHandler() { | public void applyInputOutputBinds(Document instance) { for (Iterator i = binds.iterator(); i.hasNext();) { final ModelBind modelBind = (ModelBind) i.next(); try { // Create XPath evaluator for this bind DocumentWrapper documentWrapper = new DocumentWrapper(instance, null); final XPathEvaluator xpathEvaluator = new XPathEvaluator(documentWrapper); StandaloneContext context = (StandaloneContext) xpathEvaluator.getStaticContext(); for (Iterator j = modelBind.getNamespaceMap().keySet().iterator(); j.hasNext();) { String prefix = (String) j.next(); context.declareNamespace(prefix, (String) modelBind.getNamespaceMap().get(prefix)); } // Handle relevant if (modelBind.getRelevant() != null) { iterateNodeSet(documentWrapper, xpathEvaluator, modelBind, new NodeHandler() { public void handleNode(Node node) { // Evaluate "relevant" XPath expression on this node boolean relevant = ((Boolean) XPathUtils.evaluateSingle (xpathEvaluator, "boolean(" + modelBind.getRelevant() + ")", modelBind.getLocationData())).booleanValue(); // Mark node InstanceData instanceData = XFormsUtils.getInstanceData((Node) node); instanceData.getRelevant().set(relevant); } }); } // Handle calculate if (modelBind.getCalculate() != null) { iterateNodeSet(documentWrapper, xpathEvaluator, modelBind, new NodeHandler() { public void handleNode(Node node) { if (node instanceof Element) { // Compute calculated value List result = XPathUtils.evaluate(xpathEvaluator, modelBind.getCalculate(), modelBind.getLocationData()); // Place in element Element elementNode = (Element) node; elementNode.clearContent(); for (Iterator k = result.iterator(); k.hasNext();) { Object resultItem = k.next(); if (resultItem instanceof Node) { elementNode.add(((Node) elementNode.clone())); } else { elementNode.add(DocumentFactory.getInstance().createText(resultItem.toString())); } } } else { // Compute calculated value and place in attribute XFormsUtils.fillNode(node, (String) XPathUtils.evaluateSingle(xpathEvaluator, "string(" + modelBind.getCalculate() + ")", modelBind.getLocationData())); } } }); } // Handle type constraint if (modelBind.getType() != null) { iterateNodeSet(documentWrapper, xpathEvaluator, modelBind, new NodeHandler() { public void handleNode(Node node) { if (XFormsUtils.getInstanceData(node).getValid().get()) { // Get type information int requiredType = -1; boolean foundType = false; { String type = modelBind.getType(); int prefixPosition = type.indexOf(':'); if (prefixPosition > 0) { String prefix = type.substring(0, prefixPosition); String namespace = (String) modelBind.getNamespaceMap().get(prefix); if (namespace == null) throw new ValidationException("Namespace not declared for prefix '" + prefix + "'", modelBind.getLocationData()); ItemType itemType = Type.getBuiltInItemType((String) modelBind.getNamespaceMap().get(prefix), type.substring(prefixPosition + 1)); if (itemType != null) { requiredType = itemType.getPrimitiveType(); foundType = true; } } } if (!foundType) throw new ValidationException("Invalid type '" + modelBind.getType() + "'", modelBind.getLocationData()); // Try to perform casting String nodeStringValue = node.getStringValue(); if (XFormsUtils.getInstanceData(node).getRequired().get() || nodeStringValue.length() != 0) { try { StringValue stringValue = new StringValue(nodeStringValue); XPathContext xpContext = new XPathContextMajor(stringValue, xpathEvaluator.getStaticContext().getConfiguration()); stringValue.convert(requiredType, xpContext); markValidity(true, node, modelBind.getId()); } catch (XPathException e) { markValidity(false, node, modelBind.getId()); } } } } }); } // Handle XPath constraint if (modelBind.getConstraint() != null) { iterateNodeSet(documentWrapper, xpathEvaluator, modelBind, new NodeHandler() { public void handleNode(Node node) { if (XFormsUtils.getInstanceData(node).getValid().get()) { // Evaluate constraint Boolean valid = (Boolean) XPathUtils.evaluateSingle(xpathEvaluator, "boolean(" + modelBind.getConstraint() + ")", modelBind.getLocationData()); markValidity(valid.booleanValue(), node, modelBind.getId()); } } }); } // Handle required if (modelBind.getRequired() != null) { iterateNodeSet(documentWrapper, xpathEvaluator, modelBind, new NodeHandler() { public void handleNode(Node node) { // Evaluate "required" XPath expression on this node boolean required = ((Boolean) (XPathUtils.evaluateSingle (xpathEvaluator, "boolean(" + modelBind.getRequired() + ")", modelBind.getLocationData()))).booleanValue(); // Mark node InstanceData instanceData = XFormsUtils.getInstanceData((Node) node); instanceData.getRequired().set(required); // If required, check the string value is not empty markValidity(!required || node.getStringValue().length() > 0, node, modelBind.getId()); } }); } // Handle read only if (modelBind.getReadonly() != null) { iterateNodeSet(documentWrapper, xpathEvaluator, modelBind, new NodeHandler() { public void handleNode(Node node) { // Evaluate "readonly" XPath expression on this node boolean readonly = ((Boolean) (XPathUtils.evaluateSingle (xpathEvaluator, "boolean(" + modelBind.getReadonly() + ")", modelBind.getLocationData()))).booleanValue(); // Mark node InstanceData instanceData = XFormsUtils.getInstanceData((Node) node); instanceData.getReadonly().set(readonly); } }); } } catch (Exception e) { throw new ValidationException(e, modelBind.getLocationData()); } } reconciliate(instance.getRootElement()); } | 57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/5996bad8ae7a5e6bde143d457470ccb6e7d8a675/Model.java/buggy/src/java/org/orbeon/oxf/processor/xforms/Model.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2230,
1210,
1447,
17856,
12,
2519,
791,
13,
288,
3639,
364,
261,
3198,
277,
273,
16129,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
5411,
727,
3164,
3357,
938,
3357,
273,
261,
1488,
3357,
13,
277,
18,
4285,
5621,
5411,
775,
288,
7734,
368,
1788,
10172,
18256,
364,
333,
1993,
7734,
4319,
3611,
1668,
3611,
273,
394,
4319,
3611,
12,
1336,
16,
446,
1769,
7734,
727,
10172,
15876,
6748,
15876,
273,
394,
10172,
15876,
12,
5457,
3611,
1769,
7734,
934,
464,
12451,
1042,
819,
273,
261,
20612,
12451,
1042,
13,
6748,
15876,
18,
588,
5788,
1042,
5621,
7734,
364,
261,
3198,
525,
273,
938,
3357,
18,
588,
3402,
863,
7675,
856,
694,
7675,
9838,
5621,
525,
18,
5332,
2134,
5621,
13,
288,
10792,
514,
1633,
273,
261,
780,
13,
525,
18,
4285,
5621,
10792,
819,
18,
29554,
3402,
12,
3239,
16,
261,
780,
13,
938,
3357,
18,
588,
3402,
863,
7675,
588,
12,
3239,
10019,
7734,
289,
7734,
368,
5004,
9368,
7734,
309,
261,
2284,
3357,
18,
588,
17018,
7445,
1435,
480,
225,
446,
13,
288,
8227,
727,
10172,
15876,
6748,
15876,
273,
394,
10172,
15876,
12,
5457,
3611,
1769,
934,
464,
12451,
1042,
819,
273,
261,
20612,
12451,
1042,
13,
6748,
15876,
18,
588,
5788,
1042,
5621,
364,
261,
3198,
525,
273,
938,
3357,
18,
588,
3402,
863,
7675,
856,
694,
7675,
9838,
5621,
525,
18,
5332,
2134,
5621,
13,
288,
514,
1633,
273,
261,
780,
13,
525,
18,
4285,
5621,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2230,
1210,
1447,
17856,
12,
2519,
791,
13,
288,
3639,
364,
261,
3198,
277,
273,
16129,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
5411,
727,
3164,
3357,
938,
3357,
273,
261,
1488,
3357,
13,
277,
18,
4285,
5621,
5411,
775,
288,
7734,
368,
1788,
10172,
18256,
364,
333,
1993,
7734,
4319,
3611,
1668,
3611,
273,
394,
4319,
3611,
12,
1336,
16,
446,
1769,
7734,
727,
10172,
15876,
6748,
15876,
273,
394,
10172,
15876,
12,
5457,
3611,
1769,
7734,
934,
464,
12451,
1042,
819,
273,
261,
20612,
12451,
1042,
13,
6748,
15876,
18,
588,
5788,
1042,
5621,
7734,
364,
261,
3198,
525,
273,
938,
3357,
18,
588,
3402,
863,
7675,
856,
694,
7675,
9838,
2
] |
String codeBase = getCodeBase().toExternalForm().substring(7); | String extForm = getCodeBase().toExternalForm(); String codeBase = extForm.substring(extForm.indexOf(":") + 3); | public void init() { this.subAppletClassName = getParameter("subapplet.classname"); if (subAppletClassName == null){ displayError("Init failed : Missing subapplet.classname argument"); return; } this.subAppletDisplayName = getParameter("subapplet.displayname"); if (subAppletDisplayName == null){ subAppletDisplayName = "Applet"; } this.subAppletImageName = getParameter("subapplet.image"); initLoaderLayout(); validate(); String codeBase = getCodeBase().toExternalForm().substring(7); // minus http:// this.installDirectory = codeBase.replace(':', '_') .replace('.', '_').replace('/', '_').replace('~','_'); // clean up the name String osName = System.getProperty("os.name"); String osArch = System.getProperty("os.arch"); if (checkOSAndArch(osName, osArch)) { this.isInitOk = true; } else { displayError("Init failed : Unsupported os / arch ( " + osName + " / " + osArch + " )"); } } | 47282 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47282/1f4c024d5dd562a5c2b1e1c1257648b732a105a9/JOGLAppletLauncher.java/clean/src/classes/com/sun/opengl/util/JOGLAppletLauncher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1208,
1435,
225,
288,
565,
333,
18,
1717,
23696,
3834,
273,
5575,
2932,
1717,
438,
1469,
18,
18340,
8863,
565,
309,
261,
1717,
23696,
3834,
422,
446,
15329,
1377,
2562,
668,
2932,
2570,
2535,
294,
10230,
720,
438,
1469,
18,
18340,
1237,
8863,
1377,
327,
31,
565,
289,
565,
333,
18,
1717,
23696,
20524,
273,
5575,
2932,
1717,
438,
1469,
18,
5417,
529,
8863,
565,
309,
261,
1717,
23696,
20524,
422,
446,
15329,
1377,
720,
23696,
20524,
273,
315,
23696,
14432,
565,
289,
565,
333,
18,
1717,
23696,
2040,
461,
273,
5575,
2932,
1717,
438,
1469,
18,
2730,
8863,
565,
1208,
2886,
3744,
5621,
565,
1954,
5621,
565,
514,
1110,
1204,
273,
6583,
2171,
7675,
869,
6841,
1204,
5621,
514,
981,
2171,
273,
1110,
1204,
18,
28023,
12,
408,
1204,
18,
31806,
2932,
2773,
13,
397,
890,
1769,
368,
12647,
1062,
2207,
565,
333,
18,
5425,
2853,
273,
981,
2171,
18,
2079,
2668,
30,
2187,
4427,
13,
1377,
263,
2079,
2668,
1093,
16,
4427,
2934,
2079,
2668,
19,
2187,
4427,
2934,
2079,
2668,
98,
17023,
4623,
1769,
368,
2721,
731,
326,
508,
565,
514,
1140,
461,
273,
2332,
18,
588,
1396,
2932,
538,
18,
529,
8863,
565,
514,
1140,
12269,
273,
2332,
18,
588,
1396,
2932,
538,
18,
991,
8863,
565,
309,
261,
1893,
4618,
1876,
12269,
12,
538,
461,
16,
1140,
12269,
3719,
288,
1377,
333,
18,
291,
2570,
8809,
273,
638,
31,
565,
289,
469,
288,
1377,
2562,
668,
2932,
2570,
2535,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1208,
1435,
225,
288,
565,
333,
18,
1717,
23696,
3834,
273,
5575,
2932,
1717,
438,
1469,
18,
18340,
8863,
565,
309,
261,
1717,
23696,
3834,
422,
446,
15329,
1377,
2562,
668,
2932,
2570,
2535,
294,
10230,
720,
438,
1469,
18,
18340,
1237,
8863,
1377,
327,
31,
565,
289,
565,
333,
18,
1717,
23696,
20524,
273,
5575,
2932,
1717,
438,
1469,
18,
5417,
529,
8863,
565,
309,
261,
1717,
23696,
20524,
422,
446,
15329,
1377,
720,
23696,
20524,
273,
315,
23696,
14432,
565,
289,
565,
333,
18,
1717,
23696,
2040,
461,
273,
5575,
2932,
1717,
438,
1469,
18,
2730,
8863,
565,
1208,
2886,
3744,
5621,
565,
1954,
5621,
565,
514,
1110,
1204,
273,
6583,
2171,
7675,
869,
2
] |
private void synchBugInstance() { // Get current bug instance BugInstance selected = getCurrentBugInstance(); if (selected == null) return; // If the details window is minimized, then the user can't see // it and there is no point in updating it. if (!viewBugDetailsItem.isSelected()) return; // Get the current source line annotation. // If the current leaf selected is not a source line annotation, // use the default source line annotation from the current bug instance // (if any). JTree bugTree = getCurrentBugTree(); SourceLineAnnotation srcLine = null; TreePath selPath = bugTree.getSelectionPath(); if (selPath != null) { Object leaf = ((DefaultMutableTreeNode)selPath.getLastPathComponent()).getUserObject(); if (leaf instanceof SourceLineAnnotation) srcLine = (SourceLineAnnotation) leaf; else srcLine = selected.getPrimarySourceLineAnnotation(); } // Show source code. if (srcLine != currentSourceLineAnnotation) { Project project = getCurrentProject(); AnalysisRun analysisRun = getCurrentAnalysisRun(); if (project == null) throw new IllegalStateException("null project!"); if (analysisRun == null) throw new IllegalStateException("null analysis run!"); viewSource(project, analysisRun, srcLine); currentSourceLineAnnotation = srcLine; } // Show bug info. showBugInfo(selected); // Now the bug details are up to date. currentBugInstance = selected; } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/a6faccf1f33035b730d9878d13d0da9fa199f1f8/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
272,
2515,
19865,
1442,
1435,
288,
3639,
368,
968,
783,
7934,
791,
3639,
16907,
1442,
3170,
273,
5175,
19865,
1442,
5621,
3639,
309,
261,
8109,
422,
446,
13,
5411,
327,
31,
1171,
368,
971,
326,
3189,
2742,
353,
18172,
1235,
16,
1508,
326,
729,
848,
1404,
2621,
3639,
368,
518,
471,
1915,
353,
1158,
1634,
316,
9702,
518,
18,
3639,
309,
16051,
1945,
19865,
3790,
1180,
18,
291,
7416,
10756,
2398,
327,
31,
3639,
368,
968,
326,
783,
1084,
980,
3204,
18,
3639,
368,
971,
326,
783,
7839,
3170,
353,
486,
279,
1084,
980,
3204,
16,
3639,
368,
999,
326,
805,
1084,
980,
3204,
628,
326,
783,
7934,
791,
3639,
368,
261,
430,
1281,
2934,
3639,
804,
2471,
7934,
2471,
273,
5175,
19865,
2471,
5621,
3639,
4998,
1670,
3257,
1705,
1670,
273,
446,
31,
3639,
4902,
743,
357,
743,
273,
7934,
2471,
18,
588,
6233,
743,
5621,
3639,
309,
261,
1786,
743,
480,
446,
13,
288,
5411,
1033,
7839,
273,
14015,
1868,
19536,
12513,
13,
1786,
743,
18,
588,
3024,
743,
1841,
1435,
2934,
588,
1299,
921,
5621,
5411,
309,
261,
12070,
1276,
4998,
1670,
3257,
13,
7734,
1705,
1670,
273,
261,
1830,
1670,
3257,
13,
7839,
31,
5411,
469,
7734,
1705,
1670,
273,
3170,
18,
588,
6793,
1830,
1670,
3257,
5621,
3639,
289,
7734,
368,
9674,
1084,
981,
18,
3639,
309,
261,
4816,
1670,
480,
783,
1830,
1670,
3257,
13,
288,
5411,
5420,
1984,
273,
5175,
4109,
5621,
5411,
16318,
1997,
6285,
1997,
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,
272,
2515,
19865,
1442,
1435,
288,
3639,
368,
968,
783,
7934,
791,
3639,
16907,
1442,
3170,
273,
5175,
19865,
1442,
5621,
3639,
309,
261,
8109,
422,
446,
13,
5411,
327,
31,
1171,
368,
971,
326,
3189,
2742,
353,
18172,
1235,
16,
1508,
326,
729,
848,
1404,
2621,
3639,
368,
518,
471,
1915,
353,
1158,
1634,
316,
9702,
518,
18,
3639,
309,
16051,
1945,
19865,
3790,
1180,
18,
291,
7416,
10756,
2398,
327,
31,
3639,
368,
968,
326,
783,
1084,
980,
3204,
18,
3639,
368,
971,
326,
783,
7839,
3170,
353,
486,
279,
1084,
980,
3204,
16,
3639,
368,
999,
326,
805,
1084,
980,
3204,
628,
326,
783,
7934,
791,
3639,
368,
261,
430,
1281,
2934,
3639,
2
] |
||
if (jj_3R_478()) return true; | if (jj_scan_token(100)) return true; | final private boolean jj_3R_475() { Token xsp; xsp = jj_scanpos; if (jj_3_32()) { jj_scanpos = xsp; if (jj_3R_478()) return true; } return false; } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/9aa0c6bec51662a685ea4b86bc02a52c9e593d8a/Parser.java/clean/dynamicjava/src/koala/dynamicjava/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
24,
5877,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
67,
1578,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
6625,
3719,
327,
638,
31,
565,
289,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
24,
5877,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
67,
1578,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
6625,
3719,
327,
638,
31,
565,
289,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.OrdType getOrdType() throws FieldNotFound { org.quickfix.field.OrdType value = new org.quickfix.field.OrdType(); | public quickfix.field.OrdType getOrdType() throws FieldNotFound { quickfix.field.OrdType value = new quickfix.field.OrdType(); | public org.quickfix.field.OrdType getOrdType() throws FieldNotFound { org.quickfix.field.OrdType value = new org.quickfix.field.OrdType(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteResponse.java/clean/src/java/src/quickfix/fix44/QuoteResponse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
15383,
559,
10117,
72,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
15383,
559,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
15383,
559,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
15383,
559,
10117,
72,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
15383,
559,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
15383,
559,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
XSDocumentInfo (Document schemaDoc) { | XSDocumentInfo (Document schemaDoc, XSAttributeChecker attrChecker) { | XSDocumentInfo (Document schemaDoc) { fSchemaDoc = schemaDoc; if(schemaDoc != null) { Element root = DOMUtil.getRoot(schemaDoc); // assign attributes appropriately according to // generalAttrCheck as applied to root. } } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/6f04e9c6fc78d4e3eda5026b14b51f3b636479ac/XSDocumentInfo.java/clean/src/org/apache/xerces/impl/v2/XSDocumentInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1139,
55,
2519,
966,
261,
2519,
1963,
1759,
16,
1139,
55,
1499,
8847,
1604,
8847,
13,
288,
3639,
284,
3078,
1759,
273,
1963,
1759,
31,
3639,
309,
12,
4821,
1759,
480,
446,
13,
288,
5411,
3010,
1365,
273,
4703,
1304,
18,
588,
2375,
12,
4821,
1759,
1769,
5411,
368,
2683,
1677,
21419,
4888,
358,
5411,
368,
7470,
3843,
1564,
487,
6754,
358,
1365,
18,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1139,
55,
2519,
966,
261,
2519,
1963,
1759,
16,
1139,
55,
1499,
8847,
1604,
8847,
13,
288,
3639,
284,
3078,
1759,
273,
1963,
1759,
31,
3639,
309,
12,
4821,
1759,
480,
446,
13,
288,
5411,
3010,
1365,
273,
4703,
1304,
18,
588,
2375,
12,
4821,
1759,
1769,
5411,
368,
2683,
1677,
21419,
4888,
358,
5411,
368,
7470,
3843,
1564,
487,
6754,
358,
1365,
18,
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
] |
final Register tmpr = requestRegister(JvmType.INT, false); | final Register tmpr = L1AHelper.requestRegister(eContext, JvmType.INT, false); | public final void visit_checkcast(VmConstClass classRef) { // Pre-claim ECX requestRegister(ECX); requestRegister(EAX); // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = EAX; final Register tmpr = requestRegister(JvmType.INT, false); // Resolve the class writeResolveAndLoadClassToReg(classRef, classr); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); /* Is objectref null? */ os.writeTEST(refr, refr); os.writeJCC(okLabel, X86Constants.JZ); /* Is instanceof? */ instanceOf(refr, classr, tmpr, okLabel, true); /* Not instanceof */ // Release temp registers here, so invokeJavaMethod can use it releaseRegister(ECX); releaseRegister(classr); releaseRegister(tmpr); // Call SoftByteCodes.systemException os.writePUSH(SoftByteCodes.EX_CLASSCAST); os.writePUSH(0); invokeJavaMethod(context.getSystemExceptionMethod()); final RefItem exi = vstack.popRef(); assertCondition(exi.uses(EAX), "item must be in eax"); exi.release(eContext); /* Exception in EAX, throw it */ helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); /* Normal exit */ os.setObjectRef(okLabel); // Leave ref on stack vstack.push(ref); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/X86BytecodeVisitor.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
1893,
4155,
12,
22143,
9661,
797,
667,
1957,
13,
288,
3196,
202,
759,
2962,
17,
14784,
7773,
60,
202,
202,
2293,
3996,
12,
7228,
60,
1769,
202,
202,
2293,
3996,
12,
41,
2501,
1769,
202,
202,
759,
866,
716,
1760,
761,
353,
279,
2114,
202,
202,
6385,
3941,
1180,
1278,
273,
19510,
18,
5120,
1957,
5621,
202,
202,
759,
4444,
326,
1278,
202,
202,
1734,
18,
945,
12,
73,
1042,
1769,
202,
202,
6385,
5433,
1278,
86,
273,
1278,
18,
588,
3996,
5621,
202,
202,
6385,
5433,
667,
86,
273,
512,
2501,
31,
202,
202,
6385,
5433,
6118,
683,
273,
590,
3996,
12,
6071,
559,
18,
3217,
16,
629,
1769,
202,
202,
759,
9910,
326,
667,
202,
202,
2626,
8460,
1876,
2563,
797,
774,
1617,
12,
1106,
1957,
16,
667,
86,
1769,
202,
202,
6385,
5287,
1529,
2224,
273,
394,
5287,
12,
2211,
18,
1397,
382,
701,
2224,
397,
315,
952,
17,
601,
8863,
202,
202,
20308,
2585,
733,
1734,
446,
35,
1195,
202,
202,
538,
18,
2626,
16961,
12,
1734,
86,
16,
1278,
86,
1769,
202,
202,
538,
18,
2626,
46,
6743,
12,
601,
2224,
16,
1139,
5292,
2918,
18,
46,
62,
1769,
202,
202,
20308,
2585,
1276,
35,
1195,
202,
202,
1336,
951,
12,
1734,
86,
16,
667,
86,
16,
6118,
683,
16,
1529,
2224,
16,
638,
1769,
202,
202,
20308,
2288,
1276,
1195,
202,
202,
759,
10819,
1906,
10285,
2674,
16,
1427,
4356,
5852,
1305,
848,
999,
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,
3757,
67,
1893,
4155,
12,
22143,
9661,
797,
667,
1957,
13,
288,
3196,
202,
759,
2962,
17,
14784,
7773,
60,
202,
202,
2293,
3996,
12,
7228,
60,
1769,
202,
202,
2293,
3996,
12,
41,
2501,
1769,
202,
202,
759,
866,
716,
1760,
761,
353,
279,
2114,
202,
202,
6385,
3941,
1180,
1278,
273,
19510,
18,
5120,
1957,
5621,
202,
202,
759,
4444,
326,
1278,
202,
202,
1734,
18,
945,
12,
73,
1042,
1769,
202,
202,
6385,
5433,
1278,
86,
273,
1278,
18,
588,
3996,
5621,
202,
202,
6385,
5433,
667,
86,
273,
512,
2501,
31,
202,
202,
6385,
5433,
6118,
683,
273,
590,
3996,
12,
6071,
559,
18,
3217,
16,
629,
1769,
202,
202,
2
] |
label_17: while (true) { if (jj_2_67(2)) { ; } else { break label_17; } ptr_operator(); } qualified_id(); jj_consume_token(LPARENTHESIS); | label_17: while (true) { if (jj_2_67(2)) { ; } else { break label_17; } ptr_operator(); | static final public void function_declarator_lookahead() throws ParseException { label_17: while (true) { if (jj_2_67(2)) { ; } else { break label_17; } ptr_operator(); } qualified_id(); jj_consume_token(LPARENTHESIS); } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
1071,
918,
445,
67,
8840,
5880,
67,
7330,
11617,
1435,
1216,
10616,
288,
3639,
1433,
67,
4033,
30,
3639,
1323,
261,
3767,
13,
288,
5411,
309,
261,
78,
78,
67,
22,
67,
9599,
12,
22,
3719,
288,
7734,
274,
5411,
289,
469,
288,
7734,
898,
1433,
67,
4033,
31,
5411,
289,
5411,
6571,
67,
9497,
5621,
3639,
289,
3639,
9348,
67,
350,
5621,
3639,
10684,
67,
21224,
67,
2316,
12,
48,
14943,
3900,
15664,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
1071,
918,
445,
67,
8840,
5880,
67,
7330,
11617,
1435,
1216,
10616,
288,
3639,
1433,
67,
4033,
30,
3639,
1323,
261,
3767,
13,
288,
5411,
309,
261,
78,
78,
67,
22,
67,
9599,
12,
22,
3719,
288,
7734,
274,
5411,
289,
469,
288,
7734,
898,
1433,
67,
4033,
31,
5411,
289,
5411,
6571,
67,
9497,
5621,
3639,
289,
3639,
9348,
67,
350,
5621,
3639,
10684,
67,
21224,
67,
2316,
12,
48,
14943,
3900,
15664,
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
] |
setProperty((String) evalAttr("property", getProperty(), | setProperty((String) evalAttr("property", getPropertyExpr(), | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/ELMultiboxTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELMultiboxTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
653,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
8853,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
529,
3113,
1723,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
6788,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
22131,
27065,
12443,
780,
13,
5302,
3843,
2932,
265,
27065,
3113,
30070,
27065,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
2
] |
target.translate(-1.0 * getFloatOption(Option.FROM_TRACE_SAMPLE), 1.0); | target.translate(-1.0 * getFloatOption(Option.FROM_TRACE_SAMPLE), 0.0); | public void getTransformAndConcat(AffineTransform target) { target.scale(horizScale, vertScale); // the y translation is a continuation of the rescale behavior found in // generatePaths target.translate(-1.0 * getFloatOption(Option.FROM_TRACE_SAMPLE), 1.0); } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/fd43d3699b4d4360c98e57cc3e1aff45c90dfbc8/ChromatogramGraphic.java/buggy/src/org/biojava/bio/chromatogram/graphic/ChromatogramGraphic.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
336,
4059,
1876,
15113,
12,
13785,
558,
4059,
1018,
13,
288,
3639,
1018,
18,
5864,
12,
76,
5331,
5587,
16,
3173,
5587,
1769,
3639,
368,
326,
677,
4794,
353,
279,
17378,
434,
326,
30323,
6885,
1392,
316,
540,
368,
2103,
4466,
1377,
1018,
18,
13929,
19236,
21,
18,
20,
380,
28276,
1895,
12,
1895,
18,
11249,
67,
23827,
67,
55,
21373,
3631,
374,
18,
20,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
336,
4059,
1876,
15113,
12,
13785,
558,
4059,
1018,
13,
288,
3639,
1018,
18,
5864,
12,
76,
5331,
5587,
16,
3173,
5587,
1769,
3639,
368,
326,
677,
4794,
353,
279,
17378,
434,
326,
30323,
6885,
1392,
316,
540,
368,
2103,
4466,
1377,
1018,
18,
13929,
19236,
21,
18,
20,
380,
28276,
1895,
12,
1895,
18,
11249,
67,
23827,
67,
55,
21373,
3631,
374,
18,
20,
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
] |
try { setAnchor((String) evalAttr("anchor", getAnchorExpr(), String.class)); } catch (NullAttributeException ex) { } | String string = null; Boolean bool = null; | private void evaluateExpressions() throws JspException { try { setAnchor((String) evalAttr("anchor", getAnchorExpr(), String.class)); } catch (NullAttributeException ex) { } try { setForward((String) evalAttr("forward", getForwardExpr(), String.class)); } catch (NullAttributeException ex) { } try { setHref((String) evalAttr("href", getHrefExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setPage((String) evalAttr("page", getPageExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamId((String) evalAttr("paramId", getParamIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamName((String) evalAttr("paramName", getParamNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamProperty((String) evalAttr("paramProperty", getParamPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamScope((String) evalAttr("paramScope", getParamScopeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setScope((String) evalAttr("scope", getScopeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTransaction(((Boolean) evalAttr("transaction", getTransactionExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/022bd23c954cf673e53731849d562b3c295473f1/ELRedirectTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELRedirectTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
11605,
12443,
780,
13,
5302,
3843,
2932,
16215,
3113,
336,
11605,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
8514,
12443,
780,
13,
5302,
3843,
2932,
11565,
3113,
336,
8514,
4742,
9334,
29159,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
15962,
12443,
780,
13,
5302,
3843,
2932,
7547,
3113,
7628,
1734,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
529,
3113,
1723,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
18663,
12443,
780,
13,
5302,
3843,
2932,
2433,
3113,
8957,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
22911,
548,
12443,
780,
13,
5302,
3843,
2932,
891,
548,
3113,
9027,
548,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
22911,
461,
12443,
780,
13,
5302,
3843,
2932,
891,
461,
3113,
9027,
461,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
11605,
12443,
780,
13,
5302,
3843,
2932,
16215,
3113,
336,
11605,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
8514,
12443,
780,
13,
5302,
3843,
2932,
11565,
3113,
336,
8514,
4742,
9334,
29159,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
15962,
12443,
780,
13,
5302,
3843,
2932,
7547,
3113,
7628,
1734,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
2
] |
if (sym.isSynthetic()) return type.widen(); return type; case CompoundType(Type[] parts, Scope members): if (global.debug) return type; | if (sym.isSynthetic()) return type.widen(); return type; case CompoundType(Type[] parts, Scope members): if (global.debug) return type; | public Type getTypeToPrintForType0(Type type) { switch (type) { case ThisType(_): if (global.debug) return type; return type.expandModuleThis(); case SingleType(_, Symbol sym): if (global.debug) return type; if (sym.isSynthetic()) return type.widen(); return type; case CompoundType(Type[] parts, Scope members): if (global.debug) return type; if (type.isFunctionType()) return parts[1]; return type; case TypeVar(Type origin, Constraint constr): if (constr.inst != Type.NoType) return constr.inst; return type; default: return type; } } | 48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/51a5386fa3225c117633ea7171760590d01bf6f3/SymbolTablePrinter.java/buggy/sources/scalac/symtab/SymbolTablePrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1412,
3130,
774,
5108,
22405,
20,
12,
559,
618,
13,
288,
3639,
1620,
261,
723,
13,
288,
202,
3593,
1220,
559,
24899,
4672,
5411,
309,
261,
6347,
18,
4148,
13,
327,
618,
31,
5411,
327,
618,
18,
12320,
3120,
2503,
5621,
202,
3593,
10326,
559,
24899,
16,
8565,
5382,
4672,
5411,
309,
261,
6347,
18,
4148,
13,
327,
618,
31,
202,
565,
309,
261,
8117,
18,
291,
10503,
16466,
10756,
327,
618,
18,
91,
17951,
5621,
202,
565,
327,
618,
31,
202,
3593,
21327,
559,
12,
559,
8526,
2140,
16,
5468,
4833,
4672,
202,
565,
309,
261,
6347,
18,
4148,
13,
327,
618,
31,
5411,
309,
261,
723,
18,
291,
2083,
559,
10756,
327,
2140,
63,
21,
15533,
5411,
327,
618,
31,
202,
3593,
1412,
1537,
12,
559,
4026,
16,
10770,
14472,
4672,
5411,
309,
261,
591,
701,
18,
8591,
480,
1412,
18,
2279,
559,
13,
327,
14472,
18,
8591,
31,
5411,
327,
618,
31,
202,
1886,
30,
202,
565,
327,
618,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1412,
3130,
774,
5108,
22405,
20,
12,
559,
618,
13,
288,
3639,
1620,
261,
723,
13,
288,
202,
3593,
1220,
559,
24899,
4672,
5411,
309,
261,
6347,
18,
4148,
13,
327,
618,
31,
5411,
327,
618,
18,
12320,
3120,
2503,
5621,
202,
3593,
10326,
559,
24899,
16,
8565,
5382,
4672,
5411,
309,
261,
6347,
18,
4148,
13,
327,
618,
31,
202,
565,
309,
261,
8117,
18,
291,
10503,
16466,
10756,
327,
618,
18,
91,
17951,
5621,
202,
565,
327,
618,
31,
202,
3593,
21327,
559,
12,
559,
8526,
2140,
16,
5468,
4833,
4672,
202,
565,
309,
261,
6347,
18,
4148,
13,
327,
618,
31,
5411,
309,
261,
723,
18,
291,
2083,
559,
10756,
327,
2140,
63,
21,
2
] |
super.setPersonOrder(result.getResultParticipationsCount()); super.setResultParticipationRole(role); | super.setPersonOrder(order); super.setRole(role); | private void fillAllAttributes(Result result, Person participator, ResultParticipationRole role) { super.setResult(result); super.setPerson(participator); super.setPersonOrder(result.getResultParticipationsCount()); super.setResultParticipationRole(role); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f7abe00b5548b12caf61a615516273677cbc5915/ResultParticipation.java/clean/src/net/sourceforge/fenixedu/domain/research/result/ResultParticipation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3636,
1595,
2498,
12,
1253,
563,
16,
11573,
30891,
639,
16,
3438,
1988,
24629,
367,
2996,
2478,
13,
288,
202,
9565,
18,
542,
1253,
12,
2088,
1769,
202,
9565,
18,
542,
8346,
12,
2680,
24629,
639,
1769,
202,
9565,
18,
542,
8346,
2448,
12,
2088,
18,
588,
1253,
1988,
24629,
1012,
1380,
10663,
202,
9565,
18,
542,
1253,
1988,
24629,
367,
2996,
12,
4615,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3636,
1595,
2498,
12,
1253,
563,
16,
11573,
30891,
639,
16,
3438,
1988,
24629,
367,
2996,
2478,
13,
288,
202,
9565,
18,
542,
1253,
12,
2088,
1769,
202,
9565,
18,
542,
8346,
12,
2680,
24629,
639,
1769,
202,
9565,
18,
542,
8346,
2448,
12,
2088,
18,
588,
1253,
1988,
24629,
1012,
1380,
10663,
202,
9565,
18,
542,
1253,
1988,
24629,
367,
2996,
12,
4615,
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
] |
System.out.println("...running "+descr+" via "+testCase.getFile()); out = openFile(outputDir, testCase.getFile(), ".out"); | String testName = testCase.getFile(); System.out.println("...running "+descr+" via "+testName); String logFileName = testName.substring(0, testName.lastIndexOf('.')); out = openFile(outputDir, logFileName + ".out"); | private static void seqRunCases(Vector cases, String descr, String inputDir, String outputDir) throws FileNotFoundException, IOException, ijFatalException { LocalizedOutput out; BufferedInputStream in; mtTestCase testCase; if (cases == null) { System.out.println("...no "+descr+" being performed"); return; } Enumeration e = cases.elements(); while (e.hasMoreElements()) { testCase = (mtTestCase)e.nextElement(); System.out.println("...running "+descr+" via "+testCase.getFile()); out = openFile(outputDir, testCase.getFile(), ".out"); in = testCase.initialize(inputDir); testCase.runMe(log, out, in); } } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/ece3ee6502c4a8c75d31ee4c66c7dcb6d8db45e4/MultiTest.java/buggy/java/testing/org/apache/derbyTesting/functionTests/harness/MultiTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
3833,
1997,
30744,
12,
5018,
6088,
16,
514,
18426,
16,
514,
810,
1621,
16,
514,
21412,
13,
3196,
202,
15069,
13707,
16,
1860,
16,
19313,
19593,
503,
202,
95,
202,
202,
2042,
1235,
1447,
202,
659,
31,
202,
202,
17947,
4348,
202,
267,
31,
202,
202,
1010,
4709,
2449,
202,
202,
3813,
2449,
31,
202,
202,
430,
261,
22186,
422,
446,
13,
202,
202,
95,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
2777,
2135,
13773,
28313,
9078,
3832,
9591,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
21847,
425,
273,
6088,
18,
6274,
5621,
202,
202,
17523,
261,
73,
18,
5332,
7417,
3471,
10756,
202,
202,
95,
1082,
202,
3813,
2449,
273,
261,
1010,
4709,
2449,
13,
73,
18,
4285,
1046,
5621,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
2777,
8704,
13773,
28313,
9078,
3970,
13773,
3813,
2449,
18,
29925,
10663,
9506,
202,
659,
273,
31622,
12,
2844,
1621,
16,
1842,
2449,
18,
29925,
9334,
3552,
659,
8863,
1082,
202,
267,
273,
1842,
2449,
18,
11160,
12,
2630,
1621,
1769,
1082,
202,
3813,
2449,
18,
2681,
4667,
12,
1330,
16,
596,
16,
316,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
3833,
1997,
30744,
12,
5018,
6088,
16,
514,
18426,
16,
514,
810,
1621,
16,
514,
21412,
13,
3196,
202,
15069,
13707,
16,
1860,
16,
19313,
19593,
503,
202,
95,
202,
202,
2042,
1235,
1447,
202,
659,
31,
202,
202,
17947,
4348,
202,
267,
31,
202,
202,
1010,
4709,
2449,
202,
202,
3813,
2449,
31,
202,
202,
430,
261,
22186,
422,
446,
13,
202,
202,
95,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
2777,
2135,
13773,
28313,
9078,
3832,
9591,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
21847,
425,
273,
6088,
18,
6274,
5621,
202,
202,
17523,
261,
73,
18,
5332,
7417,
3471,
10756,
202,
202,
95,
1082,
202,
3813,
2449,
2
] |
return; } | return; } | public void endElement(String name) { //System.err.println("End: " + name); if (((HtmlTagMap)myTags).isHead(name)) { // we do nothing return; } if (((HtmlTagMap)myTags).isTitle(name)) { if (currentChunk != null) { bodyAttributes.put(ElementTags.TITLE, currentChunk.content()); } return; } if (((HtmlTagMap)myTags).isMeta(name)) { // we do nothing return; } if (((HtmlTagMap)myTags).isLink(name)) { // we do nothing return; } if (((HtmlTagMap)myTags).isBody(name)) { // we do nothing return; } if (myTags.containsKey(name)) { XmlPeer peer = (XmlPeer) myTags.get(name); super.handleEndingTags(peer.getTag()); return; } super.handleEndingTags(name); } | 4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/1f2223c2de935f818616fc1991f79ce136873350/SAXmyHtmlHandler.java/clean/src/com/lowagie/text/html/SAXmyHtmlHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14840,
12,
780,
508,
13,
288,
3639,
368,
3163,
18,
370,
18,
8222,
2932,
1638,
30,
315,
397,
508,
1769,
3639,
309,
261,
12443,
4353,
1805,
863,
13,
4811,
3453,
2934,
291,
1414,
12,
529,
3719,
288,
1082,
202,
759,
732,
741,
5083,
1082,
202,
2463,
31,
202,
202,
97,
5375,
309,
261,
12443,
4353,
1805,
863,
13,
4811,
3453,
2934,
291,
4247,
12,
529,
3719,
288,
1082,
202,
430,
261,
2972,
5579,
480,
446,
13,
288,
9506,
202,
3432,
2498,
18,
458,
12,
1046,
3453,
18,
14123,
16,
783,
5579,
18,
1745,
10663,
1082,
202,
97,
1082,
202,
2463,
31,
202,
202,
97,
7734,
309,
261,
12443,
4353,
1805,
863,
13,
4811,
3453,
2934,
291,
2781,
12,
529,
3719,
288,
1082,
202,
759,
732,
741,
5083,
1082,
202,
2463,
31,
202,
202,
97,
7734,
309,
261,
12443,
4353,
1805,
863,
13,
4811,
3453,
2934,
291,
2098,
12,
529,
3719,
288,
1082,
202,
759,
732,
741,
5083,
1082,
202,
2463,
31,
202,
202,
97,
3639,
309,
261,
12443,
4353,
1805,
863,
13,
4811,
3453,
2934,
291,
2250,
12,
529,
3719,
288,
1082,
202,
759,
732,
741,
5083,
1082,
202,
2463,
31,
202,
202,
97,
540,
309,
261,
4811,
3453,
18,
12298,
653,
12,
529,
3719,
288,
5411,
5714,
6813,
4261,
273,
261,
4432,
6813,
13,
3399,
3453,
18,
588,
12,
529,
1769,
5411,
2240,
18,
4110,
25674,
3453,
12,
12210,
18,
588,
1805,
10663,
1082,
202,
2463,
31,
3639,
289,
3639,
2240,
18,
4110,
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,
14840,
12,
780,
508,
13,
288,
3639,
368,
3163,
18,
370,
18,
8222,
2932,
1638,
30,
315,
397,
508,
1769,
3639,
309,
261,
12443,
4353,
1805,
863,
13,
4811,
3453,
2934,
291,
1414,
12,
529,
3719,
288,
1082,
202,
759,
732,
741,
5083,
1082,
202,
2463,
31,
202,
202,
97,
5375,
309,
261,
12443,
4353,
1805,
863,
13,
4811,
3453,
2934,
291,
4247,
12,
529,
3719,
288,
1082,
202,
430,
261,
2972,
5579,
480,
446,
13,
288,
9506,
202,
3432,
2498,
18,
458,
12,
1046,
3453,
18,
14123,
16,
783,
5579,
18,
1745,
10663,
1082,
202,
97,
1082,
202,
2463,
31,
202,
202,
97,
7734,
309,
261,
12443,
4353,
1805,
863,
13,
4811,
3453,
2934,
291,
2
] |
private Interpreter createCompiler() { | private Interpreter createCompiler() { | private Interpreter createCompiler() { Interpreter result = null; if (optimizationLevel >= 0 && codegenClass != null) { result = (Interpreter)Kit.newInstanceOrNull(codegenClass); } if (result == null) { result = new Interpreter(); } return result; } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/767031d59e433c96cbc46c5e9fa8adb631f14074/Context.java/buggy/src/org/mozilla/javascript/Context.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
5294,
11599,
752,
9213,
1435,
288,
3639,
5294,
11599,
563,
273,
446,
31,
3639,
309,
261,
16689,
1588,
2355,
1545,
374,
597,
23198,
797,
480,
446,
13,
288,
5411,
563,
273,
261,
30010,
13,
14102,
18,
2704,
1442,
18936,
12,
710,
4507,
797,
1769,
3639,
289,
3639,
309,
261,
2088,
422,
446,
13,
288,
5411,
563,
273,
394,
5294,
11599,
5621,
3639,
289,
3639,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5294,
11599,
752,
9213,
1435,
288,
3639,
5294,
11599,
563,
273,
446,
31,
3639,
309,
261,
16689,
1588,
2355,
1545,
374,
597,
23198,
797,
480,
446,
13,
288,
5411,
563,
273,
261,
30010,
13,
14102,
18,
2704,
1442,
18936,
12,
710,
4507,
797,
1769,
3639,
289,
3639,
309,
261,
2088,
422,
446,
13,
288,
5411,
563,
273,
394,
5294,
11599,
5621,
3639,
289,
3639,
327,
563,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Node.Target catchTarget = new Node.Target(); | Node catchTarget = Node.newTarget(); | Node createTryCatchFinally(Node tryBlock, Node catchBlocks, Node finallyBlock, int lineno) { boolean hasFinally = (finallyBlock != null) && (finallyBlock.getType() != Token.BLOCK || finallyBlock.hasChildren()); // short circuit if (tryBlock.getType() == Token.BLOCK && !tryBlock.hasChildren() && !hasFinally) { return tryBlock; } boolean hasCatch = catchBlocks.hasChildren(); // short circuit if (!hasFinally && !hasCatch) { // bc finally might be an empty block... return tryBlock; } Node handlerBlock = new Node(Token.LOCAL_BLOCK); Node.Jump pn = new Node.Jump(Token.TRY, tryBlock, lineno); pn.putProp(Node.LOCAL_BLOCK_PROP, handlerBlock); if (hasCatch) { // jump around catch code Node.Target endCatch = new Node.Target(); pn.addChildToBack(makeJump(Token.GOTO, endCatch)); // make a TARGET for the catch that the tcf node knows about Node.Target catchTarget = new Node.Target(); pn.target = catchTarget; // mark it pn.addChildToBack(catchTarget); // // Given // // try { // tryBlock; // } catch (e if condition1) { // something1; // ... // // } catch (e if conditionN) { // somethingN; // } catch (e) { // somethingDefault; // } // // rewrite as // // try { // tryBlock; // goto after_catch: // } catch (x) { // with (newCatchScope(e, x)) { // if (condition1) { // something1; // goto after_catch; // } // } // ... // with (newCatchScope(e, x)) { // if (conditionN) { // somethingN; // goto after_catch; // } // } // with (newCatchScope(e, x)) { // somethingDefault; // goto after_catch; // } // } // after_catch: // // If there is no default catch, then the last with block // arround "somethingDefault;" is replaced by "rethrow;" // It is assumed that catch handler generation will store // exeception object in handlerBlock register // Block with local for exception scope objects Node catchScopeBlock = new Node(Token.LOCAL_BLOCK); // expects catchblocks children to be (cond block) pairs. Node cb = catchBlocks.getFirstChild(); boolean hasDefault = false; int scopeIndex = 0; while (cb != null) { int catchLineNo = cb.getLineno(); Node name = cb.getFirstChild(); Node cond = name.getNext(); Node catchStatement = cond.getNext(); cb.removeChild(name); cb.removeChild(cond); cb.removeChild(catchStatement); // Add goto to the catch statement to jump out of catch // but prefix it with LEAVEWITH since try..catch produces // "with"code in order to limit the scope of the exception // object. catchStatement.addChildToBack(new Node(Token.LEAVEWITH)); catchStatement.addChildToBack(makeJump(Token.GOTO, endCatch)); // Create condition "if" when present Node condStmt; if (cond.getType() == Token.EMPTY) { condStmt = catchStatement; hasDefault = true; } else { condStmt = createIf(cond, catchStatement, null, catchLineNo); } // Generate code to create the scope object and store // it in catchScopeBlock register Node catchScope = new Node(Token.CATCH_SCOPE, name, createUseLocal(handlerBlock)); catchScope.putProp(Node.LOCAL_BLOCK_PROP, catchScopeBlock); catchScope.putIntProp(Node.CATCH_SCOPE_PROP, scopeIndex); catchScopeBlock.addChildToBack(catchScope); // Add with statement based on catch scope object catchScopeBlock.addChildToBack( createWith(createUseLocal(catchScopeBlock), condStmt, catchLineNo)); // move to next cb cb = cb.getNext(); ++scopeIndex; } pn.addChildToBack(catchScopeBlock); if (!hasDefault) { // Generate code to rethrow if no catch clause was executed Node rethrow = new Node(Token.RETHROW); rethrow.putProp(Node.LOCAL_BLOCK_PROP, handlerBlock); pn.addChildToBack(rethrow); } pn.addChildToBack(endCatch); } if (hasFinally) { Node.Target finallyTarget = new Node.Target(); pn.setFinally(finallyTarget); // add jsr finally to the try block pn.addChildToBack(makeJump(Token.JSR, finallyTarget)); // jump around finally code Node.Target finallyEnd = new Node.Target(); pn.addChildToBack(makeJump(Token.GOTO, finallyEnd)); pn.addChildToBack(finallyTarget); Node fBlock = new Node(Token.FINALLY, finallyBlock); fBlock.putProp(Node.LOCAL_BLOCK_PROP, handlerBlock); pn.addChildToBack(fBlock); pn.addChildToBack(finallyEnd); } handlerBlock.addChildToBack(pn); return handlerBlock; } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/00c3a706bf401545154202d57d1edaa0e2f9b8b8/IRFactory.java/buggy/src/org/mozilla/javascript/IRFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2029,
752,
7833,
14842,
29987,
12,
907,
775,
1768,
16,
2029,
1044,
6450,
16,
1171,
9079,
2029,
3095,
1768,
16,
509,
7586,
13,
565,
288,
3639,
1250,
711,
29987,
273,
261,
23417,
1768,
480,
446,
13,
11794,
597,
261,
23417,
1768,
18,
588,
559,
1435,
480,
3155,
18,
11403,
4766,
747,
3095,
1768,
18,
5332,
4212,
10663,
3639,
368,
3025,
12937,
3639,
309,
261,
698,
1768,
18,
588,
559,
1435,
422,
3155,
18,
11403,
597,
401,
698,
1768,
18,
5332,
4212,
1435,
5411,
597,
401,
5332,
29987,
13,
3639,
288,
5411,
327,
775,
1768,
31,
3639,
289,
3639,
1250,
711,
14842,
273,
1044,
6450,
18,
5332,
4212,
5621,
3639,
368,
3025,
12937,
3639,
309,
16051,
5332,
29987,
597,
401,
5332,
14842,
13,
225,
288,
5411,
368,
6533,
3095,
4825,
506,
392,
1008,
1203,
2777,
5411,
327,
775,
1768,
31,
3639,
289,
3639,
2029,
1838,
1768,
225,
273,
394,
2029,
12,
1345,
18,
14922,
67,
11403,
1769,
3639,
2029,
18,
26743,
11059,
273,
394,
2029,
18,
26743,
12,
1345,
18,
17805,
16,
775,
1768,
16,
7586,
1769,
3639,
11059,
18,
458,
4658,
12,
907,
18,
14922,
67,
11403,
67,
15811,
16,
1838,
1768,
1769,
3639,
309,
261,
5332,
14842,
13,
288,
5411,
368,
11833,
6740,
1044,
981,
5411,
2029,
18,
2326,
679,
14842,
273,
394,
2029,
18,
2326,
5621,
5411,
11059,
18,
1289,
1763,
774,
2711,
12,
6540,
26743,
12,
1345,
18,
43,
27019,
16,
679,
14842,
10019,
5411,
368,
1221,
279,
16964,
364,
326,
1044,
716,
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,
2029,
752,
7833,
14842,
29987,
12,
907,
775,
1768,
16,
2029,
1044,
6450,
16,
1171,
9079,
2029,
3095,
1768,
16,
509,
7586,
13,
565,
288,
3639,
1250,
711,
29987,
273,
261,
23417,
1768,
480,
446,
13,
11794,
597,
261,
23417,
1768,
18,
588,
559,
1435,
480,
3155,
18,
11403,
4766,
747,
3095,
1768,
18,
5332,
4212,
10663,
3639,
368,
3025,
12937,
3639,
309,
261,
698,
1768,
18,
588,
559,
1435,
422,
3155,
18,
11403,
597,
401,
698,
1768,
18,
5332,
4212,
1435,
5411,
597,
401,
5332,
29987,
13,
3639,
288,
5411,
327,
775,
1768,
31,
3639,
289,
3639,
1250,
711,
14842,
273,
1044,
6450,
18,
5332,
4212,
5621,
3639,
368,
3025,
12937,
3639,
309,
16051,
5332,
29987,
597,
2
] |
throw Debug.abort("illegal case", location); | throw Debug.abort("unknown case", location); | public ATreePrinter printLocation(ALocation location) { switch (location) { case Module(Symbol module): return printSymbol(module); case Field(Void, Symbol field, true): return printSymbol(field.owner()).print('.').printSymbol(field); case Field(ACode object, Symbol field, boolean isStatic): printCode(object).print('.'); if (isStatic) print("<static>").space(); return printSymbol(field); case Local(Symbol local, _): return printSymbol(local); case ArrayItem(ACode array, ACode index): return printCode(array).print('(').printCode(index).print(')'); default: throw Debug.abort("illegal case", location); } } | 9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/eb5ca252d44bafe0848494c5be6c9fbfd0260eee/ATreePrinter.java/buggy/sources/scalac/atree/ATreePrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
432,
2471,
12149,
1172,
2735,
12,
1013,
4431,
2117,
13,
288,
3639,
1620,
261,
3562,
13,
288,
3639,
648,
5924,
12,
5335,
1605,
4672,
5411,
327,
1172,
5335,
12,
2978,
1769,
3639,
648,
2286,
12,
19038,
16,
8565,
652,
16,
638,
4672,
5411,
327,
1172,
5335,
12,
1518,
18,
8443,
1435,
2934,
1188,
2668,
1093,
2934,
1188,
5335,
12,
1518,
1769,
3639,
648,
2286,
12,
37,
1085,
733,
16,
8565,
652,
16,
1250,
16116,
4672,
5411,
1172,
1085,
12,
1612,
2934,
1188,
2668,
1093,
1769,
5411,
309,
261,
291,
5788,
13,
1172,
2932,
32,
3845,
2984,
2934,
2981,
5621,
5411,
327,
1172,
5335,
12,
1518,
1769,
3639,
648,
3566,
12,
5335,
1191,
16,
389,
4672,
5411,
327,
1172,
5335,
12,
3729,
1769,
3639,
648,
1510,
1180,
12,
37,
1085,
526,
16,
432,
1085,
770,
4672,
5411,
327,
1172,
1085,
12,
1126,
2934,
1188,
2668,
2668,
2934,
1188,
1085,
12,
1615,
2934,
1188,
2668,
2506,
1769,
3639,
805,
30,
5411,
604,
4015,
18,
18623,
2932,
8172,
648,
3113,
2117,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
432,
2471,
12149,
1172,
2735,
12,
1013,
4431,
2117,
13,
288,
3639,
1620,
261,
3562,
13,
288,
3639,
648,
5924,
12,
5335,
1605,
4672,
5411,
327,
1172,
5335,
12,
2978,
1769,
3639,
648,
2286,
12,
19038,
16,
8565,
652,
16,
638,
4672,
5411,
327,
1172,
5335,
12,
1518,
18,
8443,
1435,
2934,
1188,
2668,
1093,
2934,
1188,
5335,
12,
1518,
1769,
3639,
648,
2286,
12,
37,
1085,
733,
16,
8565,
652,
16,
1250,
16116,
4672,
5411,
1172,
1085,
12,
1612,
2934,
1188,
2668,
1093,
1769,
5411,
309,
261,
291,
5788,
13,
1172,
2932,
32,
3845,
2984,
2934,
2981,
5621,
5411,
327,
1172,
5335,
12,
1518,
1769,
3639,
648,
3566,
12,
5335,
1191,
16,
389,
4672,
5411,
327,
2
] |
+" &doubleBracket;> and &doubleBracket>" | +" &doubleBracket;> and &doubleBracket;>" | public void testQuotedCDataEndMarker() throws XMLStreamException { try { // First, using pre-defined/char entities String XML = "<root>" +"Ok the usual one: ]]>" +" and then alternatives: ]]>" +", ]]>" +"</root>"; XMLStreamReader sr = getReader(XML, true, false, true); streamThrough(sr); } catch (Exception e) { fail("Didn't except problems with pre-def/char entity quoted ']]>'; got: "+e); } try { // Then using general entities: String XML = "<!DOCTYPE root [\n" +"<!ENTITY doubleBracket ']]'>\n" +"]\n" +"<root>" +" &doubleBracket;> and &doubleBracket>" +"</root>"; XMLStreamReader sr = getReader(XML, true, false, true); streamThrough(sr); } catch (Exception e) { fail("Didn't except problems with general entity quoted ']]>'; got: "+e); } } | 2047 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2047/37838724c0ce94182ddd5f78a55ad091a8974edb/TestEntityRead.java/clean/dev/src/org/codehaus/stax/test/stream/TestEntityRead.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15919,
39,
751,
1638,
7078,
1435,
3639,
1216,
21526,
565,
288,
3639,
775,
288,
5411,
368,
5783,
16,
1450,
675,
17,
2178,
19,
3001,
5140,
5411,
514,
3167,
273,
3532,
3085,
2984,
7734,
397,
6,
8809,
326,
25669,
1245,
30,
12011,
10,
4521,
4868,
7734,
397,
6,
471,
1508,
20699,
30,
6523,
11180,
31,
65,
2984,
7734,
397,
3113,
6523,
11180,
31,
18642,
11180,
23480,
4521,
4868,
7734,
397,
6,
1757,
3085,
2984,
31,
5411,
15595,
2514,
9133,
273,
27173,
12,
4201,
16,
638,
16,
629,
16,
638,
1769,
5411,
1407,
14287,
12,
11254,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
2321,
2932,
18250,
82,
1404,
1335,
9688,
598,
675,
17,
536,
19,
3001,
1522,
9298,
12671,
65,
1870,
31,
2363,
30,
13773,
73,
1769,
3639,
289,
3639,
775,
288,
5411,
368,
9697,
1450,
7470,
5140,
30,
5411,
514,
3167,
273,
3532,
5,
29824,
1365,
23781,
82,
6,
7734,
397,
6,
5586,
11101,
1645,
11450,
12671,
3864,
5333,
82,
6,
7734,
397,
11929,
64,
82,
6,
7734,
397,
6,
32,
3085,
2984,
7734,
397,
6,
473,
9056,
11450,
31,
34,
471,
473,
9056,
11450,
23480,
4521,
4868,
7734,
397,
6,
1757,
3085,
2984,
31,
5411,
15595,
2514,
9133,
273,
27173,
12,
4201,
16,
638,
16,
629,
16,
638,
1769,
5411,
1407,
14287,
12,
11254,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
2321,
2932,
18250,
82,
1404,
1335,
9688,
598,
7470,
1522,
9298,
12671,
65,
1870,
31,
2363,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15919,
39,
751,
1638,
7078,
1435,
3639,
1216,
21526,
565,
288,
3639,
775,
288,
5411,
368,
5783,
16,
1450,
675,
17,
2178,
19,
3001,
5140,
5411,
514,
3167,
273,
3532,
3085,
2984,
7734,
397,
6,
8809,
326,
25669,
1245,
30,
12011,
10,
4521,
4868,
7734,
397,
6,
471,
1508,
20699,
30,
6523,
11180,
31,
65,
2984,
7734,
397,
3113,
6523,
11180,
31,
18642,
11180,
23480,
4521,
4868,
7734,
397,
6,
1757,
3085,
2984,
31,
5411,
15595,
2514,
9133,
273,
27173,
12,
4201,
16,
638,
16,
629,
16,
638,
1769,
5411,
1407,
14287,
12,
11254,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
2321,
2932,
18250,
82,
1404,
1335,
9688,
598,
675,
17,
536,
2
] |
0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, | private static final short[] yyCheck2() { return new short[] { 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 126, -1, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, 91, -1, -1, 94, -1, -1, -1, 58, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 63, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 124, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, 33, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, 297, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, 59, 60, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, 91, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, 123, -1, -1, 126, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 41, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, 59, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, 125, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, -1, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 59, 60, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, 91, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, 33, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 59, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 10, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 33, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, 59, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 0, 346, 347, 348, 349, 350, 351, -1, -1, -1, 10, 356, -1, -1, -1, 126, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 93, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 33, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, 264, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 10, 313, 314, -1, 316, 317, 125, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 0, 281, 91, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -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, 91, -1, 93, 94, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 91, 271, 93, 94, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 0, -1, 123, 124, 125, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, 41, -1, 343, 44, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 59, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 125, 337, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 0, 268, 269, -1, 271, -1, 91, -1, 93, 94, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 60, -1, 62, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 94, -1, 96, -1, -1, -1, 10, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, 124, 338, 126, 37, 38, -1, 343, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, 58, 59, 60, -1, 62, 63, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 93, 94, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, 124, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 37, 38, -1, 281, 282, 42, 43, 44, 45, -1, 47, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 94, -1, -1, 338, -1, -1, 10, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 124, -1, -1, 37, 38, 281, 282, 41, 42, 43, 44, 45, -1, 47, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 93, 94, -1, 338, }; } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
28245,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
31069,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
225,
6969,
27,
16,
225,
6969,
28,
16,
225,
576,
6162,
16,
225,
2593,
24,
16,
225,
576,
9498,
16,
6647,
576,
8898,
16,
225,
576,
4449,
16,
225,
576,
1105,
16,
225,
576,
9222,
16,
225,
576,
6028,
16,
282,
300,
21,
16,
225,
576,
9470,
16,
225,
576,
8148,
16,
225,
29966,
16,
225,
576,
11212,
16,
6647,
576,
9060,
16,
225,
31482,
16,
225,
576,
5608,
16,
225,
576,
5877,
16,
225,
576,
6669,
16,
225,
576,
4700,
16,
225,
576,
8285,
16,
282,
300,
21,
16,
225,
576,
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,
760,
727,
3025,
8526,
9016,
1564,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
28245,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
31069,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
5411,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
2
] |
public void testIsCompletedToday() { ITask task = new Task("1", "task-1", true); task.setCompleted(true); task.setCompletionDate(new Date()); assertTrue(manager.isCompletedToday(task)); MockRepositoryTask mockTask = new MockRepositoryTask(MOCK_REPOSITORY_URL+"-1"); manager.getTaskList().addTask(mockTask); mockTask.setCompleted(true); mockTask.setCompletionDate(new Date()); assertFalse(manager.isCompletedToday(mockTask)); mockTask = new MockRepositoryTask(MOCK_REPOSITORY_URL+"-2"); manager.getTaskList().addTask(mockTask); mockTask.setCompleted(true); mockTask.setCompletionDate(new Date()); repository.setAuthenticationCredentials("testUser", "testPassword"); mockTask.setOwner("testUser"); assertTrue(manager.isCompletedToday(mockTask)); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/a5afacf1ca03ddad22ebd22b524fac207d9216ab/TaskListManagerTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListManagerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2520,
9556,
56,
20136,
1435,
288,
202,
202,
1285,
835,
1562,
273,
394,
3837,
2932,
21,
3113,
315,
4146,
17,
21,
3113,
638,
1769,
202,
202,
4146,
18,
542,
9556,
12,
3767,
1769,
202,
202,
4146,
18,
542,
11238,
1626,
12,
2704,
2167,
10663,
202,
202,
11231,
5510,
12,
4181,
18,
291,
9556,
56,
20136,
12,
4146,
10019,
9506,
202,
9865,
3305,
2174,
5416,
2174,
273,
394,
7867,
3305,
2174,
12,
5980,
3507,
67,
862,
30986,
67,
1785,
9078,
17,
21,
8863,
202,
202,
4181,
18,
588,
2174,
682,
7675,
1289,
2174,
12,
22851,
2174,
1769,
202,
202,
22851,
2174,
18,
542,
9556,
12,
3767,
1769,
202,
202,
22851,
2174,
18,
542,
11238,
1626,
12,
2704,
2167,
10663,
202,
202,
11231,
8381,
12,
4181,
18,
291,
9556,
56,
20136,
12,
22851,
2174,
10019,
9506,
202,
22851,
2174,
273,
394,
7867,
3305,
2174,
12,
5980,
3507,
67,
862,
30986,
67,
1785,
9078,
17,
22,
8863,
202,
202,
4181,
18,
588,
2174,
682,
7675,
1289,
2174,
12,
22851,
2174,
1769,
202,
202,
22851,
2174,
18,
542,
9556,
12,
3767,
1769,
202,
202,
22851,
2174,
18,
542,
11238,
1626,
12,
2704,
2167,
10663,
202,
202,
9071,
18,
542,
6492,
6163,
2932,
3813,
1299,
3113,
315,
3813,
3913,
8863,
202,
202,
22851,
2174,
18,
542,
5541,
2932,
3813,
1299,
8863,
202,
202,
11231,
5510,
12,
4181,
18,
291,
9556,
56,
20136,
12,
22851,
2174,
10019,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2520,
9556,
56,
20136,
1435,
288,
202,
202,
1285,
835,
1562,
273,
394,
3837,
2932,
21,
3113,
315,
4146,
17,
21,
3113,
638,
1769,
202,
202,
4146,
18,
542,
9556,
12,
3767,
1769,
202,
202,
4146,
18,
542,
11238,
1626,
12,
2704,
2167,
10663,
202,
202,
11231,
5510,
12,
4181,
18,
291,
9556,
56,
20136,
12,
4146,
10019,
9506,
202,
9865,
3305,
2174,
5416,
2174,
273,
394,
7867,
3305,
2174,
12,
5980,
3507,
67,
862,
30986,
67,
1785,
9078,
17,
21,
8863,
202,
202,
4181,
18,
588,
2174,
682,
7675,
1289,
2174,
12,
22851,
2174,
1769,
202,
202,
22851,
2174,
18,
542,
9556,
12,
3767,
1769,
202,
202,
22851,
2174,
18,
542,
11238,
1626,
2
] |
||
recoverOriginalLibrary( "LibraryToReload_backup.xml", "LibraryToReload.xml" ); | String libFilePath = (String) filePaths.get( 1 ); | public void testReloadLibraryWithException( ) throws Exception { openDesign( "DesignToReloadLibrary.xml" ); //$NON-NLS-1$ // make modification on its library. openLibrary( "Library_1.xml" );//$NON-NLS-1$ try { designHandle.reloadLibrary( libraryHandle ); fail( ); } catch ( SemanticException e ) { assertEquals( LibraryException.DESIGN_EXCEPTION_LIBRARY_NOT_FOUND, e.getErrorCode( ) ); } recoverOriginalLibrary( "LibraryToReload_backup.xml", //$NON-NLS-1$ "LibraryToReload.xml" ); //$NON-NLS-1$ openLibrary( "LibraryToReload.xml" ); //$NON-NLS-1$ File f = new File( getClassFolder( ) + INPUT_FOLDER + "LibraryToReload.xml" ); //$NON-NLS-1$ if ( f.exists( ) ) f.delete( ); designHandle.reloadLibrary( libraryHandle ); assertNull( designHandle.findElement( "table1" ).getExtends( ) ); //$NON-NLS-1$ assertNotNull( designHandle .findElement( "table1" ).getStringProperty( DesignElementHandle.EXTENDS_PROP ) ); //$NON-NLS-1$ File f1 = new File( getClassFolder( ) + INPUT_FOLDER + "LibraryToReload_errors.xml" ); //$NON-NLS-1$ FileInputStream fis = new FileInputStream( f1 ); FileOutputStream fos = new FileOutputStream( f ); byte[] data = new byte[10000]; fis.read( data ); fos.write( data ); fis.close( ); fos.close( ); try { designHandle.reloadLibrary( libraryHandle ); fail( ); } catch ( LibraryException e ) { save( ); } recoverOriginalLibrary( "LibraryToReload_backup.xml", //$NON-NLS-1$ "LibraryToReload.xml" ); //$NON-NLS-1$ compareTextFile( "DesignToReloadLibrary_golden_1.xml"); //$NON-NLS-1$ } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/14f7f5097c347fb97b4edd5251bb64dc3c62527b/ReloadLibraryTest.java/buggy/model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/library/ReloadLibraryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
13013,
9313,
1190,
503,
12,
262,
1216,
1185,
202,
95,
202,
202,
3190,
15478,
12,
315,
15478,
774,
13013,
9313,
18,
2902,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
759,
1221,
11544,
603,
2097,
5313,
18,
202,
202,
3190,
9313,
12,
315,
9313,
67,
21,
18,
2902,
6,
11272,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
698,
202,
202,
95,
1082,
202,
16934,
3259,
18,
17517,
9313,
12,
5313,
3259,
11272,
1082,
202,
6870,
12,
11272,
202,
202,
97,
202,
202,
14683,
261,
24747,
503,
425,
262,
202,
202,
95,
1082,
202,
11231,
8867,
12,
18694,
503,
18,
1639,
11260,
67,
12658,
67,
2053,
28254,
67,
4400,
67,
9294,
16,
6862,
202,
73,
18,
588,
12012,
12,
262,
11272,
202,
202,
97,
202,
202,
266,
3165,
8176,
9313,
12,
315,
9313,
774,
13013,
67,
9572,
18,
2902,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
6,
9313,
774,
13013,
18,
2902,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
3190,
9313,
12,
315,
9313,
774,
13013,
18,
2902,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
812,
284,
273,
394,
1387,
12,
2900,
3899,
12,
262,
397,
12943,
67,
17357,
9506,
202,
15,
315,
9313,
774,
13013,
18,
2902,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
261,
284,
18,
1808,
12,
262,
262,
1082,
202,
74,
18,
3733,
12,
11272,
202,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
13013,
9313,
1190,
503,
12,
262,
1216,
1185,
202,
95,
202,
202,
3190,
15478,
12,
315,
15478,
774,
13013,
9313,
18,
2902,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
759,
1221,
11544,
603,
2097,
5313,
18,
202,
202,
3190,
9313,
12,
315,
9313,
67,
21,
18,
2902,
6,
11272,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
698,
202,
202,
95,
1082,
202,
16934,
3259,
18,
17517,
9313,
12,
5313,
3259,
11272,
1082,
202,
6870,
12,
11272,
202,
202,
97,
202,
202,
14683,
261,
24747,
503,
425,
262,
202,
202,
95,
1082,
202,
11231,
8867,
12,
18694,
503,
18,
1639,
11260,
67,
12658,
67,
2053,
28254,
67,
4400,
2
] |
HttpServletResponse response) throws IOException, ServletException { | HttpServletResponse response) throws IOException, ServletException { | public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { process(request, response); } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/893cf1f05ff2aed2f868307f45763b5b3bc5a257/ActionServlet.java/buggy/src/share/org/apache/struts/action/ActionServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3349,
12,
2940,
18572,
590,
16,
1082,
4202,
12446,
766,
13,
202,
15069,
1860,
16,
16517,
288,
202,
2567,
12,
2293,
16,
766,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3349,
12,
2940,
18572,
590,
16,
1082,
4202,
12446,
766,
13,
202,
15069,
1860,
16,
16517,
288,
202,
2567,
12,
2293,
16,
766,
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
] |
String getColorizedContent(final String content, final String fileExtension) throws IOException; | String getColorizedContent(final String content, final String fileExtension, final String encoding) throws IOException; | String getColorizedContent(final String content, final String fileExtension) throws IOException; | 50734 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50734/fbfc226d156d9aabfa62e069392e1ed246b2985c/Colorer.java/buggy/sventon/dev/java/src/de/berlios/sventon/colorer/Colorer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
514,
15672,
1235,
1350,
12,
6385,
514,
913,
16,
727,
514,
23908,
13,
1216,
1860,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
514,
15672,
1235,
1350,
12,
6385,
514,
913,
16,
727,
514,
23908,
13,
1216,
1860,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try { position++; bCodeStream[classFileOffset++] = OPC_iconst_0; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_iconst_0); | if (classFileOffset >= bCodeStream.length) { resizeByteArray(); | final public void iconst_0() { if (DEBUG) System.out.println(position + "\t\ticonst_0"); //$NON-NLS-1$ countLabels = 0; stackDepth++; if (stackDepth > stackMax) stackMax = stackDepth; try { position++; bCodeStream[classFileOffset++] = OPC_iconst_0; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_iconst_0); }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/3a562aaf09f9f323b583086b80b4683378886606/CodeStream.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
727,
1071,
918,
4126,
334,
67,
20,
1435,
288,
202,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
12,
3276,
397,
1548,
88,
64,
88,
3950,
334,
67,
20,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
1883,
5888,
273,
374,
31,
202,
3772,
6148,
9904,
31,
202,
430,
261,
3772,
6148,
405,
2110,
2747,
13,
202,
202,
3772,
2747,
273,
2110,
6148,
31,
202,
698,
288,
202,
202,
3276,
9904,
31,
202,
202,
70,
1085,
1228,
63,
1106,
812,
2335,
9904,
65,
273,
531,
3513,
67,
3950,
334,
67,
20,
31,
202,
97,
1044,
261,
30548,
425,
13,
288,
202,
202,
15169,
8826,
12,
51,
3513,
67,
3950,
334,
67,
20,
1769,
202,
9090,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
727,
1071,
918,
4126,
334,
67,
20,
1435,
288,
202,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
12,
3276,
397,
1548,
88,
64,
88,
3950,
334,
67,
20,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
1883,
5888,
273,
374,
31,
202,
3772,
6148,
9904,
31,
202,
430,
261,
3772,
6148,
405,
2110,
2747,
13,
202,
202,
3772,
2747,
273,
2110,
6148,
31,
202,
698,
288,
202,
202,
3276,
9904,
31,
202,
202,
70,
1085,
1228,
63,
1106,
812,
2335,
9904,
65,
273,
531,
3513,
67,
3950,
334,
67,
20,
31,
202,
97,
1044,
261,
30548,
425,
13,
288,
202,
202,
15169,
8826,
12,
51,
3513,
67,
3950,
334,
67,
20,
1769,
202,
9090,
2,
-100,
-100
] |
public void visitLocalVariableInstruction(LocalVariableInstruction obj) { } | public void visitLocalVariableInstruction(LocalVariableInstruction obj) { } | public void visitLocalVariableInstruction(LocalVariableInstruction obj) { } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/AbstractFrameModelingVisitor.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/AbstractFrameModelingVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
2042,
3092,
11983,
12,
2042,
3092,
11983,
1081,
13,
288,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
2042,
3092,
11983,
12,
2042,
3092,
11983,
1081,
13,
288,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (log.isInfoEnabled()) | if (log.isDebugEnabled()) | public void doTest(String jspName) throws Exception { WebRequest request = new GetMethodWebRequest(jspName); WebResponse response = runner.getResponse(request); if (log.isInfoEnabled()) { log.info(response.getText()); } WebTable[] tables = response.getTables(); assertEquals("Expected one table in result.", 1, tables.length); WebLink[] links = response.getLinks(); assertEquals("Wrong number of links in result.", 1, links.length); assertEquals("Parameter in link should be encoded.", "/context/dynlink?param=1%2B1", links[0].getURLString()); } | 7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/69ec962b1ef555522adf327d671a25f9f991f896/EncodedParametersTest.java/buggy/displaytag/src/test/java/org/displaytag/tags/EncodedParametersTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
4709,
12,
780,
22535,
461,
13,
1216,
1185,
565,
288,
3639,
2999,
691,
590,
273,
394,
968,
1305,
4079,
691,
12,
24926,
461,
1769,
3639,
2999,
1064,
766,
273,
8419,
18,
588,
1064,
12,
2293,
1769,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
3639,
288,
5411,
613,
18,
1376,
12,
2740,
18,
588,
1528,
10663,
3639,
289,
3639,
2999,
1388,
8526,
4606,
273,
766,
18,
588,
6905,
5621,
3639,
1815,
8867,
2932,
6861,
1245,
1014,
316,
563,
1199,
16,
404,
16,
4606,
18,
2469,
1769,
3639,
2999,
2098,
8526,
4716,
273,
766,
18,
588,
7100,
5621,
3639,
1815,
8867,
2932,
13634,
1300,
434,
4716,
316,
563,
1199,
16,
404,
16,
4716,
18,
2469,
1769,
3639,
1815,
8867,
2932,
1662,
316,
1692,
1410,
506,
3749,
1199,
16,
2206,
2472,
19,
28595,
1232,
35,
891,
33,
21,
9,
22,
38,
21,
3113,
4716,
63,
20,
8009,
588,
1785,
780,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
4709,
12,
780,
22535,
461,
13,
1216,
1185,
565,
288,
3639,
2999,
691,
590,
273,
394,
968,
1305,
4079,
691,
12,
24926,
461,
1769,
3639,
2999,
1064,
766,
273,
8419,
18,
588,
1064,
12,
2293,
1769,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
3639,
288,
5411,
613,
18,
1376,
12,
2740,
18,
588,
1528,
10663,
3639,
289,
3639,
2999,
1388,
8526,
4606,
273,
766,
18,
588,
6905,
5621,
3639,
1815,
8867,
2932,
6861,
1245,
1014,
316,
563,
1199,
16,
404,
16,
4606,
18,
2469,
1769,
3639,
2999,
2098,
8526,
4716,
273,
766,
18,
588,
7100,
5621,
3639,
1815,
8867,
2932,
13634,
1300,
434,
4716,
316,
563,
1199,
16,
404,
16,
4716,
18,
2469,
2
] |
Symbol alias = staticsClass.newTypeAlias(Position.NOPOS, translateAttributes(ntype), aliasname, make.classType(nclazz)); statics.enterNoHide(alias); | protected String doComplete(Symbol root) { clazz = root; clazz.owner().initialize(); //??? if (make == null) make = new JavaTypeCreator(global.definitions); clazz.flags = translateAttributes(type); Type[] ifaces = type.getInterfaces(); scalac.symtab.Type[] baseTypes = new scalac.symtab.Type[ifaces.length+1]; baseTypes[0] = type.BaseType() != null ? getCLRType(type.BaseType()) : (type.IsInterface() ? make.objectType() : make.anyType()); for (int i = 0; i < ifaces.length; i++) baseTypes[i + 1] = getCLRType(ifaces[i]); members = new Scope(); statics = new Scope(); scalac.symtab.Type clazzInfo = scalac.symtab.Type.compoundType(baseTypes, members, clazz); clazz.setInfo(clazzInfo); Symbol staticsModule = clazz.linkedModule(); staticsClass = staticsModule.moduleClass(); assert staticsClass.isModuleClass(): Debug.show(staticsClass); scalac.symtab.Type staticsInfo = scalac.symtab.Type.compoundType (scalac.symtab.Type.EMPTY_ARRAY, statics, staticsClass); staticsClass.setInfo(staticsInfo); staticsModule.setInfo(make.classType(staticsClass)); clazzType = make.classType(clazz); // import nested types Type[] nestedTypes = type.getNestedTypes(); for (int i = 0; i < nestedTypes.length; i++) { Type ntype = nestedTypes[i]; if (ntype.IsNestedPrivate() || ntype.IsNestedAssembly() || ntype.IsNestedFamANDAssem()) continue; int j = ntype.FullName.lastIndexOf('.'); String n = (j < 0 ? ntype.FullName : ntype.FullName.substring(j + 1)) .replace('+', '#'); Name classname = Name.fromString(n).toTypeName(); Name aliasname = Name.fromString(ntype.Name).toTypeName(); // put the class at the level of its outermost class // the owner of a class is always its most specific package CLRClassParser loader = new CLRClassParser(global, ntype); SymbolOrigin origin = SymbolOrigin.CLRAssembly(ntype.Assembly()); Symbol nclazz = clazz.owner().newLoadedClass (JAVA, classname, loader, null, origin); clrTypes.map(nclazz, ntype); // create an alias in the module of the outer class Symbol alias = staticsClass.newTypeAlias(Position.NOPOS, translateAttributes(ntype), aliasname, make.classType(nclazz)); statics.enterNoHide(alias); } FieldInfo[] fields = type.getFields(); for (int i = 0; i < fields.length; i++) { if (fields[i].IsPrivate() || fields[i].IsAssembly() || fields[i].IsFamilyAndAssembly()) continue; int mods = translateAttributes(fields[i]); Name name = Name.fromString(fields[i].Name); scalac.symtab.Type fieldType = getCLRType(fields[i].FieldType); if (fields[i].IsLiteral() && !fields[i].FieldType.IsEnum()) fieldType = make.constantType( getConstant(fieldType.symbol(), fields[i].getValue())); Symbol owner = fields[i].IsStatic() ? staticsClass : clazz; Symbol field = owner.newField(Position.NOPOS, mods, name); parseMeta(field, fields[i], fieldType); (fields[i].IsStatic() ? statics : members).enterOrOverload(field); clrTypes.map(field, fields[i]); } Set methodsSet = new HashSet(Arrays.asList(type.getMethods())); PropertyInfo[] props = type.getProperties(); for (int i = 0; i < props.length; i++) { scalac.symtab.Type proptype = getCLSType(props[i].PropertyType); if (proptype == null) continue; MethodInfo getter = props[i].GetGetMethod(true); MethodInfo setter = props[i].GetSetMethod(true); if (getter == null || getter.IsPrivate() || getter.IsAssembly() || getter.IsFamilyAndAssembly()) continue; assert props[i].PropertyType == getter.ReturnType; Name n; Symbol method; scalac.symtab.Type mtype; ParameterInfo[] gparams = getter.GetParameters(); if (gparams.length == 0) { n = Name.fromString(props[i].Name); mtype = scalac.symtab.Type.PolyType(Symbol.EMPTY_ARRAY, proptype); } else { n = Names.apply; mtype = methodType(getter, getter.ReturnType); } Symbol owner = getter.IsStatic() ? staticsClass : clazz; int mods = translateAttributes(getter); method = owner.newMethod(Position.NOPOS, mods, n); setParamOwners(mtype, method); method.setInfo(mtype); (getter.IsStatic() ? statics : members).enterOrOverload(method); clrTypes.map(method, getter); assert methodsSet.contains(getter) : "" + getter; methodsSet.remove(getter); if (setter == null || setter.IsPrivate() || setter.IsAssembly() || setter.IsFamilyAndAssembly()) continue; ParameterInfo[] sparams = setter.GetParameters(); assert getter.IsStatic() == setter.IsStatic(); assert setter.ReturnType == clrTypes.VOID; assert sparams.length == gparams.length + 1 : "" + getter + "; " + setter; if (gparams.length == 0) n = Name.fromString(n.toString() + Names._EQ); else n = Names.update; mods = translateAttributes(setter); method = owner.newMethod(Position.NOPOS, mods, n); mtype = methodType(setter, global.definitions.UNIT_TYPE()); setParamOwners(mtype, method); method.setInfo(mtype); (setter.IsStatic() ? statics : members).enterOrOverload(method); clrTypes.map(method, setter); assert methodsSet.contains(setter) : "" + setter; methodsSet.remove(setter); } for (Iterator i = methodsSet.iterator(); i.hasNext(); ) { MethodInfo method = (MethodInfo)i.next(); if ((clrTypes.getSymbol(method) != null) || method.IsPrivate() || method.IsAssembly() || method.IsFamilyAndAssembly()) continue; createMethod(method); } // for enumerations introduce comparison and bitwise logical operations; // the backend should recognize and replace them with comparison or // bitwise logical operations on the primitive underlying type if (type.IsEnum()) { scalac.symtab.Type[] argTypes = new scalac.symtab.Type[] {clazzType}; int mods = Modifiers.JAVA | Modifiers.FINAL; for (int i = 0; i < ENUM_CMP_NAMES.length; i++) { scalac.symtab.Type enumCmpType = make.methodType(argTypes, global.definitions.boolean_TYPE(), scalac.symtab.Type.EMPTY_ARRAY); Symbol enumCmp = clazz.newMethod (Position.NOPOS, mods, ENUM_CMP_NAMES[i]); setParamOwners(enumCmpType, enumCmp); enumCmp.setInfo(enumCmpType); members.enterOrOverload(enumCmp); } for (int i = 0; i < ENUM_BIT_LOG_NAMES.length; i++) { scalac.symtab.Type enumBitLogType = make.methodType (argTypes, clazzType, scalac.symtab.Type.EMPTY_ARRAY); Symbol enumBitLog = clazz.newMethod (Position.NOPOS, mods, ENUM_BIT_LOG_NAMES[i]); setParamOwners(enumBitLogType, enumBitLog); enumBitLog.setInfo(enumBitLogType); members.enterOrOverload(enumBitLog); } } ConstructorInfo[] constrs = type.getConstructors(); for (int i = 0; i < constrs.length; i++) { if (constrs[i].IsStatic() || constrs[i].IsPrivate() || constrs[i].IsAssembly() || constrs[i].IsFamilyAndAssembly()) continue; createConstructor(constrs[i]); } Symbol constr = clazz.primaryConstructor(); if (!constr.isInitialized()) { constr.setInfo(scalac.symtab.Type.MethodType (Symbol.EMPTY_ARRAY, clazzType)); if ((clazz.flags & Modifiers.INTERFACE) == 0) constr.flags |= Modifiers.PRIVATE; } parseMeta(clazz, type, clazzInfo); return type + " from assembly " + type.Assembly(); } | 32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/061a14c274eca558d490241b994ca3b780794eab/CLRClassParser.java/clean/sources/scalac/symtab/classfile/CLRClassParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
741,
6322,
12,
5335,
1365,
13,
288,
202,
830,
3638,
273,
1365,
31,
202,
830,
3638,
18,
8443,
7675,
11160,
5621,
368,
14646,
35,
202,
430,
261,
6540,
422,
446,
13,
202,
565,
1221,
273,
394,
5110,
559,
10636,
12,
6347,
18,
13314,
1769,
202,
830,
3638,
18,
7133,
273,
4204,
2498,
12,
723,
1769,
202,
559,
8526,
309,
2307,
273,
618,
18,
588,
10273,
5621,
202,
87,
771,
1077,
18,
9009,
1010,
378,
18,
559,
8526,
1026,
2016,
273,
394,
8292,
1077,
18,
9009,
1010,
378,
18,
559,
63,
430,
2307,
18,
2469,
15,
21,
15533,
202,
1969,
2016,
63,
20,
65,
273,
618,
18,
2171,
559,
1435,
480,
446,
692,
1927,
16018,
559,
12,
723,
18,
2171,
559,
10756,
5411,
294,
225,
261,
723,
18,
2520,
1358,
1435,
692,
1221,
18,
1612,
559,
1435,
294,
1221,
18,
2273,
559,
10663,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
309,
2307,
18,
2469,
31,
277,
27245,
202,
565,
1026,
2016,
63,
77,
397,
404,
65,
273,
1927,
16018,
559,
12,
430,
2307,
63,
77,
19226,
202,
7640,
273,
394,
5468,
5621,
202,
5642,
2102,
273,
394,
5468,
5621,
3639,
8292,
1077,
18,
9009,
1010,
378,
18,
559,
4003,
966,
273,
5411,
8292,
1077,
18,
9009,
1010,
378,
18,
559,
18,
22585,
559,
12,
1969,
2016,
16,
4833,
16,
4003,
1769,
202,
830,
3638,
18,
542,
966,
12,
830,
3638,
966,
1769,
3639,
8565,
760,
87,
3120,
273,
4003,
18,
17738,
3120,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
741,
6322,
12,
5335,
1365,
13,
288,
202,
830,
3638,
273,
1365,
31,
202,
830,
3638,
18,
8443,
7675,
11160,
5621,
368,
14646,
35,
202,
430,
261,
6540,
422,
446,
13,
202,
565,
1221,
273,
394,
5110,
559,
10636,
12,
6347,
18,
13314,
1769,
202,
830,
3638,
18,
7133,
273,
4204,
2498,
12,
723,
1769,
202,
559,
8526,
309,
2307,
273,
618,
18,
588,
10273,
5621,
202,
87,
771,
1077,
18,
9009,
1010,
378,
18,
559,
8526,
1026,
2016,
273,
394,
8292,
1077,
18,
9009,
1010,
378,
18,
559,
63,
430,
2307,
18,
2469,
15,
21,
15533,
202,
1969,
2016,
63,
20,
65,
273,
618,
18,
2171,
559,
1435,
480,
446,
692,
1927,
16018,
559,
12,
2
] |
|
nodeList.add(listNode2); | nodeList.add(listNode3); | ArrayList new26() { ArrayList nodeList = new ArrayList(); ArrayList nodeArrayList1 = (ArrayList) pop(); TypedLinkedList listNode2 = new TypedLinkedList(); { PStringEntry pstringentryNode1; pstringentryNode1 = (PStringEntry)nodeArrayList1.get(0); if(pstringentryNode1 != null) { listNode2.add(pstringentryNode1); } } nodeList.add(listNode2); return nodeList; } | 48893 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48893/9ba080b0c901d335db2cb543a5bc7d76ff474439/Parser.java/buggy/source/net/sourceforge/texlipse/bibparser/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2407,
394,
5558,
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,
780,
1622,
293,
1080,
4099,
907,
21,
31,
3639,
293,
1080,
4099,
907,
21,
273,
261,
52,
780,
1622,
13,
2159,
19558,
21,
18,
588,
12,
20,
1769,
202,
430,
12,
84,
1080,
4099,
907,
21,
480,
446,
13,
202,
95,
202,
225,
666,
907,
22,
18,
1289,
12,
84,
1080,
4099,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2407,
394,
5558,
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,
780,
1622,
293,
1080,
4099,
907,
21,
31,
3639,
293,
1080,
4099,
907,
21,
273,
261,
52,
780,
1622,
13,
2159,
19558,
21,
18,
588,
12,
20,
1769,
202,
430,
12,
84,
1080,
4099,
907,
21,
480,
446,
13,
202,
95,
202,
225,
666,
907,
22,
18,
1289,
12,
84,
1080,
4099,
907,
21,
1769,
202,
97,
3639,
289,
202,
2159,
682,
18,
1289,
12,
1098,
907,
23,
1769,
3639,
327,
10198,
31,
565,
289,
2,
-100,
-100
] |
public void setConf(NutchConf conf) { | public void setConf(Configuration conf) { | public void setConf(NutchConf conf) { super.setConf(conf); // the default constructor was called if (this.rules == null) { String filename = getConf().get("urlnormalizer.regex.file"); URL url = getConf().getResource(filename); try { this.rules = readConfigurationFile(url.toString()); } catch (IOException e) { // TODO mb@media-style.com: throw Exception? Because broken api. throw new RuntimeException(e.getMessage(), e); } catch (MalformedPatternException e) { // TODO mb@media-style.com: throw Exception? Because broken api. throw new RuntimeException(e.getMessage(), e); } } } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/25437bc825d50715dcc9a289a1b4c8fbbc6aced1/RegexUrlNormalizer.java/buggy/src/java/org/apache/nutch/net/RegexUrlNormalizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
3976,
12,
1750,
2195,
13,
288,
565,
2240,
18,
542,
3976,
12,
3923,
1769,
565,
368,
326,
805,
3885,
1703,
2566,
565,
309,
261,
2211,
18,
7482,
422,
446,
13,
288,
1377,
514,
1544,
273,
28836,
7675,
588,
2932,
718,
6130,
1824,
18,
7584,
18,
768,
8863,
1377,
1976,
880,
273,
28836,
7675,
588,
1420,
12,
3459,
1769,
1377,
775,
288,
3639,
333,
18,
7482,
273,
855,
1750,
812,
12,
718,
18,
10492,
10663,
1377,
289,
1044,
261,
14106,
425,
13,
288,
3639,
368,
2660,
4903,
36,
5829,
17,
4060,
18,
832,
30,
604,
1185,
35,
15191,
12933,
1536,
18,
3639,
604,
394,
3235,
12,
73,
18,
24906,
9334,
425,
1769,
1377,
289,
1044,
261,
18695,
3234,
503,
425,
13,
288,
3639,
368,
2660,
4903,
36,
5829,
17,
4060,
18,
832,
30,
604,
1185,
35,
15191,
12933,
1536,
18,
3639,
604,
394,
3235,
12,
73,
18,
24906,
9334,
425,
1769,
1377,
289,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
3976,
12,
1750,
2195,
13,
288,
565,
2240,
18,
542,
3976,
12,
3923,
1769,
565,
368,
326,
805,
3885,
1703,
2566,
565,
309,
261,
2211,
18,
7482,
422,
446,
13,
288,
1377,
514,
1544,
273,
28836,
7675,
588,
2932,
718,
6130,
1824,
18,
7584,
18,
768,
8863,
1377,
1976,
880,
273,
28836,
7675,
588,
1420,
12,
3459,
1769,
1377,
775,
288,
3639,
333,
18,
7482,
273,
855,
1750,
812,
12,
718,
18,
10492,
10663,
1377,
289,
1044,
261,
14106,
425,
13,
288,
3639,
368,
2660,
4903,
36,
5829,
17,
4060,
18,
832,
30,
604,
1185,
35,
15191,
12933,
1536,
18,
3639,
604,
394,
3235,
12,
73,
18,
24906,
9334,
425,
1769,
1377,
289,
1044,
261,
2
] |
return i != null ? i.intValue() : 0; | return i != null ? i.intValue() : -1; | public synchronized int getContentLength() { Integer i = (Integer)propertiesMap.get(FILE_SIZE); return i != null ? i.intValue() : 0; } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/fff57b4b651bc4003027538bf5191349456c108b/ManagedDownloader.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/downloader/ManagedDownloader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
509,
5154,
1782,
1435,
288,
3639,
2144,
277,
273,
261,
4522,
13,
4738,
863,
18,
588,
12,
3776,
67,
4574,
1769,
3639,
327,
277,
480,
446,
692,
277,
18,
474,
620,
1435,
294,
300,
21,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
509,
5154,
1782,
1435,
288,
3639,
2144,
277,
273,
261,
4522,
13,
4738,
863,
18,
588,
12,
3776,
67,
4574,
1769,
3639,
327,
277,
480,
446,
692,
277,
18,
474,
620,
1435,
294,
300,
21,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
{"Minimal_Days",new java.lang.Integer(1),}, | {"Minimal_Days",java.lang.Integer.valueOf(1),}, | protected Object[][] getContents() { Object[][] contents = { {"Minimal_Days",new java.lang.Integer(1),}, {"Date_SHORT","d/MM/yy",}, {"Time_FULL","H.mm' u. 'z",}, {"CurrencySymbol","\u20ac",}, {"IntCurrencySymbol","EUR",}, {"Currency","#,##0.00 \u00a4",}, };return contents;} | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/4cd556f6bcafbcc4bb2142e05523342b18bd2dda/Locale_nl_BE.java/clean/modules/luni/src/main/java/org/apache/harmony/luni/internal/locale/Locale_nl_BE.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
1033,
63,
6362,
65,
15015,
1435,
288,
202,
921,
63,
6362,
65,
2939,
273,
288,
202,
202,
16711,
2930,
2840,
67,
9384,
3113,
2704,
2252,
18,
4936,
18,
4522,
12,
21,
3631,
5779,
202,
202,
16711,
1626,
67,
15993,
15937,
72,
19,
8206,
19,
6795,
3113,
5779,
202,
202,
16711,
950,
67,
18111,
15937,
44,
18,
7020,
11,
582,
18,
296,
94,
3113,
5779,
202,
202,
16711,
7623,
5335,
3113,
12691,
89,
3462,
1077,
3113,
5779,
202,
202,
16711,
1702,
7623,
5335,
15937,
41,
1099,
3113,
5779,
202,
202,
16711,
7623,
15937,
7,
16,
1189,
20,
18,
713,
521,
89,
713,
69,
24,
3113,
5779,
202,
20451,
2463,
2939,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
1033,
63,
6362,
65,
15015,
1435,
288,
202,
921,
63,
6362,
65,
2939,
273,
288,
202,
202,
16711,
2930,
2840,
67,
9384,
3113,
2704,
2252,
18,
4936,
18,
4522,
12,
21,
3631,
5779,
202,
202,
16711,
1626,
67,
15993,
15937,
72,
19,
8206,
19,
6795,
3113,
5779,
202,
202,
16711,
950,
67,
18111,
15937,
44,
18,
7020,
11,
582,
18,
296,
94,
3113,
5779,
202,
202,
16711,
7623,
5335,
3113,
12691,
89,
3462,
1077,
3113,
5779,
202,
202,
16711,
1702,
7623,
5335,
15937,
41,
1099,
3113,
5779,
202,
202,
16711,
7623,
15937,
7,
16,
1189,
20,
18,
713,
521,
89,
713,
69,
24,
3113,
5779,
202,
20451,
2463,
2939,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( oc.contains( COLLECTIVE_SUBENTRY_OC ) ) | if ( oc.contains( COLLECTIVE_AREA ) ) | private int getSubentryTypes( Attributes subentry ) throws NamingException { int types = 0; Attribute oc = subentry.get( "objectClass" ); if ( oc == null ) { throw new LdapSchemaViolationException( "A subentry must have an objectClass attribute", ResultCodeEnum.OBJECTCLASSVIOLATION ); } if ( oc.contains( AUTONOUMOUS_AREA_SUBENTRY_OC ) ) { types |= Subentry.AUTONOMOUS_AREA_SUBENTRY; } if ( oc.contains( AC_SUBENTRY_OC ) ) { types |= Subentry.ACCESS_CONTROL_SUBENTRY; } if ( oc.contains( SCHEMA_SUBENTRY_OC ) ) { types |= Subentry.SCHEMA_SUBENTRY; } if ( oc.contains( COLLECTIVE_SUBENTRY_OC ) ) { types |= Subentry.COLLECTIVE_SUBENTRY; } return types; } | 17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/7a89d588ce906f19fa641170e9721907534af40e/SubentryService.java/clean/core/src/main/java/org/apache/directory/server/core/subtree/SubentryService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
7040,
4099,
2016,
12,
9055,
720,
4099,
262,
1216,
26890,
565,
288,
3639,
509,
1953,
273,
374,
31,
7734,
3601,
13345,
273,
720,
4099,
18,
588,
12,
315,
1612,
797,
6,
11272,
3639,
309,
261,
13345,
422,
446,
262,
3639,
288,
5411,
604,
394,
18053,
3078,
27052,
12,
315,
37,
720,
4099,
1297,
1240,
392,
23992,
1566,
3113,
1171,
3438,
1085,
3572,
18,
9422,
5237,
4136,
1741,
2689,
11272,
3639,
289,
7734,
309,
261,
13345,
18,
12298,
12,
432,
1693,
673,
51,
2799,
21667,
67,
20933,
67,
8362,
19083,
67,
10809,
262,
262,
3639,
288,
5411,
1953,
5626,
2592,
4099,
18,
37,
1693,
673,
1872,
21667,
67,
20933,
67,
8362,
19083,
31,
3639,
289,
7734,
309,
261,
13345,
18,
12298,
12,
12048,
67,
8362,
19083,
67,
10809,
262,
262,
3639,
288,
5411,
1953,
5626,
2592,
4099,
18,
13204,
67,
18248,
67,
8362,
19083,
31,
3639,
289,
7734,
309,
261,
13345,
18,
12298,
12,
22473,
67,
8362,
19083,
67,
10809,
262,
262,
3639,
288,
5411,
1953,
5626,
2592,
4099,
18,
14233,
67,
8362,
19083,
31,
3639,
289,
7734,
309,
261,
13345,
18,
12298,
12,
5597,
3918,
5354,
67,
20933,
262,
262,
3639,
288,
5411,
1953,
5626,
2592,
4099,
18,
4935,
3918,
5354,
67,
8362,
19083,
31,
3639,
289,
7734,
327,
1953,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
7040,
4099,
2016,
12,
9055,
720,
4099,
262,
1216,
26890,
565,
288,
3639,
509,
1953,
273,
374,
31,
7734,
3601,
13345,
273,
720,
4099,
18,
588,
12,
315,
1612,
797,
6,
11272,
3639,
309,
261,
13345,
422,
446,
262,
3639,
288,
5411,
604,
394,
18053,
3078,
27052,
12,
315,
37,
720,
4099,
1297,
1240,
392,
23992,
1566,
3113,
1171,
3438,
1085,
3572,
18,
9422,
5237,
4136,
1741,
2689,
11272,
3639,
289,
7734,
309,
261,
13345,
18,
12298,
12,
432,
1693,
673,
51,
2799,
21667,
67,
20933,
67,
8362,
19083,
67,
10809,
262,
262,
3639,
288,
5411,
1953,
5626,
2592,
4099,
18,
37,
1693,
673,
1872,
21667,
67,
20933,
67,
8362,
19083,
31,
3639,
289,
7734,
309,
2
] |
return 3; | return 4; | public int getColumnCount() { return 3; } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/a06d5bdd990bb0b2b070235682983982a0dce844/ManagePanel.java/buggy/org/gjt/sp/jedit/pluginmgr/ManagePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
6716,
1380,
1435,
202,
202,
95,
1082,
202,
2463,
890,
31,
202,
202,
97,
368,
9090,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
6716,
1380,
1435,
202,
202,
95,
1082,
202,
2463,
890,
31,
202,
202,
97,
368,
9090,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
BufferedReader br = new BufferedReader(new FileReader(settings.getReleaseNotes())); | br = new BufferedReader(new FileReader(settings.getReleaseNotes())); | public ECUEditor() { // get settings from xml try { InputSource src = new InputSource(new FileInputStream(new File("./settings.xml"))); DOMSettingsUnmarshaller domUms = new DOMSettingsUnmarshaller(); DOMParser parser = new DOMParser(); parser.parse(src); Document doc = parser.getDocument(); settings = domUms.unmarshallSettings(doc.getDocumentElement()); if (!settings.getRecentVersion().equalsIgnoreCase(version)) { // new version being used, display release notes JTextArea releaseNotes = new JTextArea(); releaseNotes.setEditable(false); releaseNotes.setWrapStyleWord(true); releaseNotes.setLineWrap(true); releaseNotes.setFont(new Font("Tahoma", Font.PLAIN, 12)); JScrollPane scroller = new JScrollPane(releaseNotes, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); scroller.setPreferredSize(new Dimension(600,500)); BufferedReader br = new BufferedReader(new FileReader(settings.getReleaseNotes())); StringBuffer sb = new StringBuffer(); while (br.ready()) { sb.append(br.readLine() + "\n"); } releaseNotes.setText(sb+""); JOptionPane.showMessageDialog(this, scroller, "Enginuity " + version + " Release Notes", JOptionPane.INFORMATION_MESSAGE); } } catch (Exception ex) { JOptionPane.showMessageDialog(this, "Settings file not found.\n" + "A new file will be created.", "Error Loading Settings", JOptionPane.INFORMATION_MESSAGE); } setSize(getSettings().getWindowSize()); setLocation(getSettings().getWindowLocation()); if (getSettings().isWindowMaximized() == true) setExtendedState(JFrame.MAXIMIZED_BOTH); JScrollPane rightScrollPane = new JScrollPane(rightPanel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); JScrollPane leftScrollPane = new JScrollPane(imageList, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftScrollPane, rightScrollPane); splitPane.setDividerSize(2); splitPane.setDividerLocation(getSettings().getSplitPaneLocation()); splitPane.addPropertyChangeListener(this); getContentPane().add(splitPane); rightPanel.setBackground(Color.BLACK); imageList.setScrollsOnExpand(true); imageList.setContainer(this); //create menubar and toolbar menuBar = new ECUEditorMenuBar(this); this.setJMenuBar(menuBar); toolBar = new ECUEditorToolBar(this); this.add(toolBar, BorderLayout.NORTH); //set remaining window properties setIconImage(new ImageIcon("./graphics/enginuity-ico.gif").getImage()); setDefaultCloseOperation(EXIT_ON_CLOSE); addWindowListener(this); setTitle(titleText); setVisible(true); } | 48870 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48870/d28857129c457538d854eb19124ccddf5695887d/ECUEditor.java/clean/src/enginuity/ECUEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7773,
1821,
72,
1811,
1435,
288,
7734,
368,
336,
1947,
628,
2025,
3639,
775,
288,
5411,
23699,
1705,
273,
394,
23699,
12,
2704,
11907,
12,
2704,
1387,
2932,
18,
19,
4272,
18,
2902,
6,
3719,
1769,
5411,
4703,
2628,
984,
27296,
4092,
57,
959,
273,
394,
4703,
2628,
984,
27296,
5621,
5411,
4703,
2678,
2082,
273,
394,
4703,
2678,
5621,
5411,
2082,
18,
2670,
12,
4816,
1769,
5411,
4319,
997,
273,
2082,
18,
588,
2519,
5621,
5411,
1947,
273,
4092,
57,
959,
18,
318,
12201,
2628,
12,
2434,
18,
588,
2519,
1046,
10663,
13491,
309,
16051,
4272,
18,
588,
17076,
1444,
7675,
14963,
5556,
12,
1589,
3719,
288,
27573,
368,
394,
1177,
3832,
1399,
16,
2562,
3992,
10913,
7734,
804,
1528,
5484,
3992,
18063,
273,
394,
804,
1528,
5484,
5621,
7734,
3992,
18063,
18,
542,
15470,
12,
5743,
1769,
7734,
3992,
18063,
18,
542,
2964,
2885,
3944,
12,
3767,
1769,
7734,
3992,
18063,
18,
542,
1670,
2964,
12,
3767,
1769,
7734,
3992,
18063,
18,
542,
5711,
12,
2704,
10063,
2932,
56,
9795,
362,
69,
3113,
10063,
18,
26549,
16,
2593,
10019,
27573,
804,
26360,
888,
1539,
273,
394,
804,
26360,
12,
9340,
18063,
16,
7682,
804,
26360,
18,
21654,
10109,
67,
2312,
14555,
21908,
67,
1013,
29295,
16,
7682,
804,
26360,
18,
44,
20344,
67,
2312,
14555,
21908,
67,
5407,
2204,
1769,
7734,
888,
1539,
18,
542,
16028,
1225,
12,
2704,
13037,
12,
28133,
16,
12483,
10019,
27573,
5186,
273,
394,
10633,
12,
2704,
23010,
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,
7773,
1821,
72,
1811,
1435,
288,
7734,
368,
336,
1947,
628,
2025,
3639,
775,
288,
5411,
23699,
1705,
273,
394,
23699,
12,
2704,
11907,
12,
2704,
1387,
2932,
18,
19,
4272,
18,
2902,
6,
3719,
1769,
5411,
4703,
2628,
984,
27296,
4092,
57,
959,
273,
394,
4703,
2628,
984,
27296,
5621,
5411,
4703,
2678,
2082,
273,
394,
4703,
2678,
5621,
5411,
2082,
18,
2670,
12,
4816,
1769,
5411,
4319,
997,
273,
2082,
18,
588,
2519,
5621,
5411,
1947,
273,
4092,
57,
959,
18,
318,
12201,
2628,
12,
2434,
18,
588,
2519,
1046,
10663,
13491,
309,
16051,
4272,
18,
588,
17076,
1444,
7675,
14963,
5556,
12,
1589,
3719,
288,
27573,
368,
394,
1177,
3832,
1399,
16,
2562,
3992,
2
] |
value = new String(Base64.base64ToByteArray(new StringBuffer(cdata.toString().trim()), null), "UTF-8"); | value = new String(SVNBase64.base64ToByteArray(new StringBuffer(cdata.toString().trim()), null), "UTF-8"); | protected void endElement(DAVElement parent, DAVElement element, StringBuffer cdata) throws SVNException { if (element == OPEN_DIRECTORY || element == ADD_DIRECTORY) { myEditor.closeDir(); if ("".equals(myPath)) { myEditor.closeEdit(); } myChecksum = null; myPath = SVNPathUtil.removeTail(myPath); } else if (element == OPEN_FILE || element == ADD_FILE) { myEditor.closeFile(myPath, myChecksum); myChecksum = null; myPath = SVNPathUtil.removeTail(myPath); } else if (element == DAVElement.MD5_CHECKSUM) { myChecksum = cdata.toString(); } else if (element == DAVElement.CREATOR_DISPLAY_NAME || element == DAVElement.VERSION_NAME || element == DAVElement.CREATION_DATE || element == SET_PROP || element == DAVElement.HREF) { if (myPropertyName == null) { myPropertyName = computeWCPropertyName(element); } String value = cdata.toString(); if ("base64".equals(myEncoding)) { try { value = new String(Base64.base64ToByteArray(new StringBuffer(cdata.toString().trim()), null), "UTF-8"); } catch (UnsupportedEncodingException e) { value = new String(Base64.base64ToByteArray(new StringBuffer(cdata.toString().trim()), null)); } } if (myIsDirectory) { myEditor.changeDirProperty(myPropertyName, value); } else { myEditor.changeFileProperty(myPath, myPropertyName, value); } myPropertyName = null; myEncoding = null; } else if (element == TX_DELTA && myIsFetchContent) { setDeltaProcessing(false); } } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/7d9e268d6a37ea439479b898087708ee528aa904/DAVEditorHandler.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/io/dav/handlers/DAVEditorHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
14840,
12,
17735,
1046,
982,
16,
463,
5856,
1046,
930,
16,
6674,
20712,
13,
1216,
29537,
50,
503,
288,
3639,
309,
261,
2956,
422,
11919,
67,
17229,
747,
930,
422,
11689,
67,
17229,
13,
288,
5411,
3399,
6946,
18,
4412,
1621,
5621,
5411,
309,
261,
3660,
18,
14963,
12,
4811,
743,
3719,
288,
7734,
3399,
6946,
18,
4412,
4666,
5621,
5411,
289,
5411,
3399,
10723,
273,
446,
31,
5411,
3399,
743,
273,
29537,
50,
743,
1304,
18,
4479,
12363,
12,
4811,
743,
1769,
3639,
289,
469,
309,
261,
2956,
422,
11919,
67,
3776,
747,
930,
422,
11689,
67,
3776,
13,
288,
5411,
3399,
6946,
18,
4412,
812,
12,
4811,
743,
16,
3399,
10723,
1769,
5411,
3399,
10723,
273,
446,
31,
5411,
3399,
743,
273,
29537,
50,
743,
1304,
18,
4479,
12363,
12,
4811,
743,
1769,
3639,
289,
469,
309,
261,
2956,
422,
463,
5856,
1046,
18,
6188,
25,
67,
10687,
14020,
13,
288,
10792,
3399,
10723,
273,
20712,
18,
10492,
5621,
3639,
289,
469,
309,
261,
2956,
422,
463,
5856,
1046,
18,
5458,
3575,
67,
17463,
67,
1985,
747,
1171,
930,
422,
463,
5856,
1046,
18,
5757,
67,
1985,
747,
1171,
930,
422,
463,
5856,
1046,
18,
5458,
2689,
67,
4594,
747,
1171,
930,
422,
7855,
67,
15811,
747,
7734,
930,
422,
463,
5856,
1046,
18,
44,
10771,
13,
288,
5411,
309,
261,
4811,
13073,
422,
446,
13,
288,
7734,
3399,
13073,
273,
3671,
59,
39,
13073,
12,
2956,
1769,
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,
225,
202,
1117,
918,
14840,
12,
17735,
1046,
982,
16,
463,
5856,
1046,
930,
16,
6674,
20712,
13,
1216,
29537,
50,
503,
288,
3639,
309,
261,
2956,
422,
11919,
67,
17229,
747,
930,
422,
11689,
67,
17229,
13,
288,
5411,
3399,
6946,
18,
4412,
1621,
5621,
5411,
309,
261,
3660,
18,
14963,
12,
4811,
743,
3719,
288,
7734,
3399,
6946,
18,
4412,
4666,
5621,
5411,
289,
5411,
3399,
10723,
273,
446,
31,
5411,
3399,
743,
273,
29537,
50,
743,
1304,
18,
4479,
12363,
12,
4811,
743,
1769,
3639,
289,
469,
309,
261,
2956,
422,
11919,
67,
3776,
747,
930,
422,
11689,
67,
3776,
13,
288,
5411,
3399,
6946,
18,
4412,
812,
12,
4811,
743,
16,
3399,
10723,
1769,
5411,
2
] |
public void actionPerformed(ActionEvent e) { try { String lsid = (String) JOptionPane.showInputDialog(null, "LSID to open?", "LSID Required", JOptionPane.QUESTION_MESSAGE, null, null, "URN:LSID:"); if (lsid != null && store != null) { | public void actionPerformed(ActionEvent e) { try { String lsid = (String) JOptionPane.showInputDialog(null, "LSID to open?", "LSID Required", JOptionPane.QUESTION_MESSAGE, null, null, "URN:LSID:"); if (lsid != null && store != null) { | public void actionPerformed(ActionEvent e) { try { String lsid = (String) JOptionPane.showInputDialog(null, "LSID to open?", "LSID Required", JOptionPane.QUESTION_MESSAGE, null, null, "URN:LSID:"); if (lsid != null && store != null) { DataThing thing = store.fetchDataThing(lsid); addDataThing(thing); } } catch (Exception ex) { JOptionPane.showMessageDialog(null, "Problem opening content from web : \n" + ex.getMessage(), "Exception!", JOptionPane.ERROR_MESSAGE); } } | 7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/6001f3303b9becce97c03f7b0fae6a5972cb3bdf/DataThingConstructionPanel.java/buggy/trunk/taverna1.0/src/org/embl/ebi/escience/scuflui/DataThingConstructionPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
9506,
202,
698,
288,
6862,
202,
780,
7180,
350,
273,
261,
780,
13,
804,
1895,
8485,
18,
4500,
1210,
6353,
12,
2011,
16,
6862,
1082,
202,
6,
3045,
734,
358,
1696,
35,
3113,
315,
3045,
734,
10647,
3113,
6862,
1082,
202,
46,
1895,
8485,
18,
4740,
1146,
67,
8723,
16,
446,
16,
446,
16,
6862,
1082,
202,
6,
8521,
30,
3045,
734,
2773,
1769,
6862,
202,
430,
261,
3251,
350,
480,
446,
597,
1707,
480,
446,
13,
288,
25083,
202,
751,
10193,
7757,
273,
1707,
18,
5754,
751,
10193,
12,
3251,
350,
1769,
25083,
202,
1289,
751,
10193,
12,
4274,
1769,
6862,
202,
97,
9506,
202,
97,
1044,
261,
503,
431,
13,
288,
6862,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
12,
2011,
16,
6862,
1082,
202,
6,
13719,
10890,
913,
628,
3311,
294,
521,
82,
6,
6862,
6862,
202,
15,
431,
18,
24906,
9334,
315,
503,
5,
3113,
6862,
1082,
202,
46,
1895,
8485,
18,
3589,
67,
8723,
1769,
9506,
202,
97,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
9506,
202,
698,
288,
6862,
202,
780,
7180,
350,
273,
261,
780,
13,
804,
1895,
8485,
18,
4500,
1210,
6353,
12,
2011,
16,
6862,
1082,
202,
6,
3045,
734,
358,
1696,
35,
3113,
315,
3045,
734,
10647,
3113,
6862,
1082,
202,
46,
1895,
8485,
18,
4740,
1146,
67,
8723,
16,
446,
16,
446,
16,
6862,
1082,
202,
6,
8521,
30,
3045,
734,
2773,
1769,
6862,
202,
430,
261,
3251,
350,
480,
446,
597,
1707,
480,
446,
13,
288,
25083,
202,
751,
10193,
7757,
273,
1707,
18,
5754,
751,
10193,
12,
3251,
350,
1769,
25083,
202,
1289,
751,
10193,
12,
4274,
1769,
6862,
202,
97,
9506,
202,
97,
1044,
2
] |
" should be opened in a try block, and closed in a finally block #loc"; | " should be opened in a try block, and closed in a finally block #loc"; | public String buildErrorString(PsiElement location){ final PsiExpression expression = (PsiExpression) location; final PsiType type = expression.getType(); final String text = type.getPresentableText(); return "JDBC " + text + " should be opened in a try block, and closed in a finally block #loc"; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/bd57f07c33c419f20715b114b71a7e93425b34c9/JDBCResourceInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/resources/JDBCResourceInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1361,
668,
780,
12,
52,
7722,
1046,
2117,
15329,
3639,
727,
453,
7722,
2300,
2652,
273,
261,
52,
7722,
2300,
13,
2117,
31,
3639,
727,
453,
7722,
559,
618,
273,
2652,
18,
588,
559,
5621,
3639,
727,
514,
977,
273,
618,
18,
588,
6351,
429,
1528,
5621,
3639,
327,
315,
30499,
315,
397,
977,
397,
15604,
315,
1410,
506,
10191,
316,
279,
775,
1203,
16,
471,
4375,
316,
279,
3095,
1203,
468,
1829,
14432,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1361,
668,
780,
12,
52,
7722,
1046,
2117,
15329,
3639,
727,
453,
7722,
2300,
2652,
273,
261,
52,
7722,
2300,
13,
2117,
31,
3639,
727,
453,
7722,
559,
618,
273,
2652,
18,
588,
559,
5621,
3639,
727,
514,
977,
273,
618,
18,
588,
6351,
429,
1528,
5621,
3639,
327,
315,
30499,
315,
397,
977,
397,
15604,
315,
1410,
506,
10191,
316,
279,
775,
1203,
16,
471,
4375,
316,
279,
3095,
1203,
468,
1829,
14432,
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
] |