rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
System.out.println("lenVisitEllipsis:" + node.toString("")); | public Object visitEllipsis(Ellipsis node) throws Exception { System.out.println("lenVisitEllipsis:" + node.toString("")); return null; } | 50371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50371/2e0750ff13782bb25064881debe65f22d8f24e7b/LengthEstimator.java/clean/org.python.pydev/src/org/python/pydev/editor/model/LengthEstimator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3757,
4958,
17829,
12,
4958,
17829,
756,
13,
1216,
1185,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1897,
10432,
4958,
17829,
2773,
397,
756,
18,
10492,
2932,
7923,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3757,
4958,
17829,
12,
4958,
17829,
756,
13,
1216,
1185,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1897,
10432,
4958,
17829,
2773,
397,
756,
18,
10492,
2932,
7923,
176... | |
public void testExecuteEmbedderWithNullProperties() throws Exception { assertFalse( mojo.executeInstallFile( null ) ); | public void testExecuteEmbedderWithNullProperties() throws Exception { assertFalse(mojo.executeInstallFile(null)); | public void testExecuteEmbedderWithNullProperties() throws Exception { assertFalse( mojo.executeInstallFile( null ) ); } | 50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/24da5e85af5a5436d87052b0eb6b01bb40e0457c/TestBootstrapMojo.java/buggy/maven2/maven-wobootstrap-plugin/src/test/java/org/objectstyle/woproject/maven2/wobootstrap/TestBootstrapMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5289,
9538,
765,
1190,
2041,
2297,
1435,
1216,
1185,
202,
95,
202,
202,
11231,
8381,
12,
312,
10007,
18,
8837,
6410,
812,
12,
446,
262,
11272,
202,
97,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5289,
9538,
765,
1190,
2041,
2297,
1435,
1216,
1185,
202,
95,
202,
202,
11231,
8381,
12,
312,
10007,
18,
8837,
6410,
812,
12,
446,
262,
11272,
202,
97,
2,
-100,
-10... |
serverUrlEditor.setErrorMessage("Server path must be a valid http(s): | public void createControl(Composite parent) { container = new Composite(parent, SWT.NULL); FillLayout layout = new FillLayout(); container.setLayout(layout); new Label(container, SWT.NONE).setText(LABEL_TEMPLATE); repositoryLabelCombo = new Combo(container, SWT.DROP_DOWN); GridDataFactory.swtDefaults().grab(true, false).applyTo(repositoryLabelCombo); serverUrlEditor = new StringFieldEditor("", LABEL_SERVER, StringFieldEditor.UNLIMITED, container) { @Override protected boolean doCheckState() { return isValidUrl(getStringValue()); } @Override protected void valueChanged() { super.valueChanged(); if (getWizard() != null) { getWizard().getContainer().updateButtons(); } } }; serverUrlEditor.setErrorMessage("Server path must be a valid http(s):// url"); if (needsAnonymousLogin()) { anonymousButton = new Button(container, SWT.CHECK); GridDataFactory.fillDefaults().span(2, SWT.DEFAULT).applyTo(anonymousButton); anonymousButton.setText("Anonymous Access"); anonymousButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { setAnonymous(anonymousButton.getSelection()); } public void widgetDefaultSelected(SelectionEvent e) { // ignore } }); // Label anonymousLabel = new Label(container, SWT.NONE); // anonymousLabel.setText(""); } userNameEditor = new StringFieldEditor("", LABEL_USER, StringFieldEditor.UNLIMITED, container); passwordEditor = new RepositoryStringFieldEditor("", LABEL_PASSWORD, StringFieldEditor.UNLIMITED, container); if (repository != null) { originalUrl = repository.getUrl(); oldUsername = repository.getUserName(); oldPassword = repository.getPassword(); try { String repositoryLabel = repository.getProperty(IRepositoryConstants.PROPERTY_LABEL); if (repositoryLabel != null && repositoryLabel.length() > 0) { repositoryLabelCombo.add(repositoryLabel); repositoryLabelCombo.select(0); repositoryLabelCombo.setText(repositoryLabel); } serverUrlEditor.setStringValue(repository.getUrl()); userNameEditor.setStringValue(repository.getUserName()); passwordEditor.setStringValue(repository.getPassword()); } catch (Throwable t) { MylarStatusHandler.fail(t, "could not set field value for: " + repository, false); } } else { oldUsername = ""; oldPassword = ""; } // bug 131656: must set echo char after setting value on Mac ((RepositoryStringFieldEditor) passwordEditor).getTextControl().setEchoChar('*'); if (needsAnonymousLogin()) { // do this after username and password widgets have been intialized if (repository != null) { setAnonymous(isAnonymousAccess()); } } // TODO: put this back if we can't get the info from all connectors // if (needsTimeZone()) { // Label timeZoneLabel = new Label(container, SWT.NONE); // timeZoneLabel.setText("Repository time zone: "); // timeZonesCombo = new Combo(container, SWT.READ_ONLY); // String[] timeZoneIds = TimeZone.getAvailableIDs(); // Arrays.sort(timeZoneIds); // for (String zone : timeZoneIds) { // timeZonesCombo.add(zone); // } // boolean setZone = false; // if (repository != null) { // if (timeZonesCombo.indexOf(repository.getTimeZoneId()) > -1) { // timeZonesCombo.select(timeZonesCombo.indexOf(repository.getTimeZoneId())); // setZone = true; // } // } // if (!setZone) { // timeZonesCombo.select(timeZonesCombo.indexOf(TimeZone.getDefault().getID())); // } // } createAdditionalControls(container); if (needsEncoding()) { Label encodingLabel = new Label(container, SWT.HORIZONTAL); encodingLabel.setText("Character Encoding:"); GridDataFactory.fillDefaults().align(SWT.TOP, SWT.DEFAULT).applyTo(encodingLabel); Composite encodingContainer = new Composite(container, SWT.NONE); GridLayout gridLayout = new GridLayout(2, false); gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; encodingContainer.setLayout(gridLayout); defaultEncoding = new Button(encodingContainer, SWT.RADIO); defaultEncoding.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1)); defaultEncoding.setText("Default (" + TaskRepository.DEFAULT_CHARACTER_ENCODING + ")"); defaultEncoding.setSelection(true); final Button otherEncoding = new Button(encodingContainer, SWT.RADIO); otherEncoding.setText("Other:"); otherEncodingCombo = new Combo(encodingContainer, SWT.READ_ONLY); for (String encoding : Charset.availableCharsets().keySet()) { if (!encoding.equals(TaskRepository.DEFAULT_CHARACTER_ENCODING)) { otherEncodingCombo.add(encoding); } } setDefaultEncoding(); otherEncoding.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (otherEncoding.getSelection()) { defaultEncoding.setSelection(false); otherEncodingCombo.setEnabled(true); } else { defaultEncoding.setSelection(true); otherEncodingCombo.setEnabled(false); } } }); if (repository != null) { try { String repositoryEncoding = repository.getCharacterEncoding(); if (repositoryEncoding != null) {// && !repositoryEncoding.equals(defaultEncoding)) { if (otherEncodingCombo.getItemCount() > 0 && otherEncodingCombo.indexOf(repositoryEncoding) > -1) { otherEncodingCombo.setEnabled(true); otherEncoding.setSelection(true); defaultEncoding.setSelection(false); otherEncodingCombo.select(otherEncodingCombo.indexOf(repositoryEncoding)); } else { setDefaultEncoding(); } } } catch (Throwable t) { MylarStatusHandler.fail(t, "could not set field value for: " + repository, false); } } } validateServerButton = new Button(container, SWT.PUSH); GridDataFactory.swtDefaults().span(2, SWT.DEFAULT).grab(false, false).applyTo(validateServerButton); validateServerButton.setText("Validate Settings"); validateServerButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { validateSettings(); } }); setControl(container); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/ddd94f001597001e10a104e2c9c1d9824476c106/AbstractRepositorySettingsPage.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/AbstractRepositorySettingsPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
3782,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
8026,
3744,
3511,
273,
394,
14192,
3744,
5621,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
3782,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
8026,
3744,
3511,
273,
394,
14192,
3744,
5621,
202,... | |
if (fExpressions == null) | if (fExpressions == null) { | public void add(Expression expression) { if (fExpressions == null) fExpressions = new ArrayList(2); fExpressions.add(expression); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/CompositeExpression.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/expressions/CompositeExpression.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
12,
2300,
2652,
13,
288,
202,
202,
430,
261,
74,
8927,
422,
446,
13,
1082,
202,
74,
8927,
273,
394,
2407,
12,
22,
1769,
202,
202,
74,
8927,
18,
1289,
12,
8692,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
527,
12,
2300,
2652,
13,
288,
202,
202,
430,
261,
74,
8927,
422,
446,
13,
1082,
202,
74,
8927,
273,
394,
2407,
12,
22,
1769,
202,
202,
74,
8927,
18,
1289,
12,
8692,
1... |
doc.addRevision(octxt.authuser.getName(), rawData); mCurrentChange.setIndexedItem(doc, null); | ParsedDocument pd = new ParsedDocument(blob.getFile(), doc.getFilename(), doc.getContentType(), getOperationTimestampMillis()); doc.addRevision(author, pd); mCurrentChange.setIndexedItem(doc, pd); | public void addDocumentRevision(OperationContext octxt, Document doc, byte[] rawData) throws ServiceException { StoreManager sm = StoreManager.getInstance(); Blob blob = null; boolean success = false; try { beginTransaction("addDocumentRevision", octxt, null); short volumeId = Volume.getCurrentMessageVolume().getId(); blob = sm.storeIncoming(rawData, null, null, volumeId); markOtherItemDirty(blob); doc.addRevision(octxt.authuser.getName(), rawData); mCurrentChange.setIndexedItem(doc, null); sm.link(blob, this, doc.getId(), doc.getLastRevision().getRevId(), volumeId); success = true; } catch (IOException ioe) { throw MailServiceException.MESSAGE_PARSE_ERROR(ioe); } finally { endTransaction(success); if (blob != null) try { sm.delete(blob); } catch (IOException ioe) {// no harm done } } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/9f655a631d3615aac2a1ba6cdb1c0ac85f3e86cc/Mailbox.java/clean/ZimbraServer/src/java/com/zimbra/cs/mailbox/Mailbox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2519,
7939,
12,
2988,
1042,
320,
20364,
16,
4319,
997,
16,
1160,
8526,
16503,
13,
1216,
16489,
288,
377,
202,
2257,
1318,
3029,
273,
4994,
1318,
18,
588,
1442,
5621,
377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2519,
7939,
12,
2988,
1042,
320,
20364,
16,
4319,
997,
16,
1160,
8526,
16503,
13,
1216,
16489,
288,
377,
202,
2257,
1318,
3029,
273,
4994,
1318,
18,
588,
1442,
5621,
377,
... |
port.setName(PORT); portP.add(port); return portP; | return panel; | protected JPanel getPortPanel() { JPanel portP = new JPanel(new FlowLayout(FlowLayout.LEFT)); portP.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 10)); portP.add(new JLabel(JMeterUtils.getResString("web_server_port"))); port = new JTextField(6); port.setName(PORT); portP.add(port); return portP; } | 50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/b57a7b3a8656073c9052d44883b7cc6915daa917/UrlConfigGui.java/buggy/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
24048,
11036,
5537,
1435,
565,
288,
3639,
24048,
1756,
52,
273,
394,
24048,
12,
2704,
9473,
3744,
12,
5249,
3744,
18,
10066,
10019,
3639,
1756,
52,
18,
542,
8107,
12,
8107,
1733,
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,
4750,
24048,
11036,
5537,
1435,
565,
288,
3639,
24048,
1756,
52,
273,
394,
24048,
12,
2704,
9473,
3744,
12,
5249,
3744,
18,
10066,
10019,
3639,
1756,
52,
18,
542,
8107,
12,
8107,
1733,
18... |
Object selectedPart = getPaletteViewer( ).getSelectedEditParts( ) .get( 0 ); | List lst = getPaletteViewer( ).getSelectedEditParts( ); if (lst.size() == 0) { return; } Object selectedPart = lst.get( 0 ); | protected void configurePaletteViewer( PaletteViewer viewer ) { //super.configurePaletteViewer( viewer ); /** * Hack to remove the Change Icon Size menu item and relative * dialog components. */ viewer.setContextMenu( new PaletteContextMenuProvider( viewer ) { public void buildContextMenu( IMenuManager menu ) { GEFActionConstants.addStandardActionGroups( menu ); Object selectedPart = getPaletteViewer( ).getSelectedEditParts( ) .get( 0 ); if ( selectedPart instanceof DrawerEditPart && ( (DrawerEditPart) selectedPart ).canBePinned( ) ) { menu.appendToGroup( GEFActionConstants.MB_ADDITIONS, new PinDrawerAction( (DrawerEditPart) selectedPart ) ); } menu.appendToGroup( GEFActionConstants.GROUP_VIEW, new LayoutAction( getPaletteViewer( ).getPaletteViewerPreferences( ) ) ); if ( getPaletteViewer( ).getCustomizer( ) != null ) { menu.appendToGroup( GEFActionConstants.GROUP_REST, new CustomizeAction( getPaletteViewer( ) ) ); } final PaletteViewer paletteViewer = getPaletteViewer( ); menu.appendToGroup( GEFActionConstants.GROUP_REST, new SettingsAction( paletteViewer ) { public void run( ) { final PaletteViewerPreferences prefs = paletteViewer.getPaletteViewerPreferences( ); Dialog settings = new PaletteSettingsDialog( paletteViewer.getControl( ) .getShell( ), prefs ) { protected Control createLayoutSettings( Composite parent ) { Composite composite = new Composite( parent, SWT.NONE ); composite.setFont( parent.getFont( ) ); GridLayout layout = new GridLayout( 1, false ); composite.setLayout( layout ); Control layoutOptions = createLayoutOptions( composite ); GridData data = new GridData( GridData.VERTICAL_ALIGN_BEGINNING ); layoutOptions.setLayoutData( data ); handleLayoutSettingChanged( prefs.getLayoutSetting( ) ); return composite; } protected void handleLayoutSettingChanged( int newSetting ) { prefs.setLayoutSetting( newSetting ); } }; settings.open( ); } } ); } } ); viewer.addDragSourceListener( new TemplateTransferDragSourceListener( viewer ) ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/cb1e9ef87386d89a3b0a3923de58ba4c004e2fde/GraphicalEditorWithFlyoutPalette.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/parts/GraphicalEditorWithFlyoutPalette.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
918,
5068,
25863,
18415,
12,
453,
8786,
18415,
14157,
262,
1082,
202,
95,
9506,
202,
759,
9565,
18,
14895,
25863,
18415,
12,
14157,
11272,
9506,
202,
26873,
6862,
380,
670,
484,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1117,
918,
5068,
25863,
18415,
12,
453,
8786,
18415,
14157,
262,
1082,
202,
95,
9506,
202,
759,
9565,
18,
14895,
25863,
18415,
12,
14157,
11272,
9506,
202,
26873,
6862,
380,
670,
484,... |
setRendererType(COMPONENT_TYPE); } | setRendererType(COMPONENT_TYPE); } | public ServiceComponent() { setRendererType(COMPONENT_TYPE); } | 6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/ServiceComponent.java/buggy/org.rcfaces.core/src/org/rcfaces/core/component/ServiceComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1956,
1841,
1435,
288,
3639,
444,
6747,
559,
12,
22922,
67,
2399,
1769,
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,
... | [
1,
1,
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,
377,
1071,
1956,
1841,
1435,
288,
3639,
444,
6747,
559,
12,
22922,
67,
2399,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
System.out.println("lenVisitDict:" + node.toString("")); | public Object visitDict(Dict node) throws Exception { System.out.println("lenVisitDict:" + node.toString("")); return null; } | 50371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50371/2e0750ff13782bb25064881debe65f22d8f24e7b/LengthEstimator.java/clean/org.python.pydev/src/org/python/pydev/editor/model/LengthEstimator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3757,
5014,
12,
5014,
756,
13,
1216,
1185,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1897,
10432,
5014,
2773,
397,
756,
18,
10492,
2932,
7923,
1769,
202,
202,
2463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
3757,
5014,
12,
5014,
756,
13,
1216,
1185,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1897,
10432,
5014,
2773,
397,
756,
18,
10492,
2932,
7923,
1769,
202,
202,
2463,
... | |
return new String[] { Messages.name, Messages.description }; | return new String[] {Messages.name}; | public String[] getTableColumnNames() { return new String[] { Messages.name, Messages.description }; } | 10123 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10123/010cac85e0cf8731718269ef114b7f26ebc03e4a/SecuritySection.java/clean/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/SecuritySection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
5638,
20718,
1435,
288,
3639,
327,
394,
514,
8526,
288,
5058,
18,
529,
20451,
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,
514,
8526,
5638,
20718,
1435,
288,
3639,
327,
394,
514,
8526,
288,
5058,
18,
529,
20451,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public static IDebugTarget newAttachDebugTarget( final ILaunch launch, final ICDITarget cdiTarget, final String name, final IProcess debuggerProcess, final IFile file ) throws DebugException { final IDebugTarget[] target = new IDebugTarget[1]; IWorkspaceRunnable r = new IWorkspaceRunnable() { public void run( IProgressMonitor m ) throws CoreException { target[0] = new CDebugTarget( launch, cdiTarget, name, null, debuggerProcess, file, false, true ); ICDIEvent[] events = new ICDIEvent[]{ new ICDISuspendedEvent() { public ICDISessionObject getReason() { return null; } public ICDIObject getSource() { return cdiTarget; } } }; ((CDebugTarget)target[0]).handleDebugEvents( events ); } }; try { ResourcesPlugin.getWorkspace().run( r, null ); } catch( CoreException e ) { CDebugCorePlugin.log( e ); throw new DebugException( e.getStatus() ); } return target[0]; | public static IDebugTarget newAttachDebugTarget(ILaunch launch, ICDITarget target, String name, IProcess debuggerProcess, IFile file) throws CoreException { IBinaryExecutable exeFile = getBinary(file); return newDebugTarget(launch, file.getProject(), target, name, null, exeFile, false, true); | public static IDebugTarget newAttachDebugTarget( final ILaunch launch, final ICDITarget cdiTarget, final String name, final IProcess debuggerProcess, final IFile file ) throws DebugException { final IDebugTarget[] target = new IDebugTarget[1]; IWorkspaceRunnable r = new IWorkspaceRunnable() { public void run( IProgressMonitor m ) throws CoreException { target[0] = new CDebugTarget( launch, cdiTarget, name, null, debuggerProcess, file, false, true ); ICDIEvent[] events = new ICDIEvent[]{ new ICDISuspendedEvent() { public ICDISessionObject getReason() { return null; } public ICDIObject getSource() { return cdiTarget; } } }; ((CDebugTarget)target[0]).handleDebugEvents( events ); } }; try { ResourcesPlugin.getWorkspace().run( r, null ); } catch( CoreException e ) { CDebugCorePlugin.log( e ); throw new DebugException( e.getStatus() ); } return target[0]; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a192c2f172621fd921dbaebb14ee66fcee4f8f12/CDIDebugModel.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDIDebugModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
2829,
2326,
394,
4761,
2829,
2326,
12,
727,
467,
9569,
8037,
16,
727,
467,
10160,
1285,
826,
276,
3211,
2326,
16,
727,
514,
508,
16,
727,
467,
2227,
19977,
2227,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
2829,
2326,
394,
4761,
2829,
2326,
12,
727,
467,
9569,
8037,
16,
727,
467,
10160,
1285,
826,
276,
3211,
2326,
16,
727,
514,
508,
16,
727,
467,
2227,
19977,
2227,
16,... |
if (hasIdValue(id)) { | if (hasValue(id)) { | Object[] getIds(boolean getAll) { Object[] result = super.getIds(getAll); if (maxId != 0) { Object[] ids = null; int count = 0; for (int id = maxId; id != 0; --id) { if (hasIdValue(id)) { if (getAll || (getAttributes(id) & DONTENUM) == 0) { if (count == 0) { // Need extra room for nor more then [1..id] names ids = new Object[id]; } ids[count++] = getIdName(id); } } } if (count != 0) { if (result.length == 0 && ids.length == count) { result = ids; } else { Object[] tmp = new Object[result.length + count]; System.arraycopy(result, 0, tmp, 0, result.length); System.arraycopy(ids, 0, tmp, result.length, count); } } } return result; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/35caf7c2bb93872680ae16e34746d94fe1e533e3/IdScriptable.java/clean/js/rhino/src/org/mozilla/javascript/IdScriptable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1033,
8526,
2634,
87,
12,
6494,
5514,
13,
288,
3639,
1033,
8526,
563,
273,
2240,
18,
588,
2673,
12,
588,
1595,
1769,
7734,
309,
261,
1896,
548,
480,
374,
13,
288,
5411,
1033,
8526,
3258... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
8526,
2634,
87,
12,
6494,
5514,
13,
288,
3639,
1033,
8526,
563,
273,
2240,
18,
588,
2673,
12,
588,
1595,
1769,
7734,
309,
261,
1896,
548,
480,
374,
13,
288,
5411,
1033,
8526,
3258... |
repository.setProperty(TaskRepository.AUTH_HTTP_USERNAME, abstractRepositorySettingsPage.getHttpAuthUserId()); repository.setProperty(TaskRepository.AUTH_HTTP_PASSWORD, abstractRepositorySettingsPage.getHttpAuthPassword()); | repository.setHttpAuthenticationCredentials(abstractRepositorySettingsPage.getHttpAuthUserId(), abstractRepositorySettingsPage.getHttpAuthPassword()); | public boolean performFinish() { if (canFinish()) { String oldUrl = repository.getUrl(); String newUrl = abstractRepositorySettingsPage.getServerUrl(); TasksUiPlugin.getTaskListManager().refactorRepositoryUrl(oldUrl, newUrl); repository.flushAuthenticationCredentials(); repository.setUrl(newUrl); repository.setVersion(abstractRepositorySettingsPage.getVersion()); repository.setCharacterEncoding(abstractRepositorySettingsPage.getCharacterEncoding()); repository.setAuthenticationCredentials(abstractRepositorySettingsPage.getUserName(), abstractRepositorySettingsPage.getPassword()); repository.setRepositoryLabel(abstractRepositorySettingsPage.getRepositoryLabel()); repository.setProperty(TaskRepository.AUTH_HTTP_USERNAME, abstractRepositorySettingsPage.getHttpAuthUserId()); repository.setProperty(TaskRepository.AUTH_HTTP_PASSWORD, abstractRepositorySettingsPage.getHttpAuthPassword()); repository.setProperty(TaskRepository.PROXY_USEDEFAULT, String.valueOf(abstractRepositorySettingsPage.getUseDefaultProxy())); repository.setProperty(TaskRepository.PROXY_HOSTNAME, abstractRepositorySettingsPage.getProxyHostname()); repository.setProperty(TaskRepository.PROXY_PORT, abstractRepositorySettingsPage.getProxyPort()); repository.setProxyAuthenticationCredentials(abstractRepositorySettingsPage.getProxyUsername(), abstractRepositorySettingsPage.getProxyPassword()); abstractRepositorySettingsPage.updateProperties(repository); TasksUiPlugin.getRepositoryManager().notifyRepositorySettingsChagned(repository); TasksUiPlugin.getRepositoryManager().saveRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath()); return true; } return false; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/00490d0988bea79025b616b332f7c5ae5860ce02/EditRepositoryWizard.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/EditRepositoryWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
11641,
1435,
288,
202,
202,
430,
261,
4169,
11641,
10756,
288,
1082,
202,
780,
1592,
1489,
273,
3352,
18,
588,
1489,
5621,
1082,
202,
780,
394,
1489,
273,
8770,
3305... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
11641,
1435,
288,
202,
202,
430,
261,
4169,
11641,
10756,
288,
1082,
202,
780,
1592,
1489,
273,
3352,
18,
588,
1489,
5621,
1082,
202,
780,
394,
1489,
273,
8770,
3305... |
return (ComponentRequestQueue) getBody().getRequestQueue(); } | return (ComponentRequestQueue) getBody().getRequestQueue(); } | public ComponentRequestQueue getRequestQueue() { return (ComponentRequestQueue) getBody().getRequestQueue(); } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/466c325df727388912d7efbc91a624f8a1e015c8/ProActiveComponentImpl.java/buggy/src/org/objectweb/proactive/core/component/identity/ProActiveComponentImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5435,
691,
3183,
4328,
3183,
1435,
288,
202,
202,
2463,
261,
1841,
691,
3183,
13,
7587,
7675,
588,
691,
3183,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5435,
691,
3183,
4328,
3183,
1435,
288,
202,
202,
2463,
261,
1841,
691,
3183,
13,
7587,
7675,
588,
691,
3183,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
protected void addId() { // Do nothing here, overriden in subclasses that has a 'id' property. } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/5ceefcc7d76554e2cf178d60628e229a03f468fb/LeafNodeLayoutManager.java/buggy/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
548,
1435,
288,
3639,
368,
2256,
5083,
2674,
16,
31736,
316,
15320,
716,
711,
279,
296,
350,
11,
1272,
18,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
548,
1435,
288,
3639,
368,
2256,
5083,
2674,
16,
31736,
316,
15320,
716,
711,
279,
296,
350,
11,
1272,
18,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | ||
EclipseSourceDir[] sourceDirs, ArtifactRepository localRepository ) | EclipseSourceDir[] sourceDirs, ArtifactRepository localRepository ) | protected void write( File basedir, MavenProject project, List referencedReactorArtifacts, EclipseSourceDir[] sourceDirs, ArtifactRepository localRepository ) throws MojoExecutionException { FileWriter w; try { w = new FileWriter( new File( basedir, ".wtpmodules" ) ); //$NON-NLS-1$ } catch ( IOException ex ) { throw new MojoExecutionException( Messages.getString( "EclipsePlugin.erroropeningfile" ), ex ); //$NON-NLS-1$ } XMLWriter writer = new PrettyPrintXMLWriter( w ); writer.startElement( "project-modules" ); //$NON-NLS-1$ writer.addAttribute( "id", "moduleCoreId" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.startElement( "wb-module" ); //$NON-NLS-1$ writer.addAttribute( "deploy-name", project.getArtifactId() ); //$NON-NLS-1$ writer.startElement( "module-type" ); //$NON-NLS-1$ if ( "war".equals( project.getPackaging() ) ) //$NON-NLS-1$ { // <module-type module-type-id="jst.web"> // <version>2.4</version> // <property name="context-root" value="magnolia"> // </property> // </module-type> writer.addAttribute( "module-type-id", "jst.web" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.startElement( "version" ); //$NON-NLS-1$ // defaults to 2.4, try to detect real version from dependencies String servletVersion = "2.4"; //$NON-NLS-1$ for ( Iterator it = project.getArtifacts().iterator(); it.hasNext(); ) { Artifact artifact = (Artifact) it.next(); if ( "servletapi".equals( artifact.getArtifactId() ) //$NON-NLS-1$ || "geronimo-spec-servlet".equals( artifact.getArtifactId() ) ) //$NON-NLS-1$ { servletVersion = StringUtils.substring( artifact.getVersion(), 0, 3 ); } } writer.writeText( servletVersion ); writer.endElement(); writer.startElement( "property" ); //$NON-NLS-1$ writer.addAttribute( "name", "context-root" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.addAttribute( "value", project.getArtifactId() ); //$NON-NLS-1$ writer.endElement(); } else if ( "ejb".equals( project.getPackaging() ) ) //$NON-NLS-1$ { // <module-type module-type-id="jst.ejb"> // <version>2.1</version> // <property name="java-output-path" value="/bin/"/> // </module-type> writer.addAttribute( "module-type-id", "jst.ejb" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.startElement( "version" ); //$NON-NLS-1$ writer.writeText( "2.1" ); //$NON-NLS-1$ // @todo this is the default, find real ejb version from dependencies writer.endElement(); writer.startElement( "property" ); //$NON-NLS-1$ writer.addAttribute( "name", "java-output-path" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.addAttribute( "value", "/" + //$NON-NLS-1$ //$NON-NLS-2$ EclipseUtils.toRelativeAndFixSeparator( project.getBasedir(), project.getBuild().getOutputDirectory(), false ) ); writer.endElement(); } else { // <module-type module-type-id="jst.utility"> // <property name="java-output-path" value="/bin/"/> // </module-type> writer.addAttribute( "module-type-id", "jst.utility" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.startElement( "property" ); //$NON-NLS-1$ writer.addAttribute( "name", "java-output-path" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.addAttribute( "value", "/" + //$NON-NLS-1$ //$NON-NLS-2$ EclipseUtils.toRelativeAndFixSeparator( project.getBasedir(), project.getBuild().getOutputDirectory(), false ) ); writer.endElement(); } writer.endElement(); // module-type // source and resource paths. // deploy-path is "/" for utility and ejb projects, "/WEB-INF/classes" for webapps String target = "/"; //$NON-NLS-1$ if ( "war".equals( project.getPackaging() ) ) //$NON-NLS-1$ { writeWarSpecificResources( writer, basedir, project, referencedReactorArtifacts, localRepository ); target = "/WEB-INF/classes"; //$NON-NLS-1$ } for ( int j = 0; j < sourceDirs.length; j++ ) { EclipseSourceDir dir = sourceDirs[j]; // test src/resources are not added to wtpmodules if ( !dir.isTest() ) { // <wb-resource deploy-path="/" source-path="/src/java" /> writer.startElement( "wb-resource" ); //$NON-NLS-1$ writer.addAttribute( "deploy-path", target ); //$NON-NLS-1$ writer.addAttribute( "source-path", dir.getPath() ); //$NON-NLS-1$ writer.endElement(); } } writer.endElement(); // wb-module writer.endElement(); // project-modules IOUtil.close( w ); } | 51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/20190392164c2da037e5f094452064f70b3ecc5b/EclipseWtpmodulesWriter.java/buggy/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseWtpmodulesWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1045,
12,
1387,
15573,
16,
17176,
4109,
1984,
16,
987,
8042,
426,
3362,
16981,
16,
12900,
20840,
10472,
1830,
1621,
8526,
1084,
9872,
16,
14022,
3305,
1191,
3305,
262,
3639,
1216... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
12,
1387,
15573,
16,
17176,
4109,
1984,
16,
987,
8042,
426,
3362,
16981,
16,
12900,
20840,
10472,
1830,
1621,
8526,
1084,
9872,
16,
14022,
3305,
1191,
3305,
262,
3639,
1216... |
result = db.eval(expr); | result = debugGui.main.eval(expr); | void updateModel() { for (int i = 0; i < expressions.size(); ++i) { Object value = expressions.elementAt(i); String expr = value.toString(); String result = ""; if (expr.length() > 0) { result = db.eval(expr); if (result == null) result = ""; } else { result = ""; } result = result.replace('\n', ' '); values.setElementAt(result, i); } fireTableDataChanged(); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/7ceadc8e69bfcf427fd421373c750f8de120f15c/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1089,
1488,
1435,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
8041,
18,
1467,
5621,
965,
77,
13,
288,
5411,
1033,
460,
273,
8041,
18,
2956,
861,
12,
77,
1769,
5411,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1089,
1488,
1435,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
8041,
18,
1467,
5621,
965,
77,
13,
288,
5411,
1033,
460,
273,
8041,
18,
2956,
861,
12,
77,
1769,
5411,
51... |
( (ComboBoxCellEditor) cellEditors[1] ).setItems( getDataSetColumns( ) ); ( (ComboBoxCellEditor) cellEditors[2] ).setItems( getDataSetColumns( ) ); | ( (ComboBoxCellEditor) cellEditors[1] ).setItems( getDataSetColumns( true ) ); ( (ComboBoxCellEditor) cellEditors[2] ).setItems( getDataSetColumns( false ) ); | private void setCellEditorItems( ) { ( (ComboBoxCellEditor) cellEditors[1] ).setItems( getDataSetColumns( ) ); ( (ComboBoxCellEditor) cellEditors[2] ).setItems( getDataSetColumns( ) ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/32c331232f8bfd4ee9610e9105bb35ff9427651f/CascadingParametersDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/CascadingParametersDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
444,
4020,
6946,
3126,
12,
262,
202,
95,
202,
202,
12,
261,
22199,
4020,
6946,
13,
2484,
4666,
1383,
63,
21,
65,
262,
18,
542,
3126,
12,
4303,
694,
3380,
12,
262,
1127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
4020,
6946,
3126,
12,
262,
202,
95,
202,
202,
12,
261,
22199,
4020,
6946,
13,
2484,
4666,
1383,
63,
21,
65,
262,
18,
542,
3126,
12,
4303,
694,
3380,
12,
262,
1127... |
murckoFragment=addFragments(firstRingAtomContainer,murckoFragment); murckoFragment=addFragments(secondRingAtomContainer,murckoFragment); | murckoFragment=addFragments(firstRingAtomContainer,murckoFragment,molecule); murckoFragment=addFragments(secondRingAtomContainer,murckoFragment,molecule); | public void generateMurckoFragments(IMolecule molecule, boolean sidechainHetatoms,boolean exocyclicDoubleBonds){ //System.out.println("****** generatemurckoFragments *******"); //VARIABLES this.sidechainHetatoms=sidechainHetatoms; this.exocyclicDoubleBonds=exocyclicDoubleBonds; generateRingFragments(molecule); IAtom firstRingAtom = null; IAtom secondRingAtom = null; IAtomContainer firstRingAtomContainer=null; IAtomContainer secondRingAtomContainer=null; IAtomContainer firstRingSubstituents=null; IAtomContainer secondRingSubstituents=null; IAtomContainer path=null; IMolecule murckoFragment=null; IMolecule linkerFragment=null; for (int i = 0; i < molecule.getAtomCount(); i++) { if (this.ringSetsMolecule.contains(molecule.getAtomAt(i))) { molecule.getAtomAt(i).setFlag(CDKConstants.ISINRING, true); }else{ molecule.getAtomAt(i).setFlag(CDKConstants.ISINRING, false); } } // START if (this.ringFragments.size() > 1) { //go through all ringsystems //System.out.println("Number of RingSystems:"+this.ringFragments.size()); for (int f = 0; f < this.ringFragments.size()-1; f++) { firstRingAtomContainer = RingSetManipulator.getAllInOneContainer((IRingSet) this.ringFragments.get(f)); for (int g = f+1; g < this.ringFragments.size(); g++) { secondRingAtomContainer = RingSetManipulator.getAllInOneContainer((IRingSet) this.ringFragments.get(g)); for (int h = 0; h < firstRingAtomContainer.getAtomCount(); h++){ firstRingAtom=firstRingAtomContainer.getAtomAt(h); firstRingSubstituents=getPossibleLinkerSubstituents(firstRingAtom,molecule,firstRingAtomContainer); if (firstRingSubstituents.getAtomCount()>0){ //go through substituents of first ring for (int i = 0; i < firstRingSubstituents.getAtomCount(); i++){// System.out.println("First Ring Sub is in RING");// //check for ring-ring system if (firstRingSubstituents.getAtomAt(i).getFlag(CDKConstants.ISINRING) && secondRingAtomContainer.contains(firstRingSubstituents.getAtomAt(i))){ //System.out.println("\tFound a ring-ring System"); murckoFragment=new Molecule(); murckoFragment=addFragments(firstRingAtomContainer,murckoFragment); murckoFragment=addFragments(secondRingAtomContainer,murckoFragment); murckoFragment=addFragmentBonds(murckoFragment,molecule); this.murckoFragments.add(murckoFragment); //System.out.println("MFragment:"+murckoFragment.getAtomCount()+" CC:"+ConnectivityChecker.isConnected(murckoFragment)); //System.out.println(murckoFragment.toString()); //System.out.println("\tADD MURCKOFRAGMENT"); break; }// compare to substituents of second ring for (int j = 0; j < secondRingAtomContainer.getAtomCount(); j++){ secondRingAtom=secondRingAtomContainer.getAtomAt(j); secondRingSubstituents=getPossibleLinkerSubstituents(secondRingAtom,molecule,secondRingAtomContainer); if (secondRingSubstituents.getAtomCount()>0){ //go through substituents of second ring for (int k = 0; k < secondRingSubstituents.getAtomCount(); k++){//For-k //System.out.println("First Ring Size:"+firstRingAtomContainer.getAtomCount()+" 2.Ring Size:"+secondRingAtomContainer.getAtomCount()); //System.out.println(f+".ringSub:"+molecule.getAtomNumber(firstRingSubstituents.getAtomAt(i))+" Sym:"+firstRingSubstituents.getAtomAt(i).getSymbol()+" "+g+".ringSub:"+molecule.getAtomNumber(secondRingSubstituents.getAtomAt(k))); path=new AtomContainer(); try { resetFlags(molecule); PathTools.depthFirstTargetSearch(molecule,firstRingSubstituents.getAtomAt(i),secondRingSubstituents.getAtomAt(k),path); /*System.out.print("\tPATHSIZE:"+path.getAtomCount()); System.out.print("\tFIRST PATHATOM:"+molecule.getAtomNumber(path.getAtomAt(0))); try{ System.out.println("\tLAST PATHATOM:"+molecule.getAtomNumber(path.getAtomAt(path.getAtomCount()-1))); }catch(Exception eS){ System.out.println("\tNO LAST PATHATOM"); }*/ if (firstRingSubstituents.getAtomAt(i)==secondRingSubstituents.getAtomAt(k)){ //System.out.println("\tSubstituents are equal"); path.addAtom(firstRingSubstituents.getAtomAt(i)); } //Check Path, direct connection between the substituents ->linker if (checkPath(firstRingAtom, secondRingAtom, path) && path.getAtomCount()>0){ murckoFragment=new Molecule(); //add root atom to path if (!path.contains(firstRingSubstituents.getAtomAt(i))){ path.addAtom(firstRingSubstituents.getAtomAt(i)); } //1. add path //2. add rings //3. connect ring atoms to path murckoFragment=addPathFragments(path,murckoFragment,molecule); murckoFragment=addFragments(firstRingAtomContainer,murckoFragment); murckoFragment=addFragments(secondRingAtomContainer,murckoFragment); murckoFragment=addFragmentBonds(murckoFragment,molecule); linkerFragment=new Molecule(murckoFragment); this.linkerFragments.add(linkerFragment); this.murckoFragments.add(murckoFragment); //System.out.println("\tADD MURCKOFRAGMENT"); }else{ //System.out.println("\tEND PATH"); } } catch (NoSuchAtomException e) { // TODO Auto-generated catch block e.printStackTrace(); }//catch }//For-k }//if 2.ring sub }//For-j }//For-i }//if 1.ring sub }//For-h }//For-g }//For-f }else if (this.ringFragments.size() ==1){ murckoFragment=new Molecule(); murckoFragment=addFragments(RingSetManipulator.getAllInOneContainer((IRingSet) this.ringFragments.get(0)),murckoFragment); murckoFragment=addFragmentBonds(murckoFragment,molecule); this.murckoFragments.add(murckoFragment); } } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/e8596183762fc081502a8f33a4339e76bf2fcd99/GenerateFragments.java/clean/src/org/openscience/cdk/tools/GenerateFragments.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2103,
49,
295,
363,
83,
27588,
12,
3445,
10545,
13661,
16,
1250,
4889,
5639,
44,
278,
14937,
16,
6494,
431,
504,
93,
18964,
5265,
26090,
15329,
202,
202,
759,
3163,
18,
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,
482,
918,
2103,
49,
295,
363,
83,
27588,
12,
3445,
10545,
13661,
16,
1250,
4889,
5639,
44,
278,
14937,
16,
6494,
431,
504,
93,
18964,
5265,
26090,
15329,
202,
202,
759,
3163,
18,
6... |
Logger.setupStdoutLogging(Logger.NORMAL, "freenet.node.CPUAdjustingSwapRequestInterval:minor" /*"freenet.node.LocationManager:debug,freenet.node.FNPPacketManager:normal,freenet.io.comm.UdpSocketManager:debug"*/); | FileLoggerHook fh = Logger.setupStdoutLogging(Logger.NORMAL, "freenet.node.CPUAdjustingSwapRequestInterval:minor" /*"freenet.node.LocationManager:debug,freenet.node.FNPPacketManager:normal,freenet.io.comm.UdpSocketManager:debug"*/); | public static void main(String[] args) throws FSParseException, PeerParseException { PeerNode.disableProbabilisticHTLs = true; Node.MAX_HTL = 6; Logger.setupStdoutLogging(Logger.NORMAL, "freenet.node.CPUAdjustingSwapRequestInterval:minor" /*"freenet.node.LocationManager:debug,freenet.node.FNPPacketManager:normal,freenet.io.comm.UdpSocketManager:debug"*/); System.out.println("Routing test using real nodes:"); System.out.println(); String wd = "realNodeRequestInsertTest"; new File(wd).mkdir(); DummyRandomSource random = new DummyRandomSource(); DiffieHellman.init(random); Node[] nodes = new Node[NUMBER_OF_NODES]; Logger.normal(RealNodeRoutingTest.class, "Creating nodes..."); for(int i=0;i<NUMBER_OF_NODES;i++) { nodes[i] = new Node(5000+i, random, null, wd+File.separator, 0); Logger.normal(RealNodeRoutingTest.class, "Created node "+i); } SimpleFieldSet refs[] = new SimpleFieldSet[NUMBER_OF_NODES]; for(int i=0;i<NUMBER_OF_NODES;i++) refs[i] = nodes[i].exportFieldSet(); Logger.normal(RealNodeRoutingTest.class, "Created "+NUMBER_OF_NODES+" nodes"); // Now link them up // Connect the set for(int i=0;i<NUMBER_OF_NODES;i++) { int next = (i+1) % NUMBER_OF_NODES; int prev = (i+NUMBER_OF_NODES-1)%NUMBER_OF_NODES; nodes[i].peers.connect(refs[next]); nodes[i].peers.connect(refs[prev]); } Logger.normal(RealNodeRoutingTest.class, "Connected nodes"); // Now add some random links for(int i=0;i<NUMBER_OF_NODES*5;i++) { if(i % NUMBER_OF_NODES == 0) Logger.normal(RealNodeRoutingTest.class, ""+i); int length = (int)Math.pow(NUMBER_OF_NODES, random.nextDouble()); int nodeA = random.nextInt(NUMBER_OF_NODES); int nodeB = (nodeA+length)%NUMBER_OF_NODES; //System.out.println(""+nodeA+" -> "+nodeB); Node a = nodes[nodeA]; Node b = nodes[nodeB]; a.peers.connect(b.exportFieldSet()); b.peers.connect(a.exportFieldSet()); } Logger.normal(RealNodeRoutingTest.class, "Added random links"); SwapRequestInterval sri = new CPUAdjustingSwapRequestInterval(((500*1000*NUMBER_OF_NODES)/200), 50); for(int i=0;i<NUMBER_OF_NODES;i++) nodes[i].start(sri); // Now sit back and watch the fireworks! int cycleNumber = 0; int lastSwaps = 0; int lastNoSwaps = 0; int failures = 0; int successes = 0; RunningAverage avg = new SimpleRunningAverage(100, 0.0); RunningAverage avg2 = new BootstrappingDecayingRunningAverage(0.0, 0.0, 1.0, 100); int pings = 0; while(true) { cycleNumber++; try { Thread.sleep(5000); } catch (InterruptedException e) { // Ignore } for(int i=0;i<NUMBER_OF_NODES;i++) { Logger.normal(RealNodeRoutingTest.class, "Cycle "+cycleNumber+" node "+i+": "+nodes[i].lm.getLocation().getValue()); } int newSwaps = LocationManager.swaps; int totalStarted = LocationManager.startedSwaps; int noSwaps = LocationManager.noSwaps; Logger.normal(RealNodeRoutingTest.class, "Swaps: "+(newSwaps-lastSwaps)); Logger.normal(RealNodeRoutingTest.class, "\nTotal swaps: Started*2: "+totalStarted*2+", succeeded: "+newSwaps+", last minute failures: "+noSwaps+ ", ratio "+(double)noSwaps/(double)newSwaps+", early failures: "+((totalStarted*2)-(noSwaps+newSwaps))); Logger.normal(RealNodeRoutingTest.class, "This cycle ratio: "+((double)(noSwaps-lastNoSwaps)) / ((double)(newSwaps - lastSwaps))); lastNoSwaps = noSwaps; Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (already locked): "+LocationManager.swapsRejectedAlreadyLocked); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (nowhere to go): "+LocationManager.swapsRejectedNowhereToGo); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (rate limit): "+LocationManager.swapsRejectedRateLimit); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (loop): "+LocationManager.swapsRejectedLoop); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (recognized ID):" +LocationManager.swapsRejectedRecognizedID); lastSwaps = newSwaps; // Do some (routed) test-pings for(int i=0;i<10;i++) { try { Thread.sleep(5000); } catch (InterruptedException e1) { } try { Node randomNode = nodes[random.nextInt(NUMBER_OF_NODES)]; Node randomNode2 = randomNode; while(randomNode2 == randomNode) randomNode2 = nodes[random.nextInt(NUMBER_OF_NODES)]; Logger.normal(RealNodeRoutingTest.class, "Pinging "+randomNode2.portNumber+" from "+randomNode.portNumber); double loc2 = randomNode2.lm.getLocation().getValue(); int hopsTaken = randomNode.routedPing(loc2); pings++; if(hopsTaken < 0) { failures++; avg.report(0.0); avg2.report(0.0); double ratio = (double)successes / ((double)(failures+successes)); Logger.normal(RealNodeRoutingTest.class, "Routed ping "+pings+" FAILED from "+randomNode.portNumber+" to "+randomNode2.portNumber+" (long:"+ratio+", short:"+avg.currentValue()+", vague:"+avg2.currentValue()+")"); } else { successes++; avg.report(1.0); avg2.report(1.0); double ratio = (double)successes / ((double)(failures+successes)); Logger.normal(RealNodeRoutingTest.class, "Routed ping "+pings+" success: "+hopsTaken+" "+randomNode.portNumber+" to "+randomNode2.portNumber+" (long:"+ratio+", short:"+avg.currentValue()+", vague:"+avg2.currentValue()+")"); } } catch (Throwable t) { Logger.error(RealNodeRoutingTest.class, "Caught "+t, t); } } } } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/a79c2f6114f06bff0b9fe2bbba4e7a4fe7a7e305/RealNodeRoutingTest.java/clean/src/freenet/node/RealNodeRoutingTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
9247,
13047,
16,
10669,
13047,
288,
3639,
10669,
907,
18,
8394,
9152,
22681,
5846,
5062,
48,
87,
273,
638,
31,
3639,
2029,
18,
6694,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
9247,
13047,
16,
10669,
13047,
288,
3639,
10669,
907,
18,
8394,
9152,
22681,
5846,
5062,
48,
87,
273,
638,
31,
3639,
2029,
18,
6694,
... |
if (fErrorMsgAreaBackground == null) { fErrorMsgAreaBackground= new Color(getDisplay(), ERROR_BACKGROUND_RGB); } setBackground(fErrorMsgAreaBackground); | setBackground(JFaceColors.getErrorBackground(getDisplay())); | public void setErrorStatus(IStatus status) { if (status != null) { String message= status.getMessage(); if (message != null && message.length() > 0) { setText(message); setImage(findImage(status)); if (fErrorMsgAreaBackground == null) { fErrorMsgAreaBackground= new Color(getDisplay(), ERROR_BACKGROUND_RGB); } setBackground(fErrorMsgAreaBackground); return; } } setText(""); //$NON-NLS-1$ setImage(null); setBackground(fNormalMsgAreaBackground); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c2c75308977cde808ab1dd02831c36751595054f/MessageLine.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/MessageLine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
9967,
1482,
12,
45,
1482,
1267,
13,
288,
202,
202,
430,
261,
2327,
480,
446,
13,
288,
1082,
202,
780,
883,
33,
1267,
18,
24906,
5621,
1082,
202,
430,
261,
2150,
480,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9967,
1482,
12,
45,
1482,
1267,
13,
288,
202,
202,
430,
261,
2327,
480,
446,
13,
288,
1082,
202,
780,
883,
33,
1267,
18,
24906,
5621,
1082,
202,
430,
261,
2150,
480,
44... |
_log.debug("Signature verified correctly on create session message"); | if (_log.shouldLog(Log.DEBUG)) _log.debug("Signature verified correctly on create session message"); | private void handleCreateSession(I2CPMessageReader reader, CreateSessionMessage message) { if (message.getSessionConfig().verifySignature()) { _log.debug("Signature verified correctly on create session message"); } else { _log.error("Signature verification *FAILED* on a create session message. Hijack attempt?"); _runner.disconnectClient("Invalid signature on CreateSessionMessage"); return; } SessionStatusMessage msg = new SessionStatusMessage(); SessionId sessionId = new SessionId(); sessionId.setSessionId(getNextSessionId()); _runner.setSessionId(sessionId); msg.setSessionId(sessionId); msg.setStatus(SessionStatusMessage.STATUS_CREATED); try { if (_log.shouldLog(Log.DEBUG)) _log.debug("before sending sessionStatusMessage for " + message.getSessionConfig().getDestination().calculateHash().toBase64()); _runner.doSend(msg); if (_log.shouldLog(Log.DEBUG)) _log.debug("after sending sessionStatusMessage for " + message.getSessionConfig().getDestination().calculateHash().toBase64()); _runner.sessionEstablished(message.getSessionConfig()); if (_log.shouldLog(Log.DEBUG)) _log.debug("after sessionEstablished for " + message.getSessionConfig().getDestination().calculateHash().toBase64()); } catch (I2CPMessageException ime) { _log.error("Error writing out the session status message", ime); } catch (IOException ioe) { _log.error("Error writing out the session status message", ioe); } _context.jobQueue().addJob(new CreateSessionJob(_context, _runner)); } | 27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/14b9f9509fb68b2e019bd0b2eba7ed801fd81d87/ClientMessageEventListener.java/clean/router/java/src/net/i2p/router/client/ClientMessageEventListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
1684,
2157,
12,
45,
22,
4258,
1079,
2514,
2949,
16,
1788,
2157,
1079,
883,
13,
288,
3639,
309,
261,
2150,
18,
588,
2157,
809,
7675,
8705,
5374,
10756,
288,
5411,
309,
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,
1640,
1684,
2157,
12,
45,
22,
4258,
1079,
2514,
2949,
16,
1788,
2157,
1079,
883,
13,
288,
3639,
309,
261,
2150,
18,
588,
2157,
809,
7675,
8705,
5374,
10756,
288,
5411,
309,
2... |
lVar = (OptLocalVariable) vars.getVariable(name); | lVar = OptLocalVariable.get(vars, name); | private void visitGetVar(OptLocalVariable lVar, boolean isNumber, String name) { // TODO: Clean up use of lVar here and in set. if (hasVarsInRegs && lVar == null) lVar = (OptLocalVariable) vars.getVariable(name); if (lVar != null) { if (lVar.getJRegister() == -1) if (lVar.isNumber()) lVar.assignJRegister(getNewWordPairLocal()); else lVar.assignJRegister(getNewWordLocal()); if (lVar.isParameter() && inDirectCallFunction && !itsForcedObjectParameters) {/* Remember that here the isNumber flag means that we want to use the incoming parameter in a Number context, so test the object type and convert the value as necessary.*/ if (isNumber) { aload(lVar.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int isNumberLabel = acquireLabel(); int beyond = acquireLabel(); addByteCode(ByteCode.IF_ACMPEQ, isNumberLabel); aload(lVar.getJRegister()); addScriptRuntimeInvoke("toNumber", "(Ljava/lang/Object;)", "D"); addByteCode(ByteCode.GOTO, beyond); markLabel(isNumberLabel); dload((short)(lVar.getJRegister() + 1)); markLabel(beyond); } else { aload(lVar.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int isNumberLabel = acquireLabel(); int beyond = acquireLabel(); addByteCode(ByteCode.IF_ACMPEQ, isNumberLabel); aload(lVar.getJRegister()); addByteCode(ByteCode.GOTO, beyond); markLabel(isNumberLabel); addByteCode(ByteCode.NEW,"java/lang/Double"); addByteCode(ByteCode.DUP); dload((short)(lVar.getJRegister() + 1)); addDoubleConstructor(); markLabel(beyond); } } else { if (lVar.isNumber()) dload(lVar.getJRegister()); else aload(lVar.getJRegister()); } return; } aload(variableObjectLocal); push(name); aload(variableObjectLocal); addScriptRuntimeInvoke("getProp", "(Ljava/lang/Object;Ljava/lang/String;" + "Lorg/mozilla/javascript/Scriptable;)", "Ljava/lang/Object;"); } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/e497d2b898e781a5052344191ab878cd469f3f53/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
967,
1537,
12,
6179,
2042,
3092,
328,
1537,
16,
1250,
18103,
16,
11794,
514,
508,
13,
565,
288,
3639,
368,
2660,
30,
9645,
731,
999,
434,
328,
1537,
2674,
471,
316,
444... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
967,
1537,
12,
6179,
2042,
3092,
328,
1537,
16,
1250,
18103,
16,
11794,
514,
508,
13,
565,
288,
3639,
368,
2660,
30,
9645,
731,
999,
434,
328,
1537,
2674,
471,
316,
444... |
url2 = PathUtil.decode(url2); | url2 = SVNEncodingUtil.uriDecode(url2); | public void doMerge(String url1, String url2, SVNRevision rN, SVNRevision rM, File dstPath, boolean recursive, boolean useAncestry, boolean force, boolean dryRun) throws SVNException { // create merge editor that will receive diffs between url1 and url2 // (rN|rM) url1 = validateURL(url1); url2 = validateURL(url2); DebugLog.log("url1: " + url1); DebugLog.log("url2: " + url2); rN = rN == null || !rN.isValid() ? SVNRevision.HEAD : rN; rM = rM == null || !rM.isValid() ? SVNRevision.HEAD : rM; SVNWCAccess wcAccess = createWCAccess(dstPath); try { wcAccess.open(true, recursive); SVNRepository repos1 = createRepository(url1); SVNRepository repos2 = createRepository(url1); final long revN = getRevisionNumber(url1, rN); long revM = getRevisionNumber(url2, rM); SVNRepository repos3 = createRepository(url2); if (SVNProperty.KIND_FILE.equals(wcAccess .getTargetEntryProperty(SVNProperty.KIND))) { SVNMerger merger = new SVNMerger(wcAccess, url2, revM, force, dryRun, isLeaveConflictsUnresolved()); mergeSingleFile(wcAccess, repos1, repos3, revN, revM, merger); return; } SVNNodeKind nodeKind1 = repos1.checkPath("", revN); SVNNodeKind nodeKind2 = repos3.checkPath("", revM); String target = null; if (nodeKind1 == SVNNodeKind.FILE || nodeKind2 == SVNNodeKind.FILE) { DebugLog.log("one of the targets is file"); target = PathUtil.tail(url1); target = PathUtil.decode(target); url1 = PathUtil.removeTail(url1); repos1 = createRepository(url1); repos2 = createRepository(url1); } url2 = PathUtil.decode(url2); SVNMerger merger = new SVNMerger(wcAccess, url2, revM, force, dryRun, isLeaveConflictsUnresolved()); DebugLog.log("wc access: " + wcAccess); DebugLog.log("url1: " + url1); DebugLog.log("url2: " + url2); DebugLog.log("revM: " + revM); DebugLog.log("revN: " + revN); DebugLog.log("target: " + target); SVNMergeEditor mergeEditor = new SVNMergeEditor(wcAccess, repos2, revN, revM, merger); repos1.diff(url2, revM, revN, target, !useAncestry, recursive, new ISVNReporterBaton() { public void report(ISVNReporter reporter) throws SVNException { reporter.setPath("", null, revN, false); reporter.finishReport(); } }, mergeEditor); } finally { wcAccess.close(true); } } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/48b673a4eeae723c90a2ec8a9e48e886212b2109/SVNDiffClient.java/clean/javasvn/src/org/tmatesoft/svn/core/wc/SVNDiffClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
6786,
12,
780,
880,
21,
16,
514,
880,
22,
16,
29537,
50,
7939,
436,
50,
16,
5411,
29537,
50,
7939,
436,
49,
16,
1387,
29845,
16,
1250,
5904,
16,
5411,
1250,
999,
979,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6786,
12,
780,
880,
21,
16,
514,
880,
22,
16,
29537,
50,
7939,
436,
50,
16,
5411,
29537,
50,
7939,
436,
49,
16,
1387,
29845,
16,
1250,
5904,
16,
5411,
1250,
999,
979,
... |
private Document handleFile(File file) { try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(file); String shortname = Util.getElementValue( doc.getDocumentElement(), "body/taglib/shortname"); File dir = new File(destdir, shortname); dir.mkdir(); File taglibFrameHtml = new File(dir, "taglib-frame.html"); Source xml = new StreamSource(file); Source xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/taglib-frame.xsl")); Result out = new StreamResult(taglibFrameHtml); TransformerFactory tf = TransformerFactory.newInstance(); Transformer t = tf.newTransformer(xsl); t.transform(xml, out); File taglibSummaryHtml = new File(dir, "taglib-summary.html"); xml = new StreamSource(file); xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/taglib-summary.xsl")); out = new StreamResult(taglibSummaryHtml); t = tf.newTransformer(xsl); t.transform(xml, out); List tags = Util.getElements(doc.getDocumentElement(), "body/taglib/tag"); Iterator iter = tags.iterator(); xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/tag-frame.xsl")); t = tf.newTransformer(xsl); while (iter.hasNext()) { Element tag = (Element) iter.next(); Util.addChildElement(tag, "taglib", shortname); String tagname = Util.getElementValue(tag, "name"); File tagHtml = new File(dir, tagname + ".html"); xml = new DOMSource(tag); out = new StreamResult(tagHtml); t.transform(xml, out); } return doc; } catch (Exception e) { e.printStackTrace(); } return null; } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/bcf54ee9560f4fd9a0ff083d3f0ea7c829a28aea/TaglibDoc.java/buggy/contrib/tag-doc/src/java/org/apache/struts/taskdefs/TaglibDoc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2519,
4110,
812,
12,
812,
768,
15329,
202,
202,
698,
95,
1082,
202,
2519,
20692,
1966,
74,
33,
2519,
20692,
18,
2704,
1442,
5621,
1082,
202,
2519,
1263,
1966,
33,
1966,
74,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2519,
4110,
812,
12,
812,
768,
15329,
202,
202,
698,
95,
1082,
202,
2519,
20692,
1966,
74,
33,
2519,
20692,
18,
2704,
1442,
5621,
1082,
202,
2519,
1263,
1966,
33,
1966,
74,
1... | ||
oldBinding = new Binding(name.substring(myFullName.length()), oldBinding.getObject()); | oldBinding = new Binding(name.substring(myFullName.length()), nsObj); | void dispatch(List events) { for (Iterator i = events.iterator(); i.hasNext(); ) { NSNamingEvent evt = (NSNamingEvent) i.next(); NSCallback.Id cbid = evt.getCallbackId(); NamingListener l = getListener(cbid); if (l == null) { System.out.println("No listener found for " + cbid); continue; } Binding oldBinding = evt.oldBinding; if (oldBinding != null && !oldBinding.isRelative()) { String name = oldBinding.getName(); // WARNING: Next line not currently jikes-compilable. Use javac with -source=1.4 assert name.startsWith(myFullName); oldBinding = new Binding(name.substring(myFullName.length()), oldBinding.getObject()); } Binding newBinding = evt.newBinding; if (newBinding != null && !newBinding.isRelative()) { String name = newBinding.getName(); // WARNING: Next line not currently jikes-compilable. Use javac with -source=1.4 assert name.startsWith(myFullName); newBinding = new Binding(name.substring(myFullName.length()), newBinding.getObject()); } new NamingEvent(this, evt.type, newBinding, oldBinding, null).dispatch(l); } } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/c8f93b0adc7bd0cb24f7fd81319d6b2944fcac53/NamingEventContext.java/clean/core/src/org/cougaar/core/naming/NamingEventContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
3435,
12,
682,
2641,
13,
288,
565,
364,
261,
3198,
277,
273,
2641,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
1377,
11472,
24102,
1133,
6324,
273,
261,
3156,
24102,
1133,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
3435,
12,
682,
2641,
13,
288,
565,
364,
261,
3198,
277,
273,
2641,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
1377,
11472,
24102,
1133,
6324,
273,
261,
3156,
24102,
1133,
... |
synchronized (listenerKey) { listeners.remove(listener); } | listeners.remove(listener); | void removeListener(IJobProgressManagerListener listener) { synchronized (listenerKey) { listeners.remove(listener); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/543833f8a153a9a7991a3d777cc9a80cf9864424/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
18873,
12,
45,
2278,
5491,
1318,
2223,
2991,
13,
288,
202,
202,
22043,
261,
12757,
653,
13,
288,
1082,
202,
16072,
18,
4479,
12,
12757,
1769,
202,
202,
97,
202,
97,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
18873,
12,
45,
2278,
5491,
1318,
2223,
2991,
13,
288,
202,
202,
22043,
261,
12757,
653,
13,
288,
1082,
202,
16072,
18,
4479,
12,
12757,
1769,
202,
202,
97,
202,
97,
2,
-100,
... |
} catch (IOException e1) { | } catch (IOException e) { | public Element build(Map projectProperties) throws CruiseControlException { try { BuildAgentService agent = pickAgent(); Element buildResults = null; try { projectProperties.put("distributed.overrideTarget", overrideTarget); projectProperties.put("distributed.module", module); buildResults = agent.doBuild(childBuilderElement, projectProperties); String rootDirPath = null; try { rootDirPath = rootDir.getCanonicalPath(); } catch (IOException e1) { String message = "Error getting canonical path for: " + rootDir; LOG.error(message); System.err.println(message); throw new CruiseControlException(message, e1); } String resultsFileName = "logs.zip"; String resultsType = "logs"; if (agent.resultsExist(resultsType)) { String zipFilePath = FileUtil.bytesToFile(agent.retrieveResultsAsZip(resultsType), rootDirPath, resultsFileName); try { ZipUtil.unzipFileToLocation(zipFilePath, rootDirPath + File.separator + resultsType); Util.deleteFile(new File(zipFilePath)); } catch (IOException e2) { // Empty zip for log results--ignore } } else { String message = "No results returned for logs"; LOG.debug(message); System.out.println(message); } resultsFileName = "output.zip"; resultsType = "output"; if (agent.resultsExist(resultsType)) { String zipFilePath = FileUtil.bytesToFile(agent.retrieveResultsAsZip(resultsType), rootDirPath, resultsFileName); try { ZipUtil.unzipFileToLocation(zipFilePath, rootDirPath + File.separator + resultsType); Util.deleteFile(new File(zipFilePath)); } catch (IOException e2) { // Empty zip for output results--ignore } } else { String message = "No results returned for output"; LOG.debug(message); System.out.println(message); } agent.clearOutputFiles(); } catch (RemoteException e) { String message = "Distributed build failed with RemoteException"; LOG.error(message, e); System.err.println(message + " - " + e.getMessage()); throw new CruiseControlException(message, e); } return buildResults; } catch(RuntimeException e) { String message = "Distributed build runtime exception"; LOG.error(message, e); System.err.println(message + " - " + e.getMessage()); throw new CruiseControlException(message, e); } } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/d718cbff723c96240ccea6f66ea15ed9811ca146/DistributedMasterBuilder.java/clean/contrib/distributed/src/net/sourceforge/cruisecontrol/builders/DistributedMasterBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3010,
1361,
12,
863,
1984,
2297,
13,
1216,
385,
8653,
784,
3367,
503,
288,
3639,
775,
288,
5411,
3998,
3630,
1179,
4040,
273,
6002,
3630,
5621,
5411,
3010,
1361,
3447,
273,
446,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3010,
1361,
12,
863,
1984,
2297,
13,
1216,
385,
8653,
784,
3367,
503,
288,
3639,
775,
288,
5411,
3998,
3630,
1179,
4040,
273,
6002,
3630,
5621,
5411,
3010,
1361,
3447,
273,
446,
31,... |
out.print("\">View/Open</A></td></tr>"); | out.print("\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.view") + "</A></td></tr>"); | private void listBitstreams() throws IOException { JspWriter out = pageContext.getOut(); HttpServletRequest request = (HttpServletRequest) pageContext .getRequest(); out.print("<table align=center class=\"miscTable\"><tr>"); out .println("<td class=evenRowEvenCol><P><strong>Files in This Item:</strong></P>"); Bundle[] bundles = item.getBundles("ORIGINAL"); if (bundles.length == 0) { out.println("<P>There are no files associated with this item.</P>"); } else { boolean html = false; String handle = item.getHandle(); Bitstream primaryBitstream = null; Bundle[] bunds = item.getBundles("ORIGINAL"); Bundle[] thumbs = item.getBundles("THUMBNAIL"); // if item contains multiple bitstreams, display bitstream // description boolean multiFile = false; Bundle[] allBundles = item.getBundles(); for (int i = 0, filecount = 0; (i < allBundles.length) && !multiFile; i++) { filecount += allBundles[i].getBitstreams().length; multiFile = (filecount > 1); } // check if primary bitstream is html if (bunds[0] != null) { Bitstream[] bits = bunds[0].getBitstreams(); for (int i = 0; (i < bits.length) && !html; i++) { if (bits[i].getID() == bunds[0].getPrimaryBitstreamID()) { html = bits[i].getFormat().getMIMEType().equals( "text/html"); primaryBitstream = bits[i]; } } } out .println("<table cellpadding=6><tr><th class=\"standard\">File</th>"); if (multiFile) { out.println("<th class=\"standard\">Description</th>"); } out .println("<th class=\"standard\">Size</th class=\"standard\"><th class=\"standard\">Format</th></tr>"); // if primary bitstream is html, display a link for only that one to // HTMLServlet if (html) { // If no real Handle yet (e.g. because Item is in workflow) // we use the 'fake' Handle db-id/1234 where 1234 is the // database ID of the item. if (handle == null) { handle = "db-id/" + item.getID(); } out.print("<tr><td class=\"standard\">"); out.print(primaryBitstream.getName()); if (multiFile) { out.print("</td><td class=\"standard\">"); String desc = primaryBitstream.getDescription(); out.print((desc != null) ? desc : ""); } out.print("</td><td class=\"standard\">"); out.print(primaryBitstream.getSize() / 1024); out.print("Kb</td><td class=\"standard\">"); out.print(primaryBitstream.getFormatDescription()); out .print("</td><td class=\"standard\"><A TARGET=_blank HREF=\""); out.print(request.getContextPath()); out.print("/html/"); out.print(handle + "/"); out.print(UIUtil.encodeBitstreamName(primaryBitstream.getName(), Constants.DEFAULT_ENCODING)); out.print("\">View/Open</A></td></tr>"); } else { for (int i = 0; i < bundles.length; i++) { Bitstream[] bitstreams = bundles[i].getBitstreams(); for (int k = 0; k < bitstreams.length; k++) { // Skip internal types if (!bitstreams[k].getFormat().isInternal()) { out.print("<tr><td class=\"standard\">"); out.print(bitstreams[k].getName()); if (multiFile) { out.print("</td><td class=\"standard\">"); String desc = bitstreams[k].getDescription(); out.print((desc != null) ? desc : ""); } out.print("</td><td class=\"standard\">"); out.print(bitstreams[k].getSize() / 1024); out.print("Kb</td><td class=\"standard\">"); out.print(bitstreams[k].getFormatDescription()); out .print("</td><td class=\"standard\" align=\"center\">"); // Work out what the bitstream link should be // (persistent // ID if item has Handle) String bsLink = "<A TARGET=_blank HREF=\"" + request.getContextPath(); if ((handle != null) && (bitstreams[k].getSequenceID() > 0)) { bsLink = bsLink + "/bitstream/" + item.getHandle() + "/" + bitstreams[k].getSequenceID() + "/"; } else { bsLink = bsLink + "/retrieve/" + bitstreams[k].getID() + "/"; } bsLink = bsLink + UIUtil.encodeBitstreamName( bitstreams[k].getName(), Constants.DEFAULT_ENCODING) + "\">"; // is there a thumbnail bundle? if ((thumbs.length > 0) && showThumbs) { String tName = bitstreams[k].getName() + ".jpg"; Bitstream tb = thumbs[0] .getBitstreamByName(tName); if (tb != null) { String myPath = request.getContextPath() + "/retrieve/" + tb.getID() + "/" + UIUtil.encodeBitstreamName(tb.getName(), Constants.DEFAULT_ENCODING); out.print(bsLink); out.print("<img src=\"" + myPath + "\" "); out.print("alt=\"" + tName + "\"></A><BR>"); } } out.print(bsLink + "View/Open</A></td></tr>"); } } } } out.println("</table>"); } out.println("</td></tr></table>"); } | 49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/22d85d1df34eed227975b6e94ba17893121fac13/ItemTag.java/clean/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
666,
5775,
16320,
1435,
1216,
1860,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
9984,
590,
273,
261,
2940,
18572,
13,
21442,
7734,
263,
588,
691,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
666,
5775,
16320,
1435,
1216,
1860,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
9984,
590,
273,
261,
2940,
18572,
13,
21442,
7734,
263,
588,
691,
5... |
public AddPtg(byte [] data, int offset) { // doesn't need anything } | 509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/13ea5ee7ea68721153c198ec5f180ba23cbd9840/AddPtg.java/buggy/src/java/org/apache/poi/hssf/record/formula/AddPtg.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1436,
16484,
75,
12,
7229,
5378,
501,
16,
509,
1384,
15329,
759,
3302,
1404,
1608,
6967,
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,
... | [
1,
1,
1,
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,
1071,
1436,
16484,
75,
12,
7229,
5378,
501,
16,
509,
1384,
15329,
759,
3302,
1404,
1608,
6967,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | ||
UIUtil.bindHelp( parent,IHelpContextIds.DELETE_WARNING_DIALOG_ID ); | protected Control createDialogArea( Composite parent ) { Composite composite = (Composite) super.createDialogArea( parent ); new Label( composite, SWT.NONE ).setText( preString ); Tree tree = new Tree( composite, SWT.NONE ); tree.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); for ( Iterator itor = refrenceList.iterator( ); itor.hasNext( ); ) { Object reference = itor.next( ); TreeItem item = new TreeItem( tree, SWT.NONE ); item.setText( DEUtil.getDisplayLabel( reference ) ); item.setImage( ReportPlatformUIImages.getImage( reference ) ); } new Label( composite, SWT.NONE ).setText( sufString ); return composite; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/d8587f119b85e348ee9a0ffc1731ec6cd28933cc/DeleteWarningDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/DeleteWarningDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6484,
1304,
18,
4376,
6696,
12,
982,
16,
45,
6696,
1042,
2673,
18,
6460,
67,
9511,
67,
2565,
18683,
67,
734,
11272,
225,
8888,
6484,
1304,
18,
4376,
6696,
12,
982,
16,
45,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6484,
1304,
18,
4376,
6696,
12,
982,
16,
45,
6696,
1042,
2673,
18,
6460,
67,
9511,
67,
2565,
18683,
67,
734,
11272,
225,
8888,
6484,
1304,
18,
4376,
6696,
12,
982,
16,
45,
... | |
public String getCommandForm( int iterations ) | public String getCommandForm() | public String getCommandForm( int iterations ) { return ""; } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/b3ee7db993ce053da3d3cd662dddfa84fff5dd7f/KoLRequest.java/clean/src/net/sourceforge/kolmafia/KoLRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
12856,
1204,
12,
509,
11316,
262,
202,
95,
202,
2463,
1408,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
12856,
1204,
12,
509,
11316,
262,
202,
95,
202,
2463,
1408,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (day < firstDayOfYear) { | if (day < firstDayOfYear) { | private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((day - 100) * 400) / (365 * 400 + 100 - 4 + 1) : ((day - 100) * 4) / (365 * 4 + 1)); if (day >= 0) year++; int firstDayOfYear = getLinearDay(year, 1, gregorian); // Now look in which year day really lies. if (day < firstDayOfYear) { year--; firstDayOfYear = getLinearDay(year, 1, gregorian); } day -= firstDayOfYear - 1; // day of year, one based. fields[DAY_OF_YEAR] = day; if (year <= 0) { fields[ERA] = BC; fields[YEAR] = 1 - year; } else { fields[ERA] = AD; fields[YEAR] = year; } int leapday = isLeapYear(year, gregorian) ? 1 : 0; if (day <= 31 + 28 + leapday) { fields[MONTH] = day / 32; // 31->JANUARY, 32->FEBRUARY fields[DAY_OF_MONTH] = day - 31 * fields[MONTH]; } else { // A few more magic formulas int scaledDay = (day - leapday) * 5 + 8; fields[MONTH] = scaledDay / (31 + 30 + 31 + 30 + 31); fields[DAY_OF_MONTH] = (scaledDay % (31 + 30 + 31 + 30 + 31)) / 5 + 1; } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/GregorianCalendar.java/buggy/core/src/classpath/java/java/util/GregorianCalendar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4604,
4245,
12,
474,
2548,
16,
1250,
314,
14510,
13,
288,
202,
202,
759,
326,
7632,
353,
279,
935,
25152,
2881,
18,
202,
202,
474,
7560,
273,
261,
2881,
397,
7662,
1099,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4604,
4245,
12,
474,
2548,
16,
1250,
314,
14510,
13,
288,
202,
202,
759,
326,
7632,
353,
279,
935,
25152,
2881,
18,
202,
202,
474,
7560,
273,
261,
2881,
397,
7662,
1099,... |
InfoSiteAssociatedCurricularCourses component, Site site) { | InfoSiteAssociatedCurricularCourses component, ExecutionCourseSite site) { | private ISiteComponent getInfoSiteAssociatedCurricularCourses( InfoSiteAssociatedCurricularCourses component, Site site) { List infoCurricularCourseList = new ArrayList(); ExecutionCourse executionCourse = site.getExecutionCourse(); infoCurricularCourseList = readCurricularCourses(executionCourse); component.setAssociatedCurricularCourses(infoCurricularCourseList); return component; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/0109c25dd214d2427e911066a1345afb9ddc8372/ExecutionCourseSiteComponentBuilder.java/clean/src/net/sourceforge/fenixedu/applicationTier/Factory/ExecutionCourseSiteComponentBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4437,
1137,
1841,
17142,
4956,
19233,
2408,
1512,
2490,
39,
10692,
12,
202,
565,
3807,
4956,
19233,
2408,
1512,
2490,
39,
10692,
1794,
16,
9063,
2834,
13,
288,
202,
682,
1123,
2408,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4437,
1137,
1841,
17142,
4956,
19233,
2408,
1512,
2490,
39,
10692,
12,
202,
565,
3807,
4956,
19233,
2408,
1512,
2490,
39,
10692,
1794,
16,
9063,
2834,
13,
288,
202,
682,
1123,
2408,
... |
out.println("DN for CA <input name=\"dnname\" type=\"text\" value=\"\">"); | out.println("Select CA: <select id=\"dnname\" name=\"cadnname\">"); for (int i = 0 ; i < caDNs.length ; i++) { out.println("<option value=\"" + caDNs[i].toString() + "\">" + caDNs[i].toString() + "</option>"); } out.println("</select>"); | protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { if (log.isDebugEnabled()) { log.debug("+++++ Certificate signing request: "); log.debug("method:" + req.getMethod()); log.debug("authType:" + req.getAuthType()); log.debug("pathInfo:" + req.getPathInfo()); log.debug("query:" + req.getQueryString()); } res.setContentType("Text/HTML"); PrintWriter out=res.getWriter(); out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">"); out.println("<html>"); out.println("<head>"); out.println("<title>Certificate Signing request </title>"); out.println("</head>"); out.println("<body>"); out.println("<H2> Certificate Signing Request</H2>"); out.println("<table>"); out.println("<form action=\"\" method =\"post\">"); //out.println("<tr ><td colspan=\"3\">"); //out.println("Domain : <input name=\"domain\" type=\"text\" value=\"\">"); //out.println(" <br> <br></td></tr>"); out.println("<tr ><td colspan=\"3\">"); out.println("DN for CA <input name=\"dnname\" type=\"text\" value=\"\">"); out.println(" <br> <br></td></tr>"); out.println("<tr ><td colspan=\"3\">"); out.println("<textarea name=\"pkcsdata\" rows=10 cols=80 ></textarea><br>"); out.println("</td></tr>"); out.println("<tr><td>Type :</td>"); out.println("<td>"); out.println("<input name=\"pkcs\" type=\"radio\" value=\"pkcs7\">pkcs7</input> "); out.println("<input name=\"pkcs\" type=\"radio\" value=\"pkcs10\">pkcs10</input>"); // to distinguish between input from browser and from program out.println("<input name=\"replyformat\" type=\"hidden\" value=\"html\"></input>"); out.println("<br></td><td></td>"); out.println("</tr><tr><td></td><td><br><input type=\"submit\"> "); out.println("<input type=\"reset\"></td><td></td></tr>"); out.println("</form></table>"); out.println("</body></html>"); out.flush(); out.close(); } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/2c902b25025ad4e06a3d806433ab1ea34afd4a3f/CertificateSigningRequest.java/buggy/securityservices/src/org/cougaar/core/security/certauthority/servlet/CertificateSigningRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
23611,
12,
2940,
18572,
1111,
16,
1082,
4202,
12446,
400,
13,
565,
1216,
16517,
16,
1860,
225,
288,
565,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
1377,
613,
18,
4148,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23611,
12,
2940,
18572,
1111,
16,
1082,
4202,
12446,
400,
13,
565,
1216,
16517,
16,
1860,
225,
288,
565,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
1377,
613,
18,
4148,
... |
if (operationType.equals(OperationType.REQUEST_RESPONSE)) return WSDLConstants.MEP_URI_IN_OUT; | if (operationType.equals(OperationType.REQUEST_RESPONSE)) return WSDLConstants.MEP_URI_IN_OUT; | private String getMEP(Operation operation) { OperationType operationType = operation.getStyle(); if (null != operationType) { if (operationType.equals(OperationType.REQUEST_RESPONSE)) return WSDLConstants.MEP_URI_IN_OUT; if (operationType.equals(OperationType.ONE_WAY)) return WSDLConstants.MEP_URI_IN_ONLY; if (operationType.equals(OperationType.NOTIFICATION)) return WSDLConstants.MEP_URI_OUT_ONLY; if (operationType.equals(OperationType.SOLICIT_RESPONSE)) return WSDLConstants.MEP_URI_OUT_IN; } throw new WSDLProcessingException("Cannot Determine the MEP"); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/59096099161eec3698fef0b4bdd596ca0420669d/WSDL2AxisServiceBuilder.java/clean/modules/core/src/org/apache/axis2/description/WSDL2AxisServiceBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
336,
958,
52,
12,
2988,
1674,
13,
288,
202,
202,
2988,
559,
15754,
273,
1674,
18,
588,
2885,
5621,
202,
202,
430,
261,
2011,
480,
15754,
13,
288,
1082,
202,
430,
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,
225,
202,
1152,
514,
336,
958,
52,
12,
2988,
1674,
13,
288,
202,
202,
2988,
559,
15754,
273,
1674,
18,
588,
2885,
5621,
202,
202,
430,
261,
2011,
480,
15754,
13,
288,
1082,
202,
430,
261,
... |
EditBus.send(new RegisterChanged(null,register)); | public static void copy(JEditTextArea textArea, char register) { String selection = textArea.getSelectedText(); if(selection == null) return; setRegister(register,selection); HistoryModel.getModel("clipboard").addItem(selection); EditBus.send(new RegisterChanged(null,register)); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/4aae6868b1174861fdd4157532f22010da755413/Registers.java/buggy/org/gjt/sp/jedit/Registers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1610,
12,
46,
4666,
1528,
5484,
977,
5484,
16,
1149,
1744,
13,
202,
95,
202,
202,
780,
4421,
273,
977,
5484,
18,
588,
7416,
1528,
5621,
202,
202,
430,
12,
10705,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1610,
12,
46,
4666,
1528,
5484,
977,
5484,
16,
1149,
1744,
13,
202,
95,
202,
202,
780,
4421,
273,
977,
5484,
18,
588,
7416,
1528,
5621,
202,
202,
430,
12,
10705,
4... | |
BugzillaReportSubmitForm bugzillaReportSubmitForm; | protected void timeTracker(int taskid, boolean enableDeadline) throws Exception { BugzillaTask bugtask = generateLocalTaskAndDownload("" + taskid); TasksUiPlugin.getSynchronizationManager().setTaskRead(bugtask, true); assertEquals(taskid, Integer.parseInt(bugtask.getTaskData().getId())); assertEquals(RepositoryTaskSyncState.SYNCHRONIZED, bugtask.getSyncState()); Set<AbstractRepositoryTask> tasks = new HashSet<AbstractRepositoryTask>(); tasks.add(bugtask); // synchAndAssertState(tasks, RepositoryTaskSyncState.SYNCHRONIZED); TasksUiPlugin.getRepositoryManager().setSyncTime(repository, bugtask.getLastSyncDateStamp(), TasksUiPlugin.getDefault().getRepositoriesFilePath()); // connector.synchronizeChanged(repository); // Set<AbstractRepositoryTask> changedTasks = // connector.getOfflineTaskHandler().getChangedSinceLastSync(repository, // tasks); // assertEquals(1, changedTasks.size()); assertNotNull(repository.getUserName()); assertNotNull(repository.getPassword()); float estimatedTime, remainingTime, actualTime, addTime; String deadline = null; RepositoryTaskData bugtaskdata = bugtask.getTaskData(); estimatedTime = Float.parseFloat(bugtaskdata.getAttributeValue(BugzillaReportElement.ESTIMATED_TIME .getKeyString())); remainingTime = Float.parseFloat(bugtaskdata.getAttributeValue(BugzillaReportElement.REMAINING_TIME .getKeyString())); actualTime = Float.parseFloat(bugtaskdata.getAttributeValue(BugzillaReportElement.ACTUAL_TIME.getKeyString())); if (enableDeadline) deadline = bugtaskdata.getAttributeValue(BugzillaReportElement.DEADLINE.getKeyString()); estimatedTime += 2; remainingTime += 1.5; addTime = 0.75f; if (enableDeadline) deadline = generateNewDay(); bugtaskdata.setAttributeValue(BugzillaReportElement.ESTIMATED_TIME.getKeyString(), "" + estimatedTime); bugtaskdata.setAttributeValue(BugzillaReportElement.REMAINING_TIME.getKeyString(), "" + remainingTime); bugtaskdata.setAttributeValue(BugzillaReportElement.WORK_TIME.getKeyString(), "" + addTime); if (enableDeadline) bugtaskdata.setAttributeValue(BugzillaReportElement.DEADLINE.getKeyString(), deadline); BugzillaReportSubmitForm bugzillaReportSubmitForm; for (AbstractRepositoryTask task : tasks) { task.getTaskData().setAttributeValue(BugzillaReportElement.ADD_COMMENT.getKeyString(), "New Estimate: " + estimatedTime + "\nNew Remaining: " + remainingTime + "\nAdd: " + addTime); bugzillaReportSubmitForm = makeExistingBugPost(task.getTaskData()); bugzillaReportSubmitForm.submitReportToRepository(connector.getClientManager().getClient(repository)); } // assertEquals("Changed reports expected ", 1, // connector.getOfflineTaskHandler().getChangedSinceLastSync(repository, // tasks).size()); synchAndAssertState(tasks, RepositoryTaskSyncState.INCOMING); // synchAndAssertState(tasks, RepositoryTaskSyncState.SYNCHRONIZED); bugtaskdata = bugtask.getTaskData(); assertEquals(estimatedTime, Float.parseFloat(bugtaskdata.getAttributeValue(BugzillaReportElement.ESTIMATED_TIME .getKeyString()))); assertEquals(remainingTime, Float.parseFloat(bugtaskdata.getAttributeValue(BugzillaReportElement.REMAINING_TIME .getKeyString()))); assertEquals(actualTime + addTime, Float.parseFloat(bugtaskdata .getAttributeValue(BugzillaReportElement.ACTUAL_TIME.getKeyString()))); if (enableDeadline) assertEquals(deadline, bugtaskdata.getAttributeValue(BugzillaReportElement.DEADLINE.getKeyString())); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/03f3816483b487f20214837cafbbbb03ffc5336e/BugzillaRepositoryConnectorTest.java/buggy/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
813,
8135,
12,
474,
29035,
16,
1250,
4237,
15839,
13,
1216,
1185,
288,
202,
202,
19865,
15990,
2174,
7934,
4146,
273,
2103,
2042,
2174,
1876,
7109,
2932,
6,
397,
29035,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
813,
8135,
12,
474,
29035,
16,
1250,
4237,
15839,
13,
1216,
1185,
288,
202,
202,
19865,
15990,
2174,
7934,
4146,
273,
2103,
2042,
2174,
1876,
7109,
2932,
6,
397,
29035,
17... | |
private boolean addJonasVendorFiles(final Hashtable someEjbFiles,final String aDdPrefix) { final String aCanonicalDD = aDdPrefix.replace('\\', '/').substring(0,aDdPrefix.length()-1); final int index = aCanonicalDD.lastIndexOf('/') + 1; String anEjbJarName = aCanonicalDD.substring(index); if( "ejb".equals( anEjbJarName ) ) { anEjbJarName = "ejb-jar"; } final String aNewDdPrefix = aDdPrefix.substring(0,index) + "jonas-" + anEjbJarName + ".xml"; File aConventionNamingJonasDD = new File(getConfig().descriptorDir,aNewDdPrefix); log("look for jonas specific file using jonas naming convention " + aConventionNamingJonasDD, Project.MSG_VERBOSE); | private boolean addJonasVendorFiles(final Hashtable someEjbFiles, final String aDdPrefix) { final String aCanonicalDD = aDdPrefix.replace('\\', '/').substring(0, aDdPrefix.length() - 1); final int index = aCanonicalDD.lastIndexOf('/') + 1; String anEjbJarName = aCanonicalDD.substring(index); | private boolean addJonasVendorFiles(final Hashtable someEjbFiles,final String aDdPrefix) { // replace \ by /, remove the last letter ( a dash - ) final String aCanonicalDD = aDdPrefix.replace('\\', '/').substring(0,aDdPrefix.length()-1); final int index = aCanonicalDD.lastIndexOf('/') + 1; String anEjbJarName = aCanonicalDD.substring(index); if( "ejb".equals( anEjbJarName ) ) { anEjbJarName = "ejb-jar"; } final String aNewDdPrefix = aDdPrefix.substring(0,index) + "jonas-" + anEjbJarName + ".xml"; File aConventionNamingJonasDD = new File(getConfig().descriptorDir,aNewDdPrefix); log("look for jonas specific file using jonas naming convention " + aConventionNamingJonasDD, Project.MSG_VERBOSE); if( aConventionNamingJonasDD.exists() ) { someEjbFiles.put(META_DIR + JONAS_DD,aConventionNamingJonasDD); return true; } else { return false; } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/JonasDeploymentTool.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JonasDeploymentTool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
527,
46,
265,
345,
14786,
2697,
12,
6385,
18559,
2690,
41,
10649,
2697,
16,
6385,
514,
279,
40,
72,
2244,
13,
288,
1377,
368,
1453,
521,
635,
342,
16,
1206,
326,
1142,
9471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
46,
265,
345,
14786,
2697,
12,
6385,
18559,
2690,
41,
10649,
2697,
16,
6385,
514,
279,
40,
72,
2244,
13,
288,
1377,
368,
1453,
521,
635,
342,
16,
1206,
326,
1142,
9471,... |
AST tmp930_AST_in = (AST)_t; | AST tmp929_AST_in = (AST)_t; | public final void createwidgetstate(AST _t) throws RecognitionException { AST createwidgetstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t334 = _t; AST tmp911_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUE: { valueexpression(_t); _t = _retTree; break; } case BUTTON: { AST tmp912_AST_in = (AST)_t; match(_t,BUTTON); _t = _t.getNextSibling(); break; } case COMBOBOX: { AST tmp913_AST_in = (AST)_t; match(_t,COMBOBOX); _t = _t.getNextSibling(); break; } case CONTROLFRAME: { AST tmp914_AST_in = (AST)_t; match(_t,CONTROLFRAME); _t = _t.getNextSibling(); break; } case DIALOGBOX: { AST tmp915_AST_in = (AST)_t; match(_t,DIALOGBOX); _t = _t.getNextSibling(); break; } case EDITOR: { AST tmp916_AST_in = (AST)_t; match(_t,EDITOR); _t = _t.getNextSibling(); break; } case FILLIN: { AST tmp917_AST_in = (AST)_t; match(_t,FILLIN); _t = _t.getNextSibling(); break; } case FRAME: { AST tmp918_AST_in = (AST)_t; match(_t,FRAME); _t = _t.getNextSibling(); break; } case IMAGE: { AST tmp919_AST_in = (AST)_t; match(_t,IMAGE); _t = _t.getNextSibling(); break; } case MENU: { AST tmp920_AST_in = (AST)_t; match(_t,MENU); _t = _t.getNextSibling(); break; } case MENUITEM: { AST tmp921_AST_in = (AST)_t; match(_t,MENUITEM); _t = _t.getNextSibling(); break; } case RADIOSET: { AST tmp922_AST_in = (AST)_t; match(_t,RADIOSET); _t = _t.getNextSibling(); break; } case RECTANGLE: { AST tmp923_AST_in = (AST)_t; match(_t,RECTANGLE); _t = _t.getNextSibling(); break; } case SELECTIONLIST: { AST tmp924_AST_in = (AST)_t; match(_t,SELECTIONLIST); _t = _t.getNextSibling(); break; } case SLIDER: { AST tmp925_AST_in = (AST)_t; match(_t,SLIDER); _t = _t.getNextSibling(); break; } case SUBMENU: { AST tmp926_AST_in = (AST)_t; match(_t,SUBMENU); _t = _t.getNextSibling(); break; } case TEXT: { AST tmp927_AST_in = (AST)_t; match(_t,TEXT); _t = _t.getNextSibling(); break; } case TOGGLEBOX: { AST tmp928_AST_in = (AST)_t; match(_t,TOGGLEBOX); _t = _t.getNextSibling(); break; } case WINDOW: { AST tmp929_AST_in = (AST)_t; match(_t,WINDOW); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } fld(_t,CQ.UPDATING); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t337 = _t; AST tmp930_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp931_AST_in = (AST)_t; match(_t,WIDGETPOOL); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t337; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case ASSIGN: case NOERROR_KW: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp932_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case ASSIGN: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ASSIGN: { assign_opt(_t); _t = _retTree; break; } case EOF: case PERIOD: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRIGGERS: { triggerphrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t334; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
752,
6587,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
752,
6587,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
752,
6587,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
752,
6587,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,... |
if ( fieldCount == INT_NULL ) | if ( fieldCount == NULL_VALUE ) | protected Object readObject(DataInputStream dis) throws IOException { int fieldCount = IOUtil.readInt( dis ); if ( fieldCount == INT_NULL ) { return null; } Object[] objects = new Object[fieldCount]; for(int i=0;i<objects.length;i++) { objects[i] = IOUtil.readObject( dis ); } return creator.createInstance( objects ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/fa82a2af56d763819340dcb4920363efb3a6b242/CachedList.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/cache/CachedList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
17362,
12,
751,
4348,
1015,
13,
1216,
1860,
202,
95,
202,
202,
474,
652,
1380,
273,
1665,
1304,
18,
896,
1702,
12,
1015,
11272,
202,
202,
430,
261,
652,
1380,
422,
6137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
17362,
12,
751,
4348,
1015,
13,
1216,
1860,
202,
95,
202,
202,
474,
652,
1380,
273,
1665,
1304,
18,
896,
1702,
12,
1015,
11272,
202,
202,
430,
261,
652,
1380,
422,
6137... |
DocumentImpl doc = null; try { doc = (DocumentImpl) serializer.broker.getXMLResource(docUri); if(doc != null && !doc.getPermissions().validate(serializer.broker.getUser(), Permission.READ)) throw new PermissionDeniedException("Permission denied to read xincluded resource"); } catch (PermissionDeniedException e) { LOG.warn("permission denied", e); throw new SAXException(e); } /* if document has not been found and xpointer is * null, throw an exception. If xpointer != null * we retry below and interpret docName as * a collection. */ if (doc == null && xpointer == null) throw new SAXException("document " + docUri + " not found"); /* Check if the document is a stored XQuery */ boolean xqueryDoc = false; if (doc != null && doc.getResourceType() == DocumentImpl.BINARY_FILE) { xqueryDoc = "application/xquery".equals(doc.getMetadata().getMimeType()); | Map params = null; String paramStr = docUri.getQuery(); if (paramStr != null) { params = processParameters(paramStr); } String base = document.getCollection().getURI() + "/"; String child = "./" + docUri.toString(); URI baseUri = URI.create(base); URI childUri = URI.create(child); URI uri = baseUri.resolve(childUri); docUri = XmldbURI.create(uri); DocumentImpl doc = null; try { doc = (DocumentImpl) serializer.broker.getXMLResource(docUri); if(doc != null && !doc.getPermissions().validate(serializer.broker.getUser(), Permission.READ)) throw new PermissionDeniedException("Permission denied to read xincluded resource"); } catch (PermissionDeniedException e) { LOG.warn("permission denied", e); throw new SAXException(e); } /* if document has not been found and xpointer is * null, throw an exception. If xpointer != null * we retry below and interpret docName as * a collection. */ if (doc == null && xpointer == null) throw new SAXException("document " + docUri + " not found"); /* Check if the document is a stored XQuery */ boolean xqueryDoc = false; if (doc != null && doc.getResourceType() == DocumentImpl.BINARY_FILE) { xqueryDoc = "application/xquery".equals(doc.getMetadata().getMimeType()); } if (xpointer == null && !xqueryDoc) serializer.serializeToReceiver(doc, false); else { try { Source source; if (xpointer == null) source = new DBSource(serializer.broker, (BinaryDocument) doc, true); else { xpointer = checkNamespaces(xpointer); source = new StringSource(xpointer); } XQuery xquery = serializer.broker.getXQueryService(); XQueryPool pool = xquery.getXQueryPool(); XQueryContext context; CompiledXQuery compiled = pool.borrowCompiledXQuery(serializer.broker, source); if (compiled != null) context = compiled.getContext(); else context = xquery.newContext(AccessContext.XINCLUDE); context.declareNamespaces(namespaces); context.declareNamespace("xinclude", XINCLUDE_NS); context.declareVariable("xinclude:current-doc", document.getFileURI().toString()); context.declareVariable("xinclude:current-collection", document.getCollection().getURI().toString()); if (xpointer != null) { if(doc != null) context.setStaticallyKnownDocuments(new XmldbURI[] { doc.getURI() } ); else context.setStaticallyKnownDocuments(new XmldbURI[] { docUri }); } if (params != null) { for (Iterator i = params.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); context.declareVariable(entry.getKey().toString(), entry.getValue()); } } if(compiled == null) { try { compiled = xquery.compile(context, source, xpointer != null); } catch (IOException e) { throw new SAXException("I/O error while reading query for xinclude: " + e.getMessage(), e); } } LOG.info("xpointer query: " + ExpressionDumper.dump((Expression) compiled)); Sequence seq = xquery.execute(compiled, null); if(Type.subTypeOf(seq.getItemType(), Type.NODE)) { if (LOG.isDebugEnabled()) LOG.debug("xpointer found: " + seq.getLength()); NodeValue node; for (SequenceIterator i = seq.iterate(); i.hasNext();) { node = (NodeValue) i.nextItem(); serializer.serializeToReceiver(node, false); } } else { String val; for (int i = 0; i < seq.getLength(); i++) { val = seq.itemAt(i).getStringValue(); characters(val); } } } catch (XPathException e) { LOG.warn("xpointer error", e); throw new SAXException("Error while processing XInclude expression: " + e.getMessage(), e); | protected void processXInclude(String href) throws SAXException { if(href == null) throw new SAXException("No href attribute found in XInclude include element"); // save some settings DocumentImpl prevDoc = document; boolean createContainerElements = serializer.createContainerElements; serializer.createContainerElements = false; //The following comments are the basis for possible external documents XmldbURI docUri = null; //URI externalUri = null; try { docUri = XmldbURI.xmldbUriFor(href); /* if(!stylesheetUri.toCollectionPathURI().equals(stylesheetUri)) { externalUri = stylesheetUri.getXmldbURI(); } */ } catch (URISyntaxException e) { //could be an external URI! /* try { externalUri = new URI(href); } catch (URISyntaxException ee) { */ throw new IllegalArgumentException("Stylesheet URI could not be parsed: "+e.getMessage()); //} } // parse the href attribute LOG.debug("found href=\"" + href + "\""); //String xpointer = null; //String docName = href; String xpointer = docUri.getFragment(); if(xpointer!=null) { try { xpointer = XMLUtil.decodeAttrMarkup(URLDecoder.decode(xpointer, "UTF-8")); } catch (UnsupportedEncodingException e) { } } // extract possible parameters in the URI Map params = null; String paramStr = docUri.getQuery(); if(paramStr!=null) { params = processParameters(paramStr); } // if docName has no collection specified, assume // current collection if(docUri.numSegments()==1) docUri = document.getCollection().getURI().append(docUri); // retrieve the document DocumentImpl doc = null; try { doc = (DocumentImpl) serializer.broker.getXMLResource(docUri); if(doc != null && !doc.getPermissions().validate(serializer.broker.getUser(), Permission.READ)) throw new PermissionDeniedException("Permission denied to read xincluded resource"); } catch (PermissionDeniedException e) { LOG.warn("permission denied", e); throw new SAXException(e); } /* if document has not been found and xpointer is * null, throw an exception. If xpointer != null * we retry below and interpret docName as * a collection. */ if (doc == null && xpointer == null) throw new SAXException("document " + docUri + " not found"); /* Check if the document is a stored XQuery */ boolean xqueryDoc = false; if (doc != null && doc.getResourceType() == DocumentImpl.BINARY_FILE) { xqueryDoc = "application/xquery".equals(doc.getMetadata().getMimeType()); } if (xpointer == null && !xqueryDoc) // no xpointer found - just serialize the doc serializer.serializeToReceiver(doc, false); else { // process the xpointer or the stored XQuery try { Source source; if (xpointer == null) source = new DBSource(serializer.broker, (BinaryDocument) doc, true); else { xpointer = checkNamespaces(xpointer); source = new StringSource(xpointer); } XQuery xquery = serializer.broker.getXQueryService(); XQueryPool pool = xquery.getXQueryPool(); XQueryContext context; CompiledXQuery compiled = pool.borrowCompiledXQuery(serializer.broker, source); if (compiled != null) context = compiled.getContext(); else context = xquery.newContext(AccessContext.XINCLUDE); context.declareNamespaces(namespaces); context.declareNamespace("xinclude", XINCLUDE_NS); //TODO: change these to putting the XmldbURI in, but we need to warn users! context.declareVariable("xinclude:current-doc", document.getFileURI().toString()); context.declareVariable("xinclude:current-collection", document.getCollection().getURI().toString()); if (xpointer != null) { if(doc != null) context.setStaticallyKnownDocuments(new XmldbURI[] { doc.getURI() } ); else context.setStaticallyKnownDocuments(new XmldbURI[] { docUri }); } // pass parameters as variables if (params != null) { for (Iterator i = params.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); context.declareVariable(entry.getKey().toString(), entry.getValue()); } } if(compiled == null) { try { compiled = xquery.compile(context, source, xpointer != null); } catch (IOException e) { throw new SAXException("I/O error while reading query for xinclude: " + e.getMessage(), e); } } LOG.info("xpointer query: " + ExpressionDumper.dump((Expression) compiled)); Sequence seq = xquery.execute(compiled, null); if(Type.subTypeOf(seq.getItemType(), Type.NODE)) { if (LOG.isDebugEnabled()) LOG.debug("xpointer found: " + seq.getLength()); NodeValue node; for (SequenceIterator i = seq.iterate(); i.hasNext();) { node = (NodeValue) i.nextItem(); serializer.serializeToReceiver(node, false); } } else { String val; for (int i = 0; i < seq.getLength(); i++) { val = seq.itemAt(i).getStringValue(); characters(val); } } } catch (XPathException e) { LOG.warn("xpointer error", e); throw new SAXException("Error while processing XInclude expression: " + e.getMessage(), e); } } // restore settings document = prevDoc; serializer.createContainerElements = createContainerElements; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/fdf699bbdcb7325658c2009afa645a0ad6db9318/XIncludeFilter.java/clean/src/org/exist/storage/serializers/XIncludeFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1207,
60,
8752,
12,
780,
3897,
13,
1216,
14366,
288,
202,
202,
430,
12,
7547,
422,
446,
13,
1082,
202,
12849,
394,
14366,
2932,
2279,
3897,
1566,
1392,
316,
1139,
8752,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
60,
8752,
12,
780,
3897,
13,
1216,
14366,
288,
202,
202,
430,
12,
7547,
422,
446,
13,
1082,
202,
12849,
394,
14366,
2932,
2279,
3897,
1566,
1392,
316,
1139,
8752,
... |
System.exit(1); | Log.log_2015(url, functionName, totalTimeOut); throw new TotalTimeOutException(); | public Result call(TargetDescriptor target, String functionName, Map parameters) throws IllegalArgumentException, CallException { // Check preconditions MandatoryArgumentChecker.check("target", target, "functionName", functionName); // Construct new HttpClient object HttpClient client = new HttpClient(); // Determine URL and time-outs String url = target.getURL(); int totalTimeOut = target.getTimeOut(); int connectionTimeOut = target.getConnectionTimeOut(); int socketTimeOut = target.getSocketTimeOut(); // Configure connection time-out and socket time-out client.setConnectionTimeout(connectionTimeOut); client.setTimeout (socketTimeOut); // Construct the method object PostMethod method = createPostMethod(url, functionName, parameters); // Prepare a thread for execution of the call CallExecutor executor = new CallExecutor(NDC.peek(), client, method); boolean succeeded = false; try { Log.log_2011(url, functionName, method.getQueryString(), totalTimeOut, connectionTimeOut, socketTimeOut); controlTimeOut(executor, target); succeeded = true; } catch (TimeOutException exception) { // TODO: Log total time-out System.exit(1); } finally { if (succeeded == false) { // If there was an exception already, don't allow another one to // override it, so wrap the releasing of the connection in a // try-catch block. try { method.releaseConnection(); // If there was an exception, then log the root cause for it } catch (Throwable exception) { exception = ExceptionUtils.getRootCause(exception); Log.log_2007(exception, exception.getClass().getName()); } } } // Read response body (mandatory operation) String body = method.getResponseBodyAsString(); // Release the connection method.releaseConnection(); // Check for exceptions Throwable exception = executor._exception; if (exception != null) { // TODO: Detect connection refusal, socket time-out and connection // time-out // Connection refusal if (exception instanceof ConnectException) { // TODO: Log connection refusal // TODO: Throw some kind of CallException // Connection time-out } else if (exception instanceof HttpConnection.ConnectionTimeoutException) { // TODO: Log connection time-out // TODO: Throw some kind of CallException // TODO: Socket time-out /* } else if .... { // TODO: Log connection time-out // TODO: Throw some kind of CallException } */ } else if (exception instanceof IOException) { throw new CallIOException((IOException) exception); } // TODO: Probably not throw an InvalidCallResultException throw new InvalidCallResultException(exception); } // Check the code // TODO: Throw specific exception that stores the HTTP code so it can be // used to determine whether or not fail-over should be attempted. int code = executor._statusCode; if (code != 200 && code != 201) { Log.log_2008(code); throw new InvalidCallResultException("HTTP code " + code + '.'); } // If the body is null, then there was an error if (body == null) { Log.log_2009(); throw new InvalidCallResultException("Failed to read the response body."); } // Parse and return the result try { return _parser.parse(target, body); } catch (ParseException parseException) { throw new InvalidCallResultException(parseException.getMessage()); } } | 45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/89ac9c487a8d76699d74260aa6d47da8590b62dd/XINSServiceCaller.java/buggy/src/java-client-framework/org/xins/client/XINSServiceCaller.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3438,
745,
12,
2326,
3187,
1018,
16,
8227,
514,
6647,
14117,
16,
8227,
1635,
2868,
1472,
13,
282,
1216,
2754,
16,
3049,
503,
288,
1377,
368,
2073,
675,
6381,
1377,
490,
10018,
1379,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3438,
745,
12,
2326,
3187,
1018,
16,
8227,
514,
6647,
14117,
16,
8227,
1635,
2868,
1472,
13,
282,
1216,
2754,
16,
3049,
503,
288,
1377,
368,
2073,
675,
6381,
1377,
490,
10018,
1379,... |
return _maximumValue; | return maximumValue; | public double getMaximumValue() { return _maximumValue; } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/5c788225030ea2bb15cb5f3f9696c52b755b6d54/DoubleProperty.java/clean/modules/interop/src/java/org/apache/geronimo/interop/properties/DoubleProperty.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
25194,
620,
1435,
288,
3639,
327,
4207,
620,
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,
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,
377,
1071,
1645,
25194,
620,
1435,
288,
3639,
327,
4207,
620,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
groupPrimitive(are); | groupPrimitive(are, false); | public void fillArc(ArcRenderEvent are) throws ChartException { groupPrimitive(are); super.fillArc(are); ungroupPrimitive(are); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/aeb2ff9aeebc28aaf0d2e96bfd88e2332f7a7e96/SVGRendererImpl.java/buggy/chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGRendererImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
14598,
12,
14598,
3420,
1133,
854,
13,
1216,
14804,
503,
288,
202,
202,
1655,
9840,
12,
834,
1769,
202,
202,
9565,
18,
5935,
14598,
12,
834,
1769,
202,
202,
318,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
14598,
12,
14598,
3420,
1133,
854,
13,
1216,
14804,
503,
288,
202,
202,
1655,
9840,
12,
834,
1769,
202,
202,
9565,
18,
5935,
14598,
12,
834,
1769,
202,
202,
318,
16... |
if(nextSibling_ != null) { | if(nextSibling_ != null && nextSibling_.previousSibling_ == this) { | private void basicRemove() { if(parent_ != null && parent_.firstChild_ == this) { parent_.firstChild_ = nextSibling_; } else if(previousSibling_ != null) { previousSibling_.nextSibling_ = nextSibling_; } if(nextSibling_ != null) { nextSibling_.previousSibling_ = previousSibling_; } if(parent_ != null && this == parent_.getLastChild()) { parent_.firstChild_.previousSibling_ = previousSibling_; } nextSibling_ = null; previousSibling_ = null; parent_ = null; } | 3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/680d1b30285dee4d1bd6c99a8e6bd4e54a9a3627/DomNode.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/DomNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5337,
3288,
1435,
288,
3639,
309,
12,
2938,
67,
480,
446,
597,
982,
27799,
3645,
1763,
67,
422,
333,
13,
288,
5411,
982,
27799,
3645,
1763,
67,
273,
19419,
67,
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,
3238,
918,
5337,
3288,
1435,
288,
3639,
309,
12,
2938,
67,
480,
446,
597,
982,
27799,
3645,
1763,
67,
422,
333,
13,
288,
5411,
982,
27799,
3645,
1763,
67,
273,
19419,
67,
31,
3639,
289,... |
int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) flags = SWT.CHECK; else if (style == IAction.AS_RADIO_BUTTON) | if (action.getStyle() == IAction.AS_CHECK_BOX) flags = SWT.TOGGLE; if (action.getStyle() == IAction.AS_RADIO_BUTTON) | public void fill(Menu parent, int index) { if (widget == null && parent != null) { Menu subMenu = null; int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) flags = SWT.CHECK; else if (style == IAction.AS_RADIO_BUTTON) flags = SWT.RADIO; else if (style == IAction.AS_DROP_DOWN_MENU) { IMenuCreator mc = action.getMenuCreator(); if (mc != null) { subMenu = mc.getMenu(parent); flags = SWT.CASCADE; } } } MenuItem mi = null; if (index >= 0) mi = new MenuItem(parent, flags, index); else mi = new MenuItem(parent, flags); widget = mi; mi.setData(this); mi.addListener(SWT.Dispose, getMenuItemListener()); mi.addListener(SWT.Selection, getMenuItemListener()); if (action.getHelpListener() != null) mi.addHelpListener(action.getHelpListener()); if (subMenu != null) mi.setMenu(subMenu); update(null); // Attach some extra listeners. action.addPropertyChangeListener(propertyListener); if (action != null) { String commandId = action.getActionDefinitionId(); ExternalActionManager.ICallback callback = ExternalActionManager .getInstance().getCallback(); if ((callback != null) && (commandId != null)) { callback.addPropertyChangeListener(commandId, actionTextListener); } } } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/55b800da6b8333e30017bf3b2ad588184364555a/ActionContributionItem.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3636,
12,
4599,
982,
16,
509,
770,
13,
288,
3639,
309,
261,
6587,
422,
446,
597,
982,
480,
446,
13,
288,
5411,
9809,
720,
4599,
273,
446,
31,
5411,
509,
2943,
273,
348,
858... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3636,
12,
4599,
982,
16,
509,
770,
13,
288,
3639,
309,
261,
6587,
422,
446,
597,
982,
480,
446,
13,
288,
5411,
9809,
720,
4599,
273,
446,
31,
5411,
509,
2943,
273,
348,
858... |
System.err.println("pages: " + pages+"+"+xpages + ", Free memory: " + free + "M / " + total + "M.<br/>"); | return "Free memory: " + free + "M / " + total + "M"; | private static final void freeMem(int pages, int xpages) { Runtime r = Runtime.getRuntime(); double total = r.totalMemory(); total = total / 1024000.0; double free = r.freeMemory(); free = free / 1024000.0; System.err.println("pages: " + pages+"+"+xpages + ", Free memory: " + free + "M / " + total + "M.<br/>"); } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/942be8f7a893f48ec32b3b81c60bde3de5b5f434/SurveyMain.java/clean/tools/java/org/unicode/cldr/web/SurveyMain.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
727,
918,
4843,
3545,
12,
474,
4689,
16,
509,
619,
7267,
13,
288,
3639,
2509,
436,
273,
2509,
18,
588,
5576,
5621,
3639,
1645,
2078,
273,
436,
18,
4963,
6031,
5621,
3639,
207... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
4843,
3545,
12,
474,
4689,
16,
509,
619,
7267,
13,
288,
3639,
2509,
436,
273,
2509,
18,
588,
5576,
5621,
3639,
1645,
2078,
273,
436,
18,
4963,
6031,
5621,
3639,
207... |
public void removeBlocks(ICDIMemoryBlock[] memoryBlocks) throws CDIException { for (int i = 0; i < memoryBlocks.length; i++) { removeBlock(memoryBlocks[i]); | public void removeBlocks(Target target, ICDIMemoryBlock[] memoryBlocks) throws CDIException { List blockList = (List)blockMap.get(target); if (blockList != null) { blockList.removeAll(Arrays.asList(memoryBlocks)); | public void removeBlocks(ICDIMemoryBlock[] memoryBlocks) throws CDIException { for (int i = 0; i < memoryBlocks.length; i++) { removeBlock(memoryBlocks[i]); } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/70c0a2d6aec15feb866155c75b4f8814c94fe47a/MemoryManager.java/buggy/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/MemoryManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
6450,
12,
2871,
2565,
6031,
1768,
8526,
3778,
6450,
13,
1216,
385,
2565,
503,
288,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3778,
6450,
18,
2469,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
6450,
12,
2871,
2565,
6031,
1768,
8526,
3778,
6450,
13,
1216,
385,
2565,
503,
288,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
3778,
6450,
18,
2469,
31,
... |
parameter_declaration(); label_19: while (true) { if (jj_2_79(2)) { ; } else { break label_19; } jj_consume_token(COMMA); parameter_declaration(); } | parameter_declaration(); label_19: while (true) { if (jj_2_79(2)) { ; } else { break label_19; } jj_consume_token(COMMA); parameter_declaration(); | static final public void parameter_declaration_list() throws ParseException { parameter_declaration(); label_19: while (true) { if (jj_2_79(2)) { ; } else { break label_19; } jj_consume_token(COMMA); parameter_declaration(); } } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
1071,
918,
1569,
67,
22448,
67,
1098,
1435,
1216,
10616,
288,
3639,
1569,
67,
22448,
5621,
3639,
1433,
67,
3657,
30,
3639,
1323,
261,
3767,
13,
288,
5411,
309,
261,
78,
78,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
1071,
918,
1569,
67,
22448,
67,
1098,
1435,
1216,
10616,
288,
3639,
1569,
67,
22448,
5621,
3639,
1433,
67,
3657,
30,
3639,
1323,
261,
3767,
13,
288,
5411,
309,
261,
78,
78,
67... |
RevealHidden rh = new RevealHidden(); | RevealHidden rh = new RevealHidden(); | public WebScarab(String[] args) { initComponents(); // capture STDOUT and STDERR to a TextArea System.setOut(redirectOutput(stdoutTextArea, System.out)); System.setErr(redirectOutput(stderrTextArea, System.err)); // create the framework _framework = new Framework(); // load the properties _prop = Preferences.getPreferences(); // load the conversation log GUI plugin addPlugin(new ConversationLog(_framework)); // load the TreeView GUI plugin addPlugin(new URLTreePanel(_framework)); // create the plugins, and their GUI's // Proxy plugin Proxy proxy = new Proxy(_framework); _framework.addPlugin(proxy); // load the proxy modules ManualEdit me = new ManualEdit(); proxy.addPlugin(me); RevealHidden rh = new RevealHidden(); proxy.addPlugin(rh); BrowserCache bc = new BrowserCache(); proxy.addPlugin(bc); CookieTracker ct = new CookieTracker(proxy.getCookieJar()); proxy.addPlugin(ct); // create the proxy GUI panels ProxyPanel proxyPanel = new ProxyPanel(proxy); proxyPanel.addPlugin(new ManualEditPanel(me)); proxyPanel.addPlugin(new MiscPanel(rh, bc, ct)); addPlugin(proxyPanel); // Spider plugin Spider spider = new Spider(_framework); _framework.addPlugin(spider); addPlugin(new SpiderPanel(spider)); // ManualRequest Plugin ManualRequest manualrequest = new ManualRequest(_framework); _framework.addPlugin(manualrequest); addPlugin(new ManualRequestPanel(manualrequest)); if (args != null && args.length ==1) { try { if (FileSystemStore.isExistingSession(args[0])) { FileSystemStore store = new FileSystemStore(args[0]); _framework.setSessionStore(store); } else { System.err.println("No session found in " + args[0]); } } catch (StoreException se) { // pop up an alert dialog box or something System.err.println("Error loading session : " + se); } } else { // This could/should be done as a pop-up alert, or a File/Open or File/New dialog? System.out.println("Data will not be saved unless you create or open a session"); } } | 8554 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8554/3ebea7ac31ac48e7c305fa8635f5721dca828c7b/WebScarab.java/clean/src/org/owasp/webscarab/ui/swing/WebScarab.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2999,
1541,
297,
378,
12,
780,
8526,
833,
13,
288,
3639,
1208,
7171,
5621,
7734,
368,
7477,
19331,
471,
30155,
358,
279,
3867,
5484,
3639,
2332,
18,
542,
1182,
12,
7590,
1447,
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,
2999,
1541,
297,
378,
12,
780,
8526,
833,
13,
288,
3639,
1208,
7171,
5621,
7734,
368,
7477,
19331,
471,
30155,
358,
279,
3867,
5484,
3639,
2332,
18,
542,
1182,
12,
7590,
1447,
12,
... |
if (contentProvider != null && contentProvider instanceof IMementoAware) | if (contentProvider != null && contentProvider instanceof IMementoAware) { | public void saveState(IMemento aMemento) { if (contentProvider != null && contentProvider instanceof IMementoAware) ((IMementoAware) contentProvider).saveState(aMemento); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/SafeDelegateTreeContentProvider.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/extensions/SafeDelegateTreeContentProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1923,
1119,
12,
3445,
820,
83,
279,
49,
820,
83,
13,
288,
202,
202,
430,
261,
1745,
2249,
480,
446,
597,
913,
2249,
1276,
6246,
820,
83,
10155,
13,
1082,
202,
12443,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1923,
1119,
12,
3445,
820,
83,
279,
49,
820,
83,
13,
288,
202,
202,
430,
261,
1745,
2249,
480,
446,
597,
913,
2249,
1276,
6246,
820,
83,
10155,
13,
1082,
202,
12443,
34... |
ParameterUtils.createParameterMapping(rawQueryString, parameterList, tds); | ParameterUtils.createParameterMapping( rawQueryString, parameterList, tds, false); | public boolean execute(Tds tds) throws SQLException { closeResults(false); lastOutParam = -1; // First make sure the caller has filled in all the parameters. ParameterUtils.verifyThatParametersAreSet(parameterList); // Setup the parameter native types and maximum sizes ParameterUtils.createParameterMapping(rawQueryString, parameterList, tds); // Execute the stored procedure return internalExecuteCall(procedureName, parameterList, parameterList, tds, warningChain); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/bd056ada6e8a36731645ccb0b4cbfd59e4e6bcfa/CallableStatement_base.java/clean/src/main/net/sourceforge/jtds/jdbc/CallableStatement_base.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1836,
12,
56,
2377,
268,
2377,
13,
1216,
6483,
288,
3639,
1746,
3447,
12,
5743,
1769,
3639,
1142,
1182,
786,
273,
300,
21,
31,
3639,
368,
5783,
1221,
3071,
326,
4894,
711,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1836,
12,
56,
2377,
268,
2377,
13,
1216,
6483,
288,
3639,
1746,
3447,
12,
5743,
1769,
3639,
1142,
1182,
786,
273,
300,
21,
31,
3639,
368,
5783,
1221,
3071,
326,
4894,
711,
6... |
setProperty( OdaDataSource.EXTENSION_ID_PROP, | setProperty( IOdaExtendableElementModel.EXTENSION_ID_PROP, | CompatibleOdaDriverPropertyStructureListState( ModuleParserHandler theHandler, DesignElement element ) { super( theHandler, element ); setProperty( OdaDataSource.EXTENSION_ID_PROP, "org.eclipse.birt.report.data.oda.jdbc" ); //$NON-NLS-1$ } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d802c33711e0d111551ae23575895cd060f085b6/CompatibleOdaDriverPropertyStructureListState.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/CompatibleOdaDriverPropertyStructureListState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
14599,
51,
2414,
4668,
1396,
6999,
682,
1119,
12,
1082,
202,
3120,
2678,
1503,
326,
1503,
16,
29703,
1046,
930,
262,
202,
95,
202,
202,
9565,
12,
326,
1503,
16,
930,
11272,
202,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
14599,
51,
2414,
4668,
1396,
6999,
682,
1119,
12,
1082,
202,
3120,
2678,
1503,
326,
1503,
16,
29703,
1046,
930,
262,
202,
95,
202,
202,
9565,
12,
326,
1503,
16,
930,
11272,
202,
20... |
case DOMBuilderFilter.FILTER_REJECT:{ | case DOMParserFilter.FILTER_REJECT:{ | public void endCDATA(Augmentations augs) throws XNIException { fInCDATASection = false; if (!fDeferNodeExpansion) { if (fFilterReject) { return; } if (fCurrentCDATASection !=null) { if (fDOMFilter !=null && (fDOMFilter.getWhatToShow() & NodeFilter.SHOW_CDATA_SECTION)!= 0) { short code = fDOMFilter.acceptNode(fCurrentCDATASection); switch (code) { case DOMBuilderFilter.FILTER_INTERRUPT:{ throw new RuntimeException("The normal processing of the document was interrupted."); } case DOMBuilderFilter.FILTER_REJECT:{ // fall through to SKIP since CDATA section has no children. } case DOMBuilderFilter.FILTER_SKIP: { Node parent = fCurrentNode.getParentNode(); parent.removeChild(fCurrentCDATASection); fCurrentNode = parent; return; } default: { // accept node } } } fCurrentNode = fCurrentNode.getParentNode(); fCurrentCDATASection = null; } } else { if (fCurrentCDATASectionIndex !=-1) { fCurrentNodeIndex = fDeferredDocumentImpl.getParentNode(fCurrentNodeIndex, false); fCurrentCDATASectionIndex = -1; } } } // endCDATA() | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/9bda70e5d1a3de0d4f68e6b0ca4e6f8790269c9e/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
679,
18375,
12,
37,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
284,
382,
10160,
789,
3033,
794,
273,
629,
31,
3639,
309,
16051,
74,
758,
586,
907,
2966,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
18375,
12,
37,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
284,
382,
10160,
789,
3033,
794,
273,
629,
31,
3639,
309,
16051,
74,
758,
586,
907,
2966,
... |
return me.getKey().equals(getKey()) && me.getValue().equals(getValue()); | Object key = me.getKey(); Object value = me.getValue(); if (key == null) { return false; } if (value == null) { if (getValue() != null) { return false; } else { return key.equals(getKey()); } } return key.equals(getKey()) && value.equals(getValue()); | public boolean equals(Object obj) { if ((obj != null) && obj instanceof Entry) { Entry me = (Entry) obj; return me.getKey().equals(getKey()) && me.getValue().equals(getValue()); } return false; } | 22725 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22725/5bb760fe01957dff1107eb60a4b60b11b2d6a9e9/RequestMap.java/buggy/src/java/com/opensymphony/webwork/dispatcher/RequestMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
1250,
1606,
12,
921,
1081,
13,
288,
13491,
309,
14015,
2603,
480,
446,
13,
597,
1081,
1276,
3841,
13,
288,
18701,
3841,
1791,
273,
261,
1622,
13,
1081,
31,
18701,
1033,
498,
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,
5397,
1071,
1250,
1606,
12,
921,
1081,
13,
288,
13491,
309,
14015,
2603,
480,
446,
13,
597,
1081,
1276,
3841,
13,
288,
18701,
3841,
1791,
273,
261,
1622,
13,
1081,
31,
18701,
1033,
498,
273,
... |
if (ValidationUtils.isQName(name)) { | if ((name == null) || (ValidationUtils.isQName(name))) { | public void setName(String name) { if (ValidationUtils.isQName(name)) { _name = name; } else { String err = "error: '" + name + "' is not a valid QName."; throw new IllegalArgumentException(err); } } //-- setName | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/04ff95403f26dc672361a5143fadc18919b4ccdd/ElementDecl.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/xml/schema/ElementDecl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6788,
12,
780,
508,
13,
288,
540,
309,
14015,
529,
422,
446,
13,
747,
261,
4354,
1989,
18,
291,
13688,
12,
529,
20349,
288,
5411,
389,
529,
273,
508,
31,
3639,
289,
3639,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6788,
12,
780,
508,
13,
288,
540,
309,
14015,
529,
422,
446,
13,
747,
261,
4354,
1989,
18,
291,
13688,
12,
529,
20349,
288,
5411,
389,
529,
273,
508,
31,
3639,
289,
3639,
4... |
return RubyArray.newArray(getRuntime(), this); | return getRuntime().newArray(this); | public RubyArray to_a() { return RubyArray.newArray(getRuntime(), this); } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyObject.java/clean/src/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
358,
67,
69,
1435,
288,
3639,
327,
18814,
7675,
2704,
1076,
12,
2211,
1769,
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,
19817,
1076,
358,
67,
69,
1435,
288,
3639,
327,
18814,
7675,
2704,
1076,
12,
2211,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if (((ITask) element).isCategory()) { return null; } else if (element instanceof BugzillaTask) { | if (element instanceof BugzillaTask) { | public Image getColumnImage(Object element, int columnIndex) { if (!(element instanceof ITask)) { return null; } if (columnIndex == 0) { if (((ITask) element).isCategory()) { return null; } if (((ITask) element).isActive()) { return MylarImages.getImage(MylarImages.TASK_ACTIVE); } else { return MylarImages.getImage(MylarImages.TASK_INACTIVE); } } else if (columnIndex == 1) { if (((ITask) element).isCategory()) { return null; // return MylarImages.getImage(MylarImages.CATEGORY); } else if (element instanceof BugzillaTask) { return MylarImages.getImage(MylarImages.TASK_BUGZILLA); } else { return MylarImages.getImage(MylarImages.TASK); } } else { return null; } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/9fa4576e36e0ed40d7b1e9e3379eb977186a3224/TaskListLabelProvider.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListLabelProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3421,
6716,
2040,
12,
921,
930,
16,
509,
14882,
13,
288,
7734,
309,
16051,
12,
2956,
1276,
467,
2174,
3719,
288,
1850,
202,
2463,
446,
31,
3639,
289,
3639,
309,
261,
2827,
1016,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3421,
6716,
2040,
12,
921,
930,
16,
509,
14882,
13,
288,
7734,
309,
16051,
12,
2956,
1276,
467,
2174,
3719,
288,
1850,
202,
2463,
446,
31,
3639,
289,
3639,
309,
261,
2827,
1016,
4... |
int red, int green, int blue, int alpha, boolean active) | int red, int green, int blue, int alpha, boolean active, int family, double curveCoefficient) | public ChannelBindings(int index, double inputStart, double inputEnd, int red, int green, int blue, int alpha, boolean active) { this.index = index; setInputWindow(inputStart, inputEnd); rgba = new int[4]; setRGBA(red, green, blue, alpha); this.active = active; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/ChannelBindings.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/defs/ChannelBindings.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5307,
10497,
12,
474,
770,
16,
1645,
810,
1685,
16,
1645,
810,
1638,
16,
6862,
1082,
202,
474,
1755,
16,
509,
10004,
16,
509,
8024,
16,
509,
4190,
16,
6862,
1082,
282,
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,
5307,
10497,
12,
474,
770,
16,
1645,
810,
1685,
16,
1645,
810,
1638,
16,
6862,
1082,
202,
474,
1755,
16,
509,
10004,
16,
509,
8024,
16,
509,
4190,
16,
6862,
1082,
282,
202,
... |
err = parser.getOtherMessages(true); assertTrue("expected errors for missing jars", null != err); | public void testDefaultClasspathAndTargetCombo() throws InvalidInputException { String ENTRY = "1.jar;2.jar"; final String classpath = System.getProperty("java.class.path"); try { System.setProperty("java.class.path", ENTRY); // see finally below AjBuildConfig config = parser.genBuildConfig(new String[] { }, messageWriter); String err = parser.getOtherMessages(true); //!!!assertTrue(err, null == err); assertTrue( config.getClasspath().toString(), config.getClasspath().contains("1.jar")); assertTrue( config.getClasspath().toString(), config.getClasspath().contains("2.jar")); config = parser.genBuildConfig(new String[] { "-1.3" }, messageWriter); err = parser.getOtherMessages(true); //!!!assertTrue(err, null == err); assertTrue( config.getClasspath().toString(), config.getClasspath().contains("1.jar")); assertTrue( config.getClasspath().toString(), config.getClasspath().contains("2.jar")); config = parser.genBuildConfig(new String[] { "-1.3" }, messageWriter); err = parser.getOtherMessages(true); //!!!assertTrue(err, null == err); assertTrue( config.getClasspath().toString(), config.getClasspath().contains("1.jar")); assertTrue( config.getClasspath().toString(), config.getClasspath().contains("2.jar")); config = parser.genBuildConfig(new String[] { "-classpath", ENTRY, "-1.4" }, messageWriter); err = parser.getOtherMessages(true); assertTrue("expected errors for missing jars", null != err); assertTrue( config.getClasspath().toString(), config.getClasspath().contains("1.jar")); assertTrue( config.getClasspath().toString(), config.getClasspath().contains("2.jar")); } finally { // do finally to avoid messing up classpath for other tests System.setProperty("java.class.path", classpath); String setPath = System.getProperty("java.class.path"); String m = "other tests will fail - classpath not reset"; assertEquals(m, classpath, setPath); } } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/812c943083102add6057f7a057effd28dd8e3363/BuildArgParserTestCase.java/clean/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/ajc/BuildArgParserTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1868,
17461,
1876,
2326,
16156,
1435,
1216,
31989,
288,
202,
202,
780,
25516,
273,
315,
21,
18,
11930,
31,
22,
18,
11930,
14432,
202,
202,
6385,
514,
10006,
273,
2332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1868,
17461,
1876,
2326,
16156,
1435,
1216,
31989,
288,
202,
202,
780,
25516,
273,
315,
21,
18,
11930,
31,
22,
18,
11930,
14432,
202,
202,
6385,
514,
10006,
273,
2332... | |
return new RubyClass(ruby, ruby.getClasses().getClassClass(), superClass); | return new RubyClass(ruby, superClass); | public static RubyClass m_newClass(Ruby ruby, RubyClass superClass) { return new RubyClass(ruby, ruby.getClasses().getClassClass(), superClass); } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/03950522a75c28f406bd4cb011cb1916a662366d/RubyClass.java/buggy/org/jruby/RubyClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
312,
67,
2704,
797,
12,
54,
10340,
22155,
16,
19817,
797,
18846,
13,
288,
3639,
327,
394,
19817,
797,
12,
27768,
16,
18846,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
312,
67,
2704,
797,
12,
54,
10340,
22155,
16,
19817,
797,
18846,
13,
288,
3639,
327,
394,
19817,
797,
12,
27768,
16,
18846,
1769,
565,
289,
2,
-100,
-100,
-100,
-... |
Point mouseOnScreen = (Point) screenTopLeft.clone(); mouseOnScreen.translate(thisMouse.x,thisMouse.y); return mouseOnScreen; | return thisMouse; | private Point getMouseOnScreen(MouseEvent e){ Point thisMouse = e.getPoint(); // get parent components locations Component compo = e.getComponent(); Point screenTopLeft = compo.getLocationOnScreen(); Point mouseOnScreen = (Point) screenTopLeft.clone(); mouseOnScreen.translate(thisMouse.x,thisMouse.y); return mouseOnScreen; } | 52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/74371ea794edb37fff0e159f71d8b359c93628d6/AbstractPopupFrame.java/buggy/src/org/biojava/spice/gui/AbstractPopupFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4686,
2108,
3793,
1398,
7956,
12,
9186,
1133,
425,
15329,
3639,
4686,
333,
9186,
273,
425,
18,
588,
2148,
5621,
7734,
368,
1377,
336,
982,
4085,
7838,
3639,
5435,
1161,
83,
273,
425... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4686,
2108,
3793,
1398,
7956,
12,
9186,
1133,
425,
15329,
3639,
4686,
333,
9186,
273,
425,
18,
588,
2148,
5621,
7734,
368,
1377,
336,
982,
4085,
7838,
3639,
5435,
1161,
83,
273,
425... |
new ImageIcon(getClass().getResource("images/folder-small.gif")); | new ImageIcon("ui/images/folder-small.gif"); | private UIFactory() { fFolderIcon = new ImageIcon(getClass().getResource("images/folder-small.gif")); fNewsgroupIcon = new ImageIcon(getClass().getResource("images/newsgroup-small.gif")); fLocalStoreIcon = new ImageIcon(getClass().getResource("images/storeLocal-small.gif")); fRemoteStoreIcon = new ImageIcon(getClass().getResource("images/storeRemote-small.gif")); fInboxIcon = new ImageIcon(getClass().getResource("images/inbox-small.gif")); fConnectedIcon = new ImageIcon(getClass().getResource("images/connected-small.gif")); } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/UIFactory.java/clean/grendel/sources/grendel/ui/UIFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
6484,
1733,
1435,
288,
565,
284,
3899,
5554,
273,
1377,
394,
3421,
5554,
2932,
4881,
19,
7369,
19,
5609,
17,
12019,
18,
13905,
8863,
565,
284,
1908,
1055,
656,
5554,
273,
1377,
394,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
6484,
1733,
1435,
288,
565,
284,
3899,
5554,
273,
1377,
394,
3421,
5554,
2932,
4881,
19,
7369,
19,
5609,
17,
12019,
18,
13905,
8863,
565,
284,
1908,
1055,
656,
5554,
273,
1377,
394,... |
if (person.hasRole(RoleType.RESEARCHER)) { if(!result.hasAnyResultParticipations() || result.hasPersonParticipation(person)) { return true; } | if (person.hasRole(RoleType.RESEARCHER) && result.hasPersonParticipation(person)) { return true; | public boolean evaluate(Result result) { if (person.hasRole(RoleType.RESEARCHER)) { //if we are creating a new object there are no participations yet. //if we are changing an existing object then person must be a participator. if(!result.hasAnyResultParticipations() || result.hasPersonParticipation(person)) { return true; } } return false; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/445b948bf803479e7e33ce074a460db274c1e120/ResultPredicates.java/clean/src/net/sourceforge/fenixedu/predicates/ResultPredicates.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
5956,
12,
1253,
563,
13,
288,
202,
565,
309,
261,
12479,
18,
5332,
2996,
12,
2996,
559,
18,
862,
17251,
654,
3719,
288,
202,
202,
759,
430,
732,
854,
4979,
279,
394,
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,
225,
202,
482,
1250,
5956,
12,
1253,
563,
13,
288,
202,
565,
309,
261,
12479,
18,
5332,
2996,
12,
2996,
559,
18,
862,
17251,
654,
3719,
288,
202,
202,
759,
430,
732,
854,
4979,
279,
394,
7... |
generator.produceHtml(sourceFile, realHtmlFile); | generator.produceHtml(sourceFile.getAbsolutePath(), realHtmlFile); | private void makeHtmlFile(String sourceFile, String fileName) { request.setAttribute("source_file", sourceFile); String htmlFile = SRCHTMLDIRNAME + File.separator + fileName + ".html"; request.setAttribute("html_file", htmlFile); String realHtmlFile = srcHtmlDir + File.separator + fileName + ".html"; if (! (new File(realHtmlFile).exists()) ) { generator.produceHtml(sourceFile, realHtmlFile); } } | 6394 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6394/8a9a2202d029aaf3c9b07d5dd02e3ea0cf221fd5/ClassSourcePage.java/buggy/src/org/ashkelon/pages/ClassSourcePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1221,
4353,
812,
12,
780,
16338,
16,
514,
3968,
13,
282,
288,
1377,
590,
18,
542,
1499,
2932,
3168,
67,
768,
3113,
16338,
1769,
1377,
514,
1729,
812,
273,
19145,
1792,
2838,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1221,
4353,
812,
12,
780,
16338,
16,
514,
3968,
13,
282,
288,
1377,
590,
18,
542,
1499,
2932,
3168,
67,
768,
3113,
16338,
1769,
1377,
514,
1729,
812,
273,
19145,
1792,
2838,
... |
final String[] res = restrict( files, srcDir, destDir, mapper ); | final String[] res = restrict( files, srcDir, destDir, mapper, context ); | public File[] restrictAsFiles( final String[] files, final File srcDir, final File destDir, final FileNameMapper mapper ) throws TaskException { final String[] res = restrict( files, srcDir, destDir, mapper ); final File[] result = new File[ res.length ]; for( int i = 0; i < res.length; i++ ) { result[ i ] = new File( srcDir, res[ i ] ); } return result; } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/dd4d75e8369456aff82ac26432a7396fcee47fd5/SourceFileScanner.java/buggy/proposal/myrmidon/src/main/org/apache/tools/ant/types/SourceFileScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1387,
8526,
13108,
1463,
2697,
12,
727,
514,
8526,
1390,
16,
4766,
282,
727,
1387,
30585,
16,
4766,
282,
727,
1387,
26231,
16,
4766,
282,
727,
25075,
4597,
5815,
262,
3639,
1216,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1387,
8526,
13108,
1463,
2697,
12,
727,
514,
8526,
1390,
16,
4766,
282,
727,
1387,
30585,
16,
4766,
282,
727,
1387,
26231,
16,
4766,
282,
727,
25075,
4597,
5815,
262,
3639,
1216,
38... |
rs.setLexPEnd(0); | rs.setLexPEnd(0);*/ | public Node compileFile(String f, RubyObject file, int start) { rs.setLexFileIo(true); rs.setLexInput(file); rs.setLexP(0); rs.setLexPEnd(0); ruby.setSourceLine(start - 1); return yycompile(f, start); } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyParser.java/clean/org/jruby/parser/DefaultRubyParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
4074,
812,
12,
780,
284,
16,
19817,
921,
585,
16,
509,
787,
13,
288,
3639,
3597,
18,
542,
14756,
812,
15963,
12,
3767,
1769,
3639,
3597,
18,
542,
14756,
1210,
12,
768,
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,
1071,
2029,
4074,
812,
12,
780,
284,
16,
19817,
921,
585,
16,
509,
787,
13,
288,
3639,
3597,
18,
542,
14756,
812,
15963,
12,
3767,
1769,
3639,
3597,
18,
542,
14756,
1210,
12,
768,
1769,... |
log.finest("e1 = " + e1); | if (Configuration.DEBUG) log.fine("e1 = " + e1); | public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException { log.entering(this.getClass().getName(), "getPrivateKey", alias); Key result = null; if (containsAlias(alias)) { PasswordAuthenticatedEntry e1 = null; for (Iterator it = get(alias).iterator(); it.hasNext();) { Entry e = (Entry) it.next(); log.finest("Entry: " + e); if (e instanceof PasswordAuthenticatedEntry) { e1 = (PasswordAuthenticatedEntry) e; break; } } log.finest("e1 = " + e1); if (e1 != null) { try { e1.verify(password); } catch (Exception e) { log.throwing(this.getClass().getName(), "getPrivateKey", e); throw new UnrecoverableKeyException("authentication failed"); } PasswordEncryptedEntry e2 = null; for (Iterator it = e1.getEntries().iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof PasswordEncryptedEntry) { e2 = (PasswordEncryptedEntry) e; break; } } if (e2 != null) { try { e2.decrypt(password); } catch (Exception e) { log.throwing(this.getClass().getName(), "getPrivateKey", e); throw new UnrecoverableKeyException("decryption failed"); } for (Iterator it = e2.get(alias).iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof PrivateKeyEntry) { result = ((PrivateKeyEntry) e).getKey(); break; } } } } } log.exiting(this.getClass().getName(), "getPrivateKey", result == null ? "null" : result.getClass().getName()); return result; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/8ace3af577b4314374a3cc74fdeae04a0733f7de/GnuPrivateKeyring.java/clean/gnu/javax/crypto/keyring/GnuPrivateKeyring.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1929,
27914,
653,
12,
780,
2308,
16,
1149,
8526,
2201,
13,
1377,
1216,
1351,
25864,
21914,
225,
288,
565,
613,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1929,
27914,
653,
12,
780,
2308,
16,
1149,
8526,
2201,
13,
1377,
1216,
1351,
25864,
21914,
225,
288,
565,
613,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
588,
... |
logger.debug( | if (debug) logger.debug( | protected void storeAtomData() { logger.debug("No atoms: " + atomCounter); if (atomCounter == 0) { return; } boolean hasID = false; boolean has3D = false; boolean has3Dfract = false; boolean has2D = false; boolean hasFormalCharge = false; boolean hasPartialCharge = false; boolean hasHCounts = false; boolean hasSymbols = false; boolean hasTitles = false; boolean hasIsotopes = false; boolean hasDictRefs = false; if (elid.size() == atomCounter) { hasID = true; } else { logger.debug( "No atom ids: " + elid.size() + " != " + atomCounter); } if (elsym.size() == atomCounter) { hasSymbols = true; } else { logger.debug( "No atom symbols: " + elsym.size() + " != " + atomCounter); } if (eltitles.size() == atomCounter) { hasTitles = true; } else { logger.debug( "No atom titles: " + eltitles.size() + " != " + atomCounter); } if ((x3.size() == atomCounter) && (y3.size() == atomCounter) && (z3.size() == atomCounter)) { has3D = true; } else { logger.debug( "No 3D info: " + x3.size() + " " + y3.size() + " " + z3.size() + " != " + atomCounter); } if ((xfract.size() == atomCounter) && (yfract.size() == atomCounter) && (zfract.size() == atomCounter)) { has3Dfract = true; } else { logger.debug( "No 3D fractional info: " + xfract.size() + " " + yfract.size() + " " + zfract.size() + " != " + atomCounter); } if ((x2.size() == atomCounter) && (y2.size() == atomCounter)) { has2D = true; } else { logger.debug( "No 2D info: " + x2.size() + " " + y2.size() + " != " + atomCounter); } if (formalCharges.size() == atomCounter) { hasFormalCharge = true; } else { logger.debug( "No formal Charge info: " + formalCharges.size() + " != " + atomCounter); } if (partialCharges.size() == atomCounter) { hasPartialCharge = true; } else { logger.debug( "No partial Charge info: " + partialCharges.size() + " != " + atomCounter); } if (hCounts.size() == atomCounter) { hasHCounts = true; } else { logger.debug( "No hydrogen Count info: " + hCounts.size() + " != " + atomCounter); } if (atomDictRefs.size() == atomCounter) { hasDictRefs = true; } else { logger.debug( "No dictRef info: " + atomDictRefs.size() + " != " + atomCounter); } if (isotope.size() == atomCounter) { hasIsotopes = true; } else { logger.debug( "No isotope info: " + isotope.size() + " != " + atomCounter); } for (int i = 0; i < atomCounter; i++) { logger.info("Storing atom: " + i); cdo.startObject("Atom"); if (hasID) { cdo.setObjectProperty("Atom", "id", (String)elid.elementAt(i)); } if (hasTitles) { if (hasSymbols) { String symbol = (String)elsym.elementAt(i); if (symbol.equals("Du") || symbol.equals("Dummy")) { cdo.setObjectProperty("PseudoAtom", "label", (String)eltitles.elementAt(i)); } else { cdo.setObjectProperty("Atom", "title", (String)eltitles.elementAt(i)); } } else { cdo.setObjectProperty("Atom", "title", (String)eltitles.elementAt(i)); } } // store optional atom properties if (hasSymbols) { String symbol = (String)elsym.elementAt(i); if (symbol.equals("Du") || symbol.equals("Dummy")) { symbol = "R"; } cdo.setObjectProperty("Atom", "type", symbol); } if (has3D) { cdo.setObjectProperty("Atom", "x3", (String)x3.elementAt(i)); cdo.setObjectProperty("Atom", "y3", (String)y3.elementAt(i)); cdo.setObjectProperty("Atom", "z3", (String)z3.elementAt(i)); } if (has3Dfract) { // ok, need to convert fractional into eucledian coordinates double[] coord = new double[3]; coord[0] = Double.parseDouble((String)xfract.elementAt(i)); coord[1] = Double.parseDouble((String)yfract.elementAt(i)); coord[2] = Double.parseDouble((String)zfract.elementAt(i)); if (!cartesianAxesSet) { logger.error("Cannot convert fractional atomic coord to cartesian if axes are not known"); } else { double[] cartCoord = CrystalGeometryTools.fractionalToCartesian(a,b,c,coord); cdo.setObjectProperty("Atom", "x3", new Double(cartCoord[0]).toString()); cdo.setObjectProperty("Atom", "y3", new Double(cartCoord[1]).toString()); cdo.setObjectProperty("Atom", "z3", new Double(cartCoord[2]).toString()); } } if (hasFormalCharge) { cdo.setObjectProperty("Atom", "formalCharge", (String)formalCharges.elementAt(i)); } if (hasPartialCharge) { logger.debug("Storing partial atomic charge..."); cdo.setObjectProperty("Atom", "partialCharge", (String)partialCharges.elementAt(i)); } if (hasHCounts) { cdo.setObjectProperty("Atom", "hydrogenCount", (String)hCounts.elementAt(i)); } if (has2D) { if (x2.elementAt(i) != null) cdo.setObjectProperty("Atom", "x2", (String)x2.elementAt(i)); if (y2.elementAt(i) != null) cdo.setObjectProperty("Atom", "y2", (String)y2.elementAt(i)); } if (hasDictRefs) { cdo.setObjectProperty("Atom", "dictRef", (String)atomDictRefs.elementAt(i)); } if (hasIsotopes) { cdo.setObjectProperty("Atom", "massNumber", (String)isotope.elementAt(i)); } cdo.endObject("Atom"); } if (elid.size() > 0) { // assume this is the current working list bondElid = elid; } newAtomData(); } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/85b1def8500569c307eef07a73f9886549ea9364/CMLCoreModule.java/buggy/src/org/openscience/cdk/io/cml/CMLCoreModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1707,
3641,
751,
1435,
288,
3639,
1194,
18,
4148,
2932,
2279,
9006,
30,
315,
397,
3179,
4789,
1769,
3639,
309,
261,
7466,
4789,
422,
374,
13,
288,
5411,
327,
31,
3639,
289,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1707,
3641,
751,
1435,
288,
3639,
1194,
18,
4148,
2932,
2279,
9006,
30,
315,
397,
3179,
4789,
1769,
3639,
309,
261,
7466,
4789,
422,
374,
13,
288,
5411,
327,
31,
3639,
289,
3... |
planeWidgetY.SetInteractor(renWin.getIren()); | planeWidgetY.SetInteractor(getIren()); | public void setImageData(vtkImageData id) { //The shared picker enables us to use 3 planes at one time //and gets the picking order right vtkCellPicker picker = new vtkCellPicker(); picker.SetTolerance(0.005); //The 3 image plane widgets are used to probe the dataset. vtkImagePlaneWidget planeWidgetX = new vtkImagePlaneWidget(); planeWidgetX.DisplayTextOn(); planeWidgetX.SetInput(id); planeWidgetX.SetInteractor(renWin.getIren()); planeWidgetX.SetPlaneOrientationToXAxes(); planeWidgetX.SetSliceIndex(32); planeWidgetX.SetPicker(picker); planeWidgetX.SetKeyPressActivationValue('x'); planeWidgetX.GetPlaneProperty().SetColor(1, 0, 0); planeWidgetX.On(); vtkImagePlaneWidget planeWidgetY = new vtkImagePlaneWidget(); planeWidgetY.DisplayTextOn(); planeWidgetY.SetInput(id); planeWidgetY.SetInteractor(renWin.getIren()); planeWidgetY.SetPlaneOrientationToYAxes(); planeWidgetY.SetSliceIndex(32); planeWidgetY.SetPicker(picker); planeWidgetY.SetKeyPressActivationValue('y'); planeWidgetY.GetPlaneProperty().SetColor(1, 1, 0); planeWidgetY.SetLookupTable(planeWidgetX.GetLookupTable()); planeWidgetY.On(); //for the z-slice, turn off texture interpolation: //interpolation is now nearest neighbour, to demonstrate //cross-hair cursor snapping to pixel centers vtkImagePlaneWidget planeWidgetZ = new vtkImagePlaneWidget(); planeWidgetZ.DisplayTextOn(); planeWidgetZ.SetInput(id); planeWidgetZ.TextureInterpolateOff(); planeWidgetZ.SetInteractor(renWin.getIren()); planeWidgetZ.SetPlaneOrientationToZAxes(); planeWidgetZ.SetSliceIndex(46); planeWidgetZ.SetPicker(picker); planeWidgetZ.SetKeyPressActivationValue('z'); planeWidgetZ.GetPlaneProperty().SetColor (0, 0, 1); planeWidgetZ.SetLookupTable(planeWidgetX.GetLookupTable()); planeWidgetZ.On(); //An outline is shown for context. vtkOutlineFilter outline = new vtkOutlineFilter(); outline.SetInput (id); vtkPolyDataMapper outlineMapper = new vtkPolyDataMapper(); outlineMapper.SetInput ( outline.GetOutput() ); vtkActor outlineActor = new vtkActor(); outlineActor.SetMapper(outlineMapper); renWin.GetRenderer().AddActor(outlineActor); //Add the outline actor to the renderer, set the background and size renWin.GetRenderer().GetCullers().RemoveAllItems(); renWin.GetRenderer().SetBackground(0.1, 0.1, 0.2); } | 47326 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47326/a498c4a24d08be9a14ecb583bfc09eb98abb52e8/ImagePlaneWidget.java/buggy/Wrapping/Java/ImagePlaneWidget.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
18893,
751,
12,
11734,
79,
2040,
751,
612,
13,
288,
565,
368,
1986,
5116,
18141,
19808,
584,
358,
999,
890,
31634,
622,
1245,
813,
565,
368,
464,
5571,
326,
6002,
310,
1353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
18893,
751,
12,
11734,
79,
2040,
751,
612,
13,
288,
565,
368,
1986,
5116,
18141,
19808,
584,
358,
999,
890,
31634,
622,
1245,
813,
565,
368,
464,
5571,
326,
6002,
310,
1353,
... |
private void initMetadata(String xml) { Vector elements = new Vector(); // first parse each element in the XML string while (xml.length() > 2) { String el = xml.substring(1, xml.indexOf(">")); xml = xml.substring(xml.indexOf(">") + 1); elements.add(el); } // the first element contains version information String token = (String) elements.get(0); String key = token.substring(0, token.indexOf("\"")); String value = token.substring(token.indexOf("\"") + 1, token.length()-1); metadata.put(key, value); int ndx = 1; int imageCounter = -2; int dimCounter = 0; int lutCounter = 0; while (ndx < elements.size()) { token = (String) elements.get(ndx); // only try to parse the element if we know it // contains a key/value pair if (token.indexOf("=") != -1) { while (token.length() > 2) { if (key.equals("Element Name")) { imageCounter++; dimCounter = 0; lutCounter = 0; } key = token.substring(0, token.indexOf("\"") - 1); value = token.substring(token.indexOf("\"") + 1, token.indexOf("\"", token.indexOf("\"") + 1)); key = key.trim(); value = value.trim(); if (key.equals("NumberOfElements")) { dims[imageCounter][dimCounter] = Integer.parseInt(value); dimCounter++; if (dimCounter == 6) dimCounter = 0; } if (key.equals("Resolution")) { int val = Integer.parseInt(value); if ((val % 8) != 0) val += (8 - (val % 8)); dims[imageCounter][5] = val; } if (key.equals("LUTName")) lutCounter++; if (lutCounter == 3) { dims[imageCounter][4] = lutCounter; lutCounter = 0; } token = token.substring(token.indexOf("\"", token.indexOf("\"") + 1) + 1); metadata.put(key + " (image " + imageCounter + ")", value); } } ndx++; } int originalNumImages = numImages; for (int i=1; i<=originalNumImages; i++) { if (dims[i-1][2] == 0) dims[i-1][2] = 1; if (dims[i-1][3] == 0) dims[i-1][3] = 1; numImages += ((dims[i-1][2]*dims[i-1][3]) - 1); } // initialize OME-XML if (ome != null) { String type = "int8"; switch (dims[dims.length - 1][5]) { case 12: type = "int16"; break; case 16: type = "int16"; break; case 32: type = "float"; break; } int z = 0; int t = 0; for (int i=0; i<dims.length; i++) { z += (dims[i][2] == 1) ? 0 : dims[i][2]; t += (dims[i][3] == 1) ? 0 : dims[i][3]; } if (t == 0) t++; if (z == 0) z++; while ((z*t) < numImages) { z++; } OMETools.setPixels(ome, new Integer(dims[dims.length - 1][0]), // SizeX new Integer(dims[dims.length - 1][1]), // SizeY new Integer(z), // SizeZ new Integer(1), // SizeC new Integer(t), // SizeT type, // PixelType new Boolean(!littleEndian), // BigEndian "XYZTC"); // DimensionOrder } } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/91859a26506b8a1d312b398da2c3ecd94e02fa60/LIFReader.java/buggy/loci/formats/LIFReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1208,
2277,
12,
780,
2025,
13,
288,
565,
5589,
2186,
273,
394,
5589,
5621,
565,
368,
1122,
1109,
1517,
930,
316,
326,
3167,
533,
565,
1323,
261,
2902,
18,
2469,
1435,
405,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1208,
2277,
12,
780,
2025,
13,
288,
565,
5589,
2186,
273,
394,
5589,
5621,
565,
368,
1122,
1109,
1517,
930,
316,
326,
3167,
533,
565,
1323,
261,
2902,
18,
2469,
1435,
405,
57... | ||
public static Object jsFunction_shift(Context cx, Scriptable thisObj, Object[] args, Function funOjb) | private static Object jsFunction_shift(Context cx, Scriptable thisObj, Object[] args) | public static Object jsFunction_shift(Context cx, Scriptable thisObj, Object[] args, Function funOjb) { Object result; double length = getLengthProperty(thisObj); if (length > 0) { long i = 0; length--; // Get the to-be-deleted property's value. result = getElem(thisObj, i); /* * Slide down the array above the first element. Leave i * set to point to the last element. */ if (length > 0) { for (i = 1; i <= length; i++) { Object temp = getElem(thisObj, i); setElem(thisObj, i - 1, temp); } } // We don't need to delete the last property, because // setLength does that for us. } else { result = Context.getUndefinedValue(); } ScriptRuntime.setProp(thisObj, "length", new Double(length), thisObj); return result; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeArray.java/buggy/js/rhino/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3828,
2083,
67,
4012,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
6647,
1033,
8526,
833,
16,
4284,
9831,
51,
10649,
13,
565,
288,
3639,
1033,
563,
31,
3639,
1645,
769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3828,
2083,
67,
4012,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
6647,
1033,
8526,
833,
16,
4284,
9831,
51,
10649,
13,
565,
288,
3639,
1033,
563,
31,
3639,
1645,
769,
... |
milestones = new ArrayList<TracMilestone>(values.size()); | data.milestones = new ArrayList<TracMilestone>(values.size()); | public void updateAttributes(IProgressMonitor monitor) throws TracException { monitor.beginTask("Updating attributes", IProgressMonitor.UNKNOWN); GetMethod method = connect(repositoryUrl + ITracClient.NEW_TICKET_URL); try { BufferedReader reader = new BufferedReader(new InputStreamReader(method.getResponseBodyAsStream(), ITracClient.CHARSET)); HtmlStreamTokenizer tokenizer = new HtmlStreamTokenizer(reader, null); for (Token token = tokenizer.nextToken(); token.getType() != Token.EOF; token = tokenizer.nextToken()) { if (monitor.isCanceled()) { throw new OperationCanceledException(); } if (token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.SELECT) { String name = tag.getAttribute("id"); if ("component".equals(name)) { List<String> values = getOptionValues(tokenizer); components = new ArrayList<TracComponent>(values.size()); for (String value : values) { components.add(new TracComponent(value)); } } else if ("milestone".equals(name)) { List<String> values = getOptionValues(tokenizer); milestones = new ArrayList<TracMilestone>(values.size()); for (String value : values) { milestones.add(new TracMilestone(value)); } } else if ("priority".equals(name)) { List<String> values = getOptionValues(tokenizer); priorities = new ArrayList<TracPriority>(values.size()); for (int i = 0; i < values.size(); i++) { priorities.add(new TracPriority(values.get(i), i + 1)); } } else if ("severity".equals(name)) { List<String> values = getOptionValues(tokenizer); severities = new ArrayList<TracSeverity>(values.size()); for (int i = 0; i < values.size(); i++) { severities.add(new TracSeverity(values.get(i), i + 1)); } } else if ("type".equals(name)) { List<String> values = getOptionValues(tokenizer); ticketTypes = new ArrayList<TracTicketType>(values.size()); for (int i = 0; i < values.size(); i++) { ticketTypes.add(new TracTicketType(values.get(i), i + 1)); } } else if ("version".equals(name)) { List<String> values = getOptionValues(tokenizer); versions = new ArrayList<TracVersion>(values.size()); for (String value : values) { versions.add(new TracVersion(value)); } } } } } ticketResolutions = new ArrayList<TracTicketResolution>(5); ticketResolutions.add(new TracTicketResolution("fixed", 1)); ticketResolutions.add(new TracTicketResolution("invalid", 2)); ticketResolutions.add(new TracTicketResolution("wontfix", 3)); ticketResolutions.add(new TracTicketResolution("duplicate", 4)); ticketResolutions.add(new TracTicketResolution("worksforme", 5)); ticketStatus = new ArrayList<TracTicketStatus>(4); ticketStatus.add(new TracTicketStatus("new", 1)); ticketStatus.add(new TracTicketStatus("assigned", 2)); ticketStatus.add(new TracTicketStatus("reopened", 3)); ticketStatus.add(new TracTicketStatus("closed", 4)); } catch (IOException e) { throw new TracException(e); } catch (ParseException e) { throw new TracException(e); } finally { method.releaseConnection(); } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/7a9e6a81b7f627eca343471254d8a45715c35e38/Trac09Client.java/clean/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/core/Trac09Client.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
2498,
12,
45,
5491,
7187,
6438,
13,
1216,
2197,
71,
503,
288,
202,
202,
10259,
18,
10086,
2174,
2932,
17858,
1677,
3113,
467,
5491,
7187,
18,
14737,
1769,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
2498,
12,
45,
5491,
7187,
6438,
13,
1216,
2197,
71,
503,
288,
202,
202,
10259,
18,
10086,
2174,
2932,
17858,
1677,
3113,
467,
5491,
7187,
18,
14737,
1769,
202,
202,
... |
new Object[] { attValue }, | new Object[] { attValue}, | private void validateDTDattribute(QName element, String attValue, XMLAttributeDecl attributeDecl) throws XNIException { switch (attributeDecl.simpleType.type) { case XMLSimpleType.TYPE_ENTITY: { // NOTE: Save this information because invalidStandaloneAttDef boolean isAlistAttribute = attributeDecl.simpleType.list; try { if (isAlistAttribute) { fValENTITIES.validate(attValue, null); } else { fValENTITY.validate(attValue, null); } } catch (InvalidDatatypeValueException ex) { String key = ex.getKeyIntoReporter(); fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, key, new Object[]{ ex.getMessage()}, XMLErrorReporter.SEVERITY_ERROR ); } break; } case XMLSimpleType.TYPE_NOTATION: case XMLSimpleType.TYPE_ENUMERATION: { boolean found = false; String [] enumVals = attributeDecl.simpleType.enumeration; if (enumVals == null) { found = false; } else for (int i = 0; i < enumVals.length; i++) { if (attValue == enumVals[i] || attValue.equals(enumVals[i])) { found = true; break; } } if (!found) { StringBuffer enumValueString = new StringBuffer(); if (enumVals != null) for (int i = 0; i < enumVals.length; i++) { enumValueString.append(enumVals[i]+" "); } fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "MSG_ATTRIBUTE_VALUE_NOT_IN_LIST", new Object[]{attributeDecl.name.rawname, attValue, enumValueString}, XMLErrorReporter.SEVERITY_ERROR); } break; } case XMLSimpleType.TYPE_ID: { try { fValID.validate(attValue, null); } catch (InvalidDatatypeValueException ex) { String key = ex.getKeyIntoReporter(); fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, key, new Object[] { ex.getMessage() }, XMLErrorReporter.SEVERITY_ERROR ); } break; } case XMLSimpleType.TYPE_IDREF: { boolean isAlistAttribute = attributeDecl.simpleType.list;//Caveat - Save this information because invalidStandaloneAttDef try { if (isAlistAttribute) { //System.out.println("values = >>" + value + "<<" ); fValIDRefs.validate(attValue, null); } else { fValIDRef.validate(attValue, null); } } catch (InvalidDatatypeValueException ex) { String key = ex.getKeyIntoReporter(); if (key == null){ key = "IDREFSInvalid"; } fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, key, new Object[]{ ex.getMessage()}, XMLErrorReporter.SEVERITY_ERROR ); } break; } case XMLSimpleType.TYPE_NMTOKEN: { boolean isAlistAttribute = attributeDecl.simpleType.list;//Caveat - Save this information because invalidStandaloneAttDef //changes fTempAttDef try { if (isAlistAttribute) { fValNMTOKENS.validate(attValue, null); } else { fValNMTOKEN.validate(attValue, null); } } catch (InvalidDatatypeValueException ex) { if (isAlistAttribute){ fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "NMTOKENSInvalid", new Object[] { attValue }, XMLErrorReporter.SEVERITY_ERROR); } else { fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "NMTOKENInvalid", new Object[] { attValue }, XMLErrorReporter.SEVERITY_ERROR); } } break; } } // switch } // validateDTDattribute(QName,String,XMLAttributeDecl) | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/ee3cf4ff9e64a0ae2d3c850b7c9b40e51771781d/XMLDTDValidator.java/buggy/src/org/apache/xerces/impl/dtd/XMLDTDValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1954,
25728,
4589,
12,
13688,
930,
16,
514,
2403,
620,
16,
4766,
1377,
3167,
1499,
3456,
1566,
3456,
13,
540,
1216,
1139,
50,
45,
503,
288,
3639,
1620,
261,
4589,
3456,
18,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1954,
25728,
4589,
12,
13688,
930,
16,
514,
2403,
620,
16,
4766,
1377,
3167,
1499,
3456,
1566,
3456,
13,
540,
1216,
1139,
50,
45,
503,
288,
3639,
1620,
261,
4589,
3456,
18,
9... |
public static void enumeratePointers(ObjectReference object, Enumerator e) {} | public static void enumeratePointers(ObjectReference object, Enumerator e) { } | public static void enumeratePointers(ObjectReference object, Enumerator e) {} | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4c66aa27cec27f8dd5902baec018ff86d7f49ee2/Scanning.java/buggy/MMTk/ext/vm/stub/org/mmtk/vm/Scanning.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
4241,
27452,
12,
22101,
733,
16,
6057,
7385,
425,
13,
2618,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
4241,
27452,
12,
22101,
733,
16,
6057,
7385,
425,
13,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
getsAutoFlushMode(); | getsFlushMode(); | public void testStatefulInvocationWithExistingSession() throws Throwable { prepareThreadWithSession(); newStatefulReadInvocation(); checksSessionIsOpen(); checksSessionIsConnected(); getsFactoryFromSession(); getsAutoFlushMode(); disconnectsSession(); closesSession(); handler.invoke( invocation ); super.verify(); } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/abb75611ecbe8038586bfc5b8903fe7fb0b36a3e/SessionHandlerMockHibernateTest.java/clean/components/server/test/ome/server/utests/handlers/SessionHandlerMockHibernateTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1119,
2706,
9267,
1190,
9895,
2157,
1435,
1216,
4206,
565,
288,
3639,
2911,
3830,
1190,
2157,
5621,
7734,
15907,
2706,
1994,
9267,
5621,
3639,
4271,
2157,
2520,
3678,
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,
1842,
1119,
2706,
9267,
1190,
9895,
2157,
1435,
1216,
4206,
565,
288,
3639,
2911,
3830,
1190,
2157,
5621,
7734,
15907,
2706,
1994,
9267,
5621,
3639,
4271,
2157,
2520,
3678,
5621,
... |
private void hookSingleClickAction() { viewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { // TODO Auto-generated method stub singleClickAction.run(); } }); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/d35174e94de68c613cbacb30868581cdc3f71279/DOMAST.java/clean/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/DOMAST.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
4476,
5281,
6563,
1803,
1435,
95,
25256,
18,
1289,
6233,
5033,
2223,
12,
2704,
45,
6233,
5033,
2223,
1435,
95,
482,
6459,
10705,
5033,
12,
6233,
27553,
2575,
15329,
759,
6241,
4965,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
4476,
5281,
6563,
1803,
1435,
95,
25256,
18,
1289,
6233,
5033,
2223,
12,
2704,
45,
6233,
5033,
2223,
1435,
95,
482,
6459,
10705,
5033,
12,
6233,
27553,
2575,
15329,
759,
6241,
4965,
... | ||
if (!messages.isEmpty()) { | public void checking(Validations validations) { List<Message> messages = validations.getErrors(); if (!messages.isEmpty()) { for (Message s : messages) { this.errors.add(new FixedMessage(s.getCategory(), s.getMessage(), s.getCategory())); } result.include("errors", this.errors); if (method != null) { Object instance = result.use(Results.logic()).forwardTo(typeToUse); try { method.invoke(instance, argsToUse); } catch (Exception e) { throw new ResultException(e); } } else { if(Info.isOldComponent(resource.getResource())) { info.setResult("invalid"); result.use(Results.page()).forward(); } else { result.use(Results.page()).forward(request.getRequestURI()); } } // finished just fine throw new ValidationError(messages); } } | 45798 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45798/48e35f1a8203d5b36a1d418eb4414330890076f6/MessageCreatorValidator.java/buggy/vraptor-core/src/main/java/br/com/caelum/vraptor/vraptor2/MessageCreatorValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6728,
12,
1556,
1012,
20808,
13,
288,
3639,
987,
32,
1079,
34,
2743,
273,
20808,
18,
588,
4229,
5621,
10402,
364,
261,
1079,
272,
294,
2743,
13,
288,
7734,
333,
18,
4324,
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,
918,
6728,
12,
1556,
1012,
20808,
13,
288,
3639,
987,
32,
1079,
34,
2743,
273,
20808,
18,
588,
4229,
5621,
10402,
364,
261,
1079,
272,
294,
2743,
13,
288,
7734,
333,
18,
4324,
18,... | |
coreMock.reset(); | coreMock.reset(); | public void testResetsDispatcher() { mockDispatcher.clearCalls.setExpected(1); coreMock.reset(); mockDispatcher.verifyExpectations(); } | 2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/065d08edd62599d5d244a9317db470157690f4f9/CoreMockTest.java/buggy/jmock/core/src/test/jmock/core/CoreMockTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
18900,
6681,
1435,
288,
3639,
5416,
6681,
18,
8507,
10125,
18,
542,
6861,
12,
21,
1769,
3639,
2922,
9865,
18,
6208,
5621,
3639,
5416,
6681,
18,
8705,
11988,
1012,
5621,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
18900,
6681,
1435,
288,
3639,
5416,
6681,
18,
8507,
10125,
18,
542,
6861,
12,
21,
1769,
3639,
2922,
9865,
18,
6208,
5621,
3639,
5416,
6681,
18,
8705,
11988,
1012,
5621,
5... |
IntentionHintComponent hintComponent = codeAnalyzer.getLastIntentionHint(); if (hintComponent != null) { hintComponent.updateIfNotShowingPopup(fixesToShow, intentionsToShow); } if (!HintManager.getInstance().hasShownHintsThatWillHideByOtherHint()) { | IntentionHintComponent hintComponent = codeAnalyzer.getLastIntentionHint(); if (hintComponent != null) { hintComponent.updateIfNotShowingPopup(fixesToShow, intentionsToShow); } else if (!HintManager.getInstance().hasShownHintsThatWillHideByOtherHint()) { | private void showIntentionActions() { DaemonCodeAnalyzerImpl codeAnalyzer = (DaemonCodeAnalyzerImpl)DaemonCodeAnalyzer.getInstance(myProject); if (LookupManager.getInstance(myProject).getActiveLookup() != null) return; // do not show intentions if caret is outside visible area LogicalPosition caretPos = myEditor.getCaretModel().getLogicalPosition(); Rectangle visibleArea = myEditor.getScrollingModel().getVisibleArea(); Point xy = myEditor.logicalPositionToXY(caretPos); if (!visibleArea.contains(xy)) return; final Editor injectedEditor = InjectedLanguageUtil.getEditorForInjectedLanguage(myEditor, myFile); final PsiFile injectedFile = injectedEditor instanceof EditorDelegate ? ((EditorDelegate)injectedEditor).getInjectedFile() : myFile; final PsiElement injectedElement = injectedFile.findElementAt(injectedEditor.getCaretModel().getOffset()); List<HighlightInfo.IntentionActionDescriptor> intentionsToShow = new ArrayList<HighlightInfo.IntentionActionDescriptor>(); List<HighlightInfo.IntentionActionDescriptor> fixesToShow = new ArrayList<HighlightInfo.IntentionActionDescriptor>(); int offset = myEditor.getCaretModel().getOffset(); for (IntentionAction action : myIntentionActions) { if (action instanceof IntentionActionComposite) { if (action instanceof QuickFixAction/* || action instanceof PostIntentionsQuickFixAction && showPostIntentions*/) { List<HighlightInfo.IntentionActionDescriptor> availableActions = ((IntentionActionComposite)action).getAvailableActions(myEditor, myFile, myPassIdToShowIntentionsFor); HighlightInfo info = codeAnalyzer.findHighlightByOffset(myEditor.getDocument(), offset, true); if (info == null || info.getSeverity() == HighlightSeverity.ERROR) { fixesToShow.addAll(availableActions); } else { intentionsToShow.addAll(availableActions); } } } else if (action instanceof PsiElementBaseIntentionAction && ((PsiElementBaseIntentionAction)action).isAvailable(myProject, injectedEditor, injectedElement) || action.isAvailable(myProject, injectedEditor, injectedFile)) { List<IntentionAction> enableDisableIntentionAction = new ArrayList<IntentionAction>(); enableDisableIntentionAction.add(new IntentionHintComponent.EnableDisableIntentionAction(action)); intentionsToShow.add(new HighlightInfo.IntentionActionDescriptor(action, enableDisableIntentionAction, null)); } } if (!intentionsToShow.isEmpty() || !fixesToShow.isEmpty()) { boolean showBulb = false; for (HighlightInfo.IntentionActionDescriptor action : fixesToShow) { if (IntentionManagerSettings.getInstance().isShowLightBulb(action.getAction())) { showBulb = true; break; } } if (!showBulb) { for (HighlightInfo.IntentionActionDescriptor descriptor : intentionsToShow) { final IntentionAction action = descriptor.getAction(); if (IntentionManagerSettings.getInstance().isShowLightBulb(action) && action.isAvailable(myProject, injectedEditor, injectedFile)) { showBulb = true; break; } } } if (showBulb) { //if (myIsSecondPass) { IntentionHintComponent hintComponent = codeAnalyzer.getLastIntentionHint(); if (hintComponent != null) { hintComponent.updateIfNotShowingPopup(fixesToShow, intentionsToShow); } //} if (!HintManager.getInstance().hasShownHintsThatWillHideByOtherHint()) { hintComponent = IntentionHintComponent.showIntentionHint(myProject, injectedEditor, intentionsToShow, fixesToShow, false); //if (!myIsSecondPass) { codeAnalyzer.setLastIntentionHint(hintComponent); //} } } } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/d3b3eeb3ff96ea8d79bd090ed71129f7044a9016/ShowIntentionsPass.java/clean/codeInsight/impl/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2405,
1702,
5054,
6100,
1435,
288,
565,
13054,
1085,
12803,
2828,
981,
12803,
273,
261,
12858,
1085,
12803,
2828,
13,
12858,
1085,
12803,
18,
588,
1442,
12,
4811,
4109,
1769,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2405,
1702,
5054,
6100,
1435,
288,
565,
13054,
1085,
12803,
2828,
981,
12803,
273,
261,
12858,
1085,
12803,
2828,
13,
12858,
1085,
12803,
18,
588,
1442,
12,
4811,
4109,
1769,
565... |
if (getNextRow(false)) { | if (getNextRow()) { | Object readText(String tabName, String colName, TextPtr textPtr, int offset, int length) throws SQLException { if (colName == null || colName.length() == 0 || tabName == null || tabName.length() == 0) { throw new SQLException(Messages.get("error.tdscore.badtext"), "HY000"); } if (textPtr == null) { throw new SQLException( Messages.get("error.tdscore.notextptr", tabName + "." + colName), "HY000"); } Object results = null; StringBuffer sql = new StringBuffer(256); sql.append("set textsize "); sql.append((length + 1) * 2); sql.append("\r\nreadtext "); sql.append(tabName); sql.append('.'); sql.append(colName); sql.append(" 0x"); sql.append(Support.toHex(textPtr.ptr)); sql.append(' '); sql.append(offset); sql.append(' '); sql.append(length); sql.append("\r\nset textsize 1"); if (Logger.isActive()) { Logger.println(sql.toString()); } executeSQL(sql.toString(), null, null, false, 0, 0); readTextMode = true; if (getMoreResults()) { if (getNextRow(false)) { // FIXME - this will not be valid since a Blob/Clob is returned // instead of byte[]/String results = rowData[0].getValue(); } } clearResponseQueue(); messages.checkErrors(); return results; } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/4035a8829d47a3e45f5ed691809ef8e5b74bbeee/TdsCore.java/clean/src/main/net/sourceforge/jtds/jdbc/TdsCore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1033,
855,
1528,
12,
780,
3246,
461,
16,
514,
18655,
16,
3867,
5263,
977,
5263,
16,
509,
1384,
16,
509,
769,
13,
3639,
1216,
6483,
288,
3639,
309,
261,
1293,
461,
422,
446,
747,
18655,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
855,
1528,
12,
780,
3246,
461,
16,
514,
18655,
16,
3867,
5263,
977,
5263,
16,
509,
1384,
16,
509,
769,
13,
3639,
1216,
6483,
288,
3639,
309,
261,
1293,
461,
422,
446,
747,
18655,
... |
return RubyFloat.newFloat(getRuby(), getDoubleValue()).ceil(); } | return RubyFloat.newFloat(getRuby(), getDoubleValue()).ceil(); } | public RubyInteger ceil() { return RubyFloat.newFloat(getRuby(), getDoubleValue()).ceil(); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
8416,
1435,
288,
3639,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
54,
10340,
9334,
16097,
620,
1435,
2934,
311,
330,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
8416,
1435,
288,
3639,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
54,
10340,
9334,
16097,
620,
1435,
2934,
311,
330,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
addProductline(pl); | public void dummyProds() { Productline pl = new Productline("kobold2", "kobold2", new RepositoryDescriptor( RepositoryDescriptor.CVS_REPOSITORY, "ssh", "cvs.berlios.de", "/cvsroot/kobold/", "kobold2")); kobold.server.data.User vanto = UserManager.getInstance().getUser("vanto"); pl.addMaintainer(new User(vanto.getUserName(), vanto.getFullName())); Product product = new Product(pl, "hallo", "hallo", new RepositoryDescriptor( RepositoryDescriptor.CVS_REPOSITORY, "ssh", "cvs.berlios.de", "/cvsroot/kobold/", "kobold2/hallo")); kobold.server.data.User garbeam = UserManager.getInstance().getUser("garbeam"); product.addMaintainer(new User(garbeam.getUserName(), garbeam.getFullName())); pl.addProduct(product); Component comp = new Component(pl, "lala", "lala", new RepositoryDescriptor( RepositoryDescriptor.CVS_REPOSITORY, "ssh", "cvs.berlios.de", "/cvsroot/kobold/", "kobold2/hallo")); addProductline(new Productline("kobold3", "kobold3", new RepositoryDescriptor( RepositoryDescriptor.CVS_REPOSITORY, "pserver", "cvs.berlios.de", "/cvsroot/kobold/", "kobold3"))); addProductline(new Productline("kobold4", "kobold4", new RepositoryDescriptor( RepositoryDescriptor.CVS_REPOSITORY, "ssh", "cvs.berlios.de", "/cvsroot/kobold/", "kobold4"))); } | 9773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9773/10f53af3cda026a1a312ae9bf7001a26dc3d9a26/ProductlineManager.java/buggy/kobold/src/kobold.server/src/kobold/server/controller/ProductlineManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1289,
4133,
1369,
12,
412,
1769,
918,
1289,
4133,
1369,
12,
412,
1769,
9609,
626,
2377,
1435,
1289,
4133,
1369,
12,
412,
1769,
288,
1082,
202,
1289,
4133,
1369,
12,
412,
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,
225,
202,
482,
1289,
4133,
1369,
12,
412,
1769,
918,
1289,
4133,
1369,
12,
412,
1769,
9609,
626,
2377,
1435,
1289,
4133,
1369,
12,
412,
1769,
288,
1082,
202,
1289,
4133,
1369,
12,
412,
1769,
... | |
hiddenMode = null; | public void release() { height = null; width = null; visible = null; hiddenMode = null; mouseOutListeners = null; mouseOverListeners = null; helpMessage = null; helpURL = null; toolTipText = null; y = null; x = null; lookId = null; marginRight = null; marginLeft = null; marginTop = null; marginBottom = null; foregroundColor = null; backgroundColor = null; styleClass = null; userEventListeners = null; propertyChangeListeners = null; initListeners = null; globalOnly = null; showSummary = null; margins = null; showDetail = null; super.release(); } | 6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/AbstractMessagesTag.java/buggy/org.rcfaces.core/src/org/rcfaces/core/internal/taglib/AbstractMessagesTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3992,
1435,
288,
202,
202,
4210,
273,
446,
31,
202,
202,
2819,
273,
446,
31,
202,
202,
8613,
273,
446,
31,
202,
202,
6345,
2309,
273,
446,
31,
202,
202,
11697,
1182,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3992,
1435,
288,
202,
202,
4210,
273,
446,
31,
202,
202,
2819,
273,
446,
31,
202,
202,
8613,
273,
446,
31,
202,
202,
6345,
2309,
273,
446,
31,
202,
202,
11697,
1182,
55... | |
{ view.getGRPane().removeAll(); GraphicsRepresentation gr = view.getGRepresentation(); gr = null; int mini = (int) eventManager.getGlobalChannelWindowStart(w); int maxi = (int) eventManager.getGlobalChannelWindowEnd(w); int s = (int) eventManager.getChannelWindowStart(w); int e = (int) eventManager.getChannelWindowEnd(w); QuantumDef qDef = getQuantumDef(); gr = new GraphicsRepresentation(this, qDef.family, qDef.curveCoefficient, qDef.cdStart, qDef.cdEnd, mini, maxi); gr.setReverseIntensity(view.getCodomainPane().getRI().isSelected()); if (qDef.family == QuantumFactory.EXPONENTIAL) gr.setDefaultExponential(s, e); else gr.setDefaultLinear(s, e); view.setGRepresentation(gr); view.buildGRPane(); eventManager.setMappingPane(); } | { view.getGRPane().removeAll(); GraphicsRepresentation gr = view.getGRepresentation(); gr = null; int mini = (int) eventManager.getGlobalChannelWindowStart(w); int maxi = (int) eventManager.getGlobalChannelWindowEnd(w); int s = (int) eventManager.getChannelWindowStart(w); int e = (int) eventManager.getChannelWindowEnd(w); QuantumDef qDef = getQuantumDef(); int family = eventManager.getChannelFamily(w); double cc = eventManager.getChannelCurveCoefficient(w); double[] cbStats = eventManager.getChannelBindingStats(w); gr = new GraphicsRepresentation(this, family, cc, qDef.cdStart, qDef.cdEnd, mini, maxi, cbStats); gr.setReverseIntensity(view.getCodomainPane().getRI().isSelected()); if (family == QuantumFactory.EXPONENTIAL) gr.setDefaultExponential(s, e); else gr.setDefaultLinear(s, e); view.setGRepresentation(gr); view.buildGRPane(); DomainPaneManager dpm = view.getDomainPane().getManager(); dpm.resetDefaultGamma(cc, family); dpm.resetDefaultComboBox(view.getDomainPane().getTransformations(), family); eventManager.setMappingPane(); } | void setWavelength(int w) { view.getGRPane().removeAll(); GraphicsRepresentation gr = view.getGRepresentation(); gr = null; int mini = (int) eventManager.getGlobalChannelWindowStart(w); int maxi = (int) eventManager.getGlobalChannelWindowEnd(w); int s = (int) eventManager.getChannelWindowStart(w); int e = (int) eventManager.getChannelWindowEnd(w); QuantumDef qDef = getQuantumDef(); gr = new GraphicsRepresentation(this, qDef.family, qDef.curveCoefficient, qDef.cdStart, qDef.cdEnd, mini, maxi); gr.setReverseIntensity(view.getCodomainPane().getRI().isSelected()); if (qDef.family == QuantumFactory.EXPONENTIAL) gr.setDefaultExponential(s, e); else gr.setDefaultLinear(s, e); view.setGRepresentation(gr); view.buildGRPane(); eventManager.setMappingPane(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
444,
59,
16775,
12,
474,
341,
13,
202,
95,
202,
202,
1945,
18,
588,
6997,
8485,
7675,
4479,
1595,
5621,
202,
202,
17558,
13742,
3821,
273,
1476,
18,
588,
43,
13742,
5621,
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,
6459,
444,
59,
16775,
12,
474,
341,
13,
202,
95,
202,
202,
1945,
18,
588,
6997,
8485,
7675,
4479,
1595,
5621,
202,
202,
17558,
13742,
3821,
273,
1476,
18,
588,
43,
13742,
5621,
202... |
public abstract Object evaluate(Node context, int pos, int len); | public Object evaluate(Object item, QName returnType) throws XPathExpressionException { Object ret = null; Node context = null; if (item instanceof Node) { context = (Node) item; ret = evaluate(context, 1, 1); if (XPathConstants.STRING == returnType && !(ret instanceof String)) { ret = _string(context, ret); } else if (XPathConstants.NUMBER == returnType && !(ret instanceof Double)) { ret = new Double(_number(context, ret)); } else if (XPathConstants.BOOLEAN == returnType && !(ret instanceof Boolean)) { ret = _boolean(context, ret) ? Boolean.TRUE : Boolean.FALSE; } else if (XPathConstants.NODE == returnType) { if (ret instanceof Collection) { Collection ns = (Collection) ret; switch (ns.size()) { case 0: ret = null; break; case 1: ret = (Node) ns.iterator().next(); break; default: throw new XPathExpressionException("multiple nodes in node-set"); } } else if (ret != null) { throw new XPathExpressionException("return value is not a node-set"); } } else if (XPathConstants.NODESET == returnType) { if (ret != null && !(ret instanceof Collection)) { throw new XPathExpressionException("return value is not a node-set"); } } } return ret; } | public abstract Object evaluate(Node context, int pos, int len); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/Expr.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Expr.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8770,
1033,
5956,
12,
907,
819,
16,
509,
949,
16,
509,
562,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8770,
1033,
5956,
12,
907,
819,
16,
509,
949,
16,
509,
562,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if ((0xfffffffbffffdbffL & l) != 0L) jjCheckNAddTwoStates(8, 9); | if ((0x3ff200000000000L & l) == 0L) break; if (kind > 54) kind = 54; jjstateSet[jjnewStateCnt++] = 8; | private final int jjMoveNfa_2(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 14; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 13; else if (curChar == 34) jjCheckNAddTwoStates(8, 9); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 5; else if (curChar == 41) { if (kind > 5) kind = 5; jjCheckNAddTwoStates(1, 2); } break; case 1: if (curChar != 32) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(1, 2); break; case 2: if (curChar == 10 && kind > 5) kind = 5; break; case 3: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 4; break; case 4: if ((0xfffffff7ffffffffL & l) != 0L && kind > 9) kind = 9; break; case 5: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 3; break; case 6: if (curChar == 35) jjstateSet[jjnewStateCnt++] = 5; break; case 7: if (curChar == 34) jjCheckNAddTwoStates(8, 9); break; case 8: if ((0xfffffffbffffdbffL & l) != 0L) jjCheckNAddTwoStates(8, 9); break; case 9: if (curChar == 34 && kind > 20) kind = 20; break; case 11: if ((0x3ff200000000000L & l) == 0L) break; if (kind > 53) kind = 53; jjstateSet[jjnewStateCnt++] = 11; break; case 12: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 13; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 53) kind = 53; jjCheckNAdd(11); break; case 4: if (kind > 9) kind = 9; break; case 8: jjAddStates(0, 1); break; case 11: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 53) kind = 53; jjCheckNAdd(11); break; case 13: if ((0x7fffffe07fffffeL & l) != 0L && kind > 54) kind = 54; break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 4: if ((jjbitVec0[i2] & l2) != 0L && kind > 9) kind = 9; break; case 8: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(0, 1); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 14 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/b827d0bf89e728dc8324fc63c2ad3662c9d19cd3/ParserTokenManager.java/buggy/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
22,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
22,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... |
RolapDimension[] dimensions = (RolapDimension[]) cube.getDimensions(); currentMembers = new RolapMember[dimensions.length]; | Dimension[] dimensions = cube.getDimensions(); currentMembers = new Member[dimensions.length]; | RolapEvaluator(RolapCube cube, RolapConnection connection) { this.cube = cube; this.connection = connection; SchemaReader scr = connection.getSchemaReader(); RolapDimension[] dimensions = (RolapDimension[]) cube.getDimensions(); currentMembers = new RolapMember[dimensions.length]; for (int i = 0; i < dimensions.length; i++) { final RolapDimension dimension = dimensions[i]; final int ordinal = dimension.getOrdinal(cube); final Hierarchy hier = dimension.getHierarchy(); currentMembers[ordinal] = (RolapMember) scr.getHierarchyDefaultMember(hier); } this.parent = null; this.depth = 0; this.cellReader = null; // we expect client to set it this.expResultCache = new HashMap(); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/0cc18052c959f8014f772086b193e28d7a6dd66a/RolapEvaluator.java/buggy/src/main/mondrian/rolap/RolapEvaluator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
11714,
438,
15876,
12,
4984,
438,
39,
4895,
18324,
16,
11714,
438,
1952,
1459,
13,
565,
288,
3639,
333,
18,
21186,
273,
18324,
31,
3639,
333,
18,
4071,
273,
1459,
31,
3639,
4611,
2514,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
11714,
438,
15876,
12,
4984,
438,
39,
4895,
18324,
16,
11714,
438,
1952,
1459,
13,
565,
288,
3639,
333,
18,
21186,
273,
18324,
31,
3639,
333,
18,
4071,
273,
1459,
31,
3639,
4611,
2514,
... |
element.setCvsroot(null); | element.setCvsRoot(null); | public void testHistoryCommandNullCVSROOT() { Date lastBuildTime = new Date(); Date currTime = new Date(); CVSElement element = new CVSElement(); element.setCvsroot(null); element.setLocalWorkingCopy("."); String[] expectedCommand = new String[] { "cvs", "log", "-N", "-d", CVSElement.formatCVSDate(lastBuildTime) + "<" + CVSElement.formatCVSDate(currTime), "."}; String[] actualCommand = element.buildHistoryCommand(lastBuildTime, currTime).getCommandline(); assertEquals("Mismatched lengths!", expectedCommand.length, actualCommand.length); for (int i = 0; i < expectedCommand.length; i++) { assertEquals(expectedCommand[i], actualCommand[i]); } } | 52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/bff7af241e917e81ae7e0f392341b4aa745002ec/CVSElementTest.java/buggy/main/test/net/sourceforge/cruisecontrol/CVSElementTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5623,
2189,
2041,
39,
14640,
9185,
1435,
288,
3639,
2167,
1142,
3116,
950,
273,
394,
2167,
5621,
3639,
2167,
4306,
950,
273,
394,
2167,
5621,
3639,
385,
14640,
1046,
930,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5623,
2189,
2041,
39,
14640,
9185,
1435,
288,
3639,
2167,
1142,
3116,
950,
273,
394,
2167,
5621,
3639,
2167,
4306,
950,
273,
394,
2167,
5621,
3639,
385,
14640,
1046,
930,
... |
int index = parameterIdentifiers.indexOf(t.image); if (index == -1 ) { if (throwExceptionOnBadPreprocessorSyntax) throw new ScannerException( BAD_PP + contextStack.getCurrentContext().getOffset()); return; } | protected void poundDefine(int beginning) throws ScannerException, Parser.EndOfFile { skipOverWhitespace(); // definition String key = getNextIdentifier(); int offset = contextStack.getCurrentContext().getOffset() - key.length() - contextStack.getCurrentContext().undoStackSize(); if (!quickScan) { String checkForRedefinition = (String) definitions.get(key); if (checkForRedefinition != null) { throw new ScannerException( "Preprocessor symbol " + key + " has already been defined to " + checkForRedefinition + " cannot redefined."); } } // get the next character // the C++ standard says that macros must not put // whitespace between the end of the definition // identifier and the opening parenthesis int c = getChar(); if (c == '(') { StringBuffer buffer = new StringBuffer(); c = getChar(); while (c != ')') { buffer.append((char) c); c = getChar(); } String parameters = buffer.toString(); // replace StringTokenizer later -- not performant StringTokenizer tokenizer = new StringTokenizer(parameters, ","); ArrayList parameterIdentifiers = new ArrayList(tokenizer.countTokens()); while (tokenizer.hasMoreTokens()) { parameterIdentifiers.add(tokenizer.nextToken().trim()); } skipOverWhitespace(); ArrayList macroReplacementTokens = new ArrayList(); String replacementString = getRestOfPreprocessorLine(); Scanner helperScanner = new Scanner(); helperScanner.initialize( new StringReader(replacementString), null); helperScanner.setTokenizingMacroReplacementList( true ); Token t = helperScanner.nextToken(false); try { while (true) { //each # preprocessing token in the replacement list shall be followed //by a parameter as the next reprocessing token in the list if( t.type == tPOUND ){ macroReplacementTokens.add( t ); t = helperScanner.nextToken(false); int index = parameterIdentifiers.indexOf(t.image); if (index == -1 ) { //not found if (throwExceptionOnBadPreprocessorSyntax) throw new ScannerException( BAD_PP + contextStack.getCurrentContext().getOffset()); return; } } macroReplacementTokens.add(t); t = helperScanner.nextToken(false); } } catch (Parser.EndOfFile e) { // Good } IMacroDescriptor descriptor = new MacroDescriptor(); descriptor.initialize( key, parameterIdentifiers, macroReplacementTokens, key + "(" + parameters + ")"); addDefinition(key, descriptor); } else if ((c == ' ') || (c == '\t') || (c == '\n') || (c == '\r')) { // this is a simple definition skipOverWhitespace(); // get what we are to map the name to and add it to the definitions list String value = getRestOfPreprocessorLine(); addDefinition( key, value ); } else if (c == '/') { // this could be a comment c = getChar(); if (c == '/') // one line comment { skipOverTextUntilNewline(); addDefinition(key, ""); } else if (c == '*') // multi-line comment { if (skipOverMultilineComment()) { // we have gone over a newline // therefore, this symbol was defined to an empty string addDefinition(key, ""); } else { String value = getRestOfPreprocessorLine(); addDefinition(key, value); } } else { // this is not a comment // it is a bad statement if (throwExceptionOnBadPreprocessorSyntax) throw new ScannerException( BAD_PP + contextStack.getCurrentContext().getOffset()); } } else { System.out.println("Unexpected character " + ((char) c)); if (throwExceptionOnBadPreprocessorSyntax) throw new ScannerException(BAD_PP + contextStack.getCurrentContext().getOffset()); } // call the callback accordingly if( callback != null ) callback.macro( key, offset, beginning, contextStack.getCurrentContext().getOffset() ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/452e82cb3d7129bd42a54ef8c9f7124c20ccbfbb/Scanner.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Scanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
293,
772,
11644,
12,
474,
8435,
13,
1216,
19074,
503,
16,
6783,
18,
23358,
812,
288,
202,
202,
7457,
4851,
9431,
5621,
202,
202,
759,
2379,
3196,
202,
780,
498,
273,
692... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
293,
772,
11644,
12,
474,
8435,
13,
1216,
19074,
503,
16,
6783,
18,
23358,
812,
288,
202,
202,
7457,
4851,
9431,
5621,
202,
202,
759,
2379,
3196,
202,
780,
498,
273,
692... | |
endExplanationString = "(BA) Game courtesyaborted by Black"; | endExplanationString = "(BA) Game courtesyaborted by "+loser+""; | protected String getEndExplanationString(int status, int mode){ String endExplanationString = "(?) No result [specific reason unknown]"; switch (status){ case 0: switch (mode){ case 0: endExplanationString = "(Res) Black resigns"; break; case 1: endExplanationString = "(Mat) Black checkmated"; break; case 2: endExplanationString = "(Fla) Black forfeits on time."; break; case 3: endExplanationString = "(Adj) White declared the winner by adjudication"; break; case 4: endExplanationString = "(BQ) Black disconnected and forfeits"; break; case 5: endExplanationString = "(BQ) Black got disconnected and forfeits"; break; case 6: endExplanationString = "(BQ) Unregistered player Black disconnected and forfeits"; break; case 7: endExplanationString = "(Res) Black's partner resigns"; break; case 8: endExplanationString = "(Mat) Black's partner checkmated"; break; case 9: endExplanationString = "(Fla) Black's partner forfeits on time"; break; case 10: endExplanationString = "(BQ) Black's partner disconnected and forfeits"; break; case 11: endExplanationString = "(BQ) Black disconnected and forfeits [obsolete?]"; break; case 12: endExplanationString = "(1-0) White wins [specific reason unknown]"; break; } break; case 1: switch (mode){ case 0: endExplanationString = "(Agr) Game drawn by mutual agreement"; break; case 1: endExplanationString = "(Sta) Black stalemated"; break; case 2: endExplanationString = "(Rep) Game drawn by repetition"; break; case 3: endExplanationString = "(50) Game drawn by the 50 move rule"; break; case 4: endExplanationString = "(TM) Black ran out of time and White has no material to mate"; break; case 5: endExplanationString = "(NM) Game drawn because neither player has mating material"; break; case 6: endExplanationString = "(NT) Game drawn because both players ran out of time"; break; case 7: endExplanationString = "(Adj) Game drawn by adjudication"; break; case 8: endExplanationString = "(Agr) Partner's game drawn by mutual agreement"; break; case 9: endExplanationString = "(NT) Partner's game drawn because both players ran out of time"; break; case 10: endExplanationString = "(1/2) Game drawn [specific reason unknown]"; break; } break; case 2: switch (mode){ case 0: endExplanationString = "(?) Game adjourned by mutual agreement"; break; case 1: endExplanationString = "(?) Game adjourned when Black disconnected"; break; case 2: endExplanationString = "(?) Game adjourned by system shutdown"; break; case 3: endExplanationString = "(?) Game courtesyadjourned by Black"; break; case 4: endExplanationString = "(?) Game adjourned by an administrator"; break; case 5: endExplanationString = "(?) Game adjourned when Black got disconnected"; break; } break; case 3: switch (mode){ case 0: endExplanationString = "(Agr) Game aborted by mutual agreement"; break; case 1: endExplanationString = "(BQ) Game aborted when Black disconnected"; break; case 2: endExplanationString = "(SD) Game aborted by system shutdown"; break; case 3: endExplanationString = "(BA) Game courtesyaborted by Black"; break; case 4: endExplanationString = "(Adj) Game aborted by an administrator"; break; case 5: endExplanationString = "(Sho) Game aborted because it's too short to adjourn"; break; case 6: endExplanationString = "(BQ) Game aborted when Black's partner disconnected"; break; case 7: endExplanationString = "(Sho) Game aborted by Black at move 1"; break; case 8: endExplanationString = "(Sho) Game aborted by Black's partner at move 1"; break; case 9: endExplanationString = "(Sho) Game aborted because it's too short"; break; case 10: endExplanationString = "(Adj) Game aborted because Black's account expired"; break; case 11: endExplanationString = "(BQ) Game aborted when Black got disconnected"; break; case 12: endExplanationString = "(?) No result [specific reason unknown]"; break; } break; } return endExplanationString; } | 1161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1161/732916e421bbf8a8c617fa1ed44064e3a3535e92/JinChessclubConnection.java/clean/src/free/jin/chessclub/JinChessclubConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
9968,
424,
15854,
780,
12,
474,
1267,
16,
509,
1965,
15329,
565,
514,
679,
424,
15854,
780,
273,
315,
3680,
13,
2631,
563,
306,
12524,
3971,
5917,
4279,
31,
565,
1620,
261,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
9968,
424,
15854,
780,
12,
474,
1267,
16,
509,
1965,
15329,
565,
514,
679,
424,
15854,
780,
273,
315,
3680,
13,
2631,
563,
306,
12524,
3971,
5917,
4279,
31,
565,
1620,
261,
2... |
final Object value = map.remove(reference); if (value instanceof Image[]) { Display display = Display.getCurrent(); if (display == null) { display = Display.getDefault(); } display.syncExec(new Runnable() { | if (reference instanceof ImageCacheWeakReference) { ImageCacheWeakReference currentReference = (ImageCacheWeakReference) reference; Set keySet = imageMap.keySet(); EquivalenceSet currentSet = null; for (Iterator i = keySet.iterator(); i.hasNext();) { currentSet = (EquivalenceSet) i.next(); boolean removed = currentSet .removeReference(currentReference); if (removed) { if (currentSet.getSize() == 0) { final Image[] images = ((ImageMapEntry) imageMap .remove(currentSet)).getImages(); if (images == null) { throw new NullPointerException( "The array of images removed from the map on clean up should not be null."); } | public final void run() { while (true) { // Get the next reference to dispose. Reference reference = null; try { reference = referenceQueue.remove(); } catch (final InterruptedException e) { // Reference will be null. } // Check to see if we've been told to stop. if (reference == endMarker) { break; } // Remove the images and dispose them. final Object value = map.remove(reference); if (value instanceof Image[]) { Display display = Display.getCurrent(); if (display == null) { display = Display.getDefault(); } display.syncExec(new Runnable() { public void run() { final Image[] images = (Image[]) value; for (int i = 0; i < images.length; i++) { final Image image = images[i]; if ((image != null) && (!image.isDisposed())) { image.dispose(); } } } }); } // Clear the reference. if (reference != null) { reference.clear(); } } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c2f95a0909f2eb15cc65bbc902b893fdf7b3dc8d/ImageCache.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ImageCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
727,
918,
1086,
1435,
288,
1082,
202,
17523,
261,
3767,
13,
288,
9506,
202,
759,
968,
326,
1024,
2114,
358,
15825,
18,
9506,
202,
2404,
2114,
273,
446,
31,
9506,
202,
698,
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,
3196,
202,
482,
727,
918,
1086,
1435,
288,
1082,
202,
17523,
261,
3767,
13,
288,
9506,
202,
759,
968,
326,
1024,
2114,
358,
15825,
18,
9506,
202,
2404,
2114,
273,
446,
31,
9506,
202,
698,
28... |
configWin.getContentPane().add(tabs, BorderLayout.CENTER); configWin.getContentPane().add(buttons, BorderLayout.SOUTH); | this.configWin.getContentPane().add(this.tabs, BorderLayout.CENTER); this.configWin.getContentPane().add(this.buttons, BorderLayout.SOUTH); | public ConfigWindow(Core core) { this.core = core; needConnectionReset = false; advancedMode = Boolean.valueOf(core.getConfig().getValue("advancedMode")).booleanValue(); configWin = new JFrame(I18n.getMessage("thaw.config.windowName")); tabs = new JTabbedPane(); buttons = new JPanel(); buttons.setLayout(new GridLayout(1, 2)); okButton = new JButton(I18n.getMessage("thaw.config.okButton")); cancelButton = new JButton(I18n.getMessage("thaw.config.cancelButton")); buttons.add(okButton); buttons.add(cancelButton); nodeConfigPanel = new NodeConfigPanel(this, core); pluginConfigPanel = new PluginConfigPanel(this, core); thawConfigPanel = new ThawConfigPanel(this, core); addTabs(); BorderLayout borderLayout = new BorderLayout(); borderLayout.setVgap(20); borderLayout.setVgap(20); configWin.getContentPane().setLayout(borderLayout); configWin.getContentPane().add(tabs, BorderLayout.CENTER); configWin.getContentPane().add(buttons, BorderLayout.SOUTH); tabs.setSize(600, 350); okButton.setSize(100, 50); configWin.setSize(600, 400); configWin.setResizable(false); okButton.addActionListener(this); cancelButton.addActionListener(this); configWin.addWindowListener(this); } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/ConfigWindow.java/clean/src/thaw/core/ConfigWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1903,
3829,
12,
4670,
2922,
13,
288,
202,
202,
2211,
18,
3644,
273,
2922,
31,
202,
202,
14891,
1952,
7013,
273,
629,
31,
202,
202,
27080,
2309,
273,
3411,
18,
1132,
951,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1903,
3829,
12,
4670,
2922,
13,
288,
202,
202,
2211,
18,
3644,
273,
2922,
31,
202,
202,
14891,
1952,
7013,
273,
629,
31,
202,
202,
27080,
2309,
273,
3411,
18,
1132,
951,
12,
... |
final JpasDataChange<Account> dataChange = new JpasDataChange.Modify<Account>(this); observable.notifyObservers(dataChange); notifyObservers(dataChange); | final JpasDataChange<Account> dataChange = new JpasDataChange.Modify<Account>( this); observable.notifyObservers(dataChange); notifyObservers(dataChange); | void announceModify() { final JpasDataChange<Account> dataChange = new JpasDataChange.Modify<Account>(this); observable.notifyObservers(dataChange); notifyObservers(dataChange); } | 11042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11042/42f15ce06e127523723133285c793cb25214f02b/Account.java/buggy/trunk/JPAS/src/org/jpas/model/Account.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
14281,
11047,
1435,
565,
288,
377,
202,
6385,
804,
84,
345,
751,
3043,
32,
3032,
34,
501,
3043,
273,
394,
804,
84,
345,
751,
3043,
18,
11047,
32,
3032,
34,
12,
2211,
1769,
377,
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,
918,
14281,
11047,
1435,
565,
288,
377,
202,
6385,
804,
84,
345,
751,
3043,
32,
3032,
34,
501,
3043,
273,
394,
804,
84,
345,
751,
3043,
18,
11047,
32,
3032,
34,
12,
2211,
1769,
377,
2... |
if (!path.equals(newValue)) | Object node = path.getLastPathComponent(); if (node instanceof MutableTreeNode) | public void valueForPathChanged(TreePath path, Object newValue) { if (!path.equals(newValue)) { TreeModelEvent event = new TreeModelEvent(this, path); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].treeNodesChanged(event); } } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/ad9fe0128c253aaf223148f1f6216018924022e0/DefaultTreeModel.java/buggy/javax/swing/tree/DefaultTreeModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
460,
25589,
5033,
12,
2471,
743,
589,
16,
1033,
6129,
13,
225,
288,
565,
1033,
756,
273,
589,
18,
588,
3024,
743,
1841,
5621,
309,
261,
2159,
1276,
10960,
12513,
13,
1377,
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,
282,
1071,
918,
460,
25589,
5033,
12,
2471,
743,
589,
16,
1033,
6129,
13,
225,
288,
565,
1033,
756,
273,
589,
18,
588,
3024,
743,
1841,
5621,
309,
261,
2159,
1276,
10960,
12513,
13,
1377,
28... |
public boolean mayHaveReferences(IElementType token) { | public boolean mayHaveReferences(IElementType token, short searchContext) { | public boolean mayHaveReferences(IElementType token) { if(token == XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN) return true; if(token == XmlTokenType.XML_DATA_CHARACTERS) return true; return super.mayHaveReferences(token); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/57ac9224412cde7806fda672ad210899f7a8d81d/XMLLanguage.java/clean/source/com/intellij/lang/xml/XMLLanguage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
2026,
17944,
8221,
12,
45,
17481,
1147,
16,
3025,
1623,
1042,
13,
288,
565,
309,
12,
2316,
422,
5714,
28675,
18,
4201,
67,
11616,
67,
4051,
67,
8412,
13,
327,
638,
31,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
2026,
17944,
8221,
12,
45,
17481,
1147,
16,
3025,
1623,
1042,
13,
288,
565,
309,
12,
2316,
422,
5714,
28675,
18,
4201,
67,
11616,
67,
4051,
67,
8412,
13,
327,
638,
31,
565,
... |
return getTabList(getVisiblePart()); | return getTabList(getSelection()); | public Control[] getTabList() { return getTabList(getVisiblePart()); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/45ab2bee3420234882ba61c9b99fecd868b62e8f/EditorStack.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorStack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8888,
8526,
3181,
378,
682,
1435,
288,
3639,
327,
3181,
378,
682,
12,
588,
6233,
10663,
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... | [
1,
1,
1,
1,
1,
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,
8888,
8526,
3181,
378,
682,
1435,
288,
3639,
327,
3181,
378,
682,
12,
588,
6233,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
else { actuatorHits += countLegActuatorCrits(i); | if (!game.getOptions().booleanOption("maxtech_leg_damage")) continue; | public int getWalkMP() { int wmp = getOriginalWalkMP(); int legsDestroyed = 0; int hipHits = 0; int actuatorHits = 0; for ( int i = 0; i < locations(); i++ ) { if ( locationIsLeg(i) ) { if ( !isLocationDestroyed(i) ) { if ( legHasHipCrit(i) ) hipHits++; else { actuatorHits += countLegActuatorCrits(i); } } else { legsDestroyed++; } } } // leg damage effects if(legsDestroyed > 0) { wmp = (legsDestroyed == 1) ? 1 : 0; } else { if(hipHits > 0) { if (game.getOptions().booleanOption("maxtech_leg_damage")) { wmp = (hipHits >= 1) ? wmp - (2 * hipHits) : 0; } else { wmp = (hipHits == 1) ? (int) Math.ceil( (double) wmp / 2.0) : 0; } } wmp -= actuatorHits; } // and we still need to factor in heat! wmp -= (int)(heat / 5); // TSM negates some heat if (heat >= 9 && hasTSM()) { if (heat == 9) { wmp += 2; } else { wmp += 1; } } //For sanity sake... wmp = Math.max(0, wmp); return wmp; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/959c1f959c2a847255f48386e0624dc23536e3d1/BipedMech.java/clean/megamek/src/megamek/common/BipedMech.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
9463,
4566,
1435,
288,
3639,
509,
341,
1291,
273,
18354,
9463,
4566,
5621,
3639,
509,
884,
564,
28414,
273,
374,
31,
3639,
509,
366,
625,
20950,
273,
374,
31,
3639,
509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
9463,
4566,
1435,
288,
3639,
509,
341,
1291,
273,
18354,
9463,
4566,
5621,
3639,
509,
884,
564,
28414,
273,
374,
31,
3639,
509,
366,
625,
20950,
273,
374,
31,
3639,
509,
... |
boolean breakpoint(int line, boolean value) { | public boolean breakpoint(int line) { | boolean breakpoint(int line, boolean value) { if (!breakableLine(line)) { throw new IllegalArgumentException(String.valueOf(line)); } boolean changed; synchronized (breakpoints) { if (breakpoints[line] != value) { breakpoints[line] = value; changed = true; } else { changed = false; } } return changed; } | 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,
540,
1250,
18820,
12,
474,
980,
16,
1250,
460,
13,
3639,
288,
5411,
309,
16051,
8820,
429,
1670,
12,
1369,
3719,
288,
7734,
604,
394,
2754,
12,
780,
18,
1132,
951,
12,
1369,
10019,
5411,
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,
540,
1250,
18820,
12,
474,
980,
16,
1250,
460,
13,
3639,
288,
5411,
309,
16051,
8820,
429,
1670,
12,
1369,
3719,
288,
7734,
604,
394,
2754,
12,
780,
18,
1132,
951,
12,
1369,
10019,
5411,
289... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.