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
if ( StringUtil.isBlank( listLimit.getText( ) ) ) { selectedParameter.setProperty( ScalarParameterHandle.LIST_LIMIT_PROP, null ); } else { selectedParameter.setListlimit( Integer.parseInt( listLimit.getText( ) ) ); }
selectedParameter.setAllowNull( allowNull.getSelection( ) );
private void createOptionsPart( Composite parent ) { optionsGroup = new Group( parent, SWT.NULL ); optionsGroup.setText( LABEL_GROUP_MORE_OPTIONS ); optionsGroup.setLayout( new GridLayout( 2, false ) ); optionsGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createLabel( optionsGroup, LABEL_HELP_TEXT ); helpTextEditor = new Text( optionsGroup, SWT.BORDER ); helpTextEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); helpTextEditor.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { try { selectedParameter.setHelpText( UIUtil.convertToModelString( helpTextEditor.getText( ), false ) ); } catch ( Exception e1 ) { ExceptionHandler.handle( e1 ); return; } } } } ); Label lable = new Label( optionsGroup, SWT.NULL ); lable.setText( LABEL_FORMAT_AS ); GridData data = new GridData( ); data.verticalSpan = 2; data.verticalAlignment = GridData.BEGINNING; lable.setLayoutData( data ); Composite formatArea = new Composite( optionsGroup, SWT.NONE ); GridLayout layout = new GridLayout( 2, false ); layout.marginWidth = 0; layout.marginHeight = 0; formatArea.setLayout( layout ); data = new GridData( GridData.FILL_HORIZONTAL ); data.verticalSpan = 2; formatArea.setLayoutData( data ); formatField = new Text( formatArea, SWT.BORDER | SWT.SINGLE | SWT.READ_ONLY ); formatField.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); changeFormat = new Button( formatArea, SWT.PUSH ); changeFormat.setText( LABEL_CHANGE_FORMAT_BUTTON ); setButtonLayoutData( changeFormat ); changeFormat.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { popupFormatBuilder( true ); } } ); Group preview = new Group( formatArea, SWT.NULL ); preview.setText( LABEL_PREVIEW_WITH_FORMAT ); data = new GridData( GridData.FILL_HORIZONTAL ); preview.setLayoutData( data ); preview.setLayout( new GridLayout( ) ); previewLable = new Label( preview, SWT.CENTER | SWT.HORIZONTAL | SWT.VIRTUAL ); previewLable.setText( "" ); //$NON-NLS-1$ previewLable.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createLabel( optionsGroup, LABEL_LIST_LIMIT ); Composite limitArea = new Composite( optionsGroup, SWT.NULL ); layout = new GridLayout( 2, false ); layout.marginWidth = 0; layout.marginHeight = 0; limitArea.setLayout( layout ); data = new GridData( GridData.FILL_HORIZONTAL ); data.verticalSpan = 2; limitArea.setLayoutData( data ); listLimit = new Text( limitArea, SWT.BORDER ); listLimit.setLayoutData( new GridData( ) ); listLimit.addVerifyListener( new VerifyListener( ) { public void verifyText( VerifyEvent e ) { e.doit = ( "1234567890\0".indexOf( e.character ) != -1 ); //$NON-NLS-1$ } } ); listLimit.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { if ( selectedParameter != null && selectedParameter != newParameter ) { try { if ( StringUtil.isBlank( listLimit.getText( ) ) ) { selectedParameter.setProperty( ScalarParameterHandle.LIST_LIMIT_PROP, null ); } else { selectedParameter.setListlimit( Integer.parseInt( listLimit.getText( ) ) ); } } catch ( SemanticException e1 ) { ExceptionHandler.handle( e1 ); } catch ( NumberFormatException e2 ) { ExceptionHandler.openErrorMessageBox( ERROR_TITLE_INVALID_LIST_LIMIT, MessageFormat.format( ERROR_MSG_INVALID_LIST_LIMIT, new Object[]{ Integer.toString( Integer.MAX_VALUE ) } ) ); } } } } ); Label values = new Label( limitArea, SWT.NULL ); values.setText( LABEL_VALUES ); values.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/32c331232f8bfd4ee9610e9105bb35ff9427651f/CascadingParametersDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/CascadingParametersDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1320, 1988, 12, 14728, 982, 262, 202, 95, 202, 202, 2116, 1114, 273, 394, 3756, 12, 982, 16, 348, 8588, 18, 8560, 11272, 202, 202, 2116, 1114, 18, 542, 1528, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1320, 1988, 12, 14728, 982, 262, 202, 95, 202, 202, 2116, 1114, 273, 394, 3756, 12, 982, 16, 348, 8588, 18, 8560, 11272, 202, 202, 2116, 1114, 18, 542, 1528, 12, ...
ShareNode shareNode = null; for (int i = 0; i < values.length; i++) { shareNode = (ShareNode) values[i]; shareNode.setPriority(prio); }
shareNeuLaden(false);
public void actionPerformed(ActionEvent ae) { prioritaetAufheben.setEnabled(false); prioritaetSetzen.setEnabled(false); neuLaden.setEnabled(false); new Thread() { public void run() { try { int prio = ( (Integer) cmbPrio.getSelectedItem()). intValue(); Object[] values = shareTable.getSelectedItems(); synchronized (values) { if (values == null) { return; } ShareNode shareNode = null; for (int i = 0; i < values.length; i++) { shareNode = (ShareNode) values[i]; shareNode.setPriority(prio); } } shareNeuLaden(false); } catch (Exception e) { if (logger.isEnabledFor(Level.ERROR)) { logger.error(ApplejuiceFassade.ERROR_MESSAGE, e); } } } } .start(); }
13641 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13641/a74ac9e93bc4c7fafade176216ac1c525f54d26f/SharePanel.java/clean/AJClientGUI/src/de/applejuicenet/client/gui/SharePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 288, 7734, 6432, 23338, 278, 37, 696, 580, 19425, 18, 542, 1526, 12, 5743, 1769, 7734, 6432, 23338, 278, 694, 8396, 18, 542, 1526, 12, 5743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 288, 7734, 6432, 23338, 278, 37, 696, 580, 19425, 18, 542, 1526, 12, 5743, 1769, 7734, 6432, 23338, 278, 694, 8396, 18, 542, 1526, 12, 5743, ...
copyBand(dstBI.getRaster(), i, wr, i);
copyBand(dstBI.getRaster(), i, wr00, i);
public WritableRaster copyData(WritableRaster wr) { // Get my source. CachableRed src = (CachableRed)getSources().get(0); ColorModel srcCM = src.getColorModel(); SampleModel srcSM = src.getSampleModel(); // Fast case, Linear SRGB source, INT Pack writable raster... if (srcIsLsRGB && is_INT_PACK_COMP(wr.getSampleModel())) { src.copyData(wr); if (srcCM.hasAlpha()) GraphicsUtil.coerceData(wr, srcCM, false); applyLut_INT(wr, linearToSRGBLut); return wr; } if (srcCM == null) { // We don't really know much about this source, let's // guess based on the number of bands... float [][] matrix = null; switch (srcSM.getNumBands()) { case 1: matrix = new float[1][3]; matrix[0][0] = 1; // Red matrix[0][1] = 1; // Grn matrix[0][2] = 1; // Blu break; case 2: matrix = new float[2][4]; matrix[0][0] = 1; // Red matrix[0][1] = 1; // Grn matrix[0][2] = 1; // Blu matrix[1][3] = 1; // Alpha break; case 3: matrix = new float[3][3]; matrix[0][0] = 1; // Red matrix[1][1] = 1; // Grn matrix[2][2] = 1; // Blu break; default: matrix = new float[srcSM.getNumBands()][4]; matrix[0][0] = 1; // Red matrix[1][1] = 1; // Grn matrix[2][2] = 1; // Blu matrix[3][3] = 1; // Alpha break; } Raster srcRas = src.getData(wr.getBounds()); BandCombineOp op = new BandCombineOp(matrix, null); op.filter(srcRas, wr); } else { Raster srcRas = src.getData(wr.getBounds()); WritableRaster srcWr = (WritableRaster)srcRas; ColorModel dstCM = getColorModel(); if (srcCM.getColorSpace() == dstCM.getColorSpace()) { // No transform needed, just reformat data... // System.out.println("Bypassing"); GraphicsUtil.copyData(srcRas, wr); return wr; } // Divide out alpha if we have it. We need to do this since // the color convert may not be a linear operation which may // lead to out of range values. ColorModel srcBICM = srcCM; if (srcCM.hasAlpha()) srcBICM = GraphicsUtil.coerceData(srcWr, srcCM, false); BufferedImage srcBI, dstBI; srcBI = new BufferedImage(srcBICM, srcWr.createWritableTranslatedChild(0,0), false, null); // System.out.println("src: " + srcBI.getWidth() + "x" + // srcBI.getHeight()); ColorConvertOp op = new ColorConvertOp(dstCM.getColorSpace(), null); dstBI = op.filter(srcBI, null); // System.out.println("After filter:"); for (int i=0; i<dstCM.getColorSpace().getNumComponents(); i++) copyBand(dstBI.getRaster(), i, wr, i); if (dstCM.hasAlpha()) copyBand(srcWr, srcSM.getNumBands()-1, wr, getSampleModel().getNumBands()-1); } return wr; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/ef30272cbd6a729caf334ec47f1216ba79f424af/Any2sRGBRed.java/buggy/sources/org/apache/batik/ext/awt/image/rendered/Any2sRGBRed.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 14505, 18637, 1610, 751, 12, 12061, 18637, 12408, 13, 288, 3639, 368, 968, 3399, 1084, 18, 3639, 23782, 429, 3715, 1705, 282, 273, 261, 11309, 429, 3715, 13, 588, 8628, 7675, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 14505, 18637, 1610, 751, 12, 12061, 18637, 12408, 13, 288, 3639, 368, 968, 3399, 1084, 18, 3639, 23782, 429, 3715, 1705, 282, 273, 261, 11309, 429, 3715, 13, 588, 8628, 7675, 588, 1...
getFiles();
try { getFiles(); } catch (PatternSyntaxException e) { return new String[] {}; }
public String[] getNames() { getFiles(); ArrayList allMatchedNames = new ArrayList(); for (Iterator iter = patterns.iterator(); iter.hasNext();) { GlobPattern pattern = (GlobPattern) iter.next(); allMatchedNames.addAll(pattern.getMatchedFiles()); } return (String[]) allMatchedNames.toArray(new String[allMatchedNames.size()]); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/3806033b2308724fa6c379c1105c8fdac0c16ec5/Glob.java/clean/src/org/jruby/util/Glob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8526, 336, 1557, 1435, 288, 3639, 18262, 5621, 9506, 202, 19558, 777, 15400, 1557, 273, 394, 2407, 5621, 202, 202, 1884, 261, 3198, 1400, 273, 6884, 18, 9838, 5621, 1400, 18, 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, 514, 8526, 336, 1557, 1435, 288, 3639, 18262, 5621, 9506, 202, 19558, 777, 15400, 1557, 273, 394, 2407, 5621, 202, 202, 1884, 261, 3198, 1400, 273, 6884, 18, 9838, 5621, 1400, 18, 5...
public abstract void focusPreviousComponent(Component a0);
public final void focusPreviousComponent() { focusPreviousComponent(getFocusOwner()); }
public abstract void focusPreviousComponent(Component a0);
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/1425cdab2b928b83518d614945421710648e8b73/KeyboardFocusManager.java/buggy/modules/awt/src/main/java/common/java/awt/KeyboardFocusManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 918, 7155, 8351, 1841, 12, 1841, 279, 20, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 918, 7155, 8351, 1841, 12, 1841, 279, 20, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public FilterBar(BrowserControl browser, MessageTree msgTree, Composite bar) {
public FilterBar(BrowserControl browser, MessageTree msgTree, Composite bar, PreviewControlListener lsnr) {
public FilterBar(BrowserControl browser, MessageTree msgTree, Composite bar) { _ctl = browser; _msgTree = msgTree; _filterRow = bar; _customDate = -1; initBar(); }
27487 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27487/00d9a13d65711641590ca9662fdc657e0dbf9e2a/MessageTree.java/clean/src/syndie/gui/MessageTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 4008, 5190, 12, 9132, 3367, 4748, 16, 2350, 2471, 1234, 2471, 16, 14728, 4653, 16, 22289, 3367, 2223, 7180, 11611, 13, 288, 5411, 389, 12930, 273, 4748, 31, 5411, 389, 3576, 2471, 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, 540, 1071, 4008, 5190, 12, 9132, 3367, 4748, 16, 2350, 2471, 1234, 2471, 16, 14728, 4653, 16, 22289, 3367, 2223, 7180, 11611, 13, 288, 5411, 389, 12930, 273, 4748, 31, 5411, 389, 3576, 2471, 2...
assertInterpreterResetFailedCount(0);
public void interpreterResetting() { assertInterpreterResetFailedCount(0); interpreterResettingCount++; }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/c9b6668252c82575b56cf423d4fca817498241b6/GlobalModelOtherTest.java/clean/drjava/src/edu/rice/cs/drjava/model/GlobalModelOtherTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 16048, 7013, 1787, 1435, 288, 5375, 16048, 7013, 1787, 1380, 9904, 31, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4202, 1071, 918, 16048, 7013, 1787, 1435, 288, 5375, 16048, 7013, 1787, 1380, 9904, 31, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
add(labAutoEject);
tempPanel.add(labAutoEject);
public CustomMechDialog(ClientGUI clientgui, Client client, Entity entity, boolean editable) { super(clientgui.frame, "Customize pilot/mech stats...", true); this.entity = entity; this.clientgui = clientgui; this.client = client; this.options = entity.getCrew().getOptions(); this.editable = editable; texDesc.setEditable(false); // layout GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gridbag); c.fill = GridBagConstraints.VERTICAL; c.insets = new Insets(5, 5, 5, 5); c.weightx = 1.0; c.weighty = 1.0; c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(labName, c); add(labName); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(fldName, c); add(fldName); c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(labGunnery, c); add(labGunnery); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(fldGunnery, c); add(fldGunnery); c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(labPiloting, c); add(labPiloting); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(fldPiloting, c); add(fldPiloting); if (entity instanceof Mech) { Mech mech = (Mech)entity; c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(labAutoEject, c); add(labAutoEject); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(chAutoEject, c); add(chAutoEject); chAutoEject.setState(!mech.isAutoEject()); } c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(labDeployment, c); add(labDeployment); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(choDeployment, c); add(choDeployment); refreshDeployment(); if ( clientgui.getClient().game.getOptions().booleanOption("pilot_advantages") ) { scrOptions.add(panOptions); c.weightx = 1.0; c.weighty = 1.0; c.fill = GridBagConstraints.BOTH; c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(scrOptions, c); add(scrOptions); c.weightx = 1.0; c.weighty = 0.0; gridbag.setConstraints(texDesc, c); add(texDesc); } if(entity.hasC3() || entity.hasC3i()) { c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(labC3, c); add(labC3); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(choC3, c); add(choC3); refreshC3(); } boolean eligibleForOffBoard = false; for (Enumeration i = entity.getWeapons(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement(); WeaponType wtype = (WeaponType)mounted.getType(); if (wtype.hasFlag(WeaponType.F_ARTILLERY)) { eligibleForOffBoard = true; } } if (eligibleForOffBoard) { c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(labOffBoard, c); add(labOffBoard); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(chOffBoard, c); add(chOffBoard); chOffBoard.setState(entity.isOffBoard()); c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(labOffBoardDirection, c); add(labOffBoardDirection); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(choOffBoardDirection, c); choOffBoardDirection.add("North"); choOffBoardDirection.add("South"); choOffBoardDirection.add("East"); choOffBoardDirection.add("West"); int direction = entity.getOffBoardDirection(); if ( Entity.NONE == direction ) { direction = Entity.NORTH; } choOffBoardDirection.select( direction ); add(choOffBoardDirection); c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(labOffBoardDistance, c); add(labOffBoardDistance); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(fldOffBoardDistance, c); fldOffBoardDistance.setText(Integer.toString(entity.getOffBoardDistance())); add(fldOffBoardDistance); } if ( entity instanceof Protomech ) { // All Protomechs have a callsign. StringBuffer callsign = new StringBuffer( "Callsign: " ); callsign.append( (char) (this.entity.getUnitNumber() + Settings.unitStartChar) ) .append( '-' ) .append( this.entity.getId() ); labCallsign.setText( callsign.toString() ); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.CENTER; gridbag.setConstraints(labCallsign, c); add(labCallsign); // Get the Protomechs of this entity's player // that *aren't* in the entity's unit. Enumeration otherUnitEntities = client.game.getSelectedEntities ( new EntitySelector() { private final int ownerId = CustomMechDialog.this.entity.getOwnerId(); private final char unitNumber = CustomMechDialog.this.entity.getUnitNumber(); public boolean accept( Entity entity ) { if ( entity instanceof Protomech && ownerId == entity.getOwnerId() && unitNumber != entity.getUnitNumber() ) return true; return false; } } ); // If we got any other entites, show the unit number controls. if ( otherUnitEntities.hasMoreElements() ) { c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(labUnitNum, c); add(labUnitNum); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(choUnitNum, c); add(choUnitNum); refreshUnitNum(otherUnitEntities); } } // Can't set up munitions on infantry. if ( !(entity instanceof Infantry) ) { setupMunitions(); c.anchor = GridBagConstraints.CENTER; gridbag.setConstraints(panMunitions, c); add(panMunitions); } // Set up rapidfire mg if (clientgui.getClient().game.getOptions().booleanOption("maxtech_burst")) { setupRapidfireMGs(); c.anchor = GridBagConstraints.CENTER; gridbag.setConstraints(panRapidfireMGs, c); add(panRapidfireMGs); } setupButtons(); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.CENTER; gridbag.setConstraints(panButtons, c); add(panButtons); fldName.setText(entity.getCrew().getName()); fldName.addActionListener(this); fldGunnery.setText(new Integer(entity.getCrew().getGunnery()).toString()); fldGunnery.addActionListener(this); fldPiloting.setText(new Integer(entity.getCrew().getPiloting()).toString()); fldPiloting.addActionListener(this); if (!editable) { fldName.setEnabled(false); fldGunnery.setEnabled(false); fldPiloting.setEnabled(false); choC3.setEnabled(false); choDeployment.setEnabled(false); disableMunitionEditing(); disableMGSetting(); chOffBoard.setEnabled(false); choOffBoardDirection.setEnabled(false); fldOffBoardDistance.setEnabled(false); } addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { setVisible(false); } }); pack(); setResizable(false); setLocation(clientgui.frame.getLocation().x + clientgui.frame.getSize().width/2 - getSize().width/2, clientgui.frame.getLocation().y + clientgui.frame.getSize().height/2 - getSize().height/2); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/5e5fe0197ce28f997d9afd2cb4c0c30c726d5126/CustomMechDialog.java/buggy/megamek/src/megamek/client/ui/AWT/CustomMechDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6082, 4667, 343, 6353, 12, 1227, 43, 5370, 1004, 20292, 16, 2445, 1004, 16, 3887, 1522, 16, 1250, 13754, 13, 288, 3639, 2240, 12, 2625, 20292, 18, 3789, 16, 315, 3802, 554, 293, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6082, 4667, 343, 6353, 12, 1227, 43, 5370, 1004, 20292, 16, 2445, 1004, 16, 3887, 1522, 16, 1250, 13754, 13, 288, 3639, 2240, 12, 2625, 20292, 18, 3789, 16, 315, 3802, 554, 293, 2...
int mergeFactor)
int mergeFactor, int maxFieldLength)
public IndexerConfiguration(String analyzerClassname, String indexDirectory, int mergeFactor) { this.analyzerClassname = analyzerClassname; this.indexDirectory = indexDirectory; this.mergeFactor = mergeFactor; }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/c5589feaa48f9edd55c1b0d93063e1892876331f/LuceneIndexTransformer.java/buggy/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/transformation/LuceneIndexTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 3340, 264, 1750, 12, 780, 15116, 20531, 16, 4766, 565, 514, 770, 2853, 16, 4766, 565, 509, 2691, 6837, 16, 509, 943, 974, 1782, 13, 540, 288, 5411, 333, 18, 13647, 20531, 273, 151...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3340, 264, 1750, 12, 780, 15116, 20531, 16, 4766, 565, 514, 770, 2853, 16, 4766, 565, 509, 2691, 6837, 16, 509, 943, 974, 1782, 13, 540, 288, 5411, 333, 18, 13647, 20531, 273, 151...
public PersistentConfig(){
public PersistentConfig() throws UnavailableServiceException {
public PersistentConfig(){ logger = Logger.getLogger("org.biojava.spice"); logger.finest("init PersistentConfig"); try { ps = (PersistenceService)ServiceManager.lookup("javax.jnlp.PersistenceService"); bs = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService"); } catch (UnavailableServiceException e) { e.printStackTrace(); ps = null; bs = null; } }
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/98c5846e9c5805f22f1423fe7fc8a4dfc5e4e37f/PersistentConfig.java/clean/src/org/biojava/spice/Config/PersistentConfig.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11049, 809, 1435, 95, 202, 202, 4901, 273, 4242, 18, 588, 3328, 2932, 3341, 18, 21010, 6290, 18, 28679, 8863, 202, 202, 4901, 18, 926, 395, 2932, 2738, 11049, 809, 8863, 202, 698, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11049, 809, 1435, 95, 202, 202, 4901, 273, 4242, 18, 588, 3328, 2932, 3341, 18, 21010, 6290, 18, 28679, 8863, 202, 202, 4901, 18, 926, 395, 2932, 2738, 11049, 809, 8863, 202, 698, ...
if (name == null || name.length() == 0) return;
if (name == null || name.length() == 0) { return; }
public void subTask(String name) { if (name == null || name.length() == 0) return; JobInfo info = getJobInfo(job); info.clearChildren(); info.addSubTask(name); refreshJobInfo(info); if (listener != null) listener.subTask(name); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 720, 2174, 12, 780, 508, 13, 288, 5411, 309, 261, 529, 422, 446, 747, 508, 18, 2469, 1435, 422, 374, 13, 7734, 327, 31, 5411, 3956, 966, 1123, 273, 13024, 966, 12, 4688, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 720, 2174, 12, 780, 508, 13, 288, 5411, 309, 261, 529, 422, 446, 747, 508, 18, 2469, 1435, 422, 374, 13, 7734, 327, 31, 5411, 3956, 966, 1123, 273, 13024, 966, 12, 4688, 17...
public TA_RetCode CDL3BLACKCROWS(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[]) {
public TA_RetCode CDL3BLACKCROWS( int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[] ) {
public TA_RetCode CDL3BLACKCROWS(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[]) { double[] ShadowVeryShortPeriodTotal = new double[3]; ; int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, lookbackTotal; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDL3BLACKCROWS_Lookback(); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } ShadowVeryShortPeriodTotal[2] = 0; ShadowVeryShortPeriodTotal[1] = 0; ShadowVeryShortPeriodTotal[0] = 0; ShadowVeryShortTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod); i = ShadowVeryShortTrailingIdx; while (i < startIdx) { ShadowVeryShortPeriodTotal[2] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0))); ShadowVeryShortPeriodTotal[1] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); ShadowVeryShortPeriodTotal[0] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))); i++; } i = startIdx; outIdx = 0; do { if ((inClose[i - 3] >= inOpen[i - 3] ? 1 : -1) == 1 && (inClose[i - 2] >= inOpen[i - 2] ? 1 : -1) == -1 && ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[2] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inClose[i - 1] >= inOpen[i - 1] ? 1 : -1) == -1 && ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inClose[i] >= inOpen[i] ? 1 : -1) == -1 && ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && inOpen[i - 1] < inOpen[i - 2] && inOpen[i - 1] > inClose[i - 2] && inOpen[i] < inOpen[i - 1] && inOpen[i] > inClose[i - 1] && inHigh[i - 3] > inClose[i - 2] && inClose[i - 2] > inClose[i - 1] && inClose[i - 1] > inClose[i]) outInteger[outIdx++] = -100; else outInteger[outIdx++] = 0; for (totIdx = 2; totIdx >= 0; --totIdx) ShadowVeryShortPeriodTotal[totIdx] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - totIdx] - inOpen[i - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - totIdx] - inLow[i - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - totIdx] - (inClose[i - totIdx] >= inOpen[i - totIdx] ? inClose[i - totIdx] : inOpen[i - totIdx])) + ((inClose[i - totIdx] >= inOpen[i - totIdx] ? inOpen[i - totIdx] : inClose[i - totIdx]) - inLow[i - totIdx]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[ShadowVeryShortTrailingIdx - totIdx] - inOpen[ShadowVeryShortTrailingIdx - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[ShadowVeryShortTrailingIdx - totIdx] - inLow[ShadowVeryShortTrailingIdx - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[ShadowVeryShortTrailingIdx - totIdx] - (inClose[ShadowVeryShortTrailingIdx - totIdx] >= inOpen[ShadowVeryShortTrailingIdx - totIdx] ? inClose[ShadowVeryShortTrailingIdx - totIdx] : inOpen[ShadowVeryShortTrailingIdx - totIdx])) + ((inClose[ShadowVeryShortTrailingIdx - totIdx] >= inOpen[ShadowVeryShortTrailingIdx - totIdx] ? inOpen[ShadowVeryShortTrailingIdx - totIdx] : inClose[ShadowVeryShortTrailingIdx - totIdx]) - inLow[ShadowVeryShortTrailingIdx - totIdx]) : 0))); i++; ShadowVeryShortTrailingIdx++; } while (i <= endIdx); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; }
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/5df8081f2a7211016256c0f481213a987e02947a/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 385, 8914, 23, 14618, 3649, 39, 28402, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 3678, 63, 6487, 1082, 202, 9056, 316, 8573, 63, 6487, 1645, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 399, 37, 67, 7055, 1085, 385, 8914, 23, 14618, 3649, 39, 28402, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 3678, 63, 6487, 1082, 202, 9056, 316, 8573, 63, 6487, 1645, ...
else addAll(thisBox); thisBox.addActionListener(this); thisBox.setSelectedItem(value); return thisBox; }
}
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { //use parameters to get information about the cell being edited refTable = table; JRowBox thisBox = new JRowBox(row); TableModel tModel = table.getModel(); //tagname of the node associated with this table String eleName = oNode.getDOMElement().getTagName(); //name of the attribute being edited String attrName = (String) tModel.getValueAt(row, 0); //get the sub-hashtable for the key associated with this tablepanel's //OMEXMLNode... check internal defs first, then external defs Hashtable subHash = (Hashtable) iDefs.get(eleName); if (subHash == null) subHash = (Hashtable) REF_HASH.get(eleName); if (subHash != null) { //get the string representation of the type this attribute should //refer to String type = (String) subHash.get(attrName); if (type != null) { //check the list of internal references for nodes of the //type that we just found for(int i = 0;i<idPanels.size();i++) { MetadataPane.TablePanel tp = (MetadataPane.TablePanel) idPanels.get(i); String tpClass = tp.oNode.getClass().getName(); boolean isCorrectType = tpClass.equals("org.openmicroscopy.xml.st." + type + "Node"); //if the node is of the right type, add it to the combobox if (isCorrectType) thisBox.addItem(tp.name); } //check the list of external references for references of //the appropriate type for(int i = 0;i<addPanels.size();i++) { String thisExID = (String) addPanels.get(i); if (thisExID.indexOf(":" + type + ":") >= 0) { //add this external reference to the combobox thisBox.addItem(thisExID); } } } //if no type is found for this attribute, add all internal/external //reference options to the combobox else addAll(thisBox); } //if no attributes are found for this element, add all references else addAll(thisBox); //listen to changes in this combobox thisBox.addActionListener(this); //set the initial item in the combobox based on the parameter "value" thisBox.setSelectedItem(value); return thisBox; }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/b42c864cb203850e496d6d8313f92675605092c6/VariableComboEditor.java/buggy/loci/ome/notebook/VariableComboEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5435, 5638, 4020, 6946, 1841, 12, 46, 1388, 1014, 16, 1033, 460, 16, 565, 1250, 20956, 16, 509, 1027, 16, 509, 1057, 13, 225, 288, 565, 368, 1202, 1472, 358, 336, 1779, 2973, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5435, 5638, 4020, 6946, 1841, 12, 46, 1388, 1014, 16, 1033, 460, 16, 565, 1250, 20956, 16, 509, 1027, 16, 509, 1057, 13, 225, 288, 565, 368, 1202, 1472, 358, 336, 1779, 2973, 326,...
parent.id() + ", is not structure nor value." );
parent.id() + ", is not structure nor value." );
public gnuDynValue(TypeCode oType, TypeCode aType, gnuDynAnyFactory aFactory, ORB anOrb ) { super(oType, aType, aFactory, anOrb); // Initialise fields. The array of fields also includes all inherited // fields. try { array = new DynAny[ final_type.member_count() ]; fNames = new String[ array.length ]; for (int i = 0; i < array.length; i++) { array [ i ] = factory.create_dyn_any_from_type_code(final_type.member_type(i)); fNames [ i ] = final_type.member_name(i); } // Search of inherited members. if (final_type.type_modifier() == VM_TRUNCATABLE.value) { TypeCode parent = final_type.concrete_base_type(); DynAny ancestor = factory.create_dyn_any_from_type_code(parent); if (ancestor instanceof DynValue) { // Add members of ancestor in front of the curren members. DynValue anc = (DynValue) ancestor; anc.set_to_value(); NameDynAnyPair[] aar = anc.get_members_as_dyn_any(); inheritFields(aar); } else if (ancestor instanceof DynStruct) { // Add members of ancestor in front of the curren members. DynStruct anc = (DynStruct) ancestor; NameDynAnyPair[] aar = anc.get_members_as_dyn_any(); inheritFields(aar); } else throw new BAD_PARAM("The parent of " + final_type.id() + ", " + parent.id() + ", is not structure nor value." ); } } catch (Exception e) { throw new Unexpected(e); } set_to_null(); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/d03b7ded9dacd5a74a8420d7dade451079b17d89/gnuDynValue.java/buggy/libraries/javalib/gnu/CORBA/DynAn/gnuDynValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 314, 13053, 10419, 620, 12, 15460, 320, 559, 16, 30332, 279, 559, 16, 314, 13053, 10419, 2961, 1733, 279, 1733, 16, 5397, 4869, 38, 392, 1162, 70, 10792, 262, 225, 288, 565, 2240, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 314, 13053, 10419, 620, 12, 15460, 320, 559, 16, 30332, 279, 559, 16, 314, 13053, 10419, 2961, 1733, 279, 1733, 16, 5397, 4869, 38, 392, 1162, 70, 10792, 262, 225, 288, 565, 2240, ...
for(String file: fileset(m_classFilesets)) {
for(String file : fileset(m_classFilesets)) {
public void execute() throws BuildException { validateOptions(); CommandlineJava cmd = getJavaCommand(); cmd.setClassname(m_mainClass); List<String> argv = new ArrayList<String>(); if (null != m_isJUnit) { if (m_isJUnit.booleanValue()) { argv.add(TestNGCommandLineArgs.JUNIT_DEF_OPT); } } if (null != m_verbose) { argv.add(TestNGCommandLineArgs.LOG); argv.add(m_verbose.toString()); } if (m_assertEnabled) { cmd.createVmArgument().setValue("-ea"); } if (m_useDefaultListeners != null) { boolean useDefaultListeners = "yes".equalsIgnoreCase(m_useDefaultListeners) || "true".equalsIgnoreCase(m_useDefaultListeners); argv.add(TestNGCommandLineArgs.USE_DEFAULT_LISTENERS); argv.add(Boolean.TRUE.toString()); } if((null != m_outputDir)) { if (! m_outputDir.exists()) { m_outputDir.mkdirs(); } if (m_outputDir.isDirectory()) { argv.add(TestNGCommandLineArgs.OUTDIR_COMMAND_OPT); argv.add(m_outputDir.getAbsolutePath()); } else { throw new BuildException("Output directory is not a directory: " + m_outputDir); } } if(null != m_target) { argv.add(TestNGCommandLineArgs.TARGET_COMMAND_OPT); argv.add(m_target); } if((null != m_testjar) && m_testjar.isFile()) { argv.add(TestNGCommandLineArgs.TESTJAR_COMMAND_OPT); argv.add(m_testjar.getAbsolutePath()); } if(null != m_sourceDirPath) { String srcPath = createPathString(m_sourceDirPath, ";"); argv.add(TestNGCommandLineArgs.SRC_COMMAND_OPT); argv.add(srcPath); } if(null != m_includedGroups&&!"".equals(m_includedGroups)) { argv.add(TestNGCommandLineArgs.GROUPS_COMMAND_OPT); argv.add(m_includedGroups); } if(null != m_excludedGroups&&!"".equals(m_excludedGroups)) { argv.add(TestNGCommandLineArgs.EXCLUDED_GROUPS_COMMAND_OPT); argv.add(m_excludedGroups); } if(m_classFilesets.size() > 0) { argv.add(TestNGCommandLineArgs.TESTCLASS_COMMAND_OPT); for(String file: fileset(m_classFilesets)) { argv.add(file); } } if (m_listeners != null) { for (String listener : m_listeners) { argv.add(TestNGCommandLineArgs.LISTENER_COMMAND_OPT); argv.add(listener); } } if (m_parallelMode != null) { argv.add(TestNGCommandLineArgs.PARALLEL_MODE); argv.add(m_parallelMode); } if (m_threadCount != null) { argv.add(TestNGCommandLineArgs.THREAD_COUNT); argv.add(m_threadCount); } if(m_xmlFilesets.size() > 0) { for(String file: fileset(m_xmlFilesets)) { argv.add(file); } } String fileName = ""; FileWriter fw = null; BufferedWriter bw = null; try { File f = File.createTempFile("testng", ""); fileName = f.getAbsolutePath(); // If the user asked to see the command, preserve the file if (! m_dump) f.deleteOnExit(); fw = new FileWriter(f); bw = new BufferedWriter(fw); for (String arg : argv) { bw.write(doubleQuote(arg)); bw.write(" "); } } catch (IOException e) { e.printStackTrace(); } finally { try { if (bw != null) bw.close(); if (fw != null) fw.close(); } catch (IOException e) { e.printStackTrace(); } } if(m_dump) { dumpCommand(fileName); } createClasspath().setLocation(findJar()); // TODO CQ why is this set here and elsewhere cmd.createVmArgument().setValue("-ea"); cmd.createArgument().setValue("@" + fileName); ExecuteWatchdog watchdog = createWatchdog(); boolean wasKilled = false; int exitValue = executeAsForked(cmd, watchdog); if(null != watchdog) { wasKilled = watchdog.killedProcess(); } actOnResult(exitValue, wasKilled); }
50502 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50502/75c0741cfb0fc75ef79c70ec78da0a1cd8144089/TestNGAntTask.java/buggy/src/main/org/testng/TestNGAntTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 1435, 1216, 18463, 288, 565, 1954, 1320, 5621, 3639, 3498, 1369, 5852, 1797, 273, 18911, 2189, 5621, 3639, 1797, 18, 542, 20531, 12, 81, 67, 5254, 797, 1769, 3639, 987, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 1435, 1216, 18463, 288, 565, 1954, 1320, 5621, 3639, 3498, 1369, 5852, 1797, 273, 18911, 2189, 5621, 3639, 1797, 18, 542, 20531, 12, 81, 67, 5254, 797, 1769, 3639, 987, 3...
resumeAction(myDebugProcess.createStepIntoCommand(suspendContext, ignoreFilters, targetMethodSignature), EVENT_STEP);
resumeAction(myDebugProcess.createStepIntoCommand(suspendContext, ignoreFilters, smartStepFilter), EVENT_STEP);
public void stepInto(final boolean ignoreFilters, final @Nullable String targetMethodSignature) { final SuspendContextImpl suspendContext = getSuspendContext(); mySteppingThroughThreads.add(suspendContext.getThread()); resumeAction(myDebugProcess.createStepIntoCommand(suspendContext, ignoreFilters, targetMethodSignature), EVENT_STEP); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2cac2d1be6f2e8dd50595a28fdeddadfaad2f415/DebuggerSession.java/buggy/debugger/impl/com/intellij/debugger/impl/DebuggerSession.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2235, 5952, 12, 6385, 1250, 2305, 5422, 16, 727, 632, 13349, 514, 1018, 1305, 5374, 13, 288, 565, 727, 348, 18815, 1042, 2828, 20413, 1042, 273, 1322, 18815, 1042, 5621, 565, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2235, 5952, 12, 6385, 1250, 2305, 5422, 16, 727, 632, 13349, 514, 1018, 1305, 5374, 13, 288, 565, 727, 348, 18815, 1042, 2828, 20413, 1042, 273, 1322, 18815, 1042, 5621, 565, 3...
reportSchemaError("src-redefine.5", null, child);
reportSchemaError("src-redefine.5.a.a", null, child);
private void renameRedefiningComponents(XSDocumentInfo currSchema, Element child, String componentType, String oldName, String newName) { if (componentType.equals(SchemaSymbols.ELT_SIMPLETYPE)) { Element grandKid = DOMUtil.getFirstChildElement(child); if (grandKid == null) { reportSchemaError("src-redefine.5", null, child); } else { String grandKidName = grandKid.getLocalName(); if (grandKidName.equals(SchemaSymbols.ELT_ANNOTATION)) { grandKid = DOMUtil.getNextSiblingElement(grandKid); grandKidName = grandKid.getLocalName(); } if (grandKid == null) { reportSchemaError("src-redefine.5", null, child); } else if (!grandKidName.equals(SchemaSymbols.ELT_RESTRICTION)) { reportSchemaError("src-redefine.5", null, child); } else { Object[] attrs = fAttributeChecker.checkAttributes(grandKid, false, currSchema); QName derivedBase = (QName)attrs[XSAttributeChecker.ATTIDX_BASE]; if (derivedBase == null || derivedBase.uri != currSchema.fTargetNamespace || !derivedBase.localpart.equals(oldName)) { reportSchemaError("src-redefine.5", null, child); } else { // now we have to do the renaming... if (derivedBase.prefix != null && derivedBase.prefix.length() > 0) grandKid.setAttribute( SchemaSymbols.ATT_BASE, derivedBase.prefix + ":" + newName ); else grandKid.setAttribute( SchemaSymbols.ATT_BASE, newName );// return true; } fAttributeChecker.returnAttrArray(attrs, currSchema); } } } else if (componentType.equals(SchemaSymbols.ELT_COMPLEXTYPE)) { Element grandKid = DOMUtil.getFirstChildElement(child); if (grandKid == null) { reportSchemaError("src-redefine.5", null, child); } else { if (grandKid.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) { grandKid = DOMUtil.getNextSiblingElement(grandKid); } if (grandKid == null) { reportSchemaError("src-redefine.5", null, child); } else { // have to go one more level down; let another pass worry whether complexType is valid. Element greatGrandKid = DOMUtil.getFirstChildElement(grandKid); if (greatGrandKid == null) { reportSchemaError("src-redefine.5", null, grandKid); } else { String greatGrandKidName = greatGrandKid.getLocalName(); if (greatGrandKidName.equals(SchemaSymbols.ELT_ANNOTATION)) { greatGrandKid = DOMUtil.getNextSiblingElement(greatGrandKid); greatGrandKidName = greatGrandKid.getLocalName(); } if (greatGrandKid == null) { reportSchemaError("src-redefine.5", null, grandKid); } else if (!greatGrandKidName.equals(SchemaSymbols.ELT_RESTRICTION) && !greatGrandKidName.equals(SchemaSymbols.ELT_EXTENSION)) { reportSchemaError("src-redefine.5", null, greatGrandKid); } else { Object[] attrs = fAttributeChecker.checkAttributes(greatGrandKid, false, currSchema); QName derivedBase = (QName)attrs[XSAttributeChecker.ATTIDX_BASE]; if (derivedBase == null || derivedBase.uri != currSchema.fTargetNamespace || !derivedBase.localpart.equals(oldName)) { reportSchemaError("src-redefine.5", null, greatGrandKid); } else { // now we have to do the renaming... if (derivedBase.prefix != null && derivedBase.prefix.length() > 0) greatGrandKid.setAttribute( SchemaSymbols.ATT_BASE, derivedBase.prefix + ":" + newName ); else greatGrandKid.setAttribute( SchemaSymbols.ATT_BASE, newName );// return true; } } } } } } else if (componentType.equals(SchemaSymbols.ELT_ATTRIBUTEGROUP)) { String processedBaseName = (currSchema.fTargetNamespace == null)? ","+oldName:currSchema.fTargetNamespace+","+oldName; int attGroupRefsCount = changeRedefineGroup(processedBaseName, componentType, newName, child, currSchema); if (attGroupRefsCount > 1) { reportSchemaError("src-redefine.7.1", new Object []{new Integer(attGroupRefsCount)}, child); } else if (attGroupRefsCount == 1) {// return true; } else if (currSchema.fTargetNamespace == null) fRedefinedRestrictedAttributeGroupRegistry.put(processedBaseName, ","+newName); else fRedefinedRestrictedAttributeGroupRegistry.put(processedBaseName, currSchema.fTargetNamespace+","+newName); } else if (componentType.equals(SchemaSymbols.ELT_GROUP)) { String processedBaseName = (currSchema.fTargetNamespace == null)? ","+oldName:currSchema.fTargetNamespace+","+oldName; int groupRefsCount = changeRedefineGroup(processedBaseName, componentType, newName, child, currSchema); if (groupRefsCount > 1) { reportSchemaError("src-redefine.6.1.1", new Object []{new Integer(groupRefsCount)}, child); } else if (groupRefsCount == 1) {// return true; } else { if (currSchema.fTargetNamespace == null) fRedefinedRestrictedGroupRegistry.put(processedBaseName, ","+newName); else fRedefinedRestrictedGroupRegistry.put(processedBaseName, currSchema.fTargetNamespace+","+newName); } } else { reportSchemaError("Internal-Error", new Object [] {"could not handle this particular <redefine>; please submit your schemas and instance document in a bug report!"}, child); } // if we get here then we must have reported an error and failed somewhere...// return false; } // renameRedefiningComponents(XSDocumentInfo, Element, String, String, String):void
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/08452497d5ddc107ce0c88dafa4af418a8162487/XSDHandler.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 6472, 426, 5649, 310, 7171, 12, 60, 55, 2519, 966, 4306, 3078, 16, 4766, 5411, 3010, 1151, 16, 514, 20065, 16, 4766, 5411, 514, 22916, 16, 514, 13253, 13, 288, 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, 3238, 918, 6472, 426, 5649, 310, 7171, 12, 60, 55, 2519, 966, 4306, 3078, 16, 4766, 5411, 3010, 1151, 16, 514, 20065, 16, 4766, 5411, 514, 22916, 16, 514, 13253, 13, 288, 3639, 309, 261...
return getToolkit().getFontMetrics(font);
if (peer == null) return getToolkit().getFontMetrics(font); return peer.getFontMetrics (font);
public FontMetrics getFontMetrics(Font font) { return getToolkit().getFontMetrics(font); }
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/708062224a502c41561e122dcde5accf23f77ad9/Component.java/clean/libjava/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 10063, 5653, 18776, 5653, 12, 5711, 3512, 13, 225, 288, 565, 309, 261, 12210, 422, 446, 13, 327, 336, 6364, 8691, 7675, 588, 5711, 5653, 12, 5776, 1769, 327, 4261, 18, 588, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 10063, 5653, 18776, 5653, 12, 5711, 3512, 13, 225, 288, 565, 309, 261, 12210, 422, 446, 13, 327, 336, 6364, 8691, 7675, 588, 5711, 5653, 12, 5776, 1769, 327, 4261, 18, 588, 5711, ...
retval+= (2 * Global.LONG_SIZE);
retval+=Global.BYTE_SIZE + (2 * Global.LONG_SIZE);
public long size() { // type (1 byte) + seqno (8 bytes) + presence (1 byte) int retval=Global.BYTE_SIZE + Global.LONG_SIZE + Global.BYTE_SIZE; if(range != null) retval+= (2 * Global.LONG_SIZE); // presence byte, plus 2 times 8 bytes for seqno if(sender != null) retval+=sender.size(); return retval; }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/28f01fc0170037f601fe603e7ed079bd58a428c2/NakAckHeader.java/buggy/src/org/jgroups/protocols/pbcast/NakAckHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 963, 1435, 288, 3639, 368, 618, 261, 21, 1160, 13, 397, 30734, 261, 28, 1731, 13, 397, 9805, 261, 21, 1160, 13, 3639, 509, 5221, 33, 5160, 18, 15377, 67, 4574, 397, 8510, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1525, 963, 1435, 288, 3639, 368, 618, 261, 21, 1160, 13, 397, 30734, 261, 28, 1731, 13, 397, 9805, 261, 21, 1160, 13, 3639, 509, 5221, 33, 5160, 18, 15377, 67, 4574, 397, 8510, ...
device.print("<button type=\"submit\" name=\"");
device.print("<button name=\"");
private void writeTreeNode(STree component, Device device, int row, int depth) throws IOException { boolean childSelectorWorkaround = !component.getSession().getUserAgent().supportsCssChildSelector(); final TreePath path = component.getPathForRow(row); final int nodeIndentDepth = component.getNodeIndentDepth(); final Object node = path.getLastPathComponent(); final STreeCellRenderer cellRenderer = component.getCellRenderer(); final boolean isLeaf = component.getModel().isLeaf(node); final boolean isExpanded = component.isExpanded(path); final boolean isSelected = component.isPathSelected(path); final boolean isSelectable = (component.getSelectionModel() != SDefaultTreeSelectionModel.NO_SELECTION_MODEL); SComponent cellComp = cellRenderer.getTreeCellRendererComponent(component, node, isSelected, isExpanded, isLeaf, row, false); device.write("<tr height=\"1\">".getBytes()); /* * fill the indented area. */ for (int i = ((component.isRootVisible()) ? 0 : 1); i < path.getPathCount() - 1; ++i) { device.write("<td indent=\"true\"".getBytes()); org.wings.plaf.Utils.optAttribute(device, "width", nodeIndentDepth); if (hashMark != null && !isLastChild(component.getModel(), path, i)) { device.write(" style=\"background-image:url(".getBytes()); org.wings.plaf.Utils.write(device, hashMark.getURL()); device.write(")\"".getBytes()); } if (childSelectorWorkaround) Utils.childSelectorWorkaround(device, "indent"); device.write(">".getBytes()); if (emptyFillIcon != null) { writeIcon(device, emptyFillIcon, nodeIndentDepth, 1); } else { for (int n = nodeIndentDepth; n > 0; --n) { device.write("&nbsp;".getBytes()); } } device.write("</td>".getBytes()); } /* * now, write the component. */ device.write("<td".getBytes()); org.wings.plaf.Utils.optAttribute(device, "colspan", depth - (path.getPathCount() - 1)); if (isSelected) { device.print(" selected=\"true\""); if (childSelectorWorkaround) Utils.childSelectorWorkaround(device, "selected"); } device.write(">".getBytes()); /* * in most applications, the is no need to render a control icon for a * leaf. So in that case, we can avoid writing the sourrounding * table, that will speed up things in browsers. */ final boolean renderControlIcon = !(isLeaf && leafControlIcon == null); if (renderControlIcon) { device.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>".getBytes()); if (isLeaf) { writeIcon(device, leafControlIcon, false); } else { if (component.getShowAsFormComponent()) { device.print("<button type=\"submit\" name=\""); org.wings.plaf.Utils.write(device, Utils.event(component)); device.print("\" value=\""); org.wings.plaf.Utils.write(device, component.getExpansionParameter(row, false)); device.print("\""); } else { RequestURL selectionAddr = component.getRequestURL(); selectionAddr.addParameter(org.wings.plaf.css.Utils.event(component), component.getExpansionParameter(row, false)); device.write("<a href=\"".getBytes()); org.wings.plaf.Utils.write(device, selectionAddr.toString()); device.write("\"".getBytes()); } device.print("\">"); if (isExpanded) { if (collapseControlIcon == null) { device.write("-".getBytes()); } else { writeIcon(device, collapseControlIcon, true); } } else { if (expandControlIcon == null) { device.write("+".getBytes()); } else { writeIcon(device, expandControlIcon, true); } } if (component.getShowAsFormComponent()) device.print("</button>"); else device.print("</a>"); } device.write("</td><td>".getBytes()); } SCellRendererPane rendererPane = component.getCellRendererPane(); if (isSelectable) { if (component.getShowAsFormComponent()) { device.print("<button type=\"submit\" name=\""); org.wings.plaf.Utils.write(device, Utils.event(component)); device.print("\" value=\""); org.wings.plaf.Utils.write(device, component.getSelectionParameter(row, false)); device.print("\""); } else { RequestURL selectionAddr = component.getRequestURL(); selectionAddr.addParameter(org.wings.plaf.css.Utils.event(component), component.getSelectionParameter(row, false)); device.write("<a href=\"".getBytes()); org.wings.plaf.Utils.write(device, selectionAddr.toString()); device.write("\"".getBytes()); } org.wings.plaf.Utils.optAttribute(device, "tabindex", component.getFocusTraversalIndex()); Utils.writeEvents(device, component); device.print(">"); rendererPane.writeComponent(device, cellComp, component); if (component.getShowAsFormComponent()) device.print("</button>"); else device.print("</a>"); } else { rendererPane.writeComponent(device, cellComp, component); } if (renderControlIcon) device.write("</td></tr></table>".getBytes()); device.write("</td><td width=\"100%\"></td></tr>\n".getBytes()); }
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/49177f429a4513c3098d45a9fe8be3cd90b51ffa/TreeCG.java/clean/wings2/src/java/org/wings/plaf/css/TreeCG.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 12513, 12, 882, 992, 1794, 16, 6077, 2346, 16, 509, 1027, 16, 509, 3598, 13, 5411, 1216, 1860, 288, 3639, 1250, 1151, 4320, 2421, 12716, 273, 401, 4652, 18, 588, 2157, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 12513, 12, 882, 992, 1794, 16, 6077, 2346, 16, 509, 1027, 16, 509, 3598, 13, 5411, 1216, 1860, 288, 3639, 1250, 1151, 4320, 2421, 12716, 273, 401, 4652, 18, 588, 2157, ...
if (name != null) getOut().print("<B>Name: </B>" + name + "<BR>"); if (type != null) getOut().print("<B>Type: </B>" + type + "<BR>"); if (desc != null) getOut().print("<B>Description: </B>" + desc + "<BR>");
if (name != null) getOut().print("<B>Name: </B>" + name + "<BR>"); if (type != null) getOut().print("<B>Type: </B>" + type + "<BR>"); if (desc != null) getOut().print("<B>Description: </B>" + desc + "<BR>");
void formatAttachmentBox(InternetHeaders headers, String type, String link_name, String link_url, String body, boolean all_headers_p) { String icon = "internal-gopher-binary"; // #### getOut().print("<CENTER>" + "<TABLE CELLPADDING=8 CELLSPACING=1 BORDER=1>" + "<TR><TD NOWRAP>");//#### Temporarily removed because the current renderer doesn't get it --Edwin if (icon != null) { getOut().print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>" + "<TR><TD NOWRAP VALIGN=CENTER>"); if (link_url != null) getOut().print("<A HREF=\"" + link_url + "\">"); getOut().print("<IMG SRC=\"" + icon + "\" BORDER=0 ALIGN=MIDDLE ALT=\"\">"); if (link_url != null) getOut().print("</A>"); getOut().print("</TD><TD VALIGN=CENTER>"); }//#### End of temporarily removed block --Edwin if (link_url != null) getOut().print("<A HREF=\"" + link_url + "\">"); getOut().print(link_name); if (link_url != null) getOut().print("</A>");//#### Temporarily removed because the current renderer doesn't get it --Edwin if (icon != null) getOut().print("</TD></TR></TABLE>");//#### End of temporarily removed block --Edwin getOut().print("</TD><TD>"); if (all_headers_p) { FullHeaderFormatter formatter = new FullHeaderFormatter(); StringBuffer output = new StringBuffer(200); formatter.formatHeaders(headers, output); getOut().print(output.toString()); } else { String cde[] = headers.getHeader("Content-Description"); String desc = (cde == null || cde.length == 0 ? null : cde[0]); String name = null; ByteBuf buf = new ByteBuf(50); String cdi[] = headers.getHeader("Content-Disposition"); String disp = (cdi == null || cdi.length == 0 ? null : cdi[0]);// #### if (disp != null) name = headers.getHeader("filename", "\n"); if (name == null) if ((type = headers.getHeader("Content-Type", "\n")) != null) name = headers.getHeader("name", "\n"); if (name == null) { String n[] = headers.getHeader("Content-Name"); if (n != null && n.length != 0) name = n[0]; }//#### Temporarily removed because the current renderer doesn't get it --Edwin// getOut().print("<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>");//// if (name != null)// getOut().print("<TR><TH VALIGN=BASELINE ALIGN=RIGHT NOWRAP>" +// "Name" + // #### l10n// ": </TH><TD>" +// name +// "</TD></TR>");//// if (type != null)// getOut().print("<TR><TH VALIGN=BASELINE ALIGN=RIGHT NOWRAP>" +// "Type" + // #### l10n// ": </TH><TD>" +// type +// "</TD></TR>");//// if (desc != null)// getOut().print("<TR><TH VALIGN=BASELINE ALIGN=RIGHT NOWRAP>" +// "Description" + // #### l10n// ": </TH><TD>" +// desc +// "</TD></TR>");//// getOut().print("</TABLE>");//#### End of temporarily removed block --Edwin//#### Temporarily inserted to get rendering working --Edwin if (name != null) getOut().print("<B>Name: </B>" + name + "<BR>"); if (type != null) getOut().print("<B>Type: </B>" + type + "<BR>"); if (desc != null) getOut().print("<B>Description: </B>" + desc + "<BR>");//#### End of temporarily inserted block --Edwin } if (body != null) {// getOut().print("<P><PRE>"); // #### quote HTML getOut().print(body);// getOut().print("</PRE>"); }// getOut().print("</TD></TR></TABLE></CENTER>"); }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/0cc63cb388a13f01532486f9d178811914e6d71b/MimeExternalObjectOperator.java/buggy/grendel/sources/grendel/mime/html/MimeExternalObjectOperator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 740, 6803, 3514, 12, 26562, 3121, 1607, 16, 514, 618, 16, 21821, 514, 1692, 67, 529, 16, 514, 1692, 67, 718, 16, 514, 1417, 16, 21821, 1250, 777, 67, 2485, 67, 84, 13, 288, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 740, 6803, 3514, 12, 26562, 3121, 1607, 16, 514, 618, 16, 21821, 514, 1692, 67, 529, 16, 514, 1692, 67, 718, 16, 514, 1417, 16, 21821, 1250, 777, 67, 2485, 67, 84, 13, 288, 565, ...
if (dialect.isMySQL()) {
if (dialect.isMySQL() || dialect.isDB2()) {
public void addConstraint(SqlQuery sqlQuery) { if (orderByExpr != null) { Dialect dialect = sqlQuery.getDialect(); if (dialect.isMySQL()) { String alias = sqlQuery.nextColumnAlias(); alias = dialect.quoteIdentifier(alias); sqlQuery.addSelect(orderByExpr, alias); sqlQuery.addOrderBy(alias, ascending, true); } else { sqlQuery.addOrderBy(orderByExpr, ascending, true); } } super.addConstraint(sqlQuery); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/01325a62199c10badba0872dc7eeecfc9466f208/RolapNativeTopCount.java/clean/src/main/mondrian/rolap/RolapNativeTopCount.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 527, 5806, 12, 5101, 1138, 24451, 13, 288, 5411, 309, 261, 26323, 4742, 480, 446, 13, 288, 7734, 27420, 10864, 273, 24451, 18, 588, 23030, 5621, 7734, 309, 261, 25909, 386, 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, 540, 1071, 918, 527, 5806, 12, 5101, 1138, 24451, 13, 288, 5411, 309, 261, 26323, 4742, 480, 446, 13, 288, 7734, 27420, 10864, 273, 24451, 18, 588, 23030, 5621, 7734, 309, 261, 25909, 386, 18,...
Token xsp; xsp = jj_scanpos; if (jj_scan_token(50)) { jj_scanpos = xsp; if (jj_scan_token(51)) { jj_scanpos = xsp; if (jj_scan_token(7)) return true; } } return false; }
if (jj_scan_token(METHOD_NATIVE)) return true; return false; }
static final private boolean jj_3R_73() { Token xsp; xsp = jj_scanpos; if (jj_scan_token(50)) { jj_scanpos = xsp; if (jj_scan_token(51)) { jj_scanpos = xsp; if (jj_scan_token(7)) return true; } } return false; }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/3cbef97c5dee07422d7e9cdf6b2f9304448a9eee/ExpressionParser.java/clean/aspectwerkz3/src/main/org/codehaus/aspectwerkz/expression/ast/ExpressionParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 9036, 1435, 288, 3639, 3155, 619, 1752, 31, 3639, 619, 1752, 273, 10684, 67, 9871, 917, 31, 3639, 309, 261, 78, 78, 67, 9871, 67, 2316, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 9036, 1435, 288, 3639, 3155, 619, 1752, 31, 3639, 619, 1752, 273, 10684, 67, 9871, 917, 31, 3639, 309, 261, 78, 78, 67, 9871, 67, 2316, 12...
new TreePath(p.getPath()));
new TreePath(getPathToRoot(p, 0)));
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { DefaultMutableTreeNode next = (DefaultMutableTreeNode) BasicTreeUI.this.getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(next.getPath()); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { DefaultMutableTreeNode prev = (DefaultMutableTreeNode) BasicTreeUI.this.getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(prev.getPath()); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(prev.getPath())); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(last.getPath()); DefaultMutableTreeNode p = (DefaultMutableTreeNode) last .getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(p.getPath())); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(last.getPath()); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { DefaultMutableTreeNode next = (DefaultMutableTreeNode) BasicTreeUI.this.getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(next.getPath())); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(last.getPath()); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 498, 24624, 12, 653, 1133, 425, 13, 202, 202, 95, 540, 4902, 743, 787, 273, 7651, 2471, 5370, 18, 2211, 18, 3413, 18, 588, 9678, 6233, 743, 5621, 540, 2989, 19536, 12513...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 498, 24624, 12, 653, 1133, 425, 13, 202, 202, 95, 540, 4902, 743, 787, 273, 7651, 2471, 5370, 18, 2211, 18, 3413, 18, 588, 9678, 6233, 743, 5621, 540, 2989, 19536, 12513...
if (!(element instanceof ITypeInfo)) return false; ITypeInfo info = (ITypeInfo) element; IQualifiedTypeName qualifiedName = info.getQualifiedTypeName(); if (fVisibleTypes != null && !fVisibleTypes.contains(new Integer(info.getCElementType()))) return false; if (!fShowLowLevelTypes && qualifiedName.isLowLevel()) return false; if (fSegmentMatchers.length == 1 && !fMatchGlobalNamespace) return fNameMatcher.match(qualifiedName.getName()); return matchQualifiedName(info);
return false;
public boolean match(Object element) { if (!(element instanceof ITypeInfo)) return false; ITypeInfo info = (ITypeInfo) element; IQualifiedTypeName qualifiedName = info.getQualifiedTypeName(); if (fVisibleTypes != null && !fVisibleTypes.contains(new Integer(info.getCElementType()))) return false; if (!fShowLowLevelTypes && qualifiedName.isLowLevel()) return false; if (fSegmentMatchers.length == 1 && !fMatchGlobalNamespace) return fNameMatcher.match(qualifiedName.getName()); return matchQualifiedName(info); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/c394f40e489dd37280520439c09530c1c4a9e61f/TypeSelectionDialog.java/buggy/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/ui/browser/typeinfo/TypeSelectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 845, 12, 921, 930, 13, 288, 1082, 202, 430, 16051, 12, 2956, 1276, 467, 17305, 3719, 9506, 202, 2463, 629, 31, 1082, 202, 45, 17305, 1123, 273, 261, 45, 17305, 13, 930,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 845, 12, 921, 930, 13, 288, 1082, 202, 430, 16051, 12, 2956, 1276, 467, 17305, 3719, 9506, 202, 2463, 629, 31, 1082, 202, 45, 17305, 1123, 273, 261, 45, 17305, 13, 930,...
return "DataSet";
return ReportDesignConstants.DATA_SET_ELEMENT;
public static String getMethodArgumentType( DesignElementHandle handle, String methodName, int argIndex ) { if ( handle instanceof DataSetHandle ) return "DataSet"; if ( handle instanceof DataSourceHandle ) return "DataSource"; List methods = handle.getDefn( ).getLocalMethods( ); for ( Iterator iter = methods.iterator( ); iter.hasNext( ); ) { IMethodInfo method = ( (ElementPropertyDefn) iter.next( ) ) .getMethodInfo( ); if ( method.getName( ).equals( methodName ) ) { Iterator argumentListIterator = method.argumentListIterator( ); if ( argumentListIterator.hasNext( ) ) { IArgumentInfoList argumentInfoList = (IArgumentInfoList) argumentListIterator .next( ); int i = 0; for ( Iterator iterator = argumentInfoList .argumentsIterator( ); iterator.hasNext( ); i++ ) { Object arg = iterator.next( ); if ( argIndex == i ) { return ( (IArgumentInfo) arg ).getType( ); } } } return null; } } return null; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/93200c83d2e5eca93ae4f4a9f218078352c7ea69/DEUtil.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 6272, 1379, 559, 12, 29703, 1046, 3259, 1640, 16, 1082, 202, 780, 4918, 16, 509, 1501, 1016, 262, 202, 95, 202, 202, 430, 261, 1640, 1276, 14065, 3259, 262, 1082, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 6272, 1379, 559, 12, 29703, 1046, 3259, 1640, 16, 1082, 202, 780, 4918, 16, 509, 1501, 1016, 262, 202, 95, 202, 202, 430, 261, 1640, 1276, 14065, 3259, 262, 1082, 20...
}
}
public void mouseEntered(MouseEvent e) { }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/b5dc7d13b99a7a38104a2c98155f9f4f33a7f679/NoUpdatesDialog.java/buggy/source/com/intellij/openapi/updateSettings/impl/NoUpdatesDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 7644, 10237, 329, 12, 9186, 1133, 425, 13, 288, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 7644, 10237, 329, 12, 9186, 1133, 425, 13, 288, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Table T = new Table(); T.setRowVerticalAlignment(1, "top"); T.setCellpadding(padding); T.setCellspacing(spacing); T.setVerticalZebraColored("#942829", "#21304a"); T.setBorder(border);
int b = 1, f = 1;
private PresentationObject getApartments()throws FinderException,RemoteException { int border = 0; int padding = 6; int spacing = 1; Collection complexes =service.getComplexHome().findAll(); int b = 1, f = 1; Table T = new Table(); T.setRowVerticalAlignment(1, "top"); T.setCellpadding(padding); T.setCellspacing(spacing); T.setVerticalZebraColored("#942829", "#21304a"); T.setBorder(border); int i =1; for (Iterator iter = complexes.iterator(); iter.hasNext();) { Complex complex = (Complex) iter.next(); T.add(getHeaderText(complex.getName()), i , 1); Collection buildings =service.getBuildingHome().findByComplex((Integer)complex.getPrimaryKey()); Table BuildingTable = new Table(); BuildingTable.setCellpadding(padding); BuildingTable.setCellspacing(spacing); BuildingTable.setBorder(border); T.add(BuildingTable, i , 2); b = 1; for (Iterator iter2 = buildings.iterator(); iter2.hasNext();) { Building building = (Building) iter2.next(); BuildingTable.add(getHeaderText(building.getName()), 1, b++); Collection floors = service.getFloorHome().findByBuilding((Integer)building.getPrimaryKey()); Table FloorTable = new Table(); FloorTable.setCellpadding(padding); FloorTable.setCellspacing(spacing); FloorTable.setBorder(border); BuildingTable.add(FloorTable, 1, b++); f = 1; for (Iterator iter3 = floors.iterator(); iter3.hasNext();) { Floor floor = (Floor) iter3.next(); FloorTable.add(getHeaderText(floor.getName()), 1, f++); Collection apartments =service.getApartmentHome().findByFloor((Integer)floor.getPrimaryKey()); if (apartments!=null && !apartments.isEmpty() ) { Table ApartmentTable = new Table(); ApartmentTable.setCellpadding(padding); ApartmentTable.setBorder(border); ApartmentTable.setCellspacing(spacing); FloorTable.add(ApartmentTable, 1, f++); int l =1; for (Iterator iter4 = apartments.iterator(); iter4.hasNext();) { Apartment apartment = (Apartment) iter4.next(); ApartmentTable.add(getApLink(apartment.getPrimaryKey().toString(), apartment.getName()), 1, l++); } } } } } T.setRowVerticalAlignment(2, "top"); T.setVerticalZebraColored("#942829", "#21304a"); return T; }
57352 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57352/f4ed842fa82d9ac1ea871a201abfe3132c20e560/BuildingEditor.java/buggy/src/java/com/idega/block/building/presentation/BuildingEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 25130, 367, 921, 336, 1294, 485, 1346, 1435, 15069, 19307, 503, 16, 5169, 503, 288, 202, 202, 474, 5795, 273, 374, 31, 202, 202, 474, 4992, 273, 1666, 31, 202, 202, 474, 1325...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 25130, 367, 921, 336, 1294, 485, 1346, 1435, 15069, 19307, 503, 16, 5169, 503, 288, 202, 202, 474, 5795, 273, 374, 31, 202, 202, 474, 4992, 273, 1666, 31, 202, 202, 474, 1325...
(output.getNode(), output.getName(), output.getRef(), pout);
(output.getNode(), nm, ref, pout);
public static PipelineConfig createConfigFromAST(ASTPipeline astPipeline) { // Perform sanity check on the connection in the pipeline astPipeline.getIdInfo(); // Context used by pipeline factories (do not need to be the request context) PipelineContext context = new PipelineContext(); // Create new configuration object PipelineConfig config = new PipelineConfig(); PipelineBlock block = new PipelineBlock(); // Create socket info for each param for (Iterator i = astPipeline.getParams().iterator(); i.hasNext();) { ASTParam param = (ASTParam) i.next(); // Create internal top output/bottom input for this param if (param.getType() == ASTParam.INPUT) { InternalTopOutput internalTopOutput = new InternalTopOutput(param.getName(), param.getLocationData()); block.declareOutput(param.getNode(), param.getName(), internalTopOutput); config.declareTopOutput(param.getName(), internalTopOutput); setDebugAndSchema(internalTopOutput, param); } else { ProcessorInput internalBottomInput = new InternalBottomInput(param.getName()); block.declareBottomInput(param.getNode(), param.getName(), internalBottomInput); config.declareBottomInput(param.getName(), internalBottomInput); setDebugAndSchema(internalBottomInput, param); } // Create socket // FIXME: when we implement the full delegation model, we'll have // here to create of pass the input/output information. } // Internally connect all processors / choose / for-each for (Iterator i = astPipeline.getStatements().iterator(); i.hasNext();) { Object statement = i.next(); Processor processor = null; boolean foundOutput = false; if (statement instanceof ASTProcessorCall) { ASTProcessorCall processorCall = (ASTProcessorCall) statement; LocationData processorLocationData = processorCall.getLocationData(); if (processorCall.getEncapsulation() == null) { // Direct call if (processorCall.getProcessor() == null) { ProcessorFactory processorFactory = ProcessorFactoryRegistry.lookup(processorCall.getName()); if (processorFactory == null) processorFactory = ProcessorFactoryRegistry.lookup(processorCall.getURI()); if (processorFactory == null) { throw new ValidationException("Cannot find processor factory with name \"" + (processorCall.getName() != null ? Dom4jUtils.qNameToexplodedQName(processorCall.getName()) : processorCall.getURI()) + "\"", processorLocationData); } processor = processorFactory.createInstance(context); } else { processor = processorCall.getProcessor(); } } else if ("ejb".equals(processorCall.getEncapsulation())) { // Call through EJB proxy ProxyProcessor proxyProcessor = new ProxyProcessor(); proxyProcessor.setJNDIName(processorCall.getURI()); proxyProcessor.setInputs(processorCall.getInputs()); proxyProcessor.setOutputs(processorCall.getOutputs()); processor = proxyProcessor.createInstance(context); } // Set info on processor processor.setId(processorCall.getId()); processor.setLocationData(processorLocationData); // Process outputs for (Iterator j = processorCall.getOutputs().iterator(); j.hasNext();) { foundOutput = true; ASTOutput output = (ASTOutput) j.next(); if (output.getName() == null) throw new OXFException("Name attribute is mandatory on output"); if (output.getId() == null && output.getRef() == null) throw new OXFException("Either one of id or ref must be specified on output " + output.getName()); ProcessorOutput pout = processor.createOutput(output.getName()); if (output.getId() != null) block.declareOutput(output.getNode(), output.getId(), pout); if (output.getRef() != null) block.connectProcessorToBottomInput (output.getNode(), output.getName(), output.getRef(), pout); setDebugAndSchema(pout, output); setBreakpointKey(pout, output); } // Make sure at least one of the outputs is connected if (!foundOutput && processor.getOutputsInfo().size() > 0) throw new ValidationException("The processor output must be connected", processorLocationData); // Process inputs for (Iterator j = processorCall.getInputs().iterator(); j.hasNext();) { ASTInput input = (ASTInput) j.next(); ProcessorInput pin; LocationData locationData = input.getLocationData(); if (input.getHref() != null) { // We reference a URI pin = block.connectProcessorToHref(input.getNode(), processor, input.getName(), input.getHref()); } else { // We have some inline XML in the <input> tag Node inlineNode = input.getContent(); final Document doc; final int ndTyp = inlineNode.getNodeType(); if (ndTyp == Node.ELEMENT_NODE) { final Element elt = (Element) inlineNode; doc = Dom4jUtils.createDocumentCopyParentNamespaces(elt); } else if (ndTyp == Node.DOCUMENT_NODE) { doc = (Document) inlineNode; } else { throw new OXFException("Invalid type for inline document: " + inlineNode.getClass().getName()); } // Create generator for the static text final Object v = astPipeline.getValidity(); final LocationData ld = astPipeline.getLocationData(); String sid = ld == null ? DOMGenerator.DefaultContext : ld.getSystemID(); if (sid == null) sid = DOMGenerator.DefaultContext; final DOMGenerator docPrcssr = PipelineUtils.createDOMGenerator(doc, "inline config", v, sid); ProcessorOutput pout = docPrcssr.createOutput(OUTPUT_DATA); pin = processor.createInput(input.getName()); // NOTE: We should have a customizable mechanism to do this final String jndiName = "oxf/processor/xslt-2.0"; // Experimental, doesn't work yet within XSLT configs! // To solve this, maybe a flag specifying that we are // using a template should be explicitly specified on // the input? if (false && XPathUtils.selectBooleanValue(doc, "/*/@*[local-name() = 'version' and namespace-uri() = 'http://www.w3.org/1999/XSL/Transform'] = '2.0'").booleanValue()) { // It is embedded XSLT 2.0: connect through XSLT transformer ProcessorFactory processorFactory = ProcessorFactoryRegistry.lookup(jndiName); if (processorFactory == null) { throw new ValidationException("Cannot find processor factory with JNDI name \"" + processorCall.getURI() + "\"", locationData); } Processor templateProcessor = processorFactory.createInstance(context); // Set info on processor //processor.setId(processorCall.getId()); // what id, if any? templateProcessor.setLocationData(locationData); // Connect config input ProcessorInput configInput = templateProcessor.createInput(INPUT_CONFIG); pout.setInput(configInput); configInput.setOutput(pout); // Connect data input (for now, a null document) ProcessorInput dataInput = templateProcessor.createInput(INPUT_DATA); DOMGenerator nullGenerator = PipelineUtils.createDOMGenerator (Dom4jUtils.NULL_DOCUMENT, "null input", DOMGenerator.ZeroValidity , DOMGenerator.DefaultContext); ProcessorOutput nullGeneratorOutput = nullGenerator.createOutput(OUTPUT_DATA); nullGeneratorOutput.setInput(dataInput); dataInput.setOutput(nullGeneratorOutput); // Connect data output ProcessorOutput templateProcessorOutput = templateProcessor.createOutput(OUTPUT_DATA); templateProcessorOutput.setInput(pin); pin.setOutput(templateProcessorOutput); } else { // It is regular static text: connect directly pout.setInput(pin); pin.setOutput(pout); } } setDebugAndSchema(pin, input); setBreakpointKey(pin, input); } } else if (statement instanceof ASTChoose) { // Instantiate processor ASTChoose choose = (ASTChoose) statement; AbstractProcessor chooseAbstractProcessor = new AbstractChooseProcessor(choose, astPipeline.getValidity()); ConcreteChooseProcessor chooseProcessor = (ConcreteChooseProcessor) chooseAbstractProcessor.createInstance(context); processor = chooseProcessor; // Connect special $data input (document on which the decision is made, or iterated on) ProcessorInput pin = block.connectProcessorToHref(choose.getNode(), processor, AbstractChooseProcessor.CHOOSE_DATA_INPUT, choose.getHref()); setDebugAndSchema(pin, (ASTDebugSchema) statement); // Go through inputs/outputs and connect to the rest of the pipeline for (Iterator j = processor.getInputsInfo().iterator(); j.hasNext();) { // We reference a previously declared output String inputName = ((ProcessorInputOutputInfo) j.next()).getName(); if (!inputName.equals(AbstractChooseProcessor.CHOOSE_DATA_INPUT)) { ASTHrefId hrefId = new ASTHrefId(); hrefId.setId(inputName); block.connectProcessorToHref(choose.getNode(), processor, inputName, hrefId); } } for (Iterator j = processor.getOutputsInfo().iterator(); j.hasNext();) { String outputName = ((ProcessorInputOutputInfo) j.next()).getName(); foundOutput = true; ProcessorOutput pout = processor.createOutput(outputName); if (chooseProcessor.getOutputsById().contains(outputName)) block.declareOutput(choose.getNode(), outputName, pout); if (chooseProcessor.getOutputsByParamRef().contains(outputName)) block.connectProcessorToBottomInput(choose.getNode(), outputName, outputName, pout); } } else if (statement instanceof ASTForEach) { // Instantiate processor ASTForEach forEach = (ASTForEach) statement; LocationData forEachLocationData = forEach.getLocationData(); AbstractProcessor forEachAbstractProcessor = new ForEachProcessor(forEach, astPipeline.getValidity()); ForEachProcessor.ConcreteForEachProcessor forEachProcessor = (ForEachProcessor.ConcreteForEachProcessor) forEachAbstractProcessor.createInstance(context); processor = forEachProcessor; // Connect special $data input (document on which the decision is made, or iterated on) ProcessorInput pin = block.connectProcessorToHref(forEach.getNode(), processor, ForEachProcessor.FOR_EACH_DATA_INPUT, forEach.getHref()); setDebugAndSchema(pin, forEachLocationData, forEach.getInputSchemaUri(), forEach.getInputSchemaHref(), forEach.getInputDebug()); // Go through inputs and connect to the rest of the pipeline for (Iterator j = processor.getInputsInfo().iterator(); j.hasNext();) { // We reference a previously declared output String inputName = ((ProcessorInputOutputInfo) j.next()).getName(); if (!inputName.equals(ForEachProcessor.FOR_EACH_DATA_INPUT)) { ASTHrefId hrefId = new ASTHrefId(); hrefId.setId(inputName); block.connectProcessorToHref(forEach.getNode(), processor, inputName, hrefId); } } // Connect output String outputName = forEach.getId() != null ? forEach.getId() : forEach.getRef(); if (outputName != null) { foundOutput = true; ProcessorOutput forEachOutput = processor.createOutput(outputName); if (forEach.getId() != null) block.declareOutput(forEach.getNode(), forEach.getId(), forEachOutput); if (forEach.getRef() != null) block.connectProcessorToBottomInput(forEach.getNode(), forEach.getId(), forEach.getRef(), forEachOutput); setDebugAndSchema(processor.getOutputByName(outputName), forEachLocationData, forEach.getOutputSchemaUri(), forEach.getOutputSchemaHref(), forEach.getOutputDebug()); } } // Remember all processors and processor with no output (need to be started) if (processor != null) { config.addProcessor(processor); if (!foundOutput) { config.addProcessorToStart(processor); } } } // Check that all bottom inputs are connected for (Iterator i = astPipeline.getParams().iterator(); i.hasNext();) { ASTParam param = (ASTParam) i.next(); if (param.getType() == ASTParam.OUTPUT) { if (!block.isBottomInputConnected(param.getName())) throw new ValidationException("No processor in pipeline is connected to pipeline output '" + param.getName() + "'", param.getLocationData()); } } // Add processors created for connection reasons for (Iterator i = block.getCreatedProcessors().iterator(); i.hasNext();) config.addProcessor((Processor) i.next()); return config; }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/6b4b361feafd9be4049967a68baafe8ef9895c69/PipelineProcessor.java/buggy/src/java/org/orbeon/oxf/processor/pipeline/PipelineProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 13671, 809, 752, 23852, 9053, 12, 9053, 8798, 3364, 8798, 13, 288, 3639, 368, 11217, 16267, 866, 603, 326, 1459, 316, 326, 5873, 3639, 3364, 8798, 18, 26321, 966, 5621, 3639, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 13671, 809, 752, 23852, 9053, 12, 9053, 8798, 3364, 8798, 13, 288, 3639, 368, 11217, 16267, 866, 603, 326, 1459, 316, 326, 5873, 3639, 3364, 8798, 18, 26321, 966, 5621, 3639, 3...
public org.quickfix.field.EncodedSubject getEncodedSubject() throws FieldNotFound { org.quickfix.field.EncodedSubject value = new org.quickfix.field.EncodedSubject();
public quickfix.field.EncodedSubject getEncodedSubject() throws FieldNotFound { quickfix.field.EncodedSubject value = new quickfix.field.EncodedSubject();
public org.quickfix.field.EncodedSubject getEncodedSubject() throws FieldNotFound { org.quickfix.field.EncodedSubject value = new org.quickfix.field.EncodedSubject(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Email.java/clean/src/java/src/quickfix/fix43/Email.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 6638, 28799, 6638, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 6638, 460, 273, 394, 2358, 18, 19525, 904,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 6638, 28799, 6638, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 6638, 460, 273, 394, 2358, 18, 19525, 904,...
return ((RubyString) l2Conv).getValue();
return ((RubyString) l2Conv).toString();
private static String convert2String(IRubyObject l2Conv) { IRuby runtime = l2Conv.getRuntime(); if (l2Conv.getMetaClass() != runtime.getClass("String")) { l2Conv = l2Conv.convertToType("String", "to_s", true); //we may need a false here, not sure } return ((RubyString) l2Conv).getValue(); }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/9f2efc63a858fa0507245b207025eab027840a04/Pack.java/clean/src/org/jruby/util/Pack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 1765, 22, 780, 12, 7937, 10340, 921, 328, 22, 17467, 13, 288, 3639, 15908, 10340, 3099, 273, 328, 22, 17467, 18, 588, 5576, 5621, 3639, 309, 261, 80, 22, 17467, 18, 588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 1765, 22, 780, 12, 7937, 10340, 921, 328, 22, 17467, 13, 288, 3639, 15908, 10340, 3099, 273, 328, 22, 17467, 18, 588, 5576, 5621, 3639, 309, 261, 80, 22, 17467, 18, 588,...
if (mProvider != null) { ChannelGroup group = channel.getGroup(); if (group != null) { if (!isProviderOfGroup(group, mProvider)) { return false; } }else{
if (mProviderName != null) { if (!getProviderName(channel).equals(mProviderName)) {
public boolean accept(Channel channel) { if (mTimezone != null) { if (channel.getTimeZone().getRawOffset() != mTimezone.getRawOffset()) { return false; } } if (mCountry != null) { String country = channel.getCountry(); if (country!=null) { if (!country.equals(mCountry)) { return false; } } else { return false; } } if (mProvider != null) { ChannelGroup group = channel.getGroup(); if (group != null) { if (!isProviderOfGroup(group, mProvider)) { return false; } }else{ return false; } } if (mCategories > 0) { if ((channel.getCategories() & mCategories) == 0) { return false; } } return true; }
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/e9e329db9bc75dc136b5e76265814161aae1f3ab/ChannelsSettingsTab.java/clean/tvbrowser/src/tvbrowser/ui/settings/ChannelsSettingsTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2791, 12, 2909, 1904, 13, 288, 1377, 309, 261, 81, 17989, 480, 446, 13, 288, 3639, 309, 261, 4327, 18, 588, 16760, 7675, 588, 4809, 2335, 1435, 480, 312, 17989, 18, 588, 480...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2791, 12, 2909, 1904, 13, 288, 1377, 309, 261, 81, 17989, 480, 446, 13, 288, 3639, 309, 261, 4327, 18, 588, 16760, 7675, 588, 4809, 2335, 1435, 480, 312, 17989, 18, 588, 480...
throw new EvaluatorException(message);
throw new EvaluatorException(message, sourceName, lineno, lineSource, lineOffset);
public static void reportError(String message, String sourceName, int lineno, String lineSource, int lineOffset) { Context cx = getCurrentContext(); if (cx != null) { cx.errorCount++; cx.getErrorReporter().error(message, sourceName, lineno, lineSource, lineOffset); } else { throw new EvaluatorException(message); } }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/965090841fd2987f6eeb940daa588522a6e3b6ff/Context.java/clean/js/rhino/src/org/mozilla/javascript/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 17887, 12, 780, 883, 16, 514, 28337, 16, 4766, 282, 509, 7586, 16, 514, 980, 1830, 16, 4766, 282, 509, 980, 2335, 13, 565, 288, 3639, 1772, 9494, 273, 5175, 1042, 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, 760, 918, 17887, 12, 780, 883, 16, 514, 28337, 16, 4766, 282, 509, 7586, 16, 514, 980, 1830, 16, 4766, 282, 509, 980, 2335, 13, 565, 288, 3639, 1772, 9494, 273, 5175, 1042, 5621, ...
if (_indent) handler.setIndent(_indent);
handler.setIndent(_indent);
protected void transferOutputSettings(TransletOutputHandler output) { // It is an error if this method is called with anything else than // the translet post-processor (TextOutput) if (!(output instanceof TextOutput)) return; TextOutput handler = (TextOutput)output; // Transfer the output method setting if (_method != null) { // Transfer all settings relevant to XML output if (_method.equals("xml")) { handler.setType(TextOutput.XML); handler.setCdataElements(_cdata); if (_version != null) handler.setVersion(_version); if (_standalone != null) handler.setStandalone(_standalone); if (_omitHeader) handler.omitHeader(true); if (_indent) handler.setIndent(_indent); if (_doctypeSystem != null) handler.setDoctype(_doctypeSystem, _doctypePublic); } // Transfer all output settings relevant to HTML output else if (_method.equals("html")) { handler.setType(TextOutput.HTML); if (_indent) handler.setIndent(_indent); else handler.setIndent(true); handler.setDoctype(_doctypeSystem, _doctypePublic); if (_mediaType != null) handler.setMediaType(_mediaType); } else if (_method.equals("text")) { handler.setType(TextOutput.TEXT); } else { handler.setType(TextOutput.QNAME); } } else { handler.setCdataElements(_cdata); if (_version != null) handler.setVersion(_version); if (_standalone != null) handler.setStandalone(_standalone); if (_omitHeader) handler.omitHeader(true); if (_indent) handler.setIndent(_indent); handler.setDoctype(_doctypeSystem, _doctypePublic); } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/46dd295dbb099c15b44234ea0e690156b39d61ef/AbstractTranslet.java/clean/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 7412, 1447, 2628, 12, 1429, 1810, 30796, 876, 13, 288, 202, 759, 2597, 353, 392, 555, 309, 333, 707, 353, 2566, 598, 6967, 469, 2353, 202, 759, 326, 906, 1810, 1603, 17, 8700...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7412, 1447, 2628, 12, 1429, 1810, 30796, 876, 13, 288, 202, 759, 2597, 353, 392, 555, 309, 333, 707, 353, 2566, 598, 6967, 469, 2353, 202, 759, 326, 906, 1810, 1603, 17, 8700...
} catch (Exception e) { e.printStackTrace();
public void run() { try { //boolean success = sketch.isLibrary() ? //sketch.exportLibrary() : sketch.exportApplet(); boolean success = sketch.exportApplet(new Target( System.getProperty("user.dir") + File.separator + "lib" + File.separator + "targets", Preferences.get("build.target"))); if (success) { message("Done uploading."); } else { // error message will already be visible } } catch (RunnerException e) { message("Error during upload."); //e.printStackTrace(); error(e); } catch (Exception e) { e.printStackTrace(); } buttons.clear(); }});
28886 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28886/b8923cfeee58eb44e10777e724bb177e6a77b146/Editor.java/buggy/app/Editor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 775, 288, 5411, 368, 6494, 2216, 273, 18534, 18, 291, 9313, 1435, 692, 5411, 368, 7771, 1593, 18, 6530, 9313, 1435, 294, 18534, 18, 6530, 23696, 5621, 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, 540, 1071, 918, 1086, 1435, 288, 1850, 775, 288, 5411, 368, 6494, 2216, 273, 18534, 18, 291, 9313, 1435, 692, 5411, 368, 7771, 1593, 18, 6530, 9313, 1435, 294, 18534, 18, 6530, 23696, 5621, 54...
public static ZOrderAction createSendToBackAction(IWorkbenchPage workbenchPage) {
public static ZOrderAction createSendToBackAction( IWorkbenchPage workbenchPage) {
public static ZOrderAction createSendToBackAction(IWorkbenchPage workbenchPage) { ZOrderAction theAction = new ZOrderAction(workbenchPage); theAction.setId(ActionIds.ACTION_SEND_TO_BACK); theAction.setText(Messages.getString( SEND_TO_BACK_LABEL_TEXT ) ); theAction.setToolTipText(Messages.getString( SEND_TO_BACK_TOOLTIP ) ); theAction.setImageDescriptor(Images.DESC_ACTION_SEND_TO_BACK); theAction.setHoverImageDescriptor(Images.DESC_ACTION_SEND_TO_BACK); return theAction; }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/8cde65fc058a9faaf847d04bf9b28594ea600f8f/ZOrderAction.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.actions/src/org/eclipse/gmf/runtime/diagram/ui/actions/internal/ZOrderAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 2285, 2448, 1803, 752, 3826, 774, 2711, 1803, 12, 45, 2421, 22144, 1964, 1440, 22144, 1964, 13, 288, 202, 202, 62, 2448, 1803, 326, 1803, 273, 394, 2285, 2448, 1803, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 2285, 2448, 1803, 752, 3826, 774, 2711, 1803, 12, 45, 2421, 22144, 1964, 1440, 22144, 1964, 13, 288, 202, 202, 62, 2448, 1803, 326, 1803, 273, 394, 2285, 2448, 1803, 12, ...
frameOffset += BYTES_IN_DOUBLE;
frameOffset = frameOffset.add(BYTES_IN_DOUBLE);
public void unwindStackFrame(VM_CompiledMethod cm, VM_Registers registers) { Address fp = registers.getInnermostFramePointer(); VM_OptCompiledMethod compiledMethod = (VM_OptCompiledMethod)cm; // restore non-volatile registers int frameOffset = compiledMethod.getUnsignedNonVolatileOffset(); int firstInteger = compiledMethod.getFirstNonVolatileGPR(); if (firstInteger >= 0) { //-#if RVM_FOR_64_ADDR frameOffset = (frameOffset + 7) & ~7; //-#endif for (int i = firstInteger; i < 32; i++) { registers.gprs.set(i, fp.add(frameOffset).loadWord()); frameOffset += BYTES_IN_ADDRESS; } } int firstFloat = compiledMethod.getFirstNonVolatileFPR(); if (firstFloat >= 0) { frameOffset = (frameOffset + 7) & ~7; // align pointer for doubles for (int i = firstFloat; i < 32; i++) { long temp = VM_Magic.getLongAtOffset(VM_Magic.addressAsObject(fp), frameOffset); registers.fprs[i] = VM_Magic.longBitsAsDouble(temp); frameOffset += BYTES_IN_DOUBLE; } } registers.unwindStackFrame(); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3a9aeeb7f964774e6adc285d6526603ac1570e14/VM_OptExceptionDeliverer.java/buggy/rvm/src/vm/arch/powerPC/compilers/optimizing/vmInterface/services/VM_OptExceptionDeliverer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 640, 10094, 2624, 3219, 12, 7397, 67, 20733, 1305, 5003, 16, 8251, 67, 10277, 10285, 13, 288, 565, 5267, 4253, 273, 10285, 18, 588, 382, 82, 28055, 3219, 4926, 5621, 565, 8251,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 640, 10094, 2624, 3219, 12, 7397, 67, 20733, 1305, 5003, 16, 8251, 67, 10277, 10285, 13, 288, 565, 5267, 4253, 273, 10285, 18, 588, 382, 82, 28055, 3219, 4926, 5621, 565, 8251,...
final String declaration, final String text) {
final String declaration) {
public PredicateDescr(final String fieldName, final String declaration, final String text) { this.fieldName = fieldName; this.declaration = declaration; this.text = text; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/66a59ebfb9077b4628cfb4aa31cf2f6a38c41bcf/PredicateDescr.java/buggy/drools-compiler/src/main/java/org/drools/lang/descr/PredicateDescr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10202, 16198, 12, 6385, 514, 4289, 16, 12900, 727, 514, 8266, 16, 12900, 727, 514, 977, 13, 288, 3639, 333, 18, 16163, 273, 4289, 31, 3639, 333, 18, 22448, 273, 8266, 31, 3639, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10202, 16198, 12, 6385, 514, 4289, 16, 12900, 727, 514, 8266, 16, 12900, 727, 514, 977, 13, 288, 3639, 333, 18, 16163, 273, 4289, 31, 3639, 333, 18, 22448, 273, 8266, 31, 3639, 33...
public void removeStaleListener(IStaleListener listener) {
public synchronized void removeStaleListener(IStaleListener listener) {
public void removeStaleListener(IStaleListener listener) { if (staleListeners == listener) { staleListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (staleListeners instanceof Collection) { Collection listenerList = (Collection) staleListeners; listenerList.remove(listener); if (listenerList.isEmpty()) { staleListeners = null; if (!hasListeners()) { lastListenerRemoved(); } } } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c8f2cc5874f2e6247a2cbb9878a80029b7203e0a/AbstractObservable.java/clean/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/AbstractObservable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 19155, 2223, 12, 45, 19155, 2223, 2991, 13, 288, 202, 202, 430, 261, 334, 5349, 5583, 422, 2991, 13, 288, 1082, 202, 334, 5349, 5583, 273, 446, 31, 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, 482, 918, 1206, 19155, 2223, 12, 45, 19155, 2223, 2991, 13, 288, 202, 202, 430, 261, 334, 5349, 5583, 422, 2991, 13, 288, 1082, 202, 334, 5349, 5583, 273, 446, 31, 1082, 202, 430, ...
private int traverseSimpleTypeDecl( Element simpleTypeDecl ) throws Exception { if ( CR_IMPL ) { return traverseSimpleType(simpleTypeDecl); } String varietyProperty = simpleTypeDecl.getAttribute( SchemaSymbols.ATT_DERIVEDBY ); if (varietyProperty.length() == 0) { varietyProperty = SchemaSymbols.ATTVAL_RESTRICTION; } String nameProperty = simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME ); String baseTypeQNameProperty = simpleTypeDecl.getAttribute( SchemaSymbols.ATT_BASE ); String abstractProperty = simpleTypeDecl.getAttribute( SchemaSymbols.ATT_ABSTRACT ); int newSimpleTypeName = -1; if ( nameProperty.equals("")) { // anonymous simpleType newSimpleTypeName = fStringPool.addSymbol( "#S#"+fSimpleTypeAnonCount++ ); //"http://www.apache.org/xml/xerces/internalDatatype"+fSimpleTypeAnonCount++ ); } else newSimpleTypeName = fStringPool.addSymbol( nameProperty ); int basetype; DatatypeValidator baseValidator = null; if( baseTypeQNameProperty!= null ) { basetype = fStringPool.addSymbol( baseTypeQNameProperty ); String prefix = ""; String localpart = baseTypeQNameProperty; int colonptr = baseTypeQNameProperty.indexOf(":"); if ( colonptr > 0) { prefix = baseTypeQNameProperty.substring(0,colonptr); localpart = baseTypeQNameProperty.substring(colonptr+1); } String uri = resolvePrefixToURI(prefix); baseValidator = getDatatypeValidator(uri, localpart); if (baseValidator == null) { Element baseTypeNode = getTopLevelComponentByName(SchemaSymbols.ELT_SIMPLETYPE, localpart); if (baseTypeNode != null) { traverseSimpleTypeDecl( baseTypeNode ); baseValidator = getDatatypeValidator(uri, localpart); if (baseValidator == null) { reportSchemaError(SchemaMessageProvider.UnknownBaseDatatype, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_BASE ), simpleTypeDecl.getAttribute(SchemaSymbols.ATT_NAME) }); return -1; //reportGenericSchemaError("Base type could not be found : " + baseTypeQNameProperty); } } else { reportSchemaError(SchemaMessageProvider.UnknownBaseDatatype, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_BASE ), simpleTypeDecl.getAttribute(SchemaSymbols.ATT_NAME) }); return -1; //reportGenericSchemaError("Base type could not be found : " + baseTypeQNameProperty); } } } // Any Children if so then check Content otherwise bail out Element content = XUtil.getFirstChildElement( simpleTypeDecl ); int numFacets = 0; Hashtable facetData = null; if( content != null ) { //Content follows: ( annotation? , facets* ) //annotation ? ( 0 or 1 ) if( content.getLocalName().equals( SchemaSymbols.ELT_ANNOTATION ) ){ traverseAnnotationDecl( content ); content = XUtil.getNextSiblingElement(content); } //TODO: If content is annotation again should raise validation error // if( content.getLocalName().equal( SchemaSymbols.ELT_ANNOTATIO ) { // throw ValidationException(); } // //facets * ( 0 or more ) int numEnumerationLiterals = 0; facetData = new Hashtable(); Vector enumData = new Vector(); while (content != null) { if (content.getNodeType() == Node.ELEMENT_NODE) { Element facetElt = (Element) content; numFacets++; if (facetElt.getLocalName().equals(SchemaSymbols.ELT_ENUMERATION)) { numEnumerationLiterals++; String enumVal = facetElt.getAttribute(SchemaSymbols.ATT_VALUE); enumData.addElement(enumVal); //Enumerations can have annotations ? ( 0 | 1 ) Element enumContent = XUtil.getFirstChildElement( facetElt ); if( enumContent != null && enumContent != null && enumContent.getLocalName().equals( SchemaSymbols.ELT_ANNOTATION ) ){ traverseAnnotationDecl( content ); } //TODO: If enumContent is encounter again should raise validation error // enumContent.getNextSibling(); // if( enumContent.getLocalName().equal( SchemaSymbols.ELT_ANNOTATIO ) { // throw ValidationException(); } // } else { facetData.put(facetElt.getLocalName(),facetElt.getAttribute( SchemaSymbols.ATT_VALUE )); } } //content = (Element) content.getNextSibling(); content = XUtil.getNextSiblingElement(content); } if (numEnumerationLiterals > 0) { facetData.put(SchemaSymbols.ELT_ENUMERATION, enumData); } } // create & register validator for "generated" type if it doesn't exist String nameOfType = fStringPool.toString( newSimpleTypeName); if (fTargetNSURIString.length () != 0) { nameOfType = fTargetNSURIString+","+nameOfType; } try { DatatypeValidator newValidator = fDatatypeRegistry.getDatatypeValidator( nameOfType ); if( newValidator == null ) { // not previously registered boolean derivedByList = varietyProperty.equals( SchemaSymbols.ATTVAL_LIST ) ? true:false; fDatatypeRegistry.createDatatypeValidator( nameOfType, baseValidator, facetData, derivedByList ); } } catch (Exception e) { reportSchemaError(SchemaMessageProvider.DatatypeError,new Object [] { e.getMessage() }); } return fStringPool.addSymbol(nameOfType); }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/520ffaf064aa0211aa79bcb8d15f385ab293ebad/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 10080, 5784, 559, 3456, 12, 3010, 4143, 559, 3456, 262, 1216, 1185, 288, 540, 202, 202, 430, 261, 6732, 67, 3445, 6253, 262, 288, 1082, 202, 2463, 10080, 5784, 559, 12, 9647, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 10080, 5784, 559, 3456, 12, 3010, 4143, 559, 3456, 262, 1216, 1185, 288, 540, 202, 202, 430, 261, 6732, 67, 3445, 6253, 262, 288, 1082, 202, 2463, 10080, 5784, 559, 12, 9647, ...
currentMembers[ordinal] = (RolapMember) scr.getHierarchyDefaultMember(hier);
Member member = scr.getHierarchyDefaultMember(hier); HierarchyUsage[] hierarchyUsages = cube.getUsages(hier); if (hierarchyUsages.length != 0) { ((RolapMember) member).makeUniqueName(hierarchyUsages[0]); } currentMembers[ordinal] = member;
RolapEvaluator(RolapCube cube, RolapConnection connection) { this.cube = cube; this.connection = connection; SchemaReader scr = connection.getSchemaReader(); RolapDimension[] dimensions = (RolapDimension[]) cube.getDimensions(); currentMembers = new RolapMember[dimensions.length]; for (int i = 0; i < dimensions.length; i++) { final RolapDimension dimension = dimensions[i]; final int ordinal = dimension.getOrdinal(cube); final Hierarchy hier = dimension.getHierarchy(); currentMembers[ordinal] = (RolapMember) scr.getHierarchyDefaultMember(hier); } this.parent = null; this.depth = 0; this.cellReader = null; // we expect client to set it this.expResultCache = new HashMap(); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/0cc18052c959f8014f772086b193e28d7a6dd66a/RolapEvaluator.java/buggy/src/main/mondrian/rolap/RolapEvaluator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 11714, 438, 15876, 12, 4984, 438, 39, 4895, 18324, 16, 11714, 438, 1952, 1459, 13, 565, 288, 3639, 333, 18, 21186, 273, 18324, 31, 3639, 333, 18, 4071, 273, 1459, 31, 3639, 4611, 2514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11714, 438, 15876, 12, 4984, 438, 39, 4895, 18324, 16, 11714, 438, 1952, 1459, 13, 565, 288, 3639, 333, 18, 21186, 273, 18324, 31, 3639, 333, 18, 4071, 273, 1459, 31, 3639, 4611, 2514, ...
manager.addCategory(cat1);
manager.getTaskList().addCategory(cat1);
public void testCompletedBugzillaTasksInCategoryRetrieved() throws InvocationTargetException, InterruptedException { BugzillaTask task1 = new BugzillaTask(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1", true); manager.moveToRoot(task1); TaskTestUtil.setBugTaskCompleted(task1, true); TaskCategory cat1 = new TaskCategory("TaskReportGeneratorTest Category"); manager.addCategory(cat1); Set<ITaskListElement> catagories = new HashSet<ITaskListElement>(); catagories.add(cat1); CompletedTaskCollector collector = new CompletedTaskCollector(new Date(0)); TaskReportGenerator generator = new TaskReportGenerator(manager.getTaskList(), catagories); generator.addCollector(collector); generator.run(new NullProgressMonitor()); assertEquals(0, generator.getAllCollectedTasks().size()); manager.moveToCategory(cat1, task1); generator.run(new NullProgressMonitor()); assertEquals(1, generator.getAllCollectedTasks().size()); assertEquals(task1, generator.getAllCollectedTasks().get(0)); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/e126413d7377a72b7d4a3c4621ae64fda6eec16a/TaskReportGeneratorTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskReportGeneratorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 9556, 19865, 15990, 6685, 382, 4457, 3848, 2155, 1435, 1216, 15342, 16, 7558, 288, 202, 202, 19865, 15990, 2174, 1562, 21, 273, 394, 16907, 15990, 2174, 12, 12062, 7901...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 9556, 19865, 15990, 6685, 382, 4457, 3848, 2155, 1435, 1216, 15342, 16, 7558, 288, 202, 202, 19865, 15990, 2174, 1562, 21, 273, 394, 16907, 15990, 2174, 12, 12062, 7901...
IASTName name = definition != null ? definition.getName() : declarations[0].getName(); if( name instanceof ICPPASTQualifiedName ){ IASTName [] ns = ((ICPPASTQualifiedName)name).getNames(); name = ns[ ns.length - 1 ]; }
IASTName name = definition != null ? definition : declarations[0];
public IScope getScope() { IASTName name = definition != null ? definition.getName() : declarations[0].getName(); if( name instanceof ICPPASTQualifiedName ){ IASTName [] ns = ((ICPPASTQualifiedName)name).getNames(); name = ns[ ns.length - 1 ]; } IScope scope = CPPVisitor.getContainingScope( name ); if( definition == null && name.getPropertyInParent() != ICPPASTQualifiedName.SEGMENT_NAME ){ IASTNode node = declarations[0].getParent(); if( node instanceof IASTFunctionDefinition || node instanceof IASTParameterDeclaration || ( node instanceof IASTSimpleDeclaration && ( ((IASTSimpleDeclaration) node).getDeclarators().length > 0 || declarations[0].isFriend() ) ) ) { while( scope instanceof ICPPClassScope || scope instanceof ICPPFunctionScope ){ try { scope = (ICPPScope) scope.getParent(); } catch (DOMException e1) { } } } } return scope; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/67cc9c5ad7dabe6aaa913778302f9bef3b7460cc/CPPClassType.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 3876, 19203, 1435, 288, 202, 202, 45, 9053, 461, 508, 273, 2379, 480, 446, 692, 2379, 18, 17994, 1435, 294, 12312, 63, 20, 8009, 17994, 5621, 202, 202, 430, 12, 508, 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, 467, 3876, 19203, 1435, 288, 202, 202, 45, 9053, 461, 508, 273, 2379, 480, 446, 692, 2379, 18, 17994, 1435, 294, 12312, 63, 20, 8009, 17994, 5621, 202, 202, 430, 12, 508, 1276...
System.out.println( "\n\n Fehler! Die Stubs wurden vermutlich " + "nicht generiert!\n");
LOGGER.severe("Fehler! Die Stubs wurden vermutlich nicht generiert!");
public static void main(String[] args) { ParameterParser parser = new ParameterParser(); // debug option Option debug1 = new Option("d"); debug1.setPrefix("-"); debug1.setOptional(true); debug1.setParameterNumberCheck(Option.ZERO_PARAMETERS_CHECK); Option debug2 = new Option("debug"); debug2.setPrefix("--"); debug2.setOptional(true); debug2.setParameterNumberCheck(Option.ZERO_PARAMETERS_CHECK); parser.setFreeParameterPosition(ParameterParser.START); parser.setFreeParameterName("registry:port"); parser.setFreeParameterNumberCheck(Option.ONE_PARAMETER_CHECK); parser.addOption(debug1); parser.addOption(debug2); StringBuffer binding = new StringBuffer(); boolean debug = false; try { parser.parseAll(args); // ist debuging aktiviert? debug = (parser.isEnabled(debug1) || parser.isEnabled(debug2)); binding.append(parser.getFreeParameter()); // ist ein Port angegeben ? if (binding.indexOf(":") == -1) { // Es wurde kein Port angegeben: default Port verwenden. binding.append(":"); binding.append(ComputeManager.PORT_NO); } // noch id String anhngen und Slashes dazubasteln. binding.insert(0, "//"); binding.append("/"); binding.append(ComputeManager.COMPUTEMANAGER_ID_STRING); ComputeManager computeManager = (ComputeManager) java.rmi.Naming.lookup(binding.toString()); // Aufruf des privaten Konstruktors mit ComputeManager. OperativeImpl operative = new OperativeImpl(computeManager, debug); // erst wenn das funktioniert hat, computing starten operative.startComputation(); // Wenn das funktioniert hat, dann anmelden Miscellaneous.printDebugMessage( debug, "Debug: Melde Operative an!"); computeManager.registerOperative(operative); Miscellaneous.printDebugMessage(debug, "Debug: Gestartet!"); } catch (ParameterParserException ex) { // usage ausgeben: System.err.println(parser); // Stacktrace (nicht unbedingt notwendig) ex.printStackTrace(); } catch (java.rmi.StubNotFoundException e) { System.out.println( "\n\n Fehler! Die Stubs wurden vermutlich " + "nicht generiert!\n"); System.exit(1); } catch (Exception e) { System.out.println( "Fehler! Verbindung mit ComputeManager konnte " + "nicht hergestellt werden:\n" + e.getMessage() + "\n" + "Eventuell ist die Adresse falsch eingegeben worden:\n" + args[0]); if (debug) { e.printStackTrace(); } System.exit(1); } }
14082 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14082/15b850d078f9b8d59762a1e2efa2a698957db45e/OperativeImpl.java/clean/branches/logging/source/de/unistuttgart/architeuthis/operative/OperativeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 5498, 2678, 2082, 273, 394, 5498, 2678, 5621, 3639, 368, 1198, 1456, 3639, 2698, 1198, 21, 273, 394, 2698, 2932, 72, 8863, 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, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 5498, 2678, 2082, 273, 394, 5498, 2678, 5621, 3639, 368, 1198, 1456, 3639, 2698, 1198, 21, 273, 394, 2698, 2932, 72, 8863, 3639, ...
FileSet fs = (FileSet)filesets.get( i );
final FileSet fileSet = (FileSet)filesets.get( i );
public void execute() throws TaskException { if( m_file == null && m_dir == null && filesets.size() == 0 ) { final String message = "At least one of the file or dir attributes, " + "or a fileset element, must be set."; throw new TaskException( message ); } // delete the single file if( null != m_file ) { if( m_file.exists() ) { if( m_file.isDirectory() ) { final String message = "Directory " + m_file.getAbsolutePath() + " cannot be removed using the file attribute. Use dir instead."; getLogger().info( message ); } else { getLogger().info( "Deleting: " + m_file.getAbsolutePath() ); if( !m_file.delete() ) { final String message = "Unable to delete file " + m_file.getAbsolutePath(); throw new TaskException( message ); } } } else { final String message = "Could not find file " + m_file.getAbsolutePath() + " to delete."; getLogger().debug( message ); } } // delete the directory if( m_dir != null && m_dir.exists() && m_dir.isDirectory() ) { getLogger().info( "Deleting directory " + m_dir.getAbsolutePath() ); removeDir( m_dir ); } // delete the files in the filesets for( int i = 0; i < filesets.size(); i++ ) { FileSet fs = (FileSet)filesets.get( i ); try { DirectoryScanner ds = ScannerUtil.getDirectoryScanner( fs ); String[] files = ds.getIncludedFiles(); String[] dirs = ds.getIncludedDirectories(); removeFiles( fs.getDir(), files, dirs ); } catch( TaskException be ) { // directory doesn't exist or is not readable throw be; } } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/e989731c5e47b29c4c96908fdfa374cf0d48361b/Delete.java/buggy/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/file/Delete.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 3639, 1216, 3837, 503, 565, 288, 3639, 309, 12, 312, 67, 768, 422, 446, 597, 312, 67, 1214, 422, 446, 597, 1390, 2413, 18, 1467, 1435, 422, 374, 262, 3639, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 3639, 1216, 3837, 503, 565, 288, 3639, 309, 12, 312, 67, 768, 422, 446, 597, 312, 67, 1214, 422, 446, 597, 1390, 2413, 18, 1467, 1435, 422, 374, 262, 3639, 288, ...
String def = new DefinedVisitor(ruby, self.toRubyObject()).getDefinition(iVisited.getExpressionNode());
String def = new DefinedVisitor(ruby, self).getDefinition(iVisited.getExpressionNode());
public void visitDefinedNode(DefinedNode iVisited) { String def = new DefinedVisitor(ruby, self.toRubyObject()).getDefinition(iVisited.getExpressionNode()); if (def != null) { result = builtins.toString(def); } }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/f235ab756f32ea9496f8f880066b46ad95ebb692/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 8116, 907, 12, 8116, 907, 277, 30019, 13, 288, 3639, 514, 1652, 273, 394, 18003, 329, 7413, 12, 27768, 16, 365, 2934, 588, 1852, 12, 77, 30019, 18, 588, 2300, 907, 1066...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 8116, 907, 12, 8116, 907, 277, 30019, 13, 288, 3639, 514, 1652, 273, 394, 18003, 329, 7413, 12, 27768, 16, 365, 2934, 588, 1852, 12, 77, 30019, 18, 588, 2300, 907, 1066...
return getMimeType();
return getMimeType() + "; class=\"" + getRepresentationClassName() + "\"";
public String toString() { return getMimeType(); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/3878be593002f301580025b16c264e41f364beae/DocFlavor.java/clean/libraries/javalib/external/classpath/javax/print/DocFlavor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 225, 288, 565, 327, 21078, 1435, 397, 13636, 667, 13186, 397, 5561, 10364, 3834, 1435, 397, 11143, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 514, 1762, 1435, 225, 288, 565, 327, 21078, 1435, 397, 13636, 667, 13186, 397, 5561, 10364, 3834, 1435, 397, 11143, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
if ( !insideDependencyManagement ) { currentDependency = new Dependency();
currentDependency = new Dependency();
public void startElement( String uri, String localName, String rawName, Attributes attributes ) { if ( rawName.equals( "parent" ) ) { insideParent = true; } else if ( rawName.equals( "repository" ) ) { currentRepository = new Repository(); insideRepository = true; } else if ( rawName.equals( "dependency" ) ) { if ( !insideDependencyManagement ) { currentDependency = new Dependency(); insideDependency = true; } } else if ( rawName.equals( "dependencyManagement" ) ) { insideDependencyManagement = true; } else if ( rawName.equals( "resource" ) ) { currentResource = new Resource(); insideResource = true; } else if ( rawName.equals( "testResource" ) ) { currentResource = new Resource(); insideResource = true; } else if ( rawName.equals( "snapshots" ) && insideRepository ) { insideSnapshots = true; } else if ( rawName.equals( "releases" ) && insideRepository ) { insideReleases = true; } depth++; }
47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/6da771ab7003485866c689d3ab759f2d888ffae9/ModelReader.java/clean/maven-mboot2/src/main/java/model/ModelReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 514, 2003, 16, 514, 11927, 16, 514, 1831, 461, 16, 9055, 1677, 262, 565, 288, 3639, 309, 261, 1831, 461, 18, 14963, 12, 315, 2938, 6, 262, 262, 3639, 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, 13591, 12, 514, 2003, 16, 514, 11927, 16, 514, 1831, 461, 16, 9055, 1677, 262, 565, 288, 3639, 309, 261, 1831, 461, 18, 14963, 12, 315, 2938, 6, 262, 262, 3639, 288, 5411, ...
root = new RootEntry();
root = new RootEntry("");
public void testFindingEntriesInTree() { root = new RootEntry(); Entry dir = new DirectoryEntry(null, "dir"); Entry file1 = new FileEntry(null, "file1", null); Entry file2 = new FileEntry(null, "file2", null); root.addChild(dir); root.addChild(file1); dir.addChild(file2); assertSame(dir, root.findEntry(p("dir"))); assertSame(file1, root.findEntry(p("file1"))); assertSame(file2, root.findEntry(p("dir/file2"))); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8a6fdbc15b3cd4aaa232cf2026aa4a60418c162a/RootEntryTest.java/buggy/LocalVcs/test/com/intellij/localvcs/RootEntryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 21358, 5400, 382, 2471, 1435, 288, 565, 1365, 273, 394, 7450, 1622, 2932, 8863, 565, 3841, 1577, 273, 394, 8930, 1622, 12, 2011, 16, 315, 1214, 8863, 565, 3841, 585, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 21358, 5400, 382, 2471, 1435, 288, 565, 1365, 273, 394, 7450, 1622, 2932, 8863, 565, 3841, 1577, 273, 394, 8930, 1622, 12, 2011, 16, 315, 1214, 8863, 565, 3841, 585, 21, ...
+ state.getNonce()
+ state.getNonce() + " for best effort "
private boolean sendBestEffort(Destination dest, byte payload[], SessionKey keyUsed, Set tagsSent) throws I2PSessionException { SessionKey key = _context.sessionKeyManager().getCurrentKey(dest.getPublicKey()); if (key == null) key = _context.sessionKeyManager().createSession(dest.getPublicKey()); SessionTag tag = _context.sessionKeyManager().consumeNextAvailableTag(dest.getPublicKey(), key); Set sentTags = null; int oldTags = _context.sessionKeyManager().getAvailableTags(dest.getPublicKey(), key); long availTimeLeft = _context.sessionKeyManager().getAvailableTimeLeft(dest.getPublicKey(), key); if ( (tagsSent == null) || (tagsSent.size() <= 0) ) { if (oldTags < 10) { sentTags = createNewTags(50); //_log.error("** sendBestEffort only had " + oldTags + " adding 50"); } else if (availTimeLeft < 30 * 1000) { // if we have > 10 tags, but they expire in under 30 seconds, we want more sentTags = createNewTags(50); if (_log.shouldLog(Log.DEBUG)) _log.debug(getPrefix() + "Tags are almost expired, adding 50 new ones"); //_log.error("** sendBestEffort available time left " + availTimeLeft); } else { //_log.error("sendBestEffort old tags: " + oldTags + " available time left: " + availTimeLeft); } } SessionKey newKey = null; if (false) // rekey newKey = _context.keyGenerator().generateSessionKey(); if ( (tagsSent != null) && (tagsSent.size() > 0) ) { if (sentTags == null) sentTags = new HashSet(); sentTags.addAll(tagsSent); } long nonce = _context.random().nextInt(Integer.MAX_VALUE); MessageState state = new MessageState(nonce, getPrefix()); state.setKey(key); state.setTags(sentTags); state.setNewKey(newKey); state.setTo(dest); if (_log.shouldLog(Log.DEBUG)) _log.debug(getPrefix() + "Setting key = " + key); if (keyUsed != null) { if (newKey != null) keyUsed.setData(newKey.getData()); else keyUsed.setData(key.getData()); } if (tagsSent != null) { if (sentTags != null) { tagsSent.addAll(sentTags); } } long beforeSendingSync = _context.clock().now(); long inSendingSync = 0; synchronized (_sendingStates) { inSendingSync = _context.clock().now(); _sendingStates.add(state); } long afterSendingSync = _context.clock().now(); if (_log.shouldLog(Log.DEBUG)) _log.debug(getPrefix() + "Adding sending state " + state.getMessageId() + " / " + state.getNonce() + " sync took " + (inSendingSync-beforeSendingSync) + " add took " + (afterSendingSync-inSendingSync)); _producer.sendMessage(this, dest, nonce, payload, tag, key, sentTags, newKey); long beforeWaitFor = _context.clock().now(); state.waitFor(MessageStatusMessage.STATUS_SEND_ACCEPTED, _context.clock().now() + getTimeout()); long afterWaitFor = _context.clock().now(); long inRemovingSync = 0; synchronized (_sendingStates) { inRemovingSync = _context.clock().now(); _sendingStates.remove(state); } long afterRemovingSync = _context.clock().now(); boolean found = state.received(MessageStatusMessage.STATUS_SEND_ACCEPTED); if (_log.shouldLog(Log.DEBUG)) _log.debug(getPrefix() + "After waitFor sending state " + state.getMessageId().getMessageId() + " / " + state.getNonce() + " found = " + found); if (found) { if (_log.shouldLog(Log.INFO)) _log.info(getPrefix() + "Message sent after " + state.getElapsed() + "ms with " + payload.length + " bytes"); } else { if (_log.shouldLog(Log.INFO)) _log.info(getPrefix() + "Message send failed after " + state.getElapsed() + "ms with " + payload.length + " bytes"); if (_log.shouldLog(Log.ERROR)) _log.error(getPrefix() + "Never received *accepted* from the router! dropping and reconnecting"); disconnect(); return false; } return found; }
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/314316cee065671b9b971f95a3427acca4141805/I2PSessionImpl2.java/clean/core/java/src/net/i2p/client/I2PSessionImpl2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1366, 14173, 41, 1403, 499, 12, 5683, 1570, 16, 1160, 2385, 63, 6487, 3877, 653, 498, 6668, 16, 1000, 2342, 7828, 13, 10792, 1216, 467, 22, 52, 2157, 503, 288, 3639, 3877, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1366, 14173, 41, 1403, 499, 12, 5683, 1570, 16, 1160, 2385, 63, 6487, 3877, 653, 498, 6668, 16, 1000, 2342, 7828, 13, 10792, 1216, 467, 22, 52, 2157, 503, 288, 3639, 3877, 6...
null);
null);
public OMElement generateOM() throws Exception { OMFactory fac = OMAbstractFactory.getOMFactory(); wsdl = fac.createOMNamespace(WSDL_NAMESPACE, DEFAULT_WSDL_NAMESPACE_PREFIX); OMElement ele = fac.createOMElement("definitions", wsdl); setDefinitionElement(ele); policiesInDefinitions = new HashMap(); Map nameSpaceMap = axisService.getNameSpacesMap(); Iterator keys = nameSpaceMap.keySet().iterator(); while (keys.hasNext()) { String key = (String) keys.next(); if ("".equals(key)) { ele.declareDefaultNamespace((String) nameSpaceMap.get(key)); } else { ele.declareNamespace((String) nameSpaceMap.get(key), key); } } soap = ele.declareNamespace(URI_WSDL11_SOAP, SOAP11_PREFIX); soap12 = ele.declareNamespace(URI_WSDL12_SOAP, SOAP12_PREFIX); http = ele.declareNamespace(HTTP_NAMESPACE, HTTP_PREFIX); mime = ele.declareNamespace(MIME_NAMESPACE, MIME_PREFIX); String prefix = getPrefix(axisService.getTargetNamespace()); if (prefix == null || "".equals(prefix)) { prefix = DEFAULT_TARGET_NAMESPACE_PREFIX; } axisService.getNameSpacesMap().put(prefix, axisService.getTargetNamespace()); tns = ele.declareNamespace(axisService.getTargetNamespace(), prefix); // adding documentation element // <documentation>&lt;b&gt;NEW!&lt;/b&gt; This method accepts an ISBN // string and returns &lt;b&gt;Amazon.co.uk&lt;/b&gt; Sales Rank for // that book.</documentation> String servicedescription = axisService.getServiceDescription(); if (servicedescription != null && !"".equals(servicedescription)) { OMElement documenentattion = fac.createOMElement("documentation", wsdl); documenentattion.setText(servicedescription); ele.addChild(documenentattion); } ele.addAttribute("targetNamespace", axisService.getTargetNamespace(), null); OMElement wsdlTypes = fac.createOMElement("types", wsdl); ele.addChild(wsdlTypes); // populate the schema mappings axisService.populateSchemaMappings(); ArrayList schemas = axisService.getSchema(); for (int i = 0; i < schemas.size(); i++) { StringWriter writer = new StringWriter(); // XmlSchema schema = (XmlSchema) schemas.get(i); XmlSchema schema = axisService.getSchema(i); String targetNamespace = schema.getTargetNamespace(); if (!Constants.NS_URI_XML.equals(targetNamespace)) { schema.write(writer); String schemaString = writer.toString(); if (!"".equals(schemaString)) { XMLStreamReader xmlReader = StAXUtils .createXMLStreamReader(new StringReader( schemaString)); StAXOMBuilder staxOMBuilder = new StAXOMBuilder(fac, xmlReader); wsdlTypes.addChild(staxOMBuilder.getDocumentElement()); } } } generateMessages(fac, ele); generatePortType(fac, ele); generateSOAP11Binding(fac, ele); generateSOAP12Binding(fac, ele); // generateHttp if (axisService.getParent() != null) { AxisDescription axisdesc = axisService.getParent().getParent(); Parameter parameter = axisdesc.getParameter("enableHTTP"); if (parameter != null) { Object value = parameter.getValue(); if ("true".equals(value.toString())) { generateHttp = true; generatePostBinding(fac, ele); } } } generateService(fac, ele); addPoliciesToDefinitionElement(policiesInDefinitions.values() .iterator(), definition); return ele; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6faf728c869b62d91149ee32b541bf550c61ba22/AxisService2OM.java/clean/modules/kernel/src/org/apache/axis2/description/AxisService2OM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 531, 12310, 2103, 1872, 1435, 1216, 1185, 288, 3639, 28839, 1733, 5853, 273, 531, 5535, 3336, 1733, 18, 588, 1872, 1733, 5621, 3639, 17642, 273, 5853, 18, 2640, 1872, 3402, 12, 2651, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 531, 12310, 2103, 1872, 1435, 1216, 1185, 288, 3639, 28839, 1733, 5853, 273, 531, 5535, 3336, 1733, 18, 588, 1872, 1733, 5621, 3639, 17642, 273, 5853, 18, 2640, 1872, 3402, 12, 2651, ...
throw new Error ("2nd arg is not a Type");
throw new Error ("1st arg is not a Type");
public void compile (ApplyExp exp, Compilation comp, int flags) { Expression[] args = exp.getArgs(); if (args.length != 2) throw new Error ("wrong number of arguments to "+name()); CodeAttr code = comp.getCode(); if (args[0] instanceof QuoteExp) { Object arg0 = ((QuoteExp) args[0]).getValue(); if (arg0 instanceof Type) { args[1].compile(comp, 0); ((Type) arg0).emitCoerceFromObject(comp.getCode()); } else throw new Error ("2nd arg is not a Type"); } else { if (typeType == null) { typeType = new ClassType("gnu.bytecode.Type"); coerceMethod = typeType.addMethod("coerceFromObject", Compilation.apply1args, Type.pointer_type, gnu.bytecode.Access.PUBLIC); } args[0].compile(comp, 0, typeType); args[1].compile(comp, 0); code.emitInvokeVirtual(coerceMethod); } if ((flags & Expression.IGNORED) != 0) code.emitPop(1); }
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/d2794b90e67ac88c6993d6e6dd75a38c3047cc7a/convert.java/buggy/kawa/standard/convert.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4074, 261, 7001, 2966, 1329, 16, 22416, 1161, 16, 509, 2943, 13, 225, 288, 565, 5371, 8526, 833, 273, 1329, 18, 588, 2615, 5621, 565, 309, 261, 1968, 18, 2469, 480, 576, 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, 282, 1071, 918, 4074, 261, 7001, 2966, 1329, 16, 22416, 1161, 16, 509, 2943, 13, 225, 288, 565, 5371, 8526, 833, 273, 1329, 18, 588, 2615, 5621, 565, 309, 261, 1968, 18, 2469, 480, 576, 13, ...
mode);
mode, isAnyNode);
Template clone(Stylesheet stylesheet) { // FIXME by cloning we lose the imports() functionality, so // apply-imports will be broken. return new Template(stylesheet, name, (match == null) ? null : (Pattern) match.clone(stylesheet), (node == null) ? null : node.clone(stylesheet), precedence, priority, mode); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/Template.java/buggy/core/src/classpath/gnu/gnu/xml/transform/Template.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 5035, 3236, 12, 24656, 13820, 13, 225, 288, 565, 368, 9852, 635, 927, 22470, 732, 29612, 326, 10095, 1435, 14176, 16, 1427, 565, 368, 2230, 17, 21350, 903, 506, 12933, 18, 565, 327, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 5035, 3236, 12, 24656, 13820, 13, 225, 288, 565, 368, 9852, 635, 927, 22470, 732, 29612, 326, 10095, 1435, 14176, 16, 1427, 565, 368, 2230, 17, 21350, 903, 506, 12933, 18, 565, 327, 394, ...
return RubyBoolean.newBoolean(runtime, cal.getTimeZone().getID().equals("GMT"));
return RubyBoolean.newBoolean(runtime, cal.getTimeZone().getID().equals(UTC));
public RubyBoolean gmt() { return RubyBoolean.newBoolean(runtime, cal.getTimeZone().getID().equals("GMT")); }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/ff2657d75cfcff1964e39f97c3ed3c1054b4baef/RubyTime.java/buggy/src/org/jruby/RubyTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5507, 314, 1010, 1435, 288, 3639, 327, 19817, 5507, 18, 2704, 5507, 12, 9448, 16, 1443, 18, 588, 16760, 7675, 588, 734, 7675, 14963, 12, 11471, 10019, 565, 289, 2, 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, 1071, 19817, 5507, 314, 1010, 1435, 288, 3639, 327, 19817, 5507, 18, 2704, 5507, 12, 9448, 16, 1443, 18, 588, 16760, 7675, 588, 734, 7675, 14963, 12, 11471, 10019, 565, 289, 2, -100, -100...
} else charsetField.setText("");
} else { charsetField.setText(""); }
public void selectionChanged(SelectionChangedEvent event) { IContentType contentType = (IContentType) ((IStructuredSelection) event .getSelection()).getFirstElement(); fileAssociationViewer.setInput(contentType); if (contentType != null) { String charset = contentType .getDefaultCharset(); if (charset == null) charset = ""; //$NON-NLS-1$ charsetField.setText(charset); } else charsetField.setText(""); //$NON-NLS-1$ charsetField.setEnabled(contentType != null); addButton.setEnabled(contentType != null); setButton.setEnabled(false); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ContentTypesPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ContentTypesPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 7682, 1071, 918, 4421, 5033, 12, 6233, 27553, 871, 13, 288, 18701, 467, 8046, 5064, 273, 261, 45, 8046, 13, 14015, 45, 30733, 6233, 13, 871, 4766, 565, 263, 588, 6233, 1435, 2934, 588, 3759, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 7682, 1071, 918, 4421, 5033, 12, 6233, 27553, 871, 13, 288, 18701, 467, 8046, 5064, 273, 261, 45, 8046, 13, 14015, 45, 30733, 6233, 13, 871, 4766, 565, 263, 588, 6233, 1435, 2934, 588, 3759, ...
System.out.println(Utility.hex(i) + "; " + ucd.getScriptID(i) + " # " + ucd.getName(i));
System.out.println(Utility.hex(i) + "; " + Main.ucd.getScriptID(i) + " # " + Main.ucd.getName(i));
public static void checkScripts() { ucd = UCD.make(Main.ucdVersion); for (int i = 0; i < 0x10FFFF; ++i) { //byte script = ucd.getScript(i); if (true) { // script != COMMON_SCRIPT) { System.out.println(Utility.hex(i) + "; " + ucd.getScriptID(i) + " # " + ucd.getName(i)); } } }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/a903b84867c303be450a264f036e46ffde646df7/VerifyUCD.java/clean/tools/unicodetools/com/ibm/text/UCD/VerifyUCD.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 866, 15041, 1435, 288, 3639, 582, 4315, 273, 587, 10160, 18, 6540, 12, 6376, 18, 89, 4315, 1444, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 374, 92, 2163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 866, 15041, 1435, 288, 3639, 582, 4315, 273, 587, 10160, 18, 6540, 12, 6376, 18, 89, 4315, 1444, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 374, 92, 2163, ...
for (Category cat : MylarTasksPlugin.getTaskListManager().getTaskList().getCategories()) { for (ITask task : cat.getTasks()) {
for (TaskCategory cat : MylarTasksPlugin.getTaskListManager().getTaskList().getTaskCategories()) { for (ITask task : cat.getChildren()) {
protected boolean lookForId(String taskId) { for (ITask task : MylarTasksPlugin.getTaskListManager().getTaskList().getRootTasks()) { if (task.getHandle().equals(taskId)) { return true; } } for (Category cat : MylarTasksPlugin.getTaskListManager().getTaskList().getCategories()) { for (ITask task : cat.getTasks()) { if (task.getHandle().equals(taskId)) { return true; } } } return false; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/511f3d313ba97192aa52383783b65536be59e780/TaskListView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 2324, 1290, 548, 12, 780, 15321, 13, 288, 377, 202, 1884, 261, 1285, 835, 1562, 294, 8005, 7901, 6685, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 2174, 682, 7675, 588, 2375, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 2324, 1290, 548, 12, 780, 15321, 13, 288, 377, 202, 1884, 261, 1285, 835, 1562, 294, 8005, 7901, 6685, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 2174, 682, 7675, 588, 2375, ...
} else if (! (md.parent instanceof ClassDecl)) {
} else if (!(md.parent instanceof ClassDecl)) {
public void visitRoutineDecl(RoutineDecl rd) { int kind; String ms; Identifier routineName; // hack to make public methods have no requires clauses: // we put this in to check AWT where we didn't have the whole program. if (Main.pmnr && Modifiers.isPublic(rd.modifiers)) return; if (! (rd instanceof MethodDecl)) { ms = "constructor"; kind = 0; //@ assume rd.parent != null; routineName = rd.parent.id; if (rd.implicit) return; } else { MethodDecl md = (MethodDecl)rd; routineName = md.id; if (Modifiers.isStatic(md.modifiers)) { ms = "static method"; kind = 1; if (md.id.toString().equals("main") && md.args.size() == 1) { GenericVarDecl decl = rd.args.elementAt(0); if (isObjectArrayType(decl.type)) { // main routine, special annotation guesses if( !Main.readonly && Main.guessnull) { Annotator requiresAnnotator = new Annotator(rd, "parameter:" + ms, "requires "); requiresAnnotator.put("null"); } return; } } } else if (! (md.parent instanceof ClassDecl)) { ms = "interface method"; kind = 2; } else if (TypeCheck.inst.getAllOverrides(md).isEmpty()) { ms = "instance method"; kind = 2; } else if (TypeCheck.inst.getOverrides(md)==null) { ms = "interface method override"; kind = 3; } else { ms = "class method override"; kind = 4; } } Annotator requiresAnnotator = new Annotator(rd, "parameter:" + ms, "requires "); boolean isStatic=Modifiers.isStatic(rd.modifiers) || rd instanceof ConstructorDecl; //@ assume rd.parent != null; Hashtable envReq = getEnv( rd.parent, !isStatic, accessLevel(rd.modifiers), true, false, null ); for(int i = 0; i < rd.args.size(); i++) { GenericVarDecl decl = rd.args.elementAt(i); // Remove any field named arg; it is not in scope try { envReq.remove( decl.id.toString() ); } catch( NullPointerException ex ) { } } for( Enumeration e = envReq.keys(); e.hasMoreElements(); ) { String expr2 = (String)e.nextElement(); Type type2 = (Type)envReq.get(expr2); if (Types.isReferenceType(type2) && !Main.readonly) { requiresAnnotator.put(expr2); } } }
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/da3049db1eb4330268b3c4bcabb61e7ecd42804f/AnnotationVisitor.java/clean/src/escjava/trunk/ESCTools/Rcc/java/rccwizard/AnnotationVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 4583, 558, 3456, 12, 4583, 558, 3456, 9437, 13, 288, 3639, 509, 3846, 31, 3639, 514, 4086, 31, 3639, 10333, 12245, 461, 31, 3639, 368, 11769, 358, 1221, 1071, 2590, 1240,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 4583, 558, 3456, 12, 4583, 558, 3456, 9437, 13, 288, 3639, 509, 3846, 31, 3639, 514, 4086, 31, 3639, 10333, 12245, 461, 31, 3639, 368, 11769, 358, 1221, 1071, 2590, 1240,...
} else {
private synchronized boolean lookupValues(Row row) throws KettleException { Row lu; Row add; boolean cache_now=false; if (first) { first=false; if (meta.isCached()) { if (meta.getCacheSize()>0) { data.look=new Hashtable((int)(meta.getCacheSize()*1.5)); } else { data.look=new Hashtable(); } } data.db.setLookup(meta.getTablename(), meta.getTableKeyField(), meta.getKeyCondition(), meta.getReturnValueField(), meta.getReturnValueNewName(), meta.getOrderByClause(), meta.isFailingOnMultipleResults()); // lookup the values! if (log.isDetailed()) logDetailed(Messages.getString("DatabaseLookup.Log.CheckingRow")+row.toString()); //$NON-NLS-1$ data.keynrs = new int[meta.getStreamKeyField1().length]; data.keynrs2= new int[meta.getStreamKeyField1().length]; for (int i=0;i<meta.getStreamKeyField1().length;i++) { data.keynrs[i]=row.searchValueIndex(meta.getStreamKeyField1()[i]); if (data.keynrs[i]<0 && // couldn't find field! !"IS NULL".equalsIgnoreCase(meta.getKeyCondition()[i]) && // No field needed! //$NON-NLS-1$ !"IS NOT NULL".equalsIgnoreCase(meta.getKeyCondition()[i]) // No field needed! //$NON-NLS-1$ ) { throw new KettleStepException(Messages.getString("DatabaseLookup.ERROR0001.FieldRequired1.Exception")+meta.getStreamKeyField1()[i]+Messages.getString("DatabaseLookup.ERROR0001.FieldRequired2.Exception")); //$NON-NLS-1$ //$NON-NLS-2$ } data.keynrs2[i]=row.searchValueIndex(meta.getStreamKeyField2()[i]); if (data.keynrs2[i]<0 && // couldn't find field! "BETWEEN".equalsIgnoreCase(meta.getKeyCondition()[i]) // 2 fields needed! //$NON-NLS-1$ ) { throw new KettleStepException(Messages.getString("DatabaseLookup.ERROR0001.FieldRequired3.Exception")+meta.getStreamKeyField2()[i]+Messages.getString("DatabaseLookup.ERROR0001.FieldRequired4.Exception")); //$NON-NLS-1$ //$NON-NLS-2$ } if (log.isDebug()) logDebug(Messages.getString("DatabaseLookup.Log.FieldHasIndex1")+meta.getStreamKeyField1()[i]+Messages.getString("DatabaseLookup.Log.FieldHasIndex2")+data.keynrs[i]); //$NON-NLS-1$ //$NON-NLS-2$ } data.nullif = new Value[meta.getReturnValueField().length]; for (int i=0;i<meta.getReturnValueField().length;i++) { data.nullif[i] = new Value(meta.getReturnValueNewName()[i], meta.getReturnValueDefaultType()[i]); if (meta.getReturnValueDefault()[i]!=null && meta.getReturnValueDefault()[i].length()>0 ) { data.nullif[i].setValue(meta.getReturnValueDefault()[i]); data.nullif[i].setType(meta.getReturnValueDefaultType()[i]); } else { data.nullif[i].setNull(); } } // Determine the types... data.keytypes = new int[meta.getTableKeyField().length]; Row fields = data.db.getTableFields(meta.getTablename()); if (fields!=null) { // Fill in the types... for (int i=0;i<meta.getTableKeyField().length;i++) { Value key = fields.searchValue(meta.getTableKeyField()[i]); if (key!=null) { data.keytypes[i] = key.getType(); } else { throw new KettleStepException(Messages.getString("DatabaseLookup.ERROR0001.FieldRequired5.Exception")+meta.getTableKeyField()[i]+Messages.getString("DatabaseLookup.ERROR0001.FieldRequired6.Exception")); //$NON-NLS-1$ //$NON-NLS-2$ } } } else { throw new KettleStepException(Messages.getString("DatabaseLookup.ERROR0002.UnableToDetermineFieldsOfTable")+meta.getTablename()+"]"); //$NON-NLS-1$ //$NON-NLS-2$ } } lu = new Row(); for (int i=0;i<meta.getStreamKeyField1().length;i++) { if (data.keynrs[i]>=0) { Value value = row.getValue(data.keynrs[i]); // Try to convert type if needed! if (value.getType()!=data.keytypes[i]) value.setType(data.keytypes[i]); lu.addValue( value ); } if (data.keynrs2[i]>=0) { Value value = row.getValue(data.keynrs2[i]); // Try to convert type if needed! if (value.getType()!=data.keytypes[i]) value.setType(data.keytypes[i]); lu.addValue( value ); } } // First, check if we looked up before if (meta.isCached()) add=(Row)data.look.get(lu); else add=null; if (add==null) { if (log.isRowLevel()) logRowlevel(Messages.getString("DatabaseLookup.Log.AddedValuesToLookupRow1")+meta.getStreamKeyField1().length+Messages.getString("DatabaseLookup.Log.AddedValuesToLookupRow2")+lu); //$NON-NLS-1$ //$NON-NLS-2$ data.db.setValuesLookup(lu); add=data.db.getLookup(meta.isFailingOnMultipleResults()); cache_now=true; } if (add==null) // nothing was found, unknown code: add default values { if (meta.isEatingRowOnLookupFailure()) { return false; } if (log.isRowLevel()) logRowlevel(Messages.getString("DatabaseLookup.Log.NoResultsFoundAfterLookup")); //$NON-NLS-1$ add=new Row(); for (int i=0;i<meta.getReturnValueField().length;i++) { if (data.nullif[i]!=null) { add.addValue(new Value(data.nullif[i])); } else { Value v = new Value(meta.getReturnValueNewName()[i], meta.getReturnValueDefaultType()[i]); v.setNull(); add.addValue(v); } } } else { if (log.isRowLevel()) logRowlevel(Messages.getString("DatabaseLookup.Log.FoundResultsAfterLookup")+add); //$NON-NLS-1$ } // Store in cache if we need to! if (meta.isCached() && cache_now) { add.setLogdate(); data.look.put(lu, add); // See if we have to limit the cache_size. if (meta.getCacheSize()>0 && data.look.size()>meta.getCacheSize()) { long last_date=-1L; Enumeration elem = data.look.elements(); Row smallest=null; while (elem.hasMoreElements()) { Row r=(Row)elem.nextElement(); long time = r.getLogtime(); if (last_date<0 || time<last_date) { last_date=time; smallest=r; } } if (smallest!=null) data.look.remove(smallest); } } for (int i=0;i<add.size();i++) { row.addValue( add.getValue(i) ); } return true; }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/85ee5ed6cb6c5a957f1dbe37f478766611b207ef/DatabaseLookup.java/buggy/src/be/ibridge/kettle/trans/step/databaselookup/DatabaseLookup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 1250, 3689, 1972, 12, 1999, 1027, 13, 1216, 1475, 278, 5929, 503, 202, 95, 202, 202, 1999, 20072, 31, 202, 202, 1999, 527, 31, 202, 202, 6494, 1247, 67, 3338, 33, 5743,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 1250, 3689, 1972, 12, 1999, 1027, 13, 1216, 1475, 278, 5929, 503, 202, 95, 202, 202, 1999, 20072, 31, 202, 202, 1999, 527, 31, 202, 202, 6494, 1247, 67, 3338, 33, 5743,...
String message = errors.isEmpty() ? "svnserver reported an error" : ((SVNError) errors.get(0)).getMessage();
String message = errors.isEmpty() ? "svnserver reported an error" : "svn: " + ((SVNError) errors.get(0)).getMessage();
public static Object[] parse(LoggingInputStream is, String templateStr, Object[] target) throws SVNException { if (!is.markSupported()) { throw new SVNException("SVNReader works only with markable input streams"); } if (target != null) { for (int i = 0; i < target.length; i++) { if (target[i] instanceof Collection || target[i] instanceof Map || target[i] instanceof ISVNDirEntryHandler || target[i] instanceof ISVNEditor || target[i] instanceof OutputStream) { continue; } target[i] = null; } } StringBuffer template = normalizeTemplate(templateStr); SVNEditModeReader editorBaton = null; int targetIndex = 0; boolean unconditionalThrow = false; for(int i = 0; i < template.length(); i++) { char ch = template.charAt(i); boolean optional = ch == '?' || ch == '*'; boolean multiple = ch == '*'; boolean doRead = Character.isUpperCase(ch) && !isListed(INVALID_CARDINALITY_SUBJECTS, ch); ch = Character.toLowerCase(ch); if (optional) { // cardinality char next = i + 1 < template.length() ? template.charAt(i + 1) : '<'; doRead = Character.isUpperCase(next) && !isListed(INVALID_CARDINALITY_SUBJECTS, next); next = Character.toLowerCase(next); if (isListed(INVALID_CARDINALITY_SUBJECTS, next)) { throw new SVNException("malformed template '" + templateStr + "' invalid type after cardinality: " + next); } i++; ch = next; } is.mark(0x200); Object result = null; try { if (ch == 'b' || ch == 'i' || ch == 's') { if (ch == 'b') { result = readStringAsBytes(is); } else if (ch == 's') { result = readString(is); } else { result = createDelegatingStream(is); } } else if (ch == 'p') { readChar(is, '('); String name = readString(is); String value = null; // may not be there InputStream is2 = new RollbackInputStream(is); is2.mark(0x100); try { value = readString(is2); } catch (SVNException exception) { try { value = null; is2.reset(); } catch (IOException e1) { } } readChar(is, ')'); result = new String[] {name, value}; } else if (ch == 'z') { readChar(is, '('); String name = readString(is); String value = null; // may not be there readChar(is, '('); InputStream is2 = new RollbackInputStream(is); is2.mark(0x100); try { value = readString(is2); } catch (SVNException exception) { try { value = null; is2.reset(); } catch (IOException e1) { } } readChar(is, ')'); readChar(is, ')'); result = new String[] {name, value}; } else if (ch == 'w') { String word = readWord(is); result = word; } else if (ch == 't') { result = Boolean.valueOf(readBoolean(is)); } else if (ch == 'n') { result = new Long(readNumber(is)); } else if (ch == '[') { readChar(is, '('); String word = readWord(is); if ("failure".equals(word)) { // read errors and throw readChar(is, '('); List errors = new ArrayList(); RollbackInputStream is2 = new RollbackInputStream(is); try { while(true) { is2.mark(0x5); errors.add(readError(is2)); } } catch (SVNException e) { try { is2.reset(); readChar(is2, ')'); readChar(is2, ')'); } catch (IOException e1) { } catch (SVNException e2) {} } String message = errors.isEmpty() ? "svnserver reported an error" : ((SVNError) errors.get(0)).getMessage(); throw new SVNException(message); } else if (!"success".equals(word)) { throw new SVNException("network data doesn't match template, 'success' or 'failure' expected, '" + word + "' read"); } } else if (ch == ')' || ch == ']') { readChar(is, ')'); } else if (ch == '(') { readChar(is, '('); } else if (ch == 'd') { result = readDirEntry(DebugLog.getLoggingInputStream("svn", new RollbackInputStream(is))); } else if (ch == 'f') { result = readStatEntry(DebugLog.getLoggingInputStream("svn", new RollbackInputStream(is))); } else if (ch == 'e') { if (editorBaton == null) { editorBaton = new SVNEditModeReader(); if (target[targetIndex] instanceof ISVNEditor) { editorBaton.setEditor((ISVNEditor) target[targetIndex]); } } readChar(is, '('); String commandName = readWord(is); boolean hasMore; try { hasMore = editorBaton.processCommand(commandName, is); } catch (Throwable th) { unconditionalThrow = true; DebugLog.error(th); if (th instanceof SVNException) { throw ((SVNException) th); } throw new SVNException(th); } if (!"textdelta-chunk".equals(commandName)){ readChar(is, ')'); } if (!hasMore) { return target; } } else if (ch == 'x') { String word = readWord(is); if (!"done".equals(word)) { throw new SVNException("netword data doesn't match template, 'done' was expected, but '" + word + "' read."); } } else if (ch == 'l') { result = readLock(DebugLog.getLoggingInputStream("svn", new RollbackInputStream(is))); } if (doRead) { target = reportResult(target, targetIndex, result, multiple); } if (multiple) { i -= 2; } else if (doRead){ targetIndex++; } } catch(SVNException e) { if (unconditionalThrow) { throw e; } try { is.reset(); } catch (IOException e1) { } if (optional) { if (doRead) { targetIndex++; } } else { throw e; } } } if (target == null) { target = new Object[0]; } return target; }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/88a98258c6ceff2a5b1258eb86603ddbfeaeb7ed/SVNReader.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/io/svn/SVNReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 8526, 1109, 12, 7735, 4348, 353, 16, 514, 1542, 1585, 16, 1033, 8526, 1018, 13, 1216, 29537, 50, 503, 288, 3639, 309, 16051, 291, 18, 3355, 7223, 10756, 288, 5411, 604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 8526, 1109, 12, 7735, 4348, 353, 16, 514, 1542, 1585, 16, 1033, 8526, 1018, 13, 1216, 29537, 50, 503, 288, 3639, 309, 16051, 291, 18, 3355, 7223, 10756, 288, 5411, 604, ...
String oldValue = getTextControl( null ).getText( );
public void widgetSelected( SelectionEvent evt ) { FileDialog fd = new FileDialog( parent.getShell( ), SWT.OPEN ); fd.setFilterExtensions( new String[]{ "*.gif; *.jpg; *.png; *.ico; *.bmp" //$NON-NLS-1$ } ); fd.setFilterNames( new String[]{ "SWT image" + " (gif, jpeg, png, ico, bmp)" //$NON-NLS-1$ //$NON-NLS-2$ } ); String file = fd.open( ); if ( file != null ) { String oldValue = getTextControl( null ).getText( ); getTextControl( null ).setText( file ); fValue = file; fireValueChanged( VALUE, oldValue, fValue ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/3db900b760af24686a4f6ffff7e4dc15c19b1036/BgImageFieldEditor.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/BgImageFieldEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 6324, 262, 9506, 202, 95, 6862, 202, 812, 6353, 5194, 273, 394, 1387, 6353, 12, 982, 18, 588, 13220, 12, 262, 16, 6862, 1082, 202, 55, 8588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 6324, 262, 9506, 202, 95, 6862, 202, 812, 6353, 5194, 273, 394, 1387, 6353, 12, 982, 18, 588, 13220, 12, 262, 16, 6862, 1082, 202, 55, 8588,...
super.select(tab);
public final void select(TabComponent tab) { super.select(tab); }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/TabbedPaneComponent.java/clean/org.rcfaces.core/src/org/rcfaces/core/component/TabbedPaneComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 2027, 12, 5661, 1841, 3246, 13, 288, 6647, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 2027, 12, 5661, 1841, 3246, 13, 288, 6647, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
newAtoms[g] = o.getAtomAt(getAtomNumber(atoms[g]));
newAtoms[g] = o.getAtomAt(getAtomNumber(natoms[g]));
public Object clone() { AtomContainer o = null; Bond bond = null, newBond = null; Atom[] atoms, newAtoms; try { o = (AtomContainer)super.clone(); } catch (Exception e) { e.printStackTrace(System.err); } o.removeAllElements(); for (int f = 0; f < getAtomCount(); f++) { o.addAtom((Atom)getAtomAt(f).clone()); } for (int f = 0; f < getBondCount(); f++) { bond = getBondAt(f); atoms = bond.getAtoms(); newAtoms = new Atom[atoms.length]; newBond = new Bond(); for (int g = 0; g < atoms.length; g++) { try { newAtoms[g] = o.getAtomAt(getAtomNumber(atoms[g])); } catch(Exception exc) { exc.printStackTrace(); } } newBond.setAtoms(newAtoms); newBond.setOrder(bond.order); o.addBond(newBond); } return o; }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/34d098c80abd8fb91537af27cee7d9f8a6860f36/AtomContainer.java/clean/org/openscience/cdk/AtomContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 3236, 1435, 202, 95, 202, 202, 3641, 2170, 320, 273, 446, 31, 202, 202, 9807, 8427, 273, 446, 16, 394, 9807, 273, 446, 31, 202, 202, 3641, 8526, 9006, 16, 394, 14280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 3236, 1435, 202, 95, 202, 202, 3641, 2170, 320, 273, 446, 31, 202, 202, 9807, 8427, 273, 446, 16, 394, 9807, 273, 446, 31, 202, 202, 3641, 8526, 9006, 16, 394, 14280, ...
public long getNextDirectoryID() throws KettleDatabaseException
public synchronized long getNextDirectoryID() throws KettleDatabaseException
public long getNextDirectoryID() throws KettleDatabaseException { return getNextID("R_DIRECTORY", "ID_DIRECTORY"); }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/9a23bf7234591fe690816bbf6320414c2ad3eaae/Repository.java/clean/src/be/ibridge/kettle/repository/Repository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1525, 6927, 2853, 734, 1435, 1216, 1475, 278, 5929, 4254, 503, 202, 95, 202, 202, 2463, 6927, 734, 2932, 54, 67, 17229, 3113, 315, 734, 67, 17229, 8863, 202, 97, 2, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1525, 6927, 2853, 734, 1435, 1216, 1475, 278, 5929, 4254, 503, 202, 95, 202, 202, 2463, 6927, 734, 2932, 54, 67, 17229, 3113, 315, 734, 67, 17229, 8863, 202, 97, 2, -100, -100...
protected void initExpandRe() { try { m_expandRE = new RE(NOTIFD_EXPANSION_PARM); } catch (RESyntaxException e) { // this shouldn't throw an exception, should be tested prior to // runtime log().error("failed to compile RE " + NOTIFD_EXPANSION_PARM, e); // FIXME: wrap this in runtime exception since SOMETIMES we are using // an incorrect version of regexp pulled from xalan that is doesn't // extend RuntimeException only Exception. We really need to fix that throw new RuntimeException(e); } }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/b4e4e498cbc03b549843da8bec3f6ed55deefc21/BroadcastEventProcessor.java/clean/opennms-services/src/main/java/org/opennms/netmgt/notifd/BroadcastEventProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 225, 918, 225, 1208, 12271, 426, 1435, 225, 288, 7734, 775, 225, 288, 13491, 312, 67, 12320, 862, 225, 273, 225, 394, 225, 2438, 12, 4400, 5501, 40, 67, 16109, 1258, 3686, 67, 277...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 225, 918, 225, 1208, 12271, 426, 1435, 225, 288, 7734, 775, 225, 288, 13491, 312, 67, 12320, 862, 225, 273, 225, 394, 225, 2438, 12, 4400, 5501, 40, 67, 16109, 1258, 3686, 67, 277...
Track track = getSelectedTrack(); if (track == null) return; TrackInfoDialog trackInfoDialog = new TrackInfoDialog(display, shell); trackInfoDialog.displayTrackInfo(track, clientToPass); }
for (int i = 0; i < ratingButtons.length; i++) { ThreeModeButton button = ratingButtons[i]; button.setSelection(button == e.widget); } setRating(getSelectedTrack(), value); }
public void widgetSelected(SelectionEvent e) { Track track = getSelectedTrack(); if (track == null) return; TrackInfoDialog trackInfoDialog = new TrackInfoDialog(display, shell); trackInfoDialog.displayTrackInfo(track, clientToPass); }
11635 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11635/fe75ca4b1294d1a0ae8dd74977ea88831c5d5606/Client.java/clean/trunk/irate/irate/swt/Client.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 3639, 11065, 3298, 273, 16625, 4402, 5621, 3639, 309, 261, 4101, 422, 446, 13, 1850, 327, 31, 7734, 11065, 966, 6353, 3298, 966, 6353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 3639, 11065, 3298, 273, 16625, 4402, 5621, 3639, 309, 261, 4101, 422, 446, 13, 1850, 327, 31, 7734, 11065, 966, 6353, 3298, 966, 6353...
processProperty(ontModel, prop, tgtNamespace, false);
processProperty(ontModel, prop, tgtNs, false);
public Model process(OntModel ontModel, String tgtNamespace) throws Exception { tgtNamespace = OntologyUtil.correctNamespace(tgtNamespace); attributes = new HashMap(); references = new HashMap(); collections = new HashMap(); // Deal with properties, place in maps of class_name/set_of fields for (Iterator i = ontModel.listOntProperties(); i.hasNext(); ) { OntProperty prop = (OntProperty) i.next(); if (!prop.getNameSpace().equals(tgtNamespace)) { continue; } processProperty(ontModel, prop, tgtNamespace, false); if (prop.hasInverse()) { processProperty(ontModel, (OntProperty) prop.listInverse().next(), tgtNamespace, true); } } // Deal with classes Set classes = new HashSet(); Iterator i = ontModel.listClasses(); while (i.hasNext()) { OntClass cls = (OntClass) i.next(); if (cls.getNameSpace() != null && cls.getNameSpace().equals(tgtNamespace)) { String clsName = pkg + "." + cls.getLocalName(); StringBuffer superClasses = new StringBuffer(); for (Iterator j = cls.listSuperClasses(true); j.hasNext(); ) { OntClass superCls = (OntClass) j.next(); if (superCls.getNameSpace() != null && superCls.getNameSpace().equals(tgtNamespace)) { superClasses.append(pkg + "." + superCls.getLocalName()); if (j.hasNext()) { superClasses.append(" "); } } } String superClassList = null; if (superClasses.length() != 0) { superClassList = superClasses.toString(); } classes.add(new ClassDescriptor(clsName, superClassList, true, getFieldSetForClass(attributes, cls.getLocalName()), getFieldSetForClass(references, cls.getLocalName()), getFieldSetForClass(collections, cls.getLocalName()))); } } return new Model(modelName, tgtNamespace, classes); }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/afc0907c4e134c1aaa4af28fb0f17d1b60bb046d/Owl2InterMine.java/buggy/intermine/src/java/org/intermine/ontology/Owl2InterMine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3164, 1207, 12, 51, 496, 1488, 603, 88, 1488, 16, 514, 11680, 3402, 13, 1216, 1185, 288, 3639, 11680, 3402, 273, 29683, 1304, 18, 6746, 3402, 12, 29672, 3402, 1769, 3639, 1677, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3164, 1207, 12, 51, 496, 1488, 603, 88, 1488, 16, 514, 11680, 3402, 13, 1216, 1185, 288, 3639, 11680, 3402, 273, 29683, 1304, 18, 6746, 3402, 12, 29672, 3402, 1769, 3639, 1677, 273,...
fontFile.println("%!FontType1-1.0: " + getFont().getName());
fontFile.println("%!FontType1-1.0: " + getFont().getName());
protected void openIncludeFont() throws IOException { // begin clear text ascii portion fontFile.println("%!FontType1-1.0: " + getFont().getName()); // unknown version number// fontFile.println("%%CreationDate: " +// DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL).// format(new Date())); fontFile.println("% Generated by: " + getClass().getName()); fontFile.println("11 dict begin"); fontFile.println("/FontInfo 8 dict dup begin"); fontFile.println("/FullName ("+getFont().getPSName()+") readonly def"); fontFile.println("/FamilyName ("+getFont().getFamily()+") readonly def"); fontFile.println("end readonly def"); fontFile.println("/FontName /"+getFontName()+" def"); fontFile.println("/PaintType 0 def"); fontFile.println("/FontType 1 def"); fontFile.println("/FontMatrix ["+1/FONT_SIZE+" 0.0 0.0 "+1/FONT_SIZE+" 0.0 0.0] readonly def"); }
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/f1a2e8bd347e294e5391728379b76d4500a7093d/FontEmbedderType1.java/buggy/freehep-graphicsio/src/main/java/org/freehep/graphicsio/font/FontEmbedderType1.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1696, 8752, 5711, 1435, 1216, 1860, 288, 3639, 368, 2376, 2424, 977, 11384, 14769, 3639, 3512, 812, 18, 8222, 27188, 5, 5711, 559, 21, 17, 21, 18, 20, 30, 315, 397, 18776, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1696, 8752, 5711, 1435, 1216, 1860, 288, 3639, 368, 2376, 2424, 977, 11384, 14769, 3639, 3512, 812, 18, 8222, 27188, 5, 5711, 559, 21, 17, 21, 18, 20, 30, 315, 397, 18776, 76...
msg = "Use <em>a</em> instead of 'an' if the following "+
String repl = "a"; if (prevToken.equals("An")) repl = "A"; msg = "Use <em>" +repl+ "</em> instead of '" +prevToken+ "' if the following "+
public RuleMatch[] match(AnalyzedSentence text) { List ruleMatches = new ArrayList(); AnalyzedToken[] tokens = text.getTokens(); String prevToken = ""; int pos = 0; int prevPos = 0; for (int i = 0; i < tokens.length; i++) { String token = tokens[i].getToken(); String origToken = token; if (token.trim().equals("")) { // ignore } else { boolean doesRequireA = false; boolean doesRequireAn = false; // check for exceptions: boolean isException = false; String[] parts = token.split("[-']"); // for example, in "one-way" only "one" is relevant if (parts.length >= 1) { token = parts[0]; } token = token.replaceAll("[^a-zA-Z0-9]", ""); // e.g. >>an "industry party"<< if (token.length() == 0) { pos += origToken.length(); continue; } char tokenFirstChar = token.charAt(0); if (requiresA.contains(token.toLowerCase())) { isException = true; doesRequireA = true; } if (requiresAn.contains(token.toLowerCase())) { if (isException) { throw new IllegalStateException(token + " is listed in both det_a.txt and det_an.txt"); } isException = true; doesRequireAn = true; } if (!isException) { if (isVowel(tokenFirstChar)) { doesRequireAn = true; } else { doesRequireA = true; } } //System.err.println(prevToken + " " +token + ", a="+doesRequireA + ", an="+doesRequireAn); String msg = null; if (prevToken.toLowerCase().equals("a") && doesRequireAn) { msg = "Use <em>an</em> instead of 'a' if the following "+ "word starts with a vowel sound, e.g. 'an article', "+ "'an hour'"; } else if (prevToken.toLowerCase().equals("an") && doesRequireA) { msg = "Use <em>a</em> instead of 'an' if the following "+ "word doesn't start with a vowel sound, e.g. 'a sentence', "+ "'a university'"; } if (msg != null) { RuleMatch ruleMatch = new RuleMatch(this, prevPos, prevPos+prevToken.length(), msg); ruleMatches.add(ruleMatch); } prevToken = token; prevPos = pos; } pos += origToken.length(); } return toRuleMatchArray(ruleMatches); }
10628 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10628/720e88bb7f218ae38a8e32b8dcb02aed6aac87dc/AvsAnRule.java/clean/trunk/JLanguageTool/src/java/de/danielnaber/languagetool/rules/en/AvsAnRule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 6781, 2060, 8526, 845, 12, 979, 18409, 17923, 977, 13, 288, 565, 987, 1720, 6869, 273, 394, 2407, 5621, 565, 1922, 18409, 1345, 8526, 2430, 273, 977, 18, 588, 5157, 5621, 565, 514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6781, 2060, 8526, 845, 12, 979, 18409, 17923, 977, 13, 288, 565, 987, 1720, 6869, 273, 394, 2407, 5621, 565, 1922, 18409, 1345, 8526, 2430, 273, 977, 18, 588, 5157, 5621, 565, 514, ...
this.localNames = new ArrayList(localNames.size()); this.localValues = new ArrayList(localNames.size());
this.localNames = new ArrayList(someLocalNames.size()); this.localValues = new ArrayList(someLocalNames.size());
public void addLocalVariables(List localNames) { if (this.localNames == null || this.localNames.isEmpty()) { this.localNames = new ArrayList(localNames.size()); this.localValues = new ArrayList(localNames.size()); } this.localNames.addAll(localNames); this.localValues.addAll(Collections.nCopies(localNames.size(), rubyNil)); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/ca6b16e996ea9af83ce593594b9c69b9364a9924/Scope.java/clean/src/org/jruby/runtime/Scope.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2042, 6158, 12, 682, 1191, 1557, 13, 288, 3639, 309, 261, 2211, 18, 3729, 1557, 422, 446, 747, 333, 18, 3729, 1557, 18, 291, 1921, 10756, 288, 5411, 333, 18, 3729, 1557,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2042, 6158, 12, 682, 1191, 1557, 13, 288, 3639, 309, 261, 2211, 18, 3729, 1557, 422, 446, 747, 333, 18, 3729, 1557, 18, 291, 1921, 10756, 288, 5411, 333, 18, 3729, 1557,...
public org.quickfix.field.OrderQty getOrderQty() throws FieldNotFound { org.quickfix.field.OrderQty value = new org.quickfix.field.OrderQty();
public quickfix.field.OrderQty getOrderQty() throws FieldNotFound { quickfix.field.OrderQty value = new quickfix.field.OrderQty();
public org.quickfix.field.OrderQty getOrderQty() throws FieldNotFound { org.quickfix.field.OrderQty value = new org.quickfix.field.OrderQty(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/DontKnowTrade.java/buggy/src/java/src/quickfix/fix42/DontKnowTrade.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2448, 53, 4098, 11973, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2448, 53, 4098, 460, 273, 394, 2358, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2448, 53, 4098, 11973, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2448, 53, 4098, 460, 273, 394, 2358, 18,...
int itemCount = displayedItems.length;
int itemCount = Math.min(displayedItems.length,numShowItems);
private void initializeListeners() { canvas.addPaintListener(new PaintListener() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.PaintListener#paintControl(org.eclipse.swt.events.PaintEvent) */ public void paintControl(PaintEvent event) { GC gc = event.gc; ILabelProvider labelProvider = (ILabelProvider) getLabelProvider(); int itemCount = displayedItems.length; int yOffset = 0; if(numShowItems == 1){//If there is a single item try to center it Rectangle clientArea = canvas.getParent().getClientArea(); int size = clientArea.height; yOffset = size - (fontMetrics.getHeight() * itemCount); yOffset = yOffset / 2; } for (int i = 0; i < itemCount; i++) { String string = labelProvider.getText(displayedItems[i]); gc.drawString(string,2,yOffset + (i * fontMetrics.getHeight()),true); } } }); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e3572c84eb84e59f9d71db3270b0511bed2a8e3e/ProgressViewer.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4046, 5583, 1435, 288, 202, 202, 15424, 18, 1289, 12699, 2223, 12, 2704, 30001, 2223, 1435, 288, 1082, 202, 20308, 9506, 380, 261, 5836, 17, 24060, 13, 9506, 380, 4697, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 5583, 1435, 288, 202, 202, 15424, 18, 1289, 12699, 2223, 12, 2704, 30001, 2223, 1435, 288, 1082, 202, 20308, 9506, 380, 261, 5836, 17, 24060, 13, 9506, 380, 4697, 38...
this.cBase = cBase;
getRubyFrame().getCbase().setClassValue(cBase);
public void setCBase(RubyModule cBase) { this.cBase = cBase; }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/b3fad11fe9fed3c3b955874e822c0e093e06dfc8/Ruby.java/clean/org/jruby/Ruby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11440, 2171, 12, 54, 10340, 3120, 276, 2171, 13, 288, 3639, 4170, 10340, 3219, 7675, 588, 39, 1969, 7675, 542, 797, 620, 12, 71, 2171, 1769, 4202, 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, 918, 11440, 2171, 12, 54, 10340, 3120, 276, 2171, 13, 288, 3639, 4170, 10340, 3219, 7675, 588, 39, 1969, 7675, 542, 797, 620, 12, 71, 2171, 1769, 4202, 289, 2, -100, -100, -100, -...
targetPublicKey_ = sectkn;
if (targetSecmec_ == NetConfiguration.SECMEC_USRSSBPWD) targetSeed_ = sectkn; else targetPublicKey_ = sectkn;
void setAccessSecurityData(int secchkcd, int desiredSecmec, int[] secmecList, boolean sectknReceived, byte[] sectkn) throws DisconnectException { // - if the secchkcd is not 0, then map to an exception. if (secchkcd != CodePoint.SECCHKCD_00) { // the implied severity code is error netAgent_.setSvrcod(CodePoint.SVRCOD_ERROR); agent_.accumulateReadException(mapSecchkcd(secchkcd)); } else { // - verify that the secmec parameter reflects the value sent // in the ACCSEC command. // should we check for null list if ((secmecList.length == 1) && (secmecList[0] == desiredSecmec)) { // the security mechanism returned from the server matches // the mechanism requested by the client. targetSecmec_ = secmecList[0]; if ((targetSecmec_ == NetConfiguration.SECMEC_USRENCPWD) || (targetSecmec_ == NetConfiguration.SECMEC_EUSRIDPWD) || (targetSecmec_ == NetConfiguration.SECMEC_EUSRIDDTA) || (targetSecmec_ == NetConfiguration.SECMEC_EUSRPWDDTA)) { // a security token is required for USRENCPWD, or EUSRIDPWD. if (!sectknReceived) { agent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(agent_, new ClientMessageId(SQLState.NET_SECTKN_NOT_RETURNED))); } else { targetPublicKey_ = sectkn; if (encryptionManager_ != null) { encryptionManager_.resetSecurityKeys(); } } } } else { // accumulate an SqlException and don't disconnect yet // if a SECCHK was chained after this it would receive a secchk code // indicating the security mechanism wasn't supported and that would be a // chain breaking exception. if no SECCHK is chained this exception // will be surfaced by endReadChain // agent_.accumulateChainBreakingReadExceptionAndThrow ( // new DisconnectException (agent_,"secmec not supported ","0000", -999)); agent_.accumulateReadException(new SqlException(agent_.logWriter_, new ClientMessageId(SQLState.NET_SECKTKN_NOT_RETURNED))); } } }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/7233e3346ec2acad4a9ccd4e66ea09694856641b/NetConnection.java/buggy/java/client/org/apache/derby/client/net/NetConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 444, 1862, 4368, 751, 12, 474, 1428, 27038, 4315, 16, 1171, 9079, 509, 6049, 2194, 81, 557, 16, 1171, 9079, 509, 8526, 1428, 81, 557, 682, 16, 1171, 9079, 1250, 29140, 21112, 8872, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 1862, 4368, 751, 12, 474, 1428, 27038, 4315, 16, 1171, 9079, 509, 6049, 2194, 81, 557, 16, 1171, 9079, 509, 8526, 1428, 81, 557, 682, 16, 1171, 9079, 1250, 29140, 21112, 8872, ...
DataTools.writeReverseInt(out, 8);
int duration = numWritten * 50; int timeScale = 100; int atomLength = 685 + 8*numWritten; DataTools.writeReverseInt(out, atomLength);
public void save(String id, Image image, boolean last) throws FormatException, IOException { if (image == null) { throw new FormatException("Image is null"); } BufferedImage img = ImageTools.makeImage(image); // get the width and height of the image int width = img.getWidth(); int height = img.getHeight(); // retrieve pixel data for this plane byte[] buf = ImageTools.getPixels(img, width, height); // reorder the scanlines byte[] temp = buf; buf = new byte[temp.length]; int newScanline = height - 1; for (int oldScanline=0; oldScanline<height; oldScanline++) { System.arraycopy(temp, oldScanline*width, buf, newScanline*width, width); newScanline--; } if (!id.equals(currentId)) { // -- write the header -- offsets = new Vector(); currentId = id; out = new RandomAccessFile(id, "rw"); numWritten++; DataTools.writeReverseShort(out, 0); DataTools.writeReverseShort(out, 8); DataTools.writeString(out, "wide"); // -- write the pixel data (mdat) -- numBytes = buf.length; byteCountOffset = out.getFilePointer(); DataTools.writeReverseInt(out, numBytes + 8); DataTools.writeString(out, "mdat"); out.write(buf); offsets.add(new Integer(0)); } else { // update the number of pixel bytes written int planeOffset = numBytes; numBytes += buf.length; out.seek(byteCountOffset); DataTools.writeReverseInt(out, numBytes + 8); // write this plane's pixel data out.seek(out.length()); out.write(buf); offsets.add(new Integer(planeOffset)); numWritten++; } if (last) { // -- write a stub 'moov' atom for compatibility with other readers -- DataTools.writeReverseInt(out, 8); DataTools.writeString(out, "moov"); // -- write the dimension info (tkhd) -- DataTools.writeReverseInt(out, 94); DataTools.writeString(out, "tkhd"); // write 74 bytes of 0 for (int i=0; i<70; i+=4) { DataTools.writeReverseInt(out, 0); } DataTools.writeReverseShort(out, 0); // write the image width DataTools.writeReverseInt(out, width); // write the image height DataTools.writeReverseInt(out, height); // write another 4 bytes of 0 DataTools.writeReverseInt(out, 0); // -- write the number of planes (stsz) -- DataTools.writeReverseInt(out, 20); DataTools.writeString(out, "stsz"); // write 4 bytes of 0 DataTools.writeReverseInt(out, 0); // write the raw size of a plane DataTools.writeReverseInt(out, buf.length); // write the number of planes DataTools.writeReverseInt(out, numWritten); // -- write the plane offset (stco) -- DataTools.writeReverseInt(out, 16 + 4*numWritten); DataTools.writeString(out, "stco"); // write four bytes of 0 DataTools.writeReverseInt(out, 0); // write the number of planes DataTools.writeReverseInt(out, numWritten); // write the offsets for (int i=0; i<offsets.size(); i++) { DataTools.writeReverseInt(out, ((Integer) offsets.get(i)).intValue()); } // -- write the codec info (stsd) -- DataTools.writeReverseInt(out, 100); DataTools.writeString(out, "stsd"); // write 12 bytes of 0 for (int i=0; i<12; i+=4) { DataTools.writeReverseInt(out, 0); } DataTools.writeString(out, "raw "); // codec -- uncompressed // write 74 bytes of 0 for (int i=0; i<70; i+=4) { DataTools.writeReverseInt(out, 0); } DataTools.writeReverseShort(out, 0); // write the number of bits per pixel DataTools.writeReverseShort(out, 8); out.close(); } }
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/348dfae4284155c7bb6cc26a2526ac1c9cc6f646/QTWriter.java/clean/loci/formats/QTWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1923, 12, 780, 612, 16, 3421, 1316, 16, 1250, 1142, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 261, 2730, 422, 446, 13, 288, 1377, 604, 394, 4077, 503, 2932, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1923, 12, 780, 612, 16, 3421, 1316, 16, 1250, 1142, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 261, 2730, 422, 446, 13, 288, 1377, 604, 394, 4077, 503, 2932, 2...
ByteArrayInputStream bais = new ByteArrayInputStream(val, i, val.length - i); Hash hash = new Hash(); byte rv[] = null; try { bais.read(); hash.readBytes(bais); rv = new byte[val.length - i - 1 - 32]; bais.read(rv); } catch (Exception e) { if (_log.shouldLog(Log.ERROR)) _log.error("Internal error reading value", e);
byte hashData[] = new byte[Hash.HASH_LENGTH]; System.arraycopy(val, i + 1, hashData, 0, Hash.HASH_LENGTH); Hash hash = new Hash(hashData); int payloadLen = val.length - i - 1 - Hash.HASH_LENGTH; if (payloadLen < 0) { if (_log.shouldLog(Log.ERROR)) _log.error("Decrypted data is too small (" + (val.length - i)+ ")");
public byte[] decrypt(byte encrypted[], PrivateKey privateKey) { if ((encrypted == null) || (encrypted.length > 514)) throw new IllegalArgumentException("Data to decrypt must be <= 514 bytes at the moment"); long start = _context.clock().now(); byte[] ybytes = new byte[257]; byte[] dbytes = new byte[257]; System.arraycopy(encrypted, 0, ybytes, 0, 257); System.arraycopy(encrypted, 257, dbytes, 0, 257); BigInteger y = new NativeBigInteger(1, ybytes); BigInteger d = new NativeBigInteger(1, dbytes); BigInteger a = new NativeBigInteger(1, privateKey.getData()); BigInteger y1p = CryptoConstants.elgp.subtract(BigInteger.ONE).subtract(a); BigInteger ya = y.modPow(y1p, CryptoConstants.elgp); BigInteger m = ya.multiply(d); m = m.mod(CryptoConstants.elgp); byte val[] = m.toByteArray(); int i = 0; for (i = 0; i < val.length; i++) if (val[i] != (byte) 0x00) break; ByteArrayInputStream bais = new ByteArrayInputStream(val, i, val.length - i); Hash hash = new Hash(); byte rv[] = null; try { bais.read(); // skip first byte hash.readBytes(bais); rv = new byte[val.length - i - 1 - 32]; bais.read(rv); } catch (Exception e) { if (_log.shouldLog(Log.ERROR)) _log.error("Internal error reading value", e); return null; } Hash calcHash = _context.sha().calculateHash(rv); boolean ok = calcHash.equals(hash); long end = _context.clock().now(); long diff = end - start; if (diff > 1000) { if (_log.shouldLog(Log.WARN)) _log.warn("Took too long to decrypt and verify ElGamal block (" + diff + "ms)"); } _context.statManager().addRateData("crypto.elGamal.decrypt", diff, diff); if (ok) { //_log.debug("Hash matches: " + DataHelper.toString(hash.getData(), hash.getData().length)); return rv; } if (_log.shouldLog(Log.DEBUG)) _log.debug("Doesn't match hash [calc=" + calcHash + " sent hash=" + hash + "]\ndata = " + Base64.encode(rv), new Exception("Doesn't match")); return null; }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/c19355a7b21eb1bf5e62fcbb56ec14e54dcc49d2/ElGamalEngine.java/buggy/core/java/src/net/i2p/crypto/ElGamalEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 8420, 12, 7229, 6901, 63, 6487, 14018, 11896, 13, 288, 3639, 309, 14015, 18702, 422, 446, 13, 747, 261, 18702, 18, 2469, 405, 1381, 3461, 3719, 5411, 604, 394, 2754, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 8420, 12, 7229, 6901, 63, 6487, 14018, 11896, 13, 288, 3639, 309, 14015, 18702, 422, 446, 13, 747, 261, 18702, 18, 2469, 405, 1381, 3461, 3719, 5411, 604, 394, 2754, 293...
if(getInstanceVariables().size() > 0) { StringBuffer part = new StringBuffer(); String cname = getMetaClass().getRealClass().getName(); part.append("#<").append(cname).append(":0x"); part.append(Integer.toHexString(System.identityHashCode(this))); part.append(" "); if(!getRuntime().registerInspecting(this)) { /* 6:tags 16:addr 1:eos */ part.append("...>"); return getRuntime().newString(part.toString()); } try { String sep = ""; for (Iterator iter = instanceVariableNames(); iter.hasNext();) { String name = (String) iter.next(); part.append(sep); part.append(name); part.append("="); part.append(getInstanceVariable(name).callMethod("inspect")); sep = ", "; } part.append(">"); return getRuntime().newString(part.toString()); } finally { getRuntime().unregisterInspecting(this); } }
public IRubyObject inspect() { // TODO Review this and either remove the comment, or do it // if (TYPE(obj) == T_OBJECT // && ROBJECT(obj)->iv_tbl // && ROBJECT(obj)->iv_tbl->num_entries > 0) { // VALUE str; // char *c; // // c = rb_class2name(CLASS_OF(obj)); // /*if (rb_inspecting_p(obj)) { // str = rb_str_new(0, strlen(c)+10+16+1); /* 10:tags 16:addr 1:eos */ // sprintf(RSTRING(str)->ptr, "#<%s:0x%lx ...>", c, obj); // RSTRING(str)->len = strlen(RSTRING(str)->ptr); // return str; // }*/ // str = rb_str_new(0, strlen(c)+6+16+1); /* 6:tags 16:addr 1:eos */ // sprintf(RSTRING(str)->ptr, "-<%s:0x%lx ", c, obj); // RSTRING(str)->len = strlen(RSTRING(str)->ptr); // return rb_protect_inspect(inspect_obj, obj, str); // } // return rb_funcall(obj, rb_intern("to_s"), 0, 0); // } return callMethod("to_s"); }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/adc018ace5f125349d8d0975b3035f19b603568c/RubyObject.java/clean/src/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 5334, 1435, 288, 3639, 368, 2660, 21354, 333, 471, 3344, 1206, 326, 2879, 16, 578, 741, 518, 3639, 368, 377, 309, 261, 2399, 12, 2603, 13, 422, 399, 67, 9422, 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, 15908, 10340, 921, 5334, 1435, 288, 3639, 368, 2660, 21354, 333, 471, 3344, 1206, 326, 2879, 16, 578, 741, 518, 3639, 368, 377, 309, 261, 2399, 12, 2603, 13, 422, 399, 67, 9422, 3...
public SimpleAuthenticationInfo(Principal principal, Object credentials, Collection<String> roles) { this.principal = principal; this.credentials = credentials; this.roles = roles;
public SimpleAuthenticationInfo() { this.roles = new HashSet<String>(); this.permissions = new HashSet<Permission>();
public SimpleAuthenticationInfo(Principal principal, Object credentials, Collection<String> roles) { this.principal = principal; this.credentials = credentials; this.roles = roles; }
2782 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2782/53c50c896537df899d7232f1f4c54ad9c13cfd4e/SimpleAuthenticationInfo.java/buggy/jsecurity/ri/business/src/org/jsecurity/ri/authc/module/dao/SimpleAuthenticationInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4477, 6492, 966, 12, 9155, 8897, 16, 1033, 4448, 16, 2200, 32, 780, 34, 4900, 13, 288, 3639, 333, 18, 26138, 273, 8897, 31, 3639, 333, 18, 11687, 273, 4448, 31, 3639, 333, 18, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4477, 6492, 966, 12, 9155, 8897, 16, 1033, 4448, 16, 2200, 32, 780, 34, 4900, 13, 288, 3639, 333, 18, 26138, 273, 8897, 31, 3639, 333, 18, 11687, 273, 4448, 31, 3639, 333, 18, 7...
}
}
public boolean redundant() { if (source.isInputTrace() && dest.isFilterTrace()) { //if this is a input->filter and no inputs then unnecessary if (((InputTraceNode)source).noInputs()) { System.out.println("source: " + source + ", dest: " + dest + " size: " + size); return true; } //if only one source to the input and the dram for the //previous buffer is the same then redunant OutputTraceNode out = ((InputTraceNode)source).getParent().getDepends()[0].getTail(); if (((InputTraceNode)source).oneInput() && OffChipBuffer.getBuffer(out, source).getDRAM() == dram) return true; } else if (source.isOutputTrace() && dest.isInputTrace()) { //one output and the dram is the same as the previous if (((OutputTraceNode)source).oneOutput() && OffChipBuffer.getBuffer(source.getPrevious(), source).getDRAM() == dram) return true; } else if (source.isFilterTrace() && dest.isOutputTrace()) { //if this a filter->outputtrace and the output has no outputs if (((OutputTraceNode)dest).noOutputs()) return true; } return false; }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/30ab985efa4b511a4c707b814532c33b63eebc03/OffChipBuffer.java/buggy/streams/src/at/dms/kjc/spacetime/OffChipBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 19530, 1435, 377, 288, 202, 430, 261, 3168, 18, 291, 1210, 3448, 1435, 597, 1570, 18, 291, 1586, 3448, 10756, 288, 202, 565, 368, 430, 333, 353, 279, 810, 2122, 2188, 471, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19530, 1435, 377, 288, 202, 430, 261, 3168, 18, 291, 1210, 3448, 1435, 597, 1570, 18, 291, 1586, 3448, 10756, 288, 202, 565, 368, 430, 333, 353, 279, 810, 2122, 2188, 471, 1...
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessStream(id); // initialize an array containing tag offsets, so we can // use an O(1) search instead of O(n) later. // Also determine whether we will be reading color or grayscale // images byte[] toRead = new byte[4]; in.read(toRead); long order = batoi(toRead); // byte ordering little = toRead[2] != 0xff || toRead[3] != 0xff; //toRead = new byte[4]; Vector v = new Vector(); // a temp vector containing offsets. // Get first offset. //in.seek(16); in.skipBytes(12); in.read(toRead); int nextOffset = batoi(toRead); int nextOffsetTemp; boolean first = true; while(nextOffset != 0) { in.seek(nextOffset + 4); in.read(toRead); // get next tag, but still need this one nextOffsetTemp = batoi(toRead); in.read(toRead); if ((new String(toRead)).equals("PICT")) { boolean ok = true; if (first) { // ignore first image if it is called "Original Image" (pure white) first = false; in.skipBytes(47); byte[] layerNameBytes = new byte[127]; in.read(layerNameBytes); String layerName = new String(layerNameBytes); if (layerName.startsWith("Original Image")) ok = false; } if (nextOffset == nextOffsetTemp) { v.remove(v.size() - 1); break; } if (ok) v.add(new Integer(nextOffset)); // add THIS tag offset } if (nextOffset == nextOffsetTemp) break; nextOffset = nextOffsetTemp; } in.seek(((Integer) v.firstElement()).intValue()); // create and populate the array of offsets from the vector numBlocks = v.size(); offsets = new int[numBlocks]; for (int i = 0; i < numBlocks; i++) { offsets[i] = ((Integer) v.get(i)).intValue(); } // populate the imageTypes that the file uses toRead = new byte[2]; imageType = new int[numBlocks]; for (int i = 0; i < numBlocks; i++) { in.seek(offsets[i]); in.skipBytes(40); in.read(toRead); imageType[i] = batoi(toRead); } initMetadata(); }
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/2df09d33bfdc966378aae0cc09cb503afb983bc2/OpenlabReader.java/buggy/loci/formats/in/OpenlabReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 6459, 2738, 812, 12, 780, 350, 13, 15069, 9291, 16, 14106, 95, 9565, 18, 2738, 812, 12, 350, 1769, 267, 33, 2704, 8529, 1862, 1228, 12, 350, 1769, 759, 11160, 304, 1126, 1213, 3280, 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, 4750, 6459, 2738, 812, 12, 780, 350, 13, 15069, 9291, 16, 14106, 95, 9565, 18, 2738, 812, 12, 350, 1769, 267, 33, 2704, 8529, 1862, 1228, 12, 350, 1769, 759, 11160, 304, 1126, 1213, 3280, 26...
assertNull( "Check no other cause", e.getCause() );
assertTrue( true );
public void testSnapshotExternalExtension() throws Exception { ReleaseConfiguration releaseConfiguration = createConfigurationFromProjects( "external-snapshot-extension" ); try { phase.execute( releaseConfiguration ); fail( "Should have failed execution" ); } catch ( ReleaseExecutionException e ) { assertNull( "Check no other cause", e.getCause() ); } try { phase.simulate( releaseConfiguration ); fail( "Should have failed execution" ); } catch ( ReleaseExecutionException e ) { assertNull( "Check no other cause", e.getCause() ); } }
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/d5c32346773fdffbb7d1fb61552050c9d9bfa5f5/CheckDependencySnapshotsPhaseTest.java/buggy/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/CheckDependencySnapshotsPhaseTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4568, 6841, 3625, 1435, 3639, 1216, 1185, 565, 288, 3639, 10819, 1750, 3992, 1750, 273, 752, 1750, 1265, 15298, 12, 315, 9375, 17, 11171, 17, 6447, 6, 11272, 3639, 775, 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, 1842, 4568, 6841, 3625, 1435, 3639, 1216, 1185, 565, 288, 3639, 10819, 1750, 3992, 1750, 273, 752, 1750, 1265, 15298, 12, 315, 9375, 17, 11171, 17, 6447, 6, 11272, 3639, 775, 3...
if(bean.getPropertyValue(propertyName) == null) { if(bean.isWritableProperty(propertyName)) { try { MetaClass mc = InvokerHelper .getInstance() .getMetaRegistry() .getMetaClass(type); if(mc!=null) { Object created = mc.invokeStaticMethod(type.getName(),CreateDynamicMethod.METHOD_NAME, new Object[0]); bean.setPropertyValue(propertyName,created); } } catch(MissingMethodException mme) { LOG.warn("Unable to auto-create type, 'create' method not found"); } catch(GroovyRuntimeException gre) { LOG.warn("Unable to auto-create type, Groovy Runtime error: " + gre.getMessage(),gre) ; } } } }
if(bean.getPropertyValue(propertyName) == null) { if(bean.isWritableProperty(propertyName)) { try { MetaClass mc = InvokerHelper .getInstance() .getMetaRegistry() .getMetaClass(type); if(mc!=null) { Object created = mc.invokeStaticMethod(type.getName(),CreateDynamicMethod.METHOD_NAME, new Object[0]); bean.setPropertyValue(propertyName,created); } } catch(MissingMethodException mme) { LOG.warn("Unable to auto-create type, 'create' method not found"); } catch(GroovyRuntimeException gre) { LOG.warn("Unable to auto-create type, Groovy Runtime error: " + gre.getMessage(),gre) ; } } } }
private void autoCreateIfPossible(MutablePropertyValues mpvs) { PropertyValue[] pvs = mpvs.getPropertyValues(); for (int i = 0; i < pvs.length; i++) { PropertyValue pv = pvs[i]; String propertyName = pv.getName(); BeanWrapper bean = super.getBeanWrapper(); if(propertyName.indexOf('.') > -1) { propertyName = propertyName.split("\\.")[0]; } Class type = bean.getPropertyType(propertyName); LOG.debug("Checking if auto-create is possible for property ["+propertyName+"] and type ["+type+"]"); if(type != null) { if(GroovyObject.class.isAssignableFrom(type)) { if(bean.getPropertyValue(propertyName) == null) { if(bean.isWritableProperty(propertyName)) { try { MetaClass mc = InvokerHelper .getInstance() .getMetaRegistry() .getMetaClass(type); if(mc!=null) { Object created = mc.invokeStaticMethod(type.getName(),CreateDynamicMethod.METHOD_NAME, new Object[0]); bean.setPropertyValue(propertyName,created); } } catch(MissingMethodException mme) { LOG.warn("Unable to auto-create type, 'create' method not found"); } catch(GroovyRuntimeException gre) { LOG.warn("Unable to auto-create type, Groovy Runtime error: " + gre.getMessage(),gre) ; } } } } } } }
50670 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50670/6cbe4c4e9d0ebf61dda52d13446eca8cd413a126/GrailsDataBinder.java/clean/src/web/org/codehaus/groovy/grails/web/binding/GrailsDataBinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3656, 1684, 2047, 13576, 12, 19536, 1396, 1972, 6749, 6904, 13, 288, 3639, 4276, 620, 8526, 293, 6904, 273, 6749, 6904, 18, 588, 1396, 1972, 5621, 3639, 364, 261, 474, 277, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3656, 1684, 2047, 13576, 12, 19536, 1396, 1972, 6749, 6904, 13, 288, 3639, 4276, 620, 8526, 293, 6904, 273, 6749, 6904, 18, 588, 1396, 1972, 5621, 3639, 364, 261, 474, 277, 273...
IStructureDefn def = DesignEngine.getMetaDataDictionary( )
IStructureDefn def = DEUtil.getMetaDataDictionary( )
public static String[] getDefaultFormatValue( String structName ) { String[] formatValue = new String[2]; IStructureDefn def = DesignEngine.getMetaDataDictionary( ) .getStructure( structName ); formatValue[0] = (String) def.getMember( FormatValue.CATEGORY_MEMBER ) .getDefault( ); formatValue[1] = (String) def.getMember( FormatValue.PATTERN_MEMBER ) .getDefault( ); return formatValue; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/25925f18944f0667bd8c9a5e0179d4a86fc250ba/ChoiceSetFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/views/attributes/providers/ChoiceSetFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 8526, 4829, 1630, 620, 12, 514, 1958, 461, 262, 202, 95, 202, 202, 780, 8526, 740, 620, 273, 394, 514, 63, 22, 15533, 202, 202, 45, 6999, 3262, 82, 1652, 273, 2970...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 8526, 4829, 1630, 620, 12, 514, 1958, 461, 262, 202, 95, 202, 202, 780, 8526, 740, 620, 273, 394, 514, 63, 22, 15533, 202, 202, 45, 6999, 3262, 82, 1652, 273, 2970...
int total_written = 0; while (total_written < len) { if (!((in == (buffer.length - 1)) && (out == 0))) { if ((in - 1) >= out) { int chars_written = 0; if ((buffer.length - in) > (len - total_written)) chars_written = (len - total_written); else if (out == 0) chars_written = (buffer.length - in) - 1; else chars_written = (buffer.length - in);
if (chars_written > 0) System.arraycopy(buf, offset + total_written, buffer, in, chars_written); total_written += chars_written; in += chars_written;
write(char[] buf, int offset, int len) throws IOException{ if (len <= 0) return; synchronized (lock) { int total_written = 0; while (total_written < len) { // If we are not at the end of the buffer with out = 0 if (!((in == (buffer.length - 1)) && (out == 0))) { // This is the "no wrap" situation if ((in - 1) >= out) { int chars_written = 0; if ((buffer.length - in) > (len - total_written)) chars_written = (len - total_written); else if (out == 0) chars_written = (buffer.length - in) - 1; else chars_written = (buffer.length - in); if (chars_written > 0) System.arraycopy(buf, offset + total_written, buffer, in, chars_written); total_written += chars_written; in += chars_written; if (in == buffer.length) in = 0; notifyAll(); } // This is the "wrap" situtation if ((out > in) && (total_written != len)) { int chars_written = 0; // Do special processing if we are at the beginning if (in == -1) { in = 0; if (buffer.length > len) chars_written = len; else chars_written = buffer.length - 1; } else if (((out - in) - 1) < (len - total_written)) { chars_written = (out - in) - 1; } else { chars_written = len - total_written; } // If the buffer is full, wait for it to empty out if ((out - 1) == in) { try { wait(); } catch (InterruptedException e) { continue; } } System.arraycopy(buf, offset + total_written, buffer, in, chars_written); total_written += chars_written; in += chars_written; if (in == buffer.length) in = 0; notifyAll(); } } // Wait for some reads to occur before we write anything. else { try { wait(); } catch (InterruptedException e) { ; } } } } // synchronized}
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/831abd00fc73cbc74f86d8cfe299207aeb65b58d/PipedReader.java/clean/java/io/PipedReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1045, 12, 3001, 8526, 1681, 16, 509, 1384, 16, 509, 562, 13, 1216, 1860, 95, 225, 309, 261, 1897, 1648, 374, 13, 565, 327, 31, 225, 3852, 261, 739, 13, 288, 225, 509, 2078, 67, 9748, 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, 1045, 12, 3001, 8526, 1681, 16, 509, 1384, 16, 509, 562, 13, 1216, 1860, 95, 225, 309, 261, 1897, 1648, 374, 13, 565, 327, 31, 225, 3852, 261, 739, 13, 288, 225, 509, 2078, 67, 9748, 273, ...
match(LITERAL_is); break; } case LITERAL_isnot:
match(LITERAL_isnot); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } rangeExpr(); astFactory.addASTChild(currentAST, returnAST); } break; } case ANDEQ: case OREQ: { { { switch ( LA(1)) { case ANDEQ:
public final void comparisonExpr() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST comparisonExpr_AST = null; rangeExpr(); astFactory.addASTChild(currentAST, returnAST); { switch ( LA(1)) { case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: { { { switch ( LA(1)) { case LITERAL_eq: { org.exist.xquery.parser.XQueryAST tmp162_AST = null; tmp162_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp162_AST); match(LITERAL_eq); break; } case LITERAL_ne: { org.exist.xquery.parser.XQueryAST tmp163_AST = null; tmp163_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp163_AST); match(LITERAL_ne); break; } case LITERAL_lt: { org.exist.xquery.parser.XQueryAST tmp164_AST = null; tmp164_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp164_AST); match(LITERAL_lt); break; } case LITERAL_le: { org.exist.xquery.parser.XQueryAST tmp165_AST = null; tmp165_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp165_AST); match(LITERAL_le); break; } case LITERAL_gt: { org.exist.xquery.parser.XQueryAST tmp166_AST = null; tmp166_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp166_AST); match(LITERAL_gt); break; } case LITERAL_ge: { org.exist.xquery.parser.XQueryAST tmp167_AST = null; tmp167_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp167_AST); match(LITERAL_ge); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } rangeExpr(); astFactory.addASTChild(currentAST, returnAST); } break; } case LITERAL_is: case LITERAL_isnot: { { { switch ( LA(1)) { case LITERAL_is: { org.exist.xquery.parser.XQueryAST tmp168_AST = null; tmp168_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp168_AST); match(LITERAL_is); break; } case LITERAL_isnot: { org.exist.xquery.parser.XQueryAST tmp169_AST = null; tmp169_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp169_AST); match(LITERAL_isnot); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } rangeExpr(); astFactory.addASTChild(currentAST, returnAST); } break; } case ANDEQ: case OREQ: { { { switch ( LA(1)) { case ANDEQ: { org.exist.xquery.parser.XQueryAST tmp170_AST = null; tmp170_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp170_AST); match(ANDEQ); break; } case OREQ: { org.exist.xquery.parser.XQueryAST tmp171_AST = null; tmp171_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp171_AST); match(OREQ); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } rangeExpr(); astFactory.addASTChild(currentAST, returnAST); } break; } case EOF: case RPAREN: case LITERAL_default: case LITERAL_collation: case RCURLY: case COMMA: case LITERAL_empty: case LITERAL_for: case LITERAL_let: case LITERAL_where: case LITERAL_return: case LITERAL_order: case LITERAL_ascending: case LITERAL_descending: case LITERAL_satisfies: case LITERAL_case: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case RPPAREN: { break; } default: boolean synPredMatched145 = false; if (((LA(1)==LT))) { int _m145 = mark(); synPredMatched145 = true; inputState.guessing++; try { { match(LT); match(LT); } } catch (RecognitionException pe) { synPredMatched145 = false; } rewind(_m145); inputState.guessing--; } if ( synPredMatched145 ) { match(LT); match(LT); rangeExpr(); astFactory.addASTChild(currentAST, returnAST); if ( inputState.guessing==0 ) { comparisonExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; comparisonExpr_AST = (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(BEFORE,"<<")).add(comparisonExpr_AST)); currentAST.root = comparisonExpr_AST; currentAST.child = comparisonExpr_AST!=null &&comparisonExpr_AST.getFirstChild()!=null ? comparisonExpr_AST.getFirstChild() : comparisonExpr_AST; currentAST.advanceChildToEnd(); } } else { boolean synPredMatched147 = false; if (((LA(1)==GT))) { int _m147 = mark(); synPredMatched147 = true; inputState.guessing++; try { { match(GT); match(GT); } } catch (RecognitionException pe) { synPredMatched147 = false; } rewind(_m147); inputState.guessing--; } if ( synPredMatched147 ) { match(GT); match(GT); rangeExpr(); astFactory.addASTChild(currentAST, returnAST); if ( inputState.guessing==0 ) { comparisonExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; comparisonExpr_AST = (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(AFTER,">>")).add(comparisonExpr_AST)); currentAST.root = comparisonExpr_AST; currentAST.child = comparisonExpr_AST!=null &&comparisonExpr_AST.getFirstChild()!=null ? comparisonExpr_AST.getFirstChild() : comparisonExpr_AST; currentAST.advanceChildToEnd(); } } else if ((_tokenSet_4.member(LA(1)))) { { { switch ( LA(1)) { case EQ: { org.exist.xquery.parser.XQueryAST tmp176_AST = null; tmp176_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp176_AST); match(EQ); break; } case NEQ: { org.exist.xquery.parser.XQueryAST tmp177_AST = null; tmp177_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp177_AST); match(NEQ); break; } case GT: { org.exist.xquery.parser.XQueryAST tmp178_AST = null; tmp178_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp178_AST); match(GT); break; } case GTEQ: { org.exist.xquery.parser.XQueryAST tmp179_AST = null; tmp179_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp179_AST); match(GTEQ); break; } case LT: { org.exist.xquery.parser.XQueryAST tmp180_AST = null; tmp180_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp180_AST); match(LT); break; } case LTEQ: { org.exist.xquery.parser.XQueryAST tmp181_AST = null; tmp181_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp181_AST); match(LTEQ); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } rangeExpr(); astFactory.addASTChild(currentAST, returnAST); } } else { throw new NoViableAltException(LT(1), getFilename()); } }} } comparisonExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = comparisonExpr_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/00430aa4dd6963441696c4ac7250593b74a38b39/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 5826, 4742, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 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, 225, 202, 482, 727, 918, 5826, 4742, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5...
Messages.getString( "FormatNumberPreferencePage.toolItem.formatCode.percent" ), "4567.89%"
getDisplayName4Category( DesignChoiceConstants.NUMBER_FORMAT_TYPE_PERCENT ), new NumberFormatter( getPatternForCategory( DesignChoiceConstants.NUMBER_FORMAT_TYPE_PERCENT ) ).format( DEFAULT_PREVIEW_NUMBER )
private void createTable( Composite group ) { Table table = new Table( group, SWT.FULL_SELECTION | SWT.HIDE_SELECTION | SWT.BORDER ); GridData data = new GridData( GridData.FILL_HORIZONTAL ); data.horizontalSpan = 2; data.heightHint = 60; table.setLayoutData( data ); table.setLinesVisible( true ); table.setHeaderVisible( true ); table.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { String category = ( (TableItem) e.item ).getText( FORMAT_TYPE_INDEX ); String pattern = ""; //$NON-NLS-1$ if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_CURRENCY ) ) { pattern = "\u00A4###,##0.00"; //$NON-NLS-1$ } else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_FIXED ) ) { pattern = "#0.00"; //$NON-NLS-1$ } else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_PERCENT ) ) { pattern = "0.00%"; //$NON-NLS-1$ } else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_SCIENTIFIC ) ) { pattern = "0.00E00"; //$NON-NLS-1$ } formatCode.setText( pattern ); updatePreview( ); } } ); table.select( 0 ); TableColumn tableColumValue = new TableColumn( table, SWT.NONE ); tableColumValue.setText( Messages.getString( "FormatNumberPreferencePage.toolColumn.formatCode.label" ) ); //$NON-NLS-1$ tableColumValue.setWidth( 120 ); tableColumValue.setResizable( true ); TableColumn tableColumnDisplay = new TableColumn( table, SWT.NONE ); tableColumnDisplay.setText( Messages.getString( "FormatNumberPreferencePage.toolColumn.formatResult.label" ) ); //$NON-NLS-1$ tableColumnDisplay.setWidth( 120 ); tableColumnDisplay.setResizable( true ); new TableItem( table, SWT.NONE ).setText( new String[]{ Messages.getString( "FormatNumberPreferencePage.toolItem.formatCode.currency" ), "$4,567.89" //$NON-NLS-1$ //$NON-NLS-2$ } ); new TableItem( table, SWT.NONE ).setText( new String[]{ Messages.getString( "FormatNumberPreferencePage.toolItem.formatCode.fixed" ), "4567.89" //$NON-NLS-1$ //$NON-NLS-2$ } ); new TableItem( table, SWT.NONE ).setText( new String[]{ Messages.getString( "FormatNumberPreferencePage.toolItem.formatCode.percent" ), "4567.89%" //$NON-NLS-1$ //$NON-NLS-2$ } ); new TableItem( table, SWT.NONE ).setText( new String[]{ Messages.getString( "FormatNumberPreferencePage.toolItem.formatCode.scientific" ), "4.57E+03" //$NON-NLS-1$ //$NON-NLS-2$ } ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ed52f1732ec1c1eef0fd79e44d2e45f78973153a/FormatNumberPage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatNumberPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 19565, 12, 14728, 1041, 262, 202, 95, 202, 202, 1388, 1014, 273, 394, 3555, 12, 1041, 16, 348, 8588, 18, 18111, 67, 1090, 15445, 9506, 202, 96, 348, 8588, 18, 44, 10385,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19565, 12, 14728, 1041, 262, 202, 95, 202, 202, 1388, 1014, 273, 394, 3555, 12, 1041, 16, 348, 8588, 18, 18111, 67, 1090, 15445, 9506, 202, 96, 348, 8588, 18, 44, 10385,...
public static ITokenDuple createTokenDuple( IToken first, IToken last, List templateArgLists )
public static ITokenDuple createTokenDuple( IToken first, IToken last )
public static ITokenDuple createTokenDuple( IToken first, IToken last, List templateArgLists ) { if( (first == last) && ( templateArgLists == null ) && ( first instanceof ITokenDuple )) return (ITokenDuple) first; if( templateArgLists != null && !templateArgLists.isEmpty()) return new TemplateTokenDuple( first, last, templateArgLists ); return new BasicTokenDuple( first, last ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/413c618734cbfd57cc912f11a0569a7719e462ed/TokenFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/token/TokenFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 467, 1345, 40, 2268, 752, 1345, 40, 2268, 12, 467, 1345, 1122, 16, 467, 1345, 1142, 16, 987, 1542, 4117, 7432, 262, 202, 95, 202, 202, 430, 12, 261, 3645, 422, 1142, 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, 760, 467, 1345, 40, 2268, 752, 1345, 40, 2268, 12, 467, 1345, 1122, 16, 467, 1345, 1142, 16, 987, 1542, 4117, 7432, 262, 202, 95, 202, 202, 430, 12, 261, 3645, 422, 1142, 13...
if(newParent == null || parent.equals(newParent))
if(newParent == null || VFSBrowser.pathsEqual(parent,newParent))
public void directoryLoaded(Object node, String path, ArrayList directory) { //{{{ If reloading root, update parent directory list if(node == null) { DefaultListModel parentList = new DefaultListModel(); String parent = path; for(;;) { VFS _vfs = VFSManager.getVFSForPath( parent); // create a DirectoryEntry manually // instead of using _vfs._getDirectoryEntry() // since so many VFS's have broken // implementations of this method parentList.insertElementAt(new VFS.DirectoryEntry( _vfs.getFileName(parent), parent,parent, VFS.DirectoryEntry.DIRECTORY, 0L,false),0); String newParent = _vfs.getParentOfPath(parent); if(newParent == null || parent.equals(newParent)) break; else parent = newParent; } parentDirectories.setModel(parentList); int index = parentList.getSize() - 1; parentDirectories.setSelectedIndex(index); parentDirectories.ensureIndexIsVisible(index); } //}}} table.setDirectory(VFSManager.getVFSForPath(path), node,directory,tmpExpanded); } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/28675c78d08ed40c4545de3f244218b4b359ec01/BrowserView.java/buggy/org/gjt/sp/jedit/browser/BrowserView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1867, 8835, 12, 921, 756, 16, 514, 589, 16, 2407, 1867, 13, 202, 95, 202, 202, 759, 12187, 95, 971, 7749, 310, 1365, 16, 1089, 982, 1867, 666, 202, 202, 430, 12, 2159, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1867, 8835, 12, 921, 756, 16, 514, 589, 16, 2407, 1867, 13, 202, 95, 202, 202, 759, 12187, 95, 971, 7749, 310, 1365, 16, 1089, 982, 1867, 666, 202, 202, 430, 12, 2159, ...
if (ed.isDirty())
if (ed.isDirty()) {
public boolean isSaveAllNeeded() { IEditorReference[] editors = page.getEditorReferences(); for (int i = 0; i < editors.length; i++) { IEditorReference ed = editors[i]; if (ed.isDirty()) return true; } return false; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/EditorManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 4755, 1595, 11449, 1435, 288, 202, 202, 45, 6946, 2404, 8526, 29431, 273, 1363, 18, 588, 6946, 8221, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 4755, 1595, 11449, 1435, 288, 202, 202, 45, 6946, 2404, 8526, 29431, 273, 1363, 18, 588, 6946, 8221, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 29...
log.error("commit called for transaction, but it is not prepared"); throw new XAException(XAException.XAER_PROTO);
if (tx.getState() != TxState.TX_PREPARED) { log.error("commit called for transaction, but it is not prepared"); throw new XAException(XAException.XAER_PROTO); } } else {
public void commit(Xid xid, boolean onePhase, ConnectionDelegate connection) throws XAException { if (log.isTraceEnabled()) { log.trace("Commiting xid=" + xid + ", onePhase=" + onePhase); } TxState tx = removeTx(xid); //Invalid xid if (tx == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } if (onePhase) { TransactionRequest request = new TransactionRequest(TransactionRequest.ONE_PHASE_COMMIT_REQUEST, null, tx); request.state = tx; sendTransactionXA(request, connection); } else { if (tx.getState() != TxState.TX_PREPARED) { log.error("commit called for transaction, but it is not prepared"); throw new XAException(XAException.XAER_PROTO); } TransactionRequest request = new TransactionRequest(TransactionRequest.TWO_PHASE_COMMIT_REQUEST, xid, null); request.xid = xid; sendTransactionXA(request, connection); } tx.setState(TxState.TX_COMMITED); }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/b808cf059a2bd5d2b256a4cae82cef505669b216/ResourceManager.java/clean/src/main/org/jboss/jms/tx/ResourceManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 3294, 12, 60, 350, 19031, 16, 1250, 1245, 11406, 16, 4050, 9586, 1459, 13, 1216, 21514, 282, 288, 1377, 309, 261, 1330, 18, 291, 3448, 1526, 10756, 288, 613, 18, 5129, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 3294, 12, 60, 350, 19031, 16, 1250, 1245, 11406, 16, 4050, 9586, 1459, 13, 1216, 21514, 282, 288, 1377, 309, 261, 1330, 18, 291, 3448, 1526, 10756, 288, 613, 18, 5129, 2932, ...
public AmbiguityRemover( ExtensionFactory ef,
public AmbiguityRemover(Pass pass, ExtensionFactory ef,
public AmbiguityRemover( ExtensionFactory ef, TypeSystem ts, ImportTable it, ErrorQueue eq) { this.ts = ts; this.it = it; this.eq = eq; c = ts.getLocalContext( it, ef, this); }
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/96c2c0f08db74e6b67885d020d1aa6b2502f09f2/AmbiguityRemover.java/buggy/src/polyglot/visit/AmbiguityRemover.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 432, 1627, 8810, 560, 1933, 1643, 12, 6433, 1342, 16, 10021, 1733, 20986, 16, 565, 1412, 3163, 3742, 16, 6164, 1388, 518, 16, 1068, 3183, 7555, 13, 225, 288, 565, 333, 18, 3428, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 432, 1627, 8810, 560, 1933, 1643, 12, 6433, 1342, 16, 10021, 1733, 20986, 16, 565, 1412, 3163, 3742, 16, 6164, 1388, 518, 16, 1068, 3183, 7555, 13, 225, 288, 565, 333, 18, 3428, 2...
Tag tag = container.getCurrentTLV().getTag(); log.debug( "Tag {} has been decoded", tag.toString() );
if ( container.getCurrentTLV() != null ) { Tag tag = container.getCurrentTLV().getTag(); log.debug( "Tag {} has been decoded", tag.toString() ); } else { log.debug( "Tag has been decoded, but is null" ); }
private void treatTagEndState( IAsn1Container container ) throws DecoderException, NamingException { if ( IS_DEBUG ) { Tag tag = container.getCurrentTLV().getTag(); log.debug( "Tag {} has been decoded", tag.toString() ); } // Create a link between the current TLV with its parent container.getCurrentTLV().setParent( container.getParentTLV() ); // After having decoded a tag, we have to execute the action // which controls if this tag is allowed and well formed. container.getGrammar().executeAction( container ); // Switch to the next state, which is the Length decoding container.setState( TLVStateEnum.LENGTH_STATE_START ); }
54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/8bc6d72fad252ed02c5adf6173f5a7d1d91e25cf/Asn1Decoder.java/clean/asn1/src/main/java/org/apache/directory/shared/asn1/ber/Asn1Decoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 10116, 1805, 1638, 1119, 12, 467, 1463, 82, 21, 2170, 1478, 262, 1216, 15138, 503, 16, 26890, 565, 288, 3639, 309, 261, 4437, 67, 9394, 262, 3639, 288, 5411, 4034, 1047, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 10116, 1805, 1638, 1119, 12, 467, 1463, 82, 21, 2170, 1478, 262, 1216, 15138, 503, 16, 26890, 565, 288, 3639, 309, 261, 4437, 67, 9394, 262, 3639, 288, 5411, 4034, 1047, 273, ...
{
{
public boolean isEnabled( ) { List handles = getElementHandles( ); if ( handles.isEmpty( ) ) return false; for ( int i = 0; i < handles.size( ); i++ ) { if ( !( handles.get( i ) instanceof DesignElementHandle ) ) { return false; } DesignElementHandle handle = (DesignElementHandle)handles.get( i ); if(handle != null && handle.getDefn( ).hasStyle( ) == false) { return false; } } return true; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/4922672e45a97b12d48fc329e3f8c18058ccd307/ApplyStyleAction.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/actions/ApplyStyleAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 12047, 12, 262, 202, 95, 202, 202, 682, 7372, 273, 7426, 8788, 12, 11272, 202, 202, 430, 261, 7372, 18, 291, 1921, 12, 262, 262, 1082, 202, 2463, 629, 31, 202, 202, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 12047, 12, 262, 202, 95, 202, 202, 682, 7372, 273, 7426, 8788, 12, 11272, 202, 202, 430, 261, 7372, 18, 291, 1921, 12, 262, 262, 1082, 202, 2463, 629, 31, 202, 202, 18...
public static CacheManager getInstance(Configuration conf){
public synchronized static CacheManager getInstance(Configuration conf){
public static CacheManager getInstance(Configuration conf){ CacheManager cache=(CacheManager)conf.getObject(CACHE_KEY); if(cache==null) { cache = new CacheManager(); conf.setObject(CACHE_KEY, cache); } return cache; }
1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/53d32f722db195b06d82a6398c48bbc15bcff2d5/CacheManager.java/buggy/contrib/web2/plugins/web-caching-oscache/src/java/org/apache/nutch/webapp/CacheManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 760, 4379, 1318, 3694, 12, 1750, 2195, 15329, 565, 4379, 1318, 1247, 28657, 27706, 13, 3923, 18, 588, 921, 12, 8495, 67, 3297, 1769, 3639, 309, 12, 2493, 631, 2011, 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, 282, 1071, 3852, 760, 4379, 1318, 3694, 12, 1750, 2195, 15329, 565, 4379, 1318, 1247, 28657, 27706, 13, 3923, 18, 588, 921, 12, 8495, 67, 3297, 1769, 3639, 309, 12, 2493, 631, 2011, 13, 288, ...
public void add(byte theOpCode) {
public void add(int theOpCode) {
public void add(byte theOpCode) { if (opcodeCount(theOpCode) != 0) throw new IllegalArgumentException("Unexpected operands"); int newStack = itsStackTop + stackChange(theOpCode); if (newStack < 0 || Short.MAX_VALUE < newStack) badStack(newStack); if (DEBUGCODE) System.out.println("Add " + bytecodeStr(theOpCode)); addToCodeBuffer(theOpCode); itsStackTop = (short)newStack; if (newStack > itsMaxStack) itsMaxStack = (short)newStack; if (DEBUGSTACK) { System.out.println("After "+bytecodeStr(theOpCode) +" stack = "+itsStackTop); } }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/d3a2da86ba78c764eb7e4799c50871b182929d40/ClassFileWriter.java/buggy/js/rhino/src/org/mozilla/classfile/ClassFileWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12, 474, 326, 3817, 1085, 13, 288, 3639, 309, 261, 556, 710, 1380, 12, 5787, 3817, 1085, 13, 480, 374, 13, 5411, 604, 394, 2754, 2932, 7762, 14883, 8863, 3639, 509, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12, 474, 326, 3817, 1085, 13, 288, 3639, 309, 261, 556, 710, 1380, 12, 5787, 3817, 1085, 13, 480, 374, 13, 5411, 604, 394, 2754, 2932, 7762, 14883, 8863, 3639, 509, 394,...
if (typeESet) result.append(type); else result.append("<unset>");
if (typeESet) result.append(type); else result.append("<unset>");
public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (type: "); if (typeESet) result.append(type); else result.append("<unset>"); result.append(", size: "); if (sizeESet) result.append(size); else result.append("<unset>"); result.append(", visible: "); if (visibleESet) result.append(visible); else result.append("<unset>"); result.append(')'); return result.toString(); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/MarkerImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/MarkerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 565, 288, 3639, 309, 261, 73, 2520, 3886, 10756, 327, 2240, 18, 10492, 5621, 3639, 6674, 563, 273, 394, 6674, 12, 9565, 18, 10492, 10663, 3639, 563, 18, 6923, 2932,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 565, 288, 3639, 309, 261, 73, 2520, 3886, 10756, 327, 2240, 18, 10492, 5621, 3639, 6674, 563, 273, 394, 6674, 12, 9565, 18, 10492, 10663, 3639, 563, 18, 6923, 2932,...
Quantity value = (Quantity) event.getAgreement().getValue(myValueName, event.getWhenOccurred()); return value;
return (Quantity) event.getAgreement().getValue(myValueName, event.getWhenOccurred());
public Quantity compute(Object parm) { AccountingEvent event = (AccountingEvent) parm; Quantity value = (Quantity) event.getAgreement().getValue(myValueName, event.getWhenOccurred()); return value; }
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/8bc386e1dbdc9b8e297f3fd17a89b76a16281db9/ValueQuantity.java/clean/projects/agreement/agreementLanguage/source/formulaAdapter/ValueQuantity.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 18189, 3671, 12, 921, 19924, 13, 288, 565, 6590, 310, 1133, 871, 273, 261, 3032, 310, 1133, 13, 19924, 31, 565, 18189, 460, 273, 261, 12035, 13, 871, 18, 588, 17420, 7675, 24805, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 18189, 3671, 12, 921, 19924, 13, 288, 565, 6590, 310, 1133, 871, 273, 261, 3032, 310, 1133, 13, 19924, 31, 565, 18189, 460, 273, 261, 12035, 13, 871, 18, 588, 17420, 7675, 24805, ...
if(redeliveryDelay==0){ redeliveryDelay=redeliveryPolicy.getInitialRedeliveryDelay(); }else{ if(redeliveryPolicy.isUseExponentialBackOff()) redeliveryDelay*=redeliveryPolicy.getBackOffMultiplier(); }
redeliveryDelay = redeliveryPolicy.getRedeliveryDelay(redeliveryDelay);
public void rollback() throws JMSException{ synchronized(unconsumedMessages.getMutex()){ if(optimizeAcknowledge){ // remove messages read but not acked at the broker yet through optimizeAcknowledge for(int i=0;(i<deliveredMessages.size())&&(i<ackCounter);i++){ deliveredMessages.removeLast(); } } if(deliveredMessages.isEmpty()) return; rollbackCounter++; if(rollbackCounter>redeliveryPolicy.getMaximumRedeliveries()){ // We need to NACK the messages so that they get sent to the // DLQ. // Acknowledge the last message. MessageDispatch lastMd=(MessageDispatch) deliveredMessages.get(0); MessageAck ack=new MessageAck(lastMd,MessageAck.POSION_ACK_TYPE,deliveredMessages.size()); session.asyncSendPacket(ack); // Adjust the window size. additionalWindowSize=Math.max(0,additionalWindowSize-deliveredMessages.size()); rollbackCounter=0; redeliveryDelay=0; }else{ // stop the delivery of messages. unconsumedMessages.stop(); // Start up the delivery again a little later. if(redeliveryDelay==0){ redeliveryDelay=redeliveryPolicy.getInitialRedeliveryDelay(); }else{ if(redeliveryPolicy.isUseExponentialBackOff()) redeliveryDelay*=redeliveryPolicy.getBackOffMultiplier(); } Scheduler.executeAfterDelay(new Runnable(){ public void run(){ try{ if(started.get()) start(); }catch(JMSException e){ session.connection.onAsyncException(e); } } },redeliveryDelay); for(Iterator iter=deliveredMessages.iterator();iter.hasNext();){ MessageDispatch md=(MessageDispatch) iter.next(); md.getMessage().onMessageRolledBack(); unconsumedMessages.enqueueFirst(md); } } deliveredCounter-=deliveredMessages.size(); deliveredMessages.clear(); } if(messageListener!=null){ session.redispatch(unconsumedMessages); } }
17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/4c4f86a0d8523eb9fca630b181ce2b90e28940a6/ActiveMQMessageConsumer.java/buggy/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 8006, 1435, 1216, 20343, 95, 3639, 3852, 12, 551, 265, 1364, 329, 5058, 18, 588, 11433, 10756, 95, 5411, 309, 12, 29155, 11931, 14390, 15329, 7734, 368, 1206, 2743, 855, 1496, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8006, 1435, 1216, 20343, 95, 3639, 3852, 12, 551, 265, 1364, 329, 5058, 18, 588, 11433, 10756, 95, 5411, 309, 12, 29155, 11931, 14390, 15329, 7734, 368, 1206, 2743, 855, 1496, ...
super(position);
super(position, NodeTypes.BLOCKNODE);
public BlockNode(ISourcePosition position) { super(position); }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/6e15491217631472c05c6928672f9c7064a978b3/BlockNode.java/buggy/src/org/jruby/ast/BlockNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3914, 907, 12, 45, 1830, 2555, 1754, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 11403, 8744, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3914, 907, 12, 45, 1830, 2555, 1754, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 11403, 8744, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
} else { final long otherVal = other.getLongValue(); return value > otherVal ? 1 : value < otherVal ? -1 : 0; }
} long otherVal = other.getLongValue(); return value > otherVal ? 1 : value < otherVal ? -1 : 0;
protected int compareValue(RubyNumeric other) { if (other instanceof RubyBignum) { return -other.compareValue(this); } else if (other instanceof RubyFloat) { final double otherVal = other.getDoubleValue(); return value > otherVal ? 1 : value < otherVal ? -1 : 0; } else { final long otherVal = other.getLongValue(); return value > otherVal ? 1 : value < otherVal ? -1 : 0; } }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/df3ba2646cbb9e6b1bf4f1687ed12226cdf7b3ad/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 3400, 620, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 309, 261, 3011, 1276, 19817, 38, 724, 379, 13, 288, 5411, 327, 300, 3011, 18, 9877, 620, 12, 2211, 1769, 3639, 289, 469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3400, 620, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 309, 261, 3011, 1276, 19817, 38, 724, 379, 13, 288, 5411, 327, 300, 3011, 18, 9877, 620, 12, 2211, 1769, 3639, 289, 469, ...