rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
private void showAttributes() { try { ChadoDAO dao = getDAO(); int row = result_table.getSelectedRow(); StringBuffer attr_buff = new StringBuffer(); ChadoFeature chado_feature = (ChadoFeature) featureList.get(row); Hashtable dbxref = dao.getDbxref(chado_feature.getSchema(), chado_feature.getUniquename()); // get all synonyms Hashtable synonym = dao.getAlias(chado_feature.getSchema(), chado_feature.getUniquename()); if(dbxref.size() > 0) { attr_buff.append("/Dbxref="); Enumeration dbxref_enum = dbxref.elements(); while(dbxref_enum.hasMoreElements()) { Vector dbx = (Vector) dbxref_enum.nextElement(); for(int i = 0; i < dbx.size(); i++) { attr_buff.append((String) dbx.get(i)); if(i < dbx.size() - 1) attr_buff.append(";"); } } attr_buff.append("\n"); } // append synonyms if(synonym != null) { Alias alias; Enumeration alias_enum = synonym.elements(); while(alias_enum.hasMoreElements()) { Vector v_synonyms = (Vector)alias_enum.nextElement(); for(int j=0; j<v_synonyms.size(); j++) { alias = (Alias)v_synonyms.get(j); attr_buff.append("/"); attr_buff.append(alias.getCvterm_name()+"="); attr_buff.append(alias.getName()); if(j<v_synonyms.size()-1) attr_buff.append(";"); attr_buff.append("\n"); } } } Hashtable attributes = chado_feature.getQualifiers(); Enumeration enum_attr = attributes.keys(); while(enum_attr.hasMoreElements()) { Long type_id = (Long) enum_attr.nextElement(); String cv = (String) cvterm.get(type_id); Vector v_attr = (Vector) attributes.get(type_id); for(int i = 0; i < v_attr.size(); i++) attr_buff.append("/" + cv + "=" + GFFStreamFeature.decode((String) v_attr.get(i)) + "\n"); } attr_text.setText(new String(attr_buff)); } catch(SQLException sqlExp) { JOptionPane.showMessageDialog(null, "SQL Problems...\n" + sqlExp.getMessage(), "SQL Error", JOptionPane.ERROR_MESSAGE); sqlExp.printStackTrace(); } catch(java.net.ConnectException ce) { ce.printStackTrace(); } }
10874 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10874/4ac7a3f55647440344633874aa16d6cc74d2f56a/ChadoDemo.java/clean/uk/ac/sanger/artemis/chado/ChadoDemo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 4500, 2498, 1435, 95, 698, 95, 782, 6821, 18485, 2414, 83, 33, 588, 18485, 5621, 474, 492, 33, 2088, 67, 2121, 18, 588, 7416, 1999, 5621, 780, 1892, 1747, 67, 20664, 33, 2704, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 4500, 2498, 1435, 95, 698, 95, 782, 6821, 18485, 2414, 83, 33, 588, 18485, 5621, 474, 492, 33, 2088, 67, 2121, 18, 588, 7416, 1999, 5621, 780, 1892, 1747, 67, 20664, 33, 2704, 78...
for(Iterator i=ackRequestQueue.iterator();i.hasNext();) {
LinkedList stuffAtEnd = new LinkedList(); for(ListIterator i=ackRequestQueue.listIterator();i.hasNext();) {
public synchronized int[] grabAckRequests() { // Only return them if they are urgent int[] temp = new int[ackRequestQueue.size()]; int x = 0; long now = System.currentTimeMillis(); Logger.minor(this, "Grabbing ackRequests"); checkLists(); for(Iterator i=ackRequestQueue.iterator();i.hasNext();) { QueuedAckRequest qa = (QueuedAckRequest) (i.next()); if(qa.activeTime > now) continue; int packetNumber = qa.packetNumber; temp[x++] = packetNumber; qa.sent(); } checkLists(); int[] reqs = new int[x]; System.arraycopy(temp, 0, reqs, 0, x); return reqs; }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/34bb0e47e89dcfc698546a20d6422872b622ea29/NodePeer.java/buggy/src/freenet/node/NodePeer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 509, 8526, 11086, 11931, 6421, 1435, 288, 3639, 368, 5098, 327, 2182, 309, 2898, 854, 8896, 75, 319, 3639, 509, 8526, 1906, 273, 394, 509, 63, 484, 691, 3183, 18, 1467, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 509, 8526, 11086, 11931, 6421, 1435, 288, 3639, 368, 5098, 327, 2182, 309, 2898, 854, 8896, 75, 319, 3639, 509, 8526, 1906, 273, 394, 509, 63, 484, 691, 3183, 18, 1467, 1435, ...
labTheme = new Label("Theme:", Label.LEFT); texTheme = new TextField("", 15);
labTheme = new Label(Messages.getString("BoardEditor.labTheme"), Label.LEFT); texTheme = new TextField("", 15);
private void setupEditorPanel() { canHex = new HexCanvas(); labElev = new Label("Elev:", Label.RIGHT); texElev = new TextField("0", 1); texElev.addActionListener(this); texElev.addTextListener(this); butElevUp = new Button("U"); butElevUp.addActionListener(this); butElevDown = new Button("D"); butElevDown.addActionListener(this); labTerrain = new Label("Terrain:", Label.LEFT); lisTerrain = new java.awt.List(6); lisTerrain.addItemListener(this); refreshTerrainList(); butDelTerrain = new Button("Remove Terrain"); butDelTerrain.addActionListener(this); choTerrainType = new Choice(); for (int i = 1; i < Terrain.SIZE; i++) { choTerrainType.add(Terrain.getName(i)); } texTerrainLevel = new TextField("0", 1); butAddTerrain = new Button("Add/Set Terrain"); butAddTerrain.addActionListener(this); butMiniMap = new Button("Toggle MiniMap"); butMiniMap.setActionCommand( "viewMiniMap" ); butMiniMap.addActionListener(this); panTerrainType = new Panel(new BorderLayout()); panTerrainType.add(choTerrainType, BorderLayout.WEST); panTerrainType.add(texTerrainLevel, BorderLayout.CENTER); cheTerrExitSpecified = new Checkbox("Set Exits : "); butTerrExits = new Button("A"); texTerrExits = new TextField("0", 1); butTerrExits.addActionListener(this); panTerrExits = new Panel(new FlowLayout()); panTerrExits.add(cheTerrExitSpecified); panTerrExits.add(butTerrExits); panTerrExits.add(texTerrExits); panRoads = new Panel(new FlowLayout()); cheRoadsAutoExit = new Checkbox("Exit Roads to Pavement"); cheRoadsAutoExit.addItemListener( this ); panRoads.add(cheRoadsAutoExit); labTheme = new Label("Theme:", Label.LEFT); texTheme = new TextField("", 15); texTheme.addTextListener(this); labBoard = new Label("Board:", Label.LEFT); butBoardNew = new Button("New..."); butBoardNew.setActionCommand( "fileBoardNew" ); butBoardNew.addActionListener(this); butBoardLoad = new Button("Load..."); butBoardLoad.setActionCommand( "fileBoardOpen" ); butBoardLoad.addActionListener(this); butBoardSave = new Button("Save"); butBoardSave.setActionCommand( "fileBoardSave" ); butBoardSave.addActionListener(this); butBoardSaveAs = new Button("Save As..."); butBoardSaveAs.setActionCommand( "fileBoardSaveAs" ); butBoardSaveAs.addActionListener(this); butBoardSaveAsImage = new Button("Save As Image..."); butBoardSaveAsImage.setActionCommand( "fileBoardSaveAsImage" ); butBoardSaveAsImage.addActionListener(this); panButtons = new Panel(new GridLayout(3, 2, 2, 2)); panButtons.add(labBoard); panButtons.add(butBoardNew); panButtons.add(butBoardLoad); panButtons.add(butBoardSave); panButtons.add(butBoardSaveAs); panButtons.add(butBoardSaveAsImage); blankL = new Label("", Label.CENTER); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gridbag); c.fill = GridBagConstraints.HORIZONTAL; c.weightx = 0.0; c.weighty = 0.0; c.insets = new Insets(4, 4, 1, 1); c.gridwidth = GridBagConstraints.REMAINDER; addBag(canHex, gridbag, c); c.gridwidth = 1; addBag(labElev, gridbag, c); addBag(butElevUp, gridbag, c); addBag(butElevDown, gridbag, c); c.gridwidth = GridBagConstraints.REMAINDER; addBag(texElev, gridbag, c); addBag(labTerrain, gridbag, c); addBag(lisTerrain, gridbag, c); addBag(butDelTerrain, gridbag, c); addBag(panTerrainType, gridbag, c); addBag(panTerrExits, gridbag, c); addBag(panRoads, gridbag, c); addBag(labTheme, gridbag, c); addBag(texTheme, gridbag, c); addBag(butAddTerrain, gridbag, c); addBag(butMiniMap, gridbag, c); c.weightx = 1.0; c.weighty = 1.0; addBag(blankL, gridbag, c); c.weightx = 1.0; c.weighty = 0.0; // addBag(labBoard, gridbag, c); addBag(panButtons, gridbag, c); minimapW = new Dialog(frame, "MiniMap", false); minimapW.setLocation(Settings.minimapPosX, Settings.minimapPosY); minimapW.addWindowListener(this); try { minimap = new MiniMap(minimapW, game, bv); } catch (IOException e) { new AlertDialog(frame,"Fatal Error", "Could not initialise minimap:\n"+e); frame.dispose(); }; minimapW.add(minimap); setMapVisible(true); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c9f0f1d2e5ceb1c577004355102dc4109baf3a49/BoardEditor.java/buggy/megamek/src/megamek/client/ui/AWT/BoardEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 6946, 5537, 1435, 288, 3639, 848, 7037, 273, 394, 15734, 12971, 5621, 3639, 11814, 17274, 90, 273, 394, 5287, 2932, 17274, 90, 2773, 16, 5287, 18, 11847, 1769, 3639, 16573,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 6946, 5537, 1435, 288, 3639, 848, 7037, 273, 394, 15734, 12971, 5621, 3639, 11814, 17274, 90, 273, 394, 5287, 2932, 17274, 90, 2773, 16, 5287, 18, 11847, 1769, 3639, 16573,...
if (bundleGroupInfos != null && bundleGroupInfos.length > 0) createButton(parent, FEATURES_ID, WorkbenchMessages.AboutDialog_featureInfo, false);
if (bundleGroupInfos != null && bundleGroupInfos.length > 0) { createButton(parent, FEATURES_ID, WorkbenchMessages.AboutDialog_featureInfo, false); }
protected void createButtonsForButtonBar(Composite parent) { parent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); // bug 64232: the feature details button should only be created if there // are features to show if (bundleGroupInfos != null && bundleGroupInfos.length > 0) createButton(parent, FEATURES_ID, WorkbenchMessages.AboutDialog_featureInfo, false); createButton(parent, PLUGINS_ID, WorkbenchMessages.AboutDialog_pluginInfo, false); createButton(parent, INFO_ID, WorkbenchMessages.AboutDialog_systemInfo, false); Label l = new Label(parent, SWT.NONE); l.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); GridLayout layout = (GridLayout) parent.getLayout(); layout.numColumns++; layout.makeColumnsEqualWidth = false; Button b = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); b.setFocus(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/AboutDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/AboutDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 14388, 1290, 3616, 5190, 12, 9400, 982, 13, 288, 3639, 982, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 10019, 3639, 368, 7934, 517...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 14388, 1290, 3616, 5190, 12, 9400, 982, 13, 288, 3639, 982, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 10019, 3639, 368, 7934, 517...
if (portBounds.width >= viewMinimum.width)
if (portBounds.width >= viewPref.width)
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition doesn't reposition the view; it // positions the port, in view coordinates. JViewport port = (JViewport) parent; Component view = port.getView(); if (view == null) return; // These dimensions and positions are in *view space*. Do not mix // variables in here from port space (eg. parent.getBounds()). This // function should be entirely in view space, because the methods on // the viewport require inputs in view space. Rectangle portBounds = port.getViewRect(); Dimension viewPref = view.getPreferredSize(); Dimension viewMinimum = view.getMinimumSize(); Point portLowerRight = new Point(portBounds.x + portBounds.width, portBounds.y + portBounds.height); // vertical implementation of the above rules if (portBounds.height >= viewMinimum.height) { portBounds.y = 0; if ( !(view instanceof Scrollable) || ((Scrollable)view).getScrollableTracksViewportHeight()) viewPref.height = portBounds.height; } else { viewPref.height = viewMinimum.height; int overextension = portLowerRight.y - viewPref.height; if (overextension > 0) portBounds.y -= overextension; } // horizontal implementation of the above rules if (portBounds.width >= viewMinimum.width) { portBounds.x = 0; if ( !(view instanceof Scrollable) || ((Scrollable)view).getScrollableTracksViewportWidth()) viewPref.width = portBounds.width; } else { viewPref.width = viewMinimum.width; int overextension = portLowerRight.x - viewPref.width; if (overextension > 0) portBounds.x -= overextension; } port.setViewPosition(portBounds.getLocation()); port.setViewSize(viewPref); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/ViewportLayout.java/clean/core/src/classpath/javax/javax/swing/ViewportLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3511, 2170, 12, 2170, 982, 13, 282, 288, 565, 368, 1021, 4031, 358, 10634, 333, 445, 353, 23772, 358, 2305, 326, 1257, 565, 368, 434, 2590, 518, 4097, 16, 471, 7155, 603, 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, 282, 1071, 918, 3511, 2170, 12, 2170, 982, 13, 282, 288, 565, 368, 1021, 4031, 358, 10634, 333, 445, 353, 23772, 358, 2305, 326, 1257, 565, 368, 434, 2590, 518, 4097, 16, 471, 7155, 603, 326...
GridData gdLTop = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_CENTER);
GridData gdLTop = new GridData(GridData.VERTICAL_ALIGN_CENTER);
private void placeComponents() { FillLayout flMain = new FillLayout(); flMain.marginHeight = 0; flMain.marginWidth = 0; GridLayout glGroup = new GridLayout(); glGroup.horizontalSpacing = 4; glGroup.verticalSpacing = 4; glGroup.marginHeight = 4; glGroup.marginWidth = 4; glGroup.numColumns = 6; this.setLayout(flMain); grpInsets = new Group(this, SWT.NONE); grpInsets.setLayout(glGroup); grpInsets.setText("Insets (" + sUnits + ")"); Label lblTop = new Label(grpInsets, SWT.NONE); GridData gdLTop = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_CENTER); gdLTop.heightHint = 20; lblTop.setLayoutData(gdLTop); lblTop.setText("Top:"); txtTop = new Text(grpInsets, SWT.BORDER); GridData gdTTop = new GridData(GridData.FILL_BOTH); gdTTop.heightHint = 20; gdTTop.horizontalSpan = 2; txtTop.setLayoutData(gdTTop); txtTop.setText(Double.toString(insets.getTop())); txtTop.addKeyListener(this); Label lblLeft = new Label(grpInsets, SWT.NONE); GridData gdLLeft = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_CENTER); gdLLeft.heightHint = 20; lblLeft.setLayoutData(gdLLeft); lblLeft.setText("Left:"); txtLeft = new Text(grpInsets, SWT.BORDER); GridData gdTLeft = new GridData(GridData.FILL_BOTH); gdTLeft.heightHint = 20; gdTLeft.horizontalSpan = 2; txtLeft.setLayoutData(gdTLeft); txtLeft.setText(Double.toString(insets.getLeft())); txtLeft.addKeyListener(this); Label lblBottom = new Label(grpInsets, SWT.NONE); GridData gdLBottom = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_CENTER); gdLBottom.heightHint = 20; lblBottom.setLayoutData(gdLBottom); lblBottom.setText("Bottom:"); txtBottom = new Text(grpInsets, SWT.BORDER); GridData gdTBottom = new GridData(GridData.FILL_BOTH); gdTBottom.heightHint = 20; gdTBottom.horizontalSpan = 2; txtBottom.setLayoutData(gdTBottom); txtBottom.setText(Double.toString(insets.getBottom())); txtBottom.addKeyListener(this); Label lblRight = new Label(grpInsets, SWT.NONE); GridData gdLRight = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_CENTER); gdLRight.heightHint = 20; lblRight.setLayoutData(gdLRight); lblRight.setText("Right:"); txtRight = new Text(grpInsets, SWT.BORDER); GridData gdTRight = new GridData(GridData.FILL_BOTH); gdTRight.heightHint = 20; gdTRight.horizontalSpan = 2; txtRight.setLayoutData(gdTRight); txtRight.setText(Double.toString(insets.getRight())); txtRight.addKeyListener(this); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/3312cd0d7d4efb945ae26dd43efddc7cb433aa3c/InsetsComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/InsetsComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3166, 7171, 1435, 565, 288, 3639, 14192, 3744, 1183, 6376, 273, 394, 14192, 3744, 5621, 3639, 1183, 6376, 18, 10107, 2686, 273, 374, 31, 3639, 1183, 6376, 18, 10107, 2384, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3166, 7171, 1435, 565, 288, 3639, 14192, 3744, 1183, 6376, 273, 394, 14192, 3744, 5621, 3639, 1183, 6376, 18, 10107, 2686, 273, 374, 31, 3639, 1183, 6376, 18, 10107, 2384, 273, ...
add(pane, dropResult.getDropIndex());
add(pane, dropResult.getInsertionPoint());
public IDropTarget drag(Control currentControl, final Object draggedObject, Point position, Rectangle dragRectangle) { if (!(draggedObject instanceof ViewPane)) { return null; } final ViewPane pane = (ViewPane) draggedObject; // Don't allow views to be dragged between windows if (pane.getWorkbenchWindow() != getWorkbenchWindow()) { return null; } final StackDropResult dropResult = getPresentation().dragOver( currentControl, position); if (dropResult == null) { return null; } final IPresentablePart draggedControl = getPresentablePartAtIndex(dropResult .getDropIndex()); if (draggedControl == pane.getPresentablePart()) { return null; }; return new IDropTarget() { public void drop() { // If we're dragging a pane over itself do nothing //if (draggedControl == pane.getPresentablePart()) { return; }; // Don't worry about reparenting the view if we're // simply // rearranging tabs within this folder if (pane.getContainer() != PartTabFolder.this) { page.getActivePerspective().getPresentation() .derefPart(pane); pane.reparent(getParent()); } else { remove(pane); } add(pane, dropResult.getDropIndex()); setSelection(pane); pane.setFocus(); } public Cursor getCursor() { return DragCursors.getCursor(DragCursors.CENTER); } public Rectangle getSnapRectangle() { return dropResult.getSnapRectangle(); } }; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfff3e2191ef56cce16f4ec2bb3d7f4d2908a03d/PartTabFolder.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartTabFolder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1599, 1764, 2326, 8823, 12, 3367, 783, 3367, 16, 10792, 727, 1033, 8823, 2423, 921, 16, 4686, 1754, 16, 10792, 13264, 8823, 19463, 13, 288, 7734, 309, 16051, 12, 15997, 2423, 921, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1599, 1764, 2326, 8823, 12, 3367, 783, 3367, 16, 10792, 727, 1033, 8823, 2423, 921, 16, 4686, 1754, 16, 10792, 13264, 8823, 19463, 13, 288, 7734, 309, 16051, 12, 15997, 2423, 921, ...
finally
catch(TransformerException te)
public void startElement( StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes) throws org.xml.sax.SAXException { setPropertiesFromAttributes(handler, rawName, attributes, this); String hrefUrl = getHref(); if (handler.importStackContains(hrefUrl)) { throw new org.xml.sax.SAXException( XSLMessages.createMessage( getStylesheetInclErr(), new Object[]{ hrefUrl })); //"(StylesheetHandler) "+hrefUrl+" is directly or indirectly importing itself!"); } handler.pushImportURL(hrefUrl); int savedStylesheetType = handler.getStylesheetType(); handler.setStylesheetType(this.getStylesheetType()); handler.pushNewNamespaceSupport(); try { parse(handler, uri, localName, rawName, attributes); } finally { handler.setStylesheetType(savedStylesheetType); handler.popImportURL(); handler.popNamespaceSupport(); } }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/ff34dc56b8ded0e7e5a0d7759ea10488295fac96/ProcessorInclude.java/clean/src/org/apache/xalan/processor/ProcessorInclude.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 13591, 12, 1850, 29483, 2963, 1503, 1838, 16, 514, 2003, 16, 514, 11927, 16, 514, 1831, 461, 16, 9055, 1677, 13, 5411, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 13591, 12, 1850, 29483, 2963, 1503, 1838, 16, 514, 2003, 16, 514, 11927, 16, 514, 1831, 461, 16, 9055, 1677, 13, 5411, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, ...
return false;
private static boolean isSupported(String encoding) { if (CharsetIsSupportedMethod == null) { return true; } try { Object o = CharsetIsSupportedMethod.invoke(null, new Object[] { encoding }); return Boolean.TRUE.equals(o); } catch (IllegalArgumentException e) { // Method.invoke can throw IllegalArgumentException if the wrong type of receiver is passed. // This won't happen in this case because it's a static method. // Charset.isSupported() throws IllegalCharsetNameException (which extends IllegalArgumentException) // and we want to return false for this case, but can't refer to the class directly // because it's in java.nio, which does not exist in JCL Foundation. return false; } catch (IllegalAccessException e) { // fall through } catch (InvocationTargetException e) { // fall through } return true; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/200e60988d82d8a8b681fb86f84c0b0f323f0b89/WorkbenchEncoding.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/WorkbenchEncoding.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1250, 25946, 12, 780, 2688, 13, 288, 202, 202, 430, 261, 9652, 2520, 7223, 1305, 422, 446, 13, 288, 1082, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 698, 288, 1082, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1250, 25946, 12, 780, 2688, 13, 288, 202, 202, 430, 261, 9652, 2520, 7223, 1305, 422, 446, 13, 288, 1082, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 698, 288, 1082, 2...
match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_unary2740); pushFollow(FOLLOW_lhs_in_lhs_unary2744);
match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_unary2916); if (failed) return d; pushFollow(FOLLOW_lhs_in_lhs_unary2920);
public BaseDescr lhs_unary() throws RecognitionException { BaseDescr d = null; BaseDescr u = null; FromDescr fm = null; AccumulateDescr ac = null; CollectDescr cs = null; d = null; try { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1180:4: ( (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1180:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1180:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' ) int alt39=5; switch ( input.LA(1) ) { case 71: alt39=1; break; case 72: alt39=2; break; case 73: alt39=3; break; case ID: alt39=4; break; case LEFT_PAREN: alt39=5; break; default: NoViableAltException nvae = new NoViableAltException("1180:4: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? | '(' u= lhs ')' )", 39, 0, input); throw nvae; } switch (alt39) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1180:6: u= lhs_exist { pushFollow(FOLLOW_lhs_exist_in_lhs_unary2630); u=lhs_exist(); _fsp--; } break; case 2 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1181:5: u= lhs_not { pushFollow(FOLLOW_lhs_not_in_lhs_unary2638); u=lhs_not(); _fsp--; } break; case 3 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1182:5: u= lhs_eval { pushFollow(FOLLOW_lhs_eval_in_lhs_unary2646); u=lhs_eval(); _fsp--; } break; case 4 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1183:5: u= lhs_column ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? { pushFollow(FOLLOW_lhs_column_in_lhs_unary2654); u=lhs_column(); _fsp--; // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1183:18: ( (fm= from_statement ) | (ac= accumulate_statement ) | (cs= collect_statement ) )? int alt38=4; int LA38_0 = input.LA(1); if ( (LA38_0==48) ) { switch ( input.LA(2) ) { case 49: alt38=2; break; case 53: alt38=3; break; case ID: alt38=1; break; } } switch (alt38) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1184:14: (fm= from_statement ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1184:14: (fm= from_statement ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1184:15: fm= from_statement { pushFollow(FOLLOW_from_statement_in_lhs_unary2674); fm=from_statement(); _fsp--; fm.setColumn((ColumnDescr) u); u=fm; } } break; case 2 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1185:14: (ac= accumulate_statement ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1185:14: (ac= accumulate_statement ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1185:15: ac= accumulate_statement { pushFollow(FOLLOW_accumulate_statement_in_lhs_unary2696); ac=accumulate_statement(); _fsp--; ac.setResultColumn((ColumnDescr) u); u=ac; } } break; case 3 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1186:14: (cs= collect_statement ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1186:14: (cs= collect_statement ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1186:15: cs= collect_statement { pushFollow(FOLLOW_collect_statement_in_lhs_unary2717); cs=collect_statement(); _fsp--; cs.setResultColumn((ColumnDescr) u); u=cs; } } break; } } break; case 5 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1188:5: '(' u= lhs ')' { match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_unary2740); pushFollow(FOLLOW_lhs_in_lhs_unary2744); u=lhs(); _fsp--; match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_unary2746); } break; } d = u; pushFollow(FOLLOW_opt_semicolon_in_lhs_unary2756); opt_semicolon(); _fsp--; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/c3437c2488c314384990c4282a547e0f92ca02c2/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3360, 16198, 8499, 67, 318, 814, 1435, 1216, 9539, 288, 6647, 3360, 16198, 302, 273, 446, 31, 3639, 3360, 16198, 582, 273, 446, 31, 3639, 6338, 16198, 10940, 273, 446, 31, 3639, 159...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3360, 16198, 8499, 67, 318, 814, 1435, 1216, 9539, 288, 6647, 3360, 16198, 302, 273, 446, 31, 3639, 3360, 16198, 582, 273, 446, 31, 3639, 6338, 16198, 10940, 273, 446, 31, 3639, 159...
System.out.println("Get"+newstr+"PermissionSet "+meta_id+","+set_id+","+lang_prefix) ; for(int z=0;z<permissionset.length;z++) { System.out.println("loop2: "+permissionset[z]); }
public static String parsePermissionSet (int meta_id, User user, String host, int set_id, boolean for_new) throws IOException { final String imcserver = Utility.getDomainPref("adminserver",host) ; // Lets get the langprefix final String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; String newstr = "" ; int doc_type = IMCServiceRMI.getDocType(imcserver,meta_id) ; if ( for_new ) { // This is the permissions for newly created documents. // Only applicable for text-docs (2) // since this is the only doc-type that can create new documents. // For new documents we set textdoc-permissions.too, since // text-doc is the only doc-type with multiple possible permissions. // Permission to create other doc-types gives permission to edit them. // It would be silly to be able to create, for example, an url, and not be able to change it. // FIXME: When we get more doc-types that have multiple permissions, (conference?) we need to change this, // to allow for setting permissions for all those doc-types for new documents. // We'll then have to output a permissionform for all the different doc-types. // In case we get other doc-types in which we can create documents we also need to change this. if (doc_type != IMCConstants.DOCTYPE_TEXT) { return "" ; } newstr = "New" ; } // Here i fetch the current users set-id and the document-permissions for this document (Whether set-id 1 is more privileged than set-id 2.) String[] current_permissions = IMCServiceRMI.sqlProcedure(imcserver, "GetUserPermissionSet "+meta_id+", "+user.getInt("user_id")) ; int user_set_id = Integer.parseInt(current_permissions[0]) ; int user_perm_set = Integer.parseInt(current_permissions[1]) ; int currentdoc_perms = Integer.parseInt(current_permissions[2]) ;//***********for(int i=0;i<current_permissions.length;i++) { System.out.println("loop1: "+current_permissions[i]);}//********** // Create an anonymous adminbuttonparser that retrieves the file from the server instead of from the disk. AdminButtonParser vec = new AdminButtonParser("permissions/define_permission_"+doc_type+"_",".html",user_set_id,user_perm_set) { protected StringBuffer getContent (String name) throws IOException { return new StringBuffer(IMCServiceRMI.parseDoc(imcserver,null,name,lang_prefix)) ; } } ; // Fetch all permissions this permissionset consists of. // Permission_id, Description, Value // One row for each permission on the system. // MAKE SURE the tables permissions and doc_permissions contain the permissions in use on this system! // FIXME: It is time to make an Interface that will define all permission-constants, doc-types, and such. // Remind me when i get a minute off some day. // Update! Check out imcode.server.IMCConstants String[] permissionset = IMCServiceRMI.sqlProcedure(imcserver,"Get"+newstr+"PermissionSet "+meta_id+","+set_id+","+lang_prefix) ;System.out.println("Get"+newstr+"PermissionSet "+meta_id+","+set_id+","+lang_prefix) ;//***********for(int z=0;z<permissionset.length;z++) { System.out.println("loop2: "+permissionset[z]);}//********** final int ps_cols = 3 ; for ( int i=0 ; i<permissionset.length ; i += ps_cols ) { if ( !"0".equals(permissionset[i+2]) ) { vec.put("check_"+permissionset[i], "checked") ; } else { vec.put("check_"+permissionset[i], "") ; } } // Fetch all doctypes from the db and put them in an option-list // First, get the doc_types the current user may use. String[] user_dt = IMCServiceRMI.sqlProcedure(imcserver,"GetDocTypesWith"+newstr+"Permissions "+meta_id+","+user_set_id+",'"+lang_prefix+"'") ; HashSet user_doc_types = new HashSet() ; // I'll fill a HashSet with all the doc-types the current user may use, // for easy retrieval. // A value of "-1" means the user may not use it. for ( int i=0 ; i<user_dt.length ; i+=3 ) { if (!"-1".equals(user_dt[i+2])) { user_doc_types.add(user_dt[i]) ; } } // Now we get the doc_types the set-id we are editing may use. String[] doctypes = IMCServiceRMI.sqlProcedure(imcserver,"GetDocTypesWith"+newstr+"Permissions "+meta_id+","+set_id+",'"+lang_prefix+"'") ; // We allocate a string to contain the option-list String options_doctypes = "" ; for ( int i=0 ; i<doctypes.length ; i+=3 ) { // Check if the current user may set this doc-type for any set-id if ( user_set_id == 0 // If current user has full rights, || (user_set_id == 1 // or has set-id 1 && set_id == 2 // and is changing set-id 2 && user_doc_types.contains(doctypes[i]) // and the user may use this doc-type. && (currentdoc_perms & 1) != 0 // and set-id 1 is more privleged than set-id 2 for this document. (Bit 0) ) ) { options_doctypes += "<option value=\"8_"+doctypes[i] // Check if the set-id may currently use this doc-type + (( !"-1".equals(doctypes[i+2]) ) ? "\" selected>" : "\">") + doctypes[i+1] +"</option>" ; } } vec.put("doctypes", options_doctypes) ; // Fetch all templategroups from the db and put them in an option-list // First we get the templategroups the current user may use String[] user_tg = IMCServiceRMI.sqlProcedure(imcserver,"GetTemplateGroupsWith"+newstr+"Permissions "+meta_id+","+user_set_id) ; HashSet user_templategroups = new HashSet() ; // I'll fill a HashSet with all the templategroups the current user may use, // for easy retrieval. for ( int i=0 ; i<user_tg.length ; i+=3 ) { if (!"-1".equals(user_tg[i+2])) { user_templategroups.add(user_tg[i]) ; } } // Now we get the templategroups the set-id we are editing may use. String[] templategroups = IMCServiceRMI.sqlProcedure(imcserver,"GetTemplateGroupsWith"+newstr+"Permissions "+meta_id+","+set_id) ; // We allocate a string to contain the option-list String options_templategroups = "" ; for ( int i=0 ; i<templategroups.length ; i+=3 ) { // Check if the current user may set this templategroup for any set-id (May he use it himself?) if ( user_set_id == 0 // If current user has full rights, || (user_set_id == 1 // or has set-id 1 && set_id == 2 // and is changing set-id 2 && user_templategroups.contains(templategroups[i]) // and the user may use this group. && (currentdoc_perms & 1) != 0 // and set-id 1 is more privleged than set-id 2 for this document. (Bit 0) ) ) { options_templategroups += "<option value=\"524288_"+templategroups[i] +(( !"-1".equals(templategroups[i+2]) ) ? "\" selected>" : "\">") + templategroups[i+1]+"</option>" ; } } vec.put("templategroups", options_templategroups) ; vec.put("set_id", String.valueOf(set_id)) ; vec.put("meta_id", String.valueOf(meta_id)) ; // Put the values for all the tags inserted in vec so far in the "define_permissions_"+doc_type+".html" file // That is, the doc-specific StringBuffer doc_specific = new StringBuffer(IMCServiceRMI.parseDoc(imcserver,null,"permissions/define_permissions_"+doc_type+".html",lang_prefix)) ; Parser.parseTags(doc_specific, '#', " <>\"\n\r\t",(Map)vec,true,1) ; vec.put("doc_rights",doc_specific.toString()) ; StringBuffer complete ; if ( for_new ) { complete = new StringBuffer(IMCServiceRMI.parseDoc(imcserver,null,"permissions/define_new_permissions.html",lang_prefix)) ; } else { complete = new StringBuffer(IMCServiceRMI.parseDoc(imcserver,null,"permissions/define_permissions.html",lang_prefix)) ; } vec.setPrefix("permissions/define_permission_") ; return Parser.parseTags(complete,'#', " <>\"\n\r\t",(Map)vec,true,1).toString() ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/55429057c92305d4602e36db2baa25c760fbdd14/MetaDataParser.java/clean/server/src/imcode/util/MetaDataParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1109, 5041, 694, 261, 474, 2191, 67, 350, 16, 2177, 729, 16, 514, 1479, 16, 509, 444, 67, 350, 16, 1250, 364, 67, 2704, 13, 1216, 1860, 288, 202, 6385, 514, 709, 71, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 1109, 5041, 694, 261, 474, 2191, 67, 350, 16, 2177, 729, 16, 514, 1479, 16, 509, 444, 67, 350, 16, 1250, 364, 67, 2704, 13, 1216, 1860, 288, 202, 6385, 514, 709, 71, ...
return db.getNormilizedUrl(fnOrScript); }
String getUrl() { if (sourceInfo != null) { return sourceInfo.getUrl(); } return db.getNormilizedUrl(fnOrScript); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/677ac1cd7685aceb4fdd606aa3e6c9cea9f6d6cb/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 514, 8928, 1435, 288, 3639, 309, 261, 3168, 966, 480, 446, 13, 288, 5411, 327, 1084, 966, 18, 588, 1489, 5621, 3639, 289, 3639, 327, 1319, 18, 588, 14624, 330, 1235, 1489, 12, 4293, 116...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 514, 8928, 1435, 288, 3639, 309, 261, 3168, 966, 480, 446, 13, 288, 5411, 327, 1084, 966, 18, 588, 1489, 5621, 3639, 289, 3639, 327, 1319, 18, 588, 14624, 330, 1235, 1489, 12, 4293, 116...
public void newExpression() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:761:17: ( 'new' type ( LPAREN argList RPAREN ( classBlock )? | newArrayDeclarator ( arrayInitializer )? ) ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:761:17: 'new' type ( LPAREN argList RPAREN ( classBlock )? | newArrayDeclarator ( arrayInitializer )? ) { match(input,115,FOLLOW_115_in_newExpression3172); following.push(FOLLOW_type_in_newExpression3174); type(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:762:17: ( LPAREN argList RPAREN ( classBlock )? | newArrayDeclarator ( arrayInitializer )? ) int alt79=2; int LA79_0 = input.LA(1); if ( LA79_0==LPAREN ) { alt79=1; } else if ( LA79_0==LBRACK ) { alt79=2; } else { NoViableAltException nvae = new NoViableAltException("762:17: ( LPAREN argList RPAREN ( classBlock )? | newArrayDeclarator ( arrayInitializer )? )", 79, 0, input); throw nvae; } switch (alt79) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:762:25: LPAREN argList RPAREN ( classBlock )? { match(input,LPAREN,FOLLOW_LPAREN_in_newExpression3180); following.push(FOLLOW_argList_in_newExpression3182); argList(); following.pop(); match(input,RPAREN,FOLLOW_RPAREN_in_newExpression3184); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:762:47: ( classBlock )? int alt77=2; int LA77_0 = input.LA(1); if ( LA77_0==LCURLY ) { alt77=1; } else if ( (LA77_0>=LBRACK && LA77_0<=RBRACK)||(LA77_0>=DOT && LA77_0<=STAR)||(LA77_0>=SEMI && LA77_0<=COMMA)||(LA77_0>=RPAREN && LA77_0<=DEC)||LA77_0==111 ) { alt77=2; } else { NoViableAltException nvae = new NoViableAltException("762:47: ( classBlock )?", 77, 0, input); throw nvae; } switch (alt77) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:762:48: classBlock { following.push(FOLLOW_classBlock_in_newExpression3187); classBlock(); following.pop(); } break; } } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:772:25: newArrayDeclarator ( arrayInitializer )? { following.push(FOLLOW_newArrayDeclarator_in_newExpression3225); newArrayDeclarator(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:772:44: ( arrayInitializer )? int alt78=2; int LA78_0 = input.LA(1); if ( LA78_0==LCURLY ) { alt78=1; } else if ( (LA78_0>=LBRACK && LA78_0<=RBRACK)||(LA78_0>=DOT && LA78_0<=STAR)||(LA78_0>=SEMI && LA78_0<=COMMA)||(LA78_0>=RPAREN && LA78_0<=DEC)||LA78_0==111 ) { alt78=2; } else { NoViableAltException nvae = new NoViableAltException("772:44: ( arrayInitializer )?", 78, 0, input); throw nvae; } switch (alt78) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:772:45: arrayInitializer { following.push(FOLLOW_arrayInitializer_in_newExpression3228); arrayInitializer(); following.pop(); } break; } } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 394, 2300, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 394, 2300, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19,...
public void init(IRubyObject begin, IRubyObject end, RubyBoolean isExclusive) { if (!(begin instanceof RubyFixnum && end instanceof RubyFixnum)) {
public void init(IRubyObject aBegin, IRubyObject aEnd, RubyBoolean aIsExclusive) { if (!(aBegin instanceof RubyFixnum && aEnd instanceof RubyFixnum)) {
public void init(IRubyObject begin, IRubyObject end, RubyBoolean isExclusive) { if (!(begin instanceof RubyFixnum && end instanceof RubyFixnum)) { try { begin.callMethod("<=>", end); } catch (RaiseException rExcptn) { throw getRuntime().newArgumentError("bad value for range"); } } this.begin = begin; this.end = end; this.isExclusive = isExclusive.isTrue(); }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyRange.java/buggy/src/org/jruby/RubyRange.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 12, 7937, 10340, 921, 2376, 16, 15908, 10340, 921, 679, 16, 19817, 5507, 353, 17075, 13, 288, 3639, 309, 16051, 12, 10086, 1276, 19817, 8585, 2107, 597, 679, 1276, 19817, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 12, 7937, 10340, 921, 2376, 16, 15908, 10340, 921, 679, 16, 19817, 5507, 353, 17075, 13, 288, 3639, 309, 16051, 12, 10086, 1276, 19817, 8585, 2107, 597, 679, 1276, 19817, ...
}
}
public void suspendEncoding() throws java.io.IOException { flushBase64(); this.suspendEncoding = true; } // end suspendEncoding
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/Base64.java/buggy/org.rcfaces.core/src/org/rcfaces/core/internal/util/Base64.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 20413, 4705, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 5411, 3663, 2171, 1105, 5621, 5411, 333, 18, 87, 18815, 4705, 273, 638, 31, 3639, 289, 368, 679, 20413, 4705, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 20413, 4705, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 5411, 3663, 2171, 1105, 5621, 5411, 333, 18, 87, 18815, 4705, 273, 638, 31, 3639, 289, 368, 679, 20413, 4705, 2, -100, ...
String annotations = config.getInitParameter("org.apache.jasper.IGNORE_ANNOTATIONS"); if ("true".equals(annotations)) { ignoreAnnotations = true; }
public EmbeddedServletOptions(ServletConfig config, ServletContext context) { // JVM version numbers try { if (Float.parseFloat(System.getProperty("java.specification.version")) > 1.4) { compilerSourceVM = compilerTargetVM = "1.5"; } else { compilerSourceVM = compilerTargetVM = "1.4"; } } catch (NumberFormatException e) { // Ignore } Enumeration enumeration=config.getInitParameterNames(); while( enumeration.hasMoreElements() ) { String k=(String)enumeration.nextElement(); String v=config.getInitParameter( k ); setProperty( k, v); } // quick hack String validating=config.getInitParameter( "validating"); if( "false".equals( validating )) ParserUtils.validating=false; String annotations = config.getInitParameter("org.apache.jasper.IGNORE_ANNOTATIONS"); if ("true".equals(annotations)) { ignoreAnnotations = true; } String keepgen = config.getInitParameter("keepgenerated"); if (keepgen != null) { if (keepgen.equalsIgnoreCase("true")) { this.keepGenerated = true; } else if (keepgen.equalsIgnoreCase("false")) { this.keepGenerated = false; } else { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.keepgen")); } } } String trimsp = config.getInitParameter("trimSpaces"); if (trimsp != null) { if (trimsp.equalsIgnoreCase("true")) { trimSpaces = true; } else if (trimsp.equalsIgnoreCase("false")) { trimSpaces = false; } else { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.trimspaces")); } } } this.isPoolingEnabled = true; String poolingEnabledParam = config.getInitParameter("enablePooling"); if (poolingEnabledParam != null && !poolingEnabledParam.equalsIgnoreCase("true")) { if (poolingEnabledParam.equalsIgnoreCase("false")) { this.isPoolingEnabled = false; } else { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.enablePooling")); } } } String mapFile = config.getInitParameter("mappedfile"); if (mapFile != null) { if (mapFile.equalsIgnoreCase("true")) { this.mappedFile = true; } else if (mapFile.equalsIgnoreCase("false")) { this.mappedFile = false; } else { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.mappedFile")); } } } String senderr = config.getInitParameter("sendErrToClient"); if (senderr != null) { if (senderr.equalsIgnoreCase("true")) { this.sendErrorToClient = true; } else if (senderr.equalsIgnoreCase("false")) { this.sendErrorToClient = false; } else { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.sendErrToClient")); } } } String debugInfo = config.getInitParameter("classdebuginfo"); if (debugInfo != null) { if (debugInfo.equalsIgnoreCase("true")) { this.classDebugInfo = true; } else if (debugInfo.equalsIgnoreCase("false")) { this.classDebugInfo = false; } else { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.classDebugInfo")); } } } String checkInterval = config.getInitParameter("checkInterval"); if (checkInterval != null) { try { this.checkInterval = Integer.parseInt(checkInterval); if (this.checkInterval == 0) { this.checkInterval = 300; if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.checkInterval")); } } } catch(NumberFormatException ex) { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.checkInterval")); } } } String modificationTestInterval = config.getInitParameter("modificationTestInterval"); if (modificationTestInterval != null) { try { this.modificationTestInterval = Integer.parseInt(modificationTestInterval); } catch(NumberFormatException ex) { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.modificationTestInterval")); } } } String development = config.getInitParameter("development"); if (development != null) { if (development.equalsIgnoreCase("true")) { this.development = true; } else if (development.equalsIgnoreCase("false")) { this.development = false; } else { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.development")); } } } String suppressSmap = config.getInitParameter("suppressSmap"); if (suppressSmap != null) { if (suppressSmap.equalsIgnoreCase("true")) { isSmapSuppressed = true; } else if (suppressSmap.equalsIgnoreCase("false")) { isSmapSuppressed = false; } else { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.suppressSmap")); } } } String dumpSmap = config.getInitParameter("dumpSmap"); if (dumpSmap != null) { if (dumpSmap.equalsIgnoreCase("true")) { isSmapDumped = true; } else if (dumpSmap.equalsIgnoreCase("false")) { isSmapDumped = false; } else { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.dumpSmap")); } } } String genCharArray = config.getInitParameter("genStrAsCharArray"); if (genCharArray != null) { if (genCharArray.equalsIgnoreCase("true")) { genStringAsCharArray = true; } else if (genCharArray.equalsIgnoreCase("false")) { genStringAsCharArray = false; } else { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.genchararray")); } } } String errBeanClass = config.getInitParameter("errorOnUseBeanInvalidClassAttribute"); if (errBeanClass != null) { if (errBeanClass.equalsIgnoreCase("true")) { errorOnUseBeanInvalidClassAttribute = true; } else if (errBeanClass.equalsIgnoreCase("false")) { errorOnUseBeanInvalidClassAttribute = false; } else { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.errBean")); } } } String ieClassId = config.getInitParameter("ieClassId"); if (ieClassId != null) this.ieClassId = ieClassId; String classpath = config.getInitParameter("classpath"); if (classpath != null) this.classpath = classpath; /* * scratchdir */ String dir = config.getInitParameter("scratchdir"); if (dir != null) { scratchDir = new File(dir); } else { // First try the Servlet 2.2 javax.servlet.context.tempdir property scratchDir = (File) context.getAttribute(Constants.TMP_DIR); if (scratchDir == null) { // Not running in a Servlet 2.2 container. // Try to get the JDK 1.2 java.io.tmpdir property dir = System.getProperty("java.io.tmpdir"); if (dir != null) scratchDir = new File(dir); } } if (this.scratchDir == null) { log.fatal(Localizer.getMessage("jsp.error.no.scratch.dir")); return; } if (!(scratchDir.exists() && scratchDir.canRead() && scratchDir.canWrite() && scratchDir.isDirectory())) log.fatal(Localizer.getMessage("jsp.error.bad.scratch.dir", scratchDir.getAbsolutePath())); this.compiler = config.getInitParameter("compiler"); String compilerTargetVM = config.getInitParameter("compilerTargetVM"); if(compilerTargetVM != null) { this.compilerTargetVM = compilerTargetVM; } String compilerSourceVM = config.getInitParameter("compilerSourceVM"); if(compilerSourceVM != null) { this.compilerSourceVM = compilerSourceVM; } String javaEncoding = config.getInitParameter("javaEncoding"); if (javaEncoding != null) { this.javaEncoding = javaEncoding; } String fork = config.getInitParameter("fork"); if (fork != null) { if (fork.equalsIgnoreCase("true")) { this.fork = true; } else if (fork.equalsIgnoreCase("false")) { this.fork = false; } else { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.fork")); } } } String xpoweredBy = config.getInitParameter("xpoweredBy"); if (xpoweredBy != null) { if (xpoweredBy.equalsIgnoreCase("true")) { this.xpoweredBy = true; } else if (xpoweredBy.equalsIgnoreCase("false")) { this.xpoweredBy = false; } else { if (log.isWarnEnabled()) { log.warn(Localizer.getMessage("jsp.warning.xpoweredBy")); } } } // Setup the global Tag Libraries location cache for this // web-application. tldLocationsCache = new TldLocationsCache(context); // Setup the jsp config info for this web app. jspConfig = new JspConfig(context); // Create a Tag plugin instance tagPluginManager = new TagPluginManager(context); }
15905 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15905/f20929c26714f5535a17bdb94fb5d48df8458153/EmbeddedServletOptions.java/buggy/java/org/apache/jasper/EmbeddedServletOptions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 21829, 4745, 1320, 12, 4745, 809, 642, 16, 5411, 22717, 819, 13, 288, 7734, 368, 14131, 1177, 5600, 3639, 775, 288, 5411, 309, 261, 4723, 18, 2670, 4723, 12, 3163, 18, 588, 1396, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21829, 4745, 1320, 12, 4745, 809, 642, 16, 5411, 22717, 819, 13, 288, 7734, 368, 14131, 1177, 5600, 3639, 775, 288, 5411, 309, 261, 4723, 18, 2670, 4723, 12, 3163, 18, 588, 1396, ...
if (!WorkbenchActivityHelper.filterItem(related[i]))
if (!WorkbenchActivityHelper.filterItem(related[i])) {
private IEditorDescriptor [] findRelatedObjects(IContentType type, String fileName, RelatedRegistry registry) { List allRelated = new ArrayList(); List nonDefaultFileEditors = new ArrayList(); IEditorDescriptor [] related; if (fileName != null) { FileEditorMapping mapping = getMappingFor(fileName); if (mapping != null) { // backwards compatibility - add editors flagged as "default" related = mapping.getDeclaredDefaultEditors(); for (int i = 0; i < related.length; i++) { // we don't want to return duplicates if (!allRelated.contains(related[i])) { // if it's not filtered, add it to the list if (!WorkbenchActivityHelper.filterItem(related[i])) allRelated.add(related[i]); } } // add all filename editors to the nonDefaultList // we'll later try to add them all after content types are resolved // duplicates (ie: default editors) will be ignored nonDefaultFileEditors.addAll(Arrays.asList(mapping.getEditors())); } int index = fileName.lastIndexOf('.'); if (index > -1) { String extension = "*" + fileName.substring(index); //$NON-NLS-1$ mapping = getMappingFor(extension); if (mapping != null) { related = mapping.getDeclaredDefaultEditors(); for (int i = 0; i < related.length; i++) { // we don't want to return duplicates if (!allRelated.contains(related[i])) { // if it's not filtered, add it to the list if (!WorkbenchActivityHelper.filterItem(related[i])) allRelated.add(related[i]); } } nonDefaultFileEditors.addAll(Arrays.asList(mapping.getEditors())); } } } if (type != null) { // now add any objects directly related to the content type related = registry.getRelatedObjects(type); for (int i = 0; i < related.length; i++) { // we don't want to return duplicates if (!allRelated.contains(related[i])) { // if it's not filtered, add it to the list if (!WorkbenchActivityHelper.filterItem(related[i])) allRelated.add(related[i]); } } } if (type != null) { // now add any indirectly related objects, walking up the content type hierarchy while ((type = type.getBaseType()) != null) { related = registry.getRelatedObjects(type); for (int i = 0; i < related.length; i++) { // we don't want to return duplicates if (!allRelated.contains(related[i])) { // if it's not filtered, add it to the list if (!WorkbenchActivityHelper.filterItem(related[i])) allRelated.add(related[i]); } } } } // add all non-default editors to the list for (Iterator i = nonDefaultFileEditors.iterator(); i.hasNext();) { IEditorDescriptor editor = (IEditorDescriptor) i.next(); if (!allRelated.contains(editor) && !WorkbenchActivityHelper.filterItem(editor)) allRelated.add(editor); } return (IEditorDescriptor []) allRelated.toArray(new IEditorDescriptor [allRelated .size()]); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/EditorRegistry.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/EditorRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 6946, 3187, 5378, 1104, 8017, 4710, 12, 45, 8046, 618, 16, 514, 3968, 16, 1082, 202, 8017, 4243, 4023, 13, 288, 202, 202, 682, 777, 8017, 273, 394, 2407, 5621, 202, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 6946, 3187, 5378, 1104, 8017, 4710, 12, 45, 8046, 618, 16, 514, 3968, 16, 1082, 202, 8017, 4243, 4023, 13, 288, 202, 202, 682, 777, 8017, 273, 394, 2407, 5621, 202, 202,...
if (jj_3R_42()) return true;
if (jj_3R_41()) return true;
final private boolean jj_3R_75() { if (jj_3R_42()) return true; return false; }
55585 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55585/da8460b4964000d42229c31d9ea4b39b707fc406/ASParser.java/buggy/src/com/flagstone/translate/ASParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5877, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 9803, 10756, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, 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, 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, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5877, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 9803, 10756, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, -1...
public final int getAlpha(int pixel) {
public final int getAlpha(int pixel) {
public final int getAlpha(int pixel) { if (!hasAlpha()) return 0; return extractAndScaleSample(pixel, 3); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/DirectColorModel.java/buggy/core/src/classpath/java/java/awt/image/DirectColorModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 509, 336, 9690, 12, 474, 4957, 13, 288, 202, 202, 430, 16051, 5332, 9690, 10756, 1082, 202, 2463, 374, 31, 202, 202, 2463, 2608, 1876, 5587, 8504, 12, 11743, 16, 890, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 509, 336, 9690, 12, 474, 4957, 13, 288, 202, 202, 430, 16051, 5332, 9690, 10756, 1082, 202, 2463, 374, 31, 202, 202, 2463, 2608, 1876, 5587, 8504, 12, 11743, 16, 890, 176...
public Object get(String name) { File result = FileSugar.get(myPrecious, name);
public Object get(String uriBody) { File result = FileSugar.get(myPrecious, uriBody);
public Object get(String name) { File result = FileSugar.get(myPrecious, name); if (myIsTransitive) { return new ReadOnlyFile(result, true); } else { return result; } }
48789 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48789/31438388ca8b2d50dd072b526e08fd0a4f2c0103/ReadOnlyFile.java/buggy/src/jsrc/org/erights/e/meta/java/io/ReadOnlyFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 336, 12, 780, 508, 13, 288, 3639, 1387, 563, 273, 1387, 55, 18481, 18, 588, 12, 4811, 1386, 8450, 1481, 16, 508, 1769, 3639, 309, 261, 4811, 2520, 1429, 3720, 13, 288, 5411,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 336, 12, 780, 508, 13, 288, 3639, 1387, 563, 273, 1387, 55, 18481, 18, 588, 12, 4811, 1386, 8450, 1481, 16, 508, 1769, 3639, 309, 261, 4811, 2520, 1429, 3720, 13, 288, 5411,...
dialog.setText("cygpath Command");
dialog.setText("cygpath Command");
private void handleCygPathButtonSelected() { FileDialog dialog = new FileDialog(getShell(), SWT.NONE); dialog.setText("cygpath Command"); String command = fCygPathCommandText.getText().trim(); int lastSeparatorIndex = command.lastIndexOf(File.separator); if (lastSeparatorIndex != -1) { dialog.setFilterPath(command.substring(0, lastSeparatorIndex)); } String res = dialog.open(); if (res == null) { return; } fCygPathCommandText.setText(res); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/1738ff26440cb838b4d42f49cb8d29c4cc9babdf/CygwinPEBinaryParserPage.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/CygwinPEBinaryParserPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 1152, 918, 1640, 39, 4338, 743, 3616, 7416, 1435, 288, 9506, 202, 812, 6353, 6176, 273, 394, 1387, 6353, 12, 588, 13220, 9334, 348, 8588, 18, 9826, 1769, 9506, 202, 12730, 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, 1875, 202, 1152, 918, 1640, 39, 4338, 743, 3616, 7416, 1435, 288, 9506, 202, 812, 6353, 6176, 273, 394, 1387, 6353, 12, 588, 13220, 9334, 348, 8588, 18, 9826, 1769, 9506, 202, 12730, 18, 542, ...
if (currentStatement == null) { currentStatement = database.getDefaultStatement(); currentStatement.initialize(); }
if (currentStatement == null) { currentStatement = database.getDefaultStatement(); currentStatement.initialize(); }
private String parseCcsidSBC(int length) throws DRDAProtocolException { String strVal = null; DRDAStatement currentStatement; currentStatement = database.getCurrentStatement(); if (currentStatement == null) { currentStatement = database.getDefaultStatement(); currentStatement.initialize(); } String ccsidSBCEncoding = currentStatement.ccsidSBCEncoding; System.out.println("ccsidSBCEncoding - " + ccsidSBCEncoding); if (length == 0) return null; byte [] byteStr = reader.readBytes(length); if (ccsidSBCEncoding != null) { try { strVal = new String(byteStr, 0, length, ccsidSBCEncoding); } catch (UnsupportedEncodingException e) { agentError("Unsupported encoding " + ccsidSBCEncoding + "in parseCcsidSBC"); } } else agentError("Attempt to decode single byte string without CCSID being set"); return strVal; }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/d2989b7c8e85d8e5237ca2f36344eb4f163a426b/DRDAConnThread.java/clean/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 1109, 39, 2143, 350, 14541, 39, 12, 474, 769, 13, 1216, 16801, 9793, 5752, 503, 565, 288, 202, 780, 609, 3053, 273, 446, 31, 202, 6331, 9793, 3406, 225, 783, 3406, 31, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 1109, 39, 2143, 350, 14541, 39, 12, 474, 769, 13, 1216, 16801, 9793, 5752, 503, 565, 288, 202, 780, 609, 3053, 273, 446, 31, 202, 6331, 9793, 3406, 225, 783, 3406, 31, 1082, ...
UserSearcher searcher = new UserSearcher(); searcher.setShowMiddleNameInSearch(false);
public void presentate(IWContext iwc) throws RemoteException { mainTable = new Table(); UserSearcher searcher = new UserSearcher(); searcher.setShowMiddleNameInSearch(false); mainTable.add((searcher), 1, mainRow++); if (user != null) { searcher.setUser(user); } else if (user == null) { try { searcher.process(iwc); user = searcher.getUser(); } catch (RemoteException e1) { e1.printStackTrace(); } catch (FinderException e1) { e1.printStackTrace(); } } if (user != null) { presentateUserInfo(iwc); if (showUserRelations) try { presentateUserRelations(iwc); } catch (FinderException e) { e.printStackTrace(); } presentateButtons(iwc); } Form form = new Form(); form.add(mainTable); add(form); }
57353 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57353/086e5b6a06c2f565e097f6304d7255c1a23d5a34/UserEditor.java/buggy/src/java/is/idega/idegaweb/member/presentation/UserEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3430, 340, 12, 45, 59, 1042, 25522, 71, 13, 1216, 18361, 288, 202, 202, 5254, 1388, 273, 394, 3555, 5621, 202, 202, 1299, 2979, 264, 27349, 273, 394, 2177, 2979, 264, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3430, 340, 12, 45, 59, 1042, 25522, 71, 13, 1216, 18361, 288, 202, 202, 5254, 1388, 273, 394, 3555, 5621, 202, 202, 1299, 2979, 264, 27349, 273, 394, 2177, 2979, 264, 562...
m_requestProcessors.shutdownNow();
if(m_requestProcessors instanceof PooledExecutor) ((PooledExecutor)m_requestProcessors).shutdownNow();
public void stop() { if (m_serverSocketChannel.isOpen()) { try { m_serverSocketChannel.close(); } catch (Exception eat) { } } // Stop the main selector m_acceptSelector.wakeup(); // Stop selector threads for (int i = 0; i < m_readHandlers.length; i++) { try { m_readHandlers[i].add(new Shutdown()); } catch (InterruptedException e) { LOG.error("Thread ("+Thread.currentThread().getName() +") was interrupted, failed to shutdown selector", e); } } for (int i = 0; i < m_writeHandlers.length; i++) { try { m_writeHandlers[i].QUEUE.put(new Shutdown()); m_writeHandlers[i].m_selector.wakeup(); } catch (InterruptedException e) { LOG.error("Thread ("+Thread.currentThread().getName() +") was interrupted, failed to shutdown selector", e); } } // Stop the callback thread pool m_requestProcessors.shutdownNow(); super.stop(); }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/d2c8701fbf7fcbab6790e6f8698dcd772242638f/ConnectionTableNIO.java/buggy/src/org/jgroups/blocks/ConnectionTableNIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 2132, 1435, 282, 288, 1377, 309, 261, 81, 67, 3567, 4534, 2909, 18, 291, 3678, 10756, 1377, 288, 540, 775, 540, 288, 5411, 312, 67, 3567, 4534, 2909, 18, 4412, 5621, 540, 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, 565, 1071, 918, 2132, 1435, 282, 288, 1377, 309, 261, 81, 67, 3567, 4534, 2909, 18, 291, 3678, 10756, 1377, 288, 540, 775, 540, 288, 5411, 312, 67, 3567, 4534, 2909, 18, 4412, 5621, 540, 289...
long count = 0; while (count != nBytes) { long nRequired = nBytes - count; if (nRequired > buffer.length) { nRequired = buffer.length; } long nRead = in.read(buffer, 0, (int) nRequired); if (nRead == -1) { throw new IOException("Not enough data in source bucket."); } out.write(buffer, 0, (int) nRead); count += nRead; }
try {
public final static void paddedCopy( Bucket from, Bucket to, long nBytes, int blockSize) throws IOException { if (nBytes > blockSize) { throw new IllegalArgumentException("nBytes > blockSize"); } OutputStream out = to.getOutputStream(); byte[] buffer = new byte[16384]; InputStream in = from.getInputStream(); long count = 0; while (count != nBytes) { long nRequired = nBytes - count; if (nRequired > buffer.length) { nRequired = buffer.length; } long nRead = in.read(buffer, 0, (int) nRequired); if (nRead == -1) { throw new IOException("Not enough data in source bucket."); } out.write(buffer, 0, (int) nRead); count += nRead; } if (count < blockSize) { // hmmm... better to just allocate a new buffer // instead of explicitly zeroing the old one? // Zero pad to blockSize long padLength = buffer.length; if (padLength > blockSize - nBytes) { padLength = blockSize - nBytes; } for (int i = 0; i < padLength; i++) { buffer[i] = 0; } while (count != blockSize) { long nRequired = blockSize - count; if (blockSize - count > buffer.length) { nRequired = buffer.length; } out.write(buffer, 0, (int) nRequired); count += nRequired; } } in.close(); out.close(); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/fbdde7654afdefd24ae4365520a38c1c680248a7/BucketTools.java/clean/src/freenet/support/BucketTools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 760, 918, 14426, 2951, 12, 202, 202, 4103, 628, 16, 202, 202, 4103, 358, 16, 202, 202, 5748, 290, 2160, 16, 202, 202, 474, 13766, 13, 202, 202, 15069, 1860, 288, 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, 482, 727, 760, 918, 14426, 2951, 12, 202, 202, 4103, 628, 16, 202, 202, 4103, 358, 16, 202, 202, 5748, 290, 2160, 16, 202, 202, 474, 13766, 13, 202, 202, 15069, 1860, 288, 202, 2...
if(nbIteration >= maxIteration)
if(maxIteration != -1 && nbIteration >= maxIteration)
private boolean mustContinue(BitSet potentialNode) { boolean result = true; boolean cancel = false; BitSet projG1 = projectG1(potentialNode); BitSet projG2 = projectG2(potentialNode); // if we reached the maximum number of // serach iterations than do not continue if(nbIteration >= maxIteration) { return false; } // if constrains may no more be fullfilled than stop. if(!isContainedIn(c1, projG1) || !isContainedIn(c2, projG2)) { return false; } // check if the solution potential is not included in an already // existing solution for(Iterator i = solutionList.iterator(); i.hasNext() && !cancel; ) { BitSet sol = (BitSet) i.next(); // if we want every 'mappings' do not stop if(findAllMap && (projG1.equals(projectG1(sol)) || projG2.equals(projectG2(sol)))) { // do nothing } // if it is not possible to do better than an already existing solution than stop. else if(isContainedIn(projG1, projectG1(sol)) || isContainedIn(projG2, projectG2(sol))) { result = false; cancel = true; } } return result; }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/84f489d3ea8cd9133e83323fb58f8ea8e718665b/RGraph.java/clean/src/org/openscience/cdk/isomorphism/mcss/RGraph.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1297, 12378, 12, 5775, 694, 8555, 907, 13, 565, 288, 3639, 1250, 563, 273, 638, 31, 3639, 1250, 3755, 273, 629, 31, 3639, 21199, 10296, 43, 21, 273, 1984, 43, 21, 12, 26451,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1297, 12378, 12, 5775, 694, 8555, 907, 13, 565, 288, 3639, 1250, 563, 273, 638, 31, 3639, 1250, 3755, 273, 629, 31, 3639, 21199, 10296, 43, 21, 273, 1984, 43, 21, 12, 26451,...
UnimplementedError.unimplemented("Runtime.loadLibraryWithClassLoader");
if (loader == null) loader = VM_SystemClassLoader.getVMClassLoader(); String libPath = loader.findLibrary( libName ); if (libPath != null) { VM_ClassLoader.load( libPath ); return; } VM_ClassLoader.loadLibrary( libName );
synchronized void loadLibraryWithClassLoader(String libName, ClassLoader loader) { SecurityManager smngr = System.getSecurityManager(); if (smngr != null) smngr.checkLink(libName); UnimplementedError.unimplemented("Runtime.loadLibraryWithClassLoader"); //!!TODO }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/21fcf5d82aa6dc9a732a466122ee1a0e4328256e/Runtime.java/clean/rvm/src/vm/GNUClasspathSupport/java/lang/Runtime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 918, 1262, 9313, 1190, 7805, 12, 780, 2561, 461, 16, 9403, 4088, 13, 288, 202, 4368, 1318, 3029, 82, 3197, 273, 2332, 18, 588, 4368, 1318, 5621, 202, 430, 261, 4808, 82, 3197, 480...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 918, 1262, 9313, 1190, 7805, 12, 780, 2561, 461, 16, 9403, 4088, 13, 288, 202, 4368, 1318, 3029, 82, 3197, 273, 2332, 18, 588, 4368, 1318, 5621, 202, 430, 261, 4808, 82, 3197, 480...
source.append((char)ts.OR); pn = nf.createBinary(ts.OR, pn, orExpr(ts, source, inForInit));
sourceAdd((char)ts.OR); pn = nf.createBinary(ts.OR, pn, orExpr(ts, inForInit));
private Object orExpr(TokenStream ts, Source source, boolean inForInit) throws IOException, JavaScriptException { Object pn = andExpr(ts, source, inForInit); if (ts.matchToken(ts.OR)) { source.append((char)ts.OR); pn = nf.createBinary(ts.OR, pn, orExpr(ts, source, inForInit)); } return pn; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 578, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 16, 1250, 316, 1290, 2570, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 471, 4742, 12, 3428, 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, 3238, 1033, 578, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 16, 1250, 316, 1290, 2570, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 471, 4742, 12, 3428, 16, ...
logger.severe("personsByPersonTypeArray["+i+"]=null");
logger.info("personsByPersonTypeArray["+i+"]=null");
public void writeContentToLogger(Logger logger){ logger.severe("Contents of Household object with Index:"+ID); logger.severe("taz:"+taz); logger.severe("origTaz:"+origTaz); logger.severe("tourCategory:"+tourCategory); logger.severe("personID:"+personID); logger.severe("tourID:"+tourID); logger.severe("subtourID:"+subtourID); logger.severe("chosenDest:"+chosenDest); logger.severe("chosenWalkSegment:"+chosenWalkSegment); logger.severe("chosenTodAlt:"+chosenTodAlt); logger.severe("income:"+income); logger.severe("size:"+size); logger.severe("autoOwnership:"+autoOwnership); logger.severe("hhType:"+hhType); logger.severe("maxAdultOverlaps:"+maxAdultOverlaps); logger.severe("maxChildOverlaps:"+maxChildOverlaps); logger.severe("maxMixedOverlaps:"+maxMixedOverlaps); logger.severe("maxAdultWindow:"+maxAdultWindow); logger.severe("maxChildWindow:"+maxChildWindow); logger.severe("travellingAdults:"+travellingAdults); logger.severe("travellingChildren:"+travellingChildren); logger.severe("travellingNonPreschool:"+travellingNonPreschool); logger.severe("maxChildOverlaps:"+maxChildOverlaps); if (persons != null) { for(int i=1; i<persons.length; i++){ Person temp=persons[i]; if (temp != null) temp.writeContentToLogger(logger); } } else { logger.severe("persons[]=null"); } if (personsByType != null) { for(int i=0; i<personsByType.length; i++){ logger.severe("personsByType["+i+"]="+personsByType[i]); } } else { logger.severe("personsByType[]=null"); } if (personsByPersonTypeArray != null) { int nRows=personsByPersonTypeArray.length; for(int i=0; i<nRows; i++){ int nCols=0; if(personsByPersonTypeArray[i]!=null){ nCols = personsByPersonTypeArray[i].length; }else{ logger.severe("personsByPersonTypeArray["+i+"]=null"); } for(int j=0; j<nCols; j++){ logger.severe("personsByPersonTypeArray["+i+"]["+j+"]="+personsByPersonTypeArray[i][j]); } } } else { logger.severe("personsByPersonTypeArray[]=null"); } if (jointTours != null) { for(int i=0; i<jointTours.length; i++){ JointTour temp=jointTours[i]; if (temp != null) temp.writeContentToLogger(logger, "joint tour " + i); } } else { logger.severe("jointTours[]=null"); } if (jointToursByType != null) { for(int i=0; i<jointToursByType.length; i++){ logger.severe("jointToursByType["+i+"]="+jointToursByType[i]); } } else { logger.severe("jointToursByType[]=null"); } if (indivTours != null) { for(int i=0; i<indivTours.length; i++){ Tour temp=indivTours[i]; if (temp != null) temp.writeContentToLogger(logger, "indiv tour " + i); } } else { logger.severe("indivTours[]=null"); } if (indivToursByType != null) { for(int i=0; i<indivToursByType.length; i++){ logger.severe("indivToursByType["+i+"]="+indivToursByType[i]); } } else { logger.severe("indivToursByType[]=null"); } if (mandatoryTours != null) { for(int i=0; i<mandatoryTours.length; i++){ Tour temp=mandatoryTours[i]; if (temp != null) temp.writeContentToLogger(logger, "mandatory tour " + i); } } else { logger.severe("mandatoryTours[]=null"); } if (mandatoryToursByType != null) { for(int i=0; i<mandatoryToursByType.length; i++){ logger.severe("mandatoryToursByType["+i+"]="+mandatoryToursByType[i]); } } else { logger.severe("mandatoryToursByType[]=null"); } logger.severe("district:"+district); logger.severe("processorId:"+processorId); }
1120 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1120/ca343a527cdff81450c6dae2017cdd7596546cc4/Household.java/clean/src/java/com/pb/morpc/structures/Household.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 1350, 774, 3328, 12, 3328, 1194, 15329, 1377, 1194, 18, 307, 502, 73, 2932, 6323, 434, 670, 3793, 21056, 733, 598, 3340, 2773, 15, 734, 1769, 1377, 1194, 18, 307, 502, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 1350, 774, 3328, 12, 3328, 1194, 15329, 1377, 1194, 18, 307, 502, 73, 2932, 6323, 434, 670, 3793, 21056, 733, 598, 3340, 2773, 15, 734, 1769, 1377, 1194, 18, 307, 502, ...
protected void doTearDown() throws Exception {
protected void doTearDown() throws Exception {
protected void doTearDown() throws Exception { ServerTools.killActiveMq(); }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/f22bcd2035487efd91d326568c482912217bbe55/JmsReconnectionTestCase.java/buggy/tests/integration/src/test/java/org/mule/test/integration/providers/jms/activemq/JmsReconnectionTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 56, 2091, 4164, 1435, 1216, 1185, 288, 3639, 3224, 10348, 18, 16418, 3896, 49, 85, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4750, 918, 741, 56, 2091, 4164, 1435, 1216, 1185, 288, 3639, 3224, 10348, 18, 16418, 3896, 49, 85, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if ((((RolapLevel) level).flags & RolapLevel.NUMERIC) != 0) {
if ((getRolapLevel().flags & RolapLevel.NUMERIC) != 0) {
String quoteKeyForSql() { if ((((RolapLevel) level).flags & RolapLevel.NUMERIC) != 0) { return key.toString(); } else { return RolapUtil.singleQuoteForSql(key.toString()); } }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/0cc18052c959f8014f772086b193e28d7a6dd66a/RolapMember.java/buggy/src/main/mondrian/rolap/RolapMember.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 514, 3862, 653, 1290, 5101, 1435, 565, 288, 3639, 309, 14015, 588, 4984, 438, 2355, 7675, 7133, 473, 11714, 438, 2355, 18, 22998, 13, 480, 374, 13, 288, 5411, 327, 498, 18, 10492, 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, 514, 3862, 653, 1290, 5101, 1435, 565, 288, 3639, 309, 14015, 588, 4984, 438, 2355, 7675, 7133, 473, 11714, 438, 2355, 18, 22998, 13, 480, 374, 13, 288, 5411, 327, 498, 18, 10492, 5621, ...
.setTaskName(AspectJUIPlugin .getResourceString("OptionsConfigurationBlock.buildproject.taskname"));
.setTaskName(UIMessages.OptionsConfigurationBlock_buildproject_taskname);
public void run(IProgressMonitor monitor) throws InvocationTargetException { monitor.beginTask("", 2); try { monitor .setTaskName(AspectJUIPlugin .getResourceString("OptionsConfigurationBlock.buildproject.taskname")); thisProject.build( IncrementalProjectBuilder.FULL_BUILD, new SubProgressMonitor(monitor, 2)); } catch (CoreException e) { } finally { monitor.done(); } }
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/db7704a16405007af064b9eaf64639d601bcfc7c/AspectJProjectWizard.java/buggy/org.eclipse.ajdt.ui/src/org/eclipse/ajdt/internal/ui/wizards/AspectJProjectWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 6862, 1082, 202, 15069, 15342, 288, 25083, 202, 10259, 18, 10086, 2174, 2932, 3113, 576, 1769, 25083, 202, 698, 288, 6862, 1082, 202, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 6862, 1082, 202, 15069, 15342, 288, 25083, 202, 10259, 18, 10086, 2174, 2932, 3113, 576, 1769, 25083, 202, 698, 288, 6862, 1082, 202, 1...
int grammarSize = fSchemaGrammars.size() + ((fNoNSSchemaGrammar == null) ? 0 : 1); Grammar [] toReturn = new Grammar[grammarSize];
int grammarSize = fGrammars.length ; Grammar [] tempGrammars = new Grammar[grammarSize];
public Grammar [] getSchemaGrammars() { int grammarSize = fSchemaGrammars.size() + ((fNoNSSchemaGrammar == null) ? 0 : 1); Grammar [] toReturn = new Grammar[grammarSize]; int pos = 0; Enumeration grammarsNS = fSchemaGrammars.elements(); while (grammarsNS.hasMoreElements()) { toReturn[pos++] = (Grammar)grammarsNS.nextElement(); if(DEBUG){ System.out.println("RETRIEVING INITIAL GRAMMAR " + pos ) ; Grammar temp = toReturn[pos - 1] ; print(temp.getGrammarDescription()); } } if(pos < grammarSize){ toReturn[pos++] = fNoNSSchemaGrammar; if(DEBUG){ System.out.println("RETRIEVING INITIAL GRAMMAR " + pos ) ; Grammar temp = toReturn[pos - 1] ; print(temp.getGrammarDescription()); } } return toReturn; } // getSchemaGrammars()
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/9159d1b97dccbaab007fb2dc060bc33377e21800/XMLGrammarPoolImpl.java/buggy/src/org/apache/xerces/impl/validation/XMLGrammarPoolImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 27809, 5378, 11088, 18576, 87, 1435, 288, 3639, 509, 6473, 1225, 273, 284, 3078, 18576, 87, 18, 1467, 1435, 397, 14015, 74, 2279, 50, 1260, 1243, 18576, 422, 446, 13, 692, 374, 294,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 27809, 5378, 11088, 18576, 87, 1435, 288, 3639, 509, 6473, 1225, 273, 284, 3078, 18576, 87, 18, 1467, 1435, 397, 14015, 74, 2279, 50, 1260, 1243, 18576, 422, 446, 13, 692, 374, 294,...
public static RubyInteger srand(IRubyObject recv, IRubyObject[] args) { long oldRandomSeed = recv.getRuntime().randomSeed; if (args.length > 0) { RubyInteger integerSeed = (RubyInteger) args[0].convertToType("Integer", "to_int", true); recv.getRuntime().randomSeed = integerSeed.getLongValue(); } else { recv.getRuntime().randomSeed = System.currentTimeMillis(); // FIXME } recv.getRuntime().random.setSeed(recv.getRuntime().randomSeed); return RubyFixnum.newFixnum(recv.getRuntime(), oldRandomSeed); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/5742ade921eb900cb64ec6888a7431f111da5c32/KernelModule.java/clean/org/jruby/KernelModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 4522, 272, 7884, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 7734, 1525, 1592, 8529, 12702, 273, 10665, 18, 588, 5576, 7675, 9188, 12702, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 4522, 272, 7884, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 7734, 1525, 1592, 8529, 12702, 273, 10665, 18, 588, 5576, 7675, 9188, 12702, 31, ...
public final void append(SubstitutionVec vec) {
public final void append(SubstitutionVec vec) {
public final void append(SubstitutionVec vec) { //@ nowarn Exception for( int i=0; i<vec.size(); i++) addElement( vec.elementAt(i) ); }
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/da3049db1eb4330268b3c4bcabb61e7ecd42804f/SubstitutionVec.java/buggy/src/escjava/trunk/ESCTools/Rcc/java/rcc/ast/SubstitutionVec.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 714, 12, 23798, 12991, 7062, 13, 288, 540, 23834, 2037, 1303, 1185, 565, 364, 12, 509, 277, 33, 20, 31, 277, 32, 8799, 18, 1467, 5621, 277, 27245, 1377, 9335, 12, 7062, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 727, 918, 714, 12, 23798, 12991, 7062, 13, 288, 540, 23834, 2037, 1303, 1185, 565, 364, 12, 509, 277, 33, 20, 31, 277, 32, 8799, 18, 1467, 5621, 277, 27245, 1377, 9335, 12, 7062, ...
System.out.println("Importing file");
db.setAutoCommit(false);
public void run() { // Now the real import stuff if(name!=null && dir!=null) { Statement stat = null; try { // fetch the large object manager LargeObjectManager lom = ((org.postgresql.Connection)db).getLargeObjectAPI(); System.out.println("Importing file"); // A temporary buffer - this can be as large as you like byte buf[] = new byte[2048]; // Open the file System.out.println("Opening file "+dir+"/"+name); FileInputStream fis = new FileInputStream(new File(dir,name)); // Gain access to large objects System.out.println("Gaining LOAPI"); // Now create the large object System.out.println("creating blob"); int oid = lom.create(); System.out.println("Opening "+oid); LargeObject blob = lom.open(oid); // Now copy the file into the object. // // Note: we dont use write(buf), as the last block is rarely the same // size as our buffer, so we have to use the amount read. System.out.println("Importing file"); int s,t=0; while((s=fis.read(buf,0,buf.length))>0) { System.out.println("Block s="+s+" t="+t);t+=s; blob.write(buf,0,s); } // Close the object System.out.println("Closing blob"); blob.close(); // Now store the entry into the table // As we are a different thread to the other window, we must use // our own thread stat = db.createStatement(); stat.executeUpdate("insert into images values ('"+name+"',"+oid+")"); db.commit(); // Finally refresh the names list, and display the current image ImageViewer.this.refreshList(); ImageViewer.this.displayImage(name); } catch(Exception ex) { label.setText(ex.toString()); } finally { // ensure the statement is closed after us try { if(stat != null) stat.close(); } catch(SQLException se) { System.err.println("closing of Statement failed"); } } } }
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/02faee5eaa0ed93364446f5c186fa6904899dca6/ImageViewer.java/clean/src/interfaces/jdbc/example/ImageViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 5411, 368, 4494, 326, 2863, 1930, 10769, 1377, 309, 12, 529, 5, 33, 2011, 597, 1577, 5, 33, 2011, 13, 288, 202, 3406, 610, 273, 446, 31, 202, 202, 698, 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, 918, 1086, 1435, 288, 5411, 368, 4494, 326, 2863, 1930, 10769, 1377, 309, 12, 529, 5, 33, 2011, 597, 1577, 5, 33, 2011, 13, 288, 202, 3406, 610, 273, 446, 31, 202, 202, 698, 288...
switch ( _cur.kind() ) { case ATTR :
switch (_cur.kind()) { case ATTR:
public QName _getName ( ) { // TODO - consider taking this out of the gateway switch ( _cur.kind() ) { case ATTR : if (_cur.isXmlns()) { return _cur._locale.makeQNameNoCheck( _cur.getXmlnsUri(), _cur.getXmlnsPrefix() ); } // Fall thru case ELEM : case PROCINST : return _cur.getName(); } return null; }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/8883179236b87db476131da6fa70580fac43da83/Cursor.java/clean/src/newstore2/org/apache/xmlbeans/impl/newstore2/Cursor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16723, 389, 17994, 261, 262, 565, 288, 3639, 368, 2660, 300, 5260, 13763, 333, 596, 434, 326, 6878, 7734, 1620, 261, 389, 1397, 18, 9224, 1435, 262, 3639, 288, 5411, 648, 12759, 294...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16723, 389, 17994, 261, 262, 565, 288, 3639, 368, 2660, 300, 5260, 13763, 333, 596, 434, 326, 6878, 7734, 1620, 261, 389, 1397, 18, 9224, 1435, 262, 3639, 288, 5411, 648, 12759, 294...
}
}
static BeanInfo reallyFindExplicitBeanInfo(Class beanClass) { ClassLoader beanClassLoader = beanClass.getClassLoader(); BeanInfo beanInfo; beanInfo = getBeanInfo(beanClassLoader, beanClass.getName() + "BeanInfo"); if (beanInfo == null) { String newName; newName = ClassHelper.getTruncatedClassName(beanClass) + "BeanInfo"; for(int i = 0; i < Introspector.beanInfoSearchPath.length; i++) { if (Introspector.beanInfoSearchPath[i].equals("")) beanInfo = getBeanInfo(beanClassLoader, newName); else beanInfo = getBeanInfo(beanClassLoader, Introspector.beanInfoSearchPath[i] + "." + newName); if (beanInfo != null) return beanInfo; } } return beanInfo; }
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/cdef70fd9b9d93947e1ed58087503d3b6edf078e/Introspector.java/buggy/libjava/java/beans/Introspector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 7704, 966, 8654, 3125, 17186, 3381, 966, 12, 797, 22066, 13, 282, 288, 565, 9403, 3931, 7805, 273, 22066, 18, 588, 7805, 5621, 565, 7704, 966, 3931, 966, 31, 565, 3931, 966, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 7704, 966, 8654, 3125, 17186, 3381, 966, 12, 797, 22066, 13, 282, 288, 565, 9403, 3931, 7805, 273, 22066, 18, 588, 7805, 5621, 565, 7704, 966, 3931, 966, 31, 565, 3931, 966, 273, 1...
public void paint(Graphics2D g2d, GraphicsNodeRenderContext rc) { // // Set up graphic context. It is important to setup the // transform first, because the clip is defined in this // node's user space. // Shape defaultClip = g2d.getClip(); Composite defaultComposite = g2d.getComposite(); AffineTransform defaultTransform = g2d.getTransform(); RenderingHints defaultHints = g2d.getRenderingHints(); if (transform != null) { g2d.transform(transform); } if (clip != null) { g2d.clip(clip); } if (composite != null) { g2d.setComposite(composite); } if (hints != null) { g2d.addRenderingHints(hints); } rc.setTransform(g2d.getTransform()); rc.setAreaOfInterest(g2d.getClip()); rc.setRenderingHints(g2d.getRenderingHints()); // // Check if any painting is needed at all. Get the clip (in user space) // and see if it intersects with this node's bounds (in user space). // boolean paintNeeded = true; Rectangle2D bounds = getBounds(); Shape clip = g2d.getClip(); if(clip != null){ Rectangle2D clipBounds = clip.getBounds(); if(!bounds.intersects(clipBounds.getX(), clipBounds.getY(), clipBounds.getWidth(), clipBounds.getHeight())){ paintNeeded = false; } } // // Only paint if needed. // // paintNeeded = true; if (paintNeeded){ if (!isOffscreenBufferNeeded()) { // Render directly on the canvas primitivePaint(g2d, rc); } else{ Filter nodeImage = rc.getGraphicsNodeRableFactory().createGraphicsNodeRable(this); Filter filteredImage = null; if(filter != null){ traceFilter(filter, "=====>> "); filteredImage = filter; } else{ filteredImage = new org.apache.batik.refimpl.gvt.filter.ConcretePadRable(nodeImage, nodeImage.getBounds2D(), PadMode.ZERO_PAD); // filteredImage = nodeImage; } if (mask != null) { if (mask.getSource() != filteredImage){ mask.setSource(filteredImage); } filteredImage = mask; System.out.println("YYYYYYYY Masking.... "); } // Create the render context for drawing this node. AffineTransform usr2dev = g2d.getTransform(); // RenderContext context = new RenderContext(usr2dev, g2d.getClip(), rc.getRenderingHints()); RenderedImage renderedNodeImage = filteredImage.createRendering(rc); Rectangle2D filterBounds = filteredImage.getBounds2D(); g2d.clip(filterBounds); if(renderedNodeImage != null){ g2d.setTransform(IDENTITY); g2d.drawRenderedImage(renderedNodeImage, IDENTITY); } } } // Restore default rendering attributes g2d.setTransform(defaultTransform); g2d.setRenderingHints(defaultHints); g2d.setClip(defaultClip); g2d.setComposite(defaultComposite); }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/d937ed382b1561c062833a885f2080ebbc87d4a4/AbstractGraphicsNode.java/clean/sources/org/apache/batik/refimpl/gvt/AbstractGraphicsNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 12, 17558, 22, 40, 314, 22, 72, 16, 16830, 907, 3420, 1042, 4519, 13, 288, 3639, 368, 3639, 368, 1000, 731, 19548, 819, 18, 2597, 353, 10802, 358, 3875, 326, 540, 368,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 12, 17558, 22, 40, 314, 22, 72, 16, 16830, 907, 3420, 1042, 4519, 13, 288, 3639, 368, 3639, 368, 1000, 731, 19548, 819, 18, 2597, 353, 10802, 358, 3875, 326, 540, 368,...
try { log.info( "What is the new development version for \'" + projectId + "\'? [" + projectVersion + "]" ); String inputVersion = inputHandler.readLine(); if ( !StringUtils.isEmpty( inputVersion ) ) { projectVersion = inputVersion; } } catch ( IOException e ) { throw new MojoExecutionException( "Can't read next development version from user input.", e ); }
nextVersion = getVersionFromUser("What is the new development version for \'" + projectId + "\'?", nextVersion );
public void incrementVersion( Model model, String projectId ) throws MojoExecutionException { String projectVersion = model.getVersion(); if ( ArtifactUtils.isSnapshot( projectVersion ) ) { throw new MojoExecutionException( "The project " + projectId + " is a snapshot (" + projectVersion + "). It appears that the release version has not been committed." ); } // TODO: we will need to incorporate versioning strategies here because it is unlikely // that everyone will be able to agree on a standard. This is extremely limited right // now and really only works for the way maven is versioned. // releaseVersion = 1.0-beta-4 // snapshotVersion = 1.0-beta-5-SNAPSHOT // or // releaseVersion = 1.0.4 // snapshotVersion = 1.0.5-SNAPSHOT String staticVersionPart; String nextVersionString; int rcIdx = projectVersion.toLowerCase().lastIndexOf( "-rc" ); int dashIdx = projectVersion.lastIndexOf( "-" ); int dotIdx = projectVersion.lastIndexOf( "." ); if ( rcIdx >= dashIdx ) { staticVersionPart = projectVersion.substring( 0, rcIdx + 3 ); nextVersionString = projectVersion.substring( rcIdx + 3 ); } else if ( dashIdx > 0 ) { staticVersionPart = projectVersion.substring( 0, dashIdx + 1 ); nextVersionString = projectVersion.substring( dashIdx + 1 ); } else if ( dotIdx > 0 ) { staticVersionPart = projectVersion.substring( 0, dotIdx + 1 ); nextVersionString = projectVersion.substring( dotIdx + 1 ); } else { staticVersionPart = ""; nextVersionString = projectVersion; } try { nextVersionString = Integer.toString( Integer.parseInt( nextVersionString ) + 1 ); projectVersion = staticVersionPart + nextVersionString + SNAPSHOT_CLASSIFIER; } catch ( NumberFormatException e ) { projectVersion = ""; } if ( interactive ) { try { log.info( "What is the new development version for \'" + projectId + "\'? [" + projectVersion + "]" ); String inputVersion = inputHandler.readLine(); if ( !StringUtils.isEmpty( inputVersion ) ) { projectVersion = inputVersion; } } catch ( IOException e ) { throw new MojoExecutionException( "Can't read next development version from user input.", e ); } } else if ( "".equals( projectVersion ) ) { throw new MojoExecutionException( "Cannot determine incremented development version for: " + projectId ); } model.setVersion( projectVersion ); resolvedVersions.put( projectId, projectVersion ); }
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/3771bfdc88fc5a46222348fbae200a4d78679beb/ProjectVersionResolver.java/buggy/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/helpers/ProjectVersionResolver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5504, 1444, 12, 3164, 938, 16, 514, 9882, 262, 3639, 1216, 18780, 565, 288, 3639, 514, 1984, 1444, 273, 938, 18, 588, 1444, 5621, 3639, 309, 261, 14022, 1989, 18, 291, 4568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5504, 1444, 12, 3164, 938, 16, 514, 9882, 262, 3639, 1216, 18780, 565, 288, 3639, 514, 1984, 1444, 273, 938, 18, 588, 1444, 5621, 3639, 309, 261, 14022, 1989, 18, 291, 4568, ...
public org.quickfix.field.NoSecurityAltID getNoSecurityAltID() throws FieldNotFound { org.quickfix.field.NoSecurityAltID value = new org.quickfix.field.NoSecurityAltID();
public quickfix.field.NoSecurityAltID getNoSecurityAltID() throws FieldNotFound { quickfix.field.NoSecurityAltID value = new quickfix.field.NoSecurityAltID();
public org.quickfix.field.NoSecurityAltID getNoSecurityAltID() throws FieldNotFound { org.quickfix.field.NoSecurityAltID value = new org.quickfix.field.NoSecurityAltID(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/IndicationOfInterest.java/buggy/src/java/src/quickfix/fix44/IndicationOfInterest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 4368, 10655, 734, 336, 2279, 4368, 10655, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 4368, 10655, 734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2279, 4368, 10655, 734, 336, 2279, 4368, 10655, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 4368, 10655, 734...
if (self.isInstanceVarDefined(iVisited.getName())) {
if (self.hasInstanceVariable(iVisited.getName())) {
public void visitInstVarNode(InstVarNode iVisited) { if (self.isInstanceVarDefined(iVisited.getName())) { definition = "instance-variable"; } }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/095520dd469b76e5c1b4ca012804294c66855e55/DefinedVisitor.java/clean/org/jruby/evaluator/DefinedVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 10773, 1537, 907, 12, 10773, 1537, 907, 277, 30019, 13, 288, 3639, 309, 261, 2890, 18, 5332, 1442, 3092, 12, 77, 30019, 18, 17994, 1435, 3719, 288, 5411, 2379, 273, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 10773, 1537, 907, 12, 10773, 1537, 907, 277, 30019, 13, 288, 3639, 309, 261, 2890, 18, 5332, 1442, 3092, 12, 77, 30019, 18, 17994, 1435, 3719, 288, 5411, 2379, 273, 315, ...
print(" private void yy_do_eof()");
print(" private void yyFlexDoEOF()");
private void emitDoEOF() { if ( scanner.eofCode == null ) return; println(" /**"); println(" * Contains user EOF-code, which will be executed exactly once,"); println(" * when the end of file is reached"); println(" */"); print(" private void yy_do_eof()"); if ( scanner.eofThrow != null ) { print(" throws "); print(scanner.eofThrow); } println(" {"); println(" if (!yy_eof_done) {"); println(" yy_eof_done = true;"); println(" "+scanner.eofCode ); println(" }"); println(" }"); println(""); println(""); }
45285 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45285/2be54126140619a5f1a55243415a849954586b1c/Emitter.java/buggy/src/JFlex/Emitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3626, 3244, 12706, 1435, 288, 565, 309, 261, 7683, 18, 9339, 1085, 422, 446, 262, 327, 31, 3639, 3785, 2932, 225, 1783, 8863, 565, 3785, 2932, 282, 380, 8398, 729, 6431, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3626, 3244, 12706, 1435, 288, 565, 309, 261, 7683, 18, 9339, 1085, 422, 446, 262, 327, 31, 3639, 3785, 2932, 225, 1783, 8863, 565, 3785, 2932, 282, 380, 8398, 729, 6431, 17, ...
else fin = false;
public void start() throws InserterException { Logger.minor(this, "Starting segment "+segNo+" of "+parent+" ("+parent.dataLength+"): "+this+" ( finished="+finished+" encoded="+encoded+" hasURIs="+hasURIs+")"); boolean fin = true; for(int i=0;i<dataBlockInserters.length;i++) { if(dataBlocks[i] != null) { // else already finished on creation dataBlockInserters[i] = new SingleBlockInserter(parent.parent, dataBlocks[i], (short)-1, FreenetURI.EMPTY_CHK_URI, blockInsertContext, this, false, CHKBlock.DATA_LENGTH, i, getCHKOnly, false, false, parent.token); dataBlockInserters[i].schedule(); fin = false; } else { parent.parent.completedBlock(true); } } //parent.parent.notifyClients(); started = true; if(!encoded) Logger.minor(this, "Segment "+segNo+" of "+parent+" ("+parent.dataLength+") is not encoded"); if(splitfileAlgo != null && !encoded) { Logger.minor(this, "Encoding segment "+segNo+" of "+parent+" ("+parent.dataLength+")"); // Encode blocks Thread t = new Thread(new EncodeBlocksRunnable(), "Blocks encoder"); t.setDaemon(true); t.start(); fin = false; } else if(encoded) { for(int i=0;i<checkBlockInserters.length;i++) { if(checkBlocks[i] == null) parent.parent.completedBlock(true); else fin = false; } } if(encoded) { onEncodedSegment(); parent.encodedSegment(this); } if(hasURIs) { parent.segmentHasURIs(this); } if(fin) finish(); if(finished) { parent.segmentFinished(this); } }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/e6accf6fde724c33588e68c749fd47456ab50691/SplitFileInserterSegment.java/clean/src/freenet/client/async/SplitFileInserterSegment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 11715, 3267, 13773, 5680, 2279, 9078, 434, 13773, 2938, 9078, 7566, 15, 2938, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 11715, 3267, 13773, 5680, 2279, 9078, 434, 13773, 2938, 9078, 7566, 15, 2938, 18, ...
if (mode == DOMImplementationLS.MODE_ASYNCHRONOUS) {
if (mode != DOMImplementationLS.MODE_SYNCHRONOUS || (schemaType !=null && !"http: !"http:
public LSParser createLSParser(short mode, String schemaType) throws DOMException { if (mode == DOMImplementationLS.MODE_ASYNCHRONOUS) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } if (schemaType != null && schemaType.equals("http://www.w3.org/TR/REC-xml")) { return new DOMParserImpl( "org.apache.xerces.parsers.DTDConfiguration", schemaType); } else { // create default parser configuration validating against XMLSchemas return new DOMParserImpl( "org.apache.xerces.parsers.XML11Configuration", schemaType); } }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/f1d0cab5b0f2c3f57ad6abe859554eb2160fc61c/CoreDOMImplementationImpl.java/clean/src/org/apache/xerces/dom/CoreDOMImplementationImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 29204, 2678, 752, 3045, 2678, 12, 6620, 1965, 16, 514, 1963, 559, 13, 202, 202, 15069, 4703, 503, 288, 202, 202, 430, 261, 3188, 422, 4703, 13621, 3045, 18, 7038, 67, 3033, 17317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 29204, 2678, 752, 3045, 2678, 12, 6620, 1965, 16, 514, 1963, 559, 13, 202, 202, 15069, 4703, 503, 288, 202, 202, 430, 261, 3188, 422, 4703, 13621, 3045, 18, 7038, 67, 3033, 17317, ...
Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_294()) { jj_scanpos = xsp; break; } } xsp = jj_scanpos; if (jj_3R_295()) jj_scanpos = xsp;
if (jj_scan_token(RPAREN)) return true;
final private boolean jj_3R_159() { if (jj_scan_token(TRY)) return true; if (jj_3R_81()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_294()) { jj_scanpos = xsp; break; } } xsp = jj_scanpos; if (jj_3R_295()) jj_scanpos = xsp; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/1d8de6b34ea0ddb64fc94b478c0950c0d35de605/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 24872, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 17805, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 11861, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 1250, 10684, 67, 23, 54, 67, 24872, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 17805, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 11861, 107...
return Scriptable.NOT_FOUND;
return null;
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case CONSTRUCTOR_ID: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f).jsFunction_toString(); case Id_valueOf: return wrap_boolean(realThis(thisObj, f).jsFunction_valueOf()); } return Scriptable.NOT_FOUND; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeBoolean.java/buggy/js/rhino/src/org/mozilla/javascript/NativeBoolean.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, ...
615, 19, 10, 542, 619, 311, 312, 544, 26, 346, 330, 16, 59, 269, 19, 630, 267, 337, 264, 41, 44, 41, 44, 10, 44, 268, 269, 566, 643, 47, 48, 49, 690, 41, 271, 53, 44, 41, 630, 61, 655, 61, 349, 350, 544, 545, 657, 662, 663, 263, 264, 59, 44, 668, 669, 41, 44, 125, 369, 370, 371, 319, 41, 678, 679, 565, 56, 57, 41, 91, 607, 91, 59, 32, 689, 330, 339, 330, 339, 579, 339, 93, 337, 741, 337, 339, 744, 105, 44, 107, 348, 41, 93, 10, 352, 353, 264, 712, 713, 714,
615, 19, 10, 542, 619, 268, 269, 544, 26, 371, 330, 16, 59, 44, 19, 630, 346, 337, 264, 41, 269, 41, 44, 10, 44, 349, 350, 566, 643, 47, 48, 49, 690, 41, 267, 53, 44, 41, 630, 61, 655, 61, 263, 264, 544, 545, 657, 662, 663, 56, 57, 59, 271, 668, 669, 44, 44, 41, 369, 370, 371, 319, 44, 678, 679, 565, 125, 41, 41, 91, 607, 91, 59, 32, 689, 330, 93, 330, 339, 579, 339, 44, 337, 741, 337, 339, 744, 105, 41, 107, 348, 339, 93, 10, 352, 353, 264, 712, 713, 714,
private static final short[] yyCheck1() { return new short[] { 15, 16, 215, 14, 19, 7, 247, 15, 16, 6, 378, 19, 15, 16, 21, 375, 19, 71, 6, 7, 392, 51, 27, 15, 16, 27, 342, 19, 43, 44, 10, 3, 398, 370, 49, 50, 10, 52, 53, 27, 44, 410, 50, 101, 21, 91, 292, 32, 47, 693, 296, 4, 5, 369, 10, 522, 523, 54, 50, 570, 571, 14, 10, 10, 106, 10, 54, 506, 507, 280, 41, 387, 11, 10, 11, 444, 666, 263, 693, 59, 695, 671, 10, 310, 58, 59, 402, 94, 44, 342, 61, 10, 342, 100, 10, 280, 10, 10, 51, 44, 361, 53, 2, 3, 4, 5, 113, 10, 8, 9, 10, 11, 59, 10, 14, 15, 16, 94, 310, 19, 15, 16, 32, 0, 19, 44, 26, 310, 93, 2, 58, 59, 71, 10, 10, 10, 310, 90, 454, 58, 59, 315, 44, 59, 371, 59, 10, 47, 48, 49, 361, 51, 10, 53, 49, 58, 59, 342, 10, 61, 125, 58, 59, 349, 218, 330, 41, 327, 269, 108, 271, 10, 337, 10, 47, 10, 361, 10, 125, 371, 308, 348, 59, 59, 10, 829, 369, 370, 371, 304, 90, 32, 44, 308, 91, 369, 370, 10, 358, 559, 58, 59, 10, 200, 41, 105, 41, 107, 545, 267, 377, 269, 200, 364, 829, 41, 231, 232, 233, 58, 59, 467, 590, 282, 59, 58, 59, 339, 565, 244, 41, 246, 247, 91, 107, 10, 244, 10, 246, 247, 10, 244, 681, 246, 247, 58, 59, 41, 339, 330, 61, 59, 244, 268, 246, 247, 337, 91, 91, 269, 41, 271, 41, 41, 263, 61, 41, 61, 41, 44, 737, 738, 783, 784, 61, 786, 256, 44, 91, 218, 61, 44, 61, 10, 330, 222, 223, 91, 269, 59, 271, 337, 262, 267, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 350, 264, 222, 223, 308, 310, 368, 342, 61, 301, 345, 346, 59, 348, 306, 59, 340, 352, 346, 267, 348, 91, 290, 291, 244, 856, 246, 247, 267, 244, 349, 246, 247, 341, 369, 279, 256, 339, 727, 725, 418, 419, 377, 263, 733, 302, 303, 304, 305, 377, 267, 91, 387, 388, 389, 390, 356, 279, 281, 394, 368, 439, 595, 256, 369, 370, 394, 402, 264, 630, 263, 406, 407, 345, 346, 410, 348, 350, 386, 414, 352, 301, 302, 303, 304, 305, 306, 307, 308, 267, 339, 414, 427, 401, 308, 407, 776, 432, 433, 434, 425, 340, 414, 425, 363, 340, 441, 799, 267, 444, 342, 799, 447, 330, 267, 772, 91, 425, 91, 454, 337, 44, 342, 431, 44, 345, 346, 342, 348, 349, 350, 269, 352, 271, 267, 330, 358, 361, 397, 398, 340, 341, 337, 343, 344, 453, 330, 280, 279, 369, 370, 371, 330, 337, 369, 319, 349, 319, 44, 337, 849, 319, 10, 383, 342, 279, 339, 387, 368, 826, 703, 391, 387, 393, 264, 553, 330, 330, 279, 269, 279, 340, 402, 337, 337, 385, 386, 402, 877, 516, 383, 526, 290, 291, 414, 290, 291, 330, 391, 835, 393, 401, 10, 41, 337, 91, 330, 10, 428, 342, 41, 59, 41, 337, 511, 44, 263, 264, 272, 516, 274, 275, 549, 311, 312, 522, 523, 358, 361, 290, 291, 431, 61, 93, 454, 428, 125, 554, 41, 454, 306, 44, 371, 10, 358, 340, 554, 313, 314, 574, 58, 59, 574, 453, 240, 44, 59, 358, 593, 358, 330, 794, 263, 264, 2, 3, 574, 337, 269, 308, 8, 9, 10, 11, 41, 371, 611, 15, 16, 310, 615, 19, 10, 542, 619, 311, 312, 544, 26, 346, 330, 16, 59, 269, 19, 630, 267, 337, 264, 41, 44, 41, 44, 10, 44, 268, 269, 566, 643, 47, 48, 49, 690, 41, 271, 53, 44, 41, 630, 61, 655, 61, 349, 350, 544, 545, 657, 662, 663, 263, 264, 59, 44, 668, 669, 41, 44, 125, 369, 370, 371, 319, 41, 678, 679, 565, 56, 57, 41, 91, 607, 91, 59, 32, 689, 330, 339, 330, 339, 579, 339, 93, 337, 741, 337, 339, 744, 105, 44, 107, 348, 41, 93, 10, 352, 353, 264, 712, 713, 714, 61, 44, 44, 91, 657, 720, 579, 607, 44, 44, 662, 663, 727, 279, 310, 304, 668, 732, 733, 304, 2, 3, 4, 5, 732, 340, 8, 263, 339, 732, 630, 339, 14, 633, 339, 630, 264, 264, 404, 93, 732, 269, 59, 271, 683, 10, 44, 627, 628, 702, 650, 44, 767, 310, 769, 91, 264, 657, 658, 349, 660, 661, 662, 663, 330, 47, 93, 44, 668, 51, 10, 337, 709, 369, 370, 371, 342, 650, 10, 267, 44, 796, 41, 798, 41, 658, 725, 660, 661, 804, 41, 93, 358, 808, 59, 2, 3, 812, 91, 125, 339, 8, 702, 264, 222, 223, 706, 14, 90, 709, 41, 264, 369, 370, 371, 767, 10, 339, 58, 59, 835, 721, 722, 723, 264, 107, 244, 59, 246, 247, 10, 264, 847, 706, 849, 41, 125, 358, 256, 244, 47, 246, 247, 264, 125, 263, 834, 264, 721, 722, 723, 91, 867, 41, 869, 847, 308, 279, 280, 279, 280, 44, 877, 44, 58, 59, 881, 767, 264, 264, 44, 771, 772, 41, 93, 262, 263, 264, 58, 59, 125, 264, 269, 301, 302, 303, 304, 305, 306, 307, 308, 279, 792, 264, 264, 44, 10, 91, 771, 125, 107, 2, 3, 4, 5, 6, 93, 8, 330, 271, 330, 91, 342, 14, 41, 337, 41, 337, 93, 792, 342, 93, 342, 125, 342, 44, 826, 345, 346, 41, 348, 349, 93, 125, 352, 835, 358, 837, 358, 361, 835, 361, 330, 279, 844, 59, 47, 41, 614, 337, 51, 369, 370, 371, 834, 264, 61, 5, 624, 293, 294, 295, 296, 297, 837, 383, 776, 10, 6, 387, 358, 844, 91, 391, 256, 393, 2, 3, 863, 10, 559, 263, 8, 657, 402, 78, 279, 304, 90, 90, 307, 308, 309, 836, 330, 247, 414, 0, 695, 264, 695, 337, 71, 268, 269, -1, 107, 304, -1, -1, 428, -1, -1, 330, -1, 58, 59, -1, -1, 301, 337, 47, 358, 310, 306, 342, -1, 267, 59, -1, 347, 348, 349, 350, -1, -1, 454, 330, 41, -1, 280, 9, 10, 11, 337, -1, -1, 310, 91, 256, 347, 348, 349, 350, -1, -1, 263, -1, 26, -1, 726, -1, 0, 729, 730, 358, 44, 349, 350, 49, -1, -1, 304, 267, -1, 307, 308, 309, -1, 0, 48, 107, 369, 370, 371, -1, 280, 267, 370, 10, 330, -1, -1, -1, 301, -1, -1, 337, 330, 306, -1, 383, 342, 41, -1, 337, 369, 370, 371, 391, 342, 393, -1, 91, -1, 347, 348, 349, 350, -1, 41, 361, 125, -1, -1, 304, 544, 545, 307, 308, 309, -1, 41, -1, -1, 44, 330, 105, 59, -1, -1, -1, 349, 337, 810, 811, 428, 565, 342, -1, 330, -1, 61, -1, -1, 256, -1, 337, -1, -1, 279, 579, 263, 370, -1, -1, -1, 361, 347, 348, 349, 350, -1, -1, -1, -1, 383, -1, -1, 845, 846, -1, 91, -1, 391, 851, 393, 125, -1, 607, 304, -1, -1, 307, 308, 309, -1, -1, -1, -1, 301, -1, 868, -1, 125, 306, -1, -1, 10, -1, 876, 330, 630, 879, -1, 633, 330, 883, 337, 306, 307, 428, 309, 337, 267, -1, 313, 314, 342, -1, 256, -1, 650, 347, 348, 349, 350, 263, -1, 358, 658, -1, 660, 661, 662, 663, -1, -1, 349, 350, 668, -1, -1, -1, 222, 223, -1, 59, -1, 262, 263, 264, -1, 545, -1, 268, 269, -1, 271, 370, -1, -1, -1, 304, -1, 301, 307, 308, 309, 319, 306, -1, 383, 565, 231, 232, -1, 330, 706, -1, 391, 709, 393, -1, 337, 335, 336, 579, 44, 330, -1, 279, 280, 721, 722, 723, 337, -1, 348, -1, 350, 342, 352, 353, 354, 355, 347, 348, 349, 350, -1, -1, -1, 349, 262, 263, 264, 428, -1, -1, 268, 269, -1, 271, 302, 303, 304, 305, 545, 307, 308, 262, 263, 264, 370, 91, -1, 268, 269, 767, 271, -1, 330, 771, 772, -1, -1, 383, 565, 337, -1, -1, 342, -1, 342, 391, -1, 393, 650, 651, 279, 280, 579, -1, 792, 657, 658, 319, 660, 661, 358, -1, -1, 361, -1, 41, -1, -1, 44, 369, -1, 44, -1, 335, 336, -1, -1, 377, 378, 346, -1, 348, 428, 371, -1, 61, 348, 387, 826, -1, 352, 353, 354, 355, -1, -1, -1, 835, -1, 837, 702, 330, 402, -1, 706, -1, 844, -1, 337, -1, 377, -1, -1, 342, -1, 91, -1, -1, 91, 721, 722, 723, -1, 650, 545, -1, 414, 394, 319, 358, 657, 658, 361, 660, 661, -1, -1, -1, -1, 406, 407, -1, -1, 410, 565, -1, -1, 414, -1, -1, -1, -1, 41, 41, 454, 44, 44, 348, 579, -1, -1, 352, 353, 354, 355, -1, -1, -1, 41, 771, 772, 44, 61, 61, 441, 702, -1, 444, -1, 706, 447, -1, 304, -1, -1, 307, 308, 309, 61, 10, 792, -1, -1, -1, 721, 722, 723, -1, -1, 545, -1, 41, 91, 91, 44, 505, 506, 507, 330, -1, -1, 511, -1, 279, 280, 337, -1, -1, 91, 565, 342, 61, 522, 523, 826, 347, 348, 349, 350, 650, -1, -1, -1, 579, -1, 837, 657, 658, 59, 660, 661, -1, 844, -1, 771, 772, 546, -1, -1, -1, -1, 91, -1, -1, -1, -1, 544, -1, -1, 526, -1, -1, -1, -1, 330, 792, -1, 10, -1, -1, -1, 337, -1, -1, -1, -1, 342, -1, 578, -1, 580, 702, 582, -1, -1, 706, -1, -1, -1, -1, 590, -1, 358, -1, -1, 361, -1, -1, -1, 826, 721, 722, 723, 279, 650, -1, 279, 280, -1, -1, 837, -1, 658, -1, 660, 661, 59, 844, -1, 607, -1, -1, -1, -1, -1, -1, 593, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, 611, 633, -1, -1, 615, -1, 771, 772, 619, -1, 330, -1, -1, 330, -1, -1, 706, 337, -1, 630, 337, -1, 342, -1, 41, 342, 0, 792, -1, -1, -1, 721, 722, 723, -1, -1, 10, 681, 358, -1, -1, 358, 59, -1, 361, -1, 279, 279, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 826, 279, -1, -1, -1, -1, 41, 679, -1, 44, -1, 837, -1, -1, -1, -1, 709, 689, 844, -1, 771, 772, -1, 58, 59, -1, 61, -1, 63, -1, -1, -1, 737, 738, 279, -1, 330, 330, -1, -1, -1, 792, -1, 337, 337, -1, -1, 125, 720, -1, -1, -1, 330, -1, -1, 727, 91, -1, 93, 337, -1, 733, -1, 304, 358, 358, 307, 308, 309, -1, -1, -1, -1, -1, -1, 826, -1, -1, 304, -1, 358, 307, 308, 309, -1, 330, 837, -1, 0, -1, 125, -1, 337, 844, 799, -1, -1, 769, 10, -1, -1, 342, -1, -1, 330, -1, 347, 348, 349, 350, -1, 337, -1, 358, -1, -1, 342, -1, -1, -1, -1, 347, 348, 349, 350, -1, 798, -1, -1, 41, 835, -1, 44, -1, -1, -1, 808, 319, -1, -1, 812, -1, -1, -1, -1, -1, 58, 59, -1, 61, -1, 63, -1, 335, 336, 10, 304, -1, 863, 307, 308, 309, -1, -1, -1, -1, 348, -1, 350, -1, 352, 353, 354, 355, -1, 847, 358, 849, 360, 91, -1, 93, 330, -1, 262, 263, 264, -1, -1, 337, 268, 269, -1, 271, 342, 867, -1, 869, -1, 347, 348, 349, 350, -1, -1, 877, -1, -1, 63, 881, -1, -1, -1, 125, -1, 293, 294, 295, 296, 297, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, 63, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, 10, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 59, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, -1, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, 348, 44, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, 58, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, -1, 335, 336, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, 307, 308, 309, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 330, 58, 59, -1, 61, -1, 63, 337, -1, -1, -1, -1, 342, -1, -1, -1, -1, 347, 348, 349, 350, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, -1, 91, -1, 93, 335, 336, -1, -1, -1, -1, -1, 44, -1, -1, -1, -1, -1, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, 63, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 58, 311, 312, 313, 314, 63, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, 63, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, -1, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, 348, 44, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, 58, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, 0, 335, 336, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, 41, -1, -1, 44, -1, -1, -1, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, 58, 59, 328, -1, -1, 63, -1, 333, 334, 335, 336, -1, -1, -1, -1, -1, -1, 297, -1, -1, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, 91, 360, 93, 362, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, -1, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 58, 59, -1, 265, 266, 63, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, 91, -1, 93, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 0, -1, 318, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, 341, -1, 343, 344, 345, -1, 347, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, 358, -1, 44, -1, -1, 363, 364, 365, 366, 367, 368, 304, 305, -1, -1, 308, 58, 59, -1, -1, -1, 63, -1, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, -1, -1, 328, -1, -1, -1, -1, 333, 334, 335, 336, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 362, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, -1, 58, 59, 265, 266, -1, 63, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, 91, -1, 93, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 0, 318, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, -1, -1, -1, 335, -1, -1, 338, -1, -1, 341, -1, 343, 344, 345, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 363, 364, 365, 366, 367, 368, 304, 305, -1, -1, 308, -1, 58, 59, -1, -1, -1, 63, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, -1, -1, 328, -1, -1, -1, -1, 333, 334, 335, 336, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 362, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, -1, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, -1, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, -1, 319, 320, 321, 322, 41, 324, 325, 44, -1, 328, -1, -1, -1, -1, 333, 334, 335, 336, -1, -1, -1, 58, 59, -1, 61, -1, 63, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 362, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, 91, -1, 93, -1, -1, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, -1, -1, 328, -1, -1, -1, 0, 333, 334, 335, 336, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 362, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, 41, -1, -1, 44, -1, -1, -1, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, 58, 59, 328, -1, -1, 63, -1, 333, 334, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, 91, 360, 93, 362, 319, 320, 321, 322, 323, 324, 325, 326, -1, 328, 329, -1, -1, -1, -1, -1, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 125, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, }; }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/b1293eda8454686e846e2a9837b348e2983bb423/YyTables.java/buggy/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 21, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 4711, 16, 282, 2872, 16, 225, 576, 3600, 16, 282, 5045, 16, 282, 5342, 16, 565, 2371, 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, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 21, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 4711, 16, 282, 2872, 16, 225, 576, 3600, 16, 282, 5045, 16, 282, 5342, 16, 565, 2371, 16, ...
if (type1 == ElementType.XML_ATTRIBUTE && type2 == ElementType.XML_TAG_END) return true; return false;
return type1 == ElementType.XML_ATTRIBUTE && type2 == ElementType.XML_TAG_END;
protected boolean isXmlTagName(final IElementType type1, final IElementType type2) { if (type1 == ElementType.XML_START_TAG_START && type2 == ElementType.XML_NAME) return true; if (type1 == ElementType.XML_END_TAG_START && type2 == ElementType.XML_NAME) return true; if (type1 == ElementType.XML_NAME && type2 == ElementType.XML_TAG_END) return true; if (type1 == ElementType.XML_NAME && type2 == ElementType.XML_EMPTY_ELEMENT_END) return true; if (type1 == ElementType.XML_ATTRIBUTE && type2 == ElementType.XML_EMPTY_ELEMENT_END) return true; if (type1 == ElementType.XML_ATTRIBUTE && type2 == ElementType.XML_TAG_END) return true; return false; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/f60ec9ccfb32dfdeb9231297a53181ad9b7e8bc0/AbstractSyntheticBlock.java/clean/source/com/intellij/psi/formatter/xml/AbstractSyntheticBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 353, 4432, 8520, 12, 6385, 467, 17481, 618, 21, 16, 727, 467, 17481, 618, 22, 13, 288, 565, 309, 261, 723, 21, 422, 3010, 559, 18, 4201, 67, 7570, 67, 7927, 67, 7570, 597,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 353, 4432, 8520, 12, 6385, 467, 17481, 618, 21, 16, 727, 467, 17481, 618, 22, 13, 288, 565, 309, 261, 723, 21, 422, 3010, 559, 18, 4201, 67, 7570, 67, 7927, 67, 7570, 597,...
return ((submenus & type) != 0); }
return ((submenus & type) != 0); }
public boolean containsSubmenu(int type) { return ((submenus & type) != 0); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/97610ef9afbe6c924e048d8d60c2f4721860850b/WorkbenchWindow.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1914, 1676, 5414, 12, 474, 618, 13, 288, 3639, 327, 14015, 1717, 26065, 473, 618, 13, 480, 374, 1769, 565, 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, 377, 1071, 1250, 1914, 1676, 5414, 12, 474, 618, 13, 288, 3639, 327, 14015, 1717, 26065, 473, 618, 13, 480, 374, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
tool = tools[0]; } else {
if (tools != null && tools.length > 0) { tool = tools[0]; } } if (tool == null) {
protected void addRuleForSource(String relativePath, StringBuffer buffer, IResource resource, IPath sourceLocation, IResourceConfiguration resConfig, boolean generatedSource, StringBuffer generatedDepFile, Vector enumeratedOutputs) { String fileName = sourceLocation.removeFileExtension().lastSegment(); String inputExtension = sourceLocation.getFileExtension(); String outputExtension = info.getOutputExtension(inputExtension); ITool tool; if( resConfig != null) { ITool[] tools = resConfig.getToolsToInvoke(); tool = tools[0]; } else { tool = info.getToolFromInputExtension(inputExtension); } // Get the dependency generator associated with this tool and file extension IManagedDependencyGenerator depGen = tool.getDependencyGeneratorForExtension(inputExtension); boolean doDepGen = (depGen != null && depGen.getCalculatorType() == IManagedDependencyGenerator.TYPE_COMMAND); // If the tool creates a dependency file, add it to the list if (doDepGen) { String depFile = relativePath + fileName + DOT + DEP_EXT; getDependencyMakefiles().add(depFile); generatedDepFile.append(fileName + DOT + DEP_EXT); } // Figure out the output paths String OptDotExt = EMPTY_STRING; if (outputExtension != null && outputExtension.length() > 0) OptDotExt = DOT + outputExtension; Vector ruleOutputs = new Vector(); Vector enumeratedPrimaryOutputs = new Vector(); Vector enumeratedSecondaryOutputs = new Vector(); calculateOutputsForSource(tool, relativePath, resource, sourceLocation, ruleOutputs, enumeratedPrimaryOutputs, enumeratedSecondaryOutputs); enumeratedOutputs.addAll(enumeratedPrimaryOutputs); enumeratedOutputs.addAll(enumeratedSecondaryOutputs); String primaryOutputName = null; if (enumeratedPrimaryOutputs.size() > 0) { primaryOutputName = ((IPath)enumeratedPrimaryOutputs.get(0)).toString(); } else { primaryOutputName = relativePath + fileName + OptDotExt; } String otherPrimaryOutputs = EMPTY_STRING; for (int i=1; i<enumeratedPrimaryOutputs.size(); i++) { // Starting a 1 is intentional otherPrimaryOutputs += WHITESPACE + ((IPath)enumeratedPrimaryOutputs.get(i)).toString(); } // Figure out the path to the input resource /* * fix for PR 70491 * We need to check if the current resource is LINKED, because * the default CDT doesn't handle this properly. If it IS linked, * then we must get the actual location of the resource, rather * than the relative path. */ String projectLocation = project.getLocation().toString(); // Optput file location needed for the file-specific build macros IPath outputLocation = Path.fromOSString(primaryOutputName); if (!outputLocation.isAbsolute()) { outputLocation = project.getLocation().append(getBuildWorkingDir()).append(primaryOutputName); } // A separate rule is needed for the resource in case the explicit file-specific macros // are referenced boolean fileExplicitMacrosReferenced = MacroResolver.getReferencedExplitFileMacros(tool).length > 0 || MacroResolver.getReferencedExplitFileMacros(tool.getToolCommand(),IBuildMacroProvider.CONTEXT_FILE, new FileContextData(sourceLocation, outputLocation, null, config.getToolChain())).length > 0; //get and resolve command String cmd = tool.getToolCommand(); try{ String resolvedCommand = ManagedBuildManager.getBuildMacroProvider().resolveValueToMakefileFormat(cmd, EMPTY_STRING, WHITESPACE, IBuildMacroProvider.CONTEXT_FILE, new FileContextData(sourceLocation, outputLocation, null, info.getDefaultConfiguration().getToolChain())); if((resolvedCommand = resolvedCommand.trim()).length() > 0) cmd = resolvedCommand; } catch (BuildMacroException e){ } String defaultOutputName = EMPTY_STRING; String primaryDependencyName = EMPTY_STRING; String home = (generatedSource)? DOT : ROOT; String resourcePath = null; boolean patternRule = true; //boolean isItLinked = false; //if (resource.isLinked()) { NOTE: we don't use this since children of linked resources return false if(!sourceLocation.toString().startsWith(projectLocation)) { // it IS linked, so use the actual location //isItLinked = true; resourcePath = sourceLocation.toString(); // Need a hardcoded rule, not a pattern rule, as a linked file // can reside in any path defaultOutputName = relativePath + fileName + OptDotExt; primaryDependencyName = resourcePath; patternRule = false; } else { // use the relative path (not really needed to store per se but in the future someone may want this) resourcePath = relativePath; // The rule and command to add to the makefile if( resConfig != null || fileExplicitMacrosReferenced) { // Need a hardcoded rule, not a pattern rule defaultOutputName = resourcePath + fileName + OptDotExt; primaryDependencyName = home + SEPARATOR + resourcePath + fileName + DOT + inputExtension; patternRule = false; } else { defaultOutputName = relativePath + WILDCARD + OptDotExt; primaryDependencyName = home + SEPARATOR + resourcePath + WILDCARD + DOT + inputExtension; } } // end fix for PR 70491 // If we still think that we are using a pattern rule, make sure that at least one of the rule // outputs contains a %. if (patternRule) { patternRule = false; for (int i=0; i<ruleOutputs.size(); i++) { String ruleOutput = ((IPath)ruleOutputs.get(i)).toString(); if (ruleOutput.indexOf('%') >= 0) { //$NON-NLS-1$ patternRule = true; break; } } if (!patternRule) { // Need to reset the primary dependency to be a filename rather than a pattern primaryDependencyName = home + SEPARATOR + resourcePath + fileName + DOT + inputExtension; } } // Begin building the rule for this source file String buildRule = EMPTY_STRING; if (patternRule) { if (ruleOutputs.size() == 0) { buildRule = defaultOutputName; } else { boolean first = true; for (int i=0; i<ruleOutputs.size(); i++) { String ruleOutput = ((IPath)ruleOutputs.get(i)).toString(); if (ruleOutput.indexOf('%') >= 0) { //$NON-NLS-1$ if (first) { first = false; } else { buildRule += WHITESPACE; } buildRule += ruleOutput; } } } } else { buildRule += primaryOutputName; } buildRule += COLON + WHITESPACE + primaryDependencyName; // Other additional inputs // Get any additional dependencies specified for the tool in other InputType elements and AdditionalInput elements IPath[] addlDepPaths = tool.getAdditionalDependencies(); for (int i=0; i<addlDepPaths.length; i++) { // Translate the path from project relative to // build directory relative IPath addlPath = addlDepPaths[i]; if (!(addlPath.toString().startsWith("$("))) { //$NON-NLS-1$ if (!addlPath.isAbsolute()) { IPath tempPath = project.getLocation().append(addlPath); if (tempPath != null) { addlPath = calculateRelativePath(getTopBuildDir(), tempPath); } } } buildRule += WHITESPACE + addlPath.toString(); } // No duplicates in a makefile. If we already have this rule, don't add it or the commands to build the file if (getRuleList().contains(buildRule)) { // TODO: Should we assert that this is a pattern rule? } else { getRuleList().add(buildRule); // Echo starting message buffer.append(buildRule + NEWLINE); buffer.append(TAB + AT + ECHO + WHITESPACE + SINGLE_QUOTE + MESSAGE_START_FILE + WHITESPACE + IN_MACRO + SINGLE_QUOTE + NEWLINE); // Generate the command line IManagedCommandLineInfo cmdLInfo = null; Vector inputs = new Vector(); inputs.add(IN_MACRO); String outflag = null; String outputPrefix = null; if( resConfig != null || fileExplicitMacrosReferenced) { buffer.append(TAB + AT + ECHO + WHITESPACE + SINGLE_QUOTE + tool.getAnnouncement() + SINGLE_QUOTE + NEWLINE); outflag = tool.getOutputFlag(); outputPrefix = tool.getOutputPrefix(); String[] flags = null; try { flags = tool.getToolCommandFlags(sourceLocation, outputLocation); } catch( BuildException ex ) { // TODO add some routines to catch this flags = EMPTY_STRING_ARRAY; } // Other additional inputs // Get any additional dependencies specified for the tool in other InputType elements and AdditionalInput elements IPath[] addlInputPaths = tool.getAdditionalResources(); for (int i=0; i<addlInputPaths.length; i++) { // Translate the path from project relative to // build directory relative IPath addlPath = addlInputPaths[i]; if (!(addlPath.toString().startsWith("$("))) { //$NON-NLS-1$ if (!addlPath.isAbsolute()) { IPath tempPath = project.getLocation().append(addlPath); if (tempPath != null) { addlPath = calculateRelativePath(getTopBuildDir(), tempPath); } } } inputs.add(addlPath.toString()); } // Call the command line generator IManagedCommandLineGenerator cmdLGen = tool.getCommandLineGenerator(); cmdLInfo = cmdLGen.generateCommandLineInfo( tool, cmd, flags, outflag, outputPrefix, OUT_MACRO + otherPrimaryOutputs, (String[])inputs.toArray(new String[inputs.size()]), tool.getCommandLinePattern() ); String buildCmd = cmdLInfo.getCommandLine(); buffer.append(TAB + AT + ECHO + WHITESPACE + buildCmd + NEWLINE); buffer.append(TAB + AT + buildCmd); } else { buffer.append(TAB + AT + ECHO + WHITESPACE + SINGLE_QUOTE + tool.getAnnouncement() + SINGLE_QUOTE + NEWLINE); String buildFlags = EMPTY_STRING; try { buildFlags = tool.getToolCommandFlagsString(sourceLocation, outputLocation); } catch (BuildException e) { } outflag = info.getOutputFlag(outputExtension); outputPrefix = info.getOutputPrefix(outputExtension); String[] flags = buildFlags.split( "\\s" ); //$NON-NLS-1$ // Other additional inputs // Get any additional dependencies specified for the tool in other InputType elements and AdditionalInput elements IPath[] addlInputPaths = tool.getAdditionalResources(); for (int i=0; i<addlInputPaths.length; i++) { // Translate the path from project relative to // build directory relative IPath addlPath = addlInputPaths[i]; if (!(addlPath.toString().startsWith("$("))) { //$NON-NLS-1$ if (!addlPath.isAbsolute()) { IPath tempPath = project.getLocation().append(addlPath); if (tempPath != null) { addlPath = calculateRelativePath(getTopBuildDir(), tempPath); } } } inputs.add(addlPath.toString()); } // Call the command line generator cmdLInfo = info.generateToolCommandLineInfo( inputExtension, flags, outflag, outputPrefix, OUT_MACRO + otherPrimaryOutputs, (String[])inputs.toArray(new String[inputs.size()]), sourceLocation, outputLocation ); // The command to build String buildCmd = null; if( cmdLInfo == null ) buildCmd = cmd + WHITESPACE + buildFlags + WHITESPACE + outflag + WHITESPACE + outputPrefix + OUT_MACRO + otherPrimaryOutputs + WHITESPACE + IN_MACRO; else buildCmd = cmdLInfo.getCommandLine(); buffer.append(TAB + AT + ECHO + WHITESPACE + buildCmd + NEWLINE); buffer.append(TAB + AT + buildCmd); } // Determine if there are any dependencies to calculate // TODO: Note that there is an assumption built into this method that if the build rule is the same // for a set of resources, the dependency command will also be the same. That is, this method // will not reach this code if the build rule is the same (see above). if (doDepGen && depGen.getCalculatorType() == IManagedDependencyGenerator.TYPE_COMMAND) { buffer.append(WHITESPACE + LOGICAL_AND + WHITESPACE + LINEBREAK); // Get the dependency rule out of the generator String depCmd = depGen.getDependencyCommand(resource, info); buffer.append(depCmd); } // Echo finished message buffer.append(NEWLINE); buffer.append(TAB + AT + ECHO + WHITESPACE + SINGLE_QUOTE + MESSAGE_FINISH_FILE + WHITESPACE + IN_MACRO + SINGLE_QUOTE + NEWLINE); buffer.append(TAB + AT + ECHO + WHITESPACE + SINGLE_QUOTE + WHITESPACE + SINGLE_QUOTE + NEWLINE + NEWLINE); } // Determine if there are calculated dependencies String calculatedDependencies = null; boolean addedDepLines = false; String depLine; if (depGen != null && depGen.getCalculatorType() != IManagedDependencyGenerator.TYPE_COMMAND) { Vector addlDepsVector = calculateDependenciesForSource(depGen, tool, relativePath, resource); if (addlDepsVector != null && addlDepsVector.size() > 0) { calculatedDependencies = new String(); for (int i=0; i<addlDepsVector.size(); i++) { calculatedDependencies += WHITESPACE + addlDepsVector.get(i).toString(); } } } if (calculatedDependencies != null) { depLine = primaryOutputName + COLON + calculatedDependencies + NEWLINE; if (!getDepLineList().contains(depLine)) { getDepLineList().add(depLine); addedDepLines = true; buffer.append(depLine); } } // Add any additional outputs here using dependency lines for (int i=1; i<enumeratedPrimaryOutputs.size(); i++) { // Starting a 1 is intentional depLine = ((IPath)enumeratedPrimaryOutputs.get(i)).toString() + COLON + WHITESPACE + primaryOutputName; if (calculatedDependencies != null) depLine += calculatedDependencies; depLine += NEWLINE; if (!getDepLineList().contains(depLine)) { getDepLineList().add(depLine); addedDepLines = true; buffer.append(depLine); } } for (int i=0; i<enumeratedSecondaryOutputs.size(); i++) { depLine = ((IPath)enumeratedSecondaryOutputs.get(i)).toString() + COLON + WHITESPACE + primaryOutputName; if (calculatedDependencies != null) depLine += calculatedDependencies; depLine += NEWLINE; if (!getDepLineList().contains(depLine)) { getDepLineList().add(depLine); addedDepLines = true; buffer.append(depLine); } } if (addedDepLines) { buffer.append(NEWLINE); } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f31b6c334ce63dace6f070b9dac7f3d07418b732/GnuMakefileGenerator.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 21264, 1290, 1830, 12, 780, 12820, 16, 6674, 1613, 16, 467, 1420, 1058, 16, 1875, 202, 45, 743, 1084, 2735, 16, 467, 1420, 1750, 400, 809, 16, 1875, 202, 6494, 4374, 183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21264, 1290, 1830, 12, 780, 12820, 16, 6674, 1613, 16, 467, 1420, 1058, 16, 1875, 202, 45, 743, 1084, 2735, 16, 467, 1420, 1750, 400, 809, 16, 1875, 202, 6494, 4374, 183...
public static double[] reallocate(double[] array) {
public static int[] reallocate(int[] array) {
public static double[] reallocate(double[] array) { /// Bernd int n = array.length; double[] newarray = new double[n*2]; System.arraycopy(array, 0, newarray, 0, n); return newarray; }
25560 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25560/044bd103f8f702efcb4e5e6a44ec2ea215ce2d71/VRMLHelper.java/buggy/src-io/de/jreality/reader/vrml/VRMLHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 509, 8526, 2863, 25450, 12, 474, 8526, 526, 13, 202, 95, 18378, 605, 264, 4880, 202, 202, 474, 290, 273, 526, 18, 2469, 31, 202, 202, 9056, 8526, 394, 1126, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 509, 8526, 2863, 25450, 12, 474, 8526, 526, 13, 202, 95, 18378, 605, 264, 4880, 202, 202, 474, 290, 273, 526, 18, 2469, 31, 202, 202, 9056, 8526, 394, 1126, 273, 394, 1...
copyExternalDependencies( writer, getProject(), referencedReactorArtifacts, localRepository );
private void writeModuleTypeComponent( XMLWriter writer, String packaging, File buildOutputDirectory, EclipseSourceDir[] sourceDirs, List referencedReactorArtifacts, ArtifactRepository localRepository ) throws MojoExecutionException { writer.startElement( ELT_PROJECT_MODULES ); writer.addAttribute( ATTR_MODULE_ID, "moduleCoreId" ); //$NON-NLS-1$ writer.startElement( ELT_WB_MODULE ); writer.addAttribute( ATTR_DEPLOY_NAME, getProject().getArtifactId() ); // deploy-path is "/" for utility and ejb projects, "/WEB-INF/classes" for webapps String target = "/"; //$NON-NLS-1$ if ( "war".equalsIgnoreCase( packaging ) ) //$NON-NLS-1$ { target = "/WEB-INF/classes"; //$NON-NLS-1$ String warSourceDirectory = EclipseUtils.getPluginSetting( getProject(), ARTIFACT_MAVEN_WAR_PLUGIN, "warSourceDirectory", //$NON-NLS-1$ "/src/main/webapp" ); //$NON-NLS-1$ writer.startElement( ELT_PROPERTY ); writer.addAttribute( ATTR_CONTEXT_ROOT, getProject().getArtifactId() ); writer.endElement(); // property writer.startElement( ELT_WB_RESOURCE ); writer.addAttribute( ATTR_DEPLOY_PATH, "/" ); //$NON-NLS-1$ writer.addAttribute( ATTR_SOURCE_PATH, EclipseUtils .toRelativeAndFixSeparator( getProject().getBasedir(), new File( getEclipseProjectDirectory(), warSourceDirectory ), false ) ); writer.endElement(); // @todo is this really needed? writer.startElement( ELT_PROPERTY ); writer.addAttribute( ATTR_NAME, "java-output-path" ); //$NON-NLS-1$ writer.addAttribute( ATTR_VALUE, "/" //$NON-NLS-1$ + EclipseUtils.toRelativeAndFixSeparator( getProject().getBasedir(), buildOutputDirectory, false ) ); writer.endElement(); // property } else if ( "ear".equalsIgnoreCase( packaging ) ) //$NON-NLS-1$ { writer.startElement( ELT_WB_RESOURCE ); writer.addAttribute( ATTR_DEPLOY_PATH, "/" ); //$NON-NLS-1$ writer.addAttribute( ATTR_SOURCE_PATH, "/" ); //$NON-NLS-1$ writer.endElement(); } if ( "war".equalsIgnoreCase( packaging ) || "ear".equalsIgnoreCase( packaging ) ) //$NON-NLS-1$ //$NON-NLS-2$ { // write out the dependencies. writeWarOrEarResources( writer, getProject(), referencedReactorArtifacts, localRepository ); // fix for WTP 1.0 copyExternalDependencies( writer, getProject(), referencedReactorArtifacts, localRepository ); } for ( int j = 0; j < sourceDirs.length; j++ ) { EclipseSourceDir dir = sourceDirs[j]; // test src/resources are not added to wtpmodules if ( !dir.isTest() ) { // <wb-resource deploy-path="/" source-path="/src/java" /> writer.startElement( ELT_WB_RESOURCE ); writer.addAttribute( ATTR_DEPLOY_PATH, target ); writer.addAttribute( ATTR_SOURCE_PATH, dir.getPath() ); writer.endElement(); } } writer.endElement(); // wb-module writer.endElement(); // project-modules }
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/56adca4bfb06f4422415be6cf0f7986c5b238a4d/EclipseWtpComponentWriter.java/buggy/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/EclipseWtpComponentWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 3120, 559, 1841, 12, 3167, 2289, 2633, 16, 514, 2298, 5755, 16, 1387, 1361, 1447, 2853, 16, 4766, 1850, 20840, 10472, 1830, 1621, 8526, 1084, 9872, 16, 987, 8042, 426, 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, 3238, 918, 1045, 3120, 559, 1841, 12, 3167, 2289, 2633, 16, 514, 2298, 5755, 16, 1387, 1361, 1447, 2853, 16, 4766, 1850, 20840, 10472, 1830, 1621, 8526, 1084, 9872, 16, 987, 8042, 426, 33...
BufferedReader reader = new BufferedReader(new FileReader(file));
FileReader fileReader = new FileReader(file); BufferedReader buffReader = null; try { buffReader = new BufferedReader(fileReader);
private void parseAndApply(String file, int interval) throws IllegalArgumentException, ParseException, IOException { // Check preconditions MandatoryArgumentChecker.check("file", file); if (interval < 0) { throw new IllegalArgumentException("interval < 0"); } // Buffer the input from the file BufferedReader reader = new BufferedReader(new FileReader(file)); // Loop through the file, line by line List rules = new ArrayList(25); int lineNumber = 0; String nextLine = ""; while(reader.ready() && nextLine != null) { // Read the next line and remove leading/trailing whitespace nextLine = TextUtils.trim(reader.readLine(), null); // Increase the line number (so it's 1-based) lineNumber++; // Skip comments and empty lines if (nextLine == null || nextLine.startsWith("#")) { // ignore // Plain access rule } else if (nextLine.startsWith("allow") || nextLine.startsWith("deny")) { rules.add(AccessRule.parseAccessRule(nextLine)); // File reference } else if (nextLine.startsWith("file")) { // Make sure the file does not include itself if (nextLine.substring(5).equals(file)) { String detail = "The access rule file \"" + file + "\" includes itself."; throw new ParseException(detail); } rules.add(new AccessRuleFile(nextLine, interval)); // Otherwise: Incorrect line } else { String detail = "Failed to parse \"" + file + "\", line #" + lineNumber + ": \"" + nextLine + "\". Expected line to start with \"#\", " + "\"allow\", \"deny\" or \"file\"."; throw new ParseException(detail); // XXX: Log parsing problem? } } // Copy to the instance field _rules = (AccessRuleContainer[]) rules.toArray(ARC_ARRAY); }
45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/dbc638dae320843e3911bfd2650c8afa4c4a683b/AccessRuleFile.java/buggy/src/java-server-framework/org/xins/server/AccessRuleFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1109, 1876, 7001, 12, 780, 585, 16, 509, 3673, 13, 282, 1216, 2754, 16, 10616, 16, 1860, 288, 1377, 368, 2073, 675, 6381, 1377, 490, 10018, 1379, 8847, 18, 1893, 2932, 768, 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, 565, 3238, 918, 1109, 1876, 7001, 12, 780, 585, 16, 509, 3673, 13, 282, 1216, 2754, 16, 10616, 16, 1860, 288, 1377, 368, 2073, 675, 6381, 1377, 490, 10018, 1379, 8847, 18, 1893, 2932, 768, 3...
return (Node)u3; }
return (Node) u3; }
public Node getArgsNode() { return (Node)u3; }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Node.java/buggy/org/jruby/nodes/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 30169, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 23, 31, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 30169, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 23, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
StructureNode foundNode = findNodeForSourceLineHelper( (StructureNode)it.next(),
IProgramElement foundNode = findNodeForSourceLineHelper( (IProgramElement)it.next(),
private StructureNode findNodeForSourceLineHelper(StructureNode node, String sourceFilePath, int lineNumber) { if (matches(node, sourceFilePath, lineNumber) && !hasMoreSpecificChild(node, sourceFilePath, lineNumber)) { return node; } if (node != null && node.getChildren() != null) { for (Iterator it = node.getChildren().iterator(); it.hasNext(); ) { StructureNode foundNode = findNodeForSourceLineHelper( (StructureNode)it.next(), sourceFilePath, lineNumber); if (foundNode != null) return foundNode; } } 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, 1152, 13348, 907, 1104, 907, 1290, 1830, 1670, 2276, 12, 6999, 907, 756, 16, 514, 1084, 5598, 16, 509, 13629, 13, 288, 202, 202, 430, 261, 8436, 12, 2159, 16, 1084, 5598, 16, 13629...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13348, 907, 1104, 907, 1290, 1830, 1670, 2276, 12, 6999, 907, 756, 16, 514, 1084, 5598, 16, 509, 13629, 13, 288, 202, 202, 430, 261, 8436, 12, 2159, 16, 1084, 5598, 16, 13629...
throw new IOException("BlockDeviceAPI not found on device", ex);
final IOException ioe = new IOException("BlockDeviceAPI not found on device"); ioe.initCause(ex); throw ioe;
public void createImage() throws IOException, DriverException, FileSystemException { final FileDevice newFd = new FileDevice(destFile, "rw"); try { newFd.setLength(getDeviceLength()); formatDevice(newFd); final Device sysDev = getSystemDevice(newFd); final BlockDeviceAPI sysDevApi = (BlockDeviceAPI) sysDev .getAPI(BlockDeviceAPI.class); copySystemFiles(sysDev); sysDevApi.flush(); } catch (ApiNotFoundException ex) { throw new IOException("BlockDeviceAPI not found on device", ex); } finally { newFd.close(); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4fe0410e3d1e4dea160852289195cd6981c0f456/BootFloppyBuilder.java/buggy/builder/src/builder/org/jnode/build/BootFloppyBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 28301, 1435, 1216, 1860, 16, 9396, 503, 16, 5411, 10931, 503, 288, 3639, 727, 1387, 3654, 394, 27263, 273, 394, 1387, 3654, 12, 10488, 812, 16, 315, 21878, 8863, 3639, 775, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 28301, 1435, 1216, 1860, 16, 9396, 503, 16, 5411, 10931, 503, 288, 3639, 727, 1387, 3654, 394, 27263, 273, 394, 1387, 3654, 12, 10488, 812, 16, 315, 21878, 8863, 3639, 775, 288...
sb.append(mySVNRepositoryLocation.getHost());
sb.append(location.getHost());
private void sendHeader(String method, String path, Map header, InputStream requestBody) throws IOException { StringBuffer sb = new StringBuffer(); sb.append(method); sb.append(' '); boolean isProxied = myProxyAuth != null; if (isProxied && !isSecured()) { // prepend path with host name. sb.append("http://"); sb.append(mySVNRepositoryLocation.getHost()); sb.append(":"); sb.append(mySVNRepositoryLocation.getPort()); } if (path == null) { path = "/"; } if (path.length() == 0 || path.charAt(0) != '/') { path = "/" + path; } DAVUtil.getCanonicalPath(path, sb); sb.append(' '); sb.append("HTTP/1.1"); sb.append(DefaultHTTPConnection.CRLF); sb.append("Host: "); sb.append(mySVNRepositoryLocation.getHost()); sb.append(":"); sb.append(mySVNRepositoryLocation.getPort()); sb.append(DefaultHTTPConnection.CRLF); sb.append("User-Agent: "); sb.append(Version.getVersionString()); sb.append(DefaultHTTPConnection.CRLF); sb.append("Keep-Alive:"); sb.append(DefaultHTTPConnection.CRLF); sb.append("Connection: TE, Keep-Alive"); sb.append(DefaultHTTPConnection.CRLF); sb.append("TE: trailers"); sb.append(DefaultHTTPConnection.CRLF); if (isProxied && !isSecured() && myProxyAuth != null) { sb.append("Proxy-Authorization: " + getProxyAuthString(myProxyAuth.getProxyUserName(), myProxyAuth.getProxyPassword())); sb.append(DefaultHTTPConnection.CRLF); } boolean chunked = false; if (requestBody instanceof ByteArrayInputStream) { sb.append("Content-Length: "); sb.append(requestBody.available()); } else if (requestBody instanceof IMeasurable) { sb.append("Content-Length: "); sb.append(((IMeasurable) requestBody).getLength()); } else if (requestBody != null) { sb.append("Transfer-Encoding: chunked"); chunked = true; } else { sb.append("Content-Lenght: 0"); } sb.append(DefaultHTTPConnection.CRLF); sb.append("Accept-Encoding: gzip"); sb.append(DefaultHTTPConnection.CRLF); if (header != null) { if (!header.containsKey("Content-Type")) { sb.append("Content-Type: text/xml; charset=\"utf-8\""); sb.append(DefaultHTTPConnection.CRLF); } for (Iterator keys = header.keySet().iterator(); keys.hasNext();) { Object key = keys.next(); sb.append(key.toString()); sb.append(": "); sb.append(header.get(key).toString()); sb.append(DefaultHTTPConnection.CRLF); } } getOutputStream().write(sb.toString().getBytes()); getOutputStream().write(DefaultHTTPConnection.CRLF_BYTES); if (requestBody != null) { byte[] buffer = new byte[1024*32]; while (true) { int read = requestBody.read(buffer); if (chunked) { if (read > 0) { getOutputStream().write(Integer.toHexString(read).getBytes()); getOutputStream().write(DefaultHTTPConnection.CRLF_BYTES); getOutputStream().write(buffer, 0, read); getOutputStream().write(DefaultHTTPConnection.CRLF_BYTES); } else { getOutputStream().write('0'); getOutputStream().write(DefaultHTTPConnection.CRLF_BYTES); getOutputStream().write(DefaultHTTPConnection.CRLF_BYTES); break; } } else { if (read > 0) { getOutputStream().write(buffer, 0, read); } else { break; } } } } getOutputStream().flush(); }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/f1ee3a99fba995e9050cc58f5e26f058076e96ed/DefaultHTTPConnection.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/io/dav/DefaultHTTPConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 1864, 12, 780, 707, 16, 514, 589, 16, 1635, 1446, 16, 5037, 20740, 13, 1216, 1860, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 2393, 18, 6923, 12, 2039, 1769, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 1864, 12, 780, 707, 16, 514, 589, 16, 1635, 1446, 16, 5037, 20740, 13, 1216, 1860, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 2393, 18, 6923, 12, 2039, 1769, 36...
sync = newSync.isTrue();
handler.setIsSync(newSync.isTrue());
public IRubyObject sync_set(RubyBoolean newSync) { sync = newSync.isTrue(); return this; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/4c689a812e20d4fcf2da0cdc9b527b00cc1960ef/RubyIO.java/clean/src/org/jruby/RubyIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 3792, 67, 542, 12, 54, 10340, 5507, 394, 4047, 13, 288, 3639, 1838, 18, 542, 2520, 4047, 12, 2704, 4047, 18, 291, 5510, 10663, 540, 327, 333, 31, 565, 289, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 3792, 67, 542, 12, 54, 10340, 5507, 394, 4047, 13, 288, 3639, 1838, 18, 542, 2520, 4047, 12, 2704, 4047, 18, 291, 5510, 10663, 540, 327, 333, 31, 565, 289, 2, ...
private boolean getRemoteArtifact( Dependency dep, File destinationFile ) { boolean fileFound = false; for ( Iterator i = remoteRepos.iterator(); i.hasNext(); ) { Repository remoteRepo = (Repository) i.next(); // The username and password parameters are not being // used here. Those are the "" parameters you see below. String url = remoteRepo.getBasedir() + "/" + remoteRepo.getArtifactPath( dep ); if ( !url.startsWith( "file" ) ) { url = replace( url, "//", "/" ); if ( url.startsWith( "https" ) ) { url = replace( url, "https:/", "https://" ); } else { url = replace( url, "http:/", "http://" ); } } else { // THe JDK URL for file: should have one or no / instead of // for some reason url = replace( url, "file://", "file:" ); } // Attempt to retrieve the artifact and set the checksum if retrieval // of the checksum file was successful. try { if ( isSnapshot( dep ) ) { String filename = getSnapshotMetadataFile( destinationFile.getPath(), "SNAPSHOT.version.txt" ); String metaUrl = getSnapshotMetadataFile( url, "SNAPSHOT.version.txt" ); log( "Downloading " + metaUrl ); try { HttpUtils.getFile( metaUrl, new File( filename ), ignoreErrors, false, proxyHost, proxyPort, proxyUserName, proxyPassword, false ); String version = FileUtils.fileRead( filename ); log( "Resolved version: " + version ); version = version.substring( version.lastIndexOf( "-", version.lastIndexOf( "-" ) - 1 ) + 1 ); String extension = url.substring( url.length() - 4 ); url = getSnapshotMetadataFile( url, version + extension ); } catch ( IOException e ) { log( "WARNING: SNAPSHOT version not found, using default" ); } } log( "Downloading " + url ); HttpUtils.getFile( url, destinationFile, ignoreErrors, useTimestamp, proxyHost, proxyPort, proxyUserName, proxyPassword, true ); // Artifact was found, continue checking additional remote repos (if any) // in case there is a newer version (i.e. snapshots) in another repo fileFound = true; } catch ( FileNotFoundException e ) { log( "Artifact not found at [" + url + "]" ); // Ignore } catch ( Exception e ) { // If there are additional remote repos, then ignore exception // as artifact may be found in another remote repo. If there // are no more remote repos to check and the artifact wasn't found in // a previous remote repo, then artifactFound is false indicating // that the artifact could not be found in any of the remote repos // // arguably, we need to give the user better control (another command- // line switch perhaps) of what to do in this case? Maven already has // a command-line switch to work in offline mode, but what about when // one of two or more remote repos is unavailable? There may be multiple // remote repos for redundancy, in which case you probably want the build // to continue. There may however be multiple remote repos because some // artifacts are on one, and some are on another. In this case, you may // want the build to break. // // print a warning, in any case, so user catches on to mistyped // hostnames, or other snafus log( "Error retrieving artifact from [" + url + "]: " + e ); } } return fileFound; }
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/23835350c85177f52a3d70038ecacd82ce44100d/ArtifactDownloader.java/clean/maven-mboot2/src/main/java/download/ArtifactDownloader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 14879, 7581, 12, 11993, 5993, 16, 1387, 2929, 812, 262, 225, 288, 565, 1250, 585, 2043, 273, 629, 31, 565, 364, 261, 4498, 277, 273, 2632, 28453, 18, 9838, 5621, 277, 18, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 14879, 7581, 12, 11993, 5993, 16, 1387, 2929, 812, 262, 225, 288, 565, 1250, 585, 2043, 273, 629, 31, 565, 364, 261, 4498, 277, 273, 2632, 28453, 18, 9838, 5621, 277, 18, 53...
g2d.setColor(new Color(255,255,0,128));
protected void handleZero(WritableRaster wr) { // NOTE: I'm ignoring the pad mode here. I really need // to check what the mode is and pad out the edges // of wr. For now I just zero them... BufferedImage bi; bi = new BufferedImage(getColorModel(), wr.createWritableTranslatedChild(0,0), getColorModel().isAlphaPremultiplied(), null); Graphics2D g2d = bi.createGraphics(); // Make sure we draw with our hints. if (hints != null) g2d.setRenderingHints(hints); // Overwrite whatever is there. g2d.setComposite(AlphaComposite.Src); // Fully transparent black. g2d.setColor(new Color(0,0,0,0)); // Get my source. CachableRed src = (CachableRed)getSources().get(0); Rectangle srcR = src.getBounds(); Rectangle wrR = wr.getBounds(); int x = wrR.x; int y = wrR.y; int width = wrR.width; int height = wrR.height; // Position x, y at the topleft of the bufferedImage... g2d.translate(-x, -y); // We split the edge drawing up into four parts. // // +-----------------------------+ // | 1 | 2 | // | +---------------+------| // / / /4 / // / / / / // / / / / // / / / / // | +---------------+------| // | | 3 | // +-----------------------------+ // // We update our x,y, width, height as we go along so // we 'forget' about the parts we have already painted... // Draw #1 if (DEBUG) { System.out.println("WrR: " + wrR + " srcR: " + srcR); g2d.setColor(new Color(255,0,0,128)); } if (x < srcR.x) { int w = srcR.x-x; if (w > width) w=width; g2d.fillRect(x, y, w, height); x+=w; width-=w; } // Draw #2 if (DEBUG) { System.out.println("WrR: [" + x + "," + y + "," + width + "," + height + "] s rcR: " + srcR); g2d.setColor(new Color(0,0,255,128)); } if (y < srcR.y) { int h = srcR.y-y; if (h > height) h=height; g2d.fillRect(x, y, width, h); y+=h; height-=h; } // Draw #3 if (DEBUG) { System.out.println("WrR: [" + x + "," + y + "," + width + "," + height + "] srcR: " + srcR); g2d.setColor(new Color(0,255,0,128)); } if (y+height > srcR.y+srcR.height) { int h = (y+height) - (srcR.y+srcR.height); if (h > height) h=height; int y0 = y+height-h; // the +/-1 cancel (?) g2d.fillRect(x, y0, width, h); height-=h; } // Draw #4 if (DEBUG) { System.out.println("WrR: [" + x + "," + y + "," + width + "," + height + "] srcR: " + srcR); g2d.setColor(new Color(255,255,0,128)); } if (x+width > srcR.x+srcR.width) { int w = (x+width) - (srcR.x+srcR.width); if (w > width) w=width; int x0 = x+width-w; // the +/-1 cancel (?) g2d.fillRect(x0, y, w, height); width-=w; } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/09f749f540a1bf8ebb446d035013f4c2bf0e7a54/PadRed.java/buggy/sources/org/apache/batik/refimpl/gvt/filter/PadRed.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 7170, 12, 12061, 18637, 12408, 13, 288, 3639, 368, 5219, 30, 467, 17784, 14398, 326, 4627, 1965, 2674, 18, 467, 8654, 1608, 3639, 368, 4202, 358, 866, 4121, 326, 1965, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 7170, 12, 12061, 18637, 12408, 13, 288, 3639, 368, 5219, 30, 467, 17784, 14398, 326, 4627, 1965, 2674, 18, 467, 8654, 1608, 3639, 368, 4202, 358, 866, 4121, 326, 1965, 35...
if (root != null) { workspaceRoot = (IWorkspaceRoot) root.getResource();
if (this.root != null) { LOG.debug("remove current listener"); workspaceRoot = (IWorkspaceRoot) this.root.getResource();
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { this.treeViewer = (TreeViewer) viewer; // this is called, when the View is instantiated and gets Input // or if the Source of Input changes // we remove an existing ResourceChangeListener IWorkspaceRoot workspaceRoot = null; if (root != null) { workspaceRoot = (IWorkspaceRoot) root.getResource(); workspaceRoot.getWorkspace().removeResourceChangeListener(this); } // ... to add a new one, so we can listen to Changes made // to Resources in the Workspace if (newInput instanceof IWorkspaceRoot) { // either we got a WorkspaceRoot workspaceRoot = (IWorkspaceRoot) newInput; root = new RootRecord(workspaceRoot); workspaceRoot.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_CHANGE); } else if (newInput instanceof RootRecord) { // ... or already a Record for it root = (RootRecord) newInput; workspaceRoot = (IWorkspaceRoot) root.getResource(); workspaceRoot.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_CHANGE); } }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/0220fe980e3770fcd44203fc8bf853938e794a3f/ViolationOverviewContentProvider.java/buggy/pmd-eclipse-ui/src/net/sourceforge/pmd/ui/views/ViolationOverviewContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 810, 5033, 12, 18415, 14157, 16, 1033, 1592, 1210, 16, 1033, 394, 1210, 13, 288, 3639, 333, 18, 3413, 18415, 273, 261, 2471, 18415, 13, 14157, 31, 3639, 368, 333, 353, 2566, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 810, 5033, 12, 18415, 14157, 16, 1033, 1592, 1210, 16, 1033, 394, 1210, 13, 288, 3639, 333, 18, 3413, 18415, 273, 261, 2471, 18415, 13, 14157, 31, 3639, 368, 333, 353, 2566, ...
case 11: X="constructor";id=Id_constructor; break L;
case 11: c=s.charAt(0); if (c=='c') { X="constructor";id=Id_constructor; } else if (c=='l') { X="lastIndexOf";id=Id_lastIndexOf; } break L;
protected int findPrototypeId(String s) { int id;// #generated# Last update: 2004-03-17 13:17:02 CET L0: { id = 0; String X = null; int c; L: switch (s.length()) { case 3: X="pop";id=Id_pop; break L; case 4: c=s.charAt(0); if (c=='j') { X="join";id=Id_join; } else if (c=='p') { X="push";id=Id_push; } else if (c=='s') { X="sort";id=Id_sort; } break L; case 5: c=s.charAt(1); if (c=='h') { X="shift";id=Id_shift; } else if (c=='l') { X="slice";id=Id_slice; } break L; case 6: c=s.charAt(0); if (c=='c') { X="concat";id=Id_concat; } else if (c=='s') { X="splice";id=Id_splice; } break L; case 7: c=s.charAt(0); if (c=='r') { X="reverse";id=Id_reverse; } else if (c=='u') { X="unshift";id=Id_unshift; } break L; case 8: c=s.charAt(3); if (c=='o') { X="toSource";id=Id_toSource; } else if (c=='t') { X="toString";id=Id_toString; } break L; case 11: X="constructor";id=Id_constructor; break L; case 14: X="toLocaleString";id=Id_toLocaleString; break L; } if (X!=null && X!=s && !X.equals(s)) id = 0; }// #/generated# return id; }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/42ffc316da9d77b3aac12f28fdcb80bb24327ae8/NativeArray.java/buggy/js/rhino/src/org/mozilla/javascript/NativeArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 1104, 15846, 548, 12, 780, 272, 13, 565, 288, 3639, 509, 612, 31, 759, 468, 11168, 7, 6825, 1089, 30, 4044, 24, 17, 4630, 17, 4033, 5958, 30, 4033, 30, 3103, 385, 1584, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 1104, 15846, 548, 12, 780, 272, 13, 565, 288, 3639, 509, 612, 31, 759, 468, 11168, 7, 6825, 1089, 30, 4044, 24, 17, 4630, 17, 4033, 5958, 30, 4033, 30, 3103, 385, 1584, 363...
size[0] = currentPage.computeSize(); }
currentPage.createControl(pageContainer); }
public void run() { size[0] = currentPage.computeSize(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ef939c34d499c46c3e5b6f7b185613a1ef1ac43a/PreferenceDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 7734, 963, 63, 20, 65, 273, 15117, 18, 9200, 1225, 5621, 5411, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 7734, 963, 63, 20, 65, 273, 15117, 18, 9200, 1225, 5621, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
System.out.println(); System.out.println("Ping average > 98%, lets do some inserts/requests"); System.out.println(); int requestNumber = 0; RunningAverage requestsAvg = new SimpleRunningAverage(100, 0.0); String baseString = "" + System.currentTimeMillis() + " "; while(true) { try {
} System.out.println(); System.out.println("Ping average > 98%, lets do some inserts/requests"); System.out.println(); int requestNumber = 0; RunningAverage requestsAvg = new SimpleRunningAverage(100, 0.0); String baseString = "" + System.currentTimeMillis() + " "; while(true) { try {
public static void main(String[] args) throws FSParseException, PeerParseException, CHKEncodeException { PeerNode.disableProbabilisticHTLs = true; String wd = "realNodeRequestInsertTest"; new File(wd).mkdir(); // Don't clobber nearby nodes! Node.MAX_HTL = 5; Logger.setupStdoutLogging(Logger.DEBUG, "freenet.store:minor,freenet.node.Location:normal" /*"freenet.node.LocationManager:debug,freenet.node.FNPPacketManager:normal,freenet.io.comm.UdpSocketManager:debug"*/); Logger.globalSetThreshold(Logger.DEBUG); System.out.println("Insert/retrieve test"); System.out.println(); DummyRandomSource random = new DummyRandomSource(); DiffieHellman.init(random); Node[] nodes = new Node[NUMBER_OF_NODES]; Logger.normal(RealNodeRoutingTest.class, "Creating nodes..."); for(int i=0;i<NUMBER_OF_NODES;i++) { nodes[i] = new Node(5000+i, random, null, wd+File.separator); nodes[i].usm.setDropProbability(20); // 5% Logger.normal(RealNodeRoutingTest.class, "Created node "+i); } SimpleFieldSet refs[] = new SimpleFieldSet[NUMBER_OF_NODES]; for(int i=0;i<NUMBER_OF_NODES;i++) refs[i] = nodes[i].exportFieldSet(); Logger.normal(RealNodeRoutingTest.class, "Created "+NUMBER_OF_NODES+" nodes"); // Now link them up // Connect the set for(int i=0;i<NUMBER_OF_NODES;i++) { int next = (i+1) % NUMBER_OF_NODES; int prev = (i+NUMBER_OF_NODES-1)%NUMBER_OF_NODES; nodes[i].peers.connect(refs[next]); nodes[i].peers.connect(refs[prev]); } Logger.normal(RealNodeRoutingTest.class, "Connected nodes"); // Now add some random links for(int i=0;i<NUMBER_OF_NODES*5;i++) { if(i % NUMBER_OF_NODES == 0) Logger.normal(RealNodeRoutingTest.class, ""+i); int length = (int)Math.pow(NUMBER_OF_NODES, random.nextDouble()); int nodeA = random.nextInt(NUMBER_OF_NODES); int nodeB = (nodeA+length)%NUMBER_OF_NODES; //System.out.println(""+nodeA+" -> "+nodeB); Node a = nodes[nodeA]; Node b = nodes[nodeB]; a.peers.connect(b.exportFieldSet()); b.peers.connect(a.exportFieldSet()); } Logger.normal(RealNodeRoutingTest.class, "Added random links"); SwapRequestInterval sri = new CPUAdjustingSwapRequestInterval(((500*1000*NUMBER_OF_NODES)/200), 50); for(int i=0;i<NUMBER_OF_NODES;i++) nodes[i].start(sri); // Now sit back and watch the fireworks! int cycleNumber = 0; int lastSwaps = 0; int lastNoSwaps = 0; int failures = 0; int successes = 0; RunningAverage avg = new SimpleRunningAverage(100, 0.0); RunningAverage avg2 = new BootstrappingDecayingRunningAverage(0.0, 0.0, 1.0, 100); int pings = 0; while(true) { cycleNumber++; try { Thread.sleep(5000); } catch (InterruptedException e) { // Ignore } for(int i=0;i<NUMBER_OF_NODES;i++) { Logger.normal(RealNodeRoutingTest.class, "Cycle "+cycleNumber+" node "+i+": "+nodes[i].lm.getLocation().getValue()); } int newSwaps = LocationManager.swaps; int totalStarted = LocationManager.startedSwaps; int noSwaps = LocationManager.noSwaps; Logger.normal(RealNodeRoutingTest.class, "Swaps: "+(newSwaps-lastSwaps)); Logger.normal(RealNodeRoutingTest.class, "\nTotal swaps: Started*2: "+totalStarted*2+", succeeded: "+newSwaps+", last minute failures: "+noSwaps+ ", ratio "+(double)noSwaps/(double)newSwaps+", early failures: "+((totalStarted*2)-(noSwaps+newSwaps))); Logger.normal(RealNodeRoutingTest.class, "This cycle ratio: "+((double)(noSwaps-lastNoSwaps)) / ((double)(newSwaps - lastSwaps))); lastNoSwaps = noSwaps; Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (already locked): "+LocationManager.swapsRejectedAlreadyLocked); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (nowhere to go): "+LocationManager.swapsRejectedNowhereToGo); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (rate limit): "+LocationManager.swapsRejectedRateLimit); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (loop): "+LocationManager.swapsRejectedLoop); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (recognized ID):" +LocationManager.swapsRejectedRecognizedID); lastSwaps = newSwaps; // Do some (routed) test-pings for(int i=0;i<10;i++) { try { Thread.sleep(2000); } catch (InterruptedException e1) { } try { Node randomNode = nodes[random.nextInt(NUMBER_OF_NODES)]; Node randomNode2 = randomNode; while(randomNode2 == randomNode) randomNode2 = nodes[random.nextInt(NUMBER_OF_NODES)]; Logger.normal(RealNodeRoutingTest.class, "Pinging "+randomNode2.portNumber+" from "+randomNode.portNumber); double loc2 = randomNode2.lm.getLocation().getValue(); int hopsTaken = randomNode.routedPing(loc2); pings++; if(hopsTaken < 0) { failures++; avg.report(0.0); avg2.report(0.0); double ratio = (double)successes / ((double)(failures+successes)); Logger.normal(RealNodeRoutingTest.class, "Routed ping "+pings+" FAILED from "+randomNode.portNumber+" to "+randomNode2.portNumber+" (long:"+ratio+", short:"+avg.currentValue()+", vague:"+avg2.currentValue()+")"); } else { successes++; avg.report(1.0); avg2.report(1.0); double ratio = (double)successes / ((double)(failures+successes)); Logger.normal(RealNodeRoutingTest.class, "Routed ping "+pings+" success: "+hopsTaken+" "+randomNode.portNumber+" to "+randomNode2.portNumber+" (long:"+ratio+", short:"+avg.currentValue()+", vague:"+avg2.currentValue()+")"); } } catch (Throwable t) { Logger.error(RealNodeRoutingTest.class, "Caught "+t, t); } } if(pings > 10 && avg.currentValue() > 0.98 && ((double)successes / ((double)(failures+successes)) > 0.98)) { break; } System.out.println(); System.out.println("Ping average > 98%, lets do some inserts/requests"); System.out.println(); int requestNumber = 0; RunningAverage requestsAvg = new SimpleRunningAverage(100, 0.0); String baseString = "" + System.currentTimeMillis() + " "; while(true) { try { requestNumber++; try { Thread.sleep(5000); } catch (InterruptedException e1) { } String dataString = baseString + requestNumber; // Pick random node to insert to int node1 = random.nextInt(NUMBER_OF_NODES); Node randomNode = nodes[random.nextInt(NUMBER_OF_NODES)]; Logger.error(RealNodeRequestInsertTest.class,"Inserting: \""+dataString+"\" to "+node1); byte[] data = dataString.getBytes(); ClientCHKBlock block; block = ClientCHKBlock.encode(data); ClientCHK chk = block.getClientKey(); byte[] encData = block.getData(); byte[] encHeaders = block.getHeader(); ClientCHKBlock newBlock = new ClientCHKBlock(encData, encHeaders, chk, true); Logger.error(RealNodeRequestInsertTest.class, "Decoded: "+new String(newBlock.decode(chk))); Logger.error(RealNodeRequestInsertTest.class,"CHK: "+chk.getURI()); Logger.error(RealNodeRequestInsertTest.class,"Headers: "+HexUtil.bytesToHex(block.getHeader())); randomNode.putCHK(block); Logger.error(RealNodeRequestInsertTest.class, "Inserted to "+node1); Logger.error(RealNodeRequestInsertTest.class, "Data: "+Fields.hashCode(encData)+", Headers: "+Fields.hashCode(encHeaders)); // Pick random node to request from int node2; do { node2 = random.nextInt(NUMBER_OF_NODES); } while(node2 == node1); Node fetchNode = nodes[node2]; block = fetchNode.getCHK(chk); if(block == null) { Logger.error(RealNodeRequestInsertTest.class, "Fetch FAILED from "+node2); requestsAvg.report(0.0); } else { byte[] results = block.decode(chk); requestsAvg.report(1.0); if(Arrays.equals(results, data)) { Logger.error(RealNodeRequestInsertTest.class, "Fetch succeeded: "+new String(results)); } else { Logger.error(RealNodeRequestInsertTest.class, "Returned invalid data!: "+new String(results)); } } } catch (Throwable t) { Logger.error(RealNodeRequestInsertTest.class, "Caught "+t, t); } } } }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/8f855a0cc421b81c7031f32dff8c387ae9901d48/RealNodeRequestInsertTest.java/clean/src/freenet/node/RealNodeRequestInsertTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 9247, 13047, 16, 10669, 13047, 16, 6469, 47, 5509, 503, 288, 3639, 10669, 907, 18, 8394, 9152, 22681, 5846, 5062, 48, 87, 273, 638, 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, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 9247, 13047, 16, 10669, 13047, 16, 6469, 47, 5509, 503, 288, 3639, 10669, 907, 18, 8394, 9152, 22681, 5846, 5062, 48, 87, 273, 638, 3...
private void initialize(boolean handleMessageInCaller) throws ConfigError { try { for (Iterator i = settings.sectionIterator(); i.hasNext();) { Object sectionKey = i.next(); if (sectionKey != SessionSettings.DEFAULT_SESSION_ID) { SessionID sessionID = (SessionID) sectionKey; quickfixSessions.put(sessionID, sessionFactory.create(sessionID, settings)); } } onInitialize(handleMessageInCaller); EventDispatcher eventDispatcher = new LowLatencyEventDispatcher(); ioProcessor = new IoProcessor(); ioProcessor.setThreadNamePrefix(DEFAULT_IO_THREAD_PREFIX); ioProcessor.setThreadPoolSize(1); ioProcessor.start(); int acceptPort = getIntSetting(Acceptor.SETTING_SOCKET_ACCEPT_PORT); // Create Netty session server nettySessionServer = new SessionServer(); nettySessionServer.setIoProcessor(ioProcessor); nettySessionServer.setEventDispatcher(eventDispatcher); nettySessionServer.setMessageRecognizer(FIXMessageData.RECOGNIZER); nettySessionServer.addSessionListener(new AcceptorSessionListener()); nettySessionServer.setBindAddress(new InetSocketAddress(acceptPort)); nettySessionServer.setThreadName(DEFAULT_SESSION_SERVER_NAME); nettySessionServer.start(); log.info("listening for connections on port " + acceptPort); initializationLatch.countDown(); } catch (IOException e) { throw new RuntimeError(e); } }
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/b70d3856ff37569ffa681d768aeb1f7fe07efd10/AbstractSocketAcceptor.java/buggy/src/quickfix/netty/AbstractSocketAcceptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4046, 12, 6494, 1640, 1079, 382, 11095, 13, 1216, 1903, 668, 288, 3639, 775, 288, 5411, 364, 261, 3198, 277, 273, 1947, 18, 3464, 3198, 5621, 277, 18, 5332, 2134, 5621, 13, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4046, 12, 6494, 1640, 1079, 382, 11095, 13, 1216, 1903, 668, 288, 3639, 775, 288, 5411, 364, 261, 3198, 277, 273, 1947, 18, 3464, 3198, 5621, 277, 18, 5332, 2134, 5621, 13, 2...
boolean apAdded = (ev.getChildType() == SceneContainerEvent.CHILD_TYPE_APPEARANCE); int changed = POINTS_CHANGED | LINES_CHANGED | FACES_CHANGED;
public void childAdded(SceneContainerEvent ev) { if (ev.getChildType() == SceneContainerEvent.CHILD_TYPE_GEOMETRY) { if (peerGeometry != null) { peerGeometry.dispose(); geometryRemoved = true; System.out.println("Warning: Adding geometry while old one still valid"); peerGeometry=null; } if (originalComponent.getGeometry() != null) { peerGeometry = getJOGLPeerGeometryFor(originalComponent.getGeometry()); peerGeometry.refCount++; } return; } Iterator iter = peers.iterator(); boolean apAdded = (ev.getChildType() == SceneContainerEvent.CHILD_TYPE_APPEARANCE); int changed = POINTS_CHANGED | LINES_CHANGED | FACES_CHANGED; while (iter.hasNext()) { JOGLPeerComponent peer = (JOGLPeerComponent) iter.next(); peer.childAdded(ev); if (apAdded) peer.propagateGeometryChanged(changed); } }
25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/8d5727e31f7cbe033208f051067450e5d6093f61/JOGLRenderer.java/clean/src-jogl/de/jreality/jogl/JOGLRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1151, 8602, 12, 14370, 2170, 1133, 2113, 13, 288, 1082, 202, 430, 225, 261, 14965, 18, 588, 1763, 559, 1435, 422, 225, 29347, 2170, 1133, 18, 27043, 67, 2399, 67, 7113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1151, 8602, 12, 14370, 2170, 1133, 2113, 13, 288, 1082, 202, 430, 225, 261, 14965, 18, 588, 1763, 559, 1435, 422, 225, 29347, 2170, 1133, 18, 27043, 67, 2399, 67, 7113, ...
public AttachedArtifact( Artifact parent, String type, String classifier )
public AttachedArtifact( Artifact parent, String type, String classifier, ArtifactHandler artifactHandler )
public AttachedArtifact( Artifact parent, String type, String classifier ) { super( parent.getGroupId(), parent.getArtifactId(), parent.getVersionRange(), parent.getScope(), type, classifier, parent.getArtifactHandler(), parent.isOptional() ); this.parent = parent; if ( type == null || type.trim().length() < 1 ) { throw new InvalidArtifactRTException( getGroupId(), getArtifactId(), getVersion(), type, "Attached artifacts must specify a type." ); } if ( classifier == null || classifier.trim().length() < 1 ) { throw new InvalidArtifactRTException( getGroupId(), getArtifactId(), getVersion(), type, "Attached artifacts must specify a classifier." ); } }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/1be64231cfa24f6eea75dcc377f49f622f007849/AttachedArtifact.java/clean/maven-project/src/main/java/org/apache/maven/project/artifact/AttachedArtifact.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6020, 2004, 7581, 12, 14022, 982, 16, 514, 618, 16, 514, 14622, 16, 14022, 1503, 6462, 1503, 262, 565, 288, 3639, 2240, 12, 982, 18, 588, 8722, 9334, 982, 18, 588, 7581, 548, 9334...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6020, 2004, 7581, 12, 14022, 982, 16, 514, 618, 16, 514, 14622, 16, 14022, 1503, 6462, 1503, 262, 565, 288, 3639, 2240, 12, 982, 18, 588, 8722, 9334, 982, 18, 588, 7581, 548, 9334...
if (jj_3R_308()) {
if (jj_3R_315()) {
final private boolean jj_3R_281() { Token xsp; xsp = jj_scanpos; if (jj_3R_303()) { jj_scanpos = xsp; if (jj_3R_304()) { jj_scanpos = xsp; if (jj_3R_305()) { jj_scanpos = xsp; if (jj_3R_306()) { jj_scanpos = xsp; if (jj_3R_307()) { jj_scanpos = xsp; if (jj_3R_308()) { jj_scanpos = xsp; if (jj_3R_309()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 6030, 21, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 23, 4630...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 1250, 10684, 67, 23, 54, 67, 6030, 21, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 23, 4630...
public int CDLRISEFALL3METHODS_Lookback( ){ return ((( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].avgPeriod) ) > ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) )) ? ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].avgPeriod) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) )) + 4;}
2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/69e0567047ad75d101e30d35826ecbb51165ba43/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 474, 39, 8914, 2259, 1090, 42, 4685, 23, 25750, 67, 9794, 823, 1435, 95, 2463, 12443, 12443, 2211, 18, 71, 464, 298, 2628, 63, 9833, 67, 39, 464, 298, 5568, 559, 18, 9833, 67, 2250, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 39, 8914, 2259, 1090, 42, 4685, 23, 25750, 67, 9794, 823, 1435, 95, 2463, 12443, 12443, 2211, 18, 71, 464, 298, 2628, 63, 9833, 67, 39, 464, 298, 5568, 559, 18, 9833, 67, 2250, ...
.equals(IWorkbenchPreferenceConstants.OPEN_NEW_PERSPECTIVE))
.equals(IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLACE))
private boolean canRun() { if (openPerspectiveSetting() .equals(IWorkbenchPreferenceConstants.OPEN_NEW_PERSPECTIVE)) return replaceEnabled; return true;}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b7361699ae1f314b870e5e3310e450a40e7a0ece/OpenPerspectiveMenu.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/OpenPerspectiveMenu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 1250, 848, 1997, 1435, 288, 202, 430, 261, 3190, 14781, 16772, 5568, 1435, 202, 202, 18, 14963, 12, 45, 2421, 22144, 9624, 2918, 18, 11437, 67, 12917, 67, 3194, 23810, 1268, 5354, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 1250, 848, 1997, 1435, 288, 202, 430, 261, 3190, 14781, 16772, 5568, 1435, 202, 202, 18, 14963, 12, 45, 2421, 22144, 9624, 2918, 18, 11437, 67, 12917, 67, 3194, 23810, 1268, 5354, 3719, ...
Object parentClass =
parentClass =
public void addClass(String name, short modifiers, String superclassName, Vector interfaces, String javadoc) { Object mClass = addClassifier(Model.getCoreFactory().createClass(), name, modifiers, javadoc); Model.getCoreHelper().setAbstract( mClass, (modifiers & JavaRecognizer.ACC_ABSTRACT) > 0); Model.getCoreHelper().setLeaf( mClass, (modifiers & JavaRecognizer.ACC_FINAL) > 0); Model.getCoreHelper().setRoot(mClass, false); // only do generalizations and realizations on the 2nd pass. Object level = this.getAttribute("level"); if (level != null) { if (level.equals(new Integer(0))) { return; } } if (superclassName != null) { try { Object parentClass = getContext(superclassName) .get(getClassifierName(superclassName)); getGeneralization(currentPackage, parentClass, mClass); } catch (ClassifierNotFoundException e) { // Currently if a classifier cannot be found in the // model/classpath then information will be lost from // source files, because the classifier cannot be // created on the fly. LOG.warn("Modeller.java: a classifier that was in the source" + " file could not be generated in the model " + "(to generate a generalization)- information lost", e); } } if (interfaces != null) { for (Iterator i = interfaces.iterator(); i.hasNext();) { String interfaceName = (String) i.next(); try { Object mInterface = getContext(interfaceName) .getInterface(getClassifierName(interfaceName)); Object mAbstraction = getAbstraction(mInterface, mClass); if (Model.getFacade().getSuppliers(mAbstraction).size() == 0) { Model.getCoreHelper().addSupplier( mAbstraction, mInterface); Model.getCoreHelper().addClient(mAbstraction, mClass); } Model.getCoreHelper().setNamespace( mAbstraction, currentPackage); Model.getCoreHelper().addStereotype( mAbstraction, getStereotype("realize")); } catch (ClassifierNotFoundException e) { // Currently if a classifier cannot be found in the // model/classpath then information will be lost from // source files, because the classifier cannot be // created on the fly. LOG.warn("Modeller.java: a classifier that was in " + "the source file could not be generated " + "in the model " + "(to generate a abstraction)- information lost", e); } } } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/b696192cf514c6c50fa005afeb90a883b6ad64f0/Modeller.java/buggy/src_new/org/argouml/uml/reveng/java/Modeller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9058, 12, 780, 508, 16, 7682, 3025, 10429, 16, 7682, 514, 12098, 461, 16, 7682, 5589, 7349, 16, 7682, 514, 30829, 13, 288, 3639, 1033, 312, 797, 273, 202, 565, 9058, 1251, 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, 9058, 12, 780, 508, 16, 7682, 3025, 10429, 16, 7682, 514, 12098, 461, 16, 7682, 5589, 7349, 16, 7682, 514, 30829, 13, 288, 3639, 1033, 312, 797, 273, 202, 565, 9058, 1251, 12...
private static String proxyname(Vector proxyspec) {
private static String proxyname(Package pkg, ArrayList proxyspec) {
private static String proxyname(Vector proxyspec) { StringBuffer s = new StringBuffer(); String pkgname = proxypackage(proxyspec); if (pkgname != null) { s.append(pkgname); s.append('.'); } s.append("$Proxy$$"); s.append(Integer.toHexString(proxyspec.hashCode())); s.append("$$"); s.append(proxyspec.elementAt(0).getClass().getName()); int l = proxyspec.size(); for (int i = 1; i < l; ++i) { s.append("$$"); s.append(((Class)proxyspec.elementAt(i)).getName()); } return s.toString().replace('.','_'); }
51273 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51273/723334a9680128ac939416674a3bf7545fa8fec9/Proxy.java/clean/core-vm/java/java/lang/reflect/Proxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 514, 2889, 529, 12, 2261, 3475, 16, 2407, 2889, 2793, 13, 288, 282, 6674, 272, 273, 394, 6674, 5621, 282, 514, 29348, 273, 8617, 879, 1270, 12, 5656, 2793, 1769, 282, 309, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 514, 2889, 529, 12, 2261, 3475, 16, 2407, 2889, 2793, 13, 288, 282, 6674, 272, 273, 394, 6674, 5621, 282, 514, 29348, 273, 8617, 879, 1270, 12, 5656, 2793, 1769, 282, 309, 26...
public void setCollectionExpr(String collectionExpr) { this.collectionExpr = collectionExpr; }
public void setCollectionExpr(String collectionExpr) { this.collectionExpr = collectionExpr; }
public void setCollectionExpr(String collectionExpr) { this.collectionExpr = collectionExpr; }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/7ada8b794c9b4f0e18caa9559681a0972f927eff/ELSizeTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/bean/ELSizeTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 918, 377, 444, 2532, 4742, 12, 780, 1849, 4742, 13, 565, 288, 333, 18, 5548, 4742, 282, 273, 1849, 4742, 31, 289, 2, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 918, 377, 444, 2532, 4742, 12, 780, 1849, 4742, 13, 565, 288, 333, 18, 5548, 4742, 282, 273, 1849, 4742, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
asm.emitADD_Reg_Imm (SP, fp2spOffset(0) - bytesPopped);
asm.emitADD_Reg_Imm (SP, fp2spOffset(NO_SLOT).toInt() - bytesPopped);
private final void genEpilogue (int bytesPopped) { if (klass.isBridgeFromNative()) { // pop locals and parameters, get to saved GPR's asm.emitADD_Reg_Imm(SP, (this.method.getLocalWords() << LG_WORDSIZE)); VM_JNICompiler.generateEpilogForJNIMethod(asm, this.method); } else if (klass.isDynamicBridge()) { // we never return from a DynamicBridge frame asm.emitINT_Imm(0xFF); } else { // normal method asm.emitADD_Reg_Imm (SP, fp2spOffset(0) - bytesPopped); // SP becomes frame pointer asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); // restore nonvolatile JTOC register asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); // restore nonvolatile EBX register asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // discard frame asm.emitRET_Imm(parameterWords << LG_WORDSIZE); // return to caller- pop parameters from stack } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/c19269673fcdd14e39a92c30e8ccef4cb7ce0402/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 727, 918, 3157, 18918, 21947, 344, 261, 474, 1731, 7049, 1845, 13, 288, 565, 309, 261, 22626, 18, 291, 13691, 1265, 9220, 10756, 288, 1377, 368, 1843, 8985, 471, 1472, 16, 336, 358,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 3157, 18918, 21947, 344, 261, 474, 1731, 7049, 1845, 13, 288, 565, 309, 261, 22626, 18, 291, 13691, 1265, 9220, 10756, 288, 1377, 368, 1843, 8985, 471, 1472, 16, 336, 358,...
this.shell.start();
this._shell.start();
public void startShell() { if (this.core.getSettings().consoleUseShell()) { this.shell.start(); } // Now just run as long as the core status stays at READY. while (this.core.getStatus() == Status.READY) { try { Thread.sleep(1000); } catch (InterruptedException e) { this.core.getLogger().warn("Console was interrupted; shell will not run anymore."); } } }
49735 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49735/6a34a4cb5cc8374e5588b5833b5726f8ca03111d/Console.java/buggy/JavaSource/org/aitools/programd/interfaces/Console.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 13220, 1435, 565, 288, 3639, 309, 261, 2211, 18, 3644, 18, 588, 2628, 7675, 8698, 3727, 13220, 10756, 3639, 288, 5411, 333, 6315, 10304, 18, 1937, 5621, 3639, 289, 3639, 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, 787, 13220, 1435, 565, 288, 3639, 309, 261, 2211, 18, 3644, 18, 588, 2628, 7675, 8698, 3727, 13220, 10756, 3639, 288, 5411, 333, 6315, 10304, 18, 1937, 5621, 3639, 289, 3639, 3...
userJobConfProps_.add("fs.default.name="+s); } else if((s = optionArg(argv_, i, "-jt", false)) != null) {
userJobConfProps_.add("fs.default.name=" + s); } else if ((s = optionArg(argv_, i, "-jt", false)) != null) {
void parseArgv() { if(argv_.length==0) { exitUsage(false); } int i=0; while(i < argv_.length) { String s; if(argv_[i].equals("-verbose")) { verbose_ = true; } else if(argv_[i].equals("-info")) { detailedUsage_ = true; } else if(argv_[i].equals("-debug")) { debug_++; } else if((s = optionArg(argv_, i, "-input", false)) != null) { i++; inputGlobs_.add(s); } else if((s = optionArg(argv_, i, "-output", output_ != null)) != null) { i++; output_ = s; } else if((s = optionArg(argv_, i, "-mapper", mapCmd_ != null)) != null) { i++; mapCmd_ = s; } else if((s = optionArg(argv_, i, "-combiner", comCmd_ != null)) != null) { i++; comCmd_ = s; } else if((s = optionArg(argv_, i, "-reducer", redCmd_ != null)) != null) { i++; redCmd_ = s; } else if((s = optionArg(argv_, i, "-file", false)) != null) { i++; packageFiles_.add(s); } else if((s = optionArg(argv_, i, "-cluster", cluster_ != null)) != null) { i++; cluster_ = s; } else if((s = optionArg(argv_, i, "-config", false)) != null) { i++; configPath_.add(s); } else if((s = optionArg(argv_, i, "-dfs", false)) != null) { i++; userJobConfProps_.add("fs.default.name="+s); } else if((s = optionArg(argv_, i, "-jt", false)) != null) { i++; userJobConfProps_.add("mapred.job.tracker="+s); } else if((s = optionArg(argv_, i, "-jobconf", false)) != null) { i++; validateNameEqValue(s); userJobConfProps_.add(s); } else if((s = optionArg(argv_, i, "-cmdenv", false)) != null) { i++; validateNameEqValue(s); if(addTaskEnvironment_.length() > 0) { addTaskEnvironment_ += " "; } addTaskEnvironment_ += s; } else if((s = optionArg(argv_, i, "-inputreader", inReaderSpec_ != null)) != null) { i++; inReaderSpec_ = s; } else { System.err.println("Unexpected argument: " + argv_[i]); exitUsage(false); } i++; } if(detailedUsage_) { exitUsage(true); } }
49935 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49935/e10b40e8014547113799b2653164e8c990d41209/StreamJob.java/clean/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1109, 4117, 90, 1435, 225, 288, 565, 309, 12, 19485, 27799, 2469, 631, 20, 13, 288, 1377, 2427, 5357, 12, 5743, 1769, 565, 289, 565, 509, 277, 33, 20, 31, 565, 1323, 12, 77, 411,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1109, 4117, 90, 1435, 225, 288, 565, 309, 12, 19485, 27799, 2469, 631, 20, 13, 288, 1377, 2427, 5357, 12, 5743, 1769, 565, 289, 565, 509, 277, 33, 20, 31, 565, 1323, 12, 77, 411,...
if((comparePage.getPageTitle()).equals(HOME_TOOL_ID)) { homePage = comparePage; }
if((comparePage.getToolId()).equals(HOME_TOOL_ID)) { homePage = comparePage; }
private void getRevisedFeatures(ParameterParser params, SessionState state) { Site site = getStateSite(state); //get the list of Worksite Setup configured pages List wSetupPageList = (List)state.getAttribute(STATE_WORKSITE_SETUP_PAGE_LIST); WorksiteSetupPage wSetupPage = new WorksiteSetupPage(); WorksiteSetupPage wSetupHome = new WorksiteSetupPage(); List pageList = new Vector(); //declare some flags used in making decisions about Home, whether to add, remove, or do nothing boolean homeInChosenList = false; boolean homeInWSetupPageList = false; List chosenList = (List) state.getAttribute(STATE_TOOL_REGISTRATION_SELECTED_LIST); //if features were selected, diff wSetupPageList and chosenList to get page adds and removes // boolean values for adding synoptic views boolean hasAnnouncement = false; boolean hasChat = false; boolean hasDiscussion = false; boolean hasEmail = false; boolean hasNewSiteInfo = false; //Special case - Worksite Setup Home comes from a hardcoded checkbox on the vm template rather than toolRegistrationList //see if Home was chosen for (ListIterator j = chosenList.listIterator(); j.hasNext(); ) { String choice = (String) j.next(); if(choice.equalsIgnoreCase(HOME_TOOL_ID)) { homeInChosenList = true; } else if (choice.equals("sakai.mailbox")) { hasEmail = true; String alias = StringUtil.trimToNull((String) state.getAttribute(STATE_TOOL_EMAIL_ADDRESS)); if (alias != null) { if (!Validator.checkEmailLocal(alias)) { addAlert(state, INVALID_EMAIL); } else { try { String channelReference = mailArchiveChannelReference(site.getId()); //first, clear any alias set to this channel AliasService.removeTargetAliases(channelReference); // check to see whether the alias has been used try { String target = AliasService.getTarget(alias); if (target != null) { addAlert(state, rb.getString("java.emailinuse")+" "); } } catch (IdUnusedException ee) { try { AliasService.setAlias(alias, channelReference); } catch (IdUsedException exception) {} catch (IdInvalidException exception) {} catch (PermissionException exception) {} } } catch (PermissionException exception) {} } } } else if (choice.equals("sakai.announcements")) { hasAnnouncement = true; } else if (choice.equals("sakai.chat")) { hasChat = true; } else if (choice.equals("sakai.discussion")) { hasDiscussion = true; } } //see if Home and/or Help in the wSetupPageList (can just check title here, because we checked patterns before adding to the list) for (ListIterator i = wSetupPageList.listIterator(); i.hasNext(); ) { wSetupPage = (WorksiteSetupPage) i.next(); if((wSetupPage.getPageTitle()).equals(HOME_TOOL_ID)){ homeInWSetupPageList = true; } } if (homeInChosenList) { SitePage page = null; // Were the synoptic views of Announcement, Discussioin, Chat existing before the editing boolean hadAnnouncement=false,hadDiscussion=false,hadChat=false; if (homeInWSetupPageList) { if (!SiteService.isUserSite(site.getId())) { //for non-myworkspace site, if Home is chosen and Home is in the wSetupPageList, remove synoptic tools WorksiteSetupPage homePage = new WorksiteSetupPage(); for (ListIterator i = wSetupPageList.listIterator(); i.hasNext(); ) { WorksiteSetupPage comparePage = (WorksiteSetupPage) i.next(); if((comparePage.getPageTitle()).equals(HOME_TOOL_ID)) { homePage = comparePage; } } page = site.getPage(homePage.getPageId()); List toolList = page.getTools(); List removeToolList = new Vector(); // get those synoptic tools for (ListIterator iToolList = toolList.listIterator(); iToolList.hasNext(); ) { ToolConfiguration tool = (ToolConfiguration) iToolList.next(); if (tool.getTool().getId().equals("sakai.synoptic.announcement")) { hadAnnouncement = true; if (!hasAnnouncement) { removeToolList.add(tool);// if Announcement tool isn't selected, remove the synotic Announcement } } if (tool.getTool().getId().equals("sakai.synoptic.discussion")) { hadDiscussion = true; if (!hasDiscussion) { removeToolList.add(tool);// if Discussion tool isn't selected, remove the synoptic Discussion } } if (tool.getTool().getId().equals("sakai.synoptic.chat")) { hadChat = true; if (!hasChat) { removeToolList.add(tool);// if Chat tool isn't selected, remove the synoptic Chat } } } // remove those synoptic tools for (ListIterator rToolList = removeToolList.listIterator(); rToolList.hasNext(); ) { page.removeTool((ToolConfiguration) rToolList.next()); } } } else { //if Home is chosen and Home is not in wSetupPageList, add Home to site and wSetupPageList page = site.addPage(); page.setTitle(rb.getString("java.home")); wSetupHome.pageId = page.getId(); wSetupHome.pageTitle = page.getTitle(); wSetupHome.toolId = HOME_TOOL_ID; wSetupPageList.add(wSetupHome); //Add worksite information tool ToolConfiguration tool = page.addTool(); Tool reg = ToolManager.getTool("sakai.iframe.site"); tool.setTool("sakai.iframe.site", reg); tool.setTitle(rb.getString("java.workinfo")); tool.setLayoutHints("0,0"); } if (!SiteService.isUserSite(site.getId())) { //add synoptical tools to home tool in non-myworkspace site try { if (hasAnnouncement && !hadAnnouncement) { //Add synoptic announcements tool addSynopticTool(page, "sakai.synoptic.announcement", rb.getString("java.recann"), "0,1"); } if (hasDiscussion && !hadDiscussion) { //Add synoptic discussion tool addSynopticTool(page, "sakai.synoptic.discussion", rb.getString("java.recdisc"), "1,1"); } if (hasChat&& !hadChat) { //Add synoptic chat tool addSynopticTool(page, "sakai.synoptic.chat", rb.getString("java.recent"), "2,1"); } if (hasAnnouncement || hasDiscussion || hasChat ) { page.setLayout(SitePage.LAYOUT_DOUBLE_COL); } else { page.setLayout(SitePage.LAYOUT_SINGLE_COL); } } catch (Exception e) { M_log.warn("SiteAction.getFeatures Exception " + e.getMessage()); } } } // add Home //if Home is in wSetupPageList and not chosen, remove Home feature from wSetupPageList and site if (!homeInChosenList && homeInWSetupPageList) { //remove Home from wSetupPageList WorksiteSetupPage removePage = new WorksiteSetupPage(); for (ListIterator i = wSetupPageList.listIterator(); i.hasNext(); ) { WorksiteSetupPage comparePage = (WorksiteSetupPage) i.next(); if((comparePage.getPageTitle()).equals(rb.getString("java.home"))) { removePage = comparePage; } } SitePage siteHome = site.getPage(removePage.getPageId()); site.removePage(siteHome); wSetupPageList.remove(removePage); } //declare flags used in making decisions about whether to add, remove, or do nothing boolean inChosenList; boolean inWSetupPageList; Hashtable newsTitles = (Hashtable) state.getAttribute(STATE_NEWS_TITLES); Hashtable wcTitles = (Hashtable) state.getAttribute(STATE_WEB_CONTENT_TITLES); Hashtable newsUrls = (Hashtable) state.getAttribute(STATE_NEWS_URLS); Hashtable wcUrls = (Hashtable) state.getAttribute(STATE_WEB_CONTENT_URLS); Set categories = new HashSet(); categories.add((String) state.getAttribute(STATE_SITE_TYPE)); Set toolRegistrationList = ToolManager.findTools(categories, null); // first looking for any tool for removal Vector removePageIds = new Vector(); for (ListIterator k = wSetupPageList.listIterator(); k.hasNext(); ) { wSetupPage = (WorksiteSetupPage)k.next(); String pageToolId = wSetupPage.getToolId(); // use page id + tool id for multiple News and Web Content tool if (pageToolId.indexOf("sakai.news") != -1 || pageToolId.indexOf("sakai.iframe") != -1) { pageToolId = wSetupPage.getPageId() + pageToolId; } inChosenList = false; for (ListIterator j = chosenList.listIterator(); j.hasNext(); ) { String toolId = (String) j.next(); if(pageToolId.equals(toolId)) { inChosenList = true; } } if (!inChosenList) { removePageIds.add(wSetupPage.getPageId()); } } for (int i = 0; i < removePageIds.size(); i++) { //if the tool exists in the wSetupPageList, remove it from the site String removeId = (String) removePageIds.get(i); SitePage sitePage = site.getPage(removeId); site.removePage(sitePage); // and remove it from wSetupPageList for (ListIterator k = wSetupPageList.listIterator(); k.hasNext(); ) { wSetupPage = (WorksiteSetupPage)k.next(); if (!wSetupPage.getPageId().equals(removeId)) { wSetupPage = null; } } if (wSetupPage != null) { wSetupPageList.remove(wSetupPage); } } // then looking for any tool to add for (ListIterator j = orderToolIds(state, (String) state.getAttribute(STATE_SITE_TYPE), chosenList).listIterator(); j.hasNext(); ) { String toolId = (String) j.next(); //Is the tool in the wSetupPageList? inWSetupPageList = false; for (ListIterator k = wSetupPageList.listIterator(); k.hasNext(); ) { wSetupPage = (WorksiteSetupPage)k.next(); String pageToolId = wSetupPage.getToolId(); // use page Id + toolId for multiple News and Web Content tool if (pageToolId.indexOf("sakai.news") != -1 || pageToolId.indexOf("sakai.iframe") != -1) { pageToolId = wSetupPage.getPageId() + pageToolId; } if(pageToolId.equals(toolId)) { inWSetupPageList = true; // but for News and Web Content tool, need to change the title if (toolId.indexOf("sakai.news") != -1) { SitePage pEdit = (SitePage) site.getPage(wSetupPage.pageId); pEdit.setTitle((String) newsTitles.get(toolId)); List toolList = pEdit.getTools(); for (ListIterator jTool = toolList.listIterator(); jTool.hasNext(); ) { ToolConfiguration tool = (ToolConfiguration) jTool.next(); if (tool.getTool().getId().equals("sakai.news")) { // set News tool title tool.setTitle((String) newsTitles.get(toolId)); // set News tool url String urlString = (String) newsUrls.get(toolId); try { URL url = new URL(urlString); // update the tool config tool.getPlacementConfig().setProperty("channel-url", (String) url.toExternalForm()); } catch (MalformedURLException e) { addAlert(state, rb.getString("java.invurl")+" " + urlString + ". "); } } } } else if (toolId.indexOf("sakai.iframe") != -1) { SitePage pEdit = (SitePage) site.getPage(wSetupPage.pageId); pEdit.setTitle((String) wcTitles.get(toolId)); List toolList = pEdit.getTools(); for (ListIterator jTool = toolList.listIterator(); jTool.hasNext(); ) { ToolConfiguration tool = (ToolConfiguration) jTool.next(); if (tool.getTool().getId().equals("sakai.iframe")) { // set Web Content tool title tool.setTitle((String) wcTitles.get(toolId)); // set Web Content tool url String wcUrl = StringUtil.trimToNull((String) wcUrls.get(toolId)); if (wcUrl != null && !wcUrl.equals(WEB_CONTENT_DEFAULT_URL)) { // if url is not empty and not consists only of "http://" tool.getPlacementConfig().setProperty("source", wcUrl); } } } } } } if (inWSetupPageList) { // if the tool already in the list, do nothing so to save the option settings } else { // if in chosen list but not in wSetupPageList, add it to the site (one tool on a page) // if Site Info tool is being newly added if (toolId.equals("sakai.siteinfo")) { hasNewSiteInfo = true; } Tool toolRegFound = null; for (Iterator i = toolRegistrationList.iterator(); i.hasNext(); ) { Tool toolReg = (Tool) i.next(); if ((toolId.indexOf("assignment") != -1 && toolId.equals(toolReg.getId())) || (toolId.indexOf("assignment") == -1 && toolId.indexOf(toolReg.getId()) != -1)) { toolRegFound = toolReg; } } if (toolRegFound != null) { // we know such a tool, so add it WorksiteSetupPage addPage = new WorksiteSetupPage(); SitePage page = site.addPage(); addPage.pageId = page.getId(); if (toolId.indexOf("sakai.news") != -1) { // set News tool title page.setTitle((String) newsTitles.get(toolId)); } else if (toolId.indexOf("sakai.iframe") != -1) { // set Web Content tool title page.setTitle((String) wcTitles.get(toolId)); } else { // other tools with default title page.setTitle(toolRegFound.getTitle()); } page.setLayout(SitePage.LAYOUT_SINGLE_COL); ToolConfiguration tool = page.addTool(); tool.setTool(toolRegFound.getId(), toolRegFound); addPage.toolId = toolId; wSetupPageList.add(addPage); //set tool title if (toolId.indexOf("sakai.news") != -1) { // set News tool title tool.setTitle((String) newsTitles.get(toolId)); //set News tool url String urlString = (String) newsUrls.get(toolId); try { URL url = new URL(urlString); // update the tool config tool.getPlacementConfig().setProperty("channel-url", (String) url.toExternalForm()); } catch(MalformedURLException e) { // display message addAlert(state, "Invalid URL " + urlString + ". "); // remove the page because of invalid url site.removePage(page); } } else if (toolId.indexOf("sakai.iframe") != -1) { // set Web Content tool title tool.setTitle((String) wcTitles.get(toolId)); // set Web Content tool url String wcUrl = StringUtil.trimToNull((String) wcUrls.get(toolId)); if (wcUrl != null && !wcUrl.equals(WEB_CONTENT_DEFAULT_URL)) { // if url is not empty and not consists only of "http://" tool.getPlacementConfig().setProperty("source", wcUrl); } } else { tool.setTitle(toolRegFound.getTitle()); } } } } // for if (homeInChosenList) { //Order tools - move Home to the top - first find it SitePage homePage = null; pageList = site.getPages(); if (pageList != null && pageList.size() != 0) { for (ListIterator i = pageList.listIterator(); i.hasNext(); ) { SitePage page = (SitePage)i.next(); if (rb.getString("java.home").equals(page.getTitle()))//if ("Home".equals(page.getTitle())) { homePage = page; break; } } } // if found, move it if (homePage != null) { // move home from it's index to the first position int homePosition = pageList.indexOf(homePage); for (int n = 0; n < homePosition; n++) { homePage.moveUp(); } } } // if Site Info is newly added, more it to the last if (hasNewSiteInfo) { SitePage siteInfoPage = null; pageList = site.getPages(); String[] toolIds = {"sakai.siteinfo"}; if (pageList != null && pageList.size() != 0) { for (ListIterator i = pageList.listIterator(); siteInfoPage==null && i.hasNext(); ) { SitePage page = (SitePage)i.next(); int s = page.getTools(toolIds).size(); if (s > 0) { siteInfoPage = page; } } } // if found, move it if (siteInfoPage != null) { // move home from it's index to the first position int siteInfoPosition = pageList.indexOf(siteInfoPage); for (int n = siteInfoPosition; n<pageList.size(); n++) { siteInfoPage.moveDown(); } } } // if there is no email tool chosen if (!hasEmail) { state.removeAttribute(STATE_TOOL_EMAIL_ADDRESS); } //commit commitSite(site); } // getRevisedFeatures
52180 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52180/96164dd6af4602c24422199bbae0a33c3dc04b5f/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5561, 26779, 8696, 12, 1662, 2678, 859, 16, 3877, 1119, 919, 13, 202, 95, 1082, 202, 4956, 2834, 273, 8997, 4956, 12, 2019, 1769, 202, 202, 759, 588, 326, 666, 434, 4147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5561, 26779, 8696, 12, 1662, 2678, 859, 16, 3877, 1119, 919, 13, 202, 95, 1082, 202, 4956, 2834, 273, 8997, 4956, 12, 2019, 1769, 202, 202, 759, 588, 326, 666, 434, 4147...
setCallbackTypes(new Class[]{ callbackType }); }
setCallbackTypes(new Class[]{ callbackType }); }
public void setCallbackType(Class callbackType) { setCallbackTypes(new Class[]{ callbackType }); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/4c632c609488fb8900f7eb5390cd16cbaaf04adf/AdvancedEnhancer.java/clean/source/net/sf/cglib/proxy/AdvancedEnhancer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 2428, 559, 12, 797, 1348, 559, 13, 288, 3639, 444, 2428, 2016, 12, 2704, 1659, 63, 7073, 1348, 559, 15549, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 2428, 559, 12, 797, 1348, 559, 13, 288, 3639, 444, 2428, 2016, 12, 2704, 1659, 63, 7073, 1348, 559, 15549, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
Form myForm = new Form(); myForm.setEventListener(com.idega.core.localisation.business.LocaleSwitcher.class.getName()); DropdownMenu down = getAvailableLocalesDropdown(iwma,LocaleSwitcher.localesParameter); down.keepStatusOnAction(); down.setToSubmit(); myForm.add(down);
Form myForm = new Form(); myForm.setEventListener(com.idega.core.localisation.business.LocaleSwitcher.class.getName()); DropdownMenu down = getAvailableLocalesDropdown(iwma, LocaleSwitcher.localesParameter); down.keepStatusOnAction(); down.setToSubmit(); myForm.add(down);
public static Form getAvailableLocalesForm(IWContext iwc) { IWMainApplication iwma = iwc.getApplication(); Form myForm = new Form(); myForm.setEventListener(com.idega.core.localisation.business.LocaleSwitcher.class.getName()); DropdownMenu down = getAvailableLocalesDropdown(iwma,LocaleSwitcher.localesParameter); down.keepStatusOnAction(); down.setToSubmit(); myForm.add(down); return myForm; }
11362 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11362/3ca1d274c003725a3259e54bc06f6d9925e3fd23/Localizer.java/buggy/src/java/com/idega/development/presentation/Localizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 2748, 15796, 13310, 1204, 12, 45, 59, 1042, 25522, 71, 13, 288, 565, 467, 59, 6376, 3208, 25522, 2540, 273, 25522, 71, 18, 588, 3208, 5621, 565, 2748, 3399, 1204, 273, 394, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 2748, 15796, 13310, 1204, 12, 45, 59, 1042, 25522, 71, 13, 288, 565, 467, 59, 6376, 3208, 25522, 2540, 273, 25522, 71, 18, 588, 3208, 5621, 565, 2748, 3399, 1204, 273, 394, 2...
valueAtSchedule = uskManager.lookup(origUSK);
public void schedule() { USKAttempt[] attempts; synchronized(this) { if(cancelled) return; valueAtSchedule = uskManager.lookup(origUSK); long startPoint = Math.max(origUSK.suggestedEdition, valueAtSchedule); for(long i=startPoint;i<startPoint+minFailures;i++) add(i); attempts = (USKAttempt[]) runningAttempts.toArray(new USKAttempt[runningAttempts.size()]); started = true; } if(!cancelled) for(int i=0;i<attempts.length;i++) attempts[i].schedule(); }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/03e3c37737640c23e25aacfa0ab1bf8a0d4b535f/USKFetcher.java/clean/src/freenet/client/async/USKFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4788, 1435, 288, 202, 202, 3378, 47, 7744, 8526, 7531, 31, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 10996, 1259, 13, 327, 31, 1082, 202, 1132, 861, 6061, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4788, 1435, 288, 202, 202, 3378, 47, 7744, 8526, 7531, 31, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 10996, 1259, 13, 327, 31, 1082, 202, 1132, 861, 6061, ...
return true;
return standard;
public boolean isStandard() { return true; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f5f345cdfff3f09740d7f1b2a8dfc951d380e7ee/Include.java/buggy/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Include.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 8336, 1435, 288, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 8336, 1435, 288, 202, 202, 2463, 638, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ActionPaste.getInstance().setEnabled( Globals.clipBoard != null && !Globals.clipBoard.isEmpty()); */
ActionPaste.getInstance().setEnabled( Globals.clipBoard != null && !Globals.clipBoard.isEmpty()); */
public void selectionChanged(GraphSelectionEvent gse) { Vector sels = gse.getSelections(); ActionCut.getInstance().setEnabled(sels != null && !sels.isEmpty()); ActionCopy.getInstance().setEnabled(sels != null && !sels.isEmpty()); /* ActionPaste.getInstance().setEnabled( Globals.clipBoard != null && !Globals.clipBoard.isEmpty()); */ TargetManager.getInstance().setTargets(sels); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/TabDiagram.java/clean/src_new/org/argouml/uml/diagram/ui/TabDiagram.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4421, 5033, 12, 4137, 6233, 1133, 314, 307, 13, 288, 3639, 5589, 357, 87, 273, 314, 307, 18, 588, 29913, 5621, 3639, 4382, 15812, 18, 588, 1442, 7675, 542, 1526, 12, 1786, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4421, 5033, 12, 4137, 6233, 1133, 314, 307, 13, 288, 3639, 5589, 357, 87, 273, 314, 307, 18, 588, 29913, 5621, 3639, 4382, 15812, 18, 588, 1442, 7675, 542, 1526, 12, 1786, 87...
public static Coords scatter(Coords coords) { int scatterDirection = d6(1) - 1; int scatterDistance = d6(1); for (int i = 0; i < scatterDistance; i++) { coords = coords.translated(scatterDirection); } return coords; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/359f7976ea7b886c35ce9187dadb639fb01ebfca/Compute.java/buggy/megamek/src/megamek/common/Compute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 10320, 87, 14644, 12, 13089, 6074, 13, 288, 377, 202, 474, 14644, 8212, 273, 302, 26, 12, 21, 13, 300, 404, 31, 377, 202, 474, 14644, 7200, 273, 302, 26, 12, 21, 1769, 377,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10320, 87, 14644, 12, 13089, 6074, 13, 288, 377, 202, 474, 14644, 8212, 273, 302, 26, 12, 21, 13, 300, 404, 31, 377, 202, 474, 14644, 7200, 273, 302, 26, 12, 21, 1769, 377,...
else if (e.getActionCommand().equals("startEditing"))
else if (command.equals("startEditing"))
public void actionPerformed(ActionEvent e) { TreePath lead = tree.getLeadSelectionPath(); if (e.getActionCommand().equals("selectPreviousChangeLead") || e.getActionCommand().equals("selectPreviousExtendSelection") || e.getActionCommand().equals("selectPrevious") || e.getActionCommand().equals("selectNext") || e.getActionCommand().equals("selectNextExtendSelection") || e.getActionCommand().equals("selectNextChangeLead")) (new TreeIncrementAction(0, "")).actionPerformed(e); else if (e.getActionCommand().equals("selectParent") || e.getActionCommand().equals("selectChild")) (new TreeTraverseAction(0, "")).actionPerformed(e); else if (e.getActionCommand().equals("selectAll")) { TreePath[] paths = new TreePath[tree.getVisibleRowCount()]; Object curr = getNextVisibleNode(treeModel.getRoot()); int i = 0; while (curr != null && i < paths.length) { paths[i] = new TreePath(getPathToRoot(curr, 0)); i++; } tree.addSelectionPaths(paths); } else if (e.getActionCommand().equals("startEditing")) tree.startEditingAtPath(lead); else if (e.getActionCommand().equals("toggle")) { if (tree.isEditing()) tree.stopEditing(); else { Object last = lead.getLastPathComponent(); TreePath path = new TreePath(getPathToRoot(last, 0)); if (!treeModel.isLeaf(last)) toggleExpandState(path); } } else if (e.getActionCommand().equals("clearSelection")) tree.clearSelection(); if (tree.isEditing() && !e.getActionCommand().equals("startEditing")) tree.stopEditing(); tree.scrollPathToVisible(lead); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/9c4ae63e42ba757e5480c3d8f5dbcaff12cdc5fc/BasicTreeUI.java/clean/javax/swing/plaf/basic/BasicTreeUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 565, 288, 1377, 4902, 743, 5871, 273, 2151, 18, 588, 9678, 6233, 743, 5621, 1377, 309, 261, 73, 18, 588, 1803, 2189, 7675, 14963, 2932, 4025, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 565, 288, 1377, 4902, 743, 5871, 273, 2151, 18, 588, 9678, 6233, 743, 5621, 1377, 309, 261, 73, 18, 588, 1803, 2189, 7675, 14963, 2932, 4025, ...
assertTrue("Deleted chars when start == end", testBuffer.toString() .equals("This is a test buffer"));
assertEquals("Deleted chars when start == end", "This is a test buffer", testBuffer.toString() );
public void test_deleteII() { // Test for method java.lang.StringBuffer // java.lang.StringBuffer.delete(int, int) testBuffer.delete(7, 7); assertTrue("Deleted chars when start == end", testBuffer.toString() .equals("This is a test buffer")); testBuffer.delete(4, 14); assertTrue("Deleted incorrect chars", testBuffer.toString().equals( "This buffer")); testBuffer = new StringBuffer("This is a test buffer"); String sharedStr = testBuffer.toString(); testBuffer.delete(0, testBuffer.length()); assertTrue("Didn't clone shared buffer", sharedStr .equals("This is a test buffer")); assertTrue("Deleted incorrect chars", testBuffer.toString().equals("")); testBuffer.append("more stuff"); assertTrue("Didn't clone shared buffer 2", sharedStr .equals("This is a test buffer")); assertTrue("Wrong contents", testBuffer.toString().equals("more stuff")); try { testBuffer.delete(-5, 2); } catch (IndexOutOfBoundsException e) { } assertTrue("Wrong contents 2", testBuffer.toString().equals( "more stuff")); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/181e940cd92dfff67639d98e991206d375a987ea/StringBufferTest.java/buggy/modules/luni/src/test/java/tests/api/java/lang/StringBufferTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 3733, 6954, 1435, 288, 202, 202, 759, 7766, 364, 707, 2252, 18, 4936, 18, 780, 1892, 202, 202, 759, 2252, 18, 4936, 18, 780, 1892, 18, 3733, 12, 474, 16, 509,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 3733, 6954, 1435, 288, 202, 202, 759, 7766, 364, 707, 2252, 18, 4936, 18, 780, 1892, 202, 202, 759, 2252, 18, 4936, 18, 780, 1892, 18, 3733, 12, 474, 16, 509,...
System.out.println(nullDaughter);
public void toWagonFormat(DataOutputStream out, String extension) throws IOException{ if (out != null){ //dump to output stream //two open brackets + definition of node writeStringToOutput("(("+getNodeDefinition(),out); } else { //dump to Standard out //two open brackets + definition of node System.out.println("(("+getNodeDefinition()); } //add the daughters for (int i=0;i<daughters.length;i++){ if (daughters[i] == null){ String nullDaughter = ""; if (i+1!=daughters.length){ nullDaughter = "((() 0))"; } else { //extension must be added to last daughter if (extension != null && !(extension.equals(""))){ nullDaughter = "((() 0))"+extension; } else { //we are in the root node, add a closing bracket nullDaughter = "((() 0)))"; } } if (out != null){ //dump to output stream writeStringToOutput(nullDaughter,out); } else { //dump to Standard out System.out.println(nullDaughter); } } else { if (i+1!=daughters.length){ daughters[i].toWagonFormat(out,""); } else { //extension must be added to last daughter if (extension != null){ daughters[i].toWagonFormat(out,")"+extension); } else { //we are in the root node, add a closing bracket daughters[i].toWagonFormat(out,")"); } } } } }
18648 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18648/a1c2b90c0df08d97d7fb7df370f46a9c4af5e670/CARTWagonFormat.java/buggy/java/de/dfki/lt/mary/unitselection/cart/CARTWagonFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 358, 59, 346, 265, 1630, 12, 751, 4632, 596, 16, 514, 2710, 13, 1850, 6862, 6862, 1082, 202, 15069, 1860, 95, 5411, 309, 261, 659, 480, 446, 15329, 7734, 368, 8481, 358, 876,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 358, 59, 346, 265, 1630, 12, 751, 4632, 596, 16, 514, 2710, 13, 1850, 6862, 6862, 1082, 202, 15069, 1860, 95, 5411, 309, 261, 659, 480, 446, 15329, 7734, 368, 8481, 358, 876,...
if (in.match('!')) { if (in.match('-')) { if (in.match('-')) {
if (matchChar('!')) { if (matchChar('-')) { if (matchChar('-')) {
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly sensitive to newlines. do { c = in.read(); if (c == '\n') { flags &= ~TSF_DIRTYLINE; if ((flags & TSF_NEWLINES) != 0) break; } } while (isJSSpace(c) || c == '\n'); if (c == EOF_CHAR) return EOF; if (c != '-' && c != '\n') flags |= TSF_DIRTYLINE; // identifier/keyword/instanceof? // watch out for starting with a <backslash> boolean identifierStart; boolean isUnicodeEscapeStart = false; if (c == '\\') { c = in.read(); if (c == 'u') { identifierStart = true; isUnicodeEscapeStart = true; stringBufferTop = 0; } else { identifierStart = false; c = '\\'; in.unread(); } } else { identifierStart = Character.isJavaIdentifierStart((char)c); if (identifierStart) { stringBufferTop = 0; addToString(c); } } if (identifierStart) { boolean containsEscape = isUnicodeEscapeStart; for (;;) { if (isUnicodeEscapeStart) { // strictly speaking we should probably push-back // all the bad characters if the <backslash>uXXXX // sequence is malformed. But since there isn't a // correct context(is there?) for a bad Unicode // escape sequence in an identifier, we can report // an error here. int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); // Next check takes care about c < 0 and bad escape if (escapeVal < 0) { break; } } if (escapeVal < 0) { reportSyntaxError("msg.invalid.escape", null); return ERROR; } addToString(escapeVal); isUnicodeEscapeStart = false; } else { c = in.read(); if (c == '\\') { c = in.read(); if (c == 'u') { isUnicodeEscapeStart = true; containsEscape = true; } else { reportSyntaxError("msg.illegal.character", null); return ERROR; } } else { if (!Character.isJavaIdentifierPart((char)c)) { break; } addToString(c); } } } in.unread(); String str = getStringFromBuffer(); if (!containsEscape) { // OPT we shouldn't have to make a string (object!) to // check if it's a keyword. // Return the corresponding token if it's a keyword int result = stringToKeyword(str); if (result != EOF) { if (result != RESERVED) { return result; } else if (!Context.getContext().hasFeature( Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER)) { return result; } else { // If implementation permits to use future reserved // keywords in violation with the EcmaScript standard, // treat it as name but issue warning Object[] errArgs = { str }; reportSyntaxWarning("msg.reserved.keyword", errArgs); } } } this.string = str; return NAME; } // is it a number? if (isDigit(c) || (c == '.' && isDigit(in.peek()))) { stringBufferTop = 0; int base = 10; if (c == '0') { c = in.read(); if (c == 'x' || c == 'X') { base = 16; c = in.read(); } else if (isDigit(c)) { base = 8; } else { addToString('0'); } } if (base == 16) { while (0 <= xDigitToInt(c)) { addToString(c); c = in.read(); } } else { while ('0' <= c && c <= '9') { /* * We permit 08 and 09 as decimal numbers, which * makes our behavior a superset of the ECMA * numeric grammar. We might not always be so * permissive, so we warn about it. */ if (base == 8 && c >= '8') { Object[] errArgs = { c == '8' ? "8" : "9" }; reportSyntaxWarning("msg.bad.octal.literal", errArgs); base = 10; } addToString(c); c = in.read(); } } boolean isInteger = true; if (base == 10 && (c == '.' || c == 'e' || c == 'E')) { isInteger = false; if (c == '.') { do { addToString(c); c = in.read(); } while (isDigit(c)); } if (c == 'e' || c == 'E') { addToString(c); c = in.read(); if (c == '+' || c == '-') { addToString(c); c = in.read(); } if (!isDigit(c)) { reportSyntaxError("msg.missing.exponent", null); return ERROR; } do { addToString(c); c = in.read(); } while (isDigit(c)); } } in.unread(); String numString = getStringFromBuffer(); double dval; if (base == 10 && !isInteger) { try { // Use Java conversion to number from string... dval = (Double.valueOf(numString)).doubleValue(); } catch (NumberFormatException ex) { Object[] errArgs = { ex.getMessage() }; reportSyntaxError("msg.caught.nfe", errArgs); return ERROR; } } else { dval = ScriptRuntime.stringToNumber(numString, 0, base); } this.number = dval; return NUMBER; } // is it a string? if (c == '"' || c == '\'') { // We attempt to accumulate a string the fast way, by // building it directly out of the reader. But if there // are any escaped characters in the string, we revert to // building it out of a StringBuffer. int quoteChar = c; int val = 0; stringBufferTop = 0; c = in.read(); strLoop: while (c != quoteChar) { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.string.lit", null); return ERROR; } if (c == '\\') { // We've hit an escaped character c = in.read(); switch (c) { case 'b': c = '\b'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break; case 'r': c = '\r'; break; case 't': c = '\t'; break; // \v a late addition to the ECMA spec, // it is not in Java, so use 0xb case 'v': c = 0xb; break; case 'u': { /* * Get 4 hex digits; if the u escape is not * followed by 4 hex digits, use 'u' + the literal * character sequence that follows. */ int escapeStart = stringBufferTop; addToString('u'); int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { continue strLoop; } addToString(c); } // prepare for replace of stored 'u' sequence // by escape value stringBufferTop = escapeStart; c = escapeVal; } break; case 'x': { /* Get 2 hex digits, defaulting to 'x' + literal * sequence, as above. */ c = in.read(); int escapeVal = xDigitToInt(c); if (escapeVal < 0) { addToString('x'); continue strLoop; } else { int c1 = c; c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { addToString('x'); addToString(c1); continue strLoop; } else { // got 2 hex digits c = escapeVal; } } } break; default: if ('0' <= c && c < '8') { val = c - '0'; c = in.read(); if ('0' <= c && c < '8') { val = 8 * val + c - '0'; c = in.read(); if ('0' <= c && c < '8' && val <= 037) { // c is 3rd char of octal sequence only if // the resulting val <= 0377 val = 8 * val + c - '0'; c = in.read(); } } in.unread(); c = val; } } } addToString(c); c = in.read(); } this.string = getStringFromBuffer(); return STRING; } switch (c) { case '\n': return EOL; case ';': return SEMI; case '[': return LB; case ']': return RB; case '{': return LC; case '}': return RC; case '(': return LP; case ')': return RP; case ',': return COMMA; case '?': return HOOK; case ':': return COLON; case '.': return DOT; case '|': if (in.match('|')) { return OR; } else if (in.match('=')) { this.op = BITOR; return ASSIGN; } else { return BITOR; } case '^': if (in.match('=')) { this.op = BITXOR; return ASSIGN; } else { return BITXOR; } case '&': if (in.match('&')) { return AND; } else if (in.match('=')) { this.op = BITAND; return ASSIGN; } else { return BITAND; } case '=': if (in.match('=')) { if (in.match('=')) this.op = SHEQ; else this.op = EQ; return EQOP; } else { this.op = NOP; return ASSIGN; } case '!': if (in.match('=')) { if (in.match('=')) this.op = SHNE; else this.op = NE; return EQOP; } else { this.op = NOT; return UNARYOP; } case '<': /* NB:treat HTML begin-comment as comment-till-eol */ if (in.match('!')) { if (in.match('-')) { if (in.match('-')) { skipLine(); return getToken(); // in place of 'goto retry' } in.unread(); } in.unread(); } if (in.match('<')) { if (in.match('=')) { this.op = LSH; return ASSIGN; } else { this.op = LSH; return SHOP; } } else { if (in.match('=')) { this.op = LE; return RELOP; } else { this.op = LT; return RELOP; } } case '>': if (in.match('>')) { if (in.match('>')) { if (in.match('=')) { this.op = URSH; return ASSIGN; } else { this.op = URSH; return SHOP; } } else { if (in.match('=')) { this.op = RSH; return ASSIGN; } else { this.op = RSH; return SHOP; } } } else { if (in.match('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } } case '*': if (in.match('=')) { this.op = MUL; return ASSIGN; } else { return MUL; } case '/': // is it a // comment? if (in.match('/')) { skipLine(); return getToken(); } if (in.match('*')) { while ((c = in.read()) != -1 && !(c == '*' && in.match('/'))) { ; // empty loop body } if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } return getToken(); // `goto retry' } // is it a regexp? if ((flags & TSF_REGEXP) != 0) { stringBufferTop = 0; while ((c = in.read()) != '/') { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { addToString(c); c = in.read(); } addToString(c); } int reEnd = stringBufferTop; while (true) { if (in.match('g')) addToString('g'); else if (in.match('i')) addToString('i'); else if (in.match('m')) addToString('m'); else break; } if (isAlpha(in.peek())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = new String(stringBuffer, 0, reEnd); this.regExpFlags = new String(stringBuffer, reEnd, stringBufferTop - reEnd); return REGEXP; } if (in.match('=')) { this.op = DIV; return ASSIGN; } else { return DIV; } case '%': this.op = MOD; if (in.match('=')) { return ASSIGN; } else { return MOD; } case '~': this.op = BITNOT; return UNARYOP; case '+': if (in.match('=')) { this.op = ADD; return ASSIGN; } else if (in.match('+')) { return INC; } else { return ADD; } case '-': if (in.match('=')) { this.op = SUB; c = ASSIGN; } else if (in.match('-')) { if (0 == (flags & TSF_DIRTYLINE)) { // treat HTML end-comment after possible whitespace // after line start as comment-utill-eol if (in.match('>')) { skipLine(); return getToken(); } } c = DEC; } else { c = SUB; } flags |= TSF_DIRTYLINE; return c; default: reportSyntaxError("msg.illegal.character", null); return ERROR; } }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/8d78476dde863807579dcd20202decfcfcc9f7f1/TokenStream.java/buggy/js/rhino/src/org/mozilla/javascript/TokenStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, ...
if (visible && decData.visible)
if (visible && decData.visible) {
private void setVisible(FieldDecorationData decData, boolean visible) { // Check the decData visibility flag, since it contains the client's // instructions for visibility. if (visible && decData.visible) decData.label.setVisible(true); else decData.label.setVisible(false); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/DecoratedField.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 16697, 12, 974, 7859, 367, 751, 2109, 751, 16, 1250, 6021, 13, 288, 202, 202, 759, 2073, 326, 2109, 751, 9478, 2982, 16, 3241, 518, 1914, 326, 1004, 1807, 202, 202, 759,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 16697, 12, 974, 7859, 367, 751, 2109, 751, 16, 1250, 6021, 13, 288, 202, 202, 759, 2073, 326, 2109, 751, 9478, 2982, 16, 3241, 518, 1914, 326, 1004, 1807, 202, 202, 759,...
sb.append(path.SEPARATOR);
sb.append(IPath.SEPARATOR);
private String calcText(int index, EditorHistoryItem item) { StringBuffer sb = new StringBuffer(); int mnemonic = index + 1; sb.append(mnemonic); if (mnemonic <= MAX_MNEMONIC_SIZE) { sb.insert(sb.length() - (mnemonic + "").length(), '&'); //$NON-NLS-1$ } sb.append(" "); //$NON-NLS-1$ // If the input text is a path, get the filename from the // path's last segment; otherwise, use the input name. String fileName; String pathName = item.getInput().getToolTipText(); IPath path = new Path(pathName); if (path.segmentCount() > 1) { fileName = path.lastSegment(); path = path.removeLastSegments(1); pathName = path.toString(); } else { fileName = item.getInput().getName(); } if ((fileName.length() + pathName.length()) <= (MAX_TEXT_LENGTH - 4)) { // entire item name fits within maximum length sb.append(fileName); if (path.segmentCount() != 0) { sb.append(" ["); //$NON-NLS-1$ sb.append(pathName); sb.append("]"); //$NON-NLS-1$ } } else { // need to shorten the item name int length = fileName.length(); if (length > MAX_TEXT_LENGTH) { // file name does not fit within length, truncate it sb.append(fileName.substring(0, MAX_TEXT_LENGTH - 3)); sb.append("..."); //$NON-NLS-1$ } else if (length > MAX_TEXT_LENGTH - 7) { sb.append(fileName); } else { sb.append(fileName); int segmentCount = path.segmentCount(); if (segmentCount > 0) { length += 7; // 7 chars are taken for " [...]" sb.append(" ["); //$NON-NLS-1$ // Add first n segments that fit int i = 0; while (i < segmentCount && length < MAX_TEXT_LENGTH) { String segment = path.segment(i); if (length + segment.length() < MAX_TEXT_LENGTH) { sb.append(segment); sb.append(path.SEPARATOR); length += segment.length() + 1; i++; } else if (i == 0) { // append at least part of the first segment sb.append(segment.substring(0, MAX_TEXT_LENGTH - length)); length = MAX_TEXT_LENGTH; break; } else { break; } } sb.append("..."); //$NON-NLS-1$ i = segmentCount - 1; // Add last n segments that fit while (i > 0 && length < MAX_TEXT_LENGTH) { String segment = path.segment(i); if (length + segment.length() < MAX_TEXT_LENGTH) { sb.append(path.SEPARATOR); sb.append(segment); length += segment.length() + 1; i--; } else { break; } } sb.append("]"); //$NON-NLS-1$ } } } return sb.toString(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/02ba77e383bb608847bcbeec7cbb2c08f1e26a2a/ReopenEditorMenu.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ReopenEditorMenu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 7029, 1528, 12, 474, 770, 16, 18451, 5623, 1180, 761, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 5621, 202, 202, 474, 12883, 20918, 273, 770, 397, 404, 31, 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, 514, 7029, 1528, 12, 474, 770, 16, 18451, 5623, 1180, 761, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 5621, 202, 202, 474, 12883, 20918, 273, 770, 397, 404, 31, 202,...
getTabbedPane().setDisabledIconAt(myIndex, value.getIcon());
getTabbedPane().setDisabledIconAt(myIndex, icon);
protected void setValueImpl(final RadComponent component, final IconDescriptor value) throws Exception { LwTabbedPane.Constraints constraints = getConstraintsForComponent(component); if (myDisabledIcon) { constraints.myDisabledIcon = value; getTabbedPane().setDisabledIconAt(myIndex, value.getIcon()); } else { constraints.myIcon = value; getTabbedPane().setIconAt(myIndex, value.getIcon()); } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/e744054a2108fcd1d129917e6cdca01d6f803782/RadTabbedPane.java/clean/ui-designer/impl/com/intellij/uiDesigner/radComponents/RadTabbedPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 5524, 2828, 12, 6385, 16378, 1841, 1794, 16, 727, 16011, 3187, 460, 13, 1216, 1185, 288, 1377, 511, 91, 5661, 2992, 8485, 18, 4878, 6237, 273, 336, 4878, 1290, 1841, 12, 4652, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5524, 2828, 12, 6385, 16378, 1841, 1794, 16, 727, 16011, 3187, 460, 13, 1216, 1185, 288, 1377, 511, 91, 5661, 2992, 8485, 18, 4878, 6237, 273, 336, 4878, 1290, 1841, 12, 4652, ...
if (result != null && result.getValue(0).isInteger())
if (result != null && result.getValue(0).isNumeric())
public long lookupValue(String name, String type, String value_str, boolean isnull) throws KettleDatabaseException { String tablename = "R_VALUE"; Row table = new Row(); table.addValue(new Value("NAME", name)); table.addValue(new Value("VALUE_TYPE", type)); table.addValue(new Value("VALUE_STR", value_str)); table.addValue(new Value("IS_NULL", isnull)); String sql = "SELECT ID_VALUE FROM " + tablename + " "; sql += "WHERE NAME = ? "; sql += "AND VALUE_TYPE = ? "; sql += "AND VALUE_STR = ? "; sql += "AND IS_NULL = ? "; Row result = database.getOneRow(sql, table); if (result != null && result.getValue(0).isInteger()) return result.getValue(0).getInteger(); else return -1; }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/147b108a75006a29393f37f21936a7d8c11744d1/Repository.java/buggy/kettle/src/be/ibridge/kettle/repository/Repository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1525, 3689, 620, 12, 780, 508, 16, 514, 618, 16, 514, 460, 67, 701, 16, 1250, 353, 2011, 13, 1216, 1475, 278, 5929, 4254, 503, 202, 95, 202, 202, 780, 19096, 273, 315, 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, 225, 202, 482, 1525, 3689, 620, 12, 780, 508, 16, 514, 618, 16, 514, 460, 67, 701, 16, 1250, 353, 2011, 13, 1216, 1475, 278, 5929, 4254, 503, 202, 95, 202, 202, 780, 19096, 273, 315, 54, ...
protected boolean isAntialiasedClip(AffineTransform usr2dev, RenderingHints hints, Shape clip){ // // Antialias clip if: // + Antialiasing is on *or* rendering quality is on // *and* // + clip is not null // *and* // + clip is not a rectangle in device space. // // This leaves out the case where the node clip is a // rectangle and the current clip (i.e., the intersection // of the current Graphics2D's clip and this node's clip) // is not a rectangle. // boolean antialiased = false; if((hints.get(RenderingHints.KEY_ANTIALIASING) == RenderingHints.VALUE_ANTIALIAS_ON) || (hints.get(RenderingHints.KEY_RENDERING) == RenderingHints.VALUE_RENDER_QUALITY)){ if(!(clip instanceof Rectangle2D && usr2dev.getShearX() == 0 && usr2dev.getShearY() == 0)){ antialiased = true; } } return antialiased; }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/8d03ce5e4f1f836a7a182162a820e4f42e2f60de/AbstractGraphicsNode.java/buggy/sources/org/apache/batik/gvt/AbstractGraphicsNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 6494, 291, 14925, 649, 77, 8905, 15339, 12, 13785, 558, 4059, 13640, 22, 5206, 16, 14261, 7002, 22929, 87, 16, 20375, 705, 3169, 15329, 1307, 14925, 649, 1795, 14161, 430, 2207, 15, 14925,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 6494, 291, 14925, 649, 77, 8905, 15339, 12, 13785, 558, 4059, 13640, 22, 5206, 16, 14261, 7002, 22929, 87, 16, 20375, 705, 3169, 15329, 1307, 14925, 649, 1795, 14161, 430, 2207, 15, 14925,...
rubyFrame = rubyFrame.getPrev();
rubyFrame = getRubyFrame().getPrev();
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(ruby); pushClass(); RubyBlock block = rubyBlock.getTmp(); Frame frame = block.frame; frame.setPrev(rubyFrame); rubyFrame = frame; VALUE old_cref = ruby_cref; ruby_cref = (NODE)rubyFrame.getCbase(); RubyScope oldScope = ruby.rubyScope; ruby.rubyScope = block.scope; rubyBlock.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { dynamicVars = new RubyVarmap(null, null, block.dynamicVars); } else { dynamicVars = block.dynamicVars; } ruby_class = (klass != null) ? klass : block.klass; if (klass == null) { self = (RubyObject)block.self; } NODE node = block.body; if (block.var != null) { // try { if (block.var == NODE.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() != 0) { throw new RubyArgumentException("wrong # of arguments ("+ ((RubyArray)value).length() + " for 0)"); } } else { if (block.var.nd_type() == NODE_MASGN) { massign(self, block.var, value, acheck); } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() == 1) { value = ((RubyArray)value).entry(0); } assign(self, block.var, value, acheck); } } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() == 1) { value = ((RubyArray)value).entry(0); } } rubyIter.push(block.iter); while (true) { try { if (node == null) { result = ruby.getNil(); } else if (node.nd_type() == NODE_CFUNC || node.nd_type() == NODE_IFUNC) { if (value == null) { value = RubyArray.m_newArray(ruby, 0); } result = ((RubyCallbackMethod)node.nd_cfnc()).execute(value, new RubyObject[] {(RubyObject)node.nd_tval(), self}, ruby); } else { result = eval(self, node); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = ruby.getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: rubyIter.pop(); popClass(); RubyVarmap.pop(ruby); rubyBlock.setTmp(block); rubyFrame = rubyFrame.getPrev(); ruby_cref = (NODE)old_cref; // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); ruby.rubyScope = oldScope; /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/f220dcff8a7e427e32a7f1f1bc78f38876b83620/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 2824, 20, 12, 54, 10340, 921, 460, 16, 19817, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 279, 1893, 13, 288, 3639, 19817, 921, 563, 273, 22155, 18, 588, 12616, 5621, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 2824, 20, 12, 54, 10340, 921, 460, 16, 19817, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 279, 1893, 13, 288, 3639, 19817, 921, 563, 273, 22155, 18, 588, 12616, 5621, 7...
xname = name + ".scm";
xname = fname + ".scm";
public final Object apply2 (Object arg1, Object arg2) throws WrongArguments, WrongType, GenericError, UnboundSymbol { Environment env = (Environment) arg2; String name = arg1.toString (); if (name.endsWith (".zip")) return loadCompiled (name, env); if (name.endsWith (".scm")) return loadSource (name, env); if (name.endsWith (".class")) { name = name.substring (0, name.length () - 6); return loadClassFile (name.replace ('/', '.'), env); } File file = new File (name); if (file.exists ()) { try { FileInputStream fstream = new FileInputStream (name); InPort port = new InPort (fstream); int char0 = port.readChar (); if (char0 == -1) return Sequence.eofValue; if (char0 == 'P') { int char1 = port.readChar (); if (char1 == 'K') { int char2 = port.readChar (); if (char2 == '\003') { int char3 = port.readChar (); if (char3 == '\004') { port.close (); return loadCompiled (name, env); } port.unreadChar (); // unread char3 } port.unreadChar (); // unread char2 } port.unreadChar (); // unread char 1 } port.unreadChar (); // unread char 0 return loadSource (port, env); } catch (java.io.FileNotFoundException e) { throw new GenericError ("load: file not readable: " + name); } catch (java.io.IOException e) { throw new GenericError ("I/O exception in load: "+e.toString ()); } } else { String xname = name + ".zip"; file = new File (xname); if (file.exists ()) return loadCompiled (xname, env); xname = name + ".class"; file = new File (xname); if (file.exists ()) return loadClassFile (xname, env); xname = name + ".scm"; file = new File (xname); if (file.exists ()) return loadSource (xname, env); } throw new GenericError ("load: " + name + " - not found"); }
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/e551f56ebbb1a7cb851b640d23e831ce4bc63fa1/load.java/clean/kawa/standard/load.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1033, 2230, 22, 261, 921, 1501, 21, 16, 1033, 1501, 22, 13, 4202, 1216, 24668, 4628, 16, 24668, 559, 16, 7928, 668, 16, 1351, 3653, 5335, 225, 288, 565, 7518, 1550, 273, 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, 727, 1033, 2230, 22, 261, 921, 1501, 21, 16, 1033, 1501, 22, 13, 4202, 1216, 24668, 4628, 16, 24668, 559, 16, 7928, 668, 16, 1351, 3653, 5335, 225, 288, 565, 7518, 1550, 273, 261,...
item.setText(parameter + " " + argument);
String newText; item.setText(StringUtilities.toCommandlineParameterFormat(parameter, argument));
protected void changeArgument() { int[] selection = this.includeTable.getSelectionIndices(); if (selection.length != 1) return; int index = selection[0]; InputDialog argumentDialog = new InputDialog(getShell(), PreferencesMessages.getString("LaunchPreferencesPage.enterArgumentShort"), Preferences.getString("IgnorePreferencePage.enterPatternLong"), (String) this.allArguments.elementAt(index), null); //$NON-NLS-1$ //$NON-NLS-2$ argumentDialog.open(); if (argumentDialog.getReturnCode() != Window.OK) return; String argument = argumentDialog.getValue(); String parameter = (String) this.allParameter.elementAt(index); TableItem item = this.includeTable.getItem(index); item.setText(parameter + " " + argument); this.allArguments.setElementAt(argument, index); this.updateLaunchConfigurationDialog(); }
47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/5527df38ebdd8fa6e34f6687c6663e99666c3d17/CommonWOArgumentsTab.java/clean/projects/wolips/plugins/org.objectstyle.wolips.launching/java/org/objectstyle/wolips/launching/CommonWOArgumentsTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2549, 1379, 1435, 288, 202, 202, 474, 8526, 4421, 273, 333, 18, 6702, 1388, 18, 588, 6233, 8776, 5621, 202, 202, 430, 261, 10705, 18, 2469, 480, 404, 13, 1082, 202, 2463...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2549, 1379, 1435, 288, 202, 202, 474, 8526, 4421, 273, 333, 18, 6702, 1388, 18, 588, 6233, 8776, 5621, 202, 202, 430, 261, 10705, 18, 2469, 480, 404, 13, 1082, 202, 2463...
switchItem( oldEquipment[i], KoLCharacter.getEquipment( i ) );
switchItem( oldEquipment[i], equipment[i] );
public static void parseEquipment( String responseText ) { AdventureResult [] oldEquipment = new AdventureResult[9]; int oldFakeHands = KoLCharacter.getFakeHands(); // Ensure that the inventory stays up-to-date by switching // items around, as needed. for ( int i = 0; i < 9; ++i ) oldEquipment[i] = KoLCharacter.getEquipment( i ); AdventureResult [] equipment = new AdventureResult[9]; for ( int i = 0; i < equipment.length; ++i ) equipment[i] = UNEQUIP; int fakeHands = 0; String name; Matcher equipmentMatcher; if ( responseText.indexOf( "unequip&type=hat") != -1 ) { equipmentMatcher = HAT_PATTERN.matcher( responseText ); if ( equipmentMatcher.find() ) { name = equipmentMatcher.group(1).trim(); if ( EquipmentDatabase.contains( name ) ) equipment[ KoLCharacter.HAT ] = new AdventureResult( name, 1, false ); KoLmafia.getDebugStream().println( "Hat: " + equipment[ KoLCharacter.HAT ] ); } } if ( responseText.indexOf( "unequip&type=weapon") != -1 ) { equipmentMatcher = WEAPON_PATTERN.matcher( responseText ); if ( equipmentMatcher.find() ) { name = equipmentMatcher.group(1).trim(); if ( EquipmentDatabase.contains( name ) ) equipment[ KoLCharacter.WEAPON ] = new AdventureResult( equipmentMatcher.group(1).trim(), 1, false ); KoLmafia.getDebugStream().println( "Weapon: " + equipment[ KoLCharacter.WEAPON ] ); } } if ( responseText.indexOf( "unequip&type=offhand") != -1 ) { equipmentMatcher = OFFHAND_PATTERN.matcher( responseText ); if ( equipmentMatcher.find() ) { name = equipmentMatcher.group(1).trim(); if ( EquipmentDatabase.contains( name ) ) equipment[ KoLCharacter.OFFHAND ] = new AdventureResult( equipmentMatcher.group(1).trim(), 1, false ); KoLmafia.getDebugStream().println( "Off-hand: " + equipment[ KoLCharacter.OFFHAND ] ); } } if ( responseText.indexOf( "unequip&type=shirt") != -1 ) { equipmentMatcher = SHIRT_PATTERN.matcher( responseText ); if ( equipmentMatcher.find() ) { name = equipmentMatcher.group(1).trim(); if ( EquipmentDatabase.contains( name ) ) equipment[ KoLCharacter.SHIRT ] = new AdventureResult( equipmentMatcher.group(1).trim(), 1, false ); KoLmafia.getDebugStream().println( "Shirt: " + equipment[ KoLCharacter.SHIRT ] ); } } if ( responseText.indexOf( "unequip&type=pants") != -1 ) { equipmentMatcher = PANTS_PATTERN.matcher( responseText ); if ( equipmentMatcher.find() ) { name = equipmentMatcher.group(1).trim(); if ( EquipmentDatabase.contains( name ) ) equipment[ KoLCharacter.PANTS ] = new AdventureResult( equipmentMatcher.group(1).trim(), 1, false ); KoLmafia.getDebugStream().println( "Pants: " + equipment[ KoLCharacter.PANTS ] ); } } if ( responseText.indexOf( "unequip&type=acc1" ) != -1 ) { equipmentMatcher = ACC1_PATTERN.matcher( responseText ); if ( equipmentMatcher.find() ) { name = equipmentMatcher.group(1).trim(); if ( EquipmentDatabase.contains( name ) ) equipment[ KoLCharacter.ACCESSORY1 ] = new AdventureResult( equipmentMatcher.group(1).trim(), 1, false ); KoLmafia.getDebugStream().println( "Accessory 1: " + equipment[ KoLCharacter.ACCESSORY1 ] ); } } if ( responseText.indexOf( "unequip&type=acc2" ) != -1 ) { equipmentMatcher = ACC2_PATTERN.matcher( responseText ); if ( equipmentMatcher.find() ) { name = equipmentMatcher.group(1).trim(); if ( EquipmentDatabase.contains( name ) ) equipment[ KoLCharacter.ACCESSORY2 ] = new AdventureResult( equipmentMatcher.group(1).trim(), 1, false ); KoLmafia.getDebugStream().println( "Accessory 2: " + equipment[ KoLCharacter.ACCESSORY2 ] ); } } if ( responseText.indexOf( "unequip&type=acc3" ) != -1 ) { equipmentMatcher = ACC3_PATTERN.matcher( responseText ); if ( equipmentMatcher.find() ) { name = equipmentMatcher.group(1).trim(); if ( EquipmentDatabase.contains( name ) ) equipment[ KoLCharacter.ACCESSORY3 ] = new AdventureResult( equipmentMatcher.group(1).trim(), 1, false ); KoLmafia.getDebugStream().println( "Accessory 3: " + equipment[ KoLCharacter.ACCESSORY3 ] ); } } if ( responseText.indexOf( "unequip&type=familiarequip" ) != -1 ) { equipmentMatcher = FAMILIARITEM_PATTERN.matcher( responseText ); if ( equipmentMatcher.find() ) { name = equipmentMatcher.group(1).trim(); if ( EquipmentDatabase.contains( name ) ) equipment[ KoLCharacter.FAMILIAR ] = new AdventureResult( equipmentMatcher.group(1).trim(), 1, false ); KoLmafia.getDebugStream().println( "Familiar: " + equipment[ KoLCharacter.FAMILIAR ] ); } } int index = 0; while ( ( index = responseText.indexOf( "unequip&type=fakehand", index ) ) != -1 ) { ++fakeHands; index += 21; } Matcher outfitsMatcher = OUTFITLIST_PATTERN.matcher( responseText ); LockableListModel outfits = outfitsMatcher.find() ? SpecialOutfit.parseOutfits( outfitsMatcher.group() ) : null; KoLCharacter.setEquipment( equipment ); KoLCharacter.setOutfits( outfits ); EquipmentDatabase.updateOutfits(); KoLCharacter.setFakeHands( fakeHands ); if ( !LoginRequest.isInstanceRunning() ) { for ( int i = 0; i < KoLCharacter.FAMILIAR; ++i ) switchItem( oldEquipment[i], KoLCharacter.getEquipment( i ) ); // Adjust inventory of fake hands int newFakeHands = KoLCharacter.getFakeHands(); if ( oldFakeHands > newFakeHands ) AdventureResult.addResultToList( inventory, new AdventureResult( FAKE_HAND, newFakeHands - oldFakeHands ) ); CharpaneRequest.getInstance().run(); } // Skip past equipped gear KoLCharacter.recalculateAdjustments(); }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/94beae021f182ff597559a28be2b32c2f54f9aeb/EquipmentRequest.java/clean/src/net/sourceforge/kolmafia/EquipmentRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1109, 13142, 11568, 12, 514, 23630, 262, 202, 95, 202, 202, 1871, 616, 594, 1253, 5378, 1592, 13142, 11568, 273, 394, 4052, 616, 594, 1253, 63, 29, 15533, 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, 760, 918, 1109, 13142, 11568, 12, 514, 23630, 262, 202, 95, 202, 202, 1871, 616, 594, 1253, 5378, 1592, 13142, 11568, 273, 394, 4052, 616, 594, 1253, 63, 29, 15533, 202, 202, ...
if(call_stack_setter != null)
if(deadlock_detection && call_stack_setter == null) { call_stack_setter=new CallStackSetter();
void startScheduler() { if(scheduler == null) { scheduler=new Scheduler(); if(call_stack_setter != null) scheduler.setListener(call_stack_setter); if(concurrent_processing) scheduler.setConcurrentProcessing(concurrent_processing); scheduler.start(); } }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/e1b0e6f5219ee3ea72f9fe629cdff8fe872c76ce/RequestCorrelator.java/clean/src/org/jgroups/blocks/RequestCorrelator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 787, 11870, 1435, 288, 3639, 309, 12, 19972, 422, 446, 13, 288, 5411, 8129, 33, 2704, 12620, 5621, 5411, 309, 12, 22097, 739, 67, 27515, 597, 745, 67, 3772, 67, 18062, 422, 446, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 787, 11870, 1435, 288, 3639, 309, 12, 19972, 422, 446, 13, 288, 5411, 8129, 33, 2704, 12620, 5621, 5411, 309, 12, 22097, 739, 67, 27515, 597, 745, 67, 3772, 67, 18062, 422, 446, 13...
return "AnalysisChain"+(analysisChainId==null ? ":Hash"+this.hashCode() : ":"+analysisChainId);
return "AnalysisChain"+(analysisChainId==null ? ":Hash_"+this.hashCode() : ":Id_"+analysisChainId);
public String toString(){ return "AnalysisChain"+(analysisChainId==null ? ":Hash"+this.hashCode() : ":"+analysisChainId); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/AnalysisChain.java/clean/components/common/src/ome/model/AnalysisChain.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 95, 202, 2463, 315, 9418, 3893, 6, 15, 12, 12746, 3893, 548, 631, 2011, 692, 6398, 2310, 9548, 15, 2211, 18, 2816, 1085, 1435, 294, 6398, 548, 9548, 15, 12746, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 95, 202, 2463, 315, 9418, 3893, 6, 15, 12, 12746, 3893, 548, 631, 2011, 692, 6398, 2310, 9548, 15, 2211, 18, 2816, 1085, 1435, 294, 6398, 548, 9548, 15, 12746, 38...
ClientGetter cg = new ClientGetter(NodeUpdater.this, node.chkFetchScheduler, node.sskFetchScheduler, revocationURI, ctxRevocation, RequestStarter.MAXIMUM_PRIORITY_CLASS, NodeUpdater.this, null);
ClientGetter cg; synchronized(this) { if(revocationGetter != null && !(revocationGetter.isCancelled() || revocationGetter.isFinished())) { Logger.minor(this, "Not queueing another revocation fetcher yet"); return; } else { Logger.minor(this, "fetcher="+revocationGetter); if(revocationGetter != null) Logger.minor(this, "revocation fetcher: cancelled="+revocationGetter.isCancelled()+", finished="+revocationGetter.isFinished()); cg = revocationGetter = new ClientGetter(NodeUpdater.this, node.chkFetchScheduler, node.sskFetchScheduler, revocationURI, ctxRevocation, RequestStarter.MAXIMUM_PRIORITY_CLASS, NodeUpdater.this, null); Logger.minor(this, "Queued another revocation fetcher"); } }
private void queueFetchRevocation(long delay) { node.ps.queueTimedJob(new Runnable() { // maybe a FastRunnable? FIXME public void run() { try { // We've got the data, so speed things up a bit. ClientGetter cg = new ClientGetter(NodeUpdater.this, node.chkFetchScheduler, node.sskFetchScheduler, revocationURI, ctxRevocation, RequestStarter.MAXIMUM_PRIORITY_CLASS, NodeUpdater.this, null); cg.start(); } catch (FetchException e) { Logger.error(this, "Not able to start the revocation fetcher."); blow("Cannot fetch the auto-update URI"); } } }, delay); }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/5859c6306e314e2f206e8b2a0755dd48185083d4/NodeUpdater.java/clean/src/freenet/node/updater/NodeUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2389, 5005, 28691, 12, 5748, 4624, 13, 288, 202, 202, 2159, 18, 1121, 18, 4000, 19336, 2278, 12, 2704, 10254, 1435, 288, 368, 6944, 279, 9545, 20013, 35, 9852, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2389, 5005, 28691, 12, 5748, 4624, 13, 288, 202, 202, 2159, 18, 1121, 18, 4000, 19336, 2278, 12, 2704, 10254, 1435, 288, 368, 6944, 279, 9545, 20013, 35, 9852, 1082, 202, ...