rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
RubyArray result = RubyArray.newArray(runtime, methods.length);
RubyArray result = getRuntime().newArray(methods.length);
public RubyArray java_class_methods() { Method[] methods = javaClass.getMethods(); RubyArray result = RubyArray.newArray(runtime, methods.length); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; if (Modifier.isStatic(method.getModifiers())) { result.append(JavaMethod.create(runtime, method)); } } return result; }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaClass.java/clean/src/org/jruby/javasupport/JavaClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 1076, 2252, 67, 1106, 67, 5163, 1435, 288, 3639, 2985, 8526, 2590, 273, 2252, 797, 18, 588, 4712, 5621, 3639, 19817, 1076, 563, 273, 18814, 7675, 2704, 1076, 12, 5163, 18, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 1076, 2252, 67, 1106, 67, 5163, 1435, 288, 3639, 2985, 8526, 2590, 273, 2252, 797, 18, 588, 4712, 5621, 3639, 19817, 1076, 563, 273, 18814, 7675, 2704, 1076, 12, 5163, 18, 24...
private synchronized void removeFromUpdater(IWorkingSet workingSet) { IWorkingSetUpdater updater= (IWorkingSetUpdater)updaters.get(workingSet.getId()); if (updater != null) { updater.remove(workingSet); }
private void removeFromUpdater(IWorkingSet workingSet) { synchronized (updaters) { IWorkingSetUpdater updater = (IWorkingSetUpdater) updaters .get(workingSet.getId()); if (updater != null) { updater.remove(workingSet); } }
private synchronized void removeFromUpdater(IWorkingSet workingSet) { IWorkingSetUpdater updater= (IWorkingSetUpdater)updaters.get(workingSet.getId()); if (updater != null) { updater.remove(workingSet); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/93d69b965098e09a8242c2b86bbbe76c43d9ecb7/AbstractWorkingSetManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/AbstractWorkingSetManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 918, 22386, 15305, 12, 45, 14836, 694, 5960, 694, 13, 288, 377, 202, 45, 14836, 694, 15305, 7760, 33, 261, 45, 14836, 694, 15305, 13, 416, 3404, 414, 18, 588, 12, 20478...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 22386, 15305, 12, 45, 14836, 694, 5960, 694, 13, 288, 377, 202, 45, 14836, 694, 15305, 7760, 33, 261, 45, 14836, 694, 15305, 13, 416, 3404, 414, 18, 588, 12, 20478...
for (String group : groups) {
for(String group : groups) {
synchronized public void removeAfterGroups(Collection<String> groups) { for (String group : groups) {// log("Removing before group " + group); m_afterGroupsMethods.remove(group); } }
47060 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47060/6277313ba72f743074b5132830ccfbab20f1e274/ConfigurationGroupMethods.java/clean/src/main/org/testng/internal/ConfigurationGroupMethods.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3852, 1071, 918, 1206, 4436, 3621, 12, 2532, 32, 780, 34, 3252, 13, 288, 565, 364, 261, 780, 1041, 294, 3252, 13, 288, 759, 1377, 613, 2932, 18939, 1865, 1041, 315, 397, 1041, 1769, 137...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3852, 1071, 918, 1206, 4436, 3621, 12, 2532, 32, 780, 34, 3252, 13, 288, 565, 364, 261, 780, 1041, 294, 3252, 13, 288, 759, 1377, 613, 2932, 18939, 1865, 1041, 315, 397, 1041, 1769, 137...
return extensionContributor; }
return extensionContributor; }
public IEditorActionBarContributor getExtensionContributor() { return extensionContributor; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f1c8b0aa355c00a6c82a289c808984de6778bfca/EditorActionBars.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorActionBars.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 6946, 1803, 5190, 442, 19293, 12374, 442, 19293, 1435, 288, 3639, 327, 2710, 442, 19293, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 6946, 1803, 5190, 442, 19293, 12374, 442, 19293, 1435, 288, 3639, 327, 2710, 442, 19293, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
registerGlobalAction(cleanAction);
register(cleanAction);
private void makeActions(IWorkbenchConfigurer workbenchConfigurer, IActionBarConfigurer actionBarConfigurer) { // The actions in jface do not have menu vs. enable, vs. disable vs. color // There are actions in here being passed the workbench - problem setCurrentActionBarConfigurer(actionBarConfigurer); // @issue should obtain from ConfigurationItemFactory statusLineItem = new StatusLineContributionItem("ModeContributionItem"); //$NON-NLS-1$ newWizardAction = ActionFactory.NEW.create(getWindow()); registerGlobalAction(newWizardAction); newWizardDropDownAction = IDEActionFactory.NEW_WIZARD_DROP_DOWN .create(getWindow()); importResourcesAction = ActionFactory.IMPORT.create(getWindow()); registerGlobalAction(importResourcesAction); exportResourcesAction = ActionFactory.EXPORT.create(getWindow()); registerGlobalAction(exportResourcesAction); buildAllAction = IDEActionFactory.BUILD.create(getWindow()); registerGlobalAction(buildAllAction); cleanAction = IDEActionFactory.BUILD_CLEAN.create(getWindow()); registerGlobalAction(cleanAction); toggleAutoBuildAction = IDEActionFactory.BUILD_AUTOMATICALLY .create(getWindow()); registerGlobalAction(toggleAutoBuildAction); saveAction = ActionFactory.SAVE.create(getWindow()); registerGlobalAction(saveAction); saveAsAction = ActionFactory.SAVE_AS.create(getWindow()); registerGlobalAction(saveAsAction); saveAllAction = ActionFactory.SAVE_ALL.create(getWindow()); registerGlobalAction(saveAllAction); undoAction = ActionFactory.UNDO.create(getWindow()); registerGlobalAction(undoAction); redoAction = ActionFactory.REDO.create(getWindow()); registerGlobalAction(redoAction); cutAction = ActionFactory.CUT.create(getWindow()); registerGlobalAction(cutAction); copyAction = ActionFactory.COPY.create(getWindow()); registerGlobalAction(copyAction); pasteAction = ActionFactory.PASTE.create(getWindow()); registerGlobalAction(pasteAction); printAction = ActionFactory.PRINT.create(getWindow()); registerGlobalAction(printAction); selectAllAction = ActionFactory.SELECT_ALL.create(getWindow()); registerGlobalAction(selectAllAction); findAction = ActionFactory.FIND.create(getWindow()); registerGlobalAction(findAction); closeAction = ActionFactory.CLOSE.create(getWindow()); registerGlobalAction(closeAction); closeAllAction = ActionFactory.CLOSE_ALL.create(getWindow()); registerGlobalAction(closeAllAction); closeAllSavedAction = ActionFactory.CLOSE_ALL_SAVED.create(getWindow()); registerGlobalAction(closeAllSavedAction); helpContentsAction = ActionFactory.HELP_CONTENTS.create(getWindow()); registerGlobalAction(helpContentsAction); aboutAction = ActionFactory.ABOUT.create(getWindow()); aboutAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_OBJS_DEFAULT_PROD)); registerGlobalAction(aboutAction); openPreferencesAction = ActionFactory.PREFERENCES.create(getWindow()); registerGlobalAction(openPreferencesAction); addBookmarkAction = IDEActionFactory.BOOKMARK.create(getWindow()); registerGlobalAction(addBookmarkAction); addTaskAction = IDEActionFactory.ADD_TASK.create(getWindow()); registerGlobalAction(addTaskAction); deleteAction = ActionFactory.DELETE.create(getWindow()); registerGlobalAction(deleteAction); AboutInfo[] infos = IDEWorkbenchPlugin.getDefault().getFeatureInfos(); // See if a welcome page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getWelcomePageURL() != null) { quickStartAction = IDEActionFactory.QUICK_START .create(getWindow()); registerGlobalAction(quickStartAction); break; } } // See if a tips and tricks page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getTipsAndTricksHref() != null) { tipsAndTricksAction = IDEActionFactory.TIPS_AND_TRICKS .create(getWindow()); registerGlobalAction(tipsAndTricksAction); break; } } // Actions for invisible accelerators showViewMenuAction = ActionFactory.SHOW_VIEW_MENU.create(getWindow()); registerGlobalAction(showViewMenuAction); showPartPaneMenuAction = ActionFactory.SHOW_PART_PANE_MENU .create(getWindow()); registerGlobalAction(showPartPaneMenuAction); nextEditorAction = ActionFactory.NEXT_EDITOR.create(getWindow()); prevEditorAction = ActionFactory.PREVIOUS_EDITOR.create(getWindow()); ActionFactory.linkCycleActionPair(nextEditorAction, prevEditorAction); registerGlobalAction(nextEditorAction); registerGlobalAction(prevEditorAction); nextPartAction = ActionFactory.NEXT_PART.create(getWindow()); prevPartAction = ActionFactory.PREVIOUS_PART.create(getWindow()); ActionFactory.linkCycleActionPair(nextPartAction, prevPartAction); registerGlobalAction(nextPartAction); registerGlobalAction(prevPartAction); nextPerspectiveAction = ActionFactory.NEXT_PERSPECTIVE .create(getWindow()); prevPerspectiveAction = ActionFactory.PREVIOUS_PERSPECTIVE .create(getWindow()); ActionFactory.linkCycleActionPair(nextPerspectiveAction, prevPerspectiveAction); registerGlobalAction(nextPerspectiveAction); registerGlobalAction(prevPerspectiveAction); activateEditorAction = ActionFactory.ACTIVATE_EDITOR .create(getWindow()); registerGlobalAction(activateEditorAction); maximizePartAction = ActionFactory.MAXIMIZE.create(getWindow()); registerGlobalAction(maximizePartAction); minimizePartAction = ActionFactory.MINIMIZE.create(getWindow()); registerGlobalAction(minimizePartAction); workbenchEditorsAction = ActionFactory.SHOW_OPEN_EDITORS .create(getWindow()); registerGlobalAction(workbenchEditorsAction); workbookEditorsAction = ActionFactory.SHOW_WORKBOOK_EDITORS .create(getWindow()); registerGlobalAction(workbookEditorsAction); hideShowEditorAction = ActionFactory.SHOW_EDITOR.create(getWindow()); registerGlobalAction(hideShowEditorAction); savePerspectiveAction = ActionFactory.SAVE_PERSPECTIVE .create(getWindow()); registerGlobalAction(savePerspectiveAction); editActionSetAction = ActionFactory.EDIT_ACTION_SETS .create(getWindow()); registerGlobalAction(editActionSetAction); lockToolBarAction = ActionFactory.LOCK_TOOL_BAR.create(getWindow()); registerGlobalAction(lockToolBarAction); resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE .create(getWindow()); registerGlobalAction(resetPerspectiveAction); closePerspAction = ActionFactory.CLOSE_PERSPECTIVE.create(getWindow()); registerGlobalAction(closePerspAction); closeAllPerspsAction = ActionFactory.CLOSE_ALL_PERSPECTIVES .create(getWindow()); registerGlobalAction(closeAllPerspsAction); forwardHistoryAction = ActionFactory.FORWARD_HISTORY .create(getWindow()); registerGlobalAction(forwardHistoryAction); backwardHistoryAction = ActionFactory.BACKWARD_HISTORY .create(getWindow()); registerGlobalAction(backwardHistoryAction); revertAction = ActionFactory.REVERT.create(getWindow()); registerGlobalAction(revertAction); refreshAction = ActionFactory.REFRESH.create(getWindow()); registerGlobalAction(refreshAction); propertiesAction = ActionFactory.PROPERTIES.create(getWindow()); registerGlobalAction(propertiesAction); quitAction = ActionFactory.QUIT.create(getWindow()); registerGlobalAction(quitAction); moveAction = ActionFactory.MOVE.create(getWindow()); registerGlobalAction(moveAction); renameAction = ActionFactory.RENAME.create(getWindow()); registerGlobalAction(renameAction); goIntoAction = ActionFactory.GO_INTO.create(getWindow()); registerGlobalAction(goIntoAction); backAction = ActionFactory.BACK.create(getWindow()); registerGlobalAction(backAction); forwardAction = ActionFactory.FORWARD.create(getWindow()); registerGlobalAction(forwardAction); upAction = ActionFactory.UP.create(getWindow()); registerGlobalAction(upAction); nextAction = ActionFactory.NEXT.create(getWindow()); nextAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_NEXT_NAV)); registerGlobalAction(nextAction); previousAction = ActionFactory.PREVIOUS.create(getWindow()); previousAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_PREVIOUS_NAV)); registerGlobalAction(previousAction); buildProjectAction = IDEActionFactory.BUILD_PROJECT.create(getWindow()); registerGlobalAction(buildProjectAction); openProjectAction = IDEActionFactory.OPEN_PROJECT.create(getWindow()); registerGlobalAction(openProjectAction); closeProjectAction = IDEActionFactory.CLOSE_PROJECT.create(getWindow()); registerGlobalAction(closeProjectAction); openWorkspaceAction = IDEActionFactory.OPEN_WORKSPACE .create(getWindow()); registerGlobalAction(openWorkspaceAction); projectPropertyDialogAction = IDEActionFactory.OPEN_PROJECT_PROPERTIES .create(getWindow()); registerGlobalAction(projectPropertyDialogAction); if (getWindow().getWorkbench().getIntroManager().hasIntro()) { introAction = ActionFactory.INTRO.create(window); registerGlobalAction(introAction); } final String showInQuickMenuId = "org.eclipse.ui.navigate.showInQuickMenu"; //$NON-NLS-1$ showInQuickMenu = new QuickMenuAction(showInQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(ContributionItemFactory.VIEWS_SHOW_IN .create(getWindow())); } }; registerGlobalAction(showInQuickMenu); final String newQuickMenuId = "org.eclipse.ui.file.newQuickMenu"; //$NON-NLS-1$ newQuickMenu = new QuickMenuAction(newQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(new NewWizardMenu(getWindow())); } }; registerGlobalAction(newQuickMenu); pinEditorContributionItem = ContributionItemFactory.PIN_EDITOR .create(getWindow()); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/02a63c83a96f095b44f6c4a9bd0de64e8b842628/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1221, 6100, 12, 45, 2421, 22144, 809, 11278, 1440, 22144, 809, 11278, 16, 5411, 467, 1803, 5190, 809, 11278, 1301, 5190, 809, 11278, 13, 288, 3639, 368, 1021, 4209, 316, 525, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 6100, 12, 45, 2421, 22144, 809, 11278, 1440, 22144, 809, 11278, 16, 5411, 467, 1803, 5190, 809, 11278, 1301, 5190, 809, 11278, 13, 288, 3639, 368, 1021, 4209, 316, 525, 8...
ITaglibRecord resolve(String baseLocation, String reference) {
ITaglibRecord resolve(String path, String reference) {
ITaglibRecord resolve(String baseLocation, String reference) { ITaglibRecord record = null; String location = null; /** * Workaround for problem in URIHelper; uris starting with '/' are * returned as-is. */ if (reference.startsWith("/")) { location = getLocalRoot(baseLocation) + reference; } else { location = URIHelper.normalize(reference, baseLocation, getLocalRoot(baseLocation)); } // order dictated by JSP spec 2.0 section 7.2.3 if (record == null) { record = (ITaglibRecord) fServletReferences.get(location); } if (record == null) { record = (ITaglibRecord) fJARReferences.get(location); } if (record == null) { record = (ITaglibRecord) fTLDReferences.get(location); } if (record == null) { record = (ITaglibRecord) getImplicitReferences(baseLocation).get(reference); } if (record == null) { record = (ITaglibRecord) fTagDirReferences.get(location); } return record; }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/d5f67204acb95045564fee4d97bb4643f880dbbb/ProjectDescription.java/clean/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/contentmodel/ProjectDescription.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1285, 346, 2941, 2115, 2245, 12, 780, 1026, 2735, 16, 514, 2114, 13, 288, 202, 202, 1285, 346, 2941, 2115, 1409, 273, 446, 31, 202, 202, 780, 2117, 273, 446, 31, 202, 202, 26873, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1285, 346, 2941, 2115, 2245, 12, 780, 1026, 2735, 16, 514, 2114, 13, 288, 202, 202, 1285, 346, 2941, 2115, 1409, 273, 446, 31, 202, 202, 780, 2117, 273, 446, 31, 202, 202, 26873, ...
stmt.executeUpdate(DROP_VIEW_STATEMENT);
stmt.execute(DROP_VIEW_STATEMENT);
protected void setUp() throws Exception { super.setUp(); Class.forName(FBDriver.class.getName()); connection = this.getConnectionViaDriverManager(); Statement stmt = connection.createStatement(); try { try { stmt.executeUpdate(DROP_VIEW_STATEMENT); } catch (SQLException ex) { // do nothing here } try { stmt.executeUpdate(DROP_TABLE_STATEMENT); } catch (SQLException ex) { // do nothing here } stmt.executeUpdate(CREATE_TABLE_STATEMENT); stmt.executeUpdate(CREATE_VIEW_STATEMENT); } finally { stmt.close(); } }
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/2a64caba26e60ea233279f8d1dcffc7ae2c0455e/TestFBResultSet.java/clean/src/test/org/firebirdsql/jdbc/TestFBResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1185, 288, 3639, 2240, 18, 542, 1211, 5621, 7734, 1659, 18, 1884, 461, 12, 22201, 4668, 18, 1106, 18, 17994, 10663, 7734, 1459, 273, 333, 18, 588, 1952, 2124...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1185, 288, 3639, 2240, 18, 542, 1211, 5621, 7734, 1659, 18, 1884, 461, 12, 22201, 4668, 18, 1106, 18, 17994, 10663, 7734, 1459, 273, 333, 18, 588, 1952, 2124...
velocity.r = 40.0 + Math.random();
public void launch() { velocity.theta = -2.0; velocity.r = 40.0 + Math.random(); accel.theta = 0.5; accel.r = -7.5 - Math.random(); state = STATE_LAUNCH; }
50380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50380/ef10845b337175acd7b5ef9425e6a665da3def59/Particle.java/buggy/src/amber/showoff/Particle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 8037, 1435, 288, 3639, 14767, 18, 14482, 273, 300, 22, 18, 20, 31, 9079, 15153, 18, 14482, 273, 374, 18, 25, 31, 3639, 15153, 18, 86, 273, 300, 27, 18, 25, 300, 2361, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 8037, 1435, 288, 3639, 14767, 18, 14482, 273, 300, 22, 18, 20, 31, 9079, 15153, 18, 14482, 273, 374, 18, 25, 31, 3639, 15153, 18, 86, 273, 300, 27, 18, 25, 300, 2361, 18, ...
portObj = fsl; rect = fsl.getBounds(); } }
portObj = fsl; rect = fsl.getBounds(); } } } if (portObj != null) { FigRect port = null; if (portObj.getSourcePortFig() != null && portObj.getSourcePortFig() instanceof FigRect) { port = (FigRect) portObj.getSourcePortFig(); } if (port != null && port instanceof FigDynPort) { FigDynPort fsp = (FigDynPort) port; portNumber = fsp.getPosition() + 1; } } return portNumber;
public int getPortNumber(Vector contents) { int portNumber = 0; FigSeqLink portObj = null; int size = contents.size(); Rectangle rect = new Rectangle(0, 0, 1, 1); for (int i=0; i<size; i++) { if (contents.elementAt(i) instanceof FigSeqLink) { FigSeqLink fsl = (FigSeqLink) contents.elementAt(i); if (((fsl.getBounds()).y < getBounds().y) && ((fsl.getBounds()).y > rect.y)) { portObj = fsl; rect = fsl.getBounds(); } } } if (portObj != null) { FigRect port = null; //FigSeqObject fso = (FigSeqObject) portObj.getSourceFigNode(); if (portObj.getSourcePortFig() != null && portObj.getSourcePortFig() instanceof FigRect) { port = (FigRect) portObj.getSourcePortFig(); } if (port != null && port instanceof FigDynPort) { FigDynPort fsp = (FigDynPort) port; portNumber = fsp.getPosition()+1; } } return portNumber; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/FigSeqLink.java/clean/src_new/org/argouml/uml/diagram/sequence/ui/FigSeqLink.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 11036, 1854, 12, 5018, 2939, 13, 288, 565, 509, 1756, 1854, 273, 374, 31, 565, 478, 360, 6926, 2098, 1756, 2675, 273, 446, 31, 565, 509, 963, 273, 2939, 18, 1467, 5621, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 11036, 1854, 12, 5018, 2939, 13, 288, 565, 509, 1756, 1854, 273, 374, 31, 565, 478, 360, 6926, 2098, 1756, 2675, 273, 446, 31, 565, 509, 963, 273, 2939, 18, 1467, 5621, 565, ...
Entity entity = new InternalEntity(name, text);
Entity entity = new InternalEntity(name, text, fInExternalSubset);
public void addInternalEntity(String name, String text) { if (!fEntities.containsKey(name)) { Entity entity = new InternalEntity(name, text); fEntities.put(name, entity); } else{ if(fWarnDuplicateEntityDef){ fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "MSG_DUPLICATE_ENTITY_DEFINITION", new Object[]{ name }, XMLErrorReporter.SEVERITY_WARNING ); } } } // addInternalEntity(String,String)
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/25fcfccb5a7982f33a9d10a688a0b6f91f846e1f/XMLEntityManager.java/clean/src/org/apache/xerces/impl/XMLEntityManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 3061, 1943, 12, 780, 508, 16, 514, 977, 13, 288, 3639, 309, 16051, 74, 8108, 18, 12298, 653, 12, 529, 3719, 288, 5411, 3887, 1522, 273, 394, 3186, 1943, 12, 529, 16, 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, 918, 527, 3061, 1943, 12, 780, 508, 16, 514, 977, 13, 288, 3639, 309, 16051, 74, 8108, 18, 12298, 653, 12, 529, 3719, 288, 5411, 3887, 1522, 273, 394, 3186, 1943, 12, 529, 16, 9...
return OutlineTools.getHandle(node);
return ContentOutlineTools.getHandle(node);
public String getHandleIdentifier(Object object) { if (object instanceof RepositoryTaskOutlineNode) { RepositoryTaskOutlineNode node = (RepositoryTaskOutlineNode) object; return OutlineTools.getHandle(node); } else if (object instanceof RepositoryTaskSelection) { RepositoryTaskSelection n = (RepositoryTaskSelection) object; return OutlineTools.getHandle(n); } return null; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/44f03567594f27df922a6c9eec7fc7efd881a170/BugzillaStructureBridge.java/buggy/sandbox/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/bridge/bugs/BugzillaStructureBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 26298, 3004, 12, 921, 733, 13, 288, 202, 202, 430, 261, 1612, 1276, 6281, 2174, 21805, 907, 13, 288, 1082, 202, 3305, 2174, 21805, 907, 756, 273, 261, 3305, 2174, 21805, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26298, 3004, 12, 921, 733, 13, 288, 202, 202, 430, 261, 1612, 1276, 6281, 2174, 21805, 907, 13, 288, 1082, 202, 3305, 2174, 21805, 907, 756, 273, 261, 3305, 2174, 21805, ...
entries = new PhotoEntry[32];
entries = new PhotoEntry[NUM_PHOTOS];
public static void readFromRom(HackModule hm) { readPalettes(hm, true); AbstractRom rom = hm.rom; entries = new PhotoEntry[32]; for (int i = 0; i < entries.length; i++) { int address = 0x21318A + (i * 62); short flag = (short) rom.readMulti(address, 2); short centerX = (short) rom.readMulti(address + 2, 2); short centerY = (short) rom.readMulti(address + 4, 2); int palNum = rom.readMulti(address + 6, 2) / (32 * 6); // 32 * 6 = size of a full pal byte direction = (byte) (rom.readByte(address + 8) / 0x8); byte distance = rom.readByte(address + 9); short landX = (short) rom.readMulti(address + 10, 2); short landY = (short) rom.readMulti(address + 12, 2); short[][] partyXY = new short[6][2]; for (int j = 0; j < partyXY.length; j++) { partyXY[j][0] = (short) rom.readMulti(address + 14 + (j * 4), 2); partyXY[j][1] = (short) rom.readMulti(address + 16 + (j * 4), 2); } short[][] extraSprites = new short[4][3]; for (int j = 0; j < extraSprites.length; j++) { extraSprites[j][0] = (short) rom.readMulti(address + 38 + (j * 6), 2); extraSprites[j][1] = (short) rom.readMulti(address + 40 + (j * 6), 2); extraSprites[j][2] = (short) rom.readMulti(address + 42 + (j * 6), 2); } entries[i] = new PhotoEntry(flag, centerX, centerY, palNum, direction, distance, landX, landY, partyXY, extraSprites); } }
3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/fbe6827bdf99a5aee7beb9b768ae6124e37f4ab1/PhotoEditor.java/clean/src/net/starmen/pkhack/eb/PhotoEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 20876, 54, 362, 12, 44, 484, 3120, 16349, 13, 202, 95, 202, 202, 896, 14320, 278, 1078, 12, 76, 81, 16, 638, 1769, 9506, 202, 7469, 54, 362, 24137, 273, 16349, 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, 760, 918, 20876, 54, 362, 12, 44, 484, 3120, 16349, 13, 202, 95, 202, 202, 896, 14320, 278, 1078, 12, 76, 81, 16, 638, 1769, 9506, 202, 7469, 54, 362, 24137, 273, 16349, 18,...
if (commandId != null) { final IHandler actionHandler = new ActionHandler(handler); final IHandlerActivation activation = service.activateHandler( commandId, actionHandler, new Expression() { public final EvaluationResult evaluate( final IEvaluationContext context) { return EvaluationResult.TRUE; } public final void collectExpressionInfo( final ExpressionInfo info) { info .addVariableNameAccess(SourcePriorityNameMapping.LEGACY_LEGACY_NAME); } }); activationsByActionId.put(actionID, activation);
public final void collectExpressionInfo( final ExpressionInfo info) { info .addVariableNameAccess(SourcePriorityNameMapping.LEGACY_LEGACY_NAME); } }); activationsByActionId.put(actionID, activation); }
public void setGlobalActionHandler(String actionID, IAction handler) { final IServiceLocator locator = getServiceLocator(); if (handler != null) { // Update the action handlers. if (actionHandlers == null) actionHandlers = new HashMap(11); actionHandlers.put(actionID, handler); // Update the handler activations. final IHandlerService service = (IHandlerService) locator .getService(IHandlerService.class); Map activationsByActionId = null; if (activationsByActionIdByServiceLocator == null) { activationsByActionIdByServiceLocator = new WeakHashMap(); activationsByActionId = new HashMap(); activationsByActionIdByServiceLocator.put(locator, activationsByActionId); } else { activationsByActionId = (Map) activationsByActionIdByServiceLocator .get(locator); if (activationsByActionId == null) { activationsByActionId = new HashMap(); activationsByActionIdByServiceLocator.put(locator, activationsByActionId); } else if (activationsByActionId.containsKey(actionID)) { final Object value = activationsByActionId.remove(actionID); if (value instanceof IHandlerActivation) { final IHandlerActivation activation = (IHandlerActivation) value; service.deactivateHandler(activation); activation.getHandler().dispose(); } } } // Add a mapping from this action id to the command id. final IActionCommandMappingService mappingService = (IActionCommandMappingService) locator .getService(IActionCommandMappingService.class); final String commandId = mappingService.getCommandId(actionID); if (commandId != null) { // Register this as a handler with the given definition id. // the expression gives the setGlobalActionHandler() a // priority. final IHandler actionHandler = new ActionHandler(handler); final IHandlerActivation activation = service.activateHandler( commandId, actionHandler, new Expression() { public final EvaluationResult evaluate( final IEvaluationContext context) { return EvaluationResult.TRUE; } public final void collectExpressionInfo( final ExpressionInfo info) { info .addVariableNameAccess(SourcePriorityNameMapping.LEGACY_LEGACY_NAME); } }); activationsByActionId.put(actionID, activation); } } else { if (actionHandlers != null) actionHandlers.remove(actionID); // Remove the handler activation. final IHandlerService service = (IHandlerService) locator .getService(IHandlerService.class); if (activationsByActionIdByServiceLocator != null) { final Map activationsByActionId = (Map) activationsByActionIdByServiceLocator .get(locator); if ((activationsByActionId != null) && (activationsByActionId.containsKey(actionID))) { final Object value = activationsByActionId.remove(actionID); if (value instanceof IHandlerActivation) { final IHandlerActivation activation = (IHandlerActivation) value; service.deactivateHandler(activation); activation.getHandler().dispose(); } } } } actionHandlersChanged = true; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3650e0efd6c52eb765c7beeea5a6979bbb754314/SubActionBars.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SubActionBars.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5160, 1803, 1503, 12, 780, 1301, 734, 16, 467, 1803, 1838, 13, 288, 202, 202, 6385, 467, 1179, 5786, 8871, 273, 17457, 5621, 202, 202, 430, 261, 4176, 480, 446, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5160, 1803, 1503, 12, 780, 1301, 734, 16, 467, 1803, 1838, 13, 288, 202, 202, 6385, 467, 1179, 5786, 8871, 273, 17457, 5621, 202, 202, 430, 261, 4176, 480, 446, 13, ...
public void mMULTI_LINE_COMMENT() throws RecognitionException { try { ruleNestingLevel++; int _type = MULTI_LINE_COMMENT; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1437:4: ( '/*' ( options {greedy=false; } : . )* '*/' ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1437:4: '/*' ( options {greedy=false; } : . )* '*/' { match("/*"); if (failed) return ; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1437:9: ( options {greedy=false; } : . )* loop18: do { int alt18=2; int LA18_0 = input.LA(1); if ( (LA18_0=='*') ) { int LA18_1 = input.LA(2); if ( (LA18_1=='/') ) { alt18=2; } else if ( ((LA18_1>='\u0000' && LA18_1<='.')||(LA18_1>='0' && LA18_1<='\uFFFE')) ) { alt18=1; } } else if ( ((LA18_0>='\u0000' && LA18_0<=')')||(LA18_0>='+' && LA18_0<='\uFFFE')) ) { alt18=1; } switch (alt18) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1437:35: . { matchAny(); if (failed) return ; } break; default : break loop18; } } while (true); match("*/"); if (failed) return ; if ( backtracking==0 ) { _channel=HIDDEN; } } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/158de3e3177d9b48d45fb4c3fae8404e0f01f690/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 26588, 67, 5997, 67, 12200, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 27125, 67, 5997, 67, 12200, 31, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 26588, 67, 5997, 67, 12200, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 27125, 67, 5997, 67, 12200, 31, 5411, ...
eventProducer.generateEvent(WireAdminEvent.PRODUCER_EXCEPTION, null, ex);
eventProducer.generateEvent(WireAdminEvent.PRODUCER_EXCEPTION, null, ex);
protected void notifyProducer(Producer producer, String pid) { org.osgi.service.wireadmin.Wire[] wireArray = null; try { wireArray = getConnectedWires(producerFilter + pid + ")"); //$NON-NLS-1$ } catch (InvalidSyntaxException ex) { ex.printStackTrace(); } try { producer.consumersConnected(wireArray); } catch (Exception ex) { eventProducer.generateEvent(WireAdminEvent.PRODUCER_EXCEPTION, null, ex); } }
13530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13530/4a1946965c5fc8ea61b8ae79e0ec4fe33e5f70d8/WireAdmin.java/buggy/bundles/org.eclipse.equinox.wireadmin/src/org/eclipse/equinox/wireadmin/WireAdmin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5066, 12140, 12, 12140, 12608, 16, 514, 4231, 13, 288, 202, 202, 3341, 18, 538, 10052, 18, 3278, 18, 14538, 3666, 18, 15249, 8526, 6636, 1076, 273, 446, 31, 202, 202, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5066, 12140, 12, 12140, 12608, 16, 514, 4231, 13, 288, 202, 202, 3341, 18, 538, 10052, 18, 3278, 18, 14538, 3666, 18, 15249, 8526, 6636, 1076, 273, 446, 31, 202, 202, 69...
return (Proxy)proxyConstructor.newInstance(params);
return (Proxy) proxyConstructor.newInstance(params);
private static Proxy createProxyObject(String nameOfProxy, Object[] proxyParameters, ConstructorCall reifiedCall) throws ConstructionOfProxyObjectFailedException, ClassNotFoundException, InvalidProxyClassException { // Throws a ClassNotFoundException Class proxyClass = forName(nameOfProxy); // Finds constructor of the proxy class Constructor proxyConstructor = findProxyConstructor(proxyClass); // Now calls the constructor of the proxy Object[] params = new Object[] { reifiedCall, proxyParameters }; try { return (Proxy)proxyConstructor.newInstance(params); } catch (InstantiationException e) { throw new ConstructionOfProxyObjectFailedException("Constructor " + proxyConstructor + " belongs to an abstract class"); } catch (IllegalArgumentException e) { throw new ConstructionOfProxyObjectFailedException("Wrapping problem with constructor " + proxyConstructor); } catch (IllegalAccessException e) { throw new ConstructionOfProxyObjectFailedException("Access denied to constructor " + proxyConstructor); } catch (InvocationTargetException e) { throw new ConstructionOfProxyObjectFailedException("The constructor of the proxy object has thrown an exception: ", e.getTargetException()); } }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/587595d3d238a839759fc80780989cf7b46a7398/MOP.java/buggy/src/org/objectweb/proactive/core/mop/MOP.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 7659, 752, 3886, 921, 12, 780, 508, 951, 3886, 16, 1033, 8526, 2889, 2402, 16, 11417, 1477, 283, 939, 1477, 13, 4202, 1216, 735, 4549, 951, 3886, 921, 12417, 16, 10403, 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, 282, 3238, 760, 7659, 752, 3886, 921, 12, 780, 508, 951, 3886, 16, 1033, 8526, 2889, 2402, 16, 11417, 1477, 283, 939, 1477, 13, 4202, 1216, 735, 4549, 951, 3886, 921, 12417, 16, 10403, 16, 1...
public String getContentCharSet() { return "ISO-8859-1"; }
public String getContentCharSet() { return encoding; }
public String getContentCharSet() { return "ISO-8859-1"; }
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/6936648d60e847c7506a15376b072b1e554b81b7/WebClient.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 514, 5154, 2156, 694, 1435, 288, 327, 315, 12609, 17, 17258, 17, 21, 14432, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 514, 5154, 2156, 694, 1435, 288, 327, 315, 12609, 17, 17258, 17, 21, 14432, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (func == '\'') { return parseSingleQuotedString(closeQuote, openQuote); }
if (func == '\'') { return parseSingleQuotedString(closeQuote, openQuote); }
private int parseString(int func, int closeQuote, int openQuote) { if (func == '\'') { return parseSingleQuotedString(closeQuote, openQuote); } if (func == 0) { // read 1 line for heredoc // -1 for chomp yaccValue = support.readLine(); return Token.tSTRING; } ISourcePosition position = support.getPosition(); StringToken token = new StringToken(support, errorHandler, position); IListNode list = (func == '`') ? (IListNode) new DXStrNode(position) : new DStrNode(position); int nest = 0; boolean lDyn = false; for (char c = support.read(); c != closeQuote || nest > 0; c = support.read()) { switch (c) { case '\0' : errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; case '#' : try { lDyn = parseExpressionString(list, (char) closeQuote, token) || lDyn; } catch (EOFException e) { errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; } continue; case '\\' : c = support.read(); if (c == '\n') { continue; } else if (c == closeQuote) { token.append(c); } else { support.unread(); if (func != '"') { token.append('\\'); } token.append((char) readEscape()); } continue; default : if (openQuote != '\0') { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } token.append(c); } } lexState = LexState.EXPR_END; if (lDyn) //we know the string is dynamic { if (token.getLength() > 0) { list.add(new StrNode(token.getPosition(), token.getToken())); } yaccValue = list; return (func == '`') ? Token.tDXSTRING : Token.tDSTRING; } //Benoit: this is not needed, I think that if we arrive here //(if the string is not dynamic) there is only one element in the list //and it is the content of token /* StringBuffer buffer = new StringBuffer(); Iterator iter = list.iterator(); while (iter.hasNext()) { Object next = iter.next(); if (next instanceof StrNode) { buffer.append(((StrNode) next).getValue()); } else { yaccValue = list; return (func == '`') ? Token.tDXSTRING : Token.tDSTRING; } } yaccValue = buffer.toString(); */ yaccValue = token.getToken(); return (func == '`') ? Token.tXSTRING : Token.tSTRING; }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 23659, 12, 474, 1326, 16, 509, 1746, 10257, 16, 509, 1696, 10257, 13, 288, 202, 202, 430, 261, 644, 422, 14118, 6134, 288, 1082, 202, 2463, 1109, 5281, 15919, 780, 12, 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, 225, 202, 1152, 509, 23659, 12, 474, 1326, 16, 509, 1746, 10257, 16, 509, 1696, 10257, 13, 288, 202, 202, 430, 261, 644, 422, 14118, 6134, 288, 1082, 202, 2463, 1109, 5281, 15919, 780, 12, 4...
str.append(",position=" + position); str.append(",count=" + count); str.append(",baseCharOffset=" + baseCharOffset); str.append(",startPosition=" + startPosition);
str.append(",position=").append(position); str.append(",count=").append(count); str.append(",baseCharOffset=").append(baseCharOffset); str.append(",startPosition=").append(startPosition);
public String toString() { StringBuffer str = new StringBuffer(); str.append("name=\""+name+'"'); str.append(",ch="); str.append(ch); str.append(",position=" + position); str.append(",count=" + count); str.append(",baseCharOffset=" + baseCharOffset); str.append(",startPosition=" + startPosition); return str.toString(); } // toString():String
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/b4004bb1ac108af468591c4a8b93448ffcac893e/XMLEntityManager.java/clean/src/org/apache/xerces/impl/XMLEntityManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 1762, 1435, 288, 13491, 6674, 609, 273, 394, 6674, 5621, 5411, 609, 18, 6923, 2932, 529, 13186, 15, 529, 15, 4970, 8284, 5411, 609, 18, 6923, 2932, 16, 343, 1546, 1769, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 1762, 1435, 288, 13491, 6674, 609, 273, 394, 6674, 5621, 5411, 609, 18, 6923, 2932, 529, 13186, 15, 529, 15, 4970, 8284, 5411, 609, 18, 6923, 2932, 16, 343, 1546, 1769, 5411, ...
{
{
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED; else if ((flags & ERROR) != 0) status = ERRORED; else if ((flags & ALLBITS) != 0) status = COMPLETE; else if ((flags & SOMEBITS) != 0) status = LOADING; else status = 0; synchronized (MediaTracker.this) { MediaTracker.this.notifyAll(); } // If status is not COMPLETE then we need more updates. return ((status & (COMPLETE | ERRORED | ABORTED)) == 0); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/608b25d42f9f6b77892970b5c7329e53a0645777/MediaTracker.java/clean/libraries/javalib/java/awt/MediaTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1316, 1891, 12, 2040, 3774, 16, 509, 2943, 16, 509, 619, 16, 509, 677, 16, 4697, 4202, 509, 1835, 16, 509, 2072, 13, 565, 288, 1377, 309, 14015, 7133, 473, 10336, 3871, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1316, 1891, 12, 2040, 3774, 16, 509, 2943, 16, 509, 619, 16, 509, 677, 16, 4697, 4202, 509, 1835, 16, 509, 2072, 13, 565, 288, 1377, 309, 14015, 7133, 473, 10336, 3871, 13, ...
private void buildTree(Node node, Document doc, Element current, boolean atRoot) { // Recurse through the tree switch (node.getNodeType()) { case Node.DOCUMENT_NODE: NodeList nodes = node.getChildNodes(); for (int i=0, size=nodes.getLength(); i<size; i++) { buildTree(nodes.item(i), doc, current, true); } break; case Node.ELEMENT_NODE: String localName = node.getLocalName(); String prefix = node.getPrefix(); String uri = node.getNamespaceURI(); Element element = null; Namespace ns = null; if (uri == null) { if (localName == null) { // Sometimes localName is null, if so try the tag name localName = ((org.w3c.dom.Element)node).getTagName(); } element = factory.element(localName); } else { ns = Namespace.getNamespace(prefix, uri); element = factory.element(localName, ns); } // Add attributes NamedNodeMap attributeList = node.getAttributes(); for (int i=0, size=attributeList.getLength(); i<size; i++) { Attr att = (Attr) attributeList.item(i); // Distinguish between namespace and attribute String attname = att.getName(); String attvalue = att.getValue(); // Don't add xmlns attributes, but do add them as // additional namespaces if they're different than this // element's namespace (perhaps we should also have logic // not to mark them as additional if it's been done // already, but it probably doesn't matter) if (attname.equals("xmlns")) { Namespace declaredNS = Namespace.getNamespace("", attvalue); if (!declaredNS.equals(ns)) { element.addNamespaceDeclaration(declaredNS); } } else if (attname.startsWith("xmlns:")) { String attsubname = attname.substring(6); Namespace declaredNS = Namespace.getNamespace(attsubname, attvalue); if (!declaredNS.equals(ns)) { element.addNamespaceDeclaration(declaredNS); } } else { prefix = att.getPrefix(); uri = att.getNamespaceURI(); String attLocalName = att.getLocalName(); if (attLocalName == null) { // Sometimes attLocalName is null, try attname attLocalName = attname; } Namespace attns = Namespace.getNamespace(prefix, uri); Attribute attribute = factory.attribute(attLocalName, attvalue, attns); element.setAttribute(attribute); } } if (atRoot) { // If at root, set as document root doc.setRootElement(element); } else { // else add to parent element current.addContent(element); } // Recurse on child nodes // The list should never be null nor should it ever contain // null nodes, but some DOM impls are broken NodeList children = node.getChildNodes(); if (children != null) { for (int i=0, size=children.getLength(); i<size; i++) { Node item = children.item(i); if (item != null) { buildTree(item, doc, element, false); } } } break; case Node.TEXT_NODE: String data = node.getNodeValue(); current.addContent(factory.text(data)); break; case Node.CDATA_SECTION_NODE: String cdata = node.getNodeValue(); current.addContent(factory.cdata(cdata)); break; case Node.PROCESSING_INSTRUCTION_NODE: if (atRoot) { doc.addContent( factory.processingInstruction(node.getNodeName(), node.getNodeValue())); } else { current.addContent( factory.processingInstruction(node.getNodeName(), node.getNodeValue())); } break; case Node.COMMENT_NODE: if (atRoot) { doc.addContent(factory.comment(node.getNodeValue())); } else { current.addContent(factory.comment(node.getNodeValue())); } break; case Node.ENTITY_REFERENCE_NODE: EntityRef entity = factory.entityRef(node.getNodeName()); current.addContent(entity); break; case Node.ENTITY_NODE: // ?? break; case Node.DOCUMENT_TYPE_NODE: DocumentType domDocType = (DocumentType)node; String publicID = domDocType.getPublicId(); String systemID = domDocType.getSystemId(); String internalDTD = domDocType.getInternalSubset(); DocType docType = factory.docType(domDocType.getName()); docType.setPublicID(publicID); docType.setSystemID(systemID); docType.setInternalSubset(internalDTD); doc.setDocType(docType); break; } }
49530 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49530/c6346ad73f3919c15f9968139a8bb6da97bf755b/DOMBuilder.java/clean/core/src/java/org/jdom/input/DOMBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 3510, 2471, 12, 50, 369, 20680, 16, 2519, 2434, 16, 1046, 2972, 16, 6494, 270, 2375, 15329, 759, 426, 1397, 542, 76, 2642, 451, 278, 5312, 30390, 12, 2159, 18, 588, 15101, 10756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 3510, 2471, 12, 50, 369, 20680, 16, 2519, 2434, 16, 1046, 2972, 16, 6494, 270, 2375, 15329, 759, 426, 1397, 542, 76, 2642, 451, 278, 5312, 30390, 12, 2159, 18, 588, 15101, 10756, ...
return(items.size());
return countItems ();
getItemCount(){ return(items.size());}
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/3fe1c14284ce32b79d0e66441aec6a45a77ff684/Menu.java/buggy/libjava/java/awt/Menu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 8143, 1380, 1435, 95, 225, 327, 12, 3319, 18, 1467, 10663, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 8143, 1380, 1435, 95, 225, 327, 12, 3319, 18, 1467, 10663, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public Paint createPaint(BridgeContext ctx, Element patternElement, Element paintedElement, GraphicsNode paintedNode, float opacity) { // extract pattern content CompositeGraphicsNode patternContentNode = extractPatternContent(patternElement, ctx); if (patternContentNode == null) { return null; // no content means no paint } // get pattern region using 'patternUnits' Rectangle2D patternRegion = SVGUtilities.convertPatternRegion (patternElement, paintedElement, paintedNode, ctx); String s; // 'patternTransform' attribute - default is an Identity matrix AffineTransform patternTransform; s = SVGUtilities.getChainableAttributeNS (patternElement, null, SVG_PATTERN_TRANSFORM_ATTRIBUTE, ctx); if (s.length() != 0) { patternTransform = SVGUtilities.convertTransform (patternElement, SVG_PATTERN_TRANSFORM_ATTRIBUTE, s); } else { patternTransform = new AffineTransform(); } // 'overflow' on the painted element boolean overflowIsHidden = CSSUtilities.convertOverflow(patternElement); // 'clip' on the painted element float[] clip = CSSUtilities.convertClip(patternElement); // 'patternContentUnits' - default is userSpaceOnUse short contentCoordSystem; s = SVGUtilities.getChainableAttributeNS (patternElement, null, SVG_PATTERN_CONTENT_UNITS_ATTRIBUTE, ctx); if (s.length() == 0) { contentCoordSystem = SVGUtilities.USER_SPACE_ON_USE; } else { contentCoordSystem = SVGUtilities.parseCoordinateSystem (patternElement, SVG_PATTERN_CONTENT_UNITS_ATTRIBUTE, s); } // Compute a transform according to viewBox, preserveAspectRatio // and patternContentUnits GraphicsNodeRenderContext rc = ctx.getGraphicsNodeRenderContext(); AffineTransform patternContentTransform; // 'viewBox' attribute String viewBoxStr = SVGUtilities.getChainableAttributeNS (patternElement, null, SVG_VIEW_BOX_ATTRIBUTE, ctx); if (viewBoxStr.length() == 0) { // No viewBox has been found, handle 'patternContentUnits' if (contentCoordSystem == SVGUtilities.OBJECT_BOUNDING_BOX) { // objectBoundingBox: a transform for paintedNode bounds Rectangle2D r = paintedNode.getGeometryBounds(rc); patternContentTransform = new AffineTransform(); patternContentTransform.translate(r.getX(), r.getY()); patternContentTransform.scale(r.getWidth(), r.getHeight()); } else { // userSpaceOnUse: no additional transform required patternContentTransform = null; } } else { // A viewBox has been found, handle 'preserveAspectRatio' String aspectRatioStr = SVGUtilities.getChainableAttributeNS (patternElement, null, SVG_PRESERVE_ASPECT_RATIO_ATTRIBUTE, ctx); float w = (float)patternRegion.getWidth(); float h = (float)patternRegion.getHeight(); patternContentTransform = ViewBox.getPreserveAspectRatioTransform (patternElement, viewBoxStr, aspectRatioStr, w, h); // <!> FIXME: START // - Why do we clip using viewBox region? // - Why do we ignore the objectBoundingBox transform? // clip the patternContentNode according to the 'overflow' property if (overflowIsHidden) { float [] vb = ViewBox.parseViewBoxAttribute(patternElement, viewBoxStr); Rectangle2D viewBox = new Rectangle2D.Float(vb[0], vb[1], vb[2], vb[3]); CompositeGraphicsNode comp = new CompositeGraphicsNode(); comp.getChildren().add(patternContentNode); Filter filter = new GraphicsNodeRable8Bit(comp, rc); comp.setClip(new ClipRable8Bit(filter, viewBox)); patternContentNode = comp; } // <!> FIXME: END } // take the opacity into account. opacity is implemented by a Filter if (opacity != 1) { float[][] matrix = { {1, 0, 0, 0, 0}, {0, 1, 0, 0, 0}, {0, 0, 1, 0, 0}, {0, 0, 0, opacity, 0} }; // <!> FIXME: Why do we need to create an intermediate node? ColorMatrixRable filter = ColorMatrixRable8Bit.buildMatrix(matrix); Filter contentRable = new GraphicsNodeRable8Bit(patternContentNode, rc); filter.setSource(contentRable); patternContentNode.setFilter(filter); CompositeGraphicsNode comp = new CompositeGraphicsNode(); comp.getChildren().add(patternContentNode); patternContentNode = comp; } return new PatternPaint(patternContentNode, rc, patternContentTransform, patternRegion, !overflowIsHidden, patternTransform); }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/c04da87107c5ecc360bbf4d68a963bc6bd3c2e2a/SVGPatternElementBridge.java/buggy/sources/org/apache/batik/bridge/SVGPatternElementBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 12699, 2640, 12699, 12, 13691, 1042, 5900, 16, 1046, 4951, 1046, 16, 1046, 84, 1598, 329, 1046, 16, 17558, 907, 84, 1598, 329, 907, 16, 5659, 19515, 15329, 759, 8004, 4951, 1745, 9400, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12699, 2640, 12699, 12, 13691, 1042, 5900, 16, 1046, 4951, 1046, 16, 1046, 84, 1598, 329, 1046, 16, 17558, 907, 84, 1598, 329, 907, 16, 5659, 19515, 15329, 759, 8004, 4951, 1745, 9400, 1...
try
try
public int getGroupCount() { // Cache group count for 5 minutes. if (groupCount != -1 && System.currentTimeMillis() < expiresStamp) { return groupCount; } int count = 0; if (manager.isDebugEnabled()) { Log.debug("Trying to get the number of groups in the system."); } DirContext ctx = null; NamingEnumeration answer = null; String searchFilter = MessageFormat.format(manager.getGroupSearchFilter(),"*"); try { ctx = manager.getContext(); if (manager.isDebugEnabled()) { Log.debug("Starting LDAP search..."); Log.debug("Using groupSearchFilter: "+searchFilter); } // Search for the dn based on the groupname. answer = ctx.search("",searchFilter,new SearchControls()); if (manager.isDebugEnabled()) { Log.debug("... search finished"); } } catch (Exception e) { if (manager.isDebugEnabled()) Log.debug("Error while searching for groups.",e); } try { while (answer.hasMoreElements()) { count++; answer.next(); } } catch (Exception e){ } this.groupCount = count; this.expiresStamp = System.currentTimeMillis() + JiveConstants.MINUTE *5; return count; }
6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/18cc4f4a83f5be619ecffb1af397757ac682a33d/LdapGroupProvider.java/buggy/src/java/org/jivesoftware/messenger/ldap/LdapGroupProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 11751, 1380, 1435, 565, 288, 3639, 368, 4379, 1041, 1056, 364, 1381, 6824, 18, 3639, 309, 261, 1655, 1380, 480, 300, 21, 597, 2332, 18, 2972, 28512, 1435, 411, 7368, 8860, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 11751, 1380, 1435, 565, 288, 3639, 368, 4379, 1041, 1056, 364, 1381, 6824, 18, 3639, 309, 261, 1655, 1380, 480, 300, 21, 597, 2332, 18, 2972, 28512, 1435, 411, 7368, 8860, 13, ...
if (selectionListener != null && stepViewer != null) stepViewer.addSelectionChangedListener(selectionListener);
if (selectionListener != null && stepViewer != null) { stepViewer.addSelectionChangedListener(selectionListener); }
public void setSelectionListener(ISelectionChangedListener listener) { if (selectionListener != null && stepViewer != null) stepViewer.removeSelectionChangedListener(selectionListener); selectionListener = listener; if (selectionListener != null && stepViewer != null) stepViewer.addSelectionChangedListener(selectionListener); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/WizardStepGroup.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/WizardStepGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 6233, 2223, 12, 45, 6233, 5033, 2223, 2991, 13, 288, 3639, 309, 261, 10705, 2223, 480, 446, 597, 2235, 18415, 480, 446, 13, 5411, 2235, 18415, 18, 4479, 6233, 5033, 2223, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 6233, 2223, 12, 45, 6233, 5033, 2223, 2991, 13, 288, 3639, 309, 261, 10705, 2223, 480, 446, 597, 2235, 18415, 480, 446, 13, 5411, 2235, 18415, 18, 4479, 6233, 5033, 2223, ...
rootAdmin.addGroups(other, user_other_group);
rootAdmin.addGroups(other, user_other_group, common_group);
public void createUsersAndGroups() throws Exception { init(); cname = UUID.randomUUID().toString(); gname = UUID.randomUUID().toString(); // shortcut for root service factory, created in super class r = rootServices; // create the common group common_group.setName(cname); common_group = new ExperimenterGroup(rootAdmin .createGroup(common_group),false); // TODO -- this should be a task // create the new group user_other_group.setName(gname); user_other_group = new ExperimenterGroup(rootAdmin .createGroup(user_other_group), false); // create the PI for the new group Login piLogin = new Login(UUID.randomUUID().toString(),"empty",gname,"Test"); p = new ServiceFactory(piLogin); pi.setOmeName(piLogin.getName()); pi.setFirstName("read"); pi.setLastName("security -- leader of user_other_group"); pi = new Experimenter(rootAdmin.createUser(pi,gname), false); // make the PI the group leader. rootAdmin.setGroupOwner(user_other_group, pi); // ENDTODO // create a new user in that group Login userLogin = new Login(UUID.randomUUID().toString(), "empty",gname,"Test"); u = new ServiceFactory(userLogin); user.setOmeName(userLogin.getName()); user.setFirstName("read"); user.setLastName("security"); user = new Experimenter(rootAdmin.createUser(user,gname), false); rootAdmin.addGroups(user, user_other_group); // create another user in that group Login otherLogin = new Login(UUID.randomUUID().toString(), "empty",gname,"Test"); o = new ServiceFactory(otherLogin); other.setOmeName(otherLogin.getName()); other.setFirstName("read"); other.setLastName("security2"); other = new Experimenter(rootAdmin.createUser(other,gname), false); rootAdmin.addGroups(other, user_other_group); // create a third regular user not in that group Login worldLogin = new Login(UUID.randomUUID().toString(), "empty" /* not gname!*/); w = new ServiceFactory(worldLogin); world.setOmeName(worldLogin.getName()); world.setFirstName("read"); world.setLastName("Security -- not in their group"); world = new Experimenter(rootAdmin.createUser(world,cname), false); // not in same group }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/c94acf1ed28125ea3ec367725deb6b3896e87bd4/AbstractPermissionsTest.java/buggy/components/client/test/ome/client/itests/sec/AbstractPermissionsTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 6588, 1876, 3621, 1435, 1216, 1185, 288, 9506, 202, 2738, 5621, 9506, 202, 71, 529, 273, 5866, 18, 9188, 5562, 7675, 10492, 5621, 202, 202, 75, 529, 273, 5866, 18, 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, 752, 6588, 1876, 3621, 1435, 1216, 1185, 288, 9506, 202, 2738, 5621, 9506, 202, 71, 529, 273, 5866, 18, 9188, 5562, 7675, 10492, 5621, 202, 202, 75, 529, 273, 5866, 18, 9...
eventNode = ((SModelPropertyEvent)event).getNode(); if (nodeEditorComponent.doesCellDependOnNode(oldCell, eventNode)) propertyChanged = true;
SModelPropertyEvent propertyEvent = ((SModelPropertyEvent) event); eventNode = propertyEvent.getNode(); if (nodeEditorComponent.doesCellDependOnNode(oldCell, eventNode)) { propertyChanged = true; nodeChanged = true; if (eventNode == oldCell.getSNode() && oldCell instanceof EditorCell_Property) { EditorCell_Property cellProperty = (EditorCell_Property) oldCell; nodeChanged = !(propertyEvent.getOldPropertyValue().equals(cellProperty.getRenderedText())); } }
/*package*/ EditorCell createEditorCell(EditorContext context, SNode node, List<SModelEvent> events) { AbstractEditorComponent nodeEditorComponent = context.getNodeEditorComponent(); EditorCell oldCell = nodeEditorComponent.getBigCellForNode(node); if (events != null) { boolean propertyChanged = false; boolean nodeChanged = false; for (SModelEvent event : events) { SNode eventNode; if (event instanceof SModelChildEvent) { eventNode = ((SModelChildEvent)event).getParent(); } else if (event instanceof SModelReferenceEvent) { eventNode = ((SModelReferenceEvent)event).getReference().getSourceNode(); } else { if (event instanceof SModelPropertyEvent) {//++if some property had changed eventNode = ((SModelPropertyEvent)event).getNode(); if (nodeEditorComponent.doesCellDependOnNode(oldCell, eventNode)) propertyChanged = true; }//--if some property had changed continue; } if (nodeEditorComponent.doesCellDependOnNode(oldCell, eventNode)) { nodeChanged = true; break; } } if (!nodeChanged) { if (myMap.containsKey(node)) { EditorCell editorCell = myMap.get(node); final Set<SNode> nodesOldCellDependsOn = nodeEditorComponent.getCopyOfNodesCellDependsOn(editorCell); //voodoo for editor incremental rebuild support: // add listen-nothing listener, fill it up, // remove listener to report recorded nodes to parent listener CellBuildNodeAccessListener listensNothingListener = new CellBuildNodeAccessListener(nodeEditorComponent); NodeReadAccessCaster.setNodeReadAccessListener(listensNothingListener); listensNothingListener.addNodesToDependOn(nodesOldCellDependsOn); NodeReadAccessCaster.removeNodeAccessListener(); //--voodoo if (propertyChanged && !(editorCell instanceof EditorCell_Collection)) { editorCell.synchronizeViewWithModel(); } return editorCell; } } else { myMap.putAll(findBigDescendantCellsAndTheirNodes(oldCell)); } } EditorCell editorCell = createEditorCell_internal(context, node, myCreatingInspectedCell); return editorCell; }
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/530b5972458e43bbccc906e3445aad890e633a1a/EditorManager.java/clean/source/jetbrains/mps/nodeEditor/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1748, 5610, 5549, 18451, 4020, 752, 6946, 4020, 12, 6946, 1042, 819, 16, 348, 907, 756, 16, 987, 32, 55, 1488, 1133, 34, 2641, 13, 288, 565, 4115, 6946, 1841, 756, 6946, 1841, 273, 819,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1748, 5610, 5549, 18451, 4020, 752, 6946, 4020, 12, 6946, 1042, 819, 16, 348, 907, 756, 16, 987, 32, 55, 1488, 1133, 34, 2641, 13, 288, 565, 4115, 6946, 1841, 756, 6946, 1841, 273, 819,...
AffineTransform at = gn.getTransform(); if (oat != null){ if (at != null){ oat.preConcatenate(at); } } else { oat = (at == null) ? null : new AffineTransform(at); } if (nat != null){ if (at != null){
if (at != null){ if (nat != null)
public List getDirtyAreas() { if (dirtyNodes == null) return null; List ret = new LinkedList(); Set keys = dirtyNodes.keySet(); Iterator i = keys.iterator(); while (i.hasNext()) { WeakReference gnWRef = (WeakReference)i.next(); GraphicsNode gn = (GraphicsNode)gnWRef.get(); // if the weak ref has been cleared then this node is no // longer part of the GVT tree (and the change should be // reflected in some ancestor that should also be in the // dirty list). if (gn == null) continue; AffineTransform oat; oat = (AffineTransform)dirtyNodes.get(gnWRef); Rectangle2D srcORgn = (Rectangle2D)fromBounds.remove(gnWRef); Rectangle2D srcNRgn = (Rectangle2D)toBounds.remove(gnWRef); if (srcNRgn == null) srcNRgn = gn.getBounds(); AffineTransform nat = gn.getTransform(); if (nat != null){ nat = (nat == null) ? null : new AffineTransform(nat); } // System.out.println("Rgns: " + srcORgn + " - " + srcNRgn); // System.out.println("ATs: " + oat + " - " + nat); Shape oRgn = srcORgn; Shape nRgn = srcNRgn; do { // Filter f; // f = gn.getGraphicsNodeRable(false); // f.invalidateCache(oRng); // f.invalidateCache(nRng); // f = gn.getEnableBackgroundGraphicsNodeRable(false); // (need to push rgn through filter chain if any...) // f.invalidateCache(oRng); // f.invalidateCache(nRng); gn = gn.getParent(); if (gn == null) break; // We reached the top of the tree gnWRef = gn.getWeakReference(); AffineTransform at = gn.getTransform(); if (oat != null){ // oRgn = oat.createTransformedShape(srcORgn); if (at != null){ oat.preConcatenate(at); } } else { oat = (at == null) ? null : new AffineTransform(at); } if (nat != null){ // nRgn = nat.createTransformedShape(srcNRgn); if (at != null){ nat.preConcatenate(at); } } else { nat = (at == null) ? null : new AffineTransform(at); } } while (true); if (gn == null) { // We made it to the root graphics node so add them. // System.out.println // ("Adding: " + oat + " - " + nat + "\n" + // org.ImageDisplay.stringShape(oRgn) + "\n" + // org.ImageDisplay.stringShape(nRgn) + "\n"); // <!> if (oat != null){ oRgn = oat.createTransformedShape(srcORgn); } if (nat != null){ nRgn = nat.createTransformedShape(srcNRgn); } if (oRgn != null) { ret.add(oRgn); } if (nRgn != null) { ret.add(nRgn); } } } return ret; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/8b9e77d091a91b9a91db02a6c780395e56b03034/UpdateTracker.java/buggy/sources/org/apache/batik/gvt/UpdateTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 336, 10785, 28377, 1435, 288, 3639, 309, 261, 18013, 3205, 422, 446, 13, 2398, 327, 446, 31, 3639, 987, 325, 273, 394, 10688, 5621, 3639, 1000, 1311, 273, 9603, 3205, 18, 856, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 336, 10785, 28377, 1435, 288, 3639, 309, 261, 18013, 3205, 422, 446, 13, 2398, 327, 446, 31, 3639, 987, 325, 273, 394, 10688, 5621, 3639, 1000, 1311, 273, 9603, 3205, 18, 856, ...
public TA_RetCode PLUS_DM( int startIdx, int endIdx, double inHigh[], double inLow[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int today, lookbackTotal, outIdx; double prevHigh, prevLow, tempReal; double prevPlusDM; double diffP, diffM; int i; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) ) optInTimePeriod = 14; else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; if( optInTimePeriod > 1 ) lookbackTotal = optInTimePeriod + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_PLUS_DM.ordinal()]) - 1; else lookbackTotal = 1; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outIdx = 0; if( optInTimePeriod <= 1 ) { outBegIdx.value = startIdx; today = startIdx-1; prevHigh = inHigh[today]; prevLow = inLow[today]; while( today < endIdx ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffP > 0) && (diffP > diffM) ) { outReal[outIdx++] = diffP; } else outReal[outIdx++] = 0; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS; } outBegIdx.value = startIdx; prevPlusDM = 0.0; today = startIdx - lookbackTotal; prevHigh = inHigh[today]; prevLow = inLow[today]; i = optInTimePeriod-1; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } } i = (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_PLUS_DM.ordinal()]) ; while( i-- != 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod) + diffP; } else { prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod); } } outReal[0] = prevPlusDM; outIdx = 1; while( today < endIdx ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod) + diffP; } else { prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod); } outReal[outIdx++] = prevPlusDM; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;}
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/1a230e9b7099cbd2b7e9eb1294130ca009bfedf4/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 9833, 67, 7055, 1085, 6253, 3378, 67, 16125, 12, 474, 1937, 4223, 16, 474, 409, 4223, 16, 9056, 267, 8573, 63, 6487, 9056, 267, 10520, 63, 6487, 474, 3838, 382, 26540, 16, 49, 4522, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9833, 67, 7055, 1085, 6253, 3378, 67, 16125, 12, 474, 1937, 4223, 16, 474, 409, 4223, 16, 9056, 267, 8573, 63, 6487, 9056, 267, 10520, 63, 6487, 474, 3838, 382, 26540, 16, 49, 4522, 65...
public void cancelCellEditing();
void cancelCellEditing();
public void cancelCellEditing();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/CellEditor.java/buggy/core/src/classpath/javax/javax/swing/CellEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3755, 4020, 28029, 5621, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3755, 4020, 28029, 5621, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
private void printObjectTag(int tabCount, Object object, ObjectNode node) { Class nodeType = null; try { nodeType = node.getObjectType(); } catch (Exception e) { getExceptionListener().exceptionThrown(e); getExceptionListener().exceptionThrown(new Exception( "skipping expression " + node.getInitializer() + "...")); return; } if(isPrimitive(nodeType) || isString(nodeType) || isClass(nodeType)) { String tagName = getPrimitiveName(nodeType); Object arg = node.getObjectArguments()[0]; Tag tag = new Tag(tagName, arg.toString()); printBytes(tabCount, tag.toString()); } else { // if array or complex object Tag tag = null; Object[] arguments = node.getObjectArguments(); boolean objectPrinted = false; boolean isReferenced = node.getReferencesNumber() > 0; if (isArray(nodeType)) { tag = new Tag("array"); } else { tag = new Tag("object"); } // check if the object presents references if(isReferenced) { if(printed.contains(node)) { String nodeId = node.getId(); if(nodeId != null) { tag.addAttr("idref", node.getId()); } objectPrinted = true; } else { // if(printed.contains(node) == false try { Class type = node.getObjectType(); if(type != null) { // check if it is necessary to assign // and display *id* attribute to the object String objectName = NameMaker.getInstanceName(type); node.setId(objectName); tag.addAttr("id", objectName); } } catch (Exception e) { getExceptionListener().exceptionThrown(e); } } } if(!objectPrinted) { try { if (isArray(nodeType)) { tag.addAttr("class", ((Class) arguments[0]).getName()); tag.addAttr("length", ((Integer) arguments[1]).toString()); } else { tag.addAttr("class", node.getObjectType().getName()); } } catch (Exception e) { getExceptionListener().exceptionThrown(e); } } // preprocessing is done, print it! if (objectPrinted) { // if object has already been printed then only print the // reference printBytes(tabCount, tag.toStringShortForm()); } else if (isArray(nodeType) && !node.statements().hasNext()) { // if we have an empty array printBytes(tabCount, tag.toStringShortForm()); } else if (arguments.length == 0 && !node.statements().hasNext() && !node.expressions().hasNext()) { // if given tag has no children print the short form of the tag printBytes(tabCount, tag.toStringShortForm()); } else { // the tag has not been printed and contains children, // let's print them printBytes(tabCount, tag.toStringOnOpen()); printed.add(node); if (isArray(nodeType)) { // if array Iterator<Statement> it = node.statements(); while(it.hasNext()) { Statement s = it.next(); printVoidTag(++tabCount, s); --tabCount; } } else { // if object Iterator<Expression> i1; Iterator<Statement> i2; for(int i = 0; i < arguments.length; ++i) { if(arguments[i] != null) { ObjectNode succNode = nodes.get(arguments[i]); printObjectTag(++tabCount, arguments[i], succNode); } else { printNullTag(++tabCount); } --tabCount; } i1 = node.expressions(); while(i1.hasNext()) { Expression e = i1.next(); printVoidTag(++tabCount, e); --tabCount; } i2 = node.statements(); while(i2.hasNext()) { Statement s = i2.next(); printVoidTag(++tabCount, s); --tabCount; } } // if object printBytes(tabCount, tag.toStringOnClose()); } } // if node is of non-trivial type }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/40effaf129249b2248e897d030f9998321d4020f/XMLEncoder.java/clean/modules/beans/src/main/java/java/beans/XMLEncoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1172, 921, 1805, 12, 474, 3246, 1380, 16, 1033, 733, 16, 1033, 907, 756, 13, 288, 3639, 1659, 9507, 273, 446, 31, 3639, 775, 288, 5411, 9507, 273, 756, 18, 588, 17610, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 921, 1805, 12, 474, 3246, 1380, 16, 1033, 733, 16, 1033, 907, 756, 13, 288, 3639, 1659, 9507, 273, 446, 31, 3639, 775, 288, 5411, 9507, 273, 756, 18, 588, 17610, 5621, ...
public abstract void open(IMylarContextNode node);
public abstract void open(IMylarElement node);
public abstract void open(IMylarContextNode node);
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f5bfb4859762da1543c326b182b2de34d0d94c08/IMylarUiBridge.java/buggy/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/ui/IMylarUiBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 918, 1696, 12, 3445, 93, 7901, 1042, 907, 756, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 918, 1696, 12, 3445, 93, 7901, 1042, 907, 756, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
keyConfigurationDefinitions = new ArrayList(keyConfigurationDefinitions); Iterator iterator = keyConfigurationDefinitions.iterator();
keyConfigurationDefinitions = new ArrayList(keyConfigurationDefinitions); Iterator iterator = keyConfigurationDefinitions.iterator();
static void writeKeyConfigurationDefinitions( IMemento memento, String name, List keyConfigurationDefinitions) { if (memento == null || name == null || keyConfigurationDefinitions == null) throw new NullPointerException(); keyConfigurationDefinitions = new ArrayList(keyConfigurationDefinitions); Iterator iterator = keyConfigurationDefinitions.iterator(); while (iterator.hasNext()) Util.assertInstance( iterator.next(), KeyConfigurationDefinition.class); iterator = keyConfigurationDefinitions.iterator(); while (iterator.hasNext()) writeKeyConfigurationDefinition( memento.createChild(name), (KeyConfigurationDefinition) iterator.next()); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/664efbbd6fd6dba5c4d118b10afe31ab34b6890a/Persistence.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/Persistence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 918, 1045, 653, 1750, 7130, 12, 202, 202, 3445, 820, 83, 312, 820, 83, 16, 202, 202, 780, 508, 16, 202, 202, 682, 498, 1750, 7130, 13, 288, 202, 202, 430, 261, 81, 820, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 918, 1045, 653, 1750, 7130, 12, 202, 202, 3445, 820, 83, 312, 820, 83, 16, 202, 202, 780, 508, 16, 202, 202, 682, 498, 1750, 7130, 13, 288, 202, 202, 430, 261, 81, 820, 8...
BangUI.play(BangUI.FeedbackSound.INVALID_ACTION); return;
for ( ; idx < poster.badgeIds.length; idx++) { poster.badgeIds[idx] = -1; } _posterView.buildPoster();
protected void posterIsReady() { // respond to new poster data add(_posterView, GroupLayout.FIXED); add(_right); // add the inspector after the palette is initialized _palette.setInspector(new Inspector() { public void iconUpdated(SelectableIcon icon, boolean selected) { PosterInfo poster = _posterView._poster; // make sure the poster view is ready if (poster == null) { BangUI.play(BangUI.FeedbackSound.INVALID_ACTION); return; } Badge badge = (Badge) ((ItemIcon) icon).getItem(); int badgeCode = badge.getType().code(); for (int i = 0; i < PosterInfo.BADGES; i ++) { if (poster.badgeIds[i] == badgeCode && !selected) { poster.badgeIds[i] = -1; } else if (poster.badgeIds[i] == -1 && selected) { poster.badgeIds[i] = badgeCode; } else { continue; } _posterView.buildPoster(); return; } // this should not happen BangUI.play(BangUI.FeedbackSound.INVALID_ACTION); return; } }); }
8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/fc5d205563b6ea17a37c64d5651263793b6f9131/EditPosterView.java/buggy/src/java/com/threerings/bang/client/EditPosterView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1603, 264, 2520, 8367, 1435, 565, 288, 3639, 368, 6846, 358, 394, 1603, 264, 501, 3639, 527, 24899, 2767, 264, 1767, 16, 15462, 18, 30406, 1769, 3639, 527, 24899, 4083, 1769, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1603, 264, 2520, 8367, 1435, 565, 288, 3639, 368, 6846, 358, 394, 1603, 264, 501, 3639, 527, 24899, 2767, 264, 1767, 16, 15462, 18, 30406, 1769, 3639, 527, 24899, 4083, 1769, 3...
public PatternDescr lhs() throws RecognitionException { PatternDescr d; PatternDescr l = null; d=null; try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:575:17: (l= lhs_or ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:575:17: l= lhs_or { following.push(FOLLOW_lhs_or_in_lhs1351); l=lhs_or(); following.pop(); d = l; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/ca87e40b5754cd366785b207f8cd109258275f53/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 8499, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 6830, 16198, 328, 273, 446, 31, 540, 202, 202, 72, 33, 2011, 31, 540, 202, 3639, 775, 288, 5411, 368, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 8499, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 6830, 16198, 328, 273, 446, 31, 540, 202, 202, 72, 33, 2011, 31, 540, 202, 3639, 775, 288, 5411, 368, 3...
msg.setSrc(null);
if(src != null && src.getAdditionalData() != null) { msg.setSrc(new IpAddress()); ((IpAddress)msg.getSrc()).setAdditionalData(src.getAdditionalData()); } else { msg.setSrc(null); }
void nullAddresses(Message msg, IpAddress dest, IpAddress src) { if(!dest.isMulticastAddress()) { // unicast msg.setDest(null); msg.setSrc(null); } else { // multicast msg.setDest(null); if(src != null) msg.setSrc(new IpAddress(src.getPort(), false)); } }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/6cc151b066a34f8126fbf501ecd2b438fe48b28e/UDP.java/buggy/src/org/jgroups/protocols/UDP.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 446, 7148, 12, 1079, 1234, 16, 14709, 1887, 1570, 16, 14709, 1887, 1705, 13, 288, 3639, 309, 12, 5, 10488, 18, 291, 5049, 12544, 1887, 10756, 288, 368, 640, 12544, 5411, 1234, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 446, 7148, 12, 1079, 1234, 16, 14709, 1887, 1570, 16, 14709, 1887, 1705, 13, 288, 3639, 309, 12, 5, 10488, 18, 291, 5049, 12544, 1887, 10756, 288, 368, 640, 12544, 5411, 1234, 18, ...
textColor = cLabel.getForeground();
public CustomWindow(LociDataBrowser db, ImagePlus imp, ImageCanvas canvas) { super(imp, canvas); this.db = db; ow = null; String title = imp.getTitle(); this.setTitle(title.substring(title.lastIndexOf(File.separatorChar) + 1)); //setup which variables the sliders are set to zMap = 0; tMap = 1; cMap = 2; prevZ = 0; prevT = 1; setup = false; // create panel for image canvas Panel imagePane = new Panel() { public void paint(Graphics g) { // paint bounding box here instead of in ImageWindow directly Point loc = ic.getLocation(); Dimension csize = ic.getSize(); g.drawRect(loc.x - 1, loc.y - 1, csize.width + 1, csize.height + 1); } };// imagePane.setLayout(getLayout()); // ImageLayout// imagePane.setBackground(Color.white); // redo layout for master window remove(ic); imagePane.add(ic); // Z scroll bar label zLabel = new JLabel(zString); zLabel.setHorizontalTextPosition(JLabel.LEFT); if (!db.hasZ) zLabel.setEnabled(false); // T scroll bar label tLabel = new JLabel(tString); tLabel.setHorizontalTextPosition(JLabel.LEFT); if (!db.hasT) tLabel.setEnabled(false); // Z scroll bar zSliceSel = new JScrollBar(JScrollBar.HORIZONTAL, 1, 1, 1, db.hasZ ? db.numZ + 1 : 2); if (!db.hasZ) zSliceSel.setEnabled(false); zSliceSel.addAdjustmentListener(this); zSliceSel.setUnitIncrement(1); zSliceSel.setBlockIncrement(5); // T scroll bar tSliceSel = new JScrollBar(JScrollBar.HORIZONTAL, 1, 1, 1, db.hasT ? db.numT + 1 : 2); if (!db.hasT) tSliceSel.setEnabled(false); tSliceSel.addAdjustmentListener(this); tSliceSel.setUnitIncrement(1); tSliceSel.setBlockIncrement(5); // animate button animate = new JButton(ANIM_STRING); if (!db.hasT && !db.hasZ) animate.setEnabled(false); animate.addActionListener(this); // options button options = new JButton("Options"); options.setActionCommand("options"); options.addActionListener(this); options.setEnabled(true); // OME-XML button boolean canDoXML = true; try { // disable XML button if proper libraries are not installed Class.forName("org.openmicroscopy.xml.OMENode"); // ome-java.jar Class.forName("loci.ome.notebook.MetadataNotebook"); // ome-notebook.jar Class.forName("com.jgoodies.forms.layout.FormLayout"); // forms-1.0.4.jar } catch (Throwable e) { canDoXML = false; } xml = null; if (canDoXML) { xml = new JButton("Metadata"); xml.addActionListener(this); xml.setActionCommand("xml"); } channelBox = new JCheckBox("Transmitted"); cLabel = new JLabel("channel"); textColor = cLabel.getForeground(); SpinnerModel model = new SpinnerNumberModel(1, 1, db.numC, 1); channelSpin = new JSpinner(model); channelSpin.setEditor(new JSpinner.NumberEditor(channelSpin)); if(db.numC > 2) channelBox.setVisible(false); else { channelSpin.setVisible(false); cLabel.setForeground(Color.white); } // repack to take extra panel into account c = db.numC; if (db.numC * db.numT * db.numZ == imp.getStackSize()) { c = db.numC; } else c = 1; JPanel zPanel = new JPanel(new BorderLayout()); JPanel tPanel = new JPanel(new BorderLayout()); zPanel.add(zSliceSel,BorderLayout.CENTER); tPanel.add(tSliceSel,BorderLayout.CENTER); if(db.virtual) { zIndicator = new CacheIndicator(zSliceSel); tIndicator = new CacheIndicator(tSliceSel); zPanel.add(zIndicator,BorderLayout.SOUTH); tPanel.add(tIndicator,BorderLayout.SOUTH); } //setup the layout lowPane = new Panel(); FormLayout layout = new FormLayout( TAB + ",pref," + TAB + ",pref:grow," + TAB + ",pref," + TAB + ",pref," + TAB + ",pref," + TAB + ",pref," + TAB, TAB + ",pref," + TAB + ",pref," + TAB + ",pref," + TAB); lowPane.setLayout(layout); lowPane.setBackground(Color.white); cc = new CellConstraints(); lowPane.add(zLabel, cc.xy(2,2)); lowPane.add(zPanel, cc.xyw(4,2,5)); lowPane.add(channelBox, cc.xy(12,2)); lowPane.add(tLabel, cc.xy(2,4)); lowPane.add(tPanel, cc.xyw(4,4,5)); lowPane.add(cLabel, cc.xy(10,4)); lowPane.add(channelSpin, cc.xy(12,4)); lowPane.add(options, cc.xy(6,6)); if(xml != null) lowPane.add(xml, cc.xy(8,6)); lowPane.add(animate, cc.xyw(10,6,3, "right,center")); setC(2); setBackground(Color.white); FormLayout layout2 = new FormLayout( TAB + ",pref:grow," + TAB, TAB + "," + TAB + ",pref:grow," + TAB + ",pref," + TAB); setLayout(layout2); CellConstraints cc2 = new CellConstraints(); add(imagePane, cc2.xyw(1,3,3)); add(lowPane, cc2.xy(2,5)); //final GUI tasks pack(); showSlice(z, t, c); // listen for arrow key presses addKeyListener(this); ic.addKeyListener(this); }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/10b7736cc57ec6d68a6821b26159769bff1e9cb4/CustomWindow.java/buggy/loci/plugins/browser/CustomWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 6082, 3829, 12, 1333, 77, 751, 9132, 1319, 16, 3421, 13207, 1646, 16, 3421, 12971, 5953, 13, 288, 565, 2240, 12, 14532, 16, 5953, 1769, 565, 333, 18, 1966, 273, 1319, 31, 565, 252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6082, 3829, 12, 1333, 77, 751, 9132, 1319, 16, 3421, 13207, 1646, 16, 3421, 12971, 5953, 13, 288, 565, 2240, 12, 14532, 16, 5953, 1769, 565, 333, 18, 1966, 273, 1319, 31, 565, 252...
OPT_Instruction s2 = CPOS(s,MIR_LowTableSwitch.create(MIR_LOWTABLESWITCH, newIndex, number*2));
OPT_Instruction s2 = CPOS(s,MIR_LowTableSwitch.create(MIR_LOWTABLESWITCH, newIndex.copyRO(), number*2));
protected final void LOWTABLESWITCH(OPT_Instruction s) { // (1) We're changing index from a U to a DU. // Inject a fresh copy instruction to make sure we aren't // going to get into trouble (if someone else was also using index). OPT_RegisterOperand newIndex = regpool.makeTempInt(); EMIT(MIR_Move.create(IA32_MOV, newIndex, LowTableSwitch.getIndex(s))); int number = LowTableSwitch.getNumberOfTargets(s); OPT_Instruction s2 = CPOS(s,MIR_LowTableSwitch.create(MIR_LOWTABLESWITCH, newIndex, number*2)); for (int i=0; i<number; i++) { MIR_LowTableSwitch.setTarget(s2,i,LowTableSwitch.getTarget(s,i)); MIR_LowTableSwitch.setBranchProfile(s2,i,LowTableSwitch.getBranchProfile(s,i)); } EMIT(s2); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/e267b8a8f18790dd3d90c3c0945a3440ab271c46/OPT_BURS_Helpers.java/buggy/rvm/src/vm/arch/intel/compilers/optimizing/ir/conversions/lir2mir/OPT_BURS_Helpers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 918, 1806, 59, 7775, 18746, 25588, 12, 15620, 67, 11983, 272, 13, 288, 565, 368, 261, 21, 13, 1660, 4565, 12770, 770, 628, 279, 587, 358, 279, 463, 57, 18, 565, 368, 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, 4750, 727, 918, 1806, 59, 7775, 18746, 25588, 12, 15620, 67, 11983, 272, 13, 288, 565, 368, 261, 21, 13, 1660, 4565, 12770, 770, 628, 279, 587, 358, 279, 463, 57, 18, 565, 368, 377, 2...
}
}
public final void write_value ( final org.omg.CORBA.TypeCode tc, final org.omg.CORBA.portable.InputStream in ) { //Debug.myAssert( tc != null, "Illegal null pointer for TypeCode"); if (tc == null) { throw new org.omg.CORBA.BAD_PARAM("TypeCode is null"); } int kind = ((TypeCode)tc)._kind(); //int kind = tc.kind().value(); switch (kind) { case TCKind._tk_null: case TCKind._tk_void: break; case TCKind._tk_boolean: write_boolean( in.read_boolean()); break; case TCKind._tk_char: write_char( in.read_char()); break; case TCKind._tk_wchar: write_wchar( in.read_wchar()); break; case TCKind._tk_octet: write_octet( in.read_octet()); break; case TCKind._tk_short: write_short( in.read_short()); break; case TCKind._tk_ushort: write_ushort(in.read_ushort()); break; case TCKind._tk_long: write_long( in.read_long()); break; case TCKind._tk_ulong: write_ulong( in.read_ulong()); break; case TCKind._tk_float: write_float( in.read_float()); break; case TCKind._tk_double: write_double(in.read_double()); break; case TCKind._tk_longlong: write_longlong(in.read_longlong()); break; case TCKind._tk_ulonglong: write_ulonglong( in.read_ulonglong()); break; case TCKind._tk_any: write_any( in.read_any()); break; case TCKind._tk_TypeCode: write_TypeCode(in.read_TypeCode()); break; case TCKind._tk_Principal: throw new org.omg.CORBA.NO_IMPLEMENT ("Principal deprecated"); case TCKind._tk_objref: write_Object( in.read_Object()); break; case TCKind._tk_string: write_string( in.read_string()); break; case TCKind._tk_wstring: write_wstring( in.read_wstring()); break; case TCKind._tk_array: try { int length = tc.length(); int a_kind = ((TypeCode)tc.content_type())._kind(); if( a_kind == TCKind._tk_octet ) { check( length ); in.read_octet_array( buffer, pos, length); index+= length; pos += length; } else { for( int i = 0; i < length; i++ ) write_value( tc.content_type(), in ); } } catch ( org.omg.CORBA.TypeCodePackage.BadKind b ) {} break; case TCKind._tk_sequence: try { int len = in.read_long(); write_long(len); int s_kind = ((TypeCode)tc.content_type())._kind(); org.omg.CORBA.TypeCode content_tc = tc.content_type(); for( int i = 0; i < len; i++ ) write_value( content_tc, in ); } catch ( org.omg.CORBA.TypeCodePackage.BadKind b ) { b.printStackTrace(); } break; case TCKind._tk_except: write_string( in.read_string()); // don't break, fall through to ... case TCKind._tk_struct: { try { for( int i = 0; i < tc.member_count(); i++) write_value( tc.member_type(i), in ); } catch ( org.omg.CORBA.TypeCodePackage.BadKind b ) {} catch ( org.omg.CORBA.TypeCodePackage.Bounds b ) {} break; } case TCKind._tk_enum: { write_long( in.read_long() ); break; } case TCKind._tk_union: { try { TypeCode disc = (TypeCode) tc.discriminator_type(); disc = disc.originalType (); int def_idx = tc.default_index(); int member_idx = -1; switch( disc._kind() ) { case TCKind._tk_short: { short s = in.read_short(); write_short(s); for(int i = 0 ; i < tc.member_count() ; i++) { if(i != def_idx) { if(s == tc.member_label(i).extract_short()) { member_idx = i; break; } } } break; } case TCKind._tk_ushort: { short s = in.read_ushort(); write_ushort(s); for(int i = 0 ; i < tc.member_count() ; i++) { if(i != def_idx) { if(s == tc.member_label(i).extract_ushort()) { member_idx = i; break; } } } break; } case TCKind._tk_long: { int s = in.read_long(); write_long(s); for(int i = 0 ; i < tc.member_count() ; i++) { if(i != def_idx) { if(s == tc.member_label(i).extract_long()) { member_idx = i; break; } } } break; } case TCKind._tk_ulong: { int s = in.read_ulong(); write_ulong(s); for(int i = 0 ; i < tc.member_count() ; i++) { if(i != def_idx) { if(s == tc.member_label(i).extract_ulong()) { member_idx = i; break; } } } break; } case TCKind._tk_longlong: { long s = in.read_longlong(); write_longlong(s); for(int i = 0 ; i < tc.member_count() ; i++) { if(i != def_idx) { if(s == tc.member_label(i).extract_longlong()) { member_idx = i; break; } } } break; } case TCKind._tk_ulonglong: { long s = in.read_ulonglong(); write_ulonglong(s); for(int i = 0 ; i < tc.member_count() ; i++) { if(i != def_idx) { if(s == tc.member_label(i).extract_ulonglong()) { member_idx = i; break; } } } break; } case TCKind._tk_boolean: { boolean s = in.read_boolean(); write_boolean(s); for(int i = 0 ; i < tc.member_count() ; i++) { if(i != def_idx) { if(s == tc.member_label(i).extract_boolean()) { member_idx = i; break; } } } break; } case TCKind._tk_enum: { int s = in.read_long(); write_long(s); for( int i = 0 ; i < tc.member_count(); i++ ) { if( i != def_idx) { int label = tc.member_label(i).create_input_stream().read_long(); /* we have to use the any's input stream because enums are not inserted as longs */ if( s == label) { member_idx = i; break; } } } break; } case TCKind._tk_char: { char s = in.read_char(); write_char(s); for(int i = 0 ; i < tc.member_count() ; i++) { if(i != def_idx) { if(s == tc.member_label(i).extract_char()) { member_idx = i; break; } } } break; } default: throw new org.omg.CORBA.MARSHAL ("Invalid union discriminator type: " + disc); } // write the member or default value, if any // (if the union has no explicit default but the // the case labels do not cover the range of // possible discriminator values, there may be // several "implicit defaults" without associated // union values. if( member_idx != -1 ) { write_value( tc.member_type( member_idx ), in ); } else if( def_idx != -1 ) { write_value( tc.member_type( def_idx ), in ); } } catch ( org.omg.CORBA.TypeCodePackage.BadKind bk ){} catch ( org.omg.CORBA.TypeCodePackage.Bounds b ){} // recursiveTCStack.pop(); break; } case TCKind._tk_alias: { try { write_value( tc.content_type(), in ); } catch ( org.omg.CORBA.TypeCodePackage.BadKind b ){} break; } case 0xffffffff: { try { org.omg.CORBA.TypeCode _tc = (org.omg.CORBA.TypeCode)recursiveTCMap.get(tc.id()); if( _tc == null ) { throw new org.omg.CORBA.MARSHAL("Recursive TypeCode not found for " + tc.id()); } write_value( _tc , in ); } catch ( org.omg.CORBA.TypeCodePackage.BadKind b ) { b.printStackTrace(); } break; } default: throw new org.omg.CORBA.MARSHAL("Cannot handle TypeCode with kind " + kind); } }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/814ceec0c432f5f91851da7a7b577943754681bf/CDROutputStream.java/clean/src/org/jacorb/orb/CDROutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1045, 67, 1132, 261, 727, 2358, 18, 362, 75, 18, 9428, 12536, 18, 15460, 1715, 16, 4766, 565, 727, 2358, 18, 362, 75, 18, 9428, 12536, 18, 655, 429, 18, 4348, 316, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 1045, 67, 1132, 261, 727, 2358, 18, 362, 75, 18, 9428, 12536, 18, 15460, 1715, 16, 4766, 565, 727, 2358, 18, 362, 75, 18, 9428, 12536, 18, 655, 429, 18, 4348, 316, 262...
result.setParent( (CElement)wrapper.getElement() );
result.setParent( wrapper.getElement() );
public Object simpleDeclarationBegin(Object container) { ICElementWrapper wrapper = (ICElementWrapper)container; Object parent = wrapper.getElement(); SimpleDeclarationWrapper result = new SimpleDeclarationWrapper(); if( wrapper instanceof SimpleDeclarationWrapper ){ result.setParent( (CElement)wrapper.getElement() ); result.setCurrentVisibility(((SimpleDeclarationWrapper)wrapper).getCurrentVisibility()); } else if ( wrapper instanceof TranslationUnitWrapper ) result.setParent( (TranslationUnit)wrapper.getElement()); return result; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/aacea7223cbaa112b8e930fd2f33739b1da73851/NewModelBuilder.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/model/NewModelBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 4143, 6094, 8149, 12, 921, 1478, 13, 288, 202, 202, 2871, 1046, 3611, 4053, 273, 261, 2871, 1046, 3611, 13, 3782, 31, 3196, 202, 921, 982, 273, 4053, 18, 21336, 5621, 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, 1033, 4143, 6094, 8149, 12, 921, 1478, 13, 288, 202, 202, 2871, 1046, 3611, 4053, 273, 261, 2871, 1046, 3611, 13, 3782, 31, 3196, 202, 921, 982, 273, 4053, 18, 21336, 5621, 20...
if (getDisplayCombo() != null) getDisplayCombo().styleUpdated(getMessageProxy().getDisplayMode(), getMessageProxy().getHeaderMode()); if (getHeaderCombo() != null && getHeaderCombo() != getDisplayCombo()) { getHeaderCombo().styleUpdated(getMessageProxy().getDisplayMode(), getMessageProxy().getHeaderMode()); } if (! contentIsNull) { if (hasAttachments) { try { otherEditorPane.setContentType(finalContentType); otherEditorPane.setEditable(false); otherEditorPane.setText(finalMessageText); otherEditorPane.setCaretPosition(0); } catch (Exception e) { otherEditorPane.setEditorKit(new javax.swing.text.StyledEditorKit()); otherEditorPane.setEditable(false); otherEditorPane.setText(finalMessageText); otherEditorPane.setCaretPosition(0); } } else { try { editorPane.setContentType(finalContentType); editorPane.setEditable(false); editorPane.setText(finalMessageText); editorPane.setCaretPosition(0); } catch (Exception e) { editorPane.setEditorKit(new javax.swing.text.StyledEditorKit()); editorPane.setEditable(false); editorPane.setText(finalMessageText); editorPane.setCaretPosition(0); } } } if (hasAttachments) { attachmentPanel = new AttachmentPane(getMessageProxy()); fillAttachmentSlot(attachmentPanel); ((CardLayout) getLayout()).show(ReadMessageDisplayPanel.this, WITH_ATTACHMENTS); editorStatus = WITH_ATTACHMENTS; if (splitPane != null && attachmentPanel != null) { double paneHeight = splitPane.getSize().getHeight(); if (paneHeight <= 0) paneHeight = splitPane.getPreferredSize().getHeight(); splitPane.setDividerLocation((int)(paneHeight - attachmentPanel.getPreferredSize().getHeight())); } else { splitPane.setDividerLocation(400); } } else { ((CardLayout) getLayout()).show(ReadMessageDisplayPanel.this, WITHOUT_ATTACHMENTS); editorStatus = WITHOUT_ATTACHMENTS; } if (hasEncryption) { net.suberic.pooka.gui.crypto.CryptoStatusDisplay csd = new net.suberic.pooka.gui.crypto.CryptoPanel(); setCryptoStatusDisplay(csd); MessageCryptoInfo cryptoInfo = getMessageProxy().getMessageInfo().getCryptoInfo(); if (cryptoInfo != null) csd.cryptoUpdated(cryptoInfo); fillCryptoSlot((JComponent) csd); } else { fillCryptoSlot(null); } }
ReadMessageDisplayPanel.this.repaint(); }
public void run() { if (getDisplayCombo() != null) getDisplayCombo().styleUpdated(getMessageProxy().getDisplayMode(), getMessageProxy().getHeaderMode()); if (getHeaderCombo() != null && getHeaderCombo() != getDisplayCombo()) { getHeaderCombo().styleUpdated(getMessageProxy().getDisplayMode(), getMessageProxy().getHeaderMode()); } if (! contentIsNull) { if (hasAttachments) { try { otherEditorPane.setContentType(finalContentType); otherEditorPane.setEditable(false); otherEditorPane.setText(finalMessageText); otherEditorPane.setCaretPosition(0); } catch (Exception e) { // if we can't show the html, just set the type as text/plain. otherEditorPane.setEditorKit(new javax.swing.text.StyledEditorKit()); otherEditorPane.setEditable(false); otherEditorPane.setText(finalMessageText); otherEditorPane.setCaretPosition(0); } } else { try { editorPane.setContentType(finalContentType); editorPane.setEditable(false); editorPane.setText(finalMessageText); editorPane.setCaretPosition(0); } catch (Exception e) { // if we can't show the html, just set the type as // text/plain. editorPane.setEditorKit(new javax.swing.text.StyledEditorKit()); editorPane.setEditable(false); editorPane.setText(finalMessageText); editorPane.setCaretPosition(0); } } } if (hasAttachments) { attachmentPanel = new AttachmentPane(getMessageProxy()); fillAttachmentSlot(attachmentPanel); ((CardLayout) getLayout()).show(ReadMessageDisplayPanel.this, WITH_ATTACHMENTS); editorStatus = WITH_ATTACHMENTS; if (splitPane != null && attachmentPanel != null) { double paneHeight = splitPane.getSize().getHeight(); if (paneHeight <= 0) paneHeight = splitPane.getPreferredSize().getHeight(); splitPane.setDividerLocation((int)(paneHeight - attachmentPanel.getPreferredSize().getHeight())); } else { splitPane.setDividerLocation(400); } } else { ((CardLayout) getLayout()).show(ReadMessageDisplayPanel.this, WITHOUT_ATTACHMENTS); editorStatus = WITHOUT_ATTACHMENTS; } if (hasEncryption) { net.suberic.pooka.gui.crypto.CryptoStatusDisplay csd = new net.suberic.pooka.gui.crypto.CryptoPanel(); setCryptoStatusDisplay(csd); MessageCryptoInfo cryptoInfo = getMessageProxy().getMessageInfo().getCryptoInfo(); if (cryptoInfo != null) csd.cryptoUpdated(cryptoInfo); fillCryptoSlot((JComponent) csd); } else { fillCryptoSlot(null); } }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/f69c933dc39cdef4b8531a5b9321e3efb8f4fd7b/ReadMessageDisplayPanel.java/clean/net/suberic/pooka/gui/ReadMessageDisplayPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 225, 1071, 918, 1086, 1435, 288, 202, 565, 309, 261, 588, 4236, 16156, 1435, 480, 446, 13, 202, 1377, 13854, 16156, 7675, 4060, 7381, 12, 24906, 3886, 7675, 588, 4236, 2309, 9334, 2381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 225, 1071, 918, 1086, 1435, 288, 202, 565, 309, 261, 588, 4236, 16156, 1435, 480, 446, 13, 202, 1377, 13854, 16156, 7675, 4060, 7381, 12, 24906, 3886, 7675, 588, 4236, 2309, 9334, 2381, ...
if(get.isPersistentForever())
if(get.isPersistentForever()) {
public void finishedClientRequest(ClientRequest get) { ClientRequest dropped = null; synchronized(this) { if(runningPersistentRequests.remove(get)) completedUnackedRequests.push(get); if(completedUnackedRequests.size() > MAX_UNACKED_REQUESTS) { clientRequestsByIdentifier.remove(dropped.getIdentifier()); dropped = (ClientRequest) completedUnackedRequests.pop(); } } if(dropped != null) { dropped.dropped(); } if(get.isPersistentForever()) server.forceStorePersistentRequests(); }
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/3175efee7104e8dc04680cf36febcfbe13f79918/FCPClient.java/buggy/src/freenet/node/fcp/FCPClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6708, 1227, 691, 12, 1227, 691, 336, 13, 288, 202, 202, 1227, 691, 14611, 273, 446, 31, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 8704, 11906, 6421, 18, 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, 225, 202, 482, 918, 6708, 1227, 691, 12, 1227, 691, 336, 13, 288, 202, 202, 1227, 691, 14611, 273, 446, 31, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 8704, 11906, 6421, 18, 4...
log.error(timeout);
System.err.println(timeout);
public void run() { Data data; Message msg; Object obj; boolean started=false; long start=0, stop=0; long current_value=0, tmp=0, num_values=0; long total_msgs=0, total_time=0, msgs_per_sec; while(true) { try { obj=channel.receive(0); if(obj instanceof View) System.out.println("** view: " + obj); else if(obj instanceof Message) { msg=(Message)obj; data=(Data)msg.getObject(); if(data instanceof StartData) { if(started) { log.error("UnicastTest.run(): received START data, but am already processing data"); continue; } else { started=true; current_value=0; // first value to be received tmp=0; num_values=((StartData)data).num_values; start=System.currentTimeMillis(); } } else if(data instanceof Value) { tmp=((Value)data).value; if(current_value + 1 != tmp) { log.error("-- message received (" + tmp + ") is not 1 greater than " + current_value); } else { current_value++; if(current_value % 100 == 0) System.out.println("received " + current_value); if(current_value >= num_values) { stop=System.currentTimeMillis(); total_time=stop - start; msgs_per_sec=(long)(num_values / (total_time / 1000.0)); System.out.println("-- received " + num_values + " messages in " + total_time + " ms (" + msgs_per_sec + " messages/sec)"); started=false; if(exit_on_end) System.exit(0); continue; } } } } } catch(ChannelNotConnectedException not_connected) { log.error(not_connected); break; } catch(ChannelClosedException closed_ex) { log.error(closed_ex); break; } catch(TimeoutException timeout) { log.error(timeout); break; } catch(Throwable t) { log.error(t); started=false; current_value=0; tmp=0; Util.sleep(1000); } } // System.out.println("UnicastTest.run(): receiver thread terminated"); }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/5ad015d9a78e1da3350d9b398b46b2f5d4508564/UnicastTest.java/clean/tests/other/org/jgroups/tests/UnicastTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 1910, 501, 31, 3639, 2350, 1234, 31, 3639, 1033, 1081, 31, 3639, 1250, 5746, 33, 5743, 31, 3639, 1525, 787, 33, 20, 16, 2132, 33, 20, 31, 3639, 1525, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1435, 288, 3639, 1910, 501, 31, 3639, 2350, 1234, 31, 3639, 1033, 1081, 31, 3639, 1250, 5746, 33, 5743, 31, 3639, 1525, 787, 33, 20, 16, 2132, 33, 20, 31, 3639, 1525, ...
if(channelAttributeValues.put(channelSubscribeId,l)!=null)
if(channelAttributeValues.put(channelSubscribeId,l)!=null && log.isDebugEnabled())
public void addChannel(String channelSubscribeId) { // check if the channel is there. In general it might be ok to use this functon to default // all of the channel's parameters ArrayList l=new ArrayList(defaultChannelAttributeValues.size()); if(channelAttributeValues.put(channelSubscribeId,l)!=null) log.debug("ThemeStylesheetUserPreferences::addChannel() : Readding an existing channel (channelSubscribeId=\""+channelSubscribeId+"\"). All values will be set to default."); }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/addf4e78963dc257d14373157a7433f3dd6d8591/ThemeStylesheetUserPreferences.java/clean/source/org/jasig/portal/ThemeStylesheetUserPreferences.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2909, 12, 780, 1904, 16352, 548, 13, 288, 3639, 368, 866, 309, 326, 1904, 353, 1915, 18, 657, 7470, 518, 4825, 506, 1529, 358, 999, 333, 12882, 265, 358, 805, 3639, 368,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 2909, 12, 780, 1904, 16352, 548, 13, 288, 3639, 368, 866, 309, 326, 1904, 353, 1915, 18, 657, 7470, 518, 4825, 506, 1529, 358, 999, 333, 12882, 265, 358, 805, 3639, 368,...
return;
return false;
private synchronized void foundCommunity(String community_name, Community community) { if (logger.isDebugEnabled()) logger.debug("Community = " + community_name); if (this.community_name == null) { getCommunity(community_name, community); if (!shouldNotify(this.community)) { this.community = null; return; } this.community_name = community_name; setChanged(); notifyObservers(community_name); clearChanged(); if(logger.isDebugEnabled()) logger.debug(countObservers() + " observers notified that community=" +community_name); } }
7173 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7173/304ba0869c52835b86a0645f6ffa579bd6009302/CommunityFinder.java/clean/qos/src/org/cougaar/core/qos/ca/CommunityFinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 1392, 12136, 13352, 12, 780, 19833, 67, 529, 16, 25083, 377, 16854, 13352, 19833, 13, 377, 288, 202, 430, 261, 4901, 18, 291, 2829, 1526, 10756, 202, 565, 1194, 18, 4148,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 1392, 12136, 13352, 12, 780, 19833, 67, 529, 16, 25083, 377, 16854, 13352, 19833, 13, 377, 288, 202, 430, 261, 4901, 18, 291, 2829, 1526, 10756, 202, 565, 1194, 18, 4148,...
weapon.minimumRange = 0;
weapon.minimumRange = WEAPON_NA;
public static WeaponType createAC20() { WeaponType weapon = new WeaponType(); weapon.name = "Auto Cannon/20"; weapon.setInternalName(weapon.name); weapon.addLookupName("IS Auto Cannon/20"); weapon.addLookupName("ISAC20"); weapon.addLookupName("IS Autocannon/20"); weapon.heat = 7; weapon.damage = 20; weapon.rackSize = 20; weapon.ammoType = AmmoType.T_AC; weapon.minimumRange = 0; weapon.shortRange = 3; weapon.mediumRange = 6; weapon.longRange = 9; weapon.tonnage = 14.0f; weapon.criticals = 10; weapon.flags |= F_DIRECT_FIRE; weapon.bv = 178; return weapon; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/401ca1b195eaf75aa5b772970fd108eac60e1389/WeaponType.java/buggy/megamek/src/megamek/common/WeaponType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1660, 28629, 559, 752, 2226, 3462, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 3639, 732, 28629, 18, 529, 273, 315, 4965, 385, 1072, 265, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1660, 28629, 559, 752, 2226, 3462, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 3639, 732, 28629, 18, 529, 273, 315, 4965, 385, 1072, 265, 1...
if (this.location!=them.getLocation()) return this.location.compareTo(them.getLocation());
if (!this.location.equals(them.getLocation())) return this.location.compareTo(them.getLocation());
public int compareTo(Object o) { // Hibernate comparison - we haven't been populated yet if (this.docref==null) return -1; // Normal comparison RankedDocRef them = (RankedDocRef)o; if (this.rank!=them.getRank()) return this.rank - them.getRank(); if (this.location!=them.getLocation()) return this.location.compareTo(them.getLocation()); return this.docref.compareTo(them.getDocumentReference()); }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/3f1475c15cfc04783762872eb21ca2218b08315b/SimpleRankedDocRef.java/buggy/src/org/biojavax/SimpleRankedDocRef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9292, 12, 921, 320, 13, 288, 3639, 368, 670, 24360, 5826, 300, 732, 15032, 1404, 2118, 6737, 4671, 3639, 309, 261, 2211, 18, 2434, 1734, 631, 2011, 13, 327, 300, 21, 31, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9292, 12, 921, 320, 13, 288, 3639, 368, 670, 24360, 5826, 300, 732, 15032, 1404, 2118, 6737, 4671, 3639, 309, 261, 2211, 18, 2434, 1734, 631, 2011, 13, 327, 300, 21, 31, 3639...
public void visitItem(TreeItem item) { // rewind markup stream markupStream.setCurrentIndex(markupStart); // render component item.render(markupStream); rendered.rendered = true; }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/234acdada6bb523025df2bf64c707be9ba3f57d5/AbstractTree.java/buggy/wicket/src/java/wicket/markup/html/tree/AbstractTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 3757, 1180, 12, 2471, 1180, 761, 13, 4405, 202, 95, 25083, 202, 759, 12881, 9813, 1407, 25083, 202, 15056, 1228, 18, 542, 3935, 1016, 12, 15056, 1685, 1769, 6862, 6862, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 482, 918, 3757, 1180, 12, 2471, 1180, 761, 13, 4405, 202, 95, 25083, 202, 759, 12881, 9813, 1407, 25083, 202, 15056, 1228, 18, 542, 3935, 1016, 12, 15056, 1685, 1769, 6862, 6862, 95...
Iterator i = keyEventDispatchers.iterator ();
Iterator i = getKeyEventDispatchers().iterator();
public boolean dispatchEvent (AWTEvent e) { if (e instanceof WindowEvent) { Window target = (Window) e.getSource (); if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) setGlobalFocusedWindow (target); else if (e.id != WindowEvent.WINDOW_LOST_FOCUS && e.id != WindowEvent.WINDOW_DEACTIVATED) return false; target.dispatchEvent (e); return true; } else if (e instanceof FocusEvent) { Component target = (Component) e.getSource (); if (e.id == FocusEvent.FOCUS_GAINED && !(target instanceof Window)) { if (((FocusEvent) e).isTemporary ()) setGlobalFocusOwner (target); else setGlobalPermanentFocusOwner (target); } if (!(target instanceof Window)) target.dispatchEvent (e); return true; } else if (e instanceof KeyEvent) { // Loop through all registered KeyEventDispatchers, giving // each a chance to handle this event. Iterator i = keyEventDispatchers.iterator (); while (i.hasNext ()) { KeyEventDispatcher dispatcher = (KeyEventDispatcher) i.next (); if (dispatcher.dispatchKeyEvent ((KeyEvent) e)) return true; } // processKeyEvent checks if this event represents a focus // traversal key stroke. Component focusOwner = getGlobalPermanentFocusOwner (); processKeyEvent (focusOwner, (KeyEvent) e); if (e.isConsumed ()) return true; if (enqueueKeyEvent ((KeyEvent) e)) // This event was enqueued for dispatch at a later time. return true; else // This event wasn't handled by any of the registered // KeyEventDispatchers, and wasn't enqueued for dispatch // later, so send it to the default dispatcher. return dispatchKeyEvent ((KeyEvent) e); } return false; }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/a0a040160e6587688c585243fc9558a7195ab5d7/DefaultKeyboardFocusManager.java/buggy/libjava/java/awt/DefaultKeyboardFocusManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 15678, 261, 37, 8588, 1133, 425, 13, 225, 288, 565, 309, 261, 73, 1276, 6076, 1133, 13, 1377, 288, 3639, 6076, 1018, 273, 261, 3829, 13, 425, 18, 588, 1830, 261, 1769, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 15678, 261, 37, 8588, 1133, 425, 13, 225, 288, 565, 309, 261, 73, 1276, 6076, 1133, 13, 1377, 288, 3639, 6076, 1018, 273, 261, 3829, 13, 425, 18, 588, 1830, 261, 1769, 3639,...
Logger.error(this, "Ignoring incompatible node "+peer+" - peer.testnet="+testnetEnabled+" but node.testnet="+node.testnetEnabled); throw new PeerParseException("Ignoring incompatible node "+peer+" - peer.testnet="+testnetEnabled+" but node.testnet="+node.testnetEnabled);
String err = "Ignoring incompatible node "+peer+" - peer.testnet="+testnetEnabled+"("+testnet+") but node.testnet="+node.testnetEnabled; Logger.error(this, err); throw new PeerParseException(err);
public PeerNode(SimpleFieldSet fs, Node node2) throws FSParseException, PeerParseException { this.node = node2; String identityString = fs.get("identity"); try { identity = HexUtil.hexToBytes(identityString); } catch (NumberFormatException e) { throw new FSParseException(e); } MessageDigest md; try { md = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e2) { throw new Error(e2); } if(identity == null) throw new FSParseException("No identity"); identityHash = md.digest(identity); hashCode = Fields.hashCode(identityHash); version = fs.get("version"); String locationString = fs.get("location"); if(locationString == null) throw new FSParseException("No location"); currentLocation = new Location(locationString); String physical = fs.get("physical.udp"); if(physical == null) throw new FSParseException("No physical.udp"); peer = new Peer(physical); String name = fs.get("myName"); if(name == null) throw new FSParseException("No name"); myName = name; String testnet = fs.get("testnet"); testnetEnabled = Boolean.getBoolean(testnet); if(testnetEnabled != node.testnetEnabled) { Logger.error(this, "Ignoring incompatible node "+peer+" - peer.testnet="+testnetEnabled+" but node.testnet="+node.testnetEnabled); throw new PeerParseException("Ignoring incompatible node "+peer+" - peer.testnet="+testnetEnabled+" but node.testnet="+node.testnetEnabled); } // Setup incoming and outgoing setup ciphers byte[] nodeKey = node.identityHash; byte[] nodeKeyHash = node.identityHashHash; byte[] setupKeyHash = md.digest(identityHash); int digestLength = md.getDigestLength(); incomingSetupKey = new byte[digestLength]; for(int i=0;i<incomingSetupKey.length;i++) incomingSetupKey[i] = (byte) (nodeKey[i] ^ setupKeyHash[i]); outgoingSetupKey = new byte[digestLength]; for(int i=0;i<outgoingSetupKey.length;i++) outgoingSetupKey[i] = (byte) (nodeKeyHash[i] ^ identityHash[i]); Logger.minor(this, "Keys:\nIdentity: "+HexUtil.bytesToHex(node.myIdentity)+ "\nThisIdent: "+HexUtil.bytesToHex(identity)+ "\nNode: "+HexUtil.bytesToHex(nodeKey)+ "\nNode hash: "+HexUtil.bytesToHex(nodeKeyHash)+ "\nThis: "+HexUtil.bytesToHex(identityHash)+ "\nThis hash: "+HexUtil.bytesToHex(setupKeyHash)); try { incomingSetupCipher = new Rijndael(256,256); incomingSetupCipher.initialize(incomingSetupKey); outgoingSetupCipher = new Rijndael(256,256); outgoingSetupCipher.initialize(outgoingSetupKey); } catch (UnsupportedCipherException e1) { Logger.error(this, "Caught: "+e1); throw new Error(e1); } // Don't create trackers until we have a key currentTracker = null; previousTracker = null; timeLastSentPacket = -1; timeLastReceivedPacket = -1; timeLastReceivedSwapRequest = -1; randomizeMaxTimeBetweenPacketSends(); swapRequestsInterval = new SimpleRunningAverage(50, Node.MIN_INTERVAL_BETWEEN_INCOMING_SWAP_REQUESTS); // Not connected yet; need to handshake isConnected = false; messagesToSendNow = new LinkedList(); decrementHTLAtMaximum = node.random.nextFloat() < Node.DECREMENT_AT_MAX_PROB; decrementHTLAtMinimum = node.random.nextFloat() < Node.DECREMENT_AT_MIN_PROB; // FIXME maybe a simple binary RA would be better? pingNumber = node.random.nextLong(); pingAverage = new SimpleRunningAverage(20, 1); throttledPacketSendAverage = new SimpleRunningAverage(20, 1); }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/b968aabcfd29cf460c670a214da8addf1d039bda/PeerNode.java/buggy/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10669, 907, 12, 5784, 974, 694, 2662, 16, 2029, 756, 22, 13, 1216, 9247, 13047, 16, 10669, 13047, 288, 3639, 333, 18, 2159, 273, 756, 22, 31, 3639, 514, 4215, 780, 273, 2662, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10669, 907, 12, 5784, 974, 694, 2662, 16, 2029, 756, 22, 13, 1216, 9247, 13047, 16, 10669, 13047, 288, 3639, 333, 18, 2159, 273, 756, 22, 31, 3639, 514, 4215, 780, 273, 2662, 18, ...
.addMethod(m2.getClassName(), m2.methodName, m2.methodSig, m2.isStatic));
.addMethod(m2.getClassName(), m2.getSourceFileName(), m2.methodName, m2.methodSig, m2.isStatic));
private boolean checkSuper(MyMethod m, HashSet<MyMethod> others) { for (MyMethod m2 : others) { try { if (m.confusingMethodNames(m2) && Repository.instanceOf(m.className, m2.className)) { MyMethod m3 = new MyMethod(m.className, m2.methodName, m2.methodSig, m.isStatic); boolean r = others.contains(m3); if (r) continue; bugReporter.reportBug(new BugInstance(this, "NM_VERY_CONFUSING", HIGH_PRIORITY) .addClass(m.getClassName()) .addMethod(m.getClassName(), m.methodName, m.methodSig, m.isStatic) .addClass(m2.getClassName()) .addMethod(m2.getClassName(), m2.methodName, m2.methodSig, m2.isStatic)); return true; } } catch (ClassNotFoundException e) { } } return false; }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/aef9e4425e15eca206a02525ce558d58cd8ec68f/Naming.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/Naming.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 866, 8051, 12, 12062, 1305, 312, 16, 6847, 32, 12062, 1305, 34, 10654, 13, 288, 202, 202, 1884, 261, 12062, 1305, 312, 22, 294, 10654, 13, 288, 1082, 202, 698, 288, 950...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 866, 8051, 12, 12062, 1305, 312, 16, 6847, 32, 12062, 1305, 34, 10654, 13, 288, 202, 202, 1884, 261, 12062, 1305, 312, 22, 294, 10654, 13, 288, 1082, 202, 698, 288, 950...
String text = container.getFullPath().makeRelative().toString(); containerNameField.setText(text); containerNameField.setToolTipText(text); } }
String text = container.getFullPath().makeRelative().toString(); containerNameField.setText(text); containerNameField.setToolTipText(text); } }
public void containerSelectionChanged(IContainer container) { selectedContainer = container; if (allowNewContainerName) { if (container == null) { containerNameField.setText("");//$NON-NLS-1$ } else { String text = container.getFullPath().makeRelative().toString(); containerNameField.setText(text); containerNameField.setToolTipText(text); } } // fire an event so the parent can update its controls if (listener != null) { Event changeEvent = new Event(); changeEvent.type = SWT.Selection; changeEvent.widget = this; listener.handleEvent(changeEvent); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/8e7c72ceda3ed80aa8d03a8921de32470f1b8c25/ContainerSelectionGroup.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerSelectionGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1478, 6233, 5033, 12, 45, 2170, 1478, 13, 288, 3639, 3170, 2170, 273, 1478, 31, 3639, 309, 261, 5965, 1908, 2170, 461, 13, 288, 5411, 309, 261, 3782, 422, 446, 13, 288, 9506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1478, 6233, 5033, 12, 45, 2170, 1478, 13, 288, 3639, 3170, 2170, 273, 1478, 31, 3639, 309, 261, 5965, 1908, 2170, 461, 13, 288, 5411, 309, 261, 3782, 422, 446, 13, 288, 9506,...
private void initDataTypeValidators() { if ( fGrammarResolver != null ) { fDataTypeReg = (DatatypeValidatorFactoryImpl) fGrammarResolver.getDatatypeRegistry(); fDataTypeReg.initializeDTDRegistry(); } if ( fDataTypeReg != null ) { fValID = fDataTypeReg.getDatatypeValidator("ID" ); fValIDRef = fDataTypeReg.getDatatypeValidator("IDREF" ); fValIDRefs = fDataTypeReg.getDatatypeValidator("IDREFS" ); fValENTITY = fDataTypeReg.getDatatypeValidator("ENTITY" ); fValENTITIES = fDataTypeReg.getDatatypeValidator("ENTITIES" ); fValNMTOKEN = fDataTypeReg.getDatatypeValidator("NMTOKEN"); fValNMTOKENS = fDataTypeReg.getDatatypeValidator("NMTOKENS"); fValNOTATION = fDataTypeReg.getDatatypeValidator("NOTATION" ); } }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/1216860ae4f6ffa3301d832edabb5187a5280f80/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1208, 6273, 19420, 1435, 288, 2868, 309, 261, 284, 18576, 4301, 480, 446, 262, 288, 6647, 284, 6273, 1617, 273, 261, 20228, 5126, 1733, 2828, 13, 284, 18576, 4301, 18, 588, 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, 565, 3238, 918, 1208, 6273, 19420, 1435, 288, 2868, 309, 261, 284, 18576, 4301, 480, 446, 262, 288, 6647, 284, 6273, 1617, 273, 261, 20228, 5126, 1733, 2828, 13, 284, 18576, 4301, 18, 588, 202...
super(); this.owningClass = clazz; this.propertyName = propertyName; this.propertyType = propertyType; this.bean = new BeanWrapperImpl(this); }
super(); this.owningClass = clazz; this.propertyName = propertyName; this.propertyType = propertyType; this.bean = new BeanWrapperImpl(this); }
public ConstrainedProperty(Class clazz,String propertyName, Class propertyType) { super(); this.owningClass = clazz; this.propertyName = propertyName; this.propertyType = propertyType; this.bean = new BeanWrapperImpl(this); }
51826 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51826/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 735, 31142, 1396, 12, 797, 4003, 16, 780, 5470, 16, 1659, 21076, 13, 288, 202, 202, 9565, 5621, 202, 202, 2211, 18, 995, 310, 797, 273, 4003, 31, 202, 202, 2211, 18, 4468, 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, 225, 202, 482, 735, 31142, 1396, 12, 797, 4003, 16, 780, 5470, 16, 1659, 21076, 13, 288, 202, 202, 9565, 5621, 202, 202, 2211, 18, 995, 310, 797, 273, 4003, 31, 202, 202, 2211, 18, 4468, 4...
public Socket createSocket(InetAddress address, int port) throws IOException { return new Socket(address, port); }
public Socket createSocket(InetAddress address, int port) throws IOException { return new Socket(address, port); }
public Socket createSocket(InetAddress address, int port) throws IOException { return new Socket(address, port); }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/DefaultNetworkLayer.java/clean/src/gov/nist/core/net/DefaultNetworkLayer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8758, 752, 4534, 12, 382, 278, 1887, 1758, 16, 509, 1756, 13, 1216, 1860, 288, 3639, 327, 394, 8758, 12, 2867, 16, 1756, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8758, 752, 4534, 12, 382, 278, 1887, 1758, 16, 509, 1756, 13, 1216, 1860, 288, 3639, 327, 394, 8758, 12, 2867, 16, 1756, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -10...
case ModelPackage.CHART__SERIES_HINTS: return getSeriesHints();
public Object eGet(EStructuralFeature eFeature, boolean resolve) { switch (eDerivedStructuralFeatureID(eFeature)) { case ModelPackage.CHART__VERSION: return getVersion(); case ModelPackage.CHART__TYPE: return getType(); case ModelPackage.CHART__SUB_TYPE: return getSubType(); case ModelPackage.CHART__DESCRIPTION: return getDescription(); case ModelPackage.CHART__BLOCK: return getBlock(); case ModelPackage.CHART__DIMENSION: return getDimension(); case ModelPackage.CHART__SCRIPT: return getScript(); case ModelPackage.CHART__UNITS: return getUnits(); case ModelPackage.CHART__SERIES_THICKNESS: return new Double(getSeriesThickness()); case ModelPackage.CHART__SERIES_HINTS: return getSeriesHints(); case ModelPackage.CHART__GRID_COLUMN_COUNT: return new Integer(getGridColumnCount()); case ModelPackage.CHART__EXTENDED_PROPERTIES: return getExtendedProperties(); case ModelPackage.CHART__SAMPLE_DATA: return getSampleData(); } return eDynamicGet(eFeature, resolve); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/869b9dc91ef4dd13d07f589c6394484a744642f0/ChartImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ChartImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 15952, 12, 41, 14372, 4595, 425, 4595, 16, 1250, 2245, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 3164, 2261, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 15952, 12, 41, 14372, 4595, 425, 4595, 16, 1250, 2245, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 3164, 2261, 18, ...
Set<Record> cache = new HashSet<Record>(rows);
Collection<Record> cache = new HashSet<Record>(rows);
public Object task() throws Exception { SelectQuery q = null; boolean transactionInProgress = false; logger.info("Import into "+table+" begins..."); setLength( parser.getNumberOfRecords() ); try { q = db.createQuery(table); int resultId = db.executeQuery( q ), rows = db.getNumRows( resultId ); Set<Record> cache = new HashSet<Record>(rows); for(int i = 0; i < rows; i++) { Object[] pulp = db.more(resultId, i, i); cache.add( (Record)((Object[])(pulp[0]))[0] ); } db.closeQuery( q ); q = null; transactionInProgress = db.beginTransaction(); if( ! transactionInProgress ) throw new ImportException(L10n.getString("Error.TransactionRaceConditions")); while( !isCanceled() && parser.hasNext() ) { DataHolder data = null; try { count++; setPosition( count ); data = parser.getNext(); } catch( ParserException pe ) { logger.warn("The record is corrupted. " + pe); logger.info("Skipping the record No. " + count); setStatusMessage(L10n.getFormattedString("Import.CompletelyCorruptedRecord", count)); continue; } if( data.record == null || !data.record.areAllNNSet() || (data.action == TableParser.Action.UPDATE && (data.replacement == null || !data.replacement.areAllNNSet())) ) { logger.info("Rejecting the record No. "+count+"! Some of the not-null values are not specified!"); setStatusMessage(L10n.getFormattedString("Import.IncompleteRecord", count)); } // Take action. try { switch(data.action) { case INSERT: if( !cache.contains(data.record) ) { insert( data.record ); cache.add( data.record ); } inserted++; break; case DELETE: if( cache.contains(data.record) ) { delete( data.record ); cache.remove( data.record ); } deleted++; break; case UPDATE: if( !cache.contains(data.replacement) ) if( !cache.remove(data.record) ) { insert( data.replacement ); cache.add( data.replacement ); } else { update( data.record, data.replacement ); cache.add( data.replacement ); } updated++; break; } } catch(ImportException ie) { logger.error("The import of the record No. " + count + " was unsuccessful! " + ie); setStatusMessage( ie.getMessage() ); } catch(DBLayerException de) { logger.error("Delete/update/insert failed! " + de); setStatusMessage( L10n.getFormattedString("Error.UnableToProcess", count) + " " + ((de.getMessage() == null) ? L10n.getString("Import.UnknownReason") : de.getMessage()) ); } } if( !isCanceled() ) { transactionInProgress = ! db.commitTransaction(); logger.info("Import completed. "+count+" records processed ("+ inserted+" inserted, "+updated+" updated, "+deleted+" deleted)."); setStatusMessage(L10n.getString("Import.Completed")); } else { transactionInProgress = ! db.rollbackTransaction(); logger.info("Import aborted. Nothing will be stored in the database."); setStatusMessage(L10n.getString("Import.Aborted")); } } catch(Exception e) { // Nothing can leave undetected. try { if(q != null) db.closeQuery( q ); if(transactionInProgress) transactionInProgress = ! db.rollbackTransaction(); } catch(Exception re) {} logger.fatal("Import ended prematurely. "+count+" records processed ("+ inserted+" inserted, "+updated+" updated, "+deleted+" deleted)."); setStatusMessage(L10n.getString("Import.Failed")); // This is a serious exception, the User should see it. throw e; } fireStopped(null); return null; }
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/6f26db8f642dfc88d96d5641af14d841fcf8dee9/TableImportTask.java/clean/trunk/src/net/sf/plantlore/client/imports/table/TableImportTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 1562, 1435, 1216, 1185, 288, 202, 202, 3391, 1138, 1043, 273, 446, 31, 202, 202, 6494, 2492, 13434, 273, 225, 629, 31, 9506, 202, 4901, 18, 1376, 2932, 5010, 1368, 13773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 1562, 1435, 1216, 1185, 288, 202, 202, 3391, 1138, 1043, 273, 446, 31, 202, 202, 6494, 2492, 13434, 273, 225, 629, 31, 9506, 202, 4901, 18, 1376, 2932, 5010, 1368, 13773, ...
mockTrapdConfig.setSnmpTrapPort(10000);
mockTrapdConfig.setSnmpTrapPort(m_port);
protected void setUpTrapHandler(boolean newSuspectOnTrap) { MockTrapdConfig mockTrapdConfig = new MockTrapdConfig(); mockTrapdConfig.setSnmpTrapPort(10000); mockTrapdConfig.setNewSuspectOnTrap(newSuspectOnTrap); m_trapHandler = new TrapHandler(); m_trapHandler.setTrapdConfig(mockTrapdConfig); m_trapHandler.setEventManager(m_eventMgr); m_trapHandler.init(); m_trapHandler.start(); if (newSuspectOnTrap) { Event newSuspectEvent = new Event(); newSuspectEvent.setInterface("127.0.0.1"); newSuspectEvent.setNodeid(0); newSuspectEvent.setUei("uei.opennms.org/internal/discovery/newSuspect"); System.out.println("Anticipating: " + new EventWrapper(newSuspectEvent)); m_anticipator.anticipateEvent(newSuspectEvent); } }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/3dd7eec7d966bc726092ffc7f3b8c3e87d53ff48/TrapHandlerTest.java/buggy/src/services/org/opennms/netmgt/trapd/TrapHandlerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 56, 1266, 1503, 12, 6494, 30826, 407, 1181, 1398, 56, 1266, 13, 288, 202, 202, 9865, 56, 1266, 72, 809, 5416, 56, 1266, 72, 809, 273, 394, 7867, 56, 1266, 72, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 56, 1266, 1503, 12, 6494, 30826, 407, 1181, 1398, 56, 1266, 13, 288, 202, 202, 9865, 56, 1266, 72, 809, 5416, 56, 1266, 72, 809, 273, 394, 7867, 56, 1266, 72, 8...
CmsUserSettings settings = new CmsUserSettings(cms.getRequestContext().currentUser());
CmsUserSettings settings = new CmsUserSettings(cms);
public String displayDialog() throws IOException { if ((OpenCms.getSiteManager().getSites().size() > 1) && !OpenCms.getSiteManager().isWorkplaceRequest(getRequest())) { // this is a multi site-configuration, but not a request to the configured Workplace site StringBuffer loginLink = new StringBuffer(); loginLink.append(OpenCms.getSiteManager().getWorkplaceSiteMatcher().toString()); loginLink.append(getFormLink()); // send a redirect to the workplace site getResponse().sendRedirect(loginLink.toString()); return null; } CmsObject cms = getCmsObject(); m_message = null; m_requestedResource = CmsRequestUtil.getNotEmptyDecodedParameter( getRequest(), CmsWorkplaceManager.PARAM_LOGIN_REQUESTED_RESOURCE); if (m_requestedResource == null) { // no resource was requested, use default workplace URI m_requestedResource = CmsWorkplaceAction.C_JSP_WORKPLACE_URI; } if (cms.getRequestContext().currentUser().isGuestUser()) { // user is not currently logged in m_action = ACTION_DISPLAY; m_username = CmsRequestUtil.getNotEmptyParameter(getRequest(), PARAM_USERNAME); if (m_username != null) { // remove white spaces, can only lead to confusion on user name m_username = m_username.trim(); } m_password = CmsRequestUtil.getNotEmptyParameter(getRequest(), PARAM_PASSWORD); m_actionLogin = CmsRequestUtil.getNotEmptyParameter(getRequest(), PARAM_ACTION_LOGIN); } else { // user is already logged in m_action = ACTION_LOGIN; m_actionLogout = CmsRequestUtil.getNotEmptyParameter(getRequest(), PARAM_ACTION_LOGOUT); } if (Boolean.valueOf(m_actionLogin).booleanValue()) { // login was requested if ((m_username == null) && (m_password == null)) { m_message = Messages.get().container(Messages.GUI_LOGIN_NO_DATA_0); } else if (m_username == null) { m_message = Messages.get().container(Messages.GUI_LOGIN_NO_NAME_0); } else if (m_password == null) { m_message = Messages.get().container(Messages.GUI_LOGIN_NO_PASSWORD_0); } else if ((m_username != null) && (m_password != null)) { // try to login with the given user information login(m_username, m_password); if (getLoginException() == null) { // the login was successful m_action = ACTION_LOGIN; // set the default project of the user CmsUserSettings settings = new CmsUserSettings(cms.getRequestContext().currentUser()); try { CmsProject project = cms.readProject(settings.getStartProject()); if (cms.getAllAccessibleProjects().contains(project)) { // user has access to the project, set this as current project cms.getRequestContext().setCurrentProject(project); } } catch (Exception e) { // unable to set the startup project, bad but not critical LOG.warn(Messages.get().key( Messages.LOG_LOGIN_NO_STARTUP_PROJECT_2, m_username, settings.getStartProject()), e); } } else { // there was an error during login if (org.opencms.security.Messages.ERR_LOGIN_FAILED_DISABLED_3 == getLoginException().getMessageContainer().getKey()) { // the user account is disabled m_message = Messages.get().container(Messages.GUI_LOGIN_FAILED_DISABLED_0); } else if (org.opencms.security.Messages.ERR_LOGIN_FAILED_TEMP_DISABLED_5 == getLoginException().getMessageContainer().getKey()) { // the user account is temporarily disabled because of too many login failures m_message = Messages.get().container(Messages.GUI_LOGIN_FAILED_TEMP_DISABLED_0); } else if (org.opencms.security.Messages.ERR_LOGIN_FAILED_WITH_MESSAGE_1 == getLoginException().getMessageContainer().getKey()) { // all logins have been diasabled be the Administration CmsLoginMessage loginMessage = OpenCms.getLoginManager().getLoginMessage(); if (loginMessage != null) { m_message = Messages.get().container( Messages.GUI_LOGIN_FAILED_WITH_MESSAGE_1, loginMessage.getMessage()); } } if (m_message == null) { // any other error - display default message m_message = Messages.get().container(Messages.GUI_LOGIN_FAILED_0); } } } } else if (Boolean.valueOf(m_actionLogout).booleanValue()) { m_action = ACTION_LOGOUT; // after logout this will automatically redirect to the login form again logout(); return null; } if (m_action == ACTION_LOGIN) { // clear message m_message = null; // login is successful, check if the requested resource can be read String resource = CmsRequestUtil.splitUri(m_requestedResource)[0]; if (CmsStringUtil.isEmptyOrWhitespaceOnly(resource)) { // bad resource name, use workplace as default resource = CmsWorkplaceAction.C_JSP_WORKPLACE_URI; } if (!getCmsObject().existsResource(resource)) { // requested resource does either not exist or is not readable by user if (CmsWorkplaceAction.C_JSP_WORKPLACE_URI.equals(resource)) { // we know the Workplace exists, so the user does not have access to the Workplace // probalbly this is a "Guest" user in a default setup where "Guest" has no access to the Workplace m_message = Messages.get().container(Messages.GUI_LOGIN_FAILED_NO_WORKPLACE_PERMISSIONS_0); m_action = ACTION_DISPLAY; } else if (getCmsObject().existsResource(CmsWorkplaceAction.C_JSP_WORKPLACE_URI)) { // resource does either not exist or is not readable, but general workplace permissions are granted m_message = Messages.get().container(Messages.GUI_LOGIN_UNKNOWN_RESOURCE_1, m_requestedResource); m_requestedResource = CmsWorkplaceAction.C_JSP_WORKPLACE_URI; } else { // resource does not exist and no general workplace permissions granted m_message = Messages.get().container( Messages.GUI_LOGIN_FAILED_NO_TARGET_PERMISSIONS_1, m_requestedResource); m_action = ACTION_DISPLAY; } } if (m_action == ACTION_DISPLAY) { // the login was invalid m_requestedResource = null; // destroy the generated session HttpSession session = getRequest().getSession(false); if (session != null) { session.invalidate(); } } } return displayLoginForm(); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/b93ceeb00efcf52dee2dc8352bb1ec57832c0477/CmsLogin.java/clean/src/org/opencms/workplace/CmsLogin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2562, 6353, 1435, 1216, 1860, 288, 3639, 309, 14015, 3678, 4747, 18, 588, 4956, 1318, 7675, 588, 17055, 7675, 1467, 1435, 405, 404, 13, 5411, 597, 401, 3678, 4747, 18, 588, 495...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2562, 6353, 1435, 1216, 1860, 288, 3639, 309, 14015, 3678, 4747, 18, 588, 4956, 1318, 7675, 588, 17055, 7675, 1467, 1435, 405, 404, 13, 5411, 597, 401, 3678, 4747, 18, 588, 495...
ArrayList ancestralRates = new ArrayList();
public static void main(String[] args) throws java.io.IOException, Importer.ImportException { String controlFile = args[0]; //String treeFile1 = args[0]; //String treeFile2 = args[1]; String targetTreeFile = args[1]; int burnin = 0; if (args.length > 2) { burnin = Integer.parseInt(args[2]); } System.out.println("Ignoring first " + burnin + " trees as burnin."); BufferedReader readerTarget = new BufferedReader(new FileReader(targetTreeFile)); String lineTarget = readerTarget.readLine(); readerTarget.close(); TreeImporter targetImporter = null; if (lineTarget.toUpperCase().startsWith("#NEXUS")) { targetImporter = new NexusImporter(new FileReader(targetTreeFile)); } else { targetImporter = new NewickImporter(new FileReader(targetTreeFile)); } MutableTree targetTree = new FlexibleTree(targetImporter.importNextTree()); targetTree = Tree.Utils.rotateTreeByComparator(targetTree, Tree.Utils.createNodeDensityComparator(targetTree)); BufferedReader reader = new BufferedReader(new FileReader(controlFile)); String line = reader.readLine(); ArrayList ancestralRates = new ArrayList(); int totalTrees = 0; int totalTreesUsed = 0; while (line != null) { StringTokenizer tokens = new StringTokenizer(line); NexusImporter importer1 = new NexusImporter(new FileReader(tokens.nextToken())); NexusImporter importer2 = new NexusImporter(new FileReader(tokens.nextToken())); int fileTotalTrees = 0; while (importer1.hasTree()) { Tree timeTree = importer1.importNextTree(); Tree mutationTree = importer2.importNextTree(); if (fileTotalTrees >= burnin) { annotateRates(targetTree, targetTree.getRoot(), timeTree, mutationTree); totalTreesUsed += 1; } totalTrees += 1; fileTotalTrees += 1; } line = reader.readLine(); } System.out.println("Total trees read: " + totalTrees); System.out.println("Total trees summarized: " + totalTreesUsed); // collect all rates double mutations = 0.0; double time = 0.0; double[] rates = new double[targetTree.getNodeCount()-1]; int index = 0; for (int i = 0; i < targetTree.getNodeCount(); i++) { NodeRef node = targetTree.getNode(i); if (!targetTree.isRoot(node)) { Integer c = ((Integer)targetTree.getNodeAttribute(node,"count")); if (c == null) { throw new RuntimeException("Count missing from node in target tree"); } int count = c.intValue(); if (!targetTree.isExternal(node)) { double prob = (double)count/(double)(totalTreesUsed); if (prob >= 0.5) { String label = ""+(Math.round(prob*100)/100.0); targetTree.setNodeAttribute(node, "label", label); } } Number totalMutations = (Number)targetTree.getNodeAttribute(node,"totalMutations"); Number totalTime = (Number)targetTree.getNodeAttribute(node,"totalTime"); mutations += totalMutations.doubleValue(); time += totalTime.doubleValue(); rates[index] = totalMutations.doubleValue()/totalTime.doubleValue(); System.out.println(totalMutations.doubleValue() + " / " + totalTime.doubleValue() + " = " + rates[index]); targetTree.setNodeRate(node, rates[index]); index += 1; } } double minRate = DiscreteStatistics.min(rates); double maxRate = DiscreteStatistics.max(rates); double medianRate = DiscreteStatistics.median(rates); //double topThird = DiscreteStatistics.quantile(2.0/3.0,rates); //double bottomThird = DiscreteStatistics.quantile(1.0/3.0,rates); //double unweightedMeanRate = DiscreteStatistics.mean(rates); double meanRate = mutations/time; System.out.println(minRate + "\t" + maxRate + "\t" + medianRate + "\t" + meanRate); for (int i = 0; i < targetTree.getNodeCount(); i++) { NodeRef node = targetTree.getNode(i); if (!targetTree.isRoot(node)) { double rate = targetTree.getNodeRate(node); double branchTime = ((Number)targetTree.getNodeAttribute(node, "totalTime")).doubleValue(); double branchMutations = ((Number)targetTree.getNodeAttribute(node, "totalMutations")).doubleValue(); float relativeRate = (float)(rate /maxRate); float radius = (float)Math.sqrt(relativeRate*36.0); float relativeRateZero = (float)((rate - minRate) / (maxRate - minRate)); float red = 0.0f; float green = 0.0f; float blue = 0.0f; if (relativeRateZero < 0.5f) { blue = 1.0f - (relativeRateZero * 2.0f); green = 1.0f - blue; } else { red = (relativeRateZero - 0.5f) * 2.0f; green = 1.0f - red; } //System.out.println(red + " " + green + " " + blue); float lineThickness = relativeRate*6.0f; if (rate > meanRate) { targetTree.setNodeAttribute(node, "color", new Color(1.0f, 0.5f, 0.5f)); } else { targetTree.setNodeAttribute(node, "color", new Color(0.5f, 0.5f, 1.0f)); } //targetTree.setNodeAttribute(node, "color", new Color(red, green, blue)); targetTree.setNodeAttribute(node, "line", new BasicStroke(1.0f)); targetTree.setNodeAttribute(node, "shape", new java.awt.geom.Ellipse2D.Double(0,0,radius*2.0,radius*2.0)); } java.util.List heightList = (java.util.List)targetTree.getNodeAttribute(node, "heightList"); if (heightList != null) { double[] heights = new double[heightList.size()]; for (int j = 0; j < heights.length; j++) { heights[j] = ((Double)heightList.get(j)).doubleValue(); } targetTree.setNodeHeight(node, DiscreteStatistics.mean(heights)); //if (heights.length >= (totalTreesUsed/2)) { targetTree.setNodeAttribute(node, "nodeHeight.mean", new Double(DiscreteStatistics.mean(heights))); targetTree.setNodeAttribute(node, "nodeHeight.hpdUpper", new Double(DiscreteStatistics.quantile(0.975, heights))); targetTree.setNodeAttribute(node, "nodeHeight.hpdLower", new Double(DiscreteStatistics.quantile(0.025, heights))); //targetTree.setNodeAttribute(node, "nodeHeight.max", new Double(DiscreteStatistics.max(heights))); //targetTree.setNodeAttribute(node, "nodeHeight.min", new Double(DiscreteStatistics.min(heights))); //} } } StringBuffer buffer = new StringBuffer(); writeTree(targetTree, targetTree.getRoot(), buffer, true, false); buffer.append(";\n"); writeTree(targetTree, targetTree.getRoot(), buffer, false, true); buffer.append(";\n"); System.out.println(buffer.toString()); SquareTreePainter treePainter = new SquareTreePainter(); treePainter.setColorAttribute("color"); treePainter.setLineAttribute("line");// treePainter.setShapeAttribute("shape");// treePainter.setLabelAttribute("label"); JTreeDisplay treeDisplay = new JTreeDisplay(treePainter,targetTree); JTreePanel treePanel = new JTreePanel(treeDisplay); JFrame frame = new JFrame(); frame.setSize(800,600); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(treePanel); frame.setVisible(true); PrinterJob printJob = PrinterJob.getPrinterJob(); printJob.setPrintable(treeDisplay); if (printJob.printDialog()){ try{ printJob.print(); } catch(Exception ex){ throw new RuntimeException(ex); } } }
51824 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51824/3bf9d3fb8d584b8bb3b70212b5485b498ed3c5ba/BranchRatePlotter.java/buggy/src/dr/app/tools/BranchRatePlotter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 2252, 18, 1594, 18, 14106, 16, 9457, 4975, 18, 5010, 503, 288, 3639, 514, 3325, 812, 273, 833, 63, 20, 15533, 3639, 368, 780, 2151, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 2252, 18, 1594, 18, 14106, 16, 9457, 4975, 18, 5010, 503, 288, 3639, 514, 3325, 812, 273, 833, 63, 20, 15533, 3639, 368, 780, 2151, ...
} else if (Model.getFacade().isAClass(contextStack.peek())) { Object attr = Model.getCoreFactory().buildAttribute(
} else if (Model.getFacade().isAClass(contextStack.peek())) { Object attr = Model.getCoreFactory().buildAttribute(
public void simpleTypeSpecifier(List sts) { StringBuffer stsString = new StringBuffer(); Iterator i = sts.iterator(); while (i.hasNext()) stsString.append(i.next().toString()).append(" "); Object theType = ProjectManager.getManager().getCurrentProject() .findType(stsString.toString(), true); // now, depending on the context, this might be the return type of a // function declaration or an attribute of a class or a variable // declaration; of course, this is rather incomplete(!) if (Model.getFacade().isAOperation(contextStack.peek())) { // set the operation return type Object rv = Model.getCoreHelper().getReturnParameter( contextStack.peek()); Model.getCoreHelper().setType(rv, theType); } else if (Model.getFacade().isAClass(contextStack.peek())) { Object attr = Model.getCoreFactory().buildAttribute( contextStack.peek(), getModel(), theType, getPropertyChangeListeners(contextStack.peek())); contextStack.push(attr); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/39ca8429a5daec26a2e573b59dbed4ab5c3f4f9c/ModelerImpl.java/clean/modules/cpp/src/org/argouml/language/cpp/reveng/ModelerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4143, 559, 21416, 12, 682, 27099, 13, 288, 3639, 6674, 27099, 780, 273, 394, 6674, 5621, 3639, 4498, 277, 273, 27099, 18, 9838, 5621, 3639, 1323, 261, 77, 18, 5332, 2134, 10756...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4143, 559, 21416, 12, 682, 27099, 13, 288, 3639, 6674, 27099, 780, 273, 394, 6674, 5621, 3639, 4498, 277, 273, 27099, 18, 9838, 5621, 3639, 1323, 261, 77, 18, 5332, 2134, 10756...
int statusWord = VM_Magic.prepareInt(o, STATUS_OFFSET); if ((statusWord & HASH_CODE_MASK) != 0) return (statusWord & HASH_CODE_MASK) >> HASH_CODE_SHIFT; if (VM_Magic.attemptInt(o, STATUS_OFFSET, statusWord, statusWord | hashCode)) return hashCode >> HASH_CODE_SHIFT;
VM_Word statusWord = VM_Magic.prepareWord(o, STATUS_OFFSET); if (!(statusWord.and(HASH_CODE_MASK).isZero())) return statusWord.and(HASH_CODE_MASK).rshl(HASH_CODE_SHIFT).toInt(); if (VM_Magic.attemptWord(o, STATUS_OFFSET, statusWord, statusWord.or(hashCode))) return hashCode.rshl(HASH_CODE_SHIFT).toInt();
private static int installHashCode(Object o) throws VM_PragmaNoInline { int hashCode; do { hashCodeGenerator += (1 << HASH_CODE_SHIFT); hashCode = hashCodeGenerator & HASH_CODE_MASK; } while (hashCode == 0); while (true) { int statusWord = VM_Magic.prepareInt(o, STATUS_OFFSET); if ((statusWord & HASH_CODE_MASK) != 0) // some other thread installed a hashcode return (statusWord & HASH_CODE_MASK) >> HASH_CODE_SHIFT; if (VM_Magic.attemptInt(o, STATUS_OFFSET, statusWord, statusWord | hashCode)) return hashCode >> HASH_CODE_SHIFT; // we installed the hash code } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/e9199992b356786655ffe0ebed85eac89e929500/VM_JavaHeader.java/buggy/rvm/src/vm/objectModel/default/VM_JavaHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 509, 3799, 21952, 12, 921, 320, 13, 1216, 8251, 67, 2050, 9454, 2279, 10870, 288, 565, 509, 13374, 31, 565, 741, 288, 1377, 13374, 3908, 1011, 261, 21, 2296, 20857, 67, 5572, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 509, 3799, 21952, 12, 921, 320, 13, 1216, 8251, 67, 2050, 9454, 2279, 10870, 288, 565, 509, 13374, 31, 565, 741, 288, 1377, 13374, 3908, 1011, 261, 21, 2296, 20857, 67, 5572, ...
public BugzillaQueryDialog(Shell parentShell) { super(parentShell);
public BugzillaQueryDialog(TaskRepository repository) { super(Display.getDefault().getActiveShell());
public BugzillaQueryDialog(Shell parentShell) { super(parentShell); isNew = true; isCustom = false; searchOptionPage = new BugzillaSearchOptionPage(); title = "New Bugzilla Query"; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/70917f3864020568e90f2d842f3172916f5d3c55/BugzillaQueryDialog.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaQueryDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16907, 15990, 1138, 6353, 12, 13220, 982, 13220, 13, 288, 202, 202, 9565, 12, 2938, 13220, 1769, 202, 202, 291, 1908, 273, 638, 31, 202, 202, 291, 3802, 273, 629, 31, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16907, 15990, 1138, 6353, 12, 13220, 982, 13220, 13, 288, 202, 202, 9565, 12, 2938, 13220, 1769, 202, 202, 291, 1908, 273, 638, 31, 202, 202, 291, 3802, 273, 629, 31, 202, 202...
RadRootContainer root = (RadRootContainer) FormEditingUtil.getRoot(selection.get(0)); final PsiField[] boundFields = new PsiField[selection.size()]; for(int i=0; i<selection.size(); i++) { boundFields [i] = BindingProperty.findBoundField(root, selection.get(i).getBinding()); }
private DefaultActionGroup prepareActionGroup(final List<RadComponent> selection) { RadRootContainer root = (RadRootContainer) FormEditingUtil.getRoot(selection.get(0)); final PsiField[] boundFields = new PsiField[selection.size()]; for(int i=0; i<selection.size(); i++) { boundFields [i] = BindingProperty.findBoundField(root, selection.get(i).getBinding()); } final DefaultActionGroup actionGroup = new DefaultActionGroup(); final EventSetDescriptor[] eventSetDescriptors; try { BeanInfo beanInfo = Introspector.getBeanInfo(selection.get(0).getComponentClass()); eventSetDescriptors = beanInfo.getEventSetDescriptors(); } catch (IntrospectionException e) { LOG.error(e); return null; } EventSetDescriptor[] sortedDescriptors = new EventSetDescriptor[eventSetDescriptors.length]; System.arraycopy(eventSetDescriptors, 0, sortedDescriptors, 0, eventSetDescriptors.length); Arrays.sort(sortedDescriptors, new Comparator<EventSetDescriptor>() { public int compare(final EventSetDescriptor o1, final EventSetDescriptor o2) { return o1.getListenerType().getName().compareTo(o2.getListenerType().getName()); } }); for(EventSetDescriptor descriptor: sortedDescriptors) { actionGroup.add(new MyCreateListenerAction(boundFields, descriptor)); } return actionGroup; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/a6fc0bbe191d0da77f6f673defccbedf84dde921/CreateListenerAction.java/buggy/ui-designer/impl/com/intellij/uiDesigner/actions/CreateListenerAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 2989, 1803, 1114, 2911, 1803, 1114, 12, 6385, 987, 32, 6621, 1841, 34, 4421, 13, 288, 565, 16378, 2375, 2170, 1365, 273, 261, 6621, 2375, 2170, 13, 2748, 28029, 1304, 18, 588, 2375,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2989, 1803, 1114, 2911, 1803, 1114, 12, 6385, 987, 32, 6621, 1841, 34, 4421, 13, 288, 565, 16378, 2375, 2170, 1365, 273, 261, 6621, 2375, 2170, 13, 2748, 28029, 1304, 18, 588, 2375,...
alt36=1;
alt37=1;
public PatternDescr lhs_unary() throws RecognitionException { PatternDescr d; PatternDescr u = null; d = null; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:425:17: ( (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:425:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:425:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) int alt36=5; switch ( input.LA(1) ) { case 40: alt36=1; break; case 41: alt36=2; break; case 42: alt36=3; break; case ID: alt36=4; break; case 28: alt36=5; break; default: NoViableAltException nvae = new NoViableAltException("425:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | \'(\' u= lhs \')\' )", 36, 0, input); throw nvae; } switch (alt36) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:425:25: u= lhs_exist { following.push(FOLLOW_lhs_exist_in_lhs_unary1514); u=lhs_exist(); following.pop(); } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:426:25: u= lhs_not { following.push(FOLLOW_lhs_not_in_lhs_unary1522); u=lhs_not(); following.pop(); } break; case 3 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:427:25: u= lhs_eval { following.push(FOLLOW_lhs_eval_in_lhs_unary1530); u=lhs_eval(); following.pop(); } break; case 4 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:428:25: u= lhs_column { following.push(FOLLOW_lhs_column_in_lhs_unary1538); u=lhs_column(); following.pop(); } break; case 5 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:429:25: '(' u= lhs ')' { match(input,28,FOLLOW_28_in_lhs_unary1544); following.push(FOLLOW_lhs_in_lhs_unary1548); u=lhs(); following.pop(); match(input,29,FOLLOW_29_in_lhs_unary1550); } break; } d = u; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/59894e8a22b2183840bd9c2486282d6f4f6932d0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 8499, 67, 318, 814, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 6830, 16198, 582, 273, 446, 31, 540, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 775, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 8499, 67, 318, 814, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 6830, 16198, 582, 273, 446, 31, 540, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 775, 288...
final int column,
final Column column,
public RightInputAdapterNode(final int id, final int column, final TupleSource source) { super( id ); this.column = column; this.tupleSource = source; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/bf6ccf9b384846dc44348db5c1a3b774252510aa/RightInputAdapterNode.java/clean/drools-core/src/main/java/org/drools/reteoo/RightInputAdapterNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13009, 1210, 4216, 907, 12, 6385, 509, 612, 16, 4766, 727, 4753, 1057, 16, 4766, 727, 7257, 1830, 1084, 13, 288, 3639, 2240, 12, 612, 11272, 3639, 333, 18, 2827, 273, 1057, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13009, 1210, 4216, 907, 12, 6385, 509, 612, 16, 4766, 727, 4753, 1057, 16, 4766, 727, 7257, 1830, 1084, 13, 288, 3639, 2240, 12, 612, 11272, 3639, 333, 18, 2827, 273, 1057, 31, 36...
source.append((char)ts.COLON); ifFalse = assignExpr(ts, source, inForInit);
sourceAdd((char)ts.COLON); ifFalse = assignExpr(ts, inForInit);
private Object condExpr(TokenStream ts, Source source, boolean inForInit) throws IOException, JavaScriptException { Object ifTrue; Object ifFalse; Object pn = orExpr(ts, source, inForInit); if (ts.matchToken(ts.HOOK)) { source.append((char)ts.HOOK); ifTrue = assignExpr(ts, source, false); mustMatchToken(ts, ts.COLON, "msg.no.colon.cond"); source.append((char)ts.COLON); ifFalse = assignExpr(ts, source, inForInit); return nf.createTernary(pn, ifTrue, ifFalse); } return pn; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 6941, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 16, 1250, 316, 1290, 2570, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 309, 5510, 31, 3639, 1033, 309, 8381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 6941, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 16, 1250, 316, 1290, 2570, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 309, 5510, 31, 3639, 1033, 309, 8381, ...
GraphicsNodeRenderContext rc,
GraphicsNodeRenderContext gnrc,
public PatternPaint(GraphicsNode node, GraphicsNodeRenderContext rc, AffineTransform nodeTransform, Rectangle2D patternRegion, boolean overflow, AffineTransform patternTransform){ if(node == null){ throw new IllegalArgumentException(); } if(patternRegion == null){ throw new IllegalArgumentException(); } this.node = node; this.rc = rc; this.nodeTransform = nodeTransform; this.patternRegion = patternRegion; this.overflow = overflow; this.patternTransform = patternTransform; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/8309088af3a51d18cd5ca8ee80fca8997e73ca54/PatternPaint.java/buggy/sources/org/apache/batik/gvt/PatternPaint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 12699, 12, 17558, 907, 756, 16, 13491, 16830, 907, 3420, 1042, 22908, 1310, 16, 13491, 23906, 558, 4059, 756, 4059, 16, 13491, 13264, 22, 40, 1936, 5165, 16, 13491, 1250, 9391, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6830, 12699, 12, 17558, 907, 756, 16, 13491, 16830, 907, 3420, 1042, 22908, 1310, 16, 13491, 23906, 558, 4059, 756, 4059, 16, 13491, 13264, 22, 40, 1936, 5165, 16, 13491, 1250, 9391, ...
} if (idx > array.size()) {
} else if (idx > array.size()) {
public void store(long idx, RubyObject value) { modify(); if (idx < 0) { idx += array.size(); if (idx < 0) { throw new RubyIndexException("index " + (idx - array.size()) + " out of array"); } } if (idx > array.size()) { array.ensureCapacity((int)idx + 1); for (int i = array.size(); i < idx; i++) { array.add(getRuby().getNil()); } } if (idx == array.size()) { array.add(value); } array.set((int)idx, value); }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyArray.java/buggy/org/jruby/RubyArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1707, 12, 5748, 2067, 16, 19817, 921, 460, 13, 288, 3639, 5612, 5621, 3639, 309, 261, 3465, 411, 374, 13, 288, 5411, 2067, 1011, 526, 18, 1467, 5621, 5411, 309, 261, 3465, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1707, 12, 5748, 2067, 16, 19817, 921, 460, 13, 288, 3639, 5612, 5621, 3639, 309, 261, 3465, 411, 374, 13, 288, 5411, 2067, 1011, 526, 18, 1467, 5621, 5411, 309, 261, 3465, 41...
if (o == null) { Serialize ser = new Serialize(this, type); objectTypes.put(type, ser); return ser.fetch(Integer.parseInt(value)); }
if (o == null) { Serialize ser = new Serialize(this, type); objectTypes.put(type, ser); return ser.fetch(Integer.parseInt(value)); }
public Object getObject(String type, String value) throws SQLException { try { Object o = objectTypes.get(type); // If o is null, then the type is unknown, so check to see if type // is an actual table name. If it does, see if a Class is known that // can handle it if (o == null) { Serialize ser = new Serialize(this, type); objectTypes.put(type, ser); return ser.fetch(Integer.parseInt(value)); } // If o is not null, and it is a String, then its a class name that // extends PGobject. // // This is used to implement the org.postgresql unique types (like lseg, // point, etc). if (o instanceof String) { // 6.3 style extending PG_Object PGobject obj = null; obj = (PGobject)(Class.forName((String)o).newInstance()); obj.setType(type); obj.setValue(value); return (Object)obj; } else { // If it's an object, it should be an instance of our Serialize class // If so, then call it's fetch method. if (o instanceof Serialize) return ((Serialize)o).fetch(Integer.parseInt(value)); } } catch (SQLException sx) { // rethrow the exception. Done because we capture any others next sx.fillInStackTrace(); throw sx; } catch (Exception ex) { throw new PSQLException("postgresql.con.creobj", type, ex); } // should never be reached return null; }
45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/e25c93c7eb4a9a1a50b771cc33448b9d3519f403/Connection.java/clean/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 6455, 12, 780, 618, 16, 514, 460, 13, 1216, 6483, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 921, 320, 273, 733, 2016, 18, 588, 12, 723, 1769, 1082, 202, 759, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 6455, 12, 780, 618, 16, 514, 460, 13, 1216, 6483, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 921, 320, 273, 733, 2016, 18, 588, 12, 723, 1769, 1082, 202, 759, ...
obj.setPrototype(getObjectPrototype(this));
public Object get(String s, Scriptable start) { Object result = super.get(s, start); if (result != NOT_FOUND) return result; if (s.equals("prototype")) { NativeObject obj = new NativeObject(); obj.setPrototype(getObjectPrototype(this)); final int attr = ScriptableObject.DONTENUM | ScriptableObject.READONLY | ScriptableObject.PERMANENT; obj.defineProperty("constructor", this, attr); put(s, this, obj); return obj; } if (s.equals("arguments")) { // <Function name>.arguments is deprecated, so we use a slow // way of getting it that doesn't add to the invocation cost. // TODO: add warning, error based on version NativeCall activation = getActivation(Context.getContext()); return activation == null ? null : activation.get("arguments", activation); } return NOT_FOUND; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/5a0a0c0778470fc666abdbe870e2333dc2cfcc93/NativeFunction.java/buggy/src/org/mozilla/javascript/NativeFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 336, 12, 780, 272, 16, 22780, 787, 13, 288, 3639, 1033, 563, 273, 2240, 18, 588, 12, 87, 16, 787, 1769, 3639, 309, 261, 2088, 480, 4269, 67, 9294, 13, 5411, 327, 563, 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, 377, 1071, 1033, 336, 12, 780, 272, 16, 22780, 787, 13, 288, 3639, 1033, 563, 273, 2240, 18, 588, 12, 87, 16, 787, 1769, 3639, 309, 261, 2088, 480, 4269, 67, 9294, 13, 5411, 327, 563, 31, ...
protected static Element getNantLogAsElement(File file) throws CruiseControlException {
protected Element getNantLogAsElement(File file) throws CruiseControlException {
protected static Element getNantLogAsElement(File file) throws CruiseControlException { if (!file.exists()) { throw new CruiseControlException("NAnt logfile " + file.getAbsolutePath() + " does not exist."); } try { SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser"); // get rid of empty <task>- and <message>-elements created by Ant's // XmlLogger XMLFilter emptyTaskFilter = new EmptyElementFilter("task"); XMLFilter emptyMessageFilter = new EmptyElementFilter("message"); emptyMessageFilter.setParent(emptyTaskFilter); builder.setXMLFilter(emptyMessageFilter); return builder.build(file).getRootElement(); } catch (Exception ee) { if (ee instanceof CruiseControlException) { throw (CruiseControlException) ee; } File saveFile = new File(file.getParentFile(), System.currentTimeMillis() + file.getName()); file.renameTo(saveFile); throw new CruiseControlException("Error reading : " + file.getAbsolutePath() + ". Saved as : " + saveFile.getAbsolutePath(), ee); } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/c3b1c68963ae7622dcf5328c3691bf72af320bdb/NantBuilder.java/buggy/main/src/net/sourceforge/cruisecontrol/builders/NantBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3010, 11069, 970, 1343, 1463, 1046, 12, 812, 585, 13, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 309, 16051, 768, 18, 1808, 10756, 288, 5411, 604, 394, 385, 8653, 784, 3367, 503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3010, 11069, 970, 1343, 1463, 1046, 12, 812, 585, 13, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 309, 16051, 768, 18, 1808, 10756, 288, 5411, 604, 394, 385, 8653, 784, 3367, 503, ...
SettingsAccessor setObj = new SettingsAccessor( new File(folder, "ADMINERRMSG.INI")) ; setObj.setDelimiter("=") ; setObj.loadSettings() ; myErrorMessage = setObj.getSetting("" + errCode) ; if (myErrorMessage == null ) myErrorMessage = "Missing Errorcode" ;
SettingsAccessor setObj = new SettingsAccessor( new File(folder, "ADMINERRMSG.INI")) ; setObj.setDelimiter("=") ; setObj.loadSettings() ; myErrorMessage = setObj.getSetting("" + errCode) ; if (myErrorMessage == null ) myErrorMessage = "Missing Errorcode" ;
public String getErrorMessage(HttpServletRequest req, HttpServletResponse res,int errCode) { try { String folder = "" ; // Lets get the path to the admin templates folder String host = req.getHeader("Host") ; String server = Utility.getDomainPref("adminserver",host) ; imcode.server.User user = getUserObj(req,res) ; folder = this.getAdminTemplateFolder(server, user) ; //log("ExternalFolder was: " + folder) ; // Lets get the error code SettingsAccessor setObj = new SettingsAccessor( new File(folder, "ADMINERRMSG.INI")) ; setObj.setDelimiter("=") ; setObj.loadSettings() ; myErrorMessage = setObj.getSetting("" + errCode) ; if (myErrorMessage == null ) myErrorMessage = "Missing Errorcode" ; } catch(Exception e) { log("An error occured while reading the ADMINERRMSG.ini file") ; } return myErrorMessage ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/6934bc95fe9bb7541280495513f06cf7d0206d59/AdminError2.java/buggy/servlets/AdminError2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 514, 23260, 12, 2940, 18572, 1111, 16, 12446, 400, 16, 474, 30173, 13, 288, 202, 698, 288, 1082, 202, 780, 3009, 273, 1408, 274, 225, 202, 759, 511, 2413, 336, 326, 589, 358, 326, 3981...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 23260, 12, 2940, 18572, 1111, 16, 12446, 400, 16, 474, 30173, 13, 288, 202, 698, 288, 1082, 202, 780, 3009, 273, 1408, 274, 225, 202, 759, 511, 2413, 336, 326, 589, 358, 326, 3981...
if (_type == Type.NodeSet) { getXSLTC().setMultiDocument(true); } return _type;
if (_type == Type.NodeSet) { getXSLTC().setMultiDocument(true); } return _type;
public Type typeCheckExternal(SymbolTable stable) throws TypeCheckError { int nArgs = _arguments.size(); final String name = _fname.getLocalPart(); // check if function is a contructor 'new' if (_fname.getLocalPart().equals("new")) { return typeCheckConstructor(stable); } // check if we are calling an instance method else { boolean hasThisArgument = false; if (nArgs == 0) _isStatic = true; if (!_isStatic) { if (_namespace_format == NAMESPACE_FORMAT_JAVA || _namespace_format == NAMESPACE_FORMAT_PACKAGE) hasThisArgument = true; Expression firstArg = (Expression)_arguments.elementAt(0); Type firstArgType = (Type)firstArg.typeCheck(stable); if (_namespace_format == NAMESPACE_FORMAT_CLASS && firstArgType instanceof ObjectType && ((ObjectType)firstArgType).getJavaClassName().equals(_className)) hasThisArgument = true; if (hasThisArgument) { _thisArgument = (Expression) _arguments.elementAt(0); _arguments.remove(0); nArgs--; if (firstArgType instanceof ObjectType) { _className = ((ObjectType) firstArgType).getJavaClassName(); } else throw new TypeCheckError(ErrorMsg.NO_JAVA_FUNCT_THIS_REF, name); } } else if (_className.length() == 0) { /* * Warn user if external function could not be resolved. * Warning will _NOT_ be issued is the call is properly * wrapped in an <xsl:if> or <xsl:when> element. For details * see If.parserContents() and When.parserContents() */ final Parser parser = getParser(); if (parser != null) { reportWarning(this, parser, ErrorMsg.FUNCTION_RESOLVE_ERR, _fname.toString()); } unresolvedExternal = true; return _type = Type.Int; // use "Int" as "unknown" } } final Vector methods = findMethods(); if (methods == null) { // Method not found in this class throw new TypeCheckError(ErrorMsg.METHOD_NOT_FOUND_ERR, _className + "." + name); } Class extType = null; final int nMethods = methods.size(); final Vector argsType = typeCheckArgs(stable); // Try all methods to identify the best fit int bestMethodDistance = Integer.MAX_VALUE; _type = null; // reset internal type for (int j, i = 0; i < nMethods; i++) { // Check if all paramteters to this method can be converted final Method method = (Method)methods.elementAt(i); final Class[] paramTypes = method.getParameterTypes(); int currMethodDistance = 0; for (j = 0; j < nArgs; j++) { // Convert from internal (translet) type to external (Java) type extType = paramTypes[j]; final Type intType = (Type)argsType.elementAt(j); Object match = _internal2Java.maps(intType, extType); if (match != null) { currMethodDistance += ((JavaType)match).distance; } else { // no mapping available if (intType instanceof ObjectType) { ObjectType object = (ObjectType)intType; if (extType.getName().equals(object.getJavaClassName())) currMethodDistance += 0; else if (extType.isAssignableFrom(object.getJavaClass())) currMethodDistance += 1; else { currMethodDistance = Integer.MAX_VALUE; break; } } else { currMethodDistance = Integer.MAX_VALUE; break; } } } if (j == nArgs) { // Check if the return type can be converted extType = method.getReturnType(); _type = (Type) _java2Internal.get(extType); if (_type == null) { _type = new ObjectType(extType); } // Use this method if all parameters & return type match if (_type != null && currMethodDistance < bestMethodDistance) { _chosenMethod = method; bestMethodDistance = currMethodDistance; } } } // It is an error if the chosen method is an instance menthod but we don't // have a this argument. if (_chosenMethod != null && _thisArgument == null && !Modifier.isStatic(_chosenMethod.getModifiers())) { throw new TypeCheckError(ErrorMsg.NO_JAVA_FUNCT_THIS_REF, getMethodSignature(argsType)); } if (_type != null) { if (_type == Type.NodeSet) { getXSLTC().setMultiDocument(true); } return _type; } throw new TypeCheckError(ErrorMsg.ARGUMENT_CONVERSION_ERR, getMethodSignature(argsType)); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/f2269251d2d2151ef6399c06a210c39e047c7fe0/FunctionCall.java/buggy/src/org/apache/xalan/xsltc/compiler/FunctionCall.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1412, 618, 1564, 6841, 12, 5335, 1388, 14114, 13, 1216, 1412, 1564, 668, 288, 202, 474, 290, 2615, 273, 389, 7099, 18, 1467, 5621, 202, 6385, 514, 508, 273, 389, 12749, 18, 588, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1412, 618, 1564, 6841, 12, 5335, 1388, 14114, 13, 1216, 1412, 1564, 668, 288, 202, 474, 290, 2615, 273, 389, 7099, 18, 1467, 5621, 202, 6385, 514, 508, 273, 389, 12749, 18, 588, 2...
ISelection selection = fPackageViewer.getSelection();
final ISelection selection = fPackageViewer.getSelection();
protected void fillContextMenu(IMenuManager manager) { ISelection selection = fPackageViewer.getSelection(); manager.add(fAddAction); if (selection instanceof IStructuredSelection && ((IStructuredSelection)selection).size() == 1) manager.add(fGoToAction); manager.add(new Separator()); if (!selection.isEmpty()) manager.add(fRemoveAction); getPage().getPDEEditor().getContributor().contextMenuAboutToShow(manager); manager.add(new Separator()); if (((IModel)getPage().getModel()).getUnderlyingResource()!=null) manager.add(new UnusedDependenciesAction((IPluginModelBase) getPage().getModel(), false)); if (!fPackageViewer.getSelection().isEmpty()) { manager.add(new Separator()); manager.add(fPropertiesAction); } }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/8e8555a4844dcb6a4fa6afa45f541e3681687d7d/ImportPackageSection.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/ImportPackageSection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3636, 27315, 12, 3445, 2104, 1318, 3301, 13, 288, 202, 202, 6385, 467, 6233, 4421, 273, 284, 2261, 18415, 18, 588, 6233, 5621, 3639, 3301, 18, 1289, 12, 74, 986, 1803, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3636, 27315, 12, 3445, 2104, 1318, 3301, 13, 288, 202, 202, 6385, 467, 6233, 4421, 273, 284, 2261, 18415, 18, 588, 6233, 5621, 3639, 3301, 18, 1289, 12, 74, 986, 1803, 1...
out.print(" "+attName+"=\""+attributes.getValue(attName)+"\"");
out.print(" "+attName+"=\""+substitute(ivy, attributes.getValue(attName))+"\"");
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qName)) { _organisation = attributes.getValue("organisation"); out.print("<info organisation=\""+_organisation +"\" module=\""+attributes.getValue("module")+"\""); if (revision != null) { out.print(" revision=\""+revision+"\""); } else if (attributes.getValue("revision") != null) { out.print(" revision=\""+attributes.getValue("revision")+"\""); } if (status != null) { out.print(" status=\""+status+"\""); } else { out.print(" status=\""+attributes.getValue("status")+"\""); } if (pubdate != null) { out.print(" publication=\""+Ivy.DATE_FORMAT.format(pubdate)+"\""); } else if (attributes.getValue("publication") != null) { out.print(" publication=\""+attributes.getValue("publication")+"\""); } if (resolverName != null) { out.print(" resolver=\""+resolverName+"\""); } else if (attributes.getValue("resolver") != null) { out.print(" resolver=\""+attributes.getValue("resolver")+"\""); } } else if (replaceImport && "import".equals(qName)) { try { URL url; String fileName = ivy.substitute(attributes.getValue("file")); if (fileName == null) { String urlStr = ivy.substitute(attributes.getValue("url")); url = new URL(urlStr); } else { url = new File(fileName).toURL(); } XMLHelper.parse(url, null, new DefaultHandler() { boolean _first = true; public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if ("configurations".equals(qName)) { String defaultconf = attributes.getValue("defaultconfmapping"); if (defaultconf != null) { _defaultConfMapping = defaultconf; } } else if ("conf".equals(qName)) { // copy if (!_first) { out.print("/>\n\t\t"); } else { _first = false; } out.print("<"+qName); for (int i=0; i<attributes.getLength(); i++) { out.print(" "+attributes.getQName(i)+"=\""+attributes.getValue(i)+"\""); } } } }); } catch (Exception e) { Message.warn("exception occured while importing configurations: "+e.getMessage()); throw new SAXException(e); } } else if ("dependency".equals(qName)) { out.print("<dependency"); String org = attributes.getValue("org"); org = org == null ? _organisation : org; ModuleId mid = new ModuleId(org, attributes.getValue("name")); for (int i=0; i<attributes.getLength(); i++) { String attName = attributes.getQName(i); if ("rev".equals(attName)) { String rev = (String)resolvedRevisions.get(mid); if (rev != null) { out.print(" rev=\""+rev+"\""); } else { out.print(" rev=\""+attributes.getValue("rev")+"\""); } } else { out.print(" "+attName+"=\""+attributes.getValue(attName)+"\""); } } } else if ("dependencies".equals(qName)) { // copy out.print("<"+qName); for (int i=0; i<attributes.getLength(); i++) { out.print(" "+attributes.getQName(i)+"=\""+attributes.getValue(i)+"\""); } // add defaultconf mapping if needed if (_defaultConfMapping != null && attributes.getValue("defaultconf") == null) { out.print(" defaultconf=\""+_defaultConfMapping+"\""); } } else { // copy out.print("<"+qName); for (int i=0; i<attributes.getLength(); i++) { out.print(" "+attributes.getQName(i)+"=\""+attributes.getValue(i)+"\""); } } _justOpen = qName;// indent.append("\t"); }
45724 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45724/815513f7da72c65034e82236d3203c06d5a18772/XmlModuleDescriptorUpdater.java/buggy/src/java/fr/jayasoft/ivy/xml/XmlModuleDescriptorUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 13591, 12, 780, 2003, 16, 514, 11927, 16, 13491, 514, 22914, 16, 9055, 1677, 13, 13491, 1216, 14366, 288, 10792, 309, 261, 67, 3732, 3678, 480, 446, 13, 288, 13491, 596, 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, 1171, 1071, 918, 13591, 12, 780, 2003, 16, 514, 11927, 16, 13491, 514, 22914, 16, 9055, 1677, 13, 13491, 1216, 14366, 288, 10792, 309, 261, 67, 3732, 3678, 480, 446, 13, 288, 13491, 596, 18, ...
+ ", synchronous=" + synchronous + ", createConnector=" + createConnector + "}";
+ ", synchronous=" + synchronous + ", initialState=" + initialState + ", createConnector=" + createConnector + "}";
public String toString() { return "ImmutableMuleEndpoint{" + "connector=" + connector + ", endpointUri=" + endpointUri + ", transformer=" + transformer + ", name='" + name + "'" + ", type='" + type + "'" + ", properties=" + properties + ", transactionConfig=" + transactionConfig + ", filter=" + filter + ", deleteUnacceptedMessages=" + deleteUnacceptedMessages + ", initialised=" + initialised + ", securityFilter=" + securityFilter + ", synchronous=" + synchronous + ", createConnector=" + createConnector + "}"; }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/b882ce3f534523993ac1cbe19a15f3171832f357/ImmutableMuleEndpoint.java/clean/mule/src/java/org/mule/impl/ImmutableMuleEndpoint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 565, 288, 3639, 327, 315, 16014, 49, 725, 3293, 16711, 397, 315, 23159, 1546, 397, 8703, 397, 3104, 2494, 3006, 1546, 397, 2494, 3006, 397, 3104, 8360, 1546, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1762, 1435, 565, 288, 3639, 327, 315, 16014, 49, 725, 3293, 16711, 397, 315, 23159, 1546, 397, 8703, 397, 3104, 2494, 3006, 1546, 397, 2494, 3006, 397, 3104, 8360, 1546, 7734, ...
rs6 = stmt6.executeQuery();
rs = stmt.executeQuery();
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ServletPrinter sp = null; PreparedStatement stmt = null, stmt2 = null, stmt3 = null, stmt4 = null, stmt5 = null, stmt6 = null, stmt7 = null; Connection conn = null; String nickname, password, comment_table, commentId, ratingstring; int access = 0, userId = 0, rating; ResultSet rs = null, rs2 = null, rs6 = null, rs7 = null; int updateResult, updateResult4, updateResult5; sp = new ServletPrinter(response, "StoreModeratorLog"); nickname = request.getParameter("nickname"); password = request.getParameter("password"); comment_table = request.getParameter("comment_table"); commentId = request.getParameter("commentId"); ratingstring = request.getParameter("rating"); if (nickname == null) { sp.printHTML("Author, You must provide a nick name!<br>"); return; } if (password == null) { sp.printHTML("Author, You must provide a password!<br>"); return; } if (comment_table == null) { sp.printHTML("Moderating comment, You must provide a comment table!<br>"); return; } if (commentId == null) { sp .printHTML("Moderating comment, You must provide a comment identifier!<br>"); return; } if (ratingstring == null) { sp.printHTML("Moderating comment, You must provide a rating!<br>"); return; } else rating = (Integer.valueOf(request.getParameter("rating"))).intValue(); conn = getConnection(); if ((nickname != null) && (password != null)) { try { stmt = conn .prepareStatement("SELECT id,access FROM users WHERE nickname=\"" + nickname + "\" AND password=\"" + password + "\""); rs = stmt.executeQuery(); } catch (Exception e) { sp.printHTML("Failed to execute Query for BrowseStoriesByCategory: " + e); closeConnection(stmt, conn); return; } try { if (rs.first()) { userId = rs.getInt("id"); access = rs.getInt("access"); } } catch (Exception e) { sp.printHTML("Exception StoreModeratorLog: " + e + "<br>"); closeConnection(stmt, conn); return; } } if ((userId == 0) || (access == 0)) { sp.printHTMLheader("RUBBoS: Moderation"); sp .printHTML("<p><center><h2>Sorry, but this feature is only accessible by users with an author access.</h2></center><p>\n"); } else { sp.printHTMLheader("RUBBoS: Comment moderation result"); sp.printHTML("<center><h2>Comment moderation result:</h2></center><p>\n"); try { stmt2 = conn.prepareStatement("SELECT writer,rating FROM " + comment_table + " WHERE id=" + commentId); rs2 = stmt2.executeQuery(); if (!rs2.first()) { sp .printHTML("<h3>ERROR: Sorry, but this comment does not exist.</h3><br>\n"); } int rs2rating = rs2.getInt("rating"); String writer = rs2.getString("writer"); if (((rs2rating == -1) && (rating == -1)) || ((rs2rating == 5) && (rating == 1))) sp .printHTML("Comment rating is already to its maximum, updating only user's rating."); else { // Update ratings if (rating != 0) { stmt4 = conn.prepareStatement("UPDATE users SET rating=rating+" + rating + " WHERE id=" + writer); updateResult4 = stmt4.executeUpdate(); stmt5 = conn.prepareStatement("UPDATE " + comment_table + " SET rating=rating+" + rating + " WHERE id=" + commentId); updateResult5 = stmt5.executeUpdate(); } } stmt6 = conn.prepareStatement("SELECT rating FROM " + comment_table + " WHERE id=" + commentId); rs6 = stmt6.executeQuery(); String user_row_rating = null, comment_row_rating = null; if (rs6.first()) comment_row_rating = rs6.getString("rating"); stmt7 = conn.prepareStatement("SELECT rating FROM users WHERE id=" + writer); rs7 = stmt7.executeQuery(); if (rs7.first()) user_row_rating = rs7.getString("rating"); if (!rs7.first()) sp .printHTML("<h3>ERROR: Sorry, but this user does not exist.</h3><br>\n"); // Update moderator log stmt3 = conn .prepareStatement("INSERT INTO moderator_log VALUES (NULL, " + userId + ", " + commentId + ", " + rating + ", NOW())"); updateResult = stmt3.executeUpdate(); sp.printHTML("New comment rating is :" + comment_row_rating + "<br>\n"); sp.printHTML("New user rating is :" + user_row_rating + "<br>\n"); sp .printHTML("<center><h2>Your moderation has been successfully stored.</h2></center>\n"); } catch (Exception e3) { sp.printHTML("Exception StoreModeratorLog stmts: " + e3 + "<br>"); } } closeConnection(stmt, conn); sp.printHTMLfooter(); }
6590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6590/910d68d9dd5e134ceecb0cd6e3b4d37ca27cd13a/StoreModeratorLog.java/buggy/Servlets/edu/rice/rubbos/servlets/StoreModeratorLog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 23611, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1377, 1216, 1860, 16, 16517, 225, 288, 565, 7971, 12149, 565, 1694, 273, 446, 31, 565, 16913, 3480, 273, 446, 16, 3480, 22, 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, 918, 23611, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1377, 1216, 1860, 16, 16517, 225, 288, 565, 7971, 12149, 565, 1694, 273, 446, 31, 565, 16913, 3480, 273, 446, 16, 3480, 22, 2...
out.writeInt ((typeIdentifications != null) ? typeIdentifications.size() : 0);
public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(UID); out.writeObject((itemNomen != null) ? itemNomen.intern() : "no_nomenclature"); out.writeLong(aggregateNumber); out.writeObject(prototypeUID.intern()); out.writeObject(ownerID.intern()); out.writeObject ((name != null) ? name.intern() : "no_name"); // out.writeObject(manifestUID); out.writeBoolean(hasManifest); out.writeInt ((nomenclatures != null) ? nomenclatures.size() : 0); if (nomenclatures != null) { for (Iterator iter = nomenclatures.iterator(); iter.hasNext(); ) { out.writeObject(iter.next()); } } out.writeInt ((typeIdentifications != null) ? typeIdentifications.size() : 0); if (typeIdentifications != null) { for (Iterator iter = typeIdentifications.iterator(); iter.hasNext(); ) { out.writeObject(iter.next()); } } out.writeInt ((weights != null) ? weights.size() : 0); if (weights != null) { for (Iterator iter = weights.iterator(); iter.hasNext(); ) { out.writeObject(iter.next()); } } }
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/ad33bfb943618d53714eff3a94cba1be102bc71d/Instance.java/clean/datagrabber/src/org/cougaar/mlm/ui/psp/transit/data/instances/Instance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 6841, 12, 921, 1447, 596, 13, 1216, 1860, 288, 565, 596, 18, 2626, 921, 12, 3060, 1769, 565, 596, 18, 2626, 921, 12443, 1726, 26685, 275, 480, 446, 13, 692, 761, 26685,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 6841, 12, 921, 1447, 596, 13, 1216, 1860, 288, 565, 596, 18, 2626, 921, 12, 3060, 1769, 565, 596, 18, 2626, 921, 12443, 1726, 26685, 275, 480, 446, 13, 692, 761, 26685,...
/* createPrimitiveDisplayPreferences( composite ); createSpacer( composite, 1 ); */
protected Control createContents( Composite parent ) { WorkbenchHelp.setHelp( getControl(), ICDebugHelpContextIds.C_DEBUG_PREFERENCE_PAGE ); //The main composite Composite composite = new Composite( parent, SWT.NULL ); GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.marginHeight = 0; layout.marginWidth = 0; composite.setLayout( layout ); GridData data = new GridData(); data.verticalAlignment = GridData.FILL; data.horizontalAlignment = GridData.FILL; composite.setLayoutData( data ); createSpacer( composite, 1 );/* createPrimitiveDisplayPreferences( composite ); createSpacer( composite, 1 );*/ createViewSettingPreferences( composite ); createSpacer( composite, 1 ); createDisassemblySettingPreferences( composite ); setValues(); return composite; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/761289ef252ca563bf24d181894cd6f8fab9ce72/CDebugPreferencePage.java/buggy/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/CDebugPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6323, 12, 14728, 982, 262, 202, 95, 202, 202, 2421, 22144, 6696, 18, 542, 6696, 12, 27174, 9334, 26899, 2829, 6696, 1042, 2673, 18, 39, 67, 9394, 67, 3670, 10830, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6323, 12, 14728, 982, 262, 202, 95, 202, 202, 2421, 22144, 6696, 18, 542, 6696, 12, 27174, 9334, 26899, 2829, 6696, 1042, 2673, 18, 39, 67, 9394, 67, 3670, 10830, ...
assertTrue("failed to create the instance of inflater", inflate != null);
assertNotNull("failed to create the instance of inflater", inflate);
public void test_ConstructorZ() { // test method of java.util.zip.inflater.Inflater(boolean) // note does not throw exception if deflater has a header, but inflater // doesn't or vice versa. byte byteArray[] = { 1, 3, 4, 7, 8, 'e', 'r', 't', 'y', '5' }; Inflater inflate = new Inflater(true); assertTrue("failed to create the instance of inflater", inflate != null); byte outPutInf[] = new byte[500]; int r = 0; try { while (!(inflate.finished())) { if (inflate.needsInput()) { inflate.setInput(outPutBuff1); } inflate.inflate(outPutInf); } for (int i = 0; i < byteArray.length; i++) { assertTrue( "the output array from inflate should contain 0 because the header of inflate and deflate did not match, but this faled", outPutBuff1[i] == 0); } } catch (DataFormatException e) { r = 1; } assertTrue( "Error: exception should be thrown becuase of header inconsistancy", r == 1); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/ac512eee134bc18e08c4cc4ba2a152bd4c21c022/InflaterTest.java/clean/modules/archive/src/test/java/tests/api/java/util/zip/InflaterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 6293, 62, 1435, 288, 202, 202, 759, 1842, 707, 434, 2252, 18, 1367, 18, 4450, 18, 267, 2242, 2045, 18, 27040, 2045, 12, 6494, 13, 202, 202, 759, 4721, 1552, 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, 225, 202, 482, 918, 1842, 67, 6293, 62, 1435, 288, 202, 202, 759, 1842, 707, 434, 2252, 18, 1367, 18, 4450, 18, 267, 2242, 2045, 18, 27040, 2045, 12, 6494, 13, 202, 202, 759, 4721, 1552, 4...
RegExpProxy reProxy, Object re,
RegExpProxy reProxy, Scriptable re,
private static int find_split(Context cx, Scriptable scope, String target, String separator, int version, RegExpProxy reProxy, Object re, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp) { int i = ip[0]; int length = target.length(); /* * Perl4 special case for str.split(' '), only if the user has selected * JavaScript1.2 explicitly. Split on whitespace, and skip leading w/s. * Strange but true, apparently modeled after awk. */ if (version == Context.VERSION_1_2 && re == null && separator.length() == 1 && separator.charAt(0) == ' ') { /* Skip leading whitespace if at front of str. */ if (i == 0) { while (i < length && Character.isWhitespace(target.charAt(i))) i++; ip[0] = i; } /* Don't delimit whitespace at end of string. */ if (i == length) return -1; /* Skip over the non-whitespace chars. */ while (i < length && !Character.isWhitespace(target.charAt(i))) i++; /* Now skip the next run of whitespace. */ int j = i; while (j < length && Character.isWhitespace(target.charAt(j))) j++; /* Update matchlen to count delimiter chars. */ matchlen[0] = j - i; return i; } /* * Stop if past end of string. If at end of string, we will * return target length, so that * * "ab,".split(',') => new Array("ab", "") * * and the resulting array converts back to the string "ab," * for symmetry. NB: This differs from perl, which drops the * trailing empty substring if the LIMIT argument is omitted. */ if (i > length) return -1; /* * Match a regular expression against the separator at or * above index i. Return -1 at end of string instead of * trying for a match, so we don't get stuck in a loop. */ if (re != null) { return reProxy.find_split(cx, scope, target, separator, re, ip, matchlen, matched, parensp); } /* * Deviate from ECMA by never splitting an empty string by any separator * string into a non-empty array (an array of length 1 that contains the * empty string). */ if (version != Context.VERSION_DEFAULT && version < Context.VERSION_1_3 && length == 0) return -1; /* * Special case: if sep is the empty string, split str into * one character substrings. Let our caller worry about * whether to split once at end of string into an empty * substring. * * For 1.2 compatibility, at the end of the string, we return the length as * the result, and set the separator length to 1 -- this allows the caller * to include an additional null string at the end of the substring list. */ if (separator.length() == 0) { if (version == Context.VERSION_1_2) { if (i == length) { matchlen[0] = 1; return i; } return i + 1; } return (i == length) ? -1 : i + 1; } /* Punt to j.l.s.indexOf; return target length if seperator is * not found. */ if (ip[0] >= length) return length; i = target.indexOf(separator, ip[0]); return (i != -1) ? i : length; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/f0adcfbccd267d98f6196c9da9266683cca49fd2/NativeString.java/buggy/js/rhino/src/org/mozilla/javascript/NativeString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 1104, 67, 4939, 12, 1042, 9494, 16, 22780, 2146, 16, 514, 1018, 16, 21394, 514, 4182, 16, 509, 1177, 16, 21394, 10679, 3886, 283, 3886, 16, 22780, 283, 16, 21394, 509, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 1104, 67, 4939, 12, 1042, 9494, 16, 22780, 2146, 16, 514, 1018, 16, 21394, 514, 4182, 16, 509, 1177, 16, 21394, 10679, 3886, 283, 3886, 16, 22780, 283, 16, 21394, 509, 8...
UserInfo ui = um.loadUser(originator);
UserInfo ui = um.loadUser(this.user);
public boolean allowsBroadcast(UserManager um, long originator) throws ObjectNotFoundException, UnexpectedException { try { UserInfo ui = um.loadUser(originator); return ui.testFlags(0, UserFlags.ALLOW_BROADCAST_MESSAGES) && !this.userMatchesFilter(originator, FilterFlags.BROADCASTS); } catch(SQLException e) { throw new UnexpectedException(user, e); } }
3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/2a9e9fcd115a22fe2a14595bdccaf4d3a704fa4c/UserContext.java/clean/kom/java/nu/rydin/kom/backend/UserContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 5360, 15926, 12, 1299, 1318, 9570, 16, 1525, 4026, 639, 13, 565, 1216, 1033, 3990, 16, 9649, 503, 565, 288, 3639, 775, 3639, 288, 5411, 25003, 5915, 273, 9570, 18, 945, 1299, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 5360, 15926, 12, 1299, 1318, 9570, 16, 1525, 4026, 639, 13, 565, 1216, 1033, 3990, 16, 9649, 503, 565, 288, 3639, 775, 3639, 288, 5411, 25003, 5915, 273, 9570, 18, 945, 1299, ...
if (string == null)
if (strings == null)
public static String format(String string, int maxlen) { if (string == null) return null; if(string.length() >= maxlen) { StringBuffer buf = new StringBuffer(string); buf.setLength(maxlen-4); buf.append(VALUE_TRUNCATE_INDICATOR); return buf.toString(); } else { return string; } }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/b3612967cb053036bdb295ee74cb2e369c6ca18d/Constants.java/buggy/src/services/org/opennms/netmgt/eventd/db/Constants.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 740, 12, 780, 533, 16, 509, 21882, 13, 202, 95, 202, 202, 430, 261, 1080, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 430, 12, 1080, 18, 2469, 1435, 1545, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 740, 12, 780, 533, 16, 509, 21882, 13, 202, 95, 202, 202, 430, 261, 1080, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 430, 12, 1080, 18, 2469, 1435, 1545, ...
jj_la1[80] = jj_gen;
jj_la1[83] = jj_gen;
final public void slice() throws ParseException { Colon(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: case LBRACE: case LBRACKET: case PLUS: case MINUS: case NOT: case NOT_BOOL: case LAMBDA: case AS: case NAME: case DECNUMBER: case HEXNUMBER: case OCTNUMBER: case FLOAT: case COMPLEX: case SINGLE_STRING: case SINGLE_STRING2: case TRIPLE_STRING: case TRIPLE_STRING2: case 117: test(); break; default: jj_la1[78] = jj_gen; ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COLON: Colon(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: case LBRACE: case LBRACKET: case PLUS: case MINUS: case NOT: case NOT_BOOL: case LAMBDA: case AS: case NAME: case DECNUMBER: case HEXNUMBER: case OCTNUMBER: case FLOAT: case COMPLEX: case SINGLE_STRING: case SINGLE_STRING2: case TRIPLE_STRING: case TRIPLE_STRING2: case 117: test(); break; default: jj_la1[79] = jj_gen; ; } break; default: jj_la1[80] = jj_gen; ; } }
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/2b47cff319e0a469e540c356f904a833b9b33cd7/PythonGrammar.java/clean/org/python/parser/PythonGrammar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 2788, 1435, 1216, 10616, 288, 565, 1558, 265, 5621, 565, 1620, 14015, 78, 78, 67, 496, 79, 631, 17, 21, 9945, 78, 78, 67, 496, 79, 13332, 78, 78, 67, 496, 79, 13, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 2788, 1435, 1216, 10616, 288, 565, 1558, 265, 5621, 565, 1620, 14015, 78, 78, 67, 496, 79, 631, 17, 21, 9945, 78, 78, 67, 496, 79, 13332, 78, 78, 67, 496, 79, 13, 28...
text.clear();
setPrevious(text);
public void endElement(String namespace, String name, String qname) { final ElementImpl last = (ElementImpl) stack.peek(); if (last.getNodeName().equals(qname)) { if (charBuf != null && charBuf.length() > 0) { // remove whitespace if the node has just a single text child, // keep whitespace for mixed content. final XMLString normalized; if (!last.preserveSpace()) { normalized = last.getChildCount() == 0 ? charBuf.normalize(normalize) : (charBuf.isWhitespaceOnly() ? null : charBuf); } else normalized = charBuf; if (normalized != null && normalized.length() > 0) { text.setData(normalized); text.setOwnerDocument(document); last.appendChildInternal(prevNode, text); prevNode = text; if (!validate) storeText(); text.clear(); } charBuf.reset(); } stack.pop(); XMLString elemContent = null; if (GeneralRangeIndexSpec.hasQNameOrValueIndex(last.getIndexType())) { elemContent = (XMLString) nodeContentStack.pop(); } if (!validate) broker.endElement(last, currentPath, elemContent == null ? null : elemContent.toString()); currentPath.removeLastComponent(); if (validate) { if (document.getTreeLevelOrder(level) < last.getChildCount()) { document.setTreeLevelOrder(level, last.getChildCount()); } if (childCnt != null) setChildCount(last); } else { document.setOwnerDocument(document); if (childCnt == null && last.getChildCount() > 0) { broker.updateNode(transaction, last); } } prevNode = last; level--; if (last != rootNode) { last.clear(); usedElements.push(last); } } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/63eb67e2063fc364f3092099509d4497d2051a6b/Indexer.java/clean/src/org/exist/Indexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 14840, 12, 780, 1981, 16, 514, 508, 16, 514, 12621, 13, 288, 202, 202, 6385, 3010, 2828, 1142, 273, 261, 1046, 2828, 13, 2110, 18, 347, 3839, 5621, 202, 202, 430, 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, 225, 202, 482, 918, 14840, 12, 780, 1981, 16, 514, 508, 16, 514, 12621, 13, 288, 202, 202, 6385, 3010, 2828, 1142, 273, 261, 1046, 2828, 13, 2110, 18, 347, 3839, 5621, 202, 202, 430, 261, ...
mTrayIcon.setToolTip(fToolTip); mTrayIcon.displayMessage("New Messages", fDisplayMessage, TrayIcon.INFO_MESSAGE_TYPE);
if (mTrayIcon != null) { mTrayIcon.setToolTip(fToolTip); mTrayIcon.setCaption(fToolTip); mTrayIcon.displayMessage("New Messages", fDisplayMessage, TrayIcon.INFO_MESSAGE_TYPE); }
public void run() { if (fUpdateStatus) updateStatus(); mTrayIcon.setToolTip(fToolTip); mTrayIcon.displayMessage("New Messages", fDisplayMessage, TrayIcon.INFO_MESSAGE_TYPE); }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/19e88bfa40134785275f018f76ea1ce275a862ff/MessageNotificationManager.java/clean/src/net/suberic/pooka/gui/MessageNotificationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 225, 309, 261, 74, 1891, 1482, 13, 202, 565, 1089, 1482, 5621, 202, 225, 21115, 435, 5554, 18, 542, 29250, 12, 74, 29250, 1769, 202, 225, 21115, 435...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 288, 202, 225, 309, 261, 74, 1891, 1482, 13, 202, 565, 1089, 1482, 5621, 202, 225, 21115, 435, 5554, 18, 542, 29250, 12, 74, 29250, 1769, 202, 225, 21115, 435...
} else { runtime.getWarnings().warn("Getting environment variables using command line defined method: " + jrubyEnvMethod); reader = getAccessibleOSEnvironment(runtime, jrubyEnvMethod); } Map envs = null; if (reader != null) { Map variables = null; variables = reader.getVariables(runtime); envs = getAsMapOfRubyStrings(runtime, variables.entrySet());
} catch (AccessControlException accessEx) { envs = new HashMap();
public Map getEnvironmentVariableMap(IRuby runtime) { String jrubyEnvMethod = System.getProperty("jruby.env.method"); IOSEnvironmentReader reader; if (jrubyEnvMethod == null || jrubyEnvMethod.length() < 1) { // Try to get environment from Java5 System.getenv() reader = getAccessibleOSEnvironment(runtime, OSEnvironmentReaderFromJava5SystemGetenv.class.getName()); // not Java5 so try getting environment using Runtime exec if (reader == null) { reader = getAccessibleOSEnvironment(runtime, OSEnvironmentReaderFromRuntimeExec.class.getName()); //runtime.getWarnings().warn("Getting environment variables using Runtime Exec"); } else { //runtime.getWarnings().warn("Getting environment variables using Java5 System.getenv()"); } } else { // get environment from jruby command line property supplied class runtime.getWarnings().warn("Getting environment variables using command line defined method: " + jrubyEnvMethod); reader = getAccessibleOSEnvironment(runtime, jrubyEnvMethod); } Map envs = null; if (reader != null) { Map variables = null; variables = reader.getVariables(runtime); envs = getAsMapOfRubyStrings(runtime, variables.entrySet()); } return envs; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/d38821551a58969cd2593b463d93df5f32bf3c14/OSEnvironment.java/buggy/src/org/jruby/environment/OSEnvironment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 16613, 3092, 863, 12, 7937, 10340, 3099, 13, 288, 3639, 514, 525, 27768, 3491, 1305, 273, 2332, 18, 588, 1396, 2932, 78, 27768, 18, 3074, 18, 2039, 8863, 3639, 1665, 55, 5494,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 16613, 3092, 863, 12, 7937, 10340, 3099, 13, 288, 3639, 514, 525, 27768, 3491, 1305, 273, 2332, 18, 588, 1396, 2932, 78, 27768, 18, 3074, 18, 2039, 8863, 3639, 1665, 55, 5494,...
} catch(IOException e) { e.printStackTrace(); }
} catch (IOException e) { e.printStackTrace(); }
public void writeOn(Writer writer) { if (cache == null) { cache = new StringWriter(); computeIn(cache); try { cache.close(); } catch(IOException e) { e.printStackTrace(); } } try { writer.write(cache.toString()); } catch(IOException e) { e.printStackTrace(); } }
32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/74b9d7323476bba57e32c13baeff6b3c7233ffc7/HTMLGenerator.java/buggy/sources/scala/tools/scaladoc/HTMLGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 1398, 12, 2289, 2633, 13, 288, 3639, 309, 261, 2493, 422, 446, 13, 288, 5411, 1247, 273, 394, 17436, 5621, 5411, 3671, 382, 12, 2493, 1769, 5411, 775, 288, 7734, 1247, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 1398, 12, 2289, 2633, 13, 288, 3639, 309, 261, 2493, 422, 446, 13, 288, 5411, 1247, 273, 394, 17436, 5621, 5411, 3671, 382, 12, 2493, 1769, 5411, 775, 288, 7734, 1247, ...
Font font = parent.getFont();
CheckboxEnumGroup(Composite parent, String text, EnumType type) { Font font = parent.getFont(); this.type = type; // although not needed for layout, this composite is needed to get the tab order right Composite enableComposite = new Composite(parent, SWT.NONE); enableComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); enableComposite.setLayout(new FillLayout()); enableButton = new Button(enableComposite, SWT.CHECK); enableButton.addSelectionListener(selectionListener); enableButton.setText(text); enableButton.setFont(font); Composite valueComposite = new Composite(parent, SWT.NONE); valueComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); valueComposite.setLayout(new FillLayout()); EnumValue[] values = type.getValues(); valueButtons = new Button[values.length]; for (int i = 0; i < values.length; ++i) { Button valueButton = new Button(valueComposite, SWT.CHECK); valueButton.setText(values[i].getText());// valueButton.setImage(values[i].getImage()); valueButton.setFont(font); valueButtons[i] = valueButton; } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e365c8c256fc9bd61d9d458bb74ff408ae201fd1/FiltersDialog.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/tasklist/FiltersDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 21272, 3572, 1114, 12, 9400, 982, 16, 514, 977, 16, 6057, 559, 618, 13, 288, 1082, 202, 5711, 3512, 273, 982, 18, 588, 5711, 5621, 1082, 202, 2211, 18, 723, 273, 618, 31, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 21272, 3572, 1114, 12, 9400, 982, 16, 514, 977, 16, 6057, 559, 618, 13, 288, 1082, 202, 5711, 3512, 273, 982, 18, 588, 5711, 5621, 1082, 202, 2211, 18, 723, 273, 618, 31, 1082, ...
void val_init() { valstk = new Object[YYSTACKSIZE]; yyval = new Object(); yylval = new Object(); valptr = -1; }
void val_init() { valstk=new Object[YYSTACKSIZE]; yyval=new Object(); yylval=new Object(); valptr=-1; }
void val_init() { valstk = new Object[YYSTACKSIZE]; yyval = new Object(); yylval = new Object(); valptr = -1; }
48789 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48789/6a5f07d44e3741f9878c8fc478a6622a65c9c359/GrammarParser.java/clean/src/jsrc/org/quasiliteral/term/GrammarParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1244, 67, 2738, 1435, 288, 3639, 1244, 334, 79, 273, 394, 1033, 63, 9317, 21971, 4574, 15533, 3639, 9016, 1125, 273, 394, 1033, 5621, 3639, 9016, 80, 1125, 273, 394, 1033, 5621, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1244, 67, 2738, 1435, 288, 3639, 1244, 334, 79, 273, 394, 1033, 63, 9317, 21971, 4574, 15533, 3639, 9016, 1125, 273, 394, 1033, 5621, 3639, 9016, 80, 1125, 273, 394, 1033, 5621, 3639...
public org.quickfix.field.IDSource getIDSource() throws FieldNotFound { org.quickfix.field.IDSource value = new org.quickfix.field.IDSource();
public quickfix.field.IDSource getIDSource() throws FieldNotFound { quickfix.field.IDSource value = new quickfix.field.IDSource();
public org.quickfix.field.IDSource getIDSource() throws FieldNotFound { org.quickfix.field.IDSource value = new org.quickfix.field.IDSource(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteAcknowledgement.java/buggy/src/java/src/quickfix/fix42/QuoteAcknowledgement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 734, 1830, 14744, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 734, 1830, 460, 273, 394, 2358, 18, 19525, 904, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 734, 1830, 14744, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 734, 1830, 460, 273, 394, 2358, 18, 19525, 904, 1...
selectedLangNames.add(aLang.getKeyName());
selectedLangs.add(aLang);
private void buildLangLists(List<Language> availableLangs, List<String> selectedLangNames, List<Language> excludedLangs) { SortedSet<Language> autoLangs = pc.getAutoLanguages(); Skill speakLanguage = null; for (Skill aSkill : pc.getSkillList()) { if (aSkill.getChoiceString().indexOf(PropertyFactory.getString("in_language")) >= 0) { speakLanguage = aSkill; } } for (Language aLang : pc.getLanguageBonusSelectionList()) { if (aLang != null) { if (PrereqHandler.passesAll(aLang.getPreReqList(), pc, aLang )) { availableLangs.add(aLang); } } } // // Only show selections that are not automatically // granted or granted via the "Speak Language" skill // Remove any language selected via "Speak Language" // from the list of available selections // for ( Language aLang : pc.getLanguagesList()) { boolean addLang = false; if ((speakLanguage != null) && speakLanguage.containsAssociated(aLang.getKeyName())) { addLang = false; } else if (!autoLangs.contains(aLang)) { addLang = true; } if (addLang) { selectedLangNames.add(aLang.getKeyName()); } else { availableLangs.remove(aLang); excludedLangs.add(aLang); } } }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/c4278c23c7f75e91ab874b8ba28131550acadd47/InfoSpecialAbilities.java/clean/code/src/java/pcgen/gui/tabs/InfoSpecialAbilities.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1361, 7275, 7432, 12, 682, 32, 3779, 34, 2319, 7275, 87, 16, 987, 32, 780, 34, 3170, 7275, 1557, 16, 987, 32, 3779, 34, 8845, 7275, 87, 13, 202, 95, 202, 202, 11739, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1361, 7275, 7432, 12, 682, 32, 3779, 34, 2319, 7275, 87, 16, 987, 32, 780, 34, 3170, 7275, 1557, 16, 987, 32, 3779, 34, 8845, 7275, 87, 13, 202, 95, 202, 202, 11739, ...
public void sendPendingMessages(FCPConnectionOutputHandler handler, boolean includePersistentRequest) {
public void sendPendingMessages(FCPConnectionOutputHandler handler, boolean includePersistentRequest, boolean includeData) {
public void sendPendingMessages(FCPConnectionOutputHandler handler, boolean includePersistentRequest) { if(persistenceType == PERSIST_CONNECTION) { Logger.error(this, "WTF? persistenceType="+persistenceType, new Exception("error")); return; } if(includePersistentRequest) { FCPMessage msg = persistentTagMessage(); handler.queue(msg); } if(generatedURI != null) trySendGeneratedURIMessage(handler); if(progressMessage != null) handler.queue(progressMessage); if(finished) trySendFinalMessage(handler); }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/20460220ea1181e62f9c802b001bf09ef46c806b/ClientPutBase.java/buggy/src/freenet/node/fcp/ClientPutBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1366, 8579, 5058, 12, 42, 4258, 1952, 30796, 1838, 16, 1250, 2341, 11906, 691, 13, 288, 202, 202, 430, 12, 24854, 559, 422, 10950, 18732, 67, 15461, 13, 288, 1082, 202, 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, 225, 202, 482, 918, 1366, 8579, 5058, 12, 42, 4258, 1952, 30796, 1838, 16, 1250, 2341, 11906, 691, 13, 288, 202, 202, 430, 12, 24854, 559, 422, 10950, 18732, 67, 15461, 13, 288, 1082, 202, 3...
for (Iterator iter = collect.iterator(); iter.hasNext();) { LegendItem item = (LegendItem) iter.next(); checker++; first.add(new JMenuItem(item.getLabel())); if ((checker % 40) == 0) { menu.add(first); first = new JMenu("Weitere"); } if (!iter.hasNext()) { menu.add(first); }
Object o = graph.getFirstCellForLocation(e.getX(), e.getY()); if (o != null && o instanceof VGraphCell) { VGraphCell cell = (VGraphCell) o; o = cell.getUserObject(); if (o != null && o instanceof VChartPanel) { VChartPanel chart = (VChartPanel) o; for (MouseListener l : chart.getMouseListeners()) { System.out.println("LISTENS REL"); l.mouseReleased(e);
protected MouseListener createMouseListener() { return new MouseAdapter() { /** * Invoked when the mouse button has been clicked (pressed * and released) on a component. */ public void mouseClicked(MouseEvent e) { System.out.println("VGraphUI.mouseClicked"); System.out.println("graph.getComponentAt(e.getPoint()) = " + graph.getComponentAt(e.getPoint())); Object o = graph.getFirstCellForLocation(e.getX(), e.getY()); if (o instanceof VGraphCell) { VGraphCell cell = (VGraphCell) o; JPopupMenu menu = new JPopupMenu(); VChartPanel chartPanel = (VChartPanel) cell.getUserObject(); if (chartPanel.isShowPopUp()) { LegendItemCollection collect = chartPanel.getChart().getPlot().getLegendItems(); JMenu first = new JMenu("Erste"); int checker = 0; for (Iterator iter = collect.iterator(); iter.hasNext();) { LegendItem item = (LegendItem) iter.next(); checker++; first.add(new JMenuItem(item.getLabel())); if ((checker % 40) == 0) { menu.add(first); first = new JMenu("Weitere"); } if (!iter.hasNext()) { menu.add(first); } } menu.show(graph, e.getX(), e.getY()); } } } }; }
56011 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56011/9ef323e06c3ff2ddcaede9d57d65f695148a8e10/VGraphUI.java/buggy/trunk/src/java/unikn/dbis/univis/visualization/graph/plaf/VGraphUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 17013, 2223, 752, 9186, 2223, 1435, 288, 3639, 327, 394, 17013, 4216, 1435, 288, 5411, 1783, 2398, 380, 5454, 14276, 1347, 326, 7644, 3568, 711, 2118, 17688, 261, 10906, 2398, 380, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 17013, 2223, 752, 9186, 2223, 1435, 288, 3639, 327, 394, 17013, 4216, 1435, 288, 5411, 1783, 2398, 380, 5454, 14276, 1347, 326, 7644, 3568, 711, 2118, 17688, 261, 10906, 2398, 380, 47...
public void handle_chat(String chat) throws IOException {
public void handle_chat(ChatType type, String recipient, String chat) throws IOException {
public void handle_chat(String chat) throws IOException { Room room = this.server.get_cur_room(); room.chat(ChatType.GGZ_CHAT_TABLE, null, chat); }
45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/c88b62084adf7bbe1c52b39385d2807ae8f01a13/Game.java/clean/java/src/ggz/client/core/Game.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 67, 10880, 12, 14163, 559, 618, 16, 514, 8027, 16, 514, 7916, 13, 1216, 1860, 288, 3639, 27535, 7725, 273, 333, 18, 3567, 18, 588, 67, 1397, 67, 13924, 5621, 3639, 7725...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 67, 10880, 12, 14163, 559, 618, 16, 514, 8027, 16, 514, 7916, 13, 1216, 1860, 288, 3639, 27535, 7725, 273, 333, 18, 3567, 18, 588, 67, 1397, 67, 13924, 5621, 3639, 7725...
try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); conn_main = DriverManager.getConnection("jdbc:derby:mydb1;" + "create=true");
try {
void startEmbeddedTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); conn_main = DriverManager.getConnection("jdbc:derby:mydb1;" + "create=true"); Statement s = conn_main.createStatement(); s.execute("create table clobtable3 (n int,clobcol CLOB)"); File file = new File("extin/short.txt"); int fileLength = (int) file.length(); InputStream fin = new FileInputStream(file); ps = conn_main.prepareStatement("INSERT INTO " + "clobtable3 " + "VALUES (?, ?)"); ps.setInt(1, 1000); ps.setAsciiStream(2, fin, fileLength); ps.execute(); ps.close(); Statement s1 = conn_main.createStatement(); s1.execute("create table blobtable3 (n int,blobcol BLOB)"); File file1 = new File("extin/short.txt"); int fileLength1 = (int) file1.length(); InputStream fin1 = new FileInputStream(file1); PreparedStatement ps1 = conn_main.prepareStatement("INSERT INTO " + "blobtable3 " + "VALUES (?, ?)"); ps1.setInt(1, 1000); ps1.setBinaryStream(2, fin1, fileLength1); ps1.execute(); conn_main.commit(); t_Clob_setMethods_Embedded(conn_main); t_Blob_setMethods_Embedded(conn_main); ps_main = conn_main.prepareStatement("select count(*) from " + "sys.systables"); conn = conn_main; ps = ps_main; t_setRowId(); t_setNString(); t_setNCharacterStream(); t_setNClob1(); t_setNClob2(); t_setSQLXML(); t_isPoolable(); t_setPoolable(); // Close the prepared statement and verify the poolable hint // cannot be set or retrieved ps.close(); stmtIsClosed = true; // This until JIRA-953 is addressed then // stmt.isClosed() can be called in the // poolable hint set/get test methods below t_isPoolable(); t_setPoolable(); } catch(SQLException sqle) { sqle.printStackTrace(); } catch(ClassNotFoundException cnfe) { cnfe.printStackTrace(); } catch(FileNotFoundException fnfe) { fnfe.printStackTrace(); } catch(IOException ioe) { ioe.printStackTrace(); } finally { try { conn_main.close(); } catch(SQLException sqle){ sqle.printStackTrace(); } } }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/21350fd74c6aee8422e4afbbe3a5c93c34081748/TestPreparedStatementMethods.java/buggy/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestPreparedStatementMethods.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 787, 14980, 4709, 4712, 1435, 288, 3639, 4050, 1487, 67, 5254, 273, 446, 31, 3639, 16913, 4250, 67, 5254, 273, 446, 31, 3639, 3480, 2520, 7395, 273, 629, 31, 7734, 775, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 787, 14980, 4709, 4712, 1435, 288, 3639, 4050, 1487, 67, 5254, 273, 446, 31, 3639, 16913, 4250, 67, 5254, 273, 446, 31, 3639, 3480, 2520, 7395, 273, 629, 31, 7734, 775, 288, 5411, ...
public MDLReader(InputStream in) { this(new InputStreamReader(in)); }
public MDLReader() { this(new StringReader("")); }
public MDLReader(InputStream in) { this(new InputStreamReader(in)); }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/0ef3606f55f2ed80f890fce346a9bd348bcdfb8e/MDLReader.java/buggy/src/org/openscience/cdk/io/MDLReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 490, 8914, 2514, 12, 4348, 316, 13, 288, 202, 202, 2211, 12, 2704, 15322, 12, 267, 10019, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 490, 8914, 2514, 12, 4348, 316, 13, 288, 202, 202, 2211, 12, 2704, 15322, 12, 267, 10019, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
public void write(byte[] buf, int off, int len) throws IOException
public void write(int bval) throws IOException
public void write(byte[] buf, int off, int len) throws IOException { inbufWrite(); def.setInput(buf, off, len); deflate(); }
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/042d4db7ad312de1d64b02b958de0d692ee82bfd/DeflaterOutputStream.java/clean/libjava/java/util/zip/DeflaterOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 12, 474, 324, 1125, 13, 1216, 1860, 225, 288, 565, 316, 4385, 3067, 5621, 565, 1652, 18, 542, 1210, 12, 4385, 16, 3397, 16, 562, 1769, 565, 1652, 20293, 5621, 225, 289,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 12, 474, 324, 1125, 13, 1216, 1860, 225, 288, 565, 316, 4385, 3067, 5621, 565, 1652, 18, 542, 1210, 12, 4385, 16, 3397, 16, 562, 1769, 565, 1652, 20293, 5621, 225, 289,...
Map eachWordMap = new HashMap(); int maxWordSize = SystemGlobals.getIntValue(ConfigKeys.SEARCH_MAX_WORD_SIZE);
Map eachWordMap = new HashMap();
private void topicsByKeyword(SearchData sd) throws Exception { boolean isLike = "like".equals(SystemGlobals.getValue(ConfigKeys.SEARCH_WORD_MATCHING).trim()); String sql = isLike ? SystemGlobals.getSql("SearchModel.searchByLikeWord") : SystemGlobals.getSql("SearchModel.searchByWord"); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(sql); Map eachWordMap = new HashMap(); int maxWordSize = SystemGlobals.getIntValue(ConfigKeys.SEARCH_MAX_WORD_SIZE); // Get the post ids to which the words are associated to for (int i = 0; i < sd.getKeywords().length; i++) { String word = sd.getKeywords()[i].toLowerCase(); if (word.length() > maxWordSize) { //truncate the word word = word.substring(0, maxWordSize); } if (isLike) { p.setString(1, "%" + word + "%"); } else { p.setString(1, word); } Set postsIds = new HashSet(); ResultSet rs = p.executeQuery(); while (rs.next()) { postsIds.add(new Integer(rs.getInt("post_id"))); } if (postsIds.size() > 0) { eachWordMap.put(sd.getKeywords()[i], postsIds); } } p.close(); // [wordName] = { each, post, id } // If seach type is OR, then get all words // If it is AND, then we want only the ids common to all words Set postsIds = null; if (sd.getUseAllWords()) { for (Iterator iter = eachWordMap.values().iterator(); iter.hasNext(); ) { if (postsIds == null) { postsIds = new HashSet(eachWordMap.values().size()); postsIds.addAll((HashSet)iter.next()); } else { postsIds.retainAll((HashSet)iter.next()); } } } else { postsIds = new HashSet(); for (Iterator iter = eachWordMap.values().iterator(); iter.hasNext(); ) { postsIds.addAll((HashSet)iter.next()); } } if (postsIds == null || postsIds.size() == 0) { return; } // Time to get ready to search for the topics ids StringBuffer sb = new StringBuffer(1024); for (Iterator iter = postsIds.iterator(); iter.hasNext(); ) { sb.append(iter.next()).append(","); } sb.delete(sb.length() - 1, sb.length()); // Search for the ids, inserting them in the helper table sql = SystemGlobals.getSql("SearchModel.insertTopicsIds"); sql = sql.replaceAll(":posts:", sb.toString()); sql = sql.replaceAll(":fids:",ForumRepository.getListAllowedForums()); p = JForumExecutionContext.getConnection().prepareStatement(sql); p.setString(1, SessionFacade.getUserSession().getSessionId()); p.executeUpdate(); // Now that we have the topics ids, it's time to make a copy from the // topics table, to make the search faster this.selectTopicData(); p.close(); }
52144 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52144/f4af364dacad27a1238104a19d90e4a102043281/GenericSearchDAO.java/clean/src/net/jforum/dao/generic/GenericSearchDAO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 11204, 858, 8736, 12, 2979, 751, 8349, 13, 1216, 1185, 202, 95, 202, 202, 6494, 353, 8804, 273, 315, 5625, 9654, 14963, 12, 3163, 19834, 18, 24805, 12, 809, 2396, 18, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11204, 858, 8736, 12, 2979, 751, 8349, 13, 1216, 1185, 202, 95, 202, 202, 6494, 353, 8804, 273, 315, 5625, 9654, 14963, 12, 3163, 19834, 18, 24805, 12, 809, 2396, 18, 17...