rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
if(OperatingSystem.isMacOSLF() && shortcut != null) | if(OperatingSystem.hasScreenMenuBar() && shortcut != null) | public EnhancedMenuItem(String label, EditAction action) { this.action = action; this.shortcut = getShortcut(); if(OperatingSystem.isMacOSLF() && shortcut != null) { setText(label + " (" + shortcut + ")"); shortcut = null; } else setText(label); if(action != null) { setEnabled(true); addActionListener(new EditAction.Wrapper(action)); addMouseListener(new MouseHandler()); } else setEnabled(false); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/3aa2cc3a8f65ac8857f186c413b6af171c65635f/EnhancedMenuItem.java/buggy/org/gjt/sp/jedit/gui/EnhancedMenuItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1374,
17221,
12958,
12,
780,
1433,
16,
15328,
1803,
1301,
13,
202,
95,
202,
202,
2211,
18,
1128,
273,
1301,
31,
202,
202,
2211,
18,
24744,
273,
13157,
5150,
5621,
202,
202,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1374,
17221,
12958,
12,
780,
1433,
16,
15328,
1803,
1301,
13,
202,
95,
202,
202,
2211,
18,
1128,
273,
1301,
31,
202,
202,
2211,
18,
24744,
273,
13157,
5150,
5621,
202,
202,
43... |
try { ctx.eventProducer.produceEvent(new SimpleBlockPutEvent(chk.getClientKey())); if(!getCHKOnly) ctx.client.putCHK(chk, ctx.starterClient, ctx.cacheLocalRequests); } catch (LowLevelPutException e) { le = e; | int rnfs = 0; for(int i=0;i<=ctx.maxInsertRetries;i++) { try { ctx.eventProducer.produceEvent(new SimpleBlockPutEvent(chk.getClientKey())); if(!getCHKOnly) ctx.client.putCHK(chk, ctx.starterClient, ctx.cacheLocalRequests); break; } catch (LowLevelPutException e) { le = e; switch(le.code) { case LowLevelPutException.ROUTE_REALLY_NOT_FOUND: case LowLevelPutException.REJECTED_OVERLOAD: rnfs = 0; } if(noRetries) break; if(le.code == LowLevelPutException.ROUTE_NOT_FOUND && ctx.consecutiveRNFsCountAsSuccess > 0) { rnfs++; if(rnfs >= ctx.consecutiveRNFsCountAsSuccess) { le = null; break; } } } | private FreenetURI simplePutCHK(ClientCHKBlock chk, ClientMetadata clientMetadata, boolean getCHKOnly) throws InserterException { LowLevelPutException le = null; try { ctx.eventProducer.produceEvent(new SimpleBlockPutEvent(chk.getClientKey())); if(!getCHKOnly) ctx.client.putCHK(chk, ctx.starterClient, ctx.cacheLocalRequests); } catch (LowLevelPutException e) { le = e; } FreenetURI uri; if(clientMetadata == null || clientMetadata.isTrivial()) // Don't need a redirect for the metadata uri = chk.getClientKey().getURI(); else { // Do need a redirect for the metadata Metadata metadata = new Metadata(Metadata.SIMPLE_REDIRECT, chk.getClientKey().getURI(), clientMetadata); uri = putMetadataCHK(metadata, getCHKOnly); } if(le != null) translateException(le, uri); return uri; } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/f796d24f4aa09fbf23678d518365f0f1ee62e0ca/FileInserter.java/clean/src/freenet/client/FileInserter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
478,
2842,
278,
3098,
4143,
6426,
1792,
47,
12,
1227,
1792,
47,
1768,
15000,
16,
2445,
2277,
1004,
2277,
16,
1250,
336,
1792,
47,
3386,
13,
1216,
657,
550,
387,
503,
288,
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,
478,
2842,
278,
3098,
4143,
6426,
1792,
47,
12,
1227,
1792,
47,
1768,
15000,
16,
2445,
2277,
1004,
2277,
16,
1250,
336,
1792,
47,
3386,
13,
1216,
657,
550,
387,
503,
288,
202... |
RetargetAction action = new RetargetAction(getId(), IDEWorkbenchMessages.getString("Workbench.openProject")); action.setToolTipText(IDEWorkbenchMessages.getString("Workbench.openProjectToolTip")); window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.project.openProject"); | IWorkbenchAction innerAction = ActionFactory.NEW.create(window); IWorkbenchAction action = new NewWizardDropDownAction(window, innerAction); action.setId(getId()); | public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } RetargetAction action = new RetargetAction(getId(), IDEWorkbenchMessages.getString("Workbench.openProject")); //$NON-NLS-1$ //$NON-NLS-2$ action.setToolTipText(IDEWorkbenchMessages.getString("Workbench.openProjectToolTip")); //$NON-NLS-1$ window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.project.openProject"); //$NON-NLS-1$ return action; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a28eb1ef10e772648cd789827e54d2e08b8df441/IDEActionFactory.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEActionFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
467,
2421,
22144,
1803,
752,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
1082,
202,
430,
261,
5668,
422,
446,
13,
288,
9506,
202,
12849,
394,
2754,
5621,
1082,
202,
97,
1082,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
467,
2421,
22144,
1803,
752,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
1082,
202,
430,
261,
5668,
422,
446,
13,
288,
9506,
202,
12849,
394,
2754,
5621,
1082,
202,
97,
1082,
2... |
renWin.GetRenderer().AddActor(outlineActor); | GetRenderer().AddActor(outlineActor); | public void setImageData(vtkImageData id) { //The shared picker enables us to use 3 planes at one time //and gets the picking order right vtkCellPicker picker = new vtkCellPicker(); picker.SetTolerance(0.005); //The 3 image plane widgets are used to probe the dataset. vtkImagePlaneWidget planeWidgetX = new vtkImagePlaneWidget(); planeWidgetX.DisplayTextOn(); planeWidgetX.SetInput(id); planeWidgetX.SetInteractor(renWin.getIren()); planeWidgetX.SetPlaneOrientationToXAxes(); planeWidgetX.SetSliceIndex(32); planeWidgetX.SetPicker(picker); planeWidgetX.SetKeyPressActivationValue('x'); planeWidgetX.GetPlaneProperty().SetColor(1, 0, 0); planeWidgetX.On(); vtkImagePlaneWidget planeWidgetY = new vtkImagePlaneWidget(); planeWidgetY.DisplayTextOn(); planeWidgetY.SetInput(id); planeWidgetY.SetInteractor(renWin.getIren()); planeWidgetY.SetPlaneOrientationToYAxes(); planeWidgetY.SetSliceIndex(32); planeWidgetY.SetPicker(picker); planeWidgetY.SetKeyPressActivationValue('y'); planeWidgetY.GetPlaneProperty().SetColor(1, 1, 0); planeWidgetY.SetLookupTable(planeWidgetX.GetLookupTable()); planeWidgetY.On(); //for the z-slice, turn off texture interpolation: //interpolation is now nearest neighbour, to demonstrate //cross-hair cursor snapping to pixel centers vtkImagePlaneWidget planeWidgetZ = new vtkImagePlaneWidget(); planeWidgetZ.DisplayTextOn(); planeWidgetZ.SetInput(id); planeWidgetZ.TextureInterpolateOff(); planeWidgetZ.SetInteractor(renWin.getIren()); planeWidgetZ.SetPlaneOrientationToZAxes(); planeWidgetZ.SetSliceIndex(46); planeWidgetZ.SetPicker(picker); planeWidgetZ.SetKeyPressActivationValue('z'); planeWidgetZ.GetPlaneProperty().SetColor (0, 0, 1); planeWidgetZ.SetLookupTable(planeWidgetX.GetLookupTable()); planeWidgetZ.On(); //An outline is shown for context. vtkOutlineFilter outline = new vtkOutlineFilter(); outline.SetInput (id); vtkPolyDataMapper outlineMapper = new vtkPolyDataMapper(); outlineMapper.SetInput ( outline.GetOutput() ); vtkActor outlineActor = new vtkActor(); outlineActor.SetMapper(outlineMapper); renWin.GetRenderer().AddActor(outlineActor); //Add the outline actor to the renderer, set the background and size renWin.GetRenderer().GetCullers().RemoveAllItems(); renWin.GetRenderer().SetBackground(0.1, 0.1, 0.2); } | 45477 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45477/a498c4a24d08be9a14ecb583bfc09eb98abb52e8/ImagePlaneWidget.java/clean/Wrapping/Java/ImagePlaneWidget.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
18893,
751,
12,
11734,
79,
2040,
751,
612,
13,
288,
565,
368,
1986,
5116,
18141,
19808,
584,
358,
999,
890,
31634,
622,
1245,
813,
565,
368,
464,
5571,
326,
6002,
310,
1353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18893,
751,
12,
11734,
79,
2040,
751,
612,
13,
288,
565,
368,
1986,
5116,
18141,
19808,
584,
358,
999,
890,
31634,
622,
1245,
813,
565,
368,
464,
5571,
326,
6002,
310,
1353,
... |
catch (StringIndexOutOfBoundsException ex) | catch (ArrayIndexOutOfBoundsException ex) | public void decodeMetacharacters() { try { decodeMetacharacters (0, this.length()); } catch (StringIndexOutOfBoundsException ex) { // Should never happen } } | 1346 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1346/1f5b4bc234b50dd553323beab1cde897792d8ce7/XStringBuffer.java/buggy/src/org/clapper/util/text/XStringBuffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2495,
12244,
497,
297,
9202,
1435,
565,
288,
3639,
775,
3639,
288,
5411,
2495,
12244,
497,
297,
9202,
261,
20,
16,
333,
18,
2469,
10663,
3639,
289,
3639,
1044,
261,
1076,
30548... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2495,
12244,
497,
297,
9202,
1435,
565,
288,
3639,
775,
3639,
288,
5411,
2495,
12244,
497,
297,
9202,
261,
20,
16,
333,
18,
2469,
10663,
3639,
289,
3639,
1044,
261,
1076,
30548... |
if (selectingView) { | if (selectedView != null) { | public void fill(Menu menu, int index) { // TODO Auto-generated method stub super.fill(menu, index); orientationItem = new MenuItem(menu, SWT.CASCADE, index++); { orientationItem.setText(WorkbenchMessages.FastViewBar_view_orientation); Menu orientationSwtMenu = new Menu(orientationItem); RadioMenu orientationMenu = new RadioMenu(orientationSwtMenu, currentOrientation); orientationMenu .addMenuItem( WorkbenchMessages.FastViewBar_horizontal, new Integer(SWT.HORIZONTAL)); orientationMenu .addMenuItem( WorkbenchMessages.FastViewBar_vertical, new Integer(SWT.VERTICAL)); orientationItem.setMenu(orientationSwtMenu); } restoreItem = new MenuItem(menu, SWT.CHECK, index++); restoreItem.setText(WorkbenchMessages.ViewPane_fastView); restoreItem.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { bar.restoreView(selectedView); } }); closeItem = new MenuItem(menu, SWT.NONE, index++); closeItem.setText(WorkbenchMessages.WorkbenchWindow_close); closeItem.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (selectedView != null) { WorkbenchPage page = bar.getWindow().getActiveWorkbenchPage(); if (page != null) { page.hideView(selectedView); } } } }); boolean selectingView = (selectedView != null); WorkbenchPage page = bar.getWindow().getActiveWorkbenchPage(); if (selectingView) { restoreItem.setEnabled(page!=null && page.isMoveable(selectedView)); } else { restoreItem.setEnabled(false); } restoreItem.setSelection(true); if (selectingView) { closeItem .setEnabled(page != null && page.isCloseable(selectedView)); } else { closeItem.setEnabled(false); } orientationItem.setEnabled(selectingView); if (selectingView) { // Set the new orientation, but avoid re-sending the event to our own // listener currentOrientation.set(bar.getOrientation(selectedView), orientationChangeListener); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a757d3b36b38a5a4ad0d10f0128d4188eecd198d/FastViewBarContextMenuContribution.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewBarContextMenuContribution.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3636,
12,
4599,
3824,
16,
509,
770,
13,
288,
3639,
368,
2660,
8064,
17,
11168,
707,
7168,
3639,
2240,
18,
5935,
12,
5414,
16,
770,
1769,
7734,
9820,
1180,
273,
394,
25085,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3636,
12,
4599,
3824,
16,
509,
770,
13,
288,
3639,
368,
2660,
8064,
17,
11168,
707,
7168,
3639,
2240,
18,
5935,
12,
5414,
16,
770,
1769,
7734,
9820,
1180,
273,
394,
25085,
12... |
if ( useTabbedChat ) tabbedFrame.addTab( channel ); else SwingUtilities.invokeLater( new CreateFrameRunnable( ChatFrame.class, new String [] { channel } ) ); | if ( shouldOpenWindow ) { if ( useTabbedChat ) tabbedFrame.addTab( channel ); else SwingUtilities.invokeLater( new CreateFrameRunnable( ChatFrame.class, new String [] { channel } ) ); } | public static void openInstantMessage( String channel ) { // If the window exists, don't open another one as it // just confuses the disposal issue if ( instantMessageBuffers.containsKey( channel ) ) return; try { if ( !isRunning ) return; LimitedSizeChatBuffer buffer = new LimitedSizeChatBuffer( KoLCharacter.getUsername() + ": " + channel + " - Started " + Calendar.getInstance().getTime().toString(), true, true ); instantMessageBuffers.put( channel, buffer ); if ( channel.startsWith( "/" ) ) currentlyActive.add( channel ); if ( useTabbedChat ) tabbedFrame.addTab( channel ); else SwingUtilities.invokeLater( new CreateFrameRunnable( ChatFrame.class, new String [] { channel } ) ); buffer.setActiveLogFile( getChatLogName( channel ) ); if ( highlighting && !channel.equals( "[highs]" ) ) buffer.applyHighlights(); } catch ( Exception e ) { // This should not happen. Therefore, print // a stack trace for debug purposes. printStackTrace( e ); } } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/911ed726f6ce75312f8ab7bd0e47f2e813c1af17/KoLMessenger.java/clean/src/net/sourceforge/kolmafia/KoLMessenger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1696,
10675,
1079,
12,
514,
1904,
262,
202,
95,
202,
202,
759,
971,
326,
2742,
1704,
16,
2727,
1404,
1696,
4042,
1245,
487,
518,
202,
202,
759,
2537,
2195,
6117,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1696,
10675,
1079,
12,
514,
1904,
262,
202,
95,
202,
202,
759,
971,
326,
2742,
1704,
16,
2727,
1404,
1696,
4042,
1245,
487,
518,
202,
202,
759,
2537,
2195,
6117,
326... |
public void set(org.quickfix.field.LegSymbol value) | public void set(quickfix.field.LegSymbol value) | public void set(org.quickfix.field.LegSymbol value) { setField(value); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusRequest.java/clean/src/java/src/quickfix/fix44/QuoteStatusRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
8329,
5335,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
8329,
5335,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for (int i=0; i<3; i++) { | for (int i=0; i<3; i++) { | protected void initFile(String id) throws FormatException, IOException { if (noPOI || needLegacy) { legacy.initFile(id); return; } close(); currentId = id; metadata = new Hashtable(); pixels = new Hashtable(); names = new Hashtable(); offsets = new Hashtable(); zIndices = new Vector(); cIndices = new Vector(); tIndices = new Vector(); nImages = 0; try { ras = new RandomAccessStream(id); // Don't uncomment this block. Even though OIBReader has something // like this, it's really a bad idea here. Every ZVI file we have *will* // break if you uncomment it. // //if (ras.length() % 4096 != 0) { // ras.setExtend((4096 - (int) (ras.length() % 4096))); //} r.setVar("fis", ras); r.exec("fs = new POIFSFileSystem(fis)"); r.exec("dir = fs.getRoot()"); parseDir(0, r.getVar("dir")); zSize = zIndices.size(); tSize = tIndices.size(); nChannels *= cIndices.size(); sizeX = new int[1]; sizeY = new int[1]; sizeZ = new int[1]; sizeC = new int[1]; sizeT = new int[1]; pixelType = new int[1]; currentOrder = new String[1]; sizeX[0] = width; sizeY[0] = height; sizeZ[0] = zSize; sizeC[0] = nChannels; sizeT[0] = tSize; Object check = metadata.get("Image Channel Index"); if (check != null && !check.toString().trim().equals("")) { int[] dims = {sizeZ[0], sizeC[0], sizeT[0]}; int max = 0, min = Integer.MAX_VALUE, maxNdx = 0, minNdx = 0; String[] axes = {"Z", "C", "T"}; for (int i=0; i<dims.length; i++) { if (dims[i] > max) { max = dims[i]; maxNdx = i; } if (dims[i] < min) { min = dims[i]; minNdx = i; } } int medNdx = 0; for (int i=0; i<3; i++) { if (i != maxNdx && i != minNdx) medNdx = i; } currentOrder[0] = "XY" + axes[maxNdx] + axes[medNdx] + axes[minNdx]; if (sizeZ[0] == sizeC[0] && sizeC[0] == sizeT[0]) { currentOrder[0] = legacy.getDimensionOrder(id); } } else currentOrder[0] = (zSize > tSize) ? "XYCZT" : "XYCTZ"; } catch (Throwable t) { needLegacy = true; if (DEBUG) t.printStackTrace(); initFile(id); } try { initMetadata(); } catch (Exception e) { } } | 46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/3dfd59718bd357815b599f69b2fb792dc8c85b62/ZeissZVIReader.java/clean/loci/formats/in/ZeissZVIReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
309,
261,
2135,
2419,
45,
747,
1608,
12235,
13,
288,
1377,
8866,
18,
2738,
812,
12,
350,
1769,
1377,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
309,
261,
2135,
2419,
45,
747,
1608,
12235,
13,
288,
1377,
8866,
18,
2738,
812,
12,
350,
1769,
1377,
327,
... |
protected IClass getComponentType2() { throw new RuntimeException(); } | protected IClass getComponentType2() { throw new RuntimeException("SNO: Non-array type has no component type"); } | protected IClass getComponentType2() { throw new RuntimeException(); } | 9453 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9453/9144825a0ce7c4e3f8cc307fff204eb4550cc555/UnitCompiler.java/buggy/janino/src/org/codehaus/janino/UnitCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
4750,
467,
797,
225,
23948,
22,
1435,
288,
604,
394,
3235,
5621,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4750,
467,
797,
225,
23948,
22,
1435,
288,
604,
394,
3235,
5621,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
int postServerNameIndex = requestURL.indexOf(serverName) + serverName.length(); config.setUrl(requestURL.substring(0, requestURL.indexOf(contextPath, postServerNameIndex) + contextPath.length())); | if(contextPath.length() == 0) { config.setUrl(requestURL.substring(0, requestURL.indexOf("/", postServerNameIndex))); } else { config.setUrl(requestURL.substring(0, requestURL.indexOf(contextPath, postServerNameIndex) + contextPath.length())); } | public void doFilter(ServletRequest req, ServletResponse response, FilterChain chain) throws IOException, ServletException { // make sure it's an http servlet request HttpServletRequest request = (HttpServletRequest) req; // get or create session and application object // create/get instance of current application HttpSession session = request.getSession(true); Application app = Application.getInstance(session); AppConfiguration config = app.getConfiguration(); String serverName = request.getServerName(); String requestURL = request.getRequestURL().toString(); String contextPath = request.getContextPath(); int postServerNameIndex = requestURL.indexOf(serverName) + serverName.length(); config.setUrl(requestURL.substring(0, requestURL.indexOf(contextPath, postServerNameIndex) + contextPath.length())); //System.out.println("base url: "+config.getUrl()); // make sure the request has a correct character encoding // the enc-wrapper ensures some methods return correct strings too try { request.setCharacterEncoding(config.getEncoding()); request = new EncRequestWrapper(request, request.getCharacterEncoding()); } catch (UnsupportedEncodingException e) { // do nothing ... } // get an instance of the user manager and check for a logged in user UserManager um = UserManager.getInstance(); User user = app.getUser(); if (user == null) { user = um.getUser(request, (HttpServletResponse)response); } app.setUser(user, session); session.setAttribute("app", app); session.setAttribute("space", SnipSpace.getInstance()); // why copy? because, getParamMap returns an unmodifyable map Map params = request.getParameterMap(); Iterator iterator = params.keySet().iterator(); Map paramMap = new HashMap(); while (iterator.hasNext()) { String key = (String) iterator.next(); String[] values = (String[]) params.get(key); paramMap.put(key, values[0]); } String path = request.getPathInfo(); String uri = (String) request.getAttribute("URI"); if (uri != null) { paramMap.put("URI", config.getUrl(uri)); } else { paramMap.put("URI", config.getUrl(request.getServletPath() + (path != null ? path : ""))); } paramMap.put("RSS", config.getUrl("/exec/rss")); app.setParameters(paramMap); // make sure we do not enter the default web application unless it's fully installed if(!config.isInstalled() && !path.startsWith("/install")) { ((HttpServletResponse)response).sendRedirect(request.getServletPath() + "/install"); return; } // apply the chain chain.doFilter(request, response); } | 6853 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6853/83d2370c4d1fa46d6ae4a56469233becfe16b780/InitFilter.java/buggy/src/org/snipsnap/net/filter/InitFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
1586,
12,
18572,
1111,
16,
7971,
1064,
766,
16,
4008,
3893,
2687,
13,
1216,
1860,
16,
16517,
288,
565,
368,
1221,
3071,
518,
1807,
392,
1062,
8100,
590,
565,
9984,
590,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
1586,
12,
18572,
1111,
16,
7971,
1064,
766,
16,
4008,
3893,
2687,
13,
1216,
1860,
16,
16517,
288,
565,
368,
1221,
3071,
518,
1807,
392,
1062,
8100,
590,
565,
9984,
590,
... |
if (aBonus.hasPreReqs()) | if ( bonus.qualifies(aPC) ) | public void activateBonuses(final PlayerCharacter aPC) { List aBonusList = getBonusList(); if (aBonusList == null) { return; } for (Iterator ab = aBonusList.iterator(); ab.hasNext();) { final BonusObj aBonus = (BonusObj) ab.next(); aBonus.setApplied(false); if (aBonus.hasPreReqs()) { //TODO: This is a hack to avoid VARs etc in feat defs being qualified // for when Bypass feat prereqs is selected. Should we be passing in // the BonusObj here to allow it to be referenced in Qualifies statements? if (PrereqHandler.passesAll(aBonus.getPrereqList(), aPC, null)) { aBonus.setApplied(true); } else { aBonus.setApplied(false); } } else { aBonus.setApplied(true); } } } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/088c15261d01327bce6f44925516d0287dc266cb/PointBuyMethod.java/buggy/code/src/java/pcgen/core/PointBuyMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10235,
38,
265,
6117,
12,
6385,
19185,
7069,
279,
3513,
13,
202,
95,
202,
202,
682,
279,
38,
22889,
682,
273,
2882,
22889,
682,
5621,
202,
202,
430,
261,
69,
38,
22889,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10235,
38,
265,
6117,
12,
6385,
19185,
7069,
279,
3513,
13,
202,
95,
202,
202,
682,
279,
38,
22889,
682,
273,
2882,
22889,
682,
5621,
202,
202,
430,
261,
69,
38,
22889,
... |
if (buffer == null) | if (buffer == null) { | private static final String escape(final String rawText) { // defer initialization of a StringBuffer until we know we need one StringBuffer buffer = null; for (int i = 0; i < rawText.length(); i++) { char c = rawText.charAt(i); switch (c) { case CommandManager.PARAMETER_START_CHAR: case CommandManager.PARAMETER_END_CHAR: case CommandManager.ID_VALUE_CHAR: case CommandManager.PARAMETER_SEPARATOR_CHAR: case CommandManager.ESCAPE_CHAR: if (buffer == null) buffer = new StringBuffer(rawText.substring(0, i)); buffer.append(CommandManager.ESCAPE_CHAR); buffer.append(c); break; default: if (buffer != null) buffer.append(c); break; } } if (buffer == null) return rawText; return buffer.toString(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/89b4a849cd34ceb44f4bc6468518cca6c64845a5/ParameterizedCommand.java/buggy/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/ParameterizedCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
727,
514,
4114,
12,
6385,
514,
1831,
1528,
13,
288,
202,
202,
759,
2220,
10313,
434,
279,
6674,
3180,
732,
5055,
732,
1608,
1245,
202,
202,
780,
1892,
1613,
273,
446,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
727,
514,
4114,
12,
6385,
514,
1831,
1528,
13,
288,
202,
202,
759,
2220,
10313,
434,
279,
6674,
3180,
732,
5055,
732,
1608,
1245,
202,
202,
780,
1892,
1613,
273,
446,
31... |
public void mWS() throws RecognitionException { try { ruleNestingLevel++; int _type = WS; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1320:17: ( ( ' ' | '\\t' | '\\f' | EOL ) ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1320:17: ( ' ' | '\\t' | '\\f' | EOL ) { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1320:17: ( ' ' | '\\t' | '\\f' | EOL ) int alt1=4; switch ( input.LA(1) ) { case ' ': alt1=1; break; case '\t': alt1=2; break; case '\f': alt1=3; break; case '\n': case '\r': alt1=4; break; default: if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("1320:17: ( ' ' | '\\t' | '\\f' | EOL )", 1, 0, input); throw nvae; } switch (alt1) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1320:19: ' ' { match(' '); if (failed) return ; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1321:19: '\\t' { match('\t'); if (failed) return ; } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1322:19: '\\f' { match('\f'); if (failed) return ; } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1323:19: EOL { mEOL(); if (failed) return ; } break; } if ( backtracking==0 ) { _channel=HIDDEN; } } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/d92dc116c388103ddf04d98d53904a6fdc204af5/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
2651,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
7649,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621,
5411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
2651,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
7649,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621,
5411,... | ||
System.err.println("Password wrong!"); | Debug.err("Password wrong!"); | protected void drawDialog() { GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); c.insets.top = 5; c.insets.bottom = 5; c.anchor = GridBagConstraints.WEST; // Create JTabbedPane JTabbedPane tpane = new JTabbedPane(JTabbedPane.TOP); JPanel boxpane = new JPanel(gridbag); JPanel phonepane = new JPanel(gridbag); JPanel otherpane = new JPanel(); JPanel quickdialpane = new JPanel(gridbag); JPanel sippane = new JPanel(); tpane.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); boxpane.setBorder(BorderFactory.createEmptyBorder(10, 20, 5, 20)); JLabel label; okButton = new JButton("Okay"); cancelButton = new JButton("Abbruch"); timerSlider = new JSlider(0, 120, 30); timerSlider.setPaintTicks(true); timerSlider.setMinorTickSpacing(10); timerSlider.setMajorTickSpacing(30); timerSlider.setPaintLabels(true); KeyListener keyListener = (new KeyAdapter() { public void keyPressed(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_ESCAPE || (e.getSource() == cancelButton && e.getKeyCode() == KeyEvent.VK_ENTER)) { pressed_OK = false; ConfigDialog.this.setVisible(false); } if (e.getSource() == okButton && e.getKeyCode() == KeyEvent.VK_ENTER) { pressed_OK = true; ConfigDialog.this.setVisible(false); } } }); ActionListener actionListener = new ActionListener() { public void actionPerformed(ActionEvent e) { Object source = e.getSource(); pressed_OK = (source == pass || source == okButton); if (source == pass || source == okButton || source == cancelButton) { ConfigDialog.this.setVisible(false); } else if (e.getActionCommand().equals("detectboxtype")) { try { firmware = FritzBoxFirmware.detectFirmwareVersion( address.getText(), new String(pass .getPassword())); // firmware = new FritzBoxFirmware("14", "1", "35"); setBoxTypeLabel(); } catch (WrongPasswordException e1) { System.err.println("Password wrong!"); boxtypeLabel.setForeground(Color.RED); boxtypeLabel.setText("Passwort ungltig!"); firmware = null; } catch (IOException e1) { System.err.println("Address wrong!"); boxtypeLabel.setForeground(Color.RED); boxtypeLabel.setText("Box-Adresse ungltig!"); firmware = null; } } else if (e.getActionCommand().equals("fetchSIP")) { try { Vector data = JFritzUtils.retrieveSipProvider(address .getText(), new String(pass.getPassword()), firmware); sipmodel.setData(data); sipmodel.fireTableDataChanged(); } catch (WrongPasswordException e1) { System.err.println("Password wrong"); } catch (IOException e1) { System.err.println("Box address wrong"); } } } }; c.gridy = 1; ImageIcon boxicon = new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/fritzbox.png"))); label = new JLabel(""); label.setIcon(boxicon); gridbag.setConstraints(label, c); boxpane.add(label); label = new JLabel("FRITZ!-Box-Einstellungen"); gridbag.setConstraints(label, c); boxpane.add(label); c.gridy = 2; label = new JLabel("Addresse: "); gridbag.setConstraints(label, c); boxpane.add(label); address = new JTextField("", 16); gridbag.setConstraints(address, c); boxpane.add(address); c.gridy = 3; label = new JLabel("Passwort: "); gridbag.setConstraints(label, c); boxpane.add(label); pass = new JPasswordField("", 16); gridbag.setConstraints(pass, c); boxpane.add(pass); c.gridy = 4; boxtypeButton = new JButton("Typ erkennen"); boxtypeButton.setActionCommand("detectboxtype"); boxtypeButton.addActionListener(actionListener); gridbag.setConstraints(boxtypeButton, c); boxpane.add(boxtypeButton); boxtypeLabel = new JLabel(); gridbag.setConstraints(boxtypeLabel, c); boxpane.add(boxtypeLabel); c.gridy = 1; label = new JLabel("Ortsvorwahl: "); gridbag.setConstraints(label, c); phonepane.add(label); areaCode = new JTextField("", 6); gridbag.setConstraints(areaCode, c); phonepane.add(areaCode); c.gridy = 2; label = new JLabel("Landesvorwahl: "); gridbag.setConstraints(label, c); phonepane.add(label); countryCode = new JTextField("", 3); gridbag.setConstraints(countryCode, c); phonepane.add(countryCode); c.gridy = 3; label = new JLabel("Orts-Prefix: "); gridbag.setConstraints(label, c); phonepane.add(label); areaPrefix = new JTextField("", 3); gridbag.setConstraints(areaPrefix, c); phonepane.add(areaPrefix); c.gridy = 4; label = new JLabel("Landes-Prefix: "); gridbag.setConstraints(label, c); phonepane.add(label); countryPrefix = new JTextField("", 3); gridbag.setConstraints(countryPrefix, c); phonepane.add(countryPrefix); otherpane.setLayout(new BoxLayout(otherpane, BoxLayout.Y_AXIS)); label = new JLabel("Timer (in min): "); otherpane.add(label); otherpane.add(timerSlider); fetchAfterStartButton = new JCheckBox("Nach Programmstart Liste holen"); otherpane.add(fetchAfterStartButton); // TODO Make this work :) fetchAfterStartButton.setEnabled(false); deleteAfterFetchButton = new JCheckBox("Nach Laden auf Box lschen"); otherpane.add(deleteAfterFetchButton); // TODO Make this work :) deleteAfterFetchButton.setEnabled(false); notifyOnCallsButton = new JCheckBox("Bei neuen Anrufen benachrichtigen"); otherpane.add(notifyOnCallsButton); // TODO Make this work :) // notifyOnCallsButton.setEnabled(false); // Create SIP Panel // TODO: To do it :-) JPanel sipButtonPane = new JPanel(); sipmodel = new SipProviderTableModel(); JTable siptable = new JTable(sipmodel) { public Component prepareRenderer(TableCellRenderer renderer, int rowIndex, int vColIndex) { Component c = super.prepareRenderer(renderer, rowIndex, vColIndex); if (rowIndex % 2 == 0 && !isCellSelected(rowIndex, vColIndex)) { c.setBackground(new Color(255, 255, 200)); } else if (!isCellSelected(rowIndex, vColIndex)) { // If not shaded, match the table's background c.setBackground(getBackground()); } else { c.setBackground(new Color(204, 204, 255)); } return c; } }; siptable.setRowHeight(24); siptable.setFocusable(false); siptable.setAutoCreateColumnsFromModel(false); siptable.setColumnSelectionAllowed(false); siptable.setCellSelectionEnabled(false); siptable.setRowSelectionAllowed(true); siptable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); siptable.getColumnModel().getColumn(0).setMinWidth(20); siptable.getColumnModel().getColumn(0).setMaxWidth(20); siptable.getColumnModel().getColumn(1).setMinWidth(40); siptable.getColumnModel().getColumn(1).setMaxWidth(40); siptable.setSize(200, 200); JButton b1 = new JButton("Von der Box holen"); b1.setActionCommand("fetchSIP"); b1.addActionListener(actionListener); JButton b2 = new JButton("Auf die Box speichern"); b2.setEnabled(false); sipButtonPane.add(b1); sipButtonPane.add(b2); sippane.setLayout(new BorderLayout()); sippane.add(sipButtonPane, BorderLayout.NORTH); sippane.add(new JScrollPane(siptable), BorderLayout.CENTER); // Create OK/Cancel Panel c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.CENTER; JPanel okcancelpanel = new JPanel(); okButton.addActionListener(actionListener); okButton.addKeyListener(keyListener); okcancelpanel.add(okButton); cancelButton.addActionListener(actionListener); cancelButton.addKeyListener(keyListener); cancelButton.setMnemonic(KeyEvent.VK_ESCAPE); okcancelpanel.add(cancelButton); gridbag.setConstraints(okcancelpanel, c); tpane.addTab("FRITZ!Box", boxpane); // TODO I18N tpane.addTab("Telefon", phonepane); tpane.addTab("SIP-Nummern", sippane); tpane.addTab("Weiteres", otherpane); getContentPane().setLayout(new BorderLayout()); getContentPane().add(tpane, BorderLayout.CENTER); getContentPane().add(okcancelpanel, BorderLayout.SOUTH); addKeyListener(keyListener); setSize(new Dimension(480, 350)); setResizable(false); // pack(); } | 7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/2dd51410fd8b2501070bf063bb67caba59b8e1fe/ConfigDialog.java/clean/jfritz/src/de/moonflower/jfritz/ConfigDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3724,
6353,
1435,
288,
202,
202,
6313,
5013,
3744,
3068,
22551,
273,
394,
7145,
5013,
3744,
5621,
202,
202,
6313,
6852,
276,
273,
394,
13075,
5621,
202,
202,
71,
18,
267,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3724,
6353,
1435,
288,
202,
202,
6313,
5013,
3744,
3068,
22551,
273,
394,
7145,
5013,
3744,
5621,
202,
202,
6313,
6852,
276,
273,
394,
13075,
5621,
202,
202,
71,
18,
267,
... |
List constantNames = new ArrayList(); | ArrayList constantNames = new ArrayList(); | public RubyArray constants() { List constantNames = new ArrayList(); Iterator iter = getRuby().getClasses().nameIterator(); while (iter.hasNext()) { String name = (String) iter.next(); if (IdUtil.isConstant(name)) { constantNames.add(RubyString.newString(getRuby(), name)); } } return RubyArray.newArray(getRuby(), constantNames); } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/a42a5780d9d19f5b3f27bdc079684319c5596e54/RubyModule.java/buggy/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
6810,
1435,
288,
3639,
2407,
5381,
1557,
273,
394,
2407,
5621,
3639,
4498,
1400,
273,
4170,
10340,
7675,
588,
4818,
7675,
529,
3198,
5621,
3639,
1323,
261,
2165,
18,
5332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
6810,
1435,
288,
3639,
2407,
5381,
1557,
273,
394,
2407,
5621,
3639,
4498,
1400,
273,
4170,
10340,
7675,
588,
4818,
7675,
529,
3198,
5621,
3639,
1323,
261,
2165,
18,
5332... |
Callback each_object = new ReflectionCallbackMethod(RubyObjectSpace.class, "each_object", true, true); | Callback each_object = CallbackFactory.getOptSingletonMethod(RubyObjectSpace.class, "each_object"); | public static RubyModule createObjectSpaceModule(Ruby ruby) { Callback each_object = new ReflectionCallbackMethod(RubyObjectSpace.class, "each_object", true, true); RubyModule objectSpaceModule = ruby.defineModule("ObjectSpace"); objectSpaceModule.defineModuleFunction("each_object", each_object); return objectSpaceModule; } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/RubyObjectSpace.java/buggy/org/jruby/RubyObjectSpace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
3120,
17109,
3819,
3120,
12,
54,
10340,
22155,
13,
288,
3639,
8444,
1517,
67,
1612,
273,
8444,
1733,
18,
588,
6179,
19571,
1305,
12,
54,
10340,
921,
3819,
18,
1106,
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,
760,
19817,
3120,
17109,
3819,
3120,
12,
54,
10340,
22155,
13,
288,
3639,
8444,
1517,
67,
1612,
273,
8444,
1733,
18,
588,
6179,
19571,
1305,
12,
54,
10340,
921,
3819,
18,
1106,
16,
... |
.getDays().get(week * daysOfWeek.length + slot), examsMap, user,locale)); | .getDays().get(week * daysOfWeek.length + slot), examsMap, user,pageContext)); | private void renderExamsForRowOfDays(StringBuffer strBuffer, int week,Locale locale) { for (int slot = 0; slot < daysOfWeek.length; slot++) { ExamsMapSlot examsMapSlot = (ExamsMapSlot) examsMap.getDays().get( week * daysOfWeek.length + slot); String classCSS = "exam_cell_content"; if (examsMapSlot.getDay().get(Calendar.DAY_OF_WEEK) == Calendar.MONDAY) { classCSS += "_first"; } if (week == numberOfWeks - 1) { classCSS += "_bottom"; } strBuffer.append("<td ").append("class='").append(classCSS).append("'>"); strBuffer.append(examsMapSlotContentRenderer.renderDayContents((ExamsMapSlot) examsMap .getDays().get(week * daysOfWeek.length + slot), examsMap, user,locale)); strBuffer.append("</td>"); } } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/3a8a05324ca0e51b162a29d2187e807ce815473d/ExamsMapForRoomRenderer.java/clean/src/net/sourceforge/fenixedu/presentationTier/TagLib/sop/examsMapNew/ExamsMapForRoomRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1743,
424,
301,
28388,
1999,
951,
9384,
12,
780,
1892,
609,
1892,
16,
509,
4860,
16,
3916,
2573,
13,
288,
3639,
364,
261,
474,
4694,
273,
374,
31,
4694,
411,
4681,
12250,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1743,
424,
301,
28388,
1999,
951,
9384,
12,
780,
1892,
609,
1892,
16,
509,
4860,
16,
3916,
2573,
13,
288,
3639,
364,
261,
474,
4694,
273,
374,
31,
4694,
411,
4681,
12250,
18,... |
if ( !messages.isEmpty() ) | if ( messages != null && !messages.isEmpty() ) | private String getValidationMessages( ScmRepositoryException ex ) { List messages = ex.getValidationMessages(); StringBuffer message = new StringBuffer(); if ( !messages.isEmpty() ) { for ( Iterator i = messages.iterator(); i.hasNext(); ) { message.append( (String) i.next() ); if ( i.hasNext() ) { message.append( System.getProperty( "line.separator" ) ); } } } return message.toString(); } | 48499 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48499/7fb976baf6cb13756a09081ec01079ae877f2c31/DefaultContinuumScm.java/clean/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
23315,
5058,
12,
2850,
81,
3305,
503,
431,
262,
565,
288,
3639,
987,
2743,
273,
431,
18,
588,
4354,
5058,
5621,
3639,
6674,
883,
273,
394,
6674,
5621,
3639,
309,
261,
2743,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
23315,
5058,
12,
2850,
81,
3305,
503,
431,
262,
565,
288,
3639,
987,
2743,
273,
431,
18,
588,
4354,
5058,
5621,
3639,
6674,
883,
273,
394,
6674,
5621,
3639,
309,
261,
2743,
4... |
protected List getExpressionResultType(IASTExpression expression){ | protected List getExpressionResultType(IASTExpression expression, ISymbol symbol){ | protected List getExpressionResultType(IASTExpression expression){ List result = new ArrayList(); if (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_EMPTY) { TypeInfo info = new TypeInfo(); info.setType(TypeInfo.t_void); result.add(info); return result; } if (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_INTEGER_LITERAL) { TypeInfo info = new TypeInfo(); info.setType(TypeInfo.t_int); result.add(info); return result; } if (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_CHAR_LITERAL){ TypeInfo info = new TypeInfo(); info.setType(TypeInfo.t_char); result.add(info); return result; } if (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_FLOAT_LITERAL){ TypeInfo info = new TypeInfo(); info.setType(TypeInfo.t_float); result.add(info); return result; } if (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_BOOLEAN_LITERAL){ TypeInfo info = new TypeInfo(); info.setType(TypeInfo.t_bool); result.add(info); return result; } if ((expression.getExpressionKind() == IASTExpression.Kind.ADDITIVE_PLUS) || (expression.getExpressionKind() == IASTExpression.Kind.ADDITIVE_MINUS) ){ ASTExpression right = (ASTExpression)expression.getLHSExpression(); ASTExpression left = (ASTExpression)expression.getRHSExpression(); if((right != null) && (left != null)){ TypeInfo rightType =(TypeInfo)right.getResultType().iterator().next(); TypeInfo leftType =(TypeInfo)left.getResultType().iterator().next(); if ( rightType.equals(leftType) ){ result.add(rightType); } else { // TODO: two different types added or subtracted } } } if(expression.getExpressionKind() == IASTExpression.Kind.EXPRESSIONLIST){ if(expression.getLHSExpression() != null){ Iterator i = ((ASTExpression)expression.getLHSExpression()).getResultType().iterator(); while (i.hasNext()){ result.add(i.next()); } } if(expression.getRHSExpression() != null){ Iterator i = ((ASTExpression)expression.getRHSExpression()).getResultType().iterator(); while (i.hasNext()){ result.add(i.next()); } } return result; } if(expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_FUNCTIONCALL){ TypeInfo type = new TypeInfo(); type.setType(TypeInfo.t_function); result.add(type); return result; } return result; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/63ed749357ed988bf6ae697762eddfe2f37ae0bb/CompleteParseASTFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
16183,
1253,
559,
12,
45,
9053,
2300,
2652,
15329,
202,
202,
682,
563,
273,
394,
2407,
5621,
9506,
202,
430,
261,
8692,
18,
588,
2300,
5677,
1435,
422,
467,
9053,
2300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
16183,
1253,
559,
12,
45,
9053,
2300,
2652,
15329,
202,
202,
682,
563,
273,
394,
2407,
5621,
9506,
202,
430,
261,
8692,
18,
588,
2300,
5677,
1435,
422,
467,
9053,
2300,
... |
/*theDispatcher.stop(); try { criticalThreads.destroy(); } catch(IllegalThreadStateException itse) { System.out.println("Time-critical threads still active: "); criticalThreads.list(); } finally { criticalThreads = null; } */ | void endContainer() { --activeContainers; if(activeContainers == 0) { /*theDispatcher.stop(); try { criticalThreads.destroy(); } catch(IllegalThreadStateException itse) { System.out.println("Time-critical threads still active: "); criticalThreads.list(); } finally { criticalThreads = null; } */ if(closeVM) { Thread t = new Thread(new Runnable() { public void run() { System.exit(0); } } ); t.start(); } } } | 5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/a1b050863c4132c911b4def72b2c4ffe06daa529/Runtime.java/buggy/src/jade/core/Runtime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
679,
2170,
1435,
288,
565,
1493,
3535,
11177,
31,
565,
309,
12,
3535,
11177,
422,
374,
13,
288,
377,
202,
20308,
5787,
6681,
18,
5681,
5621,
5411,
775,
288,
202,
28000,
13233,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
679,
2170,
1435,
288,
565,
1493,
3535,
11177,
31,
565,
309,
12,
3535,
11177,
422,
374,
13,
288,
377,
202,
20308,
5787,
6681,
18,
5681,
5621,
5411,
775,
288,
202,
28000,
13233,
18,
... | |
if(outputMark > off) { if(outputMark >= off + len) { | if (outputMark > off) { if (outputMark >= off + len) { | public synchronized void removeUpdate(DocumentEvent e) { int len = e.getLength(); int off = e.getOffset(); if(outputMark > off) { if(outputMark >= off + len) { outputMark -= len; } else { outputMark = off; } } } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1206,
1891,
12,
2519,
1133,
425,
13,
288,
3639,
509,
562,
273,
425,
18,
588,
1782,
5621,
3639,
509,
3397,
273,
425,
18,
588,
2335,
5621,
3639,
309,
12,
2844,
3882,
405,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1206,
1891,
12,
2519,
1133,
425,
13,
288,
3639,
509,
562,
273,
425,
18,
588,
1782,
5621,
3639,
509,
3397,
273,
425,
18,
588,
2335,
5621,
3639,
309,
12,
2844,
3882,
405,... |
return new ForEachNode(parse(children), parse(next), select, sortKeys); | ForEachNode ret = new ForEachNode(select, sortKeys); ret.children = parse(children); return ret; | final TemplateNode parseForEach(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); List sortKeys = parseSortKeys(children); Expr select = (Expr) xpath.compile(s); return new ForEachNode(parse(children), parse(next), select, sortKeys); } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/363fe84fd732aa8ca3562fb0734fe48ee20c2c65/Stylesheet.java/clean/libraries/javalib/gnu/xml/transform/Stylesheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
5035,
907,
1109,
1290,
3442,
12,
907,
756,
16,
2029,
2325,
16,
2029,
1024,
13,
565,
1216,
11519,
10737,
16,
10172,
2300,
503,
225,
288,
565,
9796,
907,
863,
3422,
273,
756,
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,
282,
727,
5035,
907,
1109,
1290,
3442,
12,
907,
756,
16,
2029,
2325,
16,
2029,
1024,
13,
565,
1216,
11519,
10737,
16,
10172,
2300,
503,
225,
288,
565,
9796,
907,
863,
3422,
273,
756,
18,
588... |
buf.append( this.getRawData( viewableData ) ); | buf.append( this.getRawData( viewableData ).toString() ); | public int doEndTag() throws JspException { HttpServletResponse res = (HttpServletResponse)this.pageContext.getResponse(); JspWriter out = pageContext.getOut(); List viewableData = this.getViewableData(); // Load our table decorator if it is requested //this.dec = this.loadDecorator(); //if( this.dec != null ) this.dec.init( this.pageContext, viewableData );// this.filterDataIfNeeded( viewableData ); // Figure out how we should sort this data, typically we just sort // the data being shown, but the programmer can override this behavior if( prop.getProperty( "sort.behavior" ).equals( "page" ) ) { this.sortDataIfNeeded( viewableData ); } // Figure out where this data is going, if this is an export, then // we don't add the header and footer information StringBuffer buf = new StringBuffer( 8000 ); // Get the data back in the representation that the user is after, do they // want HTML/XML/CSV/PDF/etc... if( this.exportType == EXPORT_TYPE_NONE ) { buf.append( this.getHTMLData( viewableData ) ); } else if( this.exportType == EXPORT_TYPE_CSV ) { buf.append( this.getRawData( viewableData ) ); } else if( this.exportType == EXPORT_TYPE_EXCEL ) { buf.append( this.getExcelData( viewableData ) ); } else if( this.exportType == EXPORT_TYPE_XML ) { buf.append( this.getXMLData( viewableData ) ); } // FIXME - Narayan had code to show raw data via an attribute, I've // broken it and need to fix it... // When writing the data, if it it's a normal HTML display, then go ahead // and write the data within the context of the web page, for any of the // other export types, we need to clear our buffer before we can write // out the data int returnValue = EVAL_PAGE; if( this.exportType == EXPORT_TYPE_NONE ) { write( buf ); } else { // If we can't clear the buffer, then the user needs to increase their // buffer size or something so that this will work. try { out.clear(); if( this.exportType == EXPORT_TYPE_CSV ) { res.setContentType( prop.getProperty( "export.csv.mimetype" ) ); out.write( buf.toString() ); out.flush(); } else if( this.exportType == EXPORT_TYPE_EXCEL ) { res.setContentType( prop.getProperty( "export.excel.mimetype" ) ); out.write( buf.toString() ); out.flush(); } else if( this.exportType == EXPORT_TYPE_XML ) { res.setContentType( prop.getProperty( "export.xml.mimetype" ) ); out.write( buf.toString() ); out.flush(); } returnValue = SKIP_PAGE; } catch( java.io.IOException ioe ) { // FIXME - Beef up this error message and give the user some hints // on what they can do to resolve this... write( ioe.toString() ); } } return returnValue; } | 10316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10316/bedf282fd6019fb46eabedf921e13b56106629f2/TableTag.java/clean/_OLD/displaytag08/src/org/apache/taglibs/display/TableTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
509,
741,
25633,
1435,
1216,
27485,
282,
288,
1377,
12446,
400,
273,
261,
2940,
29910,
13,
2211,
18,
2433,
1042,
18,
588,
1064,
5621,
1377,
19300,
2289,
596,
273,
21442,
18,
588,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
509,
741,
25633,
1435,
1216,
27485,
282,
288,
1377,
12446,
400,
273,
261,
2940,
29910,
13,
2211,
18,
2433,
1042,
18,
588,
1064,
5621,
1377,
19300,
2289,
596,
273,
21442,
18,
588,
11... |
return new InserterContext(client, bucketFactory, random, INSERT_RETRIES, CONSECUTIVE_RNFS_ASSUME_SUCCESS, SPLITFILE_INSERT_THREADS, SPLITFILE_BLOCKS_PER_SEGMENT, SPLITFILE_CHECK_BLOCKS_PER_SEGMENT, globalEventProducer, insertStarter, cacheLocalRequests); | return new InserterContext(bucketFactory, random, INSERT_RETRIES, CONSECUTIVE_RNFS_ASSUME_SUCCESS, SPLITFILE_INSERT_THREADS, SPLITFILE_BLOCKS_PER_SEGMENT, SPLITFILE_CHECK_BLOCKS_PER_SEGMENT, globalEventProducer, cacheLocalRequests); | public InserterContext getInserterContext() { return new InserterContext(client, bucketFactory, random, INSERT_RETRIES, CONSECUTIVE_RNFS_ASSUME_SUCCESS, SPLITFILE_INSERT_THREADS, SPLITFILE_BLOCKS_PER_SEGMENT, SPLITFILE_CHECK_BLOCKS_PER_SEGMENT, globalEventProducer, insertStarter, cacheLocalRequests); } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/d32229c02576d531c915059f111c468591f30e84/HighLevelSimpleClientImpl.java/buggy/src/freenet/client/HighLevelSimpleClientImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
657,
550,
387,
1042,
7854,
550,
387,
1042,
1435,
288,
202,
202,
2463,
394,
657,
550,
387,
1042,
12,
2625,
16,
2783,
1733,
16,
2744,
16,
14834,
67,
862,
6566,
3991,
16,
3492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
657,
550,
387,
1042,
7854,
550,
387,
1042,
1435,
288,
202,
202,
2463,
394,
657,
550,
387,
1042,
12,
2625,
16,
2783,
1733,
16,
2744,
16,
14834,
67,
862,
6566,
3991,
16,
3492,
... |
FileWriter writer = new FileWriter(path); | Writer writer = generator.getWriter(path, outputEncoding); | public void execute () throws BuildException { // Make sure the template path is set. if (templatePath == null && useClasspath == false) { throw new BuildException( "The template path needs to be defined if you are not using " + "the classpath for locating templates!"); } // Make sure the control template is set. if (controlTemplate == null) { throw new BuildException("The control template needs to be defined!"); } // Make sure the output directory is set. if (outputDirectory == null) { throw new BuildException("The output directory needs to be defined!"); } // Make sure there is an output file. if (outputFile == null) { throw new BuildException("The output file needs to be defined!"); } try { // Setup the Velocity Runtime. if (templatePath != null) { log("Using templatePath: " + templatePath, project.MSG_VERBOSE); Velocity.setProperty( Velocity.FILE_RESOURCE_LOADER_PATH, templatePath); } if (useClasspath) { log("Using classpath"); Velocity.addProperty( Velocity.RESOURCE_LOADER, "classpath"); Velocity.setProperty( "classpath." + Velocity.RESOURCE_LOADER + ".class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader"); Velocity.setProperty( "classpath." + Velocity.RESOURCE_LOADER + ".cache", "false"); Velocity.setProperty( "classpath." + Velocity.RESOURCE_LOADER + ".modificationCheckInterval", "2"); } Velocity.init(); // Create the text generator. Generator generator = Generator.getInstance(); generator.setOutputPath(outputDirectory); if (templatePath != null) { generator.setTemplatePath(templatePath); } // Make sure the output directory exists, if it doesn't // then create it. File file = new File(outputDirectory); if (! file.exists()) { file.mkdirs(); } String path = outputDirectory + File.separator + outputFile; log("Generating to file " + path, project.MSG_INFO); FileWriter writer = new FileWriter(path); // The generator and the output path should // be placed in the init context here and // not in the generator class itself. Context c = initControlContext(); // Everything in the generator class should be // pulled out and placed in here. What the generator // class does can probably be added to the Velocity // class and the generator class can probably // be removed all together. populateInitialContext(c); // Feed all the options into the initial // control context so they are available // in the control/worker templates. if (contextProperties != null) { Iterator i = contextProperties.getKeys(); while (i.hasNext()) { String property = (String) i.next(); String value = contextProperties.getString(property); // Now lets quickly check to see if what // we have is numeric and try to put it // into the context as an Integer. try { c.put(property, new Integer(value)); } catch (NumberFormatException nfe) { // Now we will try to place the value into // the context as a boolean value if it // maps to a valid boolean value. String booleanString = contextProperties.testBoolean(value); if (booleanString != null) { c.put(property, new Boolean(booleanString)); } else { // We are going to do something special // for properties that have a "file.contents" // suffix: for these properties will pull // in the contents of the file and make // them available in the context. So for // a line like the following in a properties file: // // license.file.contents = license.txt // // We will pull in the contents of license.txt // and make it available in the context as // $license. This should make texen a little // more flexible. if (property.endsWith("file.contents")) { // We need to turn the license file from relative to // absolute, and let Ant help :) value = StringUtils.fileContentsToString( project.resolveFile(value).getCanonicalPath()); property = property.substring( 0, property.indexOf("file.contents") - 1); } c.put(property, value); } } } } writer.write(generator.parse(controlTemplate, c)); writer.flush(); writer.close(); generator.shutdown(); cleanup(); } catch( BuildException e) { throw e; } catch( MethodInvocationException e ) { throw new BuildException( "Exception thrown by '" + e.getReferenceName() + "." + e.getMethodName() +"'" + ERR_MSG_FRAGMENT, e.getWrappedThrowable()); } catch( ParseErrorException e ) { throw new BuildException("Velocity syntax error" + ERR_MSG_FRAGMENT ,e); } catch( ResourceNotFoundException e ) { throw new BuildException("Resource not found" + ERR_MSG_FRAGMENT,e); } catch( Exception e ) { throw new BuildException("Generation failed" + ERR_MSG_FRAGMENT ,e); } } | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/a54e47c697089c704677d741858fced6e53b9868/TexenTask.java/buggy/src/java/org/apache/velocity/texen/ant/TexenTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1832,
540,
1216,
18463,
565,
288,
3639,
368,
4344,
3071,
326,
1542,
589,
353,
444,
18,
3639,
309,
261,
3202,
743,
422,
446,
597,
999,
17461,
422,
629,
13,
3639,
288,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1832,
540,
1216,
18463,
565,
288,
3639,
368,
4344,
3071,
326,
1542,
589,
353,
444,
18,
3639,
309,
261,
3202,
743,
422,
446,
597,
999,
17461,
422,
629,
13,
3639,
288,
54... |
return warFile != model.getProperty(IWebComponentImportDataModelProperties.FILE); | return warFile != model.getProperty(IJ2EEComponentImportDataModelProperties.FILE); | public boolean isEARFileChanged() { return warFile != model.getProperty(IWebComponentImportDataModelProperties.FILE); } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/5daf0c09ec301bd069d50740b0556b101745ec89/WebComponentImportWebLibsPage.java/clean/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/WebComponentImportWebLibsPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
9250,
812,
5033,
1435,
288,
202,
202,
2463,
21983,
812,
480,
938,
18,
588,
1396,
12,
45,
4079,
1841,
5010,
26349,
2297,
18,
3776,
1769,
202,
97,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
9250,
812,
5033,
1435,
288,
202,
202,
2463,
21983,
812,
480,
938,
18,
588,
1396,
12,
45,
4079,
1841,
5010,
26349,
2297,
18,
3776,
1769,
202,
97,
2,
-100,
-100,
-100... |
_t = __t862; | _t = __t369; | public final Expression generalComp(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; AST generalComp_AST_in = (AST)_t; step= null; PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQ: { AST __t860 = _t; AST tmp45_AST_in = (AST)_t; match(_t,EQ); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.EQ); path.add(step); _t = __t860; _t = _t.getNextSibling(); break; } case NEQ: { AST __t861 = _t; AST tmp46_AST_in = (AST)_t; match(_t,NEQ); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.NEQ); path.add(step); _t = __t861; _t = _t.getNextSibling(); break; } case LT: { AST __t862 = _t; AST tmp47_AST_in = (AST)_t; match(_t,LT); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.LT); path.add(step); _t = __t862; _t = _t.getNextSibling(); break; } case LTEQ: { AST __t863 = _t; AST tmp48_AST_in = (AST)_t; match(_t,LTEQ); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.LTEQ); path.add(step); _t = __t863; _t = _t.getNextSibling(); break; } case GT: { AST __t864 = _t; AST tmp49_AST_in = (AST)_t; match(_t,GT); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.GT); path.add(step); _t = __t864; _t = _t.getNextSibling(); break; } case GTEQ: { AST __t865 = _t; AST tmp50_AST_in = (AST)_t; match(_t,GTEQ); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.GTEQ); path.add(step); _t = __t865; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/722cca774247887cf67fef993c71f848a05e075f/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
7470,
2945,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
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,
727,
5371,
225,
7470,
2945,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2... |
AttachmentBundle bundle = new AttachmentBundle(); | AttachmentBundle bundle = new AttachmentBundle((MimeMessage)m); | public static AttachmentBundle parseAttachments(Message m) throws MessagingException { try { AttachmentBundle bundle = new AttachmentBundle(); String contentType = ((MimeMessage) m).getContentType().toLowerCase(); if (contentType.startsWith("multipart")) { ContentType ct = new ContentType(contentType); if (ct.getSubType().equalsIgnoreCase("alternative")) { Multipart mp = (Multipart) m.getContent(); for (int i = 0; i < mp.getCount(); i++) { Attachment attachment = new Attachment((MimeBodyPart)mp.getBodyPart(i)); ContentType ct2 = attachment.getMimeType(); if (ct2.getPrimaryType().equalsIgnoreCase("text") && ct2.getSubType().equalsIgnoreCase("plain")) { attachment.setHeaderSource((MimeMessage)m); bundle.textPart = attachment; } else { bundle.getAttachments().add(attachment); } } } else { bundle.addAll(parseAttachments((Multipart)m.getContent(), (MimeMessage)m)); } } else if (contentType.startsWith("text")) { Attachment attachment = new Attachment((MimeMessage)m); bundle.textPart = attachment; } else { Attachment attachment = new Attachment((MimeMessage)m); bundle.getAttachments().add(attachment); } return bundle; } catch (IOException ioe) { throw new MessagingException (Pooka.getProperty("error.Message.loadingAttachment", "Error loading attachment"), ioe); } } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/f1b44d5cfed62391c2b9ee0cf56be1201e5ea745/MailUtilities.java/clean/net/suberic/pooka/MailUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15939,
3405,
1109,
12961,
12,
1079,
312,
13,
1216,
23794,
503,
288,
202,
698,
288,
202,
565,
15939,
3405,
3440,
273,
394,
15939,
3405,
5621,
202,
377,
202,
565,
514,
5064,
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,
1071,
760,
15939,
3405,
1109,
12961,
12,
1079,
312,
13,
1216,
23794,
503,
288,
202,
698,
288,
202,
565,
15939,
3405,
3440,
273,
394,
15939,
3405,
5621,
202,
377,
202,
565,
514,
5064,
273,... |
public GroupDialog( Shell parentShell ) | public GroupDialog( Shell parentShell, String title ) | public GroupDialog( Shell parentShell ) { super( parentShell, GROUP_DLG_TITLE ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/5751a8ecebb4c1d996f224af72dadd18c0d44423/GroupDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/GroupDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3756,
6353,
12,
19433,
982,
13220,
262,
202,
95,
202,
202,
9565,
12,
982,
13220,
16,
13839,
67,
8914,
43,
67,
14123,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3756,
6353,
12,
19433,
982,
13220,
262,
202,
95,
202,
202,
9565,
12,
982,
13220,
16,
13839,
67,
8914,
43,
67,
14123,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
e.printStackTrace(); | LOGGER.error("Main error", e); | public static void main(String[] args) { System.out.println("Starting load at: " + (new Date())); try { new MondrianFoodMartLoader(args).load(); } catch (Throwable e) { e.printStackTrace(); } System.out.println("Finished load at: " + (new Date())); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/fb2c3676710865fd954e58e04ef53f8b10bd8d52/MondrianFoodMartLoader.java/clean/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
11715,
1262,
622,
30,
315,
397,
261,
2704,
2167,
1435,
10019,
3639,
775,
288,
5411,
394,
490,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
11715,
1262,
622,
30,
315,
397,
261,
2704,
2167,
1435,
10019,
3639,
775,
288,
5411,
394,
490,
143... |
asm.emitLAddrToc(T3, VM_Entrypoints.athrowMethod.getOffset()); | asm.emitLAddrToc(T3, VM_Entrypoints.athrowMethod.getOffsetAsInt()); | public static synchronized VM_CompiledMethod compile (VM_NativeMethod method) { VM_JNICompiledMethod cm = (VM_JNICompiledMethod)VM_CompiledMethods.createCompiledMethod(method, VM_CompiledMethod.JNI); int compiledMethodId = cm.getId(); VM_Assembler asm = new VM_Assembler(0); int frameSize = VM_Compiler.getFrameSize(method); VM_Class klass = method.getDeclaringClass(); /* initialization */ if (VM.VerifyAssertions) VM._assert(T3 <= LAST_VOLATILE_GPR); // need 4 gp temps if (VM.VerifyAssertions) VM._assert(F3 <= LAST_VOLATILE_FPR); // need 4 fp temps if (VM.VerifyAssertions) VM._assert(S0 < S1 && S1 <= LAST_SCRATCH_GPR); // need 2 scratch Address nativeIP = method.getNativeIP(); Address nativeTOC = method.getNativeTOC(); // NOTE: this must be done before the condition VM_Thread.hasNativeStackFrame() become true // so that the first Java to C transition will be allowed to resize the stack // (currently, this is true when the JNIRefsTop index has been incremented from 0) asm.emitNativeStackOverflowCheck(frameSize + 14); // add at least 14 for C frame (header + spill) int parameterAreaSize = method.getParameterWords() << LOG_BYTES_IN_STACKSLOT; // number of bytes of arguments // save return address in caller frame asm.emitMFLR(REGISTER_ZERO); asm.emitSTAddr(REGISTER_ZERO, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); //-#if RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI // buy mini frame (2) asm.emitSTAddrU (FP, -JNI_SAVE_AREA_SIZE, FP); asm.emitLVAL (S0, compiledMethodId); // save jni method id at mini frame (2) asm.emitSTW (S0, STACKFRAME_METHOD_ID_OFFSET, FP); // buy mini frame (1), the total size equals to frameSize asm.emitSTAddrU (FP, -frameSize + JNI_SAVE_AREA_SIZE, FP); //-#endif //-#if RVM_WITH_POWEROPEN_ABI asm.emitSTAddrU (FP, -frameSize, FP); // get transition frame on stack asm.emitLVAL (S0, compiledMethodId); // save jni method id asm.emitSTW (S0, STACKFRAME_METHOD_ID_OFFSET, FP); //-#endif // establish S1 -> VM_Thread, S0 -> threads JNIEnv structure asm.emitLAddr(S1, VM_Entrypoints.activeThreadField.getOffset(), PROCESSOR_REGISTER); asm.emitLAddr(S0, VM_Entrypoints.jniEnvField.getOffset(), S1); // save the PR register in the JNIEnvironment object for possible calls back into Java asm.emitSTAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffset(), S0); // save the JNIEnvironment in the stack frame so we can use it to acquire the PR // when we return from native code. asm.emitSTAddr (S0, frameSize - JNI_ENV_OFFSET, FP); // save PR in frame // save current frame pointer in JNIEnv, JNITopJavaFP, which will be the frame // to start scanning this stack during GC, if top of stack is still executing in C //-#if RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI // for Linux, save mini (2) frame pointer, which has method id asm.emitLAddr (PROCESSOR_REGISTER, 0, FP); asm.emitSTAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNITopJavaFPField.getOffset(), S0); //-#elif RVM_WITH_POWEROPEN_ABI asm.emitSTAddr(FP, VM_Entrypoints.JNITopJavaFPField.getOffset(), S0); //-#endif // save the RVM nonvolatile registers, to be scanned by GC stack mapper // remember to skip past the saved JTOC by starting with offset = JNI_RVM_NONVOLATILE_OFFSET // for (int i = LAST_NONVOLATILE_GPR, offset = JNI_RVM_NONVOLATILE_OFFSET; i >= FIRST_NONVOLATILE_GPR; --i, offset+=BYTES_IN_STACKSLOT) { asm.emitSTAddr(i, frameSize - offset, FP); } // clear the GC flag on entry to native code asm.emitLVAL(PROCESSOR_REGISTER,0); // use PR as scratch asm.emitSTW(PROCESSOR_REGISTER, frameSize-JNI_GC_FLAG_OFFSET, FP); // generate the code to map the parameters to OS convention and add the // second parameter (either the "this" ptr or class if a static method). // The JNI Function ptr first parameter is set before making the call // by the out of line machine code we invoke below. // Opens a new frame in the JNIRefs table to register the references. // Assumes S0 set to JNIEnv, kills KLUDGE_TI_REG, S1 & PROCESSOR_REGISTER // On return, S0 still contains JNIEnv storeParameters(asm, frameSize, method, klass); // Get address of out_of_line prolog into S1, before setting TOC reg. asm.emitLAddr (S1, VM_Entrypoints.invokeNativeFunctionInstructionsField.getOffset(), JTOC); asm.emitMTCTR (S1); // set the TOC and IP for branch to out_of_line code asm.emitLVALAddr (JTOC, nativeTOC); asm.emitLVALAddr (S1, nativeIP); // go to VM_OutOfLineMachineCode.invokeNativeFunctionInstructions // It will change the Processor status to "in_native" and transfer to the native code. // On return it will change the state back to "in_java" (waiting if blocked). // // The native address entrypoint is in register S1 // The native TOC has been loaded into the TOC register // S0 still points to threads JNIEnvironment // asm.emitBCCTRL(); // check if GC has occurred, If GC did not occur, then // VM NON_VOLATILE regs were restored by OS and are valid. If GC did occur // objects referenced by these restored regs may have moved, in this case we // restore the nonvolatile registers from our save area, // where any object references would have been relocated during GC. // use T2 as scratch (not needed any more on return from call) // asm.emitLWZ(T2, frameSize - JNI_GC_FLAG_OFFSET, FP); asm.emitCMPI(T2,0); VM_ForwardReference fr1 = asm.emitForwardBC(EQ); for (int i = LAST_NONVOLATILE_GPR, offset = JNI_RVM_NONVOLATILE_OFFSET; i >= FIRST_NONVOLATILE_GPR; --i, offset+=BYTES_IN_STACKSLOT) { asm.emitLAddr(i, frameSize - offset, FP); } fr1.resolve(asm); asm.emitLAddr(S0, VM_Entrypoints.activeThreadField.getOffset(), PROCESSOR_REGISTER); // S0 holds thread pointer // reestablish S0 to hold pointer to VM_JNIEnvironment asm.emitLAddr(S0, VM_Entrypoints.jniEnvField.getOffset(), S0); // pop jrefs frame off the JNIRefs stack, "reopen" the previous top jref frame // use S1 as scratch, also use T2, T3 for scratch which are no longer needed asm.emitLAddr(S1, VM_Entrypoints.JNIRefsField.getOffset(), S0); // load base of JNIRefs array asm.emitLInt (T2, VM_Entrypoints.JNIRefsSavedFPField.getOffset(), S0); // get saved offset for JNIRefs frame ptr previously pushed onto JNIRefs array asm.emitADDI (T3, -BYTES_IN_STACKSLOT, T2); // compute offset for new TOP asm.emitSTW (T3, VM_Entrypoints.JNIRefsTopField.getOffset(), S0); // store new offset for TOP into JNIEnv asm.emitLIntX(T2, S1, T2); // retrieve the previous frame ptr asm.emitSTW (T2, VM_Entrypoints.JNIRefsSavedFPField.getOffset(), S0); // store new offset for JNIRefs frame ptr into JNIEnv // Restore the return value R3-R4 saved in the glue frame spill area before the migration if (VM.BuildFor64Addr) { asm.emitLD(T0, NATIVE_FRAME_HEADER_SIZE, FP); } else { asm.emitLWZ(T0, NATIVE_FRAME_HEADER_SIZE, FP); asm.emitLWZ(T1, NATIVE_FRAME_HEADER_SIZE+BYTES_IN_STACKSLOT, FP); } // if the the return type is a reference, the native C is returning a jref // which is a byte offset from the beginning of the threads JNIRefs stack/array // of the corresponding ref. In this case, emit code to replace the returned // offset (in R3) with the ref from the JNIRefs array VM_TypeReference returnType = method.getReturnType(); if (returnType.isReferenceType()) { // use returned offset to load ref from JNIRefs into R3 asm.emitLAddrX (T0, S1, T0); // S1 is still the base of the JNIRefs array } // pop the glue stack frame, restore the Java caller frame asm.emitADDI (FP, +frameSize, FP); // remove linkage area // C return value is already where caller expected it (T0/T1 or F0) // So, just restore the return address to the link register. asm.emitLAddr(REGISTER_ZERO, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); asm.emitMTLR (REGISTER_ZERO); // restore return address // CHECK EXCEPTION AND BRANCH TO ATHROW CODE OR RETURN NORMALLY asm.emitLAddr (T2, VM_Entrypoints.JNIPendingExceptionField.getOffset(), S0); // get pending exception from JNIEnv asm.emitLVAL (T3, 0); // get a null value to compare asm.emitSTAddr(T3, VM_Entrypoints.JNIPendingExceptionField.getOffset(), S0); // clear the current pending exception asm.emitCMPAddr(T2, T3); VM_ForwardReference fr3 = asm.emitForwardBC(NE); asm.emitBCLR(); // if no pending exception, proceed to return to caller fr3.resolve(asm); // An exception is pending, deliver the exception to the caller // as if executing an athrow in the caller // at the location of the call to the native method asm.emitLAddrToc(T3, VM_Entrypoints.athrowMethod.getOffset()); asm.emitMTCTR(T3); // point LR to the exception delivery code asm.emitMR (T0, T2); // copy the saved exception to T0 asm.emitBCCTR(); // then branch to the exception delivery code, does not return VM_MachineCode machineCode = asm.makeMachineCode(); cm.compileComplete(machineCode.getInstructions()); return cm; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/3a1409586ed0fc007c4120f3a96d6f7a1ae3593c/VM_JNICompiler.java/clean/rvm/src/vm/arch/powerPC/jni/VM_JNICompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3852,
8251,
67,
20733,
1305,
4074,
261,
7397,
67,
9220,
1305,
707,
13,
288,
565,
8251,
67,
46,
50,
45,
20733,
1305,
5003,
273,
261,
7397,
67,
46,
50,
45,
20733,
1305,
13,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3852,
8251,
67,
20733,
1305,
4074,
261,
7397,
67,
9220,
1305,
707,
13,
288,
565,
8251,
67,
46,
50,
45,
20733,
1305,
5003,
273,
261,
7397,
67,
46,
50,
45,
20733,
1305,
13,
7... |
final VmX86Processor cpu = (VmX86Processor) Unsafe .getCurrentProcessor(); cpu.setApic(localAPIC); cpu.loadAndSetApicID(); for (Iterator i = mpConfigTable.entries().iterator(); i.hasNext(); ) { final MPEntry entry = (MPEntry)i.next(); if (entry instanceof MPIOAPICEntry) { final MPIOAPICEntry apicEntry = (MPIOAPICEntry)entry; if (apicEntry.getFlags() != 0) { try { final IOAPIC apic = new IOAPIC(rm, owner, apicEntry.getAddress()); apic.dump(System.out); break; } catch (ResourceNotFreeException ex) { BootLog.error("Cannot claim I/O APIC region ", ex); } } } } | if (mpConfigTable == null) { return; } | protected void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOwner.SYSTEM); if (mp == null) { BootLog.info("No MP table found"); // No MP table found. return; } try { BootLog.info("Found " + mp); this.mpConfigTable = mp.getMPConfigTable(); } finally { mp.release(); } if (mpConfigTable == null) { return; } mpConfigTable.dump(System.out); final ResourceOwner owner = ResourceOwner.SYSTEM; try { // Create the local APIC accessor localAPIC = new LocalAPIC(rm, owner, mpConfigTable .getLocalApicAddress()); } catch (ResourceNotFreeException ex) { BootLog.error("Cannot claim APIC region"); return; } // Set the APIC reference of the current (bootstrap) processor final VmX86Processor cpu = (VmX86Processor) Unsafe .getCurrentProcessor(); cpu.setApic(localAPIC); cpu.loadAndSetApicID(); // Find & initialize this I/O APIC. for (Iterator i = mpConfigTable.entries().iterator(); i.hasNext(); ) { final MPEntry entry = (MPEntry)i.next(); if (entry instanceof MPIOAPICEntry) { final MPIOAPICEntry apicEntry = (MPIOAPICEntry)entry; if (apicEntry.getFlags() != 0) { try { // We found an enabled I/O APIC. final IOAPIC apic = new IOAPIC(rm, owner, apicEntry.getAddress()); apic.dump(System.out); break; } catch (ResourceNotFreeException ex) { BootLog.error("Cannot claim I/O APIC region ", ex); } } } } try { // Detect Hyper threading on current (bootstrap) processor VmX86Processor.detectAndstartLogicalProcessors(rm); } catch (ResourceNotFreeException ex) { BootLog.error("Cannot claim region for logical processor startup", ex); } // Find all CPU's for (Iterator i = mpConfigTable.entries().iterator(); i.hasNext();) { final MPEntry e = (MPEntry) i.next(); if (e.getEntryType() == 0) { final MPProcessorEntry cpuEntry = (MPProcessorEntry) e; if (cpuEntry.isEnabled() && !cpuEntry.isBootstrap()) { // New CPU final VmX86Processor newCpu = (VmX86Processor) createProcessor( cpuEntry.getApicID(), Vm.getVm().getStatics()); initX86Processor(newCpu); try { newCpu.startup(rm); } catch (ResourceNotFreeException ex) { BootLog.error("Cannot claim region for processor startup", ex); } } } } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/55b12818040bb69b51502c4cd0f42118d2046977/VmX86Architecture.java/clean/core/src/core/org/jnode/vm/x86/VmX86Architecture.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4046,
18155,
12,
1420,
1318,
6692,
13,
288,
7734,
727,
514,
1797,
1670,
273,
776,
81,
3163,
18,
588,
5931,
1670,
5621,
3639,
309,
261,
4172,
1670,
18,
31806,
2932,
1291,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
18155,
12,
1420,
1318,
6692,
13,
288,
7734,
727,
514,
1797,
1670,
273,
776,
81,
3163,
18,
588,
5931,
1670,
5621,
3639,
309,
261,
4172,
1670,
18,
31806,
2932,
1291,
33,
... |
synchronized(cachedPubKeys) { DSAPublicKey key = (DSAPublicKey) cachedPubKeys.get(w); if(key != null) { cachedPubKeys.push(w, key); Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from cache"); return key; | if(USE_RAM_PUBKEYS_CACHE) { synchronized(cachedPubKeys) { DSAPublicKey key = (DSAPublicKey) cachedPubKeys.get(w); if(key != null) { cachedPubKeys.push(w, key); Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from cache"); return key; } | public DSAPublicKey getKey(byte[] hash) { ImmutableByteArrayWrapper w = new ImmutableByteArrayWrapper(hash); Logger.minor(this, "Getting pubkey: "+HexUtil.bytesToHex(hash)); synchronized(cachedPubKeys) { DSAPublicKey key = (DSAPublicKey) cachedPubKeys.get(w); if(key != null) { cachedPubKeys.push(w, key); Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from cache"); return key; } } try { DSAPublicKey key = pubKeyDatastore.fetchPubKey(hash, false); if(key != null) { cacheKey(hash, key); Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from store"); } return key; } catch (IOException e) { // FIXME deal with disk full, access perms etc; tell user about it. Logger.error(this, "Error accessing pubkey store: "+e, e); return null; } } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/fc1107153611521b8802dc2e6ed37430b0f7d687/Node.java/buggy/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8678,
2203,
24312,
3579,
12,
7229,
8526,
1651,
13,
288,
202,
202,
16014,
8826,
3611,
341,
273,
394,
7252,
8826,
3611,
12,
2816,
1769,
202,
202,
3328,
18,
17364,
12,
2211,
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,
225,
202,
482,
8678,
2203,
24312,
3579,
12,
7229,
8526,
1651,
13,
288,
202,
202,
16014,
8826,
3611,
341,
273,
394,
7252,
8826,
3611,
12,
2816,
1769,
202,
202,
3328,
18,
17364,
12,
2211,
16,
... |
protected String appendPath( String parentPath, String childPath, String pathAdjustment, boolean appendPaths ) { List pathFragments = new ArrayList(); String rootPath = parentPath; String protocol = null; int protocolIdx = rootPath.indexOf( "://" ); if ( protocolIdx > -1 ) { protocol = rootPath.substring( 0, protocolIdx + 3 ); rootPath = rootPath.substring( protocolIdx + 3 ); } pathFragments.add( rootPath ); if ( appendPaths ) { if ( pathAdjustment != null ) { pathFragments.add( pathAdjustment ); } pathFragments.add( childPath ); } StringBuffer cleanedPath = new StringBuffer(); if ( protocol != null ) { cleanedPath.append( protocol ); } if ( rootPath.startsWith( "/" ) ) { cleanedPath.append( '/' ); } String lastToken = null; String currentToken = null; for ( Iterator it = pathFragments.iterator(); it.hasNext(); ) { String pathFragment = (String) it.next(); StringTokenizer tokens = new StringTokenizer( pathFragment, "/" ); while( tokens.hasMoreTokens() ) { lastToken = currentToken; currentToken = tokens.nextToken(); if ( "..".equals( currentToken ) ) { // trim the previous path part off... cleanedPath.setLength( cleanedPath.length() - ( lastToken.length() + 1 ) ); } else if ( !".".equals( currentToken ) ) { // don't worry about /./ self-references. cleanedPath.append( currentToken ).append( '/' ); } } } if ( !childPath.endsWith( "/" ) && appendPaths ) { cleanedPath.setLength( cleanedPath.length() - 1 ); } return cleanedPath.toString(); } | 11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/ad38e46b4b6bbc3fb214b07966cc42877ecec536/DefaultModelInheritanceAssembler.java/buggy/maven-project/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
714,
743,
12,
514,
17743,
16,
514,
1151,
743,
16,
514,
589,
19985,
16,
1250,
714,
4466,
262,
565,
288,
3639,
987,
589,
27588,
273,
394,
2407,
5621,
7734,
514,
13959,
273,
177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
714,
743,
12,
514,
17743,
16,
514,
1151,
743,
16,
514,
589,
19985,
16,
1250,
714,
4466,
262,
565,
288,
3639,
987,
589,
27588,
273,
394,
2407,
5621,
7734,
514,
13959,
273,
177... | ||
public void start( BundleContext context ) throws Exception { super.start( context ); // set preference default value getPreferenceStore( ).setDefault( IPreferenceConstants.PALETTE_DOCK_LOCATION, IPreferenceConstants.DEFAULT_PALETTE_SIZE ); getPreferenceStore( ).setDefault( IPreferenceConstants.PALETTE_STATE, IPreferenceConstants.DEFAULT_PALETTE_STATE ); initCellCursor( ); // set default Element names setDefaultElementNamePreference( getPreferenceStore( ) ); // set default library setDefaultLibraryPreference( ); // set default Template setDefaultTemplatePreference( ); // set default Resource setDefaultResourcePreference(); // Biding default short cut services // Using 3.0 compatible api PlatformUI.getWorkbench( ) .getContextSupport( ) .setKeyFilterEnabled( true ); addIgnoreViewID("org.eclipse.birt.report.designer.ui.editors.ReportEditor"); addIgnoreViewID("org.eclipse.birt.report.designer.ui.editors.TemplateEditor"); addIgnoreViewID(IPageLayout.ID_OUTLINE); addIgnoreViewID(AttributeView.ID); addIgnoreViewID(PaletteView.ID); addIgnoreViewID(DataView.ID); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c52ea9984fb73632934c9b06093951ed1acf25a0/ReportPlugin.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/ReportPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
12,
8539,
1042,
819,
262,
1216,
1185,
202,
95,
202,
202,
9565,
18,
1937,
12,
819,
11272,
202,
202,
759,
444,
11555,
805,
460,
202,
202,
588,
9624,
2257,
12,
262,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
12,
8539,
1042,
819,
262,
1216,
1185,
202,
95,
202,
202,
9565,
18,
1937,
12,
819,
11272,
202,
202,
759,
444,
11555,
805,
460,
202,
202,
588,
9624,
2257,
12,
262,
1... | ||
pane.add(scroll, BorderLayout.CENTER); | GridBagConstraints constraints = new GridBagConstraints(); constraints.fill = GridBagConstraints.BOTH; constraints.weightx = 1.0; constraints.weighty = 1.0; layout.setConstraints(scroll, constraints); pane.add(scroll); | private void addScrollBars(Container pane) { LayoutManager layout = pane.getLayout(); int count = pane.getComponentCount(); Component[] c = new Component[count]; for (int i=0; i<count; i++) c[i] = pane.getComponent(i); pane.removeAll(); pane.setLayout(new BorderLayout()); Panel newPane = new Panel(); newPane.setLayout(layout); for (int i=0; i<count; i++) newPane.add(c[i]); ScrollPane scroll = new ScrollPane(); scroll.add(newPane); pane.add(scroll, BorderLayout.CENTER); } | 46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/edade46eb62ee1432364ee1a72d45de4fb308b0e/Importer.java/clean/loci/plugins/Importer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
527,
6806,
5190,
87,
12,
2170,
13618,
13,
288,
565,
9995,
1318,
3511,
273,
13618,
18,
588,
3744,
5621,
565,
509,
1056,
273,
13618,
18,
588,
1841,
1380,
5621,
565,
5435,
8526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
6806,
5190,
87,
12,
2170,
13618,
13,
288,
565,
9995,
1318,
3511,
273,
13618,
18,
588,
3744,
5621,
565,
509,
1056,
273,
13618,
18,
588,
1841,
1380,
5621,
565,
5435,
8526,
... |
return emitElement( _cur, _attrNames, _attrValues ); | if (emitElement( _cur, _attrNames, _attrValues )) { popMappings(); _cur.toEnd(); } | private final boolean processElement ( ) { assert _cur.isElem() && _cur.getName() != null; QName name = _cur.getName(); // TODO - check for doctype to save out here ; // Add a new entry to the frontier. If this element has a name // which has no namespace, then we must make sure that pushing // the mappings causes the default namespace to be empty boolean ensureDefaultEmpty = name.getNamespaceURI().length() == 0; pushMappings( _cur, ensureDefaultEmpty ); // // There are four things which use mappings: // // 1) The element name // 2) The element value (qname based) // 3) Attribute names // 4) The attribute values (qname based) // // 1) The element name (not for starts) ensureMapping( name.getNamespaceURI(), name.getPrefix(), !ensureDefaultEmpty, false ); // // // _attrNames.clear(); _attrValues.clear(); _cur.push(); attrs: for ( boolean A = _cur.toFirstAttr() ; A ; A = _cur.toNextAttr() ) { if (_cur.isNormalAttr()) { QName attrName = _cur.getName(); _attrNames.add( attrName ); for ( int i = _attrNames.size() - 2 ; i >= 0 ; i-- ) { if (_attrNames.get( i ).equals( attrName )) { _attrNames.remove( _attrNames.size() - 1 ); continue attrs; } } _attrValues.add( _cur.getAttrValue() ); ensureMapping( attrName.getNamespaceURI(), attrName.getPrefix(), false, true ); } } _cur.pop(); // If I am doing aggressive namespaces and we're emitting a // container which can contain content, add the namespaces // we've computed. Basically, I'm making sure the pre-computed // namespaces are mapped on the first container which has a name. if (_preComputedNamespaces != null) { for ( Iterator i = _preComputedNamespaces.keySet().iterator() ; i.hasNext() ; ) { String uri = (String) i.next(); String prefix = (String) _preComputedNamespaces.get( uri ); boolean considerDefault = prefix.length() == 0 && !ensureDefaultEmpty; ensureMapping( uri, prefix, considerDefault, false ); } // Set to null so we do this once at the top _preComputedNamespaces = null; } return emitElement( _cur, _attrNames, _attrValues ); } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/78d5fcf8af10b9b5bb990c642b2118f8c482db5e/Saver.java/buggy/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/Saver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
1250,
1207,
1046,
261,
262,
565,
288,
3639,
1815,
389,
1397,
18,
291,
7498,
1435,
597,
389,
1397,
18,
17994,
1435,
480,
446,
31,
3639,
16723,
508,
273,
389,
1397,
18,
17994,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
1250,
1207,
1046,
261,
262,
565,
288,
3639,
1815,
389,
1397,
18,
291,
7498,
1435,
597,
389,
1397,
18,
17994,
1435,
480,
446,
31,
3639,
16723,
508,
273,
389,
1397,
18,
17994,
... |
inc = i; | inc = i; macroOffset = mO; macroLength = mL; | public IScannerContext initialize(Reader r, String f, int k, IASTInclusion i) { reader = r; filename = f; offset = 0; kind = k; inc = i; return this; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/4347f9b681bfd5e9a647aed26168934aa2b587fc/ScannerContext.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ScannerContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
11338,
1042,
4046,
12,
2514,
436,
16,
514,
284,
16,
509,
417,
16,
467,
9053,
382,
15335,
277,
13,
202,
95,
202,
202,
10530,
273,
436,
31,
202,
202,
3459,
273,
284,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
11338,
1042,
4046,
12,
2514,
436,
16,
514,
284,
16,
509,
417,
16,
467,
9053,
382,
15335,
277,
13,
202,
95,
202,
202,
10530,
273,
436,
31,
202,
202,
3459,
273,
284,
31,
... |
public void populateMenu(ContributionManager mgr, MenuLocationURI uri) { List additionCaches = getAdditionsForURI(uri); List retryList = new ArrayList(); for (Iterator iterator = additionCaches.iterator(); iterator.hasNext();) { MenuAdditionCacheEntry cache = (MenuAdditionCacheEntry) iterator.next(); if (!processAdditions(mgr, cache)) { retryList.add(cache); } } // OK, iteratively loop through entries whose URI's could not // be resolved until we either run out of entries or the list // doesn't change size (indicating that the remaining entries // can never be resolved). boolean done = retryList.size() == 0; while (!done) { // Clone the retry list and clear it List curRetry = new ArrayList(retryList); int retryCount = retryList.size(); retryList.clear(); // Walk the current list seeing if any entries can now be resolved for (Iterator iterator = curRetry.iterator(); iterator.hasNext();) { MenuAdditionCacheEntry cache = (MenuAdditionCacheEntry) iterator.next(); if (!processAdditions(mgr, cache)) retryList.add(cache); } // We're done if the retryList is now empty (everything done) or // if the list hasn't changed at all (no hope) done = (retryList.size() == 0) || (retryList.size() == retryCount); } // Now, recurse through any sub-menus IContributionItem[] curItems = mgr.getItems(); for (int i = 0; i < curItems.length; i++) { if (curItems[i] instanceof ContributionManager) { IContributionItem menuItem = (IContributionItem)curItems[i]; MenuLocationURI subURI = new MenuLocationURI("menu:" + menuItem.getId()); //$NON-NLS-1$ populateMenu((ContributionManager) curItems[i], subURI); } } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/7708c9aa128d7f727df6c085dc73634c29372cac/WorkbenchMenuService.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/WorkbenchMenuService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6490,
4599,
12,
442,
4027,
1318,
13333,
16,
9809,
2735,
3098,
2003,
13,
288,
202,
202,
682,
2719,
18755,
273,
336,
986,
5029,
1290,
3098,
12,
1650,
1769,
202,
202,
682,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6490,
4599,
12,
442,
4027,
1318,
13333,
16,
9809,
2735,
3098,
2003,
13,
288,
202,
202,
682,
2719,
18755,
273,
336,
986,
5029,
1290,
3098,
12,
1650,
1769,
202,
202,
682,
3... | ||
public void setBounds(int x, int y, int width, int height) { locationByPlatform = false; super.setBounds(x, y, width, height); | void setBounds(int x, int y, int w, int h, int bMask, boolean updateBehavior) { boolean resized = ((w != this.w) || (h != this.h)); super.setBounds(x, y, w, h, bMask, updateBehavior); if (visible && resized && !updateBehavior) { validate(); } | public void setBounds(int x, int y, int width, int height) { locationByPlatform = false; super.setBounds(x, y, width, height); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/530ce08a4b62c0ea20920f628e177e16959d7163/Window.java/buggy/modules/awt/src/main/java/common/java/awt/Window.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5694,
12,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
13,
288,
3639,
2117,
858,
8201,
273,
629,
31,
3639,
2240,
18,
542,
5694,
12,
92,
16,
677,
16,
1835,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5694,
12,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
13,
288,
3639,
2117,
858,
8201,
273,
629,
31,
3639,
2240,
18,
542,
5694,
12,
92,
16,
677,
16,
1835,
1... |
final IConfigurationElement[] commandsExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_COMMANDS); for (int i = 0; i < commandsExtensionPoint.length; i++) { final IConfigurationElement configurationElement = commandsExtensionPoint[i]; final String name = configurationElement.getName(); | final IConfigurationElement[] commandsExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_COMMANDS); for (int i = 0; i < commandsExtensionPoint.length; i++) { final IConfigurationElement configurationElement = commandsExtensionPoint[i]; final String name = configurationElement.getName(); | static final void read(final BindingManager bindingManager, final ICommandService commandService) { // Create the extension registry mementos. final IExtensionRegistry registry = Platform.getExtensionRegistry(); int activeSchemeElementCount = 0; int bindingDefinitionCount = 0; int schemeDefinitionCount = 0; final IConfigurationElement[][] indexedConfigurationElements = new IConfigurationElement[3][]; // Sort the bindings extension point based on element name. final IConfigurationElement[] bindingsExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_BINDINGS); for (int i = 0; i < bindingsExtensionPoint.length; i++) { final IConfigurationElement configurationElement = bindingsExtensionPoint[i]; final String name = configurationElement.getName(); // Check if it is a binding definition. if (ELEMENT_KEY.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_BINDING_DEFINITIONS, bindingDefinitionCount++); } else // Check to see if it is a scheme definition. if (ELEMENT_SCHEME.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_SCHEME_DEFINITIONS, schemeDefinitionCount++); } } // Sort the commands extension point based on element name. final IConfigurationElement[] commandsExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_COMMANDS); for (int i = 0; i < commandsExtensionPoint.length; i++) { final IConfigurationElement configurationElement = commandsExtensionPoint[i]; final String name = configurationElement.getName(); // Check if it is a binding definition. if (ELEMENT_KEY_BINDING.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_BINDING_DEFINITIONS, bindingDefinitionCount++); // Check if it is a scheme defintion. } else if (ELEMENT_KEY_CONFIGURATION.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_SCHEME_DEFINITIONS, schemeDefinitionCount++); // Check if it is an active scheme identifier. } else if (ELEMENT_ACTIVE_KEY_CONFIGURATION.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_ACTIVE_SCHEME, activeSchemeElementCount++); } } /* * Sort the accelerator configuration extension point into the scheme * definitions. */ final IConfigurationElement[] acceleratorConfigurationsExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_ACCELERATOR_CONFIGURATIONS); for (int i = 0; i < acceleratorConfigurationsExtensionPoint.length; i++) { final IConfigurationElement configurationElement = acceleratorConfigurationsExtensionPoint[i]; final String name = configurationElement.getName(); // Check if the name matches the accelerator configuration element if (ELEMENT_ACCELERATOR_CONFIGURATION.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_SCHEME_DEFINITIONS, schemeDefinitionCount++); } } // Create the preference memento. final IPreferenceStore store = WorkbenchPlugin.getDefault() .getPreferenceStore(); final String preferenceString = store.getString(EXTENSION_COMMANDS); IMemento preferenceMemento = null; if ((preferenceString != null) && (preferenceString.length() > 0)) { final Reader reader = new StringReader(preferenceString); try { preferenceMemento = XMLMemento.createReadRoot(reader); } catch (final WorkbenchException e) { // Could not initialize the preference memento. } } // Read the scheme definitions. readSchemes(indexedConfigurationElements[INDEX_SCHEME_DEFINITIONS], schemeDefinitionCount, bindingManager); readActiveScheme(indexedConfigurationElements[INDEX_ACTIVE_SCHEME], activeSchemeElementCount, preferenceMemento, bindingManager); readBindingsFromRegistry( indexedConfigurationElements[INDEX_BINDING_DEFINITIONS], bindingDefinitionCount, bindingManager, commandService); readBindingsFromPreferences(preferenceMemento, bindingManager, commandService); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c07ed3e025797a9c1bd6510cf18a0c4ff4157625/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
727,
918,
855,
12,
6385,
15689,
1318,
5085,
1318,
16,
1082,
202,
6385,
467,
2189,
1179,
1296,
1179,
13,
288,
202,
202,
759,
1788,
326,
2710,
4023,
312,
820,
538,
18,
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,
3845,
727,
918,
855,
12,
6385,
15689,
1318,
5085,
1318,
16,
1082,
202,
6385,
467,
2189,
1179,
1296,
1179,
13,
288,
202,
202,
759,
1788,
326,
2710,
4023,
312,
820,
538,
18,
202,
202... |
if (saving == true) { | if (saving == true) { | private void saveChangesAndDispose(IResource resource) { if (saving == true) { return; } saving = true; // Cache the resource to avoid selection loss since a selection of // another item can trigger this method inlinedResource = resource; final String newName = textEditor.getText(); // Run this in an async to make sure that the operation that triggered // this action is completed. Otherwise this leads to problems when the // icon of the item being renamed is clicked (i.e., which causes the rename // text widget to lose focus and trigger this method). Runnable query = new Runnable() { public void run() { try { if (!newName.equals(inlinedResource.getName())) { IWorkspace workspace = IDEWorkbenchPlugin .getPluginWorkspace(); IStatus status = workspace.validateName(newName, inlinedResource.getType()); if (!status.isOK()) { displayError(status.getMessage()); } else { IPath newPath = inlinedResource.getFullPath() .removeLastSegments(1).append(newName); runWithNewPath(newPath, inlinedResource); } } inlinedResource = null; //Dispose the text widget regardless disposeTextWidget(); // Ensure the Navigator tree has focus, which it may not if the // text widget previously had focus. if (navigatorTree != null && !navigatorTree.isDisposed()) { navigatorTree.setFocus(); } } finally { saving = false; } } }; getTree().getShell().getDisplay().asyncExec(query); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/53cada7d6d0463cdcb3aed320ea380f4aae64087/RenameResourceAction.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RenameResourceAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1923,
7173,
1876,
1669,
4150,
12,
45,
1420,
1058,
13,
288,
3639,
309,
261,
87,
5339,
422,
638,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
3639,
12392,
273,
638,
31,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1923,
7173,
1876,
1669,
4150,
12,
45,
1420,
1058,
13,
288,
3639,
309,
261,
87,
5339,
422,
638,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
3639,
12392,
273,
638,
31,
3639,
... |
i += args_consumed, args_consumed = 0) | i += argsConsumed, argsConsumed = 0) | private static boolean parseArgs(String[] args) { int i; int args_consumed; boolean castFlag = false; boolean retcode; // Parse all options first. Keep going until an error is // encountered or there are no more options left. for (i = 0, retcode = true, args_consumed = 0; i < args.length && retcode == true && args[i].startsWith("-") == true; i += args_consumed, args_consumed = 0) { if (args[i].startsWith("-sy") == true) { _sync = true; args_consumed = 1; } else if (args[i].startsWith("-su") == true) { // -suffix should be followed by a suffix. if ((i + 1) == args.length || args[i+1].startsWith("-") == true) { retcode = false; _errorMsg = "-suffix not followed by a value"; } else { _suffix = args[i+1]; args_consumed = 2; } } else if (args[i].startsWith("-ca") == true) { // -cast should be followed by a cast type. if ((i + 1) == args.length || args[i+1].startsWith("-") == true) { retcode = false; _errorMsg = "-cast not followed by a value"; } else { _castType = args[i+1]; castFlag = true; args_consumed = 2; } } else if (args[i].equals("-d") == true) { // -d should be followed by a directory. if ((i + 1) == args.length || args[i+1].startsWith("-") == true) { retcode = false; _errorMsg = "-d not followed by directory"; } else { _outputDirectory = args[i+1]; args_consumed = 2; // If the output directory does not end with // file path separator, then add one. if (_outputDirectory.endsWith( File.separator) == false) { _outputDirectory = _outputDirectory + File.separator; } retcode = _isValidDirectory(_outputDirectory); } } else if (args[i].startsWith("-gl") == true) { // -glevel should be followed by an integer. if ((i + 1) == args.length || args[i+1].startsWith("-") == true) { retcode = false; _errorMsg = "-glevel not followed by integer"; } else { try { _graphLevel = Integer.parseInt(args[i+1]); if (_graphLevel < GRAPH_LEVEL_0 || _graphLevel > GRAPH_LEVEL_2) { retcode = false; _errorMsg = "-glevel must be 0, 1 or 2"; } else { args_consumed = 2; } } catch (NumberFormatException numberex) { retcode = false; _errorMsg = "-glevel not followed by valid integer"; } } } else if (args[i].equals("-g") == true) { _debug = true; args_consumed = 1; } else if (args[i].startsWith("-nos") == true) { _nostreams = true; args_consumed = 1; } else if (args[i].startsWith("-noe") == true) { // -noex is a flag. _noex = true; args_consumed = 1; } else if (args[i].startsWith("-noc") == true) { // -nocatch is a flag. _nocatch = true; args_consumed = 1; } else if (args[i].startsWith("-return") == true) { // -return is a flag. _return = true; args_consumed = 1; } else if (args[i].startsWith("-se") == true) { // -serial is a flag. _serial = true; args_consumed = 1; } else if (args[i].startsWith("-c+") == true) { // Only one target language can be specified. if (_targetLanguage != LANG_NOT_SET && _targetLanguage != C_PLUS_PLUS) { retcode = false; _errorMsg = "Only one target language may be specified"; } else { _targetLanguage = C_PLUS_PLUS; if (_suffix == null) { _suffix = "cpp"; } args_consumed = 1; } } else if (args[i].startsWith("-j") == true) { // Only one target language can be specified. if (_targetLanguage != LANG_NOT_SET && _targetLanguage != JAVA) { retcode = false; _errorMsg = "Only one target language may be specified"; } else { _targetLanguage = JAVA; if (_suffix == null) { _suffix = "java"; } args_consumed = 1; } } else if (args[i].startsWith("-tc") == true) { // Only one target language can be specified. if (_targetLanguage != LANG_NOT_SET && _targetLanguage != TCL) { retcode = false; _errorMsg = "Only one target language may be specified"; } else { _targetLanguage = TCL; if (_suffix == null) { _suffix = "tcl"; } args_consumed = 1; } } else if (args[i].startsWith("-ta") == true) { // Only one target language can be specified. if (_targetLanguage != LANG_NOT_SET && _targetLanguage != TABLE) { retcode = false; _errorMsg = "Only one target language may be specified"; } else { _targetLanguage = TABLE; if (_suffix == null) { _suffix = "html"; } args_consumed = 1; } } else if (args[i].equals("-vb") == true) { // Only one target language may be specified. if (_targetLanguage != LANG_NOT_SET && _targetLanguage != VB) { retcode = false; _errorMsg = "Only one target language may be specified"; } else { _targetLanguage = VB; if (_suffix == null) { _suffix = "vb"; } args_consumed = 1; } } else if (args[i].startsWith("-cs") == true) { // Only one target language may be specified. if (_targetLanguage != LANG_NOT_SET && _targetLanguage != C_SHARP) { retcode = false; _errorMsg = "Only one target language may be specified"; } else { _targetLanguage = C_SHARP; if (_suffix == null) { _suffix = "cs"; } args_consumed = 1; } } else if (args[i].startsWith("-py") == true) { // Only one target language may be specified. if (_targetLanguage != LANG_NOT_SET && _targetLanguage != PYTHON) { retcode = false; _errorMsg = "Only one target language may be specified"; } else { _targetLanguage = PYTHON; if (_suffix == null) { _suffix = "py"; } args_consumed = 1; } } else if (args[i].startsWith("-gr") == true) { // Only one target language may be specified. if (_targetLanguage != LANG_NOT_SET && _targetLanguage != GRAPH) { retcode = false; _errorMsg = "Only one target language may be specified"; } else { _targetLanguage = GRAPH; if (_suffix == null) { _suffix = "dot"; } // If the graph level is no specified, then // set it to level 0. if (_graphLevel == NO_GRAPH_LEVEL) { _graphLevel = GRAPH_LEVEL_0; } args_consumed = 1; } } else if (args[i].startsWith("-vers") == true) { System.out.println(_appName + " " + _version); System.exit(0); } else if (args[i].startsWith("-verb") == true) { _verbose = true; args_consumed = 1; } else if (args[i].startsWith("-vverb") == true) { _fsmVerbose = true; args_consumed = 1; } else if (args[i].startsWith("-h") == true) { _usage(System.out); System.exit(0); } else { retcode = false; _errorMsg = "Unknown option (" + args[i] + ")"; } } // Was a state map source file given? It must be the // last argument in the list. if (retcode == true) { if (i == args.length) { retcode = false; _errorMsg = "Missing source file"; } else { File source_file; for (; i < args.length && retcode == true; ++i) { // The file name must end in ".sm". if (args[i].endsWith(".sm") == false && args[i].endsWith(".SM") == false) { retcode = false; _errorMsg = "Source file name must end in " + "\".sm\" (" + args[i] + ")"; } else { source_file = new File(args[i]); if (source_file.exists() == false) { retcode = false; _errorMsg = "No such file named \"" + args[i] + "\""; } else if (source_file.canRead() == false) { retcode = false; _errorMsg = "Source file \"" + args[i] + "\" is not readable"; } else { _sourceFileList.add(args[i]); } } } } } // Before returning, verify that a target programming // language was selected. if (retcode == true && _targetLanguage == LANG_NOT_SET) { retcode = false; _errorMsg = "Target language was not specified."; } // Also verify that if the sync flag was given, then // the target language is Java. else if (retcode == true && _sync == true && _targetLanguage != JAVA && _targetLanguage != VB && _targetLanguage != C_SHARP) { retcode = false; _errorMsg = "-sync can only be used with -java, -vb and -csharp."; } // Verify that -nostreams flag is used only with -c++. else if (retcode == true && _nostreams == true && _targetLanguage != C_PLUS_PLUS) { retcode = false; _errorMsg = "-nostreams can only be used with -c++."; } // Verify that the -noex flag is used only with -c++. else if (retcode == true && _noex == true && _targetLanguage != C_PLUS_PLUS) { retcode = false; _errorMsg = "-noex can only be used with -c++."; } // Verify that the -cast flag is used only with -c++. else if (retcode == true && castFlag == true && _targetLanguage != C_PLUS_PLUS) { retcode = false; _errorMsg = "-cast can only be used with -c++."; } // Verify that the cast type is valid. else if (retcode == true && castFlag == true && _castType.equals("dynamic_cast") == false && _castType.equals("static_cast") == false && _castType.equals("reinterpret_cast") == false) { retcode = false; _errorMsg = "\"" + _castType + "\" is an invalid C++ cast type."; } // Verify that -glevel is used only with -graph. else if (retcode == true && _graphLevel >= GRAPH_LEVEL_0 && _targetLanguage != GRAPH) { retcode = false; _errorMsg = "-glevel can only be used with -graph."; } return (retcode); } | 50995 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50995/cd11b016fc404b44c483af24f7a25570c9dc01d0/Smc.java/clean/net/sf/smc/Smc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
1109,
2615,
12,
780,
8526,
833,
13,
565,
288,
3639,
509,
277,
31,
3639,
509,
833,
67,
24268,
31,
3639,
1250,
4812,
4678,
273,
629,
31,
3639,
1250,
22115,
31,
3639,
368,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
1109,
2615,
12,
780,
8526,
833,
13,
565,
288,
3639,
509,
277,
31,
3639,
509,
833,
67,
24268,
31,
3639,
1250,
4812,
4678,
273,
629,
31,
3639,
1250,
22115,
31,
3639,
368,... |
iCodeTop = addByte(theLocalSlot, iCodeTop); | private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte(TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); int index = fn.getExistingIntProp(Node.FUNCTION_PROP); iCodeTop = addByte(index >> 8, iCodeTop); iCodeTop = addByte(index & 0xff, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ ObjArray cases = (ObjArray) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { int label = node.getIntProp(Node.LABEL_PROP, -1); if (label == -1) { label = acquireLabel(); node.putIntProp(Node.LABEL_PROP, label); } markLabel(label, iCodeTop); // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte(op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte(SOURCEFILE_ICODE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte(TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte(type, iCodeTop); iCodeTop = addShort(nameIndex, iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addShort(childCount, iCodeTop); if (childCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = childCount; iCodeTop = addByte(SOURCEFILE_ICODE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte(TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); // Bug 115717 is due to adding a GOSUB here before // we insert an ENDTRY. I'm not sure of the best way // to fix this; perhaps we need to maintain a stack // of pending trys and have some knowledge of how // many trys we need to close when we perform a // GOTO or GOSUB. iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte(TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte(TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte(TokenStream.POP, iCodeTop); iCodeTop = addByte(TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte(TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte(TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte(TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte(TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte(TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte(TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC, iCodeTop); int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); else iCodeTop = addByte(type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC, iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte(type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC, iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addByte(TokenStream.ZERO, iCodeTop); } else if (inum == 1) { iCodeTop = addByte(TokenStream.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addByte(SHORTNUMBER_ICODE, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addByte(INTNUMBER_ICODE, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addByte(TokenStream.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte(type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte(TokenStream.TRY, iCodeTop); iCodeTop = addShort(0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; addLabelFixup(theLabel, iCodeTop); } iCodeTop = addShort(0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte(TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); int finallyLabel = finallyTarget.getExistingIntProp(Node.LABEL_PROP); iCodeTop = addGoto(finallyLabel, TokenStream.GOSUB, iCodeTop); iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(RETURN_UNDEF_ICODE, iCodeTop); } break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte(TokenStream.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte(node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte(TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = regexp.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addByte(TokenStream.OBJECT, iCodeTop); iCodeTop = addShort(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/1faf10a4308cd300aa91d79cdc2a9df2bf5367a8/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
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,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
... | |
sourceViewer.getTextWidget( ).setFocus( ); | sourceViewer.getTextWidget( ).setFocus( ); | protected Control createContents( Composite parent ) { Control control = super.createContents( parent ); setTitle( DIALOG_TITLE ); setMessage( PROMRT_MESSAGE ); getShell( ).setText( title ); categoryTable.setInput( "Dummy" ); //$NON-NLS-1$ getShell( ).setDefaultButton( null ); sourceViewer.getTextWidget( ).setFocus( ); return control; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/4b82747ca92655e2a505cfacc3654325883d0612/ExpressionBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ExpressionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
14728,
982,
262,
202,
95,
202,
202,
3367,
3325,
273,
2240,
18,
2640,
6323,
12,
982,
11272,
202,
202,
542,
4247,
12,
3690,
18683,
67,
14123,
11272,
202,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
14728,
982,
262,
202,
95,
202,
202,
3367,
3325,
273,
2240,
18,
2640,
6323,
12,
982,
11272,
202,
202,
542,
4247,
12,
3690,
18683,
67,
14123,
11272,
202,
2... |
for(int j = 0; j < extendsElements.length; j++){ final PsiJavaCodeReferenceElement extendsElement = extendsElements[j]; | for(final PsiJavaCodeReferenceElement extendsElement : extendsElements){ | private void checkImplementedClass(PsiClass implementedClass, PsiJavaCodeReferenceElement implementsElement, PsiJavaCodeReferenceElement[] extendsElements, PsiJavaCodeReferenceElement[] implementsElements){ for(int j = 0; j < extendsElements.length; j++){ final PsiJavaCodeReferenceElement extendsElement = extendsElements[j]; final PsiElement extendsReferent = extendsElement.resolve(); if(extendsReferent != null && extendsReferent instanceof PsiClass){ final PsiClass extendedClass = (PsiClass) extendsReferent; if(extendedClass.isInheritor(implementedClass, true)){ registerError(implementsElement); return; } } } for(int j = 0; j < implementsElements.length; j++){ final PsiJavaCodeReferenceElement testImplementElement = implementsElements[j]; if(!testImplementElement.equals(implementsElement)){ final PsiElement implementsReferent = testImplementElement.resolve(); if(implementsReferent != null && implementsReferent instanceof PsiClass){ final PsiClass testImplementedClass = (PsiClass) implementsReferent; if(testImplementedClass.isInheritor(implementedClass, true)){ registerError(implementsElement); return; } } } } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2d46d291193579a7564649b4881c7ea8e02eda5b/RedundantImplementsInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/RedundantImplementsInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
866,
8644,
797,
12,
52,
7722,
797,
8249,
797,
16,
4766,
6647,
453,
7722,
5852,
1085,
2404,
1046,
4792,
1046,
16,
4766,
6647,
453,
7722,
5852,
1085,
2404,
1046,
8526,
3231,
3471... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
866,
8644,
797,
12,
52,
7722,
797,
8249,
797,
16,
4766,
6647,
453,
7722,
5852,
1085,
2404,
1046,
4792,
1046,
16,
4766,
6647,
453,
7722,
5852,
1085,
2404,
1046,
8526,
3231,
3471... |
{ return true; } | { return true; } | public boolean supportsMixedCaseQuotedIdentifiers() throws SQLException { return true; } | 49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/0c8299478c05542a0f240973829223c7dae7e4dd/DatabaseMetaData.java/buggy/postgresql/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
19846,
2449,
15919,
12745,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
638,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
19846,
2449,
15919,
12745,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
638,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if(VM.DynamicReferenceMaps){ | if (VM.DynamicReferenceMaps) { | locateGCPoint(int machCodeOffset, VM_Method method) { machCodeOffset = machCodeOffset - (1 << VM.LG_INSTRUCTION_WIDTH); // this assumes that machCodeOffset points // to "next" instruction eg bal type instruction if (VM.TraceStkMaps) { VM.sysWrite("VM_ReferenceMaps-locateGCPoint for machine code offset = "); VM.sysWrite(machCodeOffset); VM.sysWrite(" --- in method = "); VM.sysWrite(method.getName()); VM.sysWrite("\n"); } // test if maps are to be build dynamically if(VM.DynamicReferenceMaps) { if (VM.TraceStkMaps) { VM.sysWrite("VM_ReferenceMaps-locateGCPoint. doing dynamic reference maps\n"); VM.sysWrite(" bytesPerMap = "); VM.sysWrite( bytesPerMap); VM.sysWrite(" bitsPerMap = "); VM.sysWrite( bitsPerMap); } // test if they have been built previously and we have cached this site if (cacheMCSite != machCodeOffset) { // tracing and statistics if (VM.TraceTimes) VM_Timer.start(VM_Timer.REFERENCEMAP_GEN); if (VM.TraceStkMaps) VM.sysWrite("VM_ReferenceMaps-locateGCPoint. building reference maps\n"); // define the basic blocks VM_BuildBB buildBB = new VM_BuildBB(); buildBB.determineTheBasicBlocks(method); // now the related reference maps VM_BuildReferenceMaps buildRefMaps = new VM_BuildReferenceMaps(); buildRefMaps.buildReferenceMaps(method, null, this, buildBB); } else { // cached site is valid - copy over map for the site // VM.sysWrite("VM_ReferenceMaps-locateGCPoint.cached map found\n"); referenceMaps = cacheMap; // use cached map MCSites = new int[1]; MCSites[0] = cacheMCSite; mapCount = 1; return 0; } } // end dynamic reference map //Scan the list of machine code addresses to find the // closest site offset BEFORE the input machine code index ( offset in the code) int dist; int distance = 0; int index = 0; // get the first possible location for ( int i = 0; i < mapCount; i++) { // get an initial non zero distance distance = machCodeOffset - MCSites[i]; if (distance >= 0) { index = i; break; } } // scan to find any better location ie closer to the site for( int i = index+1; i < mapCount; i++) { dist = machCodeOffset- MCSites[i]; if ( dist < 0 ) continue; if ( dist <= distance) { index = i; distance = dist; } } // if (VM.TraceStkMaps) if (debug) { showInfo(); VM.sysWrite(" VM_ReferenceMaps-locateGCPoint located index = "); VM.sysWrite(index); VM.sysWrite(" byte = "); VM.sysWrite(referenceMaps[index]); VM.sysWrite( "\n"); } // test for a site within a jsr subroutine if ((0x000000FF & (referenceMaps[index*bytesPerMap] & JSR_MASK)) == (0x000000FF & JSR_MASK)) // test for jsr map { index = -index; // indicate site within a jsr to caller if (VM.TraceStkMaps) { VM.sysWrite(" VM_ReferenceMaps-locateGCPoint jsr mapid = "); VM.sysWrite( -index); VM.sysWrite( "\n"); } } if (VM.TraceStkMaps) { VM.sysWrite(" VM_ReferenceMaps-locateGCPoint machine offset = "); VM.sysWrite( machCodeOffset); VM.sysWrite(" - return map index = "); VM.sysWrite( index); VM.sysWrite( "\n"); } if(VM.DynamicReferenceMaps){ // This code caches the last site for potential future use.. Note that // JSR sites are not cached because that requires special locateGCPoint support // and the JSR path must somhow be saved.. Since JSRs are a low frequency instruction // we are not supporting the caching of JSR sites. if ( index >= 0) { // cache this site for future use cacheMCSite = machCodeOffset; // location // save the map int j = index * bytesPerMap; for (int i = j; i < (j + bytesPerMap); i++) cacheMap[i - j] = referenceMaps[i]; } } // end dynmaic reference maps return index; } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/00918012ca6e85a45bd9533f1d8b1b233f24ca81/VM_ReferenceMaps.java/buggy/rvm/src/vm/compilers/baseline/GCMap/VM_ReferenceMaps.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
10627,
15396,
2148,
12,
474,
25046,
1085,
2335,
16,
8251,
67,
1305,
707,
13,
288,
282,
25046,
1085,
2335,
273,
25046,
1085,
2335,
300,
261,
21,
2296,
8251,
18,
48,
43,
67,
706,
3902,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
10627,
15396,
2148,
12,
474,
25046,
1085,
2335,
16,
8251,
67,
1305,
707,
13,
288,
282,
25046,
1085,
2335,
273,
25046,
1085,
2335,
300,
261,
21,
2296,
8251,
18,
48,
43,
67,
706,
3902,
27... |
showHelpPage(); | SwingUtilities.invokeLater(new Runnable() { public void run() { showHelpPage(); } }); | private void run(String args[]) { buildFrame(); directory = args[0]; testFiles = buildFileList(); try { //switchPage( (File)testFiles.get( 0 ) ); showHelpPage(); } catch (Exception ex) { ex.printStackTrace(); } } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e9a600b1e4b5d53ffc19ec58e8455ad0c165e360/Eeze.java/clean/src/java/eeze/Eeze.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1086,
12,
780,
833,
63,
5717,
288,
3639,
1361,
3219,
5621,
3639,
1867,
273,
833,
63,
20,
15533,
3639,
1842,
2697,
273,
1361,
26098,
5621,
3639,
775,
288,
5411,
368,
9610,
1964,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1086,
12,
780,
833,
63,
5717,
288,
3639,
1361,
3219,
5621,
3639,
1867,
273,
833,
63,
20,
15533,
3639,
1842,
2697,
273,
1361,
26098,
5621,
3639,
775,
288,
5411,
368,
9610,
1964,... |
MessageSender messageSender = new MessageSender(_serviceContext); messageSender.setWsaAction("creditOperation"); messageSender.setTo(this.toEPR); messageSender .setSenderTransport(org.apache.axis2.Constants.TRANSPORT_HTTP); messageSender.send(operations[0], messageContext); } | } | public void creditOperation() throws IOException { EndpointReference replyToEpr; org.apache.axis2.context.MessageContext messageContext = getMessageContext(); messageContext.setProperty(AddressingConstants.WS_ADDRESSING_VERSION, AddressingConstants.Submission.WSA_NAMESPACE); org.apache.axis2.soap.SOAPEnvelope env = createSOAPEnvelope(); messageContext.setEnvelope(env); MessageSender messageSender = new MessageSender(_serviceContext); messageSender.setWsaAction("creditOperation"); messageSender.setTo(this.toEPR); messageSender .setSenderTransport(org.apache.axis2.Constants.TRANSPORT_HTTP); messageSender.send(operations[0], messageContext); } | 2720 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2720/91c952d277c7c5b4eadc416302cc7291d60920a6/KandulaDemoServiceStub.java/clean/test/org/apache/kandula/integration/KandulaDemoServiceStub.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12896,
2988,
1435,
1216,
1860,
288,
3639,
6961,
2404,
30934,
41,
683,
31,
3639,
2358,
18,
19211,
18,
4890,
22,
18,
2472,
18,
1079,
1042,
883,
1042,
273,
2381,
1042,
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,
12896,
2988,
1435,
1216,
1860,
288,
3639,
6961,
2404,
30934,
41,
683,
31,
3639,
2358,
18,
19211,
18,
4890,
22,
18,
2472,
18,
1079,
1042,
883,
1042,
273,
2381,
1042,
5621,
3639,... |
String setOnClick = (String)parameters.get("setonclick"); | public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging() && C_DEBUG) { A_OpenCms.log(C_OPENCMS_DEBUG, getClassName() + "getting content of element " + ((elementName == null) ? "<root>" : elementName)); A_OpenCms.log(C_OPENCMS_DEBUG, getClassName() + "template file is: " + templateFile); A_OpenCms.log(C_OPENCMS_DEBUG, getClassName() + "selected template section is: " + ((templateSelector == null) ? "<default>" : templateSelector)); } I_CmsSession session = cms.getRequestContext().getSession(true); CmsXmlWpTemplateFile xmlTemplateDocument = (CmsXmlWpTemplateFile)getOwnTemplateFile(cms, templateFile, elementName, parameters, templateSelector); // test whether the pics folder exists at all try { cms.readFileHeader(getConfigFile(cms).getPicGalleryPath()); } catch(CmsException e) { xmlTemplateDocument.setData("ERRORDETAILS", Utils.getStackTrace(e)); templateSelector = "error"; } if(!"error".equals(templateSelector)) { if(parameters.get(C_PARA_INITIAL) != null) { session.removeValue(C_PARA_FOLDER); } String folder = (String)parameters.get(C_PARA_FOLDER); if(folder != null) { session.putValue(C_PARA_FOLDER, folder); } folder = (String)session.getValue(C_PARA_FOLDER); if(folder == null || "".equals(folder)) { folder = getConfigFile(cms).getPicGalleryPath(); Vector galleries = cms.getSubFolders(folder); if(galleries.size() > 0) { // take the first gallery folder = ((CmsResource)galleries.elementAt(0)).getAbsolutePath(); session.putValue(C_PARA_FOLDER, folder); } else { // there was a /pics/ - folder but no galery in it templateSelector = "error_no_gallery"; } } if(!"error_no_gallery".equals(templateSelector)) { String pageText = (String)parameters.get(C_PARA_PAGE); String filter = (String)parameters.get(C_PARA_FILTER); // Check if the user requested a special page if(pageText == null || "".equals(pageText)) { pageText = "1"; parameters.put(C_PARA_PAGE, pageText); } // Check if the user requested a filter if(filter == null) { filter = ""; parameters.put(C_PARA_FILTER, filter); } // Compute the maximum page number Vector filteredPics = getFilteredPicList(cms, folder, filter); int maxpage = ((filteredPics.size() - 1) / C_PICBROWSER_MAXIMAGES) + 1; // Now set the appropriate datablocks xmlTemplateDocument.setData(C_PARA_FOLDER, Encoder.escape(folder)); xmlTemplateDocument.setData(C_PARA_PAGE, pageText); xmlTemplateDocument.setData(C_PARA_FILTER, filter); xmlTemplateDocument.setData(C_PARA_MAXPAGE, "" + maxpage); String setOnClick = (String)parameters.get("setonclick"); if(setOnClick == null || !"true".equals(setOnClick)){ xmlTemplateDocument.setData("setonclick", ""); }else{ xmlTemplateDocument.setData("setonclick", "true"); } parameters.put("_PICLIST_", filteredPics); } } // Start the processing return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/c449bbfde717feb6627b36507205d8ecc0419c4f/CmsPictureBrowser.java/clean/src/com/opencms/workplace/CmsPictureBrowser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
309,
12,
45,
67,
4747,
1343,
10585,
18,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
309,
12,
45,
67,
4747,
1343,
10585,
18,
39... | |
public boolean equivalent( org.omg.CORBA.TypeCode tc ) { try { org.jacorb.orb.TypeCode jtc = (org.jacorb.orb.TypeCode)tc; if( is_recursive() ) { checkActualTC(); if( jtc.is_recursive() ) { jtc.checkActualTC(); if ( secondIteration ) { return true; } else { secondIteration = true; boolean result = actualTypecode.equivalent( jtc.actualTypecode ); secondIteration = false; return result; } } return jtc.equivalent( actualTypecode ); } else if( jtc.is_recursive() ) { jtc.checkActualTC(); return equivalent( jtc.actualTypecode ); } /* unalias any typedef'd types */ if( kind().value() == TCKind._tk_alias ) { return content_type().equivalent( tc ); } if( tc.kind().value() == TCKind._tk_alias ) { return equivalent( tc.content_type() ); } if( kind().value() != tc.kind().value() ) { return false; } if( kind == TCKind._tk_objref || kind == TCKind._tk_struct || kind == TCKind._tk_union || kind == TCKind._tk_enum || kind == TCKind._tk_alias || kind == TCKind._tk_except || kind == TCKind._tk_value || kind == TCKind._tk_value_box || kind == TCKind._tk_native || kind == TCKind._tk_abstract_interface || kind == TCKind._tk_local_interface ) { if( id().length() > 0 && tc.id().length() > 0 ) { if ( id().equals( tc.id() ) ) { return true; } return false; } } if ( kind == TCKind._tk_struct || kind == TCKind._tk_union || kind == TCKind._tk_enum || kind == TCKind._tk_value || kind == TCKind._tk_except ) { if ( member_count() != tc.member_count() ) { return false; } for (int i = 0; i < member_count(); i++) { if ( kind != TCKind._tk_enum && ! member_type(i).equivalent( tc.member_type(i) ) ) { return false; } if ( kind == TCKind._tk_union && ! member_label(i).equal( tc.member_label(i) ) ) { return false; } if ( kind == TCKind._tk_value && member_visibility(i) != tc.member_visibility(i) ) { return false; } } } if ( kind == TCKind._tk_union ) { if ( ! discriminator_type().equivalent( tc.discriminator_type() ) || default_index() != tc.default_index() ) { return false; } } if ( kind == TCKind._tk_string || kind == TCKind._tk_wstring || kind == TCKind._tk_array || kind == TCKind._tk_sequence) { if ( length() != tc.length() ) { return false; } } if ( kind == TCKind._tk_array || kind == TCKind._tk_sequence || kind == TCKind._tk_alias || kind == TCKind._tk_value_box) { if ( ! content_type().equivalent( tc.content_type() ) ) { return false; } } if (kind == TCKind._tk_fixed) { if ( fixed_digits() != tc.fixed_digits() || fixed_scale() != tc.fixed_scale() ) { return false; } } if (kind == TCKind._tk_value) { if ( type_modifier() != tc.type_modifier() || ! concrete_base_type().equivalent( tc.concrete_base_type() ) ) { return false; } } } catch( org.omg.CORBA.TypeCodePackage.Bounds b ) { b.printStackTrace(); return false; } catch( org.omg.CORBA.TypeCodePackage.BadKind bk ) { bk.printStackTrace(); return false; } return true; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/7271c3cbb78470b90b072d36661a5ab67199cc91/TypeCode.java/buggy/src/org/jacorb/orb/TypeCode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
7680,
12,
2358,
18,
362,
75,
18,
9428,
12536,
18,
15460,
1715,
262,
565,
288,
3639,
775,
540,
288,
5411,
2358,
18,
31390,
16640,
18,
16640,
18,
15460,
525,
5111,
273,
261,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
7680,
12,
2358,
18,
362,
75,
18,
9428,
12536,
18,
15460,
1715,
262,
565,
288,
3639,
775,
540,
288,
5411,
2358,
18,
31390,
16640,
18,
16640,
18,
15460,
525,
5111,
273,
261,
3... | ||
assertTrue("could not advance to read first row in ResultSet", rs.next()); | assertTrue("could not advance to read first row in ResultSet", rs.next()); | public void testTriggerSetIpInterfaceIdInIfServiceNullIfIndexBoth() throws Exception { if (!isDBTestEnabled()) { return; } m_installer.createSequences(); m_installer.createTables(); m_installer.updatePlPgsql(); m_installer.addStoredProcedures(); executeSQL("INSERT INTO node (nodeId, nodeCreateTime) VALUES ( 1, now() )"); executeSQL("INSERT INTO ipInterface (nodeId, ipAddr, ifIndex) VALUES ( 1, '1.2.3.4', null )"); executeSQL("INSERT INTO service (serviceID, serviceName) VALUES ( 1, 'COFFEE-READY' )"); executeSQL("INSERT INTO ifServices (nodeID, ipAddr, ifIndex, serviceID) VALUES ( 1, '1.2.3.4', null, 1)"); Statement st = m_installer.m_dbconnection.createStatement(); ResultSet rs = st.executeQuery("SELECT id, ipInterfaceID from ifServices"); assertTrue("could not advance to read first row in ResultSet", rs.next()); assertEquals("expected ifServices id", 2, rs.getInt(1)); assertEquals("expected ifServices ipInterfaceId", 1, rs.getInt(2)); assertFalse("ResultSet contains more than one row", rs.next()); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/9c0a59382d378a750edf84524762ab71e335b4b3/InstallerDBTest.java/buggy/opennms-install/src/test/java/org/opennms/install/InstallerDBTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6518,
694,
5273,
1358,
548,
382,
2047,
1179,
2041,
2047,
1016,
20240,
1435,
1216,
1185,
288,
3639,
309,
16051,
291,
2290,
4709,
1526,
10756,
288,
5411,
327,
31,
3639,
289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6518,
694,
5273,
1358,
548,
382,
2047,
1179,
2041,
2047,
1016,
20240,
1435,
1216,
1185,
288,
3639,
309,
16051,
291,
2290,
4709,
1526,
10756,
288,
5411,
327,
31,
3639,
289,
... |
if (writeLog && mod!=null) mod.log("."); | if (writeLog && mod!=null) mod.log("."); | public static String[] getGenBankIDs(String[] accessionNumbers, boolean nucleotides, CommandRecord commandRec, MesquiteModule mod, boolean writeLog){ try { String searchString=""; for (int i=0; i<accessionNumbers.length;i++) { searchString+=accessionNumbers[i]; if (i<accessionNumbers.length-1) searchString+="+OR+"; } if (writeLog && mod!=null) mod.log("."); StringBuffer sb = new StringBuffer(); URL queryURL = getESearchAddress(searchString, nucleotides); if (writeLog && mod!=null) mod.log("."); URLConnection connection = queryURL.openConnection(); if (writeLog && mod!=null) mod.log("."); InputStream in = connection.getInputStream(); int c; int count=0; while ((c = in.read()) != -1) { sb.append((char) c); count++; if (count % 100==0 && writeLog && mod!=null) mod.log("."); } in.close(); String[] idList = getGIs(sb.toString()); return idList; } catch ( Exception e ){ // give warning return null; } } | 56479 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56479/e196169095dd958806ffe4bba83752cbe67c02e6/NCBIUtil.java/buggy/Source/mesquite/molec/lib/NCBIUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
202,
482,
760,
514,
8526,
7162,
275,
16040,
5103,
12,
780,
8526,
2006,
285,
10072,
16,
1250,
9244,
18493,
4369,
16,
3498,
2115,
1296,
5650,
16,
490,
281,
372,
1137,
3120,
681,
16,
1250,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
202,
482,
760,
514,
8526,
7162,
275,
16040,
5103,
12,
780,
8526,
2006,
285,
10072,
16,
1250,
9244,
18493,
4369,
16,
3498,
2115,
1296,
5650,
16,
490,
281,
372,
1137,
3120,
681,
16,
1250,
... |
switch (type) { case 'a' : case 'A' : case 'Z' : if (lCurElemString.length() >= occurrences) { result.append(lCurElemString.toCharArray(), 0, occurrences); } else { result.append(lCurElemString); occurrences -= lCurElemString.length(); grow(result, (type == 'a') ? sNil10 : sSp10, occurrences); } | switch (type) { case 'a' : case 'A' : case 'Z' : if (lCurElemString.length() >= occurrences) { result.append(lCurElemString.toCharArray(), 0, occurrences); } else { result.append(lCurElemString); occurrences -= lCurElemString.length(); grow(result, (type == 'a') ? sNil10 : sSp10, occurrences); } | public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); int idx = 0; String lCurElemString; while(!format.isAtEnd()) { // Possible next type, format of current type, occurrences of type char next = format.nextChar(); if (Character.isWhitespace(type)) { // skip all spaces type = next; continue; } if (next == '!' || next == '_') { if (NATIVE_CODES.indexOf(type) == -1) { throw runtime.newArgumentError("'" + next + "' allowed only after types " + NATIVE_CODES); } next = format.nextChar(); } // Determine how many of type are needed (default: 1) boolean isStar = false; int occurrences = 1; if (next == '*') { if ("@Xxu".indexOf(type) != -1) { occurrences = 0; } else { occurrences = listSize; isStar = true; } next = format.nextChar(); } else if (Character.isDigit(next)) { format.backup(1); // an exception may occur here if an int can't hold this but ... occurrences = format.nextAsciiNumber(); next = format.nextChar(); } Converter converter = (Converter) converters.get(new Character(type)); if (converter != null) { idx = encode(runtime, occurrences, result, list, idx, converter); type = next; continue; } switch (type) { case '%' : throw runtime.newArgumentError("% is not supported"); case 'A' : case 'a' : case 'Z' : case 'B' : case 'b' : case 'H' : case 'h' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); if (isStar) { occurrences = lCurElemString.length(); } switch (type) { case 'a' : case 'A' : case 'Z' : if (lCurElemString.length() >= occurrences) { result.append(lCurElemString.toCharArray(), 0, occurrences); } else {//need padding //I'm fairly sure there is a library call to create a //string filled with a given char with a given length but I couldn't find it result.append(lCurElemString); occurrences -= lCurElemString.length(); grow(result, (type == 'a') ? sNil10 : sSp10, occurrences); } break; //I believe there is a bug in the b and B case we skip a char too easily case 'b' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { if ((lCurElemString.charAt(i++) & 1) != 0) {//if the low bit is set currentByte |= 128; //set the high bit of the result } if ((i & 7) == 0) { result.append((char) (currentByte & 0xff)); currentByte = 0; continue; } //if the index is not a multiple of 8, we are not on a byte boundary currentByte >>= 1; //shift the byte } if ((occurrences & 7) != 0) { //if the length is not a multiple of 8 currentByte >>= 7 - (occurrences & 7); //we need to pad the last byte result.append((char) (currentByte & 0xff)); } //do some padding, I don't understand the padding strategy result.setLength(result.length() + padLength); } break; case 'B' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { currentByte |= lCurElemString.charAt(i++) & 1; // we filled up current byte; append it and create next one if ((i & 7) == 0) { result.append((char) (currentByte & 0xff)); currentByte = 0; continue; } //if the index is not a multiple of 8, we are not on a byte boundary currentByte <<= 1; } if ((occurrences & 7) != 0) { //if the length is not a multiple of 8 currentByte <<= 7 - (occurrences & 7); //we need to pad the last byte result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; case 'h' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { char currentChar = lCurElemString.charAt(i++); if (Character.isJavaIdentifierStart(currentChar)) { //this test may be too lax but it is the same as in MRI currentByte |= (((currentChar & 15) + 9) & 15) << 4; } else { currentByte |= (currentChar & 15) << 4; } if ((i & 1) != 0) { currentByte >>= 4; } else { result.append((char) (currentByte & 0xff)); currentByte = 0; } } if ((occurrences & 1) != 0) { result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; case 'H' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { char currentChar = lCurElemString.charAt(i++); if (Character.isJavaIdentifierStart(currentChar)) { //this test may be too lax but it is the same as in MRI currentByte |= ((currentChar & 15) + 9) & 15; } else { currentByte |= currentChar & 15; } if ((i & 1) != 0) { currentByte <<= 4; } else { result.append((char) (currentByte & 0xff)); currentByte = 0; } } if ((occurrences & 1) != 0) { result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; } break; } case 'x' : grow(result, sNil10, occurrences); break; case 'X' : try { shrink(result, occurrences); } catch (IllegalArgumentException e) { throw runtime.newArgumentError("in `pack': X outside of string"); } break; case '@' : occurrences -= result.length(); if (occurrences > 0) { grow(result, sNil10, occurrences); } occurrences = -occurrences; if (occurrences > 0) { shrink(result, occurrences); } break; case 'u' : case 'm' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); occurrences = occurrences <= 2 ? 45 : occurrences / 3 * 3; for (;;) { encodes(runtime, result, lCurElemString, occurrences, type); if (occurrences >= lCurElemString.length()) { break; } lCurElemString = lCurElemString.substring(occurrences); } } break; case 'M' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); if (occurrences <= 1) { occurrences = 72; } qpencode(result, lCurElemString, occurrences); } break; case 'U' : char[] c = new char[occurrences]; for (int cIndex = 0; occurrences-- > 0; cIndex++) { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); long l = from == runtime.getNil() ? 0 : RubyNumeric.num2long(from); c[cIndex] = (char) l; } try { byte[] bytes = new String(c).getBytes("UTF-8"); result.append(RubyString.bytesToString(bytes)); } catch (java.io.UnsupportedEncodingException e) { assert false : "can't convert to UTF8"; } break; } type = next; } return runtime.newString(result.toString()); } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/buggy/src/org/jruby/util/Pack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
780,
2298,
12,
682,
666,
16,
19817,
780,
27107,
13,
288,
3639,
15908,
10340,
3099,
273,
27107,
18,
588,
5576,
5621,
3639,
14898,
682,
740,
273,
394,
14898,
682,
12,
2139... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
780,
2298,
12,
682,
666,
16,
19817,
780,
27107,
13,
288,
3639,
15908,
10340,
3099,
273,
27107,
18,
588,
5576,
5621,
3639,
14898,
682,
740,
273,
394,
14898,
682,
12,
2139... |
if (constrains == null || constrains == myLabelConstrains) return; myLabelConstrains = borderConstrains; | if (constrains == null || constrains == myLabelConstraints) return; myLabelConstraints = borderConstrains; | public void setLabelLocation(@NonNls String borderConstrains) { String constrains = findBorderConstrains(borderConstrains); if (constrains == null || constrains == myLabelConstrains) return; myLabelConstrains = borderConstrains; insertLabel(); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/572397b06553c194c77473436eedd931af343014/LabeledComponent.java/clean/ui/openapi/com/intellij/openapi/ui/LabeledComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16558,
2735,
26964,
3989,
50,
3251,
514,
5795,
442,
701,
4167,
13,
288,
565,
514,
14472,
4167,
273,
1104,
8107,
442,
701,
4167,
12,
8815,
442,
701,
4167,
1769,
565,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16558,
2735,
26964,
3989,
50,
3251,
514,
5795,
442,
701,
4167,
13,
288,
565,
514,
14472,
4167,
273,
1104,
8107,
442,
701,
4167,
12,
8815,
442,
701,
4167,
1769,
565,
309,
261,
... |
MetadataStore store = reader.getMetadataStore(id); store.setPixels(new Integer(getSizeX(id)), new Integer(getSizeY(id)), | MetadataStore s = reader.getMetadataStore(id); s.setPixels(new Integer(getSizeX(id)), new Integer(getSizeY(id)), | public MetadataStore getMetadataStore(String id) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id); MetadataStore store = reader.getMetadataStore(id); store.setPixels(new Integer(getSizeX(id)), new Integer(getSizeY(id)), new Integer(getSizeZ(id)), new Integer(getSizeC(id)), new Integer(getSizeT(id)), null, null, null, null); return store; } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/a9f08f4144d9b190b40353d537c4cdbd539859c8/ChannelMerger.java/buggy/loci/formats/ChannelMerger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6912,
2257,
11159,
2257,
12,
780,
612,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
6912,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6912,
2257,
11159,
2257,
12,
780,
612,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
6912,
225... |
classes = new RubyClasses(this); classes.initCoreClasses(); createFixnumCache(); | public Ruby() { initOperatorTable(); originalMethods = new RubyOriginalMethods(this); globalMap = new RubyHashMap(); nilObject = new RubyNil(this); trueObject = new RubyBoolean(this, true); falseObject = new RubyBoolean(this, false); classes = new RubyClasses(this); classes.initCoreClasses(); createFixnumCache(); } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/cf644c556d410c47305ebeba5728efa25f7756dc/Ruby.java/buggy/org/jruby/Ruby.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1435,
288,
3639,
1208,
5592,
1388,
5621,
7734,
2282,
4712,
273,
394,
19817,
8176,
4712,
12,
2211,
1769,
7734,
2552,
863,
273,
394,
19817,
8658,
5621,
7734,
515,
921,
273,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1435,
288,
3639,
1208,
5592,
1388,
5621,
7734,
2282,
4712,
273,
394,
19817,
8176,
4712,
12,
2211,
1769,
7734,
2552,
863,
273,
394,
19817,
8658,
5621,
7734,
515,
921,
273,
394,
... | |
public void setVariableFromProgram(HashMap map, VariableContractType type) throws NullPointerException { if ((map == null) || (type == null)) { throw new NullPointerException("Null arguments"); } String name; java.util.Iterator it = map.keySet().iterator(); while (it.hasNext()) { name = (String) it.next(); setVariableFromProgram(name, (String) map.get(name), type); } | public void setVariableFromProgram(String name, String value, VariableContractType type) { setVariableFrom(name, value, type, "Program"); | public void setVariableFromProgram(HashMap map, VariableContractType type) throws NullPointerException { if ((map == null) || (type == null)) { throw new NullPointerException("Null arguments"); } String name; java.util.Iterator it = map.keySet().iterator(); while (it.hasNext()) { name = (String) it.next(); setVariableFromProgram(name, (String) map.get(name), type); } } | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/283a918278b6eb008118989b66296994b3079a05/VariableContract.java/buggy/src/org/objectweb/proactive/core/xml/VariableContract.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20357,
1265,
9459,
12,
8658,
852,
16,
7110,
8924,
559,
618,
13,
3639,
1216,
10108,
288,
3639,
309,
14015,
1458,
422,
446,
13,
747,
261,
723,
422,
446,
3719,
288,
5411,
604,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20357,
1265,
9459,
12,
8658,
852,
16,
7110,
8924,
559,
618,
13,
3639,
1216,
10108,
288,
3639,
309,
14015,
1458,
422,
446,
13,
747,
261,
723,
422,
446,
3719,
288,
5411,
604,
3... |
public int doEndTag() throws JspException { //System.err.println("in TextTag:doEnd"); if (!beanId.equals("")) { if ((key != null) && (textBean.getKey() == null)) { textBean.setKey(key); } this.updateBaseComponentBean(textBean); } else { if (key != null) textBean.setKey(key); textBean.setStyle(style); this.setBaseComponentBean(textBean); } //debug(); if (textBean.getKey() != null) { Locale locale = pageContext.getRequest().getLocale(); ResourceBundle bundle = ResourceBundle.getBundle("Portlet", locale); textBean.setValue(bundle.getString(textBean.getKey())); } Object parentTag = getParent(); if (parentTag instanceof ContainerTag) { ContainerTag containerTag = (ContainerTag)parentTag; containerTag.addTagBean(textBean); //System.err.println("inTextTag: adding " + textBean.toString()); } else { try { JspWriter out = pageContext.getOut(); out.print(textBean.toString()); } catch (Exception e) { throw new JspException(e.getMessage()); } } return EVAL_BODY_INCLUDE; } | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/9863b89cfaff33fe3399474348972a14bc241035/TextTag.java/buggy/src/org/gridlab/gridsphere/tags/portletui/TextTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
474,
2896,
25633,
1435,
15069,
21796,
503,
95,
759,
3163,
18,
370,
18,
8222,
2932,
267,
1528,
1805,
30,
2896,
1638,
8863,
430,
12,
5,
14496,
548,
18,
14963,
2932,
6,
3719,
95,
430,
124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
474,
2896,
25633,
1435,
15069,
21796,
503,
95,
759,
3163,
18,
370,
18,
8222,
2932,
267,
1528,
1805,
30,
2896,
1638,
8863,
430,
12,
5,
14496,
548,
18,
14963,
2932,
6,
3719,
95,
430,
124... | ||
} | } | static void boot (VM_BootRecord bootrecord) { verbose = bootrecord.verboseGC; smallHeapSize = bootrecord.smallSpaceSize; int largeSize = bootrecord.largeSpaceSize; int immortalSize = VM_Memory.roundUpPage((4 * largeSize / VM_Memory.getPagesize()) + 4 * VM_Memory.getPagesize()); int nurserySize = bootrecord.nurserySize; int oneSpaceSize = VM_Memory.roundUpPage(smallHeapSize / 2); // set delta for triggering major gc to .25 of nursery size (this is a guess) if (nurserySize > 20*1024*1024) { MAJOR_GC_DELTA = nurserySize/4; // .25 of nursery for large nursery // for measurement runs with LARGE nursery sizes, limit delta to fixed 10MB if (MAJOR_GC_DELTA > 10*1024*1024) MAJOR_GC_DELTA = 10*1024*1024; } else MAJOR_GC_DELTA = nurserySize/2; // .50 of nursery for small nursery VM_Heap.boot(bootHeap, /* no malloc heap with this collector*/ null, bootrecord); immortalHeap.attach(immortalSize); largeHeap.attach(largeSize); if (variableNursery) { appelHeap.attach(smallHeapSize, nurseryHeap, fromHeap, toHeap); } else { appelHeap = null; nurseryHeap.attach(nurserySize); fromHeap.attach(oneSpaceSize); toHeap.attach(oneSpaceSize); } if (COMPILE_FOR_TIMING_RUN) { largeHeap.touchPages(); toHeap.touchPages(); fromHeap.touchPages(); nurseryHeap.touchPages(); } if (VM.ParanoidGCCheck) toHeap.protect(); // initialize pointers used for allocation in the nursery VM_Processor st = VM_Processor.getCurrentProcessor(); if (PROCESSOR_LOCAL_ALLOCATE) VM_Chunk.resetChunk1(st, nurseryHeap, false); if (PROCESSOR_LOCAL_MATURE_ALLOCATE) VM_Chunk.resetChunk2(st, fromHeap, false); // check for inconsistent heap & nursery sizes if (smallHeapSize < nurserySize) { VM.sysWrite("\nNursery size is too large for the specified Heap size:\n"); VM.sysWrite(" Small Object Heap Size = "); VM.sysWrite(smallHeapSize,false); VM.sysWrite("\n"); VM.sysWrite(" Nursery Size = "); VM.sysWrite(nurserySize,false); VM.sysWrite("\n"); VM.sysWrite("Use -X:h=nnn & -X:nh=nnn to specify a heap size at least twice as big as the nursery\n"); VM.sysWrite("Remember, the nursery is subtracted from the specified heap size\n"); VM.shutdown(-5); } VM_GCUtil.boot(); VM_Finalizer.setup(); if (verbose >= 1) showParameter(); } // boot() | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/4dcaa02ef21feff3a95d1fa7e3d6759c55f8eac0/VM_Allocator.java/buggy/rvm/src/vm/memoryManagers/watson/copyGen/VM_Allocator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
4835,
261,
7397,
67,
15817,
2115,
4835,
3366,
13,
288,
377,
3988,
273,
4835,
3366,
18,
11369,
15396,
31,
565,
5264,
15648,
1225,
273,
4835,
3366,
18,
12019,
3819,
1225,
31,
565,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
4835,
261,
7397,
67,
15817,
2115,
4835,
3366,
13,
288,
377,
3988,
273,
4835,
3366,
18,
11369,
15396,
31,
565,
5264,
15648,
1225,
273,
4835,
3366,
18,
12019,
3819,
1225,
31,
565,... |
if(Constants.NUMBERLEVEL_ANY == m_level) | if (Constants.NUMBERLEVEL_ANY == m_level) | public Node getPreviousNode(XPathContext xctxt, Node pos) throws SAXException { XPath countMatchPattern = getCountMatchPattern(xctxt, pos); if(Constants.NUMBERLEVEL_ANY == m_level) { XPath fromMatchPattern = m_fromMatchPattern; // Do a backwards document-order walk 'till a node is found that matches // the 'from' pattern, or a node is found that matches the 'count' pattern, // or the top of the tree is found. while(null != pos) { // Get the previous sibling, if there is no previous sibling, // then count the parent, but if there is a previous sibling, // dive down to the lowest right-hand (last) child of that sibling. Node next = pos.getPreviousSibling(); if(null == next) { next = pos.getParentNode(); if((null != next) && ((((null != fromMatchPattern) && (fromMatchPattern.getMatchScore(xctxt, next) != XPath.MATCH_SCORE_NONE))) || (next.getNodeType() == Node.DOCUMENT_NODE))) { pos = null; // return null from function. break; // from while loop } } else { // dive down to the lowest right child. Node child = next; while(null != child) { child = next.getLastChild(); if(null != child) next = child; } } pos = next; if((null != pos) && ((null == countMatchPattern) || (countMatchPattern.getMatchScore(xctxt, pos) != XPath.MATCH_SCORE_NONE))) { break; } } } else // NUMBERLEVEL_MULTI or NUMBERLEVEL_SINGLE { while(null != pos) { pos = pos.getPreviousSibling(); if((null != pos) && ((null == countMatchPattern) || (countMatchPattern.getMatchScore(xctxt, pos) != XPath.MATCH_SCORE_NONE))) { break; } } } return pos; } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/ElemNumber.java/buggy/src/org/apache/xalan/templates/ElemNumber.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2029,
17225,
907,
12,
14124,
1042,
25465,
16,
2029,
949,
13,
565,
1216,
14366,
225,
288,
3639,
10172,
1056,
2060,
3234,
273,
14155,
2060,
3234,
12,
92,
20364,
16,
949,
1769,
377,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
17225,
907,
12,
14124,
1042,
25465,
16,
2029,
949,
13,
565,
1216,
14366,
225,
288,
3639,
10172,
1056,
2060,
3234,
273,
14155,
2060,
3234,
12,
92,
20364,
16,
949,
1769,
377,
30... |
for (Iterator<UIPropertyBinding> iterator = myBindings.iterator(); iterator.hasNext();) { UIPropertyBinding propertyBinding = iterator.next(); | for (final UIPropertyBinding propertyBinding : myBindings) { | public void apply(AbstractProperty.AbstractPropertyContainer container) { for (Iterator<UIPropertyBinding> iterator = myBindings.iterator(); iterator.hasNext();) { UIPropertyBinding propertyBinding = iterator.next(); propertyBinding.apply(container); } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/3ab4b24381bd6f33991f875143f64df653cbe69f/UIPropertyBinding.java/buggy/plugins/ant/src/com/intellij/lang/ant/config/impl/configuration/UIPropertyBinding.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2230,
12,
7469,
1396,
18,
7469,
1396,
2170,
1478,
13,
288,
1377,
364,
261,
3198,
32,
5370,
1396,
5250,
34,
2775,
273,
3399,
10497,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2230,
12,
7469,
1396,
18,
7469,
1396,
2170,
1478,
13,
288,
1377,
364,
261,
3198,
32,
5370,
1396,
5250,
34,
2775,
273,
3399,
10497,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
... |
public boolean isSet(org.quickfix.field.ClOrdID field) | public boolean isSet(quickfix.field.ClOrdID field) | public boolean isSet(org.quickfix.field.ClOrdID field) { return isSetField(field); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationReport.java/clean/src/java/src/quickfix/fix44/AllocationReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
2009,
15383,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
2009,
15383,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ICSourceLocator sl = getSourceLocator(); if ( sl != null ) return ( sl.findSourceElement( handle ) != null ); | ISourceLocator sl = getSourceLocator(); if ( sl instanceof ICSourceLocator ) return ( ((ICSourceLocator)sl).findSourceElement( handle ) != null ); else if ( sl instanceof CSourceLookupDirector ) { return true; } | public boolean isTargetBreakpoint( ICBreakpoint breakpoint ) { // Problem: gdb doesn't accept breakpoint if the file is specified by full path (depends on the current directory). // This prevents us from using gdb as a breakpoint filter. The case when two unrelated projects contain files // with the same name will cause problems. // Current solution: the source locator is used as a breakpoint filter. IResource resource = breakpoint.getMarker().getResource(); if ( breakpoint instanceof ICAddressBreakpoint ) return supportsAddressBreakpoint( (ICAddressBreakpoint)breakpoint ); if ( breakpoint instanceof ICLineBreakpoint ) { try { String handle = breakpoint.getSourceHandle(); ICSourceLocator sl = getSourceLocator(); if ( sl != null ) return ( sl.findSourceElement( handle ) != null ); } catch( CoreException e ) { return false; } } else { IProject project = resource.getProject(); if ( project != null && project.exists() ) { ICSourceLocator sl = getSourceLocator(); if ( sl != null ) return sl.contains( project ); if ( project.equals( getProject() ) ) return true; return CDebugUtils.isReferencedProject( getProject(), project ); } } return true; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/af37524c7ae90496885c26ddfc66724b26d89db9/CBreakpointManager.java/clean/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
2326,
20552,
12,
26899,
20552,
18820,
262,
288,
202,
202,
759,
21685,
30,
314,
1966,
3302,
1404,
2791,
18820,
309,
326,
585,
353,
1269,
635,
1983,
589,
261,
27360,
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,
225,
202,
482,
1250,
353,
2326,
20552,
12,
26899,
20552,
18820,
262,
288,
202,
202,
759,
21685,
30,
314,
1966,
3302,
1404,
2791,
18820,
309,
326,
585,
353,
1269,
635,
1983,
589,
261,
27360,
60... |
return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMilliseconds()); | return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMilliseconds()); | public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case ConstructorId_UTC: return wrap_double (jsStaticFunction_UTC(cx, thisObj, args, f)); case ConstructorId_parse: return wrap_double (jsStaticFunction_parse(ScriptRuntime.toString(args, 0))); case CONSTRUCTOR_ID: return jsConstructor(cx, args, f, thisObj == null); case Id_toString: return realThis(thisObj, f, true). jsFunction_toString(); case Id_toTimeString: return realThis(thisObj, f, true). jsFunction_toTimeString(); case Id_toDateString: return realThis(thisObj, f, true). jsFunction_toDateString(); case Id_toLocaleString: return realThis(thisObj, f, true). jsFunction_toLocaleString(); case Id_toLocaleTimeString: return realThis(thisObj, f, true). jsFunction_toLocaleTimeString(); case Id_toLocaleDateString: return realThis(thisObj, f, true). jsFunction_toLocaleDateString(); case Id_toUTCString: return realThis(thisObj, f, true). jsFunction_toUTCString(); case Id_valueOf: return wrap_double(realThis(thisObj, f, true). jsFunction_valueOf()); case Id_getTime: return wrap_double(realThis(thisObj, f, true). jsFunction_getTime()); case Id_getYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getYear()); case Id_getFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getFullYear()); case Id_getUTCFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCFullYear()); case Id_getMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getMonth()); case Id_getUTCMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMonth()); case Id_getDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getDate()); case Id_getUTCDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDate()); case Id_getDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getDay()); case Id_getUTCDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDay()); case Id_getHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getHours()); case Id_getUTCHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCHours()); case Id_getMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getMinutes()); case Id_getUTCMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMinutes()); case Id_getSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getSeconds()); case Id_getUTCSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCSeconds()); case Id_getMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getMilliseconds()); case Id_getUTCMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMilliseconds()); case Id_getTimezoneOffset: return wrap_double(realThis(thisObj, f, true). jsFunction_getTimezoneOffset()); case Id_setTime: return wrap_double(realThis(thisObj, f, true). jsFunction_setTime(ScriptRuntime.toNumber(args, 0))); case Id_setMilliseconds: return wrap_double (jsFunction_setMilliseconds(cx, thisObj, args, f)); case Id_setUTCMilliseconds: return wrap_double( jsFunction_setUTCMilliseconds(cx, thisObj, args, f)); case Id_setSeconds: return wrap_double( jsFunction_setSeconds(cx, thisObj, args, f)); case Id_setUTCSeconds: return wrap_double( jsFunction_setUTCSeconds(cx, thisObj, args, f)); case Id_setMinutes: return wrap_double( jsFunction_setMinutes(cx, thisObj, args, f)); case Id_setUTCMinutes: return wrap_double( jsFunction_setUTCMinutes(cx, thisObj, args, f)); case Id_setHours: return wrap_double( jsFunction_setHours(cx, thisObj, args, f)); case Id_setUTCHours: return wrap_double( jsFunction_setUTCHours(cx, thisObj, args, f)); case Id_setDate: return wrap_double( jsFunction_setDate(cx, thisObj, args, f)); case Id_setUTCDate: return wrap_double( jsFunction_setUTCDate(cx, thisObj, args, f)); case Id_setMonth: return wrap_double( jsFunction_setMonth(cx, thisObj, args, f)); case Id_setUTCMonth: return wrap_double( jsFunction_setUTCMonth(cx, thisObj, args, f)); case Id_setFullYear: return wrap_double( jsFunction_setFullYear(cx, thisObj, args, f)); case Id_setUTCFullYear: return wrap_double( jsFunction_setUTCFullYear(cx, thisObj, args, f)); case Id_setYear: return wrap_double(realThis(thisObj, f, true). jsFunction_setYear(ScriptRuntime.toNumber(args, 0))); } return Scriptable.NOT_FOUND; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/1f40b84b6c54487dd6f26829d1ebda36a7567a38/NativeDate.java/clean/js/rhino/src/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... |
this.baseURL = baseURL; | this.baseURL = baseUrlToUse; | public ViewVcIntegration(String baseURL) { int i = baseURL.indexOf("?"); if (i != -1) { this.postfix = baseURL.substring(i + 1); baseURL = baseURL.substring(0, i); } if (baseURL.endsWith("/")) { this.baseURL = baseURL.substring(0, baseURL.length() - 1); } else { this.baseURL = baseURL; } } | 49097 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49097/a99ccf809bc2c155102602b3d87cbe7a3ae5ce0b/ViewVcIntegration.java/clean/src/net/sf/statcvs/output/ViewVcIntegration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4441,
58,
71,
15372,
12,
780,
17480,
13,
288,
202,
202,
474,
277,
273,
17480,
18,
31806,
2932,
7225,
1769,
202,
202,
430,
261,
77,
480,
300,
21,
13,
288,
1082,
202,
2211,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4441,
58,
71,
15372,
12,
780,
17480,
13,
288,
202,
202,
474,
277,
273,
17480,
18,
31806,
2932,
7225,
1769,
202,
202,
430,
261,
77,
480,
300,
21,
13,
288,
1082,
202,
2211,
18... |
if (VM.VerifyAssertions) VM._assert(offset != -1); | if (VM.VerifyAssertions) VM._assert(!offset.isMax()); | public int increment() { if (VM.VerifyAssertions) VM._assert(offset != -1); return VM_Synchronization.fetchAndAdd(this, offset, 1); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/3a1409586ed0fc007c4120f3a96d6f7a1ae3593c/SynchronizedCounter.java/buggy/rvm/src/vm/memoryManagers/JMTk/vmInterface/SynchronizedCounter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
5504,
1435,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
5,
3348,
18,
291,
2747,
10663,
565,
327,
8251,
67,
30196,
18,
5754,
1876,
986,
12,
2211... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
509,
5504,
1435,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
5,
3348,
18,
291,
2747,
10663,
565,
327,
8251,
67,
30196,
18,
5754,
1876,
986,
12,
2211... |
if(setAsBeanProperties) { org.mule.util.BeanUtils.populateWithoutFail(digester.peek(), props, true); } else { BeanUtils.setProperty(digester.peek(), string1, props); } | o = digester.pop(); | public void end(String string, String string1) throws Exception { Map props = (Map)digester.peek(); if(props.containsKey(MuleConfiguration.USE_MANAGER_PROPERTIES)) { props.putAll(MuleManager.getInstance().getProperties()); props.remove(MuleConfiguration.USE_MANAGER_PROPERTIES); } super.end(string, string1); if(setAsBeanProperties) { org.mule.util.BeanUtils.populateWithoutFail(digester.peek(), props, true); } else { BeanUtils.setProperty(digester.peek(), string1, props); } } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/15f03bd51fd9911706a99446cac4c7c8b29a6ae8/MuleXmlConfigurationBuilder.java/buggy/mule/src/java/org/mule/config/builders/MuleXmlConfigurationBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
679,
12,
780,
533,
16,
514,
533,
21,
13,
1216,
1185,
5411,
288,
7734,
1635,
3458,
273,
261,
863,
13,
5606,
7654,
18,
347,
3839,
5621,
7734,
309,
12,
9693,
18,
12298,
653,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
679,
12,
780,
533,
16,
514,
533,
21,
13,
1216,
1185,
5411,
288,
7734,
1635,
3458,
273,
261,
863,
13,
5606,
7654,
18,
347,
3839,
5621,
7734,
309,
12,
9693,
18,
12298,
653,
... |
public org.quickfix.field.UnderlyingContractMultiplier getUnderlyingContractMultiplier() throws FieldNotFound { org.quickfix.field.UnderlyingContractMultiplier value = new org.quickfix.field.UnderlyingContractMultiplier(); | public quickfix.field.UnderlyingContractMultiplier getUnderlyingContractMultiplier() throws FieldNotFound { quickfix.field.UnderlyingContractMultiplier value = new quickfix.field.UnderlyingContractMultiplier(); | public org.quickfix.field.UnderlyingContractMultiplier getUnderlyingContractMultiplier() throws FieldNotFound { org.quickfix.field.UnderlyingContractMultiplier value = new org.quickfix.field.UnderlyingContractMultiplier(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Quote.java/clean/src/java/src/quickfix/fix44/Quote.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
8924,
23365,
10833,
765,
6291,
8924,
23365,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
8924,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
8924,
23365,
10833,
765,
6291,
8924,
23365,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
8924,
... |
if (element instanceof IWorkspace) return true; else return false; | if (element instanceof IWorkspace) { return true; } else { return false; } | public boolean hasChildren(Object element) { if (element instanceof IWorkspace) return true; else return false; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/BookmarkContentProvider.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkContentProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
27780,
12,
921,
930,
13,
288,
3639,
309,
261,
2956,
1276,
467,
8241,
13,
5411,
327,
638,
31,
3639,
469,
5411,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
1250,
27780,
12,
921,
930,
13,
288,
3639,
309,
261,
2956,
1276,
467,
8241,
13,
5411,
327,
638,
31,
3639,
469,
5411,
327,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
throw new ArgumentError(runtime, sTooFew); | throw runtime.newArgumentError(sTooFew); | public static RubyString pack(List list, RubyString formatString) { Ruby runtime = formatString.getRuntime(); PtrList format = new PtrList(runtime, formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); int idx = 0; String lCurElemString; while(!format.isAtEnd()) { // Possible next type, format of current type, occurrences of type char next = format.nextChar(); if (Character.isWhitespace(type)) { // skip all spaces type = next; continue; } if (next == '!' || next == '_') { if (NATIVE_CODES.indexOf(type) == -1) { throw new ArgumentError(runtime, "'" + next + "' allowed only after types " + NATIVE_CODES); } next = format.nextChar(); } // Determine how many of type are needed (default: 1) boolean isStar = false; int occurrences = 1; if (next == '*') { if ("@Xxu".indexOf(type) != -1) { occurrences = 0; } else { occurrences = listSize; isStar = true; } next = format.nextChar(); } else if (Character.isDigit(next)) { format.backup(1); // an exception may occur here if an int can't hold this but ... occurrences = format.nextAsciiNumber(); next = format.nextChar(); } Converter converter = (Converter) converters.get(new Character(type)); if (converter != null) { idx = encode(runtime, occurrences, result, list, idx, converter); type = next; continue; } switch (type) { case '%' : throw new ArgumentError(runtime, "% is not supported"); case 'A' : case 'a' : case 'Z' : case 'B' : case 'b' : case 'H' : case 'h' : { if (listSize-- <= 0) { throw new ArgumentError(runtime, sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); if (isStar) { occurrences = lCurElemString.length(); } switch (type) { case 'a' : case 'A' : case 'Z' : if (lCurElemString.length() >= occurrences) { result.append(lCurElemString.toCharArray(), 0, occurrences); } else {//need padding //I'm fairly sure there is a library call to create a //string filled with a given char with a given length but I couldn't find it result.append(lCurElemString); occurrences -= lCurElemString.length(); grow(result, (type == 'a') ? sNil10 : sSp10, occurrences); } break; //I believe there is a bug in the b and B case we skip a char too easily case 'b' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { if ((lCurElemString.charAt(i++) & 1) != 0) {//if the low bit is set currentByte |= 128; //set the high bit of the result } if ((i & 7) == 0) { result.append((char) (currentByte & 0xff)); currentByte = 0; continue; } //if the index is not a multiple of 8, we are not on a byte boundary currentByte >>= 1; //shift the byte } if ((occurrences & 7) != 0) { //if the length is not a multiple of 8 currentByte >>= 7 - (occurrences & 7); //we need to pad the last byte result.append((char) (currentByte & 0xff)); } //do some padding, I don't understand the padding strategy result.setLength(result.length() + padLength); } break; case 'B' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { currentByte |= lCurElemString.charAt(i++) & 1; // we filled up current byte; append it and create next one if ((i & 7) == 0) { result.append((char) (currentByte & 0xff)); currentByte = 0; continue; } //if the index is not a multiple of 8, we are not on a byte boundary currentByte <<= 1; } if ((occurrences & 7) != 0) { //if the length is not a multiple of 8 currentByte <<= 7 - (occurrences & 7); //we need to pad the last byte result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; case 'h' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { char currentChar = lCurElemString.charAt(i++); if (Character.isJavaIdentifierStart(currentChar)) { //this test may be too lax but it is the same as in MRI currentByte |= (((currentChar & 15) + 9) & 15) << 4; } else { currentByte |= (currentChar & 15) << 4; } if ((i & 1) != 0) { currentByte >>= 4; } else { result.append((char) (currentByte & 0xff)); currentByte = 0; } } if ((occurrences & 1) != 0) { result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; case 'H' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { char currentChar = lCurElemString.charAt(i++); if (Character.isJavaIdentifierStart(currentChar)) { //this test may be too lax but it is the same as in MRI currentByte |= ((currentChar & 15) + 9) & 15; } else { currentByte |= currentChar & 15; } if ((i & 1) != 0) { currentByte <<= 4; } else { result.append((char) (currentByte & 0xff)); currentByte = 0; } } if ((occurrences & 1) != 0) { result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; } break; } case 'x' : grow(result, sNil10, occurrences); break; case 'X' : try { shrink(result, occurrences); } catch (IllegalArgumentException e) { throw new ArgumentError(runtime, "in `pack': X outside of string"); } break; case '@' : occurrences -= result.length(); if (occurrences > 0) { grow(result, sNil10, occurrences); } occurrences = -occurrences; if (occurrences > 0) { shrink(result, occurrences); } break; case 'u' : case 'm' : { if (listSize-- <= 0) { throw new ArgumentError(runtime, sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); occurrences = occurrences <= 2 ? 45 : occurrences / 3 * 3; for (;;) { encodes(runtime, result, lCurElemString, occurrences, type); if (occurrences >= lCurElemString.length()) { break; } lCurElemString = lCurElemString.substring(occurrences); } } break; case 'M' : { if (listSize-- <= 0) { throw new ArgumentError(runtime, sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); if (occurrences <= 1) { occurrences = 72; } qpencode(result, lCurElemString, occurrences); } break; case 'U' : char[] c = new char[occurrences]; for (int cIndex = 0; occurrences-- > 0; cIndex++) { if (listSize-- <= 0) { throw new ArgumentError(runtime, sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); long l = from == runtime.getNil() ? 0 : RubyNumeric.num2long(from); c[cIndex] = (char) l; } try { byte[] bytes = new String(c).getBytes("UTF-8"); result.append(RubyString.bytesToString(bytes)); } catch (java.io.UnsupportedEncodingException e) { Asserts.notReached("can't convert to UTF8"); } break; } type = next; } return RubyString.newString(runtime, result.toString()); } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/clean/src/org/jruby/util/Pack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
780,
2298,
12,
682,
666,
16,
19817,
780,
27107,
13,
288,
3639,
19817,
3099,
273,
27107,
18,
588,
5576,
5621,
3639,
14898,
682,
740,
273,
394,
14898,
682,
12,
9448,
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,
760,
19817,
780,
2298,
12,
682,
666,
16,
19817,
780,
27107,
13,
288,
3639,
19817,
3099,
273,
27107,
18,
588,
5576,
5621,
3639,
14898,
682,
740,
273,
394,
14898,
682,
12,
9448,
16,
... |
public synchronized boolean next(Writable key, Writable value) throws IOException { ObjectWritable wrapper = (ObjectWritable)value; try { wrapper.set(getValueClass().newInstance()); } catch (Exception e) { throw new IOException(e.toString()); } return super.next(key, (Writable)wrapper.get()); | public synchronized boolean next(Writable key, Writable value) throws IOException { ObjectWritable wrapper = (ObjectWritable) value; try { wrapper.set(getValueClass().newInstance()); } catch (Exception e) { throw new IOException(e.toString()); | public RecordReader getRecordReader(FileSystem fs, FileSplit split, JobConf job, Reporter reporter) throws IOException { reporter.setStatus(split.toString()); return new SequenceFileRecordReader(job, split) { public synchronized boolean next(Writable key, Writable value) throws IOException { ObjectWritable wrapper = (ObjectWritable)value; try { wrapper.set(getValueClass().newInstance()); } catch (Exception e) { throw new IOException(e.toString()); } return super.next(key, (Writable)wrapper.get()); } }; } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/82abec76c6fbc6a6fb6149749849e1fb3f354dbd/SegmentReader.java/clean/src/java/org/apache/nutch/segment/SegmentReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5059,
2514,
11674,
2514,
12,
11785,
2662,
16,
1387,
5521,
1416,
16,
4766,
3639,
3956,
3976,
1719,
16,
25585,
11528,
13,
1377,
1216,
1860,
288,
1377,
11528,
18,
542,
1482,
12,
4939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5059,
2514,
11674,
2514,
12,
11785,
2662,
16,
1387,
5521,
1416,
16,
4766,
3639,
3956,
3976,
1719,
16,
25585,
11528,
13,
1377,
1216,
1860,
288,
1377,
11528,
18,
542,
1482,
12,
4939,
... |
message.append("Psi Tree:"); message.append('\n'); DebugUtil.treeToBuffer(message, modelImpl.getFile().getNode(), 0, false, true, true); message.append('\n'); | buffer.append("Psi Tree:"); buffer.append('\n'); DebugUtil.treeToBuffer(buffer, modelImpl.getFile().getNode(), 0, false, true, true); buffer.append('\n'); | public static void assertInvalidRanges(final int startOffset, final int newEndOffset, FormattingDocumentModel model) { final StringBuffer message = new StringBuffer(); message.append("Invalid formatting blocks"); message.append('\n'); if (model instanceof FormattingDocumentModelImpl) { final FormattingDocumentModelImpl modelImpl = ((FormattingDocumentModelImpl)model); message.append("Psi Tree:"); message.append('\n'); DebugUtil.treeToBuffer(message, modelImpl.getFile().getNode(), 0, false, true, true); message.append('\n'); } message.append("Start Offset:"); message.append(startOffset); message.append(" "); message.append(newEndOffset); message.append(" "); message.append(newEndOffset); message.append("\n"); message.append("File text:"); message.append('\n'); message.append(model.getText(new TextRange(0, model.getTextLength())).toString()); LOG.assertTrue(false, message.toString()); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/f999fa8b47575880965d9febbcda4bb9e252766e/InitialInfoBuilder.java/clean/source/com/intellij/formatting/InitialInfoBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1815,
1941,
9932,
12,
6385,
509,
18245,
16,
727,
509,
394,
1638,
2335,
16,
4077,
1787,
2519,
1488,
938,
13,
288,
565,
727,
6674,
883,
273,
394,
6674,
5621,
565,
883,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1815,
1941,
9932,
12,
6385,
509,
18245,
16,
727,
509,
394,
1638,
2335,
16,
4077,
1787,
2519,
1488,
938,
13,
288,
565,
727,
6674,
883,
273,
394,
6674,
5621,
565,
883,
18,... |
ProgramElementNode node = (ProgramElementNode)it.next(); if (node.getProgramElementKind().equals(kind) | IProgramElement node = (IProgramElement)it.next(); if (node.getKind().equals(kind) | public ProgramElementNode findNode(ProgramElementNode parent, ProgramElementNode.Kind kind, String name) { for (Iterator it = parent.getChildren().iterator(); it.hasNext(); ) { ProgramElementNode node = (ProgramElementNode)it.next(); if (node.getProgramElementKind().equals(kind) && name.equals(node.getName())) { return node; } else { ProgramElementNode childSearch = findNode(node, kind, name); if (childSearch != null) return childSearch; } } return null; } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/f1deb9c11024ecebab2e0aa17a260821375c25bd/StructureModel.java/buggy/asm/src/org/aspectj/asm/StructureModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13586,
1046,
907,
1104,
907,
12,
9459,
1046,
907,
982,
16,
13586,
1046,
907,
18,
5677,
3846,
16,
514,
508,
13,
288,
202,
202,
1884,
261,
3198,
518,
273,
982,
18,
588,
4212,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13586,
1046,
907,
1104,
907,
12,
9459,
1046,
907,
982,
16,
13586,
1046,
907,
18,
5677,
3846,
16,
514,
508,
13,
288,
202,
202,
1884,
261,
3198,
518,
273,
982,
18,
588,
4212,
... |
tabs.remove(oldPart, tabOrderListener); | tabs.remove(oldPart); | public void removePart(IPresentablePart oldPart) { ignoreSelectionChanges++; try { tabs.remove(oldPart, tabOrderListener); } finally { ignoreSelectionChanges--; } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a44e3679b294ff539fce71b7e835499b2c444fa7/TabbedStackPresentation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/util/TabbedStackPresentation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
1988,
12,
2579,
1581,
429,
1988,
1592,
1988,
13,
288,
3639,
2305,
6233,
7173,
9904,
31,
3639,
775,
288,
5411,
10920,
18,
4479,
12,
1673,
1988,
1769,
3639,
289,
3095,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
1988,
12,
2579,
1581,
429,
1988,
1592,
1988,
13,
288,
3639,
2305,
6233,
7173,
9904,
31,
3639,
775,
288,
5411,
10920,
18,
4479,
12,
1673,
1988,
1769,
3639,
289,
3095,
288,... |
l_key = ( String ) l_keys.next(); l_valueCol = ( Collection ) a_attrHash.get( l_key ); l_values = l_valueCol.iterator(); | key = ( String ) keys.next(); valueCol = ( Collection ) attrHash.get( key ); values = valueCol.iterator(); | public String compose( MultiMap a_attrHash ) { Object l_val = null; String l_key = null; Iterator l_keys = a_attrHash.keySet().iterator(); Iterator l_values = null; Collection l_valueCol = null; StringWriter l_sw = new StringWriter(); PrintWriter l_out = new PrintWriter( l_sw ); while ( l_keys.hasNext() ) { l_key = ( String ) l_keys.next(); l_valueCol = ( Collection ) a_attrHash.get( l_key ); l_values = l_valueCol.iterator(); if ( l_valueCol.isEmpty() ) { continue; } else if ( l_valueCol.size() == 1 ) { l_out.print( l_key ); l_out.print( ':' ); l_val = l_values.next(); if ( l_val.getClass().isArray() ) { l_out.print( ": " ); l_out.println( base64encode( ( byte[] ) l_val ) ); } else { l_out.print( ' ' ); l_out.println( l_val ); } continue; } while ( l_values.hasNext() ) { l_out.print( l_key ); l_out.print( ':' ); l_val = l_values.next(); if ( l_val.getClass().isArray() ) { l_out.print( ": " ); l_out.println( base64encode( ( byte[] ) l_val ) ); } else { l_out.print( ' ' ); l_out.println( l_val ); } } } return l_sw.getBuffer().toString(); } | 54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/0f6df9849de10807595e87e279b521f2470ac7a2/LdifComposerImpl.java/clean/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifComposerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11458,
12,
5991,
863,
279,
67,
1747,
2310,
262,
565,
288,
3639,
1033,
328,
67,
1125,
273,
446,
31,
3639,
514,
328,
67,
856,
273,
446,
31,
3639,
4498,
328,
67,
2452,
273,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11458,
12,
5991,
863,
279,
67,
1747,
2310,
262,
565,
288,
3639,
1033,
328,
67,
1125,
273,
446,
31,
3639,
514,
328,
67,
856,
273,
446,
31,
3639,
4498,
328,
67,
2452,
273,
27... |
this.slValues.topControl = cmpSeries; grpValue.layout( ); | this.slValues.topControl = cmpHighlight; break; case 5 : this.slValues.topControl = cmpCallback; | public void widgetSelected( SelectionEvent e ) { if ( e.getSource( ).equals( cmbActionType ) ) { switch ( cmbActionType.getSelectionIndex( ) ) { case 0 : this.slValues.topControl = cmpURL; grpValue.layout( ); break; case 1 : this.slValues.topControl = cmpTooltip; grpValue.layout( ); break; case 2 : this.slValues.topControl = cmpSeries; grpValue.layout( ); break; case 3 : this.slValues.topControl = cmpScript; grpValue.layout( ); break; case 4 : this.slValues.topControl = cmpSeries; grpValue.layout( ); break; default : this.slValues.topControl = cmpDefault; grpValue.layout( ); break; } } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/a769c95667dd11c0218d8ea7d48a98220acf6dd8/TriggerDataComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/TriggerDataComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
425,
262,
202,
95,
202,
202,
430,
261,
425,
18,
588,
1830,
12,
262,
18,
14963,
12,
276,
1627,
26995,
262,
262,
202,
202,
95,
1082,
202,
961... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3604,
7416,
12,
12977,
1133,
425,
262,
202,
95,
202,
202,
430,
261,
425,
18,
588,
1830,
12,
262,
18,
14963,
12,
276,
1627,
26995,
262,
262,
202,
202,
95,
1082,
202,
961... |
defaultConstraints.weighty = y; } | defaultConstraints.weighty = y; } | public void setWeightY(double y) { defaultConstraints.weighty = y; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/b723a0ed6d31e14b737f03996f1e35c7db8d7236/ToolBarLayout.java/buggy/grendel/ui/ToolBarLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
6544,
61,
12,
9056,
677,
13,
288,
202,
1886,
4878,
18,
4865,
93,
273,
677,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
6544,
61,
12,
9056,
677,
13,
288,
202,
1886,
4878,
18,
4865,
93,
273,
677,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
InputDialog newDialog = new InputDialog( getShell(), MarkerMessages.MarkerFilterDialog_title, MarkerMessages.MarkerFilterDialog_message, MarkerMessages.MarkerFilter_newFilterName, new IInputValidator(){ /* (non-Javadoc) * @see org.eclipse.jface.dialogs.IInputValidator#isValid(java.lang.String) */ public String isValid(String newText) { if (newText.length() == 0) return MarkerMessages.MarkerFilterDialog_emptyMessage; return null; } | InputDialog newDialog = new InputDialog(getShell(), MarkerMessages.MarkerFilterDialog_title, MarkerMessages.MarkerFilterDialog_message, MarkerMessages.MarkerFilter_newFilterName, new IInputValidator() { /* * (non-Javadoc) * * @see org.eclipse.jface.dialogs.IInputValidator#isValid(java.lang.String) */ public String isValid(String newText) { if (newText.length() == 0) return MarkerMessages.MarkerFilterDialog_emptyMessage; return null; | void createFiltersArea(Composite dialogArea) { Composite listArea = new Composite(dialogArea,SWT.NONE); listArea.setLayoutData( new GridData(SWT.FILL,SWT.FILL,false,true)); listArea.setLayout(new GridLayout()); Label title = new Label(listArea,SWT.NONE); title.setText(MarkerMessages.MarkerFilter_filtersTitle); filtersList = CheckboxTableViewer.newCheckList(listArea, SWT.BORDER); filtersList.setContentProvider(new IStructuredContentProvider(){ /* (non-Javadoc) * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ public Object[] getElements(Object inputElement) { return filters; } /* (non-Javadoc) * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { //Do nothing } /* (non-Javadoc) * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object) */ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { //Do nothing } }); filtersList.setLabelProvider(new LabelProvider(){ /* (non-Javadoc) * @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object) */ public String getText(Object element) { return((MarkerFilter) element).getName(); } }); filtersList.addCheckStateListener(new ICheckStateListener(){ /* (non-Javadoc) * @see org.eclipse.jface.viewers.ICheckStateListener#checkStateChanged(org.eclipse.jface.viewers.CheckStateChangedEvent) */ public void checkStateChanged(CheckStateChangedEvent event) { ((MarkerFilter) event.getElement()).setEnabled(event.getChecked()); } }); selectedFilters = new MarkerFilter[]{filters[0]}; filtersList.setSelection(new StructuredSelection(selectedFilters)); filtersList.addSelectionChangedListener(new ISelectionChangedListener(){ /* (non-Javadoc) * @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent) */ public void selectionChanged(SelectionChangedEvent event) { updateFilterFromUI(); setSelectedFilter(event); } }); filtersList.setInput(this); for (int i = 0; i < filters.length; i++) { filtersList.setChecked(filters[i], filters[i].isEnabled()); } filtersList.getControl().setLayoutData( new GridData(SWT.FILL,SWT.FILL,false,true)); Composite buttons = new Composite(listArea,SWT.NONE); buttons.setLayout(new GridLayout(2,false)); Button addNew = new Button(buttons,SWT.PUSH); addNew.setText(MarkerMessages.MarkerFilter_addFilterName); addNew.addSelectionListener(new SelectionAdapter(){ public void widgetSelected(SelectionEvent e) { InputDialog newDialog = new InputDialog( getShell(), MarkerMessages.MarkerFilterDialog_title, MarkerMessages.MarkerFilterDialog_message, MarkerMessages.MarkerFilter_newFilterName, new IInputValidator(){ /* (non-Javadoc) * @see org.eclipse.jface.dialogs.IInputValidator#isValid(java.lang.String) */ public String isValid(String newText) { if (newText.length() == 0) return MarkerMessages.MarkerFilterDialog_emptyMessage; return null; } } ); newDialog.open(); String newName = newDialog.getValue(); if(newName != null){ createNewFilter(newName); } } }); Button remove = new Button(buttons,SWT.PUSH); remove.setText(MarkerMessages.MarkerFilter_deleteSelectedName); remove.addSelectionListener(new SelectionAdapter(){ public void widgetSelected(SelectionEvent e) { removeFilters(filtersList.getSelection()); } }); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c08a91512d1b5534132c133486d2efd84191df7d/DialogMarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
752,
5422,
5484,
12,
9400,
6176,
5484,
13,
288,
377,
202,
377,
202,
9400,
666,
5484,
273,
394,
14728,
12,
12730,
5484,
16,
55,
8588,
18,
9826,
1769,
377,
202,
1098,
5484,
18,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
5422,
5484,
12,
9400,
6176,
5484,
13,
288,
377,
202,
377,
202,
9400,
666,
5484,
273,
394,
14728,
12,
12730,
5484,
16,
55,
8588,
18,
9826,
1769,
377,
202,
1098,
5484,
18,
542,
... |
public static void addScriptingPanel (JTabbedPane tabPane, String sfObjName, Object sfObj, String hostname, int port) throws Exception { JPanel scriptingPanel = new JPanel(); JTabbedPane scriptingTabPane = null; try { Class jConsoleClass = Class.forName("bsh.util.JConsole"); Class intepreterClass = Class.forName("bsh.Interpreter"); Class jConsoleInterface = Class.forName ("bsh.ConsoleInterface"); //Gets parameters for constructor if any //Object[] jConsoleparameters = [""]; // get the right constructor method method Constructor jConsoleConstructor = jConsoleClass.getConstructor(null); Class[] classParameters = {jConsoleInterface}; Constructor interpreterConstructor = intepreterClass.getConstructor(classParameters); // Invoke the constructors Object jConsoleObject = jConsoleConstructor.newInstance(null); Object[] parameters = {jConsoleObject}; Object interpreterObject = interpreterConstructor.newInstance(parameters); // Invoke method set("prim",this); //java.lang.String string, java.lang.Object object classParameters = new Class[]{String.class, Object.class}; Method method = intepreterClass.getMethod("set",classParameters); ProcessCompound rootProcess = SFProcess.getRootLocator().getRootProcessCompound(InetAddress.getByName(hostname), port); method.invoke(interpreterObject, new Object[] {"bsh.system.shutdownOnExit",new Boolean(false)}); method.invoke(interpreterObject, new Object[]{"rootProcess",rootProcess}); method.invoke(interpreterObject, new Object[]{"localProcess",SFProcess.getProcessCompound()}); String panelName=""; if (sfObj!=null) { method.invoke(interpreterObject, new Object[]{"sfObj",sfObj}); method.invoke(interpreterObject, new Object[]{sfObjName,sfObj}); panelName = sfObjName; } else { panelName = "rootProcess"; } new Thread((Runnable) interpreterObject).start(); // start a thread to call the run() method scriptingTabPane = initScriptingTabbedPane(tabPane,true); scriptingTabPane.add((Component)jConsoleObject, panelName); scriptingTabPane.setSelectedIndex(0); } catch (Throwable thr){ if (sfLogStatic().isErrorEnabled()){ sfLogStatic().error(thr);} WindowUtilities.showError(scriptingTabPane, thr.toString()); } } | 4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/c3578683a8b36f404a74d9fd9ffbb07e9af60faa/SFDeployDisplay.java/clean/core/smartfrog/src/org/smartfrog/services/management/SFDeployDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
760,
918,
527,
3651,
310,
5537,
261,
46,
5661,
2992,
8485,
3246,
8485,
16,
514,
9033,
2675,
461,
16,
1033,
9033,
2675,
16,
514,
5199,
16,
509,
1756,
13,
1216,
1185,
288,
46,
5537,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
760,
918,
527,
3651,
310,
5537,
261,
46,
5661,
2992,
8485,
3246,
8485,
16,
514,
9033,
2675,
461,
16,
1033,
9033,
2675,
16,
514,
5199,
16,
509,
1756,
13,
1216,
1185,
288,
46,
5537,... | ||
labelRect.width = contentRect.width - labelRect.x; | labelRect.width = getWidthOfWidestLabel(); | protected void calculateLabelRect() { if (slider.getOrientation() == JSlider.HORIZONTAL) { labelRect.x = contentRect.x; labelRect.y = tickRect.y + tickRect.height; labelRect.width = contentRect.width; labelRect.height = contentRect.height - labelRect.y; } else { labelRect.x = tickRect.x + tickRect.width; labelRect.y = contentRect.y; labelRect.width = contentRect.width - labelRect.x; labelRect.height = contentRect.height; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8a78b0a127a68dcc6823fee2b8bdb1cbb7ec268d/BasicSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4604,
2224,
6120,
1435,
225,
288,
565,
309,
261,
28372,
18,
588,
14097,
1435,
422,
804,
21824,
18,
44,
20344,
13,
1377,
288,
202,
1925,
6120,
18,
92,
273,
913,
6120,
18,
92,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4604,
2224,
6120,
1435,
225,
288,
565,
309,
261,
28372,
18,
588,
14097,
1435,
422,
804,
21824,
18,
44,
20344,
13,
1377,
288,
202,
1925,
6120,
18,
92,
273,
913,
6120,
18,
92,
... |
public SeriesTrendlineSheet( Composite parent, ChartWizardContext context, | public SeriesTrendlineSheet( String title, ChartWizardContext context, | public SeriesTrendlineSheet( Composite parent, ChartWizardContext context, SeriesDefinition seriesDefn ) { super( parent, context, false ); this.seriesDefn = seriesDefn; cmpTop = getComponent( parent ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e89bee61a969154f0d074fedf34da17dd208f822/SeriesTrendlineSheet.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/series/SeriesTrendlineSheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9225,
56,
20262,
1369,
8229,
12,
14728,
982,
16,
14804,
27130,
1042,
819,
16,
1082,
202,
6485,
1852,
4166,
3262,
82,
262,
202,
95,
202,
202,
9565,
12,
982,
16,
819,
16,
629,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9225,
56,
20262,
1369,
8229,
12,
14728,
982,
16,
14804,
27130,
1042,
819,
16,
1082,
202,
6485,
1852,
4166,
3262,
82,
262,
202,
95,
202,
202,
9565,
12,
982,
16,
819,
16,
629,
... |
getDbc().bindList(SWTObservables.observeItems(swtlist), list, null); assertEquals(Arrays.asList(swtlist.getItems()), list); | getDbc().bindList(SWTObservables.observeItems(swtlist), list, null); assertEquals(Arrays.asList(swtlist.getItems()), list); | public void test_ROCombo_SWTList() { // 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()); org.eclipse.swt.widgets.List swtlist = new org.eclipse.swt.widgets.List(getComposite(), SWT.READ_ONLY | SWT.SINGLE); // Bind the combo's content to that of the String based list getDbc().bindList(SWTObservables.observeItems(swtlist), list, null); assertEquals(Arrays.asList(swtlist.getItems()), list); Account account = catalog.getAccounts()[0]; // simple Combo's selection bound to the Account's country property IObservableValue listSelection = SWTObservables.observeSelection(swtlist); getDbc().bindValue(listSelection, BeansObservables.observeValue(account, "country"), null); String selection = (String) list.get(2); swtlist.select(2); // this should drive the selection swtlist.notifyListeners(SWT.Selection, null); // Force notification assertEquals(account.getCountry(), selection); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a469cb14d7815f1d5dea6c4a44ea9ea80e229bed/ComboScenarios.java/clean/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,
682,
1435,
288,
3639,
368,
1788,
279,
666,
434,
8139,
364,
326,
17603,
3639,
1665,
3745,
682,
666,
273,
394,
14505,
682,
5621,
3639,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
1457,
16156,
67,
55,
8588,
682,
1435,
288,
3639,
368,
1788,
279,
666,
434,
8139,
364,
326,
17603,
3639,
1665,
3745,
682,
666,
273,
394,
14505,
682,
5621,
3639,
364,
... |
this.sql = sql; this.statement = statement; this.pg_stream = pg_stream; this.connection = connection; | this.sql = sql; this.statement = statement; this.pg_stream = pg_stream; this.connection = connection; | public QueryExecutor(String sql, java.sql.Statement statement, PG_Stream pg_stream, org.postgresql.Connection connection) throws SQLException { this.sql = sql; this.statement = statement; this.pg_stream = pg_stream; this.connection = connection; if (statement != null) maxRows = statement.getMaxRows(); else maxRows = 0; } | 45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/839b9bc0117946afd62ee385a4c8a36c01b3053b/QueryExecutor.java/buggy/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2770,
6325,
12,
780,
1847,
16,
9506,
2252,
18,
4669,
18,
3406,
3021,
16,
9506,
22116,
67,
1228,
7184,
67,
3256,
16,
9506,
2358,
18,
2767,
24330,
18,
1952,
1459,
13,
202,
15069,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2770,
6325,
12,
780,
1847,
16,
9506,
2252,
18,
4669,
18,
3406,
3021,
16,
9506,
22116,
67,
1228,
7184,
67,
3256,
16,
9506,
2358,
18,
2767,
24330,
18,
1952,
1459,
13,
202,
15069,
64... |
List prunedList = new ArrayList(resourceCollection); Iterator elementsEnum = prunedList.iterator(); while (elementsEnum.hasNext()) { IResource currentResource = (IResource) elementsEnum.next(); if (isDescendent(prunedList, currentResource)) { elementsEnum.remove(); | List prunedList = new ArrayList(resourceCollection); Iterator elementsEnum = prunedList.iterator(); while (elementsEnum.hasNext()) { IResource currentResource = (IResource) elementsEnum.next(); if (isDescendent(prunedList, currentResource)) { elementsEnum.remove(); | List pruneResources(List resourceCollection) { List prunedList = new ArrayList(resourceCollection); Iterator elementsEnum = prunedList.iterator(); while (elementsEnum.hasNext()) { IResource currentResource = (IResource) elementsEnum.next(); if (isDescendent(prunedList, currentResource)) { elementsEnum.remove(); //Removes currentResource } } return prunedList; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/53cada7d6d0463cdcb3aed320ea380f4aae64087/WorkspaceAction.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
987,
13293,
3805,
12,
682,
1058,
2532,
13,
288,
3639,
987,
846,
318,
18073,
273,
394,
2407,
12,
3146,
2532,
1769,
3639,
4498,
2186,
3572,
273,
846,
318,
18073,
18,
9838,
5621,
3639,
1323,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
13293,
3805,
12,
682,
1058,
2532,
13,
288,
3639,
987,
846,
318,
18073,
273,
394,
2407,
12,
3146,
2532,
1769,
3639,
4498,
2186,
3572,
273,
846,
318,
18073,
18,
9838,
5621,
3639,
1323,... |
FSHooks.runPostRevPropChangeHook(myReposRootDir, propertyName, propertyValue, userName, revision, action); | if (FSHooks.isHooksEnabled()) { FSHooks.runPostRevPropChangeHook(myReposRootDir, propertyName, propertyValue, userName, revision, action); } | public void setRevisionPropertyValue(long revision, String propertyName, String propertyValue) throws SVNException { assertValidRevision(revision); try { openRepository(); if (!SVNProperty.isRegularProperty(propertyName)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "Storage of non-regular property ''{0}'' is disallowed through the repository interface, and could indicate a bug in your client", propertyName); SVNErrorManager.error(err); } String userName = getUserName(); Map revProps = myFSFS.getRevisionProperties(revision); String oldValue = (String)revProps.get(propertyName); String action = null; if (propertyValue == null) { action = FSHooks.REVPROP_DELETE; } else if (oldValue == null) { action = FSHooks.REVPROP_ADD; } else { action = FSHooks.REVPROP_MODIFY; } FSHooks.runPreRevPropChangeHook(myReposRootDir, propertyName, propertyValue, userName, revision, action); myFSFS.setRevisionProperty(revision, propertyName, propertyValue); FSHooks.runPostRevPropChangeHook(myReposRootDir, propertyName, propertyValue, userName, revision, action); } finally { closeRepository(); } } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/fde534a648a729478b8c9d929410319f25bf1c89/FSRepository.java/buggy/svnkit/src/org/tmatesoft/svn/core/internal/io/fs/FSRepository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
7939,
16107,
12,
5748,
6350,
16,
514,
5470,
16,
514,
12337,
13,
1216,
29537,
50,
503,
288,
3639,
1815,
1556,
7939,
12,
13057,
1769,
3639,
775,
288,
5411,
1696,
3305,
5621,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
7939,
16107,
12,
5748,
6350,
16,
514,
5470,
16,
514,
12337,
13,
1216,
29537,
50,
503,
288,
3639,
1815,
1556,
7939,
12,
13057,
1769,
3639,
775,
288,
5411,
1696,
3305,
5621,... |
asm.emitMOV_RegIdx_Reg (S0, T0, asm.BYTE, NO_SLOT, JTOC); asm.emitMOV_RegIdx_Reg (S0, T0, asm.BYTE, ONE_SLOT, T1); | asm.emitMOV_RegIdx_Reg (S0, T0, VM_Assembler.BYTE, NO_SLOT, JTOC); asm.emitMOV_RegIdx_Reg (S0, T0, VM_Assembler.BYTE, ONE_SLOT, T1); | protected final void emit_unresolved_putfield(VM_FieldReference fieldRef) { emitDynamicLinkingSequence(T0, fieldRef, true); if (MM_Interface.NEEDS_WRITE_BARRIER && !fieldRef.getFieldContentsType().isPrimitiveType()) { VM_Barriers.compilePutfieldBarrier(asm, T0, fieldRef.getId()); emitDynamicLinkingSequence(T0, fieldRef, false); asm.emitADD_Reg_Imm(SP, WORDSIZE*2); // complete popping the value and reference } else { if (fieldRef.getSize() == BYTES_IN_INT) {// field is one word asm.emitMOV_Reg_RegDisp(T1, SP, NO_SLOT); // T1 is the value to be stored asm.emitMOV_Reg_RegDisp(S0, SP, ONE_SLOT); // S0 is the object reference asm.emitMOV_RegIdx_Reg (S0, T0, asm.BYTE, NO_SLOT, T1); // [S0+T0] <- T1 asm.emitADD_Reg_Imm(SP, WORDSIZE*2); // complete popping the value and reference } else { // field is two words (double or long) if (VM.VerifyAssertions) VM._assert(fieldRef.getSize() == BYTES_IN_LONG); asm.emitMOV_Reg_RegDisp(JTOC, SP, NO_SLOT); // JTOC is low part of the value to be stored asm.emitMOV_Reg_RegDisp(T1, SP, ONE_SLOT); // T1 is high part of the value to be stored asm.emitMOV_Reg_RegDisp(S0, SP, TWO_SLOTS); // S0 is the object reference asm.emitMOV_RegIdx_Reg (S0, T0, asm.BYTE, NO_SLOT, JTOC); // [S0+T0] <- JTOC asm.emitMOV_RegIdx_Reg (S0, T0, asm.BYTE, ONE_SLOT, T1); // [S0+T0+4] <- T1 asm.emitADD_Reg_Imm(SP, WORDSIZE*3); // complete popping the values and reference // restore JTOC VM_ProcessorLocalState.emitMoveFieldToReg(asm, JTOC, VM_Entrypoints.jtocField.getOffset()); } } } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/b456534d9b99de463325c8cc3907b41fc605cb4c/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,
318,
11792,
67,
458,
1518,
12,
7397,
67,
974,
2404,
652,
1957,
13,
288,
565,
3626,
9791,
2098,
310,
4021,
12,
56,
20,
16,
652,
1957,
16,
638,
1769,
565,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
3626,
67,
318,
11792,
67,
458,
1518,
12,
7397,
67,
974,
2404,
652,
1957,
13,
288,
565,
3626,
9791,
2098,
310,
4021,
12,
56,
20,
16,
652,
1957,
16,
638,
1769,
565,
309,... |
public IRubyObject instance_variable_set(IRubyObject var, IRubyObject value) { String varName = var.asSymbol(); if (!varName.startsWith("@")) { throw getRuntime().newNameError("`" + varName + "' is not allowable as an instance variable name"); } return setInstanceVariable(var.asSymbol(), value); } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/clean/src/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
791,
67,
6105,
67,
542,
12,
7937,
10340,
921,
569,
16,
15908,
10340,
921,
460,
13,
288,
377,
202,
780,
13722,
273,
569,
18,
345,
5335,
5621,
377,
202,
377,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
791,
67,
6105,
67,
542,
12,
7937,
10340,
921,
569,
16,
15908,
10340,
921,
460,
13,
288,
377,
202,
780,
13722,
273,
569,
18,
345,
5335,
5621,
377,
202,
377,
202,... | ||
break _loop676; | break _loop661; | public final void disablestate(AST _t) throws RecognitionException { AST disablestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST head = null; AST __t669 = _t; head = _t==ASTNULL ? null :(AST)_t; match(_t,DISABLE); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.frameInitializingStatement(head); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNLESSHIDDEN: { AST tmp1229_AST_in = (AST)_t; match(_t,UNLESSHIDDEN); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case ALL: case WITH: case Form_item: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ALL: { AST __t672 = _t; AST tmp1230_AST_in = (AST)_t; match(_t,ALL); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t674 = _t; AST tmp1231_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop676: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop676; } } while (true); } _t = __t674; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t672; _t = _t.getNextSibling(); break; } case Form_item: { { int _cnt678=0; _loop678: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { form_item(_t,CQ.SYMBOL); _t = _retTree; } else { if ( _cnt678>=1 ) { break _loop678; } else {throw new NoViableAltException(_t);} } _cnt678++; } while (true); } break; } case EOF: case PERIOD: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WITH: { framephrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.frameStatementEnd(); } _t = __t669; _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,
1015,
9237,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1015,
9237,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1015,
9237,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1015,
9237,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,... |
win.suspect(sender1); System.out.println(win); | win.suspect(sender1); System.out.println(win); | public static void main(String[] args) { AckMcastReceiverWindow win=new AckMcastReceiverWindow(); Address sender1=new IpAddress("janet", 1111); Address sender2=new IpAddress("janet", 4444); Address sender3=new IpAddress("janet", 6767); Address sender4=new IpAddress("janet", 3333); win.add(sender1, 1); win.add(sender1, 2); win.add(sender3, 2); win.add(sender2, 2); win.add(sender4, 2); win.add(sender1, 3); win.add(sender1, 2); System.out.println(win); win.suspect(sender1); System.out.println(win); win.add(sender1, 1); win.add(sender1, 2); win.add(sender1, 3); win.add(sender1, 4); win.add(sender1, 5); win.add(sender1, 6); win.add(sender1, 7); win.add(sender1, 8); System.out.println(win); Vector seqnos=new Vector(); seqnos.addElement(new Long(4)); seqnos.addElement(new Long(6)); seqnos.addElement(new Long(8)); win.remove(sender2, seqnos); System.out.println(win); win.remove(sender1, seqnos); System.out.println(win); } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/d87286058cfcbdd88699897608edd017b16ae389/AckMcastReceiverWindow.java/buggy/src/org/jgroups/stack/AckMcastReceiverWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
202,
11931,
49,
4155,
12952,
3829,
5657,
33,
2704,
22322,
49,
4155,
12952,
3829,
5621,
202,
1887,
5793,
21,
33,
2704,
14709,
1887,
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,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
202,
11931,
49,
4155,
12952,
3829,
5657,
33,
2704,
22322,
49,
4155,
12952,
3829,
5621,
202,
1887,
5793,
21,
33,
2704,
14709,
1887,
2932,... |
public DataPresentationEngine( ExecutionContext ctx, IDocArchiveReader reader ) | public DataPresentationEngine( ExecutionContext ctx, IDocArchiveReader reader ) | public DataPresentationEngine( ExecutionContext ctx, IDocArchiveReader reader ) { context = ctx; this.reader = reader; // fd = getRandomAccessFile(); loadDteMetaInfo( ); try { DataEngineContext dteContext = DataEngineContext.newInstance( DataEngineContext.MODE_PRESENTATION, ctx.getSharedScope( ), reader, null ); dataEngine = DataEngine.newDataEngine( dteContext ); } catch ( BirtException ex ) { ex.printStackTrace( ); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c20ca9242b39d9b07a5f33e58e8af1e3a67e4a9b/DataPresentationEngine.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/DataPresentationEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1910,
6351,
367,
4410,
12,
8687,
1042,
1103,
16,
1599,
504,
7465,
2514,
2949,
262,
202,
95,
202,
202,
2472,
273,
1103,
31,
202,
202,
2211,
18,
10530,
273,
2949,
31,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1910,
6351,
367,
4410,
12,
8687,
1042,
1103,
16,
1599,
504,
7465,
2514,
2949,
262,
202,
95,
202,
202,
2472,
273,
1103,
31,
202,
202,
2211,
18,
10530,
273,
2949,
31,
202,
202,
... |
console.setDisplayFont( PreferenceLoader.loadFont( "consoleFontData" ) ); console.setInputFont( PreferenceLoader.loadFont( "consoleFontData" ) ); console.setHighlightColor( PreferenceLoader.loadColour( "consoleHighlight" ) ); console.setDisplayBackground( PreferenceLoader.loadColour( "consoleBackground" ) ); console.setDisplayForeground( PreferenceLoader.loadColour( "consoleForeground" ) ); console.setInputBackground( PreferenceLoader.loadColour( "consoleInputBackground" ) ); console.setInputForeground( PreferenceLoader.loadColour( "consoleInputForeground" ) ); | console.setDisplayFont(PreferenceLoader.loadFont("consoleFontData")); console.setInputFont(PreferenceLoader.loadFont("consoleFontData")); console.setHighlightColor(PreferenceLoader.loadColour("consoleHighlight")); console.setDisplayBackground(PreferenceLoader.loadColour("consoleBackground")); console.setDisplayForeground(PreferenceLoader.loadColour("consoleForeground")); console.setInputBackground(PreferenceLoader.loadColour("consoleInputBackground")); console.setInputForeground(PreferenceLoader.loadColour("consoleInputForeground")); | public void loadPreferences() { console.setDisplayFont( PreferenceLoader.loadFont( "consoleFontData" ) ); console.setInputFont( PreferenceLoader.loadFont( "consoleFontData" ) ); console.setHighlightColor( PreferenceLoader.loadColour( "consoleHighlight" ) ); console.setDisplayBackground( PreferenceLoader.loadColour( "consoleBackground" ) ); console.setDisplayForeground( PreferenceLoader.loadColour( "consoleForeground" ) ); console.setInputBackground( PreferenceLoader.loadColour( "consoleInputBackground" ) ); console.setInputForeground( PreferenceLoader.loadColour( "consoleInputForeground" ) ); } | 11075 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11075/6295fd93fbe029bec6b7a525722e315004146c8c/ConsoleTab.java/buggy/g2gui/src/net/mldonkey/g2gui/view/ConsoleTab.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1262,
12377,
1435,
288,
3639,
2983,
18,
542,
4236,
5711,
12,
29125,
2886,
18,
945,
5711,
12,
315,
8698,
5711,
751,
6,
262,
11272,
3639,
2983,
18,
542,
1210,
5711,
12,
29125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
12377,
1435,
288,
3639,
2983,
18,
542,
4236,
5711,
12,
29125,
2886,
18,
945,
5711,
12,
315,
8698,
5711,
751,
6,
262,
11272,
3639,
2983,
18,
542,
1210,
5711,
12,
29125,
... |
ITask task = (ITask)element; if (task.isCategory()) { for (ITask child : task.getChildren()) { if (child.isActive()) return UiUtil.BOLD; } } if (task.isActive()) return UiUtil.BOLD; | ITask task = (ITask)element; if (task.isActive()) return UiUtil.BOLD; | public Font getFont(Object element) { if (element instanceof ITask) { ITask task = (ITask)element; if (task.isCategory()) { for (ITask child : task.getChildren()) { if (child.isActive()) return UiUtil.BOLD; } } if (task.isActive()) return UiUtil.BOLD; if (task.isCompleted()) return UiUtil.ITALIC; } return null; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bfd6c75025dd41ab813783fc0743c23cfe1c2fc2/TaskListLabelProvider.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListLabelProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10063,
18776,
12,
921,
930,
13,
288,
3639,
309,
261,
2956,
1276,
467,
2174,
13,
288,
5411,
467,
2174,
1562,
273,
261,
1285,
835,
13,
2956,
31,
5411,
309,
261,
4146,
18,
291,
4457,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10063,
18776,
12,
921,
930,
13,
288,
3639,
309,
261,
2956,
1276,
467,
2174,
13,
288,
5411,
467,
2174,
1562,
273,
261,
1285,
835,
13,
2956,
31,
5411,
309,
261,
4146,
18,
291,
4457,... |
if (privType == Authorizer.MODIFY_SCHEMA_PRIV) | switch ( privType ) | public void check( LanguageConnectionContext lcc, String authid, boolean forGrant) throws StandardException { DataDictionary dd = lcc.getDataDictionary(); TransactionController tc = lcc.getTransactionExecute(); if (privType == Authorizer.MODIFY_SCHEMA_PRIV) { SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, tc, false); // If schema hasn't been created already, no need to check if (sd == null) return; if (!authid.equals(sd.getAuthorizationId())) throw StandardException.newException( SQLState.AUTH_NO_ACCESS_NOT_OWNER, authid, schemaName); } else { // Non-Database Owner Users can only create schemas that match // their authid. Also allow only Database Owner to set authid to // another user. Note that for Database Owner, check interface // wouldn't be called at all if (!schemaName.equals(authid) || (aid != null && !aid.equals(authid))) throw StandardException.newException( SQLState.AUTH_NOT_DATABASE_OWNER, authid, schemaName); } } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/28c633d82a776c90fd1cd835a0b66d1c8916d31a/StatementSchemaPermission.java/buggy/java/engine/org/apache/derby/iapi/sql/dictionary/StatementSchemaPermission.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
866,
12,
9889,
1952,
1042,
328,
952,
16,
25083,
282,
514,
1357,
350,
16,
25083,
282,
1250,
364,
9021,
13,
1216,
8263,
503,
202,
95,
202,
202,
751,
10905,
6957,
273,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
866,
12,
9889,
1952,
1042,
328,
952,
16,
25083,
282,
514,
1357,
350,
16,
25083,
282,
1250,
364,
9021,
13,
1216,
8263,
503,
202,
95,
202,
202,
751,
10905,
6957,
273,
202,
... |
public void selectElement_D(String en) { iter_type = DESCENDENT; | protected void selectElement_D(String en) { if (en == null) throw new IllegalArgumentException("element name can't be null"); iter_type = DESCENDANT; | public void selectElement_D(String en) { iter_type = DESCENDENT; depth = vn.getCurrentDepth(); //startIndex = vn.getCurrentIndex(); name = en; ft = true;} | 3680 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3680/67290846f37aa3bd136eadacaf7a7eba1c965b78/AutoPilot.java/clean/com/ximpleware/AutoPilot.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
2027,
1046,
67,
40,
12,
780,
570,
13,
288,
202,
2165,
67,
723,
273,
14326,
4415,
2222,
31,
202,
5979,
273,
21732,
18,
588,
3935,
6148,
5621,
202,
759,
1937,
1016,
273,
21732,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
2027,
1046,
67,
40,
12,
780,
570,
13,
288,
202,
2165,
67,
723,
273,
14326,
4415,
2222,
31,
202,
5979,
273,
21732,
18,
588,
3935,
6148,
5621,
202,
759,
1937,
1016,
273,
21732,
18,
... |
public void classMemberVisibility(Object classSpecifier, Token visibility) { | public Object classMemberVisibility(Object classSpecifier, Token visibility) { return null; | public void classMemberVisibility(Object classSpecifier, Token visibility) { } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/44aad85270fb48dbc04906626c769076958182ca/NullParserCallback.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/NullParserCallback.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
667,
4419,
10135,
12,
921,
667,
21416,
16,
3155,
9478,
13,
288,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
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,
225,
202,
482,
918,
667,
4419,
10135,
12,
921,
667,
21416,
16,
3155,
9478,
13,
288,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public org.quickfix.field.RepurchaseTerm getRepurchaseTerm() throws FieldNotFound { org.quickfix.field.RepurchaseTerm value = new org.quickfix.field.RepurchaseTerm(); | public quickfix.field.RepurchaseTerm getRepurchaseTerm() throws FieldNotFound { quickfix.field.RepurchaseTerm value = new quickfix.field.RepurchaseTerm(); | public org.quickfix.field.RepurchaseTerm getRepurchaseTerm() throws FieldNotFound { org.quickfix.field.RepurchaseTerm value = new org.quickfix.field.RepurchaseTerm(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderMultileg.java/buggy/src/java/src/quickfix/fix43/NewOrderMultileg.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
426,
12688,
12104,
4065,
5561,
12688,
12104,
4065,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
426,
12688,
12104,
4065,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
426,
12688,
12104,
4065,
5561,
12688,
12104,
4065,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
426,
12688,
12104,
4065,
... |
if (retargetAction != null) | if (retargetAction != null) | public WWinPluginAction(IConfigurationElement actionElement, String runAttribute, IWorkbenchWindow window,String definitionId) { super(actionElement, runAttribute,definitionId); this.window = window; // If config specifies a retarget action, create it now String retarget = actionElement.getAttribute(ActionDescriptor.ATT_RETARGET); if (retarget != null && retarget.equals(TRUE_VALUE)) { // create a retarget action String allowLabelUpdate = actionElement.getAttribute(ActionDescriptor.ATT_ALLOW_LABEL_UPDATE); String id = actionElement.getAttribute(ActionDescriptor.ATT_ID); String label = actionElement.getAttribute(ActionDescriptor.ATT_LABEL); if (allowLabelUpdate != null && allowLabelUpdate.equals(TRUE_VALUE)) retargetAction = new LabelRetargetAction(id, label); else retargetAction = new RetargetAction(id, label); retargetAction.addPropertyChangeListener(new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(Action.ENABLED)) { Object val = event.getNewValue(); if (val instanceof Boolean) { setEnabled(((Boolean) val).booleanValue()); } } else if (event.getProperty().equals(Action.TEXT)) { Object val = event.getNewValue(); if (val instanceof String) { setText((String) val); } } else if (event.getProperty().equals(Action.TOOL_TIP_TEXT)) { Object val = event.getNewValue(); if (val instanceof String) { setToolTipText((String) val); } } } }); retargetAction.setEnabled(false); setEnabled(false); window.getPartService().addPartListener(retargetAction); IWorkbenchPart activePart = window.getPartService().getActivePart(); if (activePart != null) retargetAction.partActivated(activePart); } else { // if we retarget the handler will look after selection changes window.getSelectionService().addSelectionListener(this); refreshSelection(); } addToActionList(this); super.setHelpListener(new HelpListener() { public void helpRequested(HelpEvent e) { HelpListener listener = null; if (retargetAction != null) listener = retargetAction.getHelpListener(); if (listener == null) // use our own help listener listener = localHelpListener; if (listener != null) // pass on the event listener.helpRequested(e); } }); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3113adf073596bfd0c0770703963de0f288cda77/WWinPluginAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WWinPluginAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
678,
18049,
3773,
1803,
12,
45,
1750,
1046,
1301,
1046,
16,
202,
202,
780,
1086,
1499,
16,
467,
2421,
22144,
3829,
2742,
16,
780,
2379,
548,
13,
225,
202,
95,
202,
202,
9565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
678,
18049,
3773,
1803,
12,
45,
1750,
1046,
1301,
1046,
16,
202,
202,
780,
1086,
1499,
16,
467,
2421,
22144,
3829,
2742,
16,
780,
2379,
548,
13,
225,
202,
95,
202,
202,
9565,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.