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
setValues("");
public void createControl(Composite parent) { Composite topComp = new Composite(parent, SWT.NONE); GridLayout topLayout = new GridLayout(); topLayout.numColumns = 3; topLayout.marginWidth = 0; topLayout.marginHeight = 0; topComp.setLayout(topLayout); String[] cougaarNames = getCougaarVersions(); Label cougaarSelectionLabel = new Label(topComp, SWT.NONE); cougaarSelectionLabel.setText(CougaarPreferencesMessages.getString( "CougaarConfigurationBlock.cougaarVersion")); cougaarSelectionLabel.setLayoutData(new GridData()); fCougaarCombo = new Combo(topComp, SWT.READ_ONLY); if (cougaarNames.length > 0) { fCougaarCombo.setItems(cougaarNames); } setValues(""); fCougaarCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); fCougaarCombo.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent evt) { handleCougaarComboBoxModified(); } }); fAddCougaarInstall = new Button(topComp, SWT.NONE); fAddCougaarInstall.setText(CougaarUIMessages.getString("CougaarCapabilityConfigurationPage.newInstallButton")); fAddCougaarInstall.setLayoutData(new GridData()); fAddCougaarInstall.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent evt) { handleAddButtonSelected(); } }); DialogField.createEmptySpace(topComp, 2); control = topComp; setControl(topComp); }
11868 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11868/bfd034a912c1e66ef157865c5c169139dc90d0b1/CougaarCapabilityConfigurationPage.java/clean/cougaaride/com.cougaarsoftware.cougaar.ide.ui/src/com/cougaarsoftware/cougaar/ide/ui/wizards/CougaarCapabilityConfigurationPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 27466, 2932, 8863, 27466, 2932, 8863, 27466, 2932, 8863, 27466, 2932, 8863, 1071, 542, 1972, 2932, 8863, 918, 542, 1972, 2932, 8863, 752, 3367, 12, 799, 1724, 281, 278, 1972, 2932, 8863, 982, 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, 27466, 2932, 8863, 27466, 2932, 8863, 27466, 2932, 8863, 27466, 2932, 8863, 1071, 542, 1972, 2932, 8863, 918, 542, 1972, 2932, 8863, 752, 3367, 12, 799, 1724, 281, 278, 1972, 2932, 8863, 982, 13...
System.out.println("record = " + sb.toString());
public String getStringFromSOAPMessage(String testNumber) { //D:\Projects\LSF\Axis2\Axis1.0\modules\samples\target\Repository// File file = new File("D:\\Projects\\LSF\\Axis2\\Axis1.0\\modules\\samples/test-resources\\SOAP12Testing\\RequestMessages\\SOAP12ReqT" + testNumber + ".xml"); File file = new File("./test-resources\\SOAP12Testing\\RequestMessages\\SOAP12ReqT" + testNumber + ".xml"); try { FileInputStream stream = new FileInputStream(file); BufferedInputStream bf = new BufferedInputStream(stream); DataInputStream ds = new DataInputStream(bf); StringBuffer sb = new StringBuffer(); String record; while ((record = ds.readLine()) != null) { sb.append(record.trim()); } System.out.println("record = " + sb.toString()); return sb.toString(); } catch (Exception e) { return ""; } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/23fd1c210dc5fa0f245336ecf890d6fd03b277d3/SOAPCreater.java/buggy/modules/samples/src/org/apache/axis2/soap12testing/client/SOAPCreater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 4997, 1265, 27952, 1079, 12, 780, 1842, 1854, 13, 288, 540, 368, 40, 5581, 15298, 64, 3045, 42, 64, 6558, 22, 64, 6558, 21, 18, 20, 64, 6400, 64, 7319, 64, 3299, 64, 3305, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 4997, 1265, 27952, 1079, 12, 780, 1842, 1854, 13, 288, 540, 368, 40, 5581, 15298, 64, 3045, 42, 64, 6558, 22, 64, 6558, 21, 18, 20, 64, 6400, 64, 7319, 64, 3299, 64, 3305, ...
distribution = new ExponentialDistribution(exponentialMean);
distribution = new ExponentialDistribution(1.0 / exponentialMean);
private void setupChart() { chart.removeAllPlots(); int priorType; if (parameter.isNodeHeight) { if (rootHeightPriorCombo.getSelectedIndex() == 0) { return; } else { priorType = rootHeightPriorCombo.getSelectedIndex() - 1; } } else { priorType = priorCombo.getSelectedIndex(); } Distribution distribution = null; double offset = 0.0; switch (priorType) { case BeautiOptions.UNIFORM_PRIOR: return; case BeautiOptions.EXPONENTIAL_PRIOR: double exponentialMean = argumentFields[2].getValue().doubleValue(); offset = argumentFields[3].getValue().doubleValue(); distribution = new ExponentialDistribution(exponentialMean); break; case BeautiOptions.NORMAL_PRIOR: double normalMean = argumentFields[4].getValue().doubleValue(); double normalStdev = argumentFields[5].getValue().doubleValue(); distribution = new NormalDistribution(normalMean, normalStdev); break; case BeautiOptions.LOG_NORMAL_PRIOR: double logNormalMean = argumentFields[6].getValue().doubleValue(); double logNormalStdev = argumentFields[7].getValue().doubleValue(); offset = argumentFields[8].getValue().doubleValue(); distribution = new LogNormalDistribution(logNormalMean, logNormalStdev); break; case BeautiOptions.GAMMA_PRIOR: double gammaAlpha = argumentFields[9].getValue().doubleValue(); double gammaBeta = argumentFields[10].getValue().doubleValue(); offset = argumentFields[11].getValue().doubleValue(); distribution = new GammaDistribution(gammaAlpha, gammaBeta); break; case BeautiOptions.JEFFREYS_PRIOR: break; default: throw new IllegalArgumentException("Unknown prior index"); } chart.addPlot(new PDFPlot(distribution, offset)); quantileText.setText(formatter.format(distribution.quantile(0.025)) + "\n" +formatter.format(distribution.quantile(0.05)) + "\n" +formatter.format(distribution.quantile(0.5)) + "\n" +formatter.format(distribution.quantile(0.95)) + "\n" +formatter.format(distribution.quantile(0.975))); }
49053 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49053/2e4956137c045a079aea60b931ef678a59d9987e/PriorDialog.java/buggy/branches/1.4/src/dr/app/beauti/PriorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3875, 7984, 1435, 288, 202, 202, 11563, 18, 4479, 1595, 29311, 5621, 202, 202, 474, 6432, 559, 31, 202, 202, 430, 261, 6775, 18, 291, 907, 2686, 13, 288, 1082, 202, 430,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 7984, 1435, 288, 202, 202, 11563, 18, 4479, 1595, 29311, 5621, 202, 202, 474, 6432, 559, 31, 202, 202, 430, 261, 6775, 18, 291, 907, 2686, 13, 288, 1082, 202, 430,...
} else { return (new Path(pathName)).makeAbsolute();
public IPath getContainerFullPath() { if (allowNewContainerName) { String pathName = containerNameField.getText(); if (pathName == null || pathName.length() < 1) { return null; } else { //The user may not have made this absolute so do it for them return (new Path(pathName)).makeAbsolute(); } } else { if (selectedContainer == null) { return null; } else { return selectedContainer.getFullPath(); } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/8e7c72ceda3ed80aa8d03a8921de32470f1b8c25/ContainerSelectionGroup.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerSelectionGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 743, 9272, 24173, 1435, 288, 3639, 309, 261, 5965, 1908, 2170, 461, 13, 288, 5411, 514, 22943, 273, 20408, 974, 18, 588, 1528, 5621, 5411, 309, 261, 803, 461, 422, 446, 747, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 743, 9272, 24173, 1435, 288, 3639, 309, 261, 5965, 1908, 2170, 461, 13, 288, 5411, 514, 22943, 273, 20408, 974, 18, 588, 1528, 5621, 5411, 309, 261, 803, 461, 422, 446, 747, ...
ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) );
ResourceBundle.getBundle( Messages.ENGINE, rtc.getULocale( ).toLocale( ) ) );
public final int computeTicks( IDisplayServer xs, Label la, int iLabelLocation, int iOrientation, double dStart, double dEnd, boolean bConsiderStartEndLabels, AllAxes aax ) throws ChartException { int nTicks = 0; double dLength = 0; int iDirection = ( iScaleDirection == AUTO ) ? ( ( iOrientation == HORIZONTAL ) ? FORWARD : BACKWARD ) : iScaleDirection; DataSetIterator dsi = getData( ); if ( bConsiderStartEndLabels ) { computeAxisStartEndShifts( xs, la, iOrientation, iLabelLocation, aax ); dStart += dStartShift * iDirection; dEnd += dEndShift * -iDirection; } if ( ( iType & TEXT ) == TEXT || bCategoryScale ) { nTicks = dsi.size( ) + 1; dLength = Math.abs( dStart - dEnd ); } else if ( ( iType & NUMERICAL ) == NUMERICAL ) { nTicks = getTickCount( ); dLength = Math.abs( dStart - dEnd ); } else if ( ( iType & DATE_TIME ) == DATE_TIME ) { final CDateTime cdt1 = (CDateTime) oMinimum; final CDateTime cdt2 = (CDateTime) oMaximum; final double dNumberOfSteps = Math.ceil( CDateTime.computeDifference( cdt2, cdt1, asInteger( oUnit ) ) ); nTicks = (int) ( dNumberOfSteps / asInteger( oStep ) ) + 1; dLength = Math.abs( dStart - dEnd ); } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.unknown.axis.type.tick.computations", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); } final double dTickGap = dLength / ( nTicks - 1 ) * iDirection; double d = dStart + dTickGap; final double[] da = new double[nTicks]; for ( int i = 1; i < nTicks - 1; i++, d += dTickGap ) { da[i] = d; } da[0] = dStart; da[nTicks - 1] = dEnd; setTickCordinates( null ); setEndPoints( dStart, dEnd ); setTickCordinates( da ); baTickLabelVisible = checkTickLabelsVisibility( xs, la, iLabelLocation ); return nTicks; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ae8909f5c697c610266e491d0af9a02eed14e2e4/AutoScale.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/AutoScale.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 509, 3671, 16610, 12, 1599, 291, 1601, 2081, 9280, 16, 5287, 7125, 16, 1082, 202, 474, 277, 2224, 2735, 16, 509, 277, 14097, 16, 1645, 302, 1685, 16, 1645, 302, 1638, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 509, 3671, 16610, 12, 1599, 291, 1601, 2081, 9280, 16, 5287, 7125, 16, 1082, 202, 474, 277, 2224, 2735, 16, 509, 277, 14097, 16, 1645, 302, 1685, 16, 1645, 302, 1638, 16,...
public CustomizerEvent createCustomizerEvent(MouseEvent e) { return createCustomizerEvent(e, 0, 0, 1, 0);
public Rectangle createRelRectangle(MouseEvent e) { return createRelRectangle(e, 0, 0, 1, 0);
public StateManager(final JCustomizer customizer){ this.customizer = customizer; normalState = new DefaultState(customizer){ public void mousePressed(MouseEvent e) { JCustomizerPane pane = (JCustomizerPane) customizer.getParent(); if (e.isControlDown()){ pane.getSelectionManager().select(customizer, e.getPoint()); } else { pane.getSelectionManager().singleSelect(customizer, e.getPoint()); } } }; selectedState = new DefaultState(customizer, Color.BLUE){ // private final Border LINE_BORDER = BorderFactory.createLineBorder(Color.BLUE); public void mousePressed(MouseEvent e) { JCustomizerPane pane = (JCustomizerPane) customizer.getParent(); if (e.isControlDown()){ pane.getSelectionManager().deselect(customizer); } else { pane.getSelectionManager().singleSelect(customizer, e.getPoint()); } } // public void applyBorder(){ // customizer.applyBorder(LINE_BORDER); // } }; moveState = new BoundState(customizer){ public void applyCursor(){ customizer.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR)); } public CustomizerEvent createCustomizerEvent(MouseEvent e) { return createCustomizerEvent(e, 1, 1, 0, 0); } }; nResizeState = new ResizeState(customizer){ public void applyCursor(){ customizer.setCursor(Cursor.getPredefinedCursor(Cursor.N_RESIZE_CURSOR)); } public Handle getHandle(){ return getHandleBorder().getNHandle(); } public CustomizerEvent createCustomizerEvent(MouseEvent e) { return createCustomizerEvent(e, 0, 1, 0, -1); } }; nEResizeState = new ResizeState(customizer){ public void applyCursor(){ customizer.setCursor(Cursor.getPredefinedCursor(Cursor.NE_RESIZE_CURSOR)); } public Handle getHandle(){ return getHandleBorder().getNEHandle(); } public CustomizerEvent createCustomizerEvent(MouseEvent e) { return createCustomizerEvent(e, 0, 1, 1, - 1); } }; eResizeState = new ResizeState(customizer){ public void applyCursor(){ customizer.setCursor(Cursor.getPredefinedCursor(Cursor.E_RESIZE_CURSOR)); } public Handle getHandle(){ return getHandleBorder().getEHandle(); } public CustomizerEvent createCustomizerEvent(MouseEvent e) { return createCustomizerEvent(e, 0, 0, 1, 0); } }; sEResizeState = new ResizeState(customizer){ public void applyCursor(){ customizer.setCursor(Cursor.getPredefinedCursor(Cursor.SE_RESIZE_CURSOR)); } public Handle getHandle(){ return getHandleBorder().getSEHandle(); } public CustomizerEvent createCustomizerEvent(MouseEvent e) { return createCustomizerEvent(e, 0, 0, 1, 1); } }; sResizeState = new ResizeState(customizer){ public void applyCursor(){ customizer.setCursor(Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR)); } public Handle getHandle(){ return getHandleBorder().getSHandle(); } public CustomizerEvent createCustomizerEvent(MouseEvent e) { return createCustomizerEvent(e, 0, 0, 0, 1); } }; sWResizeState = new ResizeState(customizer){ public void applyCursor(){ customizer.setCursor(Cursor.getPredefinedCursor(Cursor.SW_RESIZE_CURSOR)); } public Handle getHandle(){ return getHandleBorder().getSWHandle(); } public CustomizerEvent createCustomizerEvent(MouseEvent e) { return createCustomizerEvent(e, 1, 0, - 1, 1); } }; wResizeState = new ResizeState(customizer){ public void applyCursor(){ customizer.setCursor(Cursor.getPredefinedCursor(Cursor.W_RESIZE_CURSOR)); } public Handle getHandle(){ return getHandleBorder().getWHandle(); } public CustomizerEvent createCustomizerEvent(MouseEvent e) { return createCustomizerEvent(e, 1, 0, - 1, 0); } }; nWResizeState = new ResizeState(customizer){ public void applyCursor(){ customizer.setCursor(Cursor.getPredefinedCursor(Cursor.NW_RESIZE_CURSOR)); } public Handle getHandle(){ return getHandleBorder().getNWHandle(); } public CustomizerEvent createCustomizerEvent(MouseEvent e) { return createCustomizerEvent(e, 1, 1, - 1, - 1); } }; resizeStates = new ResizeState[]{nResizeState, nEResizeState, eResizeState, sEResizeState, sResizeState, sWResizeState, wResizeState, nWResizeState}; setUsingDefaultNormalBorderColor(true); setUsingDefaultSelectedBorderColor(true); // getNormalState().resetBorder(getNormalBorderColor()); // getSelectedState().resetBorder(getSelectedBorderColor()); // getMoveState().resetBorder(getSelectedBorderColor()); setState(normalState); }
12830 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12830/c418689fb74046780a66d102a0455e6147d42017/StateManager.java/buggy/lib/src/org/softsmithy/lib/swing/customizer/StateManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3287, 1318, 12, 6385, 804, 3802, 1824, 1679, 1824, 15329, 565, 333, 18, 3662, 1824, 273, 1679, 1824, 31, 3639, 2212, 1119, 273, 225, 394, 2989, 1119, 12, 3662, 1824, 15329, 1377, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3287, 1318, 12, 6385, 804, 3802, 1824, 1679, 1824, 15329, 565, 333, 18, 3662, 1824, 273, 1679, 1824, 31, 3639, 2212, 1119, 273, 225, 394, 2989, 1119, 12, 3662, 1824, 15329, 1377, 10...
if (debug) log.debug("EOFException, is LocoNet serial I/O using timeouts?");
if (fulldebug) log.debug("EOFException, is LocoNet serial I/O using timeouts?");
public void run() { boolean debug = log.isDebugEnabled(); int opCode; while (true) { // loop permanently, program close will exit try { // start by looking for command - skip if bit not set while ( ((opCode = (readByteProtected(istream)&0xFF)) & 0x80) == 0 ) { if (debug) log.debug("Skipping: "+Integer.toHexString(opCode)); } // here opCode is OK. Create output message if (debug) log.debug("Start message with opcode: "+Integer.toHexString(opCode)); LocoNetMessage msg = null; while (msg == null) { try { // Capture 2nd byte, always present int byte2 = readByteProtected(istream)&0xFF; //log.debug("Byte2: "+Integer.toHexString(byte2)); // Decide length switch((opCode & 0x60) >> 5) { case 0: /* 2 byte message */ msg = new LocoNetMessage(2); break; case 1: /* 4 byte message */ msg = new LocoNetMessage(4); break; case 2: /* 6 byte message */ msg = new LocoNetMessage(6); break; case 3: /* N byte message */ if (byte2<2) log.error("LocoNet message length invalid: "+byte2 +" opcode: "+Integer.toHexString(opCode)); msg = new LocoNetMessage(byte2); break; } // message exists, now fill it msg.setOpCode(opCode); msg.setElement(1, byte2); int len = msg.getNumDataElements(); //log.debug("len: "+len); for (int i = 2; i < len; i++) { // check for message-blocking error int b = readByteProtected(istream)&0xFF; //log.debug("char "+i+" is: "+Integer.toHexString(b)); if ( (b&0x80) != 0) { log.warn("LocoNet message with opCode: " +Integer.toHexString(opCode) +" ended early. Expected length: "+len +" seen length: "+i +" unexpected byte: " +Integer.toHexString(b)); opCode = b; throw new LocoNetMessageException(); } msg.setElement(i, b); } } catch (LocoNetMessageException e) { // retry by destroying the existing message // opCode is set for the newly-started packet msg = null; } } // check parity if (!msg.checkParity()) { log.warn("Ignore Loconet packet with bad checksum: "+msg.toString()); throw new LocoNetMessageException(); } // message is complete, dispatch it !! { if (log.isDebugEnabled()) log.debug("queue message for notification"); final LocoNetMessage thisMsg = msg; final LnPacketizer thisTC = trafficController; // return a notification via the queue to ensure end Runnable r = new Runnable() { LocoNetMessage msgForLater = thisMsg; LnPacketizer myTC = thisTC; public void run() { myTC.notify(msgForLater); } }; javax.swing.SwingUtilities.invokeLater(r); } // done with this one } catch (LocoNetMessageException e) { // just let it ride for now log.warn("run: unexpected LocoNetMessageException: "+e); } catch (java.io.EOFException e) { // posted from idle port when enableReceiveTimeout used if (debug) log.debug("EOFException, is LocoNet serial I/O using timeouts?"); } catch (java.io.IOException e) { // fired when write-end of HexFile reaches end if (debug) log.debug("IOException, should only happen with HexFIle: "+e); log.info("End of file"); disconnectPort(controller); return; } // normally, we don't catch the unnamed Exception, but in this // permanently running loop it seems wise. catch (Exception e) { log.warn("run: unexpected Exception: "+e); } } // end of permanent loop }
213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/60e10fbfd7410b25609a7a1b34524e1f8d61627f/LnPacketizer.java/clean/jmri/jmrix/loconet/LnPacketizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 1250, 1198, 273, 613, 18, 291, 2829, 1526, 5621, 5411, 509, 1061, 1085, 31, 5411, 1323, 261, 3767, 13, 288, 282, 368, 2798, 16866, 715, 16, 5402, 1746, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 288, 5411, 1250, 1198, 273, 613, 18, 291, 2829, 1526, 5621, 5411, 509, 1061, 1085, 31, 5411, 1323, 261, 3767, 13, 288, 282, 368, 2798, 16866, 715, 16, 5402, 1746, ...
height= Math.max(height, height2);
protected void setEqualButtonSizes() { int width= SWTUtil.getButtonWidthHint(fManifestFileBrowseButton); int height= SWTUtil.getButtonHeightHint(fManifestFileBrowseButton); int width2= SWTUtil.getButtonWidthHint(fNewManifestFileBrowseButton); int height2= SWTUtil.getButtonHeightHint(fNewManifestFileBrowseButton); width= Math.max(width, width2); height= Math.max(height, height2); width2= SWTUtil.getButtonWidthHint(fSealedPackagesDetailsButton); height2= SWTUtil.getButtonHeightHint(fSealedPackagesDetailsButton); width= Math.max(width, width2); height= Math.max(height, height2); width2= SWTUtil.getButtonWidthHint(fUnSealedPackagesDetailsButton); height2= SWTUtil.getButtonHeightHint(fUnSealedPackagesDetailsButton); width= Math.max(width, width2); height= Math.max(height, height2); width2= SWTUtil.getButtonWidthHint(fMainClassBrowseButton); height2= SWTUtil.getButtonHeightHint(fMainClassBrowseButton); width= Math.max(width, width2); height= Math.max(height, height2); setSize(fManifestFileBrowseButton, width, height); setSize(fNewManifestFileBrowseButton, width, height); setSize(fSealedPackagesDetailsButton, width, height); setSize(fUnSealedPackagesDetailsButton, width, height); setSize(fMainClassBrowseButton, width, height); }
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/0c86dceae888f5cd9bd99f790321e996d4e13dda/AJJarManifestWizardPage.java/clean/org.eclipse.ajdt.ui/src/org/eclipse/ajdt/internal/ui/wizards/exports/AJJarManifestWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 444, 5812, 3616, 11923, 1435, 288, 202, 202, 474, 1835, 33, 348, 8588, 1304, 18, 588, 3616, 2384, 7002, 12, 74, 9121, 812, 27304, 3616, 1769, 202, 202, 474, 2072, 33, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 5812, 3616, 11923, 1435, 288, 202, 202, 474, 1835, 33, 348, 8588, 1304, 18, 588, 3616, 2384, 7002, 12, 74, 9121, 812, 27304, 3616, 1769, 202, 202, 474, 2072, 33, 34...
return getPatch().clone();
return getPatch();
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException { ErrorMsg.reportStatus("Scene.getTransferData: flavor=" + flavor); //ErrorMsg.reportStatus("Patch.getTransferData: Patch=" + p + ", " + p.comment); if (flavor.match(PatchTransferHandler.SCENE_FLAVOR)) return clone(); else if (flavor.match(PatchTransferHandler.PATCH_FLAVOR)) return getPatch().clone(); else throw new UnsupportedFlavorException(flavor); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/1b6297a151bc7a4a039eacb34ea0a1a187a39b1e/Scene.java/buggy/JSynthLib/core/Scene.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 336, 5912, 751, 12, 751, 2340, 9444, 19496, 13, 5411, 1216, 7221, 2340, 9444, 503, 288, 3639, 1068, 3332, 18, 6006, 1482, 2932, 14370, 18, 588, 5912, 751, 30, 19496, 1546, 397...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5912, 751, 12, 751, 2340, 9444, 19496, 13, 5411, 1216, 7221, 2340, 9444, 503, 288, 3639, 1068, 3332, 18, 6006, 1482, 2932, 14370, 18, 588, 5912, 751, 30, 19496, 1546, 397...
if (!currentFile.isLocked()) {
CmsLock lock = getLock(context, currentFile); if (lock.isNullLock()) {
public void deleteProject(CmsRequestContext context, int projectId) throws CmsException { Vector deletedFolders = new Vector(); // read the project that should be deleted. CmsProject deleteProject = readProject(context, projectId); if ((isAdmin(context) || isManagerOfProject(context)) && (projectId != I_CmsConstants.C_PROJECT_ONLINE_ID)) { List allFiles = m_vfsDriver.readFiles(deleteProject.getId(), false, true); List allFolders = m_vfsDriver.readFolders(deleteProject, false, true); // first delete files or undo changes in files for (int i = 0; i < allFiles.size(); i++) { CmsFile currentFile = (CmsFile) allFiles.get(i); String currentResourceName = readPath(context, currentFile, true); if (currentFile.getState() == I_CmsConstants.C_STATE_NEW) { // delete the properties m_vfsDriver.deleteAllProperties(projectId, currentFile.getId()); // delete the file m_vfsDriver.removeFile(context.currentProject(), currentFile); // remove the access control entries m_userDriver.removeAllAccessControlEntries(context.currentProject(), currentFile.getResourceAceId()); } else if (currentFile.getState() == I_CmsConstants.C_STATE_CHANGED) { if (!currentFile.isLocked()) { // lock the resource lockResource(context, currentResourceName, true); } // undo all changes in the file undoChanges(context, currentResourceName); } else if (currentFile.getState() == I_CmsConstants.C_STATE_DELETED) { // first undelete the file undeleteResource(context, currentResourceName); if (!currentFile.isLocked()) { // lock the resource lockResource(context, currentResourceName, true); } // then undo all changes in the file undoChanges(context, currentResourceName); } } // now delete folders or undo changes in folders for (int i = 0; i < allFolders.size(); i++) { CmsFolder currentFolder = (CmsFolder) allFolders.get(i); String currentResourceName = readPath(context, currentFolder, true); if (currentFolder.getState() == I_CmsConstants.C_STATE_NEW) { // delete the properties m_vfsDriver.deleteAllProperties(projectId, currentFolder.getId()); // add the folder to the vector of folders that has to be deleted deletedFolders.addElement(currentFolder); } else if (currentFolder.getState() == I_CmsConstants.C_STATE_CHANGED) { if (!currentFolder.isLocked()) { // lock the resource lockResource(context, currentResourceName, true); } // undo all changes in the folder undoChanges(context, currentResourceName); } else if (currentFolder.getState() == I_CmsConstants.C_STATE_DELETED) { // undelete the folder undeleteResource(context, currentResourceName); if (!currentFolder.isLocked()) { // lock the resource lockResource(context, currentResourceName, true); } // then undo all changes in the folder undoChanges(context, currentResourceName); } } // now delete the folders in the vector for (int i = deletedFolders.size() - 1; i > -1; i--) { CmsFolder delFolder = ((CmsFolder) deletedFolders.elementAt(i)); m_vfsDriver.removeFolder(context.currentProject(), delFolder); // remove the access control entries m_userDriver.removeAllAccessControlEntries(context.currentProject(), delFolder.getResourceAceId()); } // unlock all resources in the project m_projectDriver.unlockProject(deleteProject); clearAccessControlListCache(); clearResourceCache(); // delete the project m_projectDriver.deleteProject(deleteProject); m_projectCache.remove(new Integer(projectId)); } else { throw new CmsException("[" + this.getClass().getName() + "] " + projectId, CmsException.C_NO_ACCESS); } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/2bcae41c30327ec6c96f485307a4af0b50e8483a/CmsDriverManager.java/buggy/src/org/opencms/db/CmsDriverManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1430, 4109, 12, 4747, 21426, 819, 16, 509, 9882, 13, 1216, 11228, 288, 3639, 5589, 4282, 14885, 273, 394, 5589, 5621, 3639, 368, 855, 326, 1984, 716, 1410, 506, 4282, 18, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1430, 4109, 12, 4747, 21426, 819, 16, 509, 9882, 13, 1216, 11228, 288, 3639, 5589, 4282, 14885, 273, 394, 5589, 5621, 3639, 368, 855, 326, 1984, 716, 1410, 506, 4282, 18, 3639,...
dump.append("\nContent::\n").append(((Content)value).toString());
dump.append("\nContent::\n").append(((Content) value).toString());
public void reduce(WritableComparable key, Iterator values, OutputCollector output, Reporter reporter) throws IOException { StringBuffer dump = new StringBuffer(); dump.append("\nRecno:: ").append(recNo++).append("\n"); dump.append("URL: " + key.toString() + "\n"); while (values.hasNext()) { Object value = ((ObjectWritable)values.next()).get(); // unwrap if (value instanceof CrawlDatum) { dump.append("\nCrawlDatum::\n").append(((CrawlDatum)value).toString()); } else if (value instanceof Content) { dump.append("\nContent::\n").append(((Content)value).toString()); } else if (value instanceof ParseData) { dump.append("\nParseData::\n").append(((ParseData)value).toString()); } else if (value instanceof ParseText) { dump.append("\nParseText::\n").append(((ParseText)value).toString()); } else { LOG.warning("Unrecognized type: " + value.getClass()); } } output.collect(key, new ObjectWritable(dump.toString())); }
1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/82abec76c6fbc6a6fb6149749849e1fb3f354dbd/SegmentReader.java/clean/src/java/org/apache/nutch/segment/SegmentReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 5459, 12, 12061, 799, 10207, 498, 16, 4498, 924, 16, 5397, 3633, 7134, 876, 16, 25585, 11528, 13, 565, 1216, 1860, 288, 565, 6674, 4657, 273, 394, 6674, 5621, 3639, 4657, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 5459, 12, 12061, 799, 10207, 498, 16, 4498, 924, 16, 5397, 3633, 7134, 876, 16, 25585, 11528, 13, 565, 1216, 1860, 288, 565, 6674, 4657, 273, 394, 6674, 5621, 3639, 4657, 18, ...
return new URLClassLoader( jarUrls, parent );
ClassLoader parent = appClassLoader == null ? systemClassLoader : appClassLoader; designClassLoader = new URLClassLoader( jarUrls, parent );
protected ClassLoader createClassLoaderFromDesign( ClassLoader parent ) { IReportRunnable runnable = context.getRunnable( ); if ( runnable != null ) { ModuleHandle module = (ModuleHandle) runnable.getDesignHandle( ); ArrayList urls = new ArrayList( ); Iterator iter = module.scriptLibsIterator( ); while ( iter.hasNext( ) ) { ScriptLib lib = (ScriptLib) iter.next( ); String libPath = lib.getName( ); URL url = module.findResource( libPath, IResourceLocator.LIBRARY ); if ( url != null ) { urls.add( url ); } } if ( urls.size( ) != 0 ) { URL[] jarUrls = (URL[]) urls.toArray( new URL[]{} ); return new URLClassLoader( jarUrls, parent ); } return parent; } return null; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/a267099d8ce0ba90a5b8b6e2bbab77d24b862f57/ExecutionContext.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 9403, 752, 7805, 1265, 15478, 12, 9403, 982, 262, 202, 202, 95, 1082, 202, 45, 4820, 20013, 14685, 273, 819, 18, 588, 20013, 12, 11272, 1082, 202, 430, 261, 14685, 480, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 9403, 752, 7805, 1265, 15478, 12, 9403, 982, 262, 202, 202, 95, 1082, 202, 45, 4820, 20013, 14685, 273, 819, 18, 588, 20013, 12, 11272, 1082, 202, 430, 261, 14685, 480, 446, ...
for ( Iterator iter = artifacts.iterator(); iter.hasNext(); )
for ( Iterator iter = runtimeArtifacts.iterator(); iter.hasNext(); )
public void buildWebapp( MavenProject project ) throws IOException { getLog().info( "Assembling webapp " + project.getArtifactId() + " in " + webappDirectory ); File libDirectory = new File( webappDirectory, WEB_INF + "/lib" ); File tldDirectory = new File( webappDirectory, WEB_INF + "/tld" ); File webappClassesDirectory = new File( webappDirectory, WEB_INF + "/classes" ); File classesDirectory = new File( this.classesDirectory ); if ( classesDirectory.exists() ) { FileUtils.copyDirectoryStructure( classesDirectory, webappClassesDirectory ); } Set artifacts = project.getArtifacts(); for ( Iterator iter = artifacts.iterator(); iter.hasNext(); ) { Artifact artifact = (Artifact) iter.next(); // TODO: scope handler // TODO: use classpath instead // Include runtime and compile time libraries // [jc, 21-June]: handle TLDs as a special-case. if ( "tld".equals( artifact.getType() ) ) { FileUtils.copyFileToDirectory( artifact.getFile(), tldDirectory ); } // [jc, 21-June]: filter POMs out of the /lib copy process. else if ( "pom".equals( artifact.getType() ) ) { // don't mess with these...they'd only be here for inclusion of dependencies. } // [jc, 21-June]: I'm removing ( "jar".equals( artifact.getType() ) ) from consideration here // we'll handle anything that's NOT a POM or a TLD as a binary library to go in /lib else if ( !Artifact.SCOPE_TEST.equals( artifact.getScope() ) && !Artifact.SCOPE_PROVIDED.equals( artifact.getScope() ) ) { FileUtils.copyFileToDirectory( artifact.getFile(), libDirectory ); } } }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/fd3e9fe9e29b5a6d361320f8a629a28803c4436b/WarMojo.java/clean/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1361, 4079, 2910, 12, 17176, 4109, 1984, 262, 3639, 1216, 1860, 565, 288, 3639, 9189, 7675, 1376, 12, 315, 1463, 5747, 2456, 28945, 315, 397, 1984, 18, 588, 7581, 548, 1435, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1361, 4079, 2910, 12, 17176, 4109, 1984, 262, 3639, 1216, 1860, 565, 288, 3639, 9189, 7675, 1376, 12, 315, 1463, 5747, 2456, 28945, 315, 397, 1984, 18, 588, 7581, 548, 1435, 39...
assert(!(setContainsAnyId(s, excludeTags) || setContainsAnyId(s, excludeFolders)));
boolean automaticEmptySet() { // Check for tags and folders that are both included and excluded. Set<Integer> s = new HashSet<Integer>(); addIdsToSet(s, tags); addIdsToSet(s, folders); assert(!(setContainsAnyId(s, excludeTags) || setContainsAnyId(s, excludeFolders)));// return true; if (hasTags == Boolean.FALSE && tags != null && tags.size() != 0) return true; // lots more optimizing we could do here... if (!ListUtil.isEmpty(dates)) for (Range r : dates) if (r.lowest < -1 && r.negated) return true; else if (r.highest < -1 && !r.negated) return true; if (!ListUtil.isEmpty(modified)) for (Range r : modified) if (r.lowest < -1 && r.negated) return true; else if (r.highest < -1 && !r.negated) return true; return false; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/16f60bb396fa591be8c0db7b99723509f33b6ac6/DbSearchConstraints.java/clean/ZimbraServer/src/java/com/zimbra/cs/db/DbSearchConstraints.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6494, 5859, 1921, 694, 1435, 288, 202, 202, 759, 2073, 364, 2342, 471, 9907, 716, 854, 3937, 5849, 471, 8845, 18, 202, 202, 694, 32, 4522, 34, 272, 273, 394, 6847, 32, 4522, 34, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6494, 5859, 1921, 694, 1435, 288, 202, 202, 759, 2073, 364, 2342, 471, 9907, 716, 854, 3937, 5849, 471, 8845, 18, 202, 202, 694, 32, 4522, 34, 272, 273, 394, 6847, 32, 4522, 34, ...
return _validator.getCurrentElementSchemaType();
return _validator==null ? null : _validator.getCurrentElementSchemaType();
public SchemaType getCurrentElementSchemaType() { return _validator.getCurrentElementSchemaType(); }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/25f10994721aa8c87b82307a44f10b9f71943338/ValidatingInfoXMLStreamReader.java/buggy/src/typeimpl/org/apache/xmlbeans/impl/validator/ValidatingInfoXMLStreamReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4611, 559, 5175, 1046, 3078, 559, 1435, 565, 288, 3639, 327, 389, 7357, 631, 2011, 692, 446, 294, 389, 7357, 18, 588, 3935, 1046, 3078, 559, 5621, 565, 289, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4611, 559, 5175, 1046, 3078, 559, 1435, 565, 288, 3639, 327, 389, 7357, 631, 2011, 692, 446, 294, 389, 7357, 18, 588, 3935, 1046, 3078, 559, 5621, 565, 289, 2, -100, -100, -100, -...
return new Thread(r, "Connection task");
Thread thread = new Thread(r, "AcitveMQ Connection Worker: "+transport); thread.setDaemon(true); return thread;
public Thread newThread(Runnable r) { return new Thread(r, "Connection task"); }});
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/e2aad41e6a8d0ab5315be519cd43aaec984f2912/ActiveMQConnection.java/buggy/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 4884, 394, 3830, 12, 20013, 436, 13, 288, 7734, 4884, 2650, 273, 394, 4884, 12, 86, 16, 315, 9988, 305, 537, 9682, 4050, 11016, 30, 13773, 13049, 1769, 2650, 18, 542, 12858, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 4884, 394, 3830, 12, 20013, 436, 13, 288, 7734, 4884, 2650, 273, 394, 4884, 12, 86, 16, 315, 9988, 305, 537, 9682, 4050, 11016, 30, 13773, 13049, 1769, 2650, 18, 542, 12858, 12, ...
public FCGIMessage(FCGIInputStream instream){ in = instream;
public FCGIMessage(){ super();
public FCGIMessage(FCGIInputStream instream){ in = instream; }
9212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9212/690f392a3a8db87c1c7c6914ab2799762ddf2182/FCGIMessage.java/buggy/java/src/FCGIMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 478, 39, 13797, 1079, 12, 4488, 13797, 4348, 1804, 793, 15329, 202, 202, 267, 273, 1804, 793, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 478, 39, 13797, 1079, 12, 4488, 13797, 4348, 1804, 793, 15329, 202, 202, 267, 273, 1804, 793, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
invokersCache = new Hashtable();
public Invoker createInvoker(Context cx, Method method, Class[] types) { Invoker result; int classNum; synchronized (this) { if (invokersCache == null) { invokersCache = new Hashtable(); ClassLoader parentLoader = cx.getClass().getClassLoader(); classLoader = cx.createClassLoader(parentLoader); } else { result = (Invoker)invokersCache.get(method); if (result != null) { return result; } } classNum = ++classNumber; } String className = "inv" + classNum; ClassFileWriter cfw = new ClassFileWriter(className, "org.mozilla.javascript.Invoker", ""); cfw.setFlags((short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); // Add our instantiator! cfw.startMethod("<init>", "()V", ClassFileWriter.ACC_PUBLIC); cfw.add(ByteCode.ALOAD_0); cfw.addInvoke(ByteCode.INVOKESPECIAL, "org.mozilla.javascript.Invoker", "<init>", "()V"); cfw.add(ByteCode.RETURN); cfw.stopMethod((short)1, null); // one argument -- this??? // Add the invoke() method call cfw.startMethod("invoke", "(Ljava/lang/Object;[Ljava/lang/Object;)"+ "Ljava/lang/Object;", (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); // If we return a primitive type, then do something special! String declaringClassName = method.getDeclaringClass().getName ().replace('.', '/'); Class returnType = method.getReturnType(); String invokeSpecial = null; String invokeSpecialType = null; boolean returnsVoid = false; boolean returnsBoolean = false; if (returnType.isPrimitive()) { if (returnType == Boolean.TYPE) { returnsBoolean = true; invokeSpecialType = "(Z)V"; } else if (returnType == Void.TYPE) { returnsVoid = true; invokeSpecialType = "()V"; } else if (returnType == Integer.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Integer"); cfw.add(ByteCode.DUP); invokeSpecialType = "(I)V"; } else if (returnType == Long.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Long"); cfw.add(ByteCode.DUP); invokeSpecialType = "(J)V"; } else if (returnType == Short.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Short"); cfw.add(ByteCode.DUP); invokeSpecialType = "(S)V"; } else if (returnType == Float.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Float"); cfw.add(ByteCode.DUP); invokeSpecialType = "(F)V"; } else if (returnType == Double.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Double"); cfw.add(ByteCode.DUP); invokeSpecialType = "(D)V"; } else if (returnType == Byte.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Byte"); cfw.add(ByteCode.DUP); invokeSpecialType = "(B)V"; } else if (returnType == Character.TYPE) { cfw.add(ByteCode.NEW, invokeSpecial = "java/lang/Character"); cfw.add(ByteCode.DUP); invokeSpecialType = "(C)V"; } } // handle setup of call to virtual function (if calling non-static) if (!java.lang.reflect.Modifier.isStatic(method.getModifiers())) { cfw.add(ByteCode.ALOAD_1); cfw.add(ByteCode.CHECKCAST, declaringClassName); } // Handle parameters! StringBuffer params = new StringBuffer(2 + ((types!=null)?(20 * types.length):0)); params.append('('); if (types != null) { for(int i = 0; i < types.length; i++) { Class type = types[i]; cfw.add(ByteCode.ALOAD_2); if (i <= 5) { cfw.add((byte) (ByteCode.ICONST_0 + i)); } else if (i <= Byte.MAX_VALUE) { cfw.add(ByteCode.BIPUSH, i); } else if (i <= Short.MAX_VALUE) { cfw.add(ByteCode.SIPUSH, i); } else { cfw.addLoadConstant((int)i); } cfw.add(ByteCode.AALOAD); if (type.isPrimitive()) { // Convert enclosed type back to primitive. if (type == Boolean.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Boolean"); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, "java/lang/Boolean", "booleanValue", "()Z"); params.append('Z'); } else if (type == Integer.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Number"); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, "java/lang/Number", "intValue", "()I"); params.append('I'); } else if (type == Short.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Number"); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, "java/lang/Number", "shortValue", "()S"); params.append('S'); } else if (type == Character.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Character"); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, "java/lang/Character", "charValue", "()C"); params.append('C'); } else if (type == Double.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Number"); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, "java/lang/Number", "doubleValue", "()D"); params.append('D'); } else if (type == Float.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Number"); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, "java/lang/Number", "floatValue", "()F"); params.append('F'); } else if (type == Byte.TYPE) { cfw.add(ByteCode.CHECKCAST, "java/lang/Byte"); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, "java/lang/Byte", "byteValue", "()B"); params.append('B'); } } else { String typeName = type.getName().replace('.', '/'); cfw.add(ByteCode.CHECKCAST, typeName); if (!type.isArray()) { params.append('L'); } params.append(typeName); if (!type.isArray()) { params.append(';'); } } } } params.append(')'); if (invokeSpecialType != null) { if (returnsVoid) { params.append('V'); } else { params.append(invokeSpecialType.charAt(1)); } } else if (returnType.isArray()) { params.append(returnType.getName().replace('.','/')); } else { params.append('L'); params.append(returnType.getName().replace('.','/')); params.append(';'); } // Call actual function! if (!java.lang.reflect.Modifier.isStatic(method.getModifiers())) { cfw.addInvoke(ByteCode.INVOKEVIRTUAL, declaringClassName, method.getName(), params.toString()); } else { cfw.addInvoke(ByteCode.INVOKESTATIC, declaringClassName, method.getName(), params.toString()); } // Handle return value if (returnsVoid) { cfw.add(ByteCode.ACONST_NULL); cfw.add(ByteCode.ARETURN); } else if (returnsBoolean) { // HACK //check to see if true; // '7' is the number of bytes of the ifeq<branch> plus getstatic<TRUE> plus areturn instructions cfw.add(ByteCode.IFEQ, 7); cfw.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); cfw.add(ByteCode.ARETURN); cfw.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); cfw.add(ByteCode.ARETURN); } else if (invokeSpecial != null) { cfw.addInvoke(ByteCode.INVOKESPECIAL, invokeSpecial, "<init>", invokeSpecialType); cfw.add(ByteCode.ARETURN); } else { cfw.add(ByteCode.ARETURN); } cfw.stopMethod((short)3, null); // three arguments, including the this pointer??? byte[] bytes = cfw.toByteArray(); // Add class to our classloader. Class c = classLoader.defineClass(className, bytes); classLoader.linkClass(c); try { result = (Invoker)c.newInstance(); } catch (InstantiationException e) { throw new RuntimeException("unexpected " + e.toString()); } catch (IllegalAccessException e) { throw new RuntimeException("unexpected " + e.toString()); } if (false) { System.out.println ("Generated method delegate for: "+method.getName() +" on "+method.getDeclaringClass().getName()+" :: " +params.toString()+" :: "+types); } invokersCache.put(method, result); return result; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/fe1e812d433e8dfaf59df4f17c925334027a33bb/InvokerImpl.java/clean/src/org/mozilla/javascript/optimizer/InvokerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17602, 264, 752, 24455, 12, 1042, 9494, 16, 2985, 707, 16, 1659, 8526, 1953, 13, 288, 3639, 17602, 264, 563, 31, 3639, 509, 667, 2578, 31, 3639, 3852, 261, 2211, 13, 288, 5411, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17602, 264, 752, 24455, 12, 1042, 9494, 16, 2985, 707, 16, 1659, 8526, 1953, 13, 288, 3639, 17602, 264, 563, 31, 3639, 509, 667, 2578, 31, 3639, 3852, 261, 2211, 13, 288, 5411, 30...
actor.setDescription("local variable: " + actor.getName());
public VariableActor produceVariableActor(Variable v) { String type = v.getType(); VariableActor actor = null; int typeInfo = MCodeUtilities.resolveType(type); if (typeInfo != MCodeUtilities.REFERENCE) { actor = new VariableActor(); ValueActor vact = null; ImageValueActor valueActor = new ImageValueActor(iLoad.getImage(propertiesBundle .getStringProperty("image.mystery"))); valueActor.calculateSize(); vact = valueActor; int dotIndex = type.lastIndexOf("."); String resolvedType = type; if (dotIndex > -1) { resolvedType = resolvedType.substring(dotIndex + 1); } if (v.getName().equals(v.getType()) || (v.getName().equals("java.lang.Object") && v.getType().equals( "java.lang.String"))) { actor.setName(resolvedType); } else { actor.setName(resolvedType + " " + v.getName()); } //actor.setName(resolvedType + " " + v.getName()); actor.setFont(variableFont); actor.setForeground(variableForegroundColor); actor.setInsets(variableInsets); actor.setValueDimension(typeValWidth[typeInfo], valueHeight); actor.setBackground(varColor[typeInfo]); actor.setValueColor(valColor[typeInfo]); actor.calculateSize(); actor.reserve(vact); actor.bind(); //Tracking purposes actor.setDescription("local variable: " + actor.getName()); return actor; } else if (typeInfo == MCodeUtilities.REFERENCE) { ReferenceVariableActor refAct = new ReferenceVariableActor(); if (MCodeUtilities.isArray(type)) { String ct = MCodeUtilities.resolveComponentType(type); if (MCodeUtilities.isPrimitive(ct)) { int ti = MCodeUtilities.resolveType(ct); refAct.setBackground(varColor[ti]); } else { //This is not implemented properly refAct.setBackground(varColor[typeInfo]); } String resolvedType = MCodeUtilities.changeComponentTypeToPrintableForm(ct); int dotIndex = resolvedType.lastIndexOf("."); if (dotIndex > -1) { resolvedType = resolvedType.substring(dotIndex + 1); } int dims = MCodeUtilities.getNumberOfDimensions(type); String arrayString = ""; for (int i = 0; i < dims; i++) { arrayString += "[ ]"; } if (v.getName().equals(v.getType())) { refAct.setName(resolvedType + arrayString); } else { refAct.setName(resolvedType + arrayString + " " + v.getName()); } //refAct.setName(resolvedType + arrayString + " " + v.getName()); //Tracking purposes actor.setDescription("local variable: " + actor.getName()); } else { String resolvedType = type; int dotIndex = resolvedType.lastIndexOf("."); if (dotIndex > -1) { resolvedType = resolvedType.substring(dotIndex + 1); } if (v.getName().equals(v.getType()) || (v.getName().equals("java.lang.Object") && v.getType().equals( "java.lang.String"))) { refAct.setName(resolvedType); } else { refAct.setName(resolvedType + " " + v.getName()); } //refAct.setName(resolvedType + " " + v.getName()); refAct.setBackground(varColor[typeInfo]); //Tracking purposes actor.setDescription("local variable: " + actor.getName()); } refAct.setForeground(variableForegroundColor); refAct.setInsets(variableInsets); refAct.setFont(variableFont); refAct.setValueDimension(6 + 6, valueHeight); refAct.calculateSize(); ReferenceActor ra = new ReferenceActor(); ra.setBackground(refAct.getBackground()); ra.calculateSize(); refAct.setValue(ra); actor = refAct; } return actor; }
49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/2afb143799924500a7f86421daa0c157cfa3f366/ActorFactory.java/buggy/src/jeliot/theater/ActorFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7110, 17876, 11402, 3092, 17876, 12, 3092, 331, 13, 288, 3639, 514, 618, 273, 331, 18, 588, 559, 5621, 3639, 7110, 17876, 8327, 273, 446, 31, 3639, 509, 23112, 273, 490, 1085, 11864...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7110, 17876, 11402, 3092, 17876, 12, 3092, 331, 13, 288, 3639, 514, 618, 273, 331, 18, 588, 559, 5621, 3639, 7110, 17876, 8327, 273, 446, 31, 3639, 509, 23112, 273, 490, 1085, 11864...
for(int i = BLOCKED_ADDR_QUEUE.size()-1; i >= 0; i--){ String host = (String) BLOCKED_ADDR_QUEUE.get(i);
for (int i = BLOCKED_ADDR_QUEUE.size() - 1; i >= 0; i--) { String host = (String) BLOCKED_ADDR_QUEUE.get(i);
private static void cleanExpiredServerBlocks() { synchronized (BLOCKED_ADDR_TO_TIME) { for(int i = BLOCKED_ADDR_QUEUE.size()-1; i >= 0; i--){ String host = (String) BLOCKED_ADDR_QUEUE.get(i); long time = ((Long) BLOCKED_ADDR_TO_TIME.get(host)).longValue(); if (time <= System.currentTimeMillis()) { BLOCKED_ADDR_TO_TIME.remove(host); BLOCKED_ADDR_QUEUE.remove(i); } } } }
1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/03dd102fb8d444c2f9563e3891255539c52ecb82/HttpBase.java/buggy/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 2721, 10556, 2081, 6450, 1435, 288, 565, 3852, 261, 11403, 2056, 67, 14142, 67, 4296, 67, 4684, 13, 288, 1377, 364, 12, 474, 277, 273, 14073, 2056, 67, 14142, 67, 19533, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 2721, 10556, 2081, 6450, 1435, 288, 565, 3852, 261, 11403, 2056, 67, 14142, 67, 4296, 67, 4684, 13, 288, 1377, 364, 12, 474, 277, 273, 14073, 2056, 67, 14142, 67, 19533, ...
coolBar.addListener(SWT.Resize, new Listener() { public void handleEvent(Event event) { Rectangle clientArea = shell.getClientArea();
coolBar.addListener(SWT.Resize, new Listener() { public void handleEvent(Event event) { Rectangle clientArea = shell.getClientArea();
protected void createDefaultContents(final Shell shell) { defaultLayout = new TrimLayout(); defaultLayout.setSpacing(5, 5, 2, 2); shell.setLayout(defaultLayout); Menu menuBar = getMenuBarManager().createMenuBar(shell); if (getWindowConfigurer().getShowMenuBar()) { shell.setMenuBar(menuBar); } // Create the CBanner widget which parents both the Coolbar // and the perspective switcher, and supports some configurations // on the left right and bottom topBar = new CBanner(shell, SWT.NONE); topBarTrim = new WindowTrimProxy(topBar, "org.eclipse.ui.internal.WorkbenchWindow.topBar", //$NON-NLS-1$ WorkbenchMessages.TrimCommon_Main_TrimName, SWT.NONE, true); // the banner gets a curve along with the new tab style // TODO create a dedicated preference for this setBannerCurve(PrefUtil.getAPIPreferenceStore().getBoolean( IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS)); CacheWrapper coolbarCacheWrapper = new CacheWrapper(topBar); final Control coolBar = createCoolBarControl(coolbarCacheWrapper .getControl()); // need to resize the shell, not just the coolbar's immediate // parent, if the coolbar wants to grow or shrink coolBar.addListener(SWT.Resize, new Listener() { public void handleEvent(Event event) { // If the user is dragging the sash then we will need to force // a resize. However, if the coolbar was resized programatically // then everything is already layed out correctly. There is no // direct way to tell the difference between these cases, however // we take advantage of the fact that dragging the sash does not // change the size of the shell, and only force another layout // if the shell size is unchanged. Rectangle clientArea = shell.getClientArea(); if (lastShellSize.x == clientArea.width && lastShellSize.y == clientArea.height) { LayoutUtil.resize(coolBar); } lastShellSize.x = clientArea.width; lastShellSize.y = clientArea.height; } }); if (getWindowConfigurer().getShowCoolBar()) { topBar.setLeft(coolbarCacheWrapper.getControl()); } createStatusLine(shell); fastViewBar = new FastViewBar(this); fastViewBar.createControl(shell); if (getWindowConfigurer().getShowPerspectiveBar()) { addPerspectiveBar(perspectiveBarStyle()); perspectiveSwitcher.createControl(shell); } createProgressIndicator(shell); if (getShowHeapStatus()) { createHeapStatus(shell); } trimDropTarget = new TrimDropTarget(shell, this); DragUtil.addDragTarget(shell, trimDropTarget); // Create the client composite area (where page content goes). createPageComposite(shell); setLayoutDataForContents();// System.err.println(defaultLayout.displayTrim()); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97610ef9afbe6c924e048d8d60c2f4721860850b/WorkbenchWindow.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 27346, 6323, 12, 6385, 19433, 5972, 13, 288, 3639, 805, 3744, 273, 394, 7105, 3744, 5621, 3639, 805, 3744, 18, 542, 18006, 12, 25, 16, 1381, 16, 576, 16, 576, 1769, 3639, 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, 377, 4750, 918, 27346, 6323, 12, 6385, 19433, 5972, 13, 288, 3639, 805, 3744, 273, 394, 7105, 3744, 5621, 3639, 805, 3744, 18, 542, 18006, 12, 25, 16, 1381, 16, 576, 16, 576, 1769, 3639, 597...
+functionName+" in "+getClass().getName());
+getFunctionName()+" in "+getClass().getName());
public Scriptable construct(Context cx, Scriptable scope, Object[] args) { Scriptable result = createObject(cx, scope); if (result != null) { Object val = call(cx, scope, result, args); if (val instanceof Scriptable && val != Undefined.instance) { result = (Scriptable)val; } } else { Object val = call(cx, scope, null, args); if (!(val instanceof Scriptable && val != Undefined.instance)) { // It is program error not to return Scriptable from // the call method if createObject returns null. throw new IllegalStateException( "Bad implementaion of call as constructor, name=" +functionName+" in "+getClass().getName()); } result = (Scriptable)val; if (result.getPrototype() == null) { result.setPrototype(getClassPrototype()); } if (result.getParentScope() == null) { Scriptable parent = getParentScope(); if (result != parent) { result.setParentScope(parent); } } } return result; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/bcf9f007878d03ecebb8f7a68970dc86c51376f1/BaseFunction.java/clean/js/rhino/src/org/mozilla/javascript/BaseFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22780, 4872, 12, 1042, 9494, 16, 22780, 2146, 16, 1033, 8526, 833, 13, 565, 288, 3639, 22780, 563, 273, 17109, 12, 71, 92, 16, 2146, 1769, 3639, 309, 261, 2088, 480, 446, 13, 288,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22780, 4872, 12, 1042, 9494, 16, 22780, 2146, 16, 1033, 8526, 833, 13, 565, 288, 3639, 22780, 563, 273, 17109, 12, 71, 92, 16, 2146, 1769, 3639, 309, 261, 2088, 480, 446, 13, 288,...
configuration = theConfiguration;
if (configuration != null && instance instanceof Configurable) { ((Configurable) instance).configure(configuration); }
public void configure(final Configuration theConfiguration) throws ConfigurationException { configuration = theConfiguration; }
9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/35d81e75935867b76ff1543c9ee3aea611404862/AbstractFactory.java/buggy/ExTeX/src/java/de/dante/util/framework/AbstractFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5068, 12, 6385, 4659, 326, 1750, 13, 5411, 1216, 22196, 288, 3639, 309, 261, 7025, 480, 446, 597, 791, 1276, 29312, 13, 288, 14015, 31660, 13, 791, 2934, 14895, 12, 7025, 1769,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5068, 12, 6385, 4659, 326, 1750, 13, 5411, 1216, 22196, 288, 3639, 309, 261, 7025, 480, 446, 597, 791, 1276, 29312, 13, 288, 14015, 31660, 13, 791, 2934, 14895, 12, 7025, 1769,...
toolkit.createLabel(attributesComposite, value);
Composite uneditableComp = toolkit.createComposite(attributesComposite); GridLayout textLayout = new GridLayout(); textLayout.marginWidth = 1; uneditableComp.setLayout(textLayout); toolkit.createText(uneditableComp, value, SWT.READ_ONLY );
protected void createAttributeLayout() { String title = getTitleString(); String keywords = ""; String url = ""; Section section = toolkit.createSection(form.getBody(), ExpandableComposite.TITLE_BAR | Section.TWISTIE); section.setText(LABEL_SECTION_ATTRIBUTES); section.setExpanded(true); section.setLayout(new GridLayout()); section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); section.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); // Attributes Composite- this holds all the combo fiels and text fields Composite attributesComposite = toolkit.createComposite(section); GridLayout attributesLayout = new GridLayout(); attributesLayout.numColumns = 4; attributesLayout.horizontalSpacing = 14; attributesLayout.verticalSpacing = 6; attributesComposite.setLayout(attributesLayout); GridData attributesData = new GridData(GridData.FILL_BOTH); attributesData.horizontalSpan = 1; attributesData.grabExcessVerticalSpace = false; attributesComposite.setLayoutData(attributesData); // attributesComposite.setBackground(background); // End Attributes Composite section.setClient(attributesComposite); // Attributes Title Area // Composite attributesTitleComposite = new // Composite(attributesComposite, SWT.NONE); // GridLayout attributesTitleLayout = new GridLayout(); // attributesTitleLayout.horizontalSpacing = 0; // attributesTitleLayout.marginWidth = 0; // attributesTitleComposite.setLayout(attributesTitleLayout); // attributesTitleComposite.setBackground(background); // GridData attributesTitleData = new // GridData(GridData.HORIZONTAL_ALIGN_FILL); // attributesTitleData.horizontalSpan = 4; // attributesTitleData.grabExcessVerticalSpace = false; // attributesTitleComposite.setLayoutData(attributesTitleData); // End Attributes Title // Set the Attributes Title // newAttributesLayout(attributesTitleComposite); // titleLabel.setText(title); bugzillaInput.setToolTipText(title); int currentCol = 1; String ccValue = null; // Populate Attributes for (Iterator<Attribute> it = getBug().getAttributes().iterator(); it.hasNext();) { Attribute attribute = it.next(); String key = attribute.getParameterName(); String name = attribute.getName(); String value = checkText(attribute.getValue()); Map<String, String> values = attribute.getOptionValues(); // make sure we don't try to display a hidden field if (attribute.isHidden() || (key != null && key.equals("status_whiteboard"))) continue; if (values == null) values = new HashMap<String, String>(); if (key == null) key = ""; GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalSpan = 1; data.horizontalIndent = HORZ_INDENT; if (key.equals("short_desc") || key.equals("keywords")) { keywords = value; } else if (key.equals("newcc")) { ccValue = value; if (value == null) ccValue = ""; } else if (key.equals("bug_file_loc")) { url = value; } else if (key.equals("op_sys")) { // newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); // oSCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | // SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY);//SWT.NONE oSCombo = new CCombo(attributesComposite, SWT.FLAT | SWT.READ_ONLY); // oSCombo = new Combo(attributesComposite, SWT.FLAT | // SWT.READ_ONLY); toolkit.adapt(oSCombo, true, true); oSCombo.setFont(TEXT_FONT); oSCombo.setLayoutData(data); // oSCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { oSCombo.add(a[i]); } if (oSCombo.indexOf(value) != -1) { oSCombo.select(oSCombo.indexOf(value)); } else { oSCombo.select(oSCombo.indexOf("All")); } oSCombo.addListener(SWT.Modify, this); comboListenerMap.put(oSCombo, name); oSCombo.addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("version")) { // newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); versionCombo = new CCombo(attributesComposite, SWT.FLAT | SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); toolkit.adapt(versionCombo, true, true); versionCombo.setFont(TEXT_FONT); versionCombo.setLayoutData(data); // versionCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { versionCombo.add(a[i]); } versionCombo.select(versionCombo.indexOf(value)); versionCombo.addListener(SWT.Modify, this); versionCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(versionCombo, name); currentCol += 2; } else if (key.equals("priority")) { // newLayout(attributesComposite, 1, "Priority", PROPERTY); toolkit.createLabel(attributesComposite, name); priorityCombo = new CCombo(attributesComposite, SWT.FLAT | SWT.V_SCROLL | SWT.READ_ONLY); toolkit.adapt(priorityCombo, true, true); priorityCombo.setFont(TEXT_FONT); priorityCombo.setLayoutData(data); // priorityCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { priorityCombo.add(a[i]); } priorityCombo.select(priorityCombo.indexOf(value)); priorityCombo.addListener(SWT.Modify, this); priorityCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(priorityCombo, name); currentCol += 2; } else if (key.equals("bug_severity")) { // newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); severityCombo = new CCombo(attributesComposite, SWT.FLAT | SWT.READ_ONLY); toolkit.adapt(severityCombo, true, true); severityCombo.setFont(TEXT_FONT); severityCombo.setLayoutData(data); // severityCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { severityCombo.add(a[i]); } severityCombo.select(severityCombo.indexOf(value)); severityCombo.addListener(SWT.Modify, this); severityCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(severityCombo, name); currentCol += 2; } else if (key.equals("target_milestone")) { // newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); milestoneCombo = new CCombo(attributesComposite, SWT.FLAT | SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); toolkit.adapt(milestoneCombo, true, true); milestoneCombo.setFont(TEXT_FONT); milestoneCombo.setLayoutData(data); // milestoneCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { milestoneCombo.add(a[i]); } milestoneCombo.select(milestoneCombo.indexOf(value)); milestoneCombo.addListener(SWT.Modify, this); milestoneCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(milestoneCombo, name); currentCol += 2; } else if (key.equals("rep_platform")) { // newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); platformCombo = new CCombo(attributesComposite, SWT.FLAT | SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); toolkit.adapt(platformCombo, true, true); platformCombo.setFont(TEXT_FONT); platformCombo.setLayoutData(data); // platformCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { platformCombo.add(a[i]); } platformCombo.select(platformCombo.indexOf(value)); platformCombo.addListener(SWT.Modify, this); platformCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(platformCombo, name); currentCol += 2; } else if (key.equals("product")) { // newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); toolkit.createLabel(attributesComposite, value); // newLayout(attributesComposite, 1, value, // VALUE).addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("assigned_to")) { // newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); assignedTo = new Text(attributesComposite, SWT.BORDER | SWT.SINGLE | SWT.WRAP); assignedTo.setFont(TEXT_FONT); assignedTo.setText(value); data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); data.horizontalSpan = 1; assignedTo.setLayoutData(data); assignedTo.addListener(SWT.KeyUp, new Listener() { public void handleEvent(Event event) { String sel = assignedTo.getText(); Attribute a = getBug().getAttribute("Assign To"); if (!(a.getNewValue().equals(sel))) { a.setNewValue(sel); changeDirtyStatus(true); } } }); assignedTo.addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else if (key.equals("component")) { // newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); componentCombo = new CCombo(attributesComposite, SWT.FLAT | SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); toolkit.adapt(componentCombo, true, true); componentCombo.setFont(TEXT_FONT); componentCombo.setLayoutData(data); // componentCombo.setBackground(background); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); Arrays.sort(a); for (int i = 0; i < a.length; i++) { componentCombo.add(a[i]); } componentCombo.select(componentCombo.indexOf(value)); componentCombo.addListener(SWT.Modify, this); componentCombo.addListener(SWT.FocusIn, new GenericListener()); comboListenerMap.put(componentCombo, name); currentCol += 2; } else if (name.equals("Summary")) { // Don't show the summary here. continue; } else if (values.isEmpty()) { // newLayout(attributesComposite, 1, name, PROPERTY); toolkit.createLabel(attributesComposite, name); toolkit.createLabel(attributesComposite, value); // newLayout(attributesComposite, 1, value, // VALUE).addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } if (currentCol > attributesLayout.numColumns) { currentCol -= attributesLayout.numColumns; } } // End Populate Attributes // make sure that we are in the first column if (currentCol > 1) { while (currentCol <= attributesLayout.numColumns) { newLayout(attributesComposite, 1, "", PROPERTY); currentCol++; } } // URL, Keywords, Summary Text Fields addUrlText(url, attributesComposite); // keywords text field (not editable) addKeywordsList(toolkit, keywords, attributesComposite); if (ccValue != null) { addCCList(toolkit, ccValue, attributesComposite); } addSummaryText(attributesComposite); // End URL, Keywords, Summary Text Fields toolkit.paintBordersFor(attributesComposite); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/be055bd3ef77045f78bbb313f19983970e2437a1/AbstractBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/AbstractBugEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 1499, 3744, 1435, 288, 202, 202, 780, 2077, 273, 10786, 780, 5621, 202, 202, 780, 7093, 273, 1408, 31, 202, 202, 780, 880, 273, 1408, 31, 202, 202, 5285, 2442, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 1499, 3744, 1435, 288, 202, 202, 780, 2077, 273, 10786, 780, 5621, 202, 202, 780, 7093, 273, 1408, 31, 202, 202, 780, 880, 273, 1408, 31, 202, 202, 5285, 2442, 273,...
VM.sysWrite(": reserved = ", Plan.getPagesReserved()); VM.sysWrite(" (", Conversions.pagesToBytes(Plan.getPagesReserved())/(1<<20)); VM.sysWrite(" Mb) "); VM.sysWrite(" trigger = ", getTotalPages()); VM.sysWrite(" (", Conversions.pagesToBytes(getTotalPages())/(1<<20));
writePages(": reserved = ", Plan.getPagesReserved()); writePages(" trigger = ", getTotalPages()); VM.sysWriteln();
private final void baseGlobalRelease() { globalRelease(); if (verbose == 1) { VM.sysWrite("->"); VM.sysWrite(Conversions.pagesToBytes(Plan.getPagesUsed())>>10); VM.sysWrite("KB "); } if (verbose > 2) { VM.sysWrite(" After Collection: "); Plan.showUsage(); VM.sysWrite(" Collection ", gcCount); VM.sysWrite(": reserved = ", Plan.getPagesReserved()); VM.sysWrite(" (", Conversions.pagesToBytes(Plan.getPagesReserved())/(1<<20)); VM.sysWrite(" Mb) "); VM.sysWrite(" trigger = ", getTotalPages()); VM.sysWrite(" (", Conversions.pagesToBytes(getTotalPages())/(1<<20)); } gcInProgress = false; // GC is in progress until after release! gcStopTime = VM_Interface.now(); if (verbose == 1) { VM.sysWrite("stop ", ((gcStopTime - bootTime)*1000)); VM.sysWriteln("ms]"); } if (verbose > 2) { VM.sysWrite(" Collection time: ", (gcStopTime - gcStartTime)); VM.sysWriteln(" seconds"); } valuePool.reset(); locationPool.reset(); rootLocationPool.reset(); interiorRootPool.reset(); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/776422803f3f5d507ab6478405028a9780341ae8/StopTheWorldGC.java/clean/MMTk/src/org/mmtk/plan/StopTheWorldGC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 727, 918, 1026, 5160, 7391, 1435, 288, 565, 2552, 7391, 5621, 565, 309, 261, 11369, 422, 404, 13, 288, 1377, 8251, 18, 9499, 3067, 2932, 2122, 8863, 1377, 8251, 18, 9499, 3067, 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, 282, 3238, 727, 918, 1026, 5160, 7391, 1435, 288, 565, 2552, 7391, 5621, 565, 309, 261, 11369, 422, 404, 13, 288, 1377, 8251, 18, 9499, 3067, 2932, 2122, 8863, 1377, 8251, 18, 9499, 3067, 12, ...
"ProgressBar.foreground", new ColorUIResource(Color.black), "ProgressBar.selectionBackground", new ColorUIResource(Color.black), "ProgressBar.selectionForeground", new ColorUIResource(light), "ProgressBar.repaintInterval", new Integer(250), "ProgressBar.cycleTime", new Integer(6000),
"ProgressBar.foreground", new ColorUIResource(0, 0, 128), "ProgressBar.selectionBackground", new ColorUIResource(0, 0, 128), "ProgressBar.selectionForeground", new ColorUIResource(Color.LIGHT_GRAY), "ProgressBar.repaintInterval", new Integer(50), "ProgressBar.cycleTime", new Integer(3000),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoableEdit.undoText", "Undo", "AbstractUndoableEdit.redoText", "Redo", "Button.background", new ColorUIResource(Color.LIGHT_GRAY), "Button.border", new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { return BasicBorders.getButtonBorder(); } }, "Button.darkShadow", new ColorUIResource(Color.BLACK), "Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "Button.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Button.foreground", new ColorUIResource(Color.BLACK), "Button.highlight", new ColorUIResource(Color.WHITE), "Button.light", new ColorUIResource(Color.LIGHT_GRAY), "Button.margin", new InsetsUIResource(2, 14, 2, 14), "Button.shadow", new ColorUIResource(Color.GRAY), "Button.textIconGap", new Integer(4), "Button.textShiftOffset", new Integer(0), "CheckBox.background", new ColorUIResource(new Color(204, 204, 204)), "CheckBox.border", new BorderUIResource.CompoundBorderUIResource(null, null), "CheckBox.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "CheckBox.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBox.foreground", new ColorUIResource(darkShadow), "CheckBox.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxIcon(); } }, "CheckBox.checkIcon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getMenuItemCheckIcon(); } }, "CheckBox.margin",new InsetsUIResource(2, 2, 2, 2), "CheckBox.textIconGap", new Integer(4), "CheckBox.textShiftOffset", new Integer(0), "CheckBoxMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.acceleratorForeground", new ColorUIResource(new Color(16, 16, 16)), "CheckBoxMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "CheckBoxMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "CheckBoxMenuItem.background", new ColorUIResource(light), "CheckBoxMenuItem.border", new BasicBorders.MarginBorder(), "CheckBoxMenuItem.borderPainted", Boolean.FALSE, "CheckBoxMenuItem.checkIcon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxMenuItemIcon(); } }, "CheckBoxMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.foreground", new ColorUIResource(darkShadow), "CheckBoxMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "CheckBoxMenuItem.selectionBackground", new ColorUIResource(Color.black), "CheckBoxMenuItem.selectionForeground", new ColorUIResource(Color.white), "ColorChooser.background", new ColorUIResource(light), "ColorChooser.cancelText", "Cancel", "ColorChooser.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ColorChooser.foreground", new ColorUIResource(darkShadow), "ColorChooser.hsbBlueText", "B", "ColorChooser.hsbBrightnessText", "B", "ColorChooser.hsbGreenText", "G", "ColorChooser.hsbHueText", "H", "ColorChooser.hsbNameText", "HSB", "ColorChooser.hsbRedText", "R", "ColorChooser.hsbSaturationText", "S", "ColorChooser.okText", "OK", "ColorChooser.previewText", "Preview", "ColorChooser.resetText", "Reset", "ColorChooser.rgbBlueMnemonic", new Integer(66), "ColorChooser.rgbBlueText", "Blue", "ColorChooser.rgbGreenMnemonic", new Integer(71), "ColorChooser.rgbGreenText", "Green", "ColorChooser.rgbNameText", "RGB", "ColorChooser.rgbRedMnemonic", new Integer(82), "ColorChooser.rgbRedText", "Red", "ColorChooser.sampleText", "Sample Text Sample Text", "ColorChooser.swatchesDefaultRecentColor", new ColorUIResource(light), "ColorChooser.swatchesNameText", "Swatches", "ColorChooser.swatchesRecentSwatchSize", new Dimension(10, 10), "ColorChooser.swatchesRecentText", "Recent:", "ColorChooser.swatchesSwatchSize", new Dimension(10, 10), "ComboBox.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "hidePopup", "PAGE_UP", "pageUpPassThrough", "PAGE_DOWN", "pageDownPassThrough", "HOME", "homePassThrough", "END", "endPassThrough" }), "ComboBox.background", new ColorUIResource(Color.white), "ComboBox.buttonBackground", new ColorUIResource(light), "ComboBox.buttonDarkShadow", new ColorUIResource(darkShadow), "ComboBox.buttonHighlight", new ColorUIResource(highLight), "ComboBox.buttonShadow", new ColorUIResource(shadow), "ComboBox.disabledBackground", new ColorUIResource(light), "ComboBox.disabledForeground", new ColorUIResource(Color.gray), "ComboBox.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ComboBox.foreground", new ColorUIResource(Color.black), "ComboBox.selectionBackground", new ColorUIResource(0, 0, 128), "ComboBox.selectionForeground", new ColorUIResource(Color.white), "Desktop.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "KP_LEFT", "left", "KP_RIGHT", "right", "ctrl F5", "restore", "LEFT", "left", "ctrl alt F6", "selectNextFrame", "UP", "up", "ctrl F6", "selectNextFrame", "RIGHT", "right", "DOWN", "down", "ctrl F7", "move", "ctrl F8", "resize", "ESCAPE", "escape", "ctrl TAB", "selectNextFrame", "ctrl F9", "minimize", "KP_UP", "up", "ctrl F4", "close", "KP_DOWN", "down", "ctrl F10", "maximize", "ctrl alt shift F6","selectPreviousFrame" }), "DesktopIcon.border", new BorderUIResource.CompoundBorderUIResource(null, null), "EditorPane.background", new ColorUIResource(Color.white), "EditorPane.border", BasicBorders.getMarginBorder(), "EditorPane.caretBlinkRate", new Integer(500), "EditorPane.caretForeground", new ColorUIResource(Color.black), "EditorPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "EditorPane.foreground", new ColorUIResource(Color.black), "EditorPane.inactiveForeground", new ColorUIResource(Color.gray), "EditorPane.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "EditorPane.margin", new InsetsUIResource(3, 3, 3, 3), "EditorPane.selectionBackground", new ColorUIResource(Color.black), "EditorPane.selectionForeground", new ColorUIResource(Color.white), "FileChooser.acceptAllFileFilterText", "All Files (*.*)", "FileChooser.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancelSelection" }), "FileChooser.cancelButtonMnemonic", new Integer(67), "FileChooser.cancelButtonText", "Cancel", "FileChooser.cancelButtonToolTipText", "Abort file chooser dialog", // XXX Don't use gif// "FileChooser.detailsViewIcon", new IconUIResource(new ImageIcon("icons/DetailsView.gif")), "FileChooser.directoryDescriptionText", "Directory", "FileChooser.fileDescriptionText", "Generic File", "FileChooser.helpButtonMnemonic", new Integer(72), "FileChooser.helpButtonText", "Help", "FileChooser.helpButtonToolTipText", "FileChooser help", // XXX Don't use gif// "FileChooser.homeFolderIcon", new IconUIResource(new ImageIcon("icons/HomeFolder.gif")), // XXX Don't use gif// "FileChooser.listViewIcon", new IconUIResource(new ImageIcon("icons/ListView.gif")), "FileChooser.newFolderErrorSeparator", ":", "FileChooser.newFolderErrorText", "Error creating new folder", // XXX Don't use gif// "FileChooser.newFolderIcon", new IconUIResource(new ImageIcon("icons/NewFolder.gif")), "FileChooser.openButtonMnemonic", new Integer(79), "FileChooser.openButtonText", "Open", "FileChooser.openButtonToolTipText", "Open selected file", "FileChooser.saveButtonMnemonic", new Integer(83), "FileChooser.saveButtonText", "Save", "FileChooser.saveButtonToolTipText", "Save selected file", // XXX Don't use gif// "FileChooser.upFolderIcon", new IconUIResource(new ImageIcon("icons/UpFolder.gif")), "FileChooser.updateButtonMnemonic", new Integer(85), "FileChooser.updateButtonText", "Update", "FileChooser.updateButtonToolTipText", "Update directory listing", // XXX Don't use gif// "FileView.computerIcon", new IconUIResource(new ImageIcon("icons/Computer.gif")), // XXX Don't use gif// "FileView.directoryIcon", new IconUIResource(new ImageIcon("icons/Directory.gif")), // XXX Don't use gif// "FileView.fileIcon", new IconUIResource(new ImageIcon("icons/File.gif")), // XXX Don't use gif// "FileView.floppyDriveIcon", new IconUIResource(new ImageIcon("icons/Floppy.gif")), // XXX Don't use gif// "FileView.hardDriveIcon", new IconUIResource(new ImageIcon("icons/HardDrive.gif")), "FocusManagerClassName", "TODO", "FormattedTextField.background", new ColorUIResource(light), "FormattedTextField.caretForeground", new ColorUIResource(Color.black), "FormattedTextField.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "FormattedTextField.foreground", new ColorUIResource(Color.black), "FormattedTextField.inactiveBackground", new ColorUIResource(light), "FormattedTextField.inactiveForeground", new ColorUIResource(Color.gray), "FormattedTextField.selectionBackground", new ColorUIResource(Color.black), "FormattedTextField.selectionForeground", new ColorUIResource(Color.white), "FormView.resetButtonText", "Reset", "FormView.submitButtonText", "Submit Query", "InternalFrame.activeTitleBackground", new ColorUIResource(0, 0, 128), "InternalFrame.activeTitleForeground", new ColorUIResource(Color.white), "InternalFrame.border", new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(BevelBorder.RAISED, Color.WHITE, Color.WHITE, shadowOuter, shadowInner); Border border = new BorderUIResource.CompoundBorderUIResource(outer, inner); return border; } }, "InternalFrame.borderColor", new ColorUIResource(light), "InternalFrame.borderDarkShadow", new ColorUIResource(Color.BLACK), "InternalFrame.borderHighlight", new ColorUIResource(Color.WHITE), "InternalFrame.borderLight", new ColorUIResource(Color.LIGHT_GRAY), "InternalFrame.borderShadow", new ColorUIResource(Color.GRAY), "InternalFrame.closeIcon", BasicIconFactory.createEmptyFrameIcon(), // FIXME: Set a nice icon for InternalFrames here. "InternalFrame.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); } }, "InternalFrame.iconifyIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.inactiveTitleBackground", new ColorUIResource(Color.gray), "InternalFrame.inactiveTitleForeground", new ColorUIResource(Color.lightGray), "InternalFrame.maximizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.minimizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.titleFont", new FontUIResource("Dialog", Font.BOLD, 12), "InternalFrame.windowBindings", new Object[] { "shift ESCAPE", "showSystemMenu", "ctrl SPACE", "showSystemMenu", "ESCAPE", "showSystemMenu" }, "Label.background", new ColorUIResource(light), "Label.disabledForeground", new ColorUIResource(Color.white), "Label.disabledShadow", new ColorUIResource(shadow), "Label.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Label.foreground", new ColorUIResource(darkShadow), "List.background", new ColorUIResource(Color.white), "List.border", new BasicBorders.MarginBorder(), "List.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl DOWN", "selectNextRowChangeLead", "shift UP", "selectPreviousRowExtendSelection", "ctrl RIGHT", "selectNextColumnChangeLead", "shift ctrl LEFT", "selectPreviousColumnExtendSelection", "shift KP_UP", "selectPreviousRowChangeLead", "DOWN", "selectNextRow", "ctrl UP", "selectPreviousRowChangeLead", "ctrl LEFT", "selectPreviousColumnChangeLead", "CUT", "cut", "END", "selectLastRow", "shift PAGE_UP","scrollUpExtendSelection", "KP_UP", "selectPreviousRow", "shift ctrl UP", "selectPreviousRowExtendSelection", "ctrl HOME", "selectFirstRowChangeLead", "shift LEFT", "selectPreviousColumnExtendSelection", "ctrl END", "selectLastRowChangeLead", "ctrl PAGE_DOWN", "scrollDownChangeLead", "shift ctrl RIGHT", "selectNextColumnExtendSelection", "LEFT", "selectPreviousColumn", "ctrl PAGE_UP", "scrollUpChangeLead", "KP_LEFT", "selectPreviousColumn", "shift KP_RIGHT", "selectNextColumnExtendSelection", "SPACE", "addToSelection", "ctrl SPACE", "toggleAndAnchor", "shift SPACE", "extendTo", "shift ctrl SPACE", "moveSelectionTo", "shift ctrl DOWN", "selectNextRowExtendSelection", "ctrl BACK_SLASH", "clearSelection", "shift HOME", "selectFirstRowExtendSelection", "RIGHT", "selectNextColumn", "shift ctrl PAGE_UP", "scrollUpExtendSelection", "shift DOWN", "selectNextRowExtendSelection", "PAGE_DOWN", "scrollDown", "shift ctrl KP_UP", "selectPreviousRowExtendSelection", "shift KP_LEFT", "selectPreviousColumnExtendSelection", "ctrl X", "cut", "shift ctrl PAGE_DOWN", "scrollDownExtendSelection", "ctrl SLASH", "selectAll", "ctrl C", "copy", "ctrl KP_RIGHT", "selectNextColumnChangeLead", "shift END", "selectLastRowExtendSelection", "shift ctrl KP_DOWN", "selectNextRowExtendSelection", "ctrl KP_LEFT", "selectPreviousColumnChangeLead", "HOME", "selectFirstRow", "ctrl V", "paste", "KP_DOWN", "selectNextRow", "ctrl KP_DOWN", "selectNextRowChangeLead", "shift RIGHT", "selectNextColumnExtendSelection", "ctrl A", "selectAll", "shift ctrl END", "selectLastRowExtendSelection", "COPY", "copy", "ctrl KP_UP", "selectPreviousRowChangeLead", "shift ctrl KP_LEFT", "selectPreviousColumnExtendSelection", "shift KP_DOWN", "selectNextRowExtendSelection", "UP", "selectPreviousRow", "shift ctrl HOME", "selectFirstRowExtendSelection", "shift PAGE_DOWN", "scrollDownExtendSelection", "KP_RIGHT", "selectNextColumn", "shift ctrl KP_RIGHT", "selectNextColumnExtendSelection", "PAGE_UP", "scrollUp", "PASTE", "paste" }), "List.font", new FontUIResource("Dialog", Font.PLAIN, 12), "List.foreground", new ColorUIResource(Color.black), "List.selectionBackground", new ColorUIResource(0, 0, 128), "List.selectionForeground", new ColorUIResource(Color.white), "List.focusCellHighlightBorder", new BorderUIResource. LineBorderUIResource(new ColorUIResource(Color.yellow)), "Menu.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.acceleratorForeground", new ColorUIResource(darkShadow), "Menu.acceleratorSelectionForeground", new ColorUIResource(Color.white), "Menu.arrowIcon", BasicIconFactory.getMenuArrowIcon(), "Menu.background", new ColorUIResource(light), "Menu.border", new BasicBorders.MarginBorder(), "Menu.borderPainted", Boolean.FALSE, "Menu.checkIcon", BasicIconFactory.getMenuItemCheckIcon(), "Menu.consumesTabs", Boolean.TRUE, "Menu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.foreground", new ColorUIResource(darkShadow), "Menu.margin", new InsetsUIResource(2, 2, 2, 2), "Menu.selectedWindowInputMapBindings", new Object[] { "ESCAPE", "cancel", "DOWN", "selectNext", "KP_DOWN", "selectNext", "UP", "selectPrevious", "KP_UP", "selectPrevious", "LEFT", "selectParent", "KP_LEFT", "selectParent", "RIGHT", "selectChild", "KP_RIGHT", "selectChild", "ENTER", "return", "SPACE", "return" }, "Menu.selectionBackground", new ColorUIResource(Color.black), "Menu.selectionForeground", new ColorUIResource(Color.white), "MenuBar.background", new ColorUIResource(light), "MenuBar.border", new BasicBorders.MenuBarBorder(null, null), "MenuBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuBar.foreground", new ColorUIResource(darkShadow), "MenuBar.highlight", new ColorUIResource(highLight), "MenuBar.shadow", new ColorUIResource(shadow), "MenuBar.windowBindings", new Object[] { "F10", "takeFocus" }, "MenuItem.acceleratorDelimiter", "-", "MenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.acceleratorForeground", new ColorUIResource(darkShadow), "MenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "MenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "MenuItem.background", new ColorUIResource(light), "MenuItem.border", new BasicBorders.MarginBorder(), "MenuItem.borderPainted", Boolean.FALSE, "MenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.foreground", new ColorUIResource(darkShadow), "MenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "MenuItem.selectionBackground", new ColorUIResource(Color.black), "MenuItem.selectionForeground", new ColorUIResource(Color.white), "OptionPane.background", new ColorUIResource(light), "OptionPane.border", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.buttonAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.cancelButtonText", "Cancel", // XXX Don't use gif// "OptionPane.errorIcon",// new IconUIResource(new ImageIcon("icons/Error.gif")), "OptionPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "OptionPane.foreground", new ColorUIResource(darkShadow), // XXX Don't use gif// "OptionPane.informationIcon",// new IconUIResource(new ImageIcon("icons/Inform.gif")), "OptionPane.messageAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.messageForeground", new ColorUIResource(darkShadow), "OptionPane.minimumSize", new DimensionUIResource(BasicOptionPaneUI.MinimumWidth, BasicOptionPaneUI.MinimumHeight), "OptionPane.noButtonText", "No", "OptionPane.okButtonText", "OK", // XXX Don't use gif// "OptionPane.questionIcon",// new IconUIResource(new ImageIcon("icons/Question.gif")), // XXX Don't use gif// "OptionPane.warningIcon",// new IconUIResource(new ImageIcon("icons/Warn.gif")), "OptionPane.windowBindings", new Object[] { "ESCAPE", "close" }, "OptionPane.yesButtonText", "Yes", "Panel.background", new ColorUIResource(light), "Panel.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Panel.foreground", new ColorUIResource(Color.black), "PasswordField.background", new ColorUIResource(light), "PasswordField.border", new BasicBorders.FieldBorder(null, null, null, null), "PasswordField.caretBlinkRate", new Integer(500), "PasswordField.caretForeground", new ColorUIResource(Color.black), "PasswordField.font", new FontUIResource("Dialog", Font.PLAIN, 12), "PasswordField.foreground", new ColorUIResource(Color.black), "PasswordField.inactiveBackground", new ColorUIResource(light), "PasswordField.inactiveForeground", new ColorUIResource(Color.gray), "PasswordField.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "notify-field-accept")}, "PasswordField.margin", new InsetsUIResource(0, 0, 0, 0), "PasswordField.selectionBackground", new ColorUIResource(Color.black), "PasswordField.selectionForeground", new ColorUIResource(Color.white), "PopupMenu.background", new ColorUIResource(light), "PopupMenu.border", new BorderUIResource.BevelBorderUIResource(0), "PopupMenu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "PopupMenu.foreground", new ColorUIResource(darkShadow), "ProgressBar.background", new ColorUIResource(light), "ProgressBar.border", new BorderUIResource.LineBorderUIResource(Color.darkGray), "ProgressBar.cellLength", new Integer(1), "ProgressBar.cellSpacing", new Integer(0), "ProgressBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ProgressBar.foreground", new ColorUIResource(Color.black), "ProgressBar.selectionBackground", new ColorUIResource(Color.black), "ProgressBar.selectionForeground", new ColorUIResource(light), "ProgressBar.repaintInterval", new Integer(250), "ProgressBar.cycleTime", new Integer(6000), "RadioButton.background", new ColorUIResource(light), "RadioButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "RadioButton.darkShadow", new ColorUIResource(shadow), "RadioButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "RadioButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButton.foreground", new ColorUIResource(darkShadow), "RadioButton.highlight", new ColorUIResource(highLight), "RadioButton.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getRadioButtonIcon(); } }, "RadioButton.light", new ColorUIResource(highLight), "RadioButton.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButton.shadow", new ColorUIResource(shadow), "RadioButton.textIconGap", new Integer(4), "RadioButton.textShiftOffset", new Integer(0), "RadioButtonMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.acceleratorForeground", new ColorUIResource(darkShadow), "RadioButtonMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "RadioButtonMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "RadioButtonMenuItem.background", new ColorUIResource(light), "RadioButtonMenuItem.border", new BasicBorders.MarginBorder(), "RadioButtonMenuItem.borderPainted", Boolean.FALSE, "RadioButtonMenuItem.checkIcon", BasicIconFactory.getRadioButtonMenuItemIcon(), "RadioButtonMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.foreground", new ColorUIResource(darkShadow), "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButtonMenuItem.selectionBackground", new ColorUIResource(Color.black), "RadioButtonMenuItem.selectionForeground", new ColorUIResource(Color.white), "RootPane.defaultButtonWindowKeyBindings", new Object[] { "ENTER", "press", "released ENTER", "release", "ctrl ENTER", "press", "ctrl released ENTER", "release" }, "ScrollBar.background", new ColorUIResource(224, 224, 224), "ScrollBar.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "negativeBlockIncrement", "PAGE_DOWN", "positiveBlockIncrement", "END", "maxScroll", "HOME", "minScroll", "LEFT", "positiveUnitIncrement", "KP_UP", "negativeUnitIncrement", "KP_DOWN", "positiveUnitIncrement", "UP", "negativeUnitIncrement", "RIGHT", "negativeUnitIncrement", "KP_LEFT", "positiveUnitIncrement", "DOWN", "positiveUnitIncrement", "KP_RIGHT", "negativeUnitIncrement" }), "ScrollBar.foreground", new ColorUIResource(light), "ScrollBar.maximumThumbSize", new DimensionUIResource(4096, 4096), "ScrollBar.minimumThumbSize", new DimensionUIResource(8, 8), "ScrollBar.thumb", new ColorUIResource(light), "ScrollBar.thumbDarkShadow", new ColorUIResource(shadow), "ScrollBar.thumbHighlight", new ColorUIResource(highLight), "ScrollBar.thumbShadow", new ColorUIResource(shadow), "ScrollBar.track", new ColorUIResource(light), "ScrollBar.trackHighlight", new ColorUIResource(shadow), "ScrollBar.width", new Integer(16), "ScrollPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "scrollUp", "KP_LEFT", "unitScrollLeft", "ctrl PAGE_DOWN","scrollRight", "PAGE_DOWN", "scrollDown", "KP_RIGHT", "unitScrollRight", "LEFT", "unitScrollLeft", "ctrl END", "scrollEnd", "UP", "unitScrollUp", "RIGHT", "unitScrollRight", "DOWN", "unitScrollDown", "ctrl HOME", "scrollHome", "ctrl PAGE_UP", "scrollLeft", "KP_UP", "unitScrollUp", "KP_DOWN", "unitScrollDown" }), "ScrollPane.background", new ColorUIResource(light), "ScrollPane.border", new BorderUIResource.EtchedBorderUIResource(), "ScrollPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ScrollPane.foreground", new ColorUIResource(darkShadow), "Separator.background", new ColorUIResource(highLight), "Separator.foreground", new ColorUIResource(shadow), "Separator.highlight", new ColorUIResource(highLight), "Separator.shadow", new ColorUIResource(shadow), "Slider.background", new ColorUIResource(light), "Slider.focus", new ColorUIResource(shadow), "Slider.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "positiveBlockIncrement", "PAGE_DOWN", "negativeBlockIncrement", "END", "maxScroll", "HOME", "minScroll", "LEFT", "negativeUnitIncrement", "KP_UP", "positiveUnitIncrement", "KP_DOWN", "negativeUnitIncrement", "UP", "positiveUnitIncrement", "RIGHT", "positiveUnitIncrement", "KP_LEFT", "negativeUnitIncrement", "DOWN", "negativeUnitIncrement", "KP_RIGHT", "positiveUnitIncrement" }), "Slider.focusInsets", new InsetsUIResource(2, 2, 2, 2), "Slider.foreground", new ColorUIResource(light), "Slider.highlight", new ColorUIResource(highLight), "Slider.shadow", new ColorUIResource(shadow), "Slider.thumbHeight", new Integer(20), "Slider.thumbWidth", new Integer(11), "Slider.tickHeight", new Integer(12), "Spinner.background", new ColorUIResource(light), "Spinner.foreground", new ColorUIResource(light), "SplitPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "F6", "toggleFocus", "F8", "startResize", "END", "selectMax", "HOME", "selectMin", "LEFT", "negativeIncremnent", "KP_UP", "negativeIncrement", "KP_DOWN", "positiveIncrement", "UP", "negativeIncrement", "RIGHT", "positiveIncrement", "KP_LEFT", "negativeIncrement", "DOWN", "positiveIncrement", "KP_RIGHT", "positiveIncrement" }), "SplitPane.background", new ColorUIResource(light), "SplitPane.border", new BasicBorders.SplitPaneBorder(null, null), "SplitPane.darkShadow", new ColorUIResource(shadow), "SplitPane.dividerSize", new Integer(10), "SplitPane.highlight", new ColorUIResource(highLight), "SplitPane.shadow", new ColorUIResource(shadow), "TabbedPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl PAGE_DOWN","navigatePageDown", "ctrl PAGE_UP", "navigatePageUp", "ctrl UP", "requestFocus", "ctrl KP_UP", "requestFocus" }), "TabbedPane.background", new ColorUIResource(light), "TabbedPane.contentBorderInsets", new InsetsUIResource(2, 2, 3, 3), "TabbedPane.darkShadow", new ColorUIResource(shadow), "TabbedPane.focus", new ColorUIResource(darkShadow), "TabbedPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "LEFT", "navigateLeft", "KP_UP", "navigateUp", "ctrl DOWN", "requestFocusForVisibleComponent", "UP", "navigateUp", "KP_DOWN", "navigateDown", "RIGHT", "navigateRight", "KP_LEFT", "navigateLeft", "ctrl KP_DOWN", "requestFocusForVisibleComponent", "KP_RIGHT", "navigateRight", "DOWN", "navigateDown" }), "TabbedPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TabbedPane.foreground", new ColorUIResource(darkShadow), "TabbedPane.highlight", new ColorUIResource(highLight), "TabbedPane.light", new ColorUIResource(highLight), "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1), "TabbedPane.shadow", new ColorUIResource(shadow), "TabbedPane.tabbedPaneTabAreaInsets", new InsetsUIResource(3, 2, 1, 2), "TabbedPane.tabbedPaneTabInsets", new InsetsUIResource(1, 4, 1, 4), "TabbedPane.tabbedPaneContentBorderInsets", new InsetsUIResource(3, 2, 1, 2), "TabbedPane.tabbedPaneTabPadInsets", new InsetsUIResource(1, 1, 1, 1), "TabbedPane.tabRunOverlay", new Integer(2), "TabbedPane.textIconGap", new Integer(4), "Table.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl DOWN", "selectNextRowChangeLead", "ctrl RIGHT", "selectNextColumnChangeLead", "ctrl UP", "selectPreviousRowChangeLead", "ctrl LEFT", "selectPreviousColumnChangeLead", "CUT", "cut", "SPACE", "addToSelection", "ctrl SPACE", "toggleAndAnchor", "shift SPACE", "extendTo", "shift ctrl SPACE", "moveSelectionTo", "ctrl X", "cut", "ctrl C", "copy", "ctrl KP_RIGHT", "selectNextColumnChangeLead", "ctrl KP_LEFT", "selectPreviousColumnChangeLead", "ctrl V", "paste", "ctrl KP_DOWN", "selectNextRowChangeLead", "COPY", "copy", "ctrl KP_UP", "selectPreviousRowChangeLead", "PASTE", "paste", "shift PAGE_DOWN","scrollDownExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "END", "selectLastColumn", "shift END", "selectLastColumnExtendSelection", "HOME", "selectFirstColumn", "ctrl END", "selectLastRow", "ctrl shift END","selectLastRowExtendSelection", "LEFT", "selectPreviousColumn", "shift HOME", "selectFirstColumnExtendSelection", "UP", "selectPreviousRow", "RIGHT", "selectNextColumn", "ctrl HOME", "selectFirstRow", "shift LEFT", "selectPreviousColumnExtendSelection", "DOWN", "selectNextRow", "ctrl shift HOME","selectFirstRowExtendSelection", "shift UP", "selectPreviousRowExtendSelection", "F2", "startEditing", "shift RIGHT", "selectNextColumnExtendSelection", "TAB", "selectNextColumnCell", "shift DOWN", "selectNextRowExtendSelection", "ENTER", "selectNextRowCell", "KP_UP", "selectPreviousRow", "KP_DOWN", "selectNextRow", "KP_LEFT", "selectPreviousColumn", "KP_RIGHT", "selectNextColumn", "shift TAB", "selectPreviousColumnCell", "ctrl A", "selectAll", "shift ENTER", "selectPreviousRowCell", "shift KP_DOWN", "selectNextRowExtendSelection", "shift KP_LEFT", "selectPreviousColumnExtendSelection", "ESCAPE", "cancel", "ctrl shift PAGE_UP", "scrollLeftExtendSelection", "shift KP_RIGHT", "selectNextColumnExtendSelection", "ctrl PAGE_UP", "scrollLeftChangeSelection", "shift PAGE_UP", "scrollUpExtendSelection", "ctrl shift PAGE_DOWN", "scrollRightExtendSelection", "ctrl PAGE_DOWN", "scrollRightChangeSelection", "PAGE_UP", "scrollUpChangeSelection", "ctrl shift LEFT", "selectPreviousColumnExtendSelection", "shift KP_UP", "selectPreviousRowExtendSelection", "ctrl shift UP", "selectPreviousRowExtendSelection", "ctrl shift RIGHT", "selectNextColumnExtendSelection", "ctrl shift KP_RIGHT", "selectNextColumnExtendSelection", "ctrl shift DOWN", "selectNextRowExtendSelection", "ctrl BACK_SLASH", "clearSelection", "ctrl shift KP_UP", "selectPreviousRowExtendSelection", "ctrl shift KP_LEFT", "selectPreviousColumnExtendSelection", "ctrl SLASH", "selectAll", "ctrl shift KP_DOWN", "selectNextRowExtendSelection", }), "Table.background", new ColorUIResource(new ColorUIResource(255, 255, 255)), "Table.focusCellBackground", new ColorUIResource(new ColorUIResource(255, 255, 255)), "Table.focusCellForeground", new ColorUIResource(new ColorUIResource(0, 0, 0)), "Table.focusCellHighlightBorder", new BorderUIResource.LineBorderUIResource( new ColorUIResource(255, 255, 0)), "Table.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Table.foreground", new ColorUIResource(new ColorUIResource(0, 0, 0)), "Table.gridColor", new ColorUIResource(new ColorUIResource(128, 128, 128)), "Table.scrollPaneBorder", new BorderUIResource.BevelBorderUIResource(0), "Table.selectionBackground", new ColorUIResource(new ColorUIResource(0, 0, 128)), "Table.selectionForeground", new ColorUIResource(new ColorUIResource(255, 255, 255)), "TableHeader.background", new ColorUIResource(new ColorUIResource(192, 192, 192)), "TableHeader.cellBorder", new BorderUIResource.BevelBorderUIResource(0), "TableHeader.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TableHeader.foreground", new ColorUIResource(new ColorUIResource(0, 0, 0)), "TextArea.background", new ColorUIResource(light), "TextArea.border", new BorderUIResource(BasicBorders.getMarginBorder()), "TextArea.caretBlinkRate", new Integer(500), "TextArea.caretForeground", new ColorUIResource(Color.black), "TextArea.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), "TextArea.foreground", new ColorUIResource(Color.black), "TextArea.inactiveForeground", new ColorUIResource(Color.gray), "TextArea.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "TextArea.margin", new InsetsUIResource(0, 0, 0, 0), "TextArea.selectionBackground", new ColorUIResource(Color.black), "TextArea.selectionForeground", new ColorUIResource(Color.white), "TextField.background", new ColorUIResource(light), "TextField.border", new BasicBorders.FieldBorder(null, null, null, null), "TextField.caretBlinkRate", new Integer(500), "TextField.caretForeground", new ColorUIResource(Color.black), "TextField.darkShadow", new ColorUIResource(shadow), "TextField.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "TextField.foreground", new ColorUIResource(Color.black), "TextField.highlight", new ColorUIResource(highLight), "TextField.inactiveBackground", new ColorUIResource(Color.LIGHT_GRAY), "TextField.inactiveForeground", new ColorUIResource(Color.GRAY), "TextField.light", new ColorUIResource(highLight), "TextField.highlight", new ColorUIResource(light), "TextField.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "notify-field-accept"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, InputEvent.SHIFT_DOWN_MASK), "selection-backward"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, InputEvent.SHIFT_DOWN_MASK), "selection-forward"), }, "TextField.margin", new InsetsUIResource(0, 0, 0, 0), "TextField.selectionBackground", new ColorUIResource(Color.black), "TextField.selectionForeground", new ColorUIResource(Color.white), "TextPane.background", new ColorUIResource(Color.white), "TextPane.border", BasicBorders.getMarginBorder(), "TextPane.caretBlinkRate", new Integer(500), "TextPane.caretForeground", new ColorUIResource(Color.black), "TextPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "TextPane.foreground", new ColorUIResource(Color.black), "TextPane.inactiveForeground", new ColorUIResource(Color.gray), "TextPane.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "TextPane.margin", new InsetsUIResource(3, 3, 3, 3), "TextPane.selectionBackground", new ColorUIResource(Color.black), "TextPane.selectionForeground", new ColorUIResource(Color.white), "TitledBorder.border", new BorderUIResource.EtchedBorderUIResource(), "TitledBorder.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TitledBorder.titleColor", new ColorUIResource(darkShadow), "ToggleButton.background", new ColorUIResource(light), "ToggleButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "ToggleButton.darkShadow", new ColorUIResource(shadow), "ToggleButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "ToggleButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToggleButton.foreground", new ColorUIResource(darkShadow), "ToggleButton.highlight", new ColorUIResource(highLight), "ToggleButton.light", new ColorUIResource(light), "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14), "ToggleButton.shadow", new ColorUIResource(shadow), "ToggleButton.textIconGap", new Integer(4), "ToggleButton.textShiftOffset", new Integer(0), "ToolBar.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "UP", "navigateUp", "KP_UP", "navigateUp", "DOWN", "navigateDown", "KP_DOWN", "navigateDown", "LEFT", "navigateLeft", "KP_LEFT", "navigateLeft", "RIGHT", "navigateRight", "KP_RIGHT", "navigateRight" }), "ToolBar.background", new ColorUIResource(light), "ToolBar.border", new BorderUIResource.EtchedBorderUIResource(), "ToolBar.darkShadow", new ColorUIResource(shadow), "ToolBar.dockingBackground", new ColorUIResource(light), "ToolBar.dockingForeground", new ColorUIResource(Color.red), "ToolBar.floatingBackground", new ColorUIResource(light), "ToolBar.floatingForeground", new ColorUIResource(Color.darkGray), "ToolBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToolBar.foreground", new ColorUIResource(darkShadow), "ToolBar.highlight", new ColorUIResource(highLight), "ToolBar.light", new ColorUIResource(highLight), "ToolBar.separatorSize", new DimensionUIResource(20, 20), "ToolBar.shadow", new ColorUIResource(shadow), "ToolTip.background", new ColorUIResource(light), "ToolTip.border", new BorderUIResource.LineBorderUIResource(Color.lightGray), "ToolTip.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ToolTip.foreground", new ColorUIResource(darkShadow), "Tree.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancel" }), "Tree.background", new ColorUIResource(new Color(255, 255, 255)), "Tree.changeSelectionWithFocus", Boolean.TRUE,// "Tree.closedIcon", new IconUIResource(new ImageIcon("icons/TreeClosed.png")),// "Tree.collapsedIcon", new IconUIResource(new ImageIcon("icons/TreeCollapsed.png")), "Tree.drawsFocusBorderAroundIcon", Boolean.FALSE, "Tree.editorBorder", new BorderUIResource.LineBorderUIResource(Color.lightGray), "Tree.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "shift PAGE_DOWN", "scrollDownExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "END", "selectLast", "ctrl KP_UP", "selectPreviousChangeLead", "shift END", "selectLastExtendSelection", "HOME", "selectFirst", "ctrl END", "selectLastChangeLead", "ctrl SLASH", "selectAll", "LEFT", "selectParent", "shift HOME", "selectFirstExtendSelection", "UP", "selectPrevious", "ctrl KP_DOWN", "selectNextChangeLead", "RIGHT", "selectChild", "ctrl HOME", "selectFirstChangeLead", "DOWN", "selectNext", "ctrl KP_LEFT", "scrollLeft", "shift UP", "selectPreviousExtendSelection", "F2", "startEditing", "ctrl LEFT", "scrollLeft", "ctrl KP_RIGHT","scrollRight", "ctrl UP", "selectPreviousChangeLead", "shift DOWN", "selectNextExtendSelection", "ENTER", "toggle", "KP_UP", "selectPrevious", "KP_DOWN", "selectNext", "ctrl RIGHT", "scrollRight", "KP_LEFT", "selectParent", "KP_RIGHT", "selectChild", "ctrl DOWN", "selectNextChangeLead", "ctrl A", "selectAll", "shift KP_UP", "selectPreviousExtendSelection", "shift KP_DOWN","selectNextExtendSelection", "ctrl SPACE", "toggleSelectionPreserveAnchor", "ctrl shift PAGE_UP", "scrollUpExtendSelection", "ctrl BACK_SLASH", "clearSelection", "shift SPACE", "extendSelection", "ctrl PAGE_UP", "scrollUpChangeLead", "shift PAGE_UP","scrollUpExtendSelection", "SPACE", "toggleSelectionPreserveAnchor", "ctrl shift PAGE_DOWN", "scrollDownExtendSelection", "PAGE_UP", "scrollUpChangeSelection", "ctrl PAGE_DOWN", "scrollDownChangeLead" }), "Tree.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Tree.foreground", new ColorUIResource(Color.black), "Tree.hash", new ColorUIResource(new Color(128, 128, 128)), "Tree.leftChildIndent", new Integer(7), "Tree.rightChildIndent", new Integer(13), "Tree.rowHeight", new Integer(16), "Tree.scrollsOnExpand", Boolean.TRUE, "Tree.selectionBackground", new ColorUIResource(Color.black), "Tree.nonSelectionBackground", new ColorUIResource(new Color(255, 255, 255)), "Tree.selectionBorderColor", new ColorUIResource(Color.black), "Tree.selectionBorder", new BorderUIResource.LineBorderUIResource(Color.black), "Tree.selectionForeground", new ColorUIResource(new Color(255, 255, 255)), "Tree.textBackground", new ColorUIResource(new Color(192, 192, 192)), "Tree.textForeground", new ColorUIResource(new Color(0, 0, 0)), "Viewport.background", new ColorUIResource(light), "Viewport.foreground", new ColorUIResource(Color.black), "Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12) }; defaults.putDefaults(uiDefaults); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/badba23052f905d992da7c32124c28f4339931fc/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 1841, 7019, 12, 3060, 73, 643, 87, 3467, 13, 225, 288, 565, 1033, 8526, 5915, 7019, 31, 3639, 5563, 3551, 12128, 273, 394, 5563, 12, 3247, 29, 16, 29460, 16, 4248, 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, 4750, 918, 1208, 1841, 7019, 12, 3060, 73, 643, 87, 3467, 13, 225, 288, 565, 1033, 8526, 5915, 7019, 31, 3639, 5563, 3551, 12128, 273, 394, 5563, 12, 3247, 29, 16, 29460, 16, 4248, 26, ...
}else{ node.nodeUpdater.kill(); Logger.normal(this, "Shutting down the node updater");
public void set(boolean val) throws InvalidConfigValueException { if(val == get()) return; if(val){ try{ SubConfig sc = nodeConfig.get("node.updater"); node.nodeUpdater = new NodeUpdater(node , sc.getBoolean("autoupdate"), new FreenetURI(sc.getString("URI")), new FreenetURI(sc.getString("revocationURI"))); Logger.normal(this, "Starting up the node updater"); }catch (Exception e){ Logger.error(this, "unable to start the node updater up "+e); throw new InvalidConfigValueException("Unable to enable the Node Updater "+e); } }else{ node.nodeUpdater.kill(); Logger.normal(this, "Shutting down the node updater"); } }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/515e00369c8afb7734d4d0ae9dd781d36f8147cc/UpdaterEnabledCallback.java/clean/src/freenet/node/updater/UpdaterEnabledCallback.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 12, 6494, 1244, 13, 1216, 1962, 809, 9738, 288, 202, 202, 430, 12, 1125, 422, 336, 10756, 327, 31, 202, 202, 430, 12, 1125, 15329, 1082, 202, 698, 95, 9506, 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, 225, 202, 482, 918, 444, 12, 6494, 1244, 13, 1216, 1962, 809, 9738, 288, 202, 202, 430, 12, 1125, 422, 336, 10756, 327, 31, 202, 202, 430, 12, 1125, 15329, 1082, 202, 698, 95, 9506, 202, 1...
label = label.trim(); if (label.length() <= 0) return false; return true; }
label = label.trim(); if (label.length() <= 0) return false; return true; }
public boolean validateLabel(String label) { label = label.trim(); if (label.length() <= 0) return false; return true; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/0707a6aff6dbd240f7c0b2dae47e64da2f4fd627/PerspectiveRegistry.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1954, 2224, 12, 780, 1433, 13, 288, 3639, 1433, 273, 1433, 18, 5290, 5621, 3639, 309, 261, 1925, 18, 2469, 1435, 1648, 374, 13, 5411, 327, 629, 31, 3639, 327, 638, 31, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 2224, 12, 780, 1433, 13, 288, 3639, 1433, 273, 1433, 18, 5290, 5621, 3639, 309, 261, 1925, 18, 2469, 1435, 1648, 374, 13, 5411, 327, 629, 31, 3639, 327, 638, 31, 565, ...
return RubyFixnum.newFixnum(getRuntime(), getArity());
return getRuntime().newFixnum(getArity());
public final RubyFixnum arity() { return RubyFixnum.newFixnum(getRuntime(), getArity()); }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaCallable.java/buggy/src/org/jruby/javasupport/JavaCallable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 19817, 8585, 2107, 19353, 1435, 288, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 588, 686, 560, 10663, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 19817, 8585, 2107, 19353, 1435, 288, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 588, 686, 560, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
warningTags.put(tag, message.replaceAll("%s", tag));
warningTags.put(tag, message.replaceAll("%s", tag));
private void addWarning(String tag, String message) { warningTags.put(tag, message.replaceAll("%s", tag)); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/b348e06c6dac9b88f66841b025d00af43b5afac0/RMICompiler.java/buggy/modules/rmi/src/main/java/org/apache/harmony/rmi/compiler/RMICompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 6210, 12, 780, 1047, 16, 514, 883, 13, 288, 3639, 3436, 3453, 18, 458, 12, 2692, 16, 883, 18, 2079, 1595, 27188, 87, 3113, 1047, 10019, 565, 289, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 6210, 12, 780, 1047, 16, 514, 883, 13, 288, 3639, 3436, 3453, 18, 458, 12, 2692, 16, 883, 18, 2079, 1595, 27188, 87, 3113, 1047, 10019, 565, 289, 2, -100, -100, -100, ...
if (!is_identchar(c)) {
if (!isIdentifierChar(c)) {
private Node str_extend(Node list, int term) { int c; int brace = -1; RubyObject ss; Node node; int nest; c = nextc(); switch (c) { case '$' : case '@' : case '{' : break; default : tokadd('#'); pushback(c); return list; } ss = RubyString.newString(ruby, tok(), toklen()); if (list == null) { list = nf.newDStr(ss); } else if (toklen() > 0) { ph.list_append(list, nf.newStr(ss)); } newtok(); fetch_id : for (;;) { switch (c) { case '$' : tokadd('$'); c = nextc(); if (c == -1) { return Node.MINUS_ONE; } switch (c) { case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } pushback(c); break fetch_id; case '&' : case '+' : case '_' : case '~' : case '*' : case '$' : case '?' : case '!' : case '@' : case ',' : case '.' : case '=' : case ':' : case '<' : case '>' : case '\\' : //refetch: tokadd(c); break fetch_id; default : if (c == term) { ph.list_append(list, nf.newStr(RubyString.newString(ruby, "#$"))); pushback(c); newtok(); return list; } switch (c) { case '\"' : case '/' : case '\'' : case '`' : //goto refetch; tokadd(c); break fetch_id; } if (!is_identchar(c)) { yyerror("bad global variable in string"); newtok(); return list; } } while (is_identchar(c)) { tokadd(c); c = nextc(); } pushback(c); break; case '@' : tokadd(c); c = nextc(); if (c == '@') { tokadd(c); c = nextc(); } while (is_identchar(c)) { tokadd(c); c = nextc(); } pushback(c); break; case '{' : if (c == '{') { brace = '}'; } nest = 0; do { loop_again : for (;;) { c = nextc(); switch (c) { case -1 : if (nest > 0) { yyerror("bad substitution in string"); newtok(); return list; } return Node.MINUS_ONE; case '}' : if (c == brace) { if (nest == 0) { break; } nest--; } tokadd(c); continue loop_again; case '\\' : c = nextc(); if (c == -1) { return Node.MINUS_ONE; } if (c == term) { tokadd(c); } else { tokadd('\\'); tokadd(c); } break; case '{' : if (brace != -1) { nest++; } case '\"' : case '/' : case '`' : if (c == term) { pushback(c); ph.list_append(list, nf.newStr(RubyString.newString(ruby, "#"))); ph.rb_warning("bad substitution in string"); tokfix(); ph.list_append(list, nf.newStr(RubyString.newString(ruby, tok(), toklen()))); newtok(); return list; } default : tokadd(c); break; } break loop_again; } } while (c != brace); } break; } //fetch_id: tokfix(); node = nf.newEVStr(tok(), toklen()); ph.list_append(list, node); newtok(); return list; }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 609, 67, 14313, 12, 907, 666, 16, 509, 2481, 13, 288, 3639, 509, 276, 31, 3639, 509, 22500, 273, 300, 21, 31, 3639, 19817, 921, 5202, 31, 3639, 2029, 756, 31, 3639, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 609, 67, 14313, 12, 907, 666, 16, 509, 2481, 13, 288, 3639, 509, 276, 31, 3639, 509, 22500, 273, 300, 21, 31, 3639, 19817, 921, 5202, 31, 3639, 2029, 756, 31, 3639, 509, 1...
return CorrelationStatus.valueOf(getDAO().getCorrelationStatus()); }
return CorrelationStatus.valueOf(getDAO().getCorrelationStatus()); }
public CorrelationStatus getCorrelationStatus() { return CorrelationStatus.valueOf(getDAO().getCorrelationStatus()); }
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/7993245508e559132e1b742401322e12968bc341/MyRoleMessageExchangeImpl.java/buggy/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/MyRoleMessageExchangeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9557, 5488, 1482, 18399, 5488, 1482, 1435, 288, 565, 327, 9557, 5488, 1482, 18, 1132, 951, 12, 588, 18485, 7675, 588, 31685, 1482, 10663, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9557, 5488, 1482, 18399, 5488, 1482, 1435, 288, 565, 327, 9557, 5488, 1482, 18, 1132, 951, 12, 588, 18485, 7675, 588, 31685, 1482, 10663, 225, 289, 2, -100, -100, -100, -100, -100, ...
protected void parseSQLATTR(DRDAStatement stmt) throws DRDAProtocolException {
protected void parseSQLATTR(DRDAStatement stmt) throws DRDAProtocolException {
protected void parseSQLATTR(DRDAStatement stmt) throws DRDAProtocolException { String attrs = parseEncodedString(); if (SanityManager.DEBUG) trace("sqlattr = '" + attrs+"'"); //let Cloudscape handle any errors in the types it doesn't support //just set the attributes boolean validAttribute = false; if (attrs.indexOf("INSENSITIVE SCROLL") != -1 || attrs.indexOf("SCROLL INSENSITIVE") != -1) //CLI { stmt.scrollType = ResultSet.TYPE_SCROLL_INSENSITIVE; stmt.concurType = ResultSet.CONCUR_READ_ONLY; validAttribute = true; } if ((attrs.indexOf("SENSITIVE DYNAMIC SCROLL") != -1) || (attrs.indexOf("SENSITIVE STATIC SCROLL") != -1)) { stmt.scrollType = ResultSet.TYPE_SCROLL_SENSITIVE; validAttribute = true; } if ((attrs.indexOf("FOR UPDATE") != -1)) { validAttribute = true; stmt.concurType = ResultSet.CONCUR_UPDATABLE; } if (attrs.indexOf("WITH HOLD") != -1) { stmt.withHoldCursor = JDBC30Translation.HOLD_CURSORS_OVER_COMMIT; validAttribute = true; } if (!validAttribute) { invalidValue(CodePoint.SQLATTR); } }
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, 4750, 918, 1109, 3997, 12043, 12, 6331, 9793, 3406, 3480, 13, 1216, 16801, 9793, 5752, 503, 565, 288, 202, 780, 3422, 273, 1109, 10397, 780, 5621, 202, 430, 261, 55, 10417, 1318, 18, 9394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 3997, 12043, 12, 6331, 9793, 3406, 3480, 13, 1216, 16801, 9793, 5752, 503, 565, 288, 202, 780, 3422, 273, 1109, 10397, 780, 5621, 202, 430, 261, 55, 10417, 1318, 18, 9394...
createUserIDControl(browseComposite);
new Label(entryTable, SWT.NONE); createUserbooleanControl(entryTable);
protected Control createContents(Composite parent) { Composite entryTable = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(1, false); layout.verticalSpacing = 4; entryTable.setLayout (layout); createLabel(entryTable, "Highlighter List:"); createTable(entryTable); createTableViewer(); contentProvider = new HighlighterContentProvider(); tableViewer.setContentProvider(contentProvider); tableViewer.setLabelProvider(new HighlighterLabelProvider()); tableViewer.setInput(MylarUiPlugin.getDefault().getHighlighterList()); createAddRemoveButtons(entryTable); createEmptySpace(entryTable, 1); createGammaSettingControl(entryTable); Composite browseComposite = new Composite(parent, SWT.NULL); GridData gridData = new GridData (GridData.HORIZONTAL_ALIGN_FILL); browseComposite.setLayoutData (gridData); GridLayout gl = new GridLayout(3, false); gl.verticalSpacing = 4; browseComposite.setLayout(gl); createUserIDControl(browseComposite); createTaskDirectoryControl(browseComposite); return entryTable; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/798f490c47129edc715484a83b257aa476745fb3/MylarPreferencePage.java/buggy/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/ui/preferences/MylarPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6323, 12, 9400, 982, 13, 288, 3639, 14728, 1241, 1388, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6323, 12, 9400, 982, 13, 288, 3639, 14728, 1241, 1388, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, ...
case 0 : cm = ScriptCharts.createJChart_Axis( ); description.setText( "beforeDrawAxisLabel( Axis, Label, IChartScriptContext )" + "\nbeforeDrawAxisTitle( Axis, Label, IChartScriptContext )" ); break; case 1 : cm = ScriptCharts.createJChart_DataPoints( ); description.setText( "beforeDrawDataPointLabel( DataPointHint, Label, IChartScriptContext )" ); break; case 2 : cm = ScriptCharts.createJChart_Marker( ); description.setText( "beforeDrawMarkerLine( Axis, MarkerLine, IChartScriptContext )" + "\nbeforeDrawMarkerRange( Axis, MarkerRange, IChartScriptContext )" ); break; case 3 : cm = ScriptCharts.createJChart_Series( ); description.setText( "beforeDrawSeries( Series, ISeriesRenderer, IChartScriptContext )" ); break; case 4 : cm = ScriptCharts.createJChart_SeriesTitle( ); description.setText( "beforeDrawSeriesTitle( Series, Label, IChartScriptContext )" ); break; case 5 : cm = ScriptCharts.createJChart_Block( ); description.setText( "beforeDrawBlock( Block, IChartScriptContext )" ); break; case 6 : cm = ScriptCharts.createJChart_Legend( ); description.setText( "beforeDrawLegendEntry( Label, IChartScriptContext )" ); break;
int iSelection = cbType.getSelectionIndex( ); switch ( iSelection ) { case 0 : cm = ScriptCharts.createJChart_Axis( ); description.setText( "beforeDrawAxisLabel( Axis, Label, IChartScriptContext )" + "\nbeforeDrawAxisTitle( Axis, Label, IChartScriptContext )" ); break; case 1 : cm = ScriptCharts.createJChart_DataPoints( ); description.setText( "beforeDrawDataPointLabel( DataPointHint, Label, IChartScriptContext )" ); break; case 2 : cm = ScriptCharts.createJChart_Marker( ); description.setText( "beforeDrawMarkerLine( Axis, MarkerLine, IChartScriptContext )" + "\nbeforeDrawMarkerRange( Axis, MarkerRange, IChartScriptContext )" ); break; case 3 : cm = ScriptCharts.createJChart_Series( ); description.setText( "beforeDrawSeries( Series, ISeriesRenderer, IChartScriptContext )" ); break; case 4 : cm = ScriptCharts.createJChart_SeriesTitle( ); description.setText( "beforeDrawSeriesTitle( Series, Label, IChartScriptContext )" ); break; case 5 : cm = ScriptCharts.createJChart_Block( ); description.setText( "beforeDrawBlock( Block, IChartScriptContext )" ); break; case 6 : cm = ScriptCharts.createJChart_Legend( ); description.setText( "beforeDrawLegendEntry( Label, IChartScriptContext )" ); break; } bNeedsGeneration = true; this.redraw( );
public void widgetSelected( SelectionEvent e ) { int iSelection = cb.getSelectionIndex( ); switch ( iSelection ) { case 0 : cm = ScriptCharts.createJChart_Axis( ); description.setText( "beforeDrawAxisLabel( Axis, Label, IChartScriptContext )" //$NON-NLS-1$ + "\nbeforeDrawAxisTitle( Axis, Label, IChartScriptContext )" ); //$NON-NLS-1$ break; case 1 : cm = ScriptCharts.createJChart_DataPoints( ); description.setText( "beforeDrawDataPointLabel( DataPointHint, Label, IChartScriptContext )" ); //$NON-NLS-1$ break; case 2 : cm = ScriptCharts.createJChart_Marker( ); description.setText( "beforeDrawMarkerLine( Axis, MarkerLine, IChartScriptContext )" //$NON-NLS-1$ + "\nbeforeDrawMarkerRange( Axis, MarkerRange, IChartScriptContext )" ); //$NON-NLS-1$ break; case 3 : cm = ScriptCharts.createJChart_Series( ); description.setText( "beforeDrawSeries( Series, ISeriesRenderer, IChartScriptContext )" ); //$NON-NLS-1$ break; case 4 : cm = ScriptCharts.createJChart_SeriesTitle( ); description.setText( "beforeDrawSeriesTitle( Series, Label, IChartScriptContext )" ); //$NON-NLS-1$ break; case 5 : cm = ScriptCharts.createJChart_Block( ); description.setText( "beforeDrawBlock( Block, IChartScriptContext )" ); //$NON-NLS-1$ break; case 6 : cm = ScriptCharts.createJChart_Legend( ); description.setText( "beforeDrawLegendEntry( Label, IChartScriptContext )" ); //$NON-NLS-1$ break; } ca.redraw( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ef9ad0cebcee59b4b447430acdbf2355afecf441/JavaViewer.java/buggy/chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/api/script/JavaViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 202, 95, 202, 202, 474, 277, 6233, 273, 2875, 18, 588, 6233, 1016, 12, 11272, 202, 202, 9610, 261, 277, 6233, 262, 202, 202, 95, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 202, 95, 202, 202, 474, 277, 6233, 273, 2875, 18, 588, 6233, 1016, 12, 11272, 202, 202, 9610, 261, 277, 6233, 262, 202, 202, 95, ...
} catch (Exception except) { throw new RuntimeException( XMLMessages.createXMLMessage( XMLErrorResources.ER_RESOURCE_COULD_NOT_LOAD, new Object[] { entitiesResource, except.toString(), entitiesResource, except.toString()})); } finally { if (is != null) { try { is.close(); } catch (Exception except) { } } } }
} else {
public CharInfo(String entitiesResource) { InputStream is = null; BufferedReader reader = null; int index; String name; String value; int code; String line; try { try { // Maintenance note: we should evaluate replacing getting the // ClassLoader with javax.xml.transform.FactoryFinder.findClassLoader() // or similar code ClassLoader cl = CharInfo.class.getClassLoader(); if (cl == null) { is = ClassLoader.getSystemResourceAsStream(entitiesResource); } else { is = cl.getResourceAsStream(entitiesResource); } } catch (Exception e) { } if (is == null) is = CharInfo.class.getResourceAsStream(entitiesResource); if (is == null) { URL url = new URL(entitiesResource); is = url.openStream(); } if (is == null) throw new RuntimeException( XMLMessages.createXMLMessage( XMLErrorResources.ER_RESOURCE_COULD_NOT_FIND, new Object[] { entitiesResource, entitiesResource })); // Fix Bugzilla#4000: force reading in UTF-8 // This creates the de facto standard that Xalan's resource // files must be encoded in UTF-8. This should work in all JVMs. // // %REVIEW% KNOWN ISSUE: IT FAILS IN MICROSOFT VJ++, which // didn't implement the UTF-8 encoding. Theoretically, we should // simply let it fail in that case, since the JVM is obviously // broken if it doesn't support such a basic standard. But // since there are still some users attempting to use VJ++ for // development, we have dropped in a fallback which makes a // second attempt using the platform's default encoding. In VJ++ // this is apparently ASCII, which is subset of UTF-8... and // since the strings we'll be reading here are also primarily // limited to the 7-bit ASCII range (at least, in English // versions of Xalan), this should work well enough to keep us // on the air until we're ready to officially decommit from // VJ++. try { reader = new BufferedReader(new InputStreamReader(is, "UTF-8")); } catch (java.io.UnsupportedEncodingException e) { reader = new BufferedReader(new InputStreamReader(is)); } line = reader.readLine(); while (line != null) { if (line.length() == 0 || line.charAt(0) == '#') { line = reader.readLine(); continue; } index = line.indexOf(' '); if (index > 1) { name = line.substring(0, index); ++index; if (index < line.length()) { value = line.substring(index); index = value.indexOf(' '); if (index > 0) value = value.substring(0, index); code = Integer.parseInt(value); defineEntity(name, (char) code); } } line = reader.readLine(); } is.close(); m_specialsMap.set(S_LINEFEED); m_specialsMap.set(S_CARRIAGERETURN); } catch (Exception except) { throw new RuntimeException( XMLMessages.createXMLMessage( XMLErrorResources.ER_RESOURCE_COULD_NOT_LOAD, new Object[] { entitiesResource, except.toString(), entitiesResource, except.toString()})); } finally { if (is != null) { try { is.close(); } catch (Exception except) { } } } }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/84b723f712033baf1fce4c3f9771e3e911016575/CharInfo.java/buggy/src/org/apache/xml/serializer/CharInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3703, 966, 12, 780, 5140, 1420, 13, 565, 288, 3639, 5037, 353, 273, 446, 31, 3639, 10633, 2949, 273, 446, 31, 3639, 509, 770, 31, 3639, 514, 508, 31, 3639, 514, 460, 31, 3639, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3703, 966, 12, 780, 5140, 1420, 13, 565, 288, 3639, 5037, 353, 273, 446, 31, 3639, 10633, 2949, 273, 446, 31, 3639, 509, 770, 31, 3639, 514, 508, 31, 3639, 514, 460, 31, 3639, 5...
_context.jobQueue().addJob(new EvaluateProfilesJob(_context));
SimpleTimer.getInstance().addEvent(new Reorg(), 0);
public PeerManager(RouterContext context) { _context = context; _log = context.logManager().getLog(PeerManager.class); _persistenceHelper = new ProfilePersistenceHelper(context); _organizer = context.profileOrganizer(); _organizer.setUs(context.routerHash()); _capabilitiesByPeer = new HashMap(128); _peersByCapability = new List[26]; for (int i = 0; i < _peersByCapability.length; i++) _peersByCapability[i] = new ArrayList(64); loadProfiles(); _context.jobQueue().addJob(new EvaluateProfilesJob(_context)); //_context.jobQueue().addJob(new PersistProfilesJob(_context, this)); }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/1eebd5463f5a4783008b5ae42ea8091e4d54fe7f/PeerManager.java/buggy/router/java/src/net/i2p/router/peermanager/PeerManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10669, 1318, 12, 8259, 1042, 819, 13, 288, 3639, 389, 2472, 273, 819, 31, 3639, 389, 1330, 273, 819, 18, 1330, 1318, 7675, 588, 1343, 12, 6813, 1318, 18, 1106, 1769, 3639, 389, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10669, 1318, 12, 8259, 1042, 819, 13, 288, 3639, 389, 2472, 273, 819, 31, 3639, 389, 1330, 273, 819, 18, 1330, 1318, 7675, 588, 1343, 12, 6813, 1318, 18, 1106, 1769, 3639, 389, 24...
return (short) ((buffer[0] << 8) + (buffer[1] & 0xff));
return (short) (((short) (buffer[0] & 0xff) << 8) | ((short) (buffer[1] & 0xff) << 0));
public short readShort() throws IOException { int result = read(buffer, 0, 2); if (result == -1) throw new EOFException(); if (getByteOrder() == ByteOrder.LITTLE_ENDIAN) { return (short) ((buffer[0] & 0xff) + (buffer[1] << 8)); } return (short) ((buffer[0] << 8) + (buffer[1] & 0xff)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/ImageInputStreamImpl.java/clean/core/src/classpath/javax/javax/imageio/stream/ImageInputStreamImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3025, 31617, 1435, 565, 1216, 1860, 225, 288, 565, 509, 563, 273, 855, 12, 4106, 16, 374, 16, 576, 1769, 565, 309, 261, 2088, 422, 300, 21, 13, 1377, 604, 394, 30051, 5621, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3025, 31617, 1435, 565, 1216, 1860, 225, 288, 565, 509, 563, 273, 855, 12, 4106, 16, 374, 16, 576, 1769, 565, 309, 261, 2088, 422, 300, 21, 13, 1377, 604, 394, 30051, 5621, 3639, ...
sb.append(" delay = ");
sb.append(" bw=");
public String statsPageLine(boolean isSSK, boolean isInsert) { StringBuffer sb = new StringBuffer(100); sb.append(isSSK ? "SSK" : "CHK"); sb.append(' '); sb.append(isInsert ? "Insert" : "Request"); sb.append(' '); MyRequestThrottle throttle = getThrottle(isSSK, isInsert); sb.append(TimeUtil.formatTime((long)throttle.getRTT(), 2, true)); sb.append(" RTT "); sb.append(TimeUtil.formatTime((long)throttle.getDelay(), 2, true)); sb.append(" delay = "); sb.append((long)throttle.getRate()); sb.append("B/sec"); return sb.toString(); }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/d9d1cea4bc8dfd9ebd6134aaf58a675fbf84d722/RequestStarterGroup.java/clean/src/freenet/node/RequestStarterGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 3177, 1964, 1670, 12, 6494, 353, 1260, 47, 16, 1250, 353, 4600, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 6625, 1769, 202, 202, 18366, 18, 6923, 12, 291, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 3177, 1964, 1670, 12, 6494, 353, 1260, 47, 16, 1250, 353, 4600, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 6625, 1769, 202, 202, 18366, 18, 6923, 12, 291, ...
IPreferenceFilter[] transfers = null;
IPreferenceFilter[] transfers = null;
public boolean finish() { // about to invoke the operation so save our state saveWidgetValues(); IPreferenceFilter[] transfers = null; if (getTransferAll()) { // export all transfers = new IPreferenceFilter[1]; // For export all create a preference filter that can export // all nodes of the Instance and Configuration scopes transfers[0] = new IPreferenceFilter() { public String[] getScopes() { return new String[] { InstanceScope.SCOPE, ConfigurationScope.SCOPE }; } public Map getMapping(String scope) { return null; } }; } else { transfers = getFilters(); } return transfer(transfers); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/901694a204e2e98a8a01b05f67351a3c900227dc/WizardPreferencesPage.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 4076, 1435, 288, 3639, 368, 2973, 358, 4356, 326, 1674, 1427, 1923, 3134, 919, 3639, 1923, 4609, 1972, 5621, 3639, 467, 9624, 1586, 8526, 29375, 273, 446, 31, 3639, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 4076, 1435, 288, 3639, 368, 2973, 358, 4356, 326, 1674, 1427, 1923, 3134, 919, 3639, 1923, 4609, 1972, 5621, 3639, 467, 9624, 1586, 8526, 29375, 273, 446, 31, 3639, 309, 261, ...
protected java.sql.ResultSet getImportedExportedKeys(String catalog, String schema, String primaryTable, String foreignTable) throws SQLException { Field f[] = new Field[14]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, NAME_SIZE); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, NAME_SIZE); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, NAME_SIZE); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, NAME_SIZE); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, NAME_SIZE); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, NAME_SIZE); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, NAME_SIZE); f[8] = new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9] = new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10] = new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11] = new Field(connection, "FK_NAME", iVarcharOid, NAME_SIZE); f[12] = new Field(connection, "PK_NAME", iVarcharOid, NAME_SIZE); f[13] = new Field(connection, "DEFERRABILITY", iInt2Oid, 2); java.sql.ResultSet rs = connection.ExecSQL( "SELECT distinct " + "c.relname as prelname, " + "c2.relname as frelname, " + "t.tgconstrname, " + "a.attnum as keyseq, " + "ic.relname as fkeyname, " + "t.tgdeferrable, " + "t.tginitdeferred, " + "t.tgnargs,t.tgargs, " + "p1.proname as updaterule, " + "p2.proname as deleterule " + "FROM " + "pg_trigger t, " + "pg_trigger t1, " + "pg_class c, " + "pg_class c2, " + "pg_class ic, " + "pg_proc p1, " + "pg_proc p2, " + "pg_index i, " + "pg_attribute a " + "WHERE " // isolate the update rule + "(t.tgrelid=c.oid " + "AND t.tgisconstraint " + "AND t.tgconstrrelid=c2.oid " + "AND t.tgfoid=p1.oid " + "and p1.proname like '%%upd') " + "and " // isolate the delete rule + "(t1.tgrelid=c.oid " + "and t1.tgisconstraint " + "and t1.tgconstrrelid=c2.oid " + "AND t1.tgfoid=p2.oid " + "and p2.proname like '%%del') " // if we are looking for exported keys then primary table will be used + ((primaryTable != null) ? "AND c.relname='" + primaryTable + "' " : "") // if we are looking for imported keys then the foreign table will be used + ((foreignTable != null) ? "AND c2.relname='" + foreignTable + "' " : "") + "AND i.indrelid=c.oid " + "AND i.indexrelid=ic.oid " + "AND ic.oid=a.attrelid " + "AND i.indisprimary " + "ORDER BY " // orderby is as follows getExported, orders by FKTABLE, // getImported orders by PKTABLE // getCrossReference orders by FKTABLE, so this should work for both, // since when getting crossreference, primaryTable will be defined + (primaryTable != null ? "frelname" : "prelname") + ",keyseq"); // returns the following columns // and some example data with a table defined as follows // create table people ( id int primary key); // create table policy ( id int primary key); // create table users ( id int primary key, people_id int references people(id), policy_id int references policy(id)) // prelname | frelname | tgconstrname | keyseq | fkeyName | tgdeferrable | tginitdeferred // 1 | 2 | 3 | 4 | 5 | 6 | 7 // people | users | <unnamed> | 1 | people_pkey | f | f // | tgnargs | tgargs | updaterule | deleterule // | 8 | 9 | 10 | 11 // | 6 | <unnamed>\000users\000people\000UNSPECIFIED\000people_id\000id\000 | RI_FKey_noaction_upd | RI_FKey_noaction_del Vector tuples = new Vector(); while ( rs.next() ) { byte tuple[][] = new byte[14][]; tuple[2] = rs.getBytes(1); //PKTABLE_NAME tuple[6] = rs.getBytes(2); //FKTABLE_NAME String fKeyName = rs.getString(3); String updateRule = rs.getString(10); if (updateRule != null ) { // Rules look like this RI_FKey_noaction_del so we want to pull out the part between the 'Key_' and the last '_' s String rule = updateRule.substring(8, updateRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ( rule == null || "noaction".equals(rule) ) action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; else if ("restrict".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyRestrict; tuple[9] = Integer.toString(action).getBytes(); } String deleteRule = rs.getString(11); if ( deleteRule != null ) { String rule = updateRule.substring(8, updateRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; tuple[10] = Integer.toString(action).getBytes(); } // Parse the tgargs data String fkeyColumn = ""; String pkeyColumn = ""; // Note, I am guessing at most of this, but it should be close // if not, please correct // the keys are in pairs and start after the first four arguments // the arguments are seperated by \000 int keySequence = rs.getInt(4); //KEY_SEQ // get the args String targs = rs.getString(9); // args look like this //<unnamed>\000ww\000vv\000UNSPECIFIED\000m\000a\000n\000b\000 // we are primarily interested in the column names which are the last items in the string StringTokenizer st = new StringTokenizer(targs, "\\000"); int advance = 4 + (keySequence - 1) * 2; for ( int i = 0; st.hasMoreTokens() && i < advance ; i++ ) st.nextToken(); // advance to the key column of interest if ( st.hasMoreTokens() ) { fkeyColumn = st.nextToken(); } if ( st.hasMoreTokens() ) { pkeyColumn = st.nextToken(); } tuple[3] = pkeyColumn.getBytes(); //PKCOLUMN_NAME tuple[7] = fkeyColumn.getBytes(); //FKCOLUMN_NAME tuple[8] = rs.getBytes(4); //KEY_SEQ tuple[11] = targs.getBytes(); //FK_NAME this will give us a unique name for the foreign key tuple[12] = rs.getBytes(5); //PK_NAME // DEFERRABILITY int deferrability = java.sql.DatabaseMetaData.importedKeyNotDeferrable; boolean deferrable = rs.getBoolean(6); boolean initiallyDeferred = rs.getBoolean(7); if (deferrable) { if (initiallyDeferred) deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyDeferred; else deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyImmediate; } tuple[13] = Integer.toString(deferrability).getBytes(); tuples.addElement(tuple); } return connection.getResultSet(null, f, tuples, "OK", 1); }
45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/7c553901d7ab010ad1cb5bf44f9ca2fdae83909a/AbstractJdbc1DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2252, 18, 4669, 18, 13198, 336, 24934, 31140, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 3354, 1388, 16, 514, 5523, 1388, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2252, 18, 4669, 18, 13198, 336, 24934, 31140, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 3354, 1388, 16, 514, 5523, 1388, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526,...
currentRow[currentRow.length - 1] = new Integer(SQL_ROW_DELETED);
setRowStat(SQL_ROW_DELETED);
public void deleteRow() throws SQLException { checkOpen(); checkUpdateable(); if (currentRow == null) { throw new SQLException(Messages.get("error.resultset.norow"), "24000"); } if (onInsertRow) { throw new SQLException(Messages.get("error.resultset.insrow"), "24000"); } cursor(CURSOR_OP_DELETE, null); // No need to re-fetch the row, just mark it as deleted// cursorFetch(FETCH_REPEAT, 1); // Mark the row as deleted instead currentRow[currentRow.length - 1] = new Integer(SQL_ROW_DELETED); }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/2ce6f7e2b23ed87507133d17d13f4c0ffba806f4/MSCursorResultSet.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/MSCursorResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1430, 1999, 1435, 1216, 6483, 288, 3639, 866, 3678, 5621, 3639, 866, 1891, 429, 5621, 3639, 309, 261, 2972, 1999, 422, 446, 13, 288, 5411, 604, 394, 6483, 12, 5058, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1430, 1999, 1435, 1216, 6483, 288, 3639, 866, 3678, 5621, 3639, 866, 1891, 429, 5621, 3639, 309, 261, 2972, 1999, 422, 446, 13, 288, 5411, 604, 394, 6483, 12, 5058, 18, 588, ...
controlTaskProcessor.setMatcher(new AbstractMatcher()
assertEquals(3, _props.length); assertEquals("event_type", _props[0].name); EventType et = EventTypeHelper.extract(_props[0].value); assertEquals(PullCoffeeHelper.id(), et.domain_name); assertEquals( "::org::jacorb::test::notification::typed::PullCoffee::drinking_coffee", et.type_name); assertEquals("jacorb", _props[1].value.extract_string()); assertEquals(20, _props[2].value.extract_long()); return true; } catch (Exception e) { return false; } } return true; } }); MockControl controlPullCoffeeOperations = MockControl.createControl(PullCoffeeOperations.class); PullCoffeeOperations mockPullCoffeeOperations = (PullCoffeeOperations) controlPullCoffeeOperations.getMock(); mockPullCoffeeOperations.try_drinking_coffee(null, null); controlPullCoffeeOperations.setMatcher(new AbstractMatcher()
public void testFormat() throws Exception { MockControl controlTaskProcessor = MockControl.createControl(TaskProcessor.class); TaskProcessor mockTaskProcessor = (TaskProcessor) controlTaskProcessor.getMock(); mockTaskProcessor.processMessage(null); controlTaskProcessor.setMatcher(new AbstractMatcher() { protected boolean argumentMatches(Object expected, Object actual) { try { Property[] _props = ((Message) actual).toTypedEvent(); assertEquals(3, _props.length); assertEquals("event_type", _props[0].name); EventType et = EventTypeHelper.extract(_props[0].value); assertEquals(PullCoffeeHelper.id(), et.domain_name); assertEquals( "::org::jacorb::test::notification::typed::PullCoffee::drinking_coffee", et.type_name); assertEquals("jacorb", _props[1].value.extract_string()); assertEquals(20, _props[2].value.extract_long()); } catch (Exception e) { fail(); } return true; } }); objectUnderTest_ = new TypedProxyPullConsumerImpl(mockAdmin_, mockSupplierAdmin_, getORB(), getPOA(), getConfiguration(), mockTaskProcessor, getMessageFactory(), new OfferManager(), new SubscriptionManager()); proxyPullConsumer_ = TypedProxyPullConsumerHelper.narrow(objectUnderTest_.activate()); final MockPullCoffee _coffee = new MockPullCoffee() { public boolean try_drinking_coffee(StringHolder name, IntHolder minutes) { super.try_drinking_coffee(name, minutes); name.value = "jacorb"; minutes.value = 20; return true; } }; _coffee.try_drinking_coffee_expect = 1; _coffee.try_cancel_coffee_expect = 1; mockTypedPullSupplier_.get_typed_supplier(); controlTypedPullSupplier_.setReturnValue(_coffee._this(getClientORB())); controlTypedPullSupplier_.replay(); proxyPullConsumer_.connect_typed_pull_supplier(new TypedPullSupplierPOATie( mockTypedPullSupplier_)._this(getClientORB())); objectUnderTest_.runPullMessage(); controlTypedPullSupplier_.verify(); }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/91dc98f2e03e7e1329edbb81db84bc65a35f3cc5/TypedProxyPullConsumerImplTest.java/buggy/test/regression/src/org/jacorb/test/notification/typed/TypedProxyPullConsumerImplTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1630, 1435, 1216, 1185, 565, 288, 3639, 7867, 3367, 3325, 2174, 5164, 273, 7867, 3367, 18, 2640, 3367, 12, 2174, 5164, 18, 1106, 1769, 3639, 3837, 5164, 5416, 2174, 5164, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1630, 1435, 1216, 1185, 565, 288, 3639, 7867, 3367, 3325, 2174, 5164, 273, 7867, 3367, 18, 2640, 3367, 12, 2174, 5164, 18, 1106, 1769, 3639, 3837, 5164, 5416, 2174, 5164, ...
Object selector = ctx.getNextArg(); Object[] args = { selector }; for (int i = 2; i < ctx.count; i++)
Object[] args = ctx.getArgs(); Object selector = args[0]; int n = args.length-1; for (int i = 1; i < n; i++)
public void apply (CallContext ctx) throws Throwable { Object selector = ctx.getNextArg(); Object[] args = { selector }; for (int i = 2; i < ctx.count; i++) { MethodProc caseProc = (MethodProc) ctx.getNextArg(); // FIXME this does not work. if (caseProc.matchN(args, ctx) >= 0) return; } Procedure defaultProc = (Procedure) ctx.getNextArg(); defaultProc.check0(ctx); }
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/1ba214b011a5472ed10cbb54acf4de60285ac833/TypeSwitch.java/clean/gnu/kawa/reflect/TypeSwitch.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2230, 261, 22582, 1103, 13, 1216, 4206, 225, 288, 565, 1033, 3451, 273, 1103, 18, 588, 2134, 4117, 5621, 565, 1033, 8526, 833, 273, 288, 3451, 289, 31, 565, 364, 261, 474, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2230, 261, 22582, 1103, 13, 1216, 4206, 225, 288, 565, 1033, 3451, 273, 1103, 18, 588, 2134, 4117, 5621, 565, 1033, 8526, 833, 273, 288, 3451, 289, 31, 565, 364, 261, 474, 27...
} else if(action instanceof CreateTaskAction){
} else if (action instanceof CreateTaskAction) {
private void updateActionEnablement(Action action, ITaskListElement element){ if(element instanceof ITask){ if(action instanceof MarkTaskCompleteAction){ if(element.isCompleted()){ action.setEnabled(false); } else { action.setEnabled(true); } } else if(action instanceof MarkTaskIncompleteAction){ if(element.isCompleted()){ action.setEnabled(true); } else { action.setEnabled(false); } } else if(action instanceof DeleteAction){ action.setEnabled(true); } else if(action instanceof CreateTaskAction){ action.setEnabled(false); }else if(action instanceof OpenTaskEditorAction){ action.setEnabled(true); } else if(action instanceof CopyDescriptionAction){ action.setEnabled(true); } else if(action instanceof RenameAction){ action.setEnabled(true); } } else if(element instanceof ITaskListCategory) { if(action instanceof MarkTaskCompleteAction){ action.setEnabled(false); } else if(action instanceof MarkTaskIncompleteAction){ action.setEnabled(false); } else if(action instanceof DeleteAction){ if(((ITaskListCategory)element).isArchive()) action.setEnabled(false); else action.setEnabled(true); } else if(action instanceof CreateTaskAction){ if(((ITaskListCategory)element).isArchive()) action.setEnabled(false); else action.setEnabled(true); } else if(action instanceof GoIntoAction){ TaskCategory cat = (TaskCategory) element; if(cat.getChildren().size() > 0){ action.setEnabled(true); } else { action.setEnabled(false); } }else if(action instanceof OpenTaskEditorAction){ action.setEnabled(false); } else if(action instanceof CopyDescriptionAction){ action.setEnabled(true); } else if(action instanceof RenameAction){ if(((ITaskListCategory)element).isArchive()) action.setEnabled(false); else action.setEnabled(true); } } else { action.setEnabled(true); }// if(!canEnableGoInto){// goIntoAction.setEnabled(false);// } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/d1509cef0732a1841f8062e4058ceb7dced6436a/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 1803, 8317, 475, 12, 1803, 1301, 16, 467, 2174, 682, 1046, 930, 15329, 377, 202, 430, 12, 2956, 1276, 467, 2174, 15329, 1082, 202, 430, 12, 1128, 1276, 6622, 2174, 6322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 1803, 8317, 475, 12, 1803, 1301, 16, 467, 2174, 682, 1046, 930, 15329, 377, 202, 430, 12, 2956, 1276, 467, 2174, 15329, 1082, 202, 430, 12, 1128, 1276, 6622, 2174, 6322, ...
RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid);
RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid);
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 745, 12, 202, 202, 54, 10340, 921, 10665, 16, 202, 202, 54, 10340, 548, 7501, 16, 202, 202, 54, 10340, 4926, 833, 16, 202, 202, 474, 2146, 13, 288, 202, 202, 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, 19817, 921, 745, 12, 202, 202, 54, 10340, 921, 10665, 16, 202, 202, 54, 10340, 548, 7501, 16, 202, 202, 54, 10340, 4926, 833, 16, 202, 202, 474, 2146, 13, 288, 202, 202, 54,...
return (Node)u1; }
return (Node) u1; }
public Node getBeginNode() { return (Node)u1; }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Node.java/buggy/org/jruby/nodes/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 25282, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 21, 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, 25282, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 21, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
List rawHits = hit.getRawHits() ;
List rawHits = hit.getRawHits() ;
static void write(TrackerHit hit, SIOOutputStream out) throws IOException { if (hit instanceof SIOTrackerHit) { ((SIOTrackerHit) hit).write(out); } else { double[] pos = hit.getPosition(); for (int i = 0; i < 3; i++) out.writeDouble(pos[i]); float[] matrix = hit.getCovMatrix(); for (int i = 0; i < 6; i++) out.writeFloat(matrix[i]); out.writeFloat(hit.getdEdx()); out.writeFloat(hit.getTime()); List rawHits = hit.getRawHits() ; out.writeInt( rawHits.size()) ; for (int i = 0; i < rawHits.size() ; i++) { out.writePntr( rawHits.get(i) ); } out.writePTag(hit); } }
1612 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1612/87feeb7fde05e281ea5d4801abe1150805f630fa/SIOTrackerHit.java/clean/src/java/hep/lcio/implementation/sio/SIOTrackerHit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 760, 918, 1045, 12, 8135, 13616, 6800, 16, 348, 4294, 4632, 596, 13, 1216, 1860, 282, 288, 1377, 309, 261, 15989, 1276, 348, 4294, 8135, 13616, 13, 1377, 288, 540, 14015, 2320, 51, 8135, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 1045, 12, 8135, 13616, 6800, 16, 348, 4294, 4632, 596, 13, 1216, 1860, 282, 288, 1377, 309, 261, 15989, 1276, 348, 4294, 8135, 13616, 13, 1377, 288, 540, 14015, 2320, 51, 8135, ...
if (exp instanceof PsiPostfixExpression) { return postfixExpressionMustRecurse((PsiPostfixExpression) exp, method);
if(exp instanceof PsiPostfixExpression){ return postfixExpressionMustRecurse((PsiPostfixExpression) exp, method);
private static boolean expressionMustRecurse(PsiExpression exp, PsiMethod method) { if (exp == null) { return false; } if (exp instanceof PsiMethodCallExpression) { return methodCallExpressionMustRecurse((PsiMethodCallExpression) exp, method); } if (exp instanceof PsiNewExpression) { return newExpressionMustRecurse((PsiNewExpression) exp, method); } if (exp instanceof PsiAssignmentExpression) { return assignmentExpressionMustRecurse((PsiAssignmentExpression) exp, method); } if (exp instanceof PsiArrayInitializerExpression) { return arrayInitializerExpressionMustRecurse((PsiArrayInitializerExpression) exp, method); } if (exp instanceof PsiTypeCastExpression) { return typeCastExpressionMustRecurse((PsiTypeCastExpression) exp, method); } if (exp instanceof PsiArrayAccessExpression) { return arrayAccessExpressionMustRecurse((PsiArrayAccessExpression) exp, method); } if (exp instanceof PsiPrefixExpression) { return prefixExpressionMustRecurse((PsiPrefixExpression) exp, method); } if (exp instanceof PsiPostfixExpression) { return postfixExpressionMustRecurse((PsiPostfixExpression) exp, method); } if (exp instanceof PsiBinaryExpression) { return binaryExpressionMustRecurse((PsiBinaryExpression) exp, method); } if (exp instanceof PsiInstanceOfExpression) { return instanceOfExpressionMustRecurse((PsiInstanceOfExpression) exp, method); } if (exp instanceof PsiConditionalExpression) { return conditionalExpressionMustRecurse((PsiConditionalExpression) exp, method); } if (exp instanceof PsiParenthesizedExpression) { return parenthesizedExpressionMustRecurse((PsiParenthesizedExpression) exp, method); } if (exp instanceof PsiReferenceExpression) { return referenceExpressionMustRecurse((PsiReferenceExpression) exp, method); } if (exp instanceof PsiLiteralExpression || exp instanceof PsiClassObjectAccessExpression || exp instanceof PsiThisExpression || exp instanceof PsiSuperExpression) { return false; } return false; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/5d60670c94763ec336e534e66ee87700ab0d35be/RecursionUtils.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/RecursionUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 2652, 10136, 426, 17682, 12, 52, 7722, 2300, 1329, 16, 453, 7722, 1305, 707, 13, 288, 3639, 309, 261, 2749, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 2652, 10136, 426, 17682, 12, 52, 7722, 2300, 1329, 16, 453, 7722, 1305, 707, 13, 288, 3639, 309, 261, 2749, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309,...
java.util.List neighbours = ac.getConnectedAtomsList(atom); int carocounter = 0; for (int i = 0; i < neighbours.size(); i++) { IAtom neighbour = (IAtom)neighbours.get(i); if (neighbour.getSymbol().equals("C") && neighbour.getFlag(CDKConstants.ISAROMATIC)) { carocounter += 1; } } return carocounter; }
java.util.List neighbours = ac.getConnectedAtomsList(atom); int carocounter = 0; for (int i = 0; i < neighbours.size(); i++) { IAtom neighbour = (IAtom)neighbours.get(i); if (neighbour.getSymbol().equals("C") && neighbour.getFlag(CDKConstants.ISAROMATIC)) { carocounter += 1; } } return carocounter; }
private int getAromaticCarbonsCount(IAtomContainer ac, org.openscience.cdk.interfaces.IAtom atom) { java.util.List neighbours = ac.getConnectedAtomsList(atom); int carocounter = 0; for (int i = 0; i < neighbours.size(); i++) { IAtom neighbour = (IAtom)neighbours.get(i); if (neighbour.getSymbol().equals("C") && neighbour.getFlag(CDKConstants.ISAROMATIC)) { carocounter += 1; } } return carocounter; }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/76f1c3db1c889a4fd7bd9dd2e93ee1e9a39ec301/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/descriptors/molecular/XLogPDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 4506, 27468, 39, 6779, 7008, 1380, 12, 45, 3641, 2170, 1721, 16, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 45, 3641, 3179, 13, 288, 202, 202, 6290, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 4506, 27468, 39, 6779, 7008, 1380, 12, 45, 3641, 2170, 1721, 16, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 45, 3641, 3179, 13, 288, 202, 202, 6290, 18, 1...
if (aContentProvider != null)
if (aContentProvider != null) {
public boolean initialize(IStructuredContentProvider aContentProvider) { boolean result = true; try { if (aContentProvider != null) aContentProvider.inputChanged(viewer, cachedOldInput, cachedNewInput); } catch (RuntimeException e) { NavigatorPlugin.logError(0, e.toString(), e); result = false; } return result; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/StructuredViewerManager.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/extensions/StructuredViewerManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 4046, 12, 45, 30733, 1350, 2249, 279, 1350, 2249, 13, 288, 202, 202, 6494, 563, 273, 638, 31, 202, 202, 698, 288, 1082, 202, 430, 261, 69, 1350, 2249, 480, 446, 13, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 4046, 12, 45, 30733, 1350, 2249, 279, 1350, 2249, 13, 288, 202, 202, 6494, 563, 273, 638, 31, 202, 202, 698, 288, 1082, 202, 430, 261, 69, 1350, 2249, 480, 446, 13, 95...
for (Iterator<Edge> j = deletedEdgeSet.iterator(); j.hasNext();) { Edge edge = j.next();
for (Edge edge : deletedEdgeSet) {
public void execute() throws ClassNotFoundException { Set<Edge> deletedEdgeSet = new HashSet<Edge>(); List<MarkedEdge> markedEdgeList = new LinkedList<MarkedEdge>(); // Mark edges to delete, // mark edges to set properties of for (Iterator<Edge> i = cfg.edgeIterator(); i.hasNext();) { Edge edge = i.next(); if (!edge.isExceptionEdge()) continue; ExceptionSet exceptionSet = typeDataflow.getEdgeExceptionSet(edge); if (exceptionSet.isEmpty()) { // No exceptions are actually thrown on this edge, // so we can delete the edge. deletedEdgeSet.add(edge); } else { // Some exceptions appear to be thrown on the edge. // Mark to indicate if any of the exceptions are checked, // and if any are explicit (checked or explicitly declared // or thrown unchecked). boolean someChecked = exceptionSet.containsCheckedExceptions(); boolean someExplicit = exceptionSet.containsExplicitExceptions(); int flags = 0; if (someChecked) flags |= CHECKED_EXCEPTIONS_FLAG; if (someExplicit) flags |= EXPLICIT_EXCEPTIONS_FLAG; markedEdgeList.add(new MarkedEdge(edge, flags)); } } // Remove deleted edges for (Iterator<Edge> j = deletedEdgeSet.iterator(); j.hasNext();) { Edge edge = j.next(); cfg.removeEdge(edge); if (STATS) ++numEdgesPruned; } // Mark edges for (Iterator<MarkedEdge> j = markedEdgeList.iterator(); j.hasNext();) { j.next().apply(); } }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/0a90d09d10d1b86a115beba3e78b25e18a12d9c9/PruneInfeasibleExceptionEdges.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/PruneInfeasibleExceptionEdges.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 1435, 1216, 10403, 288, 202, 202, 694, 32, 6098, 34, 4282, 6098, 694, 273, 394, 6847, 32, 6098, 34, 5621, 202, 202, 682, 32, 21486, 6098, 34, 9350, 6098, 682, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 1435, 1216, 10403, 288, 202, 202, 694, 32, 6098, 34, 4282, 6098, 694, 273, 394, 6847, 32, 6098, 34, 5621, 202, 202, 682, 32, 21486, 6098, 34, 9350, 6098, 682, 273, ...
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; int pc = 0; int pcPrevBranch = 0; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; String[] strings = idata.itsStringTable; String stringReg = null; int indexReg = 0; Loop: for (;;) { int pcJump; try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); pcJump = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcJump >= 0) { // Has catch block doCatch = true; } } if (pcJump < 0) { pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcJump < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // go to generic jump code break; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); throw new JavaScriptException(value, idata.itsSourceFile, sourceLine); } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } stack[stackTop] = null; --stackTop; pcJump = getTarget(iCode, pc); break; } case Token.GOTO : pcJump = getTarget(iCode, pc); break; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; pcJump = getTarget(iCode, pc); break; case Icode_RETSUB : { // indexReg: local to store return address Object value = stack[LOCAL_SHFT + indexReg]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; pcJump = getJavaCatchPC(iCode); } else { // Normal return from GOSUB pcJump = (int)sDbl[LOCAL_SHFT + indexReg]; } break; } case Token.POP : stack[stackTop] = null; stackTop--; continue Loop; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; continue Loop; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; continue Loop; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; continue Loop; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; continue Loop; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; continue Loop; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; continue Loop; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; continue Loop; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; continue Loop; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; continue Loop; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; continue Loop; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; continue Loop; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); continue Loop; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; continue Loop; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; continue Loop; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; continue Loop; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; continue Loop; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; continue Loop; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; continue Loop; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; continue Loop; } case Icode_REG_STR1: stringReg = strings[0xFF & iCode[pc]]; ++pc; continue Loop; case Icode_REG_STR2: stringReg = strings[getIndex(iCode, pc)]; pc += 2; continue Loop; case Icode_REG_STR4: stringReg = strings[getInt(iCode, pc)]; pc += 4; continue Loop; case Icode_REG_IND_C0: indexReg = 0; continue Loop; case Icode_REG_IND_C1: indexReg = 1; continue Loop; case Icode_REG_IND_C2: indexReg = 2; continue Loop; case Icode_REG_IND_C3: indexReg = 3; continue Loop; case Icode_REG_IND1: indexReg = 0xFF & iCode[pc]; ++pc; continue Loop; case Icode_REG_IND2: indexReg = getIndex(iCode, pc); pc += 2; continue Loop; case Icode_REG_IND4: indexReg = getInt(iCode, pc); pc += 4; continue Loop; case Token.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, stringReg); continue Loop; case Token.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, stringReg); continue Loop; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); continue Loop; } case Token.GETPROP : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, stringReg, scope); continue Loop; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, stringReg, rhs, scope); continue Loop; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; continue Loop; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; continue Loop; case Icode_PROPINC : case Icode_PROPDEC : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, stringReg, scope, op == Icode_PROPINC); continue Loop; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); continue Loop; } case Token.LOCAL_SAVE : stack[LOCAL_SHFT + indexReg] = stack[stackTop]; sDbl[LOCAL_SHFT + indexReg] = sDbl[stackTop]; --stackTop; continue Loop; case Token.LOCAL_LOAD : ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + indexReg]; sDbl[stackTop] = sDbl[LOCAL_SHFT + indexReg]; continue Loop; case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } // indexReg: number of arguments int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); stackTop -= indexReg; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, indexReg); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 4; continue Loop; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, indexReg, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; continue Loop; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, indexReg, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; continue Loop; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); continue Loop; } case Icode_TYPEOFNAME : stack[++stackTop] = ScriptRuntime.typeofName(scope, stringReg); continue Loop; case Icode_NAME_FAST_THIS : case Icode_NAME_SLOW_THIS : stackTop = do_nameAndThis(stack, stackTop, scope, stringReg, op); continue Loop; case Token.STRING : stack[++stackTop] = stringReg; continue Loop; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; continue Loop; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; continue Loop; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[indexReg]; continue Loop; case Token.NAME : stack[++stackTop] = ScriptRuntime.name(scope, stringReg); continue Loop; case Icode_NAMEINC : case Icode_NAMEDEC : stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, stringReg, op == Icode_NAMEINC); continue Loop; case Token.SETVAR : if (!useActivationVars) { stack[VAR_SHFT + indexReg] = stack[stackTop]; sDbl[VAR_SHFT + indexReg] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, indexReg, val); } continue Loop; case Token.GETVAR : ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + indexReg]; sDbl[stackTop] = sDbl[VAR_SHFT + indexReg]; } else { stack[stackTop] = activationGet(fnOrScript, scope, indexReg); } continue Loop; case Icode_VARINC : case Icode_VARDEC : ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + indexReg]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + indexReg]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + indexReg] = DBL_MRK; sDbl[VAR_SHFT + indexReg] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, indexReg); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, indexReg, val); } continue Loop; case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; continue Loop; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; continue Loop; case Token.NULL : stack[++stackTop] = null; continue Loop; case Token.THIS : stack[++stackTop] = thisObj; continue Loop; case Token.THISFN : stack[++stackTop] = fnOrScript; continue Loop; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; continue Loop; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; continue Loop; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; continue Loop; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; continue Loop; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; continue Loop; case Token.CATCH_SCOPE : stack[stackTop] = ScriptRuntime.newCatchScope(stringReg, stack[stackTop]); continue Loop; case Token.ENUM_INIT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + indexReg] = ScriptRuntime.enumInit(lhs, scope); continue Loop; } case Token.ENUM_NEXT : case Token.ENUM_ID : { Object val = stack[LOCAL_SHFT + indexReg]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); continue Loop; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); continue Loop; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SCOPE : stack[++stackTop] = scope; continue Loop; case Icode_CLOSURE : { InterpreterData closureData = idata.itsNestedFunctions[indexReg]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); continue Loop; } case Token.REGEXP : { Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[indexReg]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[indexReg]; } stack[++stackTop] = regexp; continue Loop; } case Icode_LITERAL_NEW : // indexReg: number of values in the literal ++stackTop; stack[stackTop] = new Object[indexReg]; sDbl[stackTop] = 0; continue Loop; case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; continue Loop; } case Token.ARRAYLIT : case Icode_SPARE_ARRAYLIT : case Token.OBJECTLIT : { Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.OBJECTLIT) { Object[] ids = (Object[])idata.literalIds[indexReg]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } else { int[] skipIndexces = null; if (op == Icode_SPARE_ARRAYLIT) { skipIndexces = (int[])idata.literalIds[indexReg]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } stack[stackTop] = val; continue Loop; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; continue Loop; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } } // end of interpreter switch // This should be reachable only for jump implementation if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } pcPrevBranch = pcJump; } pc = pcJump; continue Loop; } // end of interpreter try catch (Throwable ex) { pcJump = getJavaCatchPC(iCode); if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } pcPrevBranch = pcJump; } javaException = ex; exceptionPC = pc - 1; pc = pcJump; continue Loop; } } // end of interpreter loop cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/e7cba0f3e1a79550e4e93ffe0d0be122780cb665/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 921, 24713, 12, 1042, 71, 92, 16, 3651, 9237, 742, 1306, 16, 3651, 9237, 546, 291, 2675, 16, 921, 8526, 1968, 16, 9056, 8526, 1968, 40, 3083, 16, 474, 3175, 10544, 16, 474, 3175, 1380, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 921, 24713, 12, 1042, 71, 92, 16, 3651, 9237, 742, 1306, 16, 3651, 9237, 546, 291, 2675, 16, 921, 8526, 1968, 16, 9056, 8526, 1968, 40, 3083, 16, 474, 3175, 10544, 16, 474, 3175, 1380, ...
public void mT35() throws RecognitionException { try { ruleNestingLevel++; int _type = T35; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:14:7: ( 'query' ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:14:7: 'query' { match("query"); if (failed) return ; } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/6b34eb3854fdc06f31034567ebdf72ff28c6c11a/DRLLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 21115, 4763, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 399, 4763, 31, 5411, 509, 389, 1937, 273, 23577, 1016, 5621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 21115, 4763, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 399, 4763, 31, 5411, 509, 389, 1937, 273, 23577, 1016, 5621...
JOptionPane.showMessageDialog(this, message, GRI18n.getString(MODULE, "Error"), JOptionPane.ERROR_MESSAGE);
if (jErrors == null) { jErrors = new JTextArea(5, 80); jErrors.setEditable(false); jErrors.setFont(UIManager.getFont("Label.font")); JScrollPane scroll = new JScrollPane(jErrors, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); scroll.setBorder(new TitledBorder(GRI18n.getString(MODULE, "Errors"))); jPanel1.add( scroll , new GridBagConstraints(0, 6, 3, 1, 1.0, 1.0 , GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); pack(); } jErrors.append(removeLinefeed(message) + "\n");
public void error(String message) { JOptionPane.showMessageDialog(this, message, GRI18n.getString(MODULE, "Error"), JOptionPane.ERROR_MESSAGE); }
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/704773868fd7fc4aaca6cb146ee9990513099b8a/UploadProgress.java/buggy/com/gallery/GalleryRemote/UploadProgress.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 555, 12, 780, 883, 13, 288, 202, 202, 46, 1895, 8485, 18, 4500, 1079, 6353, 12, 2211, 16, 883, 16, 611, 2259, 2643, 82, 18, 588, 780, 12, 12194, 16, 315, 668, 6, 3631...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 555, 12, 780, 883, 13, 288, 202, 202, 46, 1895, 8485, 18, 4500, 1079, 6353, 12, 2211, 16, 883, 16, 611, 2259, 2643, 82, 18, 588, 780, 12, 12194, 16, 315, 668, 6, 3631...
tfHost.show(); lbHost.show(); tfPort.show(); lbPort.show(); tfUser.show(); lbUser.show(); tfPass.show(); lbPass.show(); cbIdent.show();lbIdent.show();
tfHost.setVisible( true ); lbHost.setVisible( true ); tfPort.setVisible( true ); lbPort.setVisible( true ); tfUser.setVisible( true ); lbUser.setVisible( true ); tfPass.setVisible( true ); lbPass.setVisible( true ); cbIdent.setVisible( true );lbIdent.setVisible( true );
void showIMAP() { tfHost.show(); lbHost.show(); tfPort.show(); lbPort.show(); tfUser.show(); lbUser.show(); tfPass.show(); lbPass.show(); cbIdent.show();lbIdent.show(); tfDir.hide(); lbDir.hide(); btChoose.hide(); rbToLocal.hide(); rbAsImap.hide(); cbLeave.hide(); pane.repaint(new Rectangle(pane.getSize())); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/622ab05cdd1b599cb4ef3ab4d649243fa1f4c39c/Servers.java/clean/grendel/sources/grendel/prefs/ui/Servers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 2405, 3445, 2203, 1435, 288, 565, 3253, 2594, 18, 4500, 5621, 7831, 2594, 18, 4500, 5621, 565, 3253, 2617, 18, 4500, 5621, 7831, 2617, 18, 4500, 5621, 565, 3253, 1299, 18, 4500, 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, 282, 918, 2405, 3445, 2203, 1435, 288, 565, 3253, 2594, 18, 4500, 5621, 7831, 2594, 18, 4500, 5621, 565, 3253, 2617, 18, 4500, 5621, 7831, 2617, 18, 4500, 5621, 565, 3253, 1299, 18, 4500, 5621...
boolean hit = false;
double[] p1=new double[4], p2=new double[4], p3=new double[4], pobj=new double[4]; p1[3]=p2[3]=p3[3]=1;
void intersect(double[] from, double[] dir, ArrayList hits) { if (!bounds.intersects(from, dir)) { return; } if (left != null) { left.intersect(from, dir, hits); } if (right != null) { right.intersect(from, dir, hits); } else if (left == null) { // left == right == null boolean hit = false; TreePolygon tempt; double[] tempVa, tempVb, tempVc; for (int i = myStart; i <= myEnd; i++) { tempt = tris[i]; poly: for (int j = 0; j < tempt.getNumTriangles(); j++) { double[][] tri = tempt.getTriangle(j); tempVa = tri[0]; tempVb = tri[1]; tempVc = tri[2]; if (intersect(from, dir, tempVa, tempVb, tempVc)) { double[] plane = P3.planeFromPoints(null, tempVa, tempVb, tempVc); double[] pointObject = P3.lineIntersectPlane(null, from, new double[] { dir[0], dir[1], dir[2], 0 }, plane); if (sign(from, dir, pointObject) == 1) { hits.add(new Object[]{pointObject, new Integer(tempt.getIndex()),new Integer(j)}); hit = true; break poly; } else { if (debug) System.out.println("negative hit!"); } } } } if (debug) { System.out.println("scanned polys: "+((hit)?"hit":"no hit")); } } }
25414 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25414/e3e16c3eb988f34e2b4d2cd4d7cedd52ca2dcf1d/AABBTree.java/buggy/src-core/de/jreality/scene/pick/AABBTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 9136, 12, 9056, 8526, 628, 16, 1645, 8526, 1577, 16, 2407, 11076, 13, 288, 1377, 309, 16051, 10576, 18, 12288, 87, 12, 2080, 16, 1577, 3719, 288, 3639, 327, 31, 1377, 289, 1377, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 9136, 12, 9056, 8526, 628, 16, 1645, 8526, 1577, 16, 2407, 11076, 13, 288, 1377, 309, 16051, 10576, 18, 12288, 87, 12, 2080, 16, 1577, 3719, 288, 3639, 327, 31, 1377, 289, 1377, 30...
do {
boolean containsEscape = isUnicodeEscapeStart; do {
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') if ((flags & TSF_NEWLINES) != 0) break; } while (isJSSpace(c) || c == '\n'); if (c == EOF_CHAR) return EOF; // identifier/keyword/instanceof? if (isJSIdentifierStart(c)) { in.startString(); do { c = in.read(); } while (isJSIdentifierPart(c)); in.unread(); int result; String str = in.getString(); // 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 if ((result = stringToKeyword(str)) != EOF) { return result; } this.string = str; return NAME; } // is it a number? if (isDigit(c) || (c == '.' && isDigit(in.peek()))) { int base = 10; in.startString(); double dval = ScriptRuntime.NaN; long longval = 0; boolean isInteger = true; if (c == '0') { c = in.read(); if (c == 'x' || c == 'X') { c = in.read(); base = 16; // restart the string, losing leading 0x in.startString(); } else if (isDigit(c)) { if (c < '8') { base = 8; // Restart the string, losing the leading 0 in.startString(); } else { /* Checking against c < '8' is non-ECMA, but * is required to support legacy code; we've * supported it in the past, and it's likely * that "08" and "09" are in use in code * having to do with dates. So we need to * support it, which makes our behavior a * superset of ECMA in this area. We raise a * warning if a non-octal digit is * encountered, then proceed as if it were * decimal. */ Object[] errArgs = { String.valueOf((char)c) }; Context.reportWarning (Context.getMessage("msg.bad.octal.literal", errArgs), getSourceName(), in.getLineno(), getLine(), getOffset()); // implicitly retain the leading 0 } } else { // implicitly retain the leading 0 } } while (isXDigit(c)) { if (base < 16 && (isAlpha(c) || (base == 8 && c >= '8'))) { break; } c = in.read(); } if (base == 10 && (c == '.' || c == 'e' || c == 'E')) { isInteger = false; if (c == '.') { do { c = in.read(); } while (isDigit(c)); } if (c == 'e' || c == 'E') { c = in.read(); if (c == '+' || c == '-') { c = in.read(); } if (!isDigit(c)) { in.getString(); // throw away string in progress reportSyntaxError("msg.missing.exponent", null); return ERROR; } do { c = in.read(); } while (isDigit(c)); } } in.unread(); String numString = in.getString(); 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); longval = (long) dval; // is it an integral fits-in-a-long value? if (longval != dval) isInteger = false; } if (!isInteger) { /* Can't handle floats right now, because postfix INC/DEC generate Doubles, but I would generate a Float through this path, and it causes a stack mismatch. FIXME (MS) if (Float.MIN_VALUE <= dval && dval <= Float.MAX_VALUE) this.number = new Xloat((float) dval); else */ this.number = new Double(dval); } else { // We generate the smallest possible type here if (Byte.MIN_VALUE <= longval && longval <= Byte.MAX_VALUE) this.number = new Byte((byte)longval); else if (Short.MIN_VALUE <= longval && longval <= Short.MAX_VALUE) this.number = new Short((short)longval); else if (Integer.MIN_VALUE <= longval && longval <= Integer.MAX_VALUE) this.number = new Integer((int)longval); else { // May lose some precision here, but that's the // appropriate semantics. this.number = new Double(longval); } } 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. StringBuffer stringBuf = null; int quoteChar = c; int val = 0; c = in.read(); in.startString(); // start after the first " while(c != quoteChar) { if (c == '\n' || c == EOF_CHAR) { in.unread(); in.getString(); // throw away the string in progress reportSyntaxError("msg.unterminated.string.lit", null); return ERROR; } if (c == '\\') { // We've hit an escaped character; revert to the // slow method of building a string. if (stringBuf == null) { // Don't include the backslash in.unread(); stringBuf = new StringBuffer(in.getString()); in.read(); } switch (c = in.read()) { 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; case 'v': c = '\u000B'; break; // \v a late addition to the ECMA spec. // '\v' doesn't seem to be valid Java. default: if (isDigit(c) && c < '8') { val = c - '0'; c = in.read(); if (isDigit(c) && c < '8') { val = 8 * val + c - '0'; c = in.read(); if (isDigit(c) && c < '8') { val = 8 * val + c - '0'; c = in.read(); } } in.unread(); if (val > 0377) { reportSyntaxError("msg.oct.esc.too.large", null); return ERROR; } c = val; } else if (c == 'u') { /* * Get 4 hex digits; if the u escape is not * followed by 4 hex digits, use 'u' + the literal * character sequence that follows. Do some manual * match (OK because we're in a string) to avoid * multi-char match on the underlying stream. */ int c1, c2, c3, c4; c1 = in.read(); if (!isXDigit(c1)) { in.unread(); c = 'u'; } else { val = Character.digit((char) c1, 16); c2 = in.read(); if (!isXDigit(c2)) { in.unread(); stringBuf.append('u'); c = c1; } else { val = 16 * val + Character.digit((char) c2, 16); c3 = in.read(); if (!isXDigit(c3)) { in.unread(); stringBuf.append('u'); stringBuf.append((char)c1); c = c2; } else { val = 16 * val + Character.digit((char) c3, 16); c4 = in.read(); if (!isXDigit(c4)) { in.unread(); stringBuf.append('u'); stringBuf.append((char)c1); stringBuf.append((char)c2); c = c3; } else { // got 4 hex digits! Woo Hoo! val = 16 * val + Character.digit((char) c4, 16); c = val; } } } } } else if (c == 'x') { /* Get 2 hex digits, defaulting to 'x' + literal * sequence, as above. */ int c1, c2; c1 = in.read(); if (!isXDigit(c1)) { in.unread(); c = 'x'; } else { val = Character.digit((char) c1, 16); c2 = in.read(); if (!isXDigit(c2)) { in.unread(); stringBuf.append('x'); c = c1; } else { // got 2 hex digits val = 16 * val + Character.digit((char) c2, 16); c = val; } } } } } if (stringBuf != null) stringBuf.append((char) c); c = in.read(); } if (stringBuf != null) this.string = stringBuf.toString(); else { in.unread(); // miss the trailing " this.string = in.getString(); in.read(); } 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('-')) { while ((c = in.read()) != EOF_CHAR && c != '\n') /* skip to end of line */; in.unread(); 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('/')) { while ((c = in.read()) != EOF_CHAR && c != '\n') /* skip to end of line */; in.unread(); return getToken(); } if (in.match('*')) { while ((c = in.read()) != -1 && !(c == '*' && in.match('/'))) { if (c == '\n') { } else if (c == '/' && in.match('*')) { if (in.match('/')) return getToken(); reportSyntaxError("msg.nested.comment", null); return ERROR; } } if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } return getToken(); // `goto retry' } // is it a regexp? if ((flags & TSF_REGEXP) != 0) { // We don't try to use the in.startString/in.getString // approach, because escaped characters (which break it) // seem likely to be common. StringBuffer re = new StringBuffer(); while ((c = in.read()) != '/') { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { re.append((char) c); c = in.read(); } re.append((char) c); } StringBuffer flagsBuf = new StringBuffer(); while (true) { if (in.match('g')) flagsBuf.append('g'); else if (in.match('i')) flagsBuf.append('i'); else if (in.match('m')) flagsBuf.append('m'); else break; } if (isAlpha(in.peek())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = re.toString(); this.regExpFlags = flagsBuf.toString(); return OBJECT; } 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 '+': case '-': if (in.match('=')) { if (c == '+') { this.op = ADD; return ASSIGN; } else { this.op = SUB; return ASSIGN; } } else if (in.match((char) c)) { if (c == '+') { return INC; } else { return DEC; } } else if (c == '-') { return SUB; } else { return ADD; } default: reportSyntaxError("msg.illegal.character", null); return ERROR; } }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/c9d7bb356f90c2000b1a7457ae33c9a111bf96aa/TokenStream.java/clean/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, ...
columns = DataSetManager.getCurrentInstance( ) .getColumns( currentDataSetName, false );
DataSetHandle dataSetHandle = getDataSetHandle( ); try { columnList = DataUtil.getColumnList( dataSetHandle ); } catch ( SemanticException e ) { ExceptionHandler.handle( e ); }
private void refreshColumns( ) { columns = DataSetManager.getCurrentInstance( ) .getColumns( currentDataSetName, false ); columnChooser.removeAll( ); selectedColumnIndex = -1; if ( columns.length == 0 ) { columnChooser.setItems( new String[0] ); } else { ArrayList columnList = new ArrayList( ); for ( int i = 0; i < columns.length; i++ ) { if ( matchType( columns[i] ) ) { columnChooser.add( columns[i].getDataSetColumnName( ) ); columnList.add( columns[i] ); selectedColumnIndex = 0; } } } columnChooser.select( selectedColumnIndex ); columnChooser.setEnabled( selectedColumnIndex == 0 ); refreshValues( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/2f8ed06fa90dc641e3bc351fa8bb23dd5eb33af8/ImportValueDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/ImportValueDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4460, 3380, 12, 262, 202, 95, 202, 202, 5112, 273, 14065, 1318, 18, 588, 3935, 1442, 12, 262, 9506, 202, 18, 588, 3380, 12, 30685, 11924, 16, 629, 11272, 202, 202, 2827,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4460, 3380, 12, 262, 202, 95, 202, 202, 5112, 273, 14065, 1318, 18, 588, 3935, 1442, 12, 262, 9506, 202, 18, 588, 3380, 12, 30685, 11924, 16, 629, 11272, 202, 202, 2827,...
propVal = getCms().readPropertyObject(getParamResource(), propertyName, true).getValue();
propVal = getCms().readPropertyObject(getParamResource(), propertyName, false).getValue();
public String readProperty(String propertyName) { String propVal = null; try { propVal = getCms().readPropertyObject(getParamResource(), propertyName, true).getValue(); } catch (CmsException e) { if (OpenCms.getLog(this).isInfoEnabled()) { OpenCms.getLog(this).info(e); } } if (CmsStringUtil.isEmpty(propVal)) { propVal = ""; } return propVal; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/8f2082421326d1e4f3d525d69a4d24407abf2e83/CmsSecure.java/clean/src/org/opencms/workplace/commons/CmsSecure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 855, 1396, 12, 780, 5470, 13, 288, 3639, 514, 2270, 3053, 273, 446, 31, 3639, 775, 288, 5411, 2270, 3053, 273, 14413, 7675, 896, 1396, 921, 12, 588, 786, 1420, 9334, 5470, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 855, 1396, 12, 780, 5470, 13, 288, 3639, 514, 2270, 3053, 273, 446, 31, 3639, 775, 288, 5411, 2270, 3053, 273, 14413, 7675, 896, 1396, 921, 12, 588, 786, 1420, 9334, 5470, 16...
public synchronized void unref(GL gl) { if (--refCount == 0) { for (int i = 0; i < lists.length; i++) { ObjectList list = lists[i]; if (list != null) { list.delete(gl); lists[i] = null;
public void unref(GLObjectTracker deletedObjectPool) { boolean tryDelete = false; synchronized (this) { if (--refCount == 0) { tryDelete = true; } } if (tryDelete) { GLContext cur = GLContext.getCurrent(); if ((cur != null) && (cur instanceof GLContextImpl)) { GLContextImpl curImpl = (GLContextImpl) cur; if (deletedObjectPool != null && deletedObjectPool == curImpl.getDeletedObjectTracker()) { try { delete(curImpl.getGL()); return; } catch (GLException e) { deletedObjectPool.transferAll(this); throw(e); }
public synchronized void unref(GL gl) { if (--refCount == 0) { for (int i = 0; i < lists.length; i++) { ObjectList list = lists[i]; if (list != null) { list.delete(gl); lists[i] = null; } } } }
53985 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53985/6b66ec1550a1f022db2dda2db3fe473cbebfec85/GLObjectTracker.java/buggy/src/classes/com/sun/opengl/impl/GLObjectTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 918, 640, 1734, 12, 11261, 5118, 13, 288, 565, 309, 261, 413, 1734, 1380, 422, 374, 13, 288, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 6035, 18, 2469, 31, 277, 272...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 640, 1734, 12, 11261, 5118, 13, 288, 565, 309, 261, 413, 1734, 1380, 422, 374, 13, 288, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 6035, 18, 2469, 31, 277, 272...
htmlProcessor.addTextFilter(new RegexReplacementTextFilter("JIRA:(XSTR\\-[0-9]+)", "<a href=\"http:
htmlProcessor.addTextFilter(new RegexReplacementTextFilter("JIRA:(PTOYS\\-[0-9]+)", "<a href=\"http:
private void extractContentFromHTML(char[] rawHTML) throws IOException { // where to dump properties extracted from the page properties = new Properties(); PageBuilder pageBuilder = new PageBuilder() { public void addProperty(String key, String value) { properties.setProperty(key, value); } }; // buffers to hold head and body content CharArray headBuffer = new CharArray(64); CharArray bodyBuffer = new CharArray(4096); // setup rules for html processor HTMLProcessor htmlProcessor = new HTMLProcessor(rawHTML, bodyBuffer); htmlProcessor.addRule(new BodyTagRule(pageBuilder, bodyBuffer)); htmlProcessor.addRule(new HeadExtractingRule(headBuffer)); htmlProcessor.addRule(new TitleExtractingRule(pageBuilder)); htmlProcessor.addRule(new MetaTagRule(pageBuilder)); htmlProcessor.addRule(new LinkExtractingRule()); htmlProcessor.addRule(new AddFirstChildClassToHeader()); // turn JIRA:XSTR-123 snippets into links htmlProcessor.addTextFilter(new RegexReplacementTextFilter("JIRA:(XSTR\\-[0-9]+)", "<a href=\"http://jira.codehaus.org/browse/$1\">$1</a>")); // go! htmlProcessor.process(); this.head = headBuffer.toString(); this.body = bodyBuffer.toString(); }
6337 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6337/767b2a9731064b8427a313e3fb2dff8bbb9a0bac/Page.java/buggy/proxytoys-website/src/java/minimesh/Page.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2608, 1350, 1265, 4870, 12, 3001, 8526, 1831, 4870, 13, 1216, 1860, 288, 3639, 368, 1625, 358, 4657, 1790, 9438, 628, 326, 1363, 3639, 1790, 273, 394, 6183, 5621, 3639, 3460, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2608, 1350, 1265, 4870, 12, 3001, 8526, 1831, 4870, 13, 1216, 1860, 288, 3639, 368, 1625, 358, 4657, 1790, 9438, 628, 326, 1363, 3639, 1790, 273, 394, 6183, 5621, 3639, 3460, 1...
Logger.error(this, msg);
if(is.getStatus() != InsertSender.ROUTE_NOT_FOUND) Logger.error(this, msg); else Logger.normal(this, msg);
public void putCHK(ClientCHKBlock block) throws LowLevelPutException { byte[] data = block.getData(); byte[] headers = block.getHeader(); PartiallyReceivedBlock prb = new PartiallyReceivedBlock(PACKETS_IN_BLOCK, PACKET_SIZE, data); InsertSender is; long uid = random.nextLong(); if(!lockUID(uid)) Logger.error(this, "Could not lock UID just randomly generated: "+uid+" - probably indicates broken PRNG"); synchronized(this) { try { datastore.put(block); } catch (IOException e) { Logger.error(this, "Datastore failure: "+e, e); } is = makeInsertSender(block.getClientKey().getNodeCHK(), MAX_HTL, uid, null, headers, prb, false, lm.getLocation().getValue()); } is.waitUntilFinished(); if(is.getStatus() == InsertSender.SUCCESS) { Logger.normal(this, "Succeeded inserting "+block); } else { int status = is.getStatus(); String msg = "Failed inserting "+block+" : "+is.getStatusString(); if(status == InsertSender.ROUTE_NOT_FOUND) msg += " - this is normal on small networks; the data will still be propagated, but it can't find the 20+ nodes needed for full success"; Logger.error(this, msg); switch(is.getStatus()) { case InsertSender.NOT_FINISHED: Logger.error(this, "IS still running in putCHK!: "+is); throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); case InsertSender.REJECTED_OVERLOAD: throw new LowLevelPutException(LowLevelPutException.REJECTED_OVERLOAD); case InsertSender.ROUTE_NOT_FOUND: throw new LowLevelPutException(LowLevelPutException.ROUTE_NOT_FOUND); default: Logger.error(this, "Unknown InsertSender code in putCHK: "+is.getStatus()+" on "+is); throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); } } }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/b7133fb27d8a7d18085bd1d9ba428adcdbe21b69/Node.java/clean/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 1792, 47, 12, 1227, 1792, 47, 1768, 1203, 13, 1216, 23629, 2355, 6426, 503, 288, 3639, 1160, 8526, 501, 273, 1203, 18, 588, 751, 5621, 3639, 1160, 8526, 1607, 273, 1203, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1378, 1792, 47, 12, 1227, 1792, 47, 1768, 1203, 13, 1216, 23629, 2355, 6426, 503, 288, 3639, 1160, 8526, 501, 273, 1203, 18, 588, 751, 5621, 3639, 1160, 8526, 1607, 273, 1203, ...
utilInstance.initConnections();
utilInstance.initFromEnvironment();
public void runMe(LocalizedOutput log, LocalizedOutput out, BufferedInputStream infile) { utilMain utilInstance; LocalizedInput is; is = LocalizedResource.getInstance().getNewInput(infile); LocalizedInput [] in = { is }; out.println("--------------"+file+"-----------------"); utilInstance = new utilMain(1, out, ignoreErrors); utilInstance.initConnections(); utilInstance.setMtUse(true); utilInstance.go(in, out, (java.util.Properties) null); log.flush(); out.flush(); }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/351dad861c3f3a656d51f9c1d1b61172dd48313c/mtTestCase.java/clean/java/tools/org/apache/derby/impl/tools/ij/mtTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 4667, 12, 2042, 1235, 1447, 613, 16, 3566, 1235, 1447, 596, 16, 24742, 14568, 13, 202, 95, 202, 202, 1367, 6376, 202, 1367, 1442, 31, 3639, 3566, 1235, 1210, 353, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 4667, 12, 2042, 1235, 1447, 613, 16, 3566, 1235, 1447, 596, 16, 24742, 14568, 13, 202, 95, 202, 202, 1367, 6376, 202, 1367, 1442, 31, 3639, 3566, 1235, 1210, 353, 3...
if (value == VAL_RADIO_BTN_ON || value == VAL_RADIO_BTN_OFF)
} if (value == VAL_RADIO_BTN_ON || value == VAL_RADIO_BTN_OFF) {
public int getStyle() { // Infer the style from the value field. if (value == VAL_PUSH_BTN || value == null) return AS_PUSH_BUTTON; if (value == VAL_TOGGLE_BTN_ON || value == VAL_TOGGLE_BTN_OFF) return AS_CHECK_BOX; if (value == VAL_RADIO_BTN_ON || value == VAL_RADIO_BTN_OFF) return AS_RADIO_BUTTON; if (value instanceof IMenuCreator) return AS_DROP_DOWN_MENU; // We should never get to this line... return AS_PUSH_BUTTON; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/391f2606b4ea2c1fb5052d938ca90877ee7631f6/Action.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/action/Action.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 14210, 1435, 288, 202, 202, 759, 657, 586, 326, 2154, 628, 326, 460, 652, 18, 202, 202, 430, 261, 1132, 422, 5143, 67, 30348, 67, 38, 56, 50, 747, 460, 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, 225, 202, 482, 509, 14210, 1435, 288, 202, 202, 759, 657, 586, 326, 2154, 628, 326, 460, 652, 18, 202, 202, 430, 261, 1132, 422, 5143, 67, 30348, 67, 38, 56, 50, 747, 460, 422, 446, 13, ...
protected RenderingContext newRenderingContext(PageInfo pageInfo, Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getSharedContext().setCanvas(this); Rectangle extents; extents = getBaseExtents(pageInfo); //Uu.p("newContext() = extents = " + extents); getSharedContext().setMaxWidth(0); //getSharedContext().setMaxHeight(0); XRLog.layout(Level.FINEST, "new context end"); //Uu.p("new context with extents: " + extents); RenderingContext result = getSharedContext().newRenderingContextInstance(extents); result.setGraphics(g); result.setPrint(pageInfo != null); result.setInteractive(pageInfo == null); return result; }
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/0756aea1531c992a3edd221241cc666701847e91/RootPanel.java/buggy/src/java/org/xhtmlrenderer/swing/RootPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 14261, 1042, 2704, 14261, 1042, 12, 1964, 13149, 556, 410, 966, 16, 17558, 22, 40, 75, 15329, 60, 54, 1343, 18, 6741, 12, 2355, 18, 42, 3740, 882, 10837, 2704, 2472, 10086, 8863, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 14261, 1042, 2704, 14261, 1042, 12, 1964, 13149, 556, 410, 966, 16, 17558, 22, 40, 75, 15329, 60, 54, 1343, 18, 6741, 12, 2355, 18, 42, 3740, 882, 10837, 2704, 2472, 10086, 8863, 588, ...
String document = textDocParser.parsePage(included_meta_id,user,-1,includeLevel-1,paramsToParse) ; ; document = org.apache.oro.text.regex.Util.substitute(patMat,HTML_PREBODY_PATTERN,NULL_SUBSTITUTION,document) ; document = org.apache.oro.text.regex.Util.substitute(patMat,HTML_POSTBODY_PATTERN,NULL_SUBSTITUTION,document) ; return document ;
DocumentRequest includedDocumentRequest = new DocumentRequest(documentRequest.getServerObject(), documentRequest.getRemoteAddr(), documentRequest.getUser(), included_meta_id,document) ; String documentStr = textDocParser.parsePage(includedDocumentRequest,-1,includeLevel-1,paramsToParse) ; ; documentStr = org.apache.oro.text.regex.Util.substitute(patMat,HTML_PREBODY_PATTERN,NULL_SUBSTITUTION,documentStr) ; documentStr = org.apache.oro.text.regex.Util.substitute(patMat,HTML_POSTBODY_PATTERN,NULL_SUBSTITUTION,documentStr) ; return documentStr ;
public String tagInclude (Properties attributes, PatternMatcher patMat) { int no = 0 ; String attributevalue ; //lets get the templates simplename or null if there isn't one ParserParameters paramsToParse = new ParserParameters() ; paramsToParse.setTemplate(attributes.getProperty("template")) ; paramsToParse.setParameter(attributes.getProperty("param")) ; if (null != (attributevalue = attributes.getProperty("no"))) { // If we have the attribute no="number"... // Set the number of this include-tag try { no = Integer.parseInt(attributevalue) ; // Then set the number wanted implicitIncludeNumber = no + 1 ; } catch (NumberFormatException ex) { return "" ; } } else if (null != (attributevalue = attributes.getProperty("file"))) { // If we have the attribute file="filename"... // Fetch a file from the disk try { return fileCache.getCachedFileString(new File(includePath, attributevalue)) ; // Get a file from the include directory } catch (IOException ignored) {} return "" ; } else if (null != (attributevalue = attributes.getProperty("document"))) { // If we have the attribute document="meta-id" try { if (includeLevel>0) { int included_meta_id = Integer.parseInt(attributevalue) ; // Recursively parse the wanted page. String document = textDocParser.parsePage(included_meta_id,user,-1,includeLevel-1,paramsToParse) ; document = org.apache.oro.text.regex.Util.substitute(patMat,HTML_PREBODY_PATTERN,NULL_SUBSTITUTION,document) ; document = org.apache.oro.text.regex.Util.substitute(patMat,HTML_POSTBODY_PATTERN,NULL_SUBSTITUTION,document) ; return document ; } } catch (NumberFormatException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } catch (IOException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } catch (RuntimeException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } return "" ; } else if (null != (attributevalue = attributes.getProperty("url"))) { // If we have an attribute of the form url="url:url" try { URL url = new URL(attributevalue) ; if (url.getProtocol().equalsIgnoreCase("file")) { // Make sure we don't have to defend against file://urls... return "" ; } InputStreamReader urlInput = new InputStreamReader(url.openConnection().getInputStream()) ; int charsRead = -1 ; final int URL_BUFFER_LEN = 16384 ; char[] buffer = new char[URL_BUFFER_LEN] ; StringBuffer urlResult = new StringBuffer() ; while (-1 != (charsRead = urlInput.read(buffer,0,URL_BUFFER_LEN))) { urlResult.append(buffer,0,charsRead) ; } return urlResult.toString() ; } catch (MalformedURLException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } catch (IOException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } catch (RuntimeException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } } else { // If we have none of the attributes no, file, or document no = implicitIncludeNumber++ ; // Implicitly use the next number. } try { if (includeMode) { String included_meta_id_str = (String)included_docs.get(String.valueOf(no)) ; return imcode.util.Parser.parseDoc(fileCache.getCachedFileString(new File(templatePath, user.getLangPrefix()+"/admin/change_include.html")), new String[] { "#meta_id#", String.valueOf(meta_id), "#include_id#", String.valueOf(no), "#include_meta_id#", included_meta_id_str == null ? "" : included_meta_id_str } ) ; } else if (includeLevel>0) { int included_meta_id = Integer.parseInt((String)included_docs.get(String.valueOf(no))) ; String document = textDocParser.parsePage(included_meta_id,user,-1,includeLevel-1,paramsToParse) ; ; document = org.apache.oro.text.regex.Util.substitute(patMat,HTML_PREBODY_PATTERN,NULL_SUBSTITUTION,document) ; document = org.apache.oro.text.regex.Util.substitute(patMat,HTML_POSTBODY_PATTERN,NULL_SUBSTITUTION,document) ; return document ; } } catch (IOException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } catch (NumberFormatException ex) { // There was no such include in the db. return "" ; } return "" ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/5809d66a25d58d7ffad1cd1d9aa41c714fbcef76/ImcmsTagSubstitution.java/buggy/server/src/imcode/server/parser/ImcmsTagSubstitution.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1047, 8752, 261, 2297, 1677, 16, 6830, 6286, 9670, 15947, 13, 288, 202, 474, 1158, 273, 374, 274, 202, 780, 1566, 1132, 274, 202, 759, 17307, 336, 326, 5539, 9330, 1069, 578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1047, 8752, 261, 2297, 1677, 16, 6830, 6286, 9670, 15947, 13, 288, 202, 474, 1158, 273, 374, 274, 202, 780, 1566, 1132, 274, 202, 759, 17307, 336, 326, 5539, 9330, 1069, 578, ...
md.compileLastStep();
md.clipToPossible();
private String doPSRCheck(MovePath md) { StringBuffer nagReport = new StringBuffer(); final Entity entity = ce(); // okay, proceed with movement calculations Coords lastPos = entity.getPosition(); Coords curPos = entity.getPosition(); int curFacing = entity.getFacing(); int distance = 0; int moveType = Entity.MOVE_NONE; int overallMoveType = Entity.MOVE_NONE; boolean firstStep; int prevFacing = curFacing; Hex prevHex = null; final boolean isInfantry = (entity instanceof Infantry); PilotingRollData rollTarget; // Compile the move md.compileLastStep(); overallMoveType = md.getLastStepMovementType(); // iterate through steps firstStep = true; /* Bug 754610: Revert fix for bug 702735. */ MoveStep prevStep = null; for (final Enumeration i = md.getSteps(); i.hasMoreElements();) { final MoveStep step = (MoveStep)i.nextElement(); boolean isPavementStep = step.isPavementStep(); // stop for illegal movement if (step.getMovementType() == Entity.MOVE_ILLEGAL) { break; } // check piloting skill for getting up rollTarget = entity.checkGetUp(step); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { nagReport.append(addNag(rollTarget)); } // set most step parameters moveType = step.getMovementType(); distance = step.getDistance(); // set last step parameters curPos = step.getPosition(); curFacing = step.getFacing(); final Hex curHex = client.game.board.getHex(curPos); // Check for skid. rollTarget = entity.checkSkid(moveType, prevHex, overallMoveType, prevStep, prevFacing, curFacing, lastPos, curPos, isInfantry, distance); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { // Have an entity-meaningful PSR message. nagReport.append(addNag(rollTarget)); } // check if we've moved into rubble rollTarget = entity.checkRubbleMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { nagReport.append(addNag(rollTarget)); } // check if we've moved into water rollTarget = entity.checkWaterMove(step, curHex, lastPos, curPos, isPavementStep); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { nagReport.append(addNag(rollTarget)); } // check if we've moved into swamp rollTarget = entity.checkSwampMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { nagReport.append(addNag(rollTarget)); } // check if we used more MPs than the Mech/Vehicle would have in normal gravity if (!i.hasMoreElements() && !firstStep) { if (entity instanceof Mech) { if ((step.getMovementType() == Entity.MOVE_WALK) || (step.getMovementType() == Entity.MOVE_RUN)) { if (step.getMpUsed() > entity.getRunMP(false)) { rollTarget = entity.checkMovedTooFast(step); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { nagReport.append(addNag(rollTarget)); } } } else if (step.getMovementType() == Entity.MOVE_JUMP) { if (step.getMpUsed() > entity.getOriginalJumpMP()) { rollTarget = entity.checkMovedTooFast(step); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { nagReport.append(addNag(rollTarget)); } } } } else if (entity instanceof Tank) { if ((step.getMovementType() == Entity.MOVE_WALK) || (step.getMovementType() == Entity.MOVE_RUN)) { // For Tanks, we need to check if the tank had more MPs because it was moving along a road if (step.getMpUsed() > entity.getRunMP(false) && !step.isOnlyPavement()) { rollTarget = entity.checkMovedTooFast(step); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { nagReport.append(addNag(rollTarget)); } } else if (step.getMovementType() == Entity.MOVE_WALK) { // If the tank was just cruising, he got a flat +1 road bonus if (step.getMpUsed() > entity.getWalkMP(false) + 1) { rollTarget = entity.checkMovedTooFast(step); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { nagReport.append(addNag(rollTarget)); } } } else if (step.getMovementType() == Entity.MOVE_RUN) { // If the tank was flanking, we need a calculation to see wether we get a +1 or +2 road bonus // NOTE: this continues the assumption from MoveStep.java that the +1 bonus is applied to // cruising speed, thus possibly gaining 2 flanking MPs int k = entity.getWalkMP(false) % 2 == 1 ? 1 : 2; if (step.getMpUsed() > entity.getRunMP(false) + k) { rollTarget = entity.checkMovedTooFast(step); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { nagReport.append(addNag(rollTarget)); } } } } } } // Handle non-infantry moving into a building. if (entity.checkMovementInBuilding(lastPos, curPos, step, curHex, prevHex)) { // Get the building being exited. // TODO: allow units to climb on top of buildings. Building bldgExited = client.game.board.getBuildingAt( lastPos ); // Get the building being entered. // TODO: allow units to climb on top of buildings. Building bldgEntered = client.game.board.getBuildingAt( curPos ); if ( bldgExited != null && bldgEntered != null && !bldgExited.equals(bldgEntered) ) { // Exiting one building and entering another. // Brave, aren't we? rollTarget = entity.rollMovementInBuilding(bldgExited, distance, "exiting"); nagReport.append(addNag(rollTarget)); rollTarget = entity.rollMovementInBuilding(bldgEntered, distance, "entering"); nagReport.append(addNag(rollTarget)); } else { Building bldg; if (bldgEntered == null) { // Exiting a building. bldg = bldgExited; } else { // Entering or moving within a building. bldg = bldgEntered; } rollTarget = entity.rollMovementInBuilding(bldg, distance, ""); nagReport.append(addNag(rollTarget)); } } if (step.getType() == MovePath.STEP_GO_PRONE) { rollTarget = entity.checkDislodgeSwarmers(); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { nagReport.append(addNag(rollTarget)); } } // update lastPos, prevStep, prevFacing & prevHex lastPos = new Coords(curPos); prevStep = step; /* Bug 754610: Revert fix for bug 702735. if (prevHex != null && !curHex.equals(prevHex)) { */ if (!curHex.equals(prevHex)) { prevFacing = curFacing; } prevHex = curHex; firstStep = false; } // running with destroyed hip or gyro needs a check rollTarget = entity.checkRunningWithDamage(overallMoveType); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { nagReport.append(addNag(rollTarget)); } // but the danger isn't over yet! landing from a jump can be risky! if (overallMoveType == Entity.MOVE_JUMP && !entity.isMakingDfa()) { // check for damaged criticals rollTarget = entity.checkLandingWithDamage(); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { nagReport.append(addNag(rollTarget)); } // jumped into water? int waterLevel = client.game.board.getHex(curPos).levelOf(Terrain.WATER); rollTarget = entity.checkWaterMove(waterLevel); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { nagReport.append(addNag(rollTarget)); } } return nagReport.toString(); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/9a77a108fa04401312d80202b90f10e5e9898eee/MovementDisplay.java/clean/megamek/src/megamek/client/ui/AWT/MovementDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 741, 5857, 54, 1564, 12, 7607, 743, 3481, 13, 288, 3639, 6674, 290, 346, 4820, 273, 394, 6674, 5621, 3639, 727, 3887, 1522, 273, 5898, 5621, 3639, 368, 21194, 16, 11247, 598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 5857, 54, 1564, 12, 7607, 743, 3481, 13, 288, 3639, 6674, 290, 346, 4820, 273, 394, 6674, 5621, 3639, 727, 3887, 1522, 273, 5898, 5621, 3639, 368, 21194, 16, 11247, 598, ...
public abstract boolean authenticate(AuthToken token);
public abstract boolean authenticate(AuthToken token, Message msg);
public abstract boolean authenticate(AuthToken token);
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/00009177ae09a0e763e35d49dfcdfc4da0a63f99/AuthToken.java/clean/src/org/jgroups/auth/AuthToken.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 1250, 8929, 12, 28967, 1147, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 1250, 8929, 12, 28967, 1147, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
public abstract void release();
public abstract void release ();
public abstract void release();
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/62d71000b6d84642b07f67c825f685d42190715c/LogFactory.java/buggy/src/java/org/logicalcobwebs/logging/LogFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 918, 3992, 5621, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 918, 3992, 5621, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
.getActionBars(), structuredSelection);
.getActionBars());
public void selectionChanged(SelectionChangedEvent anEvent) { updateStatusBar(anEvent.getSelection()); if (anEvent.getSelection() instanceof IStructuredSelection) { IStructuredSelection structuredSelection = (IStructuredSelection) anEvent .getSelection(); actionService.fillActionBars(commonNavigator.getViewSite() .getActionBars(), structuredSelection); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/6915e85b60af35942d3186f62ce0acdf65c91e7f/CommonNavigatorManager.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/CommonNavigatorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4421, 5033, 12, 6233, 27553, 392, 1133, 13, 288, 202, 202, 2725, 1482, 5190, 12, 304, 1133, 18, 588, 6233, 10663, 202, 202, 430, 261, 304, 1133, 18, 588, 6233, 1435, 1276...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4421, 5033, 12, 6233, 27553, 392, 1133, 13, 288, 202, 202, 2725, 1482, 5190, 12, 304, 1133, 18, 588, 6233, 10663, 202, 202, 430, 261, 304, 1133, 18, 588, 6233, 1435, 1276...
return res; }
public Vector rowObjectsFor(Object t) { if (!(t instanceof UMLSequenceDiagram)) return new Vector(); Editor _editor = Globals.curEditor(); Layer lay = _editor.getLayerManager().getActiveLayer(); Vector contents = lay.getContents(); int size = contents.size(); Vector res = new Vector(); for (int i = 0; i < size; i++) { Object figure = contents.elementAt(i); if (figure instanceof FigSeqStimulus) { FigSeqStimulus figSti = (FigSeqStimulus) figure; MStimulus sti = (MStimulus) figSti.getOwner(); Object act = ModelFacade.getDispatchAction(sti); res.addElement(act); } } return res; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/TableModelSeqActionByProps.java/buggy/src_new/org/argouml/uml/diagram/sequence/TableModelSeqActionByProps.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5589, 1027, 4710, 1290, 12, 921, 268, 13, 288, 565, 309, 16051, 12, 88, 1276, 587, 1495, 4021, 14058, 1940, 3719, 327, 394, 5589, 5621, 565, 18451, 389, 9177, 273, 18901, 1031, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5589, 1027, 4710, 1290, 12, 921, 268, 13, 288, 565, 309, 16051, 12, 88, 1276, 587, 1495, 4021, 14058, 1940, 3719, 327, 394, 5589, 5621, 565, 18451, 389, 9177, 273, 18901, 1031, 18, ...
double otherAngle = ((Double)vertex.pathsToSegmentsMap.get(vPath)).doubleValue();
double otherAngle = ((Double)vertex.cachedCosines.get(vPath)).doubleValue();
private void orderPath(Path path) { if (path.isMarked) return; path.isMarked = true; Segment segment = null; Vertex vertex = null; for (int v = 0; v < path.grownSegments.size() - 1; v++) { segment = (Segment) path.grownSegments.get(v); vertex = segment.end; double thisAngle = ((Double)vertex.pathsToSegmentsMap.get(path)).doubleValue(); if (path.isInverted) thisAngle = -thisAngle; for (int i = 0; i < vertex.paths.size(); i++) { Path vPath = (Path)vertex.paths.get(i); if (!vPath.isMarked) { double otherAngle = ((Double)vertex.pathsToSegmentsMap.get(vPath)).doubleValue(); if (vPath.isInverted) otherAngle = -otherAngle; if (otherAngle < thisAngle) orderPath(vPath); } } } orderedPaths.add(path);}
11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/375f5ca5b08f799014f10ca6a967bc6d7290c7d6/ShortestPathRouter.java/buggy/org.eclipse.draw2d/src/org/eclipse/draw2d/graph/ShortestPathRouter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 1353, 743, 12, 743, 589, 13, 288, 202, 430, 261, 803, 18, 291, 21486, 13, 202, 202, 2463, 31, 202, 803, 18, 291, 21486, 273, 638, 31, 202, 4131, 3267, 273, 446, 31, 202, 6475, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1353, 743, 12, 743, 589, 13, 288, 202, 430, 261, 803, 18, 291, 21486, 13, 202, 202, 2463, 31, 202, 803, 18, 291, 21486, 273, 638, 31, 202, 4131, 3267, 273, 446, 31, 202, 6475, ...
MylarTaskListPlugin.getRepositoryManager().removeRepository(jiraRepo);
MylarTaskListPlugin.getRepositoryManager().removeRepository(repository);
protected void tearDown() throws Exception { AbstractRepositoryClient client = MylarTaskListPlugin .getRepositoryManager().getRepositoryClient( MylarJiraPlugin.JIRA_REPOSITORY_KIND); assertNotNull(client); MylarTaskListPlugin.getTaskListManager().getTaskList().clearArchive();// client.clearArchive(); MylarTaskListPlugin.getTaskListManager().getTaskList().clear(); MylarTaskListPlugin.getRepositoryManager().removeRepository(jiraRepo); jiraFacade.logOutFromAll(); super.tearDown(); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/3b43267cb3665e7443ff936b737b4470e4552092/JiraFilterTest.java/clean/org.eclipse.mylyn.jira.tests/src/org/eclipse/mylyn/jira/tests/JiraFilterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 268, 2091, 4164, 1435, 1216, 1185, 288, 202, 202, 7469, 3305, 1227, 1004, 273, 8005, 7901, 2174, 682, 3773, 9506, 202, 18, 588, 3305, 1318, 7675, 588, 3305, 1227, 12, 2508...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 268, 2091, 4164, 1435, 1216, 1185, 288, 202, 202, 7469, 3305, 1227, 1004, 273, 8005, 7901, 2174, 682, 3773, 9506, 202, 18, 588, 3305, 1318, 7675, 588, 3305, 1227, 12, 2508...
return value.mightBeNull() && !value.isException();
return value.mightBeNull() && !value.isException() && !value.isReturnValue();
public boolean choose(IsNullValue value) { // Only choose non-exception values. // Values null on an exception path might be due to // infeasible control flow. return value.mightBeNull() && !value.isException(); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/91a034dd849b1f869f7a6dc19ff87c12352cd3cf/FindNullDeref.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/FindNullDeref.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1250, 9876, 12, 2520, 2041, 620, 460, 13, 288, 9506, 202, 759, 5098, 9876, 1661, 17, 4064, 924, 18, 9506, 202, 759, 6876, 446, 603, 392, 1520, 589, 4825, 506, 6541, 358, 9506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1250, 9876, 12, 2520, 2041, 620, 460, 13, 288, 9506, 202, 759, 5098, 9876, 1661, 17, 4064, 924, 18, 9506, 202, 759, 6876, 446, 603, 392, 1520, 589, 4825, 506, 6541, 358, 9506...
new FileContextData(inputFileLocation, outputFileLocation, option, getParent()));
new FileContextData(inputFileLocation, outputFileLocation, option, this));
public String[] getToolCommandFlags(IPath inputFileLocation, IPath outputFileLocation, IMacroSubstitutor macroSubstitutor) throws BuildException { IOption[] opts = getOptions(); ArrayList flags = new ArrayList(); StringBuffer sb = new StringBuffer(); for (int index = 0; index < opts.length; index++) { IOption option = opts[index]; sb.setLength( 0 ); // check to see if the option has an applicability calculator IOptionApplicability applicabilityCalculator = option.getApplicabilityCalculator(); IBuildObject config = null; IBuildObject parent = getParent(); if ( parent instanceof IResourceConfiguration ) { config = parent; } else if ( parent instanceof IToolChain ){ config = ((IToolChain)parent).getParent(); } if (applicabilityCalculator == null || applicabilityCalculator.isOptionUsedInCommandLine(config, this, option)) { try{ switch (option.getValueType()) { case IOption.BOOLEAN : String boolCmd; if (option.getBooleanValue()) { boolCmd = option.getCommand(); } else { // Note: getCommandFalse is new with CDT 2.0 boolCmd = option.getCommandFalse(); } if (boolCmd != null && boolCmd.length() > 0) { sb.append(boolCmd); } break; case IOption.ENUMERATED : String enumVal = option.getEnumCommand(option.getSelectedEnum()); if (enumVal.length() > 0) { sb.append(enumVal); } break; case IOption.STRING : String strCmd = option.getCommand(); String val = option.getStringValue(); macroSubstitutor.setMacroContextInfo(IBuildMacroProvider.CONTEXT_FILE, new FileContextData(inputFileLocation, outputFileLocation, option, getParent())); if (val.length() > 0 && (val = MacroResolver.resolveToString(val, macroSubstitutor)).length() > 0) { sb.append( evaluateCommand( strCmd, val ) ); } break; case IOption.STRING_LIST : String listCmd = option.getCommand(); macroSubstitutor.setMacroContextInfo(IBuildMacroProvider.CONTEXT_FILE, new FileContextData(inputFileLocation, outputFileLocation, option, getParent())); String[] list = MacroResolver.resolveStringListValues(option.getStringListValue(), macroSubstitutor, true); if(list != null){ for (int j = 0; j < list.length; j++) { String temp = list[j]; if(temp.length() > 0) sb.append( evaluateCommand( listCmd, temp ) + WHITE_SPACE ); } } break; case IOption.INCLUDE_PATH : String incCmd = option.getCommand(); macroSubstitutor.setMacroContextInfo(IBuildMacroProvider.CONTEXT_FILE, new FileContextData(inputFileLocation, outputFileLocation, option, getParent())); String[] paths = MacroResolver.resolveStringListValues(option.getIncludePaths(), macroSubstitutor, true); if(paths != null){ for (int j = 0; j < paths.length; j++) { String temp = paths[j]; if(temp.length() > 0) sb.append( evaluateCommand( incCmd, temp ) + WHITE_SPACE); } } break; case IOption.PREPROCESSOR_SYMBOLS : String defCmd = option.getCommand(); macroSubstitutor.setMacroContextInfo(IBuildMacroProvider.CONTEXT_FILE, new FileContextData(inputFileLocation, outputFileLocation, option, getParent())); String[] symbols = MacroResolver.resolveStringListValues(option.getDefinedSymbols(), macroSubstitutor, true); if(symbols != null){ for (int j = 0; j < symbols.length; j++) { String temp = symbols[j]; if(temp.length() > 0) sb.append( evaluateCommand( defCmd, temp ) + WHITE_SPACE); } } break; default : break; } if (sb.toString().trim().length() > 0) flags.add(sb.toString().trim()); } catch (BuildMacroException e) { } } } String[] f = new String[ flags.size() ]; return (String[])flags.toArray( f ); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/fcddfaecbf7065313a31054b1e371cb1efa7b945/Tool.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 336, 6364, 2189, 5094, 12, 45, 743, 22014, 2735, 16, 467, 743, 15047, 2735, 16, 9506, 202, 3445, 1077, 303, 1676, 5223, 3408, 11522, 1676, 5223, 3408, 13, 1216, 18463...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 336, 6364, 2189, 5094, 12, 45, 743, 22014, 2735, 16, 467, 743, 15047, 2735, 16, 9506, 202, 3445, 1077, 303, 1676, 5223, 3408, 11522, 1676, 5223, 3408, 13, 1216, 18463...
if ( date[utc]!=0 ) {
if ( date[utc]!=0 || date[h] == 24 ) {
protected int[] parse(String str, int[] date) throws SchemaDateTimeException{ resetBuffer(str); //create structure to hold an object if ( date == null ) { date = new int[TOTAL_SIZE]; } resetDateObj(date); // time // initialize to default values date[CY]=YEAR; date[M]=MONTH; date[D]=DAY; getTime(fStart, fEnd, date); //validate and normalize //REVISIT: do we need SchemaDateTimeException? validateDateTime(date); if ( date[utc]!=0 ) { normalize(date); } return date; }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/fc8cd1c46702105116ae7c2a86ec6e5b4a3749d1/TimeDatatypeValidator.java/buggy/src/org/apache/xerces/impl/dv/xs/TimeDatatypeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 8526, 1109, 12, 780, 609, 16, 509, 8526, 1509, 13, 1216, 4611, 5096, 503, 95, 7734, 2715, 1892, 12, 701, 1769, 3639, 368, 2640, 3695, 358, 6887, 392, 733, 3639, 309, 261, 150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8526, 1109, 12, 780, 609, 16, 509, 8526, 1509, 13, 1216, 4611, 5096, 503, 95, 7734, 2715, 1892, 12, 701, 1769, 3639, 368, 2640, 3695, 358, 6887, 392, 733, 3639, 309, 261, 150...
gr.render( idr, gr.build( idr.getDisplayServer( ), cm, bo, null, null, null ) );
gr.render( idr, gcs ); GC gc = e.gc; gc.drawImage( imgChart, d.x, d.y );
public final void paintControl( PaintEvent pe ) { idr.setProperty( IDeviceRenderer.GRAPHICS_CONTEXT, pe.gc ); Composite co = (Composite) pe.getSource( ); Rectangle re = co.getClientArea( ); Bounds bo = BoundsImpl.create( re.x, re.y, re.width, re.height ); bo.scale( 72d / idr.getDisplayServer( ).getDpiResolution( ) ); Generator gr = Generator.instance( ); try { gr.render( idr, gr.build( idr.getDisplayServer( ), cm, bo, null, null, null ) ); } catch ( ChartException gex ) { showException( pe.gc, gex ); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/ef9ad0cebcee59b4b447430acdbf2355afecf441/DialChartViewer.java/buggy/chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/api/viewer/DialChartViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 12574, 3367, 12, 30001, 1133, 2804, 262, 202, 95, 202, 202, 350, 86, 18, 542, 1396, 12, 467, 3654, 6747, 18, 24372, 28919, 67, 13181, 16, 2804, 18, 13241, 11272, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 12574, 3367, 12, 30001, 1133, 2804, 262, 202, 95, 202, 202, 350, 86, 18, 542, 1396, 12, 467, 3654, 6747, 18, 24372, 28919, 67, 13181, 16, 2804, 18, 13241, 11272, 202...
return engine.isPropertySetted(Properties.MAX_TEXT_LENGTH); }
return engine.isPropertySetted(Properties.MAX_TEXT_LENGTH); }
public final boolean isMaxTextLengthSetted() { return engine.isPropertySetted(Properties.MAX_TEXT_LENGTH); }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/TextEntryComponent.java/buggy/org.rcfaces.core/src/org/rcfaces/core/component/TextEntryComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1250, 353, 2747, 1528, 1782, 694, 2344, 1435, 288, 3639, 327, 4073, 18, 291, 1396, 694, 2344, 12, 2297, 18, 6694, 67, 5151, 67, 7096, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1250, 353, 2747, 1528, 1782, 694, 2344, 1435, 288, 3639, 327, 4073, 18, 291, 1396, 694, 2344, 12, 2297, 18, 6694, 67, 5151, 67, 7096, 1769, 565, 289, 2, -100, -100, -100, -10...
try { if (fLexicalHandler != null) { fLexicalHandler.comment(text.ch, 0, text.length); } } catch (SAXException e) { throw new XNIException(e); }
comment (text);
public void comment(XMLString text) throws XNIException { try { // SAX2 extension if (fLexicalHandler != null) { fLexicalHandler.comment(text.ch, 0, text.length); } } catch (SAXException e) { throw new XNIException(e); } } // comment(XMLString)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/1281996de10d3af1b51f0b4d78cfcd75d8ade6fe/AbstractSAXParser.java/clean/src/org/apache/xerces/parsers/AbstractSAXParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2879, 12, 4201, 780, 977, 13, 1216, 1139, 50, 45, 503, 288, 3639, 775, 288, 5411, 368, 10168, 22, 2710, 5411, 309, 261, 74, 14756, 1706, 1503, 480, 446, 13, 288, 7734, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2879, 12, 4201, 780, 977, 13, 1216, 1139, 50, 45, 503, 288, 3639, 775, 288, 5411, 368, 10168, 22, 2710, 5411, 309, 261, 74, 14756, 1706, 1503, 480, 446, 13, 288, 7734, 284, ...
new Column("exp_date", "TIMESTAMP", "NOT NULL"),
new Column("exp_date", timestampColumnType, "NOT NULL"),
private void createTables() throws Exception { if (outputDirectory != null) { fileOutput = new FileWriter(new File(outputDirectory, "createTables.sql")); } createTable("sales_fact_1997", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("time_id", "INTEGER", "NOT NULL"), new Column("customer_id", "INTEGER", "NOT NULL"), new Column("promotion_id", "INTEGER", "NOT NULL"), new Column("store_id", "INTEGER", "NOT NULL"), new Column("store_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("store_cost", "DECIMAL(10,4)", "NOT NULL"), new Column("unit_sales", "DECIMAL(10,4)", "NOT NULL"), }); createTable("sales_fact_1998", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("time_id", "INTEGER", "NOT NULL"), new Column("customer_id", "INTEGER", "NOT NULL"), new Column("promotion_id", "INTEGER", "NOT NULL"), new Column("store_id", "INTEGER", "NOT NULL"), new Column("store_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("store_cost", "DECIMAL(10,4)", "NOT NULL"), new Column("unit_sales", "DECIMAL(10,4)", "NOT NULL"), }); createTable("sales_fact_dec_1998", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("time_id", "INTEGER", "NOT NULL"), new Column("customer_id", "INTEGER", "NOT NULL"), new Column("promotion_id", "INTEGER", "NOT NULL"), new Column("store_id", "INTEGER", "NOT NULL"), new Column("store_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("store_cost", "DECIMAL(10,4)", "NOT NULL"), new Column("unit_sales", "DECIMAL(10,4)", "NOT NULL"), }); createTable("inventory_fact_1997", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("time_id", "INTEGER", ""), new Column("warehouse_id", "INTEGER", ""), new Column("store_id", "INTEGER", ""), new Column("units_ordered", "INTEGER", ""), new Column("units_shipped", "INTEGER", ""), new Column("warehouse_sales", "DECIMAL(10,4)", ""), new Column("warehouse_cost", "DECIMAL(10,4)", ""), new Column("supply_time", "SMALLINT", ""), new Column("store_invoice", "DECIMAL(10,4)", ""), }); createTable("inventory_fact_1998", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("time_id", "INTEGER", ""), new Column("warehouse_id", "INTEGER", ""), new Column("store_id", "INTEGER", ""), new Column("units_ordered", "INTEGER", ""), new Column("units_shipped", "INTEGER", ""), new Column("warehouse_sales", "DECIMAL(10,4)", ""), new Column("warehouse_cost", "DECIMAL(10,4)", ""), new Column("supply_time", "SMALLINT", ""), new Column("store_invoice", "DECIMAL(10,4)", ""), }); // Aggregate tables createTable("agg_pl_01_sales_fact_1997", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("time_id", "INTEGER", "NOT NULL"), new Column("customer_id", "INTEGER", "NOT NULL"), new Column("store_sales_sum", "DECIMAL(10,4)", "NOT NULL"), new Column("store_cost_sum", "DECIMAL(10,4)", "NOT NULL"), new Column("unit_sales_sum", "DECIMAL(10,4)", "NOT NULL"), new Column("fact_count", "INTEGER", "NOT NULL"), }, false, true); createTable("agg_ll_01_sales_fact_1997", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("time_id", "INTEGER", "NOT NULL"), new Column("customer_id", "INTEGER", "NOT NULL"), new Column("store_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("store_cost", "DECIMAL(10,4)", "NOT NULL"), new Column("unit_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("fact_count", "INTEGER", "NOT NULL"), }, false, true); createTable("agg_l_03_sales_fact_1997", new Column[] { new Column("time_id", "INTEGER", "NOT NULL"), new Column("customer_id", "INTEGER", "NOT NULL"), new Column("store_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("store_cost", "DECIMAL(10,4)", "NOT NULL"), new Column("unit_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("fact_count", "INTEGER", "NOT NULL"), }, false, true); createTable("agg_l_05_sales_fact_1997", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("customer_id", "INTEGER", "NOT NULL"), new Column("promotion_id", "INTEGER", "NOT NULL"), new Column("store_id", "INTEGER", "NOT NULL"), new Column("store_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("store_cost", "DECIMAL(10,4)", "NOT NULL"), new Column("unit_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("fact_count", "INTEGER", "NOT NULL"), }, false, true); createTable("agg_c_14_sales_fact_1997", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("customer_id", "INTEGER", "NOT NULL"), new Column("store_id", "INTEGER", "NOT NULL"), new Column("promotion_id", "INTEGER", "NOT NULL"), new Column("month_of_year", "SMALLINT", "NOT NULL"), new Column("quarter", "VARCHAR(30)", "NOT NULL"), new Column("the_year", "SMALLINT", "NOT NULL"), new Column("store_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("store_cost", "DECIMAL(10,4)", "NOT NULL"), new Column("unit_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("fact_count", "INTEGER", "NOT NULL"), }, false, true); createTable("agg_lc_100_sales_fact_1997", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("customer_id", "INTEGER", "NOT NULL"), new Column("quarter", "VARCHAR(30)", "NOT NULL"), new Column("the_year", "SMALLINT", "NOT NULL"), new Column("store_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("store_cost", "DECIMAL(10,4)", "NOT NULL"), new Column("unit_sales", "DECIMAL(10,4)", "NOT NULL"), new Column("fact_count", "INTEGER", "NOT NULL"), }, false, true); createTable("agg_c_special_sales_fact_1997", new Column[] { new Column("product_id", "INTEGER", "NOT NULL"), new Column("promotion_id", "INTEGER", "NOT NULL"), new Column("customer_id", "INTEGER", "NOT NULL"), new Column("store_id", "INTEGER", "NOT NULL"), new Column("time_month", "SMALLINT", "NOT NULL"), new Column("time_quarter", "VARCHAR(30)", "NOT NULL"), new Column("time_year", "SMALLINT", "NOT NULL"), new Column("store_sales_sum", "DECIMAL(10,4)", "NOT NULL"), new Column("store_cost_sum", "DECIMAL(10,4)", "NOT NULL"), new Column("unit_sales_sum", "DECIMAL(10,4)", "NOT NULL"), new Column("fact_count", "INTEGER", "NOT NULL"), }, false, true); createTable("currency", new Column[] { new Column("currency_id", "INTEGER", "NOT NULL"), new Column("date", "DATE", "NOT NULL"), new Column("currency", "VARCHAR(30)", "NOT NULL"), new Column("conversion_ratio", "DECIMAL(10,4)", "NOT NULL"), }); createTable("account", new Column[] { new Column("account_id", "INTEGER", "NOT NULL"), new Column("account_parent", "INTEGER", ""), new Column("account_description", "VARCHAR(30)", ""), new Column("account_type", "VARCHAR(30)", "NOT NULL"), new Column("account_rollup", "VARCHAR(30)", "NOT NULL"), new Column("Custom_Members", "VARCHAR(255)", ""), }); createTable("category", new Column[] { new Column("category_id", "VARCHAR(30)", "NOT NULL"), new Column("category_parent", "VARCHAR(30)", ""), new Column("category_description", "VARCHAR(30)", "NOT NULL"), new Column("category_rollup", "VARCHAR(30)", ""), }); createTable("customer", new Column[] { new Column("customer_id", "INTEGER", "NOT NULL"), new Column("account_num", bigIntColumnType, "NOT NULL"), new Column("lname", "VARCHAR(30)", "NOT NULL"), new Column("fname", "VARCHAR(30)", "NOT NULL"), new Column("mi", "VARCHAR(30)", ""), new Column("address1", "VARCHAR(30)", ""), new Column("address2", "VARCHAR(30)", ""), new Column("address3", "VARCHAR(30)", ""), new Column("address4", "VARCHAR(30)", ""), new Column("city", "VARCHAR(30)", ""), new Column("state_province", "VARCHAR(30)", ""), new Column("postal_code", "VARCHAR(30)", "NOT NULL"), new Column("country", "VARCHAR(30)", "NOT NULL"), new Column("customer_region_id", "INTEGER", "NOT NULL"), new Column("phone1", "VARCHAR(30)", "NOT NULL"), new Column("phone2", "VARCHAR(30)", "NOT NULL"), new Column("birthdate", "DATE", "NOT NULL"), new Column("marital_status", "VARCHAR(30)", "NOT NULL"), new Column("yearly_income", "VARCHAR(30)", "NOT NULL"), new Column("gender", "VARCHAR(30)", "NOT NULL"), new Column("total_children", "SMALLINT", "NOT NULL"), new Column("num_children_at_home", "SMALLINT", "NOT NULL"), new Column("education", "VARCHAR(30)", "NOT NULL"), new Column("date_accnt_opened", "DATE", "NOT NULL"), new Column("member_card", "VARCHAR(30)", ""), new Column("occupation", "VARCHAR(30)", ""), new Column("houseowner", "VARCHAR(30)", ""), new Column("num_cars_owned", "INTEGER", ""), new Column("fullname", "VARCHAR(60)", "NOT NULL"), }); createTable("days", new Column[] { new Column("day", "INTEGER", "NOT NULL"), new Column("week_day", "VARCHAR(30)", "NOT NULL"), }); createTable("department", new Column[] { new Column("department_id", "INTEGER", "NOT NULL"), new Column("department_description", "VARCHAR(30)", "NOT NULL"), }); createTable("employee", new Column[] { new Column("employee_id", "INTEGER", "NOT NULL"), new Column("full_name", "VARCHAR(30)", "NOT NULL"), new Column("first_name", "VARCHAR(30)", "NOT NULL"), new Column("last_name", "VARCHAR(30)", "NOT NULL"), new Column("position_id", "INTEGER", ""), new Column("position_title", "VARCHAR(30)", ""), new Column("store_id", "INTEGER", "NOT NULL"), new Column("department_id", "INTEGER", "NOT NULL"), new Column("birth_date", "DATE", "NOT NULL"), new Column("hire_date", "TIMESTAMP", ""), new Column("end_date", "TIMESTAMP", ""), new Column("salary", "DECIMAL(10,4)", "NOT NULL"), new Column("supervisor_id", "INTEGER", ""), new Column("education_level", "VARCHAR(30)", "NOT NULL"), new Column("marital_status", "VARCHAR(30)", "NOT NULL"), new Column("gender", "VARCHAR(30)", "NOT NULL"), new Column("management_role", "VARCHAR(30)", ""), }); createTable("employee_closure", new Column[] { new Column("employee_id", "INTEGER", "NOT NULL"), new Column("supervisor_id", "INTEGER", "NOT NULL"), new Column("distance", "INTEGER", ""), }); createTable("expense_fact", new Column[] { new Column("store_id", "INTEGER", "NOT NULL"), new Column("account_id", "INTEGER", "NOT NULL"), new Column("exp_date", "TIMESTAMP", "NOT NULL"), new Column("time_id", "INTEGER", "NOT NULL"), new Column("category_id", "VARCHAR(30)", "NOT NULL"), new Column("currency_id", "INTEGER", "NOT NULL"), new Column("amount", "DECIMAL(10,4)", "NOT NULL"), }); createTable("position", new Column[] { new Column("position_id", "INTEGER", "NOT NULL"), new Column("position_title", "VARCHAR(30)", "NOT NULL"), new Column("pay_type", "VARCHAR(30)", "NOT NULL"), new Column("min_scale", "DECIMAL(10,4)", "NOT NULL"), new Column("max_scale", "DECIMAL(10,4)", "NOT NULL"), new Column("management_role", "VARCHAR(30)", "NOT NULL"), }); createTable("product", new Column[] { new Column("product_class_id", "INTEGER", "NOT NULL"), new Column("product_id", "INTEGER", "NOT NULL"), new Column("brand_name", "VARCHAR(60)", ""), new Column("product_name", "VARCHAR(60)", "NOT NULL"), new Column("SKU", bigIntColumnType, "NOT NULL"), new Column("SRP", "DECIMAL(10,4)", ""), new Column("gross_weight", "REAL", ""), new Column("net_weight", "REAL", ""), new Column("recyclable_package", booleanColumnType, ""), new Column("low_fat", booleanColumnType, ""), new Column("units_per_case", "SMALLINT", ""), new Column("cases_per_pallet", "SMALLINT", ""), new Column("shelf_width", "REAL", ""), new Column("shelf_height", "REAL", ""), new Column("shelf_depth", "REAL", ""), }); createTable("product_class", new Column[] { new Column("product_class_id", "INTEGER", "NOT NULL"), new Column("product_subcategory", "VARCHAR(30)", ""), new Column("product_category", "VARCHAR(30)", ""), new Column("product_department", "VARCHAR(30)", ""), new Column("product_family", "VARCHAR(30)", ""), }); createTable("promotion", new Column[] { new Column("promotion_id", "INTEGER", "NOT NULL"), new Column("promotion_district_id", "INTEGER", ""), new Column("promotion_name", "VARCHAR(30)", ""), new Column("media_type", "VARCHAR(30)", ""), new Column("cost", "DECIMAL(10,4)", ""), new Column("start_date", "TIMESTAMP", ""), new Column("end_date", "TIMESTAMP", ""), }); createTable("region", new Column[] { new Column("region_id", "INTEGER", "NOT NULL"), new Column("sales_city", "VARCHAR(30)", ""), new Column("sales_state_province", "VARCHAR(30)", ""), new Column("sales_district", "VARCHAR(30)", ""), new Column("sales_region", "VARCHAR(30)", ""), new Column("sales_country", "VARCHAR(30)", ""), new Column("sales_district_id", "INTEGER", ""), }); createTable("reserve_employee", new Column[] { new Column("employee_id", "INTEGER", "NOT NULL"), new Column("full_name", "VARCHAR(30)", "NOT NULL"), new Column("first_name", "VARCHAR(30)", "NOT NULL"), new Column("last_name", "VARCHAR(30)", "NOT NULL"), new Column("position_id", "INTEGER", ""), new Column("position_title", "VARCHAR(30)", ""), new Column("store_id", "INTEGER", "NOT NULL"), new Column("department_id", "INTEGER", "NOT NULL"), new Column("birth_date", "TIMESTAMP", "NOT NULL"), new Column("hire_date", "TIMESTAMP", ""), new Column("end_date", "TIMESTAMP", ""), new Column("salary", "DECIMAL(10,4)", "NOT NULL"), new Column("supervisor_id", "INTEGER", ""), new Column("education_level", "VARCHAR(30)", "NOT NULL"), new Column("marital_status", "VARCHAR(30)", "NOT NULL"), new Column("gender", "VARCHAR(30)", "NOT NULL"), }); createTable("salary", new Column[] { new Column("pay_date", "TIMESTAMP", "NOT NULL"), new Column("employee_id", "INTEGER", "NOT NULL"), new Column("department_id", "INTEGER", "NOT NULL"), new Column("currency_id", "INTEGER", "NOT NULL"), new Column("salary_paid", "DECIMAL(10,4)", "NOT NULL"), new Column("overtime_paid", "DECIMAL(10,4)", "NOT NULL"), new Column("vacation_accrued", "REAL", "NOT NULL"), new Column("vacation_used", "REAL", "NOT NULL"), }); createTable("store", new Column[] { new Column("store_id", "INTEGER", "NOT NULL"), new Column("store_type", "VARCHAR(30)", ""), new Column("region_id", "INTEGER", ""), new Column("store_name", "VARCHAR(30)", ""), new Column("store_number", "INTEGER", ""), new Column("store_street_address", "VARCHAR(30)", ""), new Column("store_city", "VARCHAR(30)", ""), new Column("store_state", "VARCHAR(30)", ""), new Column("store_postal_code", "VARCHAR(30)", ""), new Column("store_country", "VARCHAR(30)", ""), new Column("store_manager", "VARCHAR(30)", ""), new Column("store_phone", "VARCHAR(30)", ""), new Column("store_fax", "VARCHAR(30)", ""), new Column("first_opened_date", "TIMESTAMP", ""), new Column("last_remodel_date", "TIMESTAMP", ""), new Column("store_sqft", "INTEGER", ""), new Column("grocery_sqft", "INTEGER", ""), new Column("frozen_sqft", "INTEGER", ""), new Column("meat_sqft", "INTEGER", ""), new Column("coffee_bar", booleanColumnType, ""), new Column("video_store", booleanColumnType, ""), new Column("salad_bar", booleanColumnType, ""), new Column("prepared_food", booleanColumnType, ""), new Column("florist", booleanColumnType, ""), }); createTable("store_ragged", new Column[] { new Column("store_id", "INTEGER", "NOT NULL"), new Column("store_type", "VARCHAR(30)", ""), new Column("region_id", "INTEGER", ""), new Column("store_name", "VARCHAR(30)", ""), new Column("store_number", "INTEGER", ""), new Column("store_street_address", "VARCHAR(30)", ""), new Column("store_city", "VARCHAR(30)", ""), new Column("store_state", "VARCHAR(30)", ""), new Column("store_postal_code", "VARCHAR(30)", ""), new Column("store_country", "VARCHAR(30)", ""), new Column("store_manager", "VARCHAR(30)", ""), new Column("store_phone", "VARCHAR(30)", ""), new Column("store_fax", "VARCHAR(30)", ""), new Column("first_opened_date", "TIMESTAMP", ""), new Column("last_remodel_date", "TIMESTAMP", ""), new Column("store_sqft", "INTEGER", ""), new Column("grocery_sqft", "INTEGER", ""), new Column("frozen_sqft", "INTEGER", ""), new Column("meat_sqft", "INTEGER", ""), new Column("coffee_bar", booleanColumnType, ""), new Column("video_store", booleanColumnType, ""), new Column("salad_bar", booleanColumnType, ""), new Column("prepared_food", booleanColumnType, ""), new Column("florist", booleanColumnType, ""), }); createTable("time_by_day", new Column[] { new Column("time_id", "INTEGER", "NOT NULL"), new Column("the_date", "TIMESTAMP", ""), new Column("the_day", "VARCHAR(30)", ""), new Column("the_month", "VARCHAR(30)", ""), new Column("the_year", "SMALLINT", ""), new Column("day_of_month", "SMALLINT", ""), new Column("week_of_year", "INTEGER", ""), new Column("month_of_year", "SMALLINT", ""), new Column("quarter", "VARCHAR(30)", ""), new Column("fiscal_period", "VARCHAR(30)", ""), }); createTable("warehouse", new Column[] { new Column("warehouse_id", "INTEGER", "NOT NULL"), new Column("warehouse_class_id", "INTEGER", ""), new Column("stores_id", "INTEGER", ""), new Column("warehouse_name", "VARCHAR(60)", ""), new Column("wa_address1", "VARCHAR(30)", ""), new Column("wa_address2", "VARCHAR(30)", ""), new Column("wa_address3", "VARCHAR(30)", ""), new Column("wa_address4", "VARCHAR(30)", ""), new Column("warehouse_city", "VARCHAR(30)", ""), new Column("warehouse_state_province", "VARCHAR(30)", ""), new Column("warehouse_postal_code", "VARCHAR(30)", ""), new Column("warehouse_country", "VARCHAR(30)", ""), new Column("warehouse_owner_name", "VARCHAR(30)", ""), new Column("warehouse_phone", "VARCHAR(30)", ""), new Column("warehouse_fax", "VARCHAR(30)", ""), }); createTable("warehouse_class", new Column[] { new Column("warehouse_class_id", "INTEGER", "NOT NULL"), new Column("description", "VARCHAR(30)", ""), }); if (outputDirectory != null) { fileOutput.close(); } }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/802705942d17954f30baf655c446a3b252894d37/MondrianFoodMartLoader.java/clean/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 6905, 1435, 1216, 1185, 225, 288, 3639, 309, 261, 2844, 2853, 480, 446, 13, 288, 5411, 585, 1447, 273, 394, 24639, 12, 2704, 1387, 12, 2844, 2853, 16, 315, 2640, 6905, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 6905, 1435, 1216, 1185, 225, 288, 3639, 309, 261, 2844, 2853, 480, 446, 13, 288, 5411, 585, 1447, 273, 394, 24639, 12, 2704, 1387, 12, 2844, 2853, 16, 315, 2640, 6905, 1...
if (jj_scan_token(INTERFACE)) return true;
Token xsp; xsp = jj_scanpos; if (jj_scan_token(28)) jj_scanpos = xsp; if (jj_scan_token(CLASS)) return true;
final private boolean jj_3R_190() { if (jj_scan_token(INTERFACE)) return true; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/606e83b0f5c7b0b4f0d05f9c5bcc8d92c81d9342/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, 30454, 1435, 288, 565, 3155, 619, 1752, 31, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 6030, 3719, 106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30454, 1435, 288, 565, 3155, 619, 1752, 31, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 6030, 3719, 106...
Logger.minor(this, "Putting "+block);
public void put(CHKBlock block) throws IOException { Logger.minor(this, "Putting "+block); byte[] data = block.getData(); byte[] headers = block.getHeader(); int hlen = headers.length; if(data.length != DATA_BLOCK_SIZE || hlen > HEADER_BLOCK_SIZE-2) throw new IllegalArgumentException("Too big - data: "+data.length+" should be "+ DATA_BLOCK_SIZE+", headers: "+hlen+" - should be "+(HEADER_BLOCK_SIZE-2)); byte[] hbuf = new byte[HEADER_BLOCK_SIZE]; hbuf[0] = (byte)(hlen >> 8); hbuf[1] = (byte)(hlen & 0xff); System.arraycopy(headers, 0, hbuf, 2, hlen); dataStore.addDataAsBlock(block.getKey(), data); headersStore.addDataAsBlock(block.getKey(), hbuf); Logger.minor(this, "Written as "+block.getKey()); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/468622124d6c873f5829a9d551c994b13f38cb37/FreenetStore.java/clean/src/freenet/store/FreenetStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 12, 1792, 47, 1768, 1203, 13, 1216, 1860, 288, 377, 202, 4202, 1160, 8526, 501, 273, 1203, 18, 588, 751, 5621, 3639, 1160, 8526, 1607, 273, 1203, 18, 588, 1864, 5621, 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, 1378, 12, 1792, 47, 1768, 1203, 13, 1216, 1860, 288, 377, 202, 4202, 1160, 8526, 501, 273, 1203, 18, 588, 751, 5621, 3639, 1160, 8526, 1607, 273, 1203, 18, 588, 1864, 5621, 3...
notifyGameStepChanged(stepChange.getStepName(), stepChange.getDelegateName(), stepChange.getPlayer());
notifyGameStepChanged(stepChange.getStepName(), stepChange.getDelegateName(), stepChange.getPlayer(), stepChange.getRound());
public void messageReceived(Serializable msg, INode from) { if(msg instanceof StepChangedMessage) { StepChangedMessage stepChange = (StepChangedMessage) msg; notifyGameStepChanged(stepChange.getStepName(), stepChange.getDelegateName(), stepChange.getPlayer()); } else if(msg instanceof ChangeMessage) { ChangeMessage changeMessage = (ChangeMessage) msg; m_changePerformer.perform(changeMessage.getChange()); } else if(msg instanceof PlayerStartStepMessage) { PlayerStartStepMessage playerStart = (PlayerStartStepMessage) msg; GamePlayer gp = (GamePlayer) m_gamePlayers.get(playerStart.getPlayerID()); if(gp == null) throw new IllegalStateException("Game player not found" + playerStart); gp.start(playerStart.getStepName()); PlayerStepEndedMessage response = new PlayerStepEndedMessage(playerStart.getStepName()); m_messenger.send(response, m_serverNode); } }
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/4254d54ee5fc17e7fc43b7f9981789b58e72ecbb/ClientGame.java/buggy/triplea/src/games/strategy/engine/framework/ClientGame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 883, 8872, 12, 21682, 1234, 16, 21176, 628, 13, 565, 288, 1377, 309, 12, 3576, 1276, 8693, 5033, 1079, 13, 1377, 288, 3639, 8693, 5033, 1079, 2235, 3043, 273, 261, 4160, 5033, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 883, 8872, 12, 21682, 1234, 16, 21176, 628, 13, 565, 288, 1377, 309, 12, 3576, 1276, 8693, 5033, 1079, 13, 1377, 288, 3639, 8693, 5033, 1079, 2235, 3043, 273, 261, 4160, 5033, ...
return createAssignment(makeReferenceGet(left), right);
throw Kit.codeBug();
Node createAssignment(Node left, Node right) { int nodeType = left.getType(); switch (nodeType) { case Token.NAME: left.setType(Token.BINDNAME); return new Node(Token.SETNAME, left, right); case Token.GETPROP: case Token.GETELEM: { Node obj = left.getFirstChild(); Node id = left.getLastChild(); int type; if (nodeType == Token.GETPROP) { type = Token.SETPROP; } else { type = Token.SETELEM; } return new Node(type, obj, id, right); } case Token.GET_REF: { Node ref = left.getFirstChild(); return new Node(Token.SET_REF, ref, right); } } return createAssignment(makeReferenceGet(left), right); }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/08a2c249ed69fa0fb972c35558018ad575f4a516/IRFactory.java/clean/src/org/mozilla/javascript/IRFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 2029, 752, 7729, 12, 907, 2002, 16, 2029, 2145, 13, 565, 288, 3639, 509, 9507, 273, 2002, 18, 588, 559, 5621, 3639, 1620, 261, 2159, 559, 13, 288, 1850, 648, 3155, 18, 1985, 30, 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, 2029, 752, 7729, 12, 907, 2002, 16, 2029, 2145, 13, 565, 288, 3639, 509, 9507, 273, 2002, 18, 588, 559, 5621, 3639, 1620, 261, 2159, 559, 13, 288, 1850, 648, 3155, 18, 1985, 30, 5411, ...
else if(fListDelimiter != null){
else if((delimiter = getDelimiter()) != null){
protected String stringListToString(String values[]) throws BuildMacroException { String result = null; if(values == null) result = null; else if(values.length == 0) result = EMPTY_STRING; else if(values.length == 1) result = values[0]; else if(fListDelimiter != null){ StringBuffer buffer = new StringBuffer(); for(int i = 0; i < values.length; i++){ buffer.append(values[i]); if(i < values.length-1) buffer.append(fListDelimiter); } result = buffer.toString(); } else { throw new BuildMacroException(IBuildMacroStatus.TYPE_MACRO_NOT_STRING, null, null, fName, fContextInfo != null ? fContextInfo.getContextType() : 0, fContextInfo != null ? fContextInfo.getContextData() : null); } return result; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/fa2c1a50ab37cebc7024ad9bb983e8d53b4f4b1c/DefaultMacroSubstitutor.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/macros/DefaultMacroSubstitutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 514, 533, 682, 5808, 12, 780, 924, 63, 5717, 1216, 3998, 17392, 503, 288, 1082, 202, 780, 563, 273, 446, 31, 1082, 202, 430, 12, 2372, 422, 446, 13, 9506, 202, 2088, 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, 3196, 202, 1117, 514, 533, 682, 5808, 12, 780, 924, 63, 5717, 1216, 3998, 17392, 503, 288, 1082, 202, 780, 563, 273, 446, 31, 1082, 202, 430, 12, 2372, 422, 446, 13, 9506, 202, 2088, 273, ...
componentManager.loadLib(systemLibs.toString(), true);
componentManager.loadLib(systemLibs.toString(), true, true);
protected void initialize() throws ExecutionException { configureServices(); setMagicProperties(); determineBaseDir(); try { // load system ant lib URL systemLibs = new URL(initConfig.getLibraryURL(), "syslibs/"); componentManager.loadLib(systemLibs.toString(), true); // execute any config tasks executeTasks(config.getTasks()); // now load other system libraries URL antLibs = new URL(initConfig.getLibraryURL(), "antlibs/"); componentManager.loadLib(antLibs.toString(), false); executeTasks(project.getTasks()); } catch (MalformedURLException e) { throw new ExecutionException("Unable to initialize antlibs", e); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/cae2d444f7e933d5d55072f4b546b27ce174a720/Frame.java/clean/proposal/mutant/src/java/antcore/org/apache/ant/antcore/execution/Frame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4046, 1435, 1216, 20205, 288, 3639, 5068, 5676, 5621, 3639, 444, 19289, 2297, 5621, 3639, 4199, 2171, 1621, 5621, 3639, 775, 288, 10792, 368, 1262, 2619, 17841, 2561, 5411, 1976, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4046, 1435, 1216, 20205, 288, 3639, 5068, 5676, 5621, 3639, 444, 19289, 2297, 5621, 3639, 4199, 2171, 1621, 5621, 3639, 775, 288, 10792, 368, 1262, 2619, 17841, 2561, 5411, 1976, ...
timer.schedule(task, millis, millis);
timer.scheduleAtFixedRate(task, millis, millis);
private synchronized void startTimer() { if (timer == null) { timer = new Timer(); TimerTask task = new TimerTask() { public void run() { try { timerEvent(); } catch (IOException ioe) { ioe.printStackTrace(); } } }; long millis = period * 1000; timer.schedule(task, millis, millis); } }
49248 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49248/bd92924dcab8e37c1afb3854ce1ab7ab1bbdd8bc/AbstractMetricsContext.java/clean/src/java/org/apache/hadoop/metrics/spi/AbstractMetricsContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 787, 6777, 1435, 288, 540, 309, 261, 12542, 422, 446, 13, 288, 5411, 5441, 273, 394, 12290, 5621, 5411, 12290, 2174, 1562, 273, 394, 12290, 2174, 1435, 288, 7734, 1071, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 787, 6777, 1435, 288, 540, 309, 261, 12542, 422, 446, 13, 288, 5411, 5441, 273, 394, 12290, 5621, 5411, 12290, 2174, 1562, 273, 394, 12290, 2174, 1435, 288, 7734, 1071, 9...
new WriterMIMETypeFilter(MIMEType));
new WriterMIMETypeFilter(MIMEType), MIMEType);
public static Iterator getImageWritersByMIMEType(String MIMEType) { if (MIMEType == null) throw new IllegalArgumentException("MIMEType may not be null"); return getWritersByFilter(ImageWriterSpi.class, new WriterMIMETypeFilter(MIMEType)); }
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/42b143f8e2002d1d01907e490d5a5025c34c7be2/ImageIO.java/buggy/libjava/javax/imageio/ImageIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 4498, 10567, 27508, 858, 18178, 559, 12, 780, 13195, 559, 13, 225, 288, 565, 309, 261, 18178, 559, 422, 446, 13, 1377, 604, 394, 2754, 2932, 18178, 559, 2026, 486, 506, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 4498, 10567, 27508, 858, 18178, 559, 12, 780, 13195, 559, 13, 225, 288, 565, 309, 261, 18178, 559, 422, 446, 13, 1377, 604, 394, 2754, 2932, 18178, 559, 2026, 486, 506, 446, ...
prefs = PrefUtils.getNode("net/sf/gogui/gui/bookmark/" + i);
prefs = PrefUtil.getNode("net/sf/gogui/gui/bookmark/" + i);
public static ArrayList load() { ArrayList bookmarks = new ArrayList(); Preferences prefs = PrefUtils.getNode("net/sf/gogui/gui/bookmark"); if (prefs == null) return bookmarks; int size = prefs.getInt("size", 0); for (int i = 0; i < size; ++i) { prefs = PrefUtils.getNode("net/sf/gogui/gui/bookmark/" + i); if (prefs == null) break; String name = prefs.get("name", null); if (name == null) break; String fileName = prefs.get("file", ""); int move = prefs.getInt("move", 0); String variation = prefs.get("variation", ""); Bookmark b = new Bookmark(name, new File(fileName), move, variation); bookmarks.add(b); } return bookmarks; }
48906 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48906/1f50ffb219183ddaf94720a4aba453e11f412425/Bookmark.java/buggy/src/net/sf/gogui/gui/Bookmark.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2407, 1262, 1435, 565, 288, 3639, 2407, 13696, 87, 273, 394, 2407, 5621, 3639, 28310, 15503, 273, 28184, 1989, 18, 588, 907, 2932, 2758, 19, 21668, 19, 75, 717, 4881, 19, 20292...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2407, 1262, 1435, 565, 288, 3639, 2407, 13696, 87, 273, 394, 2407, 5621, 3639, 28310, 15503, 273, 28184, 1989, 18, 588, 907, 2932, 2758, 19, 21668, 19, 75, 717, 4881, 19, 20292...
if (zndx != -1 || cndx != -1 || tndx != -1) {
if (zndx >= 0 || cndx >= 0 || tndx >= 0) {
private void setDimensions(String id, int[][] dims) throws FormatException, IOException { // first set X and Y // this is relatively easy - we can just take the maximum value int maxX = 0; int maxY = 0; for (int i=0; i<dims.length; i++) { if (dims[i][0] > maxX) { maxX = dims[i][0]; } if (dims[i][1] > maxY) { maxY = dims[i][1]; } } for (int i=0; i<dimensions.length; i++) { if (dimensions[i] == 0) dimensions[i]++; } // now the tricky part - setting Z, C and T // first we'll get a list of the prefix blocks String[] prefixes = fp.getPrefixes(); int[] counts = fp.getCount(); int zSize = 1; int cSize = 1; int tSize = 1; String ordering = ""; for (int j=0; j<counts.length; j++) { // which dimension is this? int zndx = -1; int cndx = -1; int tndx = -1; String p = prefixes[j]; for (int k=0; k<Z.length; k++) { if (p.indexOf(Z[k]) != -1) { zndx = k; } } if (counts[j] <= 4) { for (int k=0; k<C.length; k++) { if (p.indexOf(C[k]) != -1) { cndx = k; } } } for (int k=0; k<T.length; k++) { if (p.indexOf(T[k]) != -1) { tndx = k; } } if (zndx != -1 || cndx != -1 || tndx != -1) { // the largest of these three is the dimension we will choose int zpos = zndx == -1 ? -1 : p.indexOf(Z[zndx]); int cpos = cndx == -1 ? -1 : p.indexOf(C[cndx]); int tpos = tndx == -1 ? -1 : p.indexOf(T[tndx]); int max = zpos; if (cpos > max) max = cpos; if (tpos > max) max = tpos; if (max == zpos) { ordering += "Z"; zSize = counts[j]; } else if (max == cpos) { if (cSize == 1 && !isRGB(id)) { ordering += "C"; cSize = counts[j]; } else { if (zSize == 1) { ordering += "Z"; zSize = counts[j]; } else if (tSize == 1) { ordering += "T"; tSize = counts[j]; } else cSize *= counts[j]; } } else { ordering += "T"; tSize = counts[j]; } } else { // our simple check failed, so let's try some more complex stuff // if the count is 2 or 3, it's probably a C size if (counts[j] == 2 || counts[j] == 3) { if (!varyZ && !varyC && !varyT) { if (counts[j] != 1) { // we already set this dimension if (zSize == 1) { zSize = cSize; ordering += "Z"; } else if (tSize == 1) { tSize = cSize; ordering += "T"; } } if (ordering.indexOf("C") == -1) ordering += "C"; cSize = counts[j]; } } else { // the most likely choice is whichever dimension is currently set to 1 if (dimensions[2] == 1) { ordering += "Z"; zSize = counts[j]; } else if (dimensions[4] == 1) { ordering += "T"; tSize = counts[j]; } } } } // reset the dimensions, preserving internal sizes dimensions[3] *= cSize; if (zSize > 1 && dimensions[2] > 1) { if (dimensions[4] == 1) { dimensions[4] = dimensions[2]; dimensions[2] = zSize; } else dimensions[2] *= zSize; } else dimensions[2] *= zSize; if (tSize > 1 && dimensions[4] > 1) { if (dimensions[2] == 1) { dimensions[2] = dimensions[4]; dimensions[4] = tSize; } else dimensions[4] *= tSize; } else dimensions[4] *= tSize; // make sure ordering is right String begin = ""; String readerOrder = reader.getDimensionOrder(id); for (int j=0; j<readerOrder.length(); j++) { if (ordering.indexOf(readerOrder.substring(j, j+1)) == -1) { begin += readerOrder.substring(j, j+1); } } ordering = begin + ordering; order = ordering.substring(0, 5); }
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/e95f764538fc1a0c1d54610adefd8325bbb9ce8b/FileStitcher.java/buggy/loci/formats/FileStitcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 444, 10796, 12, 780, 612, 16, 509, 63, 6362, 65, 9914, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 368, 1122, 444, 1139, 471, 1624, 565, 368, 333, 353, 1279, 17526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 10796, 12, 780, 612, 16, 509, 63, 6362, 65, 9914, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 368, 1122, 444, 1139, 471, 1624, 565, 368, 333, 353, 1279, 17526, ...
public QueryDescr query() throws RecognitionException { QueryDescr query; Token loc=null; String queryName = null; query = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:338:17: ( opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:338:17: opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol { following.push(FOLLOW_opt_eol_in_query473); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,26,FOLLOW_26_in_query479); following.push(FOLLOW_word_in_query483); queryName=word(); following.pop(); following.push(FOLLOW_opt_eol_in_query485); opt_eol(); following.pop(); query = new QueryDescr( queryName, null ); query.setLocation( loc.getLine(), loc.getCharPositionInLine() ); AndDescr lhs = new AndDescr(); query.setLhs( lhs ); lhs.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) int alt15=2; switch ( input.LA(1) ) { case 21: int LA15_1 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 1, input); throw nvae; } break; case EOL: int LA15_2 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 2, input); throw nvae; } break; case 27: int LA15_3 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 3, input); throw nvae; } break; case 54: int LA15_4 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 4, input); throw nvae; } break; case 55: int LA15_5 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 5, input); throw nvae; } break; case 56: int LA15_6 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 6, input); throw nvae; } break; case ID: int LA15_7 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 7, input); throw nvae; } break; case 15: int LA15_8 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 8, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 16: case 17: case 18: case 19: case 20: case 22: case 23: case 24: case 25: case 26: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 53: case 57: alt15=1; break; default: NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 0, input); throw nvae; } switch (alt15) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:347:25: {...}? expander_lhs_block[lhs] { if ( !( expander != null ) ) { throw new FailedPredicateException(input, "query", " expander != null "); } following.push(FOLLOW_expander_lhs_block_in_query501); expander_lhs_block(lhs); following.pop(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:348:27: normal_lhs_block[lhs] { following.push(FOLLOW_normal_lhs_block_in_query509); normal_lhs_block(lhs); following.pop(); } break; } match(input,27,FOLLOW_27_in_query524); following.push(FOLLOW_opt_eol_in_query526); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return query; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/297a1e0ef2967d8b4f7be9c022102a5a56e97489/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2770, 16198, 843, 1435, 1216, 9539, 288, 6647, 2770, 16198, 843, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 514, 843, 461, 273, 446, 31, 1171, 202, 202, 2271, 273, 446, 31, 540, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2770, 16198, 843, 1435, 1216, 9539, 288, 6647, 2770, 16198, 843, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 514, 843, 461, 273, 446, 31, 1171, 202, 202, 2271, 273, 446, 31, 540, 20...
log.error("Gossip: " + not);
System.err.println("Gossip: " + not);
public void run() { Object tmp; Message msg=null; Command comm; boolean fl=true; Vector mbrs; ObjectOutputStream os; while(fl) { try { tmp=channel.receive(0); // System.out.println("Gossip.run(): received " + tmp); if(tmp == null) continue; if(tmp instanceof View) { View v=(View)tmp; member_size=v.size(); mbrs=v.getMembers(); members.removeAllElements(); for(int i=0; i < mbrs.size(); i++) members.addElement(mbrs.elementAt(i)); if(mainFrame != null) setTitle(); continue; } if(tmp instanceof ExitEvent) { // System.out.println("-- Gossip.main(): received EXIT, waiting for ChannelReconnected callback"); break; } if(!(tmp instanceof Message)) continue; msg=(Message)tmp; comm=null; Object obj=msg.getObject(); // System.out.println("obj is " + obj); if(obj instanceof Command) comm=(Command)obj; else if(obj instanceof Message) { System.out.println("*** Message is " + Util.printMessage((Message)obj)); Util.dumpStack(true); } else { if(obj != null) System.out.println("obj is " + obj.getClass() + ", hdrs are" + msg.printObjectHeaders()); else System.out.println("hdrs are" + msg.printObjectHeaders()); Util.dumpStack(true); } switch(comm.mode) { case Command.GOSSIP: if(graphics != null) { colorPanel(comm.r, comm.g, comm.b); comm.not_seen.removeElement(local_addr); if(comm.not_seen.size() > 0) { // forward gossip Vector v=Util.pickSubset(comm.not_seen, subset); out.reset(); os=new ObjectOutputStream(out); os.writeObject(comm); os.flush(); for(int i=0; i < v.size(); i++) { channel.send(new Message((Address)v.elementAt(i), null, out.toByteArray())); } } } break; case Command.CLEAR: clearPanel(); continue; default: log.error("***** Gossip.run(): received invalid draw command " + comm.mode); break; } } catch(ChannelNotConnectedException not) { log.error("Gossip: " + not); break; } catch(ChannelClosedException closed) { log.error("Gossip: channel was closed"); break; } catch(Exception e) { log.error(e); continue; // break; } } }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/5ad015d9a78e1da3350d9b398b46b2f5d4508564/Gossip.java/clean/src/org/jgroups/demos/Gossip.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 1033, 1853, 31, 3639, 2350, 1234, 33, 2011, 31, 3639, 3498, 1543, 31, 3639, 1250, 1183, 33, 3767, 31, 3639, 5589, 312, 2848, 87, 31, 3639, 23438, 1140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 1033, 1853, 31, 3639, 2350, 1234, 33, 2011, 31, 3639, 3498, 1543, 31, 3639, 1250, 1183, 33, 3767, 31, 3639, 5589, 312, 2848, 87, 31, 3639, 23438, 1140, ...
public void nodesReplaced(NodeState state);
void nodesReplaced(NodeState state);
public void nodesReplaced(NodeState state);
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/5750131cabf45a1ef29151df8722cd671cebd6ad/NodeStateListener.java/buggy/core/src/java/org/apache/jackrabbit/core/state/NodeStateListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2199, 5729, 72, 12, 907, 1119, 919, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2199, 5729, 72, 12, 907, 1119, 919, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public Message create( String beginString, String msgType ) { if("0".equals(msgType)) { return new quickfix.fix44.Heartbeat(); } if("A".equals(msgType)) { return new quickfix.fix44.Logon(); } if("1".equals(msgType)) { return new quickfix.fix44.TestRequest(); } if("2".equals(msgType)) { return new quickfix.fix44.ResendRequest(); } if("3".equals(msgType)) { return new quickfix.fix44.Reject(); } if("4".equals(msgType)) { return new quickfix.fix44.SequenceReset(); } if("5".equals(msgType)) { return new quickfix.fix44.Logout(); } if("j".equals(msgType)) { return new quickfix.fix44.BusinessMessageReject(); } if("BE".equals(msgType)) { return new quickfix.fix44.UserRequest(); } if("BF".equals(msgType)) { return new quickfix.fix44.UserResponse(); } if("7".equals(msgType)) { return new quickfix.fix44.Advertisement(); } if("6".equals(msgType)) { return new quickfix.fix44.IndicationOfInterest(); } if("B".equals(msgType)) { return new quickfix.fix44.News(); } if("C".equals(msgType)) { return new quickfix.fix44.Email(); } if("R".equals(msgType)) { return new quickfix.fix44.QuoteRequest(); } if("AJ".equals(msgType)) { return new quickfix.fix44.QuoteResponse(); } if("AG".equals(msgType)) { return new quickfix.fix44.QuoteRequestReject(); } if("AH".equals(msgType)) { return new quickfix.fix44.RFQRequest(); } if("S".equals(msgType)) { return new quickfix.fix44.Quote(); } if("Z".equals(msgType)) { return new quickfix.fix44.QuoteCancel(); } if("a".equals(msgType)) { return new quickfix.fix44.QuoteStatusRequest(); } if("AI".equals(msgType)) { return new quickfix.fix44.QuoteStatusReport(); } if("i".equals(msgType)) { return new quickfix.fix44.MassQuote(); } if("b".equals(msgType)) { return new quickfix.fix44.MassQuoteAcknowledgement(); } if("V".equals(msgType)) { return new quickfix.fix44.MarketDataRequest(); } if("W".equals(msgType)) { return new quickfix.fix44.MarketDataSnapshotFullRefresh(); } if("X".equals(msgType)) { return new quickfix.fix44.MarketDataIncrementalRefresh(); } if("Y".equals(msgType)) { return new quickfix.fix44.MarketDataRequestReject(); } if("c".equals(msgType)) { return new quickfix.fix44.SecurityDefinitionRequest(); } if("d".equals(msgType)) { return new quickfix.fix44.SecurityDefinition(); } if("v".equals(msgType)) { return new quickfix.fix44.SecurityTypeRequest(); } if("w".equals(msgType)) { return new quickfix.fix44.SecurityTypes(); } if("x".equals(msgType)) { return new quickfix.fix44.SecurityListRequest(); } if("y".equals(msgType)) { return new quickfix.fix44.SecurityList(); } if("z".equals(msgType)) { return new quickfix.fix44.DerivativeSecurityListRequest(); } if("AA".equals(msgType)) { return new quickfix.fix44.DerivativeSecurityList(); } if("e".equals(msgType)) { return new quickfix.fix44.SecurityStatusRequest(); } if("f".equals(msgType)) { return new quickfix.fix44.SecurityStatus(); } if("g".equals(msgType)) { return new quickfix.fix44.TradingSessionStatusRequest(); } if("h".equals(msgType)) { return new quickfix.fix44.TradingSessionStatus(); } if("D".equals(msgType)) { return new quickfix.fix44.NewOrderSingle(); } if("8".equals(msgType)) { return new quickfix.fix44.ExecutionReport(); } if("Q".equals(msgType)) { return new quickfix.fix44.DontKnowTrade(); } if("G".equals(msgType)) { return new quickfix.fix44.OrderCancelReplaceRequest(); } if("F".equals(msgType)) { return new quickfix.fix44.OrderCancelRequest(); } if("9".equals(msgType)) { return new quickfix.fix44.OrderCancelReject(); } if("H".equals(msgType)) { return new quickfix.fix44.OrderStatusRequest(); } if("q".equals(msgType)) { return new quickfix.fix44.OrderMassCancelRequest(); } if("r".equals(msgType)) { return new quickfix.fix44.OrderMassCancelReport(); } if("AF".equals(msgType)) { return new quickfix.fix44.OrderMassStatusRequest(); } if("s".equals(msgType)) { return new quickfix.fix44.NewOrderCross(); } if("t".equals(msgType)) { return new quickfix.fix44.CrossOrderCancelReplaceRequest(); } if("u".equals(msgType)) { return new quickfix.fix44.CrossOrderCancelRequest(); } if("AB".equals(msgType)) { return new quickfix.fix44.NewOrderMultileg(); } if("AC".equals(msgType)) { return new quickfix.fix44.MultilegOrderCancelReplaceRequest(); } if("k".equals(msgType)) { return new quickfix.fix44.BidRequest(); } if("l".equals(msgType)) { return new quickfix.fix44.BidResponse(); } if("E".equals(msgType)) { return new quickfix.fix44.NewOrderList(); } if("m".equals(msgType)) { return new quickfix.fix44.ListStrikePrice(); } if("N".equals(msgType)) { return new quickfix.fix44.ListStatus(); } if("L".equals(msgType)) { return new quickfix.fix44.ListExecute(); } if("K".equals(msgType)) { return new quickfix.fix44.ListCancelRequest(); } if("M".equals(msgType)) { return new quickfix.fix44.ListStatusRequest(); } if("J".equals(msgType)) { return new quickfix.fix44.AllocationInstruction(); } if("P".equals(msgType)) { return new quickfix.fix44.AllocationInstructionAck(); } if("AS".equals(msgType)) { return new quickfix.fix44.AllocationReport(); } if("AT".equals(msgType)) { return new quickfix.fix44.AllocationReportAck(); } if("AK".equals(msgType)) { return new quickfix.fix44.Confirmation(); } if("AU".equals(msgType)) { return new quickfix.fix44.ConfirmationAck(); } if("BH".equals(msgType)) { return new quickfix.fix44.ConfirmationRequest(); } if("T".equals(msgType)) { return new quickfix.fix44.SettlementInstructions(); } if("AV".equals(msgType)) { return new quickfix.fix44.SettlementInstructionRequest(); } if("AD".equals(msgType)) { return new quickfix.fix44.TradeCaptureReportRequest(); } if("AQ".equals(msgType)) { return new quickfix.fix44.TradeCaptureReportRequestAck(); } if("AE".equals(msgType)) { return new quickfix.fix44.TradeCaptureReport(); } if("AR".equals(msgType)) { return new quickfix.fix44.TradeCaptureReportAck(); } if("o".equals(msgType)) { return new quickfix.fix44.RegistrationInstructions(); } if("p".equals(msgType)) { return new quickfix.fix44.RegistrationInstructionsResponse(); } if("AL".equals(msgType)) { return new quickfix.fix44.PositionMaintenanceRequest(); } if("AM".equals(msgType)) { return new quickfix.fix44.PositionMaintenanceReport(); } if("AN".equals(msgType)) { return new quickfix.fix44.RequestForPositions(); } if("AO".equals(msgType)) { return new quickfix.fix44.RequestForPositionsAck(); } if("AP".equals(msgType)) { return new quickfix.fix44.PositionReport(); } if("AW".equals(msgType)) { return new quickfix.fix44.AssignmentReport(); } if("AX".equals(msgType)) { return new quickfix.fix44.CollateralRequest(); } if("AY".equals(msgType)) { return new quickfix.fix44.CollateralAssignment(); } if("AZ".equals(msgType)) { return new quickfix.fix44.CollateralResponse(); } if("BA".equals(msgType)) { return new quickfix.fix44.CollateralReport(); } if("BB".equals(msgType)) { return new quickfix.fix44.CollateralInquiry(); } if("BG".equals(msgType)) { return new quickfix.fix44.CollateralInquiryAck(); } return new quickfix.fix44.Message(); }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/1550773ed3d856616a145b520aada7f5e496c228/MessageFactory.java/buggy/src/java/src/quickfix/fix44/MessageFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2350, 752, 12, 514, 2376, 780, 16, 514, 1234, 559, 262, 288, 282, 309, 2932, 20, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 9549, 904, 18, 904, 6334, 18, 15894, 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, 282, 1071, 2350, 752, 12, 514, 2376, 780, 16, 514, 1234, 559, 262, 288, 282, 309, 2932, 20, 9654, 14963, 12, 3576, 559, 3719, 288, 377, 327, 394, 9549, 904, 18, 904, 6334, 18, 15894, 5621, ...
match(input,INT,FOLLOW_INT_in_literal_constraint1913);
match(input,INT,FOLLOW_INT_in_literal_constraint1916);
public String literal_constraint() throws RecognitionException { String text; Token t=null; text = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:710:17: ( (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:710:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:710:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) int alt51=5; switch ( input.LA(1) ) { case STRING: alt51=1; break; case INT: alt51=2; break; case FLOAT: alt51=3; break; case BOOL: alt51=4; break; case 48: alt51=5; break; default: NoViableAltException nvae = new NoViableAltException("710:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= \'null\' )", 51, 0, input); throw nvae; } switch (alt51) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:710:25: t= STRING { t=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_literal_constraint1902); text = getString( t ); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:711:25: t= INT { t=(Token)input.LT(1); match(input,INT,FOLLOW_INT_in_literal_constraint1913); text = t.getText(); } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:712:25: t= FLOAT { t=(Token)input.LT(1); match(input,FLOAT,FOLLOW_FLOAT_in_literal_constraint1926); text = t.getText(); } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:713:25: t= BOOL { t=(Token)input.LT(1); match(input,BOOL,FOLLOW_BOOL_in_literal_constraint1937); text = t.getText(); } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:714:25: t= 'null' { t=(Token)input.LT(1); match(input,48,FOLLOW_48_in_literal_constraint1949); text = null; } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/297a1e0ef2967d8b4f7be9c022102a5a56e97489/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 7158, 67, 13364, 1435, 1216, 9539, 288, 6647, 514, 977, 31, 3639, 3155, 268, 33, 2011, 31, 1171, 202, 202, 955, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 385, 5581, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 7158, 67, 13364, 1435, 1216, 9539, 288, 6647, 514, 977, 31, 3639, 3155, 268, 33, 2011, 31, 1171, 202, 202, 955, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 385, 5581, ...
if(provider instanceof ITableColorProvider)
if (provider instanceof ITableColorProvider)
public TreeColorAndFontCollector(IBaseLabelProvider provider){ if(provider instanceof ITableFontProvider) fontProvider = (ITableFontProvider) provider; if(provider instanceof ITableColorProvider) colorProvider = (ITableColorProvider) provider; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d94e309c616b79ca7e205fa94a5f9687ffcbe4f8/TreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 4902, 2957, 1876, 5711, 7134, 12, 45, 2171, 2224, 2249, 2893, 15329, 1082, 202, 430, 12, 6778, 1276, 467, 1388, 5711, 2249, 13, 9506, 202, 5776, 2249, 273, 261, 1285, 429, 5711...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4902, 2957, 1876, 5711, 7134, 12, 45, 2171, 2224, 2249, 2893, 15329, 1082, 202, 430, 12, 6778, 1276, 467, 1388, 5711, 2249, 13, 9506, 202, 5776, 2249, 273, 261, 1285, 429, 5711...
System.out.println("state = " + transaction.getState()); System.out.println("dialog = " + transaction.getDialog()); System.out.println( "dialogState = " + transaction.getDialog().getState()); System.out.println("Transaction Time out"); System.out.println("Transaction " + transaction); System.out.println("request " + transaction.getRequest()); System.exit(0);
/* * System.out.println("request = " + request); System.out.println("state = " + * transaction.getState()); System.out.println("dialog = " + * transaction.getDialog()); System.out.println( "dialogState = " + * transaction.getDialog().getState()); System.out.println("Transaction * Time out"); System.out.println("Transaction " + transaction); * System.out.println("request " + transaction.getRequest()); */ this.droppedCall ++; System.out.println("droped call " + this.droppedCall);
public void processTimeout(javax.sip.TimeoutEvent timeoutEvent) { Transaction transaction; Request request = null; if (timeoutEvent.isServerTransaction()) { transaction = timeoutEvent.getServerTransaction(); } else { transaction = timeoutEvent.getClientTransaction(); request = ((ClientTransaction) transaction).getRequest(); } System.out.println("state = " + transaction.getState()); System.out.println("dialog = " + transaction.getDialog()); System.out.println( "dialogState = " + transaction.getDialog().getState()); System.out.println("Transaction Time out"); System.out.println("Transaction " + transaction); System.out.println("request " + transaction.getRequest()); System.exit(0); }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/Shootme.java/buggy/trunk/src/test/load/concurrency/Shootme.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1207, 2694, 12, 28384, 18, 28477, 18, 2694, 1133, 2021, 1133, 13, 288, 202, 202, 3342, 2492, 31, 202, 202, 691, 590, 273, 446, 31, 202, 202, 430, 261, 4538, 1133, 18, 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, 918, 1207, 2694, 12, 28384, 18, 28477, 18, 2694, 1133, 2021, 1133, 13, 288, 202, 202, 3342, 2492, 31, 202, 202, 691, 590, 273, 446, 31, 202, 202, 430, 261, 4538, 1133, 18, 2...
ids = readExternalIds (true, false); setNotation (nname, ids); skipWhitespace (); require ('>'); }
setNotation(nname, ids); skipWhitespace(); require('>'); }
private void parseNotationDecl () throws Exception { String nname, ids[]; requireWhitespace (); nname = readNmtoken (true); //NE08 if (nname.indexOf(':') >= 0) error ("Illegal character(':') in notation name ", nname, null); requireWhitespace (); // Read the external identifiers. ids = readExternalIds (true, false); // Register the notation. setNotation (nname, ids); skipWhitespace (); require ('>'); }
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/buggy/libjava/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 14818, 3456, 1832, 565, 1216, 1185, 565, 288, 202, 780, 290, 529, 16, 3258, 8526, 31, 202, 6528, 9431, 261, 1769, 202, 82, 529, 273, 855, 50, 1010, 969, 261, 3767, 1769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 14818, 3456, 1832, 565, 1216, 1185, 565, 288, 202, 780, 290, 529, 16, 3258, 8526, 31, 202, 6528, 9431, 261, 1769, 202, 82, 529, 273, 855, 50, 1010, 969, 261, 3767, 1769...
if(inbox.length()==0) { inbox = Pop3Connector.MAILBOX;
if(inbox.length() == 0) { inbox = ((ImapConnector) connector).getMailboxFolder();
public void doConnect() throws Exception { String inbox = null; if (connector.getProtocol().toLowerCase().startsWith("imap")) { inbox = endpoint.getEndpointURI().getPath(); if(inbox.length()==0) { inbox = Pop3Connector.MAILBOX; } else { inbox = inbox.substring(1); } } else { inbox = Pop3Connector.MAILBOX; } URLName url = new URLName(endpoint.getEndpointURI().getScheme(), endpoint.getEndpointURI().getHost(), endpoint.getEndpointURI().getPort(), inbox, endpoint.getEndpointURI().getUsername(), endpoint.getEndpointURI().getPassword()); session = MailUtils.createMailSession(url, connector); session.setDebug(logger.isDebugEnabled()); Store store = session.getStore(url); store.connect(); folder = store.getFolder(inbox); //If user explicitly sets backup folder to "" it will disable email back up if (backupFolder==null) { this.backupFolder = MuleManager.getConfiguration().getWorkingDirectory() + "/mail/" + folder.getName(); } else if(StringUtils.EMPTY.equals(backupFolder)) { backupFolder = null; } if (backupFolder != null && !this.backupFolder.endsWith(File.separator)) { this.backupFolder += File.separator; } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/b59bdf527f546427d5ac89fe2604250029cdf659/Pop3MessageReceiver.java/buggy/providers/email/src/main/java/org/mule/providers/email/Pop3MessageReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 5215, 1435, 1216, 1185, 565, 288, 3639, 514, 27271, 273, 446, 31, 3639, 309, 261, 23159, 18, 588, 5752, 7675, 869, 5630, 7675, 17514, 1190, 2932, 12161, 6, 3719, 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, 918, 741, 5215, 1435, 1216, 1185, 565, 288, 3639, 514, 27271, 273, 446, 31, 3639, 309, 261, 23159, 18, 588, 5752, 7675, 869, 5630, 7675, 17514, 1190, 2932, 12161, 6, 3719, 288, 5411...