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 |
|---|---|---|---|---|---|---|
public void stepInto(final boolean ignoreFilters, final @Nullable String targetMethodSignature) { | public void stepInto(final boolean ignoreFilters, final @Nullable RequestHint.SmartStepFilter smartStepFilter) { | public void stepInto(final boolean ignoreFilters, final @Nullable String targetMethodSignature) { final SuspendContextImpl suspendContext = getSuspendContext(); mySteppingThroughThreads.add(suspendContext.getThread()); resumeAction(myDebugProcess.createStepIntoCommand(suspendContext, ignoreFilters, targetMethodSignature), EVENT_STEP); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2cac2d1be6f2e8dd50595a28fdeddadfaad2f415/DebuggerSession.java/buggy/debugger/impl/com/intellij/debugger/impl/DebuggerSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2235,
5952,
12,
6385,
1250,
2305,
5422,
16,
727,
632,
13349,
1567,
7002,
18,
23824,
4160,
1586,
13706,
4160,
1586,
13,
288,
565,
727,
348,
18815,
1042,
2828,
20413,
1042,
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,
282,
1071,
918,
2235,
5952,
12,
6385,
1250,
2305,
5422,
16,
727,
632,
13349,
1567,
7002,
18,
23824,
4160,
1586,
13706,
4160,
1586,
13,
288,
565,
727,
348,
18815,
1042,
2828,
20413,
1042,
273,
... |
isOkay = | isOkay = | public boolean compatibleParameters( ParameterListItem actualParams[]) throws SQLException { int i; boolean isOkay = true; isOkay = parameterList.length == actualParams.length; for(i=0; isOkay && i<actualParams.length; i++) { if ((parameterList[i].formalType.startsWith("char") || parameterList[i].formalType.startsWith("varchar") || parameterList[i].formalType.startsWith("text") || parameterList[i].formalType.startsWith("nchar") || parameterList[i].formalType.startsWith("nvarchar") || parameterList[i].formalType.startsWith("ntext")) && (actualParams[i].type == java.sql.Types.CHAR || actualParams[i].type == java.sql.Types.VARCHAR || actualParams[i].type == java.sql.Types.LONGVARCHAR)) { isOkay = parameterList[i].maxLength >= actualParams[i].maxLength; } else { isOkay = parameterList[i].formalType.equalsIgnoreCase(actualParams[i].formalType); } } return isOkay; } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/94e0726b04f349bc8a5ee29394cce902177ab087/Procedure.java/clean/src/main/net/sourceforge/jtds/jdbc/Procedure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1250,
7318,
2402,
12,
1377,
5498,
13575,
3214,
1370,
63,
5717,
1377,
1216,
6483,
282,
288,
1377,
509,
377,
277,
31,
1377,
1250,
353,
8809,
528,
273,
638,
31,
1377,
353,
8809,
528,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1250,
7318,
2402,
12,
1377,
5498,
13575,
3214,
1370,
63,
5717,
1377,
1216,
6483,
282,
288,
1377,
509,
377,
277,
31,
1377,
1250,
353,
8809,
528,
273,
638,
31,
1377,
353,
8809,
528,
... |
baseline = fm.getHeight() - fm.getMaxDescent(); | baseline = fm.getAscent(); | public void setFont(Font font) { super.setFont(font); fm = getFontMetrics(font); baseline = fm.getHeight() - fm.getMaxDescent(); } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/92e0972e8024dfd2fa5d4fa03c33a3b6428ba30a/Gutter.java/buggy/org/gjt/sp/jedit/textarea/Gutter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20454,
12,
5711,
3512,
13,
202,
95,
202,
202,
9565,
18,
542,
5711,
12,
5776,
1769,
202,
202,
25089,
273,
18776,
5653,
12,
5776,
1769,
202,
202,
27818,
273,
10940,
18,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20454,
12,
5711,
3512,
13,
202,
95,
202,
202,
9565,
18,
542,
5711,
12,
5776,
1769,
202,
202,
25089,
273,
18776,
5653,
12,
5776,
1769,
202,
202,
27818,
273,
10940,
18,
588... |
assertTrue(ref == ref2); | assertCorrectReference(ref2, ms.getStoreID(), m); | public void testNonRecoverableMessageStore_1_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non-reliable message, one message MessageReference ref = ms.reference(m); assertCorrectReference(ref, ms.getStoreID(), m); MessageReference ref2 = ms.reference(m); assertTrue(ref == ref2); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/a5dcdbe81fad0d621475c0e0b8dc71d96874bb13/MessageStoreTestBase.java/clean/tests/src/org/jboss/test/messaging/core/message/base/MessageStoreTestBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
3989,
426,
17399,
1079,
2257,
67,
21,
67,
21,
1435,
1216,
1185,
282,
288,
1377,
309,
261,
959,
18,
291,
426,
17399,
10756,
1377,
288,
540,
368,
732,
1338,
1842,
1661,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
3989,
426,
17399,
1079,
2257,
67,
21,
67,
21,
1435,
1216,
1185,
282,
288,
1377,
309,
261,
959,
18,
291,
426,
17399,
10756,
1377,
288,
540,
368,
732,
1338,
1842,
1661,
1... |
if (jj_scan_token(SCOPE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; | Token xsp; xsp = jj_scanpos; if (jj_3R_218()) { jj_scanpos = xsp; if (jj_3R_219()) return true; | static final private boolean jj_3R_139() { if (jj_scan_token(SCOPE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
3238,
1250,
10684,
67,
23,
54,
67,
24347,
1435,
288,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
19444,
3719,
327,
638,
31,
3639,
309,
261,
78,
78,
67,
11821,
422,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
3238,
1250,
10684,
67,
23,
54,
67,
24347,
1435,
288,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
19444,
3719,
327,
638,
31,
3639,
309,
261,
78,
78,
67,
11821,
422,
374,
... |
if (mary2freettsVoices == null) mary2freettsVoices = new HashMap(); if (freetts2maryVoices == null) freetts2maryVoices = new HashMap(); if (mary2freettsVoices.containsKey(maryVoice)) return; Lexicon voiceLexicon = null; if (maryVoice instanceof UnitSelectionVoice) { voiceLexicon = ((UnitSelectionVoice)maryVoice).getLexicon(); | if (mary2freettsVoices == null && MaryProperties.needAutoBoolean("freetts.lexicon.preload")) { Logger logger = Logger.getLogger("FreeTTSVoices"); logger.info("Loading US English FreeTTS voices..."); Collection maryVoices = de.dfki.lt.mary.modules.synthesis.Voice. getAvailableVoices(Locale.US); Iterator it = maryVoices.iterator(); while (it.hasNext()) { de.dfki.lt.mary.modules.synthesis.Voice maryVoice = (de.dfki.lt.mary.modules.synthesis.Voice) it.next(); load(maryVoice); } logger.info("done."); | public static void load(de.dfki.lt.mary.modules.synthesis.Voice maryVoice) throws NoSuchPropertyException { if (mary2freettsVoices == null) mary2freettsVoices = new HashMap(); if (freetts2maryVoices == null) freetts2maryVoices = new HashMap(); if (mary2freettsVoices.containsKey(maryVoice)) return; // already known Lexicon voiceLexicon = null; if (maryVoice instanceof UnitSelectionVoice) { voiceLexicon = ((UnitSelectionVoice)maryVoice).getLexicon(); } DummyFreeTTSVoice freeTTSVoice; if (maryVoice.getLocale().equals(Locale.US)) { if (!MaryProperties.needAutoBoolean("freetts.lexicon.preload")) return; if (voiceLexicon == null) { if (usenLexicon == null) usenLexicon = new CMULexicon("cmudict04"); voiceLexicon = usenLexicon; } try { freeTTSVoice = (DummyFreeTTSVoice) Class.forName("de.dfki.lt.mary.modules.en.DummyFreeTTSVoice").newInstance(); } catch (InstantiationException e) { throw new RuntimeException(e); } catch (IllegalAccessException e) { throw new RuntimeException(e); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } freeTTSVoice.initialise(maryVoice, null); } else if (maryVoice.getLocale().equals(Locale.GERMAN)) { if (voiceLexicon == null) { if (deLexicon == null) deLexicon = new GermanLexicon(); voiceLexicon = deLexicon; } freeTTSVoice = new DummyFreeTTSVoice(maryVoice, null); } else { freeTTSVoice = new DummyFreeTTSVoice(maryVoice, null); } freeTTSVoice.setLexicon(voiceLexicon); freeTTSVoice.allocate(); mary2freettsVoices.put(maryVoice, freeTTSVoice); freetts2maryVoices.put(freeTTSVoice, maryVoice); Logger logger = Logger.getLogger("FreeTTSVoices"); logger.debug("added freetts voice for mary voice " + maryVoice.toString()); } | 24259 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24259/01b6dd118bbbf232703ca26e58c36c08865d94c8/FreeTTSVoices.java/buggy/java/de/dfki/lt/mary/modules/synthesis/FreeTTSVoices.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1262,
12,
323,
18,
2180,
15299,
18,
5618,
18,
2676,
18,
6400,
18,
11982,
20432,
18,
14572,
312,
814,
14572,
13,
565,
1216,
5823,
1396,
503,
565,
288,
3639,
309,
261,
267... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1262,
12,
323,
18,
2180,
15299,
18,
5618,
18,
2676,
18,
6400,
18,
11982,
20432,
18,
14572,
312,
814,
14572,
13,
565,
1216,
5823,
1396,
503,
565,
288,
3639,
309,
261,
267... |
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", getInactiveControlTextColor(), "Button.focus", getFocusColor(), "Button.font", getControlTextFont(), "Button.foreground", getControlTextColor(), "Button.highlight", getControlHighlight(), "Button.light", getControlHighlight(), "Button.margin", new Insets(2, 14, 2, 14), "Button.select", getControlShadow(), "Button.shadow", getControlShadow(), "CheckBox.background", getControl(), "CheckBox.border", MetalBorders.getButtonBorder(), "CheckBox.disabledText", getInactiveControlTextColor(), "CheckBox.focus", getFocusColor(), "CheckBox.font", new FontUIResource("Dialog", Font.BOLD, 12), "CheckBox.foreground", getControlTextColor(), "CheckBox.icon", new UIDefaults.ProxyLazyValue ("javax.swing.plaf.metal.MetalCheckBoxIcon"), "CheckBox.checkIcon", new UIDefaults.ProxyLazyValue ("javax.swing.plaf.metal.MetalCheckBoxIcon"), "Checkbox.select", getControlShadow(), "CheckBoxMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 10), "CheckBoxMenuItem.acceleratorForeground", getAcceleratorForeground(), "CheckBoxMenuItem.acceleratorSelectionForeground", getAcceleratorSelectedForeground(), "CheckBoxMenuItem.background", getMenuBackground(), "CheckBoxMenuItem.borderPainted", new Boolean(true), "CheckBoxMenuItem.commandSound", "sounds/MenuItemCommand.wav", "CheckBoxMenuItem.checkIcon", MetalIconFactory.getCheckBoxMenuItemIcon(), "CheckBoxMenuItem.disabledForeground", getMenuDisabledForeground(), "CheckBoxMenuItem.font", new FontUIResource("Dialog", Font.BOLD, 12), "CheckBoxMenuItem.foreground", getMenuForeground(), "CheckBoxMenuItem.selectionBackground", getMenuSelectedBackground(), "CheckBoxMenuItem.selectionForeground", getMenuSelectedForeground(), "ColorChooser.background", getControl(), "ColorChooser.foreground", getControlTextColor(), "ColorChooser.rgbBlueMnemonic", new Integer(0), "ColorChooser.rgbGreenMnemonic", new Integer(0), "ColorChooser.rgbRedMnemonic", new Integer(0), "ColorChooser.swatchesDefaultRecentColor", getControl(), "ComboBox.background", getControl(), "ComboBox.buttonBackground", getControl(), "ComboBox.buttonDarkShadow", getControlDarkShadow(), "ComboBox.buttonHighlight", getControlHighlight(), "ComboBox.buttonShadow", getControlShadow(), "ComboBox.disabledBackground", getControl(), "ComboBox.disabledForeground", getInactiveSystemTextColor(), "ComboBox.font", new FontUIResource("Dialog", Font.BOLD, 12), "ComboBox.foreground", getControlTextColor(), "ComboBox.selectionBackground", getPrimaryControlShadow(), "ComboBox.selectionForeground", getControlTextColor(), "Desktop.background", getDesktopColor(), "DesktopIcon.background", getControl(), "DesktopIcon.foreground", getControlTextColor(), "DesktopIcon.width", new Integer(160), "EditorPane.background", getWindowBackground(), "EditorPane.caretForeground", getUserTextColor(), "EditorPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "EditorPane.foreground", getUserTextColor(), "EditorPane.inactiveForeground", getInactiveSystemTextColor(), "EditorPane.selectionBackground", getTextHighlightColor(), "EditorPane.selectionForeground", getHighlightedTextColor(), "FormattedTextField.background", getWindowBackground(), "FormattedTextField.caretForeground", getUserTextColor(), "FormattedTextField.font", new FontUIResource("Dialog", Font.PLAIN, 12), "FormattedTextField.foreground", getUserTextColor(), "FormattedTextField.inactiveBackground", getControl(), "FormattedTextField.inactiveForeground", getInactiveSystemTextColor(), "FormattedTextField.selectionBackground", getTextHighlightColor(), "FormattedTextField.selectionForeground", getHighlightedTextColor(), "InternalFrame.activeTitleBackground", getWindowTitleBackground(), "InternalFrame.activeTitleForeground", getWindowTitleForeground(), "InternalFrame.border", new MetalBorders.InternalFrameBorder(), "InternalFrame.borderColor", getControl(), "InternalFrame.borderDarkShadow", getControlDarkShadow(), "InternalFrame.borderHighlight", getControlHighlight(), "InternalFrame.borderLight", getControlHighlight(), "InternalFrame.borderShadow", getControlShadow(), "InternalFrame.icon", MetalIconFactory.getInternalFrameDefaultMenuIcon(), "InternalFrame.closeIcon", MetalIconFactory.getInternalFrameCloseIcon(16), "InternalFrame.inactiveTitleBackground", getWindowTitleInactiveBackground(), "InternalFrame.inactiveTitleForeground", getWindowTitleInactiveForeground(), "InternalFrame.maximizeIcon", MetalIconFactory.getInternalFrameMaximizeIcon(16), "InternalFrame.iconifyIcon", MetalIconFactory.getInternalFrameMinimizeIcon(16), "Label.background", getControl(), "Label.disabledForeground", getInactiveSystemTextColor(), "Label.disabledShadow", getControlShadow(), "Label.font", getControlTextFont(), "Label.foreground", getSystemTextColor(), "List.background", getWindowBackground(), "List.foreground", getUserTextColor(), "List.selectionBackground", getTextHighlightColor(), "List.selectionForeground", getHighlightedTextColor(), "Menu.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 10), "Menu.acceleratorForeground", getAcceleratorForeground(), "Menu.acceleratorSelectionForeground", getAcceleratorSelectedForeground(), "Menu.background", getMenuBackground(), "Menu.border", new MetalBorders.MenuItemBorder(), "Menu.borderPainted", Boolean.TRUE, "Menu.disabledForeground", getMenuDisabledForeground(), "Menu.font", getControlTextFont(), "Menu.foreground", getMenuForeground(), "Menu.selectionBackground", getMenuSelectedBackground(), "Menu.selectionForeground", getMenuSelectedForeground(), "MenuBar.background", getMenuBackground(), "MenuBar.border", new MetalBorders.MenuBarBorder(), "MenuBar.font", getControlTextFont(), "MenuBar.foreground", getMenuForeground(), "MenuBar.highlight", getControlHighlight(), "MenuBar.shadow", getControlShadow(), "MenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 10), "MenuItem.acceleratorForeground", getAcceleratorForeground(), "MenuItem.acceleratorSelectionForeground", getAcceleratorSelectedForeground(), "MenuItem.background", getMenuBackground(), "MenuItem.border", new MetalBorders.MenuItemBorder(), "MenuItem.disabledForeground", getMenuDisabledForeground(), "MenuItem.font", getControlTextFont(), "MenuItem.foreground", getMenuForeground(), "MenuItem.selectionBackground", getMenuSelectedBackground(), "MenuItem.selectionForeground", getMenuSelectedForeground(), "OptionPane.background", getControl(), "OptionPane.errorDialog.border.background", new ColorUIResource(153, 51, 51), "OptionPane.errorDialog.titlePane.background", new ColorUIResource(255, 153, 153), "OptionPane.errorDialog.titlePane.foreground", new ColorUIResource(51, 0, 0), "OptionPane.errorDialog.titlePane.shadow", new ColorUIResource(204, 102, 102), "OptionPane.foreground", getControlTextColor(), "OptionPane.messageForeground", getControlTextColor(), "OptionPane.questionDialog.border.background", new ColorUIResource(51, 102, 51), "OptionPane.questionDialog.titlePane.background", new ColorUIResource(153, 204, 153), "OptionPane.questionDialog.titlePane.foreground", new ColorUIResource(0, 51, 0), "OptionPane.questionDialog.titlePane.shadow", new ColorUIResource(102, 153, 102), "OptionPane.warningDialog.border.background", new ColorUIResource(153, 102, 51), "OptionPane.warningDialog.titlePane.background", new ColorUIResource(255, 204, 153), "OptionPane.warningDialog.titlePane.foreground", new ColorUIResource(102, 51, 0), "OptionPane.warningDialog.titlePane.shadow", new ColorUIResource(204, 153, 102), "Panel.background", getControl(), "Panel.foreground", getUserTextColor(), "PasswordField.background", getWindowBackground(), "PasswordField.caretForeground", getUserTextColor(), "PasswordField.foreground", getUserTextColor(), "PasswordField.inactiveBackground", getControl(), "PasswordField.inactiveForeground", getInactiveSystemTextColor(), "PasswordField.selectionBackground", getTextHighlightColor(), "PasswordField.selectionForeground", getHighlightedTextColor(), "PopupMenu.background", getMenuBackground(), "PopupMenu.border", new MetalBorders.PopupMenuBorder(), "PopupMenu.font", new FontUIResource("Dialog", Font.BOLD, 12), "PopupMenu.foreground", getMenuForeground(), "ProgressBar.background", getControl(), "ProgressBar.border", new BorderUIResource.LineBorderUIResource(getControlDarkShadow(), 1), "ProgressBar.font", new FontUIResource("Dialog", Font.BOLD, 12), "ProgressBar.foreground", getPrimaryControlShadow(), "ProgressBar.selectionBackground", getPrimaryControlDarkShadow(), "ProgressBar.selectionForeground", getControl(), "RadioButton.background", getControl(), "RadioButton.darkShadow", getControlDarkShadow(), "RadioButton.disabledText", getInactiveControlTextColor(), "RadioButton.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return MetalIconFactory.getRadioButtonIcon(); } }, "RadioButton.focus", MetalLookAndFeel.getFocusColor(), "RadioButton.font", MetalLookAndFeel.getControlTextFont(), "RadioButton.foreground", getControlTextColor(), "RadioButton.highlight", getControlHighlight(), "RadioButton.light", getControlHighlight(), "RadioButton.select", getControlShadow(), "RadioButton.shadow", getControlShadow(), "RadioButtonMenuItem.acceleratorFont", new Font("Dialog", Font.PLAIN, 10), "RadioButtonMenuItem.acceleratorForeground", getAcceleratorForeground(), "RadioButtonMenuItem.acceleratorSelectionForeground", getAcceleratorSelectedForeground(), "RadioButtonMenuItem.background", getMenuBackground(), "RadioButtonMenuItem.border", new MetalBorders.MenuItemBorder(), "RadioButtonMenuItem.borderPainted", Boolean.TRUE, "RadioButtonMenuItem.checkIcon", MetalIconFactory.getRadioButtonMenuItemIcon(), "RadioButtonMenuItem.disabledForeground", getMenuDisabledForeground(), "RadioButtonMenuItem.font", MetalLookAndFeel.getControlTextFont(), "RadioButtonMenuItem.foreground", getMenuForeground(), "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButtonMenuItem.selectionBackground", MetalLookAndFeel.getMenuSelectedBackground(), "RadioButtonMenuItem.selectionForeground", MetalLookAndFeel.getMenuSelectedForeground(), "ScrollBar.background", getControl(), "ScrollBar.darkShadow", getControlDarkShadow(), "ScrollBar.foreground", getControl(), "ScrollBar.highlight", getControlHighlight(), "ScrollBar.shadow", getControlShadow(), "ScrollBar.thumb", getPrimaryControlShadow(), "ScrollBar.thumbDarkShadow", getControlDarkShadow(), "ScrollBar.thumbHighlight", getPrimaryControl(), "ScrollBar.thumbShadow", getPrimaryControlDarkShadow(), "ScrollBar.track", getControl(), "ScrollBar.trackHighlight", getControlDarkShadow(), "ScrollPane.background", getControl(), "ScrollPane.border", new MetalBorders.ScrollPaneBorder(), "ScrollPane.foreground", getControlTextColor(), "Separator.background", getSeparatorBackground(), "Separator.foreground", getSeparatorForeground(), "Separator.highlight", getControlHighlight(), "Separator.shadow", getControlShadow(), "Slider.background", getControl(), "Slider.focus", getFocusColor(), "Slider.focusInsets", new InsetsUIResource(0, 0, 0, 0), "Slider.foreground", getPrimaryControlShadow(), "Slider.highlight", getControlHighlight(), "Slider.horizontalThumbIcon", MetalIconFactory.getHorizontalSliderThumbIcon(), "Slider.majorTickLength", new Integer(6), "Slider.shadow", getControlShadow(), "Slider.trackWidth", new Integer(7), "Slider.verticalThumbIcon", MetalIconFactory.getVerticalSliderThumbIcon(), "Spinner.background", getControl(), "Spinner.font", new FontUIResource("Dialog", Font.BOLD, 12), "Spinner.foreground", getControl(), "SplitPane.background", getControl(), "SplitPane.darkShadow", getControlDarkShadow(), "SplitPane.dividerFocusColor", getPrimaryControl(), "SplitPane.highlight", getControlHighlight(), "SplitPane.shadow", getControlShadow(), "SplitPaneDivider.draggingColor", Color.DARK_GRAY, "TabbedPane.background", getControlShadow(), "TabbedPane.darkShadow", getControlDarkShadow(), "TabbedPane.focus", getPrimaryControlDarkShadow(), "TabbedPane.font", new FontUIResource("Dialog", Font.BOLD, 12), "TabbedPane.foreground", getControlTextColor(), "TabbedPane.highlight", getControlHighlight(), "TabbedPane.light", getControl(), "TabbedPane.selected", getControl(), "TabbedPane.selectHighlight", getControlHighlight(), "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1), "TabbedPane.shadow", getControlShadow(), "TabbedPane.tabAreaBackground", getControl(), "TabbedPane.tabAreaInsets", new InsetsUIResource(4, 2, 0, 6), "TabbedPane.tabInsets", new InsetsUIResource(0, 9, 1, 9), "Table.background", getWindowBackground(), "Table.focusCellBackground", getWindowBackground(), "Table.focusCellForeground", getControlTextColor(), "Table.foreground", getControlTextColor(), "Table.focusCellHighlightBorder", getControlShadow(), "Table.focusCellBackground", getWindowBackground(), "Table.gridColor", getControlShadow(), "TableHeader.background", getControl(), "TableHeader.foreground", getControlTextColor(), "TextArea.background", getWindowBackground(), "TextArea.caretForeground", getUserTextColor(), "TextArea.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TextArea.foreground", getUserTextColor(), "TextArea.inactiveForeground", getInactiveSystemTextColor(), "TextArea.selectionBackground", getTextHighlightColor(), "TextArea.selectionForeground", getHighlightedTextColor(), "TextField.background", getWindowBackground(), "TextField.border", MetalBorders.getTextFieldBorder(), "TextField.caretForeground", getUserTextColor(), "TextField.darkShadow", getControlDarkShadow(), "TextField.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TextField.foreground", getUserTextColor(), "TextField.highlight", getControlHighlight(), "TextField.inactiveBackground", getControl(), "TextField.inactiveForeground", getInactiveSystemTextColor(), "TextField.light", getControlHighlight(), "TextField.selectionBackground", getTextHighlightColor(), "TextField.selectionForeground", getHighlightedTextColor(), "TextField.shadow", getControlShadow(), "TextPane.background", getWindowBackground(), "TextPane.caretForeground", getUserTextColor(), "TextPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TextPane.foreground", getUserTextColor(), "TextPane.inactiveForeground", getInactiveSystemTextColor(), "TextPane.selectionBackground", getTextHighlightColor(), "TextPane.selectionForeground", getHighlightedTextColor(), "TitledBorder.font", new FontUIResource("Dialog", Font.BOLD, 12), "TitledBorder.titleColor", getSystemTextColor(), "ToggleButton.background", getControl(), "ToggleButton.border", MetalBorders.getButtonBorder(), "ToggleButton.darkShadow", getControlDarkShadow(), "ToggleButton.disabledText", getInactiveControlTextColor(), "ToggleButton.focus", new ColorUIResource(getFocusColor()), "ToggleButton.font", getControlTextFont(), "ToggleButton.foreground", getControlTextColor(), "ToggleButton.highlight", getControlHighlight(), "ToggleButton.light", getControlHighlight(), "ToggleButton.margin", new Insets(2, 14, 2, 14), "ToggleButton.select", getControlShadow(), "ToggleButton.shadow", getControlShadow(), "ToolBar.background", getMenuBackground(), "ToolBar.darkShadow", getControlDarkShadow(), "ToolBar.dockingBackground", getMenuBackground(), "ToolBar.dockingForeground", getPrimaryControlDarkShadow(), "ToolBar.floatingBackground", getMenuBackground(), "ToolBar.floatingForeground", getPrimaryControl(), "ToolBar.font", new FontUIResource("Dialog", Font.BOLD, 12), "ToolBar.foreground", getMenuForeground(), "ToolBar.highlight", getControlHighlight(), "ToolBar.light", getControlHighlight(), "ToolBar.shadow", getControlShadow(), "ToolTip.background", getPrimaryControl(), "ToolTip.backgroundInactive", getControl(), "ToolTip.border", new BorderUIResource.LineBorderUIResource(getPrimaryControlDarkShadow(), 1), "ToolTip.borderInactive", new BorderUIResource.LineBorderUIResource(getControlDarkShadow(), 1), "ToolTip.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToolTip.foreground", getPrimaryControlInfo(), "ToolTip.foregroundInactive", getControlDarkShadow(), "Tree.background", getWindowBackground(), "Tree.closedIcon", MetalIconFactory.getTreeFolderIcon(), "Tree.collapsedIcon", MetalIconFactory.getTreeControlIcon(true), "Tree.expandedIcon", MetalIconFactory.getTreeControlIcon(false), "Tree.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Tree.foreground", getUserTextColor(), "Tree.hash", getPrimaryControl(), "Tree.leafIcon", MetalIconFactory.getTreeLeafIcon(), "Tree.leftChildIndent", new Integer(7), "Tree.line", getPrimaryControl(), "Tree.openIcon", MetalIconFactory.getTreeFolderIcon(), "Tree.rightChildIndent", new Integer(13), "Tree.rowHeight", new Integer(20), "Tree.scrollsOnExpand", Boolean.TRUE, "Tree.selectionBackground", getTextHighlightColor(), "Tree.selectionBorder", new BorderUIResource.LineBorderUIResource(new Color(102, 102, 153)), "Tree.selectionBorderColor", getFocusColor(), "Tree.selectionForeground", getHighlightedTextColor(), "Tree.textBackground", getWindowBackground(), "Tree.textForeground", getUserTextColor(), "Viewport.background", getControl(), "Viewport.foreground", getUserTextColor() }; defaults.putDefaults(myDefaults); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalLookAndFeel.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalLookAndFeel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
1841,
7019,
12,
3060,
73,
643,
87,
3467,
13,
225,
288,
565,
2240,
18,
2738,
1841,
7019,
12,
7606,
1769,
565,
1033,
8526,
3399,
7019,
273,
394,
1033,
8526,
288,
1377,
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,
282,
4750,
918,
1208,
1841,
7019,
12,
3060,
73,
643,
87,
3467,
13,
225,
288,
565,
2240,
18,
2738,
1841,
7019,
12,
7606,
1769,
565,
1033,
8526,
3399,
7019,
273,
394,
1033,
8526,
288,
1377,
31... | ||
public void start(BundleContext context) throws Exception { super.start(context); plugin = this; authenticator = UpdateUI.getDefault().getAuthenticator(); if (authenticator == null) { authenticator = new BugzillaAuthenticator(); } Authenticator.setDefault(authenticator); setDefaultQueryOptions(); readFavoritesFile(); readOfflineReportsFile(); final Set<TaskRepository> repositories = MylarTaskListPlugin.getRepositoryManager().getRepositories( REPOSITORY_KIND); for (TaskRepository repository : repositories) { readCachedProductConfiguration(repository.getUrl().toExternalForm()); } migrateOldAuthenticationData(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b324fb1c737d9e2ad2839159dd70033e3ffbd949/BugzillaPlugin.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
12,
3405,
1042,
819,
13,
1216,
1185,
288,
202,
202,
9565,
18,
1937,
12,
2472,
1769,
202,
202,
4094,
273,
333,
31,
202,
202,
1944,
10149,
273,
2315,
5370,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
12,
3405,
1042,
819,
13,
1216,
1185,
288,
202,
202,
9565,
18,
1937,
12,
2472,
1769,
202,
202,
4094,
273,
333,
31,
202,
202,
1944,
10149,
273,
2315,
5370,
18,
588,
... | ||
return u2 == null ? 0 : ((Integer)u2).intValue(); } | return u2 == null ? 0 : ((Integer) u2).intValue(); } | public int getArgsCount() { return u2 == null ? 0 : ((Integer)u2).intValue(); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Node.java/buggy/org/jruby/nodes/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
30169,
1380,
1435,
288,
202,
202,
2463,
582,
22,
422,
446,
692,
374,
294,
14015,
4522,
13,
89,
22,
2934,
474,
620,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
509,
30169,
1380,
1435,
288,
202,
202,
2463,
582,
22,
422,
446,
692,
374,
294,
14015,
4522,
13,
89,
22,
2934,
474,
620,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
fadeInFunction = "dojo.lfx.html.fadeIn(node.id, duration, null, function(){" + HTMLID + "_faderState='fadedIn';}).play()"; fadeOutFunction = "dojo.lfx.html.fadeOut(node.id, duration, null, function(){" + HTMLID + "_faderState='fadedOut'}).play();"; | fadeInFunction = " dojo.lfx.html.fadeIn(node.id, duration, null, function(){" + HTMLID + "_faderState='fadedIn';}).play()"; fadeOutFunction = "dojo.lfx.html.fadeOut(node.id, duration, null, function(){" + HTMLID + "_faderState='fadedOut'}).play();"; | public void renderHead(IHeaderResponse response) { super.renderHead(response);// String to be written to the header String s; // dojo function calls for fadein/out String fadeInFunction; String fadeOutFunction; // set the correct dojo functions for the type of fader if (type == "fadeHide") { fadeInFunction = "dojo.lfx.html.fadeShow(node.id, duration, null, function(){" + HTMLID + "_faderState='fadedIn';})"; fadeOutFunction = "dojo.lfx.html.fadeHide(node.id, duration, null, function(){" + HTMLID + "_faderState='fadedOut';})"; } else if (type == "fadeOpac") { fadeInFunction = "dojo.lfx.html.fade(node.id, duration,{start:" + startOpac + ",end:" + endOpac + "},null, function(){" + HTMLID + "_faderState='fadedIn';}).play();"; fadeOutFunction = "dojo.lfx.html.fade(node.id, duration,{start:" + endOpac + ",end:" + startOpac + "},null, function(){" + HTMLID + "_faderState='fadedOut';}).play();"; } else { fadeInFunction = "dojo.lfx.html.fadeIn(node.id, duration, null, function(){" + HTMLID + "_faderState='fadedIn';}).play()"; fadeOutFunction = "dojo.lfx.html.fadeOut(node.id, duration, null, function(){" + HTMLID + "_faderState='fadedOut'}).play();"; } // set the correct state for the startDisplay value if (startDisplay) { s = "\t<script language=\"JavaScript\" type=\"text/javascript\">\n" + "\t" + HTMLID + "_faderState = 'fadedIn'; \n"; } else { s = "\t<script language=\"JavaScript\" type=\"text/javascript\">\n" + "\t" + HTMLID + "_faderState = 'fadedOut'; \n"; } s = s + "\tfunction " + HTMLID + "_fade(id, duration) { \n" + "\t\tif(" + HTMLID + "_faderState!='fading'){\n" + "\t\t\tnode = document.getElementById(id);\n" + "\t\t\tif(" + HTMLID + "_faderState == 'fadedOut') \n" + "\t\t\t{ \n" + "\t\t\t\t" + HTMLID + "_faderState = 'fading';\n" + "\t\t\t\t" + fadeInFunction + "\n" + "\t\t\t} else {\n" + "\t\t\t\t" + HTMLID + "_faderState = 'fading';\n" + "\t\t\t\t" + fadeOutFunction + "\n" + "\t\t\t}\n" + "\t\t}\n" + "\t}\n" + "\t</script>\n"; response.renderString(s); } | 51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/81689122fb9f10dce064fdf140b8ce088134e799/FXOnClickFader.java/buggy/wicket-contrib-dojo/src/main/java/wicket/contrib/dojo/dojofx/FXOnClickFader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1743,
1414,
12,
45,
1864,
1064,
766,
13,
202,
95,
202,
202,
9565,
18,
5902,
1414,
12,
2740,
1769,
759,
1082,
514,
358,
506,
5941,
358,
326,
1446,
202,
202,
780,
272,
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,
225,
202,
482,
918,
1743,
1414,
12,
45,
1864,
1064,
766,
13,
202,
95,
202,
202,
9565,
18,
5902,
1414,
12,
2740,
1769,
759,
1082,
514,
358,
506,
5941,
358,
326,
1446,
202,
202,
780,
272,
31... |
ColorModel cm = GraphicsUtil.sRGB_Unpre; | ColorModel cm = createColorModel(); | public GraphicsNodeRed8Bit(GraphicsNode node, AffineTransform node2dev, boolean usePrimitivePaint, RenderingHints hints) { super(); // We _must_ call init... this.node = node; this.node2dev = node2dev; this.hints = hints; this.usePrimitivePaint = usePrimitivePaint; // Calculate my bounds by applying the affine transform to // my input data.. AffineTransform at = node2dev; Rectangle2D bounds2D = node.getPrimitiveBounds(); if (bounds2D == null) bounds2D = new Rectangle2D.Float(0,0,1,1); if (!usePrimitivePaint) { // When not using Primitive paint we return our bounds in // the nodes parent's user space. This makes sense since // this is the space that we will draw our selves into // (since paint unlike primitivePaint incorporates the // transform from our user space to our parents user // space). AffineTransform nodeAt = node.getTransform(); if (nodeAt != null) { at = (AffineTransform)at.clone(); at.concatenate(nodeAt); } } Rectangle bounds = at.createTransformedShape(bounds2D).getBounds(); // System.out.println("Bounds: " + bounds); ColorModel cm = GraphicsUtil.sRGB_Unpre; int defSz = AbstractTiledRed.getDefaultTileSize(); // Make tile(0,0) fall on the closest intersection of defaultSz. int tgX = defSz*(int)Math.floor(bounds.x/defSz); int tgY = defSz*(int)Math.floor(bounds.y/defSz); int tw = (bounds.x+bounds.width)-tgX; if (tw > defSz) tw = defSz; int th = (bounds.y+bounds.height)-tgY; if (th > defSz) th = defSz; if ((tw <= 0) || (th <= 0)) { tw = 1; th = 1; } // fix my sample model so it makes sense given my size. SampleModel sm = cm.createCompatibleSampleModel(tw, th); // Finish initializing our base class... init((CachableRed)null, bounds, cm, sm, tgX, tgY, null); } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/4baa37d5eea6ff5709e9b27f2e3414d8c3a27005/GraphicsNodeRed8Bit.java/clean/sources/org/apache/batik/gvt/filter/GraphicsNodeRed8Bit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
16830,
907,
3715,
28,
5775,
12,
17558,
907,
756,
16,
1171,
9079,
23906,
558,
4059,
756,
22,
5206,
16,
1171,
9079,
1250,
999,
9840,
12699,
16,
1171,
9079,
22391,
225,
13442,
13,
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,
377,
1071,
16830,
907,
3715,
28,
5775,
12,
17558,
907,
756,
16,
1171,
9079,
23906,
558,
4059,
756,
22,
5206,
16,
1171,
9079,
1250,
999,
9840,
12699,
16,
1171,
9079,
22391,
225,
13442,
13,
288,... |
public void setRoot(TreeNode root) { | public void setRoot(TreeNode root) { | public void setRoot(TreeNode root) { // Sanity Check if (root == null) { throw new IllegalArgumentException("null root"); } // if // Set new root this.root = root; // TODO } // setRoot() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/DefaultTreeModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
31706,
12,
12513,
1365,
13,
288,
202,
202,
759,
23123,
2073,
202,
202,
430,
261,
3085,
422,
446,
13,
288,
1082,
202,
12849,
394,
2754,
2932,
2011,
1365,
8863,
202,
202,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31706,
12,
12513,
1365,
13,
288,
202,
202,
759,
23123,
2073,
202,
202,
430,
261,
3085,
422,
446,
13,
288,
1082,
202,
12849,
394,
2754,
2932,
2011,
1365,
8863,
202,
202,
9... |
java.io.ObjectOutputStream oos = new java.io.ObjectOutputStream(baos); | java.io.ObjectOutputStream oos = new PAObjectOutputStream(baos); | public static Object makeDeepCopy(Object source) throws java.io.IOException { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); java.io.ObjectOutputStream oos = new java.io.ObjectOutputStream(baos); oos.writeObject(source); oos.flush(); oos.close(); java.io.ByteArrayInputStream bais = new java.io.ByteArrayInputStream(baos.toByteArray()); java.io.ObjectInputStream ois = new java.io.ObjectInputStream(bais); try { Object result = ois.readObject(); ois.close(); return result; } catch (ClassNotFoundException e) { throw new java.io.IOException("ClassNotFoundException e=" + e); } } | 50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/5e6860c26fe200ecc080f3ddc3de5b5afad88243/Utils.java/buggy/src/org/objectweb/proactive/core/mop/Utils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1033,
1221,
10968,
12,
921,
1084,
13,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
2252,
18,
1594,
18,
8826,
4632,
17548,
273,
394,
2252,
18,
1594,
18,
8826,
4632,
5621,
377,
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,
282,
1071,
760,
1033,
1221,
10968,
12,
921,
1084,
13,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
2252,
18,
1594,
18,
8826,
4632,
17548,
273,
394,
2252,
18,
1594,
18,
8826,
4632,
5621,
377,
2... |
if(overrideIPAddress == null) return ""; else return overrideIPAddress.toString(); | return ""; | public String get() { if(overrideIPAddress == null) return ""; else return overrideIPAddress.toString(); } | 46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/f43dcd3eaa49682824e40c5d428fa750be4517fe/Node.java/clean/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
514,
336,
1435,
288,
9506,
202,
430,
12,
10601,
22507,
422,
446,
13,
327,
1408,
31,
9506,
202,
12107,
327,
3849,
22507,
18,
10492,
5621,
1082,
202,
97,
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,
1875,
202,
482,
514,
336,
1435,
288,
9506,
202,
430,
12,
10601,
22507,
422,
446,
13,
327,
1408,
31,
9506,
202,
12107,
327,
3849,
22507,
18,
10492,
5621,
1082,
202,
97,
2,
-100,
-100,
-100,
-... |
classMemberSym.updateInfo(thisTpMap.apply(classMemberSym.info())); | protected Symbol getClassSymbol(Symbol ifaceSym) { if (ifaceSym.isPrimaryConstructor()) return getClassSymbol(ifaceSym.primaryConstructorClass()) .constructor(); if (!needInterface(ifaceSym)) return ifaceSym; Symbol classSym = (Symbol)ifaceToClass.get(ifaceSym); if (classSym == null) { classSym = cloneSymbol(ifaceSym, ifaceSym.owner()); classSym.name = className(ifaceSym.name); classSym.flags &= ~Modifiers.INTERFACE; Symbol ifaceConstrSym = ifaceSym.constructor(); Symbol classConstrSym = classSym.constructor(); classConstrSym.name = className(ifaceConstrSym.name); Scope ifaceOwnerMembers = ifaceSym.owner().members(); ifaceOwnerMembers.enter(classSym); ifaceOwnerMembers.enter(classConstrSym); // Clone type and value parameters of constructor. Map classSubst = newClassSubst(classSym); Symbol[] tparams = classConstrSym.typeParams(); for (int i = 0; i < tparams.length; ++i) { Symbol newParam = cloneSymbol(tparams[i], classConstrSym); classSubst.put(tparams[i], newParam); } SymbolSubstTypeMap paramsSubst = new SymbolSubstTypeMap(classSubst, Collections.EMPTY_MAP); // Play it safe and make sure that classSubst won't be // modified anymore. classSubst = Collections.unmodifiableMap(classSubst); Symbol[] vparams = classConstrSym.valueParams(); for (int i = 0; i < vparams.length; ++i) { vparams[i].setOwner(classConstrSym); vparams[i].updateInfo(paramsSubst.apply(vparams[i].info())); } // Clone all members, entering them in the class scope. Map classMembersMap = newClassMemberMap(classSym); Scope classMembers = new Scope(); Scope.SymbolIterator ifaceMembersIt = new Scope.UnloadIterator(ifaceSym.members().iterator()); while (ifaceMembersIt.hasNext()) { Symbol ifaceMemberSym = ifaceMembersIt.next(); if (memberMovesToInterface(ifaceMemberSym) || ifaceMemberSym.isPrimaryConstructor()) continue; Symbol classMemberSym; if (memberGoesInInterface(ifaceMemberSym)) { if (ifaceMemberSym.isPrivate()) { ifaceMemberSym.name = uniqueName(ifaceMemberSym); ifaceMemberSym.flags ^= Modifiers.PRIVATE; } else if (ifaceMemberSym.isProtected()) ifaceMemberSym.flags ^= Modifiers.PROTECTED; classMemberSym = deepCloneSymbol(ifaceMemberSym, classSym, paramsSubst); ifaceMemberSym.flags |= Modifiers.DEFERRED; // TODO substitute symbols in ThisTypes appearing in // the type of the class member classMembersMap.put(ifaceMemberSym, classMemberSym); } else { // Member doesn't go in interface, we just make it // owned by the class. classMemberSym = ifaceMemberSym; classMemberSym.setOwner(classSym); } Type nextMemberTp = classMemberSym.nextInfo(); classMemberSym.updateInfo(paramsSubst.apply(nextMemberTp)); classMembers.enterOrOverload(classMemberSym); if (classMemberSym.isClass()) classMembers.enterOrOverload(classMemberSym.constructor()); } // Give correct type to the class symbol by using class // symbols for its parents, and by adding the interface // among them. Type[] oldClassParents = classSym.parents(); int oldParentsCount = oldClassParents.length; Type[] newClassParents = new Type[oldParentsCount + 1]; for (int i = 0; i < oldParentsCount; ++i) { switch (oldClassParents[i]) { case TypeRef(Type pre, Symbol sym, Type[] args): Type newTp = Type.typeRef(pre, getClassSymbol(sym), args); newClassParents[i] = paramsSubst.apply(newTp); break; default: throw Debug.abort("unexpected type for parent", oldClassParents[i]); } } newClassParents[oldParentsCount] = paramsSubst.apply(ifaceSym.type()); // TODO setInfo cannot be used here because the type then // goes through transformInfo. Maybe setInfo should behave // like updateInfo. classSym.updateInfo(Type.compoundType(newClassParents, classMembers, classSym)); classConstrSym.updateInfo(substResType(substParams(classConstrSym.info(), paramsSubst), ifaceSym, classSym)); ifaceToClass.put(ifaceSym, classSym); classToIFace.put(classSym, ifaceSym); } return classSym; } | 1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/9c66a1e5b6045efaf925dbd0954a2e55a21c3df3/AddInterfacesPhase.java/clean/sources/scalac/transformer/AddInterfacesPhase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
4419,
11901,
18,
2725,
966,
12,
2211,
56,
84,
863,
18,
9010,
12,
1106,
4419,
11901,
18,
1376,
1435,
10019,
667,
4419,
11901,
18,
2725,
966,
12,
2211,
56,
84,
863,
18,
9010,
12,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
4419,
11901,
18,
2725,
966,
12,
2211,
56,
84,
863,
18,
9010,
12,
1106,
4419,
11901,
18,
1376,
1435,
10019,
667,
4419,
11901,
18,
2725,
966,
12,
2211,
56,
84,
863,
18,
9010,
12,
1106,
... | |
public long getNextDatabaseConnectionTypeID() throws KettleDatabaseException | public synchronized long getNextDatabaseConnectionTypeID() throws KettleDatabaseException | public long getNextDatabaseConnectionTypeID() throws KettleDatabaseException { return getNextID("R_DATABASE_CONTYPE", "ID_DATABASE_CONTYPE"); } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/9a23bf7234591fe690816bbf6320414c2ad3eaae/Repository.java/clean/src/be/ibridge/kettle/repository/Repository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1525,
6927,
4254,
1952,
559,
734,
1435,
1216,
1475,
278,
5929,
4254,
503,
202,
95,
202,
202,
2463,
6927,
734,
2932,
54,
67,
22366,
67,
2248,
2399,
3113,
315,
734,
67,
22366,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1525,
6927,
4254,
1952,
559,
734,
1435,
1216,
1475,
278,
5929,
4254,
503,
202,
95,
202,
202,
2463,
6927,
734,
2932,
54,
67,
22366,
67,
2248,
2399,
3113,
315,
734,
67,
22366,
6... |
byte[][] toResend = sentPacketsContents.grabAll(); for(int i=0;i<toResend.length;i++) { byte[] buf = toResend[i]; pn.node.ps.queueResendPacket(buf, -1, newTracker); | LimitedRangeIntByteArrayMapElement[] elements; synchronized(sentPacketsContents) { elements = sentPacketsContents.grabAll(); } for(int i=0;i<elements.length;i++) { LimitedRangeIntByteArrayMapElement element = elements[i]; byte[] buf = element.data; AsyncMessageCallback[] callbacks = element.callbacks; if(newTracker != null) pn.node.ps.queueResendPacket(buf, -1, newTracker, callbacks); | public void completelyDeprecated(KeyTracker newTracker) { // Anything to resend? byte[][] toResend = sentPacketsContents.grabAll(); for(int i=0;i<toResend.length;i++) { byte[] buf = toResend[i]; pn.node.ps.queueResendPacket(buf, -1, newTracker); } } | 50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/f48ad5c9057903788f63aaa8ccd26e567faf4317/KeyTracker.java/buggy/src/freenet/node/KeyTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14416,
13534,
12,
653,
8135,
394,
8135,
13,
288,
3639,
368,
5502,
4274,
358,
31972,
35,
3639,
1160,
63,
6362,
65,
358,
607,
409,
273,
3271,
27328,
6323,
18,
2752,
70,
1595,
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,
1071,
918,
14416,
13534,
12,
653,
8135,
394,
8135,
13,
288,
3639,
368,
5502,
4274,
358,
31972,
35,
3639,
1160,
63,
6362,
65,
358,
607,
409,
273,
3271,
27328,
6323,
18,
2752,
70,
1595,
5... |
private boolean deflateFast(boolean flush, boolean finish) { if (lookahead < MIN_LOOKAHEAD && !flush) return false; | private boolean deflateFast(boolean flush, boolean finish) { if (lookahead < MIN_LOOKAHEAD && !flush) return false; | private boolean deflateFast(boolean flush, boolean finish) { if (lookahead < MIN_LOOKAHEAD && !flush) return false; while (lookahead >= MIN_LOOKAHEAD || flush) { if (lookahead == 0) { /* We are flushing everything */ huffman.flushBlock(window, blockStart, strstart - blockStart, finish); blockStart = strstart; return false; } if (strstart > 2 * WSIZE - MIN_LOOKAHEAD) { /* slide window, as findLongestMatch need this. * This should only happen when flushing and the window * is almost full. */ slideWindow(); } int hashHead; if (lookahead >= MIN_MATCH && (hashHead = insertString()) != 0 && strategy != Deflater.HUFFMAN_ONLY && strstart - hashHead <= MAX_DIST && findLongestMatch(hashHead)) { /* longestMatch sets matchStart and matchLen */ if (DeflaterConstants.DEBUGGING) { for (int i = 0 ; i < matchLen; i++) { if (window[strstart+i] != window[matchStart + i]) throw new InternalError(); } } huffman.tallyDist(strstart - matchStart, matchLen); lookahead -= matchLen; if (matchLen <= max_lazy && lookahead >= MIN_MATCH) { while (--matchLen > 0) { strstart++; insertString(); } strstart++; } else { strstart += matchLen; if (lookahead >= MIN_MATCH - 1) updateHash(); } matchLen = MIN_MATCH - 1; continue; } else { /* No match found */ huffman.tallyLit(window[strstart] & 0xff); strstart++; lookahead--; } if (huffman.isFull()) { boolean lastBlock = finish && lookahead == 0; huffman.flushBlock(window, blockStart, strstart - blockStart, lastBlock); blockStart = strstart; return !lastBlock; } } return true; } | 3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/6f181de4aafbe2a9534fc417eee9f0b8d8ae805d/DeflaterEngine.java/buggy/joeq_native/joeq/ClassLib/Common/java/util/zip/DeflaterEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
1652,
20293,
12305,
12,
6494,
3663,
16,
1250,
4076,
13,
225,
288,
565,
309,
261,
7330,
11617,
411,
6989,
67,
1502,
3141,
37,
12458,
597,
401,
11330,
13,
1377,
327,
629,
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,
282,
3238,
1250,
1652,
20293,
12305,
12,
6494,
3663,
16,
1250,
4076,
13,
225,
288,
565,
309,
261,
7330,
11617,
411,
6989,
67,
1502,
3141,
37,
12458,
597,
401,
11330,
13,
1377,
327,
629,
31,
... |
if (leftNumber != null && middleNumber != null && rightNumber != null && !VATNumber.checkVATNumber(leftNumber, middleNumber, rightNumber) ) { | if (allPatternsOk && (! VATNumber.checkVATNumber(leftNumber, middleNumber, rightNumber))) { | private void initialize(final String leftNumber, final String middleNumber, final String rightNumber) throws PropertyException { CompoundPropertyException cpe = new CompoundPropertyException(VATNumber.class, null, null, null); if (leftNumber == null) { cpe.addElementException( new PropertyException( VATNumber.class, "leftNumber", "LEFT_NUMBER_IS_NULL", null) ); } if (leftNumber != null && !Pattern.matches(LEFT_PATTERN, leftNumber)) { cpe.addElementException( new PropertyException( VATNumber.class, "leftNumber", "LEFT_NUMBER_INVALID_PATTERN", null) ); } if (middleNumber == null) { cpe.addElementException( new PropertyException( VATNumber.class, "middleNumber", "MIDDLE_NUMBER_IS_NULL", null) ); } if (middleNumber != null && !Pattern.matches(MIDDLE_PATTERN, middleNumber)) { cpe.addElementException( new PropertyException( VATNumber.class, "middleNumber", "MIDDLE_NUMBER_INVALID_PATTERN", null) ); } if (rightNumber == null) { cpe.addElementException( new PropertyException( VATNumber.class, "rightNumber", "RIGHT_NUMBER_IS_NULL", null) ); } if (rightNumber != null && !Pattern.matches(RIGHT_PATTERN, rightNumber)) { cpe.addElementException( new PropertyException( VATNumber.class, "rightNumber", "RIGHT_NUMBER_INVALID_PATTERN", null) ); } if (leftNumber != null && middleNumber != null && rightNumber != null && !VATNumber.checkVATNumber(leftNumber, middleNumber, rightNumber) ) { cpe.addElementException( new PropertyException(VATNumber.class, null, "INVALID_CHECK", null) ); } cpe.throwIfNotEmpty(); $leftNumber = leftNumber; $middleNumber = middleNumber; $rightNumber = rightNumber; } | 14797 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14797/658c4ee24ec3915dca46e22424d7e42b99820a3e/VATNumber.java/buggy/ppw-value/src/java/be/peopleware/value_II/VATNumber.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
4046,
12,
6385,
514,
2002,
1854,
16,
727,
514,
7689,
1854,
16,
1377,
727,
514,
2145,
1854,
13,
1216,
4276,
503,
288,
565,
21327,
1396,
503,
276,
347,
273,
1377,
394,
21327,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
4046,
12,
6385,
514,
2002,
1854,
16,
727,
514,
7689,
1854,
16,
1377,
727,
514,
2145,
1854,
13,
1216,
4276,
503,
288,
565,
21327,
1396,
503,
276,
347,
273,
1377,
394,
21327,
1... |
headers.put(name, value); | headers.put(name, l); | public void setHeader(final String name, final String value) { List l = new ArrayList(1); l.add(value); headers.put(name, value); } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/e574f515c4b9c5f38f52899ba734fe37542a9427/MockHttpServletResponse.java/buggy/wicket/src/java/wicket/protocol/http/MockHttpServletResponse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10859,
12,
6385,
514,
508,
16,
727,
514,
460,
13,
565,
288,
3639,
987,
328,
273,
394,
2407,
12,
21,
1769,
3639,
328,
18,
1289,
12,
1132,
1769,
3639,
1607,
18,
458,
12,
529,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10859,
12,
6385,
514,
508,
16,
727,
514,
460,
13,
565,
288,
3639,
987,
328,
273,
394,
2407,
12,
21,
1769,
3639,
328,
18,
1289,
12,
1132,
1769,
3639,
1607,
18,
458,
12,
529,... |
public FixToken(String regexp) { super(regexp); | public FixToken(String string) { super(); fString = string; | public FixToken(String regexp) { super(regexp); // TODO Auto-generated constructor stub } | 54405 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54405/5b497b10d8e803b6b3234598579023394ecfddc9/FixToken.java/buggy/trunk/TEF/src/hub/sam/tef/liveparser/FixToken.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12139,
1345,
12,
780,
7195,
13,
288,
202,
202,
9565,
12,
17745,
1769,
202,
202,
759,
2660,
8064,
17,
11168,
3885,
7168,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
12139,
1345,
12,
780,
7195,
13,
288,
202,
202,
9565,
12,
17745,
1769,
202,
202,
759,
2660,
8064,
17,
11168,
3885,
7168,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
File newResourceFile = new File("themes", "copyTest"); | File newResourceFile = new File(getSaveDirectory(), "copyTest"); | public void testCommonUtilsCopyResourceFile() throws Exception { File newResourceFile = new File("themes", "copyTest"); newResourceFile.deleteOnExit(); String fileName = "com/sun/java/util/collections/Comparable.class"; File collectionsFile = new File("lib", "collections.jar"); if(!collectionsFile.isFile()) { collectionsFile = new File("../lib", "collections.jar"); } if(!collectionsFile.isFile()) { fail("collections.jar not located"); } JarFile collections = new JarFile(collectionsFile);//new File("lib", "collections.jar")); JarEntry entry = collections.getJarEntry(fileName); long entrySize = entry.getCompressedSize(); CommonUtils.copyResourceFile(fileName, newResourceFile, false); assertEquals("size of file in jar should equal size on disk", entrySize, newResourceFile.length()); newResourceFile.delete(); new File("themes").delete(); } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/243f0a3f82e602221e994382a1a1501b719939ca/CommonUtilsTest.java/clean/components/gnutella-core/src/test/java/com/limegroup/gnutella/util/CommonUtilsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
6517,
1989,
2951,
1420,
812,
1435,
1216,
1185,
288,
202,
202,
812,
31757,
812,
273,
394,
1387,
2932,
17328,
3113,
315,
3530,
4709,
8863,
202,
202,
2704,
1420,
812,
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,
225,
202,
482,
918,
1842,
6517,
1989,
2951,
1420,
812,
1435,
1216,
1185,
288,
202,
202,
812,
31757,
812,
273,
394,
1387,
2932,
17328,
3113,
315,
3530,
4709,
8863,
202,
202,
2704,
1420,
812,
18... |
infectObject(value); | infectBy(value); | public RubyArray append(IRubyObject value) { modify(); list.add(value); infectObject(value); return this; } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/615c030e9e2e4f7129fe3e92d877dd15dd313c3d/RubyArray.java/clean/org/jruby/RubyArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
714,
12,
7937,
10340,
921,
460,
13,
288,
3639,
5612,
5621,
3639,
666,
18,
1289,
12,
1132,
1769,
3639,
8286,
386,
858,
12,
1132,
1769,
3639,
327,
333,
31,
565,
289,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
714,
12,
7937,
10340,
921,
460,
13,
288,
3639,
5612,
5621,
3639,
666,
18,
1289,
12,
1132,
1769,
3639,
8286,
386,
858,
12,
1132,
1769,
3639,
327,
333,
31,
565,
289,
2,... |
/* EPerson user = getCurrentUser(request); MyDSpaceServlet.showPerformTask( request, | request.setAttribute("workflow.item", subInfo.submission); JSPManager.showJSP(request, | private void doCancellation(HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo, int step, int displayStep) throws ServletException, IOException, SQLException { // If this is a workflow item, we need to return the // user to the "perform task" page if (isWorkflow(subInfo)) {/* // Get the user EPerson user = getCurrentUser(request); MyDSpaceServlet.showPerformTask( request, response, user, subInfo.workflowItem);*/ } else { request.setAttribute("submission.info", subInfo); request.setAttribute("step", String.valueOf(step)); request.setAttribute("display.step", String.valueOf(displayStep)); JSPManager.showJSP(request, response, "/submit/cancel.jsp"); } } | 47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/76bf8c1bcf448b3435e65f56e50cb0a8a7e6eb4f/SubmitServlet.java/clean/dspace/src/org/dspace/app/webui/servlet/SubmitServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
2568,
6857,
12,
2940,
18572,
590,
16,
3639,
12446,
766,
16,
3639,
2592,
3951,
966,
720,
966,
16,
3639,
509,
2235,
16,
3639,
509,
2562,
4160,
13,
3639,
1216,
16517,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
2568,
6857,
12,
2940,
18572,
590,
16,
3639,
12446,
766,
16,
3639,
2592,
3951,
966,
720,
966,
16,
3639,
509,
2235,
16,
3639,
509,
2562,
4160,
13,
3639,
1216,
16517,
16,
1... |
setHeadline("Remove Reference to Specific Subclass"); addSupportedDecision(CrUML.decRELATIONSHIPS); addSupportedDecision(CrUML.decPLANNED_EXTENSIONS); setKnowledgeTypes(Critic.KT_SEMANTICS); addTrigger("specialization"); addTrigger("associationEnd"); } | setHeadline("Remove Reference to Specific Subclass"); addSupportedDecision(CrUML.decRELATIONSHIPS); addSupportedDecision(CrUML.decPLANNED_EXTENSIONS); setKnowledgeTypes(Critic.KT_SEMANTICS); addTrigger("specialization"); addTrigger("associationEnd"); } | public CrSubclassReference() { setHeadline("Remove Reference to Specific Subclass"); addSupportedDecision(CrUML.decRELATIONSHIPS); addSupportedDecision(CrUML.decPLANNED_EXTENSIONS); setKnowledgeTypes(Critic.KT_SEMANTICS); addTrigger("specialization"); addTrigger("associationEnd"); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/CrSubclassReference.java/clean/src_new/org/argouml/uml/cognitive/critics/CrSubclassReference.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
14998,
1676,
1106,
2404,
1435,
288,
565,
444,
1414,
1369,
2932,
3288,
6268,
358,
23043,
2592,
1106,
8863,
565,
527,
7223,
15861,
12,
12893,
57,
1495,
18,
4924,
27822,
20101,
55,
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,
282,
1071,
14998,
1676,
1106,
2404,
1435,
288,
565,
444,
1414,
1369,
2932,
3288,
6268,
358,
23043,
2592,
1106,
8863,
565,
527,
7223,
15861,
12,
12893,
57,
1495,
18,
4924,
27822,
20101,
55,
1769,... |
if (s.length() == 0) return(0.0); | public static double stringToReal(String s) { try { if (s.length() == 0) return(0.0); return Double.valueOf(s).doubleValue(); } catch (NumberFormatException e) { return Double.NaN; } } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/09b66fe8f0c37136b9e26511d7369ab6f34cb0df/BasisLibrary.java/clean/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
14134,
6955,
12,
780,
272,
13,
288,
202,
698,
288,
202,
565,
309,
261,
87,
18,
2469,
1435,
422,
374,
13,
327,
12,
20,
18,
20,
1769,
202,
565,
327,
3698,
18,
1132,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
14134,
6955,
12,
780,
272,
13,
288,
202,
698,
288,
202,
565,
309,
261,
87,
18,
2469,
1435,
422,
374,
13,
327,
12,
20,
18,
20,
1769,
202,
565,
327,
3698,
18,
1132,
9... | |
info.setThisHop(_context.routerHash()); | info.setThisHop(getContext().routerHash()); | public void runJob() { if (_log.shouldLog(Log.DEBUG)) _log.debug("Handling tunnel create"); if (isOverloaded()) { sendReply(false); return; } TunnelInfo info = new TunnelInfo(_context); info.setConfigurationKey(_message.getConfigurationKey()); info.setEncryptionKey(_message.getTunnelKey()); info.setNextHop(_message.getNextRouter()); TunnelSettings settings = new TunnelSettings(_context); settings.setBytesPerMinuteAverage(_message.getMaxAvgBytesPerMin()); settings.setBytesPerMinutePeak(_message.getMaxPeakBytesPerMin()); settings.setMessagesPerMinuteAverage(_message.getMaxAvgMessagesPerMin()); settings.setMessagesPerMinutePeak(_message.getMaxPeakMessagesPerMin()); settings.setExpiration(_message.getTunnelDurationSeconds()*1000+_context.clock().now()); settings.setIncludeDummy(_message.getIncludeDummyTraffic()); settings.setReorder(_message.getReorderMessages()); info.setSettings(settings); info.setSigningKey(_message.getVerificationPrivateKey()); info.setThisHop(_context.routerHash()); info.setTunnelId(_message.getTunnelId()); info.setVerificationKey(_message.getVerificationPublicKey()); info.getTunnelId().setType(TunnelId.TYPE_PARTICIPANT); if (_message.getNextRouter() == null) { if (_log.shouldLog(Log.DEBUG)) _log.debug("We're the endpoint, don't test the \"next\" peer [duh]"); boolean ok = _context.tunnelManager().joinTunnel(info); sendReply(ok); } else { _context.netDb().lookupRouterInfo(info.getNextHop(), new TestJob(info), new JoinJob(info, false), TIMEOUT); } } | 27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/e737e5c9507ed0d463dc9e45a8f63657f466b177/HandleTunnelCreateMessageJob.java/clean/router/java/src/net/i2p/router/tunnelmanager/HandleTunnelCreateMessageJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
2278,
1435,
288,
3639,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
389,
1330,
18,
4148,
2932,
14701,
14825,
752,
8863,
3639,
309,
261,
291,
4851,
4230,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
2278,
1435,
288,
3639,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
389,
1330,
18,
4148,
2932,
14701,
14825,
752,
8863,
3639,
309,
261,
291,
4851,
4230,... |
appendString(msg, "instance", c2b); appendString(msg, host+":" + port, c2b); | appendString(msg, "tomcatId", c2b); appendString(msg, instanceId, c2b); | public void registerTomcat(String host, int port, String unixDomain) throws IOException { if( apr==null ) return; String slotName="TOMCAT:" + host + ":" + port; MsgContext mCtx=createMsgContext(); Msg msg=(Msg)mCtx.getMsg(0); msg.reset(); C2BConverter c2b=(C2BConverter)mCtx.getNote(C2B_NOTE); msg.appendByte( SHM_WRITE_SLOT ); appendString( msg, slotName, c2b ); int channelCnt=1; if( unixDomain != null ) channelCnt++; // number of channels for this instance msg.appendInt( channelCnt ); // The body: appendString(msg, "channel.socket:" + host + ":" + port, c2b ); msg.appendInt( 1 ); appendString(msg, "instance", c2b); appendString(msg, host+":" + port, c2b); if( unixDomain != null ) { appendString(msg, "channel.apr:" + unixDomain, c2b ); msg.appendInt(1); appendString(msg, "instance", c2b); appendString(msg, host+":" + port, c2b); } this.invoke( msg, mCtx ); } | 10630 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10630/a0a9422de7480dfce58dde9468dcd410c460c963/Shm.java/clean/java/org/apache/jk/common/Shm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
56,
362,
2574,
12,
780,
1479,
16,
509,
1756,
16,
514,
9753,
3748,
13,
3639,
1216,
1860,
565,
288,
3639,
309,
12,
513,
86,
631,
2011,
262,
327,
31,
3639,
514,
4694,
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,
377,
1071,
918,
1744,
56,
362,
2574,
12,
780,
1479,
16,
509,
1756,
16,
514,
9753,
3748,
13,
3639,
1216,
1860,
565,
288,
3639,
309,
12,
513,
86,
631,
2011,
262,
327,
31,
3639,
514,
4694,
46... |
for (int i = 0; i < args.length; i++) { if (args[i].m_kind_of(ruby.getClasses().getModuleClass()).isFalse()) { | for (int i = 0; i < args.size(); i++) { if (args.getRuby(i).m_kind_of(ruby.getClasses().getModuleClass()).isFalse()) { | private boolean isRescueHandled(Ruby ruby, RubyObject self, Node node) { // TMP_PROTECT; if (node.getArgsNode() == null) { // return ruby.getActException().m_kind_of(ruby.getExceptions().getStandardError()).isTrue(); } RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject[] args = ArgsUtil.setupArgs(ruby, self, node.getArgsNode()); ArgsUtil.endCallArgs(ruby, tmpBlock); for (int i = 0; i < args.length; i++) { if (args[i].m_kind_of(ruby.getClasses().getModuleClass()).isFalse()) { throw new RubyTypeException("class or module required for rescue clause"); } if (ruby.getActException().m_kind_of((RubyModule)args[i]).isTrue()) { return true; } } return false; } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/f629550c5947df9c1dbe414645f3dc76bcb70df4/RescueNode.java/buggy/org/jruby/nodes/RescueNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
353,
607,
8007,
23186,
12,
54,
10340,
22155,
16,
19817,
921,
365,
16,
2029,
756,
13,
288,
3639,
368,
399,
4566,
67,
3373,
1448,
1268,
31,
7734,
309,
261,
2159,
18,
588,
2615... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
353,
607,
8007,
23186,
12,
54,
10340,
22155,
16,
19817,
921,
365,
16,
2029,
756,
13,
288,
3639,
368,
399,
4566,
67,
3373,
1448,
1268,
31,
7734,
309,
261,
2159,
18,
588,
2615... |
public void run(IStructuredSelection selection) { if (!checkEnabled(selection)) | public void run(ITextSelection selection) { if (!isProcessable()) | public void run(IStructuredSelection selection) { if (!checkEnabled(selection)) return; run(selection.toArray()); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/913d0003651f3dd95cb271040a35cfa959770a91/OpenAction.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
45,
30733,
6233,
4421,
13,
288,
202,
202,
430,
16051,
1893,
1526,
12,
10705,
3719,
1082,
202,
2463,
31,
202,
202,
2681,
12,
10705,
18,
31447,
10663,
202,
97,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
45,
30733,
6233,
4421,
13,
288,
202,
202,
430,
16051,
1893,
1526,
12,
10705,
3719,
1082,
202,
2463,
31,
202,
202,
2681,
12,
10705,
18,
31447,
10663,
202,
97,
2,... |
getAuthorizer(activation).authorize(Authorizer.SQL_DDL_OP); | getAuthorizer(activation).authorize(activation, Authorizer.SQL_DDL_OP); | public ResultSet getDDLResultSet(Activation activation) throws StandardException { getAuthorizer(activation).authorize(Authorizer.SQL_DDL_OP); return getMiscResultSet( activation); } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/c45f5b1e96f1b68b99f5b8346614c813fd03aa09/GenericResultSetFactory.java/clean/java/engine/org/apache/derby/impl/sql/execute/GenericResultSetFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10842,
2343,
8914,
13198,
12,
14857,
10027,
13,
6862,
202,
15069,
8263,
503,
202,
95,
202,
202,
588,
17170,
12,
16908,
2934,
22488,
12,
17170,
18,
3997,
67,
21293,
67,
3665,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10842,
2343,
8914,
13198,
12,
14857,
10027,
13,
6862,
202,
15069,
8263,
503,
202,
95,
202,
202,
588,
17170,
12,
16908,
2934,
22488,
12,
17170,
18,
3997,
67,
21293,
67,
3665,
176... |
/* * If the version is 120, then new Array(4) means create a new * array with 4 as the first element. In this case, we might * need to explicitly check against trailing undefined * elements in the array literal, and set the length manually * if these occur. Otherwise, we can add an argument to the * node specifying new Array() to provide the array length. * (Which will make Array optimizations involving allocating a * Java array to back the javascript array work better.) */ if (parser.compilerEnv.languageVersion == Context.VERSION_1_2) { /* When last array element is empty, we need to set the * length explicitly, because we can't depend on SETELEM * to do it for us - because empty [,,] array elements * never set anything at all. */ if (elem != null && elem.getType() == Token.UNDEFINED) { Node setlength = new Node(Token.SETPROP, new Node(Token.USE_STACK), Node.newString("length"), Node.newNumber(i)); list.addChildToBack(setlength); } } else { array.addChildToBack(Node.newNumber(i)); | if (skipCount != 0) { array.putProp(Node.SKIP_INDEXES_PROP, skipIndexes); | Object createArrayLiteral(Object obj) { Node array; array = new Node(Token.NEW, Node.newString(Token.NAME, "Array")); Node list = new Node(Token.INIT_LIST, array); Node elem = null; int i = 0; for (Node cursor = ((Node) obj).getFirstChild(); cursor != null;) { // Move cursor to cursor.next before elem.next can be // altered in new Node constructor elem = cursor; cursor = cursor.getNext(); if (elem.getType() == Token.UNDEFINED) { i++; continue; } Node addelem = new Node(Token.SETELEM, new Node(Token.USE_STACK), Node.newNumber(i), elem); i++; list.addChildToBack(addelem); } /* * If the version is 120, then new Array(4) means create a new * array with 4 as the first element. In this case, we might * need to explicitly check against trailing undefined * elements in the array literal, and set the length manually * if these occur. Otherwise, we can add an argument to the * node specifying new Array() to provide the array length. * (Which will make Array optimizations involving allocating a * Java array to back the javascript array work better.) */ if (parser.compilerEnv.languageVersion == Context.VERSION_1_2) { /* When last array element is empty, we need to set the * length explicitly, because we can't depend on SETELEM * to do it for us - because empty [,,] array elements * never set anything at all. */ if (elem != null && elem.getType() == Token.UNDEFINED) { Node setlength = new Node(Token.SETPROP, new Node(Token.USE_STACK), Node.newString("length"), Node.newNumber(i)); list.addChildToBack(setlength); } } else { array.addChildToBack(Node.newNumber(i)); } return list; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/6d458931ee3299fbfab0e9840614ad9b93413dd4/IRFactory.java/buggy/src/org/mozilla/javascript/IRFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1033,
752,
1076,
6177,
12,
921,
1081,
13,
565,
288,
3639,
2029,
526,
31,
3639,
526,
273,
394,
2029,
12,
1345,
18,
12917,
16,
2029,
18,
2704,
780,
12,
1345,
18,
1985,
16,
315,
1076,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
752,
1076,
6177,
12,
921,
1081,
13,
565,
288,
3639,
2029,
526,
31,
3639,
526,
273,
394,
2029,
12,
1345,
18,
12917,
16,
2029,
18,
2704,
780,
12,
1345,
18,
1985,
16,
315,
1076,
79... |
if (fPattern == null|| text == null) | if (text == null) | public StringMatcher.Position find(String text, int start, int end) { if (fPattern == null|| text == null) throw new IllegalArgumentException(); int tlen = text.length(); if (start < 0) start = 0; if (end > tlen) end = tlen; if (end < 0 ||start >= end ) return null; if (fLength == 0) return new Position(start, start); if (fIgnoreWildCards) { int x = posIn(text, start, end); if (x < 0) return null; return new Position(x, x+fLength); } int segCount = fSegments.length; if (segCount == 0)//pattern contains only '*'(s) return new Position (start, end); int curPos = start; int matchStart = -1; for (int i = 0; i < segCount && curPos < end; ++i) { String current = fSegments[i]; int nextMatch = regExpPosIn(text, curPos, end, current); if (nextMatch < 0 ) return null; if(i == 0) matchStart = nextMatch; curPos = nextMatch + current.length(); } return new Position(matchStart, curPos); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/5f25f28b3e23d129aedf775711a20e003687a4f9/StringMatcher.java/buggy/bundles/org.eclipse.ui/Eclipse UI Standard Components/org/eclipse/ui/views/navigator/StringMatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6286,
18,
2555,
1104,
12,
780,
977,
16,
509,
787,
16,
509,
679,
13,
288,
202,
202,
430,
261,
74,
3234,
225,
422,
446,
20081,
977,
422,
446,
13,
1082,
202,
12849,
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,
225,
202,
482,
514,
6286,
18,
2555,
1104,
12,
780,
977,
16,
509,
787,
16,
509,
679,
13,
288,
202,
202,
430,
261,
74,
3234,
225,
422,
446,
20081,
977,
422,
446,
13,
1082,
202,
12849,
394,
... |
System.out.print("! On se connecte un rendezvous"); while (!rdv_root.isConnectedToRendezVous()) { | System.out.print("! On recherche un rendezvous"); int boucle = 30 /*1 minute*/* 4; while (!rdv_root.isConnectedToRendezVous() && boucle-- > 0) { | public J3xtaConnect(File configuration) { try { J3xta.setStatut(J3xta.JXTA_STATUT_CONNECT); System.out.println("! Connexion JXTA !"); // Configuration automatique : if (configuration != null) System .setProperty("JXTA_HOME", configuration .getAbsolutePath()); File config_jxta = new File(Configurator.getHome(), "PlatformConfig").getAbsoluteFile(); if (!config_jxta.exists()) { try { System.out .println("! Cration du fichier de configuration JXTA."); String name = StartJXTA.getPeerName(); Configurator config = new Configurator(name, "JXTAConfiguration", name, "monmotdepasse2005"); config.save(); } catch (ConfiguratorException ce) { System.out .println("! Cration du fichier de configuration JXTA impossible."); // Impossible de faire une configuration automatique ! } } root = PeerGroupFactory.newNetPeerGroup(); rootDiscoveryService = root.getDiscoveryService(); // Extract the discovery and rendezvous services from our peer group rdv_root = root.getRendezVousService(); // Wait until we connect to a rendezvous peer System.out.print("! On se connecte un rendezvous"); while (!rdv_root.isConnectedToRendezVous()) { try { Thread.sleep(2000); System.out.print("."); } catch (InterruptedException ex) { } } System.out.println("! Connect JXTA."); } catch (PeerGroupException e) { System.out.println("! fatal error : group creation failure"); e.printStackTrace(); J3xta.setStatut(J3xta.JXTA_STATUT_ERROR); } } | 12674 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12674/8773fc41b9c03f7d6d0a7f5bfa68c4bc22aa65a8/J3xtaConnect.java/buggy/jcubitainer/org/jcubitainer/p2p/jxta/J3xtaConnect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
804,
23,
92,
2351,
5215,
12,
812,
1664,
13,
288,
3639,
775,
288,
5411,
804,
23,
92,
2351,
18,
542,
5000,
322,
12,
46,
23,
92,
2351,
18,
46,
3983,
37,
67,
28549,
1693,
67,
1103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
804,
23,
92,
2351,
5215,
12,
812,
1664,
13,
288,
3639,
775,
288,
5411,
804,
23,
92,
2351,
18,
542,
5000,
322,
12,
46,
23,
92,
2351,
18,
46,
3983,
37,
67,
28549,
1693,
67,
1103... |
astFactory.addASTChild(currentAST, returnAST); | if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } | public final void enumConstantBlock() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST enumConstantBlock_AST = null; match(LCURLY); { switch ( LA(1)) { case FINAL: case ABSTRACT: case STRICTFP: case LITERAL_static: case LITERAL_def: case AT: case IDENT: case LITERAL_class: case LITERAL_interface: case LITERAL_enum: case LT: case LITERAL_void: case LITERAL_boolean: case LITERAL_byte: case LITERAL_char: case LITERAL_short: case LITERAL_int: case LITERAL_float: case LITERAL_long: case LITERAL_double: case LITERAL_any: case LITERAL_private: case LITERAL_public: case LITERAL_protected: case LITERAL_transient: case LITERAL_native: case LITERAL_threadsafe: case LITERAL_synchronized: case LITERAL_volatile: case LCURLY: { enumConstantField(); astFactory.addASTChild(currentAST, returnAST); break; } case RCURLY: case SEMI: case NLS: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } { _loop146: do { if ((LA(1)==SEMI||LA(1)==NLS)) { sep(); { switch ( LA(1)) { case FINAL: case ABSTRACT: case STRICTFP: case LITERAL_static: case LITERAL_def: case AT: case IDENT: case LITERAL_class: case LITERAL_interface: case LITERAL_enum: case LT: case LITERAL_void: case LITERAL_boolean: case LITERAL_byte: case LITERAL_char: case LITERAL_short: case LITERAL_int: case LITERAL_float: case LITERAL_long: case LITERAL_double: case LITERAL_any: case LITERAL_private: case LITERAL_public: case LITERAL_protected: case LITERAL_transient: case LITERAL_native: case LITERAL_threadsafe: case LITERAL_synchronized: case LITERAL_volatile: case LCURLY: { enumConstantField(); astFactory.addASTChild(currentAST, returnAST); break; } case RCURLY: case SEMI: case NLS: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } } else { break _loop146; } } while (true); } match(RCURLY); if ( inputState.guessing==0 ) { enumConstantBlock_AST = (AST)currentAST.root; enumConstantBlock_AST = (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(OBJBLOCK,"OBJBLOCK")).add(enumConstantBlock_AST)); currentAST.root = enumConstantBlock_AST; currentAST.child = enumConstantBlock_AST!=null &&enumConstantBlock_AST.getFirstChild()!=null ? enumConstantBlock_AST.getFirstChild() : enumConstantBlock_AST; currentAST.advanceChildToEnd(); } enumConstantBlock_AST = (AST)currentAST.root; returnAST = enumConstantBlock_AST; } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/27957314a380e54096257a6753ad9d316ee78892/GroovyRecognizer.java/buggy/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2792,
6902,
1768,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
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,
225,
202,
482,
727,
918,
2792,
6902,
1768,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
... |
status = new Status(IStatus.ERROR, EditorPlugin.ID, IStatus.OK, ResourceHandler.getString("TaskTagPreferenceTab.30"), null); | status = new Status(IStatus.ERROR, SSEUIPlugin.ID, IStatus.OK, ResourceHandler.getString("TaskTagPreferenceTab.30"), null); | protected IStatus run(IProgressMonitor monitor) { IStatus status = null; IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects(); int errorCount = 0; for (int i = 0; i < projects.length && !monitor.isCanceled(); i++) { try { projects[i].build(IncrementalProjectBuilder.FULL_BUILD, ModelPlugin.STRUCTURED_BUILDER, new HashMap(), new SubProgressMonitor(monitor, projects.length)); } catch (CoreException e) { Logger.logException(e); errorCount++; } } if (monitor.isCanceled()) { status = new Status(IStatus.CANCEL, EditorPlugin.ID, IStatus.OK, ResourceHandler.getString("TaskTagPreferenceTab.28"), null); //$NON-NLS-1$ } else if (errorCount == 0) { status = new Status(IStatus.OK, EditorPlugin.ID, IStatus.OK, ResourceHandler.getString("TaskTagPreferenceTab.29"), null); //$NON-NLS-1$ } else { status = new Status(IStatus.ERROR, EditorPlugin.ID, IStatus.OK, ResourceHandler.getString("TaskTagPreferenceTab.30"), null); //$NON-NLS-1$ } return status; } | 13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/425ffe7b68526a8574007dbae9d4ecfb097cff08/TaskTagPreferenceTab.java/clean/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/preferences/ui/TaskTagPreferenceTab.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
25083,
202,
45,
1482,
1267,
273,
446,
31,
25083,
202,
45,
4109,
8526,
10137,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
25083,
202,
45,
1482,
1267,
273,
446,
31,
25083,
202,
45,
4109,
8526,
10137,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
2... |
yyVal = RubyString.newString(ruby, lex_curline, lex_pend - 1); lex_p = lex_pend; | yyVal = RubyString.newString(ruby, support.readLine()); | private int parse_string(int func, int term, int paren) { int c; Node list = null; int strstart; int nest = 0; if (func == '\'') { return parse_qstring(term, paren); } if (func == 0) { // read 1 line for heredoc // -1 for chomp yyVal = RubyString.newString(ruby, lex_curline, lex_pend - 1); lex_p = lex_pend; return Token.tSTRING; } strstart = ruby.getSourceLine(); newtok(); while ((c = nextc()) != term || nest > 0) { if (c == -1) { //unterm_str: ruby.setSourceLine(strstart); ph.rb_compile_error("unterminated string meets end of file"); return 0; } /* * if (ismbchar(c)) { * int i, len = mbclen(c)-1; * for (i = 0; i < len; i++) { * tokadd(c); * c = nextc(); * } * } * else */ if (c == '#') { list = str_extend(list, term); if (list == Node.MINUS_ONE) { //goto unterm_str; ruby.setSourceLine(strstart); ph.rb_compile_error("unterminated string meets end of file"); return 0; } continue; } else if (c == '\\') { c = nextc(); if (c == '\n') { continue; } if (c == term) { tokadd(c); } else { pushback(c); if (func != '"') { tokadd('\\'); } tokadd(read_escape()); } continue; } if (paren != 0) { if (c == paren) { nest++; } if (c == term && nest-- == 0) { break; } } tokadd(c); } tokfix(); ph.setLexState(LexState.EXPR_END); if (list != null) { list.setLine(strstart); if (toklen() > 0) { RubyObject ss = RubyString.newString(ruby, tok(), toklen()); ph.list_append(list, nf.newStr(ss)); } yyVal = list; if (func == '`') { // new RuntimeException("[BUG] want to change " + list.getClass().getName() + " to DXStrNode").printStackTrace(); // list.nd_set_type(Constants.NODE_DXSTR); list = new DXStrNode(list.getLiteral()); yyVal = list; return Token.tDXSTRING; } else { return Token.tDSTRING; } } else { yyVal = RubyString.newString(ruby, tok(), toklen()); return (func == '`') ? Token.tXSTRING : Token.tSTRING; } } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1109,
67,
1080,
12,
474,
1326,
16,
509,
2481,
16,
509,
22146,
13,
288,
3639,
509,
276,
31,
3639,
2029,
666,
273,
446,
31,
3639,
509,
609,
1937,
31,
3639,
509,
15095,
273,
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,
509,
1109,
67,
1080,
12,
474,
1326,
16,
509,
2481,
16,
509,
22146,
13,
288,
3639,
509,
276,
31,
3639,
2029,
666,
273,
446,
31,
3639,
509,
609,
1937,
31,
3639,
509,
15095,
273,
3... |
ScrollPaneUI b = (ScrollPaneUI)UIManager.getUI(this); setUI(b); | setUI((ScrollPaneUI) UIManager.getUI(this)); | public void updateUI() { ScrollPaneUI b = (ScrollPaneUI)UIManager.getUI(this); setUI(b); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7cc107e01ff95c250142dda3e246542e1b0c0794/JScrollPane.java/buggy/core/src/classpath/javax/javax/swing/JScrollPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
5370,
1435,
225,
288,
565,
23134,
8485,
5370,
324,
273,
261,
26360,
5370,
13,
5370,
1318,
18,
588,
5370,
12,
2211,
1769,
565,
444,
5370,
12,
70,
1769,
225,
289,
282,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
5370,
1435,
225,
288,
565,
23134,
8485,
5370,
324,
273,
261,
26360,
5370,
13,
5370,
1318,
18,
588,
5370,
12,
2211,
1769,
565,
444,
5370,
12,
70,
1769,
225,
289,
282,
2,... |
return attr (checkRead (), MODIFIED); | checkRead(); return attr (MODIFIED); | public long lastModified () { return attr (checkRead (), MODIFIED); } | 45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/13487a5ef4e62b2ad9a1836e7826c648d61b26b3/File.java/buggy/libjava/java/io/File.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1525,
12709,
1832,
225,
288,
565,
866,
1994,
5621,
327,
1604,
261,
21143,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1525,
12709,
1832,
225,
288,
565,
866,
1994,
5621,
327,
1604,
261,
21143,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
IndexInfo info = collection.validate(transaction, broker, docPath, new InputSource(url)); | URI url = tempFile.toURI(); IndexInfo info = collection.validate(transaction, broker, docPath, createInputSource(charset,url)); | public void doPut(DBBroker broker, File tempFile, String docPath, HttpServletRequest request, HttpServletResponse response) throws BadRequestException, PermissionDeniedException, IOException { if (tempFile == null) throw new BadRequestException("No request content found for PUT"); TransactionManager transact = broker.getBrokerPool().getTransactionManager(); Txn transaction = transact.beginTransaction(); try { //TODO : use dedicated function in XmldbURI int p = docPath.lastIndexOf("/"); if (p == Constants.STRING_NOT_FOUND || p == docPath.length() - 1) { transact.abort(transaction); throw new BadRequestException("Bad path: " + docPath); } String collectionName = docPath.substring(0, p); docPath = docPath.substring(p + 1); Collection collection = broker.getCollection(collectionName); if (collection == null) { LOG.debug("creating collection " + collectionName); collection = broker.getOrCreateCollection(transaction, collectionName); broker.saveCollection(transaction, collection); } String url = tempFile.toURI().toASCIIString(); MimeType mime; String contentType = request.getContentType(); if (contentType != null) mime = MimeTable.getInstance().getContentType(contentType); else { mime = MimeTable.getInstance().getContentTypeFor(docPath); if (mime != null) contentType = mime.getName(); } if (mime == null) mime = MimeType.BINARY_TYPE; if (mime.isXMLType()) { IndexInfo info = collection.validate(transaction, broker, docPath, new InputSource(url)); info.getDocument().setMimeType(contentType); collection.store(transaction, broker, info, new InputSource(url), false); response.sendError(HttpServletResponse.SC_OK, "Document " + docPath + " stored."); } else { byte[] chunk = new byte[4096]; ByteArrayOutputStream os = new ByteArrayOutputStream(); FileInputStream is = new FileInputStream(tempFile); int l; while ((l = is.read(chunk)) > -1) { os.write(chunk, 0, l); } collection.addBinaryResource(transaction, broker, docPath, os .toByteArray(), contentType); response.sendError(HttpServletResponse.SC_OK, "Document " + docPath + " stored as binary resource."); } transact.commit(transaction); } catch (SAXParseException e) { transact.abort(transaction); throw new BadRequestException("Parsing exception at " + e.getLineNumber() + "/" + e.getColumnNumber() + ": " + e.toString()); } catch (SAXException e) { transact.abort(transaction); Exception o = e.getException(); if (o == null) o = e; throw new BadRequestException("Parsing exception: " + o.getMessage()); } catch (EXistException e) { transact.abort(transaction); throw new BadRequestException("Internal error: " + e.getMessage()); } catch (TriggerException e) { transact.abort(transaction); throw new PermissionDeniedException(e.getMessage()); } catch (LockException e) { transact.abort(transaction); throw new PermissionDeniedException(e.getMessage()); } return; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/307a00172af5892d70495fa609d547444b2a3800/RESTServer.java/clean/src/org/exist/http/RESTServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
6426,
12,
2290,
11194,
8625,
16,
1387,
18286,
16,
514,
997,
743,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
17759,
16,
5411,
8509,
15877,
16,
1860,
288,
3639,
309,
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,
377,
1071,
918,
741,
6426,
12,
2290,
11194,
8625,
16,
1387,
18286,
16,
514,
997,
743,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
17759,
16,
5411,
8509,
15877,
16,
1860,
288,
3639,
309,
2... |
Node parent = channel.getParentNode(); if (parent != null) parent.removeChild(channel); else Logger.log(Logger.ERROR, "UserLayoutManager::removeChannel() : attempt to remove a root node !"); } else | if(!this.deleteNode(channel)) { Logger.log(Logger.DEBUG,"UserLayoutManager::removeChannel() : unabel to remove channel \""+str_ID+"\""); } else { Logger.log(Logger.DEBUG,"UserLayoutManager::removeChannel() : removed channel \""+str_ID+"\""); } } else | public void removeChannel (String str_ID) { // warning .. the channel should also be removed from uLayoutXML Element channel = uLayoutXML.getElementById(str_ID); if (channel != null) { Node parent = channel.getParentNode(); if (parent != null) parent.removeChild(channel); else Logger.log(Logger.ERROR, "UserLayoutManager::removeChannel() : attempt to remove a root node !"); } else Logger.log(Logger.ERROR, "UserLayoutManager::removeChannel() : unable to find a channel with ID=" + str_ID); } | 24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/3689b877fba8d3806b65148ab43410fbfb7bf1cf/UserLayoutManager.java/clean/source/org/jasig/portal/UserLayoutManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
2909,
261,
780,
609,
67,
734,
13,
288,
565,
368,
3436,
6116,
326,
1904,
1410,
2546,
506,
3723,
628,
582,
3744,
4201,
565,
3010,
1904,
273,
582,
3744,
4201,
18,
24135,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
2909,
261,
780,
609,
67,
734,
13,
288,
565,
368,
3436,
6116,
326,
1904,
1410,
2546,
506,
3723,
628,
582,
3744,
4201,
565,
3010,
1904,
273,
582,
3744,
4201,
18,
24135,
1... |
computedColumnHelper ); | computedColumnHelper, this.session ); | private void populateComputedColumns( List aggCCList ) throws DataException { if ( !psController.needDoOperation( PassStatusController.DATA_SET_COMPUTED_COLUMN_POPULATING ) ) return; // if no group pass has been made, made one. if ( !psController.needDoOperation( PassStatusController.DATA_SET_FILTERING ) ) { PassUtil.pass( this.populator, new OdiResultSetWrapper( populator.getResultIterator( ) ), false ); } computedColumnHelper.getComputedColumnList( ).clear( ); computedColumnHelper.getComputedColumnList( ).addAll( aggCCList ); computedColumnHelper.setModel( TransformationConstants.DATA_SET_MODEL ); iccState.setModel( TransformationConstants.DATA_SET_MODEL ); // If there are computed columns cached in iccState, then begin // multipass. if ( iccState.getCount( ) > 0 ) { ComputedColumnCalculator.populateComputedColumns( this.populator, new OdiResultSetWrapper( this.populator.getResultIterator( ) ), iccState, computedColumnHelper ); } computedColumnHelper.setModel( TransformationConstants.NONE_MODEL ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/0049044a5bef6d7cacb43d07aaac96e021a89ed5/DataSetProcessUtil.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/transform/pass/DataSetProcessUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
17934,
3380,
12,
987,
10421,
6743,
682,
262,
1216,
1910,
503,
202,
95,
202,
202,
430,
261,
401,
1121,
2933,
18,
14891,
3244,
2988,
12,
10311,
1482,
2933,
18,
4883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
17934,
3380,
12,
987,
10421,
6743,
682,
262,
1216,
1910,
503,
202,
95,
202,
202,
430,
261,
401,
1121,
2933,
18,
14891,
3244,
2988,
12,
10311,
1482,
2933,
18,
4883,
... |
if (! (child.getImportsLexVars() || child.getNeedsStaticLink())) | if (! child.getNeedsClosureEnv()) | public void allocChildClasses (Compilation comp) { declareClosureEnv(); for (LambdaExp child = firstChild; child != null; child = child.nextSibling) { if (child.getInlineOnly()) continue; if (child.isClassGenerated()) // || heapFrameLambda == child // || child.min_args != child.max_args) { comp.allocClass(child); } } allocFrame(comp); if ((getImportsLexVars() || getNeedsStaticLink()) && isClassGenerated()) { LambdaExp parent = outerLambda(); LambdaExp heapFrameLambda = parent.heapFrameLambda; if (! (parent instanceof ObjectExp) && heapFrameLambda != this) { if (heapFrameLambda != null) { ClassType heapFrameType = heapFrameLambda.getCompiledClassType(comp); closureEnvField = comp.curClass.addField ("closureEnv", heapFrameType); } else if (parent.getNeedsStaticLink()) { closureEnvField = comp.curClass.addField ("closureEnv", parent.closureEnv.getType()); } } } for (LambdaExp child = firstChild; child != null; child = child.nextSibling) { if (! child.getInlineOnly() && ! child.isClassGenerated()) { boolean method_static; ObjectType closureEnvType; if (! (child.getImportsLexVars() || child.getNeedsStaticLink())) closureEnvType = null; else if (heapFrame != null) closureEnvType = (ClassType) heapFrame.getType(); else if (closureEnv != null) closureEnvType = (ClassType) closureEnv.getType(); else closureEnvType = null; if (child.min_args != child.max_args) child.declareArgsArray(); // generate_unique_name (new_class, child.getName()); String child_name = child.getName(); StringBuffer nameBuf = new StringBuffer(60); if (! isModuleBody() || child_name == null) { nameBuf.append("lambda"); nameBuf.append(+(++comp.method_counter)); } if (child_name != null) nameBuf.append(comp.mangleName(child_name)); if (child.min_args != child.max_args) nameBuf.append("$V"); child.primMethod = child.addMethodFor(comp.curClass, nameBuf.toString(), closureEnvType); } } } | 37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/150eb5a12c845a35043e320acca9d27d4a21d63a/LambdaExp.java/buggy/gnu/expr/LambdaExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4767,
1763,
4818,
261,
19184,
1161,
13,
225,
288,
565,
14196,
10573,
3491,
5621,
565,
364,
261,
12025,
2966,
1151,
273,
15070,
31,
225,
1151,
480,
446,
31,
202,
1151,
273,
1151... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4767,
1763,
4818,
261,
19184,
1161,
13,
225,
288,
565,
14196,
10573,
3491,
5621,
565,
364,
261,
12025,
2966,
1151,
273,
15070,
31,
225,
1151,
480,
446,
31,
202,
1151,
273,
1151... |
public List getViewableData() { List fullList = new ArrayList(); // If the user has changed the way our default behavior works, then we // need to look for it now, and resort things if needed before we ask // for the viewable part. (this is a bad place for this, this should be // refactored and moved somewhere else). if (this.tableModel.isSortFullTable()) { // Sort the total list... this.tableModel.sortFullList(); } Object originalData = this.tableModel.getRowListFull(); // If they have asked for a subset of the list via the length // attribute, then only fetch those items out of the master list. fullList = CollectionUtil.getListFromObject(originalData, this.offset, this.length); // If they have asked for just a page of the data, then use the // SmartListHelper to figure out what page they are after, etc... if (this.pagesize > 0) { this.listHelper = new SmartListHelper(fullList, this.pagesize, this.properties); this.listHelper.setCurrentPage(this.pageNumber); fullList = this.listHelper.getListForCurrentPage(); } return fullList; } | 7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/facb5b6a6cba08c3d760a129447691c0ce9b6668/TableTag.java/clean/displaytag/src/main/java/org/displaytag/tags/TableTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
682,
588,
1767,
429,
751,
1435,
95,
682,
2854,
682,
33,
2704,
19558,
5621,
759,
2047,
5787,
1355,
5332,
6703,
451,
359,
528,
477,
1886,
31936,
18597,
16,
15991,
1814,
759,
14891,
3490,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
682,
588,
1767,
429,
751,
1435,
95,
682,
2854,
682,
33,
2704,
19558,
5621,
759,
2047,
5787,
1355,
5332,
6703,
451,
359,
528,
477,
1886,
31936,
18597,
16,
15991,
1814,
759,
14891,
3490,
1... | ||
public AnalysisException(String message, Throwable throwable) { super(message, throwable); | public AnalysisException(String message) { super(message); | public AnalysisException(String message, Throwable throwable) { super(message, throwable); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/20604a51a0745bb84e6f3a55dba6d31e4ce267b2/AnalysisException.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/AnalysisException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16318,
503,
12,
780,
883,
16,
4206,
10132,
13,
288,
202,
202,
9565,
12,
2150,
16,
10132,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16318,
503,
12,
780,
883,
16,
4206,
10132,
13,
288,
202,
202,
9565,
12,
2150,
16,
10132,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
{ mT53(); | { mT53(); if (failed) return ; | public void mTokens() throws RecognitionException { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:10: ( T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | MISC | WS | EOL | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | MULTI_LINE_COMMENT ) int alt15=53; alt15 = dfa15.predict(input); switch (alt15) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:10: T15 { mT15(); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:14: T16 { mT16(); } break; case 3 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:18: T17 { mT17(); } break; case 4 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:22: T18 { mT18(); } break; case 5 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:26: T19 { mT19(); } break; case 6 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:30: T20 { mT20(); } break; case 7 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:34: T21 { mT21(); } break; case 8 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:38: T22 { mT22(); } break; case 9 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:42: T23 { mT23(); } break; case 10 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:46: T24 { mT24(); } break; case 11 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:50: T25 { mT25(); } break; case 12 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:54: T26 { mT26(); } break; case 13 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:58: T27 { mT27(); } break; case 14 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:62: T28 { mT28(); } break; case 15 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:66: T29 { mT29(); } break; case 16 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:70: T30 { mT30(); } break; case 17 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:74: T31 { mT31(); } break; case 18 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:78: T32 { mT32(); } break; case 19 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:82: T33 { mT33(); } break; case 20 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:86: T34 { mT34(); } break; case 21 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:90: T35 { mT35(); } break; case 22 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:94: T36 { mT36(); } break; case 23 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:98: T37 { mT37(); } break; case 24 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:102: T38 { mT38(); } break; case 25 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:106: T39 { mT39(); } break; case 26 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:110: T40 { mT40(); } break; case 27 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:114: T41 { mT41(); } break; case 28 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:118: T42 { mT42(); } break; case 29 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:122: T43 { mT43(); } break; case 30 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:126: T44 { mT44(); } break; case 31 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:130: T45 { mT45(); } break; case 32 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:134: T46 { mT46(); } break; case 33 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:138: T47 { mT47(); } break; case 34 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:142: T48 { mT48(); } break; case 35 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:146: T49 { mT49(); } break; case 36 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:150: T50 { mT50(); } break; case 37 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:154: T51 { mT51(); } break; case 38 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:158: T52 { mT52(); } break; case 39 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:162: T53 { mT53(); } break; case 40 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:166: T54 { mT54(); } break; case 41 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:170: T55 { mT55(); } break; case 42 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:174: T56 { mT56(); } break; case 43 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:178: MISC { mMISC(); } break; case 44 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:183: WS { mWS(); } break; case 45 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:186: EOL { mEOL(); } break; case 46 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:190: INT { mINT(); } break; case 47 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:194: FLOAT { mFLOAT(); } break; case 48 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:200: STRING { mSTRING(); } break; case 49 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:207: BOOL { mBOOL(); } break; case 50 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:212: ID { mID(); } break; case 51 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:215: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); } break; case 52 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:244: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); } break; case 53 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:272: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); } break; } } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
5157,
1435,
1216,
9539,
288,
3639,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
5157,
1435,
1216,
9539,
288,
3639,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64... |
482, 412, 0, 412, 0, 0, 0, 667, 667, 0, 0, 0, 473, 0, 0, 0, 92, 0, 0, 473, 0, 0, 79, 644, 473, 0, 0, 0, 0, 0, 616, 412, 0, 412, 0, 0, 616, 0, 0, 0, 78, 0, 0, 473, 0, 0, 0, 0, 0, 0, 92, 0, 0, 132, 0, 0, 132, 132, 132, 0, 0, 92, 0, 415, 0, 412, 0, 0, 92, 581, 0, 74, 823, 415, 278, 0, 0, 0, 0, 0, 421, 278, 0, 0, 0, 0, 473, 421, 0, 0, 0, 0, 132, 0, 0, 0, 80, 132, 132, 132, 132, 838, 79, 0, 415, 270, 0, 415, 0, 0, 0, 846, 0, 0, 0, 851, 0, 0, 0, 0, 0, 415, 415, 423, 415, 0, 415, 0, 0, 0, 423, 0, 0, 581, 0, 0, 253, 482, 482, 482, 0, 0, 0, 482, 482, 0, 482, 0, 279, 0, 613, 74, 616, 0, 415, 279, 415, 309, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 876, 0, 879, 322, 323, 0, 80, 0, 0, 0, 616, 0, 0, 0, 883, 0, 324, 0, 415, 334, 326, 327, 328, 329, 0, 0, 0, 469, 469, 469, | 0, 412, 0, 412, 0, 0, 0, 667, 667, 75, 0, 273, 423, 0, 0, 0, 92, 0, 273, 423, 0, 0, 34, 644, 0, 0, 0, 279, 0, 0, 616, 412, 0, 412, 279, 0, 616, 0, 555, 81, 74, 556, 557, 558, 0, 0, 0, 0, 0, 0, 92, 0, 0, 132, 0, 80, 132, 132, 132, 0, 280, 92, 0, 415, 0, 412, 0, 280, 92, 581, 0, 0, 823, 415, 0, 0, 559, 0, 0, 421, 0, 560, 561, 562, 563, 0, 421, 0, 75, 0, 0, 132, 0, 0, 0, 0, 132, 132, 132, 132, 0, 838, 0, 0, 415, 270, 0, 415, 0, 0, 0, 846, 309, 0, 0, 851, 0, 0, 0, 0, 0, 415, 415, 0, 415, 0, 415, 0, 322, 323, 253, 95, 0, 581, 95, 95, 95, 0, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 613, 332, 616, 333, 415, 0, 415, 412, 0, 34, 34, 34, 0, 0, 412, 34, 34, 0, 34, 95, 876, 0, 879, 0, 95, 95, 95, 95, 0, 0, 616, 0, 0, 334, 883, 0, 0, 0, 415, 0, 34, 34, 34, 34, 34, 0, 0, 469, 469, 469, | private static final short[] yyTable1() { return new short[] { 234, 234, 391, 229, 234, 203, 419, 239, 239, 189, 580, 239, 237, 237, 248, 564, 237, 814, 190, 190, 591, 601, 252, 240, 240, 203, 519, 240, 257, 259, 216, 95, 782, 552, 234, 234, 216, 283, 284, 190, 253, 617, 274, 356, 249, 461, 732, 652, 265, 466, 492, 109, 109, 551, 300, 442, 281, 291, 275, 435, 337, 109, 362, 492, 337, 442, 190, 660, 661, 422, 62, 588, 221, 215, 218, 617, 423, 424, 783, 217, 786, 492, 469, 387, 382, 217, 606, 353, 244, 441, 60, 362, 362, 248, 393, 342, 394, 362, 109, 444, 253, 285, 79, 79, 110, 110, 353, 69, 79, 210, 210, 210, 492, 492, 225, 210, 210, 354, 492, 210, 235, 235, 455, 247, 235, 455, 210, 69, 492, 70, 309, 363, 221, 442, 455, 656, 247, 109, 649, 216, 492, 71, 338, 470, 387, 535, 338, 79, 210, 210, 253, 279, 360, 210, 269, 492, 361, 216, 61, 324, 230, 492, 492, 326, 327, 261, 657, 447, 782, 366, 308, 492, 262, 579, 264, 394, 89, 492, 492, 363, 363, 456, 457, 458, 456, 457, 460, 598, 217, 492, 279, 230, 40, 456, 457, 462, 260, 261, 492, 564, 356, 392, 455, 291, 492, 210, 217, 79, 684, 438, 87, 440, 190, 391, 856, 64, 234, 234, 284, 308, 653, 492, 716, 40, 89, 89, 217, 256, 691, 234, 67, 234, 234, 441, 264, 64, 239, 369, 239, 420, 65, 237, 771, 237, 237, 55, 492, 492, 356, 356, 67, 335, 240, 439, 240, 240, 487, 273, 87, 87, 65, 456, 457, 465, 265, 295, 307, 308, 242, 345, 492, 243, 391, 391, 391, 387, 363, 402, 346, 221, 343, 297, 441, 492, 762, 397, 398, 344, 487, 766, 481, 278, 481, 381, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 307, 308, 210, 210, 550, 455, 494, 234, 387, 471, 524, 527, 492, 234, 476, 340, 347, 538, 531, 482, 531, 482, 341, 406, 210, 69, 210, 210, 802, 235, 265, 235, 417, 518, 234, 536, 79, 494, 617, 348, 626, 629, 234, 79, 617, 472, 473, 474, 475, 531, 492, 492, 234, 524, 589, 538, 61, 364, 492, 234, 518, 642, 721, 429, 456, 457, 594, 234, 363, 741, 264, 234, 234, 525, 528, 234, 532, 109, 518, 620, 539, 79, 210, 210, 210, 210, 79, 210, 210, 492, 597, 622, 634, 518, 492, 614, 564, 637, 638, 639, 632, 627, 624, 203, 543, 69, 234, 841, 628, 234, 376, 839, 234, 89, 352, 825, 492, 190, 454, 234, 377, 835, 210, 518, 492, 210, 210, 269, 210, 79, 279, 459, 210, 64, 492, 492, 61, 356, 600, 600, 511, 516, 363, 522, 523, 518, 379, 87, 67, 210, 79, 210, 40, 40, 269, 492, 264, 367, 65, 79, 617, 380, 459, 79, 368, 492, 389, 210, 549, 855, 792, 79, 269, 79, 441, 687, 413, 273, 415, 418, 459, 381, 210, 492, 273, 511, 516, 269, 617, 670, 582, 234, 673, 675, 210, 385, 445, 400, 590, 861, 592, 549, 386, 217, 401, 441, 278, 533, 79, 455, 396, 278, 388, 64, 666, 463, 492, 492, 278, 671, 307, 308, 670, 473, 390, 674, 676, 445, 67, 403, 445, 549, 357, 358, 210, 635, 576, 688, 65, 269, 381, 381, 381, 562, 563, 445, 190, 63, 430, 701, 71, 454, 203, 549, 411, 431, 81, 445, 234, 448, 449, 837, 399, 309, 94, 94, 190, 61, 456, 457, 94, 94, 94, 94, 709, 579, 234, 94, 94, 406, 234, 94, 454, 682, 234, 454, 492, 683, 94, 492, 492, 82, 324, 293, 294, 234, 326, 327, 328, 329, 454, 74, 407, 273, 410, 426, 372, 692, 744, 94, 94, 94, 778, 373, 428, 94, 434, 309, 614, 432, 752, 433, 446, 436, 210, 79, 229, 758, 760, 437, 450, 451, 464, 763, 765, 492, 780, 468, 537, 82, 82, 540, 579, 768, 234, 79, 583, 394, 423, 596, 725, 608, 618, 630, 234, 631, 636, 640, 452, 79, 641, 833, 654, 813, 662, 453, 815, 94, 834, 94, 492, 663, 423, 668, 492, 492, 669, 758, 760, 763, 560, 561, 562, 563, 109, 234, 705, 210, 492, 672, 759, 761, 234, 492, 87, 492, 764, 234, 234, 679, 83, 83, 111, 111, 810, 680, 83, 673, 675, 809, 210, 88, 226, 210, 685, 740, 686, 689, 609, 693, 811, 695, 697, 699, 773, 702, 700, 737, 738, 109, 79, 706, 821, 712, 234, 713, 714, 225, 79, 715, 79, 79, 210, 210, 76, 83, 278, 76, 210, 280, 84, 717, 794, 278, 718, 720, 724, 746, 473, 88, 88, 821, 232, 234, 76, 755, 600, 756, 757, 845, 76, 727, 733, 234, 87, 84, 84, 234, 735, 736, 739, 84, 788, 743, 94, 94, 79, 228, 280, 210, 745, 89, 279, 767, 472, 822, 696, 698, 84, 84, 234, 79, 79, 79, 774, 83, 94, 775, 94, 94, 779, 160, 234, 793, 234, 795, 796, 472, 94, 797, 84, 807, 817, 818, 827, 94, 518, 816, 799, 800, 801, 472, 234, 819, 234, 868, 82, 820, 492, 492, 492, 829, 234, 273, 832, 492, 234, 210, 82, 842, 273, 79, 79, 843, 747, 748, 847, 749, 849, 852, 160, 41, 42, 94, 94, 94, 94, 94, 94, 94, 94, 89, 79, 853, 854, 873, 78, 871, 824, 875, 84, 91, 91, 112, 112, 112, 877, 91, 423, 492, 493, 481, 483, 230, 80, 423, 493, 483, 86, 836, 483, 485, 485, 254, 94, 492, 79, 94, 94, 487, 94, 94, 423, 487, 94, 210, 82, 79, 494, 423, 269, 299, 115, 473, 79, 874, 91, 75, 728, 188, 282, 94, 94, 94, 549, 339, 826, 690, 734, 754, 862, 279, 351, 421, 863, 94, 86, 86, 0, 94, 784, 864, 785, 94, 83, 94, 92, 92, 301, 153, 0, 83, 92, 0, 94, 0, 0, 0, 88, 282, 0, 0, 0, 0, 280, 0, 94, 0, 0, 473, 0, 0, 76, 472, 0, 0, 91, 0, 0, 0, 94, 0, 302, 303, 304, 305, 306, 0, 0, 83, 0, 92, 0, 0, 83, 84, 472, 84, 153, 828, 830, 0, 831, 0, 0, 0, 94, 0, 85, 0, 472, 208, 208, 208, 0, 0, 0, 0, 0, 84, 0, 0, 279, 0, 472, 0, 84, 0, 250, 279, 803, 472, 0, 805, 806, 0, 472, 83, 280, 270, 0, 555, 83, 0, 556, 557, 558, 472, 0, 0, 267, 92, 76, 0, 472, 472, 85, 85, 83, 472, 0, 472, 0, 0, 84, 0, 0, 0, 472, 84, 0, 83, 872, 472, 0, 84, 0, 0, 472, 83, 559, 83, 0, 0, 0, 560, 561, 562, 563, 476, 83, 83, 472, 0, 0, 160, 94, 94, 160, 160, 160, 86, 473, 0, 0, 0, 0, 359, 0, 0, 0, 0, 84, 0, 848, 850, 83, 94, 81, 88, 0, 81, 418, 280, 0, 91, 0, 0, 0, 418, 0, 94, 91, 84, 160, 0, 0, 0, 81, 160, 160, 160, 160, 0, 0, 86, 84, 0, 0, 865, 866, 0, 83, 473, 84, 870, 84, 0, 473, 94, 473, 0, 0, 0, 0, 473, 0, 0, 273, 0, 91, 279, 878, 0, 0, 91, 0, 163, 279, 0, 880, 86, 94, 882, 473, 94, 0, 884, 0, 0, 555, 84, 0, 556, 557, 558, 0, 0, 0, 88, 92, 0, 94, 0, 280, 0, 0, 92, 0, 473, 94, 280, 94, 94, 94, 94, 473, 0, 91, 282, 94, 473, 0, 0, 208, 208, 163, 0, 0, 0, 0, 0, 83, 83, 560, 561, 562, 563, 0, 91, 473, 0, 0, 153, 0, 92, 153, 153, 153, 0, 92, 0, 91, 83, 404, 405, 0, 0, 94, 0, 91, 94, 91, 0, 0, 85, 0, 83, 0, 0, 417, 0, 0, 94, 94, 94, 481, 417, 476, 0, 0, 0, 153, 0, 0, 148, 0, 153, 153, 153, 153, 0, 0, 92, 0, 0, 0, 91, 0, 83, 0, 0, 0, 0, 208, 208, 208, 208, 84, 477, 478, 0, 0, 0, 92, 0, 0, 481, 0, 94, 0, 0, 0, 94, 94, 0, 0, 92, 84, 476, 0, 0, 270, 0, 148, 92, 476, 92, 83, 751, 0, 472, 84, 0, 94, 226, 83, 0, 83, 83, 0, 0, 0, 0, 0, 0, 81, 0, 131, 270, 476, 0, 0, 280, 0, 0, 0, 575, 581, 530, 280, 534, 92, 553, 0, 77, 0, 270, 94, 0, 0, 0, 0, 0, 0, 0, 0, 94, 0, 94, 789, 0, 270, 0, 83, 0, 94, 0, 0, 0, 577, 481, 0, 0, 0, 0, 0, 131, 273, 83, 83, 83, 0, 84, 91, 273, 267, 530, 0, 0, 228, 84, 476, 84, 84, 0, 0, 0, 0, 610, 613, 0, 0, 616, 91, 0, 81, 623, 0, 0, 0, 0, 78, 0, 270, 78, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 83, 0, 78, 0, 644, 790, 0, 616, 0, 84, 644, 163, 0, 0, 163, 163, 163, 0, 0, 132, 83, 0, 0, 0, 84, 84, 84, 0, 0, 92, 0, 0, 473, 0, 0, 659, 659, 659, 419, 0, 0, 667, 0, 0, 79, 419, 0, 79, 0, 92, 163, 0, 667, 667, 83, 163, 163, 163, 163, 91, 0, 0, 0, 92, 79, 83, 230, 91, 132, 91, 91, 0, 83, 0, 84, 84, 667, 0, 481, 481, 481, 0, 0, 0, 481, 481, 208, 481, 0, 677, 0, 0, 0, 74, 278, 84, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 704, 0, 708, 791, 581, 74, 0, 91, 0, 0, 80, 148, 581, 80, 148, 148, 148, 0, 0, 0, 0, 84, 91, 91, 91, 0, 92, 482, 0, 0, 80, 0, 84, 0, 92, 423, 92, 92, 420, 84, 0, 208, 85, 476, 0, 420, 0, 0, 719, 0, 148, 0, 0, 0, 0, 148, 148, 148, 148, 0, 279, 0, 0, 0, 0, 0, 726, 742, 482, 0, 729, 0, 91, 91, 730, 0, 0, 0, 0, 0, 0, 0, 92, 0, 131, 613, 0, 131, 131, 131, 0, 0, 412, 91, 476, 0, 0, 92, 92, 92, 0, 476, 412, 659, 0, 0, 472, 0, 0, 0, 0, 422, 78, 473, 0, 0, 0, 0, 422, 0, 0, 0, 85, 131, 0, 476, 0, 91, 131, 131, 131, 131, 0, 412, 770, 0, 412, 0, 91, 0, 0, 0, 0, 208, 777, 91, 0, 92, 92, 0, 412, 412, 482, 412, 0, 412, 0, 0, 0, 667, 667, 0, 0, 0, 473, 0, 0, 0, 92, 0, 0, 473, 0, 0, 79, 644, 473, 0, 0, 0, 0, 0, 616, 412, 0, 412, 0, 0, 616, 0, 0, 0, 78, 0, 0, 473, 0, 0, 0, 0, 0, 0, 92, 0, 0, 132, 0, 0, 132, 132, 132, 0, 0, 92, 0, 415, 0, 412, 0, 0, 92, 581, 0, 74, 823, 415, 278, 0, 0, 0, 0, 0, 421, 278, 0, 0, 0, 0, 473, 421, 0, 0, 0, 0, 132, 0, 0, 0, 80, 132, 132, 132, 132, 838, 79, 0, 415, 270, 0, 415, 0, 0, 0, 846, 0, 0, 0, 851, 0, 0, 0, 0, 0, 415, 415, 423, 415, 0, 415, 0, 0, 0, 423, 0, 0, 581, 0, 0, 253, 482, 482, 482, 0, 0, 0, 482, 482, 0, 482, 0, 279, 0, 613, 74, 616, 0, 415, 279, 415, 309, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 876, 0, 879, 322, 323, 0, 80, 0, 0, 0, 616, 0, 0, 0, 883, 0, 324, 0, 415, 334, 326, 327, 328, 329, 0, 0, 0, 469, 469, 469, 0, 469, 412, 412, 412, 469, 469, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 412, 469, 412, 412, 469, 469, 469, 469, 469, 469, 469, 412, 412, 0, 412, 412, 412, 412, 412, 0, 469, 334, 0, 469, 469, 469, 469, 469, 469, 469, 469, 0, 469, 469, 469, 469, 0, 0, 469, 469, 469, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 0, 0, 412, 412, 412, 469, 412, 412, 469, 469, 469, 469, 469, 412, 469, 412, 469, 412, 469, 412, 412, 412, 412, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 0, 0, 0, 95, 0, 0, 0, 0, 0, 0, 0, 470, 470, 470, 0, 470, 415, 415, 415, 470, 470, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 415, 470, 415, 415, 470, 470, 470, 470, 470, 470, 470, 415, 415, 0, 415, 415, 415, 415, 415, 95, 470, 0, 0, 470, 470, 470, 470, 470, 470, 470, 470, 0, 470, 470, 470, 470, 0, 0, 470, 470, 470, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 0, 0, 415, 415, 415, 470, 415, 415, 470, 470, 470, 470, 470, 415, 470, 415, 470, 415, 470, 415, 415, 415, 415, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 678, 324, 472, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 472, 472, 0, 84, 0, 472, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 472, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 508, 509, 473, 0, 510, 0, 0, 0, 0, 0, 0, 160, 473, 161, 162, 472, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 309, 473, 175, 176, 473, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 322, 323, 473, 473, 0, 86, 95, 473, 0, 95, 95, 95, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 96, 0, 0, 309, 0, 0, 0, 0, 314, 315, 0, 412, 0, 473, 0, 473, 0, 0, 412, 322, 323, 0, 0, 95, 0, 0, 0, 0, 95, 95, 95, 95, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 473, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 334, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 476, 0, 0, 96, 0, 0, 96, 96, 96, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 476, 96, 0, 476, 0, 0, 96, 96, 96, 96, 0, 0, 0, 0, 0, 0, 0, 476, 476, 0, 85, 0, 476, 0, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 476, 0, 476, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 513, 514, 274, 0, 515, 0, 0, 0, 0, 0, 0, 160, 274, 161, 162, 476, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 274, 175, 176, 274, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 274, 274, 0, 0, 0, 274, 520, 509, 0, 0, 521, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 274, 0, 274, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 608, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 274, 334, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 476, 476, 476, 472, 472, 476, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 476, 476, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 476, 472, 472, 472, 472, 472, 476, 472, 476, 472, 476, 472, 476, 476, 476, 476, 476, 476, 476, 472, 476, 476, 472, 472, 472, 472, 472, 472, 471, 471, 471, 0, 471, 274, 274, 274, 471, 471, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 0, 471, 274, 274, 471, 471, 471, 471, 471, 471, 471, 274, 274, 0, 274, 274, 274, 274, 274, 0, 471, 0, 0, 471, 471, 471, 471, 471, 471, 471, 471, 0, 471, 471, 471, 471, 0, 0, 471, 471, 471, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 0, 0, 274, 274, 274, 471, 0, 274, 471, 471, 471, 471, 471, 274, 471, 274, 471, 274, 471, 274, 274, 274, 274, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 477, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 324, 477, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 547, 514, 477, 477, 548, 0, 0, 477, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 477, 0, 477, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 478, 186, 0, 0, 0, 0, 0, 0, 0, 0, 478, 0, 0, 477, 0, 0, 0, 584, 509, 0, 0, 585, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 478, 169, 0, 478, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 478, 478, 0, 175, 176, 478, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 586, 514, 0, 0, 587, 0, 0, 0, 478, 0, 478, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 655, 0, 0, 0, 478, 334, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 474, 474, 474, 0, 474, 477, 477, 477, 474, 474, 477, 477, 477, 474, 477, 474, 474, 474, 474, 474, 474, 474, 0, 477, 477, 477, 474, 474, 474, 474, 474, 474, 474, 477, 477, 0, 477, 477, 477, 477, 477, 0, 474, 0, 0, 474, 474, 474, 474, 474, 474, 474, 474, 0, 474, 474, 474, 474, 0, 0, 474, 474, 474, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 0, 0, 477, 477, 477, 474, 0, 477, 474, 474, 474, 474, 474, 477, 474, 477, 474, 477, 474, 477, 477, 477, 477, 477, 477, 477, 474, 477, 477, 474, 474, 474, 474, 474, 474, 475, 475, 475, 0, 475, 478, 478, 478, 475, 475, 478, 478, 478, 475, 478, 475, 475, 475, 475, 475, 475, 475, 0, 478, 478, 478, 475, 475, 475, 475, 475, 475, 475, 478, 478, 0, 478, 478, 478, 478, 478, 0, 475, 0, 0, 475, 475, 475, 475, 475, 475, 475, 475, 0, 475, 475, 475, 475, 0, 0, 475, 475, 475, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 0, 0, 478, 478, 478, 475, 0, 478, 475, 475, 475, 475, 475, 478, 475, 478, 475, 478, 475, 478, 478, 478, 478, 478, 478, 478, 475, 478, 478, 475, 475, 475, 475, 475, 475, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 324, 350, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 602, 509, 350, 350, 603, 0, 0, 350, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 350, 0, 350, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 492, 186, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 350, 0, 0, 0, 604, 514, 0, 0, 605, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 492, 169, 0, 492, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 175, 176, 492, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 645, 509, 0, 0, 646, 0, 0, 0, 492, 0, 492, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 251, 251, 251, 0, 251, 350, 350, 350, 251, 251, 350, 350, 350, 251, 350, 251, 251, 251, 251, 251, 251, 251, 0, 350, 350, 350, 251, 251, 251, 251, 251, 251, 251, 350, 350, 0, 350, 350, 350, 350, 350, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 0, 0, 350, 350, 350, 251, 0, 350, 251, 0, 251, 251, 251, 350, 251, 350, 251, 350, 251, 350, 350, 350, 350, 350, 350, 350, 251, 350, 350, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 492, 492, 492, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 251, 0, 492, 251, 0, 251, 251, 251, 492, 251, 492, 251, 492, 251, 492, 492, 492, 492, 492, 492, 492, 251, 492, 492, 251, 251, 251, 251, 251, 251, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 647, 514, 0, 0, 648, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 278, 167, 168, 278, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 278, 278, 0, 87, 0, 278, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 857, 509, 0, 0, 858, 0, 0, 0, 278, 0, 278, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 286, 170, 171, 172, 173, 0, 0, 0, 0, 0, 286, 0, 0, 278, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 859, 514, 0, 0, 860, 0, 286, 0, 0, 286, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 286, 286, 169, 0, 0, 286, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 286, 186, 286, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 324, 286, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 0, 473, 278, 278, 278, 473, 473, 278, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 278, 278, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 278, 473, 473, 473, 473, 473, 278, 473, 278, 473, 278, 473, 278, 278, 278, 278, 278, 278, 278, 473, 278, 0, 473, 473, 473, 473, 473, 473, 251, 251, 251, 0, 251, 286, 286, 286, 251, 251, 286, 286, 286, 251, 286, 251, 251, 251, 251, 251, 251, 251, 0, 0, 286, 286, 251, 251, 251, 251, 251, 251, 251, 286, 286, 0, 286, 286, 286, 286, 286, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 0, 0, 286, 286, 286, 251, 0, 286, 251, 0, 251, 251, 251, 286, 251, 286, 251, 286, 251, 286, 286, 286, 286, 286, 286, 286, 251, 286, 472, 251, 251, 251, 251, 251, 251, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 76, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 472, 0, 84, 0, 472, 309, 310, 311, 312, 313, 314, 315, 0, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 309, 333, 0, 0, 0, 0, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 322, 323, 473, 0, 0, 472, 0, 0, 0, 0, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 0, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 86, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/buggy/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
576,
5026,
16,
225,
576,
5026,
16,
225,
890,
12416,
16,
225,
576,
5540,
16,
225,
576,
5026,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
576,
5026,
16,
225,
576,
5026,
16,
225,
890,
12416,
16,
225,
576,
5540,
16,
225,
576,
5026,... |
if (attempt > 1) | if (attempt > 1) { log.warn("Error in attempt: "+attempt+" inserting alarm into the datastore", e); | public void persistAlarm(Header eventHeader, Event event) throws SQLException { if (event != null) { Category log = ThreadCategory.getInstance(AlarmWriter.class); // Check value of <logmsg> attribute 'dest', if set to // "donotpersist" then simply return, the uei is not to be // persisted to the database String logdest = event.getLogmsg().getDest(); if (logdest.equals("donotpersist") || event.getReductionKey() == null) { log.debug("AlarmWriter: uei '" + event.getUei() + "' marked as 'doNotPersist' or reductionKey is null."); return; } else { if (log.isDebugEnabled()) { log.debug("AlarmWriter dbRun for : " + event.getUei() + " nodeid: " + event.getNodeid() + " ipaddr: " + event.getInterface() + " serviceid: " + event.getService()); } } /* * Try twice incase the transaction fails. This could happen if 2 or more threads query the db * at the same time and determine that insert needs to happen. One insert will complete the other * will fail. The next time through the loop, the alarm will be reduced with an update. */ int attempt = 1; boolean notUpdated = true; while (attempt <= 2 && notUpdated) { try { insertOrUpdateAlarm(eventHeader, event); m_dbConn.commit(); notUpdated = false; } catch (SQLException e) { log.warn("Error in attempt: "+attempt+" inserting alarm into the datastore", e); try { m_dbConn.rollback(); m_dbConn.setAutoCommit(false); } catch (Exception e2) { log.warn("Rollback of transaction failed!", e2); } if (attempt > 1) throw e; } attempt++; } if (log.isDebugEnabled()) log.debug("AlarmWriter finished for : " + event.getUei()); } } | 25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/b6070de31fbe4619461fa1179f780bd207ab3ab8/AlarmWriter.java/buggy/src/services/org/opennms/netmgt/eventd/AlarmWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3898,
16779,
12,
1864,
871,
1864,
16,
2587,
871,
13,
1216,
6483,
288,
3639,
309,
261,
2575,
480,
446,
13,
288,
5411,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
16779,
228... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3898,
16779,
12,
1864,
871,
1864,
16,
2587,
871,
13,
1216,
6483,
288,
3639,
309,
261,
2575,
480,
446,
13,
288,
5411,
9856,
613,
273,
4884,
4457,
18,
588,
1442,
12,
16779,
228... |
preferences.use_tab = true; | this.setUseTab(preferences); | public void test542() { DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getJavaConventionsSettings()); preferences.use_tab = true; DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); runTest(codeFormatter, "test542", "A.java", CodeFormatter.K_COMPILATION_UNIT);//$NON-NLS-1$ //$NON-NLS-2$ } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/89bcdbe3377ffa239857ce6e220c3e9a2f048f0c/FormatterRegressionTests.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
6564,
22,
1435,
288,
202,
202,
1868,
1085,
5074,
1320,
12750,
273,
394,
2989,
1085,
5074,
1320,
12,
1868,
1085,
5074,
2918,
18,
588,
5852,
442,
24862,
2628,
10663,
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,
1842,
6564,
22,
1435,
288,
202,
202,
1868,
1085,
5074,
1320,
12750,
273,
394,
2989,
1085,
5074,
1320,
12,
1868,
1085,
5074,
2918,
18,
588,
5852,
442,
24862,
2628,
10663,
20... |
result = new RoleTableData( id, name ); | result = new TableRole( id, name ); | public RoleTableData[] sproc_getallroles() { String sql = "SELECT role_id, role_name FROM roles ORDER BY role_name"; Object[] paramValues = null; ResultProcessor resultProcessor = new ResultProcessor() { Object mapOneRowFromResultsetToObject( ResultSet rs ) throws SQLException { int id = rs.getInt( "role_id" ); String name = rs.getString( "role_name" ); RoleTableData result = null; if( !name.equalsIgnoreCase( "users" ) ) { // all roles but user should be mapped. result = new RoleTableData( id, name ); } return result; } }; ArrayList result = executeQuery( sql, paramValues, resultProcessor ); return (RoleTableData[])result.toArray( new RoleTableData[result.size()] ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/3fc3bc09331f7cdecb059666292dc3b0a386d278/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6204,
1388,
751,
8526,
272,
9381,
67,
588,
454,
7774,
1435,
288,
3639,
514,
1847,
273,
315,
4803,
2478,
67,
350,
16,
2478,
67,
529,
4571,
4900,
10205,
6953,
2478,
67,
529,
14432,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6204,
1388,
751,
8526,
272,
9381,
67,
588,
454,
7774,
1435,
288,
3639,
514,
1847,
273,
315,
4803,
2478,
67,
350,
16,
2478,
67,
529,
4571,
4900,
10205,
6953,
2478,
67,
529,
14432,
... |
int opPos = m_ops.m_opMap[OpMap.MAPINDEX_LENGTH]; | int opPos = m_ops.getOp(OpMap.MAPINDEX_LENGTH); | protected int EqualityExpr(int addPos) throws javax.xml.transform.TransformerException { int opPos = m_ops.m_opMap[OpMap.MAPINDEX_LENGTH]; if (-1 == addPos) addPos = opPos; RelationalExpr(-1); if (null != m_token) { if (tokenIs('!') && lookahead('=', 1)) { nextToken(); nextToken(); insertOp(addPos, 2, OpCodes.OP_NOTEQUALS); int opPlusLeftHandLen = m_ops.m_opMap[OpMap.MAPINDEX_LENGTH] - addPos; addPos = EqualityExpr(addPos); m_ops.m_opMap[addPos + OpMap.MAPINDEX_LENGTH] = m_ops.m_opMap[addPos + opPlusLeftHandLen + 1] + opPlusLeftHandLen; addPos += 2; } else if (tokenIs('=')) { nextToken(); insertOp(addPos, 2, OpCodes.OP_EQUALS); int opPlusLeftHandLen = m_ops.m_opMap[OpMap.MAPINDEX_LENGTH] - addPos; addPos = EqualityExpr(addPos); m_ops.m_opMap[addPos + OpMap.MAPINDEX_LENGTH] = m_ops.m_opMap[addPos + opPlusLeftHandLen + 1] + opPlusLeftHandLen; addPos += 2; } } return addPos; } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/f136f83081069756bcd71950054569f3ad4d2ce5/XPathParser.java/buggy/src/org/apache/xpath/compiler/XPathParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
509,
9057,
560,
4742,
12,
474,
527,
1616,
13,
1216,
6863,
18,
2902,
18,
6547,
18,
8319,
503,
225,
288,
565,
509,
1061,
1616,
273,
312,
67,
4473,
18,
588,
3817,
12,
3817,
863,
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,
4750,
509,
9057,
560,
4742,
12,
474,
527,
1616,
13,
1216,
6863,
18,
2902,
18,
6547,
18,
8319,
503,
225,
288,
565,
509,
1061,
1616,
273,
312,
67,
4473,
18,
588,
3817,
12,
3817,
863,
18... |
ExtractionResults results = new ExtractionResults( subIter, | currentResult = new ExtractionResults( subIter, | public IExtractionResults extract( ) throws EngineException { if( instanceId == null ) return null; assert executionContext.getDataEngine() != null; DataEngine dataEngine = executionContext.getDataEngine().getDataEngine(); ReportItemDesign rptItem = (ReportItemDesign) report .getReportItemByID( instanceId.getComponentID( ) ); assert rptItem != null; IBaseQueryDefinition query = rptItem.getQuery(); validateSelectedColumns( query ); DataID dataId = instanceId.getDataID(); InstanceID instId = instanceId; while( instId != null && dataId == null ){ instId = instId.getParentID( ); if( instId != null ) { dataId = instId.getDataID(); } } if(dataId == null) return null; DataSetID dataSetId = dataId.getDataSetID( ); assert dataSetId != null; String queryResultName = dataSetId.getDataSetName( ); if( resultMetaList == null ) { resultMetaList = new ArrayList( ); } else { resultMetaList.clear(); } if ( queryResultName != null ) { try { IQueryResults queryResults = dataEngine.getQueryResults( queryResultName ); assert queryResults.getResultIterator() != null; ExtractionResults results = new ExtractionResults( queryResults.getResultIterator() , selectedColumns, query.getRowExpressions() ); resultMetaList.add( results.getResultMetaData() ); return results; } catch ( BirtException e ) { e.printStackTrace(); } } else { DataSetID parentId = dataSetId.getParentID( ); assert parentId != null; try { queryResultName = parentId.getDataSetName( ); DataSetID parId = parentId; while( queryResultName == null && parId != null ) { parId = parId.getParentID(); if( parId != null ) queryResultName = parId.getDataSetName(); } assert queryResultName != null; IQueryResults parentQueryResult = dataEngine .getQueryResults( queryResultName ); assert parentQueryResult != null; IResultIterator iter = parentQueryResult.getResultIterator( ); long rowid = dataSetId.getRowID( ); int i = 0; while ( iter.next( ) && i++ < rowid ) ; IResultIterator subIter = iter.getSecondaryIterator( dataSetId .getQueryName( ), executionContext.getScope( ) ); ExtractionResults results = new ExtractionResults( subIter, selectedColumns, query.getRowExpressions() ); resultMetaList.add( results.getResultMetaData()); return results; } catch( BirtException be ) { be.printStackTrace( ); } } return null; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/165fa7610d9f882f09f619d23d254476367b604d/DataExtractionTask.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/DataExtractionTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
25757,
3447,
2608,
12,
262,
1216,
10507,
503,
202,
95,
202,
202,
430,
12,
17608,
422,
446,
262,
1875,
202,
2463,
446,
31,
9506,
202,
11231,
30521,
18,
588,
751,
4410,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25757,
3447,
2608,
12,
262,
1216,
10507,
503,
202,
95,
202,
202,
430,
12,
17608,
422,
446,
262,
1875,
202,
2463,
446,
31,
9506,
202,
11231,
30521,
18,
588,
751,
4410,
143... |
public org.quickfix.field.LegMaturityMonthYear getLegMaturityMonthYear() throws FieldNotFound { org.quickfix.field.LegMaturityMonthYear value = new org.quickfix.field.LegMaturityMonthYear(); | public quickfix.field.LegMaturityMonthYear getLegMaturityMonthYear() throws FieldNotFound { quickfix.field.LegMaturityMonthYear value = new quickfix.field.LegMaturityMonthYear(); | public org.quickfix.field.LegMaturityMonthYear getLegMaturityMonthYear() throws FieldNotFound { org.quickfix.field.LegMaturityMonthYear value = new org.quickfix.field.LegMaturityMonthYear(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityStatus.java/buggy/src/java/src/quickfix/fix44/SecurityStatus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
15947,
2336,
5445,
5593,
336,
8329,
15947,
2336,
5445,
5593,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8329,
15947,
2336,
5445,
5593,
336,
8329,
15947,
2336,
5445,
5593,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
15... |
public static String toString(int modifiers) { | public static /*@non_null*/String toString(int modifiers) { | public static String toString(int modifiers) { String s = ""; for (int i = 0; i < ParseUtil.modifierKeywords.length; i++) { if ((modifiers & (1<<i)) != 0) { s += name(i) + " "; } } return s; } | 46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/67867c1e55343e2e2d3135b09cf373b0d4c4adac/Modifiers.java/buggy/src/escjava/trunk/ESCTools/Javafe/java/javafe/ast/Modifiers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1748,
36,
5836,
67,
2011,
5549,
780,
1762,
12,
474,
10429,
13,
288,
565,
514,
272,
273,
1408,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2884,
1304,
18,
20597,
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,
282,
1071,
760,
1748,
36,
5836,
67,
2011,
5549,
780,
1762,
12,
474,
10429,
13,
288,
565,
514,
272,
273,
1408,
31,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2884,
1304,
18,
20597,
14... |
element( w, "artifactId", project.getArtifactId() ); | element( w, "artifactId", pluginDescriptor.getArtifactId() ); | public void execute( String destinationDirectory, Set mavenMojoDescriptors, MavenProject project, String goalPrefix ) throws IOException { File f = new File( destinationDirectory, "plugin.xml" ); if ( !f.getParentFile().exists() ) { f.getParentFile().mkdirs(); } FileWriter writer = null; try { writer = new FileWriter( f ); XMLWriter w = new PrettyPrintXMLWriter( writer ); w.startElement( "plugin" ); element( w, "groupId", project.getGroupId() ); element( w, "artifactId", project.getArtifactId() ); element( w, "goalPrefix", goalPrefix ); w.startElement( "mojos" ); for ( Iterator it = mavenMojoDescriptors.iterator(); it.hasNext(); ) { MojoDescriptor descriptor = (MojoDescriptor) it.next(); processPluginDescriptor( descriptor, w, project ); } w.endElement(); PluginUtils.writeDependencies( w, project ); w.endElement(); writer.flush(); } finally { IOUtil.close( writer ); } } | 47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/5877385df1e5b2dff3e57131c8fac869556c3b8c/PluginDescriptorGenerator.java/buggy/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginDescriptorGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
514,
2929,
2853,
16,
1000,
20499,
49,
10007,
12705,
16,
17176,
4109,
1984,
16,
7682,
514,
17683,
2244,
262,
3639,
1216,
1860,
565,
288,
3639,
1387,
284,
273,
394,
138... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
514,
2929,
2853,
16,
1000,
20499,
49,
10007,
12705,
16,
17176,
4109,
1984,
16,
7682,
514,
17683,
2244,
262,
3639,
1216,
1860,
565,
288,
3639,
1387,
284,
273,
394,
138... |
Iterator it = battleChits.iterator(); while (it.hasNext()) | BattleChit chit = (BattleChit)it.next(); if (chit.contains(point)) | private BattleChit getBattleChitAtPoint(Point point) { java.util.List battleChits = client.getBattleChits(); synchronized (battleChits) { Iterator it = battleChits.iterator(); while (it.hasNext()) { BattleChit chit = (BattleChit)it.next(); if (chit.contains(point)) { return chit; } } } return null; } | 51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/8d1ec51f9e7290b8276a6f9e736af457e9465186/BattleMap.java/buggy/Colossus/net/sf/colossus/client/BattleMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
605,
4558,
298,
782,
305,
2882,
4558,
298,
782,
305,
861,
2148,
12,
2148,
1634,
13,
565,
288,
3639,
2252,
18,
1367,
18,
682,
324,
4558,
298,
782,
1282,
273,
1004,
18,
588,
38,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
4558,
298,
782,
305,
2882,
4558,
298,
782,
305,
861,
2148,
12,
2148,
1634,
13,
565,
288,
3639,
2252,
18,
1367,
18,
682,
324,
4558,
298,
782,
1282,
273,
1004,
18,
588,
38,
4... |
else if (methodName.equals("hashCode") && signature.equals("()I")) { | else if (seen == INVOKEVIRTUAL && methodName.equals("hashCode") && signature.equals("()I") || seen == INVOKESTATIC && clsName.equals("java/lang/System") && methodName.equals("identityHashCode") && signature.equals("(Ljava/lang/Object;)I")) { | private void processMethodCall(DismantleBytecode dbc, int seen) { String clsName = dbc.getClassConstantOperand(); String methodName = dbc.getNameConstantOperand(); String signature = dbc.getSigConstantOperand(); String appenderValue = null; Item sbItem = null; //TODO: stack merging for trinaries kills the constant.. would be nice to maintain. if ("java/lang/StringBuffer".equals(clsName) || "java/lang/StringBuilder".equals(clsName)) { if ("<init>".equals(methodName)) { if ("(Ljava/lang/String;)V".equals(signature)) { Item i = getStackItem(0); appenderValue = (String)i.getConstant(); } else if ("()V".equals(signature)) { appenderValue = ""; } } else if ("toString".equals(methodName)) { Item i = getStackItem(0); appenderValue = (String)i.getConstant(); } else if ("append".equals(methodName) && signature.indexOf("II)") == -1) { sbItem = getStackItem(1); Item i = getStackItem(0); Object sbVal = sbItem.getConstant(); Object sVal = i.getConstant(); if ((sbVal != null) && (sVal != null)) { appenderValue = sbVal + sVal.toString(); } else if (sbItem.registerNumber >= 0) { OpcodeStack.Item item = getLVValue(sbItem.registerNumber); if (item != null) item.constValue = null; } } } pushByInvoke(dbc, seen != INVOKESTATIC); if (appenderValue != null) { Item i = this.getStackItem(0); i.constValue = appenderValue; if (sbItem != null) { i.registerNumber = sbItem.registerNumber; i.field = sbItem.field; i.userValue = sbItem.userValue; if (sbItem.registerNumber >= 0) setLVValue(sbItem.registerNumber, i ); } return; } if (clsName.equals("java/util/Random") && methodName.equals("nextInt") && signature.equals("()I")) { Item i = pop(); i.setSpecialKind(Item.RANDOM_INT); push(i); } else if (methodName.equals("hashCode") && signature.equals("()I")) { Item i = pop(); i.setSpecialKind(Item.HASHCODE_INT); push(i); } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/2d686da794a1b4f5f1c229bc4dbedf5704a92e44/OpcodeStack.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/OpcodeStack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
202,
1152,
918,
1207,
12592,
12,
1669,
81,
970,
298,
858,
16651,
9881,
16,
509,
5881,
13,
288,
3196,
202,
780,
2028,
461,
273,
9881,
18,
588,
797,
6902,
10265,
5621,
3196,
202,
780,
491... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
1152,
918,
1207,
12592,
12,
1669,
81,
970,
298,
858,
16651,
9881,
16,
509,
5881,
13,
288,
3196,
202,
780,
2028,
461,
273,
9881,
18,
588,
797,
6902,
10265,
5621,
3196,
202,
780,
491... |
if (logPanel == null) { return; | Runnable runnable = null; if (hide) { runnable = new Runnable() { public void run() { logui.getContentPane().remove(toolbar); logui.getRootPane().repaint(); logui.getRootPane().revalidate(); } }; } else { runnable = new Runnable() { public void run() { logui.getContentPane().add(toolbar, BorderLayout.NORTH); logui.getRootPane().repaint(); logui.getRootPane().revalidate(); } }; | public void actionPerformed(ActionEvent evt) { LogPanel logPanel = logui.getCurrentLogPanel(); if (logPanel == null) { return; } logPanel.toggleDetailPanel(); scanState(); } | 47730 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47730/271996b50e63584b5a6f992bf27203a51497ca99/ChainsawToolBarAndMenus.java/clean/src/java/org/apache/log4j/chainsaw/ChainsawToolBarAndMenus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
12,
1803,
1133,
6324,
13,
288,
1850,
1827,
5537,
613,
5537,
273,
613,
4881,
18,
588,
3935,
1343,
5537,
5621,
1850,
309,
261,
1330,
5537,
422,
446,
13,
288,
5411,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
12,
1803,
1133,
6324,
13,
288,
1850,
1827,
5537,
613,
5537,
273,
613,
4881,
18,
588,
3935,
1343,
5537,
5621,
1850,
309,
261,
1330,
5537,
422,
446,
13,
288,
5411,
327,
... |
public void flush() { for (int idx = 0; idx < caches.length; idx++) { caches[idx].flush(); } | public void flush(int controlIndex) { caches[controlIndex].flush(); | public void flush() { for (int idx = 0; idx < caches.length; idx++) { caches[idx].flush(); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5abf6fabfddc9bb4eb33acac1f3b4c05f76ac7b1/LayoutCache.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/layout/LayoutCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3663,
1435,
288,
3639,
364,
261,
474,
2067,
273,
374,
31,
2067,
411,
12535,
18,
2469,
31,
2067,
27245,
288,
5411,
12535,
63,
3465,
8009,
11330,
5621,
3639,
289,
565,
289,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3663,
1435,
288,
3639,
364,
261,
474,
2067,
273,
374,
31,
2067,
411,
12535,
18,
2469,
31,
2067,
27245,
288,
5411,
12535,
63,
3465,
8009,
11330,
5621,
3639,
289,
565,
289,
2,
... |
time = calendarToSybTime(cal, value); | if (value instanceof java.sql.Date) { time = 0; cal.setTime((java.util.Date) value); } else { time = calendarToSybTime(cal, value); } | private static void putDateTimeValue(RequestStream out, Object value) throws SQLException, IOException { int daysSince1900; int time; if (value == null) { out.write((byte) 0); return; } synchronized (cal) { out.write((byte) 8); time = calendarToSybTime(cal, value); if (value instanceof java.sql.Time) { daysSince1900 = 0; } else { daysSince1900 = calendarToSybDate(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DAY_OF_MONTH)); } out.write((int) daysSince1900); out.write((int) time); } } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/86f78c52738d6a74a5ebb6ffc5d12e45b9b795ee/TdsData.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1378,
5096,
620,
12,
691,
1228,
596,
16,
1033,
460,
13,
5411,
1216,
6483,
16,
1860,
288,
3639,
509,
4681,
9673,
3657,
713,
31,
3639,
509,
813,
31,
3639,
309,
261,
1132,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1378,
5096,
620,
12,
691,
1228,
596,
16,
1033,
460,
13,
5411,
1216,
6483,
16,
1860,
288,
3639,
509,
4681,
9673,
3657,
713,
31,
3639,
509,
813,
31,
3639,
309,
261,
1132,
... |
IFile originalFile = input.getFile(); IContainer originalFolder = originalFile.getParent(); model.saveToFolder(originalFolder.getLocation().toFile()); originalFolder.refreshLocal(IResource.DEPTH_INFINITE, _monitor); setInput(new FileEditorInput(originalFile)); } } catch (IOException e) { e.printStackTrace(); } catch (CoreException e) { e.printStackTrace(); } */ | IFile originalFile = input.getFile(); IContainer originalFolder = originalFile.getParent(); model.saveToFolder(originalFolder.getParent().getLocation().toFile()); model.setDirty(false); originalFolder.refreshLocal(IResource.DEPTH_INFINITE, _monitor); } } catch (IOException e) { e.printStackTrace(); } catch (CoreException e) { e.printStackTrace(); } /**/ | public void doSave(IProgressMonitor _monitor) { MessageDialog.openInformation(Display.getCurrent().getActiveShell(), "Not Yet", "Yeah, it can, but I'm not going to let you. It's safer for all of us at the moment."); /* try { EOModelEditorInput input = (EOModelEditorInput) getEditorInput(); if (input != null) { EOModel model = input.getModel(); List failures = new LinkedList(); model.verify(failures); handleModelErrors(failures); IFile originalFile = input.getFile(); IContainer originalFolder = originalFile.getParent(); model.saveToFolder(originalFolder.getLocation().toFile()); originalFolder.refreshLocal(IResource.DEPTH_INFINITE, _monitor); setInput(new FileEditorInput(originalFile)); } } catch (IOException e) { e.printStackTrace(); } catch (CoreException e) { e.printStackTrace(); } */ } | 46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/85e8c5c5e6069e4a772ec9eb7716a51dc31c2178/EOModelEditor.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/editors/EOModelEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
4755,
12,
45,
5491,
7187,
389,
10259,
13,
288,
565,
2350,
6353,
18,
3190,
5369,
12,
4236,
18,
588,
3935,
7675,
588,
3896,
13220,
9334,
315,
1248,
1624,
278,
3113,
315,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
4755,
12,
45,
5491,
7187,
389,
10259,
13,
288,
565,
2350,
6353,
18,
3190,
5369,
12,
4236,
18,
588,
3935,
7675,
588,
3896,
13220,
9334,
315,
1248,
1624,
278,
3113,
315,
6... |
addScrollBars(sd); | public void run(String arg) { boolean quiet = arg != null && !arg.equals(""); String options = Macro.getOptions(); // -- Step 1: get filename to open -- String id = null; // try to get filename from argument if (quiet) id = arg; if (id == null) { // try to get filename from macro options if (options != null) { String open = Macro.getValue(options, "open", null); if (open != null) id = open; } } // if necessary, prompt the user for the filename OpenDialog od = new OpenDialog("Open", id); String directory = od.getDirectory(); String fileName = od.getFileName(); if (fileName == null) { plugin.canceled = true; return; } id = directory + fileName; // if no valid filename, give up if (id == null || !new File(id).exists()) { if (!quiet) { IJ.error("LOCI Bio-Formats", "The specified file " + (id == null ? "" : ("(" + id + ") ")) + "does not exist."); } return; } // -- Step 2: identify file -- IJ.showStatus("Identifying " + fileName); // determine whether we can handle this file ImageReader reader = new ImageReader(); IFormatReader r = null; try { r = reader.getReader(id); } catch (Exception exc) { exc.printStackTrace(); IJ.showStatus(""); if (!quiet) { String msg = exc.getMessage(); IJ.error("LOCI Bio-Formats", "Sorry, there was a problem " + "reading the file" + (msg == null ? "." : (":\n" + msg))); } return; } // -- Step 3: get parameter values -- IJ.showStatus(""); final String mergeString = "Merge channels to RGB"; final String ignoreString = "Ignore color lookup table"; final String colorizeString = "Colorize channels"; final String splitString = "Open each channel in its own window"; final String metadataString = "Display associated metadata"; final String stitchString = "Stitch files with similar names"; final String rangeString = "Specify range for each series"; // load preferences from IJ_Prefs.txt boolean mergeChannels = Prefs.get("bioformats.mergeChannels", false); boolean ignoreTables = Prefs.get("bioformats.ignoreTable", false); boolean colorize = Prefs.get("bioformats.colorize", false); boolean splitWindows = Prefs.get("bioformats.splitWindows", true); boolean showMetadata = Prefs.get("bioformats.showMetadata", false); boolean stitchFiles = Prefs.get("bioformats.stitchFiles", false); boolean specifyRanges = Prefs.get("bioformats.specifyRanges", false); // prompt for parameters, if necessary GenericDialog pd = new GenericDialog("LOCI Bio-Formats Import Options"); pd.addCheckbox(mergeString, mergeChannels); pd.addCheckbox(ignoreString, ignoreTables); pd.addCheckbox(colorizeString, colorize); pd.addCheckbox(splitString, splitWindows); pd.addCheckbox(metadataString, showMetadata); pd.addCheckbox(stitchString, stitchFiles); pd.addCheckbox(rangeString, specifyRanges); pd.showDialog(); if (pd.wasCanceled()) { plugin.canceled = true; return; } mergeChannels = pd.getNextBoolean(); ignoreTables = pd.getNextBoolean(); colorize = pd.getNextBoolean(); splitWindows = pd.getNextBoolean(); showMetadata = pd.getNextBoolean(); stitchFiles = pd.getNextBoolean(); specifyRanges = pd.getNextBoolean(); // -- Step 4: open file -- IJ.showStatus("Analyzing " + fileName); try { boolean doRGBMerge = false; // -- Step 4a: do some preparatory work -- if (mergeChannels) r = new ChannelMerger(r); else r = new ChannelSeparator(r); if (stitchFiles) r = new FileStitcher(r); if (!ignoreTables) { if (r.isRGB(id) && r.getPixelType(id) >= FormatReader.INT16) {// Double min = r.getChannelGlobalMinimum(id, 0);// Double max = r.getChannelGlobalMaximum(id, 0); Double min = null, max = null; if (min == null || max == null) { doRGBMerge = true; r = new ChannelSeparator(r); } } } r.setIgnoreColorTable(ignoreTables); // store OME metadata into OME-XML structure, if available OMEXMLMetadataStore store = new OMEXMLMetadataStore(); store.createRoot(); r.setMetadataStore(store); int seriesCount = r.getSeriesCount(id); boolean[] series = new boolean[seriesCount]; series[0] = true;// store = (OMEXMLMetadataStore) r.getMetadataStore(id); // build descriptive string and range for each series String[] seriesStrings = new String[seriesCount]; int[] num = new int[seriesCount]; int[] begin = new int[seriesCount]; int[] end = new int[seriesCount]; int[] step = new int[seriesCount]; for (int i=0; i<seriesCount; i++) { r.setSeries(id, i); num[i] = r.getImageCount(id); StringBuffer sb = new StringBuffer(); sb.append("Series_"); sb.append(i + 1); sb.append(" - "); String name = store.getImageName(new Integer(i)); if (name != null && name.length() > 0) { sb.append(name); sb.append(": "); } sb.append(r.getSizeX(id)); sb.append(" x "); sb.append(r.getSizeY(id)); sb.append("; "); sb.append(num[i]); sb.append(" planes"); if (r.isOrderCertain(id)) { sb.append(" ("); boolean first = true; int sizeC = r.getSizeC(id); int sizeZ = r.getSizeZ(id); int sizeT = r.getSizeT(id); if (sizeC > 1) { sb.append(sizeC); sb.append("C"); first = false; } if (sizeZ > 1) { if (!first) sb.append(" x "); sb.append(sizeZ); sb.append("Z"); first = false; } if (sizeT > 1) { if (!first) sb.append(" x "); sb.append(sizeT); sb.append("T"); first = false; } sb.append(")"); } seriesStrings[i] = sb.toString(); begin[i] = 0; end[i] = num[i] - 1; step[i] = 1; } // -- Step 4a: prompt for the series to open, if necessary -- if (seriesCount > 1) { IJ.showStatus(""); GenericDialog sd = new GenericDialog("LOCI Bio-Formats Series Options"); for (int i=0; i<seriesCount; i++) { sd.addCheckbox(seriesStrings[i], series[i]); }// addScrollBars(sd); sd.showDialog(); if (sd.wasCanceled()) { plugin.canceled = true; return; } for (int i=0; i<seriesCount; i++) series[i] = sd.getNextBoolean(); } // -- Step 4b: prompt for the range of planes to import, if necessary -- if (specifyRanges) { boolean needRange = false; for (int i=0; i<seriesCount; i++) { if (series[i] && num[i] > 1) needRange = true; } if (needRange) { IJ.showStatus(""); GenericDialog rd = new GenericDialog("LOCI Bio-Formats Range Options"); for (int i=0; i<seriesCount; i++) { if (!series[i]) continue; rd.addMessage(seriesStrings[i].replaceAll("_", " ")); String s = "_" + (i + 1); rd.addNumericField("Begin" + s, begin[i] + 1, 0); rd.addNumericField("End" + s, end[i] + 1, 0); rd.addNumericField("Step" + s, step[i], 0); }// addScrollBars(rd); rd.showDialog(); if (rd.wasCanceled()) { plugin.canceled = true; return; } for (int i=0; i<seriesCount; i++) { if (!series[i]) continue; begin[i] = (int) rd.getNextNumber() - 1; end[i] = (int) rd.getNextNumber() - 1; step[i] = (int) rd.getNextNumber(); if (begin[i] < 0) begin[i] = 0; if (begin[i] >= num[i]) begin[i] = num[i] - 1; if (end[i] < begin[i]) end[i] = begin[i]; if (end[i] >= num[i]) end[i] = num[i] - 1; if (step[i] < 1) step[i] = 1; } } } // -- Step 4c: display metadata, when appropriate -- if (showMetadata) { IJ.showStatus("Populating metadata"); // display standard metadata in a table in its own window Hashtable meta = r.getMetadata(id); meta.put("\tSizeX", new Integer(r.getSizeX(id))); meta.put("\tSizeY", new Integer(r.getSizeY(id))); meta.put("\tSizeZ", new Integer(r.getSizeZ(id))); meta.put("\tSizeT", new Integer(r.getSizeT(id))); meta.put("\tSizeC", new Integer(r.getSizeC(id))); meta.put("\tIsRGB", new Boolean(r.isRGB(id))); meta.put("\tPixelType", FormatReader.getPixelTypeString(r.getPixelType(id))); meta.put("\tLittleEndian", new Boolean(r.isLittleEndian(id))); meta.put("\tDimensionOrder", r.getDimensionOrder(id)); meta.put("\tIsInterleaved", new Boolean(r.isInterleaved(id))); MetadataPane mp = new MetadataPane(meta); JFrame frame = new JFrame(id + " Metadata"); frame.setContentPane(mp); frame.pack(); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); WindowManager.addWindow(frame); } // -- Step 4d: read pixel data -- IJ.showStatus("Reading " + fileName); for (int i=0; i<seriesCount; i++) { if (!series[i]) continue; r.setSeries(id, i); String name = store.getImageName(new Integer(i)); String imageName = fileName; if (name != null && name.length() > 0) imageName += " - " + name; int total = (end[i] - begin[i]) / step[i] + 1; // dump OME-XML to ImageJ's description field, if available FileInfo fi = new FileInfo(); fi.description = store.dumpXML(); long startTime = System.currentTimeMillis(); long time = startTime; ImageStack stackB = null, stackS = null, stackF = null, stackO = null; int channels = r.getSizeC(id); int sizeZ = r.getSizeZ(id); int sizeT = r.getSizeT(id); if (specifyRanges && num[i] > 1) { // reset sizeZ and sizeT if we aren't opening the entire series sizeZ = begin[i]; sizeT = end[i]; // CTR: huh? this makes no sense if (channels > 1) { channels = r.getIndex(id, 0, 1, 0) - r.getIndex(id, 0, 0, 0); } } int q = 0; for (int j=begin[i]; j<=end[i]; j+=step[i]) { // limit message update rate long clock = System.currentTimeMillis(); if (clock - time >= 100) { IJ.showStatus("Reading " + (seriesCount > 1 ? "series " + (i + 1) + ", " : "") + "plane " + (j + 1) + "/" + (end[i] + 1)); time = clock; } IJ.showProgress((double) q++ / total); BufferedImage img = r.openImage(id, j); int sizeX = r.getSizeX(id), sizeY = r.getSizeY(id); if (img.getWidth() < sizeX || img.getHeight() < sizeY) { img = ImageTools.padImage(img, sizeX, sizeY); } // autoscale >8-bit data to that RGB merge looks reasonable// int cCoord = r.getZCTCoords(id, j)[1];// Double min = r.getChannelGlobalMinimum(id, cCoord);// Double max = r.getChannelGlobalMaximum(id, cCoord); Double min = null, max = null; if (!doRGBMerge && r.isRGB(id) && r.getPixelType(id) >= FormatReader.INT16) { if (min == null || max == null) { // call ImageJ's RGB merge utility after we display doRGBMerge = true; } else { // we can autoscale on our own img = ImageTools.autoscale(img, min.intValue(), max.intValue()); } } // extract bytes from buffered image ImageProcessor ip = null; WritableRaster raster = img.getRaster(); int c = raster.getNumBands(); int tt = raster.getTransferType(); int w = img.getWidth(), h = img.getHeight(); if (c == 1) { if (tt == DataBuffer.TYPE_BYTE) { byte[] b = ImageTools.getBytes(img)[0]; if (b.length > w*h) { byte[] tmp = b; b = new byte[w*h]; System.arraycopy(tmp, 0, b, 0, b.length); } ip = new ByteProcessor(w, h, b, null); if (stackB == null) stackB = new ImageStack(w, h); stackB.addSlice(imageName + ":" + (j + 1), ip); } else if (tt == DataBuffer.TYPE_USHORT) { short[] s = ImageTools.getShorts(img)[0]; if (s.length > w*h) { short[] tmp = s; s = new short[w*h]; System.arraycopy(tmp, 0, s, 0, s.length); } ip = new ShortProcessor(w, h, s, null); if (stackS == null) stackS = new ImageStack(w, h); stackS.addSlice(imageName + ":" + (j + 1), ip); } else if (tt == DataBuffer.TYPE_FLOAT) { float[] f = ImageTools.getFloats(img)[0]; if (f.length > w*h) { float[] tmp = f; f = new float[w*h]; System.arraycopy(tmp, 0, f, 0, f.length); } ip = new FloatProcessor(w, h, f, null); if (stackF == null) stackF = new ImageStack(w, h); if (stackB != null) { ip = ip.convertToByte(true); stackB.addSlice(imageName + ":" + (j + 1), ip); stackF = null; } else if (stackS != null) { ip = ip.convertToShort(true); stackS.addSlice(imageName + ":" + (j + 1), ip); stackF = null; } else stackF.addSlice(imageName + ":" + (j + 1), ip); } } if (ip == null) { ip = new ImagePlus(null, img).getProcessor(); // slow if (stackO == null) stackO = new ImageStack(w, h); stackO.addSlice(imageName + ":" + (j + 1), ip); } } IJ.showStatus("Creating image"); IJ.showProgress(1); ImagePlus imp = null; if (stackB != null) { if (!mergeChannels && splitWindows) { slice(stackB, id, sizeZ, channels, sizeT, fi, r, specifyRanges, colorize); } else imp = new ImagePlus(imageName, stackB); } if (stackS != null) { if (!mergeChannels && splitWindows) { slice(stackS, id, sizeZ, channels, sizeT, fi, r, specifyRanges, colorize); } else imp = new ImagePlus(imageName, stackS); } if (stackF != null) { if (!mergeChannels && splitWindows) { slice(stackF, id, sizeZ, channels, sizeT, fi, r, specifyRanges, colorize); } else imp = new ImagePlus(imageName, stackF); } if (stackO != null) { if (!mergeChannels && splitWindows) { slice(stackO, id, sizeZ, channels, sizeT, fi, r, specifyRanges, colorize); } else imp = new ImagePlus(imageName, stackO); } if (imp != null) { // retrieve the spatial calibration information, if available double xcal = Double.NaN, ycal = Double.NaN, zcal = Double.NaN; Integer ii = new Integer(i); Float xf = store.getPixelSizeX(ii); if (xf != null) xcal = xf.floatValue(); Float yf = store.getPixelSizeY(ii); if (yf != null) ycal = yf.floatValue(); Float zf = store.getPixelSizeZ(ii); if (zf != null) zcal = zf.floatValue(); if (xcal != Double.NaN || ycal != Double.NaN || zcal != Double.NaN) { Calibration c = new Calibration(); if (xcal == xcal) { c.pixelWidth = xcal; c.setUnit("micron"); } if (ycal == ycal) { c.pixelHeight = ycal; c.setUnit("micron"); } if (zcal == zcal) { c.pixelDepth = zcal; c.setUnit("micron"); } imp.setCalibration(c); } imp.setFileInfo(fi); int c = r.getSizeC(id); r.close(); if (doRGBMerge) { ImageStack is = imp.getImageStack(); int w = is.getWidth(), h = is.getHeight(); ImageStack newStack = new ImageStack(w, h); ImageProcessor[] procs = new ImageProcessor[c]; for (int k=0; k<is.getSize(); k+=c) { for (int j=0; j<c; j++) { procs[j] = is.getProcessor(k + j + 1); procs[j] = procs[j].convertToByte(true); } byte[] red = new byte[w * h]; byte[] green = new byte[w * h]; byte[] blue = new byte[w * h]; red = (byte[]) procs[0].getPixels(); if (c > 1) green = (byte[]) procs[1].getPixels(); if (c > 2) blue = (byte[]) procs[2].getPixels(); ColorProcessor color = new ColorProcessor(w, h); color.setRGB(red, green, blue); newStack.addSlice(is.getSliceLabel(k + 1), color); } imp.setStack(imp.getTitle(), newStack); } imp.show(); } long endTime = System.currentTimeMillis(); double elapsed = (endTime - startTime) / 1000.0; if (num[i] == 1) { IJ.showStatus("LOCI Bio-Formats: " + elapsed + " seconds"); } else { long average = (endTime - startTime) / num[i]; IJ.showStatus("LOCI Bio-Formats: " + elapsed + " seconds (" + average + " ms per plane)"); } } r.close(); plugin.success = true; // save parameter values to IJ_Prefs.txt Prefs.set("bioformats.mergeChannels", mergeChannels); Prefs.set("bioformats.ignoreTables", ignoreTables); Prefs.set("bioformats.colorize", colorize); Prefs.set("bioformats.splitWindows", splitWindows); Prefs.set("bioformats.showMetadata", showMetadata); Prefs.set("bioformats.stitchFiles", stitchFiles); Prefs.set("bioformats.specifyRanges", specifyRanges); } catch (Exception exc) { exc.printStackTrace(); IJ.showStatus(""); if (!quiet) { String msg = exc.getMessage(); IJ.error("LOCI Bio-Formats", "Sorry, there was a problem " + "reading the data" + (msg == null ? "." : (":\n" + msg))); } } } | 55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/edade46eb62ee1432364ee1a72d45de4fb308b0e/Importer.java/buggy/loci/plugins/Importer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
527,
6806,
5190,
87,
12,
6427,
1769,
527,
6806,
5190,
87,
12,
6427,
1769,
1071,
1289,
6806,
5190,
87,
12,
6427,
1769,
918,
1289,
6806,
5190,
87,
12,
6427,
1769,
1086,
12,
780,
1289,
6806,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
527,
6806,
5190,
87,
12,
6427,
1769,
527,
6806,
5190,
87,
12,
6427,
1769,
1071,
1289,
6806,
5190,
87,
12,
6427,
1769,
918,
1289,
6806,
5190,
87,
12,
6427,
1769,
1086,
12,
780,
1289,
6806,
51... | |
float[] fvals = (float[]) value; int leng = Math.min( fvals.length, nel ); | int[] ivals = (int[]) value; int leng = Math.min( ivals.length, nel ); | void writeValue( DataOutput stream, Object value ) throws IOException { int i = 0; if ( value != null ) { float[] fvals = (float[]) value; int leng = Math.min( fvals.length, nel ); for ( ; i < leng; i++ ) { stream.writeFloat( fvals[ i ] ); } } for ( ; i < nel; i++ ) { stream.writeFloat( PAD ); } } | 48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/a2bd853facdfaec7cf3fbd236b5497b584254ed7/FitsTableSerializer.java/buggy/fits/src/main/uk/ac/starlink/fits/FitsTableSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
918,
26727,
12,
1910,
1447,
1407,
16,
1033,
460,
262,
13491,
1216,
1860,
288,
10792,
509,
277,
273,
374,
31,
10792,
309,
261,
460,
480,
446,
262,
288,
13491,
1431,
8526,
284,
4524,
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,
1171,
918,
26727,
12,
1910,
1447,
1407,
16,
1033,
460,
262,
13491,
1216,
1860,
288,
10792,
509,
277,
273,
374,
31,
10792,
309,
261,
460,
480,
446,
262,
288,
13491,
1431,
8526,
284,
4524,
273,
... |
Iterator iter = super.boundComponents.iterator(); while (iter.hasNext()) { Object oi = iter.next(); if (!(oi instanceof BoundComponent)) { continue; } BoundComponent bc = (BoundComponent)oi; Binder b = bc.getBinder(); if (!(b instanceof AgentBinder)) { continue; } MessageAddress id = ((AgentBinder) b).getAgentIdentifier(); if (agentId.equals(id)) { iter.remove(); return; | synchronized (boundComponents) { Iterator iter = super.boundComponents.iterator(); while (iter.hasNext()) { Object oi = iter.next(); if (!(oi instanceof BoundComponent)) { continue; } BoundComponent bc = (BoundComponent)oi; Binder b = bc.getBinder(); if (!(b instanceof AgentBinder)) { continue; } MessageAddress id = ((AgentBinder) b).getAgentIdentifier(); if (agentId.equals(id)) { iter.remove(); return; } | public void removeAgent(MessageAddress agentId) { // FIXME cleanup this code // // find the agent in the set of children Iterator iter = super.boundComponents.iterator(); while (iter.hasNext()) { Object oi = iter.next(); if (!(oi instanceof BoundComponent)) { continue; } BoundComponent bc = (BoundComponent)oi; Binder b = bc.getBinder(); if (!(b instanceof AgentBinder)) { continue; } MessageAddress id = ((AgentBinder) b).getAgentIdentifier(); if (agentId.equals(id)) { // remove the agent iter.remove(); return; } } // no such agent throw new RuntimeException( "Agent "+agentId+" is not loaded"); } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/096d01b942332fef9e2d61831db2aada2b8d9b85/AgentManager.java/buggy/core/src/org/cougaar/core/agent/AgentManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
3630,
12,
1079,
1887,
4040,
548,
13,
288,
565,
368,
9852,
6686,
333,
981,
565,
368,
565,
368,
1104,
326,
4040,
316,
326,
444,
434,
2325,
565,
4498,
1400,
273,
2240,
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,
1206,
3630,
12,
1079,
1887,
4040,
548,
13,
288,
565,
368,
9852,
6686,
333,
981,
565,
368,
565,
368,
1104,
326,
4040,
316,
326,
444,
434,
2325,
565,
4498,
1400,
273,
2240,
18,... |
if (Thread.interrupted()) throw new InterruptedException(); | if (Thread.interrupted()) { throw new InterruptedException(); } | public synchronized boolean acquire(long delay) throws InterruptedException { if (Thread.interrupted()) throw new InterruptedException(); long start = System.currentTimeMillis(); long timeLeft = delay; while (true) { if (notifications > 0) { notifications--; return true; } if (timeLeft <= 0) return false; wait(timeLeft); timeLeft = start + delay - System.currentTimeMillis(); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/Semaphore.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Semaphore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
10533,
12,
5748,
4624,
13,
1216,
7558,
288,
3639,
309,
261,
3830,
18,
474,
5954,
10756,
5411,
604,
394,
7558,
5621,
3639,
1525,
787,
273,
2332,
18,
2972,
28512,
5621,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
10533,
12,
5748,
4624,
13,
1216,
7558,
288,
3639,
309,
261,
3830,
18,
474,
5954,
10756,
5411,
604,
394,
7558,
5621,
3639,
1525,
787,
273,
2332,
18,
2972,
28512,
5621,
36... |
Collection vars = getUserVariables().values(); Iterator iter = vars.iterator(); | IBuildEnvironmentVariable variables[] = getUserVariables(); | private void updateUserVariables(){ if(fEditableTable == null || fContext == fInexistentContext) return; // fEditableList.selectFirstElement();// handleSelectionChanged(fEditableList); if(fUserSupplier != null) { Collection vars = getUserVariables().values(); Iterator iter = vars.iterator(); List list = new ArrayList(vars.size()); while(iter.hasNext()){ IBuildEnvironmentVariable userVar = (IBuildEnvironmentVariable)iter.next(); if(userVar != null){ IBuildEnvironmentVariable sysVar = getSystemVariable(userVar.getName(),true); IBuildEnvironmentVariable var = EnvVarOperationProcessor.performOperation(sysVar,userVar); if(var != null) list.add(var); } } fEditableTable.setInput(list.toArray(new IBuildEnvironmentVariable[list.size()])); } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ca2e8c288e0d3b7b382d3418afbe110662fcfed4/EnvironmentBlock.java/clean/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/EnvironmentBlock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
28213,
6158,
1435,
95,
202,
202,
430,
12,
74,
15470,
1388,
422,
446,
747,
284,
1042,
422,
284,
382,
19041,
1042,
13,
1082,
202,
2463,
31,
202,
202,
759,
202,
202,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28213,
6158,
1435,
95,
202,
202,
430,
12,
74,
15470,
1388,
422,
446,
747,
284,
1042,
422,
284,
382,
19041,
1042,
13,
1082,
202,
2463,
31,
202,
202,
759,
202,
202,
74,
... |
sym = namespaceResolve(name, function); | sym = parser.namespaceResolve(name, function); | protected Expression walkReferenceExp (ReferenceExp exp) { if (exp.getBinding() == null) { Object symbol = exp.getSymbol(); boolean function = exp.isProcedureName(); Declaration decl = lookup.lookup(symbol, function); Symbol sym; if (decl != null) ; else if (symbol instanceof Symbol && "".equals((sym = (Symbol) symbol).getNamespaceURI())) { // kludge - use xxx_BUILTIN mechanism? FIXME String name = sym.getLocalName(); Expression f; if ("request".equals(name)) f = XQParser.makeFunctionExp("gnu.kawa.servlet.GetRequest", "getRequest"); else if ("response".equals(name)) f = XQParser.makeFunctionExp("gnu.kawa.servlet.GetResponse", "getResponse"); else f = null; if (f != null) return new ApplyExp(f, Expression.noExpressions); } else if (symbol instanceof Symbol) { // Never happens, I believe. decl = flookup((Symbol) symbol); } else // if (symbol instanceof String) { String name = (String) symbol; if (function && name.indexOf(':') < 0) { for (int i = 0; i < functionNamespacePath.length; i++) { sym = functionNamespacePath[i].lookup(name); if (sym != null) { decl = lookup.lookup(sym, function); if (decl != null) break; if (! function) continue; decl = flookup(sym); if (decl != null) break; } } } else { sym = namespaceResolve(name, function); if (sym != null) { decl = lookup.lookup(sym, function); if (decl == null && function) { String uri = sym.getNamespaceURI(); if (XQuery.SCHEMA_NAMESPACE.equals(uri)) { Type type = XQuery.getStandardType(sym.getName()); if (type != null) return QuoteExp.getInstance(type); } if (uri != null && uri.length() > 6 && uri.startsWith("class:")) { ClassType ctype = ClassType.make(uri.substring(6)); return GetNamedPart.makeExp(ctype, sym.getName()); } decl = flookup(sym); } } } } if (decl != null) exp.setBinding(decl); else if (function) error('e', "unknown function "+symbol); else messages.error('e',"unknown variable $"+symbol, "XPST0008"); } return exp; } | 40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/0f1602a2dbf1bf6c7cfe86716d33f4e7330a9e0c/XQResolveNames.java/clean/gnu/xquery/lang/XQResolveNames.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
5371,
5442,
2404,
2966,
261,
2404,
2966,
1329,
13,
225,
288,
565,
309,
261,
2749,
18,
588,
5250,
1435,
422,
446,
13,
1377,
288,
202,
921,
3273,
273,
1329,
18,
588,
5335,
5621,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5371,
5442,
2404,
2966,
261,
2404,
2966,
1329,
13,
225,
288,
565,
309,
261,
2749,
18,
588,
5250,
1435,
422,
446,
13,
1377,
288,
202,
921,
3273,
273,
1329,
18,
588,
5335,
5621,
363... |
super(); parentMgr = mgr; } | super(); parentMgr = mgr; } | public SubContributionManager(IContributionManager mgr) { super(); parentMgr = mgr;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5ddde0e384bac44f41aeb754525f7bdab6a04e11/SubContributionManager.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/action/SubContributionManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2592,
442,
4027,
1318,
12,
45,
442,
4027,
1318,
13333,
13,
288,
202,
9565,
5621,
202,
2938,
9455,
273,
13333,
31,
97,
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,
1071,
2592,
442,
4027,
1318,
12,
45,
442,
4027,
1318,
13333,
13,
288,
202,
9565,
5621,
202,
2938,
9455,
273,
13333,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
" (file (name \"sexp/SEList.java\")))"; | " (file (name \"src/sexp/SEList.java\")))"; File f = new File(parent, "test1.pjt"); | public void testParseProject() throws IOException, MalformedProjectFileException, java.text.ParseException { String proj1 = ";; DrJava project file. Written with build: 20040623-1933\n" + "(source ;; comment\n" + " (file (name \"sexp/Atom.java\")(select 32 32)(mod-date \"16-Jul-2004 03:45:23\"))\n" + " (file (name \"sexp/BoolAtom.java\")(select 0 0)(mod-date \"16-Jul-2004 03:45:23\"))\n" + " (file (name \"sexp/Cons.java\")(select 0 0)(mod-date \"16-Jul-2004 03:45:23\"))\n" + " (file (name \"sexp/Empty.java\")(select 24 28)(mod-date \"16-Jul-2004 03:45:23\")(active))\n" + " (file (name \"sexp/Lexer.java\")(select 0 0)(mod-date \"16-Jul-2004 03:45:23\"))\n" + " (file (name \"sexp/NumberAtom.java\")(select 12 12)(mod-date \"16-Jul-2004 03:45:23\"))\n" + " (file (name \"sexp/SEList.java\")(select 0 0)))\n" + // doesn't have mod date "(auxiliary ;; absolute file names\n" + " (file (name "+convertToLiteral(new File(absp,"junk/sexp/Tokens.java").getCanonicalPath()) +")(select 32 32)(mod-date \"16-Jul-2004 03:45:23\"))\n" + " (file (name "+convertToLiteral(new File(absp,"jdk1.5.0/JScrollPane.java").getCanonicalPath()) +")(select 9086 8516)(mod-date \"16-Jul-2004 03:45:23\")))\n" + "(collapsed ;; relative paths\n" + " (path \"./[ Source Files ]/sexp/\")\n" + " (path \"./[ External ]/\"))\n" + "(build-dir ;; absolute path\n" + " (file (name "+convertToLiteral(new File(absp,"drjava/built").getCanonicalPath()) + ")))\n" + "(work-dir ;; absolute path\n" + " (file (name "+convertToLiteral(new File(absp,"drjava/src").getCanonicalPath()) + ")))\n" + "(classpaths\n" + " (file (name "+convertToLiteral(new File(absp,"drjava/src/edu/rice/cs/lib").getCanonicalPath()) + ")))\n" + "(main-class\n" + " (file (name \"sexp/SEList.java\")))"; File f = _fillTempFile("test1.pjt", proj1); ProjectFileIR pfir = ProjectFileParser.ONLY.parse(f); assertEquals("number of source files", 7, pfir.getSourceFiles().length); assertEquals("number of aux files", 2, pfir.getAuxiliaryFiles().length); assertEquals("number of collapsed", 2, pfir.getCollapsedPaths().length); assertEquals("number of classpaths", 1, pfir.getClassPaths().length); String base = f.getParent(); assertEquals("first source filename", new File(base,"/sexp/Atom.java").getPath(), pfir.getSourceFiles()[0].getPath()); assertEquals("mod-date value", new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss").parse("16-Jul-2004 03:45:23").getTime(), pfir.getSourceFiles()[0].getSavedModDate()); assertEquals("last source filename", new File(base,"/sexp/SEList.java").getPath(), pfir.getSourceFiles()[6].getPath()); assertEquals("first aux filename", new File(absp,"junk/sexp/Tokens.java").getPath(), pfir.getAuxiliaryFiles()[0].getCanonicalPath()); assertEquals("last collapsed path", "./[ External ]/", pfir.getCollapsedPaths()[1]); assertEquals("build-dir name", new File(absp,"drjava/built").getPath(), pfir.getBuildDirectory().getCanonicalPath()); assertEquals("work-dir name", new File(absp,"drjava/src").getPath(), pfir.getWorkingDirectory().getCanonicalPath()); assertEquals("classpath name", new File(absp,"drjava/src/edu/rice/cs/lib").getPath(), pfir.getClassPaths()[0].getCanonicalPath()); assertEquals("main-class name", new File(base,"/sexp/SEList.java").getCanonicalPath(), pfir.getMainClass().getCanonicalPath()); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/4e9024f79382344df7a15499ea8826062a420a5f/ProjectTest.java/clean/drjava/src/edu/rice/cs/drjava/project/ProjectTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
3201,
4109,
1435,
1216,
1860,
16,
13311,
4109,
812,
503,
16,
2252,
18,
955,
18,
13047,
288,
565,
514,
10296,
21,
273,
1377,
13636,
31,
11473,
5852,
1984,
585,
18,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3201,
4109,
1435,
1216,
1860,
16,
13311,
4109,
812,
503,
16,
2252,
18,
955,
18,
13047,
288,
565,
514,
10296,
21,
273,
1377,
13636,
31,
11473,
5852,
1984,
585,
18,
225,
... |
getReference(view), CHANGE_VIEW_SHOW); | partReference, CHANGE_VIEW_SHOW); | private IViewPart busyShowView(String viewID, String secondaryID, int mode) throws PartInitException { Perspective persp = getActivePerspective(); if (persp == null) return null; // If this view is already visible just return. IViewReference ref = persp.findView(viewID, secondaryID); IViewPart view = null; if (ref != null) view = ref.getView(true); if (view != null) { busyShowView(view, mode); return view; } // Show the view. view = persp.showView(viewID, secondaryID); if (view != null) { busyShowView(view, mode); window.firePerspectiveChanged(this, getPerspective(), getReference(view), CHANGE_VIEW_SHOW); window.firePerspectiveChanged(this, getPerspective(), CHANGE_VIEW_SHOW); } return view; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ddff2b1cc29fc7991d52f4f0815fff69ec395d73/WorkbenchPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
1767,
1988,
21697,
5706,
1767,
12,
780,
1476,
734,
16,
514,
9946,
734,
16,
509,
1965,
13,
5411,
1216,
6393,
2570,
503,
288,
3639,
453,
414,
16772,
13508,
84,
273,
11960,
14781,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
1767,
1988,
21697,
5706,
1767,
12,
780,
1476,
734,
16,
514,
9946,
734,
16,
509,
1965,
13,
5411,
1216,
6393,
2570,
503,
288,
3639,
453,
414,
16772,
13508,
84,
273,
11960,
14781,... |
private void updateRuleWithErrors(GrammarSyntaxRule rule, List errors) { | private void updateRuleWithErrors(GrammarSyntaxRule rule, List errors) throws Exception { | private void updateRuleWithErrors(GrammarSyntaxRule rule, List errors) { rule.setErrors(errors); visual.drawing.createGraphsForRule(rule); } | 51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/95ba6ba72773f8ce77a463ceeadb53dafdcad590/VisualAnalysis.java/buggy/src/org/antlr/works/visualization/VisualAnalysis.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
2175,
1190,
4229,
12,
18576,
8070,
2175,
1720,
16,
987,
1334,
13,
1216,
1185,
288,
3639,
1720,
18,
542,
4229,
12,
4324,
1769,
3639,
11623,
18,
9446,
310,
18,
2640,
4137,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
2175,
1190,
4229,
12,
18576,
8070,
2175,
1720,
16,
987,
1334,
13,
1216,
1185,
288,
3639,
1720,
18,
542,
4229,
12,
4324,
1769,
3639,
11623,
18,
9446,
310,
18,
2640,
4137,
... |
VM_Entrypoints.lockoutProcessorField.offset, | VM_Entrypoints.lockoutProcessorField.getOffset(), | public static void acquireLockoutLock(int value, boolean spinwait) throws VM_PragmaUninterruptible { if (spinwait) { while (true) { int lockoutVal = VM_Magic.prepare(VM_BootRecord.the_boot_record, VM_Entrypoints.lockoutProcessorField.offset); if (lockoutVal == 0) { if (VM_Magic.attempt(VM_BootRecord.the_boot_record, VM_Entrypoints.lockoutProcessorField.offset, 0, value)) break; } } return; } // else - no spinwait: // yield until lockout word is available (0), then attempt to set while (true) { int lockoutVal = VM_Magic.prepare(VM_BootRecord.the_boot_record, VM_Entrypoints.lockoutProcessorField.offset); if (lockoutVal != 0) { if (debug_native) VM_Scheduler.trace("Handshake:acquireLockOutLock", "yielding: lockoutVal =",lockoutVal); VM_Thread.yield(); continue; } else { if (VM_Magic.attempt(VM_BootRecord.the_boot_record, VM_Entrypoints.lockoutProcessorField.offset, 0, value)) break; } } } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/97b94da616ab802317eefbda958ee6d78d8862f4/VM_Handshake.java/buggy/rvm/src/vm/memoryManagers/watson/vmInterface/VM_Handshake.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
10533,
2531,
659,
2531,
12,
474,
460,
16,
1250,
12490,
7048,
13,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
309,
261,
22876,
7048,
13,
288,
1377,
1323,
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,
282,
1071,
760,
918,
10533,
2531,
659,
2531,
12,
474,
460,
16,
1250,
12490,
7048,
13,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
309,
261,
22876,
7048,
13,
288,
1377,
1323,
261,
... |
if (_bufferedReader == null) { getBufferedReader(); | for (int i=0; i < length - 1; i++) { readChar = _in.read(); if (readChar >= 0) { sbv.append( (char)readChar ); if (readChar == '\n' || readChar == '\r') break; } else break; | public Value gzgets(int length) { try { if (_bufferedReader == null) { getBufferedReader(); } StringBuilderValue sbv = new StringBuilderValue(); int readChar; for (int i=0; i < length - 1; i++) { readChar = _bufferedReader.read(); if (readChar >= 0) { sbv.append( (char)readChar ); if ((((char) readChar) == '\n') || (((char) readChar) == '\r')) break; } else break; } if( sbv.length() > 0) return sbv; else return BooleanValue.FALSE; } catch (Exception e) { throw QuercusModuleException.create(e); } } | 3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/f4c54ee663efb4987d9ec046a8499101864c2099/Zlib.java/clean/quercus/src/main/java/com/caucho/quercus/lib/zlib/Zlib.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1445,
14136,
14665,
12,
474,
769,
13,
225,
288,
565,
775,
288,
1377,
309,
261,
67,
26385,
2514,
422,
446,
13,
288,
3639,
336,
17947,
2514,
5621,
1377,
289,
1377,
3225,
620,
2393,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1445,
14136,
14665,
12,
474,
769,
13,
225,
288,
565,
775,
288,
1377,
309,
261,
67,
26385,
2514,
422,
446,
13,
288,
3639,
336,
17947,
2514,
5621,
1377,
289,
1377,
3225,
620,
2393,
... |
if (haveMinimumServerVersion("7.1")) | if (haveMinimumServerVersion("7.3")) { ExecSQL("set autocommit = off; " + getIsolationLevelSQL()); } else if (haveMinimumServerVersion("7.1")) | public void setAutoCommit(boolean autoCommit) throws SQLException { if (this.autoCommit == autoCommit) return ; if (autoCommit) ExecSQL("end"); else { if (haveMinimumServerVersion("7.1")) { ExecSQL("begin;" + getIsolationLevelSQL()); } else { ExecSQL("begin"); ExecSQL(getIsolationLevelSQL()); } } this.autoCommit = autoCommit; } | 52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/c3e7b3cc96ea1f84be7a402942a0572428d6ef25/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
21780,
5580,
12,
6494,
3656,
5580,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2211,
18,
6079,
5580,
422,
3656,
5580,
13,
1082,
202,
2463,
274,
202,
202,
430,
261,
6079,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21780,
5580,
12,
6494,
3656,
5580,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2211,
18,
6079,
5580,
422,
3656,
5580,
13,
1082,
202,
2463,
274,
202,
202,
430,
261,
6079,... |
public void testCompletionDate() { | public void testCompletionDate() throws Exception { | public void testCompletionDate() { BugzillaTask task = new BugzillaTask("handle", "description", true); RepositoryTaskData report = new RepositoryTaskData(new BugzillaAttributeFactory(), BugzillaPlugin.REPOSITORY_KIND, IBugzillaConstants.ECLIPSE_BUGZILLA_URL, 1); task.setTaskData(report); assertNull(task.getCompletionDate()); Calendar calendar = Calendar.getInstance(); Date now = new Date(calendar.getTimeInMillis()); Comment comment = new Comment(new BugzillaAttributeFactory(), report, 1); RepositoryTaskAttribute attribute = attributeFactory.createAttribute(BugzillaReportElement.BUG_WHEN.getKeyString()); attribute.setValue(Comment.creation_ts_date_format.format(now)); comment.addAttribute(BugzillaReportElement.BUG_WHEN.getKeyString(), attribute); report.addComment(comment); assertNull(task.getCompletionDate()); RepositoryTaskAttribute resolvedAttribute = attributeFactory.createAttribute(BugzillaReportElement.BUG_STATUS.getKeyString()); resolvedAttribute.setValue(RepositoryTaskData.VAL_STATUS_RESOLVED); report.addAttribute(BugzillaReportElement.BUG_STATUS.getKeyString(), resolvedAttribute); assertNotNull(task.getCompletionDate()); assertEquals(Comment.creation_ts_date_format.format(now), Comment.creation_ts_date_format.format(task .getCompletionDate())); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/0292c653990aec2709b85670f390ed0a0a1283ee/BugzillaTaskTest.java/buggy/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/BugzillaTaskTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11238,
1626,
1435,
288,
202,
202,
19865,
15990,
2174,
1562,
273,
394,
16907,
15990,
2174,
2932,
4110,
3113,
315,
3384,
3113,
638,
1769,
202,
202,
3305,
2174,
751,
2605,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11238,
1626,
1435,
288,
202,
202,
19865,
15990,
2174,
1562,
273,
394,
16907,
15990,
2174,
2932,
4110,
3113,
315,
3384,
3113,
638,
1769,
202,
202,
3305,
2174,
751,
2605,... |
AST tmp2066_AST_in = (AST)_t; | AST tmp2069_AST_in = (AST)_t; | public final void display_item(AST _t) throws RecognitionException { AST display_item_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1297 = _t; AST tmp2065_AST_in = (AST)_t; match(_t,Form_item); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SKIP: { skipphrase(_t); _t = _retTree; break; } case SPACE: { spacephrase(_t); _t = _retTree; break; } default: if (_t==null) _t=ASTNULL; if ((_tokenSet_35.member(_t.getType()))) { { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==ID)) { AST tmp2066_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); } else { throw new NoViableAltException(_t); } } { _loop1301: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Aggregate_phrase: { aggregatephrase(_t); _t = _retTree; break; } case Format_phrase: { formatphrase(_t); _t = _retTree; break; } default: { break _loop1301; } } } while (true); } } else { throw new NoViableAltException(_t); } } } _t = __t1297; _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,
2562,
67,
1726,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2562,
67,
1726,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2562,
67,
1726,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2562,
67,
1726,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
... |
boolean hasPermission = primDoesPrincipalHavePermission(principal, owner, activity, target); if ( ! hasPermission ) | IPermission[] perms = primGetPermissionsForPrincipal(principal, owner, activity, target); if ( perms.length == 1 ) { return permissionIsGranted(perms[0]); } if ( perms.length > 1 ) { throw new AuthorizationException("Duplicate permissions for: " + perms[0]); } boolean hasPermission = false; try | public boolean doesPrincipalHavePermission( IAuthorizationPrincipal principal, String owner, String activity, String target)throws AuthorizationException{ boolean hasPermission = primDoesPrincipalHavePermission(principal, owner, activity, target); if ( ! hasPermission ) { try { Iterator i = getGroupsForPrincipal(principal); while ( i.hasNext() && ! hasPermission ) { IAuthorizationPrincipal prn = getPrincipalForGroup( (IEntityGroup) i.next() ); hasPermission = primDoesPrincipalHavePermission(prn, owner, activity, target); } } catch ( GroupsException ge ) { throw new AuthorizationException(ge.getMessage()); } } return hasPermission;} | 24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/134aa52ea1c087b089790a1c2f7b7b6f488d1606/AuthorizationImpl.java/clean/source/org/jasig/portal/security/provider/AuthorizationImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1250,
1552,
9155,
17944,
5041,
12,
565,
467,
6063,
9155,
8897,
16,
565,
514,
3410,
16,
565,
514,
5728,
16,
565,
514,
1018,
13,
15069,
10234,
503,
95,
565,
1250,
26097,
273,
15610,
10154,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
1552,
9155,
17944,
5041,
12,
565,
467,
6063,
9155,
8897,
16,
565,
514,
3410,
16,
565,
514,
5728,
16,
565,
514,
1018,
13,
15069,
10234,
503,
95,
565,
1250,
26097,
273,
15610,
10154,... |
vPhaseReport.addElement(r); | addReport(r); | private void resolveClearMinefieldAttempts(Vector clearAttempts) { for (int i = 0; i < clearAttempts.size(); i++) { Vector temp = new Vector(); Entity e = (Entity) clearAttempts.elementAt(i); Coords pos = e.getPosition(); temp.addElement(e); for (int j = i + 1; j < clearAttempts.size(); j++) { Entity ent = (Entity) clearAttempts.elementAt(j); if (ent.getPosition().equals(pos)) { temp.addElement(ent); clearAttempts.removeElement(ent); } } boolean accident = false; boolean cleared = false; for (int j = 0; j < temp.size(); j++) { Entity ent = (Entity) temp.elementAt(j); int roll = Compute.d6(2); int clear = Minefield.CLEAR_NUMBER_INFANTRY; int boom = Minefield.CLEAR_NUMBER_INFANTRY_ACCIDENT; // Does the entity has a minesweeper? Enumeration equip = ent.getMisc(); while ( equip.hasMoreElements() ) { Mounted mounted = (Mounted) equip.nextElement(); if ( mounted.getType().hasFlag(MiscType.F_TOOLS) && mounted.getType().hasSubType(MiscType.S_MINESWEEPER) ) { int sweeperType = mounted.getType().getToHitModifier(); clear = Minefield.CLEAR_NUMBER_SWEEPER[sweeperType]; boom = Minefield.CLEAR_NUMBER_SWEEPER_ACCIDENT[sweeperType]; break; } } //mine clearing roll Report r = new Report(2245); r.subject = ent.getId(); r.add(ent.getShortName(), true); r.add(pos.getBoardNum(), true); r.add(clear); r.add(roll); r.newlines = 0; vPhaseReport.addElement(r); if (roll >= clear) { //success r = new Report(2250); r.subject = ent.getId(); vPhaseReport.addElement(r); cleared = true; } else if (roll <= boom) { //"click"...oops! r = new Report(2255); r.subject = ent.getId(); vPhaseReport.addElement(r); accident = true; } else { //failure r = new Report(2260); r.subject = ent.getId(); vPhaseReport.addElement(r); } } if (accident) { Enumeration minefields = game.getMinefields(pos).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); switch (mf.getType()) { case (Minefield.TYPE_CONVENTIONAL) : case (Minefield.TYPE_THUNDER) : for (int j = 0; j < temp.size(); j++) { Entity entity = (Entity) temp.elementAt(j); Report r = new Report(2265); r.subject = entity.getId(); r.add(entity.getShortName(), true); vPhaseReport.addElement(r); HitData hit = entity.rollHitLocation(Minefield.TO_HIT_TABLE, Minefield.TO_HIT_SIDE); vPhaseReport.addAll( damageEntity(entity, hit, mf.getDamage())); Report.addNewline(vPhaseReport); } break; case (Minefield.TYPE_VIBRABOMB) : explodeVibrabomb(mf); break; } } } if (cleared) { removeMinefieldsFrom(pos); } } } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/0259d527ea17f9b6ac49ee6eb9adc9e0d12e163f/Server.java/clean/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
9094,
49,
558,
1518,
10113,
12,
5018,
2424,
10113,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2424,
10113,
18,
1467,
5621,
277,
27245,
288,
5411,
5589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2245,
9094,
49,
558,
1518,
10113,
12,
5018,
2424,
10113,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2424,
10113,
18,
1467,
5621,
277,
27245,
288,
5411,
5589,
... |
{ TextPart body = msg.getBody(Lang.DEFAULT); if (body != null) { Element se = me.addElement("body"); se.setText(body.getHtmlText()); } } curOffset++; | public Element handle(Element request, Map context) throws ServiceException, SoapFaultException { ZimbraContext lc = getZimbraContext(context); Mailbox mbox = super.getRequestedMailbox(lc); Element response = lc.createElement(MailService.IM_GET_CHAT_RESPONSE); String threadId = request.getAttribute("thread"); IMPersona persona = mbox.getIMPersona(); IMChat chat = persona.lookupChatOrNull(threadId); if (chat == null) throw ServiceException.FAILURE("Unknown thread: "+threadId, null); // chat Element ce = response.addElement("chat"); ce.addAttribute("thread", chat.getThreadId()); // participants { Element e = ce.addElement("pcps"); for (Participant part : chat.participants()) { Element pe = e.addElement("p"); pe.addAttribute("addr", part.getAddress()); } } // messages { Element messages = ce.addElement("messages"); int curOffset = 0; for (IMMessage msg : chat.messages()) { Element me = messages.addElement("message"); me.addAttribute("seq", curOffset+chat.getFirstSeqNo()); // subject { TextPart subj = msg.getSubject(Lang.DEFAULT); if (subj != null) { Element se = me.addElement("subject"); se.setText(subj.getHtmlText()); } } // body { TextPart body = msg.getBody(Lang.DEFAULT); if (body != null) { Element se = me.addElement("body"); se.setText(body.getHtmlText()); } } curOffset++; } } response.addAttribute("thread", threadId); return response; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/2c2559bbf5c74935e39496442527a07ce85beb40/IMGetChat.java/clean/ZimbraServer/src/java/com/zimbra/cs/service/mail/IMGetChat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3010,
1640,
12,
1046,
590,
16,
1635,
819,
13,
1216,
16489,
16,
21789,
7083,
503,
377,
288,
3639,
2285,
381,
15397,
1042,
9109,
273,
23448,
381,
15397,
1042,
12,
2472,
1769,
3639,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3010,
1640,
12,
1046,
590,
16,
1635,
819,
13,
1216,
16489,
16,
21789,
7083,
503,
377,
288,
3639,
2285,
381,
15397,
1042,
9109,
273,
23448,
381,
15397,
1042,
12,
2472,
1769,
3639,
11... | |
public void service(Socket socket) throws IOException{ InputStream in = socket.getInputStream(); OutputStream out = socket.getOutputStream(); | public void service(Socket socket) throws IOException { InputStream in = null; OutputStream out = null; | public void service(Socket socket) throws IOException{ InputStream in = socket.getInputStream(); OutputStream out = socket.getOutputStream(); /** * The ObjectInputStream used to receive incoming messages from the client. */ ObjectInputStream ois = null; /** * The ObjectOutputStream used to send outgoing response messages to the client. */ ObjectOutputStream oos = null; try { //TODO: Implement multiple request processing //while ( !stop ) { // Read the request byte requestType = (byte)in.read(); //if (requestType == -1) {continue;} if (requestType == -1) { return; } ois = new ObjectInputStream( in ); oos = new ObjectOutputStream( out ); // Process the request switch (requestType) { case EJB_REQUEST: processEjbRequest(ois, oos); break; case JNDI_REQUEST: processJndiRequest(ois, oos);break; case AUTH_REQUEST: processAuthRequest(ois, oos);break; default: logger.error("Unknown request type "+requestType); } try { if ( oos != null ) { oos.flush(); } } catch ( Throwable t ) { logger.error("Encountered problem while communicating with client: "+t.getMessage()); } //} // Exceptions should not be thrown from these methods // They should handle their own exceptions and clean // things up with the client accordingly. } catch ( SecurityException e ) { logger.error( "Security error: "+ e.getMessage() ); } catch ( Throwable e ) { logger.error( "Unexpected error", e ); //System.out.println("ERROR: "+clienntIP.getHostAddress()+": " +e.getMessage()); } finally { try { if ( oos != null ) { oos.flush(); oos.close(); } if ( ois != null ) ois.close(); if ( in != null ) in.close(); if ( socket != null ) socket.close(); } catch ( Throwable t ) { logger.error("Encountered problem while closing connection with client: "+t.getMessage()); } } } | 47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/5e78f771b8abd956a7bea6f545806c247dd55cd4/EjbDaemon.java/buggy/openejb2/modules/core/src/java/org/openejb/server/ejbd/EjbDaemon.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1156,
12,
4534,
2987,
13,
1216,
1860,
95,
3639,
5037,
225,
316,
225,
273,
2987,
18,
588,
4348,
5621,
3639,
8962,
596,
273,
2987,
18,
588,
4632,
5621,
3639,
1783,
540,
380,
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,
377,
1071,
918,
1156,
12,
4534,
2987,
13,
1216,
1860,
95,
3639,
5037,
225,
316,
225,
273,
2987,
18,
588,
4348,
5621,
3639,
8962,
596,
273,
2987,
18,
588,
4632,
5621,
3639,
1783,
540,
380,
10... |
File f = new File("samples/biblio.rdf"); | String existHome = System.getProperty("exist.home"); File existDir = existHome==null ? new File(".") : new File(existHome); File f = new File(existDir,"samples/biblio.rdf"); | public void testStore() { BrokerPool.FORCE_CORRUPTION = true; DBBroker broker = null; try { assertNotNull(pool); broker = pool.get(SecurityManager.SYSTEM_USER); assertNotNull(broker); TransactionManager transact = pool.getTransactionManager(); assertNotNull(transact); Txn transaction = transact.beginTransaction(); assertNotNull(transaction); System.out.println("Transaction started ..."); Collection test = broker.getOrCreateCollection(transaction, TestConstants.TEST_COLLECTION_URI); assertNotNull(test); broker.saveCollection(transaction, test); Collection test2 = broker.getOrCreateCollection(transaction, TestConstants.TEST_COLLECTION_URI2); assertNotNull(test2); broker.saveCollection(transaction, test2); File f = new File("samples/biblio.rdf"); assertNotNull(f); InputSource is = new InputSource(f.toURI().toASCIIString()); assertNotNull(is); IndexInfo info = test.validateXMLResource(transaction, broker, XmldbURI.create("biblio.rdf"), is); assertNotNull(info); test.store(transaction, broker, info, is, false); transact.commit(transaction); System.out.println("Transaction commited ..."); transaction = transact.beginTransaction(); System.out.println("Transaction started ..."); broker.removeCollection(transaction, test); // Don't commit... transact.getJournal().flushToLog(true); System.out.println("Transaction interrupted ..."); } catch (Exception e) { fail(e.getMessage()); } finally { if (pool != null) pool.release(broker); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/93ddf2e91d0262931eda363f4a78734710ff53f8/RemoveCollectionTest.java/clean/src/org/exist/storage/test/RemoveCollectionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2257,
1435,
288,
377,
202,
11194,
2864,
18,
27817,
67,
9428,
19866,
3725,
273,
638,
31,
3639,
2383,
11194,
8625,
273,
446,
31,
3639,
775,
288,
540,
202,
11231,
5962,
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,
377,
1071,
918,
1842,
2257,
1435,
288,
377,
202,
11194,
2864,
18,
27817,
67,
9428,
19866,
3725,
273,
638,
31,
3639,
2383,
11194,
8625,
273,
446,
31,
3639,
775,
288,
540,
202,
11231,
5962,
12,
... |
System.out.println("OpenKOM telnet server is accepting connections at port " + | Logger.info(this, "OpenKOM telnet server is accepting connections at port " + | public void run() { // Before we do anything, make sure we're even able to start // if(!this.sanityChecks()) { System.err.println("FATAL: Cannot start server due to the above errors."); System.exit(1); } ServerSocket s = null; try { s = new ServerSocket(ClientSettings.getTelnetPort()); } catch(IOException e) { // We can't even listen on the socket. Most likely, someone // else is already listening to that port. In any case, we're // out of here! // e.printStackTrace(); return; } System.out.println("OpenKOM telnet server is accepting connections at port " + ClientSettings.getTelnetPort()); for(;;) { try { // Wait for someone to connect // Socket incoming = s.accept(); System.out.println("Incoming connection from " + incoming.getInetAddress().getHostAddress()); try { // Create session // TelnetInputStream eis = new TelnetInputStream(incoming.getInputStream(), incoming.getOutputStream()); ClientSession client = new ClientSession(eis, incoming.getOutputStream()); eis.addSizeListener(client); // Create a thread to handle the session and kick it off! // Also create a SessionReaper that will be woken up when the // session dies to perform post-mortem cleanup. // Thread clientThread = new Thread(client, "Session (not logged in)"); Thread reaper = new SessionReaper(incoming, clientThread, client); reaper.start(); clientThread.start(); } catch(Exception e) { // Couldn't create session. Kill connection! // e.printStackTrace(); incoming.close(); continue; } } catch(IOException e) { // Error accepting. Not good. Try again! // e.printStackTrace(); continue; } } } | 3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/c0f2d60070a4c19bdf2689fda6d7c0950f3223be/TelnetServer.java/buggy/kom/java/nu/rydin/kom/frontend/text/TelnetServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
202,
95,
202,
202,
759,
11672,
732,
741,
6967,
16,
1221,
3071,
732,
4565,
5456,
7752,
358,
787,
202,
202,
759,
202,
202,
430,
12,
5,
2211,
18,
87,
10417,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
202,
95,
202,
202,
759,
11672,
732,
741,
6967,
16,
1221,
3071,
732,
4565,
5456,
7752,
358,
787,
202,
202,
759,
202,
202,
430,
12,
5,
2211,
18,
87,
10417,
40... |
public void addProjectClassPath(URL path){ | public void addProjectClassPath(URL path) { | public void addProjectClassPath(URL path){ _interpreterControl.addProjectClassPath(path); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/35da9b77b7d75aca3d6277e27e3ba3dc86f3eaa9/RMIInteractionsModel.java/clean/drjava/src/edu/rice/cs/drjava/model/repl/RMIInteractionsModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
4109,
22158,
12,
1785,
589,
13,
288,
565,
389,
2761,
11599,
3367,
18,
1289,
4109,
22158,
12,
803,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
4109,
22158,
12,
1785,
589,
13,
288,
565,
389,
2761,
11599,
3367,
18,
1289,
4109,
22158,
12,
803,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public boolean isSet(org.quickfix.field.TradSesReqID field) | public boolean isSet(quickfix.field.TradSesReqID field) | public boolean isSet(org.quickfix.field.TradSesReqID field) { return isSetField(field); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradingSessionStatus.java/buggy/src/java/src/quickfix/fix43/TradingSessionStatus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
1609,
72,
55,
281,
6113,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
1609,
72,
55,
281,
6113,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
} else if (tryEncoding (signature, (byte) 0x3c, (byte) 0x00, (byte) 0x00, (byte) 0x00)) { encoding = ENCODING_UCS_4_4321; | } | private void detectEncoding () throws SAXException, IOException { byte signature[] = new byte [4]; // Read the first four bytes for // autodetection. is.mark (4); is.read (signature); is.reset (); // // FIRST: four byte encodings (who uses these?) // if (tryEncoding (signature, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x3c)) { // UCS-4 must begin with "<?xml" // 0x00 0x00 0x00 0x3c: UCS-4, big-endian (1234) // "UTF-32BE" encoding = ENCODING_UCS_4_1234; } else if (tryEncoding (signature, (byte) 0x3c, (byte) 0x00, (byte) 0x00, (byte) 0x00)) { // 0x3c 0x00 0x00 0x00: UCS-4, little-endian (4321) // "UTF-32LE" encoding = ENCODING_UCS_4_4321; } else if (tryEncoding (signature, (byte) 0x00, (byte) 0x00, (byte) 0x3c, (byte) 0x00)) { // 0x00 0x00 0x3c 0x00: UCS-4, unusual (2143) encoding = ENCODING_UCS_4_2143; } else if (tryEncoding (signature, (byte) 0x00, (byte) 0x3c, (byte) 0x00, (byte) 0x00)) { // 0x00 0x3c 0x00 0x00: UCS-4, unusual (3421) encoding = ENCODING_UCS_4_3412; // 00 00 fe ff UCS_4_1234 (with BOM) // ff fe 00 00 UCS_4_4321 (with BOM) } // // SECOND: two byte encodings // note ... with 1/14/2000 errata the XML spec identifies some // more "broken UTF-16" autodetection cases, with no XML decl, // which we don't handle here (that's legal too). // else if (tryEncoding (signature, (byte) 0xfe, (byte) 0xff)) { // UCS-2 with a byte-order marker. (UTF-16) // 0xfe 0xff: UCS-2, big-endian (12) encoding = ENCODING_UCS_2_12; is.read (); is.read (); } else if (tryEncoding (signature, (byte) 0xff, (byte) 0xfe)) { // UCS-2 with a byte-order marker. (UTF-16) // 0xff 0xfe: UCS-2, little-endian (21) encoding = ENCODING_UCS_2_21; is.read (); is.read (); } else if (tryEncoding (signature, (byte) 0x00, (byte) 0x3c, (byte) 0x00, (byte) 0x3f)) { // UTF-16BE (otherwise, malformed UTF-16) // 0x00 0x3c 0x00 0x3f: UCS-2, big-endian, no byte-order mark encoding = ENCODING_UCS_2_12; error ("no byte-order mark for UCS-2 entity"); } else if (tryEncoding (signature, (byte) 0x3c, (byte) 0x00, (byte) 0x3f, (byte) 0x00)) { // UTF-16LE (otherwise, malformed UTF-16) // 0x3c 0x00 0x3f 0x00: UCS-2, little-endian, no byte-order mark encoding = ENCODING_UCS_2_21; error ("no byte-order mark for UCS-2 entity"); } // // THIRD: ASCII-derived encodings, fixed and variable lengths // else if (tryEncoding (signature, (byte) 0x3c, (byte) 0x3f, (byte) 0x78, (byte) 0x6d)) { // ASCII derived // 0x3c 0x3f 0x78 0x6d: UTF-8 or other 8-bit markup (read ENCODING) encoding = ENCODING_UTF_8; prefetchASCIIEncodingDecl (); } else if (signature [0] == (byte) 0xef && signature [1] == (byte) 0xbb && signature [2] == (byte) 0xbf) { // 0xef 0xbb 0xbf: UTF-8 BOM (not part of document text) // this un-needed notion slipped into XML 2nd ed through a // "non-normative" erratum; now required by MSFT and UDDI, // and E22 made it normative. encoding = ENCODING_UTF_8; is.read (); is.read (); is.read (); } else { // 4c 6f a7 94 ... we don't understand EBCDIC flavors // ... but we COULD at least kick in some fixed code page // (default) UTF-8 without encoding/XML declaration encoding = ENCODING_UTF_8; } } | 1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5966,
4705,
1832,
565,
1216,
14366,
16,
1860,
565,
288,
202,
7229,
3372,
8526,
273,
394,
1160,
306,
24,
15533,
202,
759,
2720,
326,
1122,
12792,
1731,
364,
202,
759,
2059,
369,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5966,
4705,
1832,
565,
1216,
14366,
16,
1860,
565,
288,
202,
7229,
3372,
8526,
273,
394,
1160,
306,
24,
15533,
202,
759,
2720,
326,
1122,
12792,
1731,
364,
202,
759,
2059,
369,... |
classpathDownButtonActionPerformed(evt); } | classpathDownButtonActionPerformed(evt); } | public void actionPerformed(java.awt.event.ActionEvent evt) { classpathDownButtonActionPerformed(evt); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/dd94e0f0954c1e9589257268d889aee9506f807e/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
9506,
202,
26302,
4164,
3616,
19449,
12,
73,
11734,
1769,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
9506,
202,
26302,
4164,
3616,
19449,
12,
73,
11734,
1769,
1082,
202,
97,
2,
-100,
-100,
-100,
-10... |
public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(prototype); out.writeObject(parent); out.writeObject(staticType != null ? staticType.getClass().getName() : null); if (javaObject != null) { Class joClass = javaObject.getClass(); if (joClass.getName().startsWith("adapter")) { out.writeBoolean(true); out.writeObject(joClass.getSuperclass().getName()); Class[] interfaces = joClass.getInterfaces(); String[] interfaceNames = new String[interfaces.length]; for (int i=0; i < interfaces.length; i++) interfaceNames[i] = interfaces[i].getName(); out.writeObject(interfaceNames); try { out.writeObject(joClass.getField("delegee").get(javaObject)); out.writeObject(joClass.getField("self").get(javaObject)); } catch (IllegalAccessException e) { } catch (NoSuchFieldException e) { } } else { out.writeBoolean(false); out.writeObject(javaObject); } } else { out.writeBoolean(false); out.writeObject(null); } } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/4b67d86780b2efa82f4b123d4492273dfec3578d/NativeJavaObject.java/clean/src/org/mozilla/javascript/NativeJavaObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2626,
6841,
12,
921,
1447,
659,
13,
15069,
14106,
95,
659,
18,
2626,
921,
12,
18541,
1769,
659,
18,
2626,
921,
12,
2938,
1769,
659,
18,
2626,
921,
12,
3845,
559,
5,
33,
2011,
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,
1071,
6459,
2626,
6841,
12,
921,
1447,
659,
13,
15069,
14106,
95,
659,
18,
2626,
921,
12,
18541,
1769,
659,
18,
2626,
921,
12,
2938,
1769,
659,
18,
2626,
921,
12,
3845,
559,
5,
33,
2011,
3... | ||
if (!pcHasIt && (anAbility != null)) | if ((anAbility != null)) | private int checkFeatQualify(Ability anAbility) { String aKey = anAbility.getKeyName(); anAbility = pc.getRealFeatKeyed(aKey); final boolean pcHasIt = (anAbility != null); if (pcHasIt && !anAbility.isMultiples()) { return FEAT_DUPLICATE; } if (!pcHasIt) { anAbility = Globals.getAbilityKeyed("FEAT", aKey); if ( anAbility != null && !PrereqHandler.passesAll( anAbility.getPreReqList(), pc, anAbility ) && !Globals.checkRule(RuleConstants.FEATPRE)) { return FEAT_NOT_QUALIFIED; } } if (!pcHasIt && (anAbility != null)) { if (anAbility.getCost(pc) > pc.getFeats()) { return FEAT_FULL_FEAT; } } return FEAT_OK; } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/0c43dd2b0fea324b0901e43662c5f33ad6879768/InfoFeats.java/clean/code/src/java/pcgen/gui/tabs/InfoFeats.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
866,
11667,
5628,
1164,
12,
5895,
1889,
392,
5895,
1889,
13,
202,
95,
202,
202,
780,
279,
653,
273,
392,
5895,
1889,
18,
588,
13987,
5621,
202,
202,
304,
5895,
1889,
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,
1152,
509,
866,
11667,
5628,
1164,
12,
5895,
1889,
392,
5895,
1889,
13,
202,
95,
202,
202,
780,
279,
653,
273,
392,
5895,
1889,
18,
588,
13987,
5621,
202,
202,
304,
5895,
1889,
273... |
bbX = new Vector3f(); bbY = new Vector3f(); } | public Particle(ParticleManager parent, Vector3f speed, Vector3f iLocation, float lifeSpan) { this.lifeSpan = lifeSpan; this.speed = (Vector3f) speed.clone(); this.location = (Vector3f) iLocation.clone(); this.location = new Vector3f(); this.parent = parent; startColor = (ColorRGBA) parent.getStartColor().clone(); currColor = new ColorRGBA(startColor); currentAge = 0; status = AVAILABLE; currentSize = parent.getStartSize(); verts = new Vector3f[4]; for (int i = 0; i < 4; i++) { verts[i] = new Vector3f(); } bbX = new Vector3f(); bbY = new Vector3f(); } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/6aaba14bb39fd6af9aea6f599180d9ac7dbd923d/Particle.java/clean/src/com/jmex/effects/Particle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6393,
3711,
12,
1988,
3711,
1318,
982,
16,
5589,
23,
74,
8632,
16,
5397,
5589,
23,
74,
277,
2735,
16,
1431,
17140,
6952,
13,
288,
565,
333,
18,
10256,
73,
6952,
273,
17140,
6952,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6393,
3711,
12,
1988,
3711,
1318,
982,
16,
5589,
23,
74,
8632,
16,
5397,
5589,
23,
74,
277,
2735,
16,
1431,
17140,
6952,
13,
288,
565,
333,
18,
10256,
73,
6952,
273,
17140,
6952,
... | |
private void generate_internal(SModelDescriptor sourceModelDescr, String generatorClassFQName, SModelDescriptor templatesModelDescr, String outputPath, ProgressMonitor monitor, boolean generateText) { IModelGenerator generator; | private void generate_internal(final SModelDescriptor sourceModelDescr, String generatorClassFQName, SModelDescriptor templatesModelDescr, String outputPath, final ProgressMonitor monitor, boolean generateText) { final IModelGenerator generator; | private void generate_internal(SModelDescriptor sourceModelDescr, String generatorClassFQName, SModelDescriptor templatesModelDescr, String outputPath, ProgressMonitor monitor, boolean generateText) { IModelGenerator generator; try { Class cls = Class.forName(generatorClassFQName, true, ClassLoaderManager.getInstance().getClassLoader()); if (ITemplateGenerator.class.isAssignableFrom(cls)) { generator = (ITemplateGenerator) cls.getConstructor(OperationContext.class, ProgressMonitor.class).newInstance(myOperationContext, monitor); } else { generator = (IModelGenerator) cls.getConstructor(OperationContext.class).newInstance(myOperationContext); } } catch (Exception e) { LOG.error("Exception", e); return; } if (generator == null) { return; } try { SModel targetModel; if (generator instanceof ITemplateGenerator) { GenerateWithTemplatesCommand command = new GenerateWithTemplatesCommand(sourceModelDescr, templatesModelDescr.getSModel(), mySaveTransientModels, (ITemplateGenerator) generator); targetModel = command.execute(); } else { ProgressMonitor childMonitor = monitor.startSubTask(AMOUNT_PER_MODEL); targetModel = JavaGenUtil.createTargetJavaModel(sourceModelDescr.getSModel(), JavaNameUtil.packageNameForModelUID(sourceModelDescr.getModelUID()), myOperationContext); generator.generate(sourceModelDescr.getSModel(), targetModel, monitor); childMonitor.finish(); } if (targetModel != null) { if (generateText) { generateText(targetModel); } else { generateFile(outputPath, sourceModelDescr.getSModel(), targetModel); } } } catch (Exception e) { monitor.addText("Exception during generation " + e.getMessage()); LOG.error("Errors during generation", e); } } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/e3880e4e682cad24c5d30115f459e7280ecc2ff7/GeneratorManager.java/buggy/source/jetbrains/mps/generator/GeneratorManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2103,
67,
7236,
12,
55,
1488,
3187,
1084,
1488,
16198,
16,
514,
4456,
797,
42,
13688,
16,
348,
1488,
3187,
5539,
1488,
16198,
16,
514,
19566,
16,
10980,
7187,
6438,
16,
1250,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2103,
67,
7236,
12,
55,
1488,
3187,
1084,
1488,
16198,
16,
514,
4456,
797,
42,
13688,
16,
348,
1488,
3187,
5539,
1488,
16198,
16,
514,
19566,
16,
10980,
7187,
6438,
16,
1250,
... |
if (_context.routerHash().equals(instructions.getRouter())) { | if (getContext().routerHash().equals(instructions.getRouter())) { | private void honorInstructions(DeliveryInstructions instructions, I2NPMessage body) { _context.statManager().addRateData("tunnel.endpointMessageSize", _message.getData().length, 0); switch (instructions.getDeliveryMode()) { case DeliveryInstructions.DELIVERY_MODE_LOCAL: sendToLocal(body); break; case DeliveryInstructions.DELIVERY_MODE_ROUTER: if (_context.routerHash().equals(instructions.getRouter())) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Delivery instructions point at a router, but we're that router, so send to local"); sendToLocal(body); } else { if (_log.shouldLog(Log.DEBUG)) _log.debug("Delivery instructions point at a router, and we're not that router, so forward it off"); sendToRouter(instructions.getRouter(), body); } break; case DeliveryInstructions.DELIVERY_MODE_TUNNEL: sendToTunnel(instructions.getRouter(), instructions.getTunnelId(), body); break; case DeliveryInstructions.DELIVERY_MODE_DESTINATION: sendToDest(instructions.getDestination(), body); break; } } | 45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/e737e5c9507ed0d463dc9e45a8f63657f466b177/HandleTunnelMessageJob.java/clean/router/java/src/net/i2p/router/message/HandleTunnelMessageJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
24338,
280,
26712,
12,
8909,
26712,
12509,
16,
467,
22,
23430,
1079,
1417,
13,
288,
3639,
389,
2472,
18,
5642,
1318,
7675,
1289,
4727,
751,
2932,
19878,
18,
8003,
1079,
1225,
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,
918,
24338,
280,
26712,
12,
8909,
26712,
12509,
16,
467,
22,
23430,
1079,
1417,
13,
288,
3639,
389,
2472,
18,
5642,
1318,
7675,
1289,
4727,
751,
2932,
19878,
18,
8003,
1079,
1225,
3... |
RubyVarmap vars = ruby.getInterpreter().getDynamicVars(); | RubyVarmap vars = ruby.getDynamicVars(); | private RubyVarmap dyna_push() { RubyVarmap vars = ruby.getInterpreter().getDynamicVars(); rb_dvar_push(null, null); lvtbl.dlev++; return vars; } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/buggy/org/jruby/parser/parse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
19817,
1537,
1458,
19417,
69,
67,
6206,
1435,
288,
202,
54,
10340,
1537,
1458,
4153,
273,
22155,
18,
588,
30010,
7675,
588,
9791,
5555,
5621,
202,
6731,
67,
72,
1401,
67,
6206,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
19817,
1537,
1458,
19417,
69,
67,
6206,
1435,
288,
202,
54,
10340,
1537,
1458,
4153,
273,
22155,
18,
588,
30010,
7675,
588,
9791,
5555,
5621,
202,
6731,
67,
72,
1401,
67,
6206,
12,
... |
throws IOException { for (int k = 0; k < refSearchPaths.length; k++) { final Ref r = readRefBasic(refSearchPaths[k] + revstr); if (missingOk || r.getObjectId() != null) { return r; } } return null; | throws IOException { for (int k = 0; k < refSearchPaths.length; k++) { final Ref r = readRefBasic(refSearchPaths[k] + revstr); if (missingOk || r.getObjectId() != null) { return r; } } return null; | private Ref readRef(final String revstr, final boolean missingOk) throws IOException { for (int k = 0; k < refSearchPaths.length; k++) { final Ref r = readRefBasic(refSearchPaths[k] + revstr); if (missingOk || r.getObjectId() != null) { return r; } } return null; } | 45532 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45532/a4e486719ce78b8050373e6534dfaf4a1572b269/Repository.java/clean/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3941,
855,
1957,
12,
6385,
514,
5588,
701,
16,
727,
1250,
3315,
8809,
13,
3639,
1216,
1860,
565,
288,
3639,
364,
261,
474,
417,
273,
374,
31,
417,
411,
1278,
2979,
4466,
18,
2469,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3941,
855,
1957,
12,
6385,
514,
5588,
701,
16,
727,
1250,
3315,
8809,
13,
3639,
1216,
1860,
565,
288,
3639,
364,
261,
474,
417,
273,
374,
31,
417,
411,
1278,
2979,
4466,
18,
2469,... |
public boolean isSet(org.quickfix.field.NestedPartyID field) | public boolean isSet(quickfix.field.NestedPartyID field) | public boolean isSet(org.quickfix.field.NestedPartyID field) { return isSetField(field); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderSingle.java/clean/src/java/src/quickfix/fix44/NewOrderSingle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
8649,
17619,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
8649,
17619,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public boolean intersects(Rectangle r) { return width > 0 && height > 0 && r.width > 0 && r.height > 0 && r.x < x + width && r.x + r.width > x && r.y < y + height && r.y + r.height > y; | public boolean intersects(Rectangle r) { return width > 0 && height > 0 && r.width > 0 && r.height > 0 && r.x < x + width && r.x + r.width > x && r.y < y + height && r.y + r.height > y; | public boolean intersects(Rectangle r) { return width > 0 && height > 0 && r.width > 0 && r.height > 0 && r.x < x + width && r.x + r.width > x && r.y < y + height && r.y + r.height > y; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Rectangle.java/buggy/core/src/classpath/java/java/awt/Rectangle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
19791,
12,
19463,
436,
13,
288,
202,
202,
2463,
1835,
405,
374,
597,
2072,
405,
374,
597,
436,
18,
2819,
405,
374,
597,
436,
18,
4210,
405,
374,
597,
436,
18,
92,
411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19791,
12,
19463,
436,
13,
288,
202,
202,
2463,
1835,
405,
374,
597,
2072,
405,
374,
597,
436,
18,
2819,
405,
374,
597,
436,
18,
4210,
405,
374,
597,
436,
18,
92,
411,... |
scfilters.updateDbScore((UTF8)key, result, linked); | scfilters.updateDbScore((UTF8)key, old, result, linked); | public void reduce(WritableComparable key, Iterator values, OutputCollector output, Reporter reporter) throws IOException { CrawlDatum highest = null; CrawlDatum old = null; byte[] signature = null; linked.clear(); while (values.hasNext()) { CrawlDatum datum = (CrawlDatum)values.next(); if (highest == null || datum.getStatus() > highest.getStatus()) { highest = datum; // find highest status } switch (datum.getStatus()) { // find old entry, if any case CrawlDatum.STATUS_DB_UNFETCHED: case CrawlDatum.STATUS_DB_FETCHED: case CrawlDatum.STATUS_DB_GONE: old = datum; break; case CrawlDatum.STATUS_LINKED: linked.add(datum); break; case CrawlDatum.STATUS_SIGNATURE: signature = datum.getSignature(); } } // initialize with the latest version result.set(highest); if (old != null) { // copy metadata from old, if exists if (old.getMetaData().size() > 0) { result.getMetaData().putAll(old.getMetaData()); // overlay with new, if any if (highest.getMetaData().size() > 0) result.getMetaData().putAll(highest.getMetaData()); } // set the most recent valid value of modifiedTime if (old.getModifiedTime() > 0 && highest.getModifiedTime() == 0) { result.setModifiedTime(old.getModifiedTime()); } } switch (highest.getStatus()) { // determine new status case CrawlDatum.STATUS_DB_UNFETCHED: // no new entry case CrawlDatum.STATUS_DB_FETCHED: case CrawlDatum.STATUS_DB_GONE: result.set(old); // use old break; case CrawlDatum.STATUS_LINKED: // highest was link if (old != null) { // if old exists result.set(old); // use it } else { result.setStatus(CrawlDatum.STATUS_DB_UNFETCHED); try { scfilters.initialScore((UTF8)key, result); } catch (ScoringFilterException e) { if (LOG.isWarnEnabled()) { LOG.warn("Cannot filter init score for url " + key + ", using default: " + e.getMessage()); } result.setScore(scoreInjected); } } break; case CrawlDatum.STATUS_FETCH_SUCCESS: // succesful fetch if (highest.getSignature() == null) result.setSignature(signature); result.setStatus(CrawlDatum.STATUS_DB_FETCHED); result.setNextFetchTime(); break; case CrawlDatum.STATUS_SIGNATURE: if (LOG.isWarnEnabled()) { LOG.warn("Lone CrawlDatum.STATUS_SIGNATURE: " + key); } return; case CrawlDatum.STATUS_FETCH_RETRY: // temporary failure if (old != null) result.setSignature(old.getSignature()); // use old signature if (highest.getRetriesSinceFetch() < retryMax) { result.setStatus(CrawlDatum.STATUS_DB_UNFETCHED); } else { result.setStatus(CrawlDatum.STATUS_DB_GONE); } break; case CrawlDatum.STATUS_FETCH_GONE: // permanent failure if (old != null) result.setSignature(old.getSignature()); // use old signature result.setStatus(CrawlDatum.STATUS_DB_GONE); break; default: throw new RuntimeException("Unknown status: " + highest.getStatus() + " " + key); } try { scfilters.updateDbScore((UTF8)key, result, linked); } catch (Exception e) { if (LOG.isWarnEnabled()) { LOG.warn("Couldn't update score, key=" + key + ": " + e); } } output.collect(key, result); } | 50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/d3f42a810fce0afd0a96cb334c31272530e1dc3c/CrawlDbReducer.java/clean/src/java/org/apache/nutch/crawl/CrawlDbReducer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
5459,
12,
12061,
799,
10207,
498,
16,
4498,
924,
16,
5397,
3633,
7134,
876,
16,
25585,
11528,
13,
565,
1216,
1860,
288,
565,
385,
15161,
18268,
9742,
273,
446,
31,
565,
385,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5459,
12,
12061,
799,
10207,
498,
16,
4498,
924,
16,
5397,
3633,
7134,
876,
16,
25585,
11528,
13,
565,
1216,
1860,
288,
565,
385,
15161,
18268,
9742,
273,
446,
31,
565,
385,
... |
children.put("", allSerializedVetoableChangeListeners); | children.put("", allSerializedVetoableChangeListeners); | private void writeObject(ObjectOutputStream oos) throws IOException { List<VetoableChangeListener> allSerializedVetoableChangeListeners = new ArrayList<VetoableChangeListener>(); for (VetoableChangeListener vcl : allVetoableChangeListeners) { if (vcl instanceof Serializable) { allSerializedVetoableChangeListeners.add(vcl); } } Map<String, List<VetoableChangeListener>> selectedSerializedVetoableChangeListeners = new HashMap<String, List<VetoableChangeListener>>(); for (String propertyName : selectedVetoableChangeListeners.keySet()) { List<VetoableChangeListener> keyValues = selectedVetoableChangeListeners .get(propertyName); if (keyValues != null) { List<VetoableChangeListener> serializedVetoableChangeListeners = new ArrayList<VetoableChangeListener>(); for (VetoableChangeListener pcl : keyValues) { if (pcl instanceof Serializable) { serializedVetoableChangeListeners.add(pcl); } } if (!serializedVetoableChangeListeners.isEmpty()) { selectedSerializedVetoableChangeListeners.put(propertyName, serializedVetoableChangeListeners); } } } children = new Hashtable<String, List<VetoableChangeListener>>( selectedSerializedVetoableChangeListeners); children.put("", allSerializedVetoableChangeListeners); oos.writeObject(children); Object source = null; if (sourceBean instanceof Serializable) { source = sourceBean; } oos.writeObject(source); oos.writeInt(vetoableChangeSupportSerializedDataVersion); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/fbebe792ba7d15ca09ee75a1c409e3a37b2da0db/VetoableChangeSupport.java/clean/modules/beans/src/main/java/java/beans/VetoableChangeSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
16306,
12,
921,
4632,
24956,
13,
1216,
1860,
288,
3639,
987,
32,
58,
11453,
429,
15744,
34,
777,
15134,
58,
11453,
429,
3043,
5583,
273,
394,
2407,
32,
58,
11453,
429,
15744,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16306,
12,
921,
4632,
24956,
13,
1216,
1860,
288,
3639,
987,
32,
58,
11453,
429,
15744,
34,
777,
15134,
58,
11453,
429,
3043,
5583,
273,
394,
2407,
32,
58,
11453,
429,
15744,
... |
specRef = descSpecification.getSpecificationReference(); | String[] tmp = descSpecification.getSpecificationReference().split(":"); specRef = tmp[2]; | public String getDictionaryType(String identifier) { Entry[] dictEntries = dictDB.getDictionaryEntry("descriptor-algorithms"); String specRef = null; // see if we got a descriptors java class name for (int i = 0; i < classNames.size(); i++) { String className = (String) classNames.get(i); if (className.equals(identifier)) { Descriptor descriptor = (Descriptor) descriptors.get(i); DescriptorSpecification descSpecification = descriptor.getSpecification(); specRef = descSpecification.getSpecificationReference(); } } // if we are here we have a SpecificationReference if (specRef == null) { String[] tmp = identifier.split(":"); specRef = tmp[2]; } for (int j = 0; j < dictEntries.length; j++) { if (dictEntries[j].getID().equals(specRef.toLowerCase())) { Vector metaData = dictEntries[j].getDescriptorMetadata(); for (Iterator iter = metaData.iterator(); iter.hasNext();) { String metaDataEntry = (String) iter.next(); String[] values = metaDataEntry.split("/"); if (values == null) continue; if (values.length != 2) continue; if (!values[0].startsWith("qsar-descriptors-metadata") || !values[1].startsWith("qsar-descriptors-metadata")) continue; String[] dictRef = values[0].split(":"); String[] content = values[1].split(":"); if (dictRef[1].toLowerCase().equals("descriptortype")) return content[1]; } } } return null; } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/90380ea944ebec04e11a1f3fdf790dfa621c90fd/DescriptorEngine.java/buggy/src/org/openscience/cdk/qsar/DescriptorEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2343,
3192,
559,
12,
780,
2756,
13,
288,
3639,
3841,
8526,
2065,
5400,
273,
2065,
2290,
18,
588,
10905,
1622,
2932,
12628,
17,
287,
13365,
8863,
3639,
514,
857,
1957,
273,
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,
1071,
514,
2343,
3192,
559,
12,
780,
2756,
13,
288,
3639,
3841,
8526,
2065,
5400,
273,
2065,
2290,
18,
588,
10905,
1622,
2932,
12628,
17,
287,
13365,
8863,
3639,
514,
857,
1957,
273,
446,... |
public SymbolTable (Environment previous) | public SymbolTable () | public SymbolTable (Environment previous) { super(previous); } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/d4bd32ac1682e3799b6144168ecd15868479c399/SymbolTable.java/buggy/gnu/commonlisp/lang/SymbolTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8565,
1388,
1832,
225,
288,
565,
2240,
12,
11515,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8565,
1388,
1832,
225,
288,
565,
2240,
12,
11515,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return 1f / (level*level); } | return 1f / (level * level); } | public float getParentPropagationIncrement(int level) {// int d = ; return 1f / (level*level);// return 1f - (float)(1f/Math.sqrt(level+1));// // Math.abs(PARENT_PROPAGATION_STRENGTH// // (level/Math.sqrt(level));// (level*level); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/5a1947640b77adbd67ec1fb599f87f30e92125d0/ScalingFactors.java/buggy/org.eclipse.mylyn.context.core/src/org/eclipse/mylyn/core/model/internal/ScalingFactors.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1431,
5089,
14225,
10798,
12,
474,
1801,
13,
288,
759,
3639,
509,
302,
273,
274,
3639,
327,
404,
74,
342,
261,
2815,
14,
2815,
1769,
759,
3639,
327,
404,
74,
300,
261,
5659,
21433... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1431,
5089,
14225,
10798,
12,
474,
1801,
13,
288,
759,
3639,
509,
302,
273,
274,
3639,
327,
404,
74,
342,
261,
2815,
14,
2815,
1769,
759,
3639,
327,
404,
74,
300,
261,
5659,
21433... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.