rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
resource.setID(ejbJar, ArchiveConstants.EJBJAR_ID); | resource.setID(ejbJar, J2EEConstants.EJBJAR_ID); | public org.eclipse.emf.ecore.EObject makeDeploymentDescriptor(XMLResource resource) { EJBJar ejbJar = ((EjbPackage) EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI)).getEjbFactory().createEJBJar(); resource.setID(ejbJar, ArchiveConstants.EJBJAR_ID); setDeploymentDescriptorGen(ejbJar); resource.getContents().add(ejbJar); return ejbJar; } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/18a2a3b489fef7cefb688b690beaeaf64c4480fd/EJBJarFileImpl.java/buggy/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/EJBJarFileImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2358,
18,
20416,
18,
351,
74,
18,
557,
479,
18,
8029,
1221,
6733,
3187,
12,
4201,
1420,
1058,
13,
288,
202,
202,
22719,
10813,
18024,
10813,
273,
14015,
41,
10649,
2261,
13,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2358,
18,
20416,
18,
351,
74,
18,
557,
479,
18,
8029,
1221,
6733,
3187,
12,
4201,
1420,
1058,
13,
288,
202,
202,
22719,
10813,
18024,
10813,
273,
14015,
41,
10649,
2261,
13,
1... |
cancelShowConsoleViewDefaultJob(); fShowConsoleViewJob.setup(console, activate); fShowConsoleViewJob.schedule(100); | fShowConsoleViewJob.schedule(console, activate); | public synchronized void showConsole(NIConsole console, boolean activate) { cancelShowConsoleViewDefaultJob(); fShowConsoleViewJob.setup(console, activate); fShowConsoleViewJob.schedule(100); } | 47575 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47575/d3bba4266f35b585495a603d2b7a2630e87ff6c4/PageRegistry.java/clean/de.walware.statet.nico.ui/src/de/walware/statet/nico/ui/internal/PageRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
2405,
10215,
12,
50,
45,
10215,
2983,
16,
1250,
10235,
13,
288,
9506,
202,
10996,
5706,
10215,
1767,
1868,
2278,
5621,
202,
202,
74,
5706,
10215,
1767,
2278,
18,
8401... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
2405,
10215,
12,
50,
45,
10215,
2983,
16,
1250,
10235,
13,
288,
9506,
202,
10996,
5706,
10215,
1767,
1868,
2278,
5621,
202,
202,
74,
5706,
10215,
1767,
2278,
18,
8401... |
private void expand() { int i; if (isCompact) { char[] tempArray; tempArray = new char[UNICODECOUNT]; for (i = 0; i < UNICODECOUNT; ++i) { tempArray[i] = elementAt((char)i); } for (i = 0; i < INDEXCOUNT; ++i) { indices[i] = (char)(i<<BLOCKSHIFT); } values = null; values = tempArray; isCompact = false; } } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/e87b31606f688d97d1580bcab4c7589a7d24935d/CompactCharArray.java/buggy/icu4j/src/com/ibm/icu/util/CompactCharArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
90,
11359,
561,
84,
464,
1435,
95,
474,
77,
31,
430,
12,
291,
16863,
15329,
3001,
8526,
5814,
1076,
31,
5814,
1076,
33,
2704,
3001,
63,
26642,
7240,
15533,
1884,
12,
77,
33,
20,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
90,
11359,
561,
84,
464,
1435,
95,
474,
77,
31,
430,
12,
291,
16863,
15329,
3001,
8526,
5814,
1076,
31,
5814,
1076,
33,
2704,
3001,
63,
26642,
7240,
15533,
1884,
12,
77,
33,
20,
31,
... | ||
if (singleton == null) { | if (singleton == null) { | public static ProgressManager getInstance() { if (singleton == null) { singleton = new ProgressManager(); } return singleton; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/82e45bfb168fa5c37a8ced4976d2cc8fef6ce0f2/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
10980,
1318,
3694,
1435,
288,
202,
202,
430,
261,
24487,
422,
446,
13,
288,
1082,
202,
24487,
273,
394,
10980,
1318,
5621,
202,
202,
97,
202,
202,
2463,
6396,
31,
202,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
10980,
1318,
3694,
1435,
288,
202,
202,
430,
261,
24487,
422,
446,
13,
288,
1082,
202,
24487,
273,
394,
10980,
1318,
5621,
202,
202,
97,
202,
202,
2463,
6396,
31,
202,
97... |
match(input,ID,FOLLOW_ID_in_dotted_name2245); | match(input,ID,FOLLOW_ID_in_dotted_name2210); | public String dotted_name() throws RecognitionException { String name; Token id=null; name = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:676:17: (id= ID ( '.' id= ID )* ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:676:17: id= ID ( '.' id= ID )* { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_dotted_name2245); name=id.getText(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:676:46: ( '.' id= ID )* loop52: do { int alt52=2; int LA52_0 = input.LA(1); if ( LA52_0==53 ) { alt52=1; } switch (alt52) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:676:48: '.' id= ID { match(input,53,FOLLOW_53_in_dotted_name2251); id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_dotted_name2255); name = name + "." + id.getText(); } break; default : break loop52; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return name; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/61acd40072560afada3f7897673309e5b51b402d/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
20965,
67,
529,
1435,
1216,
9539,
288,
6647,
514,
508,
31,
3639,
3155,
612,
33,
2011,
31,
1171,
202,
202,
529,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
20965,
67,
529,
1435,
1216,
9539,
288,
6647,
514,
508,
31,
3639,
3155,
612,
33,
2011,
31,
1171,
202,
202,
529,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
... |
} | } | public void initializeFinished() { // create the module manager with the configured modules m_moduleManager = new CmsModuleManager(m_modules); if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().key(Messages.INIT_MODULE_CONFIG_FINISHED_0)); } } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/ffc41838b2d111ebeb91e9a4f240187165ad24d5/CmsModuleConfiguration.java/buggy/src/org/opencms/configuration/CmsModuleConfiguration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
10577,
1435,
288,
3639,
368,
752,
326,
1605,
3301,
598,
326,
4351,
4381,
3639,
312,
67,
2978,
1318,
273,
394,
2149,
3120,
1318,
12,
81,
67,
6400,
1769,
3639,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
10577,
1435,
288,
3639,
368,
752,
326,
1605,
3301,
598,
326,
4351,
4381,
3639,
312,
67,
2978,
1318,
273,
394,
2149,
3120,
1318,
12,
81,
67,
6400,
1769,
3639,
309,
261,
... |
this.logFile = CCorePlugin.getDefault().getStateLocation().append(".log").toFile(); | this.logFile = CCorePlugin.getDefault().getStateLocation().append(".log").toFile(); | public CDTLogWriter(File log) { this.logFile = log; if(log.length() > MAXLOG_SIZE){ log.delete(); this.logFile = CCorePlugin.getDefault().getStateLocation().append(".log").toFile(); } openLogFile(); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/74206bb9c0adfac164644b684d089bbdf8757013/CDTLogWriter.java/clean/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CDTLogWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
385,
9081,
1343,
2289,
12,
812,
613,
13,
288,
202,
202,
2211,
18,
1330,
812,
273,
613,
31,
202,
202,
430,
12,
1330,
18,
2469,
1435,
405,
4552,
4842,
67,
4574,
15329,
1082,
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,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
385,
9081,
1343,
2289,
12,
812,
613,
13,
288,
202,
202,
2211,
18,
1330,
812,
273,
613,
31,
202,
202,
430,
12,
1330,
18,
2469,
1435,
405,
4552,
4842,
67,
4574,
15329,
1082,
2... |
throw new ParseException( "Invalid Day-of-Week value: '" + sub + "'", i); | throw new ParseException( "Invalid Day-of-Week value: '" + sub + "'", i); if (sval > eval) throw new ParseException( "Invalid Day-of-Week sequence: " + sval + " > " + eval, i); | protected int storeExpressionVals(int pos, String s, int type) throws ParseException { int incr = 0; int i = skipWhiteSpace(pos, s); if (i >= s.length()) return i; char c = s.charAt(i); if ((c >= 'A') && (c <= 'Z') && (!s.equals("L")) && (!s.equals("LW"))) { String sub = s.substring(i, i + 3); int sval = -1; int eval = -1; if (type == MONTH) { sval = getMonthNumber(sub) + 1; if (sval < 0) throw new ParseException("Invalid Month value: '" + sub + "'", i); if (s.length() > i + 3) { c = s.charAt(i + 3); if (c == '-') { i += 4; sub = s.substring(i, i + 3); eval = getMonthNumber(sub) + 1; if (eval < 0) throw new ParseException( "Invalid Month value: '" + sub + "'", i); } } } else if (type == DAY_OF_WEEK) { sval = getDayOfWeekNumber(sub); if (sval < 0) throw new ParseException("Invalid Day-of-Week value: '" + sub + "'", i); if (s.length() > i + 3) { c = s.charAt(i + 3); if (c == '-') { i += 4; sub = s.substring(i, i + 3); eval = getDayOfWeekNumber(sub); if (eval < 0) throw new ParseException( "Invalid Day-of-Week value: '" + sub + "'", i); } else if (c == '#') { try { i += 4; nthdayOfWeek = Integer.parseInt(s.substring(i)); if (nthdayOfWeek < 1 || nthdayOfWeek > 5) throw new Exception(); } catch (Exception e) { throw new ParseException( "A numeric value between 1 and 5 must follow the '#' option", i); } } else if (c == 'L') { lastdayOfWeek = true; i++; } } } else { throw new ParseException( "Illegal characters for this position: '" + sub + "'", i); } if (eval != -1) incr = 1; addToSet(sval, eval, incr, type); return (i + 3); } if (c == '?') { i++; if ((i + 1) < s.length() && (s.charAt(i) != ' ' && s.charAt(i + 1) != '\t')) throw new ParseException("Illegal character after '?': " + s.charAt(i), i); if (type != DAY_OF_WEEK && type != DAY_OF_MONTH) throw new ParseException( "'?' can only be specfied for Day-of-Month or Day-of-Week.", i); if (type == DAY_OF_WEEK && !lastdayOfMonth) { int val = ((Integer) daysOfMonth.last()).intValue(); if (val == NO_SPEC_INT) throw new ParseException( "'?' can only be specfied for Day-of-Month -OR- Day-of-Week.", i); } addToSet(NO_SPEC_INT, -1, 0, type); return i; } if (c == '*' || c == '/') { if (c == '*' && (i + 1) >= s.length()) { addToSet(ALL_SPEC_INT, -1, incr, type); return i + 1; } else if (c == '/' && ((i + 1) >= s.length() || s.charAt(i + 1) == ' ' || s .charAt(i + 1) == '\t')) throw new ParseException( "'/' must be followed by an integer.", i); else if (c == '*') i++; c = s.charAt(i); if (c == '/') { // is an increment specified? i++; if (i >= s.length()) throw new ParseException("Unexpected end of string.", i); incr = getNumericValue(s, i); i++; if (incr > 10) i++; if (incr > 59 && (type == SECOND || type == MINUTE)) throw new ParseException( "Increment > 60 : " + incr, i); else if (incr > 23 && (type == HOUR)) throw new ParseException( "Increment > 24 : " + incr, i); else if (incr > 31 && (type == DAY_OF_MONTH)) throw new ParseException( "Increment > 31 : " + incr, i); else if (incr > 7 && (type == DAY_OF_WEEK)) throw new ParseException( "Increment > 7 : " + incr, i); else if (incr > 12 && (type == MONTH)) throw new ParseException("Increment > 12 : " + incr, i); } else incr = 1; addToSet(ALL_SPEC_INT, -1, incr, type); return i; } else if (c == 'L') { i++; if (type == DAY_OF_MONTH) lastdayOfMonth = true; if (type == DAY_OF_WEEK) addToSet(7, 7, 0, type); if(type == DAY_OF_MONTH && s.length() > i) { c = s.charAt(i); if(c == 'W') { nearestWeekday = true; i++; } } return i; } else if (c >= '0' && c <= '9') { int val = Integer.parseInt(String.valueOf(c)); i++; if (i >= s.length()) addToSet(val, -1, -1, type); else { c = s.charAt(i); if (c >= '0' && c <= '9') { ValueSet vs = getValue(val, s, i); val = vs.value; i = vs.pos; } i = checkNext(i, s, val, type); return i; } } else throw new ParseException("Unexpected character: " + c, i); return i; } | 15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/24da29528c2ca836944a1956233d72fceecf913c/CronTrigger.java/buggy/src/java/org/quartz/CronTrigger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
1707,
2300,
13169,
12,
474,
949,
16,
514,
272,
16,
509,
618,
13,
5411,
1216,
10616,
288,
3639,
509,
17633,
273,
374,
31,
3639,
509,
277,
273,
2488,
23108,
12,
917,
16,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
1707,
2300,
13169,
12,
474,
949,
16,
514,
272,
16,
509,
618,
13,
5411,
1216,
10616,
288,
3639,
509,
17633,
273,
374,
31,
3639,
509,
277,
273,
2488,
23108,
12,
917,
16,
272,
... |
ta.setFont(new Font("Monospaced", Font.PLAIN, 12)); | ta.setFont(new Font("Monospaced", Font.PLAIN, 12)); | public void mechReadout() { if (lisEntities.getSelectedIndex() == -1) { return; } Entity entity = client.game.getEntity(entityCorrespondance[lisEntities.getSelectedIndex()]); MechView mechView = new MechView(entity); TextArea ta = new TextArea(); ta.setEditable(false); ta.setFont(new Font("Monospaced", Font.PLAIN, 12)); ta.setText(mechView.getMechReadout()); final Dialog dialog = new Dialog(clientgui.frame, "Unit Quick View", false); Button btn = new Button("Ok"); dialog.add("South", btn); btn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { dialog.setVisible(false); } }); dialog.addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(WindowEvent e) { dialog.setVisible(false); } }); dialog.add("Center", ta); // Preview image of the Mech... BufferedPanel panPreview = new BufferedPanel(); panPreview.setPreferredSize(84, 72); clientgui.loadPreviewImage(panPreview, entity); dialog.add("North", panPreview); dialog.setLocation( clientgui.frame.getLocation().x + clientgui.frame.getSize().width / 2 - dialog.getSize().width / 2, clientgui.frame.getLocation().y + clientgui.frame.getSize().height / 5 - dialog.getSize().height / 2); dialog.setSize(300, 450); dialog.validate(); dialog.show(); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/18ec0036f3c5df3d8fbef60e9dd53cc153fc889e/ChatLounge.java/clean/megamek/src/megamek/client/ui/AWT/ChatLounge.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1791,
343,
1994,
659,
1435,
288,
3639,
309,
261,
80,
291,
8108,
18,
588,
7416,
1016,
1435,
422,
300,
21,
13,
288,
5411,
327,
31,
3639,
289,
3639,
3887,
1522,
273,
1004,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1791,
343,
1994,
659,
1435,
288,
3639,
309,
261,
80,
291,
8108,
18,
588,
7416,
1016,
1435,
422,
300,
21,
13,
288,
5411,
327,
31,
3639,
289,
3639,
3887,
1522,
273,
1004,
18,
... |
this.preferences.line_delimiter = lineSeparator; | if (lineSeparator != null) { this.preferences.line_delimiter = lineSeparator; } | private String formatExpression(String source, int indentationLevel, int[] positions, String lineSeparator, Map options) { Expression expression = parseExpression(source.toCharArray(), options); if (expression == null) { // a problem occured while parsing the source return source; } this.preferences.line_delimiter = lineSeparator; this.preferences.initial_indentation_level = indentationLevel; this.newCodeFormatter = new CodeFormatterVisitor(this.preferences, options); String result = this.newCodeFormatter.format(source, positions, expression); if (positions != null) { System.arraycopy(this.newCodeFormatter.scribe.mappedPositions, 0, positions, 0, positions.length); } return result; } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/2bcb3d0c9fa104ef6edd7e53ba16f8b7aff57348/DefaultCodeFormatter.java/buggy/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
740,
2300,
12,
780,
1084,
16,
509,
12018,
2355,
16,
509,
8526,
6865,
16,
514,
31053,
16,
1635,
702,
13,
288,
202,
202,
2300,
2652,
273,
30838,
12,
3168,
18,
869,
15936,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
740,
2300,
12,
780,
1084,
16,
509,
12018,
2355,
16,
509,
8526,
6865,
16,
514,
31053,
16,
1635,
702,
13,
288,
202,
202,
2300,
2652,
273,
30838,
12,
3168,
18,
869,
15936,
... |
return getList_counter(); | return list_counter; | public int getListCounter() { return getList_counter(); } | 53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/ContextImpl.java/buggy/src/java/org/xhtmlrenderer/layout/ContextImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
10033,
4789,
1435,
288,
3639,
327,
666,
67,
7476,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
10033,
4789,
1435,
288,
3639,
327,
666,
67,
7476,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
} | } | public void testServiceOutagesClosedOnDelete() { MockService element = m_network.getService(1, "192.168.1.1", "SMTP"); testOutagesClosedOnDelete(element); } | 48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/e3db1312e8cc2636034eb4d7b29db88850613e3b/PollerTest.java/clean/opennms-services/src/test/java/org/opennms/netmgt/poller/PollerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1179,
1182,
1023,
7395,
1398,
2613,
1435,
288,
3639,
7867,
1179,
930,
273,
312,
67,
5185,
18,
588,
1179,
12,
21,
16,
315,
15561,
18,
23329,
18,
21,
18,
21,
3113,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
1842,
1179,
1182,
1023,
7395,
1398,
2613,
1435,
288,
3639,
7867,
1179,
930,
273,
312,
67,
5185,
18,
588,
1179,
12,
21,
16,
315,
15561,
18,
23329,
18,
21,
18,
21,
3113,
315,
... |
getCurrentFrame().getEvalState().setSelf(runtime.getTopSelf()); | public void preAdoptThread() { setNoBlock(); pushFrameNoBlock(); getCurrentFrame().newScope(null); pushRubyClass(runtime.getObject()); pushCRef(runtime.getObject()); getCurrentFrame().setSelf(runtime.getTopSelf()); getCurrentFrame().getEvalState().setSelf(runtime.getTopSelf()); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/6e15491217631472c05c6928672f9c7064a978b3/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
675,
1871,
3838,
3830,
1435,
288,
3639,
444,
2279,
1768,
5621,
3639,
1817,
3219,
2279,
1768,
5621,
3639,
5175,
3219,
7675,
2704,
3876,
12,
2011,
1769,
3639,
1817,
54,
10340,
797,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
675,
1871,
3838,
3830,
1435,
288,
3639,
444,
2279,
1768,
5621,
3639,
1817,
3219,
2279,
1768,
5621,
3639,
5175,
3219,
7675,
2704,
3876,
12,
2011,
1769,
3639,
1817,
54,
10340,
797,... | |
((UMLPlainTextDocument)getDocument()).removed(e); | ((UMLPlainTextDocument) getDocument()).removed(e); | public void removed(MElementEvent e) { ((UMLPlainTextDocument)getDocument()).removed(e); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/UMLTextArea2.java/clean/src_new/org/argouml/uml/ui/UMLTextArea2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3723,
12,
12310,
1133,
425,
13,
288,
3639,
14015,
57,
1495,
13360,
1528,
2519,
13,
9956,
1435,
2934,
14923,
12,
73,
1769,
540,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
3723,
12,
12310,
1133,
425,
13,
288,
3639,
14015,
57,
1495,
13360,
1528,
2519,
13,
9956,
1435,
2934,
14923,
12,
73,
1769,
540,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
AST __t2013 = _t; AST tmp2343_AST_in = (AST)_t; | AST __t2016 = _t; AST tmp2346_AST_in = (AST)_t; | public final void selectionlistphrase(AST _t) throws RecognitionException { AST selectionlistphrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2005 = _t; AST tmp2333_AST_in = (AST)_t; match(_t,SELECTIONLIST); _t = _t.getFirstChild(); { _loop2015: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SINGLE: { AST tmp2334_AST_in = (AST)_t; match(_t,SINGLE); _t = _t.getNextSibling(); break; } case MULTIPLE: { AST tmp2335_AST_in = (AST)_t; match(_t,MULTIPLE); _t = _t.getNextSibling(); break; } case NODRAG: { AST tmp2336_AST_in = (AST)_t; match(_t,NODRAG); _t = _t.getNextSibling(); break; } case LISTITEMS: { AST __t2007 = _t; AST tmp2337_AST_in = (AST)_t; match(_t,LISTITEMS); _t = _t.getFirstChild(); constant(_t); _t = _retTree; { _loop2009: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2338_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); constant(_t); _t = _retTree; } else { break _loop2009; } } while (true); } _t = __t2007; _t = _t.getNextSibling(); break; } case LISTITEMPAIRS: { AST __t2010 = _t; AST tmp2339_AST_in = (AST)_t; match(_t,LISTITEMPAIRS); _t = _t.getFirstChild(); constant(_t); _t = _retTree; { _loop2012: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2340_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); constant(_t); _t = _retTree; } else { break _loop2012; } } while (true); } _t = __t2010; _t = _t.getNextSibling(); break; } case SCROLLBARHORIZONTAL: { AST tmp2341_AST_in = (AST)_t; match(_t,SCROLLBARHORIZONTAL); _t = _t.getNextSibling(); break; } case SCROLLBARVERTICAL: { AST tmp2342_AST_in = (AST)_t; match(_t,SCROLLBARVERTICAL); _t = _t.getNextSibling(); break; } case INNERCHARS: { AST __t2013 = _t; AST tmp2343_AST_in = (AST)_t; match(_t,INNERCHARS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2013; _t = _t.getNextSibling(); break; } case INNERLINES: { AST __t2014 = _t; AST tmp2344_AST_in = (AST)_t; match(_t,INNERLINES); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2014; _t = _t.getNextSibling(); break; } case SORT: { AST tmp2345_AST_in = (AST)_t; match(_t,SORT); _t = _t.getNextSibling(); break; } case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case SIZE: case SIZECHARS: case SIZEPIXELS: { sizephrase(_t); _t = _retTree; break; } default: { break _loop2015; } } } while (true); } _t = __t2005; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4421,
1098,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4421,
1098,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4421,
1098,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4421,
1098,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... |
return isMethodBound(symbol.toId(), 1) ? getRuby().getTrue() : getRuby().getFalse(); } | return isMethodBound(symbol.toId(), 1) ? getRuby().getTrue() : getRuby().getFalse(); } | public RubyObject m_method_defined(RubyObject symbol) { return isMethodBound(symbol.toId(), 1) ? getRuby().getTrue() : getRuby().getFalse(); } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
312,
67,
2039,
67,
2178,
12,
54,
10340,
921,
3273,
13,
288,
202,
202,
2463,
27969,
3499,
12,
7175,
18,
869,
548,
9334,
404,
13,
1082,
202,
35,
4170,
10340,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
312,
67,
2039,
67,
2178,
12,
54,
10340,
921,
3273,
13,
288,
202,
202,
2463,
27969,
3499,
12,
7175,
18,
869,
548,
9334,
404,
13,
1082,
202,
35,
4170,
10340,
7675,
... |
public Icon getOpenIcon() { | public Icon getOpenIcon() { | public Icon getOpenIcon() { return openIcon; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16011,
29607,
5554,
1435,
288,
1850,
327,
1696,
5554,
31,
202,
97,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16011,
29607,
5554,
1435,
288,
1850,
327,
1696,
5554,
31,
202,
97,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
AST tmp1618_AST_in = (AST)_t; | AST tmp1620_AST_in = (AST)_t; | public final void sql_col_def(AST _t) throws RecognitionException { AST sql_col_def_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2457 = _t; AST tmp1613_AST_in = (AST)_t; match(_t,ID); _t = _t.getFirstChild(); AST tmp1614_AST_in = (AST)_t; if ( _t==null ) throw new MismatchedTokenException(); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRECISION: { AST tmp1615_AST_in = (AST)_t; match(_t,PRECISION); _t = _t.getNextSibling(); break; } case 3: case CASESENSITIVE: case COLUMNLABEL: case DEFAULT: case FORMAT: case LABEL: case LEFTPAREN: case Not_casesens: case Not_null: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTPAREN: { AST tmp1616_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); AST tmp1617_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMMA: { AST tmp1618_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp1619_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); break; } case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1620_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); break; } case 3: case CASESENSITIVE: case COLUMNLABEL: case DEFAULT: case FORMAT: case LABEL: case Not_casesens: case Not_null: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Not_null: { AST __t2462 = _t; AST tmp1621_AST_in = (AST)_t; match(_t,Not_null); _t = _t.getFirstChild(); AST tmp1622_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); AST tmp1623_AST_in = (AST)_t; match(_t,NULL_KW); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNIQUE: { AST tmp1624_AST_in = (AST)_t; match(_t,UNIQUE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2462; _t = _t.getNextSibling(); break; } case 3: case CASESENSITIVE: case COLUMNLABEL: case DEFAULT: case FORMAT: case LABEL: case Not_casesens: { break; } default: { throw new NoViableAltException(_t); } } } { _loop2467: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case DEFAULT: { AST __t2465 = _t; AST tmp1625_AST_in = (AST)_t; match(_t,DEFAULT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2465; _t = _t.getNextSibling(); break; } case FORMAT: { AST __t2466 = _t; AST tmp1626_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2466; _t = _t.getNextSibling(); break; } case CASESENSITIVE: case Not_casesens: { casesens_or_not(_t); _t = _retTree; break; } default: { break _loop2467; } } } while (true); } _t = __t2457; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1847,
67,
1293,
67,
536,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1847,
67,
1293,
67,
536,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1847,
67,
1293,
67,
536,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1847,
67,
1293,
67,
536,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
... |
if((e.keyCode & SWT.SHIFT) != 0) { | if(e.keyCode == SWT.SHIFT) { | public void keyReleased(KeyEvent e) { if((e.keyCode & SWT.SHIFT) != 0) { forward = true; } else if(((e.keyCode & SWT.ALT) != 0) || ((e.keyCode & SWT.CTRL) != 0)) { ok(dialog, table); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/2674f77faeef32aafb0925d86279381f5cb628c2/CyclePartAction.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/CyclePartAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
498,
26363,
12,
653,
1133,
425,
13,
288,
1082,
202,
430,
12443,
73,
18,
856,
1085,
473,
348,
8588,
18,
23191,
13,
480,
374,
13,
288,
9506,
202,
11565,
273,
638,
31,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
498,
26363,
12,
653,
1133,
425,
13,
288,
1082,
202,
430,
12443,
73,
18,
856,
1085,
473,
348,
8588,
18,
23191,
13,
480,
374,
13,
288,
9506,
202,
11565,
273,
638,
31,
10... |
if (lTasks.next != null) { printError("Expecting only one DetermineReqs Task! ignoring the others"); } handleDetermineRequirementsTask(lTasks.task); | protected void watchDueDetermineRequirementsTasks(Link lTasks) { if (lTasks == null) { // no tasks to add return; } if (lTasks.next != null) { // should be only one determine requirements task printError("Expecting only one DetermineReqs Task! ignoring the others"); } handleDetermineRequirementsTask(lTasks.task); } | 7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/95dfc8a396783e60231cf77d419c7ec6518319ff/StrategicTransportProjectorPlugIn.java/buggy/glm/src/org/cougaar/mlm/plugin/sample/StrategicTransportProjectorPlugIn.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4267,
30023,
8519,
15465,
6685,
12,
2098,
328,
6685,
13,
288,
565,
309,
261,
80,
6685,
422,
446,
13,
288,
1377,
368,
1158,
4592,
358,
527,
1377,
327,
31,
565,
289,
565,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4267,
30023,
8519,
15465,
6685,
12,
2098,
328,
6685,
13,
288,
565,
309,
261,
80,
6685,
422,
446,
13,
288,
1377,
368,
1158,
4592,
358,
527,
1377,
327,
31,
565,
289,
565,
309,
... | |
if (jj_3R_359()) return true; | if (jj_3R_358()) return true; | final private boolean jj_3R_352() { if (jj_3R_359()) return true; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/a180e9b19197c7613f1e73c6ec8a574a17011e5e/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
4763,
22,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4763,
28,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
4763,
22,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4763,
28,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
... |
GrailsControllerClass[] controllerClasses = application.getControllers(); for (int i = 0; i < controllerClasses.length; i++) { GrailsControllerClass controllerClass = controllerClasses[i]; if(controllerClass.isScaffolding()) { try { GrailsScaffolder gs = (GrailsScaffolder)webContext.getBean(controllerClass.getFullName() + "Scaffolder"); if(gs != null) { ScaffoldDomain sd = gs.getScaffoldRequestHandler() .getScaffoldDomain(); GrailsDomainClass dc = application.getGrailsDomainClass(sd.getPersistentClass().getName()); if(dc != null) { sd.setIdentityPropertyName(dc.getIdentifier().getName()); sd.setValidator(dc.getValidator()); } } } catch (NoSuchBeanDefinitionException e) { } } } | GrailsConfigUtils.configureScaffolders(application, webContext); | protected WebApplicationContext createWebApplicationContext(WebApplicationContext parent) throws BeansException { // use config file locations if available getServletContext().setAttribute(GrailsApplicationAttributes.PARENT_APPLICATION_CONTEXT,parent); ApplicationContext grailsContext = (ApplicationContext)getServletContext().getAttribute(GrailsApplicationAttributes.APPLICATION_CONTEXT); GrailsApplication application; WebApplicationContext webContext; if(grailsContext != null) { XmlWebApplicationContext xmlContext = new XmlWebApplicationContext(); xmlContext.setParent(grailsContext); webContext = xmlContext; application = (GrailsApplication) webContext.getBean(GrailsApplication.APPLICATION_ID, GrailsApplication.class); } else { String[] locations = null; if (null != getContextConfigLocation()) { locations = StringUtils.tokenizeToStringArray( getContextConfigLocation(), ConfigurableWebApplicationContext.CONFIG_LOCATION_DELIMITERS); } // construct the SpringConfig for the container managed application application = (GrailsApplication) parent.getBean(GrailsApplication.APPLICATION_ID, GrailsApplication.class); SpringConfig springConfig = new SpringConfig(application); // return a context that obeys grails' settings webContext = new XmlWebApplicationContextDriver().getWebApplicationContext( springConfig.getBeanReferences(), parent, getServletContext(), getNamespace(), locations); getServletContext().setAttribute(GrailsApplicationAttributes.APPLICATION_CONTEXT,webContext ); } // configure scaffolders GrailsControllerClass[] controllerClasses = application.getControllers(); for (int i = 0; i < controllerClasses.length; i++) { GrailsControllerClass controllerClass = controllerClasses[i]; if(controllerClass.isScaffolding()) { try { GrailsScaffolder gs = (GrailsScaffolder)webContext.getBean(controllerClass.getFullName() + "Scaffolder"); if(gs != null) { ScaffoldDomain sd = gs.getScaffoldRequestHandler() .getScaffoldDomain(); GrailsDomainClass dc = application.getGrailsDomainClass(sd.getPersistentClass().getName()); if(dc != null) { sd.setIdentityPropertyName(dc.getIdentifier().getName()); sd.setValidator(dc.getValidator()); } } } catch (NoSuchBeanDefinitionException e) { // ignore } } } SessionFactory sessionFactory = (SessionFactory)webContext.getBean("sessionFactory"); if(sessionFactory != null) { Session session = null; boolean participate = false; // single session mode if (TransactionSynchronizationManager.hasResource(sessionFactory)) { // Do not modify the Session: just set the participate flag. participate = true; } else { logger.debug("Opening single Hibernate session in GrailsDispatcherServlet"); session = SessionFactoryUtils.getSession(sessionFactory,true); session.setFlushMode(FlushMode.AUTO); TransactionSynchronizationManager.bindResource(sessionFactory, new SessionHolder(session)); } // init the Grails application try { GrailsBootstrapClass[] bootstraps = application.getGrailsBootstrapClasses(); for (int i = 0; i < bootstraps.length; i++) { bootstraps[i].callInit( getServletContext() ); } } finally { if (!participate) { // single session mode TransactionSynchronizationManager.unbindResource(sessionFactory); logger.debug("Closing single Hibernate session in GrailsDispatcherServlet"); try { SessionFactoryUtils.releaseSession(session, sessionFactory); } catch (RuntimeException ex) { logger.error("Unexpected exception on closing Hibernate Session", ex); } } } } return webContext; } | 50670 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50670/04f193f0e66f9c5be193bfb55dedb30f64a85620/GrailsDispatcherServlet.java/buggy/src/web/org/codehaus/groovy/grails/web/servlet/GrailsDispatcherServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
25555,
1042,
752,
4079,
28278,
12,
4079,
28278,
982,
13,
1216,
4823,
634,
503,
288,
3639,
368,
999,
642,
585,
7838,
309,
2319,
3639,
29015,
7675,
542,
1499,
12,
14571,
14573,
3208,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25555,
1042,
752,
4079,
28278,
12,
4079,
28278,
982,
13,
1216,
4823,
634,
503,
288,
3639,
368,
999,
642,
585,
7838,
309,
2319,
3639,
29015,
7675,
542,
1499,
12,
14571,
14573,
3208,
... |
startTimerTaskToTimeOutSGCtxt(); | public ConfigurationContext(AxisConfiguration axisConfiguration) { super(null); this.axisConfiguration = axisConfiguration; startTimerTaskToTimeOutSGCtxt(); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/4b372d275040f7c1650985ea8bcf6dfe89022b7f/ConfigurationContext.java/clean/modules/core/src/org/apache/axis2/context/ConfigurationContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4659,
1042,
12,
6558,
1750,
2654,
1750,
13,
288,
3639,
2240,
12,
2011,
1769,
3639,
333,
18,
4890,
1750,
273,
2654,
1750,
31,
6647,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
4659,
1042,
12,
6558,
1750,
2654,
1750,
13,
288,
3639,
2240,
12,
2011,
1769,
3639,
333,
18,
4890,
1750,
273,
2654,
1750,
31,
6647,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
return _idField; | return _identity; | public FieldDesc getIdentityField() { return _idField; } | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/b710d52e192b175ba901cb44c36d6ad5701f66e6/ObjectDesc.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/mapping/ObjectDesc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2286,
4217,
20066,
974,
1435,
565,
288,
202,
2463,
389,
10781,
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,
... | [
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2286,
4217,
20066,
974,
1435,
565,
288,
202,
2463,
389,
10781,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public static void log(String bundleId, Throwable exception) { Bundle bundle = Platform.getBundle(bundleId); if (bundle == null) return; IStatus status = new Status(IStatus.ERROR, bundleId, IStatus.ERROR, exception.getMessage() == null ? "" : exception.getMessage(), //$NON-NLS-1$ exception); Platform.getLog(bundle).log(status); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/f94aefa74aecdb7fc7f8197cf849f8d8940f1f49/BundleUtility.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/util/BundleUtility.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
6459,
1330,
12,
780,
9991,
548,
16,
15155,
4064,
15329,
3405,
9991,
33,
8201,
18,
588,
3405,
12,
9991,
548,
1769,
430,
12,
9991,
631,
2011,
13,
2463,
31,
45,
1482,
2327,
33,
2704... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
1330,
12,
780,
9991,
548,
16,
15155,
4064,
15329,
3405,
9991,
33,
8201,
18,
588,
3405,
12,
9991,
548,
1769,
430,
12,
9991,
631,
2011,
13,
2463,
31,
45,
1482,
2327,
33,
2704... | ||
if (showIdParam != null) showId = showIdParam.equalsIgnoreCase("true"); | if (showIdParam != null) { if(showIdParam.equals("element")) showId = EXIST_ID_ELEMENT; else if(showIdParam.equals("all")) showId = EXIST_ID_ALL; else showId = EXIST_ID_NONE; } | public NativeSerializer(DBBroker broker, Configuration config) { super(broker, config); String showIdParam = (String) config.getProperty("serialization.add-exist-id"); if (showIdParam != null) showId = showIdParam.equalsIgnoreCase("true"); } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/bd6906f52069c6612f3a61229c258c275e3c12f1/NativeSerializer.java/buggy/src/org/exist/storage/serializers/NativeSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16717,
6306,
12,
2290,
11194,
8625,
16,
4659,
642,
13,
288,
202,
202,
9565,
12,
21722,
16,
642,
1769,
202,
202,
780,
2405,
548,
786,
273,
1082,
202,
12,
780,
13,
642,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16717,
6306,
12,
2290,
11194,
8625,
16,
4659,
642,
13,
288,
202,
202,
9565,
12,
21722,
16,
642,
1769,
202,
202,
780,
2405,
548,
786,
273,
1082,
202,
12,
780,
13,
642,
18,
58... |
if (doneSteps >= steps && item.colSpan != 1) { | if (doneSteps >= steps && item.colSpan != 1 && i != this.focusedIndex) { | protected Item shiftFocus(boolean forwardFocus, int steps, Item[] items) { //#if polish.css.colspan int i = this.focusedIndex; if (steps != 0) { //System.out.println("ShiftFocus: steps=" + steps + ", forward=" + forwardFocus); int doneSteps = 0; steps = Math.abs( steps ) + 1; Item item = this.parentContainer.items[i]; while( doneSteps <= steps) { doneSteps += item.colSpan; if (doneSteps >= steps) { //System.out.println("bailing out at too many steps: focusedIndex=" + this.focusedIndex + ", startIndex=" + i + ", steps=" + steps + ", doneSteps=" + doneSteps); break; } if (forwardFocus) { i++; if (i == items.length - 1 ) { i = items.length - 2; break; } else if (i == items.length) { i = items.length - 1; break; } } else { i--; if (i < 0) { i = 1; break; } } item = items[i]; //System.out.println("focusedIndex=" + this.focusedIndex + ", startIndex=" + i + ", steps=" + steps + ", doneSteps=" + doneSteps); } if (doneSteps >= steps && item.colSpan != 1) { if (forwardFocus) { i--; if (i < 0) { i = items.length - 1; } //System.out.println("forward: Adjusting startIndex to " + i ); } else { i = (i + 1) % items.length; //System.out.println("backward: Adjusting startIndex to " + i ); } } } //#else //# int i = this.focusedIndex + steps; if (i > this.parentContainer.items.length) { i = this.parentContainer.items.length - 2; } if (i < 0) { i = 1; } //#endif //TODO check how to integrate cycling in containers // //#if polish.Container.allowCycling != false // boolean allowCycle = this.enableScrolling && this.allowCycling; // if (allowCycle) { // //#if polish.css.scroll-mode // if (!this.scrollSmooth) { // if (forwardFocus) { // // when you scroll to the bottom and // // there is still space, do // // scroll first before cycling to the // // first item: // allowCycle = (this.yOffset + this.itemHeight <= this.yBottom); // } else { // // when you scroll to the top and // // there is still space, do // // scroll first before cycling to the // // last item: // allowCycle = (this.yOffset == 0); // } // } else { // //#endif // if (forwardFocus) { // // when you scroll to the bottom and // // there is still space, do // // scroll first before cycling to the // // first item: // allowCycle = (this.targetYOffset + this.itemHeight <= this.yBottom); // } else { // // when you scroll to the top and // // there is still space, do // // scroll first before cycling to the // // last item: // allowCycle = (this.targetYOffset == 0); // } // //#if polish.css.scroll-mode // } // //#endif // //#debug // System.out.println("shiftFocus: allowCycl=" + allowCycle + ", isFoward=" + forwardFocus + ", targetYOffset=" + this.targetYOffset + ", yOffset=" + this.yOffset ); // } // //#endif boolean allowCycle = true; Item nextItem = null; while (true) { if (forwardFocus) { i++; if (i >= items.length) { //#if polish.Container.allowCycling != false if (allowCycle) { allowCycle = false; i = 0; } else { break; } //#else break; //#endif } } else { i--; if (i < 0) { //#if polish.Container.allowCycling != false if (allowCycle) { allowCycle = false; i = items.length - 1; } else { break; } //#else break; //#endif } } nextItem = items[i]; if (nextItem.appearanceMode != Item.PLAIN) { break; } } if (nextItem == null || nextItem.appearanceMode == Item.PLAIN || nextItem == this.focusedItem) { return null; } int direction = Canvas.UP; if (forwardFocus) { direction = Canvas.DOWN; } focusItem(i, nextItem ); return nextItem; } | 9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/5f670e7fa8df34bb7576a059f1bd00fd04553fa3/ContainerView.java/buggy/j2me/source/src/de/enough/polish/ui/ContainerView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4342,
4654,
9233,
12,
6494,
5104,
9233,
16,
509,
6075,
16,
4342,
8526,
1516,
13,
288,
202,
202,
759,
7,
430,
2952,
1468,
18,
5212,
18,
1293,
3969,
1082,
202,
474,
277,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4342,
4654,
9233,
12,
6494,
5104,
9233,
16,
509,
6075,
16,
4342,
8526,
1516,
13,
288,
202,
202,
759,
7,
430,
2952,
1468,
18,
5212,
18,
1293,
3969,
1082,
202,
474,
277,
273,
... |
_name.setBounds( x + ((newW - nameSize.width) / 2), y + vPadding, nameSize.width, nameSize.height); | _name.setBounds(x + ((newW - nameSize.width) / 2), y + vPadding, nameSize.width, nameSize.height); | public void setExtensionPointVisible(boolean isVisible) { // Record our current bounds for later use Rectangle oldBounds = getBounds(); // First case is where the extension points are currently displayed and // we are asked to turn them off. if (_epVec.isDisplayed() & (!isVisible)) { // Tell GEF that we are starting to make a change. Loop through the // epVec marking each element as not visible. startTrans(); Enumeration enum = _epVec.getFigs().elements(); while (enum.hasMoreElements()) { ((Fig) (enum.nextElement())).setDisplayed(false); } // Mark the vector itself and the separator as not displayed _epVec.setDisplayed(false); _epSep.setDisplayed(false); // Redo the bounds and then tell GEF the change has finished setBounds( oldBounds.x, oldBounds.y, oldBounds.width, oldBounds.height); endTrans(); } // Second case is where the extension points are not currently // displayed and we are asked to turn them on. else if ((!_epVec.isDisplayed()) & isVisible) { // Tell GEF that we are starting to make a change. Loop through the // epVec marking each element as visible. startTrans(); Enumeration enum = _epVec.getFigs().elements(); while (enum.hasMoreElements()) { ((Fig) (enum.nextElement())).setDisplayed(true); } // Mark the vector itself and the separator as displayed _epVec.setDisplayed(true); _epSep.setDisplayed(true); // Redo the bounds and then tell GEF the change has finished setBounds( oldBounds.x, oldBounds.y, oldBounds.width, oldBounds.height); endTrans(); } } /** * <p>Creates a set of handles for dragging generalization/specializations * or associations.</p> * * @return The new selection object (a GEF entity). */ public Selection makeSelection() { return new SelectionUseCase(this); } /** * <p>Associate this fig with a particular NSUML object.</p> * * <p>Associates the node with the "bigPort" that is the whole of this * object.</p> * * <p>Must be public, since called directly, e.g. by the load routines.</p> * * @param node The NSUML object to associate with this fig. */ public void setOwner(Object node) { super.setOwner(node); bindPort(node, _bigPort); } /** * <p>Compute the minimum acceptable size of the use case.</p> * * <p>We work out the minimum size of the text box, and from that the radii * of the enclosing ellipse.</p> * * @return The dimensions of the smallest size bounding box of the use * case. */ public Dimension getMinimumSize() { Dimension textSize = _getTextSize(); Dimension _size = _calcEllipse(textSize, _MIN_VERT_PADDING); return new Dimension( Math.max(_size.width, 100), Math.max(_size.height, 60)); } /** * <p>A private utility routine to calculate the minimum size of the * rectangle to hold the name and extension points (if displayed).</p> * * @return The dimensions of the rectangle */ private Dimension _getTextSize() { Dimension minSize = _name.getMinimumSize(); // Now allow for the extension points, if they are displayed if (_epVec.isDisplayed()) { // Allow for a separator (spacer each side + 1 pixel width line) minSize.height += 2 * _SPACER + 1; // Loop through all the extension points, to find the widest // (remember the first fig is the box for the whole lot, so ignore // it). Enumeration enum = _epVec.getFigs().elements(); enum.nextElement(); // ignore while (enum.hasMoreElements()) { int elemWidth = ((FigText) enum.nextElement()).getMinimumSize().width; minSize.width = Math.max(minSize.width, elemWidth); } // Height allows one row for each extension point (remember to // ignore the first element, which is the box for the lot), subject // to there always being space for at least one extension point. minSize.height += ROWHEIGHT * Math.max(1, _epVec.getFigs().size() - 1); } return minSize; } /** * <p>A private utility to calculate the bounding oval for the given * rectangular text box.</p> * * <p>To sufficiently constrain the problem, we define that there is a gap * given by the parameter <code>vertPadding</code> above the top of the * box to the top of the oval.</p> * * <p>All computations are done in double, and then converted to integer at * the end.</p> * * @param rectSize The dimensions of the rectangle to be bounded * * @param vertPadding The padding between the top of the box and the top * of the ellipse. * * @return The dimensions of the required oval */ private Dimension _calcEllipse(Dimension rectSize, int vertPadding) { // Work out the radii of the ellipse, a and b. The top right corner of // the ellipse (Cartesian coordinates, centred on the origin) will be // at (x,y) double a; double b = ((double) rectSize.height) / 2.0 + (double) vertPadding; double x = ((double) rectSize.width) / 2.0; double y = ((double) rectSize.height) / 2.0; // Formula for a is described in the overall class description. a = (x * b) / Math.sqrt(b * b - y * y); // Result as integers, rounded up. We ensure that the radii are // integers for convenience. return new Dimension( ((int) (Math.ceil(a)) * 2), ((int) (Math.ceil(b)) * 2)); } /** * <p>Change the boundary of the use case.</p> * * <p>If we are called with less than the minimum size, we impose the * minimum size.</p> * * <p>We place the name and extension points at the centre of the * rectangle.</p> * * <p>Set the bounds of all components of the Fig.</p> * * @param x X coordinate of upper left corner * * @param y Y coordinate of upper left corner * * @param w width of bounding box * * @param h height of bounding box */ public void setBounds(int x, int y, int w, int h) { // Remember where we are at present, so we can tell GEF later. Then // check we are as big as the minimum size Rectangle oldBounds = getBounds(); Dimension minSize = getMinimumSize(); int newW = (minSize.width > w) ? minSize.width : w; int newH = (minSize.height > h) ? minSize.height : h; // Work out the size of the name and extension point rectangle, and // hence the vertical padding Dimension textSize = _getTextSize(); int vPadding = (newH - textSize.height) / 2; // Adjust the alignment of the name. Dimension nameSize = _name.getMinimumSize(); _name.setBounds( x + ((newW - nameSize.width) / 2), y + vPadding, nameSize.width, nameSize.height); // Place extension points if they are showing if (_epVec.isDisplayed()) { // currY tracks the current vertical position of each element. The // separator is _SPACER pixels below the name. Its length is // calculated from the formula for an ellipse. int currY = y + vPadding + nameSize.height + _SPACER; int sepLen = 2 * (int) (_calcX(((double) newW) / 2.0, ((double) newH) / 2.0, ((double) newH) / 2.0 - ((double) (currY - y)))); _epSep.setShape( x + (newW - sepLen) / 2, currY, x + (newW + sepLen) / 2, currY); // Extension points are 1 pixel for the line and _SPACER gap below // the separator currY += 1 + _SPACER; // Use the utility routine getUpdatedSize to move the extension // point figures. We can discard the result of this routine. For // now we assume that extension points are the width of the overall // text rectangle (true unless the name is wider than any EP). Dimension epSize = getUpdatedSize( _epVec, x + ((newW - textSize.width) / 2), currY, textSize.width, textSize.height - nameSize.height - _SPACER * 2 - 1); } // Set the bounds of the bigPort and cover _bigPort.setBounds(x, y, newW, newH); _cover.setBounds(x, y, newW, newH); // Record the changes in the instance variables of our parent, tell GEF // and trigger the edges to reconsider themselves. _x = x; _y = y; _w = newW; _h = newH; firePropChange("bounds", oldBounds, getBounds()); updateEdges(); } /** * <p>Private utility routine to work out the (positive) x coordinate of a * point on an oval, given the radii and y coordinate.</p> * * @param a radius in X direction * * @param b radius in Y direction * * @param y Y coordinate * * @return Positive X coordinate for the given Y coordinate */ private double _calcX(double a, double b, double y) { return (a * Math.sqrt(b * b - y * y)) / b; } /** * <p>Set the line colour for the use case oval.</p> * * <p>This involves setting the _cover oval, not the bigPort.</p> * * @param col The colour desired. */ public void setLineColor(Color col) { _cover.setLineColor(col); } /** * <p>Get the line colour for the use case oval.</p> * * <p>This involves getting the _cover oval colour, not the bigPort.</p> * * @return The colour in use. */ public Color getLineColor() { return _cover.getLineColor(); } /** * <p>Set the fill colour for the use case oval.</p> * * <p>This involves setting the _cover oval, not the bigPort.</p> * * @param col The colour desired. */ public void setFillColor(Color col) { _cover.setFillColor(col); } /** * <p>Get the line colour for the use case oval.</p> * * <p>This involves getting the _cover oval colour, not the bigPort.</p> * * @return The colour in use. */ public Color getFillColor() { return _cover.getFillColor(); } /** * <p>Set whether the use case oval is to be filled.</p> * * <p>This involves setting the _cover oval, not the bigPort.</p> * * @param f <code>true</code> if the oval is to be filled, * <code>false</code> if not. */ public void setFilled(boolean f) { _cover.setFilled(f); } /** * <p>Get whether the use case oval is to be filled.</p> * * <p>This involves getting the _cover oval, not the bigPort.</p> * * @return <code>true</code> if the oval is to be filled, * <code>false</code> if not. */ public boolean getFilled() { return _cover.getFilled(); } /** * <p>Set the line width for the use case oval.</p> * * <p>This involves setting the _cover oval, not the bigPort.</p> * * @param w The line width desired. */ public void setLineWidth(int w) { _cover.setLineWidth(w); } /** * <p>Get the line width for the use case oval.</p> * * <p>This involves getting the _cover oval colour, not the bigPort.</p> * * @return The line width set. */ public int getLineWidth() { return _cover.getLineWidth(); } /** * <p>FigMyCircle is a FigCircle with corrected connectionPoint method: * this methods calculates where a connected edge ends.</p> */ public class FigMyCircle extends FigCircle { protected Category cat = Category.getInstance(FigMyCircle.class); /** * <p>Constructor just invokes the parent constructor.</p> * * @param x X coordinate of the upper left corner of the bounding * box. * * @param y Y coordinate of the upper left corner of the bounding * box. * * @param w Width of the bounding box. * * @param h Height of the bounding box. * * @param lColor Line colour of the fig. * * @param fColor Fill colour of the fig. */ public FigMyCircle( int x, int y, int w, int h, Color lColor, Color fColor) { super(x, y, w, h, lColor, fColor); } /** * <p>Compute the border point of the elipse that is on the edge * between the stored upper left corner and the given parameter.</p> * * @param anotherPt The remote point to which an edge is drawn. * * @return The connection point on the boundary of the * elipse. */ public Point connectionPoint(Point anotherPt) { double rx = _w / 2; double ry = _h / 2; double dx = anotherPt.x - _x; double dy = anotherPt.y - _y; double dd = ry * ry * dx * dx + rx * rx * dy * dy; double mu = rx * ry / Math.sqrt(dd); Point res = new Point((int) (mu * dx + _x + rx), (int) (mu * dy + _y + ry)); cat.debug(" returns " + res.x + ',' + res.y + ')'); return res; } } /////////////////////////////////////////////////////////////////////////// // // Event handlers // /////////////////////////////////////////////////////////////////////////// /** * <p>React to a mouse key being pressed.</p> * * @param me The mouse action that caused us to be invoked. */ public void mousePressed(MouseEvent me) { // Deal with anything from the parent first super.mousePressed(me); // If we are currently selected, turn off the draggable buttons at each // side, and unhighlight any currently selected extension points. Editor ce = Globals.curEditor(); Selection sel = ce.getSelectionManager().findSelectionFor(this); if (sel instanceof SelectionUseCase) { ((SelectionUseCase) sel).hideButtons(); } unhighlight(); // Display extension point properties if necessary. Look to see if the // mouse (2x2 pixels) hit the extension point compartment. Use a flag // to track this. Rectangle r = new Rectangle(me.getX() - 1, me.getY() - 1, 2, 2); Fig f = hitFig(r); boolean targetIsSet = false; if (f == _epVec) { // Work out which extension point this corresponds to. Each EP // takes ROWHEIGHT pixels, so take the difference between the // centre of the mouse (me.getY() - 1) and the top of the epVec // (f.getY()) and integer divide by ROWHEIGHT. Vector v = _epVec.getFigs(); int i = (me.getY() - f.getY() - 1) / ROWHEIGHT; // If we are in the range of the EP list size (avoids any nasty // boundary overflows), we can select that EP entry. Make this // entry the target Fig, and note that we do have a // target. Remember that the first entry in the vector is the // bigPort itself. if ((i >= 0) && (i < (v.size() - 1))) { targetIsSet = true; f = (Fig) v.elementAt(i + 1); _highlightedFigText = (CompartmentFigText) f; _highlightedFigText.setHighlighted(true); } } // If we didn't get the EP compartment, we just select ourself. if (!targetIsSet) { ProjectBrowser.TheInstance.setTarget(getOwner()); } } /** * <p>Deal with the mouse leaving the fig. Unhighlight the fig.</p> * * @param me The mouse action that caused us to be invoked. */ public void mouseExited(MouseEvent me) { super.mouseExited(me); unhighlight(); } /** * <p>Deal with a key being pressed.</p> * * <p>We deal with UP and DOWN, and use these to move through the list * of selected extension points. We deal with ENTER and use that to start * the text editor.</p> * * @param ke The key event that caused us to be invoked. */ public void keyPressed(KeyEvent ke) { int key = ke.getKeyCode(); // For UP and DOWN cycle through the extension points. if ((key == KeyEvent.VK_UP) || (key == KeyEvent.VK_DOWN)) { // Find the currently highlighted EP (if any) and unhighlight it CompartmentFigText ft = unhighlight(); if (ft != null) { int i = _epVec.getFigs().indexOf(ft); // If we found one of the current EP's move forward or // backwards as appopriate, and set a newly selected EP as // highlighted if (i != -1) { if (key == KeyEvent.VK_UP) { ft = getPreviousVisibleFeature(_epVec, i); } else { ft = getNextVisibleFeature(_epVec, i); } if (ft != null) { ft.setHighlighted(true); _highlightedFigText = ft; return; } } } } // For ENTER start editing any text that is highlighted, remembering to // consume the ENTER event. else if ((key == KeyEvent.VK_ENTER) && (_highlightedFigText != null)) { _highlightedFigText.startTextEditor(ke); ke.consume(); return; } // Anything else defer to our parent. else { super.keyPressed(ke); } } /////////////////////////////////////////////////////////////////////////// // // Internal methods // /////////////////////////////////////////////////////////////////////////// /** * <p>Invoked when text has been edited.</p> * * <p>We check that it is one of the extension point compartments and then * parse accordingly.</p> * * @param ft The text that has been edited. */ protected void textEdited(FigText ft) throws PropertyVetoException { // Let the parent do anything it wants first super.textEdited(ft); // Only works if we have an owner MUseCase useCase = (MUseCase) getOwner(); if (useCase == null) { return; } // Give up if we are not one of the extension points int i = _epVec.getFigs().indexOf(ft); if (i == -1) { return; } // Mark the text as highlighted, then parse it CompartmentFigText highlightedFigText = (CompartmentFigText) ft; highlightedFigText.setHighlighted(true); MExtensionPoint ep = (MExtensionPoint) (highlightedFigText.getOwner()); String text = highlightedFigText.getText().trim(); ParserDisplay.SINGLETON.parseExtensionPointFig(useCase, ep, text); return; } /** * <p>Private method to find the previous visible feature to highlight.</p> * * <p>We're passed in a group (which will be the extension point vector) * and the currently highlighted fig (a member of that vector).</p> * * @param fgVec A fig group (invariably the extension point vector) in * which to seek the previous visible feature. * * @param i The index of the currently selected entry in * <code>fgVec</code>. * * @return The new fig to use. */ private CompartmentFigText getPreviousVisibleFeature( FigGroup fgVec, int i) { // Give up if the index we don't have a vector, or the index is less // than 1 (the 0th entry is the bigPort surrounding all entries) if ((fgVec == null) || (i < 1)) { return null; } // Give up if we are off the top of the vector, or the indentified // element is not displayed Vector v = fgVec.getFigs(); if ((i >= v.size()) || (!((FigText) v.elementAt(i)).isDisplayed())) { return null; } // Loop backwards through until we find an entry that is displayed. We // know this will terminate, since the current element is displayed CompartmentFigText cft = null; do { i = (i <= 1) ? i - 1 : v.size() - 1; cft = (CompartmentFigText) v.elementAt(i); } while (!cft.isDisplayed()); return cft; } /** * <p>Private method to find the next visible feature to highlight.</p> * * <p>We're passed in a group (which will be the extension point vector) * and the currently highlighted fig (a member of that vector).</p> * * @param fgVec A fig group (invariably the extension point vector) in * which to seek the next visible feature. * * @param i The index of the currently selected entry in * <code>fgVec</code>. * * @return The new fig to use. */ private CompartmentFigText getNextVisibleFeature(FigGroup fgVec, int i) { // Give up if the index we don't have a vector, or the index is less // than 1 (the 0th entry is the bigPort surrounding all entries) if ((fgVec == null) || (i < 1)) { return null; } // Give up if we are off the top of the vector, or the indentified // element is not displayed Vector v = fgVec.getFigs(); if ((i >= v.size()) || (!((FigText) v.elementAt(i)).isDisplayed())) { return null; } // Loop forwards through until we find an entry that is displayed. We // know this will terminate, since the current element is displayed CompartmentFigText cft = null; do { i = (i >= (v.size() - 1)) ? 1 : i + 1; cft = (CompartmentFigText) v.elementAt(i); } while (!cft.isDisplayed()); return cft; } /** * <p>Create a new "feature" (extension point) in the use case fig.</p> * * <p>Extension points are not strictly features, but that is a historical * accident of naming. This creates a new entry in the extension point * vector.</p> * * @param fg The fig group to which this applies (which must be the * extension point vector). * * @param ie The input event that triggered us. In the current * implementation a mouse double click. */ protected void createFeatureIn(FigGroup fg, InputEvent ie) { // Give up if we don't have an owner if (getOwner() == null) { return; } // Invoke the relevant action method to create an empty extension // point, then start the editor, assuming we successfully created an // extension point. ActionAddExtensionPoint.singleton().actionPerformed(null); CompartmentFigText ft = (CompartmentFigText) fg.getFigs().lastElement(); if (ft != null) { ft.startTextEditor(ie); ft.setHighlighted(true); _highlightedFigText = ft; } } /** * <p>Private utility to unhighlight any currently selected extension * point.</p> * * @return The extension point that was unhighlighted. */ private CompartmentFigText unhighlight() { // Loop through the vector of extension points, until we find a // highlighted one. Vector v = _epVec.getFigs(); int i; for (i = 1; i < v.size(); i++) { CompartmentFigText ft = (CompartmentFigText) v.elementAt(i); if (ft.isHighlighted()) { ft.setHighlighted(false); _highlightedFigText = null; return ft; } } // None were highlighted return null; } /** * <p>Adjust the fig in the light of some change to the model.</p> * * <p>Called both when there has been a change to notation, and when there * has been an NSUML event.</p> */ protected void modelChanged(MElementEvent mee) { // Let our superclass sort itself out first super.modelChanged(mee); if (mee == null || mee.getName().equals("extensionPoint") || mee.getSource() instanceof MExtensionPoint) { updateExtensionPoint(); return; } if (mee == null || mee.getName().equals("isAbstract")) { updateNameText(); } } /** * Updates the extensionpoints in the fig */ protected void updateExtensionPoint() { // Give up if we have no owner MUseCase useCase = (MUseCase) getOwner(); if (useCase == null) { return; } // Note our current bounds Rectangle oldBounds = getBounds(); // Loop through all the extension points. epCount keeps track of the // fig's index as we go through the extension points. Collection eps = UmlHelper.getHelper().getUseCases().getExtensionPoints(useCase); int epCount = 1; if (eps != null) { int xpos = _epBigPort.getX(); int ypos = _epBigPort.getY(); // Take each EP and its corresponding fig in turn Iterator iter = eps.iterator(); Vector figs = _epVec.getFigs(); while (iter.hasNext()) { CompartmentFigText epFig; MExtensionPoint ep = (MExtensionPoint) iter.next(); // If we don't have a fig for this EP, we'll need to add // one. We set the bounds, but they will be reset later. if (figs.size() <= epCount) { epFig = new CompartmentFigText( xpos, ypos + (epCount - 1) * ROWHEIGHT, 0, ROWHEIGHT, _epBigPort); epFig.setFilled(false); epFig.setLineWidth(0); epFig.setFont(LABEL_FONT); epFig.setTextColor(Color.black); epFig.setJustification(FigText.JUSTIFY_LEFT); epFig.setMultiLine(false); _epVec.addFig(epFig); } else { epFig = (CompartmentFigText) figs.elementAt(epCount); } // Now put the text in // We must handle the case where the text is null String epText = Notation.generate(this, ep); if (epText == null) { epText = ""; } epFig.setText(epText); epFig.setOwner(ep); epCount++; } // Remove any spare figs we have if there are now fewer extension // points than figs if (figs.size() > epCount) { for (int i = figs.size() - 1; i >= epCount; i--) { _epVec.removeFig((Fig) figs.elementAt(i)); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/74386f3b9b69b740769ab0d20156aed6261144ec/FigUseCase.java/clean/src_new/org/argouml/uml/diagram/use_case/ui/FigUseCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3625,
2148,
6207,
12,
6494,
20453,
13,
288,
3639,
368,
5059,
3134,
783,
4972,
364,
5137,
999,
3639,
13264,
1592,
5694,
273,
22107,
5621,
3639,
368,
5783,
648,
353,
1625,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3625,
2148,
6207,
12,
6494,
20453,
13,
288,
3639,
368,
5059,
3134,
783,
4972,
364,
5137,
999,
3639,
13264,
1592,
5694,
273,
22107,
5621,
3639,
368,
5783,
648,
353,
1625,
3... |
public org.quickfix.field.TradingSessionSubID getTradingSessionSubID() throws FieldNotFound { org.quickfix.field.TradingSessionSubID value = new org.quickfix.field.TradingSessionSubID(); | public quickfix.field.TradingSessionSubID getTradingSessionSubID() throws FieldNotFound { quickfix.field.TradingSessionSubID value = new quickfix.field.TradingSessionSubID(); | public org.quickfix.field.TradingSessionSubID getTradingSessionSubID() throws FieldNotFound { org.quickfix.field.TradingSessionSubID value = new org.quickfix.field.TradingSessionSubID(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityTypeRequest.java/clean/src/java/src/quickfix/fix44/SecurityTypeRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
1676,
734,
336,
1609,
7459,
2157,
1676,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
1676,
734,
336,
1609,
7459,
2157,
1676,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
... |
handleSelection(); | handleSelect(); | public void createControl(Composite parent) { Composite container = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); layout.numColumns=3; container.setLayout(layout); selectionLabel= new Label(container,SWT.NULL); selectionLabel.setText(ServiceArchiver.getResourceString("page5.selectwsdl.caption")); GridData gd = new GridData(GridData.FILL_HORIZONTAL); wsdlTextBox = new Text(container,SWT.BORDER); wsdlTextBox.setLayoutData(gd); wsdlTextBox.setText(settings.get(PREF_WSDL_FILE_NAME)); wsdlTextBox.addModifyListener(new ModifyListener(){ public void modifyText(ModifyEvent e){ handleModify(); } }); browseButton = new Button(container,SWT.PUSH); browseButton.setText(ServiceArchiver.getResourceString("general.browse")); browseButton.addMouseListener(new MouseAdapter(){ public void mouseUp(MouseEvent e) { handleBrowse(); } }); gd = new GridData(); gd.horizontalSpan = 2; autoGenerateWSDLCheckButton = new Button(container,SWT.CHECK); autoGenerateWSDLCheckButton.setLayoutData(gd); autoGenerateWSDLCheckButton.setText(ServiceArchiver.getResourceString("page5.generateauto.caption")); autoGenerateWSDLCheckButton.setSelection(settings.getBoolean(PREF_CHECK_WSDL_GENERATE)); autoGenerateWSDLCheckButton.addSelectionListener(new SelectionListener(){ public void widgetSelected(SelectionEvent e){ handleSelection(); } public void widgetDefaultSelected(SelectionEvent e){} }); autoGenerateWSDLCheckButton.setToolTipText(ServiceArchiver.getResourceString("page5.autogen.tooltip")); //////////////////////////////////////// // enable the automatic generation box autoGenerateWSDLCheckButton.setEnabled(true); /////////////////////////////////////// //add an empty lable new Label(container,SWT.NONE); gd = new GridData(); gd.horizontalSpan = 2; skipWSDLCheckButton = new Button(container,SWT.CHECK); skipWSDLCheckButton.setText(ServiceArchiver.getResourceString("page5.skipWSDL.caption")); skipWSDLCheckButton.setLayoutData(gd); skipWSDLCheckButton.setSelection(settings.getBoolean(PREF_CHECK_SKIP_WSDL)); //////////////////////////////////////// // enable the skip check box skipWSDLCheckButton.setEnabled(true); /////////////////////////////////////// skipWSDLCheckButton.addSelectionListener(new SelectionListener(){ public void widgetSelected(SelectionEvent e){ handleSkip(); } public void widgetDefaultSelected(SelectionEvent e){} }); setControl(container); if (restoredFromPreviousSettings){ handleSkip(); if (!skipWSDLCheckButton.getSelection()){ handleSelection(); } } } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/409a33aa4f0313961be7b0a141802123ddde18bf/WSDLFileSelectionPage.java/clean/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service/eclipse/ui/WSDLFileSelectionPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
13,
288,
3639,
14728,
1478,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
3639,
7145,
3744,
3511,
273,
394,
7145,
3744,
5621,
3639,
3511,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
3367,
12,
9400,
982,
13,
288,
3639,
14728,
1478,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
3639,
7145,
3744,
3511,
273,
394,
7145,
3744,
5621,
3639,
3511,
... |
System.err.println("[WARNING] " + message); | ruby.getRuntime().getErrorStream().println("[WARNING] " + message); | public void rb_warning(String message) { System.err.println("[WARNING] " + message); } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/ParserHelper.java/buggy/org/jruby/parser/ParserHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7138,
67,
8551,
12,
780,
883,
13,
288,
3639,
22155,
18,
588,
5576,
7675,
588,
668,
1228,
7675,
8222,
2932,
63,
9511,
65,
315,
397,
883,
1769,
565,
289,
2,
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,
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,
7138,
67,
8551,
12,
780,
883,
13,
288,
3639,
22155,
18,
588,
5576,
7675,
588,
668,
1228,
7675,
8222,
2932,
63,
9511,
65,
315,
397,
883,
1769,
565,
289,
2,
-100,
-100,
-100,
... |
public Component add(Component arg0) | public Component add(Component c) | public Component add(Component arg0) { return subPanel.add(arg0); } | 50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/b3d69009f0ae3b98fd54dc5eda4cf92b9ec7aab6/VerticalPanel.java/clean/src/core/org/apache/jmeter/gui/util/VerticalPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5435,
527,
12,
1841,
276,
13,
565,
288,
3639,
327,
720,
5537,
18,
1289,
12,
3175,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
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,
5435,
527,
12,
1841,
276,
13,
565,
288,
3639,
327,
720,
5537,
18,
1289,
12,
3175,
20,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return "02.05.06.00"; | return "02.05.07.00"; | public static String getBuild() { // (major) (minor) (<99 = preX, 99 = final) (bug fix) return "02.05.06.00"; } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/9b7d117e7192b57d5d7aedee24105e9940a01aa4/jEdit.java/clean/org/gjt/sp/jedit/jEdit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
21122,
1435,
202,
95,
202,
202,
759,
261,
14019,
13,
261,
17364,
13,
261,
32,
2733,
273,
675,
60,
16,
14605,
273,
727,
13,
261,
925,
2917,
13,
202,
202,
2463,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
514,
21122,
1435,
202,
95,
202,
202,
759,
261,
14019,
13,
261,
17364,
13,
261,
32,
2733,
273,
675,
60,
16,
14605,
273,
727,
13,
261,
925,
2917,
13,
202,
202,
2463,
315,... |
getFixDeprecationProposals(context, coveringNode, resultingCollections); | public IJavaCompletionProposal[] getAssists(IInvocationContext context, IProblemLocation[] locations) throws CoreException { ASTNode coveringNode= context.getCoveringNode(); if (coveringNode != null) { ArrayList resultingCollections= new ArrayList(); boolean noErrorsAtLocation= noErrorsAtLocation(locations); // quick assists that show up also if there is an error/warning getRenameLocalProposals(context, coveringNode, locations, noErrorsAtLocation, resultingCollections); if (noErrorsAtLocation) { getCatchClauseToThrowsProposals(context, coveringNode, resultingCollections); getAssignToVariableProposals(context, coveringNode, resultingCollections); getAssignParamToFieldProposals(context, coveringNode, resultingCollections); getUnWrapProposals(context, coveringNode, resultingCollections); getSplitVariableProposals(context, coveringNode, resultingCollections); getJoinVariableProposals(context, coveringNode, resultingCollections); getAddFinallyProposals(context, coveringNode, resultingCollections); getAddElseProposals(context, coveringNode, resultingCollections); getAddBlockProposals(context, coveringNode, resultingCollections); getInvertEqualsProposal(context, coveringNode, resultingCollections); getArrayInitializerToArrayCreation(context, coveringNode, resultingCollections); getCreateInSuperClassProposals(context, coveringNode, resultingCollections); getExtractLocalProposal(context, coveringNode, resultingCollections); if (!getConvertForLoopProposal(context, coveringNode, resultingCollections)) getConvertIterableLoopProposal(context, coveringNode, resultingCollections); getSurroundWithRunnableProposal(context, coveringNode, resultingCollections); getRemoveBlockProposals(context, coveringNode, resultingCollections); getFixDeprecationProposals(context, coveringNode, resultingCollections); getMakeVariableDeclarationFinalProposals(context, coveringNode, resultingCollections); } return (IJavaCompletionProposal[]) resultingCollections.toArray(new IJavaCompletionProposal[resultingCollections.size()]); } return null; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/412e5a102621d2071804c682d598c21813c57214/QuickAssistProcessor.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickAssistProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
5852,
11238,
14592,
8526,
336,
2610,
1486,
12,
45,
9267,
1042,
819,
16,
467,
13719,
2735,
8526,
7838,
13,
1216,
30015,
288,
202,
202,
9053,
907,
5590,
310,
907,
33,
819,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
5852,
11238,
14592,
8526,
336,
2610,
1486,
12,
45,
9267,
1042,
819,
16,
467,
13719,
2735,
8526,
7838,
13,
1216,
30015,
288,
202,
202,
9053,
907,
5590,
310,
907,
33,
819,
... | |
assertEquals("2.1",0,rm.getStateAtCurrent()); | assertEquals("2.1", 0, rm.getStateAtCurrent()); | public void testInsertToDoc() { try { defModel.insertString(0,"a/*bc */\"\\{}()",null); assertEquals("#0.0",defModel.getText(0,8),"a/*bc */"); assertEquals("#0.1",14,defModel._currentLocation); defModel.insertString(0,"Start:",null); assertEquals("#1.0",defModel.getText(0,14),"Start:a/*bc */"); assertEquals("#1.1",6,defModel._currentLocation); // document is: // Start:=>a/*bc */"\\{}() BraceReduction rm = defModel._reduced; assertEquals("2.1",0,rm.getStateAtCurrent()); rm.move(2); // document is: // Start:a/=>*bc */"\\{}() assertEquals("2.3","/*",rm.currentToken().getType()); rm.move(2); // document is: // Start:a/*b=>c */"\\{}() assertEquals("2.4",true,rm.currentToken().isGap()); assertEquals("2.5", ReducedToken.INSIDE_BLOCK_COMMENT, rm.currentToken().getState()); rm.move(2); // document is: // Start:a/*bc =>*/"\{}() assertEquals("2.6","*/",rm.currentToken().getType()); rm.move(2); // document is: // Start:a/*bc */=>"\{}() assertEquals("2.7","\"",rm.currentToken().getType()); rm.move(1); // document is: // Start:a/*bc */"=>\{}() assertEquals("2.8","\\",rm.currentToken().getType()); rm.move(1); // document is: // Start:a/*bc */"\=>{}() assertEquals("2.9","{",rm.currentToken().getType()); rm.move(1); // document is: // Start:a/*bc */"\{=>}() assertEquals("2.91","}",rm.currentToken().getType()); rm.move(1); // document is: // Start:a/*bc */"\{}=>() assertEquals("2.92","(",rm.currentToken().getType()); rm.move(1); // document is: // Start:a/*bc */"\\{}(=>) assertEquals("2.93",")",rm.currentToken().getType()); } catch( javax.swing.text.BadLocationException e) { System.out.println("EXCEPTION"); } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/7be13fcc2c0b7d44e976f39092577be8a7dfb680/DefinitionsDocumentTest.java/clean/drjava/src/edu/rice/cs/drjava/DefinitionsDocumentTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
4600,
774,
1759,
1435,
225,
288,
565,
775,
288,
1377,
1652,
1488,
18,
6387,
780,
12,
20,
10837,
69,
20308,
13459,
1195,
2412,
1695,
2916,
1435,
3113,
2011,
1769,
1377,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
4600,
774,
1759,
1435,
225,
288,
565,
775,
288,
1377,
1652,
1488,
18,
6387,
780,
12,
20,
10837,
69,
20308,
13459,
1195,
2412,
1695,
2916,
1435,
3113,
2011,
1769,
1377,
18... |
} else | } } else { | protected void focusSelectionChanged(IWorkbenchPart part, ISelection selection) { List selectedElements = new ArrayList(); if (part instanceof IEditorPart) { IEditorPart editor = (IEditorPart) part; IFile file = ResourceUtil.getFile(editor.getEditorInput()); if (file == null) { IEditorInput editorInput = editor.getEditorInput(); if (editorInput != null) { Object mapping = editorInput .getAdapter(ResourceMapping.class); if (mapping != null) selectedElements.add(mapping); } } else { selectedElements.add(file); } } else { if (selection instanceof IStructuredSelection) { for (Iterator iterator = ((IStructuredSelection) selection) .iterator(); iterator.hasNext();) { Object object = iterator.next(); if (object instanceof IAdaptable) { ITaskListResourceAdapter taskListResourceAdapter; Object adapter = ((IAdaptable) object) .getAdapter(ITaskListResourceAdapter.class); if (adapter != null && adapter instanceof ITaskListResourceAdapter) { taskListResourceAdapter = (ITaskListResourceAdapter) adapter; } else { taskListResourceAdapter = DefaultMarkerResourceAdapter .getDefault(); } IResource resource = taskListResourceAdapter .getAffectedResource((IAdaptable) object); if (resource == null) { Object mapping = ((IAdaptable) object) .getAdapter(ResourceMapping.class); if (mapping != null) selectedElements.add(mapping); } else selectedElements.add(resource); } } } } updateFocusMarkers(selectedElements.toArray()); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
7155,
6233,
5033,
12,
45,
2421,
22144,
1988,
1087,
16,
1082,
202,
45,
6233,
4421,
13,
288,
202,
202,
682,
3170,
3471,
273,
394,
2407,
5621,
202,
202,
430,
261,
2680,
127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7155,
6233,
5033,
12,
45,
2421,
22144,
1988,
1087,
16,
1082,
202,
45,
6233,
4421,
13,
288,
202,
202,
682,
3170,
3471,
273,
394,
2407,
5621,
202,
202,
430,
261,
2680,
127... |
&& event.getJob().getResult().getMessage() != null) { | && event.getJob().getResult().getMessage() != null) { | public void done(final IJobChangeEvent event) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { if (event.getJob().getResult().getCode() == Status.OK && event.getJob().getResult().getMessage() != null) {// // Attach context if (getAttachContext()) { IWorkbench wb = PlatformUI.getWorkbench(); IProgressService ps = wb.getProgressService(); try { ps.busyCursorWhile(new IRunnableWithProgress() { public void run(IProgressMonitor pm) { try { bugzillaRepositoryConnector.attachContext(repository, modifiedTask, ""); } catch (Exception e) { MylarStatusHandler.fail(e, "Failed to attach task context.\n\n" + e.getMessage(), true); } } }); } catch (InvocationTargetException e1) { MylarStatusHandler.fail(e1.getCause(), "Failed to attach task context.\n\n" + e1.getMessage(), true); } catch (InterruptedException e1) { // ignore } } if (modifiedTask != null) { // TODO: This is set to null in order for update // to bypass // ui override check with user // Need to change how this is achieved. modifiedTask.setTaskData(null); TasksUiPlugin.getSynchronizationManager().synchronize(connector, modifiedTask, true, new JobChangeAdapter() { @Override public void done(IJobChangeEvent event) { close(); TaskUiUtil.openEditor(modifiedTask, false); } }); Set<AbstractRepositoryQuery> queriesWithHandle = TasksUiPlugin.getTaskListManager() .getTaskList().getQueriesForHandle(modifiedTask.getHandleIdentifier()); // Sync Queries that have this task TasksUiPlugin.getSynchronizationManager().synchronize(connector, queriesWithHandle, null, Job.SHORT, 0, false); // Sync any tasks that might have changed as a // result of this action // TODO: removed since we don't have a way to // exclude currently submitted task // and others will be synched later by // background sync anyway (or manual sync) // TasksUiPlugin.getSynchronizationManager().synchronizeChanged(connector, // repository); } else { TaskUiUtil.openRepositoryTask(repository.getUrl(), BugzillaTaskEditor.this .getRepositoryTaskData().getId(), repository.getUrl() + IBugzillaConstants.URL_GET_SHOW_BUG + BugzillaTaskEditor.this.getRepositoryTaskData().getId()); close(); } return; } else if (event.getJob().getResult().getCode() == Status.INFO) { WebBrowserDialog.openAcceptAgreement(null, IBugzillaConstants.REPORT_SUBMIT_ERROR, event .getJob().getResult().getMessage(), event.getJob().getResult().getException() .getMessage()); submitButton.setEnabled(true); BugzillaTaskEditor.this.showBusy(false); } else if (event.getJob().getResult().getCode() == Status.ERROR) { MylarStatusHandler.fail(event.getJob().getResult().getException(), IBugzillaConstants.REPORT_SUBMIT_ERROR + ": Changes may not have successfully committed.\n" + event.getJob().getResult().getMessage(), true); if (!BugzillaTaskEditor.this.isDisposed() && !submitButton.isDisposed()) { submitButton.setEnabled(true); BugzillaTaskEditor.this.showBusy(false); } } } }); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/15bee97fa54783888e332a741cd410300b3027fd/BugzillaTaskEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
2731,
12,
6385,
467,
2278,
20930,
871,
13,
288,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
3810,
1905,
12,
2704,
10254,
1435,
288,
6862,
202,
482,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1875,
202,
482,
918,
2731,
12,
6385,
467,
2278,
20930,
871,
13,
288,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
3810,
1905,
12,
2704,
10254,
1435,
288,
6862,
202,
482,... |
public String submitReportToRepository() throws BugzillaException, LoginException, PossibleBugzillaFailureException { BufferedOutputStream out = null; BufferedReader in = null; String result = null; try { // connect to the bugzilla server URLConnection cntx = BugzillaPlugin.getUrlConnection(postUrl, proxySettings); if (cntx == null || !(cntx instanceof HttpURLConnection)) return null; HttpURLConnection postConnection = (HttpURLConnection) cntx; // set the connection method postConnection.setRequestMethod(METHOD_POST); String contentTypeString = POST_CONTENT_TYPE; if (charset != null) { contentTypeString += ";charset=" + charset; } postConnection.setRequestProperty(REQUEST_PROPERTY_CONTENT_TYPE, contentTypeString); // get the url for the update with all of the changed values byte[] body = getPostBody().getBytes(); postConnection.setRequestProperty(REQUEST_PROPERTY_CONTENT_LENGTH, String.valueOf(body.length)); // allow outgoing streams and open a stream to post to postConnection.setDoOutput(true); out = new BufferedOutputStream(postConnection.getOutputStream()); // write the data and close the stream out.write(body); out.flush(); int responseCode = postConnection.getResponseCode(); if (responseCode != HttpURLConnection.HTTP_OK && responseCode != HttpURLConnection.HTTP_CREATED) { throw new BugzillaException("Server returned HTTP error: " + responseCode + " - " + postConnection.getResponseMessage()); } // open a stream to receive response from bugzilla in = new BufferedReader(new InputStreamReader(postConnection.getInputStream())); String aString = in.readLine(); // Used to debug reponse from bugzilla server // while (aString != null) { // System.err.println(aString); // aString = in.readLine(); // } boolean possibleFailure = true; error = ""; while (aString != null) { error += aString == null ? "" : aString + "\n"; // check if we have run into an error if (result == null && (aString.toLowerCase().indexOf("check e-mail") != -1 || aString.toLowerCase().indexOf( "error") != -1)) { throw new LoginException("Bugzilla login problem."); } else if (aString.indexOf("Invalid Username Or Password") != -1) { throw new LoginException("Invalid Username or Password."); } else if (aString.toLowerCase().matches(".*bug\\s+processed.*") // TODO: // make // this // configurable || aString.toLowerCase().matches(".*defect\\s+processed.*")) { possibleFailure = false; } // // get the bug number if it is required if (prefix != null && prefix2 != null && postfix != null && postfix2 != null && result == null) { int startIndex = -1; int startIndexPrefix = aString.toLowerCase().indexOf(prefix.toLowerCase()); int startIndexPrefix2 = aString.toLowerCase().indexOf(prefix2.toLowerCase()); if (startIndexPrefix != -1 || startIndexPrefix2 != -1) { if (startIndexPrefix != -1) { startIndex = startIndexPrefix + prefix.length(); } else { startIndex = startIndexPrefix2 + prefix2.length(); } int stopIndex = aString.toLowerCase().indexOf(postfix.toLowerCase(), startIndex); if (stopIndex == -1) stopIndex = aString.toLowerCase().indexOf(postfix2.toLowerCase(), startIndex); if (stopIndex > -1) { result = (aString.substring(startIndex, stopIndex)).trim(); possibleFailure = false; } } } aString = in.readLine(); } if ((result == null || result.compareTo("") == 0) && (prefix != null && prefix2 == null && postfix != null && postfix2 != null)) { throw new PossibleBugzillaFailureException("Could not find bug number for new bug."); } else if (possibleFailure) { throw new PossibleBugzillaFailureException( "Bug report may not have been submitted. Bugzilla message was: "); } // set the error to null if we dont think that there was one error = null; } catch (IOException e) { throw new BugzillaException("An exception occurred while submitting the bug: " + e.getMessage(), e); } catch (KeyManagementException e) { throw new BugzillaException("Could not POST form. Communications error: " + e.getMessage(), e); } catch (NoSuchAlgorithmException e) { throw new BugzillaException("Could not POST form. Communications error: " + e.getMessage(), e); } finally { try { if (in != null) in.close(); if (out != null) out.close(); } catch (IOException e) { BugzillaPlugin.log(new Status(IStatus.ERROR, BugzillaPlugin.PLUGIN_ID, IStatus.ERROR, "Problem posting the bug", e)); } try { // upload the attachment if any if (attachment != null) { if (attachment.getDescription() == null || attachment.getDescription().equals("")) { throw new BugzillaException("Attachment must have a description"); } String uname = URLDecoder.decode(fields.get(KEY_BUGZILLA_LOGIN), this.charset); String password = URLDecoder.decode(fields.get(KEY_BUGZILLA_PASSWORD), this.charset); if (!attachmentHandler.uploadAttachment(attachment, uname, password, proxySettings)) { throw new BugzillaException("Could not upload attachment."); } } } catch (IOException e) { throw new BugzillaException("Could not upload attachment. Communications error: " + e.getMessage(), e); } } // return the bug number return result; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/870bef936f9d2d5a7188ca7b829b13efb90c18a6/BugzillaReportSubmitForm.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportSubmitForm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
4879,
4820,
774,
3305,
1435,
1216,
16907,
15990,
503,
16,
11744,
503,
16,
25433,
19865,
15990,
14389,
288,
202,
202,
17947,
4632,
596,
273,
446,
31,
202,
202,
17947,
2514,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
4879,
4820,
774,
3305,
1435,
1216,
16907,
15990,
503,
16,
11744,
503,
16,
25433,
19865,
15990,
14389,
288,
202,
202,
17947,
4632,
596,
273,
446,
31,
202,
202,
17947,
2514,
... | ||
public TA_RetCode APO( int startIdx, int endIdx, double inReal[], int optInFastPeriod, int optInSlowPeriod, TA_MAType optInMAType, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ double []tempBuffer ; TA_RetCode retCode; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( (int)optInFastPeriod == ( Integer.MIN_VALUE ) ) optInFastPeriod = 12; else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; if( (int)optInSlowPeriod == ( Integer.MIN_VALUE ) ) optInSlowPeriod = 26; else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; tempBuffer = new double[(endIdx-startIdx+1)] ; retCode = INT_PO ( startIdx, endIdx, inReal, optInFastPeriod, optInSlowPeriod, optInMAType, outBegIdx, outNbElement, outReal, tempBuffer, 0 ); ; return retCode;} | 51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/1a230e9b7099cbd2b7e9eb1294130ca009bfedf4/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
399,
37,
67,
7055,
1085,
432,
2419,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
509,
2153,
382,
12305,
5027,
16,
509,
2153,
382,
28733,
5027,
16,
399,
37,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
399,
37,
67,
7055,
1085,
432,
2419,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
509,
2153,
382,
12305,
5027,
16,
509,
2153,
382,
28733,
5027,
16,
399,
37,
... | ||
in.error("invalid dispatch character"); | in.error("invalid dispatch character '"+((char) ch)+'\''); | public Object read (Lexer in, int ch, int count) throws java.io.IOException, SyntaxException { count = -1; for (;;) { ch = in.read(); if (ch < 0) in.eofError("unexpected EOF after "+ (char) ch); if (ch > 0x10000) break; int digit = Character.digit((char) ch, 10); if (digit < 0) { ch = Character.toUpperCase((char) ch); break; } count = count < 0 ? digit : count * 10 + digit; } ReadTableEntry entry = (ReadTableEntry) table.lookup(ch, null); if (entry == null) { in.error("invalid dispatch character"); return Values.empty; } return entry.read(in, ch, count); } | 36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/0fca37f02f9e7a13fd954226ba8b56aca8c6c707/ReaderDispatch.java/buggy/gnu/kawa/lispexpr/ReaderDispatch.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
855,
261,
13356,
316,
16,
509,
462,
16,
509,
1056,
13,
565,
1216,
2252,
18,
1594,
18,
14106,
16,
11517,
503,
225,
288,
565,
1056,
273,
300,
21,
31,
565,
364,
261,
25708,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
855,
261,
13356,
316,
16,
509,
462,
16,
509,
1056,
13,
565,
1216,
2252,
18,
1594,
18,
14106,
16,
11517,
503,
225,
288,
565,
1056,
273,
300,
21,
31,
565,
364,
261,
25708,
1... |
cat2.addSubtask(cat2task5); | cat2task5.setCategory(cat2); cat2.addTask(cat2task5); | public void setUp() throws PartInitException{ MylarTasksPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("org.eclipse.mylar.tasks.ui.views.TaskListView"); File file = new File("foo" + MylarTasksPlugin.FILE_EXTENSION); TaskListManager manager = new TaskListManager(file); tlist = manager.createNewTaskList(); cat1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "First Category"); cat1.setIsCategory(true); cat1task1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 1"); cat1task1.setPriority("P1"); cat1task1.setCompleted(true); cat1.addSubtask(cat1task1); cat1task2 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 2"); cat1task2.setPriority("P2"); cat1.addSubtask(cat1task2); cat1task3 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 3"); cat1task3.setPriority("P3"); cat1task3.setCompleted(true); cat1.addSubtask(cat1task3); cat1task4 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 4"); cat1task4.setPriority("P4"); cat1.addSubtask(cat1task4); cat1task5 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 5"); cat1task5.setPriority("P5"); cat1task5.setCompleted(true); cat1.addSubtask(cat1task5); tlist.addRootTask(cat1); assertEquals(cat1.getChildren().size(), 5); cat2 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "Second Category"); cat2.setIsCategory(true); cat2task1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 1"); cat2task1.setPriority("P1"); cat2.addSubtask(cat2task1); cat2task2 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 2"); cat2task2.setPriority("P2"); cat2task2.setCompleted(true); cat2.addSubtask(cat2task2); cat2task3 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 3"); cat2task3.setPriority("P3"); cat2.addSubtask(cat2task3); cat2task4 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 4"); cat2task4.setPriority("P4"); cat2task4.setCompleted(true); cat2.addSubtask(cat2task4); cat2task5 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 5"); cat2task5.setPriority("P5"); cat2.addSubtask(cat2task5); tlist.addRootTask(cat2); manager.saveTaskList(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bfd6c75025dd41ab813783fc0743c23cfe1c2fc2/TaskListUiTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24292,
1435,
1216,
6393,
2570,
503,
95,
9506,
202,
12062,
7901,
6685,
3773,
18,
588,
1868,
7675,
588,
2421,
22144,
7675,
588,
3896,
2421,
22144,
3829,
7675,
588,
3896,
1964,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24292,
1435,
1216,
6393,
2570,
503,
95,
9506,
202,
12062,
7901,
6685,
3773,
18,
588,
1868,
7675,
588,
2421,
22144,
7675,
588,
3896,
2421,
22144,
3829,
7675,
588,
3896,
1964,
... |
Gossip ret=new Gossip(sender, id); if(digest != null) ret.digest=digest.copy(); if(not_seen != null) ret.not_seen=(Vector)not_seen.clone(); if(seen != null) ret.seen=(Vector)seen.clone(); return ret; | Gossip ret=new Gossip(sender, id); if(digest != null) ret.digest=digest.copy(); if(not_seen != null) ret.not_seen=(Vector)not_seen.clone(); if(seen != null) ret.seen=(Vector)seen.clone(); return ret; | public Gossip copy() { Gossip ret=new Gossip(sender, id); if(digest != null) ret.digest=digest.copy(); if(not_seen != null) ret.not_seen=(Vector)not_seen.clone(); if(seen != null) ret.seen=(Vector)seen.clone(); return ret; } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/e25f8abcd69bfb826f6572dbd8289617fc601a19/Gossip.java/clean/src/org/jgroups/protocols/pbcast/Gossip.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
30263,
1610,
1435,
288,
202,
43,
15616,
325,
33,
2704,
30263,
12,
15330,
16,
612,
1769,
202,
430,
12,
10171,
480,
446,
13,
202,
565,
325,
18,
10171,
33,
10171,
18,
3530,
5621,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30263,
1610,
1435,
288,
202,
43,
15616,
325,
33,
2704,
30263,
12,
15330,
16,
612,
1769,
202,
430,
12,
10171,
480,
446,
13,
202,
565,
325,
18,
10171,
33,
10171,
18,
3530,
5621,
202... |
public static void handleOnRender( RowContent content, IRowData rowData, | public static void handleOnRender( RowContent content, | public static void handleOnRender( RowContent content, IRowData rowData, ExecutionContext context ) { try { ReportItemDesign rowDesign = ( ReportItemDesign ) content .getGenerateBy( ); IRowInstance row = new RowInstance( content, rowData, context ); if ( handleJS( row, rowDesign.getOnRender( ), context ).didRun( ) ) return; IRowEventHandler eh = getEventHandler( rowDesign, context ); if ( eh != null ) eh.onRender( row, context.getReportContext( ) ); } catch ( Exception e ) { addException( context, e ); } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c332d326b9697aa0e37846b9b0c7fd09f3641e6f/RowScriptExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/RowScriptExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1640,
1398,
3420,
12,
6556,
1350,
913,
16,
467,
1999,
751,
24124,
16,
1082,
202,
3210,
1042,
819,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
4820,
1180,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1640,
1398,
3420,
12,
6556,
1350,
913,
16,
467,
1999,
751,
24124,
16,
1082,
202,
3210,
1042,
819,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
4820,
1180,
... |
Shape getPaintedArea(GraphicsNodeRenderContext rc); | Shape getPaintedArea(); | Shape getPaintedArea(GraphicsNodeRenderContext rc); | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/32fa5d6f134dbc7519ade5bde79d3c0386deef5e/ShapePainter.java/buggy/sources/org/apache/batik/gvt/ShapePainter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
12383,
1689,
1598,
329,
5484,
12,
17558,
907,
3420,
1042,
4519,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
12383,
1689,
1598,
329,
5484,
12,
17558,
907,
3420,
1042,
4519,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
stmt = conn.prepareStatement("SELECT nickname FROM users WHERE id=?"); | pstmt = conn.prepareStatement("SELECT nickname FROM users WHERE id=?"); | public String getComments(Integer userId, Connection conn) throws RemoteException { StringBuffer html; PreparedStatement stmt = null; ResultSet rs = null; String comment=null, date=null; int authorId; // Try to find the comments corresponding for this user try { stmt = conn.prepareStatement("SELECT * FROM comments WHERE to_user_id=?"); stmt.setInt(1, userId.intValue()); rs = stmt.executeQuery(); stmt.close(); } catch (SQLException e) { try { if (stmt != null) stmt.close(); if (conn != null) conn.close(); } catch (Exception ignore) { } throw new RemoteException("Failed to get the comments " +e); } try { if (!rs.first()) html = new StringBuffer("<h3>There is no comment yet for this user.</h3><br>"); else { html = new StringBuffer("<br><hr><br><h3>Comments for this user</h3><br>"); html.append(printCommentHeader()); // Display each comment and the name of its author try { stmt = conn.prepareStatement("SELECT nickname FROM users WHERE id=?"); do { comment = rs.getString("comment"); date = rs.getString("date"); authorId = rs.getInt("from_user_id"); String authorName = "none"; ResultSet authorRS = null; stmt.setInt(1, authorId); authorRS = stmt.executeQuery(); if (authorRS.first()) authorName = authorRS.getString("nickname"); html.append(printComment(authorName, date, comment, authorId)); } while (rs.next()); } catch (Exception e) { try { if (stmt != null) stmt.close(); if (conn != null) conn.close(); } catch (Exception ignore) { } throw new RemoteException("This author does not exist (got exception: " +e+")<br>"); } html.append(printCommentFooter()); } if (stmt != null) stmt.close(); } catch (Exception e) { try { if (stmt != null) stmt.close(); if (conn != null) conn.close(); } catch (Exception ignore) { } throw new RemoteException("Exception getting comment list: " + e +"<br>"); } return html.toString(); } | 5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/efbeb8e369248adae3e69657ced0c6d12c72dee1/SB_ViewUserInfoBean.java/clean/EJB_SessionBean/edu/rice/rubis/beans/SB_ViewUserInfoBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
336,
9051,
12,
4522,
6249,
16,
4050,
1487,
13,
1216,
18361,
225,
288,
565,
6674,
1729,
31,
565,
16913,
3480,
273,
446,
31,
565,
10842,
3597,
6647,
273,
446,
31,
565,
514,
287... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
336,
9051,
12,
4522,
6249,
16,
4050,
1487,
13,
1216,
18361,
225,
288,
565,
6674,
1729,
31,
565,
16913,
3480,
273,
446,
31,
565,
10842,
3597,
6647,
273,
446,
31,
565,
514,
287... |
menu.add(new JMenuItem( controller.getAction(HiViewerControl.VIEW_CGCI))); | private JMenu createViewMenu() { JMenu menu = new JMenu("View"); menu.setMnemonic(KeyEvent.VK_V); //menu.add(new JMenuItem(controller.getAction(HiViewerControl.VIEW_PDI))); menu.add(new JMenuItem( controller.getAction(HiViewerControl.VIEW_CGCI))); //menu.add(new JSeparator(JSeparator.HORIZONTAL)); JCheckBoxMenuItem item = new JCheckBoxMenuItem(); item.setSelected(false); item.setText(TreeViewAction.NAME); item.setAction(controller.getAction(HiViewerControl.TREE_VIEW)); //menu.add(item); item = new JCheckBoxMenuItem(); item.setSelected(true); item.setAction(controller.getAction(HiViewerControl.CLIPBOARD_VIEW)); item.setText(ClipBoardViewAction.NAME); //menu.add(item); item = new JCheckBoxMenuItem(); item.setSelected(model.isTitleBarVisible()); item.setAction(controller.getAction(HiViewerControl.SHOW_TITLEBAR)); menu.add(item); //item = new JCheckBoxMenuItem(); //item.setSelected(model.isRollOver()); //item.setAction(controller.getAction(HiViewerControl.ROLL_OVER)); //menu.add(item); menu.add(new JSeparator(SwingConstants.HORIZONTAL)); JMenuItem mi = new JMenuItem( controller.getAction(HiViewerControl.ZOOM_IN)); mi.setText(ZoomInAction.NAME); menu.add(mi); mi = new JMenuItem(controller.getAction(HiViewerControl.ZOOM_OUT)); mi.setText(ZoomOutAction.NAME); menu.add(mi); mi = new JMenuItem(controller.getAction(HiViewerControl.ZOOM_FIT)); mi.setText(ZoomFitAction.NAME); menu.add(mi); menu.add(new JSeparator(SwingConstants.HORIZONTAL)); menu.add(createLayoutMenu()); return menu; } | 55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/ea7509babe2344eb702969105eb77096cc5b6bcf/HiViewerWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerWin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
804,
4599,
15193,
4599,
1435,
565,
288,
3639,
804,
4599,
3824,
273,
394,
804,
4599,
2932,
1767,
8863,
3639,
3824,
18,
542,
29668,
20918,
12,
653,
1133,
18,
58,
47,
67,
58,
1769,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
804,
4599,
15193,
4599,
1435,
565,
288,
3639,
804,
4599,
3824,
273,
394,
804,
4599,
2932,
1767,
8863,
3639,
3824,
18,
542,
29668,
20918,
12,
653,
1133,
18,
58,
47,
67,
58,
1769,
3... | |
if(entry.received_msgs != null) { entry.received_msgs.add(seqno, msg); | entry.received_msgs.add(seqno, msg); | private void handleDataReceived(Object sender, long seqno, boolean first, Message msg) { Entry entry; Message m; if(trace) log.trace(new StringBuffer("[").append(local_addr).append("] <-- DATA(").append(sender). append(": #").append(seqno).append(", first=").append(first)); synchronized(connections) { entry=(Entry)connections.get(sender); if(entry == null) { entry=new Entry(); connections.put(sender, entry); } } synchronized(entry) { if(entry.received_msgs == null) { if(first) entry.received_msgs=new AckReceiverWindow(seqno); else { if(operational) { if(warn) log.warn(sender + "#" + seqno + " is not tagged as the first message sent by " + sender + "; however, the table for received messages from " + sender + " is null. We probably " + "haven't received the first message from " + sender + ". Discarding message: " + msg.toString() + ", headers (excluding UnicastHeader): " + msg.getHeaders()); return; } } } } if(entry.received_msgs != null) { entry.received_msgs.add(seqno, msg); // Try to remove (from the AckReceiverWindow) as many messages as possible as pass them up while((m=entry.received_msgs.remove()) != null) passUp(new Event(Event.MSG, m)); } } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/1295698800c791015ec075b86e2c77d7deef0b52/UNICAST.java/clean/src/org/jgroups/protocols/UNICAST.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
751,
8872,
12,
921,
5793,
16,
1525,
30734,
16,
1250,
1122,
16,
2350,
1234,
13,
288,
3639,
3841,
565,
1241,
31,
3639,
2350,
225,
312,
31,
3639,
309,
12,
5129,
13,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
751,
8872,
12,
921,
5793,
16,
1525,
30734,
16,
1250,
1122,
16,
2350,
1234,
13,
288,
3639,
3841,
565,
1241,
31,
3639,
2350,
225,
312,
31,
3639,
309,
12,
5129,
13,
5411,
... |
fOutputViewer.removeSelectionChangedListener(fMultiActionHandler); fInputGroup.getSourceViewer().removeSelectionChangedListener(fMultiActionHandler); | try { fConsole.getDocument().removeDocumentListener(fFindReplaceUpdater); fOutputViewer.removeSelectionChangedListener(fMultiActionHandler); fInputGroup.getSourceViewer().removeSelectionChangedListener(fMultiActionHandler); } catch (Exception e) { NicoUIPlugin.logError(NicoUIPlugin.INTERNAL_ERROR, Messages.Console_error_UnexpectedException_message, e); } | public void dispose() { fConsole.removePropertyChangeListener(this); if (fIsCreated) { // control created fIsCreated = false; fOutputViewer.removeSelectionChangedListener(fMultiActionHandler); fInputGroup.getSourceViewer().removeSelectionChangedListener(fMultiActionHandler); fMultiActionHandler.dispose(); fMultiActionHandler = null; fFindReplaceAction = null; fOutputCopyAction = null; fOutputPasteAction = null; fOutputSelectAllAction = null; fOutputClearAllAction = null; fInputDeleteAction = null; fInputCutAction = null; fInputCopyAction = null; fInputPasteAction = null; fInputSelectAllAction = null; fInputUndoAction = null; DebugPlugin debug = DebugPlugin.getDefault(); if (debug != null) { debug.removeDebugEventListener(fDebugListener); } fDebugListener = null; fRemoveAction.dispose(); fRemoveAction = null; fRemoveAllAction.dispose(); fRemoveAllAction = null; fTerminateAction.dispose(); fTerminateAction = null; fOutputViewer = null; } if (fInputGroup != null) { fInputGroup.dispose(); fInputGroup = null; } } | 47575 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47575/d9b139ef35a1bb0fd66fe4ddaa2139426f679b4f/NIConsolePage.java/clean/de.walware.statet.nico.ui/src/de/walware/statet/nico/ui/console/NIConsolePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
1435,
288,
202,
202,
74,
10215,
18,
4479,
1396,
15744,
12,
2211,
1769,
9506,
202,
430,
261,
74,
2520,
6119,
13,
288,
368,
3325,
2522,
1082,
202,
74,
2520,
6119,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15825,
1435,
288,
202,
202,
74,
10215,
18,
4479,
1396,
15744,
12,
2211,
1769,
9506,
202,
430,
261,
74,
2520,
6119,
13,
288,
368,
3325,
2522,
1082,
202,
74,
2520,
6119,
27... |
ci.nullable = java.sql.ResultSetMetaData.columnNullable; | ci.nullable = java.sql.ResultSetMetaData.columnNullable; | static int readType(ResponseStream in, ColInfo ci) throws IOException, ProtocolException { boolean isTds8 = in.getTdsVersion() == TdsCore.TDS80; int bytesRead = 1; // Get the TDS data type code int type = in.read(); if (types[type] == null) { throw new ProtocolException("Invalid TDS data type 0x" + Integer.toHexString(type)); } ci.tdsType = type; ci.jdbcType = types[type].jdbcType; ci.displaySize = -1; ci.tableName = ""; ci.bufferSize = types[type].size; ci.nullable = java.sql.ResultSetMetaData.columnNoNulls; // Now get the buffersize if required if (ci.bufferSize == -5) { // sql_variant ci.bufferSize = in.readInt(); bytesRead += 4; } else if (ci.bufferSize == -4) { // text or image ci.bufferSize = in.readInt(); if (isTds8) bytesRead += getCollation(in, ci); int lenName = in.readShort(); ci.tableName = in.readString(lenName); bytesRead += 6 + ((in.getTdsVersion() >= TdsCore.TDS70)? lenName * 2: lenName); } else if (ci.bufferSize == -2) { // longvarchar longvarbinary ci.bufferSize = in.readShort(); if (isTds8) bytesRead += getCollation(in, ci); bytesRead += 2; } else if (ci.bufferSize == -1) { // varchar varbinary decimal etc bytesRead += 1; ci.bufferSize = in.read(); } // Set scale for money and date types if (isCurrency(ci)) { ci.scale = 4; } else if (type == SYBDATETIME ||(type == SYBDATETIMN && ci.bufferSize == 8)) { ci.scale = 3; } // Set default displaySize and precision ci.displaySize = types[type].displaySize; ci.precision = types[type].precision; ci.sqlType = types[type].sqlType; // Now fine tune sizes for specific types if (type == SYBDATETIMN) { ci.nullable = java.sql.ResultSetMetaData.columnNullable; if (ci.bufferSize == 8) { ci.displaySize = types[SYBDATETIME].displaySize; ci.precision = types[SYBDATETIME].precision; } else { ci.displaySize = types[SYBDATETIME4].displaySize; ci.precision = types[SYBDATETIME4].precision; ci.sqlType = types[SYBDATETIME4].sqlType; } } else if (type == SYBFLTN) { ci.nullable = java.sql.ResultSetMetaData.columnNullable; if (ci.bufferSize == 8) { ci.displaySize = types[SYBFLT8].displaySize; ci.precision = types[SYBFLT8].precision; } else { ci.displaySize = types[SYBREAL].displaySize; ci.precision = types[SYBREAL].precision; ci.jdbcType = java.sql.Types.FLOAT; ci.sqlType = types[SYBREAL].sqlType; } } else if (type == SYBINTN) { ci.nullable = java.sql.ResultSetMetaData.columnNullable; if (ci.bufferSize == 8) { ci.displaySize = types[SYBINT8].displaySize; ci.precision = types[SYBINT8].precision; ci.sqlType = types[SYBINT8].sqlType; } else if (ci.bufferSize == 4) { ci.displaySize = types[SYBINT4].displaySize; ci.precision = types[SYBINT4].precision; } else if (ci.bufferSize == 2) { ci.displaySize = types[SYBINT2].displaySize; ci.precision = types[SYBINT2].precision; ci.jdbcType = java.sql.Types.SMALLINT; ci.sqlType = types[SYBINT2].sqlType; } else { ci.displaySize = types[SYBINT1].displaySize; ci.precision = types[SYBINT1].precision; ci.jdbcType = java.sql.Types.TINYINT; ci.sqlType = types[SYBINT1].sqlType; } } else if (type == SYBMONEYN) { ci.nullable = java.sql.ResultSetMetaData.columnNullable; if (ci.bufferSize == 8) { ci.displaySize = types[SYBMONEY].displaySize; ci.precision = types[SYBMONEY].precision; } else { ci.displaySize = types[SYBMONEY4].displaySize; ci.precision = types[SYBMONEY4].precision; ci.sqlType = types[SYBMONEY4].sqlType; } } // Set sizes for character types if (ci.precision == -1) { ci.precision = ci.bufferSize; if (ci.displaySize == -2) { ci.displaySize = ci.bufferSize / 2; } else if (ci.displaySize == 2) { ci.displaySize = ci.precision * 2; } else { ci.displaySize = ci.precision; } } // Read in scale and precision for decimal types if (type == SYBDECIMAL || type == SYBNUMERIC) { ci.precision = in.read(); ci.scale = in.read(); ci.displaySize = ((ci.scale > 0)? 2 : 1) + ci.precision; bytesRead += 2; StringBuffer tmp = new StringBuffer(16); tmp.append(types[type].sqlType).append('(').append(ci.precision); if (ci.scale > 0) tmp.append(',').append(ci.scale); tmp.append(')'); ci.sqlType = tmp.toString(); } return bytesRead; } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/067057cf04b78c031c712ba0128ad1b4322205ff/TdsData.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/TdsData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
509,
855,
559,
12,
1064,
1228,
316,
16,
1558,
966,
9039,
13,
565,
1216,
1860,
16,
4547,
503,
288,
3639,
1250,
353,
56,
2377,
28,
273,
316,
18,
588,
56,
2377,
1444,
1435,
422,
399... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
509,
855,
559,
12,
1064,
1228,
316,
16,
1558,
966,
9039,
13,
565,
1216,
1860,
16,
4547,
503,
288,
3639,
1250,
353,
56,
2377,
28,
273,
316,
18,
588,
56,
2377,
1444,
1435,
422,
399... |
public synchronized void projectClosed() | public void projectClosed() | public synchronized void projectClosed() { clearWorkingCopyMaps(); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/8c4c03ed87f5ba92a46a042a6bd51df21862c6ec/GeneratedFileManager.java/clean/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/generatedfile/GeneratedFileManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1984,
7395,
1435,
202,
95,
202,
202,
8507,
14836,
2951,
8903,
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,
... | [
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1984,
7395,
1435,
202,
95,
202,
202,
8507,
14836,
2951,
8903,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
"WelcomePageSelectionDialog.title", "WelcomePageSelectionDialog.message", | IDEWorkbenchMessages.getString("WelcomePageSelectionDialog.title"), IDEWorkbenchMessages.getString("WelcomePageSelectionDialog.message"), | private AboutInfo promptForFeature() throws WorkbenchException { // Ask the user to select a feature AboutInfo[] features = IDEWorkbenchPlugin.getDefault().getFeatureInfos(); ArrayList welcomeFeatures = new ArrayList(); for (int i = 0; i < features.length; i++) { if (features[i].getWelcomePageURL() != null) welcomeFeatures.add(features[i]); } Shell shell = workbenchWindow.getShell(); if (welcomeFeatures.size() == 0) { MessageDialog.openInformation( shell, IDEWorkbenchMessages.getString("QuickStartMessageDialog.title"), //$NON-NLS-1$ IDEWorkbenchMessages.getString("QuickStartMessageDialog.message")); //$NON-NLS-1$ return null; } features = new AboutInfo[welcomeFeatures.size()]; welcomeFeatures.toArray(features); AboutInfo primaryFeature = IDEWorkbenchPlugin.getDefault().getPrimaryInfo(); FeatureSelectionDialog d = new FeatureSelectionDialog( shell, features, primaryFeature, "WelcomePageSelectionDialog.title", //$NON-NLS-1$ "WelcomePageSelectionDialog.message", //$NON-NLS-1$ IHelpContextIds.WELCOME_PAGE_SELECTION_DIALOG); if (d.open() != Window.OK || d.getResult().length != 1) return null; return (AboutInfo) d.getResult()[0]; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1a7e41347fb7a8f3442ccef1d6f4235ecd056a57/QuickStartAction.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/QuickStartAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
9771,
659,
966,
6866,
1290,
4595,
1435,
1216,
4147,
22144,
503,
288,
202,
202,
759,
25747,
326,
729,
358,
2027,
279,
2572,
202,
202,
24813,
966,
8526,
4467,
273,
1599,
41,
2421... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9771,
659,
966,
6866,
1290,
4595,
1435,
1216,
4147,
22144,
503,
288,
202,
202,
759,
25747,
326,
729,
358,
2027,
279,
2572,
202,
202,
24813,
966,
8526,
4467,
273,
1599,
41,
2421... |
return m; | protected Map readMap(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); Map m = new HashMap(size); for (int i = 0; i < size; i++) { String key = in.readUTF(); byte type = in.readByte(); Object value = null; switch (type) { case BYTE : value = new Byte(in.readByte()); break; case SHORT : value = new Short(in.readShort()); break; case INT : value = new Integer(in.readInt()); break; case LONG : value = new Long(in.readLong()); break; case FLOAT : value = new Float(in.readFloat()); break; case DOUBLE : value = new Double(in.readDouble()); break; case BOOLEAN : value = Primitives.valueOf(in.readBoolean()); break; case STRING : value = in.readUTF(); break; default : value = in.readObject(); } m.put(key, value); } return m; } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/bb5207822a56158d5b94faff7c6dbe5f094f6f4c/RoutableSupport.java/clean/src/main/org/jboss/messaging/core/message/RoutableSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
1635,
855,
863,
12,
921,
1210,
316,
13,
1216,
1860,
16,
10403,
282,
288,
1377,
509,
963,
273,
316,
18,
896,
1702,
5621,
1377,
1635,
312,
273,
394,
4317,
12,
1467,
1769,
1377,
364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
1635,
855,
863,
12,
921,
1210,
316,
13,
1216,
1860,
16,
10403,
282,
288,
1377,
509,
963,
273,
316,
18,
896,
1702,
5621,
1377,
1635,
312,
273,
394,
4317,
12,
1467,
1769,
1377,
364,... | |
if (TasksUiPlugin.getDefault() != null && TasksUiPlugin.getDefault().isShellActive() || forceBackgroundSave) { | if (TasksUiPlugin.getDefault() != null && TasksUiPlugin.getDefault().isShellActive() || forceBackgroundSave) { | public void saveRequested() { if (TasksUiPlugin.getDefault() != null && TasksUiPlugin.getDefault().isShellActive() || forceBackgroundSave) { try { saveTaskList(true); } catch (Exception e) { MylarStatusHandler.fail(e, "Could not auto save task list", false); } } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/d0eaa0b6939d7d8c5517e064f3e21e11973f3ba3/TaskListSaveManager.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskListSaveManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1923,
11244,
1435,
288,
202,
202,
430,
261,
6685,
13943,
3773,
18,
588,
1868,
1435,
480,
446,
597,
20350,
13943,
3773,
18,
588,
1868,
7675,
291,
13220,
3896,
1435,
9506,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
11244,
1435,
288,
202,
202,
430,
261,
6685,
13943,
3773,
18,
588,
1868,
1435,
480,
446,
597,
20350,
13943,
3773,
18,
588,
1868,
7675,
291,
13220,
3896,
1435,
9506,
20... |
public void processActionsElement(Element element, ClassLoader loader, PluginId pluginId) { if (LOG.isDebugEnabled()) { LOG.debug("enter: processActionsNode(" + element.getName() + ")"); } if (!ACTIONS_ELEMENT_NAME.equals(element.getName())) { LOG.error("unexpected name of element \"" + element.getName() + "\""); return; } synchronized (myLock) { for (final Object o : element.getChildren()) { Element child = (Element)o; String name = child.getName(); if (ACTION_ELEMENT_NAME.equals(name)) { AnAction action = processActionElement(child, loader, pluginId); if (action != null) { assertActionIsGroupOrStub(action); } } else if (GROUP_ELEMENT_NAME.equals(name)) { processGroupElement(child, loader, pluginId); } else if (SEPARATOR_ELEMENT_NAME.equals(name)) { processSeparatorNode(null, child); } else { LOG.error("unexpected name of element \"" + name + "\n"); } } } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2567,
6100,
1046,
12,
1046,
2956,
16,
7805,
6714,
16,
3773,
548,
4094,
548,
15329,
430,
12,
4842,
18,
291,
2829,
1526,
10756,
95,
4842,
18,
4148,
2932,
2328,
30,
2567,
6100,
907,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
2567,
6100,
1046,
12,
1046,
2956,
16,
7805,
6714,
16,
3773,
548,
4094,
548,
15329,
430,
12,
4842,
18,
291,
2829,
1526,
10756,
95,
4842,
18,
4148,
2932,
2328,
30,
2567,
6100,
907,
... | ||
public int print(Graphics _gfx, PageFormat pageFormat, int pageIndex) throws PrinterException | public void print() | public int print(Graphics _gfx, PageFormat pageFormat, int pageIndex) throws PrinterException { if(pageIndex > currentPage + 1) { for(int i = currentPage; i < pageIndex; i++) { printPage(_gfx,pageFormat,i,true); } currentPage = pageIndex - 1; } if(pageIndex == currentPage + 1) { if(end) { view.getStatus().setMessage(null); return NO_SUCH_PAGE; } currentPageStart = currentPhysicalLine; currentPage = pageIndex; } else if(pageIndex == currentPage) { currentPhysicalLine = currentPageStart; // show the message in both the view's status bar, and the // I/O progress monitor Object[] args = new Object[] { new Integer(pageIndex + 1) }; String message = jEdit.getProperty("view.status.print",args); view.getStatus().setMessage(message); setStatus(message); } printPage(_gfx,pageFormat,pageIndex,true); return PAGE_EXISTS; } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/61756b37c0b60f83b74c1f28f6cd6dc9d47ac5bf/BufferPrintable.java/buggy/org/gjt/sp/jedit/print/BufferPrintable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
1172,
12,
17558,
389,
75,
19595,
16,
3460,
1630,
1363,
1630,
16,
509,
1363,
1016,
13,
202,
202,
15069,
2301,
2761,
503,
202,
95,
202,
202,
430,
12,
2433,
1016,
405,
15117... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
1172,
12,
17558,
389,
75,
19595,
16,
3460,
1630,
1363,
1630,
16,
509,
1363,
1016,
13,
202,
202,
15069,
2301,
2761,
503,
202,
95,
202,
202,
430,
12,
2433,
1016,
405,
15117... |
} | } */ | private boolean handleRule(ParserRule checkRule, boolean end) { pattern.array = checkRule.searchChars; if(end) { // is this an EOL_SPAN? if(checkRule.sequenceLengths.length == 1) { pattern.offset = 0; pattern.count = 1; return (pos == lineLength - 1); } pattern.offset = checkRule.sequenceLengths[0]; pattern.count = checkRule.sequenceLengths[1]; } else { pattern.offset = 0; pattern.count = checkRule.sequenceLengths[0]; } if (pattern.count == 0) return false; if (lineLength - pos < pattern.count) return false; for (int k = 0; k < pattern.count; k++) { char a = pattern.array[pattern.offset + k]; char b = line.array[pos + k]; // break out and check the next rule if there is a mismatch if ( !( a == b || context.rules.getIgnoreCase() && ( Character.toLowerCase(a) == b || a == Character.toLowerCase(b) ) ) ) return false; } //{{{ Check for an escape sequence if ((checkRule.action & IS_ESCAPE) == IS_ESCAPE) { escaped = !escaped; pos += pattern.count - 1; } else if (escaped) { escaped = false; pos += pattern.count - 1; } //}}} //{{{ Not inside a rule else if (context.inRule == null) { //{{{ handle soft spans if (context.parent != null && (context.parent.inRule.action & (NO_WORD_BREAK | MARK_FOLLOWING)) != 0 && checkRule.token == Token.WHITESPACE) { if ((context.inRule.action & NO_WORD_BREAK) == NO_WORD_BREAK) { tokenHandler.handleToken(pos - lastOffset, Token.INVALID, context.rules); } else { tokenHandler.handleToken(pos - lastOffset, context.inRule.token, context.rules); } lastOffset = lastKeyword = pos; context = context.parent; context.inRule = null; return true; } //}}} if ((checkRule.action & AT_LINE_START) == AT_LINE_START) { if ( (((checkRule.action & MARK_PREVIOUS) != 0) ? lastKeyword : pos) != line.offset ) { return false; } } markKeyword(lastKeyword, pos); if ((checkRule.action & MARK_PREVIOUS) != MARK_PREVIOUS) { lastKeyword = pos + pattern.count; // mark previous sequence as NULL (plain text) if (lastOffset < pos) { tokenHandler.handleToken(pos - lastOffset, context.rules.getDefault(), context.rules); } } switch(checkRule.action & MAJOR_ACTIONS) { //{{{ SEQ case 0: // this is a plain sequence rule tokenHandler.handleToken(pattern.count,checkRule.token, context.rules); lastOffset = pos + pattern.count; break; //}}} //{{{ SPAN case SPAN: context.inRule = checkRule; String setName = new String(checkRule.searchChars, checkRule.sequenceLengths[0] + checkRule.sequenceLengths[1], checkRule.sequenceLengths[2]); ParserRuleSet delegateSet = getRuleSet(setName); if (delegateSet != null) { if ((checkRule.action & EXCLUDE_MATCH) == EXCLUDE_MATCH) { tokenHandler.handleToken(pattern.count, context.rules.getDefault(), context.rules); } else { tokenHandler.handleToken(pattern.count, checkRule.token, context.rules); } lastOffset = pos + pattern.count; context = new LineContext(delegateSet, context); } break; //}}} //{{{ EOL_SPAN case EOL_SPAN: tokenHandler.handleToken(pattern.count, ((checkRule.action & EXCLUDE_MATCH) == EXCLUDE_MATCH ? context.rules.getDefault() : checkRule.token), context.rules); lastOffset = pos + pattern.count; context.inRule = checkRule; context = new LineContext( ParserRuleSet.getStandardRuleSet( checkRule.token),context); break; //}}} //{{{ MARK_PREVIOUS case MARK_PREVIOUS: if (lastKeyword > lastOffset) { tokenHandler.handleToken(lastKeyword - lastOffset, context.rules.getDefault(), context.rules); lastOffset = lastKeyword; } if ((checkRule.action & EXCLUDE_MATCH) == EXCLUDE_MATCH) { tokenHandler.handleToken(pos - lastOffset, checkRule.token,context.rules); tokenHandler.handleToken(pattern.count, context.rules.getDefault(), context.rules); } else { tokenHandler.handleToken(pos - lastOffset + pattern.count, checkRule.token,context.rules); } lastOffset = pos + pattern.count; break; //}}} //{{{ MARK_FOLLOWING case MARK_FOLLOWING: context.inRule = checkRule; if ((checkRule.action & EXCLUDE_MATCH) == EXCLUDE_MATCH) { tokenHandler.handleToken(pattern.count, context.rules.getDefault(), context.rules); lastOffset = pos + pattern.count; } else { lastOffset = pos; } break; //}}} default: throw new InternalError("Unhandled major action"); } lastKeyword = lastOffset; pos += (pattern.count - 1); // move pos to last character of match sequence // break out of inner for loop to check next char } //}}} return true; } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/00425091295b65eb3b8c0a91505de5e168e4bf39/TokenMarker.java/buggy/org/gjt/sp/jedit/syntax/TokenMarker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1640,
2175,
12,
2678,
2175,
866,
2175,
16,
1250,
679,
13,
202,
95,
202,
202,
4951,
18,
1126,
273,
866,
2175,
18,
3072,
7803,
31,
202,
202,
430,
12,
409,
13,
202,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1640,
2175,
12,
2678,
2175,
866,
2175,
16,
1250,
679,
13,
202,
95,
202,
202,
4951,
18,
1126,
273,
866,
2175,
18,
3072,
7803,
31,
202,
202,
430,
12,
409,
13,
202,
202,... |
long time_now = System.currentTimeMillis(); if ( (next_seq_id > last_requested_seq) || (time_now > (last_retrans_request_time + resend_timeout)) || (last_retrans_request_time < 0) ) { Address sequencer = prot_ptr.getSequencer(); if ( sequencer == null ) { System.out.println( "Error: (TOTAL_OLD) TotalRetransmissionThread.checkForResend() - could not determine sequencer to send a TOTAL_RESEND request" ); | long time_now=System.currentTimeMillis(); if((next_seq_id > last_requested_seq) || (time_now > (last_retrans_request_time + resend_timeout)) || (last_retrans_request_time < 0)) { Address sequencer=prot_ptr.getSequencer(); if(sequencer == null) { System.out.println("Error: (TOTAL_OLD) TotalRetransmissionThread.checkForResend() - could not determine sequencer to send a TOTAL_RESEND request"); | private void checkForResend() { long first_seq_id = prot_ptr.getFirstQueuedSeqID(); // sequence id of first queued message /* // begin debug System.out.println( "DEBUG (TotalRetransmissionThread) - first_seq_id = " + first_seq_id ); // end debug */ if ( first_seq_id >= 0 ) { // there is at least one message in the queue long next_seq_id = prot_ptr.getNextSeqID(); // next sequence id expected from the group if ( (next_seq_id < first_seq_id) ) { // TODO: handle case to resend TOTAL_NEW_VIEW message // there are messages that we received out of order //log.error( "DEBUG (TotalRetransmissionThread) - there are messages queued" ); // debug // see if it is time to send a request long time_now = System.currentTimeMillis(); if ( (next_seq_id > last_requested_seq) || (time_now > (last_retrans_request_time + resend_timeout)) || (last_retrans_request_time < 0) ) { // send a resend request to the sequencer //log.error( "DEBUG (TotalRetransmissionThread) - sending resend requests" ); // debug Address sequencer = prot_ptr.getSequencer(); if ( sequencer == null ) { System.out.println( "Error: (TOTAL_OLD) TotalRetransmissionThread.checkForResend() - could not determine sequencer to send a TOTAL_RESEND request" ); return; } Address local_addr = prot_ptr.getLocalAddr(); if ( local_addr == null ) { System.out.println( "Warning: (TOTAL_OLD) TotalRetransmissionThread.checkForResend() - local address not specified in TOTAL_RESEND request... attempting to send requests anyway" ); } long temp_long = (next_seq_id + max_request); // potential max seq id to request (exclusive) long last_resend_seq_id = (temp_long > first_seq_id) ? first_seq_id : temp_long; for( long resend_seq=next_seq_id; resend_seq<last_resend_seq_id ; resend_seq++ ) { sendResendRequest( sequencer, local_addr, resend_seq ); } // update state for this set of resend requests last_retrans_request_time = time_now; last_requested_seq = last_resend_seq_id; } } // if ( (next_seq_id < first_seq_id) ) } // if ( first_seq_id >= 0 ) // else there are no messages to request } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/5ad015d9a78e1da3350d9b398b46b2f5d4508564/TOTAL_OLD.java/clean/src/org/jgroups/protocols/TOTAL_OLD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
13855,
607,
409,
1435,
288,
202,
5748,
1122,
67,
5436,
67,
350,
273,
11121,
67,
6723,
18,
588,
3759,
21039,
6926,
734,
5621,
368,
3102,
612,
434,
1122,
12234,
883,
202,
20308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13855,
607,
409,
1435,
288,
202,
5748,
1122,
67,
5436,
67,
350,
273,
11121,
67,
6723,
18,
588,
3759,
21039,
6926,
734,
5621,
368,
3102,
612,
434,
1122,
12234,
883,
202,
20308,
... |
if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ((RubyString) runtime.getGlobalVar("$FILENAME")).setValue("-"); | if (args.getLength() == 0) { if (currentFile == runtime.getGlobalVar("$stdin")) { return true; | protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ((RubyString) runtime.getGlobalVar("$FILENAME")).setValue("-"); } init_p = true; first_p = false; currentLineNumber = 0; } // retry : while (true) { if (next_p == 1) { next_p = 0; if (args.getLength() > 0) { String filename = ((RubyString) args.shift()).getValue(); ((RubyString) runtime.getGlobalVar("$FILENAME")).setValue(filename); if (filename.equals("-")) { currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); /*if (ruby_inplace_mode) { rb_warn("Can't do inplace edit for stdio"); rb_defout = rb_stdout; }*/ } else { File file = new File(filename); try { RubyInputStream inStream = new RubyInputStream(new BufferedInputStream(new FileInputStream(file))); // FILE *fr = rb_fopen(fn, "r"); /*if (ruby_inplace_mode) { struct stat st, st2; VALUE str; FILE *fw; if (TYPE(rb_defout) == T_FILE && rb_defout != rb_stdout) { rb_io_close(rb_defout); } fstat(fileno(fr), &st); if (*ruby_inplace_mode) { str = rb_str_new2(fn); #ifdef NO_LONG_FNAME ruby_add_suffix(str, ruby_inplace_mode); #else rb_str_cat2(str, ruby_inplace_mode); #endif #ifdef NO_SAFE_RENAME (void)fclose(fr); (void)unlink(RSTRING(str)->ptr); (void)rename(fn, RSTRING(str)->ptr); fr = rb_fopen(RSTRING(str)->ptr, "r"); #else if (rename(fn, RSTRING(str)->ptr) < 0) { rb_warn("Can't rename %s to %s: %s, skipping file", fn, RSTRING(str)->ptr, strerror(errno)); fclose(fr); goto retry; } #endif } else { #ifdef NO_SAFE_RENAME rb_fatal("Can't do inplace edit without backup"); #else if (unlink(fn) < 0) { rb_warn("Can't remove %s: %s, skipping file", fn, strerror(errno)); fclose(fr); goto retry; } #endif } fw = rb_fopen(fn, "w"); #ifndef NO_SAFE_RENAME fstat(fileno(fw), &st2); #ifdef HAVE_FCHMOD fchmod(fileno(fw), st.st_mode); #else chmod(fn, st.st_mode); #endif if (st.st_uid!=st2.st_uid || st.st_gid!=st2.st_gid) { fchown(fileno(fw), st.st_uid, st.st_gid); } #endif rb_defout = prep_stdio(fw, FMODE_WRITABLE, rb_cFile); prep_path(rb_defout, fn); }*/ currentFile = new RubyFile(runtime, runtime.getClasses().getFileClass()); currentFile.initIO(inStream, null, filename); // prep_stdio(fr, FMODE_READABLE, rb_cFile); // prep_path(current_file, fn); } catch (FileNotFoundException fnfExcptn) { throw new IOError(runtime, fnfExcptn.getMessage()); } } /*if (binmode) rb_io_binmode(current_file);*/ } else { init_p = false; return false; } } //break; //} return true; } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/49c17b4ec0ae2e046650a9ace532caa461a65f20/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1024,
2615,
812,
1435,
288,
3639,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
9448,
18,
588,
5160,
1537,
2932,
8,
7388,
1769,
3639,
309,
16051,
2738,
67,
84,
13,
288,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
1024,
2615,
812,
1435,
288,
3639,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
9448,
18,
588,
5160,
1537,
2932,
8,
7388,
1769,
3639,
309,
16051,
2738,
67,
84,
13,
288,
5... |
return new ParseStatus().getEmptyParse(); | return new ParseStatus().getEmptyParse(this.nutchConf); | public final static Parse parseByParserId(String parserId, Content content) throws ParseException { Parse parse = null; Parser p = null; try { p = ParserFactory.getParserById(parserId); } catch (ParserNotFound e) { LOG.warning("No suitable parser found when trying to parse content " + content); throw new ParseException(e.getMessage()); } parse = p.getParse(content); if (parse != null && parse.getData().getStatus().isSuccess()) { return parse; } else { LOG.warning("Unable to successfully parse content " + content.getUrl() + " of type " + content.getContentType()); return new ParseStatus().getEmptyParse(); } } | 46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/329ff64e9d7295aff108f85e9a8103f5e5f8f398/ParseUtil.java/buggy/src/java/org/apache/nutch/parse/ParseUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
760,
2884,
1109,
858,
2678,
548,
12,
780,
2082,
548,
16,
3697,
913,
13,
225,
1216,
10616,
288,
565,
2884,
1109,
273,
446,
31,
565,
6783,
293,
273,
446,
31,
3639,
775,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
760,
2884,
1109,
858,
2678,
548,
12,
780,
2082,
548,
16,
3697,
913,
13,
225,
1216,
10616,
288,
565,
2884,
1109,
273,
446,
31,
565,
6783,
293,
273,
446,
31,
3639,
775,
288,
... |
if (tab != currentTab) | if (tab != currentTab) { | public void selectionChanged(SelectionChangedEvent event) { IStructuredSelection selection = (IStructuredSelection) event .getSelection(); Tab tab = null; TabDescriptor descriptor = (TabDescriptor) selection .getFirstElement(); if (descriptor == null) { // pretend the tab is empty. hideTab(currentTab); } else { // create tab if necessary // can not cache based on the id - tabs may have the same id, // but different section depending on the selection tab = (Tab) descriptorToTab.get(descriptor); if (tab != currentTab) hideTab(currentTab); Composite tabComposite = (Composite) tabToComposite.get(tab); if (tabComposite == null) { tabComposite = createTabComposite(); tab.createControls(tabComposite, TabbedPropertySheetPage.this); // tabAreaComposite.layout(true); tabToComposite.put(tab, tabComposite); } // force widgets to be resized tab.setInput(tabbedPropertyViewer.getWorkbenchPart(), (ISelection) tabbedPropertyViewer.getInput()); // store tab selection storeCurrentTabSelection(descriptor.getLabel()); if (tab != currentTab) showTab(tab); tab.refresh(); } tabbedPropertyComposite.getTabComposite().layout(true); currentTab = tab; resizeScrolledComposite(); if (descriptor != null) handleTabSelection(descriptor); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3a23c3b9bac4db696a0452560047155775a707b7/TabbedPropertySheetPage.java/clean/bundles/org.eclipse.ui.views.properties.tabbed/src/org/eclipse/ui/views/properties/tabbed/TabbedPropertySheetPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
4421,
5033,
12,
6233,
27553,
871,
13,
288,
1082,
202,
45,
30733,
6233,
4421,
273,
261,
45,
30733,
6233,
13,
871,
9506,
202,
18,
588,
6233,
5621,
1082,
202,
5661,
3246,
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,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
4421,
5033,
12,
6233,
27553,
871,
13,
288,
1082,
202,
45,
30733,
6233,
4421,
273,
261,
45,
30733,
6233,
13,
871,
9506,
202,
18,
588,
6233,
5621,
1082,
202,
5661,
3246,
2... |
return new Document(buffer.toString()); | return new Document(buffer.toString()); | private IDocument createDocument(IResource file) throws Exception { BufferedReader reader = new BufferedReader(new FileReader(file.getLocation().toOSString())); StringBuffer buffer = new StringBuffer(); while (reader.ready()) { buffer.append((char)reader.read()); } reader.close(); return new Document(buffer.toString()); } | 14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/fb8cc99347ed89eba89feea8ec146c92f358e9b0/MigratePluginWizard.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/tools/MigratePluginWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1599,
504,
650,
27569,
12,
45,
1420,
585,
13,
1216,
1185,
288,
202,
202,
17947,
2514,
2949,
273,
202,
202,
2704,
10633,
12,
2704,
23010,
12,
768,
18,
588,
2735,
7675,
869,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1599,
504,
650,
27569,
12,
45,
1420,
585,
13,
1216,
1185,
288,
202,
202,
17947,
2514,
2949,
273,
202,
202,
2704,
10633,
12,
2704,
23010,
12,
768,
18,
588,
2735,
7675,
869,
46... |
File file = new File( path.toOSString() ); if ( !file.exists() ) { requestFailed( MessageFormat.format( CoreModelMessages.getString( "CModule.3" ), new String[] { path.toOSString() } ), null ); | String message = CoreModelMessages.getString( "CModule.4" ); if ( fCDIObject instanceof ICDISharedLibrary ) { try { ((ICDISharedLibrary)fCDIObject).loadSymbols(); return; } catch( CDIException e ) { message = e.getMessage(); } | private void loadSymbolsFromFile( IPath path ) throws DebugException { if ( path == null || path.isEmpty() ) { requestFailed( CoreModelMessages.getString( "CModule.2" ), null ); //$NON-NLS-1$ } File file = new File( path.toOSString() ); if ( !file.exists() ) { requestFailed( MessageFormat.format( CoreModelMessages.getString( "CModule.3" ), new String[] { path.toOSString() } ), null ); //$NON-NLS-1$ } targetRequestFailed( CoreModelMessages.getString( "CModule.4" ), null ); //$NON-NLS-1$ } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0e6c24fc423c536de8661d8f83c089fcbef8d001/CModule.java/clean/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1262,
14821,
13087,
12,
467,
743,
589,
262,
1216,
4015,
503,
288,
202,
202,
430,
261,
589,
422,
446,
747,
589,
18,
291,
1921,
1435,
262,
288,
1082,
202,
2293,
2925,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1262,
14821,
13087,
12,
467,
743,
589,
262,
1216,
4015,
503,
288,
202,
202,
430,
261,
589,
422,
446,
747,
589,
18,
291,
1921,
1435,
262,
288,
1082,
202,
2293,
2925,
12,
... |
AbstractColorChooserPanel[] newPanels = new AbstractColorChooserPanel[chooserPanels.length - 1]; | AbstractColorChooserPanel[] newPanels = new AbstractColorChooserPanel[chooserPanels.length - 1]; | public AbstractColorChooserPanel removeChooserPanel(AbstractColorChooserPanel panel) { int index = -1; for (int i = 0; i < chooserPanels.length; i++) if (panel == chooserPanels[i]) { index = i; break; } if (index == -1) return null; AbstractColorChooserPanel[] old = chooserPanels; if (chooserPanels.length == 1) chooserPanels = null; else { AbstractColorChooserPanel[] newPanels = new AbstractColorChooserPanel[chooserPanels.length - 1]; System.arraycopy(chooserPanels, 0, newPanels, 0, index); System.arraycopy(chooserPanels, index, newPanels, index - 1, chooserPanels.length - index); chooserPanels = newPanels; } panel.uninstallChooserPanel(this); firePropertyChange(CHOOSER_PANELS_PROPERTY, old, chooserPanels); return panel; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/159638d634951eb718c5e3a0917ef516d5a44797/JColorChooser.java/buggy/core/src/classpath/javax/javax/swing/JColorChooser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4115,
2957,
17324,
5537,
1206,
17324,
5537,
12,
7469,
2957,
17324,
5537,
6594,
13,
225,
288,
565,
509,
770,
273,
300,
21,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5011... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4115,
2957,
17324,
5537,
1206,
17324,
5537,
12,
7469,
2957,
17324,
5537,
6594,
13,
225,
288,
565,
509,
770,
273,
300,
21,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5011... |
Logs.reportMessage("CSLOOK_Header", "indexes"); | Logs.reportMessage("CSLOOK_IndexesHeader"); | public static void doIndexes(Connection conn) throws SQLException { Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT TABLEID, CONGLOMERATENAME, " + "DESCRIPTOR, SCHEMAID, ISINDEX, ISCONSTRAINT FROM SYS.SYSCONGLOMERATES " + "ORDER BY TABLEID"); boolean firstTime = true; while (rs.next()) { if (!rs.getBoolean(5) || // (isindex == false) rs.getBoolean(6)) // (isconstraint == true) // then skip it. continue; String tableId = rs.getString(1); String tableName = dblook.lookupTableId(tableId); if (tableName == null) // then tableId isn't a user table, so we can skip it. continue; else if (dblook.isExcludedTable(tableName)) // table isn't specified in user-given list. continue; String iSchema = dblook.lookupSchemaId(rs.getString(4)); if (dblook.isIgnorableSchema(iSchema)) continue; if (firstTime) { Logs.reportString("----------------------------------------------"); Logs.reportMessage("CSLOOK_Header", "indexes"); Logs.reportString("----------------------------------------------\n"); } String iName = dblook.addQuotes( dblook.expandDoubleQuotes(rs.getString(2))); iName = iSchema + "." + iName; StringBuffer createIndexString = createIndex(iName, tableName, tableId, rs.getString(3)); Logs.writeToNewDDL(createIndexString.toString()); Logs.writeStmtEndToNewDDL(); Logs.writeNewlineToNewDDL(); firstTime = false; } rs.close(); stmt.close(); } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/89cd70bb00e2c7cbb8968053e433ef0baded0d5c/DB_Index.java/buggy/java/tools/org/apache/derby/impl/tools/cslook/DB_Index.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
741,
8639,
12,
1952,
1487,
13,
202,
202,
15069,
6483,
202,
95,
202,
202,
3406,
3480,
273,
1487,
18,
2640,
3406,
5621,
202,
202,
13198,
3597,
273,
3480,
18,
8837,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
741,
8639,
12,
1952,
1487,
13,
202,
202,
15069,
6483,
202,
95,
202,
202,
3406,
3480,
273,
1487,
18,
2640,
3406,
5621,
202,
202,
13198,
3597,
273,
3480,
18,
8837,
113... |
private Map getExtendedFieldInfo(FBConnection connection) throws SQLException { if (connection == null) return Collections.EMPTY_MAP; // // Apparently there is a limit in the UNION // It is necesary to split in several querys // Although the problem reported with 93 UNION use only 70 // int pending = xsqlvars.length; HashMap result = new HashMap(); while (pending > 0){ StringBuffer sb = new StringBuffer(); ArrayList params = new ArrayList(); int maxLength = (pending>70) ? 70 : pending; for (int i = 0; i < maxLength; i++) { String relationName = xsqlvars[i].relname; String fieldName = xsqlvars[i].sqlname; if (relationName == null || fieldName == null) continue; sb.append(GET_FIELD_INFO); params.add(fieldName); params.add(relationName); if (i < maxLength - 1) sb.append("\n").append("UNION").append("\n"); } ResultSet rs = connection.doQuery( sb.toString(), params, ((FBDatabaseMetaData)connection.getMetaData()).statements); try { while(rs.next()) { ExtendedFieldInfo fieldInfo = new ExtendedFieldInfo(); fieldInfo.relationName = rs.getString("RELATION_NAME"); fieldInfo.fieldName = rs.getString("FIELD_NAME"); fieldInfo.fieldLength = rs.getInt("FIELD_LENGTH"); fieldInfo.fieldPrecision = rs.getInt("FIELD_PRECISION"); fieldInfo.fieldScale = rs.getInt("FIELD_SCALE"); fieldInfo.fieldSubtype = rs.getInt("FIELD_SUB_TYPE"); fieldInfo.characterSetId = rs.getInt("CHARACTER_SET_ID"); fieldInfo.characterLength = rs.getInt("CHARACTER_LENGTH"); if (rs.wasNull()) fieldInfo.characterLength = fieldInfo.fieldLength / FBConnectionHelper.getCharacterSetSize(fieldInfo.characterSetId); result.put( new FieldKey(fieldInfo.relationName, fieldInfo.fieldName), fieldInfo); } } finally { rs.close(); } pending -= maxLength; } return result; } | 6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/21625951f0698aac914bce295a5ff745f86610b6/FBResultSetMetaData.java/clean/src/main/org/firebirdsql/jdbc/FBResultSetMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1635,
336,
11456,
974,
966,
12,
22201,
1952,
1459,
13,
1216,
6483,
288,
7734,
309,
261,
4071,
422,
446,
13,
327,
5737,
18,
13625,
67,
8352,
31,
7734,
368,
3639,
368,
1716,
2938,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1635,
336,
11456,
974,
966,
12,
22201,
1952,
1459,
13,
1216,
6483,
288,
7734,
309,
261,
4071,
422,
446,
13,
327,
5737,
18,
13625,
67,
8352,
31,
7734,
368,
3639,
368,
1716,
2938,
7... | ||
public static boolean toBoolean(Object value) { | public static boolean toBoolean(Object value) { | public static boolean toBoolean(Object value) { return ScriptRuntime.toBoolean(value); } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/767031d59e433c96cbc46c5e9fa8adb631f14074/Context.java/clean/src/org/mozilla/javascript/Context.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
358,
5507,
12,
921,
460,
13,
288,
3639,
327,
7739,
5576,
18,
869,
5507,
12,
1132,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
358,
5507,
12,
921,
460,
13,
288,
3639,
327,
7739,
5576,
18,
869,
5507,
12,
1132,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return super.methodArity(methodId); | return super.methodArity(f); | public int methodArity(int methodId) { if (prototypeFlag) { if (methodId == Id_constructor) return 1; if (methodId == Id_toString) return 0; if (methodId == Id_toSource) return 0; } return super.methodArity(methodId); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeError.java/buggy/js/rhino/src/org/mozilla/javascript/NativeError.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
13,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
309,
261,
2039,
548,
422,
3124,
67,
12316,
13,
327,
404,
31,
5411,
309,
261,
203... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
13,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
309,
261,
2039,
548,
422,
3124,
67,
12316,
13,
327,
404,
31,
5411,
309,
261,
203... |
return colapseEntries(entries); | return entries; | NavigationHistoryEntry[] getBackwardEntries() { int length = activeEntry; NavigationHistoryEntry[] entries = new NavigationHistoryEntry[length]; for (int i=0; i<activeEntry; i++) { entries[activeEntry - 1 - i] = getEntry(i); } return colapseEntries(entries);} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/56123d8073052725d018c82381541f6c97ca52b6/NavigationHistory.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/NavigationHistory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
22924,
5623,
1622,
8526,
336,
26283,
5400,
1435,
288,
202,
474,
769,
273,
2695,
1622,
31,
202,
14301,
5623,
1622,
8526,
3222,
273,
394,
22924,
5623,
1622,
63,
2469,
15533,
202,
1884,
261,
474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22924,
5623,
1622,
8526,
336,
26283,
5400,
1435,
288,
202,
474,
769,
273,
2695,
1622,
31,
202,
14301,
5623,
1622,
8526,
3222,
273,
394,
22924,
5623,
1622,
63,
2469,
15533,
202,
1884,
261,
474,
... |
BattleChit chit = (BattleChit)it.next(); if (!getBattleActivePlayerName().equals(getPlayerNameByTag( chit.getTag()))) | Iterator it = battleChits.iterator(); while (it.hasNext()) | java.util.List getInactiveBattleChits() { java.util.List chits = new ArrayList(); Iterator it = getBattleChits().iterator(); while (it.hasNext()) { BattleChit chit = (BattleChit)it.next(); if (!getBattleActivePlayerName().equals(getPlayerNameByTag( chit.getTag()))) { chits.add(chit); } } return chits; } | 51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/774f62acb01e82c4247c33c3d057f6047bd6b87d/Client.java/clean/Colossus/net/sf/colossus/client/Client.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2252,
18,
1367,
18,
682,
7854,
3535,
38,
4558,
298,
782,
1282,
1435,
565,
288,
3639,
2252,
18,
1367,
18,
682,
462,
1282,
273,
394,
2407,
5621,
3639,
4498,
518,
273,
2882,
4558,
298,
782... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2252,
18,
1367,
18,
682,
7854,
3535,
38,
4558,
298,
782,
1282,
1435,
565,
288,
3639,
2252,
18,
1367,
18,
682,
462,
1282,
273,
394,
2407,
5621,
3639,
4498,
518,
273,
2882,
4558,
298,
782... |
this.core.getConfigWindow().removeTab(this.configPanel); this.core.getConfigWindow().deleteObserver(this); this.running = false; | core.getConfigWindow().removeTab(configPanel); core.getConfigWindow().deleteObserver(this); running = false; | public boolean stop() { this.core.getConfigWindow().removeTab(this.configPanel); this.core.getConfigWindow().deleteObserver(this); this.running = false; return true; } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/Restarter.java/buggy/src/thaw/plugins/Restarter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2132,
1435,
288,
202,
202,
2211,
18,
3644,
18,
588,
809,
3829,
7675,
4479,
5661,
12,
2211,
18,
1425,
5537,
1769,
202,
202,
2211,
18,
3644,
18,
588,
809,
3829,
7675,
3733... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2132,
1435,
288,
202,
202,
2211,
18,
3644,
18,
588,
809,
3829,
7675,
4479,
5661,
12,
2211,
18,
1425,
5537,
1769,
202,
202,
2211,
18,
3644,
18,
588,
809,
3829,
7675,
3733... |
String iteratorName, String contentType){ | String iteratorName, String contentType){ | private static boolean isIteratorNext(PsiElement element, String iteratorName, String contentType){ if(element == null){ return false; } if(element instanceof PsiTypeCastExpression){ final PsiTypeCastExpression castExpression = (PsiTypeCastExpression) element; final PsiType type = castExpression.getType(); if(type == null){ return false; } if(!type.getPresentableText().equals(contentType)){ return false; } final PsiExpression operand = castExpression.getOperand(); return isIteratorNext(operand, iteratorName, contentType); } if(!(element instanceof PsiMethodCallExpression)){ return false; } final PsiMethodCallExpression callExpression = (PsiMethodCallExpression) element; final PsiExpressionList argumentList = callExpression.getArgumentList(); if(argumentList == null){ return false; } final PsiExpression[] args = argumentList.getExpressions(); if(args == null || args.length != 0){ return false; } final PsiReferenceExpression reference = callExpression.getMethodExpression(); if(reference == null){ return false; } final PsiExpression qualifier = reference.getQualifierExpression(); if(qualifier == null){ return false; } if(!iteratorName.equals(qualifier.getText())){ return false; } final String referenceName = reference.getReferenceName(); return "next".equals(referenceName); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/f4d42343faae0a9a5d67701acaf912882ddb379c/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/ForCanBeForeachInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
760,
1250,
353,
3198,
2134,
12,
52,
7722,
1046,
930,
16,
4766,
4202,
514,
2775,
461,
16,
514,
5064,
15329,
5411,
309,
12,
2956,
422,
446,
15329,
7734,
327,
629,
31,
5411,
289,
541... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
760,
1250,
353,
3198,
2134,
12,
52,
7722,
1046,
930,
16,
4766,
4202,
514,
2775,
461,
16,
514,
5064,
15329,
5411,
309,
12,
2956,
422,
446,
15329,
7734,
327,
629,
31,
5411,
289,
541... |
put(PdfName.CREATIONDATE, new PdfDate()); } | put(PdfName.CREATIONDATE, new PdfDate()); } | void addCreationDate() { put(PdfName.CREATIONDATE, new PdfDate()); } | 3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/6288f051b807f9da0a0f308a00b5851da285b8fb/PdfDocument.java/buggy/itext/src/com/lowagie/text/pdf/PdfDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
527,
9906,
1626,
1435,
288,
5411,
1378,
12,
18562,
461,
18,
5458,
2689,
4594,
16,
394,
9989,
1626,
10663,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
527,
9906,
1626,
1435,
288,
5411,
1378,
12,
18562,
461,
18,
5458,
2689,
4594,
16,
394,
9989,
1626,
10663,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
case tAREF: | /*case tAREF: | private void void_expr(NODE node) { String useless = null; if (!RTEST(ruby_verbose)) return; if (node == null) return; again:for(;;) { switch (nd_type(node)) { case NODE.NODE_NEWLINE: node = node.nd_next(); continue again; case NODE.NODE_CALL: switch (node.nd_mid().intValue()) { case '+': case '-': case '*': case '/': case '%': case tPOW: case tUPLUS: case tUMINUS: case '|': case '^': case '&': case tCMP: case '>': case tGEQ: case '<': case tLEQ: case tEQ: case tNEQ: case tAREF: case tRSHFT: case tCOLON2: case tCOLON3: useless = ID.rb_id2name(ruby, node.nd_mid()); break; } break; case NODE.NODE_LVAR: case NODE.NODE_DVAR: case NODE.NODE_GVAR: case NODE.NODE_IVAR: case NODE.NODE_CVAR: case NODE.NODE_NTH_REF: case NODE.NODE_BACK_REF: useless = "a variable"; break; case NODE.NODE_CONST: case NODE.NODE_CREF: useless = "a constant"; break; case NODE.NODE_LIT: case NODE.NODE_STR: case NODE.NODE_DSTR: case NODE.NODE_DREGX: case NODE.NODE_DREGX_ONCE: useless = "a literal"; break; case NODE.NODE_COLON2: case NODE.NODE_COLON3: useless = "::"; break; case NODE.NODE_DOT2: useless = ".."; break; case NODE.NODE_DOT3: useless = "..."; break; case NODE.NODE_SELF: useless = "self"; break; case NODE.NODE_NIL: useless = "nil"; break; case NODE.NODE_TRUE: useless = "true"; break; case NODE.NODE_FALSE: useless = "false"; break; case NODE.NODE_DEFINED: useless = "defined?"; break; } break again; } if (useless != null) { int line = ruby_sourceline; ruby_sourceline = nd_line(node); rb_warn("useless use of %s in void context", useless); ruby_sourceline = line; } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
918,
67,
8638,
12,
8744,
756,
13,
565,
288,
3639,
514,
26967,
273,
446,
31,
3639,
309,
16051,
54,
16961,
12,
27768,
67,
11369,
3719,
327,
31,
3639,
309,
261,
2159,
422,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
67,
8638,
12,
8744,
756,
13,
565,
288,
3639,
514,
26967,
273,
446,
31,
3639,
309,
16051,
54,
16961,
12,
27768,
67,
11369,
3719,
327,
31,
3639,
309,
261,
2159,
422,
446,
... |
c.put("RealLiteralExp", new Ctor() { public Object cr() { return f.createRealLiteralExp(); } } ); | c.put("StringLiteralExp", new Ctor() { public Object cr() { return f.createStringLiteralExp(); } } ); | c.put("RealLiteralExp", new Ctor() { public Object cr() { return f.createRealLiteralExp(); } } ); | 6381 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6381/5848b09a05a0270ad806977266410a4b62cae09f/NodeFactory.java/buggy/ocl20/src/tudresden/ocl20/core/parser/astgen/NodeFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
276,
18,
458,
2932,
6955,
6177,
2966,
3113,
540,
394,
385,
13039,
1435,
288,
1071,
1033,
4422,
1435,
288,
327,
284,
18,
2640,
6955,
6177,
2966,
5621,
289,
289,
11272,
2,
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,
0,
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,
276,
18,
458,
2932,
6955,
6177,
2966,
3113,
540,
394,
385,
13039,
1435,
288,
1071,
1033,
4422,
1435,
288,
327,
284,
18,
2640,
6955,
6177,
2966,
5621,
289,
289,
11272,
2,
-100,
-100,
-100,... |
catch (MessageFormatException mfs) | catch (NumberFormatException mfs) | public void testByte() throws JMSException { JMSPropertyFieldTable table1 = new JMSPropertyFieldTable(); table1.setByte("value", Byte.MAX_VALUE); Assert.assertTrue(table1.propertyExists("value")); //Tets lookups we shouldn't get anything back for other gets //we should get right value back for this type .... try { table1.getBoolean("value"); fail("Should throw MessageFormatException"); } catch (MessageFormatException mfs) { //normal Execution } try { table1.getDouble("value"); fail("Should throw MessageFormatException"); } catch (MessageFormatException mfs) { //normal Execution } try { table1.getFloat("value"); fail("Should throw MessageFormatException"); } catch (MessageFormatException mfs) { //normal Execution } Assert.assertEquals(Byte.MAX_VALUE, (byte) table1.getShort("value")); Assert.assertEquals(Byte.MAX_VALUE, (byte) table1.getInteger("value")); Assert.assertEquals(Byte.MAX_VALUE, (byte) table1.getLong("value")); Assert.assertEquals(Byte.MAX_VALUE, table1.getByte("value")); //... and a the string value of it. Assert.assertEquals("" + Byte.MAX_VALUE, table1.getString("value")); table1.remove("value"); //but after a remove it doesn't Assert.assertFalse(table1.propertyExists("value")); // Table should now have zero size for encoding checkEmpty(table1); //Looking up an invalid value returns null try { table1.getByte("Rubbish"); fail("Should throw MessageFormatException"); } catch (MessageFormatException mfs) { //normal Execution } } | 45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/7977b456f513ac1da247b1b16423fb23bbf2a3bf/JMSPropertyFieldTableTest.java/clean/qpid/java/common/src/test/java/org/apache/qpid/framing/JMSPropertyFieldTableTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3216,
1435,
1216,
20343,
565,
288,
3639,
13270,
1396,
974,
1388,
1014,
21,
273,
394,
13270,
1396,
974,
1388,
5621,
3639,
1014,
21,
18,
542,
3216,
2932,
1132,
3113,
3506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3216,
1435,
1216,
20343,
565,
288,
3639,
13270,
1396,
974,
1388,
1014,
21,
273,
394,
13270,
1396,
974,
1388,
5621,
3639,
1014,
21,
18,
542,
3216,
2932,
1132,
3113,
3506,
... |
super.delete(); | super.delete(childrenOnly, writeTombstones); | void delete() throws ServiceException { MailItem parent = getParent(); if (parent instanceof Conversation && parent.mData.children.size() == 1) parent.delete(); else super.delete(); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/4991475788413b07fe4f75cf947065aa6f55056f/Message.java/clean/ZimbraServer/src/java/com/zimbra/cs/mailbox/Message.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1430,
1435,
1216,
16489,
288,
3639,
11542,
1180,
982,
273,
5089,
5621,
3639,
309,
261,
2938,
1276,
16765,
597,
982,
18,
81,
751,
18,
5906,
18,
1467,
1435,
422,
404,
13,
5411,
982,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1430,
1435,
1216,
16489,
288,
3639,
11542,
1180,
982,
273,
5089,
5621,
3639,
309,
261,
2938,
1276,
16765,
597,
982,
18,
81,
751,
18,
5906,
18,
1467,
1435,
422,
404,
13,
5411,
982,
... |
chatFrame.setVisible(true); int tabLocation = indexOfComponent(chatRoom); setSelectedIndex(tabLocation); if (!SparkManager.getMainWindow().isVisible()) { startFlashing(chatRoom); } else if (chatFrame.getState() == Frame.ICONIFIED) { startFlashing(chatRoom); } } else if (chatRoom != activeChatRoom) { startFlashing(chatRoom); } | }); | public void fireNotifyOnMessage(final ChatRoom chatRoom) { ChatRoom activeChatRoom = null; try { activeChatRoom = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { Log.error(e1); } if (chatFrame.isVisible() && (chatFrame.getState() == Frame.ICONIFIED || chatFrame.getInactiveTime() > 20000)) { int tabLocation = indexOfComponent(chatRoom); setSelectedIndex(tabLocation); startFlashing(chatRoom); return; } if (!chatFrame.isVisible() && SparkManager.getMainWindow().isFocused()) { chatFrame.setState(Frame.NORMAL); chatFrame.setVisible(true); } else if (chatFrame.isVisible() && !chatFrame.isInFocus()) { startFlashing(chatRoom); } else if (chatFrame.isVisible() && chatFrame.getState() == Frame.ICONIFIED) { // Set to new tab. int tabLocation = indexOfComponent(chatRoom); setSelectedIndex(tabLocation); // If the ContactList is in the tray, we need better notification by flashing // the chatframe. startFlashing(chatRoom); } // Handle when chat frame is visible but the Contact List is not. else if (chatFrame.isVisible() && !SparkManager.getMainWindow().isVisible() && !chatFrame.isInFocus()) { startFlashing(chatRoom); } else if (!chatFrame.isVisible()) { if (Spark.isWindows()) { chatFrame.setFocusableWindowState(false); chatFrame.setState(Frame.ICONIFIED); } chatFrame.setVisible(true); // Set to new tab. int tabLocation = indexOfComponent(chatRoom); setSelectedIndex(tabLocation); // If the ContactList is in the tray, we need better notification by flashing // the chatframe. if (!SparkManager.getMainWindow().isVisible()) { startFlashing(chatRoom); } else if (chatFrame.getState() == Frame.ICONIFIED) { startFlashing(chatRoom); } } else if (chatRoom != activeChatRoom) { startFlashing(chatRoom); } } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/679c55c119e5807b621b021ce6ce8ef36ef890f3/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4452,
9168,
1398,
1079,
12,
6385,
16903,
13646,
7916,
13646,
13,
288,
3639,
16903,
13646,
2695,
14163,
13646,
273,
446,
31,
3639,
775,
288,
5411,
2695,
14163,
13646,
273,
11960,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4452,
9168,
1398,
1079,
12,
6385,
16903,
13646,
7916,
13646,
13,
288,
3639,
16903,
13646,
2695,
14163,
13646,
273,
446,
31,
3639,
775,
288,
5411,
2695,
14163,
13646,
273,
11960,
... |
return 0; | return value; | public int getFoldingOffset(int value){ return 0; } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/d30fc35c3b8df503eb3c746ea4f7419ac7361c10/NormalizerImpl.java/clean/icu4j/src/com/ibm/icu/impl/NormalizerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
565,
1071,
509,
2812,
1673,
310,
2335,
12,
474,
460,
15329,
1082,
202,
2463,
374,
31,
202,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
565,
1071,
509,
2812,
1673,
310,
2335,
12,
474,
460,
15329,
1082,
202,
2463,
374,
31,
202,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
_t = __t2008; | _t = __t2012; | public final void spacephrase(AST _t) throws RecognitionException { AST spacephrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2008 = _t; AST tmp2134_AST_in = (AST)_t; match(_t,SPACE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTPAREN: { funargs(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2008; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3476,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3476,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3476,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3476,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053... |
Query q1 = new Query("select table1.field1 from table1 group by table1.field1 having table1.field1 = 1 and table1.field2 = 2"); Query q2 = new Query(); | q1 = new Query("select table1.field1 from table1 group by table1.field1 having table1.field1 = 1 and table1.field2 = 2"); q2 = new Query(); | public void testHavingTwoEqualConstraints() throws Exception { Query q1 = new Query("select table1.field1 from table1 group by table1.field1 having table1.field1 = 1 and table1.field2 = 2"); Query q2 = new Query(); Table t1 = new Table("table1"); Field f1 = new Field("field1", t1); Field f2 = new Field("field2", t1); Constant c1 = new Constant("1"); Constant c2 = new Constant("2"); SelectValue sv1 = new SelectValue(f1, null); q2.addSelect(sv1); q2.addFrom(t1); q2.addGroupBy(f1); q2.addHaving(new Constraint(f1, Constraint.EQ, c1)); q2.addHaving(new Constraint(f2, Constraint.EQ, c2)); assertEquals(q2, q1); } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/a5e9331f55149bdc78aa8770ceaec1bc56d8e9dd/QueryTest.java/buggy/intermine/src/test/org/intermine/sql/query/QueryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
29954,
11710,
5812,
4878,
1435,
1216,
1185,
288,
3639,
2770,
1043,
21,
273,
394,
2770,
2932,
4025,
1014,
21,
18,
1518,
21,
628,
1014,
21,
1041,
635,
1014,
21,
18,
1518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29954,
11710,
5812,
4878,
1435,
1216,
1185,
288,
3639,
2770,
1043,
21,
273,
394,
2770,
2932,
4025,
1014,
21,
18,
1518,
21,
628,
1014,
21,
1041,
635,
1014,
21,
18,
1518,
... |
int state = CL_NONE; | int _state = CL_NONE; | private int checkLoop (OPT_Instruction inst, OPT_HeapOperand hop, int xidx, OPT_BasicBlock block) { HashSet seen = new HashSet(); OPT_Queue workList = new OPT_Queue(); int state = CL_NONE; int instUses = 0; seen.add (inst); for (int i = Phi.getNumberOfValues (inst) - 1; i >= 0; --i) { if (i == xidx) continue; OPT_Instruction y = definingInstruction (Phi.getValue (inst, i)); if (y == inst) instUses++; if (!(seen.contains (y))) { seen.add (y); workList.insert (y); } } while (!(workList.isEmpty())) { OPT_Instruction y = (OPT_Instruction) workList.remove(); if (Phi.conforms (y)) { for (int i = Phi.getNumberOfValues (y) - 1; i >= 0; --i) { OPT_Instruction z = definingInstruction (Phi.getValue (y, i)); if (z == inst) instUses++; if (!(seen.contains (z))) { seen.add (z); workList.insert (z); } } } else if (( y.isPEI()) || !LocationCarrier.conforms (y) || y.operator.isAcquire() || y.operator.isRelease()) { return CL_COMPLEX; } else { // check for access to volatile field OPT_LocationOperand loc = LocationCarrier.getLocation (y); if (loc == null || loc.mayBeVolatile()) { //VM.sysWrite (" no loc or volatile field\n"); return CL_COMPLEX; } if (y.isImplicitStore()) { // only accept loop-invariant stores // conservatively estimate loop-invariance by header domination if (!inVariantLocation (y, block)) return CL_COMPLEX; state |= CL_STORES_ONLY; } else { state |= CL_LOADS_ONLY; } OPT_HeapOperand[] ops = ssad.getHeapUses (y); for (int j = 0; j < ops.length; ++j) { if (ops[j].value.type == ssad.exceptionState) continue; if (ops[j].value.type != hop.value.type) return CL_COMPLEX; y = definingInstruction (ops[j]); if (y == inst) instUses++; if (!(seen.contains (y))) { seen.add (y); workList.insert (y); } } } } if (state == CL_STORES_ONLY && ssad.getNumberOfUses (hop.value) != instUses) return CL_COMPLEX; return state; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/35bd01b7529801989a0cf74ba4bc2553fd6572ec/OPT_LICM.java/buggy/rvm/src/vm/compilers/optimizing/optimizations/global/ssa/codePlacement/OPT_LICM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
866,
6452,
261,
15620,
67,
11983,
1804,
16,
16456,
67,
15648,
10265,
19055,
16,
509,
619,
3465,
16,
7682,
16456,
67,
8252,
1768,
1203,
13,
225,
288,
565,
6847,
5881,
273,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
866,
6452,
261,
15620,
67,
11983,
1804,
16,
16456,
67,
15648,
10265,
19055,
16,
509,
619,
3465,
16,
7682,
16456,
67,
8252,
1768,
1203,
13,
225,
288,
565,
6847,
5881,
273,
394,
... |
} | } | public void addSeparator(String label) { Box box = new Box(BoxLayout.X_AXIS); Box box2 = new Box(BoxLayout.Y_AXIS); box2.add(Box.createGlue()); box2.add(new JSeparator(JSeparator.HORIZONTAL)); box2.add(Box.createGlue()); box.add(box2); JLabel l = new JLabel(jEdit.getProperty(label)); l.setMaximumSize(l.getPreferredSize()); box.add(l); Box box3 = new Box(BoxLayout.Y_AXIS); box3.add(Box.createGlue()); box3.add(new JSeparator(JSeparator.HORIZONTAL)); box3.add(Box.createGlue()); box.add(box3); GridBagConstraints cons = new GridBagConstraints(); cons.gridy = y++; cons.gridheight = 1; cons.gridwidth = cons.REMAINDER; cons.fill = GridBagConstraints.BOTH; cons.anchor = GridBagConstraints.WEST; cons.weightx = 1.0f; gridBag.setConstraints(box,cons); add(box); } | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/75f860d41ada6e94e8961fbea0bb3a06c855a15c/AbstractOptionPane.java/buggy/org/gjt/sp/jedit/AbstractOptionPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
6581,
12,
780,
1433,
13,
202,
95,
202,
202,
3514,
3919,
273,
394,
8549,
12,
3514,
3744,
18,
60,
67,
25614,
1769,
202,
202,
3514,
3919,
22,
273,
394,
8549,
12,
3514... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
6581,
12,
780,
1433,
13,
202,
95,
202,
202,
3514,
3919,
273,
394,
8549,
12,
3514,
3744,
18,
60,
67,
25614,
1769,
202,
202,
3514,
3919,
22,
273,
394,
8549,
12,
3514... |
if (screenNames.values().contains(screenName)){ | if (reverseScreenNames.get(screenName)!=null){ | public void setScreenName(UserID uid, String screenName){ SimTask task = SimTask.getCurrent(); if (screenNames.values().contains(screenName)){ task.sendData(controlChannel,new UserID[]{uid}, ByteBuffer.wrap("already-joined".getBytes()),true); return; } screenNames.put(uid,screenName); setupBoard(task,uid); if (screenNames.size()==MAX_PLAYERS){ // all screen names set, lets start playing! joinPlayers(task); } } | 55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/6d5b089648cfaea2420fd2cf2f0f51643f05cd77/BattleBoardGame.java/clean/src/com/sun/gi/apps/jeffboard/BattleBoardGame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
7956,
461,
12,
16631,
4555,
16,
514,
5518,
461,
15329,
202,
202,
7993,
2174,
1562,
273,
9587,
2174,
18,
588,
3935,
5621,
202,
202,
430,
261,
9252,
1557,
18,
2372,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
7956,
461,
12,
16631,
4555,
16,
514,
5518,
461,
15329,
202,
202,
7993,
2174,
1562,
273,
9587,
2174,
18,
588,
3935,
5621,
202,
202,
430,
261,
9252,
1557,
18,
2372,
76... |
boolean doDiag = false; long start=0; long stop=0; | public static void main(String[] args) { try { if (args.length > 0) { int i; int iterations = -1; boolean uri = false, debug = false; boolean isJarFileSpecified = false; String jarFile = null; // Parse options starting with '-' for (i = 0; i < args.length && args[i].charAt(0) == '-'; i++) { if (args[i].equals("-u")) { uri = true; } else if (args[i].equals("-x")) { debug = true; } else if (args[i].equals("-s")) { _allowExit = false; } else if (args[i].equals("-j")) { isJarFileSpecified = true; jarFile = args[++i]; } else if (args[i].equals("-e")) { _useOldOutputSystem = true; } else if (args[i].equals("-n")) { try { iterations = Integer.parseInt(args[++i]); } catch (NumberFormatException e) { // ignore } } else { printUsage(); } } // Enough arguments left ? if (args.length - i < 2) printUsage(); // Get document file and class name Transform handler = new Transform(args[i+1], args[i], uri, debug, iterations); handler.setJarFileInputSrc(isJarFileSpecified, jarFile); // Parse stylesheet parameters Vector params = new Vector(); for (i += 2; i < args.length; i++) { final int equal = args[i].indexOf('='); if (equal > 0) { final String name = args[i].substring(0, equal); final String value = args[i].substring(equal+1); params.addElement(new Parameter(name, value)); } else { printUsage(); } } if (i == args.length) { handler.setParameters(params); handler.doTransform(); if (_allowExit) System.exit(0); } } else { printUsage(); } } catch (Exception e) { e.printStackTrace(); } } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/782101db4309847d97b2031849c724d44c1cdaf1/Transform.java/buggy/src/org/apache/xalan/xsltc/cmdline/Transform.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1250,
741,
14058,
273,
629,
31,
1525,
787,
33,
20,
31,
1525,
2132,
33,
20,
31,
1250,
741,
14058,
273,
629,
31,
1525,
787,
33,
20,
31,
1525,
2132,
33,
20,
31,
1250,
741,
14058,
273,
629,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
741,
14058,
273,
629,
31,
1525,
787,
33,
20,
31,
1525,
2132,
33,
20,
31,
1250,
741,
14058,
273,
629,
31,
1525,
787,
33,
20,
31,
1525,
2132,
33,
20,
31,
1250,
741,
14058,
273,
629,
... | |
result = RubyRegexp.newRegexp(builtins.toString(iVisited.getValue()), iVisited.getOptions()); | result = RubyRegexp.newRegexp(builtins.toString(iVisited.getValue()), iVisited.getOptions(), null); | public void visitRegexpNode(RegexpNode iVisited) { result = RubyRegexp.newRegexp(builtins.toString(iVisited.getValue()), iVisited.getOptions()); } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/c3988bcedc9973ff7f8c24ac6423ecb89f3ada35/EvaluateVisitor.java/clean/src/org/jruby/evaluator/EvaluateVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
14621,
907,
12,
14621,
907,
277,
30019,
13,
288,
3639,
563,
273,
19817,
14621,
18,
2704,
14621,
12,
12406,
2679,
18,
10492,
12,
77,
30019,
18,
24805,
1435,
3631,
277,
300... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
14621,
907,
12,
14621,
907,
277,
30019,
13,
288,
3639,
563,
273,
19817,
14621,
18,
2704,
14621,
12,
12406,
2679,
18,
10492,
12,
77,
30019,
18,
24805,
1435,
3631,
277,
300... |
ActionMap _actionMap = _currentDefPane.getActionMap(); _actionMap.get(DefaultEditorKit.selectionEndLineAction).actionPerformed(ae); _actionMap.get(DefaultEditorKit.deleteNextCharAction).actionPerformed(ae); | int beginLinePos = _getBeginLinePos(); _currentDefPane.setCaretPosition(beginLinePos); | public void actionPerformed(ActionEvent ae) { ActionMap _actionMap = _currentDefPane.getActionMap(); _actionMap.get(DefaultEditorKit.selectionEndLineAction).actionPerformed(ae); _actionMap.get(DefaultEditorKit.deleteNextCharAction).actionPerformed(ae); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/32513407e5f8f41a21eb0336c92af1269f67953c/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
1377,
4382,
863,
389,
1128,
863,
273,
389,
2972,
3262,
8485,
18,
588,
1803,
863,
5621,
1377,
389,
1128,
863,
18,
588,
12,
1868,
6946,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26100,
12,
1803,
1133,
14221,
13,
288,
1377,
4382,
863,
389,
1128,
863,
273,
389,
2972,
3262,
8485,
18,
588,
1803,
863,
5621,
1377,
389,
1128,
863,
18,
588,
12,
1868,
6946,
1... |
String showDiscsStr = imcref.getExceptionUnhandlingDatabase().executeStringProcedure( "B_GetNbrOfDiscsToShow", new String[] { | String showDiscsStr = imcref.getDatabase().executeStringProcedure( "B_GetNbrOfDiscsToShow", new String[] { | public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { // Lets get the user object imcode.server.user.UserDomainObject user = Utility.getLoggedOnUser( req ); if ( user == null ) { return; } if ( !isUserAuthorized( req, res, user ) ) { return; } // Lets add the standard SESSION parameters Properties params = this.getPropertiesOfBillBoardSessionParameters( req ); ImcmsServices imcref = Imcms.getServices(); // ********* UPDATE DISCUSSIONS ******** if ( req.getParameter( "UPDATE" ) != null ) { // Lets get the forum_id and set our session object before updating Properties reqParams = this.getRequestParameters( req ); String aSectionId = reqParams.getProperty( "SECTION_ID" );// HttpSession session = req.getSession( false ); if ( session != null ) { String latestDiscId = "-1"; session.setAttribute( "BillBoard.disc_id", latestDiscId );// session.setAttribute( "BillBoard.section_id", aSectionId );// session.setAttribute( "BillBoard.disc_index", "0" );// } // Lets redirect to the servlet which holds in us. res.sendRedirect( "BillBoardDiscView" ); return; } // ********* ADD DISCUSSIONS ******** if ( req.getParameter( "ADD" ) != null ) { //lets clean up ev old stuff in the session if ( req.getParameter( "ADDNEW" ) != null ) { HttpSession session = req.getSession( false ); if ( session != null ) { session.removeAttribute( "billPrevData" ); } } res.sendRedirect( "BillBoardAdd?ADDTYPE=Discussion" ); return; } // ********* VIEW NEXT DISCUSSIONS ******** if ( ( req.getParameter( "NEXT" ) != null || req.getParameter( "NEXT.x" ) != null ) ) { // Lets get the total nbr of discs in the forum String nbrOfDiscsStr = imcref.getExceptionUnhandlingDatabase().executeStringProcedure( "B_GetNbrOfDiscs", new String[] { params.getProperty( "SECTION_ID" ) } ); int nbrOfDiscs = 0; // Lets get the nbr of discussions to show. If it does not contain any // discussions, 20 will be returned by default from db String showDiscsStr = imcref.getExceptionUnhandlingDatabase().executeStringProcedure( "B_GetNbrOfDiscsToShow", new String[] { params.getProperty( "SECTION_ID" ) } );//GetNbrOfDiscsToShow, FORUM_ID int showDiscsCounter = Integer.parseInt( showDiscsStr ); try { nbrOfDiscs = Integer.parseInt( nbrOfDiscsStr ); } catch ( Exception e ) { nbrOfDiscs = 0; log( "GetNbrOfDiscs returned null" ); } int currIndex = this.getDiscIndex( req ); //log("currIndex ="+currIndex); //log("if satsen: "+currIndex+" + "+ showDiscsCounter +" < "+nbrOfDiscs); if ( currIndex + showDiscsCounter < nbrOfDiscs ) { this.increaseDiscIndex( req, showDiscsCounter ); // log("Ok, vi hjer indexrknaren") ; } // Lets redirect to the servlet which holds in us. res.sendRedirect( "BillBoardDiscView" ); return; } // ********* VIEW PREVIOUS DISCUSSIONS ******** if ( ( req.getParameter( "PREVIOUS" ) != null || req.getParameter( "PREVIOUS.x" ) != null ) ) { // Lets get the nbr of discussions to show. If it does not contain any // discussions, 20 will be returned by default from db String showDiscsStr = imcref.getExceptionUnhandlingDatabase().executeStringProcedure( "B_GetNbrOfDiscsToShow", new String[] { params.getProperty( "SECTION_ID" ) } ); int showDiscsCounter = Integer.parseInt( showDiscsStr ); this.decreaseDiscIndex( req, showDiscsCounter ); // Lets redirect to the servlet which holds in us. res.sendRedirect( "BillBoardDiscView" ); return; } // ********* SEARCH ******** if ( req.getParameter( "SEARCH" ) != null ) { //log("Nu r vi i search") ; params = this.getSearchParameters( req, params ); String searchMsg = ""; boolean searchParamsOk = true; String currSection = ""; // Lets get the forumname for the current forum String aSectionId = params.getProperty( "SECTION_ID" ); currSection = "" + imcref.getExceptionUnhandlingDatabase().executeStringProcedure( "B_GetSectionName", new String[] {aSectionId} ); //log("S currSection ="+currSection); //lets get metaId befor buildSearchDateParams destroys that info (happens if error in DATE_FORMAT) String metaId = params.getProperty( "META_ID" ); //log("S metaid= "+metaId); // Lets validate the searchdates. If not correct then get a message and show user // 42=En skdatumstrng var felaktig! params = this.buildSearchDateParams( params ); //log("Efter buildSearchDateParams: " + params) ; if ( params == null ) { log( "An illegal searchdateparameter was sent to server" ); BillBoardError msgErr = new BillBoardError(); searchMsg = msgErr.getErrorMessage( req, 42 ); searchParamsOk = false; } // Lets validate the searchwords. If not correct then get a message and show user // 40=En skparameter saknades! Du mste ange minst ett skord! if ( searchParamsOk ) { boolean itsOk = this.checkSearchWords( params ); //this.log("ItsOk: " + itsOk) ; if ( !itsOk ) { BillBoardError msgErr = new BillBoardError(); searchMsg = msgErr.getErrorMessage( req, 40 ); //log("searchMsg: " + searchMsg) ; searchParamsOk = false; } } //log("Ok, we have passed test 1 and 2") ; //log("searchParamsOk: " + searchParamsOk) ; //this.log("SEARCHWORD: " + params.getProperty("SEARCH").trim()) ; // Lets check if everything is alright String[][] sqlAnswer = null; if ( searchParamsOk ) { //String metaId = params.getProperty("META_ID") ; //aSectionId = params.getProperty("FORUM_ID") ; String searchW = params.getProperty( "SEARCH" ); String category = params.getProperty( "CATEGORY" ); String frDate = params.getProperty( "FR_DATE" ); String toDate = params.getProperty( "TO_DATE" ); // Ok, Lets build the search string sqlAnswer = imcref.getExceptionUnhandlingDatabase().execute2dArrayProcedure( "B_SearchText", new String[] { metaId, aSectionId, category, searchW, frDate, toDate + " 23:59:59" } ); } // End if //log("Ok, we have done a search!") ; // Lets get the part of an html page, wich will be parsed for every a Href reference File templateLib = super.getExternalTemplateFolder( req ); // templateLib += getTemplateSetDirectoryName(params.getProperty("META_ID")) ; File aHreHtmlFile = new File( templateLib, A_HREF_HTML ); // Lets build our tags vector. Vector tagsV = this.buildTags(); // Lets preparse all records, if any returned get an error mesage String allRecs = ""; if ( sqlAnswer != null ) { if ( sqlAnswer.length > 0 ) { allRecs = preParse( sqlAnswer, tagsV, aHreHtmlFile ); if ( allRecs == null ) { BillBoardError msgErr = new BillBoardError(); allRecs = msgErr.getErrorMessage( req, 41 ); msgErr = null; } } } else { // log("SqlAnswer = null") ; // Ok, we coulnt find anything if ( searchParamsOk ) { BillBoardError msgErr = new BillBoardError(); allRecs = msgErr.getErrorMessage( req, 41 ); msgErr = null; } } //log("Ok, we passed the sqlquestioning") ; //log("ALLRECS: " + allRecs) ; //log("searchMsg: " + searchMsg) ; // Lets build the Responsepage VariableManager vm = new VariableManager(); if ( allRecs == null || allRecs.equals( "" ) ) { vm.addProperty( "A_HREF_LIST", searchMsg ); } else { vm.addProperty( "A_HREF_LIST", allRecs ); } //lets show newbutton if user has more than readrights String newDiscButton = " "; int intMetaId = Integer.parseInt( metaId ); DocumentMapper documentMapper = imcref.getDocumentMapper(); DocumentDomainObject document = documentMapper.getDocument( intMetaId ); if ( user.canEdit( document ) ) { VariableManager vmButtons = new VariableManager(); vmButtons.addProperty( "#SERVLET_URL#", "" ); vmButtons.addProperty( "#IMAGE_URL#", this.getExternalImageFolder( req ) ); newDiscButton = getTemplate( NEW_DISC_TEMPLATE, user, vmButtons.getTagsAndData() ); } vm.addProperty( "CURRENT_SECTION_NAME", currSection );//CURRENT_FORUM_NAME vm.addProperty( "PREVIOUS_BUTTON", " " ); vm.addProperty( "NEXT_BUTTON", " " ); vm.addProperty( "NEW_DISC_BUTTON", newDiscButton ); vm.addProperty( "ADMIN_LINK_HTML", ADMIN_LINK_TEMPLATE ); this.sendHtml( req, res, vm, HTML_TEMPLATE ); // log("ConfDisc doPost r frdig") ; return; } } // DoPost | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/d057ca863273084a5224bf799ac53247a0f2f321/BillBoardDisc.java/buggy/server/src/com/imcode/imcms/servlet/billboard/BillBoardDisc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
336,
326,
729,
733,
3639,
709,
710,
18,
3567,
18,
1355,
18,
1299,
3748,
921,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
336,
326,
729,
733,
3639,
709,
710,
18,
3567,
18,
1355,
18,
1299,
3748,
921,... |
public Image getImage(Object workingSet) { Assert.isTrue(workingSet instanceof WorkingSet); | public Image getImage(Object object) { Assert.isTrue(object instanceof IWorkingSet); IWorkingSet workingSet = (IWorkingSet) object; | public Image getImage(Object workingSet) { Assert.isTrue(workingSet instanceof WorkingSet); WorkingSetRegistry registry = WorkbenchPlugin.getDefault().getWorkingSetRegistry(); WorkingSetDescriptor descriptor = registry.getWorkingSetDescriptor(((WorkingSet) workingSet).getEditPageId()); if (descriptor == null) { return null; } ImageDescriptor imageDescriptor = descriptor.getIcon(); if (imageDescriptor == null) { return null; } Image icon = (Image) icons.get(imageDescriptor); if (icon == null) { icon = imageDescriptor.createImage(); icons.put(imageDescriptor, icon); } return icon; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e0d01bcf8bca084775be718468fb29d5cba66955/WorkingSetSelectionDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetSelectionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
3421,
10567,
12,
921,
5960,
694,
13,
288,
1082,
202,
8213,
18,
291,
5510,
12,
20478,
694,
1276,
22732,
694,
1769,
1082,
202,
14836,
694,
4243,
4023,
273,
4147,
22144,
3773,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
3421,
10567,
12,
921,
5960,
694,
13,
288,
1082,
202,
8213,
18,
291,
5510,
12,
20478,
694,
1276,
22732,
694,
1769,
1082,
202,
14836,
694,
4243,
4023,
273,
4147,
22144,
3773,
18,... |
content.broadcast( event ); | content.broadcast( event, container.getRoot( ) ); | protected void sendNotifcations( boolean transactionStarted ) { // Send the content changed event to the container. NotificationEvent event = null; if ( add && state != UNDONE_STATE || !add && state == UNDONE_STATE ) event = new ContentEvent( container, slotID, ContentEvent.ADD ); else event = new ContentEvent( container, slotID, ContentEvent.REMOVE ); event.setInTransaction( transactionStarted ); // Include the sender if this is the original execution. // The sender is not sent for undo, redo because such actions are // triggered by the activity stack, not dialog or editor. if ( state == DONE_STATE ) event.setSender( sender ); // Broadcast the event to the target. container.broadcast( event ); // If the content was dropped, then send an element deleted // event to the content. if ( add && state != UNDONE_STATE || !add && state == UNDONE_STATE ) return; event = new ElementDeletedEvent( content ); if ( state == DONE_STATE ) event.setSender( sender ); content.broadcast( event ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/95374658c8c7af5288dd44c73981afff10dec72c/ContentRecord.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/ContentRecord.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1366,
1248,
430,
71,
1012,
12,
1250,
2492,
9217,
262,
202,
95,
202,
202,
759,
2479,
326,
913,
3550,
871,
358,
326,
1478,
18,
202,
202,
4386,
1133,
871,
273,
446,
31,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1366,
1248,
430,
71,
1012,
12,
1250,
2492,
9217,
262,
202,
95,
202,
202,
759,
2479,
326,
913,
3550,
871,
358,
326,
1478,
18,
202,
202,
4386,
1133,
871,
273,
446,
31,
2... |
return null; | throw new IllegalStateException("Could not create a socket connection to remote vm."); | protected IREMConnection createConnection() { // If we have a server port, then the server is probably open. If we don't then this is no server. if (fServerPort != 0) { // We are putting it off into a thread because there are no timeout capabilities on getting a socket. // So we need to allow for that. final Socket[] scArray = new Socket[1]; final boolean[] waiting = new boolean[] {true}; Thread doIt = new Thread(new Runnable() { public void run() { try { Socket sc = new Socket("localhost", fServerPort); //$NON-NLS-1$ synchronized (this) { if (waiting[0]) scArray[0] = sc; else sc.close(); // We are no longer waiting on this thread so close the socket since no one will use it. } } catch (IOException e) { ProxyPlugin.getPlugin().getMsgLogger().log(new Status(IStatus.WARNING, ProxyPlugin.getPlugin().getDescriptor().getUniqueIdentifier(), 0, "", e)); } } }); doIt.start(); while (true) { try { doIt.join(!fNoTimeouts ? 60000 : 0); synchronized (doIt) { waiting[0] = false; // To let it know we are no longer waiting } break; } catch (InterruptedException e) { } } if (scArray[0] == null) { // Log where we are at so we can know where it was we down. ProxyPlugin.getPlugin().getMsgLogger().log(new Status(IStatus.WARNING, ProxyPlugin.getPlugin().getDescriptor().getUniqueIdentifier(), 0, "", new RuntimeException("Connection creation failed."))); //$NON-NLS-1$ return null; // Couldn't get one, probably server is down. } REMConnection connection = new REMConnection(scArray[0], fNoTimeouts); if (connection.isConnected()) return connection; // Failed, close the socket. try { scArray[0].close(); } catch (IOException e) { } } else ProxyPlugin.getPlugin().getMsgLogger().log(new Status(IStatus.INFO, ProxyPlugin.getPlugin().getDescriptor().getUniqueIdentifier(), 0, "No Server to retrieve a connection.", null)); ///$NON-NLS-1$ return null; } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/ac57b069b8ef7467c2c2cc68d6c076dbc4ed3813/REMProxyFactoryRegistry.java/clean/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMProxyFactoryRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
862,
49,
1952,
27870,
1435,
288,
202,
202,
759,
971,
732,
1240,
279,
1438,
1756,
16,
1508,
326,
1438,
353,
8656,
1696,
18,
971,
732,
2727,
1404,
1508,
333,
353,
1158,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
862,
49,
1952,
27870,
1435,
288,
202,
202,
759,
971,
732,
1240,
279,
1438,
1756,
16,
1508,
326,
1438,
353,
8656,
1696,
18,
971,
732,
2727,
1404,
1508,
333,
353,
1158,
14... |
VariableByteOutputStream os; | public void remove() { if (elementIds.size() == 0) return; Lock lock = dbElement.getLock(); Map.Entry entry; String elementName; List newList = new ArrayList(), idList; NodeProxy p; VariableByteOutputStream os; VariableByteInputStream is; int len, docId; byte[] data; Value ref; Value val; short sym; short collectionId = doc.getCollection().getId(); long delta, last, gid, address; try { // iterate through elements for (Iterator i = elementIds.entrySet().iterator(); i.hasNext();) { entry = (Map.Entry) i.next(); idList = (ArrayList) entry.getValue(); elementName = (String) entry.getKey(); sym = NativeBroker.getSymbols().getSymbol(elementName); ref = new NativeBroker.ElementValue(collectionId, sym); // try to retrieve old index entry for the element try { lock.acquire(Lock.READ_LOCK); val = dbElement.get(ref); } catch (LockException e) { LOG.error("could not acquire lock for index on " + elementName); return; } finally { lock.release(); } os = new VariableByteOutputStream(); newList.clear(); if (val != null) { // add old entries to the new list data = val.getData(); is = new VariableByteInputStream(data); try { while (is.available() > 0) { docId = is.readInt(); len = is.readInt(); if (docId != doc.getDocId()) { // section belongs to another document: // copy data to new buffer os.writeInt(docId); os.writeInt(len); for (int j = 0; j < len * 4; j++) { is.copyTo(os); } } else { // copy nodes to new list last = 0; for (int j = 0; j < len; j++) { delta = is.readLong(); gid = last + delta; last = gid; address = StorageAddress.read(is); if(!containsNode(idList, gid)) { //address = DOMFile.createPointer(page, tid); newList.add(new NodeProxy(doc, gid, address)); } } } } } catch (EOFException e) { LOG.error("end-of-file while updating index for element " + elementName); } catch (IOException e) { LOG.error("io-error while updating index for element " + elementName); } } // write out the updated list FastQSort.sort(newList, 0, newList.size() - 1); len = newList.size(); os.writeInt(doc.getDocId()); os.writeInt(len); last = 0; for (int j = 0; j < len; j++) { p = (NodeProxy) newList.get(j); delta = p.gid - last; last = p.gid; os.writeLong(delta); StorageAddress.write(p.internalAddress, os); } data = os.toByteArray(); try { lock.acquire(Lock.WRITE_LOCK); if (val == null) dbElement.put(ref, data); else dbElement.update(val.getAddress(), ref, data); } catch (LockException e) { LOG.error("could not acquire lock on elements", e); } finally { lock.release(); } } } catch (ReadOnlyException e) { LOG.warn("database is read only"); } elementIds.clear(); } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/59ca20fa7f3d75ce3217db0a6b9b6203354d1fa8/NativeElementIndex.java/clean/src/org/exist/storage/NativeElementIndex.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
1435,
288,
202,
202,
430,
261,
2956,
2673,
18,
1467,
1435,
422,
374,
13,
1082,
202,
2463,
31,
202,
202,
2531,
2176,
273,
1319,
1046,
18,
588,
2531,
5621,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
1435,
288,
202,
202,
430,
261,
2956,
2673,
18,
1467,
1435,
422,
374,
13,
1082,
202,
2463,
31,
202,
202,
2531,
2176,
273,
1319,
1046,
18,
588,
2531,
5621,
202,
202,
... | |
m.setElement(1,84); | m.setElement(1,17); | public SerialMessage createOutPacket() { // Count the number of DLE's to be inserted int nOutBytes = numOutputCards() * (bitsPerCard/8); // Create a Serial message and add initial bytes SerialMessage m = new SerialMessage(); m.setElement(0,nodeAddress); // node address m.setElement(1,84); // Add output bytes return m; } | 2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/9110953c6936e23542c9b3b9de77388299774425/SerialNode.java/buggy/jmri/jmrix/oaktree/SerialNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7366,
1079,
752,
1182,
6667,
1435,
288,
3639,
368,
6974,
326,
1300,
434,
463,
900,
1807,
358,
506,
9564,
3639,
509,
290,
1182,
2160,
273,
818,
1447,
30492,
1435,
380,
261,
6789,
217... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7366,
1079,
752,
1182,
6667,
1435,
288,
3639,
368,
6974,
326,
1300,
434,
463,
900,
1807,
358,
506,
9564,
3639,
509,
290,
1182,
2160,
273,
818,
1447,
30492,
1435,
380,
261,
6789,
217... |
Enumeration keys = propertyNames(); | Enumeration<?> keys = propertyNames(); | public void list(PrintStream out) { if (out == null) throw new NullPointerException(); StringBuffer buffer = new StringBuffer(80); Enumeration keys = propertyNames(); while (keys.hasMoreElements()) { String key = (String) keys.nextElement(); buffer.append(key); buffer.append('='); String property = (String) get(key); Properties def = defaults; while (property == null) { property = (String) def.get(key); def = def.defaults; } if (property.length() > 40) { buffer.append(property.substring(0, 37)); buffer.append("..."); //$NON-NLS-1$ } else buffer.append(property); out.println(buffer.toString()); buffer.setLength(0); } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/41f9233159b665323ba7090a30e06a881c4e4a20/Properties.java/buggy/modules/luni/src/main/java/java/util/Properties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
666,
12,
5108,
1228,
596,
13,
288,
202,
202,
430,
261,
659,
422,
446,
13,
1082,
202,
12849,
394,
10108,
5621,
202,
202,
780,
1892,
1613,
273,
394,
6674,
12,
3672,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
666,
12,
5108,
1228,
596,
13,
288,
202,
202,
430,
261,
659,
422,
446,
13,
1082,
202,
12849,
394,
10108,
5621,
202,
202,
780,
1892,
1613,
273,
394,
6674,
12,
3672,
1769,
... |
source.append((char)ts.BITOR); pn = nf.createBinary(ts.BITOR, pn, bitXorExpr(ts, source, inForInit)); | sourceAdd((char)ts.BITOR); pn = nf.createBinary(ts.BITOR, pn, bitXorExpr(ts, inForInit)); | private Object bitOrExpr(TokenStream ts, Source source, boolean inForInit) throws IOException, JavaScriptException { Object pn = bitXorExpr(ts, source, inForInit); while (ts.matchToken(ts.BITOR)) { source.append((char)ts.BITOR); pn = nf.createBinary(ts.BITOR, pn, bitXorExpr(ts, source, inForInit)); } return pn; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
2831,
1162,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
16,
1250,
316,
1290,
2570,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
1033,
11059,
273,
2831,
60,
280,
4742,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
2831,
1162,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
16,
1250,
316,
1290,
2570,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
1033,
11059,
273,
2831,
60,
280,
4742,... |
(ISpecificationSource)servletContext.getAttribute(SPECIFICATION_SOURCE_NAME); | (ISpecificationSource)servletContext.getAttribute(name); | protected void setupForRequest(RequestContext context) { HttpServlet servlet; ServletContext servletContext = null; String name; String servletPath; servlet = context.getServlet(); servletContext = servlet.getServletContext(); if (servletPrefix == null) { servletPath = context.getRequest().getServletPath(); contextPath = servlet.getInitParameter("com.primix.tapestry.context-path"); if (contextPath == null) servletPrefix = servletPath; else servletPrefix = contextPath + servletPath; } // Need to redo a bunch of this because of class loader issues related // to IResourceResolver. Each Tapestry app will need its own template source // and page source. Possibly, there should be chaining, such that templates // and specifications provided by the framework can come from dedicated // sources .. this allows greater sharing. Somewhat academic though, since // typically only a single Tapestry application will be running within // a single servlet container or ServletContext. if (templateSource == null) { templateSource = (ITemplateSource)servletContext.getAttribute(TEMPLATE_SOURCE_NAME); if (templateSource == null) templateSource = new DefaultTemplateSource(getResourceResolver()); servletContext.setAttribute(TEMPLATE_SOURCE_NAME, templateSource); } if (specificationSource == null) { specificationSource = (ISpecificationSource)servletContext.getAttribute(SPECIFICATION_SOURCE_NAME); if (specificationSource == null) specificationSource = new DefaultSpecificationSource(getResourceResolver(), specification); servletContext.setAttribute(SPECIFICATION_SOURCE_NAME, specificationSource); } if (pageSource == null) { name = PAGE_SOURCE_NAME + "." + specification.getName(); pageSource = (PageSource)servletContext.getAttribute(name); if (pageSource == null) pageSource = new PageSource(); servletContext.setAttribute(name, pageSource); } } | 4433 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4433/d4a3651ed863531de57db48d14f0c509ed7adf3a/AbstractApplication.java/clean/framework/src/com/primix/tapestry/app/AbstractApplication.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3875,
27649,
12,
21426,
819,
13,
202,
95,
202,
202,
2940,
4745,
8100,
31,
202,
202,
4745,
1042,
20474,
273,
446,
31,
202,
202,
780,
508,
31,
202,
202,
780,
8100,
743,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3875,
27649,
12,
21426,
819,
13,
202,
95,
202,
202,
2940,
4745,
8100,
31,
202,
202,
4745,
1042,
20474,
273,
446,
31,
202,
202,
780,
508,
31,
202,
202,
780,
8100,
743,
... |
final void printStackTrace(int instructionOffset, java.io.PrintStream out) { | final void printStackTrace(int instructionOffset, java.io.PrintStream out) throws VM_PragmaInterruptible { | final void printStackTrace(int instructionOffset, java.io.PrintStream out) { VM_OptMachineCodeMap map = getMCMap(); int iei = map.getInlineEncodingForMCOffset(instructionOffset); if (iei >= 0) { int[] inlineEncoding = map.inlineEncoding; int bci = map.getBytecodeIndexForMCOffset(instructionOffset); for (int j = iei; j >= 0; j = VM_OptEncodedCallSiteTree.getParent(j, inlineEncoding)) { int mid = VM_OptEncodedCallSiteTree.getMethodID(j, inlineEncoding); VM_Method m = VM_MethodDictionary.getValue(mid); VM_LineNumberMap lmap = m.getLineNumberMap(); int lineNumber = 0; if (lmap != null) { lineNumber = lmap.getLineNumberForBCIndex(bci); } out.println("\tat " + m.getDeclaringClass().getDescriptor().classNameFromDescriptor() + "." + m.getName() + " (" + m.getDeclaringClass().getSourceName() + ":" + lineNumber + ")"); if (j > 0) { bci = VM_OptEncodedCallSiteTree.getByteCodeOffset(j, inlineEncoding); } } } else { out.println("\tat " + method.getDeclaringClass().getDescriptor(). classNameFromDescriptor() + "." + method.getName() + " (" + method.getDeclaringClass().getSourceName() + ": machine code offset " + VM.intAsHexString(instructionOffset) + ")"); } } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/a259eee8ff750bfcf6596f83ad8ce6c1bcc7286d/VM_OptCompiledMethod.java/buggy/rvm/src/vm/compilers/optimizing/vmInterface/services/VM_OptCompiledMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
7973,
12,
474,
7592,
2335,
16,
2252,
18,
1594,
18,
5108,
1228,
596,
13,
1216,
8251,
67,
2050,
9454,
14126,
1523,
288,
565,
8251,
67,
6179,
6981,
1085,
863,
852,
273,
2108,
39,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
7973,
12,
474,
7592,
2335,
16,
2252,
18,
1594,
18,
5108,
1228,
596,
13,
1216,
8251,
67,
2050,
9454,
14126,
1523,
288,
565,
8251,
67,
6179,
6981,
1085,
863,
852,
273,
2108,
39,... |
if (t instanceof ModalContextThread) return (ModalContextThread) t; | if (t instanceof ModalContextThread) { return (ModalContextThread) t; } | private static ModalContextThread getCurrentModalContextThread() { Thread t = Thread.currentThread(); if (t instanceof ModalContextThread) return (ModalContextThread) t; return null; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/ModalContext.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/operation/ModalContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
3431,
287,
1042,
3830,
5175,
20191,
1042,
3830,
1435,
288,
3639,
4884,
268,
273,
4884,
18,
2972,
3830,
5621,
3639,
309,
261,
88,
1276,
3431,
287,
1042,
3830,
13,
5411,
327,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
3431,
287,
1042,
3830,
5175,
20191,
1042,
3830,
1435,
288,
3639,
4884,
268,
273,
4884,
18,
2972,
3830,
5621,
3639,
309,
261,
88,
1276,
3431,
287,
1042,
3830,
13,
5411,
327,
261... |
private void rewireRequire(BundleConstraint req) { | private void rewireRequire(BundleConstraint req, ArrayList visited) { | private void rewireRequire(BundleConstraint req) { if (req.getMatchingBundle() != null) return; ResolverBundle matchingBundle = (ResolverBundle) bundleMapping.get(req.getVersionConstraint().getSupplier()); req.setMatchingBundle(matchingBundle); if (matchingBundle == null && !req.isOptional()) { System.err.println("Could not find matching bundle for " + req.getVersionConstraint()); //$NON-NLS-1$ // TODO log error!! } if (matchingBundle != null) { rewireBundle(matchingBundle); } } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/dbbf2dbb992725eedee07c818c2ee0b2e4c10b8d/ResolverImpl.java/clean/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/module/ResolverImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
283,
14538,
8115,
12,
3405,
5806,
1111,
13,
288,
202,
202,
430,
261,
3658,
18,
588,
9517,
3405,
1435,
480,
446,
13,
1082,
202,
2463,
31,
202,
202,
4301,
3405,
3607,
3405... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
283,
14538,
8115,
12,
3405,
5806,
1111,
13,
288,
202,
202,
430,
261,
3658,
18,
588,
9517,
3405,
1435,
480,
446,
13,
1082,
202,
2463,
31,
202,
202,
4301,
3405,
3607,
3405... |
retorno = this.getName().equalsIgnoreCase(theme.getName()); | equalsResult = this.getName().equalsIgnoreCase(theme.getName()); | public boolean equals(Object obj) { boolean retorno= false; if (obj instanceof ITheme) { ITheme theme= (ITheme) obj; if (theme.getName() == null) retorno= (this.getName() == null); else retorno = this.getName().equalsIgnoreCase(theme.getName()); } return false; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/c6cd0cd6a15b7561dfd5f9e69bacfec14e7341f6/Theme.java/clean/src/Dominio/Seminaries/Theme.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1606,
12,
921,
1081,
13,
202,
95,
202,
202,
6494,
325,
280,
2135,
33,
629,
31,
202,
202,
430,
261,
2603,
1276,
467,
8335,
13,
202,
202,
95,
1082,
202,
1285,
76,
4698,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1606,
12,
921,
1081,
13,
202,
95,
202,
202,
6494,
325,
280,
2135,
33,
629,
31,
202,
202,
430,
261,
2603,
1276,
467,
8335,
13,
202,
202,
95,
1082,
202,
1285,
76,
4698,
... |
protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); | protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type = project.findType(className); if (type == null) { return null; } if (fMethodName == null) { return type; } IMethod method = findMethodInTypeHierarchy(type); | protected IJavaElement findElement(IJavaProject project, String className) throws JavaModelException { IType type= project.findType(className); if (type == null) return null; if (fMethodName == null) return type; IMethod method= findMethodInTypeHierarchy(type); if (null == method) { method= fuzzyFindMethodInTypeHierarchy(type); } if (method == null) { String title= ResourceUtil.getString("OpenTestAction.error.title"); //$NON-NLS-1$ String message= ResourceUtil.getFormattedString("OpenTestAction.error.methodNoFound", fMethodName); //$NON-NLS-1$ MessageDialog.openInformation(getShell(), title, message); return type; } fRange= method.getNameRange(); return method; } | 57075 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57075/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/buggy/src/main/org/testng/eclipse/ui/OpenTestAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
5852,
1046,
1104,
1046,
12,
45,
5852,
4109,
1984,
16,
514,
2658,
13,
1216,
5110,
1488,
503,
288,
202,
202,
45,
559,
618,
33,
1984,
18,
4720,
559,
12,
12434,
1769,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5852,
1046,
1104,
1046,
12,
45,
5852,
4109,
1984,
16,
514,
2658,
13,
1216,
5110,
1488,
503,
288,
202,
202,
45,
559,
618,
33,
1984,
18,
4720,
559,
12,
12434,
1769,
202,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.