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
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText();
public quickfix.field.EncodedText getEncodedText() throws FieldNotFound { quickfix.field.EncodedText value = new quickfix.field.EncodedText();
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/ListCancelRequest.java/clean/src/java/src/quickfix/fix42/ListCancelRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 28799, 1528, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 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, 1528, 28799, 1528, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 460, 273, 394, 2358, 18, 19525, 904,...
public UserLog findLastUserLog(String principal) { return null; }
public UserLog findLastUserLog(String principal) { return lastUserLog; }
public UserLog findLastUserLog(String principal) { return null; }
50379 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50379/55cb1fafb49ddc53b7a6d9c82800eb68705acebe/UserDetailsServiceImplTests.java/buggy/helianto/core/src/test/java/org/helianto/core/security/UserDetailsServiceImplTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 2177, 1343, 1104, 3024, 1299, 1343, 12, 780, 8897, 13, 288, 327, 446, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 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, 540, 1071, 2177, 1343, 1104, 3024, 1299, 1343, 12, 780, 8897, 13, 288, 327, 446, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if (Workbench.getInstance() != null && !Workbench.getInstance().getDisplay().isDisposed()) { Workbench.getInstance().getDisplay().asyncExec(new Runnable() {
if (PlatformUI.getWorkbench() != null && !PlatformUI.getWorkbench().getDisplay().isDisposed()) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
public void taskChanged(final ITask updateTask) { if (updateTask != null && updateTask.getHandleIdentifier().equals(task.getHandleIdentifier())) { if (Workbench.getInstance() != null && !Workbench.getInstance().getDisplay().isDisposed()) { Workbench.getInstance().getDisplay().asyncExec(new Runnable() { public void run() { if (!description.isDisposed()) { description.setText(updateTask.getDescription()); // TaskInfoEditor.this.setPartName(updateTask.getDescription(true)); parentEditor.changeTitle(); } if (!priorityCombo.isDisposed()) { int selectionIndex = priorityCombo.indexOf(updateTask.getPriority()); priorityCombo.select(selectionIndex); } if (!statusCombo.isDisposed()) { int selectionIndex = statusCombo.indexOf(updateTask.getStatus().toString()); statusCombo.select(selectionIndex); } if (updateTask.isLocal() && !endDate.isDisposed()) { endDate.setText(getTaskDateString(updateTask)); } } }); } } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c2b903e46f237cb0ac028032f82587419787da6d/TaskInfoEditor.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/TaskInfoEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1562, 5033, 12, 6385, 467, 2174, 1089, 2174, 13, 288, 1082, 202, 430, 261, 2725, 2174, 480, 446, 597, 1089, 2174, 18, 588, 3259, 3004, 7675, 14963, 12, 4146, 18, 588, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1562, 5033, 12, 6385, 467, 2174, 1089, 2174, 13, 288, 1082, 202, 430, 261, 2725, 2174, 480, 446, 597, 1089, 2174, 18, 588, 3259, 3004, 7675, 14963, 12, 4146, 18, 588, 32...
public int numInputCards() { int result = 0; for (int i=0; i<cardTypeLocation.length; i++) if (cardTypeLocation[i]==INPUT_CARD) result++; // check consistency if (nodeType==SMINI && result!=1) warn("C/MRI SMINI node with "+result+" input cards"); if (nodeType==USIC_SUSIC && result>=64) warn("C/MRI USIC/SUSIC node with "+result+" input cards"); return result; }
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/0e88aee0db365025f01e28eeccebf419ffaa4686/SerialNode.java/buggy/jmri/jmrix/cmri/serial/SerialNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 818, 1210, 30492, 1435, 288, 377, 202, 474, 563, 273, 374, 31, 377, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 32, 3327, 559, 2735, 18, 2469, 31, 277, 27245, 1377, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 818, 1210, 30492, 1435, 288, 377, 202, 474, 563, 273, 374, 31, 377, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 32, 3327, 559, 2735, 18, 2469, 31, 277, 27245, 1377, 202, 202...
generateBindingColumns( );
generateBindingColumns( ); setHihtLightColumn( );
protected Control createDialogArea( Composite parent ) { Composite parentComposite = (Composite) super.createDialogArea( parent ); if ( this.canSelect ) { /** * Label & button */ Composite composite = new Composite( parentComposite, SWT.NONE ); composite.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); composite.setLayout( UIUtil.createGridLayoutWithoutMargin( 2, false ) ); CLabel warnLabel = new CLabel( composite, SWT.NONE ); warnLabel.setImage( PlatformUI.getWorkbench( ) .getSharedImages( ) .getImage( ISharedImages.IMG_OBJS_WARN_TSK ) ); warnLabel.setText( WARN_COLUMN_BINDINGS ); GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalSpan = 2; warnLabel.setLayoutData( gd ); Label label = new Label( composite, SWT.NONE ); label.setText( LABEL_COLUMN_BINDINGS ); label.setLayoutData( new GridData( GridData.BEGINNING ) ); // add data set combo selection. final CCombo combo = new CCombo( composite, SWT.READ_ONLY | SWT.BORDER ); combo.setBackground( PlatformUI.getWorkbench( ) .getDisplay( ) .getSystemColor( SWT.COLOR_LIST_BACKGROUND ) ); String[] dataSets = ChoiceSetFactory.getDataSets( ); String[] newList = new String[dataSets.length + 1]; newList[0] = ALL; System.arraycopy( dataSets, 0, newList, 1, dataSets.length ); combo.setItems( newList ); String dataSetName = getDataSetName( ); combo.deselectAll( ); combo.setText( dataSetName ); combo.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); gd = new GridData( ); gd.widthHint = 250; combo.setLayoutData( gd ); combo.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent event ) { String value = combo.getText( ); if ( value.equals( ALL ) ) { value = null; } int rCode = canChangeDataSet( value ); if ( rCode == 2 ) { combo.setText( getDataSetName( ) ); } else { try { DataSetHandle dataSet = null; if ( value != null ) { dataSet = inputElement.getModuleHandle( ) .findDataSet( value ); } inputElement.setDataSet( dataSet ); getParameterBindingPropertyHandle( ).clearValue( ); if ( rCode == 0 ) { inputElement.getColumnBindings( ).clearValue( ); } generateBindingColumns( ); } catch ( SemanticException e ) { ExceptionHandler.handle( e ); } } } } ); } /** * Binding table */ Table table = new Table( parentComposite, SWT.SINGLE | SWT.FULL_SELECTION | SWT.BORDER | ( canSelect ? SWT.CHECK : 0 ) ); GridData gd = new GridData( GridData.FILL_BOTH ); gd.heightHint = 200; table.setLayoutData( gd ); table.setLinesVisible( true ); table.setHeaderVisible( true ); table.addKeyListener( new KeyAdapter( ) { /** * @see org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent) */ public void keyReleased( KeyEvent e ) { // If Delete pressed, delete the selected row if ( e.keyCode == SWT.DEL ) { IStructuredSelection selection = (IStructuredSelection) bindingTable.getSelection( ); if ( selection.getFirstElement( ) instanceof ComputedColumnHandle ) { deleteRow( (ComputedColumnHandle) selection.getFirstElement( ) ); } } } } ); String[] columns = null; int[] columnWidth = null; CellEditor[] cellEditors; expressionCellEditor = new ExpressionCellEditor( table ); columns = new String[]{ null, COLUMN_NAME, COLUMN_DATATYPE, COLUMN_EXPRESSION, COLUMN_AGGREGATEON }; columnWidth = new int[]{ canSelect ? 25 : 20, 150, 70, 150, 150, }; groups = new String[groupList.size( ) + 1]; groups[0] = ALL; for ( int i = 0; i < groupList.size( ); i++ ) { groups[i + 1] = ( (GroupHandle) groupList.get( i ) ).getName( ); } cellEditors = new CellEditor[]{ null, new TextCellEditor( table ), new ComboBoxCellEditor( table, dataTypeDisplayNames ), expressionCellEditor, new ComboBoxCellEditor( table, groups, SWT.READ_ONLY ), }; for ( int i = 0; i < columns.length; i++ ) { TableColumn column = new TableColumn( table, SWT.LEFT ); column.setResizable( columns[i] != null ); if ( columns[i] != null ) { column.setText( columns[i] ); } column.setWidth( columnWidth[i] ); } if ( canSelect ) { bindingTable = new CheckboxTableViewer( table ); ( (CheckboxTableViewer) bindingTable ).addCheckStateListener( new ICheckStateListener( ) { public void checkStateChanged( CheckStateChangedEvent event ) { if ( event.getElement( ) instanceof ComputedColumnHandle ) { ComputedColumnHandle handle = (ComputedColumnHandle) event.getElement( ); if ( handle.getName( ).equals( selectedColumnName ) ) { selectedColumnName = null; } else { selectedColumnName = handle.getName( ); } updateSelection( ); updateButtons( ); } else { ( (CheckboxTableViewer) bindingTable ).setChecked( dummyChoice, false ); } } } ); } else { bindingTable = new TableViewer( table ); } bindingTable.setCellEditors( cellEditors ); bindingTable.setColumnProperties( columns ); bindingTable.setContentProvider( contentProvider ); bindingTable.setLabelProvider( labelProvider ); bindingTable.setCellModifier( cellModifier ); bindingTable.setInput( inputElement ); bindingTable.addSelectionChangedListener( new ISelectionChangedListener( ) { public void selectionChanged( SelectionChangedEvent event ) { // updateTableButtons( ); if ( !bindingTable.getSelection( ).isEmpty( ) ) { Object obj = ( (IStructuredSelection) bindingTable.getSelection( ) ).getFirstElement( ); if ( obj == dummyChoice && !existHighLightColumn( ) ) { bindingTable.refresh( ); setHihtLightColumn( ); } else if ( obj instanceof ComputedColumnHandle ) { ComputedColumnHandle column = (ComputedColumnHandle) obj; BindingExpressionProvider provider = new BindingExpressionProvider( column.getElementHandle( ) ); provider.addFilter( new ComputedColumnExpressionFilter( bindingTable ) ); expressionCellEditor.setExpressionProvider( provider ); } } } } ); // initTableCellColor( ); return parentComposite; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/2f5b4aba876b0356d9b4944bcf336bbd19cefb65/ColumnBindingDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 982, 9400, 273, 261, 9400, 13, 2240, 18, 2640, 6353, 5484, 12, 982, 11272, 202, 202, 430, 261, 333, 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, 1117, 8888, 752, 6353, 5484, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 982, 9400, 273, 261, 9400, 13, 2240, 18, 2640, 6353, 5484, 12, 982, 11272, 202, 202, 430, 261, 333, 18, ...
boolean reveal) { TableViewer viewer = getViewer();
boolean reveal) { TableViewer viewer = getViewer();
public void setSelection(IStructuredSelection structuredSelection, boolean reveal) { TableViewer viewer = getViewer(); List newSelection = new ArrayList(structuredSelection.size()); for (Iterator i = structuredSelection.iterator(); i.hasNext();) { Object next = i.next(); if (next instanceof IMarker) { ConcreteMarker marker = currentMarkers .getMarker((IMarker) next); if (marker != null) { newSelection.add(marker); } } } if (viewer != null) viewer.setSelection(new StructuredSelection(newSelection), reveal); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerView.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 6233, 12, 45, 30733, 6233, 19788, 6233, 16, 5411, 1250, 283, 24293, 13, 288, 3639, 3555, 18415, 14157, 273, 8893, 264, 5621, 3639, 987, 394, 6233, 273, 394, 2407, 12, 1723...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 6233, 12, 45, 30733, 6233, 19788, 6233, 16, 5411, 1250, 283, 24293, 13, 288, 3639, 3555, 18415, 14157, 273, 8893, 264, 5621, 3639, 987, 394, 6233, 273, 394, 2407, 12, 1723...
Root root = Root.getRoot(); pdl.emit(root);
pdl.emit(Root.getRoot());
public static final void main(String[] args) throws Exception { PDL pdl = new PDL(); for (int i = 0; i < args.length; i++) { pdl.load(new FileReader(args[i]), args[i]); } Root root = Root.getRoot(); pdl.emit(root); }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/703319bfd292f40acbfef1124c76ffd5f8e143a3/PDL.java/clean/archive/proto/src/com/arsdigita/persistence/proto/pdl/PDL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 918, 2774, 12, 780, 8526, 833, 13, 1216, 1185, 288, 3639, 453, 8914, 4863, 80, 273, 394, 453, 8914, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 918, 2774, 12, 780, 8526, 833, 13, 1216, 1185, 288, 3639, 453, 8914, 4863, 80, 273, 394, 453, 8914, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 24...
if (previousData.isChangeOrRestore()) {
if (previousData.isChangeOrRestore() || isBinary()) {
public VersionedFile createFile(Date beginOfLogDate) { if (isFilteredFile() || !fileExistsInLogPeriod()) { return null; } if (revisions.size() == 1 && lastAdded.isAddOnSubbranch()) { return null; } VersionedFile file = new VersionedFile(name, builder.getDirectory(name)); if (revisions.isEmpty()) { buildBeginOfLogRevision(file, beginOfLogDate, getFinalLOC(), null); return file; } Iterator it = revisions.iterator(); RevisionData currentData = (RevisionData) it.next(); int currentLOC = getFinalLOC(); RevisionData previousData; int previousLOC; SortedSet symbolicNames; while (it.hasNext()) { previousData = currentData; previousLOC = currentLOC; currentData = (RevisionData) it.next(); currentLOC = previousLOC - getLOCChange(previousData); // symbolic names for previousData symbolicNames = createSymbolicNamesCollection(previousData); if (previousData.isChangeOrRestore()) { if (currentData.isDeletion() || currentData.isAddOnSubbranch()) { buildCreationRevision(file, previousData, previousLOC, symbolicNames); } else { buildChangeRevision(file, previousData, previousLOC, symbolicNames); } } else if (previousData.isDeletion()) { buildDeletionRevision(file, previousData, previousLOC, symbolicNames); } else { logger.warning("illegal state in " + file.getFilenameWithPath() + ":" + previousData.getRevisionNumber()); } } // symbolic names for currentData symbolicNames = createSymbolicNamesCollection(currentData); int nextLinesOfCode = currentLOC - getLOCChange(currentData); if (currentData.isCreation()) { buildCreationRevision(file, currentData, currentLOC, symbolicNames); } else if (currentData.isDeletion()) { buildDeletionRevision(file, currentData, currentLOC, symbolicNames); buildBeginOfLogRevision(file, beginOfLogDate, nextLinesOfCode, symbolicNames); } else if (currentData.isChangeOrRestore()) { buildChangeRevision(file, currentData, currentLOC, symbolicNames); buildBeginOfLogRevision(file, beginOfLogDate, nextLinesOfCode, symbolicNames); } else if (currentData.isAddOnSubbranch()) { // ignore } else { logger.warning("illegal state in " + file.getFilenameWithPath() + ":" + currentData.getRevisionNumber()); } return file; }
49097 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49097/c009af5deeb0216e9692ffdf50c8c3760e8268e2/FileBuilder.java/buggy/src/net/sf/statcvs/input/FileBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 18607, 812, 21266, 12, 1626, 2376, 951, 1343, 1626, 13, 288, 3639, 309, 261, 291, 14478, 812, 1435, 747, 401, 768, 4002, 382, 1343, 5027, 10756, 288, 5411, 327, 446, 31, 3639, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 18607, 812, 21266, 12, 1626, 2376, 951, 1343, 1626, 13, 288, 3639, 309, 261, 291, 14478, 812, 1435, 747, 401, 768, 4002, 382, 1343, 5027, 10756, 288, 5411, 327, 446, 31, 3639, 289, ...
Dimension d = super.getPreferredSize(); System.out.println("JFrame.getPrefSize(): " + d + " , comp=" + getComponentCount() + ", layout=" + getLayout()); return d;
return super.getPreferredSize();
public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); System.out.println("JFrame.getPrefSize(): " + d + " , comp=" + getComponentCount() + ", layout=" + getLayout()); return d; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/9e763280cf1369c9681ea91b32ae758840a76dc3/JApplet.java/buggy/core/src/classpath/javax/javax/swing/JApplet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13037, 12822, 4193, 1225, 1435, 225, 288, 565, 13037, 302, 273, 2240, 18, 588, 16028, 1225, 5621, 565, 2332, 18, 659, 18, 8222, 2932, 46, 3219, 18, 588, 23218, 1225, 13332, 315, 397...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13037, 12822, 4193, 1225, 1435, 225, 288, 565, 13037, 302, 273, 2240, 18, 588, 16028, 1225, 5621, 565, 2332, 18, 659, 18, 8222, 2932, 46, 3219, 18, 588, 23218, 1225, 13332, 315, 397...
ExampleTestCase testCase = new ExampleTestCase(); MockVerifiable aVerifiable = new MockVerifiable();
ExampleTestCase testCase = new ExampleTestCase(); MockVerifiable aVerifiable = new MockVerifiable();
public void testAllowsVerifiableObjectsToBeUnregistered() throws Throwable { // setup ExampleTestCase testCase = new ExampleTestCase(); MockVerifiable aVerifiable = new MockVerifiable(); // expect aVerifiable.setExpectedVerifyCalls(0); // execute testCase.registerToVerify(aVerifiable); testCase.unregisterToVerify(aVerifiable); testCase.runBare(); // verify aVerifiable.verifyExpectations(); }
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/4aaf60d8fa76687c3492c508dd98678fbbd3d935/VerifyingTestCaseTest.java/clean/jmock/core/src/test/jmock/core/VerifyingTestCaseTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 19132, 3945, 8424, 4710, 15360, 984, 14327, 1435, 1216, 4206, 288, 3639, 368, 3875, 3639, 5090, 4709, 2449, 1842, 2449, 273, 394, 5090, 4709, 2449, 5621, 3639, 7867, 3945, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19132, 3945, 8424, 4710, 15360, 984, 14327, 1435, 1216, 4206, 288, 3639, 368, 3875, 3639, 5090, 4709, 2449, 1842, 2449, 273, 394, 5090, 4709, 2449, 5621, 3639, 7867, 3945, ...
if (verbose >= 1) traceContext.pop();
if (verbose >= 2) traceContext.pop();
private static int copyToBootImage(Object jdkObject, boolean allocOnly, int overwriteOffset, Object parentObject) throws IllegalAccessException { // // Return object if it is already copied and not being overwritten // BootImageMap.Entry mapEntry = BootImageMap.findOrCreateEntry(jdkObject); if (mapEntry.imageOffset != OBJECT_NOT_ALLOCATED && overwriteOffset == -1) return mapEntry.imageOffset; if (verbose >= 2) depth++; // // fetch object's type information // Class jdkType = jdkObject.getClass(); VM_Type rvmType = getRvmType(jdkType); if (rvmType == null) { if (verbose >= 2) traverseObject(jdkObject); if (verbose >= 2) depth--; return OBJECT_NOT_PRESENT; // object not part of bootimage } // // copy object to image // if (jdkType.isArray()) { VM_Array rvmArrayType = rvmType.asArray(); // // allocate space in image // int arrayCount = Array.getLength(jdkObject); int arrayImageOffset = (overwriteOffset == -1) ? bootImage.allocateArray(rvmArrayType, arrayCount) : overwriteOffset; mapEntry.imageOffset = arrayImageOffset; if (verbose >= 2) { if (depth == depthCutoff) say(SPACES.substring(0,depth+1), "TOO DEEP: cutting off"); else if (depth < depthCutoff) { String tab = SPACES.substring(0,depth+1); if (depth == 0 && jtocCount >= 0) tab = tab + "jtoc #" + String.valueOf(jtocCount) + ": "; int arraySize = rvmArrayType.getInstanceSize(arrayCount); say(tab, "Copying array ", jdkType.getName(), " length=", String.valueOf(arrayCount), (arraySize >= LARGE_ARRAY_SIZE) ? " large object!!!" : ""); } } VM_Type rvmElementType = rvmArrayType.getElementType(); // Show info on reachability of int arrays // if (false && rvmElementType.equals(VM_Type.IntType)) { if (parentObject != null) { Class parentObjectType = parentObject.getClass(); VM.sysWrite("Copying int array (", 4 * ((int []) jdkObject).length); VM.sysWriteln(" bytes) from parent object of type ", parentObjectType.toString()); } else { VM.sysWriteln("Copying int array from no parent object"); } } // // copy array elements from host jdk address space into image // recurse on values that are references // if (rvmElementType.isPrimitiveType()) { // array element is logical or numeric type if (rvmElementType.equals(VM_Type.BooleanType)) { boolean values[] = (boolean[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setByte(arrayImageOffset + i, values[i] ? 1 : 0); } else if (rvmElementType.equals(VM_Type.ByteType)) { byte values[] = (byte[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setByte(arrayImageOffset + i, values[i]); } else if (rvmElementType.equals(VM_Type.CharType)) { char values[] = (char[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setHalfWord(arrayImageOffset + (i << LOG_BYTES_IN_CHAR), values[i]); } else if (rvmElementType.equals(VM_Type.ShortType)) { short values[] = (short[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setHalfWord(arrayImageOffset + (i << LOG_BYTES_IN_SHORT), values[i]); } else if (rvmElementType.equals(VM_Type.IntType)) { int values[] = (int[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setFullWord(arrayImageOffset + (i << LOG_BYTES_IN_INT), values[i]); } else if (rvmElementType.equals(VM_Type.LongType)) { long values[] = (long[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setDoubleWord(arrayImageOffset + (i << LOG_BYTES_IN_LONG), values[i]); } else if (rvmElementType.equals(VM_Type.FloatType)) { float values[] = (float[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setFullWord(arrayImageOffset + (i << LOG_BYTES_IN_FLOAT), Float.floatToIntBits(values[i])); } else if (rvmElementType.equals(VM_Type.DoubleType)) { double values[] = (double[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setDoubleWord(arrayImageOffset + (i << LOG_BYTES_IN_DOUBLE), Double.doubleToLongBits(values[i])); } else fail("unexpected primitive array type: " + rvmArrayType); } else { // array element is reference type Object values[] = (Object []) jdkObject; Class jdkClass = jdkObject.getClass(); if (!allocOnly) { for (int i = 0; i<arrayCount; ++i) { if (values[i] != null) { if (verbose >= 1) traceContext.push(values[i].getClass().getName(), jdkClass.getName(), i); int imageOffset = copyToBootImage(values[i], allocOnly, -1, jdkObject); if (imageOffset == OBJECT_NOT_PRESENT) { // object not part of bootimage: install null reference if (verbose >= 1) traceContext.traceObjectNotInBootImage(); bootImage.setNullAddressWord(arrayImageOffset + (i << LOG_BYTES_IN_ADDRESS)); } else { bootImage.setAddressWord(arrayImageOffset + (i << LOG_BYTES_IN_ADDRESS), bootImageAddress + imageOffset); } if (verbose >= 1) traceContext.pop(); } } } } } else { if (rvmType == VM_Type.AddressArrayType) { if (verbose >= 2) depth--; VM_AddressArray addrArray = (VM_AddressArray) jdkObject; Object backing = addrArray.getBacking(); return copyMagicArrayToBootImage(backing, rvmType.asArray(), allocOnly, overwriteOffset, parentObject); } if (rvmType == VM_Type.OffsetArrayType) { if (verbose >= 2) depth--; VM_OffsetArray addrArray = (VM_OffsetArray) jdkObject; Object backing = addrArray.getBacking(); return copyMagicArrayToBootImage(backing, rvmType.asArray(), allocOnly, overwriteOffset, parentObject); } if (rvmType == VM_Type.WordArrayType) { if (verbose >= 2) depth--; VM_WordArray addrArray = (VM_WordArray) jdkObject; Object backing = addrArray.getBacking(); return copyMagicArrayToBootImage(backing, rvmType.asArray(), allocOnly, overwriteOffset, parentObject); } if (rvmType == VM_Type.ExtentArrayType) { if (verbose >= 2) depth--; VM_ExtentArray addrArray = (VM_ExtentArray) jdkObject; Object backing = addrArray.getBacking(); return copyMagicArrayToBootImage(backing, rvmType.asArray(), allocOnly, overwriteOffset, parentObject); } if (rvmType == VM_Type.CodeArrayType) { if (verbose >= 2) depth--; VM_CodeArray codeArray = (VM_CodeArray) jdkObject; Object backing = codeArray.getBacking(); return copyMagicArrayToBootImage(backing, rvmType.asArray(), allocOnly, overwriteOffset, parentObject); } if (rvmType.isMagicType()) { VM.sysWriteln("Unhandled copying of magic type: " + rvmType.getDescriptor().toString()); VM.sysFail("incomplete boot image support"); } // // allocate space in image // VM_Class rvmScalarType = rvmType.asClass(); int scalarImageOffset = (overwriteOffset == -1) ? bootImage.allocateScalar(rvmScalarType) : overwriteOffset; mapEntry.imageOffset = scalarImageOffset; if (verbose >= 2) { if (depth == depthCutoff) say(SPACES.substring(0,depth+1), "TOO DEEP: cutting off"); else if (depth < depthCutoff) { String tab = SPACES.substring(0,depth+1); if (depth == 0 && jtocCount >= 0) tab = tab + "jtoc #" + String.valueOf(jtocCount) + " "; int scalarSize = rvmScalarType.getInstanceSize(); say(tab, "Copying object ", jdkType.getName(), " size=", String.valueOf(scalarSize), (scalarSize >= LARGE_SCALAR_SIZE) ? " large object!!!" : ""); } } // // copy object fields from host jdk address space into image // recurse on values that are references // VM_Field[] rvmFields = rvmScalarType.getInstanceFields(); for (int i = 0, n = rvmFields.length; i < n; ++i) { VM_Field rvmField = rvmFields[i]; VM_TypeReference rvmFieldType = rvmField.getType(); int rvmFieldOffset = scalarImageOffset + rvmField.getOffset(); String rvmFieldName = rvmField.getName().toString(); Field jdkFieldAcc = getJdkFieldAccessor(jdkType, i, INSTANCE_FIELD); if (jdkFieldAcc == null) { if (verbose >= 1) traceContext.push(rvmFieldType.toString(), jdkType.getName(), rvmFieldName); if (verbose >= 1) traceContext.traceFieldNotInHostJdk(); if (verbose >= 1) traceContext.pop(); if (rvmFieldType.isPrimitiveType()) switch (rvmField.getType().getSize()) { case 4: bootImage.setFullWord(rvmFieldOffset, 0); break; case 8: bootImage.setDoubleWord(rvmFieldOffset, 0L); break; default:fail("unexpected field type: " + rvmFieldType); break; } else bootImage.setNullAddressWord(rvmFieldOffset); continue; } if (rvmFieldType.isPrimitiveType()) { // field is logical or numeric type if (rvmFieldType.isBooleanType()) { bootImage.setFullWord(rvmFieldOffset, jdkFieldAcc.getBoolean(jdkObject) ? 1 : 0); } else if (rvmFieldType.isByteType()) { bootImage.setFullWord(rvmFieldOffset, jdkFieldAcc.getByte(jdkObject)); } else if (rvmFieldType.isCharType()) { bootImage.setFullWord(rvmFieldOffset, jdkFieldAcc.getChar(jdkObject)); } else if (rvmFieldType.isShortType()) { bootImage.setFullWord(rvmFieldOffset, jdkFieldAcc.getShort(jdkObject)); } else if (rvmFieldType.isIntType()) { try { bootImage.setFullWord(rvmFieldOffset, jdkFieldAcc.getInt(jdkObject)); } catch (IllegalArgumentException ex) { System.err.println( "type " + rvmScalarType + ", field " + rvmField); throw ex; } } else if (rvmFieldType.isLongType()) { bootImage.setDoubleWord(rvmFieldOffset, jdkFieldAcc.getLong(jdkObject)); } else if (rvmFieldType.isFloatType()) { float f = jdkFieldAcc.getFloat(jdkObject); bootImage.setFullWord(rvmFieldOffset, Float.floatToIntBits(f)); } else if (rvmFieldType.isDoubleType()) { double d = jdkFieldAcc.getDouble(jdkObject); bootImage.setDoubleWord(rvmFieldOffset, Double.doubleToLongBits(d)); } else if (rvmFieldType.equals(VM_TypeReference.Address)) { Object o = jdkFieldAcc.get(jdkObject); VM_Address addr = (VM_Address) o; String msg = " instance field " + rvmField.toString(); if (VM.BuildFor32Addr) bootImage.setFullWord(rvmFieldOffset, (int) getAddressValue(addr, msg, rvmField != VM_Entrypoints.vpStatusAddressField)); else if (VM.BuildFor64Addr) bootImage.setDoubleWord(rvmFieldOffset, getAddressValue(addr, msg, rvmField != VM_Entrypoints.vpStatusAddressField)); } else if (rvmFieldType.equals(VM_TypeReference.Word)) { VM_Word w = (VM_Word) jdkFieldAcc.get(jdkObject); VM_Statics.setSlotContents(rvmFieldOffset, w.toInt()); } else if (rvmFieldType.equals(VM_TypeReference.Offset)) { VM_Offset o = (VM_Offset) jdkFieldAcc.get(jdkObject); VM_Statics.setSlotContents(rvmFieldOffset, o.toInt()); } else if (rvmFieldType.equals(VM_TypeReference.Extent)) { VM_Extent e = (VM_Extent) jdkFieldAcc.get(jdkObject); VM_Statics.setSlotContents(rvmFieldOffset, e.toInt()); } else { fail("unexpected primitive field type: " + rvmFieldType); } } else { // field is reference type Object value = jdkFieldAcc.get(jdkObject); if (!allocOnly && value != null) { Class jdkClass = jdkFieldAcc.getDeclaringClass(); if (verbose >= 1) traceContext.push(value.getClass().getName(), jdkClass.getName(), jdkFieldAcc.getName()); int imageOffset = copyToBootImage(value, allocOnly, -1, jdkObject); if (imageOffset == OBJECT_NOT_PRESENT) { // object not part of bootimage: install null reference if (verbose >= 1) traceContext.traceObjectNotInBootImage(); bootImage.setNullAddressWord(rvmFieldOffset); } else bootImage.setAddressWord(rvmFieldOffset, bootImageAddress + imageOffset); if (verbose >= 1) traceContext.pop(); } } } } // // copy object's type information block into image, if it's not there // already // if (!allocOnly) { if (verbose >= 1) traceContext.push("", jdkObject.getClass().getName(), "tib"); int tibImageOffset = copyToBootImage(rvmType.getTypeInformationBlock(), allocOnly, -1, jdkObject); if (verbose >= 1) traceContext.pop(); if (tibImageOffset == OBJECT_NOT_ALLOCATED) fail("can't copy tib for " + jdkObject); int tibAddress = bootImageAddress + tibImageOffset; VM_ObjectModel.setTIB(bootImage, mapEntry.imageOffset, VM_Address.fromInt(tibAddress), rvmType); } if (verbose >= 2) depth--; return mapEntry.imageOffset; }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/21ce22c702327e64b0bf62e31e8a5812df71b0a4/BootImageWriter.java/buggy/rvm/src/tools/bootImageWriter/BootImageWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 509, 29817, 15817, 2040, 12, 921, 525, 2883, 921, 16, 4766, 1377, 1250, 4767, 3386, 16, 509, 6156, 2335, 16, 4766, 1377, 1033, 982, 921, 13, 565, 1216, 11900, 565, 288, 1377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 509, 29817, 15817, 2040, 12, 921, 525, 2883, 921, 16, 4766, 1377, 1250, 4767, 3386, 16, 509, 6156, 2335, 16, 4766, 1377, 1033, 982, 921, 13, 565, 1216, 11900, 565, 288, 1377, ...
{ }
{ }
public void focusLost(FocusEvent event) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 7155, 19024, 12, 9233, 1133, 871, 13, 565, 288, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 282, 1071, 918, 7155, 19024, 12, 9233, 1133, 871, 13, 565, 288, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
fromString(StringTokenizer st, dnsName name, int ttl, short type, short dclass) throws IOException {
fromString(MyStringTokenizer st, dnsName name, int ttl, short type, short dclass) throws IOException {
fromString(StringTokenizer st, dnsName name, int ttl, short type, short dclass)throws IOException { dnsRecord rec; try { Class rrclass; Constructor m; String s = dns.typeString(type); rrclass = Class.forName("dns" + s + "Record"); m = rrclass.getConstructor(new Class [] { dnsName.class, java.lang.Short.TYPE, java.lang.Integer.TYPE, StringTokenizer.class }); rec = (dnsRecord) m.newInstance(new Object [] { name, new Short(dclass), new Integer(ttl), st }); return rec; } catch (ClassNotFoundException e) { rec = new dnsUNKRecord(name, type, dclass, ttl, st); return rec; } catch (InvocationTargetException e) { System.out.println("from text: " + e); System.out.println(e.getTargetException()); return null; } catch (Exception e) { System.out.println("from text: " + e); return null; }}
4227 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4227/8a9755345c9c34f1168b16166d8283223ef1777e/dnsRecord.java/buggy/DNS/dnsRecord.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 14855, 12, 780, 10524, 384, 16, 6605, 461, 508, 16, 509, 6337, 16, 3025, 618, 16, 3025, 302, 1106, 13, 15069, 1860, 288, 202, 14926, 2115, 1950, 31, 202, 698, 288, 202, 202, 797, 8354, 1106,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 14855, 12, 780, 10524, 384, 16, 6605, 461, 508, 16, 509, 6337, 16, 3025, 618, 16, 3025, 302, 1106, 13, 15069, 1860, 288, 202, 14926, 2115, 1950, 31, 202, 698, 288, 202, 202, 797, 8354, 1106,...
public final String getTextDirectionAttribute() {
public String getTextDirectionAttribute() {
public final String getTextDirectionAttribute() { return getAttributeValue( "dir" ); }
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/87faba487e9757a44ed91514974d1fd63d5fe6b3/HtmlHtml.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HtmlHtml.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6701, 8212, 1499, 1435, 288, 3639, 327, 22777, 12, 315, 1214, 6, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6701, 8212, 1499, 1435, 288, 3639, 327, 22777, 12, 315, 1214, 6, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return false;
return false;
public boolean insertsAreDetected(int type) throws SQLException { return false; }
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/627def55c97b8bb66af3471f8047199de1f4d1c9/FBDatabaseMetaData.java/clean/src/org/firebirdsql/jdbc/FBDatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 15607, 4704, 22614, 12, 474, 618, 13, 1216, 6483, 288, 1082, 327, 629, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 15607, 4704, 22614, 12, 474, 618, 13, 1216, 6483, 288, 1082, 327, 629, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
FrameworkLogEntry logEntry = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, startupFailed ? "Startup error" : "Application error", 1, e, null);
FrameworkLogEntry logEntry = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, startupFailed ? EclipseAdaptorMsg.formatter.getString("ECLIPSE_STARTUP_STARTUP_ERROR") : EclipseAdaptorMsg.formatter.getString("ECLIPSE_STARTUP_APP_ERROR"), 1, e, null);
public static Object run(String[] args, Runnable endSplashHandler) throws Exception { if (debug) System.out.println("Entering EclipseStarter#run() after: " + (System.currentTimeMillis() - Long.parseLong(System.getProperty("eclipse.debug.startupTime")))); //$NON-NLS-1$//$NON-NLS-2$ if (running) throw new IllegalStateException("Platform already running"); boolean startupFailed = true; try { startup(args, endSplashHandler); startupFailed = false; return run(null); } catch (Throwable e) { // ensure the splash screen is down if (endSplashHandler != null) endSplashHandler.run(); // may use startupFailed to understand where the error happened FrameworkLogEntry logEntry = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, startupFailed ? "Startup error" : "Application error", 1, e, null); //TODO Put the right value here if (log != null) log.log(logEntry); else // TODO desperate measure - ideally, we should write this to disk (a la Main.log) e.printStackTrace(); } finally { try { shutdown(); } catch (Throwable e) { FrameworkLogEntry logEntry = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, "Shutdown error", 1, e, null); //TODO Put the right value here if (log != null) log.log(logEntry); else // TODO desperate measure - ideally, we should write this to disk (a la Main.log) e.printStackTrace(); } } // we only get here if an error happened System.getProperties().put(PROP_EXITCODE, "13"); //$NON-NLS-1$ System.getProperties().put(PROP_EXITDATA, EclipseAdaptorMsg.formatter.getString("ECLIPSE_STARTUP_ERROR_CHECK_LOG", log.getFile().getPath())); //$NON-NLS-1$ return null; }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/174dd4c82a5ca0cb9c55b651034ec3820031071c/EclipseStarter.java/buggy/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1033, 1086, 12, 780, 8526, 833, 16, 10254, 679, 16881, 961, 1503, 13, 1216, 1185, 288, 202, 202, 430, 261, 4148, 13, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 10237, 310,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 1086, 12, 780, 8526, 833, 16, 10254, 679, 16881, 961, 1503, 13, 1216, 1185, 288, 202, 202, 430, 261, 4148, 13, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 10237, 310,...
updateInstallDir(installPath);
public void widgetSelected(SelectionEvent se) { if (installDir != null && isValidLocation()) { Shell shell = installDir.getShell(); MessageBox mb = new MessageBox(shell, SWT.OK | SWT.CANCEL | SWT.ICON_QUESTION); mb.setText(Messages.installTitle); mb.setMessage(Messages.installMessage + "\n" + installDir.getText()); if (mb.open() == SWT.OK) { final IInstallableRuntime installable = tomcat .getSelection() ? gWithTomcat : gWithJetty; final Path installPath = new Path(installDir .getText()); IRunnableWithProgress runnable = new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { try { installable.install(installPath, monitor); updateInstallDir(installPath); } catch (CoreException e) { Trace.trace(Trace.SEVERE, "Error installing runtime", e); } } }; try { getWizard().run(true, false, runnable); } catch (InterruptedException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } catch (Exception e) { Trace.trace(Trace.SEVERE, "Error installing runtime", e); } } } }
10123 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10123/62b52020246490bf88675cf476ef185242f75810/GeronimoServerRuntimeWizardFragment.java/buggy/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoServerRuntimeWizardFragment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 695, 13, 288, 6862, 202, 430, 261, 5425, 1621, 480, 446, 597, 4908, 2735, 10756, 288, 25083, 202, 13220, 5972, 273, 3799, 1621, 18, 588, 13220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6233, 1133, 695, 13, 288, 6862, 202, 430, 261, 5425, 1621, 480, 446, 597, 4908, 2735, 10756, 288, 25083, 202, 13220, 5972, 273, 3799, 1621, 18, 588, 13220,...
fail("MessageFormatException expected as value doesn't exist.");
fail("Exception Expected.");
private void testLong(JMSMapMessage m) throws JMSException { //Try bad reads try { m.getBoolean("long"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } try { m.getByte("long"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } try { m.getShort("long"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } //Try bad reads try { m.getChar("long"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } try { m.getInt("long"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } Assert.assertEquals(Long.MAX_VALUE, m.getLong("long")); //Try bad reads try { m.getFloat("long"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } //Try bad reads try { m.getDouble("long"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } //Try bad reads try { m.getBytes("long"); fail("MessageFormatException expected as value doesn't exist."); } catch (MessageFormatException nfe) { //normal execution } Assert.assertEquals("" + Long.MAX_VALUE, m.getString("long")); }
45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/dc3b5d32de80ec74031cc79dc32d982fd43c55ce/MapMessageTest.java/clean/qpid/java/client/src/test/java/org/apache/qpid/test/unit/basic/MapMessageTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1842, 3708, 12, 46, 3537, 863, 1079, 312, 13, 1216, 20343, 565, 288, 3639, 368, 7833, 5570, 6838, 3639, 775, 3639, 288, 5411, 312, 18, 588, 5507, 2932, 5748, 8863, 5411, 2321, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 3708, 12, 46, 3537, 863, 1079, 312, 13, 1216, 20343, 565, 288, 3639, 368, 7833, 5570, 6838, 3639, 775, 3639, 288, 5411, 312, 18, 588, 5507, 2932, 5748, 8863, 5411, 2321, ...
TestCase.assertEquals("0", links[0].getParameterValues(p1.encodeParameterName(TableTagParameters.PARAMETER_SORT))[0]); TestCase.assertEquals("2", links[0].getParameterValues(p1.encodeParameterName(TableTagParameters.PARAMETER_ORDER))[0]);
assertEquals("0", links[0].getParameterValues(p1.encodeParameterName(TableTagParameters.PARAMETER_SORT))[0]); assertEquals("2", links[0].getParameterValues(p1.encodeParameterName(TableTagParameters.PARAMETER_ORDER))[0]);
public void doTest(String jspName) throws Exception { WebRequest request = new GetMethodWebRequest(jspName); ParamEncoder p1 = new ParamEncoder("table"); ParamEncoder p2 = new ParamEncoder("table2"); request.setParameter(p2.encodeParameterName(TableTagParameters.PARAMETER_SORT), "number"); WebResponse response = runner.getResponse(request); if (log.isDebugEnabled()) { log.debug("RESPONSE: " + response.getText()); } WebLink[] links = response.getLinks(); TestCase.assertEquals("0", links[0].getParameterValues(p1.encodeParameterName(TableTagParameters.PARAMETER_SORT))[0]); TestCase.assertEquals("2", links[0].getParameterValues(p1.encodeParameterName(TableTagParameters.PARAMETER_ORDER))[0]); TestCase.assertEquals("buzz", links[1].getParameterValues(p1.encodeParameterName(TableTagParameters.PARAMETER_SORT))[0]); TestCase.assertEquals("2", links[1].getParameterValues(p1.encodeParameterName(TableTagParameters.PARAMETER_ORDER))[0]); // test that the column with sortName buzz was set as sorted and now has a link to sort desc TestCase.assertEquals("number", links[2].getParameterValues(p2.encodeParameterName(TableTagParameters.PARAMETER_SORT))[0]); TestCase.assertEquals("1", links[2].getParameterValues(p2.encodeParameterName(TableTagParameters.PARAMETER_ORDER))[0]); // now ensure that our data has not been sorted at all since we are doing it 'externally' WebTable[] tables = response.getTables(); TestCase.assertEquals("1", tables[1].getCellAsText(1, 0)); TestCase.assertEquals("4", tables[1].getCellAsText(2, 0)); TestCase.assertEquals("2", tables[1].getCellAsText(3, 0)); TestCase.assertEquals("3", tables[1].getCellAsText(4, 0)); }
10316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10316/2ea6ea4e7572a181090eff95efe14d1e7a1f07f8/ExternalSortTest.java/buggy/displaytag/src/test/java/org/displaytag/jsptests/ExternalSortTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 4709, 12, 780, 22535, 461, 13, 1216, 1185, 565, 288, 3639, 2999, 691, 590, 273, 394, 968, 1305, 4079, 691, 12, 24926, 461, 1769, 3639, 3014, 7204, 293, 21, 273, 394, 301...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 4709, 12, 780, 22535, 461, 13, 1216, 1185, 565, 288, 3639, 2999, 691, 590, 273, 394, 968, 1305, 4079, 691, 12, 24926, 461, 1769, 3639, 3014, 7204, 293, 21, 273, 394, 301...
fDocumentHandler.processingInstruction(target, data, fAugmentations);
fDocumentHandler.processingInstruction(target, data, null);
protected void scanPIData(String target, XMLString data) throws IOException, XNIException { super.scanPIData(target, data); fMarkupDepth--; // call handler if (fDocumentHandler != null) { fDocumentHandler.processingInstruction(target, data, fAugmentations); } } // scanPIData(String)
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/0c89615b0bdfe565e769952ce9d81b62b7cd076a/XMLDocumentFragmentScannerImpl.java/clean/src/org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4135, 16522, 396, 12, 780, 1018, 16, 3167, 780, 501, 13, 540, 1216, 1860, 16, 1139, 50, 45, 503, 288, 3639, 2240, 18, 9871, 16522, 396, 12, 3299, 16, 501, 1769, 3639, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4135, 16522, 396, 12, 780, 1018, 16, 3167, 780, 501, 13, 540, 1216, 1860, 16, 1139, 50, 45, 503, 288, 3639, 2240, 18, 9871, 16522, 396, 12, 3299, 16, 501, 1769, 3639, 284, ...
private static boolean domainDnExists(DirContext ctxt, String dn) throws NamingException, ServiceException {
private static boolean domainDnExists(DirContext ctxt, String dn) throws NamingException {
private static boolean domainDnExists(DirContext ctxt, String dn) throws NamingException, ServiceException { try { NamingEnumeration ne = ctxt.search(dn,"objectclass=dcObject", sObjectSC); boolean result = ne.hasMore(); ne.close(); return result; } catch (InvalidNameException e) { return false; } catch (NameNotFoundException nnfe) { return false; } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/c3ae2538baa5b2aaeeb9c98990b663054e0206c4/LdapProvisioning.java/buggy/ZimbraServer/src/java/com/zimbra/cs/account/ldap/LdapProvisioning.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 2461, 19053, 4002, 12, 1621, 1042, 14286, 16, 514, 8800, 13, 1216, 26890, 288, 3639, 775, 288, 5411, 18884, 21847, 1073, 273, 14286, 18, 3072, 12, 5176, 10837, 1612, 1106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 2461, 19053, 4002, 12, 1621, 1042, 14286, 16, 514, 8800, 13, 1216, 26890, 288, 3639, 775, 288, 5411, 18884, 21847, 1073, 273, 14286, 18, 3072, 12, 5176, 10837, 1612, 1106, ...
}
} stateChange(CLASS_LOADED);
public synchronized void createApplet() { panel = new KJASAppletPanel( appletSize ); add( "Center", panel ); pack(); setVisible(true); loader.addStatusListener(panel); runThread = new Thread ( new Runnable() { public void run() { //this order is very important and took a long time //to figure out- don't modify it unless there are //real bug fixes // till 2002 09 18 // commented out the synchronized block because // it leads to a deadlock of the JVM with // j2re 1.4.1 //synchronized( me ) { active = true; try { appletClass = loader.loadClass( className ); } catch (Exception e) { Main.kjas_err("Class could not be loaded: " + className, e); } if( appletClass == null ) { Main.info( "Could not load applet class " + className); panel.showFailed(); return; } try { synchronized (appletClass) { Main.debug("Applet " + appletName + " id=" + appletID + " instantiating..."); app = (Applet) appletClass.newInstance(); Main.debug("Applet " + appletName + " id=" + appletID + " instantiated."); } app.setStub( me ); } catch( InstantiationException e ) { Main.kjas_err( "Could not instantiate applet", e ); panel.showFailed(); return; } catch( IllegalAccessException e ) { Main.kjas_err( "Could not instantiate applet", e ); panel.showFailed(); return; } //} // synchronized app.setVisible(false); Main.debug("panel.add( \"Center\", app );"); panel.setApplet( app ); Main.debug("app.setSize(appletSize);"); app.setSize(appletSize); context.showStatus("Initializing Applet " + appletName + " ..."); Main.debug("Applet " + appletName + " id=" + appletID + " initializing..."); try { app.init(); } catch (Error e) { Main.info("Error " + e.toString() + " during applet initialization"); e.printStackTrace(); return; } loader.removeStatusListener(panel); app.setVisible(true); Main.debug("Applet " + appletName + " id=" + appletID + " initialized."); Main.debug("app.setSize(appletSize);"); app.setSize(appletSize); app.validate(); Main.debug("app.setVisible(true);"); app.setVisible(true); Main.debug("panel.setVisible(true);"); panel.setVisible(true); Main.debug("setVisible(true);"); setVisible(true); //repaint(1L); //panel.repaint(1L); //--Main.debug("app.repaint(1L);"); app.repaint(0L); context.showStatus("Starting Applet " + appletName + " ..."); // create a new thread, so we know, when the applet was started Main.debug("Applet " + appletName + " id=" + appletID + " starting..."); Thread appletThread = new KJASAppletThread(app, "KJAS-Applet-" + appletID + "-" + appletName); panel.stopAnimation(); appletThread.start(); Main.debug("Applet " + appletName + " id=" + appletID + " started."); context.showStatus("Applet " + appletName + " started."); //setVisible(true); } } , "KJAS-AppletStub-" + appletID + "-" + appletName); runThread.setContextClassLoader(loader); runThread.start(); }
45545 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45545/3ea62068168d1d5e148e98e6c40ca7f4f9a004b0/KJASAppletStub.java/clean/khtml/java/org/kde/kjas/server/KJASAppletStub.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 752, 23696, 1435, 288, 3639, 6594, 273, 394, 1475, 46, 3033, 23696, 5537, 12, 21853, 1225, 11272, 3639, 527, 12, 315, 8449, 3113, 6594, 11272, 3639, 2298, 5621, 3639, 16697...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 752, 23696, 1435, 288, 3639, 6594, 273, 394, 1475, 46, 3033, 23696, 5537, 12, 21853, 1225, 11272, 3639, 527, 12, 315, 8449, 3113, 6594, 11272, 3639, 2298, 5621, 3639, 16697...
final Prototyper[] prototyperArray = (Prototyper[]) prototypers.values().toArray(new Prototyper[prototypers.size()]); LOG.debug("Building array[" + prototyperArray.length + "] from list(" + prototypers.size() + ")"); return prototyperArray;
return (Prototyper[]) prototypers.values().toArray(new Prototyper[prototypers.size()]);
protected static synchronized Prototyper[] getPrototypers() { final Prototyper[] prototyperArray = (Prototyper[]) prototypers.values().toArray(new Prototyper[prototypers.size()]); LOG.debug("Building array[" + prototyperArray.length + "] from list(" + prototypers.size() + ")"); return prototyperArray; }
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/076ed95a1c52bae8f68e87478716e1ef4129c673/PrototyperController.java/clean/src/java/org/logicalcobwebs/proxool/PrototyperController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 3852, 1186, 3307, 8300, 8526, 3570, 3307, 879, 414, 1435, 288, 3639, 727, 1186, 3307, 8300, 8526, 450, 3307, 8300, 1076, 273, 261, 626, 3307, 8300, 63, 5717, 450, 3307, 879, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 3852, 1186, 3307, 8300, 8526, 3570, 3307, 879, 414, 1435, 288, 3639, 727, 1186, 3307, 8300, 8526, 450, 3307, 8300, 1076, 273, 261, 626, 3307, 8300, 63, 5717, 450, 3307, 879, 41...
if ((index < input.length) && matchChar(state.flags, ren.chr, input[index])) index++; else return -1;
if (index >= input.length) { return state.noMoreInput(); } if (!matchChar(state.flags, ren.chr, input[index])) return -1; index++;
int matchRENodes(MatchState state, RENode ren, RENode stop, int index) { int num; char[] input = state.input; while ((ren != stop) && (ren != null)) { switch (ren.op) { case REOP_EMPTY: break; case REOP_ALT: { if (ren.next.op != REOP_ALT) { ren = (RENode)ren.kid; continue; } else { num = state.parenCount; int kidMatch = matchRENodes(state, (RENode)ren.kid, stop, index); if (kidMatch != -1) return kidMatch; for (int i = num; i < state.parenCount; i++) state.parens[i].length = 0; state.parenCount = num; } } break; case REOP_QUANT: { int lastKid = -1; for (num = 0; num < ren.min; num++) { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; else { lastKid = index; index = kidMatch; } } if (num == ren.max) // Have matched the exact count required, // need to match the rest of the regexp. break; if ((ren.flags & RENode.MINIMAL) == 0) { int kidMatch = matchGreedyKid(state, ren, stop, num, index, lastKid); if (kidMatch != -1) index = kidMatch; } else { index = matchNonGreedyKid(state, ren, num, ren.max, index); if (index == -1) return -1; } } break; case REOP_PLUS: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; if ((ren.flags & RENode.MINIMAL) == 0) { index = matchGreedyKid(state, ren, stop, 1, kidMatch, index); if (index == -1) index = kidMatch; } else index = matchNonGreedyKid(state, ren, 1, 0, kidMatch); if (index == -1) return -1; } break; case REOP_STAR: if ((ren.flags & RENode.MINIMAL) == 0) { int kidMatch = matchGreedyKid(state, ren, stop, 0, index, -1); if (kidMatch != -1) index = kidMatch; } else { index = matchNonGreedyKid(state, ren, 0, 0, index); if (index == -1) return -1; } break; case REOP_OPT: { int saveNum = state.parenCount; if (((ren.flags & RENode.MINIMAL) != 0)) { int restMatch = matchRENodes(state, ren.next, stop, index); if (restMatch != -1) return restMatch; } int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) { state.parenCount = saveNum; break; } else { int restMatch = matchRENodes(state, ren.next, stop, kidMatch); if (restMatch == -1) { // need to undo the result of running the kid state.parenCount = saveNum; break; } else return restMatch; } } case REOP_LPARENNON: ren = (RENode)ren.kid; continue; case REOP_RPARENNON: break; case REOP_LPAREN: { num = ren.num; ren = (RENode)ren.kid; SubString parsub = state.parens[num]; if (parsub == null) { parsub = state.parens[num] = new SubString(); parsub.charArray = input; } parsub.index = index; parsub.length = 0; if (num >= state.parenCount) state.parenCount = num + 1; continue; } case REOP_RPAREN: { num = ren.num; SubString parsub = state.parens[num]; if (parsub == null) throw new RuntimeException("Paren problem"); parsub.length = index - parsub.index; break; } case REOP_ASSERT: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; break; } case REOP_ASSERT_NOT: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch != -1) return -1; break; } case REOP_BACKREF: { num = ren.num; if (num >= state.parens.length) { Context.reportError( ScriptRuntime.getMessage( "msg.bad.backref", null)); return -1; } SubString parsub = state.parens[num]; if (parsub == null) parsub = state.parens[num] = new SubString(); int length = parsub.length; if ((input.length - index) < length) return -1; else { for (int i = 0; i < length; i++, index++) { if (!matchChar(state.flags, input[index], parsub.charArray[parsub.index + i])) return -1; } } } break; case REOP_CCLASS: if (index < input.length) { if (ren.bitmap == null) { char[] source = (ren.s != null) ? ren.s : this.source.toCharArray(); ren.buildBitmap(state, source, ((state.flags & FOLD) != 0)); } char c = input[index]; int b = (c >>> 3); if (b >= ren.bmsize) { if (ren.kid2 == -1) // a ^ class index++; else return -1; } else { int bit = c & 7; bit = 1 << bit; if ((ren.bitmap[b] & bit) != 0) index++; else return -1; } } else return -1; break; case REOP_DOT: if ((index < input.length) && (input[index] != '\n')) index++; else return -1; break; case REOP_DOTSTARMIN: { int cp2; for (cp2 = index; cp2 < input.length; cp2++) { int cp3 = matchRENodes(state, ren.next, stop, cp2); if (cp3 != -1) return cp3; if (input[cp2] == '\n') return -1; } return -1; } case REOP_DOTSTAR: { int cp2; for (cp2 = index; cp2 < input.length; cp2++) if (input[cp2] == '\n') break; while (cp2 >= index) { int cp3 = matchRENodes(state, ren.next, stop, cp2); if (cp3 != -1) { index = cp2; break; } cp2--; } break; } case REOP_WBDRY: if (((index == 0) || !isWord(input[index-1])) ^ ((index >= input.length) || !isWord(input[index]))) ; // leave index else return -1; break; case REOP_WNONBDRY: if (((index == 0) || !isWord(input[index-1])) ^ ((index < input.length) && isWord(input[index]))) ; // leave index else return -1; break; case REOP_EOLONLY: case REOP_EOL: { if (index == input.length) ; // leave index; else { Context cx = Context.getCurrentContext(); RegExpImpl reImpl = getImpl(cx); if ((reImpl.multiline) || ((state.flags & MULTILINE) != 0)) if (input[index] == '\n') ;// leave index else return -1; else return -1; } } break; case REOP_BOL: { Context cx = Context.getCurrentContext(); RegExpImpl reImpl = getImpl(cx); if (index != 0) { if ((index < input.length) && (reImpl.multiline || ((state.flags & MULTILINE) != 0))) { if (input[index - 1] == '\n') { break; } } return -1; } // leave index } break; case REOP_DIGIT: if ((index < input.length) && isDigit(input[index])) index++; else return -1; break; case REOP_NONDIGIT: if ((index < input.length) && !isDigit(input[index])) index++; else return -1; break; case REOP_ALNUM: if ((index < input.length) && isWord(input[index])) index++; else return -1; break; case REOP_NONALNUM: if ((index < input.length) && !isWord(input[index])) index++; else return -1; break; case REOP_SPACE: if ((index < input.length) && (TokenStream.isJSSpace(input[index]) || TokenStream.isJSLineTerminator(input[index]))) index++; else return -1; break; case REOP_NONSPACE: if ((index < input.length) && !(TokenStream.isJSSpace(input[index]) || TokenStream.isJSLineTerminator(input[index]))) index++; else return -1; break; case REOP_FLAT1: if ((index < input.length) && matchChar(state.flags, ren.chr, input[index])) index++; else return -1; break; case REOP_FLAT: { char[] source = (ren.s != null) ? ren.s : this.source.toCharArray(); int start = ((Integer)ren.kid).intValue(); int length = ren.kid2 - start; if ((input.length - index) < length) return -1; else { for (int i = 0; i < length; i++, index++) { if (!matchChar(state.flags, input[index], source[start + i])) return -1; } } } break; case REOP_JUMP: break; case REOP_END: break; default : throw new RuntimeException("Unsupported by node matcher"); } ren = ren.next; } return index; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/9d8af8e17d97d2f8879112efae076088793bcb6f/NativeRegExp.java/clean/org/mozilla/javascript/regexp/NativeRegExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 845, 862, 3205, 12, 2060, 1119, 919, 16, 2438, 907, 1654, 16, 2438, 907, 2132, 16, 509, 770, 13, 288, 3639, 509, 818, 31, 3639, 1149, 8526, 810, 273, 919, 18, 2630, 31, 3639, 132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 845, 862, 3205, 12, 2060, 1119, 919, 16, 2438, 907, 1654, 16, 2438, 907, 2132, 16, 509, 770, 13, 288, 3639, 509, 818, 31, 3639, 1149, 8526, 810, 273, 919, 18, 2630, 31, 3639, 132...
public void propertyValueAdded(ConfigElementEvent evt) { // XXX: We could also test against mConfigElement == elm ConfigElement elm = (ConfigElement)evt.getSource(); PropertyDefinition prop_def = elm.getDefinition().getPropertyDefinition(evt.getProperty()); if(!prop_def.equals(mPropDef)) { return; } System.out.println("Property value added..."); if(ConfigElement.class == prop_def.getType()) { // Use the PropertySheetFactory to add an additional embedded element. PropertySheetFactory.instance().addEmbeddedElement((PropertySheet)mComponent, mConfigContext, elm, evt.getValue(), prop_def, 2); } else { // Use the PropertySheetFactory to add an aditional normal editor. String label = prop_def.getPropertyValueDefinition(0).getLabel(); PropertySheetFactory.instance().addNormalEditor((PropertySheet)mComponent, mConfigContext, elm, evt.getValue(), prop_def, label, 2, elm.getPropertyValueCount(prop_def.getToken()) - 1); } revalidate(); repaint(); }
49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/88f18f98605d834d92230578f770fc4564084824/VarListPanel.java/clean/modules/jackal/editors/org/vrjuggler/jccl/editors/VarListPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 12337, 8602, 12, 809, 1046, 1133, 6324, 13, 282, 288, 1377, 368, 11329, 30, 1660, 3377, 2546, 1842, 5314, 312, 809, 1046, 422, 12531, 1377, 1903, 1046, 12531, 273, 261, 809, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 12337, 8602, 12, 809, 1046, 1133, 6324, 13, 282, 288, 1377, 368, 11329, 30, 1660, 3377, 2546, 1842, 5314, 312, 809, 1046, 422, 12531, 1377, 1903, 1046, 12531, 273, 261, 809, 10...
if( debug ) ex.printStackTrace();
if(log.isDebugEnabled()) log.debug( "", ex);
protected DefinitionsFactoryConfig readFactoryConfig(ActionServlet servlet, ApplicationConfig config) throws ServletException { // Create tiles definitions config object DefinitionsFactoryConfig factoryConfig = new DefinitionsFactoryConfig(); // Get init parameters from web.xml files try { DefinitionsUtil.populateDefinitionsFactoryConfig(factoryConfig, servlet.getServletConfig()); } catch(Exception ex) { if( debug ) ex.printStackTrace(); throw new UnavailableException( "Can't populate DefinitionsFactoryConfig class from 'web.xml': " + ex.getMessage() ); } // Get init parameters from struts-config.xml try { Map strutsProperties = findStrutsPlugInConfigProperties(servlet, config); factoryConfig.populate(strutsProperties); } catch(Exception ex) { if( debug ) ex.printStackTrace(); throw new UnavailableException( "Can't populate DefinitionsFactoryConfig class from '" + config.getPrefix() + "/struts-config.xml':" + ex.getMessage() ); } return factoryConfig; }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/89ea27c6d0cb3c7e33812de64fdf156e7066d4f2/TilesPlugin.java/buggy/src/share/org/apache/struts/tiles/TilesPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 10849, 87, 1733, 809, 855, 1733, 809, 12, 1803, 4745, 8100, 16, 4257, 809, 642, 13, 1377, 1216, 16517, 225, 288, 565, 368, 1788, 12568, 6377, 642, 733, 225, 10849, 87, 1733, 809, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 10849, 87, 1733, 809, 855, 1733, 809, 12, 1803, 4745, 8100, 16, 4257, 809, 642, 13, 1377, 1216, 16517, 225, 288, 565, 368, 1788, 12568, 6377, 642, 733, 225, 10849, 87, 1733, 809, ...
int offset) throws EndOfFileException { IASTProblem p = createProblem(IASTProblem.SYNTAX_ERROR, offset, length); IASTProblemDeclaration pd = createProblemDeclaration(); pd.setProblem(p); ((ASTNode) pd).setOffsetAndLength(((ASTNode) p).getOffset(), ((ASTNode) p).getLength()); p.setParent(pd); p.setPropertyInParent(IASTProblemHolder.PROBLEM);
int offset) throws EndOfFileException { IASTProblem p = createProblem(IASTProblem.SYNTAX_ERROR, offset, length); IASTProblemDeclaration pd = createProblemDeclaration(); pd.setProblem(p); ((ASTNode) pd).setOffsetAndLength(((ASTNode) p).getOffset(), ((ASTNode) p).getLength()); p.setParent(pd); p.setPropertyInParent(IASTProblemHolder.PROBLEM);
private IASTProblemDeclaration createKnRCProblemDeclaration(int length, int offset) throws EndOfFileException { IASTProblem p = createProblem(IASTProblem.SYNTAX_ERROR, offset, length); IASTProblemDeclaration pd = createProblemDeclaration(); pd.setProblem(p); ((ASTNode) pd).setOffsetAndLength(((ASTNode) p).getOffset(), ((ASTNode) p).getLength()); p.setParent(pd); p.setPropertyInParent(IASTProblemHolder.PROBLEM); // consume until LBRACE is found (to leave off at the function body and // continue from there) while (LT(1) != IToken.tLBRACE) consume(); return pd; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/bcedb9a5c16dd4d172f27f0519a31f2ee9b1d68d/GNUCSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 9053, 13719, 6094, 752, 47, 82, 11529, 13719, 6094, 12, 474, 769, 16, 1082, 202, 474, 1384, 13, 1216, 4403, 951, 812, 503, 288, 202, 202, 45, 9053, 13719, 293, 273, 752,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 9053, 13719, 6094, 752, 47, 82, 11529, 13719, 6094, 12, 474, 769, 16, 1082, 202, 474, 1384, 13, 1216, 4403, 951, 812, 503, 288, 202, 202, 45, 9053, 13719, 293, 273, 752,...
doCompare(fieldValue, compareValue, messages, locale, loader);
doCompare(fieldValue, compareValue, messages, locale, loader, false);
public void exec(Map inMap, Map results, List messages, Locale locale, ClassLoader loader) { Object compareValue = inMap.get(compareName); Object fieldValue = inMap.get(fieldName); doCompare(fieldValue, compareValue, messages, locale, loader); }
55411 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55411/e26b55d54d7a57a8ef76f8d2f993761d0dced9de/CompareField.java/buggy/framework/minilang/src/org/ofbiz/minilang/operation/CompareField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1196, 12, 863, 316, 863, 16, 1635, 1686, 16, 987, 2743, 16, 6458, 2573, 16, 9403, 4088, 13, 288, 3639, 1033, 3400, 620, 273, 316, 863, 18, 588, 12, 9877, 461, 1769, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1196, 12, 863, 316, 863, 16, 1635, 1686, 16, 987, 2743, 16, 6458, 2573, 16, 9403, 4088, 13, 288, 3639, 1033, 3400, 620, 273, 316, 863, 18, 588, 12, 9877, 461, 1769, 3639, 1...
System.out.println("<end-date>"+ts.getFormattedTime()+"</end-date>");
System.out.println("<end-date>" + ts.getFormattedTime() + "</end-date>");
public static void main (String [] args) throws Exception{ String USAGE = "Usage: java JobFlagReport [options] <date (YYYY-MM-DD)> Enter -help for a list of options\n"; String HELP = "Where [options] are:\n"+ " -help Displays help\n"+ " -step <day|month> Specifies size of step (day by default)\n"+ " -n <steps> Specifies number of steps to do\n"; if (args.length == 0){ System.err.println(USAGE); System.exit(1); } else if (args.length == 1 && args[0].equalsIgnoreCase("-help")){ System.err.println(USAGE); System.err.println(HELP); System.exit(1); } int n = 1; String stepStr = "day"; for (int i=0;i<args.length-1;i++){ if (args[i].equals("-n")) { n = Integer.parseInt(args[++i]); } else if (args[i].equals("-step")) { stepStr = args[++i]; } else if (args[i].equalsIgnoreCase("-help")) { System.err.println(USAGE); System.err.println(HELP); System.exit(1); } else { System.err.println("Unknown argument: " + args[i]); System.exit(1); } } String inputDate = args[args.length-1]; DecimalFormat f = (DecimalFormat) NumberFormat.getInstance(Locale.US); f.setMaximumFractionDigits(3); TimeStep ts = new TimeStep (stepStr, n, inputDate); DatabaseRetriever dbr = new DatabaseRetriever(); long byteNumber; long packetNumber; double blocksize; double buffersize; System.out.println("<report>"); while(ts.next()){ byteNumber = 0; packetNumber=0; buffersize = 0; blocksize = 0; Date startD = ts.getTime(); System.out.println("<entry>"); System.out.println("<start-date>"+ts.getFormattedTime()+"</start-date>"); String startS = ts.getFormattedTime(); ts.stepTime(); System.out.println("<end-date>"+ts.getFormattedTime()+"</end-date>"); ResultSet rs = dbr.retrieve("gftp_packets", new String [] {"count(*)","sum(num_bytes)","sum(block_size)","sum(buffer_size)"}, startD, ts.getTime()); rs.next(); packetNumber+=rs.getLong(1); byteNumber+=rs.getLong(2); blocksize+=rs.getDouble(3); buffersize+=rs.getDouble(4); double bytemean= byteNumber/packetNumber; double blockmean = blocksize/packetNumber; double buffermean = buffersize/packetNumber; double bytedeviation = 0; double blockdeviation = 0; double bufferdeviation = 0; rs = dbr.retrieve("gftp_packets", new String[] {"num_bytes","block_size","buffer_size"}, startD, ts.getTime()); while (rs.next()){ bytedeviation = Math.pow(rs.getDouble(1) - bytemean, 2.0); blockdeviation = Math.pow(rs.getDouble(2) - blockmean, 2.0); bufferdeviation = Math.pow(rs.getDouble(3) - buffermean, 2.0); } bytedeviation = Math.pow(bytedeviation/packetNumber,.5); blockdeviation = Math.pow(blockdeviation/packetNumber,.5); bufferdeviation = Math.pow(bufferdeviation/packetNumber,.5); System.out.println("<byte>"); System.out.println("\t<mean>"+f.format(bytemean)+"</mean>"); System.out.println("\t<standard-deviation>"+f.format(bytedeviation)+"</standard-deviation>"); System.out.println("\t<low-CI>"+f.format((bytemean-(1.96*bytedeviation)/Math.pow(packetNumber,.5)))+"</low-CI>"); System.out.println("\t<high-CI>"+f.format((bytemean+(1.96*bytedeviation)/Math.pow(packetNumber,.5)))+"</high-CI>"); System.out.println("</byte>"); System.out.println("<block>"); System.out.println("\t<mean>"+f.format(blockmean)+"</mean>"); System.out.println("\t<standard-deviation>"+f.format(blockdeviation)+"</standard-deviation>"); System.out.println("\t<low-CI>"+f.format((blockmean-(1.96*blockdeviation)/Math.pow(packetNumber,.5)))+"</low-CI>"); System.out.println("\t<high-CI>"+f.format((blockmean+(1.96*blockdeviation)/Math.pow(packetNumber,.5)))+"</high-CI>"); System.out.println("</block>"); System.out.println("<buffer>"); System.out.println("\t<mean>"+f.format(buffermean)+"</mean>"); System.out.println("\t<standard-deviation>"+f.format(bufferdeviation)+"</standard-deviation>"); System.out.println("\t<low-CI>"+f.format((buffermean-(1.96*bufferdeviation)/Math.pow(packetNumber,.5)))+"</low-CI>"); System.out.println("\t<high-CI>"+f.format((buffermean+(1.96*bufferdeviation)/Math.pow(packetNumber,.5)))+"</high-CI>"); System.out.println("</buffer>"); System.out.println("</entry>"); rs.close(); } dbr.close(); System.out.println("</report>"); }
8754 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8754/efb83d08bf3214ba362adb9486345c128a00bae7/Statistics.java/buggy/usage/java/reports/source/src/org/globus/usage/report/gftp/Statistics.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 261, 780, 5378, 833, 13, 1216, 1185, 95, 3639, 514, 11836, 2833, 273, 315, 5357, 30, 2252, 3956, 4678, 4820, 306, 2116, 65, 411, 712, 261, 26287, 17, 8206, 17, 569...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 780, 5378, 833, 13, 1216, 1185, 95, 3639, 514, 11836, 2833, 273, 315, 5357, 30, 2252, 3956, 4678, 4820, 306, 2116, 65, 411, 712, 261, 26287, 17, 8206, 17, 569...
if (fragment) model = new WorkspaceFragmentModel(file); else model = new WorkspacePluginModel(file);
model = new WorkspacePluginModel(file);
private void createBlankManifest( IProject project, IPluginStructureData structureData, IProgressMonitor monitor) throws CoreException { IPath path = project.getFullPath().append( fragment ? "fragment.xml" : "plugin.xml"); IFile file = project.getWorkspace().getRoot().getFile(path); WorkspacePluginModelBase model = null; if (fragment) model = new WorkspaceFragmentModel(file); else model = new WorkspacePluginModel(file); model.load(); if (!file.exists()) { IPluginBase pluginBase = model.getPluginBase(); pluginBase.setId(structureData.getPluginId()); pluginBase.setVersion("1.0.0"); pluginBase.setName(structureData.getPluginId()); pluginBase.setSchemaVersion("3.0"); if (structureData.getRuntimeLibraryName() != null) { IPluginLibrary library = model.getPluginFactory().createLibrary(); library.setName(structureData.getRuntimeLibraryName()); library.setExported(true); model.getPluginBase().add(library); } model.save(); } }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/d94e0917b3438987aacc0312e48a4caafa344df0/ProjectCodeGeneratorsPage.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/project/ProjectCodeGeneratorsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 7796, 9121, 12, 202, 202, 45, 4109, 1984, 16, 202, 202, 45, 3773, 6999, 751, 3695, 751, 16, 202, 202, 45, 5491, 7187, 6438, 13, 202, 202, 15069, 30015, 288, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 7796, 9121, 12, 202, 202, 45, 4109, 1984, 16, 202, 202, 45, 3773, 6999, 751, 3695, 751, 16, 202, 202, 45, 5491, 7187, 6438, 13, 202, 202, 15069, 30015, 288, 202, ...
return debugGui.console.getErr();
return debugGui.getConsole().getErr();
public PrintStream getErr() { return debugGui.console.getErr(); }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/e4c74a91b5c4165a9c90cde4d7b2ddd72e81af8d/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 21677, 336, 2524, 1435, 288, 3639, 327, 1198, 18070, 18, 588, 10215, 7675, 588, 2524, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 21677, 336, 2524, 1435, 288, 3639, 327, 1198, 18070, 18, 588, 10215, 7675, 588, 2524, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
out.write("</form>\n</span>\n");
out.write("</form>\n</span>\n");
private void writeAddForm(PrintWriter out, HttpServletRequest req) throws IOException { String uri = req.getRequestURI(); String newURL = req.getParameter("newURL"); if ( (newURL == null) || (newURL.trim().length() <= 0) ) newURL = "http://"; String newFile = req.getParameter("newFile"); if ( (newFile == null) || (newFile.trim().length() <= 0) ) newFile = ""; out.write("<span class=\"snarkNewTorrent\">\n"); // *not* enctype="multipart/form-data", so that the input type=file sends the filename, not the file out.write("<form action=\"" + uri + "\" method=\"POST\">\n"); out.write("<input type=\"hidden\" name=\"nonce\" value=\"" + _nonce + "\" />\n"); out.write("From URL&nbsp;: <input type=\"text\" name=\"newURL\" size=\"50\" value=\"" + newURL + "\" /> \n"); // not supporting from file at the moment, since the file name passed isn't always absolute (so it may not resolve) //out.write("From file: <input type=\"file\" name=\"newFile\" size=\"50\" value=\"" + newFile + "\" /><br />\n"); out.write("<input type=\"submit\" value=\"Add torrent\" name=\"action\" /><br />\n"); out.write("<span class=\"snarkAddInfo\">Alternately, you can copy .torrent files to " + _manager.getDataDir().getAbsolutePath() + "<br />\n"); out.write("Removing that .torrent file will cause the torrent to stop.<br /></span>\n"); out.write("</form>\n</span>\n"); }
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/3989638f2dc6d1749827facabfb3af21e52a1b2e/I2PSnarkServlet.java/buggy/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 986, 1204, 12, 5108, 2289, 596, 16, 9984, 1111, 13, 1216, 1860, 288, 3639, 514, 2003, 273, 1111, 18, 588, 691, 3098, 5621, 3639, 514, 394, 1785, 273, 1111, 18, 588, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 986, 1204, 12, 5108, 2289, 596, 16, 9984, 1111, 13, 1216, 1860, 288, 3639, 514, 2003, 273, 1111, 18, 588, 691, 3098, 5621, 3639, 514, 394, 1785, 273, 1111, 18, 588, 166...
getMenuCount() { return countMenus (); }
public int getMenuCount() { return countMenus(); }
getMenuCount(){ return countMenus ();}
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 25877, 1380, 1435, 95, 225, 327, 1056, 29755, 261, 1769, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 25877, 1380, 1435, 95, 225, 327, 1056, 29755, 261, 1769, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
public ZimbraMailAdapter(Mailbox mailbox, ParsedMessage pm, String recipient, SharedDeliveryContext sharedDeliveryCtxt) throws MessagingException
private ZimbraMailAdapter()
public ZimbraMailAdapter(Mailbox mailbox, ParsedMessage pm, String recipient, SharedDeliveryContext sharedDeliveryCtxt) throws MessagingException { this(); mMailbox = mailbox; mRecipient = recipient; mSharedDeliveryCtxt = sharedDeliveryCtxt; setParsedMessage(pm); // check spam headers set by system spam detector if (sSpamHeader != null) { String val = pm.getMimeMessage().getHeader(sSpamHeader, null); if (val != null) { if (sSpamHeaderValue != null) { Matcher m = sSpamHeaderValue.matcher(val); mSpam = m.matches(); } else { // no expected header value is configured; // presence of the header (regardless of its value) indicates spam mSpam = true; } } } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/00a796e1de4be5ba9cf5e8b5b9fe8f6a9498dc5e/ZimbraMailAdapter.java/buggy/ZimbraServer/src/java/com/zimbra/cs/filter/ZimbraMailAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2285, 381, 15397, 6759, 4216, 12, 30239, 14187, 16, 19244, 1079, 7430, 16, 11794, 514, 8027, 16, 10314, 8909, 1042, 5116, 8909, 28866, 13, 1216, 23794, 503, 565, 288, 3639, 333, 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, 2285, 381, 15397, 6759, 4216, 12, 30239, 14187, 16, 19244, 1079, 7430, 16, 11794, 514, 8027, 16, 10314, 8909, 1042, 5116, 8909, 28866, 13, 1216, 23794, 503, 565, 288, 3639, 333, 5621,...
public abstract void itemModified (Item item);
public void itemModified (Item item) { categoryModified(item.getCategory()); }
public abstract void itemModified (Item item);
5005 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5005/2d51f1b85ba0b18d4ca3e7b535b816d26648535f/ItemStore.java/buggy/src/java/com/samskivert/jikan/data/ItemStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 918, 761, 4575, 261, 1180, 761, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 918, 761, 4575, 261, 1180, 761, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
RubyArray arr = RubyArray.newArray(getRuntime(), begin.length);
RubyArray arr = getRuntime().newArray(begin.length);
public RubyArray to_a() { RubyArray arr = RubyArray.newArray(getRuntime(), begin.length); for (long i = 0; i < begin.length; i++) { arr.append(group(i)); } return arr; }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyMatchData.java/clean/src/org/jruby/RubyMatchData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 1076, 358, 67, 69, 1435, 288, 3639, 19817, 1076, 2454, 273, 18814, 7675, 2704, 1076, 12, 10086, 18, 2469, 1769, 3639, 364, 261, 5748, 277, 273, 374, 31, 277, 411, 2376, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 1076, 358, 67, 69, 1435, 288, 3639, 19817, 1076, 2454, 273, 18814, 7675, 2704, 1076, 12, 10086, 18, 2469, 1769, 3639, 364, 261, 5748, 277, 273, 374, 31, 277, 411, 2376, 18, ...
} else {
} else {
private Block getPreviousIncompletedBlock(final LeafBlockWrapper block, final int offset) { if (block == null) { if (myLastTokenBlock.getBlock().isIncomplete()) { return myLastTokenBlock.getBlock(); } else { return null; } } AbstractBlockWrapper current = block; while (current.getParent() != null && current.getParent().getStartOffset() > offset) { current = current.getParent(); } if (current.getParent() == null) return null; final List<Block> subBlocks = current.getParent().getBlock().getSubBlocks(); final int index = subBlocks.indexOf(current.getBlock()); if (index < 0) { LOG.assertTrue(false, current.getParent().getBlock().getClass().getName()); } if (index == 0) return null; Block currentResult = subBlocks.get(index - 1); if (!currentResult.isIncomplete()) return null; Block lastChild = getLastChildOf(currentResult); while (lastChild != null && lastChild.isIncomplete()) { currentResult = lastChild; lastChild = getLastChildOf(currentResult); } return currentResult; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/ee3f89bfa64cda89f2846e1f417caa549cf5edc9/FormatProcessor.java/buggy/source/com/intellij/formatting/FormatProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 3914, 17225, 382, 13615, 1768, 12, 6385, 23383, 1768, 3611, 1203, 16, 727, 509, 1384, 13, 288, 565, 309, 261, 2629, 422, 446, 13, 288, 1377, 309, 261, 4811, 3024, 1345, 1768, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 3914, 17225, 382, 13615, 1768, 12, 6385, 23383, 1768, 3611, 1203, 16, 727, 509, 1384, 13, 288, 565, 309, 261, 2629, 422, 446, 13, 288, 1377, 309, 261, 4811, 3024, 1345, 1768, 18, ...
Statement stmt1 = connection.createStatement(); assertEquals(ResultSet.HOLD_CURSORS_OVER_COMMIT, stmt1.getResultSetHoldability());
AbstractStatement stmt1 = (AbstractStatement)connection.createStatement(); assertEquals(FirebirdResultSet.HOLD_CURSORS_OVER_COMMIT, stmt1.getResultSetHoldability());
public void testDefaultHoldableResultSet() throws Exception { Properties props = getDefaultPropertiesForConnection(); props.put("defaultHoldable", ""); Class.forName(FBDriver.class.getName()); Connection connection = DriverManager.getConnection(getUrl(), props); try { Statement stmt1 = connection.createStatement(); assertEquals(ResultSet.HOLD_CURSORS_OVER_COMMIT, stmt1.getResultSetHoldability()); Statement stmt2 = connection.createStatement(); ResultSet rs1 = stmt1.executeQuery( "SELECT rdb$collation_name, rdb$character_set_id FROM rdb$collations"); while(rs1.next()) { ResultSet rs2 = stmt2.executeQuery( "SELECT rdb$character_set_name FROM rdb$character_sets " + "WHERE rdb$character_set_id = " + rs1.getInt(2)); assertTrue("Should find corresponding charset.", rs2.next()); } } finally { connection.close(); } }
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/ecdd4a31e094dbe33ba0902b16080dd773039107/TestFBConnection.java/clean/src/test/org/firebirdsql/jdbc/TestFBConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1868, 20586, 429, 13198, 1435, 1216, 1185, 288, 3639, 6183, 3458, 273, 4829, 2297, 1290, 1952, 5621, 3639, 3458, 18, 458, 2932, 1886, 20586, 429, 3113, 1408, 1769, 7734, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1868, 20586, 429, 13198, 1435, 1216, 1185, 288, 3639, 6183, 3458, 273, 4829, 2297, 1290, 1952, 5621, 3639, 3458, 18, 458, 2932, 1886, 20586, 429, 3113, 1408, 1769, 7734, 16...
try
for (;;)
protected void ctorInitializer(Declarator d ) throws EndOfFileException, BacktrackException { consume(IToken.tCOLON); IASTScope scope = d.getDeclarationWrapper().getScope(); try { for (;;) { if (LT(1) == IToken.tLBRACE) break; ITokenDuple duple = name(scope, CompletionKind.SINGLE_NAME_REFERENCE, KeywordSetKey.EMPTY ); consume(IToken.tLPAREN); IASTExpression expressionList = null; expressionList = expression(d.getDeclarationWrapper().getScope(), CompletionKind.SINGLE_NAME_REFERENCE, KeywordSetKey.EXPRESSION); consume(IToken.tRPAREN); try { d.addConstructorMemberInitializer( astFactory.createConstructorMemberInitializer( d.getDeclarationWrapper().getScope(), duple, expressionList)); } catch (Exception e1) { logException( "ctorInitializer:addConstructorMemberInitializer", e1 ); //$NON-NLS-1$ throw backtrack; } if (LT(1) == IToken.tLBRACE) break; consume(IToken.tCOMMA); } } catch (BacktrackException bt) { throw backtrack; } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/85be18a5f9556c1b23f600ca12f088a1d51d3925/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 15120, 14729, 12, 31419, 302, 262, 3639, 1216, 4403, 951, 812, 503, 16, 4297, 4101, 503, 565, 288, 3639, 7865, 12, 1285, 969, 18, 88, 4935, 673, 1769, 3639, 467, 9053, 3876, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15120, 14729, 12, 31419, 302, 262, 3639, 1216, 4403, 951, 812, 503, 16, 4297, 4101, 503, 565, 288, 3639, 7865, 12, 1285, 969, 18, 88, 4935, 673, 1769, 3639, 467, 9053, 3876, ...
" FROM pg_class bc, pg_class ic, pg_index i, pg_attribute a " +
" FROM pg_class bc, pg_class ic, pg_index i, pg_attribute a, pg_type t " +
public java.sql.ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException { return connection.createStatement().executeQuery("SELECT " + "'' as TABLE_CAT," + "'' AS TABLE_SCHEM," + "bc.relname AS TABLE_NAME," + "ic.relname AS COLUMN_NAME," + "'1' as KEY_SEQ,"+ // -- fake it as a String for now "t.typname as PK_NAME " + " FROM pg_class bc, pg_class ic, pg_index i, pg_attribute a " + " WHERE relkind = 'r' " + // -- not indices " and bc.relname ~ '"+table+"'" + " and i.indrelid = bc.oid" + " and i.indexrelid = ic.oid" + " and i.indkey[0] = a.attnum" + " and i.indproc = '0'::oid" + " and a.attrelid = bc.oid" + " ORDER BY TABLE_NAME, COLUMN_NAME;" ); }
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/2b3bb341fe6c9f56154436aa90c9c4ef1e4d645c/DatabaseMetaData.java/buggy/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 11398, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 13, 1216, 6483, 225, 288, 565, 327, 1459, 18, 2640, 3406, 7675, 8837, 1138, 2932, 4803, 315, 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, 2252, 18, 4669, 18, 13198, 11398, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 13, 1216, 6483, 225, 288, 565, 327, 1459, 18, 2640, 3406, 7675, 8837, 1138, 2932, 4803, 315, 3...
throws CannotCompileException { if (superclass == null) superclass = "java.lang.Object";
throws CannotCompileException { if (superclass == null) superclass = "java.lang.Object";
public void setSuperclass(String superclass) throws CannotCompileException { if (superclass == null) superclass = "java.lang.Object"; try { superClass = constPool.addClassInfo(superclass); ArrayList list = methods; int n = list.size(); for (int i = 0; i < n; ++i) { MethodInfo minfo = (MethodInfo)list.get(i); minfo.setSuperclass(superclass); } } catch (BadBytecode e) { throw new CannotCompileException(e); } }
56357 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56357/f5d84c890b70def694dbd2904f1e6d2f7f1b70e3/ClassFile.java/buggy/src/main/javassist/bytecode/ClassFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 28471, 12, 780, 12098, 13, 3639, 1216, 14143, 9937, 503, 565, 288, 3639, 309, 261, 9565, 1106, 422, 446, 13, 5411, 12098, 273, 315, 6290, 18, 4936, 18, 921, 14432, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 28471, 12, 780, 12098, 13, 3639, 1216, 14143, 9937, 503, 565, 288, 3639, 309, 261, 9565, 1106, 422, 446, 13, 5411, 12098, 273, 315, 6290, 18, 4936, 18, 921, 14432, 3639, ...
return (EReference)labelEClass.getEStructuralFeatures().get(2);
return (EReference) labelEClass.getEStructuralFeatures().get(2);
public EReference getLabel_Outline() { return (EReference)labelEClass.getEStructuralFeatures().get(2); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ComponentPackageImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/ComponentPackageImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 512, 2404, 11237, 67, 21805, 1435, 565, 288, 3639, 327, 261, 41, 2404, 13, 1433, 5720, 18, 588, 41, 14372, 8696, 7675, 588, 12, 22, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 512, 2404, 11237, 67, 21805, 1435, 565, 288, 3639, 327, 261, 41, 2404, 13, 1433, 5720, 18, 588, 41, 14372, 8696, 7675, 588, 12, 22, 1769, 565, 289, 2, -100, -100, -100, -100, -100...
mockExpressionFactory.expects(once()).method("newVariableReference").with(eq("x")) .will(returnValue(xReference)); mockExpressionFactory.expects(once()).method("newVariableReference").with(eq("y")) .will(returnValue(yReference)); mockExpressionFactory.expects(once()).method("newVariableReference").with(eq("z")) .will(returnValue(zReference)); mockExpressionFactory.expects(once()).method("newAddition").with(same(xReference), same(yReference)) .will(returnValue(addition)); mockExpressionFactory.expects(once()).method("newMultiplication").with(same(addition), same(zReference)) .will(returnValue(multiplication));
mockExpressionFactory.expects(once()).method("newVariableReference").with(eq("x")) .will(returnValue(xReference)); mockExpressionFactory.expects(once()).method("newVariableReference").with(eq("y")) .will(returnValue(yReference)); mockExpressionFactory.expects(once()).method("newVariableReference").with(eq("z")) .will(returnValue(zReference)); mockExpressionFactory.expects(once()).method("newAddition").with(same(xReference), same(yReference)) .will(returnValue(addition)); mockExpressionFactory.expects(once()).method("newMultiplication").with(same(addition), same(zReference)) .will(returnValue(multiplication));
public void testParseParenthesis() throws Exception { Expression xReference = dummyExpression("xReference"); Expression yReference = dummyExpression("yReference"); Expression zReference = dummyExpression("zReference"); Expression addition = dummyExpression("addition"); Expression multiplication = dummyExpression("multiplication"); mockExpressionFactory.expects(once()).method("newVariableReference").with(eq("x")) .will(returnValue(xReference)); mockExpressionFactory.expects(once()).method("newVariableReference").with(eq("y")) .will(returnValue(yReference)); mockExpressionFactory.expects(once()).method("newVariableReference").with(eq("z")) .will(returnValue(zReference)); mockExpressionFactory.expects(once()).method("newAddition").with(same(xReference), same(yReference)) .will(returnValue(addition)); mockExpressionFactory.expects(once()).method("newMultiplication").with(same(addition), same(zReference)) .will(returnValue(multiplication)); assertSame("should be multiplication", multiplication, parser.parse("(x+y)*z")); }
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/InfixParserTest.java/clean/jmock/examples/calculator/src/test/jmock/examples/calculator/InfixParserTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3201, 25660, 1435, 1216, 1185, 288, 202, 202, 2300, 619, 2404, 273, 9609, 2300, 2932, 92, 2404, 8863, 202, 202, 2300, 677, 2404, 273, 9609, 2300, 2932, 93, 2404, 8863...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3201, 25660, 1435, 1216, 1185, 288, 202, 202, 2300, 619, 2404, 273, 9609, 2300, 2932, 92, 2404, 8863, 202, 202, 2300, 677, 2404, 273, 9609, 2300, 2932, 93, 2404, 8863...
synPredMatched288 = false;
synPredMatched287 = false;
public final void expressionStatement( int prevToken ) throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST expressionStatement_AST = null; AST head_AST = null; boolean zz; /*ignore*/ { boolean synPredMatched288 = false; if (((_tokenSet_18.member(LA(1))) && (_tokenSet_8.member(LA(2))) && (_tokenSet_19.member(LA(3))))) { int _m288 = mark(); synPredMatched288 = true; inputState.guessing++; try { { suspiciousExpressionStatementStart(); } } catch (RecognitionException pe) { synPredMatched288 = false; } rewind(_m288); inputState.guessing--; } if ( synPredMatched288 ) { checkSuspiciousExpressionStatement(prevToken); astFactory.addASTChild(currentAST, returnAST); } else if ((_tokenSet_18.member(LA(1))) && (_tokenSet_8.member(LA(2))) && (_tokenSet_19.member(LA(3)))) { } else { throw new NoViableAltException(LT(1), getFilename()); } } { boolean synPredMatched292 = false; if (((_tokenSet_18.member(LA(1))) && (_tokenSet_8.member(LA(2))) && (_tokenSet_19.member(LA(3))))) { int _m292 = mark(); synPredMatched292 = true; inputState.guessing++; try { { expression(); { switch ( LA(1)) { case SEMI: { match(SEMI); break; } case NLS: { match(NLS); break; } case RCURLY: { match(RCURLY); break; } case EOF: { match(Token.EOF_TYPE); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } } } catch (RecognitionException pe) { synPredMatched292 = false; } rewind(_m292); inputState.guessing--; } if ( synPredMatched292 ) { expression(); astFactory.addASTChild(currentAST, returnAST); } else if ((_tokenSet_93.member(LA(1))) && (_tokenSet_94.member(LA(2))) && (_tokenSet_19.member(LA(3)))) { zz=pathExpression(); head_AST = (AST)returnAST; commandArguments(head_AST); astFactory.addASTChild(currentAST, returnAST); } else { throw new NoViableAltException(LT(1), getFilename()); } } expressionStatement_AST = (AST)currentAST.root; returnAST = expressionStatement_AST; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/27957314a380e54096257a6753ad9d316ee78892/GroovyRecognizer.java/buggy/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2652, 3406, 12, 202, 202, 474, 2807, 1345, 202, 13, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2652, 3406, 12, 202, 202, 474, 2807, 1345, 202, 13, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, ...
if (getAttachContext()) {
if (attachContext) {
public void run() { if (event.getJob().getResult().isOK()) { if (getAttachContext()) { // TODO should be done as part of job try { connector.attachContext(repository, (AbstractRepositoryTask) task, "", TasksUiPlugin.getDefault().getProxySettings()); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } close(); } else { TracUiPlugin.handleTracException(event.getResult()); } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/170af7097297b6686d4b43edc88abce29c1a170b/TracTaskEditor.java/clean/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracTaskEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 1086, 1435, 288, 25083, 202, 430, 261, 2575, 18, 588, 2278, 7675, 588, 1253, 7675, 291, 3141, 10756, 288, 6862, 1082, 202, 430, 261, 588, 4761, 1042, 10756, 288, 6862, 950...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 1086, 1435, 288, 25083, 202, 430, 261, 2575, 18, 588, 2278, 7675, 588, 1253, 7675, 291, 3141, 10756, 288, 6862, 1082, 202, 430, 261, 588, 4761, 1042, 10756, 288, 6862, 950...
return JavaObject.wrap(runtime, result);
return JavaObject.wrap(getRuntime(), result);
private IRubyObject invokeWithExceptionHandling(Object javaInvokee, Object[] arguments) { try { Object result = method.invoke(javaInvokee, arguments); return JavaObject.wrap(runtime, result); } catch (IllegalArgumentException iae) { throw new TypeError(getRuntime(), "expected " + argument_types().inspect()); } catch (IllegalAccessException iae) { throw new TypeError(getRuntime(), "illegal access on '" + method.getName() + "': " + iae.getMessage()); } catch (InvocationTargetException ite) { getRuntime().getJavaSupport().handleNativeException(ite.getTargetException()); // This point is only reached if there was an exception handler installed. return runtime.getNil(); } }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaMethod.java/buggy/src/org/jruby/javasupport/JavaMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 4356, 1190, 503, 14701, 12, 921, 2252, 11354, 1340, 16, 1033, 8526, 1775, 13, 288, 3639, 775, 288, 5411, 1033, 563, 273, 707, 18, 14407, 12, 6290, 11354, 1340, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 4356, 1190, 503, 14701, 12, 921, 2252, 11354, 1340, 16, 1033, 8526, 1775, 13, 288, 3639, 775, 288, 5411, 1033, 563, 273, 707, 18, 14407, 12, 6290, 11354, 1340, 16...
if (!Character.isDigit(buffer[i])) {
if (!Character.isDigit(buffer[i])) {
public int nextAsciiNumber() { int i = index; for (; i < buffer.length; i++) { if (!Character.isDigit(buffer[i])) { break; } } // An exception will occur if no number is at ptr.... int number = Integer.parseInt(new String(buffer, index, i - index)); // An exception may occur here if an int can't hold this but ... index = i; return number; }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/clean/src/org/jruby/util/Pack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 509, 1024, 21363, 1854, 1435, 288, 5411, 509, 277, 273, 770, 31, 5411, 364, 261, 31, 277, 411, 1613, 18, 2469, 31, 277, 27245, 288, 2398, 202, 430, 16051, 7069, 18, 291, 1090...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 1024, 21363, 1854, 1435, 288, 5411, 509, 277, 273, 770, 31, 5411, 364, 261, 31, 277, 411, 1613, 18, 2469, 31, 277, 27245, 288, 2398, 202, 430, 16051, 7069, 18, 291, 1090...
ret.width += d.width;
public Dimension getPreferredSize(JComponent c) { TableColumnModel cmod = header.getColumnModel(); TableCellRenderer defaultRend = header.getDefaultRenderer(); int ncols = cmod.getColumnCount(); Dimension ret = new Dimension(0,0); int spacing = 0; if (header.getTable() != null && header.getTable().getInterCellSpacing() != null) spacing = header.getTable().getInterCellSpacing().width; for (int i = 0; i < ncols; ++i) { TableColumn col = cmod.getColumn(i); TableCellRenderer rend = col.getHeaderRenderer(); if (rend == null) rend = defaultRend; Object val = col.getHeaderValue(); Component comp = rend.getTableCellRendererComponent(header.getTable(), val, false, // isSelected false, // isFocused -1, i); comp.setFont(header.getFont()); comp.setBackground(header.getBackground()); comp.setForeground(header.getForeground()); if (comp instanceof JComponent) ((JComponent)comp).setBorder(cellBorder); Dimension d = comp.getPreferredSize(); ret.width += d.width; ret.width += spacing; ret.height = Math.max(d.height, ret.height); } return ret; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b55284b1c42a24d7d97bd4f801888b3dbb3e71f8/BasicTableHeaderUI.java/buggy/libraries/javalib/javax/swing/plaf/basic/BasicTableHeaderUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13037, 12822, 4193, 1225, 12, 46, 1841, 276, 13, 225, 288, 565, 3555, 1494, 1488, 276, 1711, 273, 1446, 18, 588, 1494, 1488, 5621, 565, 3555, 4020, 6747, 805, 54, 409, 273, 1446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13037, 12822, 4193, 1225, 12, 46, 1841, 276, 13, 225, 288, 565, 3555, 1494, 1488, 276, 1711, 273, 1446, 18, 588, 1494, 1488, 5621, 565, 3555, 4020, 6747, 805, 54, 409, 273, 1446, ...
error = new XMLElement(requestedProps.get(name)); addProperty(propstatMap, HttpServletResponse.SC_NOT_FOUND, error);
error.addElement(requestedProps.get(name));
private void addResourceToResponse(DavContext ctxt, DavResource rs, Element top, boolean nameOnly, Map<String,QName> requestedProps, boolean includeChildren) throws DavException { Element resp = top.addElement(DavElements.E_RESPONSE); resp.addElement(DavElements.E_HREF).setText(UrlNamespace.getResourceUrl(rs)); Map<Integer,Element> propstatMap = new HashMap<Integer,Element>(); Set<String> allPropNames = rs.getAllPropertyNames(); Set<String> propNames; if (requestedProps == null) propNames = allPropNames; else propNames = requestedProps.keySet(); if (requestedProps == null || requestedProps.containsKey(DavElements.P_RESOURCETYPE)) addProperty(propstatMap, STATUS_OK, rs.getResourceTypeElement()); for (String name : propNames) { if (name.equals(DavElements.P_RESOURCETYPE)) continue; if (!allPropNames.contains(name)) { Element error; if (requestedProps == null) error = new XMLElement(name); else error = new XMLElement(requestedProps.get(name)); addProperty(propstatMap, HttpServletResponse.SC_NOT_FOUND, error); continue; } Element e; if (requestedProps == null) e = new XMLElement(name); else e = new XMLElement(requestedProps.get(name)); if (!nameOnly) e.setText(rs.getProperty(name)); addProperty(propstatMap, STATUS_OK, e); } for (Entry<Integer, Element> entry : propstatMap.entrySet()) resp.addElement(entry.getValue()); if (includeChildren) { List<DavResource> children = UrlNamespace.getChildren(ctxt, rs); for (DavResource child : children) addResourceToResponse(ctxt, child, top, nameOnly, requestedProps, includeChildren); } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/5bffc939ef46ff155239649bcecf834664c154bc/PropFind.java/buggy/ZimbraServer/src/java/com/zimbra/cs/dav/service/method/PropFind.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 23812, 774, 1064, 12, 40, 842, 1042, 14286, 16, 463, 842, 1420, 3597, 16, 3010, 1760, 16, 1250, 508, 3386, 16, 1635, 32, 780, 16, 13688, 34, 3764, 5047, 16, 1250, 2341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23812, 774, 1064, 12, 40, 842, 1042, 14286, 16, 463, 842, 1420, 3597, 16, 3010, 1760, 16, 1250, 508, 3386, 16, 1635, 32, 780, 16, 13688, 34, 3764, 5047, 16, 1250, 2341, ...
currentString = (ResourceString)currentString.next;
currentString = (ICUResourceWriter.ResourceString)currentString.next;
private Resource parseDisplayTypes(Node root){ StringBuffer xpath = new StringBuffer(); xpath.append("//ldml/localeDisplayNames/types/type[@key='"); int savedLength = xpath.length(); ResourceTable table = new ResourceTable(); table.name = TYPES; ResourceTable current = null; for(int i=0; i<registeredKeys.length; i++){ xpath.append(registeredKeys[i]); xpath.append("']"); NodeList list = LDMLUtilities.getNodeList(root.getOwnerDocument(), xpath.toString()); if(list.getLength()!=0){ ResourceTable subTable = new ResourceTable(); subTable.name = registeredKeys[i]; if(i==0){ table.first = current = subTable; }else{ current.next = subTable; current = (ResourceTable)current.next; } ResourceString currentString = null; for(int j=0; j<list.getLength(); j++){ Node item = list.item(j); String type = LDMLUtilities.getAttributeValue(item, TYPE); String value = LDMLUtilities.getNodeValue(item); String altVal = LDMLUtilities.getAttributeValue(item, ALT); // the alt atrribute is set .. so ignore the resource if(altVal!=null){ continue; } //TODO now check if this string is draft ResourceString string = new ResourceString(); string.name = type; string.val = value; if(j==0){ subTable.first = currentString = string; }else{ currentString.next = string; currentString = (ResourceString)currentString.next; } } } xpath.delete(savedLength, xpath.length()); } if(table.first!=null){ return table; } return null; }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/3500c6ee8e8828730b76872693f4d7deb838af5c/LDML2ICUConverter.java/clean/tools/java/org/unicode/cldr/icu/LDML2ICUConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2591, 1109, 4236, 2016, 12, 907, 1365, 15329, 3639, 6674, 6748, 273, 394, 6674, 5621, 3639, 6748, 18, 6923, 2932, 759, 1236, 781, 19, 6339, 4236, 1557, 19, 2352, 19, 723, 14782, 856...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2591, 1109, 4236, 2016, 12, 907, 1365, 15329, 3639, 6674, 6748, 273, 394, 6674, 5621, 3639, 6748, 18, 6923, 2932, 759, 1236, 781, 19, 6339, 4236, 1557, 19, 2352, 19, 723, 14782, 856...
writeAll.addActionListener( l2 = new ActionListener() {
writeAllButton.setToolTipText("Write current values to decoder"); writeAllButton.addActionListener( l2 = new ActionListener() {
protected void installComponents() { // configure GUI elements confirmAll.setEnabled(false); confirmAll.setToolTipText("disabled because not yet implemented"); // general GUI config getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS)); readAll.addActionListener( l1 = new ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { readAll(); } }); writeAll.addActionListener( l2 = new ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { writeAll(); } }); // most of the GUI is done from XML in readConfig() function getContentPane().add(tabPane); // add buttons JPanel bottom = new JPanel(); bottom.setLayout(new BoxLayout(bottom, BoxLayout.X_AXIS)); bottom.add(readAll); bottom.add(confirmAll); bottom.add(writeAll); getContentPane().add(bottom); getContentPane().add(progStatus); }
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/9f98f3a8ba0fc81445fcec3404df6f934351025d/PaneProgFrame.java/buggy/jmrit/symbolicprog/tabbedframe/PaneProgFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3799, 7171, 1435, 288, 202, 202, 759, 5068, 10978, 2186, 202, 202, 10927, 1595, 18, 542, 1526, 12, 5743, 1769, 202, 202, 10927, 1595, 18, 542, 29250, 1528, 2932, 9278, 272...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3799, 7171, 1435, 288, 202, 202, 759, 5068, 10978, 2186, 202, 202, 10927, 1595, 18, 542, 1526, 12, 5743, 1769, 202, 202, 10927, 1595, 18, 542, 29250, 1528, 2932, 9278, 272...
this.derefLocationSetMap = new HashMap<ValueNumber, BitSet>();
this.derefLocationSetMap = new HashMap<ValueNumber, Set<Location>>();
public UnconditionalValueDerefSet(int numValueNumbersInMethod) { this.numValueNumbersInMethod = numValueNumbersInMethod; this.valueNumberSet = new BitSet(); this.derefLocationSetMap = new HashMap<ValueNumber, BitSet>(); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/2ca4fdda698cd5fbde7c3940d2618b8878c41d64/UnconditionalValueDerefSet.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/deref/UnconditionalValueDerefSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1351, 22019, 620, 40, 822, 74, 694, 12, 474, 818, 620, 10072, 382, 1305, 13, 288, 202, 202, 2211, 18, 2107, 620, 10072, 382, 1305, 273, 818, 620, 10072, 382, 1305, 31, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1351, 22019, 620, 40, 822, 74, 694, 12, 474, 818, 620, 10072, 382, 1305, 13, 288, 202, 202, 2211, 18, 2107, 620, 10072, 382, 1305, 273, 818, 620, 10072, 382, 1305, 31, 202, ...
ClientGetter cg = new ClientGetter(NodeUpdater.this, node.chkFetchScheduler, node.sskFetchScheduler, revocationURI, ctxRevocation, RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS, NodeUpdater.this, null);
ClientGetter cg = new ClientGetter(NodeUpdater.this, node.chkFetchScheduler, node.sskFetchScheduler, revocationURI, ctxRevocation, RequestStarter.MAXIMUM_PRIORITY_CLASS, NodeUpdater.this, null);
public void run() { try { // We've got the data, so speed things up a bit. ClientGetter cg = new ClientGetter(NodeUpdater.this, node.chkFetchScheduler, node.sskFetchScheduler, revocationURI, ctxRevocation, RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS, NodeUpdater.this, null); cg.start(); } catch (FetchException e) { Logger.error(this, "Not able to start the revocation fetcher."); blow("Cannot fetch the auto-update URI"); } }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/d296236f0c3888b3327dcc9ff86ef0475d1d33dd/NodeUpdater.java/buggy/src/freenet/node/updater/NodeUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 698, 288, 6862, 202, 759, 1660, 8081, 2363, 326, 501, 16, 1427, 8632, 9198, 731, 279, 2831, 18, 6862, 202, 1227, 8461, 14947, 273, 394, 2445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 698, 288, 6862, 202, 759, 1660, 8081, 2363, 326, 501, 16, 1427, 8632, 9198, 731, 279, 2831, 18, 6862, 202, 1227, 8461, 14947, 273, 394, 2445, ...
if (te.isProne()) {
if ((te != null) && (te.isProne())) {
private void resolveChargeAttack(PhysicalResult pr, int lastEntityId) { final ChargeAttackAction caa = (ChargeAttackAction)pr.aaa; final Entity ae = game.getEntity(caa.getEntityId()); final Targetable target = game.getTarget(caa.getTargetType(), caa.getTargetId()); // get damage, ToHitData and roll from the PhysicalResult int damage = pr.damage; final ToHitData toHit = pr.toHit; int roll = pr.roll; Entity te = null; if (target != null && target.getTargetType() == Targetable.TYPE_ENTITY) { te = (Entity)target; } boolean throughFront = true; if (te!=null) { throughFront = Compute.isThroughFrontHex(game, caa.getEntityId(), te); } final boolean glancing = game.getOptions().booleanOption("maxtech_glancing_blows") && roll == toHit.getValue(); Report r; // Which building takes the damage? Building bldg = game.getBoard().getBuildingAt( caa.getTargetPos() ); // is the attacker dead? because that sure messes up the calculations if (ae == null) { return; } final int direction = ae.getFacing(); // entity isn't charging any more ae.setDisplacementAttack(null); if (lastEntityId != caa.getEntityId()) { //who is making the attack r = new Report(4005); r.subject = ae.getId(); r.addDesc(ae); addReport(r); } // should we even bother? if (target == null || target.getTargetType() == Targetable.TYPE_ENTITY && (te.isDestroyed() || te.isDoomed() || te.crew.isDead())) { r = new Report(4190); r.subject = ae.getId(); r.indent(); addReport(r); // doEntityDisplacement(ae, ae.getPosition(), caa.getTargetPos(), null); // Randall said that if a charge fails because of target destruction, // the attacker stays in the hex he was in at the end of the movement phase // See Bug 912094 return; } // attacker fell down? if (ae.isProne()) { r = new Report(4195); r.subject = ae.getId(); r.indent(); addReport(r); return; } // attacker immobile? if (ae.isImmobile()) { r = new Report(4200); r.subject = ae.getId(); r.indent(); addReport(r); return; } if (te.isProne()) { r = new Report(4205); r.subject = ae.getId(); r.indent(); addReport(r); return; } r = new Report(4210); r.subject = ae.getId(); r.indent(); r.add(target.getDisplayName()); r.newlines = 0; addReport(r); // target still in the same position? if (!target.getPosition().equals(caa.getTargetPos())) { r = new Report(4215); r.subject = ae.getId(); addReport(r); doEntityDisplacement(ae, ae.getPosition(), caa.getTargetPos(), null); return; } // if the attacker's prone, fudge the roll if (toHit.getValue() == ToHitData.IMPOSSIBLE) { roll = -12; r = new Report(4220); r.subject = ae.getId(); r.add(toHit.getDesc()); addReport(r); } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { roll = Integer.MAX_VALUE; r = new Report(4225); r.subject = ae.getId(); r.add(toHit.getDesc()); addReport(r); } else { // report the roll r = new Report(4025); r.subject = ae.getId(); r.add(toHit.getValue()); r.add(roll); r.newlines = 0; addReport(r); if (glancing) { r = new Report(4030); r.subject = ae.getId(); r.newlines = 0; addReport(r); } } // do we hit? if (roll < toHit.getValue()) { Coords src = ae.getPosition(); Coords dest = Compute.getMissedChargeDisplacement(game, ae.getId(), src, direction); // TODO: handle movement into/out of/through a building. Do it here? //miss r = new Report(4035); r.subject = ae.getId(); addReport(r); // move attacker to side hex doEntityDisplacement(ae, src, dest, null); } // Targeting a building. else if ( target.getTargetType() == Targetable.TYPE_BUILDING ) { // The building takes the full brunt of the attack. r = new Report(4040); r.subject = ae.getId(); addReport(r); Report buildingReport = damageBuilding( bldg, damage ); buildingReport.indent(); buildingReport.subject = ae.getId(); addReport(buildingReport); // Damage any infantry in the hex. damageInfantryIn( bldg, damage ); // Apply damage to the attacker. int toAttacker = ChargeAttackAction.getDamageTakenBy( ae, bldg ); HitData hit = ae.rollHitLocation( ToHitData.HIT_NORMAL, ae.sideTable(target.getPosition()) ); addReport( damageEntity( ae, hit, toAttacker, false, 0, false, false, throughFront)); addNewLines(); entityUpdate( ae.getId() ); // TODO: Does the attacker enter the building? // TODO: What if the building collapses? } else { // Resolve the damage. resolveChargeDamage( ae, te, toHit, direction, glancing, throughFront ); } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/67e9902e22a6310dc5593ddc96cdaec9b3e3e2e7/Server.java/buggy/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 17649, 3075, 484, 12, 18136, 1253, 846, 16, 509, 1142, 18029, 13, 288, 3639, 727, 3703, 908, 3075, 484, 1803, 3474, 69, 273, 261, 17649, 3075, 484, 1803, 13, 683, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 17649, 3075, 484, 12, 18136, 1253, 846, 16, 509, 1142, 18029, 13, 288, 3639, 727, 3703, 908, 3075, 484, 1803, 3474, 69, 273, 261, 17649, 3075, 484, 1803, 13, 683, 18, 2...
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); } GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0]); baos.write(Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1]); baos.write(Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2]); baos.write(Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]); // version baos.write(0x01); // p byte[] buffer = rsaKey.getPrimeP().toByteArray(); int length = buffer.length; baos.write(length >>> 24); baos.write((length >>> 16) & 0xFF); baos.write((length >>> 8) & 0xFF); baos.write(length & 0xFF); baos.write(buffer, 0, length); // q buffer = rsaKey.getPrimeQ().toByteArray(); length = buffer.length; baos.write(length >>> 24); baos.write((length >>> 16) & 0xFF); baos.write((length >>> 8) & 0xFF); baos.write(length & 0xFF); baos.write(buffer, 0, length); // e buffer = rsaKey.getPublicExponent().toByteArray(); length = buffer.length; baos.write(length >>> 24); baos.write((length >>> 16) & 0xFF); baos.write((length >>> 8) & 0xFF); baos.write(length & 0xFF); baos.write(buffer, 0, length); // d buffer = rsaKey.getPrivateExponent().toByteArray(); length = buffer.length; baos.write(length >>> 24); baos.write((length >>> 16) & 0xFF); baos.write((length >>> 8) & 0xFF); baos.write(length & 0xFF); baos.write(buffer, 0, length); return baos.toByteArray(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 7229, 8526, 3015, 10824, 12, 10824, 856, 15329, 430, 12, 5, 12, 856, 1336, 792, 43, 13053, 15248, 10824, 3719, 95, 12849, 2704, 31237, 2932, 856, 8863, 97, 43, 13053, 15248, 10824, 24654, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 7229, 8526, 3015, 10824, 12, 10824, 856, 15329, 430, 12, 5, 12, 856, 1336, 792, 43, 13053, 15248, 10824, 3719, 95, 12849, 2704, 31237, 2932, 856, 8863, 97, 43, 13053, 15248, 10824, 24654, ...
public Node replaceChild(Node newChild, Node oldChild) throws DOMException { if(oldChild==null || oldChild.getParentNode()!=this) return null; ElemTemplateElement newChildElem = ((ElemTemplateElement)newChild); ElemTemplateElement oldChildElem = ((ElemTemplateElement)oldChild); // Fix up previous sibling. ElemTemplateElement prev = (ElemTemplateElement)oldChildElem.getPreviousSibling(); if(null != prev) prev.m_nextSibling = newChildElem; // Fix up parent (this) if(m_firstChild == oldChildElem) m_firstChild = newChildElem; newChildElem.m_parentNode = this; oldChildElem.m_parentNode = null; newChildElem.m_nextSibling = oldChildElem.m_nextSibling; oldChildElem.m_nextSibling = null; // newChildElem.m_stylesheet = oldChildElem.m_stylesheet; // oldChildElem.m_stylesheet = null; return newChildElem; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/ElemTemplateElement.java/buggy/src/org/apache/xalan/templates/ElemTemplateElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 50, 369, 822, 964, 1763, 12, 50, 369, 275, 359, 1763, 16, 907, 1673, 1763, 13, 15069, 8168, 503, 95, 202, 430, 12, 1673, 1763, 631, 2011, 20081, 1673, 1763, 18, 588, 3054, 907, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 50, 369, 822, 964, 1763, 12, 50, 369, 275, 359, 1763, 16, 907, 1673, 1763, 13, 15069, 8168, 503, 95, 202, 430, 12, 1673, 1763, 631, 2011, 20081, 1673, 1763, 18, 588, 3054, 907, 1435, ...
public UpStreamUTRSeqQueryRunner(Query query, FormatSpec format, Connection conn, OutputStream os) { this.query = query; this.format = format; this.conn = conn; this.osr = new OutputStreamWriter(os); this.dna = new DNAAdaptor(conn); switch (format.getFormat()) { case FormatSpec.TABULATED: this.separator = format.getSeparator(); this.seqWriter = tabulatedWriter; break; case FormatSpec.FASTA: this.separator = "|"; this.seqWriter = fastaWriter; break; } //resolve dataset, species, and focus String[] mainTables = query.getStarBases(); for (int i = 0; i < mainTables.length; i++) { if (Pattern.matches("gene", mainTables[i])) dataset = mainTables[i]; } StringTokenizer tokens = new StringTokenizer( dataset, "_", false); species = tokens.nextToken(); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/47e8a48fd57c1301cf94459ce61bcbde06c272f7/UpStreamUTRSeqQueryRunner.java/clean/src/java/org/ensembl/mart/explorer/UpStreamUTRSeqQueryRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1948, 1228, 1693, 54, 6926, 1138, 9709, 12, 1138, 843, 16, 4077, 1990, 740, 16, 4050, 1487, 16, 8962, 1140, 13, 288, 202, 202, 2211, 18, 2271, 273, 843, 31, 202, 202, 2211, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1948, 1228, 1693, 54, 6926, 1138, 9709, 12, 1138, 843, 16, 4077, 1990, 740, 16, 4050, 1487, 16, 8962, 1140, 13, 288, 202, 202, 2211, 18, 2271, 273, 843, 31, 202, 202, 2211, ...
} else { int res = getUpdateCount();
} else { int res; do { res = getUpdateCount(); if( getMoreResults() ) { skipToEnd(); releaseTds(); throw new SQLException("executeUpdate can't return a result set"); } } while ((getUpdateCount() != -1) && connection.returnLastUpdateCount()); releaseTds();
public synchronized int executeUpdate(String sql) throws SQLException { checkClosed(); if( internalExecute(sql) ) { skipToEnd(); throw new SQLException("executeUpdate can't return a result set"); } else { int res = getUpdateCount(); // We should return 0 (at least that's what the javadoc above says) return res==-1 ? 0 : res; } }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/961a45de8bf5d82c43254ac74e0e90a332e67845/TdsStatement.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 509, 17521, 12, 780, 1847, 13, 1216, 6483, 565, 288, 3639, 866, 7395, 5621, 3639, 309, 12, 2713, 5289, 12, 4669, 13, 262, 3639, 288, 5411, 2488, 774, 1638, 5621, 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, 3852, 509, 17521, 12, 780, 1847, 13, 1216, 6483, 565, 288, 3639, 866, 7395, 5621, 3639, 309, 12, 2713, 5289, 12, 4669, 13, 262, 3639, 288, 5411, 2488, 774, 1638, 5621, 5411, 604, ...
if ( ! (bean instanceof PanelBean) ) {
if ( ! (bean instanceof PanelBean) ) {
public void beanInstantiated (BeanInstantiationEvent event) { Object bean = event.getBean(); if ( ! (bean instanceof PanelBean) ) { return; } bean = ((PanelBean)bean).getComponent(); try { if ( Beans.isInstanceOf(bean, Class.forName("org.vrjuggler.tweek.net.CommunicationListener")) ) { addCommunicationListener((CommunicationListener) bean); } if ( Beans.isInstanceOf(bean, Class.forName("org.vrjuggler.tweek.event.UserLevelChangeListener")) ) { addUserLevelChangeListener((UserLevelChangeListener) bean); } if ( Beans.isInstanceOf(bean, Class.forName("org.vrjuggler.tweek.event.TweekFrameListener")) ) { addTweekFrameListener((TweekFrameListener) bean); } } // This better not happen (i.e., org.vrjuggler.tweek.net.* and // org.vrjuggler.tweek.beans.* had better be there) ... catch (ClassNotFoundException e) { e.printStackTrace(); } }
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/bb8671bd7d675d0b9b3e07b0a33969a73e1267a4/BeanContainer.java/buggy/modules/tweek/java/org/vrjuggler/tweek/gui/BeanContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 3931, 10675, 10206, 261, 3381, 10675, 7072, 1133, 871, 13, 282, 288, 1377, 1033, 3931, 273, 871, 18, 588, 3381, 5621, 1377, 309, 261, 401, 261, 14496, 1276, 23641, 3381, 13, 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, 565, 1071, 918, 3931, 10675, 10206, 261, 3381, 10675, 7072, 1133, 871, 13, 282, 288, 1377, 1033, 3931, 273, 871, 18, 588, 3381, 5621, 1377, 309, 261, 401, 261, 14496, 1276, 23641, 3381, 13, 26...
GoalDecoratorBindings bindings = new GoalDecoratorBindings();
PreGoal pg = new PreGoal(); pg.setAttain( preGoal ); pg.setName( prereq );
public void testT4_ShouldFind_PreGoal_Prereq_PostGoal_MainGoal() throws Exception { String mainGoal = "t4:main"; String prereq = "t4:prereq"; String preGoal = "t4:prereq-preGoal"; String postGoal = "t4:prereq-postGoal"; GoalDecoratorBindings bindings = new GoalDecoratorBindings(); bindings.addPreGoal( new DefaultGoalDecorator( prereq, preGoal ) ); bindings.addPostGoal( new DefaultGoalDecorator( prereq, postGoal ) ); Map messages = new TreeMap(); messages.put( mainGoal, "Main goal is missing." ); messages.put( prereq, "prereq is missing" ); messages.put( preGoal, "preGoal is missing" ); messages.put( postGoal, "postGoal is missing" ); List order = new ArrayList(); order.add( preGoal ); order.add( prereq ); order.add( postGoal ); order.add( mainGoal ); runTest( mainGoal, bindings, order, messages ); }
47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/a949eb66dedc63459e4897d50c37374814750c66/GoalResolutionPhaseTest.java/clean/maven-core/src/test/java/org/apache/maven/lifecycle/goal/phase/GoalResolutionPhaseTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 56, 24, 67, 14309, 3125, 67, 1386, 27716, 67, 2050, 822, 85, 67, 3349, 27716, 67, 6376, 27716, 1435, 3639, 1216, 1185, 565, 288, 3639, 514, 2774, 27716, 273, 315, 88, 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, 918, 1842, 56, 24, 67, 14309, 3125, 67, 1386, 27716, 67, 2050, 822, 85, 67, 3349, 27716, 67, 6376, 27716, 1435, 3639, 1216, 1185, 565, 288, 3639, 514, 2774, 27716, 273, 315, 88, 2...
servletContext.setAttribute(TEMPLATE_SOURCE_NAME, templateSource);
servletContext.setAttribute(name, templateSource);
protected void setupForRequest(RequestContext context) { HttpServlet servlet; ServletContext servletContext = null; String name; String servletPath; servlet = context.getServlet(); servletContext = servlet.getServletContext(); if (servletPrefix == null) { servletPath = context.getRequest().getServletPath(); contextPath = servlet.getInitParameter("com.primix.tapestry.context-path"); if (contextPath == null) servletPrefix = servletPath; else servletPrefix = contextPath + servletPath; } // Need to redo a bunch of this because of class loader issues related // to IResourceResolver. Each Tapestry app will need its own template source // and page source. Possibly, there should be chaining, such that templates // and specifications provided by the framework can come from dedicated // sources .. this allows greater sharing. Somewhat academic though, since // typically only a single Tapestry application will be running within // a single servlet container or ServletContext. if (templateSource == null) { templateSource = (ITemplateSource)servletContext.getAttribute(TEMPLATE_SOURCE_NAME); if (templateSource == null) templateSource = new DefaultTemplateSource(getResourceResolver()); servletContext.setAttribute(TEMPLATE_SOURCE_NAME, templateSource); } if (specificationSource == null) { specificationSource = (ISpecificationSource)servletContext.getAttribute(SPECIFICATION_SOURCE_NAME); if (specificationSource == null) specificationSource = new DefaultSpecificationSource(getResourceResolver(), specification); servletContext.setAttribute(SPECIFICATION_SOURCE_NAME, specificationSource); } if (pageSource == null) { name = PAGE_SOURCE_NAME + "." + specification.getName(); pageSource = (PageSource)servletContext.getAttribute(name); if (pageSource == null) pageSource = new PageSource(); servletContext.setAttribute(name, pageSource); } }
4433 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4433/d4a3651ed863531de57db48d14f0c509ed7adf3a/AbstractApplication.java/clean/framework/src/com/primix/tapestry/app/AbstractApplication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3875, 27649, 12, 21426, 819, 13, 202, 95, 202, 202, 2940, 4745, 8100, 31, 202, 202, 4745, 1042, 20474, 273, 446, 31, 202, 202, 780, 508, 31, 202, 202, 780, 8100, 743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3875, 27649, 12, 21426, 819, 13, 202, 95, 202, 202, 2940, 4745, 8100, 31, 202, 202, 4745, 1042, 20474, 273, 446, 31, 202, 202, 780, 508, 31, 202, 202, 780, 8100, 743, ...
m_calleeMethodParameterTypes[i] = TransformationUtil. convertBcelTypeToClass(parameterTypes[i]);
m_calleeMethodParameterTypes[i] = TransformationUtil.convertBcelTypeToClass(parameterTypes[i]);
public Class[] getCalleeMethodParameterTypes() { if (m_calleeMethodParameterTypes == null) { Type[] parameterTypes = Type.getArgumentTypes(m_calleeMethodSignature); m_calleeMethodParameterTypes = new Class[parameterTypes.length]; for (int i = 0; i < parameterTypes.length; i++) { m_calleeMethodParameterTypes[i] = TransformationUtil. convertBcelTypeToClass(parameterTypes[i]); } } return m_calleeMethodParameterTypes; }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/6bb02cfc8027ad80471292b1b8d6015b38a454ff/CallerSideJoinPoint.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/joinpoint/CallerSideJoinPoint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1659, 8526, 22433, 11182, 1305, 1662, 2016, 1435, 288, 3639, 309, 261, 81, 67, 771, 11182, 1305, 1662, 2016, 422, 446, 13, 288, 5411, 1412, 8526, 20173, 273, 1412, 18, 588, 1379, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1659, 8526, 22433, 11182, 1305, 1662, 2016, 1435, 288, 3639, 309, 261, 81, 67, 771, 11182, 1305, 1662, 2016, 422, 446, 13, 288, 5411, 1412, 8526, 20173, 273, 1412, 18, 588, 1379, 20...
return imageBuffer; }
return imageBuffer; }
public Image getImageBuffer() { return imageBuffer; }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/ImageBufferStyleImpl.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation/src/org/eclipse/gmf/runtime/notation/impl/ImageBufferStyleImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3421, 10567, 1892, 1435, 288, 202, 202, 2463, 1316, 1892, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3421, 10567, 1892, 1435, 288, 202, 202, 2463, 1316, 1892, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
setArrowHeads(ml, contents);
setArrowHeads(ml, contents);
protected void modelChanged(MElementEvent e) { MLink ml = (MLink) getOwner(); if (ml == null) return; String mlNameStr = Notation.generate(this, ml.getName()); super.modelChanged(null); Vector contents = getContents(); Collection ends = ml.getConnections(); MLinkEnd le0 = (MLinkEnd) ((Object[])ends.toArray())[0]; MLinkEnd le1 = (MLinkEnd) ((Object[])ends.toArray())[1]; _srcRole.setText(Notation.generate(this, le0.getName())); _destRole.setText(Notation.generate(this, le1.getName()));// if (srcNav && destNav && SUPPRESS_BIDIRECTIONAL_ARROWS)// srcNav = destNav = false; Vector conns = new Vector(ml.getConnections()); if (conns == null || conns.size() != 2) return; MLinkEnd endA = (MLinkEnd) conns.elementAt(0); MLinkEnd endB = (MLinkEnd) conns.elementAt(1); MObject moA = (MObject) endA.getInstance(); MObject moB = (MObject) endB.getInstance(); setArrowHeads(ml, contents); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/FigSeqLink.java/clean/src_new/org/argouml/uml/diagram/sequence/ui/FigSeqLink.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 938, 5033, 12, 12310, 1133, 425, 13, 288, 565, 490, 2098, 12931, 273, 261, 1495, 754, 13, 13782, 5621, 565, 309, 261, 781, 422, 446, 13, 327, 31, 565, 514, 12931, 461, 1585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 938, 5033, 12, 12310, 1133, 425, 13, 288, 565, 490, 2098, 12931, 273, 261, 1495, 754, 13, 13782, 5621, 565, 309, 261, 781, 422, 446, 13, 327, 31, 565, 514, 12931, 461, 1585, ...
contextListeners = ListenerArray.add(contextListeners, listener);
contextListeners = Kit.addListener(contextListeners, listener);
public static void addContextListener(ContextListener listener) { synchronized (contextListenersLock) { contextListeners = ListenerArray.add(contextListeners, listener); } }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/f828aace6b66e983e3bcaa3e5041855e9af05e32/Context.java/buggy/js/rhino/src/org/mozilla/javascript/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 527, 1042, 2223, 12, 1042, 2223, 2991, 13, 288, 3639, 3852, 261, 2472, 5583, 2531, 13, 288, 5411, 819, 5583, 273, 1475, 305, 18, 1289, 2223, 12, 2472, 5583, 16, 2991, 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, 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, 760, 918, 527, 1042, 2223, 12, 1042, 2223, 2991, 13, 288, 3639, 3852, 261, 2472, 5583, 2531, 13, 288, 5411, 819, 5583, 273, 1475, 305, 18, 1289, 2223, 12, 2472, 5583, 16, 2991, 17...
createChildren(event.item);
if (!(getContentProvider() instanceof ILazyTreeContentProvider)) { createChildren(event.item); }
protected void handleTreeExpand(TreeEvent event) { createChildren(event.item); if (event.item.getData() != null) { fireTreeExpanded(new TreeExpansionEvent(this, event.item.getData())); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/cbb1e8120b7c7f75516a32becc9cfb15ad452ddd/AbstractTreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 2471, 12271, 12, 2471, 1133, 871, 13, 288, 3639, 309, 16051, 12, 588, 1350, 2249, 1435, 1276, 467, 14443, 2471, 1350, 2249, 3719, 288, 752, 4212, 12, 2575, 18, 1726, 1769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 2471, 12271, 12, 2471, 1133, 871, 13, 288, 3639, 309, 16051, 12, 588, 1350, 2249, 1435, 1276, 467, 14443, 2471, 1350, 2249, 3719, 288, 752, 4212, 12, 2575, 18, 1726, 1769...
return new VM_Compiler(method, cmid).compile();
VM_CompiledMethod cm = VM_CompiledMethods.createCompiledMethod(method, VM_CompilerInfo.BASELINE); if (!VM.runningAsJDPRemoteInterpreter) { new VM_Compiler(cm).compile(); } return cm;
public static synchronized VM_CompiledMethod compile (VM_Method method) { int cmid = VM_CompiledMethods.createCompiledMethodId(); if (method.isNative()) { VM_MachineCode machineCode = VM_JNICompiler.generateGlueCodeForNative(cmid, method); VM_CompilerInfo info = new VM_JNICompilerInfo(method); return new VM_CompiledMethod(cmid, method, machineCode.getInstructions(), info); } else if (VM.runningAsJDPRemoteInterpreter) { return new VM_CompiledMethod(cmid, method, null, null); } else { return new VM_Compiler(method, cmid).compile(); } }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/391f1b893c821a6d98fc2cd6686dac315402ba87/VM_BaselineCompiler.java/buggy/rvm/src/vm/compilers/baseline/VM_BaselineCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 3852, 8251, 67, 20733, 1305, 4074, 261, 7397, 67, 1305, 707, 13, 288, 565, 509, 5003, 350, 273, 8251, 67, 20733, 4712, 18, 2640, 20733, 30793, 5621, 565, 309, 261, 2039, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 3852, 8251, 67, 20733, 1305, 4074, 261, 7397, 67, 1305, 707, 13, 288, 565, 509, 5003, 350, 273, 8251, 67, 20733, 4712, 18, 2640, 20733, 30793, 5621, 565, 309, 261, 2039, 18, ...
if (ruby_dyna_vars != null)
if (ruby.getInterpreter().getDynamicVars() != null)
top_local_init() { local_push(); lvtbl.cnt = ruby.rubyScope.getLocalTbl() != null ? ruby.rubyScope.getLocalTbl(0).intValue() : 0; if (lvtbl.cnt > 0) { lvtbl.tbl = new ID[lvtbl.cnt+3]; System.arraycopy(lvtbl.tbl, 0, ruby.rubyScope.getLocalTbl(), 0, lvtbl.cnt+1); } else { lvtbl.tbl = null; } if (ruby_dyna_vars != null) lvtbl.dlev = 1; else lvtbl.dlev = 0; }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/8e00ad1c7ae96f50ae0bd521483380788f891b7b/parse.java/buggy/org/jruby/parser/parse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1760, 67, 3729, 67, 2738, 1435, 565, 288, 3639, 1191, 67, 6206, 5621, 3639, 5362, 16187, 18, 13085, 273, 22155, 18, 27768, 3876, 18, 588, 2042, 22592, 1435, 480, 446, 692, 22155, 18, 2776...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1760, 67, 3729, 67, 2738, 1435, 565, 288, 3639, 1191, 67, 6206, 5621, 3639, 5362, 16187, 18, 13085, 273, 22155, 18, 27768, 3876, 18, 588, 2042, 22592, 1435, 480, 446, 692, 22155, 18, 2776...
public RubyNumeric op_uminus() {
public IRubyObject op_uminus() {
public RubyNumeric op_uminus() { return RubyFloat.newFloat(getRuntime(), -value); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyFloat.java/clean/src/org/jruby/RubyFloat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1061, 67, 20668, 407, 1435, 288, 3639, 327, 19817, 4723, 18, 2704, 4723, 12, 588, 5576, 9334, 300, 1132, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 15908, 10340, 921, 1061, 67, 20668, 407, 1435, 288, 3639, 327, 19817, 4723, 18, 2704, 4723, 12, 588, 5576, 9334, 300, 1132, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -1...
if( !EntryUtil.isEntryUpdatable( nexus, name, getCSN() ) )
if ( !EntryUtil.isEntryUpdatable( nexus, name, getCSN() ) )
protected final void execute0( PartitionNexus nexus, ReplicationStore store ) throws NamingException { if( !EntryUtil.isEntryUpdatable( nexus, name, getCSN() ) ) { return; } EntryUtil.createGlueEntries( nexus, name, true ); execute1( nexus ); }
10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/cfc1e0db255153cb8ed18cd1e735fa4815ad666b/AttributeOperation.java/clean/mitosis/src/main/java/org/apache/directory/mitosis/operation/AttributeOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 727, 918, 1836, 20, 12, 12598, 50, 21029, 290, 21029, 16, 13414, 2257, 1707, 262, 1216, 26890, 565, 288, 3639, 309, 261, 401, 1622, 1304, 18, 291, 1622, 1211, 3404, 429, 12, 290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 1836, 20, 12, 12598, 50, 21029, 290, 21029, 16, 13414, 2257, 1707, 262, 1216, 26890, 565, 288, 3639, 309, 261, 401, 1622, 1304, 18, 291, 1622, 1211, 3404, 429, 12, 290, ...
addTest(new TestCase("org.freehep.graphicsio.ps.test.PSTestPreviewThumbnail", fmt, dir, ext, compare, null));
addTest(new TestCase( "org.freehep.graphicsio.ps.test.PSTestPreviewThumbnail", fmt, dir, ext, compare, null));
protected void addTests(String fmt, String dir, String ext, boolean compare) { super.addTests(fmt, dir, ext, compare); addTest(new TestCase("org.freehep.graphicsio.ps.test.PSTestPreviewThumbnail", fmt, dir, ext, compare, null)); }
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/de061d5977b00047b242b52aea5bc47538b063c5/PSTestSuite.java/clean/freehep-graphicsio-ps/src/test/java/org/freehep/graphicsio/ps/test/PSTestSuite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 14650, 12, 780, 1325, 16, 514, 1577, 16, 514, 1110, 16, 1250, 3400, 13, 288, 3639, 2240, 18, 1289, 14650, 12, 8666, 16, 1577, 16, 1110, 16, 3400, 1769, 3639, 527, 4709, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 14650, 12, 780, 1325, 16, 514, 1577, 16, 514, 1110, 16, 1250, 3400, 13, 288, 3639, 2240, 18, 1289, 14650, 12, 8666, 16, 1577, 16, 1110, 16, 3400, 1769, 3639, 527, 4709, ...
assertEquals(4, configs.length);
assertEquals(5, configs.length);
private void checkSubSubTarget(ITarget target) { final String indyToolName = "Target Independent Tool"; final String indyToolCommand = "RC.EXE"; final String indyToolInputExt = "rc"; final String indyToolOutputExt = "free"; final String indyToolOutFlag = "/fo"; final String indyToolHeader = "h"; final String indyToolHeaderNot = "j"; final String indyCatOne = "Free"; final String indyCatTwo = "Chained"; final String freeOptName = "String in Free"; final String chainedOptName = "Boolean in Chained"; final String freeOptValue = "Live free or die"; final String newCmd = "Let the Wookie win"; // Check the inherited clean command assertEquals("rm -yourworld", target.getCleanCommand()); // Check that the make command is overridden from parent assertEquals("nmake", target.getMakeCommand()); // Make sure we get the proper binary parser assertEquals("org.eclipse.cdt.core.ELF", target.getBinaryParserId()); // Make sure the list is inherited String[] expectedOSList = {"win32","linux","solaris"}; assertTrue(Arrays.equals(expectedOSList, target.getTargetOSList())); // Get the 4 configurations IConfiguration[] configs = target.getConfigurations(); assertEquals(4, configs.length); // Check the tools. We should have 3 (1 from each parent and the one referenced). ITool[] tools = target.getTools(); assertEquals(3, tools.length); ITool toolRef = tools[2]; // Make sure the 3rd tool is a tool reference assertTrue(toolRef instanceof IToolReference); // Make sure we get all the tool settings assertEquals(toolRef.getName(), indyToolName); assertEquals(toolRef.getToolCommand(), indyToolCommand); assertTrue(toolRef.buildsFileType(indyToolInputExt)); assertEquals(toolRef.getOutputExtension(indyToolInputExt), indyToolOutputExt); assertEquals(toolRef.getOutputFlag(), indyToolOutFlag); assertTrue(toolRef.isHeaderFile(indyToolHeader)); assertFalse(toolRef.isHeaderFile(indyToolHeaderNot)); assertEquals(toolRef.getNatureFilter(), ITool.FILTER_BOTH); // Check out the referenced tool and make sure we get all option categories IOptionCategory topCategory = toolRef.getTopOptionCategory(); IOptionCategory[] categories = topCategory.getChildCategories(); assertEquals(1, categories.length); assertEquals(categories[0].getName(), indyCatOne); IOptionCategory[] subCategories = categories[0].getChildCategories(); // Is the chained category a subcategory assertEquals(1, subCategories.length); assertEquals(subCategories[0].getName(), indyCatTwo); // Make sure the option in the top category is correct IOption[] optsInCat = categories[0].getOptions(null); assertEquals(1, optsInCat.length); assertEquals(freeOptName, optsInCat[0].getName()); assertEquals(IOption.STRING, optsInCat[0].getValueType()); try { assertEquals(freeOptValue, optsInCat[0].getStringValue()); } catch (BuildException e1) { fail("Failed getting string value in subsubtarget :" + e1.getLocalizedMessage()); } // Do the same for the options in the child cat IOption[] optsInSubCat = subCategories[0].getOptions(null); assertEquals(1, optsInSubCat.length); assertEquals(chainedOptName, optsInSubCat[0].getName()); assertEquals(IOption.BOOLEAN, optsInSubCat[0].getValueType()); try { assertFalse(optsInSubCat[0].getBooleanValue()); } catch (BuildException e) { fail("Failure getting boolean value in subsubtarget: " + e.getLocalizedMessage()); } // Test that the tool command can be changed through the reference ((IToolReference)toolRef).setToolCommand(newCmd); assertEquals(toolRef.getToolCommand(), newCmd); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/687d76251710a95ddf1a41c3c66ef0c4ad7d1982/ManagedBuildCoreTests.java/clean/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuild/core/tests/ManagedBuildCoreTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 1676, 1676, 2326, 12, 1285, 826, 1018, 13, 288, 202, 202, 6385, 514, 1547, 93, 6364, 461, 273, 315, 2326, 657, 10891, 13288, 14432, 202, 202, 6385, 514, 1547, 93, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 1676, 1676, 2326, 12, 1285, 826, 1018, 13, 288, 202, 202, 6385, 514, 1547, 93, 6364, 461, 273, 315, 2326, 657, 10891, 13288, 14432, 202, 202, 6385, 514, 1547, 93, 6...
String relativePath = RubyString.stringValue(args[0]).getValue();
String relativePath = RubyString.stringValue(args[0]).toString();
public IRubyObject expand_path(IRubyObject[] args) { checkArgumentCount(args, 1, 2); String relativePath = RubyString.stringValue(args[0]).getValue(); int pathLength = relativePath.length(); if (pathLength >= 1 && relativePath.charAt(0) == '~') { // Enebo : Should ~frogger\\foo work (it doesnt in linux ruby)? int userEnd = relativePath.indexOf('/'); if (userEnd == -1) { if (pathLength == 1) { // Single '~' as whole path to expand relativePath = RubyDir.getHomeDirectoryPath(this).getValue(); } else { // No directory delimeter. Rest of string is username userEnd = pathLength; } } if (userEnd == 1) { // '~/...' as path to expand relativePath = RubyDir.getHomeDirectoryPath(this).getValue() + relativePath.substring(1); } else if (userEnd > 1){ // '~user/...' as path to expand String user = relativePath.substring(1, userEnd); IRubyObject dir = RubyDir.getHomeDirectoryPath(this, user); if (dir.isNil()) { throw getRuntime().newArgumentError("user " + user + " does not exist"); } relativePath = "" + dir + (pathLength == userEnd ? "" : relativePath.substring(userEnd)); } } if (new NormalizedFile(relativePath).isAbsolute()) { return getRuntime().newString(relativePath); } String cwd = getRuntime().getCurrentDirectory(); if (args.length == 2 && !args[1].isNil()) { cwd = RubyString.stringValue(args[1]).getValue(); } // Something wrong we don't know the cwd... if (cwd == null) { return getRuntime().getNil(); } NormalizedFile path = new NormalizedFile(cwd, relativePath); String extractedPath; try { extractedPath = path.getCanonicalPath(); } catch (IOException e) { extractedPath = path.getAbsolutePath(); } return getRuntime().newString(extractedPath); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 4542, 67, 803, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 10788, 1380, 12, 1968, 16, 404, 16, 576, 1769, 3639, 514, 12820, 273, 19817, 780, 18, 1080, 620, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4542, 67, 803, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 10788, 1380, 12, 1968, 16, 404, 16, 576, 1769, 3639, 514, 12820, 273, 19817, 780, 18, 1080, 620, ...
if (errorInfo != null && errorInfo.myDescription != null) { statusBar.setInfo(errorInfo.myDescription);
if (errorInfos.length > 0 && errorInfos [0].myDescription != null) { statusBar.setInfo(errorInfos [0].myDescription);
public void valueChanged(final TreeSelectionEvent e) { hideIntentionHint(); updateIntentionHintVisibility(); ErrorInfo errorInfo = getErrorInfo(); final StatusBar statusBar = WindowManager.getInstance().getStatusBar(getEditor().getProject()); if (errorInfo != null && errorInfo.myDescription != null) { statusBar.setInfo(errorInfo.myDescription); } else { statusBar.setInfo(""); } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/2b2e6f8cdcc6616fcb7d0493f9b7b3ac2599f184/QuickFixManagerImpl.java/clean/ui-designer/impl/com/intellij/uiDesigner/componentTree/QuickFixManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 460, 5033, 12, 6385, 4902, 6233, 1133, 425, 13, 288, 1377, 6853, 1702, 5054, 7002, 5621, 1377, 1089, 1702, 5054, 7002, 10135, 5621, 1377, 1068, 966, 23280, 273, 7926, 966, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 460, 5033, 12, 6385, 4902, 6233, 1133, 425, 13, 288, 1377, 6853, 1702, 5054, 7002, 5621, 1377, 1089, 1702, 5054, 7002, 10135, 5621, 1377, 1068, 966, 23280, 273, 7926, 966, 5621, ...
JspWriter out = b.getEnclosingWriter(); try { out.write(b.getString()); } catch (IOException e) { throw new GrailsTagException("I/O error writing body of tag ["+getName()+"]: " + e.getMessage(),e); } b.clearBody();
jspWriter = b.getEnclosingWriter(); invocationBodyContent.add(b.getString()); b.clearBody();
public int doAfterBody() throws JspException { BodyContent b = getBodyContent(); if(invocationCount > 0) { if(b != null) { JspWriter out = b.getEnclosingWriter(); try { out.write(b.getString()); } catch (IOException e) { throw new GrailsTagException("I/O error writing body of tag ["+getName()+"]: " + e.getMessage(),e); } b.clearBody(); } } invocationCount--; setCurrentArgument(); if(invocationCount <= 0) { return SKIP_BODY; } else return EVAL_BODY_BUFFERED; }
50129 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50129/b18b6b0c6359a733b665934c6bf5ac6a960ba356/JspInvokeGrailsTagLibTag.java/clean/src/web/org/codehaus/groovy/grails/web/taglib/jsp/JspInvokeGrailsTagLibTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 4436, 2250, 1435, 1216, 27485, 288, 3639, 5652, 1350, 324, 273, 7587, 1350, 5621, 3639, 309, 12, 5768, 4431, 1380, 405, 374, 13, 288, 5411, 309, 12, 70, 480, 446, 13, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 4436, 2250, 1435, 1216, 27485, 288, 3639, 5652, 1350, 324, 273, 7587, 1350, 5621, 3639, 309, 12, 5768, 4431, 1380, 405, 374, 13, 288, 5411, 309, 12, 70, 480, 446, 13, 28...
return modified ? this : getRuntime().getNil();
if (removeCount == 0) { return getRuntime().getNil(); } getValue().delete(end - removeCount + 1, getValue().length()); return this;
public IRubyObject chomp_bang(IRubyObject[] args) { if (isEmpty()) { return getRuntime().getNil(); } // Separator (a.k.a. $/) can be overriden by the -0 (zero) command line option String separator = (args.length == 0) ? getRuntime().getGlobalVariables().get("$/").asSymbol() : args[0].asSymbol(); if (separator.equals(DEFAULT_RS)) { // Optimized very common case of str.chomp! on Windows (avoid 2 setValue calls) int lastCharIndex = getValue().length() - 1; char lastChar = getValue().charAt(lastCharIndex); if (lastChar=='\n') { if (lastCharIndex > 0 && getValue().charAt(lastCharIndex - 1) == '\r') { // Remove \r\n setValue(getValue().substring(0, lastCharIndex - 1)); } else { // Remove \n setValue(getValue().substring(0, lastCharIndex)); } } else if (lastChar=='\r') { // Very common case of chomp!(noParam) on Mac => No obvious optimzation setValue(getValue().substring(0, lastCharIndex)); } else { // No modifications made return getRuntime().getNil(); } return this; } // Uncommon case of str.chomp!("") not optimized if (separator.length() == 0) { boolean modified = false; while(getValue().length() > 0 && getValue().charAt(getValue().length() - 1) == '\n') { modified = true; setValue(getValue().substring(0, getValue().length() - 1)); if (getValue().length() > 0 && getValue().charAt(getValue().length() - 1) == '\r') { setValue(getValue().substring(0, getValue().length() - 1)); } } return modified ? this : getRuntime().getNil(); } // Uncommon case of str.chomp!("xxx") if (getValue().endsWith(separator)) { setValue(getValue().substring(0, getValue().length() - separator.length())); return this; } return getRuntime().getNil(); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 462, 20667, 67, 70, 539, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 291, 1921, 10756, 288, 5411, 327, 18814, 7675, 588, 12616, 5621, 3639, 289,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 462, 20667, 67, 70, 539, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 291, 1921, 10756, 288, 5411, 327, 18814, 7675, 588, 12616, 5621, 3639, 289,...
new AnAction() {
final JRootPane rootPane = getRootPane(); final AnAction toStatementAction = new AnAction() {
public StatementEvaluationDialog(final Project project, TextWithImports text) { super(project, text); setTitle("Code Fragment Evaluation"); myPanel = new JPanel(new BorderLayout()); final Splitter splitter = new Splitter(true); splitter.setHonorComponentsMinimumSize(true); final DebuggerStatementEditor statementEditor = getStatementEditor(); splitter.setFirstComponent(statementEditor); final EvaluationDialog.MyEvaluationPanel evaluationPanel = getEvaluationPanel(); splitter.setSecondComponent(evaluationPanel); final Dimension statementSize = DimensionService.getInstance().getSize(STATEMENT_EDITOR_DIMENSION_KEY); final Dimension evaluationSize = DimensionService.getInstance().getSize(EVALUATION_PANEL_DIMENSION_KEY); if (statementSize != null && evaluationSize != null) { final float proportion = (float)statementSize.height / (float)(statementSize.height + evaluationSize.height); splitter.setProportion(proportion); } myPanel.add(splitter, BorderLayout.CENTER); setDebuggerContext(getDebuggerContext()); KeyStroke codeFragment = KeyStroke.getKeyStroke(KeyEvent.VK_E, KeyEvent.ALT_MASK); KeyStroke resultStroke = KeyStroke.getKeyStroke(KeyEvent.VK_R, KeyEvent.ALT_MASK); KeyStroke altEnter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, KeyEvent.CTRL_MASK); new AnAction() { public void actionPerformed(AnActionEvent e) { getStatementEditor().requestFocus(); } }.registerCustomShortcutSet(new CustomShortcutSet(codeFragment), getRootPane()); new AnAction() { public void actionPerformed(AnActionEvent e) { getEvaluationPanel().getWatchTree().requestFocus(); } }.registerCustomShortcutSet(new CustomShortcutSet(resultStroke), getRootPane()); new AnAction() { public void actionPerformed(AnActionEvent e) { doOKAction(); } }.registerCustomShortcutSet(new CustomShortcutSet(altEnter), getRootPane()); getEditor().addDocumentListener(new DocumentAdapter() { public void documentChanged(final DocumentEvent e) { DebuggerInvocationUtil.invokeLater(getProject(), new Runnable() { public void run() { updateSwitchButton(e.getDocument()); } }); } }); this.init(); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/c46454ea2e9a7e14883bbaed22b7732af8678762/StatementEvaluationDialog.java/buggy/source/com/intellij/debugger/ui/StatementEvaluationDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8056, 13468, 6353, 12, 6385, 5420, 1984, 16, 3867, 1190, 13347, 977, 13, 288, 565, 2240, 12, 4406, 16, 977, 1769, 565, 14109, 2932, 1085, 18009, 17340, 8863, 565, 3399, 5537, 273, 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, 8056, 13468, 6353, 12, 6385, 5420, 1984, 16, 3867, 1190, 13347, 977, 13, 288, 565, 2240, 12, 4406, 16, 977, 1769, 565, 14109, 2932, 1085, 18009, 17340, 8863, 565, 3399, 5537, 273, 3...
x.bodyDeclarations().add(ast.newInitializer());
public void testEnumDeclaration() { if (ast.apiLevel() == AST.JLS2) { // node type introduced in 3.0 API try { ast.newEnumDeclaration(); assertTrue(false); } catch (UnsupportedOperationException e) { // pass } return; } long previousCount = ast.modificationCount(); final EnumDeclaration x = ast.newEnumDeclaration(); assertTrue(ast.modificationCount() > previousCount); previousCount = ast.modificationCount(); assertTrue(x.getAST() == ast); assertTrue(x.getParent() == null); assertTrue(x.modifiers().size() == 0); assertTrue(x.getName().getParent() == x); assertTrue(x.getName().isDeclaration() == true); assertTrue(x.getJavadoc() == null); assertTrue(x.superInterfaceTypes().size() == 0); assertTrue(x.bodyDeclarations().size()== 0); assertTrue(x.getNodeType() == ASTNode.ENUM_DECLARATION); assertTrue(x.structuralPropertiesForType() == EnumDeclaration.propertyDescriptors(ast.apiLevel())); // make sure that reading did not change modification count assertTrue(ast.modificationCount() == previousCount); previousCount = ast.modificationCount(); tJavadocComment(x); tModifiers(x); genericPropertyTest(x, new Property("Name", true, SimpleName.class) { //$NON-NLS-1$ public ASTNode sample(AST targetAst, boolean parented) { SimpleName result = targetAst.newSimpleName("foo"); //$NON-NLS-1$ if (parented) { targetAst.newExpressionStatement(result); } return result; } public ASTNode get() { return x.getName(); } public void set(ASTNode value) { x.setName((SimpleName) value); } }); genericPropertyListTest(x, x.superInterfaceTypes(), new Property("SuperInterfaceTypes", true, Type.class) { //$NON-NLS-1$ public ASTNode sample(AST targetAst, boolean parented) { SimpleType result = targetAst.newSimpleType(targetAst.newSimpleName("foo")); //$NON-NLS-1$ if (parented) { targetAst.newArrayType(result); } return result; } }); genericPropertyListTest(x, x.bodyDeclarations(), new Property("BodyDeclarations", true, BodyDeclaration.class) { //$NON-NLS-1$ public ASTNode sample(AST targetAst, boolean parented) { TypeDeclaration result = targetAst.newTypeDeclaration(); if (parented) { CompilationUnit cu = targetAst.newCompilationUnit(); cu.types().add(result); } return result; } public ASTNode wrap() { TypeDeclaration s1 = x.getAST().newTypeDeclaration(); s1.bodyDeclarations().add(x); return s1; } public void unwrap() { TypeDeclaration s1 = (TypeDeclaration) x.getParent(); s1.bodyDeclarations().remove(x); } }); // check special bodyDeclaration methods x.bodyDeclarations().clear(); EnumConstantDeclaration c1 = ast.newEnumConstantDeclaration(); EnumConstantDeclaration c2 = ast.newEnumConstantDeclaration(); FieldDeclaration f1 = ast.newFieldDeclaration(ast.newVariableDeclarationFragment()); FieldDeclaration f2 = ast.newFieldDeclaration(ast.newVariableDeclarationFragment()); MethodDeclaration m1 = ast.newMethodDeclaration(); MethodDeclaration m2 = ast.newMethodDeclaration(); TypeDeclaration t1 = ast.newTypeDeclaration(); TypeDeclaration t2 = ast.newTypeDeclaration(); x.bodyDeclarations().add(c1); x.bodyDeclarations().add(c2); x.bodyDeclarations().add(ast.newInitializer()); x.bodyDeclarations().add(f1); x.bodyDeclarations().add(ast.newInitializer()); x.bodyDeclarations().add(f2); x.bodyDeclarations().add(ast.newInitializer()); x.bodyDeclarations().add(t1); x.bodyDeclarations().add(ast.newInitializer()); x.bodyDeclarations().add(m1); x.bodyDeclarations().add(ast.newInitializer()); x.bodyDeclarations().add(m2); x.bodyDeclarations().add(ast.newInitializer()); x.bodyDeclarations().add(t2); x.bodyDeclarations().add(ast.newInitializer()); List es = Arrays.asList(x.getEnumConstants()); assertTrue(es.size() == 2); assertTrue(es.contains(c1)); assertTrue(es.contains(c2)); // check that TypeDeclarations in body are classified correctly assertTrue(t1.isLocalTypeDeclaration() == false); assertTrue(t1.isMemberTypeDeclaration() == true); assertTrue(t1.isPackageMemberTypeDeclaration() == false); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/f7bc2ee5d62baf64b6f044f322b40cdaa75e5dcc/ASTTest.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3572, 6094, 1435, 288, 202, 202, 430, 261, 689, 18, 2425, 2355, 1435, 422, 9183, 18, 46, 3045, 22, 13, 288, 1082, 202, 759, 756, 618, 26339, 316, 890, 18, 20, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3572, 6094, 1435, 288, 202, 202, 430, 261, 689, 18, 2425, 2355, 1435, 422, 9183, 18, 46, 3045, 22, 13, 288, 1082, 202, 759, 756, 618, 26339, 316, 890, 18, 20, 149...
parentMgr.update(force); }
getParentToolBarManager().update(force); }
public void update(boolean force) { // This method is not governed by visibility. The client may // call <code>setVisible</code> and then force an update. At that // point we need to update the parent. parentMgr.update(force);}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5ddde0e384bac44f41aeb754525f7bdab6a04e11/SubToolBarManager.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/action/SubToolBarManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1089, 12, 6494, 2944, 13, 288, 202, 759, 1220, 707, 353, 486, 314, 1643, 11748, 635, 9478, 18, 225, 1021, 1004, 2026, 202, 759, 745, 411, 710, 34, 542, 6207, 1757, 710, 34, 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, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1089, 12, 6494, 2944, 13, 288, 202, 759, 1220, 707, 353, 486, 314, 1643, 11748, 635, 9478, 18, 225, 1021, 1004, 2026, 202, 759, 745, 411, 710, 34, 542, 6207, 1757, 710, 34, 471, ...
if(!isObsoleteCollectionType(type)){
if (!isObsoleteCollectionType(type)){
public void visitNewExpression(@NotNull PsiNewExpression newExpression){ super.visitNewExpression(newExpression); final PsiType type = newExpression.getType(); if(!isObsoleteCollectionType(type)){ return; } final PsiJavaCodeReferenceElement classNameElement = newExpression.getClassReference(); registerError(classNameElement); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/2a073f3b788eda8104f0a8a4881b43a6e54b6a29/ObsoleteCollectionInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/maturity/ObsoleteCollectionInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 1908, 2300, 26964, 5962, 453, 7722, 1908, 2300, 394, 2300, 15329, 5411, 2240, 18, 11658, 1908, 2300, 12, 2704, 2300, 1769, 5411, 727, 453, 7722, 559, 618, 273, 394, 2300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 1908, 2300, 26964, 5962, 453, 7722, 1908, 2300, 394, 2300, 15329, 5411, 2240, 18, 11658, 1908, 2300, 12, 2704, 2300, 1769, 5411, 727, 453, 7722, 559, 618, 273, 394, 2300, ...
if (isSchemaSupported)
if ( isSchemaSupported )
private void getAvailableSchema() { if (isSchemaSupported) { ResultSet schemas = metaDataProvider.getAllSchema(); schemaList = createSchemaList( schemas ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/8887f296b0d9adc032ae9020f3349938893f43a3/SQLDataSetEditorPage.java/clean/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 15796, 3078, 1435, 202, 95, 202, 202, 430, 261, 291, 3078, 7223, 13, 202, 202, 95, 1082, 202, 13198, 12783, 273, 11651, 2249, 18, 588, 1595, 3078, 5621, 1082, 202, 4821, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 15796, 3078, 1435, 202, 95, 202, 202, 430, 261, 291, 3078, 7223, 13, 202, 202, 95, 1082, 202, 13198, 12783, 273, 11651, 2249, 18, 588, 1595, 3078, 5621, 1082, 202, 4821, ...
openEditor(new WelcomeEditorInput(info), Workbench.WELCOME_EDITOR_ID, null);
openEditor(window, new WelcomeEditorInput(info), Workbench.WELCOME_EDITOR_ID, null);
protected void openWelcomeEditors() { AboutInfo info = getAboutInfo(); AboutInfo[] newFeatures = getNewFeaturesInfo(); if (WorkbenchPlugin.getDefault().getPreferenceStore().getBoolean(IPreferenceConstants.WELCOME_DIALOG)) { // Show the quick start wizard the first time the workbench opens. // See if a welcome page is specified URL url = info.getWelcomePageURL(); if (url == null) return; // Don't show it again WorkbenchPlugin.getDefault().getPreferenceStore().setValue(IPreferenceConstants.WELCOME_DIALOG, false); openEditor(new WelcomeEditorInput(info), Workbench.WELCOME_EDITOR_ID, null); } else { // Show the welcome page for any newly installed features // Get the infos with welcome pages ArrayList welcomeFeatures = new ArrayList(); for (int i = 0; i < newFeatures.length; i++) { if (newFeatures[i].getWelcomePageURL() != null) { if (newFeatures[i].getFeatureId() != null && newFeatures[i].getWelcomePerspective() != null) { IPluginDescriptor desc = newFeatures[i].getDescriptor(); //activates the feature plugin so it can run some install code. try { if(desc != null) desc.getPlugin(); } catch (CoreException e) { } } welcomeFeatures.add(newFeatures[i]); } } int wCount = getWorkbench().getWorkbenchWindowCount(); for (int i = 0; i < welcomeFeatures.size(); i++) { AboutInfo newInfo = (AboutInfo) welcomeFeatures.get(i); String id = newInfo.getWelcomePerspective(); if (id == null || i >= wCount) //Other editors were already opened in restoreState(..) openEditor(new WelcomeEditorInput(newInfo), Workbench.WELCOME_EDITOR_ID, id); } }}
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f77cc9aed5752d58e54872ce2891482f244b1b4b/WorkbenchConfigurationInfo.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchConfigurationInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 1696, 59, 16312, 4666, 1383, 1435, 288, 202, 24813, 966, 1123, 273, 4506, 70, 659, 966, 5621, 202, 24813, 966, 8526, 394, 8696, 273, 12654, 8696, 966, 5621, 202, 430, 261, 2421, 221...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1696, 59, 16312, 4666, 1383, 1435, 288, 202, 24813, 966, 1123, 273, 4506, 70, 659, 966, 5621, 202, 24813, 966, 8526, 394, 8696, 273, 12654, 8696, 966, 5621, 202, 430, 261, 2421, 221...
public int[] getCASystemIDs () { //TODO return new int[0];}
13401 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13401/b1f2dddc68b4ce0181ca8ca1d2e261d450787564/SIServiceImpl.java/clean/trunk/mhp/java/org/dvb/si/SIServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 509, 8526, 1927, 3033, 1108, 5103, 1832, 288, 282, 368, 6241, 282, 327, 394, 509, 63, 20, 15533, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 509, 8526, 1927, 3033, 1108, 5103, 1832, 288, 282, 368, 6241, 282, 327, 394, 509, 63, 20, 15533, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Iterator iter = items.iterator(); while (iter.hasNext()) { FileItem item = (FileItem) iter.next();
Iterator iter = items.iterator(); while (iter.hasNext()) { FileItem item = (FileItem) iter.next();
protected void processUpload(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { boolean isMultipart = FileUpload.isMultipartContent(req); if (isMultipart) { try { // Create a new file upload handler DiskFileUpload upload = new DiskFileUpload(); List items = upload.parseRequest(req); // Process the uploaded items Iterator iter = items.iterator(); while (iter.hasNext()) { FileItem item = (FileItem) iter.next(); if (!item.isFormField()) { String fileName = item.getName(); String fileExtesion = fileName; fileExtesion = fileExtesion.toLowerCase(); if (!(fileExtesion.endsWith(".jar") || fileExtesion.endsWith(".aar"))) { req.setAttribute("status", "failure"); req.setAttribute("cause", "Unsupported file type " + fileExtesion); } else { String fileNameOnly = ""; if (fileName.indexOf("\\") < 0) { fileNameOnly = fileName.substring(fileName.lastIndexOf("/") + 1, fileName.length()); } else { fileNameOnly = fileName.substring(fileName.lastIndexOf("\\") + 1, fileName.length()); } File uploadedFile = new File(serviceDir, fileNameOnly); item.write(uploadedFile); req.setAttribute("status", "success"); req.setAttribute("filename", fileNameOnly); } } } } catch (Exception e) { req.setAttribute("status", "failure"); req.setAttribute("cause", e.getMessage()); } } renderView("upload.jsp", req, res); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/9cd28cc48911efea6c6eeda6bb202d386774bc29/AdminAgent.java/buggy/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1207, 4777, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 1216, 1860, 16, 16517, 288, 565, 1250, 353, 12024, 273, 1387, 4777, 18, 291, 12024, 1350, 12, 3658, 1769, 565, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1207, 4777, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 1216, 1860, 16, 16517, 288, 565, 1250, 353, 12024, 273, 1387, 4777, 18, 291, 12024, 1350, 12, 3658, 1769, 565, 309, 261, ...
public GroupKeySetRule( Object container, DataSetItemModel dataSetColumn )
public GroupKeySetRule( Object container, ResultSetColumnHandle dataSetColumn )
public GroupKeySetRule( Object container, DataSetItemModel dataSetColumn ) { this.container = container; this.dataSetColumn = dataSetColumn; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c57e51ddaf9393af1c4b33b6a8cd4cf65950f338/InsertInLayoutUtil.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dnd/InsertInLayoutUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 3756, 653, 694, 2175, 12, 1033, 1478, 16, 14065, 1180, 1488, 14837, 1494, 262, 202, 202, 95, 1082, 202, 2211, 18, 3782, 273, 1478, 31, 1082, 202, 2211, 18, 892, 694, 1494, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 3756, 653, 694, 2175, 12, 1033, 1478, 16, 14065, 1180, 1488, 14837, 1494, 262, 202, 202, 95, 1082, 202, 2211, 18, 3782, 273, 1478, 31, 1082, 202, 2211, 18, 892, 694, 1494, 27...
if (state != RunningState.PAUSED) return;
public void resume() { if (state != RunningState.PAUSED) return; lock.lock(); try { state = RunningState.RUNNING; if (pauseLock.availablePermits() == 0) pauseLock.release(); } finally { lock.unlock(); } }
13024 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13024/e1dfed72da7074e81a7b8b6e6d2c7c2021db00dd/PacketQueue.java/buggy/feridian/branch/ckchris-maven/modules/xmpp/src/main/java/com/echomine/xmpp/impl/PacketQueue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10774, 1435, 288, 3639, 309, 261, 2019, 480, 20480, 1119, 18, 4066, 20093, 13, 5411, 327, 31, 3639, 2176, 18, 739, 5621, 3639, 775, 288, 5411, 919, 273, 20480, 1119, 18, 29358,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10774, 1435, 288, 3639, 309, 261, 2019, 480, 20480, 1119, 18, 4066, 20093, 13, 5411, 327, 31, 3639, 2176, 18, 739, 5621, 3639, 775, 288, 5411, 919, 273, 20480, 1119, 18, 29358,...
workManager.scheduleWork(this, WorkManager.INDEFINITE, null, null);
workManager.scheduleWork(this, WorkManager.INDEFINITE, null, this);
public void doStart() throws UMOException { try { // Need to initialise the pool only after all listerner have // been // registed and initialised so we need to delay until now if (!poolInitialised.get() && enablePooling) { initialisePool(); proxyPool.start(); } else if (!componentPerRequest) { componentProxy = createComponentProxy(); } workManager.start(); workManager.scheduleWork(this, WorkManager.INDEFINITE, null, null); } catch (Exception e) { throw new LifecycleException(new Message(Messages.FAILED_TO_START_X, "Component: " + descriptor.getName()), e, this); } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/a66bf902f38709aee1a3826c3249a37c59a12047/SedaComponent.java/clean/mule/src/java/org/mule/impl/model/seda/SedaComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 1685, 1435, 1216, 587, 5980, 503, 288, 3639, 775, 288, 5411, 368, 12324, 358, 21301, 326, 2845, 1338, 1839, 777, 666, 264, 1224, 1240, 5411, 368, 2118, 5411, 368, 960, 254...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 1685, 1435, 1216, 587, 5980, 503, 288, 3639, 775, 288, 5411, 368, 12324, 358, 21301, 326, 2845, 1338, 1839, 777, 666, 264, 1224, 1240, 5411, 368, 2118, 5411, 368, 960, 254...
return ((SIRFilter)fire.contents).getPeekInt();
return ((SIRFilter)fire.contents).getPopInt();
private int itemsNeededToFire(FlatNode fire, SimulationCounter counters) { if (initSimulation && !counters.hasFired(fire)) { if (fire.contents instanceof SIRTwoStageFilter){ //if the twostage does nothing in its initWork() //then the initWork should not count as an execution //return peek items as the needed items SIRTwoStageFilter two = (SIRTwoStageFilter)fire.contents; if (two.getInitPeek() == 0 && two.getInitPush() == 0 && two.getInitPop() == 0) { return two.getPeekInt(); } return ((SIRTwoStageFilter)fire.contents).getInitPeek(); } else return ((SIRFilter)fire.contents).getPeekInt(); } else return ((SIRFilter)fire.contents).getPopInt(); }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/04f4f446bceffbf6f51efb04be58ccbcd8700b64/FineGrainSimulator.java/clean/streams/src/at/dms/kjc/raw/FineGrainSimulator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1516, 11449, 774, 9723, 12, 16384, 907, 4452, 16, 9587, 6234, 4789, 13199, 13, 377, 288, 202, 430, 261, 2738, 18419, 597, 401, 23426, 18, 5332, 42, 2921, 12, 12179, 3719, 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, 3238, 509, 1516, 11449, 774, 9723, 12, 16384, 907, 4452, 16, 9587, 6234, 4789, 13199, 13, 377, 288, 202, 430, 261, 2738, 18419, 597, 401, 23426, 18, 5332, 42, 2921, 12, 12179, 3719, 288, ...
private static boolean haveActiveFrames() { final WindowManagerEx wmanager = WindowManagerEx.getInstanceEx(); if (wmanager == null) return false; for (IdeFrame frame : wmanager.getAllFrames()) { if (frame != null && frame.getState() != JFrame.ICONIFIED) return true; } return false; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6015, 270, 395, 2126, 6494, 21516, 3896, 15162, 1435, 95, 6385, 3829, 1318, 424, 91, 4181, 33, 3829, 1318, 424, 18, 588, 1442, 424, 5621, 430, 12, 91, 4181, 631, 2011, 13, 2463, 5743, 31, 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, 6015, 270, 395, 2126, 6494, 21516, 3896, 15162, 1435, 95, 6385, 3829, 1318, 424, 91, 4181, 33, 3829, 1318, 424, 18, 588, 1442, 424, 5621, 430, 12, 91, 4181, 631, 2011, 13, 2463, 5743, 31, 18...
FunctionSource functionSource(DebuggableScript fnOrScript) {
private FunctionSource functionSource(DebuggableScript fnOrScript) {
FunctionSource functionSource(DebuggableScript fnOrScript) { return (FunctionSource)functionToSource.get(fnOrScript); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/2d4fc75b74d717c754829dde488ff0a7456682cc/Dim.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4284, 1830, 445, 1830, 12, 2829, 8455, 3651, 2295, 1162, 3651, 13, 565, 288, 3639, 327, 261, 2083, 1830, 13, 915, 774, 1830, 18, 588, 12, 4293, 1162, 3651, 1769, 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, 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, 377, 4284, 1830, 445, 1830, 12, 2829, 8455, 3651, 2295, 1162, 3651, 13, 565, 288, 3639, 327, 261, 2083, 1830, 13, 915, 774, 1830, 18, 588, 12, 4293, 1162, 3651, 1769, 565, 289, 2, -100, -100...
Member next = (Member) v0.elementAt(i);
Object next = v0.elementAt(i); Member nextMember = (k < 0) ? (Member) next : ((Member[]) next)[k];
public Object evaluate(Evaluator evaluator, Exp[] args) { Vector v0 = (Vector) getArg(evaluator, args, 0), v1 = (Vector) getArg(evaluator, args, 1); if (args.length > 2) { throw Util.newInternal( "ToggleDrillState(RECURSIVE) not supported"); } if (v1.isEmpty()) { return v0; } HashSet set1 = toHashSet(v1); Vector result = new Vector(); int i = 0, n = v0.size(); while (i < n) { Member m = (Member) v0.elementAt(i++); result.addElement(m); if (!set1.contains(m)) { continue; } boolean isDrilledDown = false; if (i < n) { Member next = (Member) v0.elementAt(i); boolean strict = true; if (isAncestorOf(m, next, strict)) { isDrilledDown = true; } } if (isDrilledDown) { // skip descendants of this member do { Member next = (Member) v0.elementAt(i); boolean strict = true; if (isAncestorOf(m, next, strict)) { i++; } else { break; } } while (i < n); } else { Member[] children = m.getMemberChildren(); for (int j = 0; j < children.length; j++) { result.addElement(children[j]); } } } return result; }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/ca324b70b514c97179fae2a0f078df3b83dd33e1/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 25083, 202, 5018, 331, 20, 273, 261, 5018, 13, 336, 4117, 12, 14168, 639, 16, 833, 16, 374, 3631, 6862, 9506, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 25083, 202, 5018, 331, 20, 273, 261, 5018, 13, 336, 4117, 12, 14168, 639, 16, 833, 16, 374, 3631, 6862, 9506, 202,...
if(KNOWN_LOADERS.contains(grammarType)) {
if(KNOWN_LOADERS.containsKey(grammarType)) {
public boolean registerPreparser(String grammarType, XMLGrammarLoader loader) { if(loader == null) { // none specified! if(KNOWN_LOADERS.contains(grammarType)) { // got one; just instantiate it... String loaderName = (String)KNOWN_LOADERS.get(grammarType); try { ClassLoader cl = ObjectFactory.findClassLoader(); XMLGrammarLoader gl = (XMLGrammarLoader)(ObjectFactory.newInstance(loaderName, cl)); fLoaders.put(grammarType, gl); } catch (Exception e) { return false; } return true; } return false; } // were given one fLoaders.put(grammarType, loader); return true; } // registerPreparser(String, XMLGrammarLoader): boolean
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/b5627796cd0894c1dc0e5799df81a2656967d329/XMLGrammarPreparser.java/buggy/src/org/apache/xerces/parsers/XMLGrammarPreparser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1744, 1386, 4288, 12, 780, 6473, 559, 16, 3167, 18576, 2886, 4088, 13, 288, 540, 309, 12, 6714, 422, 446, 13, 288, 368, 6555, 1269, 5, 5411, 309, 12, 9308, 67, 1502, 5483, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1744, 1386, 4288, 12, 780, 6473, 559, 16, 3167, 18576, 2886, 4088, 13, 288, 540, 309, 12, 6714, 422, 446, 13, 288, 368, 6555, 1269, 5, 5411, 309, 12, 9308, 67, 1502, 5483, ...
debugLog(pushScript + ": " + ls_str);
infoLog(pushScript + ": " + ls_str);
private boolean execPushScript(String id, String time) { try { String ls_str; String cli = pushScript + " " + outputDir + " " + id + " " + time; Process pushScript_proc = Runtime.getRuntime().exec(cli); // get its output (your input) stream DataInputStream ls_in = new DataInputStream(pushScript_proc.getInputStream()); try { while ((ls_str = ls_in.readLine()) != null) { debugLog(pushScript + ": " + ls_str); } } catch (IOException e) { return false; } try { pushScript_proc.waitFor(); if(pushScript_proc.exitValue()==0) return true; } catch (InterruptedException e) { e.printStackTrace(); } return false; } catch (IOException e1) { System.err.println(e1); return false; } }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/9050d7c218bc5eb51eb7cbd68bc0b214bcf9614b/Sucker.java/clean/apps/syndie/java/src/net/i2p/syndie/Sucker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1196, 7621, 3651, 12, 780, 612, 16, 514, 813, 13, 288, 3639, 775, 288, 5411, 514, 7180, 67, 701, 31, 5411, 514, 4942, 273, 1817, 3651, 397, 315, 315, 397, 21412, 397, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1196, 7621, 3651, 12, 780, 612, 16, 514, 813, 13, 288, 3639, 775, 288, 5411, 514, 7180, 67, 701, 31, 5411, 514, 4942, 273, 1817, 3651, 397, 315, 315, 397, 21412, 397, 315, ...
} else { selectEntity(e.getId()); } } else { client.setDisplayVisible(true); client.mechD.displayEntity(e); if (e.isDeployed()) { client.bv.centerOnHex(e.getPosition()); }
}
public void selectUnit(BoardViewEvent b) { Entity e = client.game.getEntity(b.getEntityId()); if (client.isMyTurn()) { if (!e.isSelectableThisTurn(client.game)) { client.setDisplayVisible(true); client.mechD.displayEntity(e); client.bv.centerOnHex(e.getPosition()); } else { selectEntity(e.getId()); } } else { client.setDisplayVisible(true); client.mechD.displayEntity(e); if (e.isDeployed()) { client.bv.centerOnHex(e.getPosition()); } } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/6fa7a915a9c48dac94fa163b03ae6a0e99765cad/MovementDisplay.java/clean/megamek/src/megamek/client/ui/AWT/MovementDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2027, 2802, 12, 22233, 1767, 1133, 324, 13, 288, 377, 202, 1943, 425, 273, 1004, 18, 13957, 18, 588, 1943, 12, 70, 18, 588, 18029, 10663, 377, 202, 430, 261, 2625, 18, 291, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2027, 2802, 12, 22233, 1767, 1133, 324, 13, 288, 377, 202, 1943, 425, 273, 1004, 18, 13957, 18, 588, 1943, 12, 70, 18, 588, 18029, 10663, 377, 202, 430, 261, 2625, 18, 291, ...
else {
else {
public void doTag(final XMLOutput output) throws Exception { AttainTag attainTag = (AttainTag) findAncestorWithClass( AttainTag.class ); Session session = null; if ( attainTag == null ) { session = new JellySession( output ); } else { session = attainTag.getSession(); } ProjectTag projectTag = (ProjectTag) findAncestorWithClass( ProjectTag.class ); Project project = projectTag.getProject(); invokeBody(output); try { project.attainGoal( getName(), session ); } catch (UnattainableGoalException e) { Throwable root = e.getRootCause(); if ( root != null ) { if ( root instanceof JellyException ) { throw (JellyException) root; } if ( root instanceof UnattainableGoalException ) { throw e; } } else { e.fillInStackTrace(); throw e; } } }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/c8b44e1979ddfc14f647677de8c6d5285b917a08/AttainGoalTag.java/buggy/src/java/org/apache/commons/jelly/tags/werkz/AttainGoalTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 1805, 12, 6385, 3167, 1447, 876, 13, 1216, 1185, 288, 7734, 6020, 530, 1805, 2403, 530, 1805, 273, 261, 3075, 530, 1805, 13, 1104, 15637, 1190, 797, 12, 6020, 530, 1805, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 1805, 12, 6385, 3167, 1447, 876, 13, 1216, 1185, 288, 7734, 6020, 530, 1805, 2403, 530, 1805, 273, 261, 3075, 530, 1805, 13, 1104, 15637, 1190, 797, 12, 6020, 530, 1805, ...
protected void setContainerContext(Map containers) {
protected void setContainerContext(Map containers) throws UMOException {
protected void setContainerContext(Map containers) { if(containers.size() == 0) { //Use this as the default container SpringContainerContext container = new SpringContainerContext(); container.setBeanFactory(context); manager.setContainerContext(container); } else if (containers.size() == 1) { manager.setContainerContext((UMOContainerContext)containers.values().iterator().next()); } else { UMOContainerContext ctx = (UMOContainerContext)containers.values().iterator().next(); logger.warn("There are " + containers.size() + " container contexts in the spring context. Using the first one: " + ctx.getClass().getName()); manager.setContainerContext(ctx); } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/67e123292b9b3ff0a0ee9089c3287dbc6a435a1a/AutowireUMOManagerFactoryBean.java/clean/mule-extras/spring/src/java/org/mule/extras/spring/config/AutowireUMOManagerFactoryBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 28331, 1042, 12, 863, 8475, 13, 1216, 587, 5980, 503, 288, 3639, 309, 12, 20596, 18, 1467, 1435, 422, 374, 13, 288, 5411, 368, 3727, 333, 487, 326, 805, 1478, 5411, 22751, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 28331, 1042, 12, 863, 8475, 13, 1216, 587, 5980, 503, 288, 3639, 309, 12, 20596, 18, 1467, 1435, 422, 374, 13, 288, 5411, 368, 3727, 333, 487, 326, 805, 1478, 5411, 22751, 21...
setAttribute(IExtensionConstants.EDITOR_SHOW_IN_DESIGNER, Boolean.TRUE); setAttribute(IExtensionConstants.EDITOR_SHOW_IN_MASTERPAGE,
setAttribute(IExtensionConstants.ATTRIBUTE_EDITOR_SHOW_IN_DESIGNER, Boolean.TRUE); setAttribute(IExtensionConstants.ATTRIBUTE_EDITOR_SHOW_IN_MASTERPAGE,
ExtendedElementUIPoint() { //Default value setAttribute(IExtensionConstants.EDITOR_SHOW_IN_DESIGNER, Boolean.TRUE); setAttribute(IExtensionConstants.EDITOR_SHOW_IN_MASTERPAGE, Boolean.TRUE); setAttribute(IExtensionConstants.EDITOR_CAN_RESIZE, Boolean.TRUE); setAttribute(IExtensionConstants.PALETTE_CATEGORY, IPreferenceConstants.PALETTE_CONTENT); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/17ca72cff29ba2ef01872bf16d726ddb22a3302d/ExtendedElementUIPoint.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/extension/ExtendedElementUIPoint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 11456, 1046, 5370, 2148, 1435, 288, 202, 202, 759, 1868, 460, 202, 202, 542, 1499, 12, 45, 3625, 2918, 18, 13208, 67, 16677, 67, 706, 67, 1639, 11260, 654, 16, 3411, 18, 18724, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11456, 1046, 5370, 2148, 1435, 288, 202, 202, 759, 1868, 460, 202, 202, 542, 1499, 12, 45, 3625, 2918, 18, 13208, 67, 16677, 67, 706, 67, 1639, 11260, 654, 16, 3411, 18, 18724, 176...
if (text.getSelectionCount() > 0)
if (text.getSelectionCount() > 0) {
public void performDelete() { if (text.getSelectionCount() > 0) // remove the contents of the current selection text.insert(""); //$NON-NLS-1$ else { // remove the next character int pos = text.getCaretPosition(); if (pos < text.getCharCount()) { text.setSelection(pos, pos + 1); text.insert(""); //$NON-NLS-1$ } } checkSelection(); checkDeleteable(); checkSelectable(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/DecoratedFieldCellEditor.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/fieldassist/DecoratedFieldCellEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3073, 2613, 1435, 288, 202, 202, 430, 261, 955, 18, 588, 6233, 1380, 1435, 405, 374, 13, 1082, 202, 759, 1206, 326, 2939, 434, 326, 783, 4421, 1082, 202, 955, 18, 6387, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3073, 2613, 1435, 288, 202, 202, 430, 261, 955, 18, 588, 6233, 1380, 1435, 405, 374, 13, 1082, 202, 759, 1206, 326, 2939, 434, 326, 783, 4421, 1082, 202, 955, 18, 6387, ...
if (name == "eval" && start == getWindow()) {
if ("eval".equals(name) && start == getWindow()) {
public Object get( final String name, final Scriptable start ) { // Hack to make eval work in other window scope when needed // see unit tests. Todo: find a clean way to handle that if (name == "eval" && start == getWindow()) { return super.get(name, start); // will return native eval function } // Some calls to get will happen during the initialization of the // superclass. At this point, we don't have enough information to // do our own initialization so we have to just pass this call // through to the superclass. if( domNode_ == null && ! isInitialized_) { final Object result = super.get(name, start); // this may help to find which properties htmlunit should impement if (result == NOT_FOUND) { getLog().debug("Property \"" + name + "\" of " + start + " not defined as pure js property"); } return result; } final JavaScriptConfiguration configuration = getJavaScriptConfiguration(); final Class clazz = getClass(); final Object result; final Method propertyMethod = configuration.getPropertyReadMethod(clazz, name); final Method functionMethod = configuration.getFunctionMethod(clazz, name); if (propertyMethod != null && functionMethod != null) { throw new IllegalStateException("Name is both a property and a function: name=[" + name + "] class=[" + clazz.getName() + "]"); } if (propertyMethod == null) { if (functionMethod == null) { result = super.get(name, start); } else { result = new FunctionObject(name, functionMethod, this); } } else { try { result = propertyMethod.invoke(this, new Object[0]); } catch (final Exception e) { throw Context.throwAsScriptRuntimeEx(e); } } // this may help to find which properties htmlunit should impement if (result == NOT_FOUND) { getLog().debug("Property \"" + name + "\" of " + start + " not defined as fixed property"); } return result; }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/52fcb223986b0f2533e9f08a34d29d149a7e39a3/SimpleScriptable.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 336, 12, 727, 514, 508, 16, 727, 22780, 787, 262, 288, 3639, 368, 670, 484, 358, 1221, 5302, 1440, 316, 1308, 2742, 2146, 1347, 3577, 3639, 368, 2621, 2836, 7434, 18, 399, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 336, 12, 727, 514, 508, 16, 727, 22780, 787, 262, 288, 3639, 368, 670, 484, 358, 1221, 5302, 1440, 316, 1308, 2742, 2146, 1347, 3577, 3639, 368, 2621, 2836, 7434, 18, 399, 7...
Properties properties = System.getProperties();
Properties properties = getProps();
public void test1() throws Exception { Properties properties = System.getProperties(); properties.setProperty("extex.config", "nextex"); runCode(properties, //--- input code --- "\\catcode`{=1" + "\\catcode`}=2" + "\\escapechar=`\\\\" + "\\namespace{TeX}" + "" + "\\count1=123" + "\\showthe\\count1" + "\\namespace{abc}" + "\\showthe\namespace" + "\\showthe\\count1" + "" + "\\end ", //--- log message --- "", //--- output channel --- "\n"); }
9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/317d6da9eb6782589a2ea8f2b8f9f3ec46b5cdac/NamespaceTest.java/buggy/ExTeX/src/test/de/dante/extex/interpreter/primitives/namespace/NamespaceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 21, 1435, 1216, 1185, 288, 3639, 6183, 1790, 273, 3570, 1121, 5621, 3639, 1790, 18, 542, 1396, 2932, 408, 338, 18, 1425, 3113, 315, 4285, 338, 8863, 3639, 1086, 1085, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 21, 1435, 1216, 1185, 288, 3639, 6183, 1790, 273, 3570, 1121, 5621, 3639, 1790, 18, 542, 1396, 2932, 408, 338, 18, 1425, 3113, 315, 4285, 338, 8863, 3639, 1086, 1085, 12,...