rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
id, PayloadKey.TRANSIENT); | Integer.valueOf(id), PayloadKey.TRANSIENT); | public void init() { super.init(); getMetaData().addMetaData(MetaDataConstants.JMS, MetaDataConstants.CONSUMER_ID, id, PayloadKey.TRANSIENT); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/bb5207822a56158d5b94faff7c6dbe5f094f6f4c/ClientConsumerDelegate.java/buggy/src/main/org/jboss/jms/client/delegate/ClientConsumerDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1208,
1435,
282,
288,
1377,
2240,
18,
2738,
5621,
1377,
23028,
7675,
1289,
6998,
12,
6998,
2918,
18,
46,
3537,
16,
27512,
2918,
18,
31668,
67,
734,
16,
27573,
2144,
18,
1132,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1208,
1435,
282,
288,
1377,
2240,
18,
2738,
5621,
1377,
23028,
7675,
1289,
6998,
12,
6998,
2918,
18,
46,
3537,
16,
27512,
2918,
18,
31668,
67,
734,
16,
27573,
2144,
18,
1132,
... |
if (value != null) | if (array.length == 1) | private Map parseGet() { Map convertedMap = new HashMap(); Map paramMap = req.getParameterMap(); for (Iterator it = paramMap.keySet().iterator(); it.hasNext();) { String key = (String) it.next(); Object value = paramMap.get(key); if (value != null) { if (value instanceof String[]) { String[] array = (String[]) value; convertedMap.put(key, array[0]); if (log.isDebugEnabled()) { for (int i = 0; i < array.length; i++) { log.debug("GET line[" + i + "]: " + key + '=' + value); //$NON-NLS-1$ //$NON-NLS-2$ } } } else { convertedMap.put(key, value); log.debug("GET line: " + key + '=' + value); //$NON-NLS-1$ } } } return convertedMap; } | 45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/d58638ac699cd04fdd8d64194898c6edcfa69238/ExecuteQuery.java/buggy/java/uk/ltd/getahead/dwr/impl/ExecuteQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1635,
1109,
967,
1435,
565,
288,
3639,
1635,
5970,
863,
273,
394,
4317,
5621,
3639,
1635,
579,
863,
273,
1111,
18,
588,
1662,
863,
5621,
3639,
364,
261,
3198,
518,
273,
579,
863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1635,
1109,
967,
1435,
565,
288,
3639,
1635,
5970,
863,
273,
394,
4317,
5621,
3639,
1635,
579,
863,
273,
1111,
18,
588,
1662,
863,
5621,
3639,
364,
261,
3198,
518,
273,
579,
863,
... |
} | } break; case IPresentablePart.PROP_TOOLBAR: case IPresentablePart.PROP_PANE_MENU: setControlSize(); break; | protected void childPropertyChanged(IPresentablePart part, int property) { CTabItem tab = getTab(part); initTab(tab, part); if(property == IPresentablePart.PROP_BUSY){ FontRegistry registry = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme().getFontRegistry(); if(part.isBusy()) tab.setFont(registry.getItalic(IWorkbenchThemeConstants.TAB_TEXT_FONT)); else{ if(getCurrent().equals(part))//Set bold if it does not already have focus tab.setFont(registry.get(IWorkbenchThemeConstants.TAB_TEXT_FONT)); else tab.setFont(registry.getBold(IWorkbenchThemeConstants.TAB_TEXT_FONT)); } } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/b9dbe6fe9cb4b73b2976ca1b85a581820c3b41ce/BasicStackPresentation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/BasicStackPresentation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1151,
1396,
5033,
12,
2579,
1581,
429,
1988,
1087,
16,
509,
1272,
13,
288,
9506,
202,
1268,
378,
1180,
3246,
273,
3181,
378,
12,
2680,
1769,
202,
202,
2738,
5661,
12,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1151,
1396,
5033,
12,
2579,
1581,
429,
1988,
1087,
16,
509,
1272,
13,
288,
9506,
202,
1268,
378,
1180,
3246,
273,
3181,
378,
12,
2680,
1769,
202,
202,
2738,
5661,
12,
70... |
Holder h = classNameHolder.get( klass.getName() ); | String[][] checks = lockedByHolder.get( klass.getName() ); | public String[][] getLockChecks( Class<? extends IObject> klass ) { if ( klass == null ) throw new ApiUsageException( "Cannot proceed with null klass." ); Holder h = classNameHolder.get( klass.getName() ); if ( h == null ) throw new ApiUsageException( "Metadata not found for: " +klass.getName()); return h.getLockChecks( ); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e30f801c3b2923483e1f69853136328bb21a1d79/ExtendedMetadata.java/buggy/components/server/src/ome/tools/hibernate/ExtendedMetadata.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
63,
6362,
65,
22206,
4081,
12,
1659,
12880,
3231,
467,
921,
34,
7352,
262,
202,
95,
202,
202,
430,
261,
7352,
422,
446,
262,
1875,
202,
12849,
394,
4458,
5357,
503,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
63,
6362,
65,
22206,
4081,
12,
1659,
12880,
3231,
467,
921,
34,
7352,
262,
202,
95,
202,
202,
430,
261,
7352,
422,
446,
262,
1875,
202,
12849,
394,
4458,
5357,
503,
12,
... |
interp_qlpc = new float[lpcSize+1]; mem_sp = new float[5*lpcSize]; | interp_qlpc = new float[lpcSize + 1]; mem_sp = new float[5 * lpcSize]; | protected void init(final int frameSize, final int subframeSize, final int lpcSize, final int bufSize) { first = 1; // Codec parameters, should eventually have several "modes" this.frameSize = frameSize; this.windowSize = frameSize*3/2; this.subframeSize = subframeSize; this.nbSubframes = frameSize/subframeSize; this.lpcSize = lpcSize; this.bufSize = bufSize; min_pitch = 17; max_pitch = 144; preemph = 0.0f; pre_mem = 0.0f; gamma1 = 0.9f; gamma2 = 0.6f; lag_factor = .01f; lpc_floor = 1.0001f; frmBuf = new float[bufSize]; frmIdx = bufSize - windowSize; excBuf = new float[bufSize]; excIdx = bufSize - windowSize; innov = new float[frameSize]; lpc = new float[lpcSize+1]; qlsp = new float[lpcSize]; old_qlsp = new float[lpcSize]; interp_qlsp = new float[lpcSize]; interp_qlpc = new float[lpcSize+1]; mem_sp = new float[5*lpcSize]; // TODO - check why 5 (why not 2 or 1) pi_gain = new float[nbSubframes]; awk1 = new float[lpcSize+1]; awk2 = new float[lpcSize+1]; awk3 = new float[lpcSize+1]; voc_m1 = voc_m2 = voc_mean = 0; voc_offset = 0; dtx_enabled = 0; // disabled by default } | 6221 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6221/81112208859292bc5ef5f9b0033ab2ea6dab38c0/NbCodec.java/clean/main/trunk/codec/src/main/java/org/xiph/speex/NbCodec.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
12,
6385,
509,
2623,
1225,
16,
8227,
727,
509,
720,
3789,
1225,
16,
8227,
727,
509,
328,
2436,
1225,
16,
8227,
727,
509,
1681,
1225,
13,
225,
288,
565,
1122,
273,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
12,
6385,
509,
2623,
1225,
16,
8227,
727,
509,
720,
3789,
1225,
16,
8227,
727,
509,
328,
2436,
1225,
16,
8227,
727,
509,
1681,
1225,
13,
225,
288,
565,
1122,
273,
404,
... |
private void gotoURL(URL url, boolean addToHistory) | public void gotoURL(URL url, boolean addToHistory) | private void gotoURL(URL url, boolean addToHistory) { // reset default cursor so that the hand cursor doesn't // stick around viewer.setCursor(Cursor.getDefaultCursor()); try { urlField.setText(url.toString()); viewer.setPage(url); if(addToHistory) { history[historyPos++] = url; if(history.length == historyPos) System.arraycopy(history,1,history, 0,history.length); history[historyPos] = null; } } catch(IOException io) { Log.log(Log.ERROR,this,io); String[] args = { io.getMessage() }; GUIUtilities.error(this,"ioerror",args); } } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/5a08d5b277d2412bf4605e19afc60b08774724df/HelpViewer.java/clean/org/gjt/sp/jedit/gui/HelpViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2897,
1785,
12,
1785,
880,
16,
1250,
9604,
5623,
13,
202,
95,
202,
202,
759,
2715,
805,
3347,
1427,
716,
326,
948,
3347,
3302,
1404,
202,
202,
759,
25608,
6740,
202,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2897,
1785,
12,
1785,
880,
16,
1250,
9604,
5623,
13,
202,
95,
202,
202,
759,
2715,
805,
3347,
1427,
716,
326,
948,
3347,
3302,
1404,
202,
202,
759,
25608,
6740,
202,
202... |
l = new CategoryImageLink(); l.link(mParent, ((DataObject) image.next()).asImage()); objects.add(l); | ioChild = ((DataObject) image.next()).asIObject(); objects.add(ModelMapper.linkParentToChild(ioChild, ioParent)); | public void classify(Set images, Set categories) throws DSOutOfServiceException, DSAccessException { try { images.toArray(new ImageData[] {}); } catch (ArrayStoreException ase) { throw new IllegalArgumentException( "images only contains ImageData elements."); } try { categories.toArray(new CategoryData[] {}); } catch (ArrayStoreException ase) { throw new IllegalArgumentException( "categories only contains CategoryData elements."); } Iterator category = categories.iterator(); Iterator image; List objects = new ArrayList(); Category mParent; CategoryImageLink l; while (category.hasNext()) { mParent = ((DataObject) category.next()).asCategory(); image = images.iterator(); while (image.hasNext()) { l = new CategoryImageLink(); l.link(mParent, ((DataObject) image.next()).asImage()); objects.add(l); } } if (objects.size() != 0) { Iterator i = objects.iterator(); IObject[] array = new IObject[objects.size()]; int index = 0; while (i.hasNext()) { array[index] = (IObject) i.next(); index++; } gateway.createObjects(array, (new PojoOptions()).map()); } } | 55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/3be9d381a3d593d28d0b987df4bc2963a9fa97b8/OmeroDataServiceImpl.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OmeroDataServiceImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19974,
12,
694,
4602,
16,
1000,
6477,
13,
5411,
1216,
8678,
11224,
15133,
16,
8678,
9773,
565,
288,
3639,
775,
288,
5411,
4602,
18,
31447,
12,
2704,
3421,
751,
8526,
2618,
1769... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19974,
12,
694,
4602,
16,
1000,
6477,
13,
5411,
1216,
8678,
11224,
15133,
16,
8678,
9773,
565,
288,
3639,
775,
288,
5411,
4602,
18,
31447,
12,
2704,
3421,
751,
8526,
2618,
1769... |
redoAction = ActionFactory.REDO.create(getWindow()); | redoAction = ActionFactory.REDO.create(window); | protected void makeActions(IWorkbenchWindow window) { // @issue should obtain from ConfigurationItemFactory statusLineItem = new StatusLineContributionItem("ModeContributionItem"); //$NON-NLS-1$ newWizardAction = ActionFactory.NEW.create(getWindow()); register(newWizardAction); newWizardDropDownAction = IDEActionFactory.NEW_WIZARD_DROP_DOWN .create(getWindow()); register(newWizardDropDownAction); importResourcesAction = ActionFactory.IMPORT.create(getWindow()); register(importResourcesAction); exportResourcesAction = ActionFactory.EXPORT.create(getWindow()); register(exportResourcesAction); buildAllAction = IDEActionFactory.BUILD.create(getWindow()); register(buildAllAction); cleanAction = IDEActionFactory.BUILD_CLEAN.create(getWindow()); register(cleanAction); toggleAutoBuildAction = IDEActionFactory.BUILD_AUTOMATICALLY .create(getWindow()); register(toggleAutoBuildAction); saveAction = ActionFactory.SAVE.create(getWindow()); register(saveAction); saveAsAction = ActionFactory.SAVE_AS.create(getWindow()); register(saveAsAction); saveAllAction = ActionFactory.SAVE_ALL.create(getWindow()); register(saveAllAction); undoAction = ActionFactory.UNDO.create(getWindow()); register(undoAction); redoAction = ActionFactory.REDO.create(getWindow()); register(redoAction); cutAction = ActionFactory.CUT.create(getWindow()); register(cutAction); copyAction = ActionFactory.COPY.create(getWindow()); register(copyAction); pasteAction = ActionFactory.PASTE.create(getWindow()); register(pasteAction); printAction = ActionFactory.PRINT.create(getWindow()); register(printAction); selectAllAction = ActionFactory.SELECT_ALL.create(getWindow()); register(selectAllAction); findAction = ActionFactory.FIND.create(getWindow()); register(findAction); closeAction = ActionFactory.CLOSE.create(getWindow()); register(closeAction); closeAllAction = ActionFactory.CLOSE_ALL.create(getWindow()); register(closeAllAction); closeAllSavedAction = ActionFactory.CLOSE_ALL_SAVED.create(getWindow()); register(closeAllSavedAction); helpContentsAction = ActionFactory.HELP_CONTENTS.create(getWindow()); register(helpContentsAction); aboutAction = ActionFactory.ABOUT.create(getWindow()); aboutAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_OBJS_DEFAULT_PROD)); register(aboutAction); openPreferencesAction = ActionFactory.PREFERENCES.create(getWindow()); register(openPreferencesAction); addBookmarkAction = IDEActionFactory.BOOKMARK.create(getWindow()); register(addBookmarkAction); addTaskAction = IDEActionFactory.ADD_TASK.create(getWindow()); register(addTaskAction); deleteAction = ActionFactory.DELETE.create(getWindow()); register(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()); register(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()); register(tipsAndTricksAction); break; } } // Actions for invisible accelerators showViewMenuAction = ActionFactory.SHOW_VIEW_MENU.create(getWindow()); register(showViewMenuAction); showPartPaneMenuAction = ActionFactory.SHOW_PART_PANE_MENU .create(getWindow()); register(showPartPaneMenuAction); nextEditorAction = ActionFactory.NEXT_EDITOR.create(getWindow()); register(nextEditorAction); prevEditorAction = ActionFactory.PREVIOUS_EDITOR.create(getWindow()); register(prevEditorAction); ActionFactory.linkCycleActionPair(nextEditorAction, prevEditorAction); nextPartAction = ActionFactory.NEXT_PART.create(getWindow()); register(nextPartAction); prevPartAction = ActionFactory.PREVIOUS_PART.create(getWindow()); register(prevPartAction); ActionFactory.linkCycleActionPair(nextPartAction, prevPartAction); nextPerspectiveAction = ActionFactory.NEXT_PERSPECTIVE .create(getWindow()); register(nextPerspectiveAction); prevPerspectiveAction = ActionFactory.PREVIOUS_PERSPECTIVE .create(getWindow()); register(prevPerspectiveAction); ActionFactory.linkCycleActionPair(nextPerspectiveAction, prevPerspectiveAction); activateEditorAction = ActionFactory.ACTIVATE_EDITOR .create(getWindow()); register(activateEditorAction); maximizePartAction = ActionFactory.MAXIMIZE.create(getWindow()); register(maximizePartAction); minimizePartAction = ActionFactory.MINIMIZE.create(getWindow()); register(minimizePartAction); workbenchEditorsAction = ActionFactory.SHOW_OPEN_EDITORS .create(getWindow()); register(workbenchEditorsAction); workbookEditorsAction = ActionFactory.SHOW_WORKBOOK_EDITORS .create(getWindow()); register(workbookEditorsAction); hideShowEditorAction = ActionFactory.SHOW_EDITOR.create(getWindow()); register(hideShowEditorAction); savePerspectiveAction = ActionFactory.SAVE_PERSPECTIVE .create(getWindow()); register(savePerspectiveAction); editActionSetAction = ActionFactory.EDIT_ACTION_SETS .create(getWindow()); register(editActionSetAction); lockToolBarAction = ActionFactory.LOCK_TOOL_BAR.create(getWindow()); register(lockToolBarAction); resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE .create(getWindow()); register(resetPerspectiveAction); closePerspAction = ActionFactory.CLOSE_PERSPECTIVE.create(getWindow()); register(closePerspAction); closeAllPerspsAction = ActionFactory.CLOSE_ALL_PERSPECTIVES .create(getWindow()); register(closeAllPerspsAction); forwardHistoryAction = ActionFactory.FORWARD_HISTORY .create(getWindow()); register(forwardHistoryAction); backwardHistoryAction = ActionFactory.BACKWARD_HISTORY .create(getWindow()); register(backwardHistoryAction); revertAction = ActionFactory.REVERT.create(getWindow()); register(revertAction); refreshAction = ActionFactory.REFRESH.create(getWindow()); register(refreshAction); propertiesAction = ActionFactory.PROPERTIES.create(getWindow()); register(propertiesAction); quitAction = ActionFactory.QUIT.create(getWindow()); register(quitAction); moveAction = ActionFactory.MOVE.create(getWindow()); register(moveAction); renameAction = ActionFactory.RENAME.create(getWindow()); register(renameAction); goIntoAction = ActionFactory.GO_INTO.create(getWindow()); register(goIntoAction); backAction = ActionFactory.BACK.create(getWindow()); register(backAction); forwardAction = ActionFactory.FORWARD.create(getWindow()); register(forwardAction); upAction = ActionFactory.UP.create(getWindow()); register(upAction); nextAction = ActionFactory.NEXT.create(getWindow()); nextAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_NEXT_NAV)); register(nextAction); previousAction = ActionFactory.PREVIOUS.create(getWindow()); previousAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_PREVIOUS_NAV)); register(previousAction); buildProjectAction = IDEActionFactory.BUILD_PROJECT.create(getWindow()); register(buildProjectAction); openProjectAction = IDEActionFactory.OPEN_PROJECT.create(getWindow()); register(openProjectAction); closeProjectAction = IDEActionFactory.CLOSE_PROJECT.create(getWindow()); register(closeProjectAction); openWorkspaceAction = IDEActionFactory.OPEN_WORKSPACE .create(getWindow()); register(openWorkspaceAction); projectPropertyDialogAction = IDEActionFactory.OPEN_PROJECT_PROPERTIES .create(getWindow()); register(projectPropertyDialogAction); if (getWindow().getWorkbench().getIntroManager().hasIntro()) { introAction = ActionFactory.INTRO.create(window); register(introAction); } 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())); } }; register(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())); } }; register(newQuickMenu); pinEditorContributionItem = ContributionItemFactory.PIN_EDITOR .create(getWindow()); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1bde0643dd187b23bf57cd332e0997f6c371aaa1/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,
4750,
918,
1221,
6100,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
3639,
368,
632,
13882,
1410,
7161,
628,
4659,
1180,
1733,
3639,
1267,
30038,
273,
394,
2685,
1670,
442,
4027,
1180,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
6100,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
3639,
368,
632,
13882,
1410,
7161,
628,
4659,
1180,
1733,
3639,
1267,
30038,
273,
394,
2685,
1670,
442,
4027,
1180,
2932,
... |
} | } | public void test_ROCombo_SWTCCombo() { // Create a list of Strings for the countries IObservableList list = new WritableList(); for (int i = 0; i < catalog.getAccounts().length; i++) list.add(catalog.getAccounts()[i].getCountry()); CCombo ccombo = new CCombo(getComposite(), SWT.READ_ONLY | SWT.DROP_DOWN); // Bind the combo's content to that of the String based list getDbc().bindList(SWTObservables.observeItems(ccombo), list, null); assertEquals(Arrays.asList(ccombo.getItems()), list); Account account = catalog.getAccounts()[0]; // simple Combo's selection bound to the Account's country property IObservableValue comboSelection = SWTObservables.observeSelection(ccombo); getDbc().bindValue(comboSelection, BeansObservables.observeValue(account, "country"), null); // Drive the combo selection String selection = (String) list.get(2); ccombo.setText(selection); // this should drive the selection assertEquals(account.getCountry(), selection); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a469cb14d7815f1d5dea6c4a44ea9ea80e229bed/ComboScenarios.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/ComboScenarios.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
1457,
16156,
67,
55,
8588,
39,
16156,
1435,
288,
3639,
368,
1788,
279,
666,
434,
8139,
364,
326,
17603,
3639,
1665,
3745,
682,
666,
273,
394,
14505,
682,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
1457,
16156,
67,
55,
8588,
39,
16156,
1435,
288,
3639,
368,
1788,
279,
666,
434,
8139,
364,
326,
17603,
3639,
1665,
3745,
682,
666,
273,
394,
14505,
682,
5621,
3639,
... |
JFrame jf = new JFrame(); | final JFrame jf = new JFrame(); jf.setSize(400, 600); | private JFrame createMenuTest(int max) throws HeadlessException { JFrame jf = new JFrame(); final JMenuBar jb = new JMenuBar(); jf.setJMenuBar(jb); fileMenu = new JMenu("File"); for (int i = 0; i <= max; i++) { fileMenu.add(new JMenuItem(Integer.toString(i))); } jf.setSize(400, 600); jb.add(fileMenu); ASUtils.breakLongMenu(jf, fileMenu); jf.setVisible(true); return jf; } | 53257 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53257/e5c8134f54d582c05bc87406d48fcf27abe37a9f/TestASUtilsMenu.java/clean/regress/ca/sqlpower/architect/swingui/TestASUtilsMenu.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
804,
3219,
752,
4599,
4709,
12,
474,
943,
13,
1216,
3667,
2656,
503,
288,
202,
202,
46,
3219,
525,
74,
273,
394,
804,
3219,
5621,
202,
202,
6385,
804,
4599,
5190,
20515,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
804,
3219,
752,
4599,
4709,
12,
474,
943,
13,
1216,
3667,
2656,
503,
288,
202,
202,
46,
3219,
525,
74,
273,
394,
804,
3219,
5621,
202,
202,
6385,
804,
4599,
5190,
20515,
273,... |
public boolean parse( File file ) | public void parse( File file ) throws ParserConfigurationException, SAXException, IOException | public boolean parse( File file ) { try { saxFactory = SAXParserFactory.newInstance(); SAXParser parser = saxFactory.newSAXParser(); InputSource is = new InputSource( new FileInputStream( file ) ); parser.parse( is, this ); return true; } catch ( Exception e ) { e.printStackTrace(); return false; } } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/bab8d3fd909f5ba07ec58c6ecc29a1011c94f910/AbstractReader.java/buggy/maven-mboot2/src/main/java/util/AbstractReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
12,
1387,
585,
262,
1216,
6783,
10737,
16,
14366,
16,
1860,
565,
288,
3639,
775,
3639,
288,
5411,
20319,
1733,
273,
10168,
2678,
1733,
18,
2704,
1442,
5621,
5411,
10168,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
12,
1387,
585,
262,
1216,
6783,
10737,
16,
14366,
16,
1860,
565,
288,
3639,
775,
3639,
288,
5411,
20319,
1733,
273,
10168,
2678,
1733,
18,
2704,
1442,
5621,
5411,
10168,
... |
((CodeSnippetCodeStream) codeStream).generateEmulatedReadAccessForField(fieldBinding); | codeStream.generateEmulatedReadAccessForField(fieldBinding); | public void generateCompoundAssignment(BlockScope currentScope, CodeStream codeStream, MethodBinding writeAccessor, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired) { switch (this.bits & RestrictiveFlagMASK) { case Binding.FIELD : // assigning to a field FieldBinding fieldBinding = (FieldBinding) this.codegenBinding; if (fieldBinding.isStatic()) { if (fieldBinding.canBeSeenBy(getReceiverType(currentScope), this, currentScope)) { codeStream.getstatic(fieldBinding); } else { // used to store the value ((CodeSnippetCodeStream) codeStream).generateEmulationForField(fieldBinding); codeStream.aconst_null(); // used to retrieve the actual value codeStream.aconst_null(); ((CodeSnippetCodeStream) codeStream).generateEmulatedReadAccessForField(fieldBinding); } } else { if (fieldBinding.canBeSeenBy(getReceiverType(currentScope), this, currentScope)) { if ((this.bits & DepthMASK) != 0) { ReferenceBinding targetType = currentScope.enclosingSourceType().enclosingTypeAt((this.bits & DepthMASK) >> DepthSHIFT); Object[] emulationPath = currentScope.getEmulationPath(targetType, true /*only exact match*/, false/*consider enclosing arg*/); codeStream.generateOuterAccess(emulationPath, this, targetType, currentScope); } else { generateReceiver(codeStream); } codeStream.dup(); codeStream.getfield(fieldBinding); } else { if ((this.bits & DepthMASK) != 0) { // internal error, per construction we should have found it // not yet supported currentScope.problemReporter().needImplementation(); } // used to store the value ((CodeSnippetCodeStream) codeStream).generateEmulationForField(fieldBinding); generateReceiver(codeStream); // used to retrieve the actual value codeStream.dup(); ((CodeSnippetCodeStream) codeStream).generateEmulatedReadAccessForField(fieldBinding); } } break; case Binding.LOCAL : // assigning to a local variable (cannot assign to outer local) LocalVariableBinding localBinding = (LocalVariableBinding) this.codegenBinding; Constant assignConstant; int increment; // using incr bytecode if possible switch (localBinding.type.id) { case T_JavaLangString : codeStream.generateStringConcatenationAppend(currentScope, this, expression); if (valueRequired) { codeStream.dup(); } codeStream.store(localBinding, false); return; case T_int : if (((assignConstant = expression.constant) != Constant.NotAConstant) && (assignConstant.typeID() != T_float) // only for integral types && (assignConstant.typeID() != T_double) && ((increment = assignConstant.intValue()) == (short) increment)) { // 16 bits value switch (operator) { case PLUS : codeStream.iinc(localBinding.resolvedPosition, increment); if (valueRequired) { codeStream.load(localBinding); } return; case MINUS : codeStream.iinc(localBinding.resolvedPosition, -increment); if (valueRequired) { codeStream.load(localBinding); } return; } } default : codeStream.load(localBinding); } } // perform the actual compound operation int operationTypeID; switch(operationTypeID = (this.implicitConversion & IMPLICIT_CONVERSION_MASK) >> 4) { case T_JavaLangString : case T_JavaLangObject : case T_undefined : codeStream.generateStringConcatenationAppend(currentScope, null, expression); break; default : // promote the array reference to the suitable operation type codeStream.generateImplicitConversion(this.implicitConversion); // generate the increment value (will by itself be promoted to the operation value) if (expression == IntLiteral.One){ // prefix operation codeStream.generateConstant(expression.constant, this.implicitConversion); } else { expression.generateCode(currentScope, codeStream, true); } // perform the operation codeStream.sendOperator(operator, operationTypeID); // cast the value back to the array reference type codeStream.generateImplicitConversion(assignmentImplicitConversion); } // store the result back into the variable switch (this.bits & RestrictiveFlagMASK) { case Binding.FIELD : // assigning to a field FieldBinding fieldBinding = (FieldBinding) this.codegenBinding; if (fieldBinding.canBeSeenBy(getReceiverType(currentScope), this, currentScope)) { fieldStore(codeStream, fieldBinding, writeAccessor, valueRequired); } else { // current stack is: // field receiver value if (valueRequired) { if ((fieldBinding.type == TypeBinding.LONG) || (fieldBinding.type == TypeBinding.DOUBLE)) { codeStream.dup2_x2(); } else { codeStream.dup_x2(); } } // current stack is: // value field receiver value ((CodeSnippetCodeStream) codeStream).generateEmulatedWriteAccessForField(fieldBinding); } return; case Binding.LOCAL : // assigning to a local variable LocalVariableBinding localBinding = (LocalVariableBinding) this.codegenBinding; if (valueRequired) { if ((localBinding.type == TypeBinding.LONG) || (localBinding.type == TypeBinding.DOUBLE)) { codeStream.dup2(); } else { codeStream.dup(); } } codeStream.store(localBinding, false); }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/5a485cb39d1ee33622141cf426fac71c4bf93ded/CodeSnippetSingleNameReference.java/buggy/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetSingleNameReference.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
2103,
16835,
7729,
12,
1768,
3876,
783,
3876,
16,
3356,
1228,
981,
1228,
16,
2985,
5250,
1045,
8235,
16,
5371,
2652,
16,
509,
3726,
16,
509,
6661,
15787,
6814,
16,
1250,
460,
3705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2103,
16835,
7729,
12,
1768,
3876,
783,
3876,
16,
3356,
1228,
981,
1228,
16,
2985,
5250,
1045,
8235,
16,
5371,
2652,
16,
509,
3726,
16,
509,
6661,
15787,
6814,
16,
1250,
460,
3705,
... |
+ "SIBLINGNUMBER" | + "S" | public String makeTreeNodeId(int level, TreeNode parent, int siblingNumber) { return "TREENODE_LEVEL" + Constants.DELIMITER + level + Constants.DELIMITER + "PARENTNODEID" + Constants.DELIMITER + "[" + (parent == null ? "NOPARENTID" : parent.getId()) + "]" + Constants.DELIMITER + "SIBLINGNUMBER" + Constants.DELIMITER + siblingNumber + Constants.DELIMITER + "ID"; } | 5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/eb28eb7a536f6911851c1420be30d88ad043ad97/Fixtures.java/buggy/signet/test/edu/internet2/middleware/signet/test/Fixtures.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1221,
12513,
548,
12,
474,
1801,
16,
20270,
982,
16,
509,
10841,
1854,
13,
225,
288,
565,
327,
377,
202,
6,
56,
15878,
2712,
67,
10398,
6,
4202,
397,
5245,
18,
19722,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1221,
12513,
548,
12,
474,
1801,
16,
20270,
982,
16,
509,
10841,
1854,
13,
225,
288,
565,
327,
377,
202,
6,
56,
15878,
2712,
67,
10398,
6,
4202,
397,
5245,
18,
19722,
1377,
... |
return contents; | return new Object[][]{ /** Field ERROR0000 */ { "ERROR0000" , "{0}" }, /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH */ { ER_CURRENT_NOT_ALLOWED_IN_MATCH, "\u5728\u6bd4\u5c0d\u578b\u6a23\u4e2d\u4e0d\u5141\u8a31\u4f7f\u7528 current() \u51fd\u6578\uff01" }, /** Field ER_CURRENT_TAKES_NO_ARGS */ { ER_CURRENT_TAKES_NO_ARGS, "current() \u51fd\u6578\u4e0d\u63a5\u53d7\u5f15\u6578\uff01" }, /** Field ER_DOCUMENT_REPLACED */ { ER_DOCUMENT_REPLACED, "document() \u51fd\u6578\u5be6\u4f5c\u5df2\u88ab org.apache.xalan.xslt.FuncDocument \u53d6\u4ee3\uff01"}, /** Field ER_CONTEXT_HAS_NO_OWNERDOC */ { ER_CONTEXT_HAS_NO_OWNERDOC, "\u74b0\u5883\u5b9a\u7fa9\u6c92\u6709\u64c1\u6709\u8005\u6587\u4ef6\uff01"}, /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS */ { ER_LOCALNAME_HAS_TOO_MANY_ARGS, "local-name() \u6709\u592a\u591a\u5f15\u6578\u3002"}, /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS */ { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS, "namespace-uri() \u6709\u592a\u591a\u5f15\u6578\u3002"}, /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS */ { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS, "normalize-space() \u6709\u592a\u591a\u5f15\u6578\u3002"}, /** Field ER_NUMBER_HAS_TOO_MANY_ARGS */ { ER_NUMBER_HAS_TOO_MANY_ARGS, "number() \u6709\u592a\u591a\u5f15\u6578\u3002"}, /** Field ER_NAME_HAS_TOO_MANY_ARGS */ { ER_NAME_HAS_TOO_MANY_ARGS, "name() \u6709\u592a\u591a\u5f15\u6578\u3002"}, /** Field ER_STRING_HAS_TOO_MANY_ARGS */ { ER_STRING_HAS_TOO_MANY_ARGS, "string() \u6709\u592a\u591a\u5f15\u6578\u3002"}, /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS */ { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS, "string-length() \u6709\u592a\u591a\u5f15\u6578\u3002"}, /** Field ER_TRANSLATE_TAKES_3_ARGS */ { ER_TRANSLATE_TAKES_3_ARGS, "translate() \u51fd\u6578\u9700\u8981 3 \u500b\u5f15\u6578\uff01"}, /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG */ { ER_UNPARSEDENTITYURI_TAKES_1_ARG, "unparsed-entity-uri \u51fd\u6578\u53ea\u9700\u8981 1 \u500b\u5f15\u6578\uff01"}, /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED */ { ER_NAMESPACEAXIS_NOT_IMPLEMENTED, "namespace axis \u5c1a\u672a\u5be6\u4f5c\uff01"}, /** Field ER_UNKNOWN_AXIS */ { ER_UNKNOWN_AXIS, "\u4e0d\u660e\u8ef8\uff1a{0}"}, /** Field ER_UNKNOWN_MATCH_OPERATION */ { ER_UNKNOWN_MATCH_OPERATION, "\u4e0d\u660e\u7684\u6bd4\u5c0d\u4f5c\u696d\uff01"}, /** Field ER_INCORRECT_ARG_LENGTH */ { ER_INCORRECT_ARG_LENGTH, "processing-instruction() \u7bc0\u9ede\u6e2c\u8a66\u7684\u5f15\u6578\u9577\u5ea6\u4e0d\u6b63\u78ba\uff01"}, /** Field ER_CANT_CONVERT_TO_NUMBER */ { ER_CANT_CONVERT_TO_NUMBER, "{0} \u7121\u6cd5\u8f49\u63db\u70ba\u6578\u5b57"}, /** Field ER_CANT_CONVERT_TO_NODELIST */ { ER_CANT_CONVERT_TO_NODELIST, "{0} \u7121\u6cd5\u8f49\u63db\u70ba NodeList\uff01"}, /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST */ { ER_CANT_CONVERT_TO_MUTABLENODELIST, "{0} \u7121\u6cd5\u8f49\u63db\u70ba NodeSetDTM\uff01"}, /** Field ER_CANT_CONVERT_TO_TYPE */ { ER_CANT_CONVERT_TO_TYPE, "\u7121\u6cd5\u5c07 {0} \u8f49\u63db\u70ba type#{1}"}, /** Field ER_EXPECTED_MATCH_PATTERN */ { ER_EXPECTED_MATCH_PATTERN, "\u539f\u9810\u671f\u5728 getMatchScore \u4e2d\u6703\u51fa\u73fe\u6bd4\u5c0d\u578b\u6a23\uff01"}, /** Field ER_COULDNOT_GET_VAR_NAMED */ { ER_COULDNOT_GET_VAR_NAMED, "\u7121\u6cd5\u53d6\u5f97\u8b8a\u6578\u540d\u7a31 {0}"}, /** Field ER_UNKNOWN_OPCODE */ { ER_UNKNOWN_OPCODE, "\u932f\u8aa4\uff01\u4e0d\u660e\u4f5c\u696d\u78bc\uff1a{0}"}, /** Field ER_EXTRA_ILLEGAL_TOKENS */ { ER_EXTRA_ILLEGAL_TOKENS, "\u984d\u5916\u7684\u4e0d\u5408\u6cd5\u8a18\u865f\uff1a{0}"}, /** Field ER_EXPECTED_DOUBLE_QUOTE */ { ER_EXPECTED_DOUBLE_QUOTE, "\u62ec\u932f\u5f15\u865f\u7684\u6587\u5b57... \u539f\u9810\u671f\u70ba\u96d9\u5f15\u865f\uff01"}, /** Field ER_EXPECTED_SINGLE_QUOTE */ { ER_EXPECTED_SINGLE_QUOTE, "\u62ec\u932f\u5f15\u865f\u7684\u6587\u5b57... \u539f\u9810\u671f\u70ba\u55ae\u5f15\u865f\uff01"}, /** Field ER_EMPTY_EXPRESSION */ { ER_EMPTY_EXPRESSION, "\u7a7a\u7684\u8868\u793a\u5f0f\uff01"}, /** Field ER_EXPECTED_BUT_FOUND */ { ER_EXPECTED_BUT_FOUND, "\u539f\u9810\u671f\u70ba {0}\uff0c\u537b\u767c\u73fe\uff1a{1}"}, /** Field ER_INCORRECT_PROGRAMMER_ASSERTION */ { ER_INCORRECT_PROGRAMMER_ASSERTION, "\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u5047\u8a2d(Programmer assertion)\u4e0d\u6b63\u78ba\uff01- {0}"}, /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL */ { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL, "boolean(...) \u5f15\u6578\u5728 19990709 XPath \u521d\u7a3f\u4e2d\u4e0d\u518d\u662f\u53ef\u9078\u7528\u7684\u3002"}, /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG */ { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG, "\u627e\u5230 ','\uff0c\u4f46\u4e4b\u524d\u6c92\u6709\u5f15\u6578\uff01"}, /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG */ { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG, "\u627e\u5230 ','\uff0c\u4f46\u4e4b\u5f8c\u6c92\u6709\u5f15\u6578\uff01"}, /** Field ER_PREDICATE_ILLEGAL_SYNTAX */ { ER_PREDICATE_ILLEGAL_SYNTAX, "'..[predicate]' \u6216 '.[predicate]' \u662f\u4e0d\u5408\u6cd5\u8a9e\u6cd5\u3002\u8acb\u6539\u7528 'self::node()[predicate]'\u3002"}, /** Field ER_ILLEGAL_AXIS_NAME */ { ER_ILLEGAL_AXIS_NAME, "\u4e0d\u5408\u6cd5\u8ef8\u540d\u7a31\uff1a{0}"}, /** Field ER_UNKNOWN_NODETYPE */ { ER_UNKNOWN_NODETYPE, "\u4e0d\u660e\u7bc0\u9ede\u985e\u578b\uff1a{0}"}, /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED */ { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED, "\u578b\u6a23\u6587\u5b57 ({0}) \u9700\u8981\u7528\u5f15\u865f\u62ec\u4f4f\uff01"}, /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER */ { ER_COULDNOT_BE_FORMATTED_TO_NUMBER, "{0} \u7121\u6cd5\u683c\u5f0f\u5316\u70ba\u6578\u5b57\uff01"}, /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON */ { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON, "\u7121\u6cd5\u5efa\u7acb XML TransformerFactory Liaison\uff1a{0}"}, /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP */ { ER_DIDNOT_FIND_XPATH_SELECT_EXP, "\u932f\u8aa4\uff01\u6c92\u6709\u627e\u5230 xpath select \u8868\u793a\u5f0f (-select)\u3002"}, /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH */ { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH, "\u932f\u8aa4\uff01\u5728 OP_LOCATIONPATH \u4e4b\u5f8c\u627e\u4e0d\u5230 ENDOP"}, /** Field ER_ERROR_OCCURED */ { ER_ERROR_OCCURED, "\u767c\u751f\u932f\u8aa4\uff01"}, /** Field ER_ILLEGAL_VARIABLE_REFERENCE */ { ER_ILLEGAL_VARIABLE_REFERENCE, "\u63d0\u4f9b\u7d66\u8b8a\u6578\u7684 VariableReference \u8d85\u51fa\u74b0\u5883\u5b9a\u7fa9\u6216\u6c92\u6709\u5b9a\u7fa9\uff01\u540d\u7a31 = {0}"}, /** Field ER_AXES_NOT_ALLOWED */ { ER_AXES_NOT_ALLOWED, "\u6bd4\u5c0d\u578b\u6a23\u4e2d\u53ea\u63a5\u53d7 child:: \u4ee5\u53ca attribute:: \u5169\u7a2e\u8ef8\uff01\u4e0d\u7576\u7684\u8ef8 = {0}"}, /** Field ER_KEY_HAS_TOO_MANY_ARGS */ { ER_KEY_HAS_TOO_MANY_ARGS, "key() \u542b\u6709\u4e0d\u6b63\u78ba\u5f15\u6578\u6578\u76ee\u3002"}, /** Field ER_COUNT_TAKES_1_ARG */ { ER_COUNT_TAKES_1_ARG, "count \u51fd\u6578\u53ea\u9700\u8981\u4e00\u500b\u5f15\u6578\uff01"}, /** Field ER_COULDNOT_FIND_FUNCTION */ { ER_COULDNOT_FIND_FUNCTION, "\u627e\u4e0d\u5230\u51fd\u6578\uff1a{0}"}, /** Field ER_UNSUPPORTED_ENCODING */ { ER_UNSUPPORTED_ENCODING, "\u4e0d\u652f\u63f4\u7de8\u78bc\uff1a{0}"}, /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING */ { ER_PROBLEM_IN_DTM_NEXTSIBLING, "getNextSibling \u6642\u5728 DTM \u767c\u751f\u554f\u984c... \u5617\u8a66\u56de\u5fa9"}, /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL */ { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL, "\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u932f\u8aa4\uff1a\u7121\u6cd5\u5beb\u5165 EmptyNodeList\u3002"}, /** Field ER_SETDOMFACTORY_NOT_SUPPORTED */ { ER_SETDOMFACTORY_NOT_SUPPORTED, "setDOMFactory \u4e0d\u53d7 XPathContext \u652f\u63f4\uff01"}, /** Field ER_PREFIX_MUST_RESOLVE */ { ER_PREFIX_MUST_RESOLVE, "\u5b57\u9996\u5fc5\u9808\u89e3\u6790\u70ba\u540d\u7a31\u7a7a\u9593\uff1a{0}"}, /** Field ER_PARSE_NOT_SUPPORTED */ { ER_PARSE_NOT_SUPPORTED, "\u5728 XPathContext \u4e2d\u4e0d\u652f\u63f4\u5256\u6790\uff08InputSource \u539f\u59cb\u6a94\uff09\uff01\u7121\u6cd5\u958b\u555f {0}"}, /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED */ /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT */ /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT */ /** Field ER_SAX_API_NOT_HANDLED */ { ER_SAX_API_NOT_HANDLED, "SAX API character(char ch[]... \u4e0d\u80fd\u88ab DTM \u8655\u7406\uff01"}, /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED */ { ER_IGNORABLE_WHITESPACE_NOT_HANDLED, "ignorableWhitespace(char ch[]... \u4e0d\u80fd\u88ab DTM \u8655\u7406\uff01"}, /** Field ER_DTM_CANNOT_HANDLE_NODES */ { ER_DTM_CANNOT_HANDLE_NODES, "DTMLiaison \u4e0d\u80fd\u8655\u7406 {0} \u985e\u578b\u7684\u7bc0\u9ede"}, /** Field ER_XERCES_CANNOT_HANDLE_NODES */ { ER_XERCES_CANNOT_HANDLE_NODES, "DOM2Helper \u4e0d\u80fd\u8655\u7406 {0} \u985e\u578b\u7684\u7bc0\u9ede"}, /** Field ER_XERCES_PARSE_ERROR_DETAILS */ { ER_XERCES_PARSE_ERROR_DETAILS, "DOM2Helper.parse \u932f\u8aa4\uff1aSystemID - {0} \u884c - {1}"}, /** Field ER_XERCES_PARSE_ERROR */ { ER_XERCES_PARSE_ERROR, "DOM2Helper.parse \u932f\u8aa4"}, /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC */ /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT */ /** Field ER_INVALID_UTF16_SURROGATE */ { ER_INVALID_UTF16_SURROGATE, "\u5075\u6e2c\u5230\u7121\u6548\u7684 UTF-16 \u4ee3\u7406\uff1a{0}?"}, /** Field ER_OIERROR */ { ER_OIERROR, "IO \u932f\u8aa4"}, /** Field ER_CANNOT_CREATE_URL */ { ER_CANNOT_CREATE_URL, "\u7121\u6cd5\u91dd\u5c0d\uff1a{0} \u5efa\u7acb URL"}, /** Field ER_XPATH_READOBJECT */ { ER_XPATH_READOBJECT, "\u4f4d\u65bc XPath.readObject\uff1a{0}"}, /** Field ER_FUNCTION_TOKEN_NOT_FOUND */ { ER_FUNCTION_TOKEN_NOT_FOUND, "\u627e\u4e0d\u5230\u51fd\u6578\u8a18\u865f\u3002"}, /** Argument 'localName' is null */ /** Can not deal with XPath type: */ { ER_CANNOT_DEAL_XPATH_TYPE, "\u7121\u6cd5\u8655\u7406 XPath \u985e\u578b\uff1a{0}"}, /** This NodeSet is not mutable */ { ER_NODESET_NOT_MUTABLE, "\u6b64 NodeSet \u4e0d\u662f\u6613\u8b8a\u7684"}, /** This NodeSetDTM is not mutable */ { ER_NODESETDTM_NOT_MUTABLE, "\u6b64 NodeSetDTM \u4e0d\u662f\u6613\u8b8a\u7684"}, /** Variable not resolvable: */ { ER_VAR_NOT_RESOLVABLE, "\u8b8a\u6578\u7121\u6cd5\u89e3\u6790\uff1a{0}"}, /** Null error handler */ { ER_NULL_ERROR_HANDLER, "\u7a7a\u503c\u932f\u8aa4\u8655\u7406\u7a0b\u5f0f"}, /** Programmer's assertion: unknown opcode */ { ER_PROG_ASSERT_UNKNOWN_OPCODE, "\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5047\u8a2d(assertion)\uff1a\u4e0d\u660e opcode\uff1a{0}"}, /** 0 or 1 */ { ER_ZERO_OR_ONE, "0 \u6216 1"}, /** rtf() not supported by XRTreeFragSelectWrapper */ { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, "rtf() \u4e0d\u53d7 XRTreeFragSelectWrapper \u652f\u63f4"}, /** asNodeIterator() not supported by XRTreeFragSelectWrapper */ { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, "asNodeIterator() \u4e0d\u53d7 XRTreeFragSelectWrapper \u652f\u63f4"}, /** fsb() not supported for XStringForChars */ { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS, "fsb() \u4e0d\u53d7 XStringForChars \u652f\u63f4"}, /** Could not find variable with the name of */ { ER_COULD_NOT_FIND_VAR, "\u627e\u4e0d\u5230\u540d\u7a31\u70ba {0} \u7684\u8b8a\u6578"}, /** XStringForChars can not take a string for an argument */ { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING, "XStringForChars \u4e0d\u63a5\u53d7\u5b57\u4e32\u4f5c\u70ba\u5f15\u6578"}, /** The FastStringBuffer argument can not be null */ { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL, "FastStringBuffer \u5f15\u6578\u4e0d\u53ef\u70ba\u7a7a\u503c"}, /* MANTIS_XALAN CHANGE: BEGIN */ /** 2 or 3 */ { ER_TWO_OR_THREE, "2 \u6216 3"}, /** Variable accessed before it is bound! */ { ER_VARIABLE_ACCESSED_BEFORE_BIND, "\u8b8a\u6578\u5728\u9023\u7d50\u4e4b\u524d\u5373\u88ab\u5b58\u53d6\uff01"}, /** XStringForFSB can not take a string for an argument! */ { ER_FSB_CANNOT_TAKE_STRING, "XStringForFSB \u4e0d\u53ef\u4f7f\u7528\u5b57\u4e32\u4f5c\u70ba\u5f15\u6578\uff01"}, /** Error! Setting the root of a walker to null! */ { ER_SETTING_WALKER_ROOT_TO_NULL, "\n!!!! \u932f\u8aa4\uff01\u8a2d\u5b9a Walker \u7684\u6839\u76ee\u9304\u70ba\u7a7a\u503c!!!"}, /** This NodeSetDTM can not iterate to a previous node! */ { ER_NODESETDTM_CANNOT_ITERATE, "\u6b64 NodeSetDTM \u4e0d\u53ef\u758a\u4ee3\u70ba\u524d\u4e00\u500b\u7bc0\u9ede\uff01"}, /** This NodeSet can not iterate to a previous node! */ { ER_NODESET_CANNOT_ITERATE, "\u6b64 NodeSet \u4e0d\u53ef\u758a\u4ee3\u70ba\u524d\u4e00\u500b\u7bc0\u9ede\uff01"}, /** This NodeSetDTM can not do indexing or counting functions! */ { ER_NODESETDTM_CANNOT_INDEX, "\u6b64 NodeSetDTM \u4e0d\u53ef\u57f7\u884c\u6aa2\u7d22\u6216\u8a08\u6578\u529f\u80fd\uff01"}, /** This NodeSet can not do indexing or counting functions! */ { ER_NODESET_CANNOT_INDEX, "\u6b64 NodeSet \u4e0d\u53ef\u57f7\u884c\u6aa2\u7d22\u6216\u8a08\u6578\u529f\u80fd\uff01"}, /** Can not call setShouldCacheNodes after nextNode has been called! */ { ER_CANNOT_CALL_SETSHOULDCACHENODE, "\u5728\u547c\u53eb nextNode \u4e4b\u5f8c\u4e0d\u80fd\u547c\u53eb setShouldCacheNodes\u3002"}, /** {0} only allows {1} arguments */ { ER_ONLY_ALLOWS, "{0} \u53ea\u5141\u8a31 {1} \u5f15\u6578"}, /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */ { ER_UNKNOWN_STEP, "\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u5c0d\u65bc getNextStepPos \u7684\u5047\u8a2d(assertion)\uff1a\u4e0d\u660e stepType\uff1a{0}"}, /** Problem with RelativeLocationPath */ { ER_EXPECTED_REL_LOC_PATH, "\u9810\u671f\u5728 '/' \u6216 ' /** Problem with LocationPath */ { ER_EXPECTED_LOC_PATH, "\u5fc5\u9808\u662f\u4f4d\u7f6e\u8def\u5f91\uff0c\u537b\u9047\u5230\u4e0b\u5217\u8a18\u865f\u003a {0}"}, /** Problem with Step */ { ER_EXPECTED_LOC_STEP, "\u9810\u671f\u5728 '/' \u6216 ' /** Problem with NodeTest */ { ER_EXPECTED_NODE_TEST, "\u539f\u9810\u671f\u70ba\u7b26\u5408 NCName:* \u6216 QName \u7684 node test\u3002"}, /** Expected step pattern */ { ER_EXPECTED_STEP_PATTERN, "\u539f\u9810\u671f\u70ba step pattern\uff0c\u4f46\u537b\u9047\u5230 '/'\u3002"}, /** Expected relative path pattern */ { ER_EXPECTED_REL_PATH_PATTERN, "\u539f\u9810\u671f\u70ba\u76f8\u5c0d\u7684\u8def\u5f91\u578b\u6a23\u3002"}, /** localname in QNAME should be a valid NCName */ /** prefix in QNAME should be a valid NCName */ /** Field ER_CANT_CONVERT_TO_BOOLEAN */ { ER_CANT_CONVERT_TO_BOOLEAN, "\u7121\u6cd5\u5c07 {0} \u8f49\u63db\u70ba boolean\u3002"}, /** Field ER_CANT_CONVERT_TO_SINGLENODE */ { ER_CANT_CONVERT_TO_SINGLENODE, "\u7121\u6cd5\u5c07 {0} \u8f49\u63db\u70ba\u55ae\u4e00\u7bc0\u9ede\u3002\u6b64\u53d6\u5f97\u5143\u9069\u7528\u65bc ANY_UNORDERED_NODE_TYPE \u548c FIRST_ORDERED_NODE_TYPE \u5169\u7a2e\u985e\u578b\u3002"}, /** Field ER_CANT_GET_SNAPSHOT_LENGTH */ { ER_CANT_GET_SNAPSHOT_LENGTH, "\u7121\u6cd5\u53d6\u5f97\u985e\u578b {0} \u7684\u77ac\u9593\u5feb\u7167\u9577\u5ea6\u3002\u6b64\u53d6\u5f97\u5143\u9069\u7528\u65bc UNORDERED_NODE_SNAPSHOT_TYPE \u548c ORDERED_NODE_SNAPSHOT_TYPE \u5169\u7a2e\u985e\u578b\u3002"}, /** Field ER_NON_ITERATOR_TYPE */ { ER_NON_ITERATOR_TYPE, "\u7121\u6cd5\u758a\u4ee3\u975e\u758a\u4ee3\u985e\u578b\uff1a{0}"}, /** Field ER_DOC_MUTATED */ { ER_DOC_MUTATED, "\u81ea\u50b3\u56de\u7d50\u679c\u4e4b\u5f8c\uff0c\u6587\u4ef6\u5df2\u7522\u751f\u8b8a\u5316\u3002\u91cd\u8907\u9805\u76ee\u7121\u6548\u3002"}, /** Field ER_INVALID_XPATH_TYPE */ { ER_INVALID_XPATH_TYPE, "XPath \u985e\u578b\u5f15\u6578 {0} \u7121\u6548"}, /** Field ER_EMPTY_XPATH_RESULT */ { ER_EMPTY_XPATH_RESULT, "XPath \u7d50\u679c\u7269\u4ef6\u7a7a\u767d"}, /** Field ER_INCOMPATIBLE_TYPES */ { ER_INCOMPATIBLE_TYPES, "\u50b3\u56de\u985e\u578b\uff1a{0} \u7121\u6cd5\u5f37\u5236\u6210\u70ba\u6307\u5b9a\u7684\u985e\u578b\uff1a{1}"}, /** Field ER_NULL_RESOLVER */ { ER_NULL_RESOLVER, "\u7121\u6cd5\u89e3\u6790\u542b\u7a7a\u503c\u5b57\u9996\u89e3\u6790\u5668\u7684\u5b57\u9996\u3002"}, /** Field ER_CANT_CONVERT_TO_STRING */ { ER_CANT_CONVERT_TO_STRING, "\u7121\u6cd5\u5c07 {0} \u8f49\u63db\u70ba\u5b57\u4e32\u3002"}, /** Field ER_NON_SNAPSHOT_TYPE */ { ER_NON_SNAPSHOT_TYPE, "\u7121\u6cd5\u547c\u53eb snapshotItem \u985e\u578b\uff1a{0}\u3002\u6b64\u65b9\u6cd5\u9069\u7528\u65bc UNORDERED_NODE_SNAPSHOT_TYPE \u548c ORDERED_NODE_SNAPSHOT_TYPE \u5169\u7a2e\u985e\u578b\u3002"}, /** Field ER_WRONG_DOCUMENT */ { ER_WRONG_DOCUMENT, "\u74b0\u5883\u5b9a\u7fa9\u7bc0\u9ede\u4e0d\u5c6c\u65bc\u548c\u6b64 XPathEvaluator \u9023\u7d50\u7684\u6587\u4ef6\u3002"}, /** Field ER_WRONG_NODETYPE */ { ER_WRONG_NODETYPE, "\u74b0\u5883\u5b9a\u7fa9\u7bc0\u9ede\u985e\u578b\u672a\u53d7\u652f\u63f4\u3002"}, /** Field ER_XPATH_ERROR */ { ER_XPATH_ERROR, "XPath \u767c\u751f\u4e0d\u660e\u932f\u8aa4\u3002"}, /** Field WG_LOCALE_NAME_NOT_HANDLED */ { WG_LOCALE_NAME_NOT_HANDLED, "format-number \u51fd\u6578\u4e2d\u7684\u8a9e\u8a00\u74b0\u5883\u540d\u7a31\u5c1a\u672a\u8655\u7406\uff01"}, /** Field WG_PROPERTY_NOT_SUPPORTED */ { WG_PROPERTY_NOT_SUPPORTED, "XSL \u5167\u5bb9\u672a\u53d7\u652f\u63f4\uff1a{0}"}, /** Field WG_DONT_DO_ANYTHING_WITH_NS */ { WG_DONT_DO_ANYTHING_WITH_NS, "\u76ee\u524d\u4e0d\u8981\u5c0d\u5167\u5bb9\uff1a{1} \u4e2d\u7684\u540d\u7a31\u7a7a\u9593 {0} \u505a\u4efb\u4f55\u52d5\u4f5c"}, /** Field WG_SECURITY_EXCEPTION */ { WG_SECURITY_EXCEPTION, "\u5617\u8a66\u5b58\u53d6 XSL \u7cfb\u7d71\u5167\u5bb9\uff1a{0} \u6642\u767c\u751f SecurityException"}, /** Field WG_QUO_NO_LONGER_DEFINED */ { WG_QUO_NO_LONGER_DEFINED, "XPath \u4e2d\u5df2\u4e0d\u518d\u5b9a\u7fa9\u820a\u8a9e\u6cd5\uff1aquo(...)\u3002"}, /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST */ { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST, "XPath \u9700\u8981\u884d\u751f\u7269\u4ef6\u4f86\u5be6\u4f5c nodeTest\uff01"}, /** Field WG_FUNCTION_TOKEN_NOT_FOUND */ { WG_FUNCTION_TOKEN_NOT_FOUND, "\u627e\u4e0d\u5230\u51fd\u6578\u8a18\u865f\u3002"}, /** Field WG_COULDNOT_FIND_FUNCTION */ { WG_COULDNOT_FIND_FUNCTION, "\u627e\u4e0d\u5230\u51fd\u6578\uff1a{0}"}, /** Field WG_CANNOT_MAKE_URL_FROM */ { WG_CANNOT_MAKE_URL_FROM, "\u7121\u6cd5\u5f9e\uff1a{0} \u7522\u751f URL"}, /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED */ { WG_EXPAND_ENTITIES_NOT_SUPPORTED, "-E \u9078\u9805\u4e0d\u53d7 DTM \u5256\u6790\u5668\u652f\u63f4"}, /** Field WG_ILLEGAL_VARIABLE_REFERENCE */ { WG_ILLEGAL_VARIABLE_REFERENCE, "\u63d0\u4f9b\u7d66\u8b8a\u6578\u7684 VariableReference \u8d85\u51fa\u74b0\u5883\u5b9a\u7fa9\u6216\u6c92\u6709\u5b9a\u7fa9\uff01\u540d\u7a31 = {0}"}, /** Field WG_UNSUPPORTED_ENCODING */ { WG_UNSUPPORTED_ENCODING, "\u4e0d\u652f\u63f4\u7de8\u78bc\uff1a{0}"}, { "ui_language", "zh"}, { "help_language", "zh"}, { "language", "zh"}, { "BAD_CODE", "createMessage \u7684\u53c3\u6578\u8d85\u51fa\u754c\u9650"}, { "FORMAT_FAILED", "\u5728 messageFormat \u547c\u53eb\u671f\u9593\u64f2\u51fa\u7570\u5e38"}, { "version", ">>>>>>> Xalan \u7248\u672c"}, { "version2", "<<<<<<<"}, { "yes", "yes"}, { "line", "\u884c\u865f"}, { "column", "\u6b04\u865f"}, { "xsldone", "XSLProcessor\uff1a\u5b8c\u6210"}, { "xpath_option", "xpath \u9078\u9805\uff1a"}, { "optionIN", "[-in inputXMLURL]"}, { "optionSelect", "[-select xpath \u8868\u793a\u5f0f]"}, { "optionMatch", "[-match \u7b26\u5408\u578b\u6a23\uff08\u7528\u65bc\u6bd4\u5c0d\u8a3a\u65b7\uff09]"}, { "optionAnyExpr", "\u6216\u53ea\u6709\u4e00\u500b xpath \u8868\u793a\u5f0f\u6703\u57f7\u884c\u8a3a\u65b7\u50be\u51fa"}, { "noParsermsg1", "XSL \u7a0b\u5e8f\u6c92\u6709\u9806\u5229\u5b8c\u6210\u3002"}, { "noParsermsg2", "** \u627e\u4e0d\u5230\u5256\u6790\u5668 **"}, { "noParsermsg3", "\u8acb\u6aa2\u67e5\u985e\u5225\u8def\u5f91\u3002"}, { "noParsermsg4", "\u5982\u679c\u60a8\u6c92\u6709 IBM \u7684 XML Parser for Java\uff0c\u53ef\u81ea\u4ee5\u4e0b\u7db2\u5740\u4e0b\u8f09"}, { "noParsermsg5", "IBM \u7684 AlphaWorks\uff1ahttp: { "gtone", ">1" }, { "zero", "0" }, { "one", "1" }, { "two" , "2" }, { "three", "3" } }; | public Object[][] getContents() { return contents; } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/2d07c253b814672a82d969836d58577bfa628b88/XPATHErrorResources_zh_TW.java/clean/src/org/apache/xpath/res/XPATHErrorResources_zh_TW.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
63,
6362,
65,
15015,
1435,
225,
288,
565,
327,
394,
1033,
63,
6362,
7073,
225,
1783,
2286,
5475,
2787,
1850,
1195,
565,
288,
315,
3589,
2787,
6,
269,
4144,
20,
1532,
19879,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
63,
6362,
65,
15015,
1435,
225,
288,
565,
327,
394,
1033,
63,
6362,
7073,
225,
1783,
2286,
5475,
2787,
1850,
1195,
565,
288,
315,
3589,
2787,
6,
269,
4144,
20,
1532,
19879,
... |
int max = 0; synchronized (_freeInboundTunnels) { for (Iterator iter = _freeInboundTunnels.values().iterator(); iter.hasNext(); ) { TunnelInfo info = (TunnelInfo)iter.next(); int len = info.getLength(); if (len > max) max = len; } } return max; | int max = 0; synchronized (_freeInboundTunnels) { for (Iterator iter = _freeInboundTunnels.values().iterator(); iter.hasNext(); ) { TunnelInfo info = (TunnelInfo)iter.next(); int len = info.getLength(); if (len > max) max = len; } } return max; | public int getLongestTunnelLength() { int max = 0; synchronized (_freeInboundTunnels) { for (Iterator iter = _freeInboundTunnels.values().iterator(); iter.hasNext(); ) { TunnelInfo info = (TunnelInfo)iter.next(); int len = info.getLength(); if (len > max) max = len; } } return max; } | 27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/86759d2f9c63d203488c7e8b34e64be162a16ce9/TunnelPool.java/clean/router/java/src/net/i2p/router/tunnelmanager/TunnelPool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
11105,
395,
20329,
1782,
1435,
288,
202,
474,
943,
273,
374,
31,
202,
22043,
261,
67,
9156,
20571,
20329,
87,
13,
288,
202,
565,
364,
261,
3198,
1400,
273,
389,
9156,
20571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11105,
395,
20329,
1782,
1435,
288,
202,
474,
943,
273,
374,
31,
202,
22043,
261,
67,
9156,
20571,
20329,
87,
13,
288,
202,
565,
364,
261,
3198,
1400,
273,
389,
9156,
20571,
... |
} catch (LoginException e) { MessageDialog.openError(null, "Login Error", "Bugzilla could not post your bug since your login name or password is incorrect.\nPlease check your settings in the bugzilla preferences. "); } } }); | } }); ExistingBugEditor.this.showBusy(false); } catch (final LoginException e) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openError(null, "Login Error", "Bugzilla could not post your bug since your login name or password is incorrect.\nPlease check your settings in the bugzilla preferences. "); } }); ExistingBugEditor.this.showBusy(false); } | protected void execute(final IProgressMonitor monitor) throws CoreException { PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable(){ public void run() { try { form.post(); // TODO what do we do if the editor is closed if(ExistingBugEditor.this != null && !ExistingBugEditor.this.isDisposed()){ changeDirtyStatus(false); BugzillaPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().closeEditor(ExistingBugEditor.this, true); } OfflineView.removeReport(bug); } catch (BugzillaException e) { BugzillaPlugin.getDefault().logAndShowExceptionDetailsDialog(e, "occurred while posting the bug.", "I/O Error"); }catch (PossibleBugzillaFailureException e) { WebBrowserDialog .openAcceptAgreement( null, "Possible Bugzilla Failure", "Bugzilla may not have posted your bug.\n" + e.getMessage(), form.getError()); BugzillaPlugin.log(e); } catch (LoginException e) { MessageDialog.openError(null, "Login Error", "Bugzilla could not post your bug since your login name or password is incorrect.\nPlease check your settings in the bugzilla preferences. "); } } }); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/9675bb2a638767d7ecf1c1d37eeb72617ac8edb3/ExistingBugEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/ExistingBugEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
918,
1836,
12,
6385,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
8389,
1905,
12,
2704,
10254,
1435,
95,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
918,
1836,
12,
6385,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
8389,
1905,
12,
2704,
10254,
1435,
95,
68... |
? gen.Select(pos, prefixAsValue(pos, pre), insSym) | ? gen.Select(pos, gen.mkQualifier(pos, pre), insSym) | private Tree scalaClassType(int pos, Type tp, Symbol owner, TEnv env) { switch (tp) { case TypeRef(Type pre, Symbol sym, Type[] args): Symbol insSym = getInstMethSym(sym); Tree preFun = isNestedClass(sym) ? gen.Select(pos, prefixAsValue(pos, pre), insSym) : gen.Ident(pos, insSym); // TODO special case for monomorphic cases Tree[] insArgs; if (true || args.length > 0) { Tree[] elems = new Tree[args.length]; int[] perm = typeParamsPermutation(sym.typeParams()); for (int i = 0; i < args.length; ++i) elems[i] = typeAsValue(pos, args[perm[i]], owner, env); insArgs = new Tree[] { gen.mkNewArray(pos, defs.TYPE_TYPE(), elems, owner) }; } else insArgs = Tree.EMPTY_ARRAY; return gen.mkApply_V(pos, preFun, insArgs); default: throw Debug.abort("unexpected type: ", tp); } } | 48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/1f2e15f4e5c472d9c8b2361dae68d090cfdc9ee5/TypesAsValuesPhase.java/clean/sources/scalac/transformer/TypesAsValuesPhase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
4902,
8292,
69,
18328,
12,
474,
949,
16,
1412,
8071,
16,
8565,
3410,
16,
399,
3491,
1550,
13,
288,
5411,
1620,
261,
6834,
13,
288,
5411,
648,
1412,
1957,
12,
559,
675,
16,
8565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
4902,
8292,
69,
18328,
12,
474,
949,
16,
1412,
8071,
16,
8565,
3410,
16,
399,
3491,
1550,
13,
288,
5411,
1620,
261,
6834,
13,
288,
5411,
648,
1412,
1957,
12,
559,
675,
16,
8565,
... |
addNamed(name, q); | public Named find(String name) throws SemanticException { if (Report.should_report(TOPICS, 2)) Report.report(2, "CachingResolver: find: " + name); Object o = cache.get(name); if (o == NOT_FOUND) { throw new NoClassException(name); } Named q = (Named) o; if (q == null) { if (Report.should_report(TOPICS, 3)) Report.report(3, "CachingResolver: not cached: " + name); try { q = inner.find(name); } catch (NoClassException e) { cache.put(name, NOT_FOUND); throw e; } addNamed(name, q); if (q instanceof ClassType) { Package p = ((ClassType) q).package_(); cachePackage(p); } if (Report.should_report(TOPICS, 3)) Report.report(3, "CachingResolver: loaded: " + name); } else { if (Report.should_report(TOPICS, 3)) Report.report(3, "CachingResolver: cached: " + name); } if (q instanceof ParsedClassType) { extInfo.addDependencyToCurrentJob(((ParsedClassType)q).fromSource()); } return q; } | 11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/a898150d8b8800ba1ca3c7915ef070f4e34dd0dc/CachingResolver.java/clean/src/polyglot/types/CachingResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9796,
1104,
12,
780,
508,
13,
1216,
24747,
503,
288,
3639,
309,
261,
4820,
18,
13139,
67,
6006,
12,
4296,
1102,
4596,
16,
576,
3719,
5411,
8706,
18,
6006,
12,
22,
16,
315,
17712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9796,
1104,
12,
780,
508,
13,
1216,
24747,
503,
288,
3639,
309,
261,
4820,
18,
13139,
67,
6006,
12,
4296,
1102,
4596,
16,
576,
3719,
5411,
8706,
18,
6006,
12,
22,
16,
315,
17712,
... | |
private void processJarFile(ClassLoader classloader, File file) { JarFile jarfile = null; Manifest manifest = null; ArgoModule.cat.info("Opening jar file " + file); // try { // File file = new File(jarName); try { jarfile = new JarFile(file); } catch (Exception e) { ArgoModule.cat.debug("Unable to open " + file, e); } if (jarfile != null) { try { manifest = jarfile.getManifest(); if (manifest == null) { ArgoModule.cat.debug(file + " does not have a manifest"); } } catch (Exception e) { ArgoModule.cat.debug("Unable to read manifest of " + file, e); manifest = null; } } if (manifest != null) { // else { Map entries = manifest.getEntries(); Iterator iMap = entries.keySet().iterator(); while (iMap.hasNext()) { // Look for our specification String cname = (String)iMap.next(); Attributes atrs = manifest.getAttributes(cname); String s1 = atrs.getValue(Attributes.Name.SPECIFICATION_TITLE); String s2 = atrs.getValue(Attributes.Name.SPECIFICATION_VENDOR); // needs-more-work: If we are in jdk1.3 or above, check // EXTENSION_NAME. Otherwise pass the class name. It's not // as good of a check (we might get duplicate modules with // the same key), but it's better than nothing. // String key = atrs.getValue(Attributes.Name.EXTENSION_NAME); String key = cname; if (Pluggable.PLUGIN_TITLE.equals(s1) && Pluggable.PLUGIN_VENDOR.equals(s2) && key != null && cname.endsWith(CLASS_SUFFIX)) { // This load is not secure. loadClassFromLoader(classloader, key, cname.substring(0, cname.length()-CLASS_SUFFIX.length()), false); } } // } } // } // catch (Exception e) { // // Ignore problem. // ArgoModule.cat.debug("Exception", e); // } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/4aaeb597eb9f64a8966ac2803357e1063b670419/ModuleLoader.java/clean/src_new/org/argouml/application/modules/ModuleLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
10813,
812,
12,
7805,
20595,
16,
1387,
585,
13,
288,
202,
10813,
812,
7334,
768,
273,
446,
31,
3639,
15443,
5643,
273,
446,
31,
202,
686,
3240,
3120,
18,
2574,
18,
1376... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
10813,
812,
12,
7805,
20595,
16,
1387,
585,
13,
288,
202,
10813,
812,
7334,
768,
273,
446,
31,
3639,
15443,
5643,
273,
446,
31,
202,
686,
3240,
3120,
18,
2574,
18,
1376... | ||
cell.setStyleClass("payment_type"); | cell.setStyleClass("paymentType"); cell.setStyleClass("firstColumn"); | private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.createHeaderRowGroup(); TableRow row = group.createRow(); row.setStyleClass("header"); TableCell2 cell = row.createCell(); cell.setStyleClass("payment_type"); cell.add(new Text(iwrb.getLocalizedString("payment_type", "Payment type"))); cell = row.createCell(); cell.setStyleClass("amount"); cell.add(new Text(iwrb.getLocalizedString("amount", "Amount"))); cell = row.createCell(); cell.setStyleClass("first_due_date"); cell.add(new Text(iwrb.getLocalizedString("first_due_date", "First due date"))); group = table.createBodyRowGroup(); boolean odd = true; String selected = iwc.getParameter(PARAMETER_PAYMENT_ITEM); Collection coll = getBusiness(iwc).getPaymentItems("tempKT"); Iterator iter = coll.iterator(); while (iter.hasNext()) { PaymentItem p = (PaymentItem) iter.next(); row = group.createRow(); if (odd) { row.setStyleClass("odd"); } else { row.setStyleClass("even"); } odd = !odd; Link link = new Link(new Text(p.getName())); link.addParameter(PARAMETER_PAYMENT_ITEM, p.getName()); cell = row.createCell(); cell.setStyleClass("payment_type"); cell.add(link); cell = row.createCell(); cell.setStyleClass("amount"); cell.add(new Text(Double.toString(p.getAmount()))); cell = row.createCell(); cell.setStyleClass("first_due_date"); cell.add(new Text(p.getLastDate().getLocaleDate(iwc.getCurrentLocale()))); if (selected != null && selected.equals(p.getName())) { cell.setStyleClass("selected"); IWTimestamp fromStamp = new IWTimestamp(); IWTimestamp toStamp = new IWTimestamp(); String from = iwc.getParameter(PARAMETER_FROM_DATE); String to = iwc.getParameter(PARAMETER_TO_DATE); if (from != null) { fromStamp = new IWTimestamp(from); } if (to != null) { toStamp = new IWTimestamp(to); } else { toStamp.addDays(14); } Collection items = getBusiness(iwc).getStatementItems("tempKR", p, fromStamp, toStamp); Iterator iIter = items.iterator(); row = group.createRow(); if (odd) { row.setStyleClass("odd"); } else { row.setStyleClass("even"); } odd = !odd; cell = row.createCell(); cell.setColumnSpan(3); Layer l = new Layer(Layer.DIV); l.setStyleClass("date_form"); cell.add(l); // FORM part DateInput inp = new DateInput(PARAMETER_FROM_DATE, true); inp.setDate(fromStamp.getDate()); DateInput toInp = new DateInput(PARAMETER_TO_DATE, true); toInp.setDate(toStamp.getDate()); l.add(new BackButton(iwrb.getLocalizedString("back", "Back"))); l.add(new Text(p.getName())); l.add(new Text(iwrb.getLocalizedString("date", "Date")+".")); l.add(new Text(iwrb.getLocalizedString("from", "From"))); l.add(inp); l.add(new Text(iwrb.getLocalizedString("to", "To"))); l.add(toInp); l.add(new SubmitButton(iwrb.getLocalizedString("get", "Get"), PARAMETER_PAYMENT_ITEM, p.getName())); // formpart double sum = 0; row = group.createRow(); if (odd) { row.setStyleClass("odd"); } else { row.setStyleClass("even"); } odd = !odd; cell = row.createCell(); cell.setStyleClass("description"); cell.setStyleClass("first_column"); cell.setStyleClass("statement_header"); cell.add(new Text(iwrb.getLocalizedString("description", "Description"))); cell = row.createCell(); cell.setStyleClass("statement_header"); cell.setStyleClass("amout"); cell.add(new Text(iwrb.getLocalizedString("amount", "Amount"))); cell = row.createCell(); cell.setStyleClass("statement_header"); cell.setStyleClass("due_date"); cell.add(new Text(iwrb.getLocalizedString("due_date", "Due date"))); while (iIter.hasNext()) { StatementItem s = (StatementItem) iIter.next(); row = group.createRow(); if (odd) { row.setStyleClass("odd"); } else { row.setStyleClass("even"); } odd = !odd; cell = row.createCell(); cell.setStyleClass("description"); cell.setStyleClass("first_column"); cell.setStyleClass("statement"); cell.add(new Text(s.getName())); cell = row.createCell(); cell.setStyleClass("statement"); cell.setStyleClass("amount"); cell.add(new Text(Double.toString(s.getAmount()))); cell = row.createCell(); cell.setStyleClass("statement"); cell.setStyleClass("due_date"); cell.add(new Text(s.getLastDate().getLocaleDate(iwc.getCurrentLocale()))); sum += s.getAmount(); } row = group.createRow(); if (odd) { row.setStyleClass("odd"); } else { row.setStyleClass("even"); } odd = !odd; cell = row.createCell(); row.setStyleClass("total"); cell.setStyleClass("first_column"); cell.setStyleClass("statement"); cell.add(new Text(iwrb.getLocalizedString("total", "Total"))); cell = row.createCell(); cell.setStyleClass("statement"); cell.setStyleClass("amount"); cell.add(new Text(Double.toString(sum))); cell= row.createCell(); group.createRow(); if (odd) { row.setStyleClass("odd"); } else { row.setStyleClass("even"); } odd = !odd; } } return layer; } | 58676 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58676/12499de0dce3b8fc809835dc08ced907b9c36c6e/FinancialStatement.java/clean/src/java/is/idega/idegaweb/egov/finances/presentation/FinancialStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
12112,
31523,
12,
45,
59,
1042,
25522,
71,
13,
1216,
18361,
288,
202,
202,
4576,
3018,
273,
394,
12112,
12,
4576,
18,
31901,
1769,
202,
202,
1204,
646,
273,
394,
2748,
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,
225,
202,
1152,
12112,
31523,
12,
45,
59,
1042,
25522,
71,
13,
1216,
18361,
288,
202,
202,
4576,
3018,
273,
394,
12112,
12,
4576,
18,
31901,
1769,
202,
202,
1204,
646,
273,
394,
2748,
5621,
... |
IASTTranslationUnit tu = parse(code, scannerInfo); | IASTTranslationUnit tu = parse(code, scannerInfo); | public void testBug97603_2() throws Exception { IFile imacro_file1= importFile("macro1.h", "#define JEDEN 1\n"); IFile imacro_file2= importFile("macro2.h", "#define DVA 2\n#define TRI 3\n"); StringBuffer buffer = new StringBuffer(); buffer.append("#ifndef _INCLUDE_H_\n"); //$NON-NLS-1$ buffer.append("#define _INCLUDE_H_\n"); //$NON-NLS-1$ buffer.append("typedef void (*vfp)();\n"); //$NON-NLS-1$ buffer.append("typedef int (*ifp)();\n"); //$NON-NLS-1$ buffer.append("struct Include {\n"); //$NON-NLS-1$ buffer.append("int i;\n"); //$NON-NLS-1$ buffer.append("};\n"); //$NON-NLS-1$ buffer.append("#endif /*_INCLUDE_H_*/\n"); //$NON-NLS-1$ final String inc_file_code = buffer.toString(); IFile include_file = importFile("include.h", inc_file_code); //$NON-NLS-1$ //$NON-NLS-2$ String[] macros = { imacro_file1.getLocation().toOSString(), imacro_file2.getLocation().toOSString() }; String[] includes = { include_file.getLocation().toOSString() }; IExtendedScannerInfo scannerInfo = new ExtendedScannerInfo( Collections.EMPTY_MAP, EMPTY_STRING_ARRAY, macros, includes); for (ParserLanguage p = ParserLanguage.C; p != null; p = (p == ParserLanguage.C) ? ParserLanguage.CPP : null) { String filename = (p == ParserLanguage.CPP) ? "main.cc" : "main.c"; //$NON-NLS-1$ //$NON-NLS-2$ IFile code = importFile(filename, "int main() { return BEAST * sizeof( Include ); } "); //$NON-NLS-1$ //$NON-NLS-2$ IASTTranslationUnit tu = parse(code, scannerInfo); //$NON-NLS-1$ IASTPreprocessorMacroDefinition[] macro_defs = tu .getMacroDefinitions(); assertEquals(macro_defs.length, 4); IASTPreprocessorMacroDefinition BEAST = macro_defs[0]; assertEquals(BEAST.getName().toString(), "JEDEN"); //$NON-NLS-1$ IASTPreprocessorMacroDefinition INCLUDE_H = macro_defs[3]; final IASTNodeLocation[] nodeLocations = INCLUDE_H.getName() .getNodeLocations(); assertEquals(nodeLocations.length, 1); final IASTFileLocation flatLoc = INCLUDE_H.getName() .getFileLocation(); assertNotNull(flatLoc); assertEquals(include_file.getLocation().toOSString(), flatLoc .getFileName()); assertEquals( inc_file_code.indexOf("#define _INCLUDE_H_") + "#define ".length(), flatLoc.getNodeOffset()); //$NON-NLS-1$ //$NON-NLS-2$ assertEquals("_INCLUDE_H_".length(), flatLoc.getNodeLength()); //$NON-NLS-1$ for (int j = 0; j < macro_defs.length; ++j) assertNotNull(macro_defs[j].getName().getFileLocation()); } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/df871fe06bd1191491f65b19014fc27782320263/DOMLocationInclusionTests.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/DOMLocationInclusionTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
19865,
29,
6669,
4630,
67,
22,
1435,
1216,
1185,
288,
3639,
467,
812,
709,
1077,
303,
67,
768,
21,
33,
1930,
812,
2932,
26448,
21,
18,
76,
3113,
6619,
11255,
804,
2056,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
19865,
29,
6669,
4630,
67,
22,
1435,
1216,
1185,
288,
3639,
467,
812,
709,
1077,
303,
67,
768,
21,
33,
1930,
812,
2932,
26448,
21,
18,
76,
3113,
6619,
11255,
804,
2056,... |
axis.widths[numWidths++].org = dist; | axis.widths[numWidths++] = new Width(dist); | private void initWidths(LatinMetrics metrics, OpenTypeFont face, char ch) { GlyphHints hints = new GlyphHints(); metrics.axis[DIMENSION_HORZ].widthCount = 0; metrics.axis[DIMENSION_VERT].widthCount = 0; int glyphIndex = face.getGlyph(ch); // TODO: Avoid that AffineTransform constructor and change // getRawGlyphOutline() to accept null or remove that parameter altogether. // Consider this when the thing is done and we know what we need that for. Zone outline = face.getRawGlyphOutline(glyphIndex, new AffineTransform()); LatinMetrics dummy = new LatinMetrics(); Scaler scaler = dummy.scaler; dummy.unitsPerEm = metrics.unitsPerEm; scaler.xScale = scaler.yScale = 10000; scaler.xDelta = scaler.yDelta = 0; scaler.face = face; hints.rescale(dummy); hints.reload(outline); for (int dim = 0; dim < DIMENSION_MAX; dim++) { LatinAxis axis = metrics.axis[dim]; AxisHints axHints = hints.axis[dim]; int numWidths = 0; hints.computeSegments(dim); hints.linkSegments(dim); Segment[] segs = axHints.segments; for (int i = 0; i < segs.length; i++) { Segment seg = segs[i]; Segment link = seg.link; if (link != null && link.link == seg && link.index > i) { int dist = Math.abs(seg.pos - link.pos); if (numWidths < MAX_WIDTHS) axis.widths[numWidths++].org = dist; } } } for (int dim = 0; dim < DIMENSION_MAX; dim++) { LatinAxis axis = metrics.axis[dim]; int stdw = axis.widthCount > 0 ? axis.widths[0].org : constant(metrics, 50); axis.edgeDistanceTreshold= stdw / 5; } } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/a049c95fb5678f8ae1ba46c69f4984506e46f47c/Latin.java/buggy/gnu/java/awt/font/autofit/Latin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1208,
22407,
12,
6607,
267,
5653,
4309,
16,
3502,
559,
5711,
7945,
16,
1149,
462,
13,
225,
288,
565,
31572,
13368,
13442,
273,
394,
31572,
13368,
5621,
565,
4309,
18,
4890,
63,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1208,
22407,
12,
6607,
267,
5653,
4309,
16,
3502,
559,
5711,
7945,
16,
1149,
462,
13,
225,
288,
565,
31572,
13368,
13442,
273,
394,
31572,
13368,
5621,
565,
4309,
18,
4890,
63,... |
Component contentPane = layeredPane.getComponent(0); Component titlePane = layeredPane.getComponent(1); Component menuBar = null; if (layeredPane.getComponentCount() > 2 && layeredPane.getComponent(2) instanceof JMenuBar) menuBar = layeredPane.getComponent(2); | Component contentPane = rp.getContentPane(); Component menuBar = rp.getJMenuBar(); | public void layoutContainer(Container parent) { JRootPane rp = (JRootPane) parent; JLayeredPane layeredPane = rp.getLayeredPane(); Component contentPane = layeredPane.getComponent(0); Component titlePane = layeredPane.getComponent(1); Component menuBar = null; if (layeredPane.getComponentCount() > 2 && layeredPane.getComponent(2) instanceof JMenuBar) menuBar = layeredPane.getComponent(2); Component glassPane = rp.getGlassPane(); if (glassPaneBounds == null || layeredPaneBounds == null || contentPaneBounds == null || menuBarBounds == null) { Insets i = rp.getInsets(); int containerWidth = parent.getBounds().width - i.left - i.right; int containerHeight = parent.getBounds().height - i.top - i.bottom; // 1. The glassPane fills entire viewable region (bounds - insets). // 2. The layeredPane filles entire viewable region. // 3. The titlePane is placed at the upper edge of the layeredPane. // 4. The menuBar is positioned at the upper edge of layeredPane. // 5. The contentPane fills viewable region minus menuBar minus // titlePane, if present. // +-------------------------------+ // | JLayeredPane | // | +--------------------------+ | // | | titlePane + | // | +--------------------------+ | // | +--------------------------+ | // | | menuBar | | // | +--------------------------+ | // | +--------------------------+ | // | |contentPane | | // | | | | // | | | | // | | | | // | +--------------------------+ | // +-------------------------------+ // Setup titlePaneBounds. if (titlePaneBounds == null) titlePaneBounds = new Rectangle(); titlePaneBounds.width = containerWidth; titlePaneBounds.height = titlePane.getPreferredSize().height; // Setup menuBarBounds. if (menuBarBounds == null) menuBarBounds = new Rectangle(); menuBarBounds.setBounds(0, titlePaneBounds.y + titlePaneBounds.height, containerWidth, 0); if (menuBar != null) { Dimension menuBarSize = menuBar.getPreferredSize(); if (menuBarSize.height > containerHeight) menuBarBounds.height = containerHeight; else menuBarBounds.height = menuBarSize.height; } // Setup contentPaneBounds. if (contentPaneBounds == null) contentPaneBounds = new Rectangle(); contentPaneBounds.setBounds(0, menuBarBounds.y + menuBarBounds.height, containerWidth, containerHeight - menuBarBounds.y - menuBarBounds.height); glassPaneBounds = new Rectangle(i.left, i.top, containerWidth, containerHeight); layeredPaneBounds = new Rectangle(i.left, i.top, containerWidth, containerHeight); } // Layout components. glassPane.setBounds(glassPaneBounds); layeredPane.setBounds(layeredPaneBounds); if (menuBar != null) menuBar.setBounds(menuBarBounds); contentPane.setBounds(contentPaneBounds); titlePane.setBounds(titlePaneBounds); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8a78b0a127a68dcc6823fee2b8bdb1cbb7ec268d/MetalRootPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalRootPaneUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3511,
2170,
12,
2170,
982,
13,
565,
288,
1377,
804,
2375,
8485,
8715,
273,
261,
46,
2375,
8485,
13,
982,
31,
1377,
804,
4576,
329,
8485,
3018,
329,
8485,
273,
8715,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3511,
2170,
12,
2170,
982,
13,
565,
288,
1377,
804,
2375,
8485,
8715,
273,
261,
46,
2375,
8485,
13,
982,
31,
1377,
804,
4576,
329,
8485,
3018,
329,
8485,
273,
8715,
18,
588,
... |
log.warn(LogManager.getHeader(c, "notify_of_reject", "cannot email user" + " eperson_id" + e.getID() + " eperson_email" + e.getEmail() + " workflow_item_id" + wi.getID() )); | private static void notifyOfReject(Context c,WorkflowItem wi, EPerson e, String reason) { try { // Get the item title String title = getItemTitle(wi); // Get the collection Collection coll = wi.getCollection(); // Get rejector's name String rejector = getEPersonName(e); Email email = ConfigurationManager.getEmail("submit_reject"); email.addRecipient( getSubmitterEPerson(wi).getEmail() ); email.addArgument( title ); email.addArgument( coll.getMetadata("name") ); email.addArgument( rejector ); email.addArgument( reason ); email.addArgument( getMyDSpaceLink() ); email.send(); } catch( Exception ex ) { // FIXME: should log this email error } } | 52457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52457/9f3b39bf74c835ab4139c29391aef74922485f41/WorkflowManager.java/clean/dspace/src/org/dspace/workflow/WorkflowManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
613,
18,
8935,
12,
1343,
1318,
18,
588,
1864,
12,
71,
16,
315,
12336,
67,
792,
67,
24163,
3113,
315,
12892,
2699,
729,
6,
397,
315,
5529,
3565,
67,
350,
6,
4202,
397,
425,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
613,
18,
8935,
12,
1343,
1318,
18,
588,
1864,
12,
71,
16,
315,
12336,
67,
792,
67,
24163,
3113,
315,
12892,
2699,
729,
6,
397,
315,
5529,
3565,
67,
350,
6,
4202,
397,
425,
18,
588,
... | |
private void log(int aLineNo, String aMsg) | private void log(LocalizedMessage aMsg) | private void log(int aLineNo, String aMsg) { mMessages.add(new LineText(aLineNo, aMsg)); } | 31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/c682b5725d22afc38bf19d9667b23a7deab6d8c3/Verifier.java/buggy/src/checkstyle/com/puppycrawl/tools/checkstyle/Verifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
613,
12,
2042,
1235,
1079,
279,
3332,
13,
565,
288,
3639,
312,
5058,
18,
1289,
12,
2704,
5377,
1528,
12,
69,
1670,
2279,
16,
279,
3332,
10019,
565,
289,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
613,
12,
2042,
1235,
1079,
279,
3332,
13,
565,
288,
3639,
312,
5058,
18,
1289,
12,
2704,
5377,
1528,
12,
69,
1670,
2279,
16,
279,
3332,
10019,
565,
289,
2,
-100,
-100,
-100,
... |
if(!"".equals(sContentLength)) { commandsStdIn = new BufferedOutputStream(proc.getOutputStream()); IOTools.flow(stdin, commandsStdIn); commandsStdIn.flush(); commandsStdIn.close(); } | /* we want to wait for the process to exit, Process.waitFor() * is useless in our situation; see * http: * bugParade/bugs/4223650.html */ | protected void run() throws IOException { /* * REMIND: this method feels too big; should it be re-written? */ if (!isReady()) { throw new IOException(this.getClass().getName() + ": not ready to run."); } if (debug >= 1 ) { log("runCGI(envp=[" + env + "], command=" + command + ")"); } if ((command.indexOf(File.separator + "." + File.separator) >= 0) || (command.indexOf(File.separator + "..") >= 0) || (command.indexOf(".." + File.separator) >= 0)) { throw new IOException(this.getClass().getName() + "Illegal Character in CGI command " + "path ('.' or '..') detected. Not " + "running CGI [" + command + "]."); } /* original content/structure of this section taken from * http://developer.java.sun.com/developer/ * bugParade/bugs/4216884.html * with major modifications by Martin Dengler */ Runtime rt = null; InputStream cgiOutput = null; BufferedReader commandsStdErr = null; BufferedOutputStream commandsStdIn = null; Process proc = null; int bufRead = -1; //create query arguments StringBuffer cmdAndArgs = new StringBuffer(); if (command.indexOf(" ") < 0) { cmdAndArgs.append(command); } else { // Spaces used as delimiter, so need to use quotes cmdAndArgs.append("\""); cmdAndArgs.append(command); cmdAndArgs.append("\""); } for (int i=0; i < params.size(); i++) { cmdAndArgs.append(" "); String param = (String) params.get(i); if (param.indexOf(" ") < 0) { cmdAndArgs.append(param); } else { // Spaces used as delimiter, so need to use quotes cmdAndArgs.append("\""); cmdAndArgs.append(param); cmdAndArgs.append("\""); } } StringBuffer command = new StringBuffer(cgiExecutable); command.append(" "); command.append(cmdAndArgs.toString()); cmdAndArgs = command; rt = Runtime.getRuntime(); proc = rt.exec(cmdAndArgs.toString(), hashToStringArray(env), wd); String sContentLength = (String) env.get("CONTENT_LENGTH"); if(!"".equals(sContentLength)) { commandsStdIn = new BufferedOutputStream(proc.getOutputStream()); IOTools.flow(stdin, commandsStdIn); commandsStdIn.flush(); commandsStdIn.close(); } /* we want to wait for the process to exit, Process.waitFor() * is useless in our situation; see * http://developer.java.sun.com/developer/ * bugParade/bugs/4223650.html */ boolean isRunning = true; commandsStdErr = new BufferedReader (new InputStreamReader(proc.getErrorStream())); final BufferedReader stdErrRdr = commandsStdErr ; new Thread() { public void run () { sendToLog(stdErrRdr) ; } ; }.start() ; InputStream cgiHeaderStream = new HTTPHeaderInputStream(proc.getInputStream()); BufferedReader cgiHeaderReader = new BufferedReader(new InputStreamReader(cgiHeaderStream)); while (isRunning) { try { //set headers String line = null; while (((line = cgiHeaderReader.readLine()) != null) && !("".equals(line))) { if (debug >= 2) { log("runCGI: addHeader(\"" + line + "\")"); } if (line.startsWith("HTTP")) { response.setStatus(getSCFromHttpStatusLine(line)); } else if (line.indexOf(":") >= 0) { String header = line.substring(0, line.indexOf(":")).trim(); String value = line.substring(line.indexOf(":") + 1).trim(); if (header.equalsIgnoreCase("status")) { response.setStatus(getSCFromCGIStatusHeader(value)); } else { response.addHeader(header , value); } } else { log("runCGI: bad header line \"" + line + "\""); } } //write output byte[] bBuf = new byte[2048]; OutputStream out = response.getOutputStream(); cgiOutput = proc.getInputStream(); try { while ((bufRead = cgiOutput.read(bBuf)) != -1) { if (debug >= 4) { log("runCGI: output " + bufRead + " bytes of data"); } out.write(bBuf, 0, bufRead); } } finally { // Attempt to consume any leftover byte if something bad happens, // such as a socket disconnect on the servlet side; otherwise, the // external process could hang if (bufRead != -1) { while ((bufRead = cgiOutput.read(bBuf)) != -1) {} } } proc.exitValue(); // Throws exception if alive isRunning = false; } catch (IllegalThreadStateException e) { try { Thread.sleep(500); } catch (InterruptedException ignored) { } } } //replacement for Process.waitFor() // Close the output stream used cgiOutput.close(); } | 48155 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48155/10d637facdfff50b96fa47b2e79e2536c6921380/CGIServlet.java/buggy/java/org/apache/catalina/servlets/CGIServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
1086,
1435,
1216,
1860,
288,
5411,
1748,
2398,
380,
2438,
49,
2356,
30,
225,
333,
707,
1656,
10558,
4885,
5446,
31,
1410,
518,
506,
283,
17,
9748,
35,
2398,
1195,
5411,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
1086,
1435,
1216,
1860,
288,
5411,
1748,
2398,
380,
2438,
49,
2356,
30,
225,
333,
707,
1656,
10558,
4885,
5446,
31,
1410,
518,
506,
283,
17,
9748,
35,
2398,
1195,
5411,
309,
... |
ErrorInfo errorInfo = getErrorInfo(); | ErrorInfo[] errorInfos = getErrorInfos(); | public void valueChanged(final TreeSelectionEvent e) { hideIntentionHint(); updateIntentionHintVisibility(); ErrorInfo errorInfo = getErrorInfo(); final StatusBar statusBar = WindowManager.getInstance().getStatusBar(getEditor().getProject()); if (errorInfo != null && errorInfo.myDescription != null) { statusBar.setInfo(errorInfo.myDescription); } else { statusBar.setInfo(""); } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/2b2e6f8cdcc6616fcb7d0493f9b7b3ac2599f184/QuickFixManagerImpl.java/clean/ui-designer/impl/com/intellij/uiDesigner/componentTree/QuickFixManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
460,
5033,
12,
6385,
4902,
6233,
1133,
425,
13,
288,
1377,
6853,
1702,
5054,
7002,
5621,
1377,
1089,
1702,
5054,
7002,
10135,
5621,
1377,
1068,
966,
8526,
555,
7655,
273,
7926,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
460,
5033,
12,
6385,
4902,
6233,
1133,
425,
13,
288,
1377,
6853,
1702,
5054,
7002,
5621,
1377,
1089,
1702,
5054,
7002,
10135,
5621,
1377,
1068,
966,
8526,
555,
7655,
273,
7926,
... |
AST tmp1793_AST_in = (AST)_t; | AST tmp1805_AST_in = (AST)_t; | public final void labeled_block(AST _t) throws RecognitionException { AST labeled_block_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1390 = _t; AST tmp1792_AST_in = (AST)_t; match(_t,BLOCK_LABEL); _t = _t.getFirstChild(); AST tmp1793_AST_in = (AST)_t; match(_t,LEXCOLON); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DO: { dostate(_t); _t = _retTree; break; } case FOR: { forstate(_t); _t = _retTree; break; } case REPEAT: { repeatstate(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } _t = __t1390; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
23585,
67,
2629,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
23585,
67,
2629,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
23585,
67,
2629,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
23585,
67,
2629,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,... |
return !disableBindVariables(); | return (!disableBindVariables()) || arg0.className().equals("com.webobjects.foundation.NSData") || arg0.externalType().equals("bytea") || arg0.externalType().equals("bit") ; | public boolean mustUseBindVariableForAttribute(EOAttribute arg0) { return !disableBindVariables(); } | 17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/59f4afbe85dac4a90e09f7c6e70717628afd8bae/PostgresqlExpression.java/buggy/PlugIns/PostgresqlPlugIn/Sources/com/webobjects/jdbcadaptor/PostgresqlExpression.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1297,
3727,
3357,
3092,
1290,
1499,
12,
41,
51,
1499,
1501,
20,
13,
288,
3639,
327,
16051,
8394,
3357,
6158,
10756,
747,
1501,
20,
18,
12434,
7675,
14963,
2932,
832,
18,
1814,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1297,
3727,
3357,
3092,
1290,
1499,
12,
41,
51,
1499,
1501,
20,
13,
288,
3639,
327,
16051,
8394,
3357,
6158,
10756,
747,
1501,
20,
18,
12434,
7675,
14963,
2932,
832,
18,
1814,... |
public boolean addToWorld(Entity entity, RPWorld world) | public boolean addToWorld(Entity entity, RPWorld world, Player player) | public boolean addToWorld(Entity entity, RPWorld world) { if (parent != null) { // drop the entity into a slot if (parent.getID().equals(entity.getID())) { logger.warn("tried to put an item into itself"); // tried to add the item to itself return false; } RPSlot rpslot = parent.getSlot(slot); // check if the item can be merged with one already in the slot if (entity instanceof Stackable) { Stackable stackEntity = (Stackable) entity; // find a stackable item of the same type Iterator<RPObject> it = rpslot.iterator(); while (it.hasNext()) { RPObject object = it.next(); if (object instanceof Stackable) { // found another stackable Stackable other = (Stackable) object; if (other.isStackable(stackEntity)) { // other is the same type...merge them other.add(stackEntity); entity = null; // do not process the entity further break; } } } } // entity still there? if (entity != null) { // yep, so it is stacked. simplay add it rpslot.assignValidID(entity); rpslot.add(entity); } world.modify(parent); } else { // drop the entity to the ground StendhalRPZone zone = (StendhalRPZone) world.getRPZone(entity.getID()); // HACK: Avoid a problem on database if(entity.has("#db_id")) { entity.remove("#db_id"); } entity.setx(x); entity.setx(y); zone.assignRPObjectID(entity); zone.add(entity); } return true; } | 4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/abf6f26b0dadb15a35f9701a15bc12e239b5a6ca/Equipment.java/clean/src/games/stendhal/server/actions/Equipment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
9604,
18071,
12,
1943,
1522,
16,
534,
52,
18071,
9117,
16,
19185,
7291,
13,
565,
288,
1377,
309,
261,
2938,
480,
446,
13,
1377,
288,
3639,
368,
3640,
326,
1522,
1368,
279,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
9604,
18071,
12,
1943,
1522,
16,
534,
52,
18071,
9117,
16,
19185,
7291,
13,
565,
288,
1377,
309,
261,
2938,
480,
446,
13,
1377,
288,
3639,
368,
3640,
326,
1522,
1368,
279,
4... |
public void setFile( File destination ) { artifact.setFile( destination ); // TODO: [jc; 29-jul-05] Is this appropriate? I mean, isn't the point to use the project-file instead?? project.getArtifact().setFile( destination ); } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/f685d8605d2680e70b1ff2895947d2d11787e3c9/ActiveProjectArtifact.java/buggy/maven-project/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
19658,
12,
1387,
2929,
262,
95,
17706,
18,
542,
812,
12,
2929,
11272,
759,
2660,
30,
306,
78,
71,
31,
12899,
17,
78,
332,
17,
6260,
65,
2585,
333,
5505,
35,
467,
3722,
16,
5177,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
19658,
12,
1387,
2929,
262,
95,
17706,
18,
542,
812,
12,
2929,
11272,
759,
2660,
30,
306,
78,
71,
31,
12899,
17,
78,
332,
17,
6260,
65,
2585,
333,
5505,
35,
467,
3722,
16,
5177,... | ||
public ArrayList getCritters(String hexLabel) | ArrayList getCritters(String hexLabel) | public ArrayList getCritters(String hexLabel) { ArrayList critters = new ArrayList(); Iterator it = getAllCritters().iterator(); while (it.hasNext()) { Critter critter = (Critter)it.next(); if (hexLabel.equals(critter.getCurrentHexLabel())) { critters.add(critter); } } return critters; } | 51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/3d0c995d677b11834bfd5b0d9ff7d5fef51d296e/Battle.java/clean/Colossus/net/sf/colossus/server/Battle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2407,
1927,
583,
5432,
12,
780,
3827,
2224,
13,
565,
288,
3639,
2407,
7921,
5432,
273,
394,
2407,
5621,
3639,
4498,
518,
273,
5514,
39,
583,
5432,
7675,
9838,
5621,
3639,
1323,
261,
305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2407,
1927,
583,
5432,
12,
780,
3827,
2224,
13,
565,
288,
3639,
2407,
7921,
5432,
273,
394,
2407,
5621,
3639,
4498,
518,
273,
5514,
39,
583,
5432,
7675,
9838,
5621,
3639,
1323,
261,
305,
... |
return ((PyString) res).toString(); | return((PyString)res).toString(); | public String toString() { PyType self_type = getType(); PyObject impl = self_type.lookup("__repr__"); if (impl != null) { PyObject res = impl.__get__(this, self_type).__call__(); if (!(res instanceof PyString)) throw Py.TypeError("__repr__ should return a string"); return ((PyString) res).toString(); } return super.toString(); } | 6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/f9070a6bddff5a2a46bf38e7d12db571f23826e9/PyDictionaryDerived.java/buggy/src/org/python/core/PyDictionaryDerived.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
4707,
559,
365,
67,
723,
273,
3130,
5621,
3639,
4707,
921,
9380,
273,
365,
67,
723,
18,
8664,
2932,
972,
12715,
972,
8863,
3639,
309,
261,
11299,
480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
3639,
4707,
559,
365,
67,
723,
273,
3130,
5621,
3639,
4707,
921,
9380,
273,
365,
67,
723,
18,
8664,
2932,
972,
12715,
972,
8863,
3639,
309,
261,
11299,
480,
... |
moleculeSet = cc.partitionIntoMolecules(atomCon); | moleculeSet = ConnectivityChecker.partitionIntoMolecules(atomCon); | public void testDontDeleteSingleElectrons() { AtomContainer atomCon = new AtomContainer(); // make two molecules; one with an LonePair, the other with a SingleElectron Molecule mol1 = new Molecule(); Atom atom1 = new Atom("C"); mol1.addAtom(atom1); LonePair lp1 = new LonePair(atom1); mol1.addElectronContainer(lp1); // mol2 Molecule mol2 = new Molecule(); Atom atom2 = new Atom("C"); mol2.addAtom(atom2); SingleElectron se2 = new SingleElectron(atom2); mol2.addElectronContainer(se2); atomCon.add(mol1); atomCon.add(mol2); // now partition SetOfMolecules moleculeSet = null; try { moleculeSet = cc.partitionIntoMolecules(atomCon); } catch (Exception exc) { fail(exc.toString()); } assertNotNull(moleculeSet); assertEquals(2, moleculeSet.getMoleculeCount()); Molecule[] molecules = moleculeSet.getMolecules(); assertTrue(cc.isConnected(molecules[0])); assertTrue(cc.isConnected(molecules[1])); // make sure assertEquals(1, molecules[0].getAtomCount()); assertEquals(1, molecules[0].getElectronContainerCount()); assertEquals(1, molecules[1].getAtomCount()); assertEquals(1, molecules[1].getElectronContainerCount()); // we don't know which partition contains the LP and which the electron assertTrue(molecules[0].getSingleElectronSum(molecules[0].getAtomAt(0)) == 0 || molecules[1].getSingleElectronSum(molecules[1].getAtomAt(0)) == 0); assertTrue(molecules[0].getLonePairCount(molecules[0].getAtomAt(0)) == 0 || molecules[1].getLonePairCount(molecules[1].getAtomAt(0)) == 0); } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/a08c6ae51fd6e8e2448b2b9fde92a30a4e271589/ConnectivityCheckerTest.java/clean/src/org/openscience/cdk/test/graph/ConnectivityCheckerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
40,
1580,
2613,
5281,
28621,
87,
1435,
288,
3639,
7149,
2170,
3179,
442,
273,
394,
7149,
2170,
5621,
3639,
368,
1221,
2795,
312,
29466,
31,
1245,
598,
392,
511,
476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40,
1580,
2613,
5281,
28621,
87,
1435,
288,
3639,
7149,
2170,
3179,
442,
273,
394,
7149,
2170,
5621,
3639,
368,
1221,
2795,
312,
29466,
31,
1245,
598,
392,
511,
476,
... |
retVal = m_file.mkdirs(); | retVal = file.mkdirs(); | public boolean mkdir() { boolean retVal = false; if(hasWritePermission()) { retVal = m_file.mkdirs(); } return retVal; } | 48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/f8bdbb2dab0d67be139dd05d6110e466306c8868/NativeFileObject.java/clean/src/java/org/apache/ftpserver/filesystem/NativeFileObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
6535,
1435,
288,
3639,
1250,
12197,
273,
629,
31,
3639,
309,
12,
5332,
3067,
5041,
10756,
288,
5411,
12197,
273,
585,
18,
24816,
8291,
5621,
3639,
289,
3639,
327,
12197,
31,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
6535,
1435,
288,
3639,
1250,
12197,
273,
629,
31,
3639,
309,
12,
5332,
3067,
5041,
10756,
288,
5411,
12197,
273,
585,
18,
24816,
8291,
5621,
3639,
289,
3639,
327,
12197,
31,
5... |
public RegistrationAlert removefromRegistartion(RegistrationAlert existingregObject,RegistrationAlert newregobject) { Classification [] existingClassifications=existingregObject.getClassifications(); Source[] existingSources=existingregObject.getSources(); Target[]existingTargets=existingregObject.getTargets(); AdditionalData[] existingData=existingregObject.getAdditionalData(); Classification[] classifications=newregobject.getClassifications(); Source[] sources=newregobject.getSources(); Target[] targets=newregobject.getTargets(); AdditionalData[]data=newregobject.getAdditionalData(); int existinglength=existingClassifications.length; int newlength=classifications.length; boolean found= false; int foundindex=-1; if(classifications!=null){ //loggingService.debug("classifications is not null !!!!!!!!!!"); Classification newclassification=null; Classification existingclassification=null; Vector modifiedclassification=new Vector(); for(int i=0;i<newlength;i++) { newclassification=classifications[i]; found=false; foundindex=-1; for(int j=0;j<existinglength;j++) { existingclassification=existingClassifications[j]; if(!existingclassification.equals(newclassification)){ continue; } loggingService.debug("Found classification to remove:!!!!!!!!!!!!!!!!!"); found=true; foundindex=j; break; } if((found)&&(foundindex!=-1)) { loggingService.debug(" Found classification to remove at :"+foundindex); Classification modifiedClassifications[]=new Classification[existinglength-1]; System.arraycopy(existingClassifications,0,modifiedClassifications,0,foundindex); /* doing an array copy till the index where classification is found and skiping the index where classification is found in existing classification. If the index is the last one there is no need to copy the last classification */ if((foundindex+1)!=existinglength) System.arraycopy(existingClassifications,foundindex+1,modifiedClassifications,foundindex,existinglength-1); // printConsolidation(modifiedClassifications,"After removing :###########"); existinglength=modifiedClassifications.length; existingClassifications=modifiedClassifications; } } existingregObject.setClassifications(existingClassifications); } if(sources!=null) { existinglength=existingSources.length; newlength=sources.length; Source existingsource=null; Source newsource=null; for(int i=0;i<newlength;i++) { newsource=sources[i]; found=false; foundindex=-1; for(int j=0;j<existinglength;j++) { existingsource=existingSources[j]; if(!existingsource.equals(newsource)){ continue; } loggingService.debug("Found Source to remove:!!!!!!!!!!!!!!!!!"); found=true; foundindex=j; break; } if((found)&&(foundindex!=-1)) { loggingService.debug(" Found Siurce to remove at :"+foundindex); Source modifiedSources[]=new Source[existinglength-1]; System.arraycopy(existingSources,0,modifiedSources,0,foundindex); /* doing an array copy till the index where classification is found and skiping the index where classification is found in existing classification. If the index is the last one there is no need to copy the last classification */ if((foundindex+1)!=existinglength) System.arraycopy(existingSources,foundindex+1,modifiedSources,foundindex,existinglength-1); // printConsolidation(modifiedClassifications,"After removing :###########"); existinglength=modifiedSources.length; existingSources=modifiedSources; } } existingregObject.setSources(existingSources); } if(targets!=null) { existinglength=existingTargets.length; newlength=targets.length; Target existingtarget=null; Target newtarget=null; for(int i=0;i<newlength;i++) { newtarget=targets[i]; found=false; foundindex=-1; for(int j=0;j<existinglength;j++) { existingtarget=existingTargets[j]; if(!existingtarget.equals(newtarget)){ continue; } loggingService.debug("Found Target to remove:!!!!!!!!!!!!!!!!!"); found=true; foundindex=j; break; } if((found)&&(foundindex!=-1)) { loggingService.debug(" Found Target to remove at :"+foundindex); Target modifiedTargets[]=new Target[existinglength-1]; System.arraycopy(existingTargets,0,modifiedTargets,0,foundindex); /* doing an array copy till the index where classification is found and skiping the index where classification is found in existing classification. If the index is the last one there is no need to copy the last classification */ if((foundindex+1)!=existinglength) System.arraycopy(existingTargets,foundindex+1,modifiedTargets,foundindex,existinglength-1); // printConsolidation(modifiedClassifications,"After removing :###########"); existinglength=modifiedTargets.length; existingTargets=modifiedTargets; } } existingregObject.setTargets(existingTargets); } if(data!=null) { } return existingregObject; } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/a818a300930387b0f1ae9bde04631eba32944c10/CapabilitiesProcessingPlugin.java/clean/securityservices/src/org/cougaar/core/security/monitoring/plugin/CapabilitiesProcessingPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
7843,
13298,
4479,
2080,
1617,
376,
485,
285,
12,
7843,
13298,
11711,
1574,
921,
16,
7843,
13298,
2704,
1574,
1612,
15329,
19168,
8526,
11711,
797,
6640,
33,
11711,
1574,
921,
18,
588,
797... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
7843,
13298,
4479,
2080,
1617,
376,
485,
285,
12,
7843,
13298,
11711,
1574,
921,
16,
7843,
13298,
2704,
1574,
1612,
15329,
19168,
8526,
11711,
797,
6640,
33,
11711,
1574,
921,
18,
588,
797... | ||
if (currentPage != null) { currentPage.performHelp(); } } | if (currentPage != null) { currentPage.performHelp(); } } | public void helpRequested(HelpEvent event) { // call perform help on the current page if (currentPage != null) { currentPage.performHelp(); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d6d458c4d729d92f70d2e5d4166fe0c3ff50c883/PreferenceDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
2809,
11244,
12,
6696,
1133,
871,
13,
288,
7734,
368,
745,
3073,
2809,
603,
326,
783,
1363,
7734,
309,
261,
2972,
1964,
480,
446,
13,
288,
10792,
15117,
18,
16092,
6696,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
2809,
11244,
12,
6696,
1133,
871,
13,
288,
7734,
368,
745,
3073,
2809,
603,
326,
783,
1363,
7734,
309,
261,
2972,
1964,
480,
446,
13,
288,
10792,
15117,
18,
16092,
6696,
5621,... |
col = new Trait.Color(1.0f, 0.0f, 0.0f, 0.8f); s = col.toString(); | assertEquals("#ffff80", s); col = new Color(1.0f, 0.0f, 0.0f, 0.8f); s = ColorUtil.colorTOsRGBString(col); | public void testSerialization() throws Exception { Trait.Color col = new Trait.Color(1.0f, 1.0f, 0.5f, 1.0f); String s = col.toString(); assertEquals("#ffff7f", s); col = new Trait.Color(1.0f, 0.0f, 0.0f, 0.8f); s = col.toString(); assertEquals("#ff0000cc", s); } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/ed31364eaf18c370b5fb76ea05c7e84508c2c44c/TraitColorTestCase.java/buggy/test/java/org/apache/fop/traits/TraitColorTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
16764,
1435,
1216,
1185,
288,
3639,
2197,
305,
18,
2957,
645,
273,
394,
2197,
305,
18,
2957,
12,
21,
18,
20,
74,
16,
404,
18,
20,
74,
16,
374,
18,
25,
74,
16,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
16764,
1435,
1216,
1185,
288,
3639,
2197,
305,
18,
2957,
645,
273,
394,
2197,
305,
18,
2957,
12,
21,
18,
20,
74,
16,
404,
18,
20,
74,
16,
374,
18,
25,
74,
16,
404,
... |
private void setName(String name) { this.name = name; } | void setName(String name) { this.name = name; } | private void setName(String name) { this.name = name; } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/dc62a0a7cf481c21c3be647214959067a3b98f61/SimpleComparableOntology.java/buggy/src/org/biojavax/ontology/SimpleComparableOntology.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6788,
12,
780,
508,
13,
288,
333,
18,
529,
273,
508,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6788,
12,
780,
508,
13,
288,
333,
18,
529,
273,
508,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public int getColumnCount() { return 4; } | public int getColumnCount() { return 4; } | public int getColumnCount() { return 4; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5699d1d18ea43c14a1da75387329001791e752f3/TMResults.java/buggy/src_new/org/argouml/uml/TMResults.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
6716,
1380,
1435,
288,
327,
1059,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
6716,
1380,
1435,
288,
327,
1059,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ListingElement targetElement = getListingElement( element .getModule( ), (ListingElement) element.getElement( ) ); | ListingElement targetElement = getListingElement( element.getModule( ), (ListingElement) element.getElement( ) ); | public List validateForRenamingGroup( ListingHandle element, GroupHandle group, String groupName ) { if ( group.getName( ) == groupName || ( groupName != null && groupName.equals( group.getName( ) ) ) ) { return Collections.EMPTY_LIST; } ListingElement targetElement = getListingElement( element .getModule( ), (ListingElement) element.getElement( ) ); if ( targetElement == null ) return Collections.EMPTY_LIST; // Collect all group name in this element. List groupList = getGroupsWithContents( element.getModule( ), targetElement ); List list = new ArrayList( ); // Check whether the given group name is in the group name list. if ( isDuplicateGroupName( element.getModule( ), groupList, groupName ) ) { list.add( new SemanticError( targetElement, new String[]{groupName}, SemanticError.DESIGN_EXCEPTION_DUPLICATE_GROUP_NAME ) ); return list; } return list; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/9552086e38ab22456c2d1709862920e9fee19b54/GroupNameValidator.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/validators/GroupNameValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
1954,
1290,
16290,
7772,
1114,
12,
987,
310,
3259,
930,
16,
1082,
202,
1114,
3259,
1041,
16,
514,
11619,
262,
202,
95,
202,
202,
430,
261,
1041,
18,
17994,
12,
262,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
1954,
1290,
16290,
7772,
1114,
12,
987,
310,
3259,
930,
16,
1082,
202,
1114,
3259,
1041,
16,
514,
11619,
262,
202,
95,
202,
202,
430,
261,
1041,
18,
17994,
12,
262,
422,
... |
public void remove(final String id) { final Component component = get(id); if (component != null) { // Remove from map childForId.remove(id); // Notify Page final Page page = findPage(); if (page != null) { page.componentRemoved(component); } } else { throw new WicketRuntimeException("Unable to find a component with id '" + id + "' to remove"); } } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/c41380ea7c24d4b25fded0dfa7b726cbed1e5c04/MarkupContainer.java/buggy/wicket/src/java/wicket/MarkupContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
4479,
12,
6385,
780,
350,
13,
202,
95,
202,
202,
6385,
1841,
4652,
33,
588,
12,
350,
1769,
202,
202,
430,
12,
4652,
5,
33,
2011,
13,
202,
202,
95,
1082,
202,
759,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
4479,
12,
6385,
780,
350,
13,
202,
95,
202,
202,
6385,
1841,
4652,
33,
588,
12,
350,
1769,
202,
202,
430,
12,
4652,
5,
33,
2011,
13,
202,
202,
95,
1082,
202,
759,
32... | ||
public void addListener(Listener listener) { vListeners.add(listener); } | public void addListener( Listener listener ) { vListeners.add( listener ); } | public void addListener(Listener listener) { vListeners.add(listener); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/979b4ef9e0ecedfdb172d4326b24c2a6033cbbbd/TextEditorComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/TextEditorComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12087,
12,
2223,
2991,
13,
565,
288,
3639,
331,
5583,
18,
1289,
12,
12757,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12087,
12,
2223,
2991,
13,
565,
288,
3639,
331,
5583,
18,
1289,
12,
12757,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return this.manager.lookup(this.role + key); | return this.beanFactory.getBean(this.role + key); | public Object select(Object key) throws ServiceException { if ( key == null || key.toString().length() == 0 ) { key = this.defaultKey; } return this.manager.lookup(this.role + key); } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/b09142d013ac7bfb68eddd46bd2d856178edaa5f/AvalonServiceSelector.java/buggy/cocoon-core/src/main/java/org/apache/cocoon/core/container/spring/AvalonServiceSelector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2027,
12,
921,
498,
13,
1216,
16489,
288,
3639,
309,
261,
498,
422,
446,
747,
498,
18,
10492,
7675,
2469,
1435,
422,
374,
262,
288,
5411,
498,
273,
333,
18,
1886,
653,
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,
2027,
12,
921,
498,
13,
1216,
16489,
288,
3639,
309,
261,
498,
422,
446,
747,
498,
18,
10492,
7675,
2469,
1435,
422,
374,
262,
288,
5411,
498,
273,
333,
18,
1886,
653,
31,
... |
new AffineTransform(1.0, Math.tan(Math.toRadians(angle)), 0.0, 1.0, 0.0, 0.0); | AffineTransform.getShearInstance(Math.tan(Math.toRadians(angle)), 0.0); | public void setSkewX(float angle) { type = SVG_TRANSFORM_SKEWX; affineTransform = new AffineTransform(1.0, Math.tan(Math.toRadians(angle)), 0.0, 1.0, 0.0, 0.0); this.angle = angle; } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/89c71b0930fb59d440d69de859083d0989b8f15e/AbstractSVGTransform.java/buggy/sources/org/apache/batik/dom/svg/AbstractSVGTransform.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5925,
359,
60,
12,
5659,
5291,
13,
288,
3639,
618,
273,
11281,
67,
16596,
4983,
67,
55,
6859,
59,
60,
31,
3639,
28381,
4059,
273,
5411,
394,
23906,
558,
4059,
12,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5925,
359,
60,
12,
5659,
5291,
13,
288,
3639,
618,
273,
11281,
67,
16596,
4983,
67,
55,
6859,
59,
60,
31,
3639,
28381,
4059,
273,
5411,
394,
23906,
558,
4059,
12,
21,
... |
if(!state.getURI().equals(revocationURI)){ | if(!state.getURI().equals(revocationURI)){ Logger.minor(this, "onFailure("+e+","+state+")"); | public synchronized void onFailure(FetchException e, ClientGetter state) { int errorCode = e.getMode(); if(!state.getURI().equals(revocationURI)){ this.cg = state; isFetching=false; cg.cancel(); if((errorCode == FetchException.DATA_NOT_FOUND) || (errorCode == FetchException.ROUTE_NOT_FOUND) || (errorCode == FetchException.PERMANENT_REDIRECT) || (errorCode == FetchException.REJECTED_OVERLOAD)){ Logger.normal(this, "Rescheduling new request"); maybeUpdate(); } else Logger.error(this, "Canceling fetch : "+ e.getMessage()); }else{ if(errorCode == FetchException.DATA_NOT_FOUND){ revocationDNFCounter++; } if(e.isFatal()) this.blow("Permanent error fetching revocation (invalid data inserted?): "+e.toString()); // Start it again if(this.finalCheck) { if(revocationDNFCounter < 3) queueFetchRevocation(1000); else notifyAll(); } else { boolean pause = (revocationDNFCounter == 3); if(pause) revocationDNFCounter = 0; queueFetchRevocation(pause ? 60*60*1000 : 5000); } } } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/5859c6306e314e2f206e8b2a0755dd48185083d4/NodeUpdater.java/buggy/src/freenet/node/updater/NodeUpdater.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
27748,
12,
5005,
503,
425,
16,
2445,
8461,
919,
13,
288,
202,
202,
474,
12079,
273,
425,
18,
588,
2309,
5621,
9506,
202,
430,
12,
5,
2019,
18,
588,
3098,
7675,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
27748,
12,
5005,
503,
425,
16,
2445,
8461,
919,
13,
288,
202,
202,
474,
12079,
273,
425,
18,
588,
2309,
5621,
9506,
202,
430,
12,
5,
2019,
18,
588,
3098,
7675,
14... |
public String toString() { return (this.getClass() + "[font=" + font + ",ascent=" + getAscent() + ",descent=" + getDescent() + ",height=" + getHeight() + "]"); } | toString() { return (this.getClass() + "[font=" + font + ",ascent=" + getAscent() + ",descent=" + getDescent() + ",height=" + getHeight() + "]"); } | public String toString() { return (this.getClass() + "[font=" + font + ",ascent=" + getAscent() + ",descent=" + getDescent() + ",height=" + getHeight() + "]"); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FontMetrics.java/buggy/core/src/classpath/java/java/awt/FontMetrics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
2463,
261,
2211,
18,
588,
797,
1435,
397,
5158,
5776,
1546,
397,
3512,
397,
3104,
345,
2998,
1546,
397,
4506,
1017,
319,
1435,
397,
3104,
5569,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
2463,
261,
2211,
18,
588,
797,
1435,
397,
5158,
5776,
1546,
397,
3512,
397,
3104,
345,
2998,
1546,
397,
4506,
1017,
319,
1435,
397,
3104,
5569,
... |
for (int i = 0; i < 133; i++) jj_la1[i] = -1; | for (int i = 0; i < 134; i++) jj_la1[i] = -1; | public void ReInit(CharStream stream) { token_source.ReInit(stream); token = new Token(); token.next = jj_nt = token_source.getNextToken(); jjtree.reset(); jj_gen = 0; for (int i = 0; i < 133; i++) jj_la1[i] = -1; for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/ab83afb5228ef279b7bcc47c36ec843d3de7d3b1/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
868,
2570,
12,
2156,
1228,
1407,
13,
288,
565,
1147,
67,
3168,
18,
426,
2570,
12,
3256,
1769,
565,
1147,
273,
394,
3155,
5621,
565,
1147,
18,
4285,
273,
10684,
67,
496,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
868,
2570,
12,
2156,
1228,
1407,
13,
288,
565,
1147,
67,
3168,
18,
426,
2570,
12,
3256,
1769,
565,
1147,
273,
394,
3155,
5621,
565,
1147,
18,
4285,
273,
10684,
67,
496,
273,
... |
public String literal_constraint() throws RecognitionException { String text; Token t=null; text = null; try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:711:17: ( (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:711:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:711:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) int alt51=5; switch ( input.LA(1) ) { case STRING: alt51=1; break; case INT: alt51=2; break; case FLOAT: alt51=3; break; case BOOL: alt51=4; break; case 48: alt51=5; break; default: NoViableAltException nvae = new NoViableAltException("711:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= \'null\' )", 51, 0, input); throw nvae; } switch (alt51) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:711:25: t= STRING { t=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_literal_constraint1905); text = getString( t ); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:712:25: t= INT { t=(Token)input.LT(1); match(input,INT,FOLLOW_INT_in_literal_constraint1916); text = t.getText(); } break; case 3 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:713:25: t= FLOAT { t=(Token)input.LT(1); match(input,FLOAT,FOLLOW_FLOAT_in_literal_constraint1929); text = t.getText(); } break; case 4 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:714:25: t= BOOL { t=(Token)input.LT(1); match(input,BOOL,FOLLOW_BOOL_in_literal_constraint1940); text = t.getText(); } break; case 5 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:715:25: t= 'null' { t=(Token)input.LT(1); match(input,48,FOLLOW_48_in_literal_constraint1952); text = null; } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/35c3932466a0269c296ae52afa8a1f8048a309d2/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
7158,
67,
13364,
1435,
1216,
9539,
288,
6647,
514,
977,
31,
3639,
3155,
268,
33,
2011,
31,
540,
202,
202,
955,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
342,
6588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7158,
67,
13364,
1435,
1216,
9539,
288,
6647,
514,
977,
31,
3639,
3155,
268,
33,
2011,
31,
540,
202,
202,
955,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
342,
6588,
... | ||
String click = getRemoveTargetScript(); delete.setOnClick(click); | private PresentationObject getButtonBar(IWResourceBundle resourceBundle) { Table table = new Table(5,1); // new button for query builder (simple mode) String simpleModeText = resourceBundle.getLocalizedString("ro_create_simple_mode", "New (simple mode)"); Link simpleModeLink = new Link(simpleModeText); simpleModeLink.addParameter(ReportQueryBuilder.SHOW_WIZARD, Integer.toString(SIMPLE_MODE)); simpleModeLink.addParameter(ReportQueryBuilder.PARAM_QUERY_FOLDER_ID, parameterMap.get(SET_ID_OF_QUERY_FOLDER_KEY).toString()); simpleModeLink.addParameter(ReportQueryBuilder.PARAM_LAYOUT_FOLDER_ID, parameterMap.get(SET_ID_OF_DESIGN_FOLDER_KEY).toString()); simpleModeLink.setAsImageButton(true); // delete button String deleteText = resourceBundle.getLocalizedString("ro_delete", "Delete"); SubmitButton delete = new SubmitButton(DELETE_ITEMS_KEY, deleteText); // change target String click = getRemoveTargetScript();//ReportOverviewWindow.class); delete.setOnClick(click); delete.setAsImageButton(true); // close button String closeText = resourceBundle.getLocalizedString("ro_cancel", "Cancel"); Link close = new Link(closeText); close.addParameter(CLOSE_KEY, CLOSE_KEY); close.setAsImageButton(true); close.setOnClick("window.close()"); int column = 1; table.add(simpleModeLink,column++,1); if (isAdmin) { // new button for query builder (expert mode) String expertModeText = resourceBundle.getLocalizedString("ro_create_expert_mode", "New (expert mode)"); Link expertModeLink = new Link(expertModeText); expertModeLink.addParameter(ReportQueryBuilder.SHOW_WIZARD, Integer.toString(EXPERT_MODE)); expertModeLink.addParameter(ReportQueryBuilder.PARAM_QUERY_FOLDER_ID, parameterMap.get(SET_ID_OF_QUERY_FOLDER_KEY).toString()); expertModeLink.addParameter(ReportQueryBuilder.PARAM_LAYOUT_FOLDER_ID, parameterMap.get(SET_ID_OF_DESIGN_FOLDER_KEY).toString()); expertModeLink.setAsImageButton(true); table.add(expertModeLink,column++,1); } table.add(delete,column++,1); table.add(close, column++,1); // special button if only one query was shown if (showOnlyOneQueryWithId != -1) { PresentationObject goBack = getGoBackButton(resourceBundle); table.add(goBack, column++,1); } return table; } | 57902 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57902/935a188514a886155358ffd5870dbae672b8746e/ReportQueryOverview.java/buggy/src/java/com/idega/block/datareport/presentation/ReportQueryOverview.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
25130,
367,
921,
2882,
2644,
5190,
12,
45,
59,
18731,
1058,
3405,
13,
202,
95,
202,
202,
1388,
1014,
273,
394,
3555,
12,
25,
16,
21,
1769,
202,
202,
759,
394,
3568,
364,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25130,
367,
921,
2882,
2644,
5190,
12,
45,
59,
18731,
1058,
3405,
13,
202,
95,
202,
202,
1388,
1014,
273,
394,
3555,
12,
25,
16,
21,
1769,
202,
202,
759,
394,
3568,
364,
84... | |
public Area(Shape s) | public Area() | public Area(Shape s) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Area.java/buggy/core/src/classpath/java/java/awt/geom/Area.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16668,
1435,
225,
288,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
282,
1071,
16668,
1435,
225,
288,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
public void run() { while(true) { int curPort = port; String tempBindTo = this.bindTo; try { networkInterface = new NetworkInterface(curPort, tempBindTo, allowedHosts); } catch (IOException e) { Logger.error(this, "Could not bind to TMCI port: "+tempBindTo+":"+port); System.exit(-1); return; } try { networkInterface.setSoTimeout(1000); } catch (SocketException e1) { Logger.error(this, "Could not set timeout: "+e1, e1); System.err.println("Could not start TMCI: "+e1); e1.printStackTrace(); return; } while(isEnabled) { // Maybe something has changed? if(port != curPort) break; if(!(this.bindTo.equals(tempBindTo))) break; try { Socket s = networkInterface.accept(); InputStream in = s.getInputStream(); OutputStream out = s.getOutputStream(); TextModeClientInterface tmci = new TextModeClientInterface(this, in, out); Thread t = new Thread(tmci, "Text mode client interface handler for "+s.getPort()); t.setDaemon(true); t.start(); } catch (SocketTimeoutException e) { // Ignore and try again } catch (SocketException e){ Logger.error(this, "Socket error : "+e, e); } catch (IOException e) { Logger.error(this, "TMCI failed to accept socket: "+e, e); } } try{ networkInterface.close(); }catch (IOException e){ Logger.error(this, "Error shuting down TMCI", e); } } } | 56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/511493dfb44b786f6394635d56147f295d1798df/TextModeClientInterfaceServer.java/buggy/src/freenet/node/TextModeClientInterfaceServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2681,
1435,
95,
202,
17523,
12,
3767,
15329,
202,
202,
474,
1397,
2617,
33,
655,
31,
202,
202,
780,
5814,
3357,
774,
33,
2211,
18,
4376,
774,
31,
202,
202,
698,
95,
1082,
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,
1071,
6459,
2681,
1435,
95,
202,
17523,
12,
3767,
15329,
202,
202,
474,
1397,
2617,
33,
655,
31,
202,
202,
780,
5814,
3357,
774,
33,
2211,
18,
4376,
774,
31,
202,
202,
698,
95,
1082,
202,
... | ||
return getBufferLength(); | { return getLineEndOffset(buffer.virtualToPhysical( buffer.getVirtualLineCount() - 1)) - 1; } | public int xyToOffset(int x, int y) { FontMetrics fm = painter.getFontMetrics(); int height = fm.getHeight(); int line = y / height + firstLine; if(line < 0) return 0; else if(line >= getVirtualLineCount()) return getBufferLength(); else { line = buffer.virtualToPhysical(line); return getLineStartOffset(line) + xToOffset(line,x); } } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/1070314839d08deb0166ff2f1bc2586ceab73d74/JEditTextArea.java/buggy/org/gjt/sp/jedit/textarea/JEditTextArea.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
7668,
774,
2335,
12,
474,
619,
16,
509,
677,
13,
202,
95,
202,
202,
5711,
5653,
10940,
273,
21295,
18,
588,
5711,
5653,
5621,
202,
202,
474,
2072,
273,
10940,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
7668,
774,
2335,
12,
474,
619,
16,
509,
677,
13,
202,
95,
202,
202,
5711,
5653,
10940,
273,
21295,
18,
588,
5711,
5653,
5621,
202,
202,
474,
2072,
273,
10940,
18,
588,
... |
private void resetWidgetCollector() { m_widgetCollector = null; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/2fa0efcae8f9aa5971c7763269a3b033e9256d4b/CmsXmlContentEditor.java/clean/src/org/opencms/workplace/editors/CmsXmlContentEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2715,
4609,
7134,
1435,
288,
5411,
312,
67,
6587,
7134,
273,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2715,
4609,
7134,
1435,
288,
5411,
312,
67,
6587,
7134,
273,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | ||
} | } | public int write (ByteBuffer src) throws IOException { int w = 0; if (buf == null) { throw new EOFException ("file not mapped"); } while (src.hasRemaining ()) { buf.put (src.get ()); w++; } return w; } | 1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/8cef25e737d97238751152631de70237a2aabaa4/FileChannelImpl.java/buggy/libjava/gnu/java/nio/FileChannelImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1045,
261,
12242,
1705,
13,
1216,
1860,
225,
288,
565,
509,
341,
273,
374,
31,
565,
309,
261,
4385,
422,
446,
13,
202,
565,
288,
3639,
604,
394,
30051,
7566,
768,
486,
5525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
261,
12242,
1705,
13,
1216,
1860,
225,
288,
565,
509,
341,
273,
374,
31,
565,
309,
261,
4385,
422,
446,
13,
202,
565,
288,
3639,
604,
394,
30051,
7566,
768,
486,
5525,
... |
public void finish() { | public IRubyObject finish() throws Exception { StringBuffer result = new StringBuffer(); byte[] outp = new byte[1024]; byte[] buf = collected.toString().getBytes("ISO8859_1"); collected = new StringBuffer(); flater.setInput(buf); | public void finish() { flater.finish(); } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/510a41b06f3103200e881725915b7cc1a5a10b39/ZlibDeflate.java/buggy/src/org/jruby/util/ZlibDeflate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
4076,
1435,
1216,
1185,
288,
6674,
563,
273,
394,
6674,
5621,
1160,
8526,
596,
84,
273,
394,
1160,
63,
2163,
3247,
15533,
1160,
8526,
1681,
273,
12230,
18,
10492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15908,
10340,
921,
4076,
1435,
1216,
1185,
288,
6674,
563,
273,
394,
6674,
5621,
1160,
8526,
596,
84,
273,
394,
1160,
63,
2163,
3247,
15533,
1160,
8526,
1681,
273,
12230,
18,
10492,
... |
counter++; | IMolecule loop(long starttime, IMolecule molecule, int index, ArrayList MasterList, int [] choices, IMoleculeSet som) { //System.out.println(System.currentTimeMillis()); long time = System.currentTimeMillis(); long diff = time - starttime; if (diff > 100000) return null; //time out after 100 seconds ArrayList ringlist = (ArrayList) MasterList.get(index); IMolecule mnew2 = null; for (int i = 0; i <= ringlist.size() - 1; i++) { choices[index] = i; if (index == MasterList.size() - 1) { //System.out.println(choices[0]+"\t"+choices[1]); IMolecule mnew = null; try { mnew = (Molecule) molecule.clone(); } catch (Exception e) { logger.error("Failed to clone molecule: ", e.getMessage()); logger.debug(e); } for (int j = 0; j <= MasterList.size() - 1; j++) { ArrayList ringlist2 = (ArrayList) MasterList.get(j); ArrayList bondlist = (ArrayList) ringlist2.get(choices[j]);// System.out.println(j+"\t"+choices[j]); applyBonds(mnew, bondlist); }// System.out.println(""); try { HydrogenAdder hydrogenAdder; hydrogenAdder = new HydrogenAdder("org.openscience.cdk.tools.ValencyChecker"); hydrogenAdder.addImplicitHydrogensToSatisfyValency(mnew); } catch (Exception e) { logger.error("Failed to add hydrogens: ", e.getMessage()); logger.debug(e); } if (isStructureOK(mnew)) { IRingSet rs = this.removeExtraRings(mnew); // need to redo this since created new molecule (mnew) int count = this.getBadCount(mnew, rs); //System.out.println("bad count="+count); if (count == 0) {// System.out.println("found match after "+counter+" iterations"); return mnew; // dont worry about adding to set just finish } else { som.addMolecule(mnew); } } } if (index + 1 <= MasterList.size() - 1) { //System.out.println("here3="+counter); mnew2 = loop(starttime, molecule, index + 1, MasterList, choices, som); //recursive def } if (mnew2 instanceof IMolecule) { return mnew2; } } return null; } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/2b36ab3de769d925ab5e01751e878f653a1b942a/DeduceBondSystemTool.java/buggy/src/org/openscience/cdk/smiles/DeduceBondSystemTool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3895,
9904,
31,
3895,
9904,
31,
3895,
9904,
31,
3895,
9904,
31,
6246,
10545,
7476,
9904,
31,
2798,
12,
5748,
7476,
9904,
31,
23437,
16,
7476,
9904,
31,
6246,
10545,
7476,
9904,
31,
13661,
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,
8585,
326,
22398,
316,
326,
981,
30,
3895,
9904,
31,
3895,
9904,
31,
3895,
9904,
31,
3895,
9904,
31,
6246,
10545,
7476,
9904,
31,
2798,
12,
5748,
7476,
9904,
31,
23437,
16,
7476,
9904,
31,
6246,
10545,
7476,
9904,
31,
13661,
16,
... | |
VM.sysExit(VM.exitStatusBogusCommandLineArg); | VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG); | public static void processCommandLineArg(String prefix, String arg) { if (options.processAsOption(prefix, arg)) { return; } else { VM.sysWrite("VM_BaselineCompiler: Unrecognized argument \""+ arg + "\"\n"); VM.sysExit(VM.exitStatusBogusCommandLineArg); } } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/03b35a94a05496f90a3f50e27e94eb82a306a76f/VM_BaselineCompiler.java/buggy/rvm/src/vm/compilers/baseline/VM_BaselineCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1207,
21391,
4117,
12,
780,
1633,
16,
514,
1501,
13,
288,
565,
309,
261,
2116,
18,
2567,
1463,
1895,
12,
3239,
16,
1501,
3719,
288,
1377,
327,
31,
565,
289,
469,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1207,
21391,
4117,
12,
780,
1633,
16,
514,
1501,
13,
288,
565,
309,
261,
2116,
18,
2567,
1463,
1895,
12,
3239,
16,
1501,
3719,
288,
1377,
327,
31,
565,
289,
469,
288,
... |
handleException(e); | handleException(e); | public final void xpath() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST xpath_AST = null; try { // for error handling { switch ( LA(1)) { case LPAREN: case NCNAME: case LITERAL_or: case LITERAL_and: case STRING_LITERAL: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { expr(); astFactory.addASTChild(currentAST, returnAST); break; } case EOF: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } xpath_AST = (AST)currentAST.root; } catch (RecognitionException e) { if (inputState.guessing==0) { handleException(e); } else { throw e; } } returnAST = xpath_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ad9d55f515de2cb1fa50cf09c9e42150efc8374f/XPathParser2.java/buggy/src/org/exist/parser/XPathParser2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
6748,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
6748,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
6... |
return new TreePath(getPathToRoot(node, 0)); } | return new TreePath(getPathToRoot(node, 0)); } | public TreePath getPathForRow(JTree tree, int row) { TreeModel mod = tree.getModel(); if (mod != null) { Object node = mod.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(getPathToRoot(node, 0)))) node = getNextNode(node); for (int i = 0; i < row; i++) node = getNextVisibleNode(node); if (node == null) return null; return new TreePath(getPathToRoot(node, 0)); } return null; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4902,
743,
4339,
1290,
1999,
12,
46,
2471,
2151,
16,
509,
1027,
13,
202,
95,
565,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
565,
309,
261,
1711,
480,
446,
13,
1377,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4902,
743,
4339,
1290,
1999,
12,
46,
2471,
2151,
16,
509,
1027,
13,
202,
95,
565,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
565,
309,
261,
1711,
480,
446,
13,
1377,
2... |
if(path.toFile().exists()) { | File file = path.toFile(); if(file.exists()) { | protected void savePressed() { // Get the file to save String lastFilename = WorkbenchPlugin.getDefault().getDialogSettings().get(SAVE_SETTING); FileDialog d = new FileDialog(getShell(), SWT.SAVE); d.setFileName(lastFilename); d.setFilterExtensions(DIALOG_PREFERENCE_EXTENSIONS); String filename = d.open(); if (filename == null) return; // Append the default filename if none was specifed IPath path = new Path(filename); if (path.getFileExtension() == null) { path = path.addFileExtension(PREFERENCE_EXT); filename = path.toOSString(); } WorkbenchPlugin.getDefault().getDialogSettings().put(SAVE_SETTING, filename); // See if the file already exists if(path.toFile().exists()) { if(!MessageDialog.openConfirm( getShell(), WorkbenchMessages.getString("WorkbenchPreferenceDialog.saveTitle"), //$NON-NLS-1$ WorkbenchMessages.format("WorkbenchPreferenceDialog.existsErrorMessage", new Object[]{filename}))) //$NON-NLS-1$ return; } // Save all the pages and give them a chance to abort Iterator nodes = getPreferenceManager().getElements(PreferenceManager.PRE_ORDER).iterator(); while (nodes.hasNext()) { IPreferenceNode node = (IPreferenceNode) nodes.next(); IPreferencePage page = node.getPage(); if (page != null) { if(!page.performOk()) return; } } // Save to file try { Preferences.exportPreferences(path); } catch (CoreException e) { ErrorDialog.openError( getShell(), WorkbenchMessages.getString("WorkbenchPreferenceDialog.saveErrorTitle"), //$NON-NLS-1$ WorkbenchMessages.format("WorkbenchPreferenceDialog.saveErrorMessage", new Object[]{filename}), //$NON-NLS-1$ e.getStatus()); return; } MessageDialog.openInformation( getShell(), WorkbenchMessages.getString("WorkbenchPreferenceDialog.saveTitle"), //$NON-NLS-1$ WorkbenchMessages.format("WorkbenchPreferenceDialog.saveMessage", new Object[]{filename})); //$NON-NLS-1$ // Close since we have "performed Ok" and cancel is no longer valid close(); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/995d4d80ae3bbdddb93b35418288d7fbfe2e6ed8/WorkbenchPreferenceDialog.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferenceDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1923,
24624,
1435,
288,
202,
202,
759,
968,
326,
585,
358,
1923,
202,
202,
780,
1142,
5359,
273,
4147,
22144,
3773,
18,
588,
1868,
7675,
588,
6353,
2628,
7675,
588,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1923,
24624,
1435,
288,
202,
202,
759,
968,
326,
585,
358,
1923,
202,
202,
780,
1142,
5359,
273,
4147,
22144,
3773,
18,
588,
1868,
7675,
588,
6353,
2628,
7675,
588,
12,
... |
&& (val != NO_SPEC_INT)) throw new ParseException( "Day-of-Week values must be between 1 and 7", -1); | && (val != NO_SPEC_INT)) { throw new ParseException( "Day-of-Week values must be between 1 and 7", -1); } | protected void addToSet(int val, int end, int incr, int type) throws ParseException { TreeSet set = getSet(type); if (type == SECOND || type == MINUTE) { if ((val < 0 || val > 59 || end > 59) && (val != ALL_SPEC_INT)) throw new ParseException( "Minute and Second values must be between 0 and 59", -1); } else if (type == HOUR) { if ((val < 0 || val > 23 || end > 23) && (val != ALL_SPEC_INT)) throw new ParseException( "Hour values must be between 0 and 23", -1); } else if (type == DAY_OF_MONTH) { if ((val < 1 || val > 31 || end > 31) && (val != ALL_SPEC_INT) && (val != NO_SPEC_INT)) throw new ParseException( "Day of month values must be between 1 and 31", -1); } else if (type == MONTH) { if ((val < 1 || val > 12 || end > 12) && (val != ALL_SPEC_INT)) throw new ParseException( "Month values must be between 1 and 12", -1); } else if (type == DAY_OF_WEEK) { if ((val == 0 || val > 7 || end > 7) && (val != ALL_SPEC_INT) && (val != NO_SPEC_INT)) throw new ParseException( "Day-of-Week values must be between 1 and 7", -1); } if ((incr == 0 || incr == -1) && val != ALL_SPEC_INT) { if (val != -1) set.add(new Integer(val)); else set.add(NO_SPEC); return; } int startAt = val; int stopAt = end; if (val == ALL_SPEC_INT && incr <= 0) { incr = 1; set.add(ALL_SPEC); // put in a marker, but also fill values } if (type == SECOND || type == MINUTE) { if (stopAt == -1) stopAt = 59; if (startAt == -1 || startAt == ALL_SPEC_INT) startAt = 0; } else if (type == HOUR) { if (stopAt == -1) stopAt = 23; if (startAt == -1 || startAt == ALL_SPEC_INT) startAt = 0; } else if (type == DAY_OF_MONTH) { if (stopAt == -1) stopAt = 31; if (startAt == -1 || startAt == ALL_SPEC_INT) startAt = 1; } else if (type == MONTH) { if (stopAt == -1) stopAt = 12; if (startAt == -1 || startAt == ALL_SPEC_INT) startAt = 1; } else if (type == DAY_OF_WEEK) { if (stopAt == -1) stopAt = 7; if (startAt == -1 || startAt == ALL_SPEC_INT) startAt = 1; } else if (type == YEAR) { if (stopAt == -1) stopAt = 2099; if (startAt == -1 || startAt == ALL_SPEC_INT) startAt = 1970; } for (int i = startAt; i <= stopAt; i += incr) set.add(new Integer(i)); } | 3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/0ca5d7d851637eb8695746dba9608de14253a225/CronExpression.java/clean/src/java/org/quartz/CronExpression.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
9604,
694,
12,
474,
1244,
16,
509,
679,
16,
509,
17633,
16,
509,
618,
13,
5411,
1216,
10616,
288,
3639,
19461,
444,
273,
336,
694,
12,
723,
1769,
3639,
309,
261,
723,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9604,
694,
12,
474,
1244,
16,
509,
679,
16,
509,
17633,
16,
509,
618,
13,
5411,
1216,
10616,
288,
3639,
19461,
444,
273,
336,
694,
12,
723,
1769,
3639,
309,
261,
723,
422,
... |
public boolean isDragOk(int action) { if(isHighLevel && action == java.awt.dnd.DnDConstants.ACTION_LINK) return true; else return false; } | public boolean isDragOk(int action) { if(isHighLevel && action == java.awt.dnd.DnDConstants.ACTION_LINK) return true; else return false; } | public boolean isDragOk(int action) { if(isHighLevel && action == java.awt.dnd.DnDConstants.ACTION_LINK) return true; else return false; } | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/9cf35188c641160e2e251774deec0b711037d6fc/SoarOperatorNode.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/operatorwindow/SoarOperatorNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
11728,
8809,
12,
474,
1301,
13,
288,
202,
202,
430,
12,
291,
8573,
2355,
597,
1301,
422,
2252,
18,
2219,
88,
18,
72,
4880,
18,
19053,
40,
2918,
18,
12249,
67,
105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
11728,
8809,
12,
474,
1301,
13,
288,
202,
202,
430,
12,
291,
8573,
2355,
597,
1301,
422,
2252,
18,
2219,
88,
18,
72,
4880,
18,
19053,
40,
2918,
18,
12249,
67,
105... |
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/MarketDataRequest.java/buggy/src/java/src/quickfix/fix42/MarketDataRequest.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... |
this.jInfo.setMessages( this.jInfo.getMessages() + '\n' + message ); | if (this.jInfo.getMessages() == null) this.jInfo.setMessages( message ); else this.jInfo.setMessages( this.jInfo.getMessages() + '\n' + message ); | private void updateDescriptionHistory( String message ) { this.jInfo.setMessages( this.jInfo.getMessages() + '\n' + message ); } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/34268c868af929f0c50034e8a8a0e43b3f31a57f/ProgressJobImpl.java/buggy/gemma-util/src/main/java/ubic/gemma/util/progress/ProgressJobImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
3291,
5623,
12,
514,
883,
262,
288,
3639,
309,
261,
2211,
18,
78,
966,
18,
588,
5058,
1435,
422,
446,
13,
333,
18,
78,
966,
18,
542,
5058,
12,
883,
11272,
469,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
3291,
5623,
12,
514,
883,
262,
288,
3639,
309,
261,
2211,
18,
78,
966,
18,
588,
5058,
1435,
422,
446,
13,
333,
18,
78,
966,
18,
542,
5058,
12,
883,
11272,
469,
333,
... |
public String jsFunction_toString() { return booleanValue ? "true" : "false"; | private String jsFunction_toString() { return booleanValue ? "true" : "false"; | public String jsFunction_toString() { return booleanValue ? "true" : "false"; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/5199af305119ce6bc1706da9df0efe90859c2359/NativeBoolean.java/clean/js/rhino/src/org/mozilla/javascript/NativeBoolean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3828,
2083,
67,
10492,
1435,
288,
202,
565,
327,
16708,
692,
315,
3767,
6,
294,
315,
5743,
14432,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3828,
2083,
67,
10492,
1435,
288,
202,
565,
327,
16708,
692,
315,
3767,
6,
294,
315,
5743,
14432,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { process(request, response); } | 22725 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22725/43e3a7aa8cd68770bcd98555c84f91cb80213170/FreemarkerServlet.java/buggy/src/java/com/opensymphony/webwork/views/freemarker/FreemarkerServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
2940,
18572,
590,
16,
12446,
766,
13,
3639,
1216,
16517,
16,
1860,
565,
288,
3639,
1207,
12,
2293,
16,
766,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
2940,
18572,
590,
16,
12446,
766,
13,
3639,
1216,
16517,
16,
1860,
565,
288,
3639,
1207,
12,
2293,
16,
766,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if ( ! ( this instanceof ReportExceptionCommand | if ( ! ( this instanceof ReportErrorCommand | void wrapExecute(NodeInfo origin, Node thisNode) { setOrigin( origin ); setThisNode( thisNode ); boolean hadError = false; try { execute( thisNode ); } catch (Throwable t) { if ( ! ( this instanceof ReportExceptionCommand || this instanceof ReportCompletionCommand ) ) { try { getOrigin().reportException( getUid(), t ); } catch (Exception e) { System.err.println( "unable to report error from " + getThisNode().getLocalNodeInfo() + " to " + getOrigin() ); e.printStackTrace(); } } else { System.err.println( "unable to report error from " + getThisNode().getLocalNodeInfo() + " to " + getOrigin() ); t.printStackTrace(); } } if ( ! ( this instanceof ReportExceptionCommand || this instanceof ReportCompletionCommand ) ) { if ( ! hadError ) { try { getOrigin().reportCompletion( getUid() ); } catch (Exception e) { System.err.println( "unable to report completion from " + getThisNode().getLocalNodeInfo() + " to " + getOrigin() ); e.printStackTrace(); } } } } | 4523 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4523/bff346254f57bd7bba56c2f32880de4cbd589850/Command.java/buggy/sysunit/src/main/org/sysunit/mesh/Command.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2193,
5289,
12,
25392,
4026,
16,
5397,
2029,
333,
907,
13,
565,
288,
3639,
444,
7571,
12,
4026,
11272,
3639,
444,
2503,
907,
12,
333,
907,
11272,
3639,
1250,
9323,
668,
273,
629,
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,
918,
2193,
5289,
12,
25392,
4026,
16,
5397,
2029,
333,
907,
13,
565,
288,
3639,
444,
7571,
12,
4026,
11272,
3639,
444,
2503,
907,
12,
333,
907,
11272,
3639,
1250,
9323,
668,
273,
629,
3... |
if (targetFile != null && !targetFile.isWritable()) { | if (targetFile != null && !targetFile.getManager().isInProject(targetFile)) { | protected boolean isAvailableImpl(int offset) { if (!myConstructorCall.isWritable()) return false; final PsiElement nameElement = getElement(myConstructorCall); final PsiFile targetFile = getTargetFile(myConstructorCall); if (targetFile != null && !targetFile.isWritable()) { return false; } if (shouldShowTag(offset, nameElement, myConstructorCall)) { setText("Create Constructor"); return true; } return false; } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/e8125ddb902aab8141b7a42421209f89e2a2c38d/CreateConstructorFromCallAction.java/clean/source/com/intellij/codeInsight/daemon/impl/quickfix/CreateConstructorFromCallAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
28293,
2828,
12,
474,
1384,
13,
288,
565,
309,
16051,
4811,
6293,
1477,
18,
291,
12061,
10756,
327,
629,
31,
565,
727,
453,
7722,
1046,
508,
1046,
273,
7426,
12,
4811,
6293,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
28293,
2828,
12,
474,
1384,
13,
288,
565,
309,
16051,
4811,
6293,
1477,
18,
291,
12061,
10756,
327,
629,
31,
565,
727,
453,
7722,
1046,
508,
1046,
273,
7426,
12,
4811,
6293,
... |
} else if (transactionResponse.getStatusCode() == 401 && transactionResponse.getStatusCode() == 407) { if (dialog.getState() == null) dialog.setState(DialogImpl.EARLY_STATE); } else if ( ( transactionResponse.getStatusCode() / 100 == 4 || | } else if ( ( transactionResponse.getStatusCode() / 100 == 3 || transactionResponse.getStatusCode() / 100 == 4 || | public synchronized void processResponse( SIPResponse transactionResponse, MessageChannel sourceChannel) throws SIPServerException { // Log the incoming response in our log file. if (parentStack .serverLog .needsLogging(ServerLog.TRACE_MESSAGES)) this.logResponse(transactionResponse,//ifdef SIMULATION/* SimSystem.currentTimeMillis(),//else*/ System.currentTimeMillis(),//endif// "normal processing"); // If the state has not yet been assigned then this is a // spurious response. if (getState() == null) return; // Ignore 1xx if (TransactionState.COMPLETED == this.getState() && transactionResponse.getStatusCode() / 100 == 1) { return; } else if (TransactionState.PROCEEDING == this.getState() && transactionResponse.getStatusCode() == 100 ) { // Ignore 100 if received after 180 // bug report from Peter Parnes. return; } // Defer processing if a previous event has been placed in the processing queue. // bug shows up on fast dual processor machines where a subsequent response // arrives before a previous one completes processing. if (this.eventPending ) { if (this.pendingResponses.size() < MAX_PENDING_RESPONSES) this.pendingResponses.add (new PendingResponse(transactionResponse,sourceChannel)); return; } if (LogWriter.needsLogging) parentStack.logWriter.logMessage( "processing " + transactionResponse.getFirstLine() + "current state = " + getState()); this.lastResponse = transactionResponse; if (dialog != null) { // add the route before you process the response. // Bug noticed by Brad Templeton. dialog.addRoute(transactionResponse); } String method = transactionResponse.getCSeq().getMethod(); if (dialog != null) { boolean added = false; SIPTransactionStack sipStackImpl = (SIPTransactionStack) getSIPStack(); // A tag just got assigned or changed. if (dialog.getRemoteTag() == null && transactionResponse.getTo().getTag() != null) { // Dont assign tag on provisional response if (transactionResponse.getStatusCode() != 100) { dialog.setRemoteTag(transactionResponse.getToTag()); } String dialogId = transactionResponse.getDialogId(false); dialog.setDialogId(dialogId); if (sipStackImpl.isDialogCreated(method) && transactionResponse.getStatusCode() != 100) { sipStackImpl.putDialog(dialog); if (transactionResponse.getStatusCode() / 100 == 1) dialog.setState(DialogImpl.EARLY_STATE); else if (transactionResponse.getStatusCode() / 100 == 2) dialog.setState(DialogImpl.CONFIRMED_STATE); added = true; } } else if ( dialog.getRemoteTag() != null && transactionResponse.getToTag() != null && !dialog.getRemoteTag().equals( transactionResponse.getToTag())) { String dialogId = transactionResponse.getDialogId(false); dialog.setRemoteTag(transactionResponse.getToTag()); dialog.setDialogId(dialogId); if (sipStackImpl.isDialogCreated(method)) { sipStackImpl.putDialog(dialog); added = true; } } if (sipStackImpl.isDialogCreated(method)) { // Make a final tag assignment. if (transactionResponse.getToTag() != null && transactionResponse.getStatusCode() / 100 == 2) { // This is a dialog creating method (such as INVITE). // 2xx response -- set the state to the confirmed // state. dialog.setRemoteTag(transactionResponse.getToTag()); dialog.setState(DialogImpl.CONFIRMED_STATE); } else if (transactionResponse.getStatusCode() == 401 && transactionResponse.getStatusCode() == 407) { // Note that if the status code is 401 or 407, the app needs to // re-issue the invite with the same call id so we keep the // dialog running. if (dialog.getState() == null) dialog.setState(DialogImpl.EARLY_STATE); } else if ( ( transactionResponse.getStatusCode() / 100 == 4 || transactionResponse.getStatusCode() / 100 == 5 || transactionResponse.getStatusCode() / 100 == 6) && (dialog.getState() == null || dialog.getState().getValue() == DialogImpl.EARLY_STATE)) { // Invite transaction generated an error. // Kill the associated dialog. dialog.setState(DialogImpl.TERMINATED_STATE); } } // Only terminate the dialog on 200 OK response to BYE if ( this.getMethod().equals(Request.BYE) && transactionResponse.getStatusCode() == 200 ) { dialog.setState(DialogImpl.TERMINATED_STATE); } } try { if (isInviteTransaction()) inviteClientTransaction(transactionResponse, sourceChannel); else nonInviteClientTransaction(transactionResponse, sourceChannel); } catch (IOException ex) { this.setState(TransactionState.TERMINATED); raiseErrorEvent(SIPTransactionErrorEvent.TRANSPORT_ERROR); } } | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/5b65ad02e19110ba5ebc33a2ca49965dbcd2c473/SIPClientTransaction.java/buggy/trunk/src/gov/nist/javax/sip/stack/SIPClientTransaction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1207,
1064,
12,
202,
202,
17739,
1064,
2492,
1064,
16,
202,
202,
1079,
2909,
1084,
2909,
13,
202,
202,
15069,
348,
2579,
21003,
288,
202,
202,
759,
1827,
326,
6935,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
918,
1207,
1064,
12,
202,
202,
17739,
1064,
2492,
1064,
16,
202,
202,
1079,
2909,
1084,
2909,
13,
202,
202,
15069,
348,
2579,
21003,
288,
202,
202,
759,
1827,
326,
6935,
... |
Map<String, String> map; try { map = Platform.getAuthorizationInfo(new URL(getUrl()), AUTH_REALM_PROXY, AUTH_SCHEME); } catch (MalformedURLException e) { return null; } if (map != null && map.containsKey(PROXY_PASSWORD)) { return map.get(PROXY_PASSWORD); } else { return null; } | return getAuthInfo(PROXY_PASSWORD); | public String getProxyPassword() { Map<String, String> map; try { map = Platform.getAuthorizationInfo(new URL(getUrl()), AUTH_REALM_PROXY, AUTH_SCHEME); } catch (MalformedURLException e) { return null; } if (map != null && map.containsKey(PROXY_PASSWORD)) { return map.get(PROXY_PASSWORD); } else { return null; } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/7dd09c127e55b97d3a56b7e21470d1c1e937579d/TaskRepository.java/clean/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
18992,
3913,
1435,
288,
202,
202,
863,
32,
780,
16,
514,
34,
852,
31,
202,
202,
698,
288,
1082,
202,
1458,
273,
11810,
18,
588,
6063,
966,
12,
2704,
1976,
12,
588,
1489... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18992,
3913,
1435,
288,
202,
202,
863,
32,
780,
16,
514,
34,
852,
31,
202,
202,
698,
288,
1082,
202,
1458,
273,
11810,
18,
588,
6063,
966,
12,
2704,
1976,
12,
588,
1489... |
i = stop; break; | continue; | private static void decompile_r(NativeFunction f, int indent, boolean toplevel, boolean justbody, StringBuffer result) { String source = f.source; if (source == null) { if (!justbody) { result.append("function "); result.append(f.getFunctionName()); result.append("() {\n\t"); } result.append("[native code]\n"); if (!justbody) { result.append("}\n"); } return; } int length = source.length(); // Spew tokens in source, for debugging. // as TYPE number char if (printSource) { System.err.println("length:" + length); for (int i = 0; i < length; ++i) { // Note that tokenToName will fail unless Context.printTrees // is true. String tokenname = TokenStream.tokenToName(source.charAt(i)); if (tokenname == null) tokenname = "---"; String pad = tokenname.length() > 7 ? "\t" : "\t\t"; System.err.println (tokenname + pad + (int)source.charAt(i) + "\t'" + ScriptRuntime.escapeString (source.substring(i, i+1)) + "'"); } System.err.println(); } int i = 0; if (length > 0) { /* special-case FUNCTION as the first token; if it is, * (and it's not followed by a NAME or LP) then we're * decompiling a function (and not the toplevel script.) * FUNCTION appearing elsewhere is an escape that means we'll * need to call toString of the given function (object). * If not at the top level, don't add an initial indent; * let the caller do it, so functions as expressions look * reasonable. */ if (toplevel) { // add an initial newline to exactly match js. if (!justbody) result.append('\n'); for (int j = 0; j < indent; j++) result.append(' '); } if (source.charAt(0) == TokenStream.FUNCTION // make sure it's not a script that begins with a // reference to a function definition. && length > 1 && (source.charAt(1) == TokenStream.NAME || source.charAt(1) == TokenStream.LP)) { if (!justbody) { result.append("function "); /* version != 1.2 Function constructor behavior - if * there's no function name in the source info, and * the names[0] entry is the empty string, then it must * have been created by the Function constructor; * print 'anonymous' as the function name if the * version (under which the function was compiled) is * less than 1.2... or if it's greater than 1.2, because * we need to be closer to ECMA. (ToSource, please?) */ if (nextIs(source, length, i, TokenStream.LP) && f.version != Context.VERSION_1_2 && f.functionName != null && f.functionName.equals("anonymous")) result.append("anonymous"); ++i; } else { /* Skip past the entire function header to the next EOL. * Depends on how NAMEs are encoded. */ while (i < length && (source.charAt(i) != TokenStream.EOL // the length char of a NAME sequence // can look like an EOL. || (i > 0 && source.charAt(i-1) == TokenStream.NAME))) { ++i; } // Skip past the EOL, too. ++i; } } } while (i < length) { int stop; switch(source.charAt(i)) { case TokenStream.NAME: case TokenStream.REGEXP: // re-wrapped in '/'s in parser... /* NAMEs are encoded as NAME, (char) length, string... * Note that lookahead for detecting labels depends on * this encoding; change there if this changes. * Also change function-header skipping code above, * used when decompling under decompileFunctionBody. */ ++i; stop = i + (int)source.charAt(i); result.append(source.substring(i + 1, stop + 1)); i = stop; break; case TokenStream.NUMBER: ++i; long lbits = 0; switch(source.charAt(i)) { case 'S': ++i; result.append((int)source.charAt(i)); break; case 'J': lbits |= (long)source.charAt(++i) << 48; lbits |= (long)source.charAt(++i) << 32; lbits |= (long)source.charAt(++i) << 16; lbits |= (long)source.charAt(++i); result.append(lbits); break; case 'D': lbits |= (long)source.charAt(++i) << 48; lbits |= (long)source.charAt(++i) << 32; lbits |= (long)source.charAt(++i) << 16; lbits |= (long)source.charAt(++i); double dval = Double.longBitsToDouble(lbits); result.append(ScriptRuntime.numberToString(dval, 10)); break; } break; case TokenStream.STRING: ++i; stop = i + (int)source.charAt(i); result.append('"'); result.append(ScriptRuntime.escapeString (source.substring(i + 1, stop + 1))); result.append('"'); i = stop; break; case TokenStream.PRIMARY: ++i; switch(source.charAt(i)) { case TokenStream.TRUE: result.append("true"); break; case TokenStream.FALSE: result.append("false"); break; case TokenStream.NULL: result.append("null"); break; case TokenStream.THIS: result.append("this"); break; case TokenStream.TYPEOF: result.append("typeof"); break; case TokenStream.VOID: result.append("void"); break; case TokenStream.UNDEFINED: result.append("undefined"); break; } break; case TokenStream.FUNCTION: { /* decompile a FUNCTION token as an escape; call * toString on the nth enclosed nested function, * where n is given by the byte that follows. */ ++i; int functionNumber = source.charAt(i); if (f.nestedFunctions == null || functionNumber > f.nestedFunctions.length) { String message; if (f.functionName != null && f.functionName.length() > 0) { message = Context.getMessage2 ("msg.no.function.ref.found.in", new Integer(functionNumber), f.functionName); } else { message = Context.getMessage1 ("msg.no.function.ref.found", new Integer(functionNumber)); } throw Context.reportRuntimeError(message); } decompile_r(f.nestedFunctions[functionNumber], indent, false, false, result); break; } case TokenStream.COMMA: result.append(", "); break; case TokenStream.LC: if (nextIs(source, length, i, TokenStream.EOL)) indent += OFFSET; result.append('{'); break; case TokenStream.RC: /* don't print the closing RC if it closes the * toplevel function and we're called from * decompileFunctionBody. */ if (justbody && toplevel && i + 1 == length) break; if (nextIs(source, length, i, TokenStream.EOL)) indent -= OFFSET; if (nextIs(source, length, i, TokenStream.WHILE) || nextIs(source, length, i, TokenStream.ELSE)) { indent -= OFFSET; result.append("} "); } else result.append('}'); break; case TokenStream.LP: result.append('('); break; case TokenStream.RP: if (nextIs(source, length, i, TokenStream.LC)) result.append(") "); else result.append(')'); break; case TokenStream.LB: result.append('['); break; case TokenStream.RB: result.append(']'); break; case TokenStream.EOL: result.append('\n'); /* add indent if any tokens remain, * less setback if next token is * a label, case or default. */ if (i + 1 < length) { int less = 0; if (nextIs(source, length, i, TokenStream.CASE) || nextIs(source, length, i, TokenStream.DEFAULT)) less = SETBACK; else if (nextIs(source, length, i, TokenStream.RC)) less = OFFSET; /* elaborate check against label... skip past a * following inlined NAME and look for a COLON. * Depends on how NAME is encoded. */ else if (nextIs(source, length, i, TokenStream.NAME)) { int skip = source.charAt(i + 2); if (source.charAt(i + skip + 3) == TokenStream.COLON) less = OFFSET; } for (; less < indent; less++) result.append(' '); } break; case TokenStream.DOT: result.append('.'); break; case TokenStream.NEW: result.append("new "); break; case TokenStream.DELPROP: result.append("delete "); break; case TokenStream.IF: result.append("if "); break; case TokenStream.ELSE: result.append("else "); break; case TokenStream.FOR: result.append("for "); break; case TokenStream.IN: result.append(" in "); break; case TokenStream.WITH: result.append("with "); break; case TokenStream.WHILE: result.append("while "); break; case TokenStream.DO: result.append("do "); break; case TokenStream.TRY: result.append("try "); break; case TokenStream.CATCH: result.append("catch "); break; case TokenStream.FINALLY: result.append("finally "); break; case TokenStream.THROW: result.append("throw "); break; case TokenStream.SWITCH: result.append("switch "); break; case TokenStream.BREAK: if (nextIs(source, length, i, TokenStream.NAME)) result.append("break "); else result.append("break"); break; case TokenStream.CONTINUE: if (nextIs(source, length, i, TokenStream.NAME)) result.append("continue "); else result.append("continue"); break; case TokenStream.CASE: result.append("case "); break; case TokenStream.DEFAULT: result.append("default"); break; case TokenStream.RETURN: if (nextIs(source, length, i, TokenStream.SEMI)) result.append("return"); else result.append("return "); break; case TokenStream.VAR: result.append("var "); break; case TokenStream.SEMI: if (nextIs(source, length, i, TokenStream.EOL)) // statement termination result.append(';'); else // separators in FOR result.append("; "); break; case TokenStream.ASSIGN: ++i; switch(source.charAt(i)) { case TokenStream.NOP: result.append(" = "); break; case TokenStream.ADD: result.append(" += "); break; case TokenStream.SUB: result.append(" -= "); break; case TokenStream.MUL: result.append(" *= "); break; case TokenStream.DIV: result.append(" /= "); break; case TokenStream.MOD: result.append(" %= "); break; case TokenStream.BITOR: result.append(" |= "); break; case TokenStream.BITXOR: result.append(" ^= "); break; case TokenStream.BITAND: result.append(" &= "); break; case TokenStream.LSH: result.append(" <<= "); break; case TokenStream.RSH: result.append(" >>= "); break; case TokenStream.URSH: result.append(" >>>= "); break; } break; case TokenStream.HOOK: result.append(" ? "); break; case TokenStream.OBJLIT: // pun OBJLIT to mean colon in objlit property initialization. // this needs to be distinct from COLON in the general case // to distinguish from the colon in a ternary... which needs // different spacing. result.append(':'); break; case TokenStream.COLON: if (nextIs(source, length, i, TokenStream.EOL)) // it's the end of a label result.append(':'); else // it's the middle part of a ternary result.append(" : "); break; case TokenStream.OR: result.append(" || "); break; case TokenStream.AND: result.append(" && "); break; case TokenStream.BITOR: result.append(" | "); break; case TokenStream.BITXOR: result.append(" ^ "); break; case TokenStream.BITAND: result.append(" & "); break; case TokenStream.EQOP: ++i; switch(source.charAt(i)) { case TokenStream.SHEQ: /* * Emulate the C engine; if we're under version * 1.2, then the == operator behaves like the === * operator (and the source is generated by * decompiling a === opcode), so print the === * operator as ==. */ result.append(f.version == Context.VERSION_1_2 ? " == " : " === "); break; case TokenStream.SHNE: result.append(f.version == Context.VERSION_1_2 ? " != " : " !== "); break; case TokenStream.EQ: result.append(" == "); break; case TokenStream.NE: result.append(" != "); break; } break; case TokenStream.RELOP: ++i; switch(source.charAt(i)) { case TokenStream.LE: result.append(" <= "); break; case TokenStream.LT: result.append(" < "); break; case TokenStream.GE: result.append(" >= "); break; case TokenStream.GT: result.append(" > "); break; case TokenStream.INSTANCEOF: result.append(" instanceof "); break; } break; case TokenStream.SHOP: ++i; switch(source.charAt(i)) { case TokenStream.LSH: result.append(" << "); break; case TokenStream.RSH: result.append(" >> "); break; case TokenStream.URSH: result.append(" >>> "); break; } break; case TokenStream.UNARYOP: ++i; switch(source.charAt(i)) { case TokenStream.TYPEOF: result.append("typeof "); break; case TokenStream.VOID: result.append("void "); break; case TokenStream.NOT: result.append('!'); break; case TokenStream.BITNOT: result.append('~'); break; case TokenStream.ADD: result.append('+'); break; case TokenStream.SUB: result.append('-'); break; } break; case TokenStream.INC: result.append("++"); break; case TokenStream.DEC: result.append("--"); break; case TokenStream.ADD: result.append(" + "); break; case TokenStream.SUB: result.append(" - "); break; case TokenStream.MUL: result.append(" * "); break; case TokenStream.DIV: result.append(" / "); break; case TokenStream.MOD: result.append(" % "); break; default: // If we don't know how to decompile it, raise an exception. throw new RuntimeException(); } ++i; } // add that trailing newline if it's an outermost function. if (toplevel && !justbody) result.append('\n'); } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/b9df1f20fc5192b6e50fca2006608ab88d68161f/NativeFunction.java/clean/src/org/mozilla/javascript/NativeFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
443,
11100,
67,
86,
12,
9220,
2083,
284,
16,
509,
3504,
16,
4766,
565,
1250,
28999,
16,
1250,
2537,
3432,
16,
4766,
565,
6674,
563,
13,
565,
288,
3639,
514,
1084,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
443,
11100,
67,
86,
12,
9220,
2083,
284,
16,
509,
3504,
16,
4766,
565,
1250,
28999,
16,
1250,
2537,
3432,
16,
4766,
565,
6674,
563,
13,
565,
288,
3639,
514,
1084,
273,
... |
public edu.cmu.sphinx.decoder.linguist.GrammarWord getWord() { | public GrammarWord getWord() { | public edu.cmu.sphinx.decoder.linguist.GrammarWord getWord() { return ((AlternativeState) getParent()).getAlternative()[getWhich()]; } | 8350 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8350/736c6a2ca1dd3753d1f1d18657575a72c5c084f0/WordState.java/buggy/edu/cmu/sphinx/decoder/linguist/WordState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1675,
89,
18,
7670,
89,
18,
87,
15922,
18,
21070,
18,
2456,
89,
376,
18,
18576,
3944,
336,
3944,
1435,
288,
202,
2463,
14015,
21144,
1119,
13,
5089,
1435,
2934,
588,
21144,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1675,
89,
18,
7670,
89,
18,
87,
15922,
18,
21070,
18,
2456,
89,
376,
18,
18576,
3944,
336,
3944,
1435,
288,
202,
2463,
14015,
21144,
1119,
13,
5089,
1435,
2934,
588,
21144,
1435,
... |
asm.emitCALL_RegDisp(S0, offset); | asm.emitCALL_RegDisp(S0, sig.getIMTOffset()); | protected final void emit_invokeinterface(VM_MethodReference methodRef) { int count = methodRef.getParameterWords() + 1; // +1 for "this" parameter VM_Method resolvedMethod = null; resolvedMethod = methodRef.peekInterfaceMethod(); // (1) Emit dynamic type checking sequence if required to do so inline. if (VM.BuildForIMTInterfaceInvocation || (VM.BuildForITableInterfaceInvocation && VM.DirectlyIndexedITables)) { if (resolvedMethod == null) { // Can't successfully resolve it at compile time. // Call uncommon case typechecking routine to do the right thing when this code actually executes. asm.emitMOV_Reg_RegDisp (T1, SP, (count-1) << 2); // "this" object asm.emitPUSH_Imm(methodRef.getId()); // dict id of target VM_ObjectModel.baselineEmitLoadTIB(asm, S0, T1); asm.emitPUSH_Reg(S0); genParameterRegisterLoad(2); // pass 2 parameter word asm.emitCALL_RegDisp(JTOC, VM_Entrypoints.unresolvedInvokeinterfaceImplementsTestMethod.getOffsetAsInt());// check that "this" class implements the interface } else { asm.emitMOV_Reg_RegDisp (T0, JTOC, resolvedMethod.getDeclaringClass().getTibOffset().toInt()); // tib of the interface method asm.emitMOV_Reg_RegDisp (T1, SP, (count-1) << 2); // "this" object asm.emitPUSH_RegDisp(T0, TIB_TYPE_INDEX << 2); // type of the interface method VM_ObjectModel.baselineEmitLoadTIB(asm, S0, T1); asm.emitPUSH_Reg(S0); genParameterRegisterLoad(2); // pass 2 parameter word asm.emitCALL_RegDisp(JTOC, VM_Entrypoints.invokeinterfaceImplementsTestMethod.getOffsetAsInt());// check that "this" class implements the interface } } // (2) Emit interface invocation sequence. if (VM.BuildForIMTInterfaceInvocation) { VM_InterfaceMethodSignature sig = VM_InterfaceMethodSignature.findOrCreate(methodRef); int offset = sig.getIMTOffset().toInt(); // squirrel away signature ID VM_ProcessorLocalState.emitMoveImmToField(asm, VM_Entrypoints.hiddenSignatureIdField.getOffsetAsInt(), sig.getId()); asm.emitMOV_Reg_RegDisp (T1, SP, (count-1) << 2); // "this" object VM_ObjectModel.baselineEmitLoadTIB(asm,S0,T1); if (VM.BuildForIndirectIMT) { // Load the IMT Base into S0 asm.emitMOV_Reg_RegDisp(S0, S0, TIB_IMT_TIB_INDEX << 2); } genParameterRegisterLoad(methodRef, true); asm.emitCALL_RegDisp(S0, offset); // the interface call } else if (VM.BuildForITableInterfaceInvocation && VM.DirectlyIndexedITables && resolvedMethod != null) { VM_Class I = resolvedMethod.getDeclaringClass(); asm.emitMOV_Reg_RegDisp (T1, SP, (count-1) << 2); // "this" object VM_ObjectModel.baselineEmitLoadTIB(asm,S0,T1); asm.emitMOV_Reg_RegDisp (S0, S0, TIB_ITABLES_TIB_INDEX << 2); // iTables asm.emitMOV_Reg_RegDisp (S0, S0, I.getInterfaceId() << 2); // iTable genParameterRegisterLoad(methodRef, true); int idx = VM_InterfaceInvocation.getITableIndex(I, methodRef.getName(), methodRef.getDescriptor()); asm.emitCALL_RegDisp(S0, idx << 2); // the interface call } else { int itableIndex = -1; if (VM.BuildForITableInterfaceInvocation && resolvedMethod != null) { // get the index of the method in the Itable itableIndex = VM_InterfaceInvocation.getITableIndex(resolvedMethod.getDeclaringClass(), methodRef.getName(), methodRef.getDescriptor()); } if (itableIndex == -1) { // itable index is not known at compile-time. // call "invokeInterface" to resolve object + method id into // method address int methodRefId = methodRef.getId(); asm.emitPUSH_RegDisp(SP, (count-1)<<LG_WORDSIZE); // "this" parameter is obj asm.emitPUSH_Imm(methodRefId); // id of method to call genParameterRegisterLoad(2); // pass 2 parameter words asm.emitCALL_RegDisp(JTOC, VM_Entrypoints.invokeInterfaceMethod.getOffsetAsInt()); // invokeinterface(obj, id) returns address to call asm.emitMOV_Reg_Reg (S0, T0); // S0 has address of method genParameterRegisterLoad(methodRef, true); asm.emitCALL_Reg(S0); // the interface method (its parameters are on stack) } else { // itable index is known at compile-time. // call "findITable" to resolve object + interface id into // itable address asm.emitMOV_Reg_RegDisp (T0, SP, (count-1) << 2); // "this" object VM_ObjectModel.baselineEmitLoadTIB(asm, S0, T0); asm.emitPUSH_Reg(S0); asm.emitPUSH_Imm (resolvedMethod.getDeclaringClass().getInterfaceId()); // interface id genParameterRegisterLoad(2); // pass 2 parameter words asm.emitCALL_RegDisp (JTOC, VM_Entrypoints.findItableMethod.getOffsetAsInt()); // findItableOffset(tib, id) returns iTable asm.emitMOV_Reg_Reg (S0, T0); // S0 has iTable genParameterRegisterLoad(methodRef, true); asm.emitCALL_RegDisp (S0, itableIndex << 2); // the interface call } } genResultRegisterUnload(methodRef); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/df5323a1679a545ad5b2e78b0bf88ba178e71da8/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
3626,
67,
14407,
5831,
12,
7397,
67,
1305,
2404,
707,
1957,
13,
288,
565,
509,
1056,
273,
707,
1957,
18,
588,
1662,
7363,
1435,
397,
404,
31,
368,
397,
21,
364,
315,
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,
3626,
67,
14407,
5831,
12,
7397,
67,
1305,
2404,
707,
1957,
13,
288,
565,
509,
1056,
273,
707,
1957,
18,
588,
1662,
7363,
1435,
397,
404,
31,
368,
397,
21,
364,
315,
2... |
myExpectation.addActual("B"); myExpectation.addActual("A"); | myExpectation.addActual("B"); myExpectation.addActual("A"); | public void testUnsorted() { myExpectation.addExpected("A"); myExpectation.addExpected("B"); myExpectation.addActual("B"); myExpectation.addActual("A"); myExpectation.verify(); } | 2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/065d08edd62599d5d244a9317db470157690f4f9/ExpectationSetTest.java/clean/jmock/core/src/test/jmock/expectation/ExpectationSetTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
984,
10350,
1435,
288,
3639,
3399,
11988,
367,
18,
1289,
6861,
2932,
37,
8863,
3639,
3399,
11988,
367,
18,
1289,
6861,
2932,
38,
8863,
3639,
3399,
11988,
367,
18,
1289,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
984,
10350,
1435,
288,
3639,
3399,
11988,
367,
18,
1289,
6861,
2932,
37,
8863,
3639,
3399,
11988,
367,
18,
1289,
6861,
2932,
38,
8863,
3639,
3399,
11988,
367,
18,
1289,
1... |
protected String paramString() { return ("dir=" + dir + ",file=" + file + ",mode=" + mode + "," + super.paramString()); } | paramString() { return ("dir=" + dir + ",file=" + file + ",mode=" + mode + "," + super.paramString()); } | protected String paramString() { return ("dir=" + dir + ",file=" + file + ",mode=" + mode + "," + super.paramString()); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FileDialog.java/clean/core/src/classpath/java/java/awt/FileDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
579,
780,
1435,
288,
202,
202,
2463,
7566,
1214,
1546,
397,
1577,
397,
3104,
768,
1546,
397,
585,
397,
3104,
3188,
1546,
397,
1965,
397,
5753,
397,
2240,
18,
891,
780,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
579,
780,
1435,
288,
202,
202,
2463,
7566,
1214,
1546,
397,
1577,
397,
3104,
768,
1546,
397,
585,
397,
3104,
3188,
1546,
397,
1965,
397,
5753,
397,
2240,
18,
891,
780,
1... |
public void setAccel(Action act, int key) { | public static void setAccel(Action act, int key) { | public void setAccel(Action act, int key) { act.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(key, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())); } | 53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/BrowserActions.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserActions.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
444,
18019,
12,
1803,
1328,
16,
509,
498,
13,
288,
3639,
1328,
18,
458,
620,
12,
1803,
18,
31110,
14668,
3575,
67,
3297,
16,
7734,
1929,
14602,
18,
588,
653,
14602,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
444,
18019,
12,
1803,
1328,
16,
509,
498,
13,
288,
3639,
1328,
18,
458,
620,
12,
1803,
18,
31110,
14668,
3575,
67,
3297,
16,
7734,
1929,
14602,
18,
588,
653,
14602,
12,
... |
String[] alt = item.getDC("title", "alternative", LANG); | DCValue[] alt = item.getDC("title", "alternative", LANG); | public void testItemDCValues() { Context context = null; List TITLES = Arrays.asList( new String[] { "Test Title", "Warehouse Songs and Stories", "Rainbow Soup" }); List ALTERNATIVE_TITLES = Arrays.asList( new String[] { "Test Title 2", "Being and Nothingness", "Jungle Book", "Perls before Swine" }); String LANG = "en"; String now = new DCDate(new java.util.Date()).toString(); try { context = new Context(); Community community = Community.create(context); Collection collection = community.createCollection(); WorkspaceItem wi = WorkspaceItem.create(context, collection, null); int w_id = wi.getID(); Item item = wi.getItem(); int id = item.getID(); // Add some DC fields item.addDC("title", null, LANG, toStringArray(TITLES)); item.addDC("title", null, LANG, (String) TITLES.get(0)); item.addDC("title", "alternative", LANG, toStringArray(ALTERNATIVE_TITLES)); item.addDC("date","accessioned", null, now); item.update(); // FIXME: Start a new transaction - this is a workaround for // a PostgreSQL 7.1 bug. context.complete(); context = new Context(); item = Item.find(context, id); // Retrieve titles String[] titles = item.getDC("title", null, LANG); assertNotNull("Retrieved titles", titles); assertEquals("Got correct number of titles", titles.length, TITLES.size() + 1); assertTrue("Got correct titles", containsAll(titles, TITLES)); // Retrieve alternative titles String[] alt = item.getDC("title", "alternative", LANG); assertNotNull("Retrieved titles", alt); assertEquals("Got correct number of titles", alt.length, ALTERNATIVE_TITLES.size()); assertTrue("Got correct titles", containsAll(alt, ALTERNATIVE_TITLES)); // Retrieve dates String[] dates = item.getDC("date", "accessioned", null); assertNotNull("Retrieved dates", dates); assertEquals("Got correct number of dates", dates.length, 1); assertEquals("Got correct date", now, dates[0]); // Retrieve wildcard String[] all = item.getDC(Item.ANY, Item.ANY, Item.ANY); assertNotNull("Got values", all); assertEquals("Got correct number of values", all.length, TITLES.size() + ALTERNATIVE_TITLES.size() + 1 + 1); // Retrieve wildcarded titles String[] all_titles = item.getDC("title", Item.ANY, Item.ANY); assertNotNull("Got values", all_titles); assertEquals("Got correct number of values", all_titles.length, TITLES.size() + ALTERNATIVE_TITLES.size() + 1); // Clear just the alternative title item.clearDC("title", "alternative", LANG); alt = item.getDC("title", "alternative", LANG); assertNotNull("Retrieved titles", alt); assertEquals("Got correct number of titles", alt.length, 0); wi = WorkspaceItem.find(context, w_id); wi.delete(); assertNull("Item cannot be found after deletion", Item.find(context, id)); context.abort(); } // Clean up context or the test hangs catch (AssertionFailedError afe) { if (context != null) context.abort(); throw afe; } catch (Exception e) { if (context != null) context.abort(); e.printStackTrace(); System.out.println("Got exception: " + e); fail("Exception while running test: " + e); } } | 49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/652740210f77a07b02963f7f2b2224086150466f/ContentTest.java/clean/dspace/src/org/dspace/content/test/ContentTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1180,
5528,
1972,
1435,
565,
288,
3639,
1772,
819,
273,
446,
31,
3639,
987,
399,
1285,
11386,
273,
5647,
18,
345,
682,
12,
394,
514,
8526,
288,
5411,
315,
4709,
10984,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1180,
5528,
1972,
1435,
565,
288,
3639,
1772,
819,
273,
446,
31,
3639,
987,
399,
1285,
11386,
273,
5647,
18,
345,
682,
12,
394,
514,
8526,
288,
5411,
315,
4709,
10984,
... |
System.out.println( "Test: using lambda = " + args[0] + " nu = " + args[1]); if (!auto.startAllNodes(auto.readDestinationFile(args[2]), "")) { auto.killAllProcess(); System.err.println("Error creating nodes, aborting"); System.exit(-1); } Bench.initialise(auto); | System.out.println("Test: using lambda = " + args[0] + " nu = " + args[1]); Node[] nodes = Bench.readMapingFile(args[2]); System.out.println("NODES IN MAIN = " + nodes.length); | public static void main(String[] args) { if (args.length < 5) { System.out.println( "Usage: java modelisation.Main <lambda> <nu> <destinationFile> <creationNode> <benchLength>"); System.exit(-1); } ExponentialLaw expo = new ExponentialLaw(Double.parseDouble(args[0])); LocationServer s = null; NodeControler auto = new NodeControler(); System.out.println("Test: looking up for the server"); System.out.println( "Test: using lambda = " + args[0] + " nu = " + args[1]); if (!auto.startAllNodes(auto.readDestinationFile(args[2]), "")) { auto.killAllProcess(); System.err.println("Error creating nodes, aborting"); System.exit(-1); } Bench.initialise(auto); // System.exit(-1); // System.out.println("Looking up location server"); // try { // s = (LocationServer)ProActive.lookupActive("org.objectweb.proactive.core.util.Server", args[3]); // } catch (Exception e) { // e.printStackTrace(); // } // System.out.println("Location server found"); // System.out.println("Test: calling initialize on ObjectWithoutForwarder with parameter class " + s.getClass().getName()); //Reading the destination file Node[] nodes = Bench.readDestinationFile(args[2]); System.out.println("NODES IN MAIN = " + nodes.length); // System.exit(-1); // obj1.initialize(nodes); //Bench.mesureRequestCost(obj1, 1000); AgentWithExponentialMigrationAndServer agent = Bench.startExponentialAgent(Double.parseDouble( args[1]), nodes, args[3], Long.parseLong( args[4])); try { Thread.sleep(2000); } catch (Exception e) { e.printStackTrace(); } System.out.println("Calling agent.start()"); agent.start(); Long benchTime = Long.valueOf(args[4]); try { Thread.sleep(2000); } catch (Exception e) { e.printStackTrace(); } Bench bench = null; Object[] param = new Object[] { agent, expo, benchTime }; try { bench = (Bench)ProActive.newActive(Bench.class.getName(), param, null, null, TimedLocationServerMetaObjectFactory.newInstance()); } catch (Exception e) { e.printStackTrace(); } // while ((System.currentTimeMillis() - startTime) < benchTime) { // try { // Thread.sleep((int)(expo.rand() * 1000)); // } catch (Exception e) { // e.printStackTrace(); // } // System.out.println("BenchXX: calling the agent "); // agent.echo(); // System.gc(); // } // auto.killAllProcess(); // System.exit(0); } | 50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/c171c3550f70b496c1228bbed45f5f8feea45a9c/Bench.java/buggy/src/modelisation/server/Bench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
1381,
13,
288,
5411,
2332,
18,
659,
18,
8222,
12,
10792,
315,
5357,
30,
2252,
938,
10742,
18,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
1381,
13,
288,
5411,
2332,
18,
659,
18,
8222,
12,
10792,
315,
5357,
30,
2252,
938,
10742,
18,
6... |
CtMethod[] reifiedMethods) | CtMethod[] reifiedMethods, boolean stubOnInterface) | private static void createReifiedMethods(CtClass generatedClass, CtMethod[] reifiedMethods) throws NotFoundException, CannotCompileException { for (int i = 0; i < reifiedMethods.length; i++) { CtClass[] paramTypes = reifiedMethods[i].getParameterTypes(); String body = ("{\nObject[] parameters = new Object[" + paramTypes.length + "];\n"); for (int j = 0; j < paramTypes.length; j++) { if (paramTypes[j].isPrimitive()) { body += (" parameters[" + j + "]=" + wrapPrimitiveParameter(paramTypes[j], "$" + (j + 1)) + ";\n"); } else { body += (" parameters[" + j + "]=$" + (j + 1) + ";\n"); } } CtClass returnType = reifiedMethods[i].getReturnType(); String postWrap = null; String preWrap = null; if (returnType != CtClass.voidType) { if (!returnType.isPrimitive()) { preWrap = "(" + returnType.getName() + ")"; } else { //boolean, byte, char, short, int, long, float, double if (returnType.equals(CtClass.booleanType)) { preWrap = "((Boolean)"; postWrap = ").booleanValue()"; } if (returnType.equals(CtClass.byteType)) { preWrap = "((Byte)"; postWrap = ").byteValue()"; } if (returnType.equals(CtClass.charType)) { preWrap = "((Character)"; postWrap = ").charValue()"; } if (returnType.equals(CtClass.shortType)) { preWrap = "((Short)"; postWrap = ").shortValue()"; } if (returnType.equals(CtClass.intType)) { preWrap = "((Integer)"; postWrap = ").intValue()"; } if (returnType.equals(CtClass.longType)) { preWrap = "((Long)"; postWrap = ").longValue()"; } if (returnType.equals(CtClass.floatType)) { preWrap = "((Float)"; postWrap = ").floatValue()"; } if (returnType.equals(CtClass.doubleType)) { preWrap = "((Double)"; postWrap = ").doubleValue()"; } } body += "return "; if (preWrap != null) { body += preWrap; } } body += ("myProxy.reify(org.objectweb.proactive.core.mop.MethodCall.getMethodCall(" + "(java.lang.reflect.Method)overridenMethods[" + i + "]" + ", parameters))"); if (postWrap != null) { body += postWrap; } body += ";"; body += "\n}"; // System.out.println("method : " + reifiedMethods[i].getName() + // " : \n" + body); CtMethod methodToGenerate = CtNewMethod.make(reifiedMethods[i].getReturnType(), reifiedMethods[i].getName(), reifiedMethods[i].getParameterTypes(), reifiedMethods[i].getExceptionTypes(), body, generatedClass); generatedClass.addMethod(methodToGenerate); } } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/4f428e9ca1fcb6207a1734c1e7e1e979c8d9c0fd/JavassistByteCodeStubBuilder.java/buggy/src/org/objectweb/proactive/core/mop/JavassistByteCodeStubBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
752,
426,
939,
4712,
12,
39,
88,
797,
4374,
797,
16,
3639,
30714,
1305,
8526,
283,
939,
4712,
16,
1250,
7168,
1398,
1358,
13,
3639,
1216,
12323,
16,
14143,
9937,
503,
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,
377,
3238,
760,
918,
752,
426,
939,
4712,
12,
39,
88,
797,
4374,
797,
16,
3639,
30714,
1305,
8526,
283,
939,
4712,
16,
1250,
7168,
1398,
1358,
13,
3639,
1216,
12323,
16,
14143,
9937,
503,
28... |
} | public void send(Message msg) throws Exception { if (channel != null) { channel.send(msg); } else if (adapter != null) { try { if (id != null) { adapter.send(id, msg); } else { adapter.send(msg); } } catch (Throwable ex) { if (log.isErrorEnabled()) { log.error("exception=" + Util.print(ex)); } } } else { if (log.isErrorEnabled()) { log.error("channel == null"); } } } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/896f3041ac6c83d0d1b4ad10041face165c97e1d/MessageDispatcher.java/clean/src/org/jgroups/blocks/MessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1366,
12,
1079,
1234,
13,
1216,
1185,
288,
5411,
309,
261,
4327,
480,
446,
13,
288,
7734,
1904,
18,
4661,
12,
3576,
1769,
5411,
469,
309,
261,
10204,
480,
446,
13,
288,
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,
540,
1071,
918,
1366,
12,
1079,
1234,
13,
1216,
1185,
288,
5411,
309,
261,
4327,
480,
446,
13,
288,
7734,
1904,
18,
4661,
12,
3576,
1769,
5411,
469,
309,
261,
10204,
480,
446,
13,
288,
7734,... | |
installSecurityManager("<NONE>"); | if (externalSecurityManagerInstalled) return new TestSuite(); return new SecurityManagerSetup(test, "<NONE>"); | static void noSecurityManager() throws PrivilegedActionException { installSecurityManager("<NONE>"); } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/36d1b3565cea33bc5c006c3780b0252f4cffe388/SecurityManagerSetup.java/clean/java/testing/org/apache/derbyTesting/junit/SecurityManagerSetup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
1158,
4368,
1318,
1435,
1216,
24897,
503,
202,
95,
202,
202,
5425,
4368,
1318,
2932,
32,
9826,
2984,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
1158,
4368,
1318,
1435,
1216,
24897,
503,
202,
95,
202,
202,
5425,
4368,
1318,
2932,
32,
9826,
2984,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
String[] returnCodes = {YES, ALL, NO, CANCEL}; | String[] returnCodes = { YES, ALL, NO, CANCEL }; | public String queryOverwrite(String pathString) { if (alwaysOverwrite) return ALL; final String returnCode[] = {CANCEL}; final String msg = WorkbenchMessages.format("CopyFilesAndFoldersOperation.overwriteQuestion", new Object[] {pathString}); //$NON-NLS-1$ final String[] options = {IDialogConstants.YES_LABEL, IDialogConstants.YES_TO_ALL_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL}; parentShell.getDisplay().syncExec(new Runnable() { public void run() { MessageDialog dialog = new MessageDialog(parentShell, WorkbenchMessages.getString("CopyFilesAndFoldersOperation.question"), null, msg, MessageDialog.QUESTION, options, 0); //$NON-NLS-1$ dialog.open(); int returnVal = dialog.getReturnCode(); String[] returnCodes = {YES, ALL, NO, CANCEL}; returnCode[0] = returnVal == -1 ? CANCEL : returnCodes[returnVal]; } }); if(returnCode[0] == ALL) alwaysOverwrite = true; return returnCode[0]; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/bf752ac27dbe2a869d9900197181599a8561dc6a/CopyFilesAndFoldersOperation.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
514,
843,
20832,
12,
780,
29307,
13,
288,
9506,
202,
430,
261,
17737,
20832,
13,
6862,
202,
2463,
8061,
31,
6862,
1082,
202,
6385,
514,
24558,
8526,
273,
288,
25268,
20451,
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,
1875,
202,
482,
514,
843,
20832,
12,
780,
29307,
13,
288,
9506,
202,
430,
261,
17737,
20832,
13,
6862,
202,
2463,
8061,
31,
6862,
1082,
202,
6385,
514,
24558,
8526,
273,
288,
25268,
20451,
950... |
Graphics g = getGraphics(); | Graphics g = PlotPanel.this.getGraphics(); | public PlotPanel() { setBackground(Color.black); m_InstanceInfoText.setFont(new Font("Monospaced", Font.PLAIN,12)); m_InstanceInfoText.setEditable(false); m_createShape = false; m_shapes = null;//// m_shapePoints = null; m_newMousePos = new Dimension(); m_drawnPoints = new int[getWidth()][getHeight()]; addMouseListener(new MouseAdapter() { /////// public void mousePressed(MouseEvent e) { if ((e.getModifiers() & e.BUTTON1_MASK) == e.BUTTON1_MASK) { // if (m_sIndex == 0) { //do nothing it will get dealt to in the clicked method } else if (m_sIndex == 1) { m_createShape = true; m_shapePoints = new FastVector(5); m_shapePoints.addElement(new Double(m_sIndex)); m_shapePoints.addElement(new Double(e.getX())); m_shapePoints.addElement(new Double(e.getY())); m_shapePoints.addElement(new Double(e.getX())); m_shapePoints.addElement(new Double(e.getY())); Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); g.drawRect(((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(2)).intValue(), ((Double)m_shapePoints.elementAt(3)).intValue() - ((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(4)).intValue() - ((Double)m_shapePoints.elementAt(2)).intValue()); g.dispose(); } //System.out.println("clicked"); } //System.out.println("clicked"); } ////// public void mouseClicked(MouseEvent e) { if ((m_sIndex == 2 || m_sIndex == 3) && (m_createShape || (e.getModifiers() & e.BUTTON1_MASK) == e.BUTTON1_MASK)) { if (m_createShape) { //then it has been started already. Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); if ((e.getModifiers() & e.BUTTON1_MASK) == e.BUTTON1_MASK) { m_shapePoints.addElement(new Double(convertToAttribX(e.getX()))); m_shapePoints.addElement(new Double(convertToAttribY(e.getY()))); m_newMousePos.width = e.getX(); m_newMousePos.height = e.getY(); g.drawLine((int)Math.ceil (convertToPanelX (((Double)m_shapePoints. elementAt(m_shapePoints.size() - 2)). doubleValue())), (int)Math.ceil (convertToPanelY (((Double)m_shapePoints. elementAt(m_shapePoints.size() - 1)). doubleValue())), m_newMousePos.width, m_newMousePos.height); } else if (m_sIndex == 3) { //then extend the lines to infinity //(100000 or so should be enough). //the area is selected by where the user right clicks //the mouse button m_createShape = false; if (m_shapePoints.size() >= 5) { double cx = Math.ceil (convertToPanelX (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 4)).doubleValue())); double cx2 = Math.ceil (convertToPanelX (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 2)).doubleValue())) - cx; cx2 *= 50000; double cy = Math.ceil (convertToPanelY(((Double)m_shapePoints.elementAt (m_shapePoints.size() - 3)). doubleValue())); double cy2 = Math.ceil (convertToPanelY(((Double)m_shapePoints.elementAt (m_shapePoints.size() - 1)). doubleValue())) - cy; cy2 *= 50000; double cxa = Math.ceil(convertToPanelX (((Double)m_shapePoints. elementAt(3)). doubleValue())); double cxa2 = Math.ceil(convertToPanelX (((Double)m_shapePoints. elementAt(1)). doubleValue())) - cxa; cxa2 *= 50000; double cya = Math.ceil (convertToPanelY (((Double)m_shapePoints.elementAt(4)). doubleValue())); double cya2 = Math.ceil (convertToPanelY (((Double)m_shapePoints.elementAt(2)). doubleValue())) - cya; cya2 *= 50000; m_shapePoints.setElementAt (new Double(convertToAttribX(cxa2 + cxa)), 1); m_shapePoints.setElementAt (new Double(convertToAttribY(cy2 + cy)), m_shapePoints.size() - 1); m_shapePoints.setElementAt (new Double(convertToAttribX(cx2 + cx)), m_shapePoints.size() - 2); m_shapePoints.setElementAt (new Double(convertToAttribY(cya2 + cya)), 2); //determine how infinity line should be built cy = Double.POSITIVE_INFINITY; cy2 = Double.NEGATIVE_INFINITY; if (((Double)m_shapePoints.elementAt(1)). doubleValue() > ((Double)m_shapePoints.elementAt(3)). doubleValue()) { if (((Double)m_shapePoints.elementAt(2)). doubleValue() == ((Double)m_shapePoints.elementAt(4)). doubleValue()) { cy = ((Double)m_shapePoints.elementAt(2)). doubleValue(); } } if (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 2)).doubleValue() > ((Double)m_shapePoints.elementAt (m_shapePoints.size() - 4)).doubleValue()) { if (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 3)). doubleValue() == ((Double)m_shapePoints.elementAt (m_shapePoints.size() - 1)).doubleValue()) { cy2 = ((Double)m_shapePoints.lastElement()). doubleValue(); } } m_shapePoints.addElement(new Double(cy)); m_shapePoints.addElement(new Double(cy2)); if (!inPolyline(m_shapePoints, convertToAttribX (e.getX()), convertToAttribY(e.getY()))) { Double tmp = (Double)m_shapePoints. elementAt(m_shapePoints.size() - 2); m_shapePoints.setElementAt (m_shapePoints.lastElement(), m_shapePoints.size() - 2); m_shapePoints.setElementAt (tmp, m_shapePoints.size() - 1); } if (m_shapes == null) { m_shapes = new FastVector(4); } m_shapes.addElement(m_shapePoints); m_submit.setText("Submit"); m_submit.setActionCommand("Submit"); m_submit.setEnabled(true); } m_shapePoints = null; repaint(); } else { //then close the shape m_createShape = false; if (m_shapePoints.size() >= 7) { m_shapePoints.addElement(m_shapePoints.elementAt(1)); m_shapePoints.addElement(m_shapePoints.elementAt(2)); if (m_shapes == null) { m_shapes = new FastVector(4); } m_shapes.addElement(m_shapePoints); m_submit.setText("Submit"); m_submit.setActionCommand("Submit"); m_submit.setEnabled(true); } m_shapePoints = null; repaint(); } g.dispose(); //repaint(); } else if ((e.getModifiers() & e.BUTTON1_MASK) == e.BUTTON1_MASK) { //then this is the first point m_createShape = true; m_shapePoints = new FastVector(17); m_shapePoints.addElement(new Double(m_sIndex)); m_shapePoints.addElement(new Double(convertToAttribX(e.getX()))); //the new point m_shapePoints.addElement(new Double(convertToAttribY(e.getY()))); m_newMousePos.width = e.getX(); //the temp mouse point m_newMousePos.height = e.getY(); Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); g.drawLine((int)Math.ceil (convertToPanelX(((Double)m_shapePoints. elementAt(1)).doubleValue())), (int)Math.ceil (convertToPanelY(((Double)m_shapePoints. elementAt(2)).doubleValue())), m_newMousePos.width, m_newMousePos.height); g.dispose(); } } else { if ((e.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK) { searchPoints(e.getX(),e.getY(), false); } else { searchPoints(e.getX(), e.getY(), true); } } } ///////// public void mouseReleased(MouseEvent e) { //System.out.println("rel"); if (m_createShape) { if (((Double)m_shapePoints.elementAt(0)).intValue() == 1) { m_createShape = false; Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); g.drawRect(((Double)m_shapePoints.elementAt(1)). intValue(), ((Double)m_shapePoints.elementAt(2)).intValue(), ((Double)m_shapePoints.elementAt(3)).intValue() - ((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(4)).intValue() - ((Double)m_shapePoints.elementAt(2)).intValue()); g.dispose(); if (checkPoints(((Double)m_shapePoints.elementAt(1)). doubleValue(), ((Double)m_shapePoints.elementAt(2)). doubleValue()) && checkPoints(((Double)m_shapePoints.elementAt(3)). doubleValue(), ((Double)m_shapePoints.elementAt(4)). doubleValue())) { //then the points all land on the screen //now do special check for the rectangle if (((Double)m_shapePoints.elementAt(1)).doubleValue() < ((Double)m_shapePoints.elementAt(3)).doubleValue() && ((Double)m_shapePoints.elementAt(2)).doubleValue() < ((Double)m_shapePoints.elementAt(4)).doubleValue()) { //then the rectangle is valid if (m_shapes == null) { m_shapes = new FastVector(2); } m_shapePoints.setElementAt(new Double(convertToAttribX(((Double)m_shapePoints. elementAt(1)). doubleValue())), 1); m_shapePoints.setElementAt(new Double(convertToAttribY(((Double)m_shapePoints. elementAt(2)). doubleValue())), 2); m_shapePoints.setElementAt(new Double(convertToAttribX(((Double)m_shapePoints. elementAt(3)). doubleValue())), 3); m_shapePoints.setElementAt(new Double(convertToAttribY(((Double)m_shapePoints. elementAt(4)). doubleValue())), 4); m_shapes.addElement(m_shapePoints); m_submit.setText("Submit"); m_submit.setActionCommand("Submit"); m_submit.setEnabled(true); repaint(); } } m_shapePoints = null; } } } }); addMouseMotionListener(new MouseMotionAdapter() { public void mouseDragged(MouseEvent e) { //check if the user is dragging a box if (m_createShape) { if (((Double)m_shapePoints.elementAt(0)).intValue() == 1) { Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); g.drawRect(((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(2)).intValue(), ((Double)m_shapePoints.elementAt(3)).intValue() - ((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(4)).intValue() - ((Double)m_shapePoints.elementAt(2)).intValue()); m_shapePoints.setElementAt(new Double(e.getX()), 3); m_shapePoints.setElementAt(new Double(e.getY()), 4); g.drawRect(((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(2)).intValue(), ((Double)m_shapePoints.elementAt(3)).intValue() - ((Double)m_shapePoints.elementAt(1)).intValue(), ((Double)m_shapePoints.elementAt(4)).intValue() - ((Double)m_shapePoints.elementAt(2)).intValue()); g.dispose(); } } } public void mouseMoved(MouseEvent e) { if (m_createShape) { if (((Double)m_shapePoints.elementAt(0)).intValue() == 2 || ((Double)m_shapePoints.elementAt(0)).intValue() == 3) { Graphics g = getGraphics(); g.setColor(Color.black); g.setXORMode(Color.white); g.drawLine((int)Math.ceil(convertToPanelX (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 2)). doubleValue())), (int)Math.ceil(convertToPanelY (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 1)). doubleValue())), m_newMousePos.width, m_newMousePos.height); m_newMousePos.width = e.getX(); m_newMousePos.height = e.getY(); g.drawLine((int)Math.ceil(convertToPanelX (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 2)). doubleValue())), (int)Math.ceil(convertToPanelY (((Double)m_shapePoints.elementAt (m_shapePoints.size() - 1)). doubleValue())), m_newMousePos.width, m_newMousePos.height); g.dispose(); } } } }); m_submit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("Submit")) { if (m_splitListener != null && m_shapes != null) { //then send the split to the listener Instances sub_set1 = new Instances(m_plotInstances, 500); Instances sub_set2 = new Instances(m_plotInstances, 500); if (m_plotInstances != null) { for (int noa = 0 ; noa < m_plotInstances.numInstances(); noa++) { if (!m_plotInstances.instance(noa).isMissing(m_xIndex) && !m_plotInstances.instance(noa).isMissing(m_yIndex)){ if (inSplit(m_plotInstances.instance(noa))) { sub_set1.add(m_plotInstances.instance(noa)); } else { sub_set2.add(m_plotInstances.instance(noa)); } } } FastVector tmp = m_shapes; cancelShapes(); m_splitListener.userDataEvent(new VisualizePanelEvent(tmp, sub_set1, sub_set2, m_xIndex, m_yIndex)); } } else if (m_shapes != null && m_plotInstances != null) { Instances sub_set1 = new Instances(m_plotInstances, 500); int count = 0; for (int noa = 0 ; noa < m_plotInstances.numInstances(); noa++) { if (inSplit(m_plotInstances.instance(noa))) { sub_set1.add(m_plotInstances.instance(noa)); count++; } } double [] nPreds = null; int x = m_xIndex; int y = m_yIndex; //boolean p = m_predsNumeric; if (m_origInstances == null) { //this sets these instances as the instances //to go back to. m_origInstances = m_plotInstances; } if (m_origPreds == null && m_preds != null) { m_origPreds = m_preds; } if (m_preds != null && count > 0) { nPreds = new double[m_origInstances.numInstances()]; count = 0; for (int noa = 0; noa < m_plotInstances.numInstances(); noa++) { if (inSplit(m_plotInstances.instance(noa))) { //System.out.println(m_preds[noa]); nPreds[count] = m_preds[noa]; count++; } } } cancelShapes(); VisualizePanel.this.setInstances(sub_set1); if (m_preds != null) { VisualizePanel.this.setPredictions(nPreds); //VisualizePanel.this.setPredictionsNumeric(p); } try { VisualizePanel.this.setXIndex(x); VisualizePanel.this.setYIndex(y); } catch(Exception er) { System.out.println("Error : " + er); // System.out.println("Part of user input so had to" + // " catch here"); } } } else if (e.getActionCommand().equals("Reset")) { int x = m_xIndex; int y = m_yIndex; //boolean p = m_predsNumeric; VisualizePanel.this.setInstances(m_origInstances); if (m_origPreds != null) { VisualizePanel.this.setPredictions(m_origPreds); //VisualizePanel.this.setPredictionsNumeric(p); } try { VisualizePanel.this.setXIndex(x); VisualizePanel.this.setYIndex(y); } catch(Exception er) { System.out.println("Error : " + er); } } } }); m_cancel.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { cancelShapes(); repaint(); } }); //////////// } | 48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/bf889fda0ae771630a90a87d42ed742a79e83641/VisualizePanel.java/clean/weka/gui/explorer/VisualizePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15211,
5537,
1435,
288,
1377,
31217,
12,
2957,
18,
11223,
1769,
1377,
312,
67,
1442,
966,
1528,
18,
542,
5711,
12,
2704,
10063,
2932,
11415,
538,
909,
72,
3113,
10063,
18,
26549,
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,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15211,
5537,
1435,
288,
1377,
31217,
12,
2957,
18,
11223,
1769,
1377,
312,
67,
1442,
966,
1528,
18,
542,
5711,
12,
2704,
10063,
2932,
11415,
538,
909,
72,
3113,
10063,
18,
26549,
16... |
currentlyLoading = new Hashtable(); | public BrowserView(VFSBrowser browser, boolean splitHorizontally) { this.browser = browser; this.splitHorizontally = splitHorizontally; parentModel = new DefaultListModel(); parentDirectories = new JList(parentModel); parentDirectories.getSelectionModel().setSelectionMode( TreeSelectionModel.SINGLE_TREE_SELECTION); parentDirectories.setCellRenderer(new ParentDirectoryRenderer()); parentDirectories.setVisibleRowCount(5); parentDirectories.addMouseListener(new MouseHandler()); rootNode = new DefaultMutableTreeNode(null,true); model = new DefaultTreeModel(rootNode,true); tree = new BrowserJTree(model); tree.setCellRenderer(renderer); tree.setEditable(false); tree.addTreeExpansionListener(new TreeHandler()); tree.putClientProperty("JTree.lineStyle", "Angled"); tree.setRootVisible(false); tree.setShowsRootHandles(true); tree.setVisibleRowCount(12); JScrollPane parentScroller = new JScrollPane(parentDirectories); parentScroller.setMinimumSize(new Dimension(0,0)); JScrollPane treeScroller = new JScrollPane(tree); treeScroller.setMinimumSize(new Dimension(0,0)); splitPane = new JSplitPane( splitHorizontally ? JSplitPane.HORIZONTAL_SPLIT : JSplitPane.VERTICAL_SPLIT, parentScroller,treeScroller); tmpExpanded = new Hashtable(); if(browser.isMultipleSelectionEnabled()) tree.getSelectionModel().setSelectionMode( TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION); else tree.getSelectionModel().setSelectionMode( TreeSelectionModel.SINGLE_TREE_SELECTION); setLayout(new BorderLayout()); add(BorderLayout.CENTER,splitPane); currentlyLoading = new Hashtable(); propertiesChanged(); } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/95723f7a3da62a8f79672a5cdd103d0ad9801adc/BrowserView.java/clean/org/gjt/sp/jedit/browser/BrowserView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15408,
1767,
12,
58,
4931,
9132,
4748,
16,
1250,
1416,
44,
6157,
1230,
13,
202,
95,
202,
202,
2211,
18,
11213,
273,
4748,
31,
202,
202,
2211,
18,
4939,
44,
6157,
1230,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15408,
1767,
12,
58,
4931,
9132,
4748,
16,
1250,
1416,
44,
6157,
1230,
13,
202,
95,
202,
202,
2211,
18,
11213,
273,
4748,
31,
202,
202,
2211,
18,
4939,
44,
6157,
1230,
273,
... | |
return new HashCodeBuilder(-2022315247, 1437659757).append(this.password) .append(this.passwordHint) .append(this.address) .append(this.confirmPassword) .append(this.username) .append(this.email) .append(this.phoneNumber) .append(this.roles) .append(this.website) .append(this.firstName) .append(this.id) .append(this.lastName) .toHashCode(); | return new HashCodeBuilder(-2022315247, 1437659757).append( this.password).append(this.passwordHint).append(this.address) .append(this.confirmPassword).append(this.username).append( this.email).append(this.phoneNumber).append(this.roles) .append(this.website).append(this.firstName).append( this.lastName).toHashCode(); | public int hashCode() { return new HashCodeBuilder(-2022315247, 1437659757).append(this.password) .append(this.passwordHint) .append(this.address) .append(this.confirmPassword) .append(this.username) .append(this.email) .append(this.phoneNumber) .append(this.roles) .append(this.website) .append(this.firstName) .append(this.id) .append(this.lastName) .toHashCode(); } | 30015 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/30015/5a85c7a969483c66e89f40fc75bcdfc10887d96f/User.java/buggy/extras/spring/src/dao/org/appfuse/model/User.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
13374,
1435,
288,
3639,
327,
394,
2474,
1085,
1263,
19236,
18212,
4366,
3600,
3247,
27,
16,
5045,
6418,
26,
6162,
5877,
27,
2934,
6923,
12,
2211,
18,
3664,
13,
4766,
21821,
263... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13374,
1435,
288,
3639,
327,
394,
2474,
1085,
1263,
19236,
18212,
4366,
3600,
3247,
27,
16,
5045,
6418,
26,
6162,
5877,
27,
2934,
6923,
12,
2211,
18,
3664,
13,
4766,
21821,
263... |
public DatasetListPanel() { m_List = new JList(); m_FileChooser.setFileFilter(m_ArffFilter); m_FileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); m_DeleteBut.setEnabled(false); m_DeleteBut.addActionListener(this); m_AddBut.setEnabled(false); m_AddBut.addActionListener(this); m_relativeCheck.setSelected(false); m_relativeCheck.setToolTipText("Store file paths relative to " +"the start directory"); setLayout(new BorderLayout()); setBorder(BorderFactory.createTitledBorder("Datasets")); JPanel topLab = new JPanel(); GridBagLayout gb = new GridBagLayout(); GridBagConstraints constraints = new GridBagConstraints(); topLab.setBorder(BorderFactory.createEmptyBorder(10, 5, 10, 5)); topLab.setLayout(gb); constraints.gridx=0;constraints.gridy=0;constraints.weightx=5; constraints.fill = GridBagConstraints.HORIZONTAL; constraints.gridwidth=1;constraints.gridheight=1; constraints.insets = new Insets(0,2,0,2); topLab.add(m_AddBut,constraints); constraints.gridx=1;constraints.gridy=0;constraints.weightx=5; constraints.gridwidth=1;constraints.gridheight=1; topLab.add(m_DeleteBut,constraints); | public DatasetListPanel(Experiment exp) { | public DatasetListPanel() { m_List = new JList(); m_FileChooser.setFileFilter(m_ArffFilter); // Multiselection isn't handled by the current implementation of the // swing look and feels. // m_FileChooser.setMultiSelectionEnabled(true); m_FileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); m_DeleteBut.setEnabled(false); m_DeleteBut.addActionListener(this); m_AddBut.setEnabled(false); m_AddBut.addActionListener(this); m_relativeCheck.setSelected(false); m_relativeCheck.setToolTipText("Store file paths relative to " +"the start directory"); setLayout(new BorderLayout()); setBorder(BorderFactory.createTitledBorder("Datasets")); JPanel topLab = new JPanel(); GridBagLayout gb = new GridBagLayout(); GridBagConstraints constraints = new GridBagConstraints(); topLab.setBorder(BorderFactory.createEmptyBorder(10, 5, 10, 5)); // topLab.setLayout(new GridLayout(1,2,5,5)); topLab.setLayout(gb); constraints.gridx=0;constraints.gridy=0;constraints.weightx=5; constraints.fill = GridBagConstraints.HORIZONTAL; constraints.gridwidth=1;constraints.gridheight=1; constraints.insets = new Insets(0,2,0,2); topLab.add(m_AddBut,constraints); constraints.gridx=1;constraints.gridy=0;constraints.weightx=5; constraints.gridwidth=1;constraints.gridheight=1; topLab.add(m_DeleteBut,constraints); constraints.gridx=0;constraints.gridy=1;constraints.weightx=5; constraints.fill = GridBagConstraints.HORIZONTAL; constraints.gridwidth=1;constraints.gridheight=1; constraints.insets = new Insets(0,2,0,2); topLab.add(m_relativeCheck,constraints); add(topLab, BorderLayout.NORTH); add(new JScrollPane(m_List), BorderLayout.CENTER); } | 6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/7a92442afdf2ed5eb8d35df2e9bccd70820584cc/DatasetListPanel.java/clean/gui/experiment/DatasetListPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10778,
682,
5537,
1435,
288,
3639,
312,
67,
682,
273,
394,
804,
682,
5621,
565,
312,
67,
812,
17324,
18,
542,
29837,
12,
81,
67,
686,
1403,
1586,
1769,
565,
368,
7778,
291,
292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10778,
682,
5537,
1435,
288,
3639,
312,
67,
682,
273,
394,
804,
682,
5621,
565,
312,
67,
812,
17324,
18,
542,
29837,
12,
81,
67,
686,
1403,
1586,
1769,
565,
368,
7778,
291,
292,
... |
public String toString() { return "Long->Integer"; } | public String toString() { return "Short->Integer"; } | public String toString() { return "Long->Integer"; } | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/fdcc53ee639bb83ad76562252bd0f3ff894b19a6/Types.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/mapping/loader/Types.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
514,
1762,
1435,
288,
327,
315,
3708,
2122,
4522,
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,
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,
2398,
1071,
514,
1762,
1435,
288,
327,
315,
3708,
2122,
4522,
14432,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
JobTimings[] results = runJobs(new Job[] {receiver, sender}); | JobResult[] results = runJobs(new Job[] {receiver, sender}); if (!checkResults(results, "Topic7")) { return; } | public void testTopic7() { log.info("Running test Topic7"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.setMsgSize(standardMessageSize); sender.setMf(new BytesMessageMessageFactory()); sender.setTransacted(false); sender.setDeliveryMode(DeliveryMode.NON_PERSISTENT); sender.setInitialPause(initialPause); //enough time for receiver to get ready sender.setSlaveURL(slaveURLs[0]); ReceiverJob receiver = createDefaultReceiverJob(topicName); receiver.setAckMode(Session.AUTO_ACKNOWLEDGE); receiver.setTransacted(false); receiver.setSlaveURL(slaveURLs[1]); //This should always be true String selector = "JMSMessageID IS NOT NULL AND NonExistentProperty IS NULL"; receiver.setSelector(selector); receiver.setNumMessages(numMessages); JobTimings[] results = runJobs(new Job[] {receiver, sender}); /* * NB. * When we calculating the total time taken from first send to last receive, there is some * error involved due to the differences in network latency and other remoting overhead * when sending the jobs to be executed on potentially different remote machines. * We make the assumption that this this difference is very small compared with time taken * to run the tests as to be negligible. */ long totalTimeTaken = results[0].getTestTime() + results[0].getInitTime() - results[1].getInitTime(); Execution execution = createExecution("Topic7"); execution.addMeasurement(new Measurement("throughput", 1000 * (double)numMessages / totalTimeTaken)); pm.saveExecution(execution); log.info("Test Topic7 finished"); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/397ef4f4ca297619d7a976503e2912b04d50246f/PerfRunner.java/clean/tests/src/org/jboss/test/messaging/jms/perf/framework/PerfRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
6657,
27,
1435,
282,
288,
1377,
613,
18,
1376,
2932,
7051,
1842,
11789,
27,
8863,
5411,
22975,
416,
5683,
12,
10476,
461,
16,
4529,
1079,
1225,
16,
629,
16,
17390,
2309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
6657,
27,
1435,
282,
288,
1377,
613,
18,
1376,
2932,
7051,
1842,
11789,
27,
8863,
5411,
22975,
416,
5683,
12,
10476,
461,
16,
4529,
1079,
1225,
16,
629,
16,
17390,
2309,
... |
message.append( "Error executing mojo" ); | public String diagnose( Throwable error ) { MojoExecutionException mee = (MojoExecutionException) DiagnosisUtils.getFromCausality( error, MojoExecutionException.class ); StringBuffer message = new StringBuffer(); message.append( "Error executing mojo" ); Object source = mee.getSource(); if ( source != null ) { message.append( ": " ).append( mee.getSource() ).append( "\n" ); } else { message.append( ".\n" ); } message.append( "\n" ).append( mee.getMessage() ); String longMessage = mee.getLongMessage(); if ( longMessage != null ) { message.append( "\n\n" ).append( longMessage ); } Throwable directCause = mee.getCause(); if ( directCause != null ) { message.append( "\n" ); String directCauseMessage = directCause.getMessage(); if ( directCauseMessage != null && mee.getMessage().indexOf( directCauseMessage ) < 0 ) { message.append( "\nEmbedded error: " ).append( directCauseMessage ); } DiagnosisUtils.appendRootCauseIfPresentAndUnique( directCause, message, false ); } return message.toString(); } | 47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/ca0e872a5ad574d1dc383eab01107d0c1c0a7169/MojoExecutionExceptionDiagnoser.java/clean/maven-core/src/main/java/org/apache/maven/usability/MojoExecutionExceptionDiagnoser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
6643,
2135,
307,
12,
4206,
555,
262,
565,
288,
3639,
18780,
312,
1340,
273,
5411,
261,
49,
10007,
14576,
13,
14539,
18050,
291,
1989,
18,
588,
1265,
23508,
407,
7919,
12,
555,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6643,
2135,
307,
12,
4206,
555,
262,
565,
288,
3639,
18780,
312,
1340,
273,
5411,
261,
49,
10007,
14576,
13,
14539,
18050,
291,
1989,
18,
588,
1265,
23508,
407,
7919,
12,
555,
... | |
if (!bECMAffected && !bMekStealthActive && !weapon.curMode().equals("Indirect")) { | if (!bECMAffected&& !bMekStealthActive && (!weapon.getType().hasModes() || !weapon.curMode().equals("Indirect"))) { | private void resolveWeaponAttack(WeaponResult wr, int lastEntityId) { final Entity ae = game.getEntity(wr.waa.getEntityId()); final Targetable target = game.getTarget(wr.waa.getTargetType(), wr.waa.getTargetId()); Entity entityTarget = null; if (target.getTargetType() == Targetable.TYPE_ENTITY) { entityTarget = (Entity)target; } final Mounted weapon = ae.getEquipment(wr.waa.getWeaponId()); final WeaponType wtype = (WeaponType)weapon.getType(); final boolean isWeaponInfantry = wtype.hasFlag(WeaponType.F_INFANTRY); // 2002-09-16 Infantry weapons have unlimited ammo. final boolean usesAmmo = wtype.getAmmoType() != AmmoType.T_NA && wtype.getAmmoType() != AmmoType.T_BA_MG && wtype.getAmmoType() != AmmoType.T_BA_SMALL_LASER && !isWeaponInfantry; final Mounted ammo = usesAmmo ? weapon.getLinked() : null; final AmmoType atype = ammo == null ? null : (AmmoType)ammo.getType(); Infantry platoon = null; final boolean isBattleArmorAttack = wtype.hasFlag(WeaponType.F_BATTLEARMOR); ToHitData toHit = wr.toHit; boolean bInferno = (usesAmmo && atype.getMunitionType() == AmmoType.M_INFERNO); if (!bInferno) { // also check for inferno infantry bInferno = (isWeaponInfantry && wtype.hasFlag(WeaponType.F_INFERNO)); } final boolean targetInBuilding = Compute.isInBuilding( game, entityTarget ); // Which building takes the damage? Building bldg = game.board.getBuildingAt( target.getPosition() ); if (lastEntityId != ae.getId()) { phaseReport.append("\nWeapons fire for " ).append( ae.getDisplayName() ).append( "\n"); } // Swarming infantry can stop during any weapons phase after start. if ( Infantry.STOP_SWARM.equals( wtype.getInternalName() ) ) { // ... but only as their *only* attack action. if ( toHit.getValue() == ToHitData.IMPOSSIBLE ) { phaseReport.append( "Swarm attack can not be ended (" + toHit.getDesc() ).append( ")\n" ); return; } else { phaseReport.append( "Swarm attack ended.\n" ); // Only apply the "stop swarm 'attack'" to the swarmed Mek. if ( ae.getSwarmTargetId() != target.getTargetId() ) { Entity other = game.getEntity( ae.getSwarmTargetId() ); other.setSwarmAttackerId( Entity.NONE ); } else { entityTarget.setSwarmAttackerId( Entity.NONE ); } ae.setSwarmTargetId( Entity.NONE ); return; } } // Report weapon attack and its to-hit value. phaseReport.append(" " ).append( wtype.getName() ).append( " at " ).append( target.getDisplayName()); if (toHit.getValue() == ToHitData.IMPOSSIBLE) { phaseReport.append(", but the shot is impossible (" ).append( toHit.getDesc() ).append( ")\n"); return; } else if (toHit.getValue() == ToHitData.AUTOMATIC_FAIL) { phaseReport.append(", the shot is an automatic miss (" ).append( toHit.getDesc() ).append( "), "); } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { phaseReport.append(", the shot is an automatic hit (" ).append( toHit.getDesc() ).append( "), "); } else { phaseReport.append("; needs " ).append( toHit.getValue() ).append( ", "); } // if firing an HGR unbraced, schedule a PSR if (wtype.getAmmoType() == AmmoType.T_GAUSS_HEAVY && ae.mpUsed > 0) { // the mod is weight-based int nMod; if (ae.getWeight() <= Mech.WEIGHT_LIGHT) { nMod = 2; } else if (ae.getWeight() <= Mech.WEIGHT_MEDIUM) { nMod = 1; } else if (ae.getWeight() <= Mech.WEIGHT_HEAVY) { nMod = 0; } else { nMod = -1; } PilotingRollData psr = new PilotingRollData(ae.getId(), nMod, "fired HeavyGauss unbraced"); psr.setCumulative(false); // about the only time we set this flag game.addPSR(psr); } // dice have been rolled, thanks phaseReport.append("rolls " ).append( wr.roll ).append( " : "); // check for AC jams int nShots = weapon.howManyShots(); if (nShots > 1) { int jamCheck = 0; if (wtype.getAmmoType() == AmmoType.T_AC_ULTRA && weapon.curMode().equals("Ultra")) { jamCheck = 2; } else if (wtype.getAmmoType() == AmmoType.T_AC_ROTARY) { if (nShots == 2) { jamCheck = 2; } else if (nShots == 4) { jamCheck = 3; } else if (nShots == 6) { jamCheck = 4; } } if (jamCheck > 0 && wr.roll <= jamCheck) { phaseReport.append("misses AND THE AUTOCANNON JAMS.\n"); weapon.setJammed(true); // ultras are destroyed by jamming if (wtype.getAmmoType() == AmmoType.T_AC_ULTRA) { weapon.setHit(true); } return; } } // do we hit? boolean bMissed = wr.roll < toHit.getValue(); // special case minefield delivery, no damage and scatters if misses. if (target.getTargetType() == Targetable.TYPE_MINEFIELD_DELIVER) { Coords coords = target.getPosition(); if (!bMissed) { phaseReport.append("hits the intended hex " + coords.getBoardNum() + "\n"); } else { coords = Compute.scatter(coords); if (game.board.contains(coords)) { phaseReport.append("misses and scatters to hex " + coords.getBoardNum() + "\n"); } else { phaseReport.append("misses and scatters off the board\n"); return; } } deliverThunderMinefield(coords, ae.getOwner().getId(), atype.getRackSize()); return; } if (bMissed) { // miss phaseReport.append("misses.\n"); if (wr.amsShotDown > 0) { phaseReport.append( "\tAMS activates, firing " ) .append( wr.amsShotDown ) .append( " shot(s).\n" ); } // Figure out the maximum number of missile hits. // TODO: handle this in a different place. int maxMissiles = 0; if ( usesAmmo ) { maxMissiles = wtype.getRackSize(); if ( wtype.hasFlag(WeaponType.F_DOUBLE_HITS) ) { maxMissiles *= 2; } if ( ae instanceof BattleArmor ) { platoon = (Infantry) ae; maxMissiles *= platoon.getShootingStrength(); } } // If the AMS shot down *all* incoming missiles, if // the shot is an automatic failure, or if it's from // a Streak rack, then Infernos can't ignite the hex // and any building is safe from damage. if ( (usesAmmo && wr.amsShotDown >= maxMissiles) || toHit.getValue() == TargetRoll.AUTOMATIC_FAIL || wtype.getAmmoType() == AmmoType.T_SRM_STREAK ) { return; } // Shots that miss an entity can set fires. // Infernos always set fires. Otherwise // Buildings can't be accidentally ignited, // and some weapons can't ignite fires. if ( entityTarget != null && ( bInferno || ( bldg == null && wtype.getFireTN() != TargetRoll.IMPOSSIBLE ) ) ) { tryIgniteHex(target.getPosition(), bInferno, 11); } // BMRr, pg. 51: "All shots that were aimed at a target inside // a building and miss do full damage to the building instead." if ( !targetInBuilding ) { return; } } // special case NARC hits. No damage, but a beacon is appended if (!bMissed && wtype.getAmmoType() == AmmoType.T_NARC && atype.getMunitionType() != AmmoType.M_NARC_EX) { // TODO: AMS can shoot down NARC pods too. if (entityTarget == null) { phaseReport.append("hits, but doesn't do anything.\n"); } else { entityTarget.setNarcedBy(ae.getOwner().getTeam()); phaseReport.append("hits. Pod attached.\n"); } return; } // attempt to clear minefield by LRM/MRM fire. if (!bMissed && target.getTargetType() == Targetable.TYPE_MINEFIELD_CLEAR) { int clearAttempt = Compute.d6(2); if (clearAttempt >= Minefield.CLEAR_NUMBER_WEAPON) { phaseReport.append("\n\thits and clears it.\n"); Coords coords = target.getPosition(); Enumeration minefields = game.getMinefields(coords).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); removeMinefield(mf); } } else { phaseReport.append("\n\thits, but fails to clear it.\n"); } return; } // yeech. handle damage. . different weapons do this in very different ways int hits = 1, nCluster = 1, nSalvoBonus = 0; int nDamPerHit = wtype.getDamage(); boolean bSalvo = false; // ecm check is heavy, so only do it once boolean bCheckedECM = false; boolean bECMAffected = false; boolean bMekStealthActive = false; String sSalvoType = " shot(s) "; boolean bAllShotsHit = false; // All shots fired by a Streak SRM weapon, during // a Mech Swarm hit, or at an adjacent building. if ( wtype.getAmmoType() == AmmoType.T_SRM_STREAK || wtype.getAmmoType() == AmmoType.T_NARC || ae.getSwarmTargetId() == wr.waa.getTargetId() || ( ( target.getTargetType() == Targetable.TYPE_BLDG_IGNITE || target.getTargetType() == Targetable.TYPE_BUILDING ) && ae.getPosition().distance( target.getPosition() ) <= 1 ) ) { bAllShotsHit = true; } // Mek swarms attach the attacker to the target. if ( !bMissed && Infantry.SWARM_MEK.equals( wtype.getInternalName() ) ) { // Is the target already swarmed? if ( Entity.NONE != entityTarget.getSwarmAttackerId() ) { phaseReport.append( "succeds, but the defender is " ); phaseReport.append( "already swarmed by another unit.\n" ); } // Did the target get destroyed by weapons fire? else if ( entityTarget.isDoomed() || entityTarget.isDestroyed() || entityTarget.getCrew().isDead() ) { phaseReport.append( "succeds, but the defender was " ); phaseReport.append( "destroyed by weapons fire.\n" ); } else { phaseReport.append( "succeeds! Defender swarmed.\n" ); ae.setSwarmTargetId( wr.waa.getTargetId() ); entityTarget.setSwarmAttackerId( wr.waa.getEntityId() ); } return; } // Magnetic Mine Launchers roll number of hits on battle armor // hits table but use # mines firing instead of men shooting. else if ( wtype.getInternalName().equals(BattleArmor.MINE_LAUNCHER) ) { hits = nShots; if ( !bAllShotsHit ) { hits = Compute.getBattleArmorHits( hits ); } bSalvo = true; sSalvoType = " mine(s) "; } // Other battle armor attacks use # of men firing to determine hits. // Each hit can be in a new location. The damage per shot comes from // the "racksize". else if ( isBattleArmorAttack ) { bSalvo = true; platoon = (Infantry) ae; nCluster = 1; nDamPerHit = wtype.getRackSize(); hits = platoon.getShootingStrength(); // All attacks during Mek Swarms hit; all // others use the Battle Armor hits table. if ( !bAllShotsHit ) { hits = Compute.getBattleArmorHits( hits ); } // Handle Inferno SRM squads. if (bInferno) { nCluster = hits; nDamPerHit = 0; sSalvoType = " Inferno missle(s) "; bSalvo = false; } } // Infantry damage depends on # men left in platoon. else if (isWeaponInfantry) { bSalvo = true; platoon = (Infantry)ae; nCluster = 5; nDamPerHit = 1; hits = platoon.getDamage(platoon.getShootingStrength()); // Handle Inferno SRM infantry. if (bInferno) { nCluster = hits; nDamPerHit = 0; sSalvoType = " Inferno missle(s) "; bSalvo = false; } } else if (wtype.getDamage() == WeaponType.DAMAGE_MISSILE || wtype.hasFlag(WeaponType.F_MISSILE_HITS) ) { bSalvo = true; // Weapons with ammo type T_BA_MG or T_BA_SMALL_LASER // don't have an atype object. if ( wtype.getAmmoType() == AmmoType.T_BA_MG || wtype.getAmmoType() == AmmoType.T_BA_SMALL_LASER ) { nDamPerHit = Math.abs( wtype.getAmmoType() ); } else { sSalvoType = " missile(s) "; nDamPerHit = atype.getDamagePerShot(); } if ( wtype.getAmmoType() == AmmoType.T_LRM || wtype.getAmmoType() == AmmoType.T_MRM || wtype.getAmmoType() == AmmoType.T_ATM ) { nCluster = 5; } // calculate # of missiles hitting if ( wtype.getAmmoType() == AmmoType.T_LRM || wtype.getAmmoType() == AmmoType.T_SRM || wtype.getAmmoType() == AmmoType.T_ATM ) { // check for artemis, else check for narc Mounted mLinker = weapon.getLinkedBy(); if ( wtype.getAmmoType() == AmmoType.T_ATM || ( mLinker != null && mLinker.getType() instanceof MiscType && !mLinker.isDestroyed() && !mLinker.isMissing() && !mLinker.isBreached() && mLinker.getType().hasFlag(MiscType.F_ARTEMIS) ) ) { // check ECM interference if (!bCheckedECM) { // Attacking Meks using stealth suffer ECM effects. if ( ae instanceof Mech ) { bMekStealthActive = ae.isStealthActive(); } bECMAffected = Compute.isAffectedByECM(ae, ae.getPosition(), target.getPosition()); bCheckedECM = true; } // also no artemis for IDF if (!bECMAffected && !bMekStealthActive && !weapon.curMode().equals("Indirect")) { nSalvoBonus += 2; } } else if (entityTarget != null && entityTarget.isNarcedBy(ae.getOwner().getTeam())) { // check ECM interference if (!bCheckedECM) { // Attacking Meks using stealth suffer ECM effects. if ( ae instanceof Mech ) { bMekStealthActive = ae.isStealthActive(); } bECMAffected = Compute.isAffectedByECM(ae, ae.getPosition(), target.getPosition()); bCheckedECM = true; } if (!bECMAffected && !bMekStealthActive) { nSalvoBonus += 2; } } } // If dealing with Inferno rounds set damage to zero and reset // all salvo bonuses (cannot mix with other special munitions). if (bInferno) { nDamPerHit = 0; nSalvoBonus = 0; sSalvoType = " inferno missile(s) "; bSalvo = false; } // Large MRM missile racks roll twice. // MRM missiles never recieve hit bonuses. if ( wtype.getRackSize() == 30 || wtype.getRackSize() == 40 ) { hits = Compute.missilesHit(wtype.getRackSize() / 2) + Compute.missilesHit(wtype.getRackSize() / 2); } // Battle Armor units multiply their racksize by the number // of men shooting and they can't get missile hit bonuses. else if ( ae instanceof BattleArmor ) { platoon = (Infantry) ae; int temp = wtype.getRackSize() * platoon.getShootingStrength(); // Do all shots hit? if ( bAllShotsHit ) { hits = temp; } else { // Account for more than 20 missles hitting. hits = 0; while ( temp > 20 ) { hits += Compute.missilesHit( 20 ); temp -= 20; } hits += Compute.missilesHit( temp ); } // End not-all-shots-hit } // If all shots hit, use the full racksize. else if ( bAllShotsHit ) { hits = wtype.getRackSize(); } // In all other circumstances, roll for hits. else { hits = Compute.missilesHit(wtype.getRackSize(), nSalvoBonus); } // Advanced SRM's only hit with even numbers of missles. if ( null != atype && atype.getAmmoType() == AmmoType.T_SRM_ADVANCED ) { hits = 2 * (int) Math.floor( (1.0 + (float) hits) / 2.0); } } else if (atype != null && atype.getMunitionType() == AmmoType.M_CLUSTER) { // Cluster shots break into single point clusters. bSalvo = true; hits = wtype.getRackSize(); if ( !bAllShotsHit ) { hits = Compute.missilesHit( hits ); } nDamPerHit = 1; } else if (nShots > 1) { // this should handle multiple attacks from ultra and rotary ACs bSalvo = true; hits = nShots; if ( !bAllShotsHit ) { hits = Compute.missilesHit( hits ); } } else if (wtype.getAmmoType() == AmmoType.T_GAUSS_HEAVY) { // HGR does range-dependent damage int nRange = ae.getPosition().distance(target.getPosition()); if (nRange <= wtype.getShortRange()) { nDamPerHit = 25; } else if (nRange <= wtype.getMediumRange()) { nDamPerHit = 20; } else { nDamPerHit = 10; } } // Some weapons double the number of hits scored. if ( wtype.hasFlag(WeaponType.F_DOUBLE_HITS) ) { hits *= 2; } // We've calculated how many hits. At this point, any missed // shots damage the building instead of the target. if ( bMissed ) { if ( targetInBuilding && bldg != null ) { // Reduce the number of hits by AMS hits. if (wr.amsShotDown > 0) { int shotDown = Math.min(wr.amsShotDown, hits); phaseReport.append("\tAMS shoots down ") .append(shotDown).append(" missile(s).\n"); hits -= wr.amsShotDown; } // Is the building hit by Inferno rounds? if ( bInferno && hits > 0 ) { // start a fire in the targets hex Coords c = target.getPosition(); Hex h = game.getBoard().getHex(c); // Is there a fire in the hex already? if ( h.contains( Terrain.FIRE ) ) { phaseReport.append( " " ) .append( hits ) .append( " Inferno rounds added to hex " ) .append( c.getBoardNum() ) .append( ".\n" ); } else { phaseReport.append( " " ) .append( hits ) .append( " Inferno rounds start fire in hex " ) .append( c.getBoardNum() ) .append( ".\n" ); h.addTerrain(new Terrain(Terrain.FIRE, 1)); } game.board.addInfernoTo ( c, InfernoTracker.STANDARD_ROUND, hits ); sendChangedHex(c); } // Damage the building in one big lump. else { // Only report if damage was done to the building. int toBldg = hits * nDamPerHit; if ( toBldg > 0 ) { phaseReport.append( " " ) .append( damageBuilding( bldg, toBldg ) ) .append( "\n" ); } } // End rounds-hit } // End missed-target-in-building return; } // End missed-target // The building shields all units from a certain amount of damage. // The amount is based upon the building's CF at the phase's start. int bldgAbsorbs = 0; if ( targetInBuilding && bldg != null ) { bldgAbsorbs = (int) Math.ceil( bldg.getPhaseCF() / 10.0 ); } // All attacks (except from infantry weapons) // during Mek Swarms hit the same location. if ( !isWeaponInfantry && ae.getSwarmTargetId() == wr.waa.getTargetId() ) { nCluster = hits; } // Battle Armor MGs do one die of damage per hit to PBI. if ( wtype.getAmmoType() == AmmoType.T_BA_MG && (target instanceof Infantry) && !(target instanceof BattleArmor) ) { // ASSUMPTION: Building walls protect infantry from BA MGs. if ( bldgAbsorbs > 0 ) { int toBldg = nDamPerHit * hits; phaseReport.append( hits ) .append( sSalvoType ) .append( "hit,\n but " ) .append( damageBuilding( bldg, Math.min( toBldg, bldgAbsorbs ), " absorbs the shots, taking " ) ) .append( "\n" ); return; } nDamPerHit = Compute.d6(hits); phaseReport.append( "riddles the target with " ).append( nDamPerHit ).append( sSalvoType ).append( "and " ); hits = 1; } // Mech and Vehicle MGs do *DICE* of damage to PBI. else if (atype != null && atype.hasFlag(AmmoType.F_MG) && !isWeaponInfantry && (target instanceof Infantry) && !(target instanceof BattleArmor) ) { int dice = wtype.getDamage(); // A building may absorb the entire shot. if ( nDamPerHit <= bldgAbsorbs ) { int toBldg = nDamPerHit * hits; int curCF = bldg.getCurrentCF(); curCF = Math.min( curCF, toBldg ); bldg.setCurrentCF( curCF ); if ( bSalvo ) { phaseReport.append( hits ) .append( sSalvoType ) .append( "hit,\n" ); } else{ phaseReport.append( "hits,\n" ); } phaseReport.append( " but " ) .append( damageBuilding( bldg, Math.min( toBldg, bldgAbsorbs ), " absorbs the shots, taking " ) ) .append( "\n" ); return; } // If a building absorbs partial damage, reduce the dice of damage. else if ( bldgAbsorbs > 0 ) { dice -= bldgAbsorbs; } nDamPerHit = Compute.d6( dice ); phaseReport.append( "riddles the target with " ).append( nDamPerHit ).append( sSalvoType ).append( ".\n" ); bSalvo = true; // If a building absorbed partial damage, report it now // instead of later and then clear the variable. if ( bldgAbsorbs > 0 ) { phaseReport.append( " " ) .append( damageBuilding( bldg, bldgAbsorbs ) ); bldgAbsorbs = 0; } } // Report the number of hits. Infernos have their own reporting else if (bSalvo && !bInferno) { phaseReport.append( hits ).append( sSalvoType ).append( "hit" ) .append( toHit.getTableDesc() ); if (bECMAffected) { phaseReport.append(" (ECM prevents bonus)"); } else if (bMekStealthActive) { phaseReport.append(" (active Stealth prevents bonus)"); } if (nSalvoBonus > 0) { phaseReport.append(" (w/ +") .append(nSalvoBonus) .append(" bonus)"); } phaseReport.append("."); if (wr.amsShotDown > 0) { int shotDown = Math.min(wr.amsShotDown, hits); phaseReport.append("\n\tAMS engages, firing ") .append(wr.amsShotDown).append(" shots, shooting down ") .append(shotDown).append(" missile(s)."); hits -= wr.amsShotDown; } } // convert the ATM missile damages to LRM type 5 point cluster damage // done here after AMS has been performed if (wtype.getAmmoType() == AmmoType.T_ATM) { hits = nDamPerHit * hits; nDamPerHit = 1; } // Make sure the player knows when his attack causes no damage. if ( hits == 0 ) { phaseReport.append( "attack deals zero damage.\n" ); } // for each cluster of hits, do a chunk of damage while (hits > 0) { int nDamage; // If the attack was with inferno rounds then // do heat and fire instead of damage. if ( bInferno ) { // AMS can shoot down infernos, too. if (wr.amsShotDown > 0) { int shotDown = Math.min(wr.amsShotDown, hits); phaseReport.append("\n\tAMS engages, firing ") .append(wr.amsShotDown).append(" shots, shooting down ") .append(shotDown).append(" missile(s)."); hits -= wr.amsShotDown; if ( hits <= 0 ) { continue; } } // targeting a hex for ignition if( target.getTargetType() == Targetable.TYPE_HEX_IGNITE || target.getTargetType() == Targetable.TYPE_BLDG_IGNITE ) { phaseReport.append( "hits with " ) .append( hits ) .append( " inferno missles.\n" ); // Unless there a fire in the hex already, start one. Coords c = target.getPosition(); Hex h = game.getBoard().getHex(c); if ( !h.contains( Terrain.FIRE ) ) { phaseReport.append( " Fire started in hex " ) .append( c.getBoardNum() ) .append( ".\n" ); h.addTerrain(new Terrain(Terrain.FIRE, 1)); } game.board.addInfernoTo ( c, InfernoTracker.STANDARD_ROUND, hits ); sendChangedHex(c); return; } // Targeting an entity if (entityTarget != null ) { entityTarget.infernos.add( InfernoTracker.STANDARD_ROUND, hits ); phaseReport.append( "hits with " ) .append( hits ) .append( " inferno missles." ); phaseReport.append("\n " ) .append( target.getDisplayName() ) .append( " now on fire for ") .append( entityTarget.infernos.getTurnsLeftToBurn() ) .append(" turns.\n"); // start a fire in the targets hex Coords c = target.getPosition(); Hex h = game.getBoard().getHex(c); // Unless there a fire in the hex already, start one. if ( !h.contains( Terrain.FIRE ) ) { phaseReport.append( " Fire started in hex " ) .append( c.getBoardNum() ) .append( ".\n" ); h.addTerrain(new Terrain(Terrain.FIRE, 1)); } game.board.addInfernoTo ( c, InfernoTracker.STANDARD_ROUND, hits ); sendChangedHex(c); return; } } // End is-inferno // targeting a hex for igniting if( target.getTargetType() == Targetable.TYPE_HEX_IGNITE || target.getTargetType() == Targetable.TYPE_BLDG_IGNITE ) { if ( !bSalvo ) { phaseReport.append("hits!"); } // We handle Inferno rounds above. int tn = wtype.getFireTN(); if (tn != TargetRoll.IMPOSSIBLE) { if ( bldg != null ) { tn += bldg.getType() - 1; } phaseReport.append( "\n" ); tryIgniteHex( target.getPosition(), bInferno, tn ); } return; } // targeting a hex for clearing if (target.getTargetType() == Targetable.TYPE_HEX_CLEAR) { nDamage = nDamPerHit * hits; if ( !bSalvo ) { phaseReport.append("hits!"); } if (ae instanceof Infantry) { phaseReport.append("\n But infantry cannot try to clear hexes!\n"); return; } phaseReport.append(" Terrain takes " ).append( nDamage ).append( " damage.\n"); // Any clear attempt can result in accidental ignition, even // weapons that can't normally start fires. that's weird. // Buildings can't be accidentally ignited. if ( bldg != null && tryIgniteHex(target.getPosition(), bInferno, 9) ) { return; } int tn = 14 - nDamage; tryClearHex(target.getPosition(), tn); return; } // Targeting a building. if ( target.getTargetType() == Targetable.TYPE_BUILDING ) { // The building takes the full brunt of the attack. nDamage = nDamPerHit * hits; if ( !bSalvo ) { phaseReport.append( "hits." ); } phaseReport.append( "\n " ) .append( damageBuilding( bldg, nDamage ) ) .append( "\n" ); // Damage any infantry in the hex. this.damageInfantryIn( bldg, nDamage ); // And we're done! return; } // Battle Armor squads equipped with fire protection // gear automatically avoid flaming death. if ( wtype.hasFlag(WeaponType.F_FLAMER) && target instanceof BattleArmor ) { for ( Enumeration iter = entityTarget.getMisc(); iter.hasMoreElements(); ) { Mounted mount = (Mounted) iter.nextElement(); EquipmentType equip = mount.getType(); if ( BattleArmor.FIRE_PROTECTION.equals (equip.getInternalName()) ) { if ( !bSalvo ) { phaseReport.append( "hits." ); } phaseReport.append( "\n However, " ) .append(target.getDisplayName() ) .append( " has fire protection gear so no damage is done.\n" ); // A building may be damaged, even if the squad is not. if ( bldgAbsorbs > 0 ) { int toBldg = nDamPerHit * Math.min( bldgAbsorbs, hits ); phaseReport.append( " " ) .append( damageBuilding( bldg, toBldg ) ) .append( "\n" ); } return; } } } // End target-may-be-immune // Flamers do heat to mechs instead damage if the option is // available and the mode is set. if ( entityTarget != null && (entityTarget instanceof Mech) && wtype.hasFlag(WeaponType.F_FLAMER) && game.getOptions().booleanOption("flamer_heat") && wtype.hasModes() && weapon.curMode().equals("Heat") ) { nDamage = nDamPerHit * hits; if ( !bSalvo ) { phaseReport.append( "hits." ); } phaseReport.append("\n Target gains ").append(nDamage).append(" more heat during heat phase."); entityTarget.heatBuildup += nDamage; hits = 0; } else if (entityTarget != null) { HitData hit = entityTarget.rollHitLocation(toHit.getHitTable(), toHit.getSideTable(), wr.waa.getAimedLocation(), wr.waa.getAimingMode()); // If a leg attacks hit a leg that isn't // there, then hit the other leg. if ( wtype.getInternalName().equals("LegAttack") && entityTarget.getInternal(hit) <= 0 ) { if ( hit.getLocation() == Mech.LOC_RLEG ) { hit = new HitData( Mech.LOC_LLEG ); } else { hit = new HitData( Mech.LOC_RLEG ); } } // Mine Launchers automatically hit the // CT of a Mech or the front of a Tank. if ( wtype.getInternalName() .equals(BattleArmor.MINE_LAUNCHER) ) { if ( target instanceof Mech ) { hit = new HitData( Mech.LOC_CT ); } else { // te instanceof Tank hit = new HitData( Tank.LOC_FRONT ); } } // Each hit in the salvo get's its own hit location. if (!bSalvo) { phaseReport.append("hits" ).append( toHit.getTableDesc() ).append( " " ). append( entityTarget.getLocationAbbr(hit)); if (hit.hitAimedLocation()) { phaseReport.append("(hit aimed location)"); } } // Special weapons do criticals instead of damage. if ( nDamPerHit == WeaponType.DAMAGE_SPECIAL ) { // Do criticals. String specialDamage = criticalEntity( entityTarget, hit.getLocation() ); // Replace "no effect" results with 4 points of damage. if ( specialDamage.endsWith(" no effect.") ) { // ASSUMPTION: buildings CAN'T absorb *this* damage. specialDamage = damageEntity(entityTarget, hit, 4); } else { specialDamage = "\n" + specialDamage; } // Report the result phaseReport.append( specialDamage ); } else { // Resolve damage normally. nDamage = nDamPerHit * Math.min(nCluster, hits); // A building may be damaged, even if the squad is not. if ( bldgAbsorbs > 0 ) { int toBldg = Math.min( bldgAbsorbs, nDamage ); nDamage -= toBldg; phaseReport.append( "\n " ) .append( damageBuilding( bldg, toBldg ) ); } // A building may absorb the entire shot. if ( nDamage == 0 ) { phaseReport.append( "\n " ) .append( entityTarget.getDisplayName() ) .append( " suffers no damage." ); } else { phaseReport.append ( damageEntity(entityTarget, hit, nDamage) ); } } hits -= nCluster; } } // Handle the next cluster. phaseReport.append("\n"); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/2516ef1ccea48960b23bd6c0dabbaa3e4942af7f/Server.java/clean/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
3218,
28629,
3075,
484,
12,
3218,
28629,
1253,
12408,
16,
509,
1142,
18029,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
91,
86,
18,
91,
7598,
18,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
3218,
28629,
3075,
484,
12,
3218,
28629,
1253,
12408,
16,
509,
1142,
18029,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
91,
86,
18,
91,
7598,
18,
588... |
Button buttonOpenAll = toolkit.createButton(buttonsComposite, "Open All", SWT.NONE); { Font initialFont = buttonOpenAll.getFont(); FontData[] fontData = initialFont.getFontData(); for (int i = 0; i < fontData.length; i++) { fontData[i].setHeight(BUTTON_FONT_SIZE); } Font newFont = new Font(getShell().getDisplay(), fontData); buttonOpenAll.setFont(newFont); } buttonOpenAll.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { for (ITaskListNotification notification : notifications) { notification.openTask(); } IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (window != null) { Shell windowShell = window.getShell(); if (windowShell != null) { windowShell.setMaximized(true); windowShell.open(); } } | buttonsComposite.setBackground(section.getTitleBarBackground()); final ImageHyperlink closeHyperlink = toolkit.createImageHyperlink(buttonsComposite, SWT.NONE); closeHyperlink.setBackground(section.getTitleBarBackground()); closeHyperlink.setImage(TaskListImages.getImage(TaskListImages.NOTIFICATION_CLOSE)); closeHyperlink.addHyperlinkListener(new HyperlinkAdapter() { public void linkActivated(HyperlinkEvent e) { | protected final Control createDialogArea(final Composite parent) { getShell().setText(MYLAR_NOTIFICATION_LABEL); toolkit = new FormToolkit(parent.getDisplay()); form = toolkit.createForm(parent); form.getBody().setLayout(new GridLayout()); Section section = toolkit.createSection(form.getBody(), Section.TITLE_BAR); section.setText(MYLAR_NOTIFICATION_LABEL); section.setLayout(new GridLayout()); sectionClient = toolkit.createComposite(section); sectionClient.setLayout(new GridLayout(2, false)); for (final ITaskListNotification notification : notifications) { // Composite notificationComp = toolkit.createComposite(sectionClient);// notificationComp.setLayout(new RowLayout()); Label notificationLabelIcon = toolkit.createLabel(sectionClient, ""); notificationLabelIcon.setImage(notification.getOverlayIcon()); ImageHyperlink link = toolkit.createImageHyperlink(sectionClient, SWT.WRAP | SWT.TOP); link.setText(notification.getLabel()); link.setImage(notification.getNotificationIcon()); link.addHyperlinkListener(new HyperlinkAdapter() { public void linkActivated(HyperlinkEvent e) { notification.openTask(); IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (window != null) { Shell windowShell = window.getShell(); if (windowShell != null) { windowShell.setMaximized(true); windowShell.open(); } } } }); String descriptionText = null; if (notification.getDescription() != null && notification.getDescription().length() > 40) { String truncated = notification.getDescription().substring(0, 35); descriptionText = truncated + "..."; } else if(notification.getDescription() != null) { descriptionText = notification.getDescription(); } if(descriptionText != null) { Label descriptionLabel = toolkit.createLabel(sectionClient, descriptionText); GridDataFactory.fillDefaults().span(2, SWT.DEFAULT).applyTo(descriptionLabel); } } section.setClient(sectionClient); Composite buttonsComposite = toolkit.createComposite(section); section.setTextClient(buttonsComposite); buttonsComposite.setLayout(new RowLayout()); Button buttonOpenAll = toolkit.createButton(buttonsComposite, "Open All", SWT.NONE); { Font initialFont = buttonOpenAll.getFont(); FontData[] fontData = initialFont.getFontData(); for (int i = 0; i < fontData.length; i++) { fontData[i].setHeight(BUTTON_FONT_SIZE); } Font newFont = new Font(getShell().getDisplay(), fontData); buttonOpenAll.setFont(newFont); } buttonOpenAll.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { for (ITaskListNotification notification : notifications) { //notification.setNotified(true); notification.openTask(); } IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (window != null) { Shell windowShell = window.getShell(); if (windowShell != null) { windowShell.setMaximized(true); windowShell.open(); } } close(); } }); RowData buttonOpenAllRowData = new RowData(45, 15); buttonOpenAll.setLayoutData(buttonOpenAllRowData); Button buttonDismiss = toolkit.createButton(buttonsComposite, "Close", SWT.NONE); { Font initialFont = buttonDismiss.getFont(); FontData[] fontData = initialFont.getFontData(); for (int i = 0; i < fontData.length; i++) { fontData[i].setHeight(BUTTON_FONT_SIZE); } Font newFont = new Font(getShell().getDisplay(), fontData); buttonDismiss.setFont(newFont); } buttonDismiss.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) {// for (ITaskListNotification notification : notifications) {// notification.setNotified(true);// } close(); } }); RowData buttonDismissRowData = new RowData(30, 15); buttonDismiss.setLayoutData(buttonDismissRowData); // toolkit.paintBordersFor(parent); form.pack(); return parent; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/a433fae12991c8a627b02857b69f38c50de94679/TaskListNotificationPopup.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/TaskListNotificationPopup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
8888,
752,
6353,
5484,
12,
6385,
14728,
982,
13,
288,
202,
202,
588,
13220,
7675,
542,
1528,
12,
22114,
48,
985,
67,
4400,
14865,
67,
13545,
1769,
202,
202,
6738,
8691,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
8888,
752,
6353,
5484,
12,
6385,
14728,
982,
13,
288,
202,
202,
588,
13220,
7675,
542,
1528,
12,
22114,
48,
985,
67,
4400,
14865,
67,
13545,
1769,
202,
202,
6738,
8691,
... |
catch ( DesignFileException e ) { errorMessage = ERROR_MSG_INVALID_REPORT; } | private void initParamterBindings( ) { bindingList.clear( ); parameterList.clear( ); String errorMessage = null; String newFilename = locationEditor.getText( ).trim( ); if ( newFilename.length( ) == 0 ) { errorMessage = ERROR_MSG_REPORT_REQUIRED; } else { try { reportHandle = SessionHandleAdapter.getInstance( ) .getSessionHandle( ) .openDesign( newFilename ); for ( Iterator iter = reportHandle.getAllParameters( ) .iterator( ); iter.hasNext( ); ) { Object obj = iter.next( ); if ( obj instanceof ParameterHandle ) { parameterList.add( obj ); } else if ( obj instanceof ParameterGroupHandle ) { parameterList.addAll( ( (ParameterGroupHandle) obj ).getParameters( ) .getContents( ) ); } } if ( newFilename.equals( inputHandle.getReportName( ) ) ) { for ( Iterator iter = inputHandle.paramBindingsIterator( ); iter.hasNext( ); ) { ParamBindingHandle handle = (ParamBindingHandle) iter.next( ); bindingList.add( handle.getStructure( ) ); } } } catch ( DesignFileException e ) { errorMessage = ERROR_MSG_INVALID_REPORT; } } if ( errorMessage != null ) { messageLine.setText( errorMessage ); messageLine.setImage( ERROR_ICON ); } else { messageLine.setText( "" ); //$NON-NLS-1$ messageLine.setImage( null ); } paramBindingTable.refresh( ); paramBindingTable.getTable( ).setEnabled( !parameterList.isEmpty( ) ); updateButtons( ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/0597c8f1e6db7bd2c7f8fc4d9cdf2b08f6384220/HyperlinkBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
786,
387,
10497,
12,
262,
202,
95,
202,
202,
7374,
682,
18,
8507,
12,
11272,
202,
202,
6775,
682,
18,
8507,
12,
11272,
202,
202,
780,
9324,
273,
446,
31,
202,
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,
1152,
918,
1208,
786,
387,
10497,
12,
262,
202,
95,
202,
202,
7374,
682,
18,
8507,
12,
11272,
202,
202,
6775,
682,
18,
8507,
12,
11272,
202,
202,
780,
9324,
273,
446,
31,
202,
20... | |
int [] argList = {OS.XmNtotalLines, 0}; OS.XtGetValues (handle, argList, argList.length / 2); return argList [1]; | int lastChar = echoCharacter != '\0' ? hiddenText.length () : OS.XmTextGetLastPosition (handle); return getLineNumber (lastChar) + 1; | public int getLineCount () { checkWidget(); if ((style & SWT.SINGLE) != 0) return 1; int [] argList = {OS.XmNtotalLines, 0}; OS.XtGetValues (handle, argList, argList.length / 2); return argList [1];} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/51d9a0a0b53ba711a43ecf3f25d31fd0dff2a9d3/Text.java/buggy/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
509,
9851,
1380,
1832,
288,
202,
1893,
4609,
5621,
202,
430,
14015,
4060,
473,
348,
8588,
18,
20184,
13,
480,
374,
13,
327,
404,
31,
202,
474,
5378,
1501,
682,
273,
288,
4618,
18,
60,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
9851,
1380,
1832,
288,
202,
1893,
4609,
5621,
202,
430,
14015,
4060,
473,
348,
8588,
18,
20184,
13,
480,
374,
13,
327,
404,
31,
202,
474,
5378,
1501,
682,
273,
288,
4618,
18,
60,
... |
return res; | return res.booleanValue(); | public static boolean canStickJavaTokens(PsiJavaToken token1, PsiJavaToken token2) { IElementType type1 = token1.getTokenType(); IElementType type2 = token2.getTokenType(); Pair<IElementType, IElementType> pair = new Pair<IElementType, IElementType>(type1, type2); Boolean res = myCanStickJavaTokensMatrix.get(pair); if (res == null) { if (!checkToken(token1) || !checkToken(token2)) return true; String text = token1.getText() + token2.getText(); Lexer lexer = new JavaLexer(LanguageLevel.HIGHEST); lexer.start(text.toCharArray(), 0, text.length()); boolean canMerge = lexer.getTokenType() == type1; lexer.advance(); canMerge &= lexer.getTokenType() == type2; res = Boolean.valueOf(canMerge); myCanStickJavaTokensMatrix.put(pair, res); } return res; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/96735ca7ff93fd7888903ef0019b76e8c47ac172/CodeEditUtil.java/clean/source/com/intellij/psi/impl/source/codeStyle/CodeEditUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
848,
510,
1200,
5852,
5157,
12,
52,
7722,
5852,
1345,
1147,
21,
16,
453,
7722,
5852,
1345,
1147,
22,
13,
288,
565,
467,
17481,
618,
21,
273,
1147,
21,
18,
588,
28675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
848,
510,
1200,
5852,
5157,
12,
52,
7722,
5852,
1345,
1147,
21,
16,
453,
7722,
5852,
1345,
1147,
22,
13,
288,
565,
467,
17481,
618,
21,
273,
1147,
21,
18,
588,
28675,
... |
GrabKeyDialog.KeyBinding[] binding = (GrabKeyDialog.KeyBinding[]) bindings.elementAt(row); | GrabKeyDialog.KeyBinding[] binding = bindings.elementAt(row); | public GrabKeyDialog.KeyBinding getBindingAt(int row, int nr) { GrabKeyDialog.KeyBinding[] binding = (GrabKeyDialog.KeyBinding[]) bindings.elementAt(row); return binding[nr]; } | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/cbebbfdac0e355646397f3a0760b5c9d6ecfc5c7/ShortcutsOptionPane.java/clean/org/gjt/sp/jedit/options/ShortcutsOptionPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
17150,
653,
6353,
18,
653,
5250,
29471,
861,
12,
474,
1027,
16,
509,
9884,
13,
202,
202,
95,
1082,
202,
14571,
70,
653,
6353,
18,
653,
5250,
8526,
5085,
9506,
202,
33,
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,
3196,
202,
482,
17150,
653,
6353,
18,
653,
5250,
29471,
861,
12,
474,
1027,
16,
509,
9884,
13,
202,
202,
95,
1082,
202,
14571,
70,
653,
6353,
18,
653,
5250,
8526,
5085,
9506,
202,
33,
261,
... |
TreeCellRenderer oldValue = cellRenderer; cellRenderer = newRenderer; firePropertyChange(CELL_RENDERER_PROPERTY, oldValue, newRenderer); } | TreeCellRenderer oldValue = cellRenderer; cellRenderer = newRenderer; firePropertyChange(CELL_RENDERER_PROPERTY, oldValue, newRenderer); } | public void setCellRenderer(TreeCellRenderer newRenderer) { if (cellRenderer == newRenderer) return; TreeCellRenderer oldValue = cellRenderer; cellRenderer = newRenderer; firePropertyChange(CELL_RENDERER_PROPERTY, oldValue, newRenderer); } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/363fe84fd732aa8ca3562fb0734fe48ee20c2c65/JTree.java/buggy/libraries/javalib/javax/swing/JTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
4020,
6747,
12,
2471,
4020,
6747,
394,
6747,
13,
225,
288,
565,
309,
261,
3855,
6747,
422,
394,
6747,
13,
1377,
327,
31,
565,
4902,
4020,
6747,
11144,
273,
2484,
6747,
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,
282,
1071,
918,
444,
4020,
6747,
12,
2471,
4020,
6747,
394,
6747,
13,
225,
288,
565,
309,
261,
3855,
6747,
422,
394,
6747,
13,
1377,
327,
31,
565,
4902,
4020,
6747,
11144,
273,
2484,
6747,
3... |
final Object associatedListener = registeredTextListeners.get(listener); | final Object associatedListener = registeredTextListeners.remove(listener); | public final void removeActionTextListener(final String commandId, final IActionTextListener listener) { final ICommand command = workbench.getCommandSupport() .getCommandManager().getCommand(commandId); final Object associatedListener = registeredTextListeners.get(listener); if (associatedListener instanceof ICommandListener) { final ICommandListener commandListener = (ICommandListener) associatedListener; command.removeCommandListener(commandListener); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5357a724a95b102e669d73fd2acf757498a51db5/CommandCallback.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/ws/CommandCallback.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
1206,
1803,
1528,
2223,
12,
6385,
514,
1296,
548,
16,
5411,
727,
467,
1803,
1528,
2223,
2991,
13,
288,
3639,
727,
467,
2189,
1296,
273,
1440,
22144,
18,
588,
2189,
6289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
1803,
1528,
2223,
12,
6385,
514,
1296,
548,
16,
5411,
727,
467,
1803,
1528,
2223,
2991,
13,
288,
3639,
727,
467,
2189,
1296,
273,
1440,
22144,
18,
588,
2189,
6289,
... |
new WorkbenchLabelProvider(), | WorkbenchLabelProvider.getDecoratingWorkbenchLabelProvider(), | protected Control createDialogArea(Composite parent) { // page group Composite composite = (Composite) super.createDialogArea(parent); //create the input element, which has the root resource //as its only child ArrayList input = new ArrayList(); input.add(root); createMessageArea(composite); selectionGroup = new CheckboxTreeAndListGroup( composite, input, getResourceProvider(IResource.FOLDER | IResource.PROJECT | IResource.ROOT), new WorkbenchLabelProvider(), getResourceProvider(IResource.FILE), new WorkbenchLabelProvider(), SWT.NONE, // since this page has no other significantly-sized // widgets we need to hardcode the combined widget's // size, otherwise it will open too small SIZING_SELECTION_WIDGET_WIDTH, SIZING_SELECTION_WIDGET_HEIGHT); composite.addControlListener(new ControlListener() { public void controlMoved(ControlEvent e) {}; public void controlResized(ControlEvent e) { //Also try and reset the size of the columns as appropriate TableColumn[] columns = selectionGroup.getListTable().getColumns(); for (int i = 0; i < columns.length; i++) { columns[i].pack(); } } }); return composite;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/90c46ca1a4ae8e0019beea3a5597b679d261035a/ResourceSelectionDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/ResourceSelectionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
759,
1363,
1041,
202,
9400,
9635,
273,
261,
9400,
13,
2240,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
759,
2640,
326,
810,
930,
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,
8585,
326,
22398,
316,
326,
981,
30,
4750,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
759,
1363,
1041,
202,
9400,
9635,
273,
261,
9400,
13,
2240,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
759,
2640,
326,
810,
930,
16,... |
assert Debug.log("insert template", symbol); | assert Debug.log("insert template: ", symbol); | private Template insertTemplate(Symbol symbol, Template template) { assert symbol.isType() : Debug.show(symbol); assert Debug.log("insert template", symbol); Object value = templates.put(symbol, template); assert !classdefs.containsKey(symbol) : Debug.show(symbol); assert value == null : Debug.show(symbol); return template; } | 9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/0b3a91891d6632538b72d89722778c52b01b6ff9/Environment.java/clean/sources/scala/tools/scalai/Environment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
5035,
2243,
2283,
12,
5335,
3273,
16,
5035,
1542,
13,
288,
3639,
1815,
3273,
18,
291,
559,
1435,
294,
4015,
18,
4500,
12,
7175,
1769,
3639,
1815,
4015,
18,
1330,
2932,
6387,
1542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5035,
2243,
2283,
12,
5335,
3273,
16,
5035,
1542,
13,
288,
3639,
1815,
3273,
18,
291,
559,
1435,
294,
4015,
18,
4500,
12,
7175,
1769,
3639,
1815,
4015,
18,
1330,
2932,
6387,
1542,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.